/* Units-inspirierte Headquarter-Optik: farbige Hauptnavigation links,
   farbige Website-Blöcke rechts. Kein 1:1-Klon, sondern eigene UI. */

aside {
  background: #f4e9e1;
  border-right: 0;
  padding: 14px 12px;
}

.sidebar-brand {
  height: auto;
  min-height: 76px;
  padding: 8px 8px 14px;
  border-bottom: 0;
}

.sidebar-brand img {
  width: 62px;
  height: 62px;
}

.sidebar-brand strong {
  font-size: 18px;
  line-height: 1;
}

.sidebar-brand span {
  color: #5f5047;
  font-weight: 850;
}

nav {
  padding: 0;
  gap: 9px;
}

nav .nav-tile {
  position: relative;
  min-height: 82px;
  display: grid;
  align-content: space-between;
  border: 0;
  border-radius: 12px;
  padding: 11px 13px;
  color: #111;
  text-align: left;
  box-shadow: 0 10px 22px #3b21141f;
  overflow: hidden;
}

nav .nav-tile em,
nav .nav-tile span,
nav .nav-tile small {
  display: block;
  margin: 0;
}

nav .nav-tile em {
  font-style: normal;
  font-size: 12px;
  font-weight: 950;
}

nav .nav-tile span {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.05;
  font-weight: 950;
}

nav .nav-tile small {
  margin-top: 3px;
  max-width: 150px;
  font-size: 10px;
  line-height: 1.15;
  font-weight: 850;
}

nav .nav-tile strong {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 15px;
}

nav .nav-tile:hover,
nav .nav-tile.active {
  color: #111;
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 14px 28px #3b21142b;
}

nav .nav-home { background: #3677df; color: #fff; }
nav .nav-clients { background: #ffc348; }
nav .nav-contracts { background: #f26a2d; }
nav .nav-employees { background: #4caf4f; }
nav .nav-planning { background: #9b54e9; color: #fff; }
nav .nav-mobile { background: #111; color: #fff; }
nav .nav-records { background: #75d1ef; }
nav .nav-documents { background: #f69bc6; }
nav .nav-messages { background: #ffe56b; }
nav .nav-billing { background: #69c36d; }

nav .nav-home small,
nav .nav-planning small,
nav .nav-mobile small {
  color: #fff;
}

nav .nav-badge {
  top: 35px;
  right: 10px;
}

.user-card {
  margin-top: 14px;
  border-top: 0;
  border-radius: 14px;
  background: #111;
  color: #fff;
}

.user-card span {
  color: #d9e3e9;
}

.user-card button {
  background: #fff;
  color: #111;
}

#dashboard-view {
  max-width: 1520px;
}

.app[data-active-view="dashboard"] { --active-color: #3677df; --active-soft: #eaf3ff; }
.app[data-active-view="clients"] { --active-color: #ffc348; --active-soft: #fff7df; }
.app[data-active-view="contracts"] { --active-color: #f26a2d; --active-soft: #fff0e9; }
.app[data-active-view="employees"] { --active-color: #4caf4f; --active-soft: #edf9ed; }
.app[data-active-view="planning"] { --active-color: #9b54e9; --active-soft: #f6edff; }
.app[data-active-view="mobile"] { --active-color: #111; --active-soft: #f2f2f2; }
.app[data-active-view="records"] { --active-color: #75d1ef; --active-soft: #eefafe; }
.app[data-active-view="documents"] { --active-color: #f69bc6; --active-soft: #fff0f7; }
.app[data-active-view="messages"] { --active-color: #ffe56b; --active-soft: #fffbe0; }
.app[data-active-view="billing"] { --active-color: #69c36d; --active-soft: #eff9ef; }

.view.active:not(#dashboard-view) {
  position: relative;
  border-radius: 24px;
  background:
    linear-gradient(90deg, var(--active-soft, #eef8fd), transparent 42%),
    #fffdfb;
  box-shadow: inset 9px 0 0 var(--active-color, var(--blue));
}

.view.active:not(#dashboard-view) > .toolbar:first-child {
  padding: 18px 20px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--active-soft, #eef8fd) 76%, white);
  border: 1px solid color-mix(in srgb, var(--active-color, var(--blue)) 25%, white);
}

.view.active:not(#dashboard-view) > .panel,
.view.active:not(#dashboard-view) > .planning-layout,
.view.active:not(#dashboard-view) > .finance-grid,
.view.active:not(#dashboard-view) > .document-grid,
.view.active:not(#dashboard-view) > .messenger-layout,
.view.active:not(#dashboard-view) > .mobile-jobs,
.view.active:not(#dashboard-view) > .employee-grid {
  margin-left: 4px;
}

.dashboard-shell {
  display: block;
  border-radius: 28px;
  background: #f4e9e1;
  padding: 20px;
}

.dashboard-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.dashboard-hero {
  min-height: 300px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, .55fr);
  align-items: end;
  gap: 22px;
  border-radius: 28px;
  padding: 38px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0,0,0,.60), rgba(0,124,191,.18)),
    radial-gradient(circle at 22% 20%, #29a36d 0 13%, transparent 14%),
    radial-gradient(circle at 70% 35%, #ffc348 0 13%, transparent 14%),
    radial-gradient(circle at 86% 20%, #f26a2d 0 12%, transparent 13%),
    linear-gradient(135deg, #007cbf, #0f714f 48%, #213545);
  box-shadow: 0 24px 55px #3b211426;
}

.dashboard-hero .eyebrow {
  margin-top: 0;
  color: #dff3fc;
}

.dashboard-hero h2 {
  max-width: 820px;
  margin: 8px 0 12px;
  font-size: clamp(42px, 6vw, 82px);
  line-height: .92;
  letter-spacing: -.055em;
}

.dashboard-hero p {
  max-width: 700px;
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 850;
}

.dashboard-hero-side {
  display: grid;
  gap: 12px;
  align-self: end;
}

.dashboard-hero-status {
  align-self: end;
  border-radius: 20px;
  background: #111;
  padding: 16px 18px;
  box-shadow: 0 14px 32px #0004;
}

.dashboard-hero-status b,
.dashboard-hero-status span {
  display: block;
}

.dashboard-hero-status b {
  font-size: 18px;
}

.dashboard-hero-status span {
  margin-top: 4px;
  color: #d9e3e9;
  font-size: 12px;
}

.guided-test-panel {
  border: 1px solid #d7e6ef;
  border-radius: 24px;
  padding: 18px;
  background: linear-gradient(135deg, #ffffff, #f4fbff);
  box-shadow: 0 18px 42px #1f374b10;
}

.guided-test-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.guided-test-head h3 {
  margin: 3px 0 4px;
  color: #183247;
  font-size: 24px;
}

.guided-test-head p {
  margin: 0;
  color: #5e7180;
  font-weight: 750;
}

.guided-test-steps {
  display: grid;
  grid-template-columns: repeat(7, minmax(150px, 1fr));
  gap: 10px;
}

.guided-test-step {
  position: relative;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid #deebf2;
  border-radius: 20px;
  padding: 15px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 24px #1f374b0d;
}

.guided-test-step:before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: #007cbf;
}

.guided-test-step[data-step="contract"]:before,
.guided-test-step[data-step="client"]:before { background: #007cbf; }
.guided-test-step[data-step="planning"]:before,
.guided-test-step[data-step="mobile"]:before { background: #29a36d; }
.guided-test-step[data-step="records"]:before { background: #ffc348; }
.guided-test-step[data-step="billing"]:before,
.guided-test-step[data-step="dakota"]:before { background: #f26a2d; }

.guided-test-step > span {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  background: #e9f5fb;
  color: #007cbf;
  font-size: 12px;
  font-weight: 950;
}

.guided-test-step h4 {
  margin: 0;
  color: #1f374b;
  font-size: 18px;
}

.guided-test-step p {
  flex: 1;
  margin: 0;
  color: #617382;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.guided-test-step button {
  width: 100%;
  margin-top: auto;
}

.dashboard-quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.dashboard-quick-stats article {
  border-radius: 15px;
  background: #ffffffeb;
  color: #111;
  padding: 12px;
  box-shadow: 0 10px 26px #0002;
}

.dashboard-quick-stats span,
.dashboard-quick-stats b {
  display: block;
}

.dashboard-quick-stats span {
  font-size: 10px;
  font-weight: 900;
  color: #5f6b75;
  text-transform: uppercase;
}

.dashboard-quick-stats b {
  margin-top: 3px;
  font-size: 24px;
  line-height: 1;
}

.dashboard-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.daily-traffic-light {
  margin: 16px 0;
  display: grid;
  grid-template-columns: minmax(230px, .75fr) 1.6fr;
  gap: 12px;
}

.daily-light-head,
.daily-light-card {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 12px 28px #3b211414;
}

.daily-light-head {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px;
  background: #eaf8f0;
}

.daily-light-head.yellow {
  background: #fff4d8;
}

.daily-light-head.red {
  background: #ffecef;
}

.daily-light-head .eyebrow {
  margin: 0;
  color: #111;
}

.daily-light-head h3 {
  margin: 4px 0 0;
  font-size: 22px;
}

.daily-light-head p {
  margin: 4px 0 0;
  color: #536270;
  font-size: 12px;
  font-weight: 750;
}

.daily-light-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #4caf4f;
  box-shadow: 0 0 0 7px #ccefd2;
  flex: 0 0 auto;
}

.daily-light-head.yellow .daily-light-dot {
  background: #ffc348;
  box-shadow: 0 0 0 7px #ffe8a5;
}

.daily-light-head.red .daily-light-dot {
  background: #d93444;
  box-shadow: 0 0 0 7px #ffd4da;
}

.daily-light-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
}

.daily-light-card {
  min-height: 96px;
  text-align: left;
  padding: 12px;
  cursor: pointer;
  background: #fff;
  color: #111;
}

.daily-light-card.green {
  border-left: 6px solid #4caf4f;
}

.daily-light-card.yellow {
  border-left: 6px solid #ffc348;
}

.daily-light-card.red {
  border-left: 6px solid #d93444;
}

.daily-light-card span,
.daily-light-card b,
.daily-light-card small {
  display: block;
}

.daily-light-card span {
  font-size: 11px;
  font-weight: 950;
}

.daily-light-card b {
  margin-top: 8px;
  font-size: 25px;
  line-height: 1;
}

.daily-light-card small {
  margin-top: 5px;
  color: #6b7785;
  font-weight: 800;
}

.morning-briefing {
  margin: 16px 0;
  border: 1px solid #eaded4;
  border-radius: 22px;
  background: #fffaf5;
  padding: 18px;
  box-shadow: 0 16px 35px #4d2f1d12;
}

.morning-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 13px;
}

.morning-title .eyebrow {
  margin: 0;
  color: #9b54e9;
}

.morning-title h3 {
  margin: 4px 0 0;
  font-size: 22px;
}

.morning-title small {
  color: #6b584b;
  font-weight: 850;
  white-space: nowrap;
}

.morning-date-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.morning-date-grid section {
  border-radius: 16px;
  background: #fff;
  padding: 14px;
  border-left: 7px solid #ffc348;
}

.morning-date-grid section:nth-child(2) {
  border-left-color: #4caf4f;
}

.morning-date-grid h4 {
  margin: 0 0 10px;
}

.morning-date-grid p {
  margin: 0;
  color: #6b7785;
  font-size: 13px;
}

.morning-date-card {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid #f0e7df;
}

.morning-date-card:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.morning-date-card > strong {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff4d8;
}

.morning-date-card.today > strong {
  background: #ffe56b;
  box-shadow: 0 0 0 4px #fff7c2;
}

.morning-date-card b,
.morning-date-card span {
  display: block;
}

.morning-date-card span {
  color: #6b7785;
  font-size: 12px;
  margin-top: 3px;
}

.dashboard-feature {
  min-height: 150px;
  position: relative;
  display: grid;
  align-content: space-between;
  border: 0;
  border-radius: 20px;
  padding: 18px;
  text-align: left;
  color: #111;
  box-shadow: 0 14px 30px #3b211421;
}

.dashboard-feature span,
.dashboard-feature b,
.dashboard-feature small,
.dashboard-feature em {
  display: block;
}

.dashboard-feature span {
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.dashboard-feature b {
  margin-top: 18px;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -.03em;
}

.dashboard-feature small {
  margin-top: 7px;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.3;
}

.dashboard-feature em {
  margin-top: 12px;
  font-style: normal;
  font-size: 12px;
  font-weight: 950;
}

.feature-blue { background: #3677df; color: #fff; }
.feature-yellow { background: #ffc348; }
.feature-orange { background: #f26a2d; }
.feature-green { background: #4caf4f; }

#dashboard-view .cockpit-config,
#dashboard-view .cockpit-widget,
#dashboard-view .cockpit-grid > .panel {
  border: 0;
  border-radius: 22px;
  box-shadow: 0 14px 34px #3b211414;
}

#dashboard-view .cockpit-config {
  background: #fff7ec;
}

#dashboard-view .cockpit-config .panel-title-row {
  align-items: center;
}

#dashboard-view .cockpit-grid {
  grid-template-columns: repeat(2, minmax(300px, 1fr));
}

#dashboard-view .cockpit-widget {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  padding-left: 28px;
}

#dashboard-view .cockpit-widget:before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 9px;
  background: var(--block-color, var(--blue));
}

#dashboard-view .cockpit-widget .panel-title-row,
#dashboard-view .cockpit-widget .widget-body {
  position: relative;
  z-index: 1;
}

#dashboard-view .cockpit-widget .panel-title-row h2 {
  font-size: 20px;
  letter-spacing: -.02em;
}

#dashboard-view .cockpit-stats .stat {
  border: 0;
  border-radius: 18px;
}

#dashboard-view .cockpit-stats .stat:nth-child(1) { background: #eaf3ff; }
#dashboard-view .cockpit-stats .stat:nth-child(2) { background: #fff4d8; }
#dashboard-view .cockpit-stats .stat:nth-child(3) { background: #eaf8f0; }

.cockpit-stats { --block-color: #3677df; }
.cockpit-tasks { --block-color: #ffc348; background: #fffaf0; }
.cockpit-today_route { --block-color: #9b54e9; background: #faf6ff; }
.cockpit-traffic { --block-color: #f26a2d; background: #fff6f1; }
.cockpit-billing_run { --block-color: #4caf4f; background: #f4fbf4; }
.cockpit-substitutions { --block-color: #f26a2d; background: #fff6f1; }
.cockpit-documents { --block-color: #f69bc6; background: #fff6fb; }
.cockpit-system { --block-color: #111; background: #f7f7f7; }

.traffic-details {
  display: block;
}

.traffic-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  border: 1px solid #f4d3c4;
  border-radius: 14px;
  background: #fff;
  padding: 12px 13px;
}

.traffic-details summary::-webkit-details-marker {
  display: none;
}

.traffic-details summary:after {
  content: "⌄";
  font-size: 18px;
  font-weight: 950;
  color: #bd4f1d;
}

.traffic-details[open] summary:after {
  content: "⌃";
}

.traffic-details summary span,
.traffic-details summary b,
.traffic-details summary small {
  display: block;
}

.traffic-details summary small {
  color: #6b7785;
  margin-top: 2px;
}

.traffic-details summary strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  border-radius: 999px;
  background: #fff0e8;
  color: #bd4f1d;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.traffic-summary {
  border: 1px solid #f4d3c4;
  border-radius: 14px;
  background: #fff;
  padding: 12px;
  margin: 10px 0;
}

.traffic-summary span,
.traffic-summary b,
.traffic-summary small {
  display: block;
}

.traffic-summary span {
  color: #8a5b45;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.traffic-summary b {
  margin-top: 3px;
  font-size: 22px;
}

.traffic-summary small {
  margin-top: 3px;
  color: #6b7785;
}

.traffic-alert {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-top: 1px solid #f0e1d8;
}

.traffic-alert.blocked .traffic-road {
  background: #d93444;
}

.traffic-road {
  display: inline-grid;
  place-items: center;
  min-height: 30px;
  border-radius: 999px;
  background: #f26a2d;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.traffic-alert b,
.traffic-alert small {
  display: block;
}

.traffic-alert small {
  color: #6b7785;
  margin-top: 3px;
}

.traffic-source-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.traffic-source-link {
  border: 1px solid #f0c3ad;
  border-radius: 10px;
  background: #fff;
  padding: 9px 11px;
  color: #bd4f1d;
  font-weight: 850;
  text-decoration: none;
  font-size: 12px;
}

@media (max-width: 1050px) {
  .dashboard-hero {
    grid-template-columns: 1fr;
  }

  .guided-test-head {
    align-items: stretch;
    flex-direction: column;
  }

  .guided-test-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .daily-traffic-light {
    grid-template-columns: 1fr;
  }

  .daily-light-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  aside {
    padding: 12px;
  }

  nav {
    padding: 0;
  }

  nav .nav-tile {
    min-height: 76px;
  }

  .dashboard-shell {
    padding: 12px;
    border-radius: 18px;
  }

  .dashboard-hero {
    min-height: 230px;
    padding: 24px;
    border-radius: 20px;
  }

  .dashboard-hero h2 {
    font-size: 42px;
  }

  #dashboard-view .cockpit-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-quick-stats,
  .dashboard-feature-grid,
  .guided-test-steps,
  .daily-light-grid {
    grid-template-columns: 1fr;
  }

  .morning-title,
  .morning-date-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .morning-briefing {
    border-radius: 18px;
    padding: 14px;
  }
}

.morning-ops {
  display: grid;
  gap: 12px;
  border-radius: 20px;
  padding: 15px;
  background: #ffffff;
  border: 1px solid #e4edf4;
  box-shadow: 0 12px 30px #1f374b0c;
}

.morning-ops-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.morning-ops-head .eyebrow {
  margin-top: 0;
}

.morning-ops-head h3 {
  margin: 4px 0 2px;
  font-size: 22px;
}

.morning-ops-head p {
  margin: 0;
  color: var(--muted);
}

.morning-ops-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.morning-ops-card {
  min-height: 96px;
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 12px;
  text-align: left;
  cursor: pointer;
  display: grid;
  align-content: space-between;
  color: #1b2d3b;
  box-shadow: none;
}

.morning-ops-card span,
.morning-ops-card b,
.morning-ops-card small {
  display: block;
}

.morning-ops-card span {
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.morning-ops-card b {
  margin-top: 6px;
  font-size: 22px;
  line-height: 1;
}

.morning-ops-card small {
  margin-top: 7px;
  color: #405468;
  line-height: 1.25;
}

.morning-ops-card.green { background: #f3fbf6; border-color:#d7efdf; }
.morning-ops-card.yellow { background: #fff8e7; border-color:#f1dca6; }
.morning-ops-card.red { background: #fff0f2; border-color:#f2bdc5; }

.morning-ops-card:hover {
  transform: translateY(-1px);
  filter: brightness(1.01);
}

.today-first {
  border: 1px solid #e6d9cf;
  border-radius: 24px;
  background: #fffdfb;
  padding: 18px;
  box-shadow: 0 18px 40px #3b211412;
}

.today-first-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.today-first-head .eyebrow {
  margin-top: 0;
}

.today-first-head h3 {
  margin: 3px 0 4px;
  font-size: 28px;
  letter-spacing: -.03em;
}

.today-first-head p {
  margin: 0;
  color: var(--muted);
}

.today-first-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.today-first-grid.small {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin-top: 10px;
}

.today-first-card {
  border: 1px solid var(--line);
  border-left: 6px solid #8fb4c9;
  border-radius: 18px;
  background: #fff;
  padding: 14px;
  text-align: left;
  cursor: pointer;
  color: #1f374b;
  box-shadow: 0 10px 28px #1f374b0c;
  transition: .15s ease;
}

.today-first-card span,
.today-first-card b,
.today-first-card small {
  display: block;
}

.today-first-card span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.today-first-card b {
  margin: 4px 0 2px;
  font-size: 34px;
  line-height: 1;
}

.today-first-card small {
  color: var(--muted);
  line-height: 1.35;
}

.today-first-card.red {
  border-left-color: #d93444;
  background: #fff4f5;
}

.today-first-card.yellow {
  border-left-color: #ffc348;
  background: #fffaf0;
}

.today-first-card.green {
  border-left-color: #4caf4f;
  background: #f6fcf7;
}

.today-first-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px #1f374b17;
}

.today-first-more {
  margin-top: 12px;
}

.today-first-more summary {
  cursor: pointer;
  list-style: none;
  border: 1px dashed #cbbcaf;
  border-radius: 14px;
  background: #fbf6f1;
  color: #6d5849;
  font-weight: 900;
  padding: 11px 13px;
}

.today-first-more summary::-webkit-details-marker {
  display: none;
}

.window-mode-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border-radius: 22px;
  padding: 18px 20px;
  background:
    linear-gradient(90deg, #eaf3ff, #fff 62%),
    #fff;
  border: 1px solid #d7e8f4;
  box-shadow: 0 14px 32px #21354512;
}

.window-mode-panel.active {
  border-color: #94c8e8;
  box-shadow: inset 7px 0 0 #007cbf, 0 14px 32px #21354514;
}

.window-mode-panel .eyebrow {
  margin: 0 0 5px;
  color: #007cbf;
}

.window-mode-panel h3 {
  margin: 0;
  font-size: 20px;
}

.window-mode-panel p {
  margin: 4px 0 0;
  color: #5b6a78;
  font-size: 13px;
  font-weight: 750;
}

.window-mode-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #cfe0eb;
  border-radius: 999px;
  background: #fff;
  padding: 10px 13px;
  font-weight: 900;
  color: #213545;
  cursor: pointer;
  white-space: nowrap;
}

.window-mode-switch:hover {
  border-color: #007cbf;
  box-shadow: 0 8px 18px #007cbf1c;
}

.window-mode-switch input {
  width: 18px;
  height: 18px;
  accent-color: #007cbf;
}

@media (max-width: 1050px) {
  .morning-ops-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .today-first-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .morning-ops {
    border-radius: 18px;
    padding: 14px;
  }

  .morning-ops-head {
    display: grid;
  }

  .morning-ops-grid {
    grid-template-columns: 1fr;
  }

  .today-first-head,
  .today-first-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .window-mode-panel {
    grid-template-columns: 1fr;
  }

  .window-mode-switch {
    justify-content: center;
    white-space: normal;
  }
}

#dashboard-view .compact-cockpit-config {
  padding: 10px 13px !important;
  margin: 12px 0 15px !important;
  border: 1px solid var(--line) !important;
  border-radius: 16px !important;
  background: #f8fbfd !important;
  box-shadow: none !important;
}

#dashboard-view .compact-cockpit-config .panel-title-row {
  align-items: center !important;
}

#dashboard-view .compact-cockpit-config h2 {
  font-size: 15px !important;
  margin: 0 !important;
}

#dashboard-view .compact-cockpit-config p {
  font-size: 11px !important;
  margin: 2px 0 0 !important;
}
