.home-basic-widget,
.home-compact-widget {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid #cfd9d5;
  border-top: 3px solid #60716a;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(35, 52, 45, 0.07);
  color: #17231f;
}

.home-basic-widget {
  display: flex;
  flex-direction: column;
}

.home-menu-shortcut-widget {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  border: 1px solid #c7d5d0;
  border-top: 3px solid #0b887a;
  border-radius: 6px;
  padding: 13px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(35, 52, 45, 0.07);
  color: #17231f;
}

.home-menu-shortcut-widget.is-unavailable {
  border-top-color: #8d9894;
  color: #6b7772;
}

.home-menu-shortcut-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #e4f2ee;
  color: #08766b;
  font-size: 14px;
  font-weight: 900;
}

.home-menu-shortcut-widget div,
.home-menu-shortcut-widget small,
.home-menu-shortcut-widget strong,
.home-menu-shortcut-widget div > span {
  min-width: 0;
  display: block;
}

.home-menu-shortcut-widget small {
  overflow: hidden;
  color: #718079;
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-menu-shortcut-widget strong {
  margin-top: 3px;
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-menu-shortcut-widget div > span {
  margin-top: 5px;
  color: #0a756a;
  font-size: 10px;
  font-weight: 850;
}

.home-menu-shortcut-widget > b {
  color: #6b7c76;
  font-size: 24px;
  font-weight: 500;
}

.home-basic-widget-header {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 15px;
  border-bottom: 1px solid #dde5e2;
}

.home-basic-widget-header h2 {
  font-size: 17px;
}

.home-basic-widget-header > button,
.home-basic-widget-actions button,
.home-compact-widget-heading button {
  min-height: 32px;
  border: 1px solid #afc2bc;
  border-radius: 5px;
  padding: 0 10px;
  background: #fff;
  color: #315047;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.home-basic-widget-actions {
  display: flex;
  gap: 6px;
}

.home-basic-widget-actions button:first-child {
  width: 34px;
  padding: 0;
  font-size: 16px;
}

.home-widget-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid #dde5e2;
  background: #f6f8f7;
}

.home-widget-metrics > div {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 5px;
  padding: 10px 12px;
  border-right: 1px solid #dde5e2;
}

.home-widget-metrics > div:last-child {
  border-right: 0;
}

.home-widget-metrics span {
  color: #65736d;
  font-size: 10px;
  font-weight: 800;
}

.home-widget-metrics strong {
  font-size: 18px;
}

.home-widget-metrics .is-active strong {
  color: #08776c;
}

.home-widget-metrics .is-alert strong {
  color: #b52e29;
}

.home-temperature-list,
.home-alert-list,
.home-quick-menu-list {
  min-height: 0;
  overflow: auto;
  flex: 1;
}

.home-temperature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 9px;
  min-height: 43px;
  border-bottom: 1px solid #e5eae8;
  padding: 7px 14px;
}

.home-temperature-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.home-temperature-row > span {
  font-size: 16px;
  font-weight: 900;
}

.home-temperature-row small {
  min-width: 48px;
  color: #68766f;
  font-size: 10px;
  font-weight: 850;
  text-align: right;
}

.home-temperature-row.is-alert > span,
.home-temperature-row.is-high > span,
.home-temperature-row.is-low > span {
  color: #b52e29;
}

.home-alert-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(100px, 0.8fr) minmax(0, 1.7fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 49px;
  border: 0;
  border-bottom: 1px solid #e4eae7;
  padding: 8px 14px;
  background: #fff;
  color: #1f302a;
  text-align: left;
}

.home-alert-row strong,
.home-alert-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-alert-row span,
.home-alert-row small {
  color: #69766f;
  font-size: 11px;
}

.home-quick-menu-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 7px;
  padding: 10px;
}

.home-quick-menu-list button {
  min-width: 0;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #d4ddda;
  border-radius: 5px;
  padding: 0 11px;
  background: #f9fbfa;
  color: #263c35;
  text-align: left;
}

.home-quick-menu-list strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.home-quick-menu-list span {
  color: #74837d;
  font-size: 17px;
}

.home-widget-empty {
  min-height: 100px;
  display: grid;
  place-items: center;
  padding: 16px;
  color: #718079;
  font-size: 12px;
  font-weight: 750;
  text-align: center;
}

.home-compact-widget {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 11px 12px;
}

.home-compact-widget.is-active {
  border-top-color: #0c8477;
}

.home-compact-widget.is-warning {
  border-top-color: #c57a12;
}

.home-compact-widget.is-alert {
  border-top-color: #c83b35;
}

.home-compact-widget-heading,
.home-compact-widget-value,
.home-compact-widget-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.home-compact-widget-heading > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #345047;
  font-size: 12px;
  font-weight: 900;
}

.home-compact-widget-value strong {
  font-size: 29px;
}

.home-compact-widget-value span,
.home-compact-widget-meta {
  color: #6a7771;
  font-size: 10px;
  font-weight: 800;
}

.home-dashboard-widget.is-narrow .home-compact-widget-heading button,
.home-dashboard-widget.is-narrow .home-compact-widget-meta,
.home-dashboard-widget.is-short .home-basic-widget-header span {
  display: none;
}

.home-ferry-widget {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid #cfd9d5;
  border-top: 3px solid #60716a;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(35, 52, 45, 0.08);
  color: #17231f;
}

.home-ferry-widget.is-active {
  border-top-color: #0c8477;
}

.home-ferry-widget.is-warning {
  border-top-color: #c57a12;
}

.home-ferry-widget.is-alert {
  border-top-color: #c83b35;
}

.home-ferry-widget-header,
.home-ferry-widget-actions,
.home-ferry-section-heading,
.home-ferry-widget-footer {
  display: flex;
  align-items: center;
}

.home-ferry-widget-header {
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px 17px;
}

.home-ferry-widget-title > span {
  color: #08766c;
  font-size: 11px;
  font-weight: 900;
}

.home-ferry-widget-title h1 {
  margin: 3px 0 0;
  font-size: 23px;
  line-height: 1.25;
}

.home-ferry-widget-title p {
  margin: 4px 0 0;
  color: #69766f;
  font-size: 12px;
  font-weight: 700;
}

.home-ferry-widget-actions {
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.home-ferry-widget-state {
  border-radius: 4px;
  padding: 7px 9px;
  background: #edf1ef;
  color: #57635e;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.home-ferry-widget-state.is-active {
  background: #e3f3ef;
  color: #087167;
}

.home-ferry-widget-state.is-warning {
  background: #fff2d8;
  color: #8f5705;
}

.home-ferry-widget-state.is-alert {
  background: #fde7e5;
  color: #a92d28;
}

.home-ferry-icon-button,
.home-ferry-detail-button,
.home-ferry-more,
.home-ferry-forecast-link {
  border: 1px solid #b9c9c4;
  border-radius: 5px;
  background: #ffffff;
  color: #385048;
  font-size: 12px;
  font-weight: 850;
}

.home-ferry-icon-button {
  width: 38px;
  height: 38px;
  padding: 0;
  font-size: 19px;
}

.home-ferry-icon-button:disabled {
  color: #8d9893;
  background: #f0f3f2;
  cursor: wait;
}

.home-ferry-detail-button {
  min-height: 38px;
  padding: 0 14px;
  border-color: #83b9b1;
  background: #eef8f6;
  color: #087167;
}

.home-ferry-warning {
  border-top: 1px solid #ecd59f;
  border-bottom: 1px solid #ecd59f;
  padding: 9px 22px;
  background: #fff8e8;
  color: #85530b;
  font-size: 12px;
  font-weight: 800;
}

.home-ferry-weather {
  display: grid;
  grid-template-columns: minmax(150px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border-top: 1px solid #dce5e1;
  border-bottom: 1px solid #dce5e1;
  padding: 10px 18px;
  background: #f7faf8;
}

.home-ferry-weather > div {
  display: grid;
  gap: 2px;
}

.home-ferry-weather span,
.home-ferry-weather small {
  color: #66736d;
  font-size: 11px;
  font-weight: 750;
}

.home-ferry-weather strong {
  color: #1d332c;
  font-size: 13px;
}

.home-ferry-weather small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-ferry-weather.is-active {
  border-left: 4px solid #2d8b69;
  background: #f3faf6;
}

.home-ferry-weather.is-warning {
  border-left: 4px solid #d97706;
  background: #fff9ed;
}

.home-ferry-weather.is-alert {
  border-left: 4px solid #c83f3f;
  background: #fff4f3;
}

.home-ferry-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #e0e6e3;
  border-bottom: 1px solid #e0e6e3;
  background: #f7f9f8;
}

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

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

.home-ferry-summary span {
  color: #66736d;
  font-size: 12px;
  font-weight: 800;
}

.home-ferry-summary strong {
  font-size: 22px;
}

.home-ferry-summary .is-active strong {
  color: #08776c;
}

.home-ferry-summary .is-alert strong {
  color: #b52e29;
}

.home-ferry-body {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(260px, 0.75fr);
}

.home-ferry-routes,
.home-ferry-forecast {
  min-width: 0;
  padding: 18px 22px;
}

.home-ferry-forecast {
  border-left: 1px solid #e0e6e3;
  background: #f7faf9;
}

.home-ferry-section-heading {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.home-ferry-section-heading strong {
  font-size: 15px;
}

.home-ferry-section-heading span {
  color: #68756f;
  font-size: 11px;
  font-weight: 800;
}

.home-ferry-route-list {
  border-top: 1px solid #dfe5e2;
}

.home-ferry-route {
  min-width: 0;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) minmax(78px, auto);
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #e5eae7;
  border-left: 3px solid #87938e;
  padding: 10px 10px 10px 12px;
}

.home-ferry-route.is-active {
  border-left-color: #0c8a7d;
}

.home-ferry-route.is-warning {
  border-left-color: #d17808;
  background: #fffdf7;
}

.home-ferry-route.is-alert {
  border-left-color: #c83b35;
  background: #fff9f8;
}

.home-ferry-route time {
  color: #20312a;
  font-size: 15px;
  font-weight: 900;
}

.home-ferry-route > div {
  min-width: 0;
}

.home-ferry-route > div strong,
.home-ferry-route > div small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-ferry-route > div strong {
  font-size: 14px;
}

.home-ferry-route > div strong span {
  color: #829089;
}

.home-ferry-route > div small {
  margin-top: 3px;
  color: #718079;
  font-size: 11px;
  font-weight: 700;
}

.home-ferry-route-status {
  border-radius: 4px;
  padding: 5px 7px;
  background: #edf1ef;
  color: #52605a;
  font-size: 11px;
  font-weight: 850;
  text-align: center;
  white-space: nowrap;
}

.home-ferry-route.is-active .home-ferry-route-status {
  background: #e4f4f1;
  color: #087167;
}

.home-ferry-route.is-warning .home-ferry-route-status {
  background: #fff0d0;
  color: #935800;
}

.home-ferry-route.is-alert .home-ferry-route-status {
  background: #fde5e5;
  color: #b42318;
}

.home-ferry-empty {
  min-height: 170px;
  display: grid;
  place-items: center;
  border-bottom: 1px solid #e5eae7;
  color: #6d7973;
  font-size: 13px;
  font-weight: 750;
  text-align: center;
}

.home-ferry-more,
.home-ferry-forecast-link {
  min-height: 34px;
  margin-top: 10px;
  padding: 0 11px;
}

.home-ferry-forecast-primary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #cbdcd7;
  border-bottom: 1px solid #cbdcd7;
  padding: 17px 2px;
}

.home-ferry-forecast-primary span {
  color: #66736d;
  font-size: 12px;
  font-weight: 800;
}

.home-ferry-forecast-primary strong {
  color: #08776c;
  font-size: 25px;
}

.home-ferry-forecast-breakdown {
  display: grid;
  gap: 0;
  margin: 0;
}

.home-ferry-forecast-breakdown > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #e0e7e4;
  padding: 10px 2px;
}

.home-ferry-forecast-breakdown dt {
  color: #65726c;
  font-size: 12px;
  font-weight: 800;
}

.home-ferry-forecast-breakdown dd {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
}

.home-ferry-forecast-link {
  width: 100%;
  border-color: #92beb7;
  color: #087167;
}

.home-ferry-widget-footer {
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #e0e6e3;
  padding: 10px 22px;
  color: #718079;
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .home-dashboard-grid {
    min-height: 0;
    display: block;
  }

  .home-dashboard-cell-grid,
  .home-dashboard-drop-preview {
    display: none !important;
  }

  .home-dashboard-widget {
    min-height: 220px;
    margin-bottom: 12px;
  }

  .home-dashboard-widget.is-short,
  .home-dashboard-widget.is-narrow {
    min-height: 150px;
  }

  .home-dashboard-widget-content {
    height: auto;
    min-height: inherit;
    overflow: visible;
  }

  .home-dashboard-widget-content > section {
    min-height: inherit;
  }

  .home-dashboard-drag-handle {
    display: none;
  }

  .home-ferry-widget-header {
    align-items: flex-start;
  }

  .home-ferry-body {
    grid-template-columns: 1fr;
  }

  .home-ferry-forecast {
    border-top: 1px solid #e0e6e3;
    border-left: 0;
  }
}

@media (max-width: 650px) {
  .home-dashboard-view {
    padding: 0 0 82px;
  }

  .home-dashboard-manager-button {
    right: 12px;
    bottom: 62px;
  }

  .home-dashboard-manager {
    right: 8px;
    bottom: 114px;
    width: calc(100vw - 16px);
    max-height: calc(100vh - 132px);
  }

  .home-dashboard-position-fields {
    grid-template-columns: 1fr;
  }

  .home-alert-row {
    grid-template-columns: 1fr auto;
  }

  .home-alert-row span {
    grid-column: 1 / -1;
    white-space: normal;
  }

  .home-quick-menu-list {
    grid-template-columns: 1fr;
  }

  .home-ferry-widget-header,
  .home-ferry-widget-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .home-ferry-widget-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

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

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

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

  .home-ferry-route {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .home-ferry-route-status {
    grid-column: 2;
    justify-self: start;
  }
}
