.ferry-operations-view {
  gap: 14px;
  color: #17231f;
}

.ferry-operations-title-row,
.ferry-operations-query-row,
.ferry-operations-refresh-wrap {
  display: flex;
  align-items: center;
}

.ferry-operations-title-row {
  justify-content: space-between;
  gap: 16px;
}

.ferry-operations-source,
.ferry-operations-refresh-wrap span {
  color: #66736d;
  font-size: 12px;
  font-weight: 700;
}

.ferry-operations-source {
  margin-top: 4px;
}

.ferry-operations-refresh-wrap {
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.ferry-operations-refresh {
  min-width: 92px;
  min-height: 38px;
  border: 1px solid #9abeb8;
  border-radius: 5px;
  padding: 0 13px;
  background: #eef8f6;
  color: #086c62;
  font-size: 13px;
  font-weight: 850;
}

.ferry-operations-refresh:disabled {
  color: #7b8782;
  background: #eef1ef;
  cursor: wait;
}

.ferry-operations-query-row {
  gap: 12px;
  margin-top: 15px;
}

.ferry-operations-date-field {
  min-width: 190px;
  display: grid;
  gap: 6px;
  color: #4d5a54;
  font-size: 12px;
  font-weight: 800;
}

.ferry-operations-date-field input {
  min-height: 38px;
}

.ferry-operations-direction {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(82px, 1fr));
  align-self: end;
  overflow: hidden;
  border: 1px solid #cfd8d4;
  border-radius: 5px;
  background: #ffffff;
}

.ferry-operations-direction button {
  min-height: 38px;
  border: 0;
  border-right: 1px solid #dfe5e2;
  border-radius: 0;
  background: transparent;
  color: #52605a;
  font-size: 13px;
  font-weight: 800;
}

.ferry-operations-direction button:last-child {
  border-right: 0;
}

.ferry-operations-direction button.is-active {
  background: #0c7d71;
  color: #ffffff;
}

.ferry-operations-warning {
  margin-top: 12px;
  border-left: 4px solid #d97706;
  padding: 9px 11px;
  background: #fff8e8;
  color: #875208;
  font-size: 12px;
  font-weight: 800;
}

.ferry-weather-section {
  border: 1px solid #d8e0dc;
  border-left: 4px solid #85928c;
  border-radius: 6px;
  padding: 15px 16px;
  background: #ffffff;
}

.ferry-weather-section.is-active {
  border-left-color: #2d8b69;
  background: #f8fcfa;
}

.ferry-weather-section.is-warning {
  border-left-color: #d97706;
  background: #fffaf0;
}

.ferry-weather-section.is-alert {
  border-left-color: #c83f3f;
  background: #fff7f6;
}

.ferry-weather-state {
  flex: 0 0 auto;
  border: 1px solid #cfd8d4;
  border-radius: 999px;
  padding: 5px 9px;
  background: #f2f5f3;
  color: #53615b;
  font-size: 12px;
  font-weight: 900;
}

.ferry-weather-state.is-active {
  border-color: #b8d9c9;
  background: #eaf7f0;
  color: #176b4e;
}

.ferry-weather-state.is-warning {
  border-color: #efd19b;
  background: #fff4dc;
  color: #9a5a05;
}

.ferry-weather-state.is-alert {
  border-color: #efb7b2;
  background: #ffe9e7;
  color: #a82929;
}

.ferry-weather-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.ferry-weather-card,
.ferry-weather-clear,
.ferry-weather-unavailable {
  min-width: 0;
  border: 1px solid #d8e0dc;
  border-radius: 5px;
  background: #ffffff;
}

.ferry-weather-card {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 11px 12px;
}

.ferry-weather-card.is-warning {
  border-color: #efd19b;
}

.ferry-weather-card.is-alert {
  border-color: #efb7b2;
}

.ferry-weather-badge {
  border-radius: 4px;
  padding: 4px 7px;
  background: #edf1ef;
  color: #46534d;
  font-size: 11px;
  font-weight: 900;
}

.ferry-weather-card.is-warning .ferry-weather-badge {
  background: #fff0cf;
  color: #945500;
}

.ferry-weather-card.is-alert .ferry-weather-badge {
  background: #ffe3e0;
  color: #a42626;
}

.ferry-weather-card strong {
  display: block;
  margin-bottom: 3px;
  font-size: 13px;
}

.ferry-weather-card p {
  margin: 0;
  color: #4f5d57;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.ferry-weather-clear,
.ferry-weather-unavailable {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 13px;
}

.ferry-weather-clear strong {
  color: #176b4e;
  font-size: 13px;
}

.ferry-weather-clear span,
.ferry-weather-unavailable {
  color: #66736d;
  font-size: 12px;
  font-weight: 750;
}

.ferry-weather-unavailable {
  border-color: #efd19b;
  background: #fff9ed;
  color: #875208;
}

.ferry-operations-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #d8e0dc;
  border-radius: 6px;
  background: #ffffff;
}

.ferry-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.ferry-section-heading h3 {
  margin: 2px 0 0;
  color: #17231f;
  font-size: 19px;
}

.ferry-section-heading h3 small {
  margin-left: 7px;
  color: #6b7771;
  font-size: 12px;
  font-weight: 750;
}

.ferry-section-kicker {
  color: #087b70;
  font-size: 11px;
  font-weight: 900;
}

.ferry-section-count {
  color: #087b70;
  font-size: 13px;
  font-weight: 900;
}

.ferry-current-heading {
  margin-top: 4px;
}

.ferry-forecast-section {
  display: grid;
  gap: 10px;
  padding: 2px 0 4px;
}

.ferry-forecast-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #bdd8d2;
  border-radius: 6px;
  background: #f4faf8;
}

.ferry-forecast-summary > div {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 15px;
  border-right: 1px solid #d8e8e4;
}

.ferry-forecast-summary > div:last-child {
  border-right: 0;
}

.ferry-forecast-summary span {
  color: #5e6c66;
  font-size: 12px;
  font-weight: 800;
}

.ferry-forecast-summary strong {
  color: #17231f;
  font-size: 20px;
}

.ferry-forecast-summary .is-active strong {
  color: #087b70;
}

.ferry-forecast-summary .is-alert strong {
  color: #c62828;
}

.ferry-forecast-summary .is-warning strong {
  color: #a35d00;
}

.ferry-forecast-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.ferry-forecast-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(105px, auto);
  align-items: center;
  gap: 12px;
  border: 1px solid #d8e0dc;
  border-left: 4px solid #83918b;
  border-radius: 6px;
  padding: 11px 12px;
  background: #ffffff;
}

.ferry-forecast-card.is-active {
  border-left-color: #0c8a7d;
}

.ferry-forecast-card.is-warning {
  border-color: #e6c27b;
  border-left-color: #d97706;
  background: #fffdf8;
}

.ferry-forecast-card.is-alert {
  border-color: #efb3b3;
  border-left-color: #c62828;
  background: #fffafa;
}

.ferry-forecast-result {
  min-width: 0;
  display: grid;
  justify-items: end;
  gap: 3px;
}

.ferry-forecast-result small {
  max-width: 180px;
  overflow-wrap: anywhere;
  color: #68756f;
  font-size: 11px;
  font-weight: 750;
  text-align: right;
}

.ferry-forecast-card.is-active .ferry-operation-status-badge {
  background: #e4f4f1;
  color: #087167;
}

.ferry-forecast-card.is-warning .ferry-operation-status-badge {
  background: #fff0d0;
  color: #935800;
}

.ferry-forecast-card.is-alert .ferry-operation-status-badge {
  background: #fde5e5;
  color: #b42318;
}

.ferry-operations-summary > div {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-right: 1px solid #e5ebe8;
}

.ferry-operations-summary > div:last-child {
  border-right: 0;
}

.ferry-operations-summary span {
  color: #627069;
  font-size: 12px;
  font-weight: 800;
}

.ferry-operations-summary strong {
  color: #17231f;
  font-size: 22px;
}

.ferry-operations-summary .is-active strong {
  color: #087b70;
}

.ferry-operations-summary .is-alert strong {
  color: #c62828;
}

.ferry-operations-list {
  display: grid;
  gap: 8px;
}

.ferry-operation-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(90px, 0.25fr) minmax(150px, 0.4fr);
  align-items: center;
  gap: 14px;
  border: 1px solid #d8e0dc;
  border-left: 4px solid #83918b;
  border-radius: 6px;
  padding: 13px 15px;
  background: #ffffff;
}

.ferry-operation-card.is-active {
  border-left-color: #0c8a7d;
}

.ferry-operation-card.is-done {
  border-left-color: #7d8c85;
  background: #fafbfa;
}

.ferry-operation-card.is-warning {
  border-color: #e6c27b;
  border-left-color: #d97706;
  background: #fffdf8;
}

.ferry-operation-card.is-alert {
  border-color: #efb3b3;
  border-left-color: #c62828;
  background: #fffafa;
}

.ferry-operation-route,
.ferry-operation-time,
.ferry-operation-location,
.ferry-operation-status {
  min-width: 0;
}

.ferry-operation-route-line {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.ferry-operation-route-line strong {
  overflow: hidden;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ferry-operation-route-line span {
  color: #77837d;
  font-weight: 900;
}

.ferry-operation-vessel {
  overflow: hidden;
  margin-top: 4px;
  color: #67736d;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ferry-operation-time,
.ferry-operation-location,
.ferry-operation-status {
  display: grid;
  gap: 4px;
}

.ferry-operation-time span,
.ferry-operation-location span {
  color: #77837d;
  font-size: 11px;
  font-weight: 800;
}

.ferry-operation-time strong,
.ferry-operation-location strong {
  overflow-wrap: anywhere;
  color: #25332d;
  font-size: 14px;
}

.ferry-operation-status {
  justify-items: end;
}

.ferry-operation-status-badge {
  min-width: 68px;
  border-radius: 4px;
  padding: 5px 8px;
  background: #edf1ef;
  color: #52605a;
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}

.ferry-operation-card.is-active .ferry-operation-status-badge {
  background: #e4f4f1;
  color: #087167;
}

.ferry-operation-card.is-warning .ferry-operation-status-badge {
  background: #fff0d0;
  color: #935800;
}

.ferry-operation-card.is-alert .ferry-operation-status-badge {
  background: #fde5e5;
  color: #b42318;
}

.ferry-operation-status small {
  color: #77837d;
  font-size: 11px;
  font-weight: 700;
}

.ferry-operation-comparison {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid #e6ebe8;
}

.ferry-operation-comparison > div {
  min-width: 0;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding-top: 9px;
  color: #5e6a65;
}

.ferry-operation-comparison > div + div {
  border-left: 1px solid #e6ebe8;
  padding-left: 14px;
}

.ferry-operation-comparison span,
.ferry-operation-comparison small {
  color: #77837d;
  font-size: 11px;
  font-weight: 750;
}

.ferry-operation-comparison strong {
  color: #26342e;
  font-size: 13px;
}

.ferry-operation-comparison .has-actual strong {
  color: #087b70;
}

.ferry-non-operation-section {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  border-top: 1px solid #d8e0dc;
  padding-top: 16px;
}

.ferry-non-operation-group {
  display: grid;
  gap: 7px;
}

.ferry-non-operation-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #5f6c66;
  font-size: 12px;
}

.ferry-non-operation-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.ferry-non-operation-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(90px, 0.5fr);
  align-items: center;
  gap: 10px;
  border: 1px solid #dfe4e2;
  border-radius: 6px;
  padding: 10px 11px;
  background: #f6f7f6;
}

.ferry-non-operation-row .ferry-operation-route-line strong {
  color: #53605a;
  font-size: 14px;
}

.ferry-non-operation-label {
  border-radius: 4px;
  padding: 4px 7px;
  background: #e5e9e7;
  color: #5b6761;
  font-size: 11px;
  font-weight: 850;
}

.ferry-non-operation-row > small {
  overflow-wrap: anywhere;
  color: #68746e;
  font-size: 11px;
  font-weight: 750;
  text-align: right;
}

.ferry-operations-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  border: 1px solid #d8e0dc;
  border-radius: 6px;
  padding: 24px;
  background: #ffffff;
  color: #6c7973;
  font-size: 14px;
  font-weight: 750;
  text-align: center;
}

@media (max-width: 900px) {
  .ferry-operation-card {
    grid-template-columns: minmax(240px, 1fr) minmax(90px, 0.3fr) minmax(140px, 0.45fr);
    gap: 10px;
  }
}

@media (max-width: 700px) {
  .ferry-operations-title-row,
  .ferry-operations-query-row {
    align-items: stretch;
    flex-direction: column;
  }

  .ferry-operations-refresh-wrap {
    justify-content: space-between;
  }

  .ferry-operations-date-field,
  .ferry-operations-direction {
    width: 100%;
  }

  .ferry-operations-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ferry-forecast-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ferry-forecast-summary > div:nth-child(2) {
    border-right: 0;
  }

  .ferry-forecast-summary > div:nth-child(-n + 2) {
    border-bottom: 1px solid #d8e8e4;
  }

  .ferry-forecast-list {
    grid-template-columns: 1fr;
  }

  .ferry-weather-list {
    grid-template-columns: 1fr;
  }

  .ferry-weather-clear,
  .ferry-weather-unavailable {
    align-items: flex-start;
    flex-direction: column;
  }

  .ferry-non-operation-list {
    grid-template-columns: 1fr;
  }

  .ferry-operations-summary > div:nth-child(2) {
    border-right: 0;
  }

  .ferry-operations-summary > div:nth-child(-n + 2) {
    border-bottom: 1px solid #e5ebe8;
  }

  .ferry-operation-card {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 8px;
  }

  .ferry-operation-route {
    grid-column: 1 / -1;
  }

  .ferry-operation-status {
    justify-items: stretch;
  }

  .ferry-operation-status-badge {
    min-width: 0;
  }

}

@media (max-width: 520px) {
  .home-ferry-weather {
    grid-template-columns: 1fr;
  }

  .home-ferry-weather small {
    white-space: normal;
  }

  .ferry-section-heading {
    align-items: flex-start;
  }

  .ferry-weather-card {
    grid-template-columns: 1fr;
  }

  .ferry-section-heading h3 small {
    display: block;
    margin: 3px 0 0;
  }

  .ferry-forecast-card {
    grid-template-columns: 1fr;
  }

  .ferry-forecast-result {
    justify-items: start;
  }

  .ferry-forecast-result small {
    max-width: none;
    text-align: left;
  }

  .ferry-operation-comparison {
    grid-template-columns: 1fr;
  }

  .ferry-operation-comparison > div {
    grid-template-columns: auto minmax(0, auto) minmax(0, 1fr);
  }

  .ferry-operation-comparison > div + div {
    border-top: 1px solid #e6ebe8;
    border-left: 0;
    padding-left: 0;
  }

  .ferry-non-operation-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .ferry-non-operation-row > small {
    grid-column: 1 / -1;
    text-align: left;
  }
}
