
:root {
  --nav: #122637;
  --ink: #172d40;
  --muted: #657587;
  --line: #dce4eb;
  --bg: #f3f6f8;
  --blue: #2457d6;
  --red: #ad3441;
  --amber: #8b5b12;
  --green: #177363
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  font: 14px/1.5 Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg)
}

button,
input,
select,
textarea {
  font: inherit
}

button {
  cursor: pointer
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #789dff;
  outline-offset: 3px
}

button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  padding: 8px 13px;
  color: var(--ink);
  font-weight: 600
}

button:hover {
  background: #eef3fb
}

button:disabled {
  cursor: default;
  opacity: .55
}

.primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue)
}

.primary:hover {
  background: #1944b1
}

.link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--blue);
  text-align: left
}

.shell {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  min-height: 100vh
}

.sidebar {
  background: var(--nav);
  color: #b5c6d3;
  padding: 26px 16px;
  display: flex;
  flex-direction: column
}

.brand {
  color: white;
  font-size: 23px;
  letter-spacing: 2px;
  font-weight: 700;
  padding: 0 10px
}

.brand small {
  font-size: 10px;
  letter-spacing: 1.6px;
  display: block;
  color: #a9bdce;
  margin-top: 2px
}

.port {
  margin: 28px 4px 24px;
  padding: 12px;
  background: #1d3447;
  border: 1px solid #385065;
  border-radius: 6px;
  color: white;
  font-size: 12px
}

.port small {
  color: #b9cad6;
  display: block
}

.navlabel {
  font-size: 10px;
  letter-spacing: 1.5px;
  padding: 0 12px 10px
}

.nav button,
.nav .future {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 10px;
  margin: 3px 0;
  border: 0;
  background: transparent;
  color: #bfced9;
  text-align: left;
  font-weight: 400;
  font-size: 12px
}

.nav button.active {
  background: #29455b;
  color: white;
  border-left: 3px solid #91b9ff;
  padding-left: 7px
}

.nav button:hover {
  background: #243d51
}

.nav .future {
  color: #8da3b4
}

.nav svg {
  width: 17px;
  height: 17px;
  flex: none
}

.nav .sub {
  padding: 5px 0 9px 38px;
  font-size: 11px;
  color: #98baf4
}

.navfooter {
  margin-top: auto;
  padding: 40px 10px 0;
  font-size: 11px;
  color: #91aabd
}

.avatar {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: #dce8f8;
  color: #254963;
  border-radius: 50%;
  font-size: 11px;
  font-weight: bold;
  margin-right: 9px
}

.main {
  min-width: 0
}

.topbar {
  height: 65px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  gap: 12px;
  font-size: 12px
}

.topright {
  display: flex;
  align-items: center;
  gap: 18px
}

.sample {
  font-size: 10px;
  letter-spacing: .7px;
  border: 1px solid #c9d6df;
  border-radius: 4px;
  padding: 3px 6px;
  color: #536879
}

.content {
  max-width: 1600px;
  margin: auto;
  padding: 27px 30px
}

.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--muted);
  text-transform: uppercase
}

.pagehead {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin-bottom: 23px
}

h1 {
  font-size: 27px;
  line-height: 1.25;
  letter-spacing: -.7px;
  margin: 6px 0
}

h2 {
  font-size: 15px;
  margin: 0
}

h3 {
  font-size: 13px;
  margin: 0
}

p {
  margin: 6px 0
}

.muted {
  color: var(--muted)
}

.small {
  font-size: 11px
}

.actions {
  display: flex;
  align-items: center;
  gap: 8px
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 20px
}

.metric {
  padding: 19px 22px;
  border-right: 1px solid var(--line)
}

.metric:last-child {
  border: 0
}

.metric .value {
  font-size: 30px;
  letter-spacing: -1px;
  margin: 5px 0
}

.metric small {
  color: var(--muted);
  font-size: 11px
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 4px;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap
}

.red {
  color: var(--red);
  background: #fbecef
}

.amber {
  color: var(--amber);
  background: #fbf2df
}

.green {
  color: var(--green);
  background: #e6f3ef
}

.blue {
  color: #2857b0;
  background: #eaf0ff
}

.gray {
  color: #5c6b78;
  background: #edf1f4
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(290px, 1fr);
  gap: 20px
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden
}

.panelhead {
  padding: 17px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line)
}

.pad {
  padding: 20px
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px
}

.divider {
  border-top: 1px solid var(--line);
  margin: 18px 0
}

.stack>*+* {
  margin-top: 15px
}

.issue {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line)
}

.issue:last-child {
  border: 0
}

.issue p {
  font-size: 12px;
  color: var(--muted);
  margin: 7px 0 12px
}

.issue .row {
  align-items: start
}

.issue h3 {
  margin-top: 7px
}

.caption {
  font-size: 11px;
  color: var(--muted);
  padding: 11px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 10px
}

.map {
  height: 326px;
  background: #edf3f5;
  position: relative
}

.map svg {
  width: 100%;
  height: 100%
}

.map text {
  font-family: Arial, sans-serif;
  fill: #526d7d;
  font-size: 11px
}

.map .berth {
  cursor: pointer
}

.map .berth:hover rect {
  stroke: #2457d6;
  stroke-width: 3
}

.maplegend {
  position: absolute;
  left: 15px;
  bottom: 15px;
  background: #ffffffea;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 7px 10px;
  font-size: 10px;
  display: flex;
  gap: 14px
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 100%;
  display: inline-block;
  margin-right: 5px;
  background: #658399
}

.dot.red {
  background: #ad3441
}

.dot.green {
  background: #177363
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px
}

th {
  text-align: left;
  color: var(--muted);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: .5px;
  background: #f9fbfc
}

th,
td {
  padding: 12px 19px;
  border-bottom: 1px solid #e7edf1
}

tr:last-child td {
  border: 0
}

.tabline {
  display: flex;
  gap: 23px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px
}

.tabline span {
  padding: 8px 0 11px;
  color: var(--muted);
  font-size: 12px
}

.tabline .selected {
  color: var(--blue);
  border-bottom: 2px solid var(--blue);
  font-weight: 600
}

.notice {
  display: flex;
  gap: 12px;
  background: #fff6e7;
  border: 1px solid #eedab6;
  padding: 13px 16px;
  border-radius: 6px;
  font-size: 12px;
  margin-bottom: 18px;
  color: #77501b
}

.schedule {
  min-width: 630px
}

.schedscroll {
  overflow-x: auto
}

.hours {
  display: grid;
  grid-template-columns: 110px repeat(7, 1fr);
  padding: 14px 20px;
  color: var(--muted);
  font-size: 10px
}

.schedrow {
  display: grid;
  grid-template-columns: 110px 1fr;
  padding: 0 20px;
  border-top: 1px solid var(--line);
  min-height: 79px
}

.schedname {
  padding: 22px 0;
  font-size: 12px;
  font-weight: 600
}

.schedname small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 10px
}

.track {
  position: relative;
  background: repeating-linear-gradient(to right, transparent 0, transparent calc(14.2857% - 1px), #e6ecf1 calc(14.2857% - 1px), #e6ecf1 14.2857%)
}

.slot {
  position: absolute;
  top: 21px;
  height: 38px;
  border-radius: 4px;
  border: 1px solid #b5c9e9;
  background: #eaf0fa;
  color: #355889;
  font-size: 10px;
  padding: 4px 8px;
  overflow: hidden;
  white-space: nowrap;
  text-align: left
}

.slot b {
  display: block;
  font-size: 11px
}

.restriction {
  position: absolute;
  top: 5px;
  bottom: 5px;
  background: repeating-linear-gradient(130deg, #f7dce1 0, #f7dce1 5px, #fbe9ec 5px, #fbe9ec 10px);
  border: 1px solid #e9b7c0;
  border-radius: 4px
}

.slot.conflict {
  border: 1px solid #b94051;
  background: #fff6f7;
  color: #962b39
}

.slot.confirmed {
  border: 1px solid #1a8372;
  background: #e5f4ef;
  color: #166654;
}

.slot.proposed {
  border: 1px dashed #1a8372;
  background: #e5f4ef;
  color: #166654
}

.detail-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  font-size: 12px
}

.detail-list label {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 3px
}

.chart {
  width: 100%;
  height: 238px
}

.chart text {
  fill: #687c8c;
  font-size: 10px
}

.segmented {
  display: flex;
  gap: 3px
}

.segmented button {
  font-size: 10px;
  padding: 5px 9px
}

.segmented button.active {
  background: #eaf0ff;
  color: #2457d6;
  border-color: #cbd9fa
}

.assetgraphic {
  height: 120px;
  background: #edf2f6;
  display: grid;
  place-items: center;
  margin-bottom: 17px
}

.assetgraphic svg {
  width: 180px;
  height: 100px
}

.event {
  position: relative;
  border-left: 1px solid #d4dfe7;
  padding: 0 0 23px 21px;
  margin-left: 4px
}

.event:before {
  content: '';
  position: absolute;
  left: -4px;
  top: 5px;
  background: #587993;
  width: 7px;
  height: 7px;
  border-radius: 50%
}

.event:last-child {
  padding-bottom: 0
}

.event small {
  font-size: 10px;
  color: var(--muted)
}

.event p {
  font-size: 12px;
  margin: 3px 0
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px
}

.check input {
  margin-top: 4px;
  accent-color: var(--blue)
}

.check:last-child {
  border: 0
}

.evidence {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  margin-top: 10px
}

.evidence .fileicon {
  font-size: 10px;
  background: #edf2f6;
  padding: 10px;
  border-radius: 4px
}

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px
}

.scenario {
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden
}

.scenario.recommended {
  border-color: #7fafa5
}

.scenario .big {
  font-size: 37px;
  letter-spacing: -1.4px
}

.barcompare {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 17px 0;
  font-size: 11px
}

.barcompare .bar {
  height: 9px;
  background: #ba5663;
  border-radius: 3px
}

.barcompare .trackbar {
  flex: 1;
  background: #edf1f5;
  height: 9px;
  border-radius: 3px
}

.formrow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px
}

label.field {
  display: block;
  font-size: 12px;
  margin: 13px 0
}

input[type=number],
input[type=text],
select,
textarea {
  width: 100%;
  margin-top: 5px;
  padding: 9px;
  border: 1px solid #cbd7e0;
  border-radius: 5px;
  background: white;
  color: var(--ink)
}

textarea {
  resize: vertical;
  min-height: 78px
}

.footer {
  color: var(--muted);
  font-size: 10px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between
}

.toast {
  position: fixed;
  bottom: 22px;
  right: 24px;
  background: #173b34;
  color: white;
  padding: 13px 20px;
  border-radius: 7px;
  box-shadow: 0 5px 30px #172d4030;
  z-index: 10;
  max-width: 440px
}

.modalback {
  position: fixed;
  inset: 0;
  background: #142c4560;
  display: grid;
  place-items: center;
  z-index: 20;
  padding: 20px
}

.modal {
  background: white;
  border-radius: 10px;
  padding: 26px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 20px 90px #142c4540
}

.modal h2 {
  font-size: 20px;
  margin-bottom: 10px
}

.modal .actions {
  justify-content: flex-end;
  margin-top: 22px
}

.hidden {
  display: none !important
}

.asset-grid {
  grid-template-columns: minmax(250px, .8fr) minmax(0, 2fr)
}

@media(max-width:1200px) {
  .shell {
    grid-template-columns: 195px minmax(0, 1fr)
  }

  .content {
    padding: 22px
  }

  .topbar {
    padding: 0 22px
  }

  .grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(270px, 1fr)
  }

  .metric {
    padding: 15px
  }

  .topright {
    gap: 10px
  }

  .nav button,
  .nav .future {
    font-size: 11px
  }
}

@media(max-width:1050px) {
  .shell {
    grid-template-columns: 180px minmax(0, 1fr)
  }

  .grid {
    grid-template-columns: 1fr
  }

  .topright .operator {
    display: none
  }

  .content {
    padding: 20px
  }

  .metric .value {
    font-size: 25px
  }

  .sidebar {
    padding: 25px 10px
  }

  .brand {
    font-size: 20px
  }

  .compare {
    grid-template-columns: 1fr 1fr
  }
}

@media(max-width:720px) {
  .shell {
    display: block
  }

  .sidebar {
    position: relative;
    padding: 15px
  }

  .port,
  .navfooter,
  .navlabel,
  .nav .future,
  .nav .sub,
  .brand small {
    display: none
  }

  .nav {
    display: flex;
    flex-wrap: wrap;
    margin-top: 12px
  }

  .nav button {
    width: auto
  }

  .brand {
    font-size: 18px
  }

  .topbar {
    padding: 10px 15px;
    height: auto
  }

  .topright {
    display: none
  }

  .content {
    padding: 17px
  }

  .metrics {
    grid-template-columns: 1fr 1fr
  }

  .metric:nth-child(2) {
    border-right: 0
  }

  .pagehead {
    align-items: start
  }

  .pagehead .actions {
    flex-direction: column
  }

  .compare {
    grid-template-columns: 1fr
  }

  .formrow {
    grid-template-columns: 1fr
  }

  h1 {
    font-size: 24px
  }

  th,
  td {
    padding: 10px
  }

  .panel {
    overflow: auto
  }
}
