/* Warm & Friendly dashboard polish
   Dashboard-specific rhythm and hierarchy. The product theme still owns the
   interface; client branding remains limited to the stable branding shell. */

.dashboard-hero,
.dashboard-messages-section,
.my-shifts-section,
.today-actions-section,
.training-section {
  max-width: 100%;
}

/* Keep the welcome card expressive, but make it feel like a concise product
   header rather than a large marketing banner. */
.dashboard-hero {
  min-height: 148px !important;
  padding: 24px 28px !important;
  margin-bottom: 12px !important;
  border-radius: 22px !important;
  box-shadow: 0 10px 28px rgba(91, 69, 45, .085) !important;
}

.dashboard-hero::after {
  width: 208px !important;
  height: 208px !important;
  right: -54px !important;
  bottom: -82px !important;
  opacity: .88;
}

.dashboard-hero .eyebrow {
  font-size: .69rem !important;
  letter-spacing: .09em !important;
}

.dashboard-hero h1 {
  margin: 4px 0 6px !important;
  font-size: clamp(1.75rem, 3.6vw, 2.35rem) !important;
  line-height: 1.08 !important;
}

.dashboard-hero .lead {
  font-size: .94rem !important;
}

/* Dashboard sections use tighter typography than task pages. The dashboard is
   a glanceable launchpad; detail lives on the destination screens. */
.my-shifts-section,
.today-actions-section,
.training-section,
.dashboard-messages-section {
  margin-top: 12px !important;
  margin-bottom: 12px !important;
}

.my-shifts-section .panel-heading,
.today-actions-section .section-heading,
.training-section .section-heading {
  align-items: center !important;
  margin-bottom: 9px !important;
  gap: 12px;
}

.my-shifts-section .panel-heading h2,
.today-actions-section .section-heading h2,
.training-section .section-heading h2 {
  margin: 2px 0 0 !important;
  font-size: 1.14rem !important;
  line-height: 1.15 !important;
  letter-spacing: -.018em !important;
}

.my-shifts-section .eyebrow,
.today-actions-section .eyebrow,
.training-section .eyebrow {
  font-size: .66rem !important;
  letter-spacing: .085em !important;
}

.my-shifts-section .text-link,
.today-actions-section .text-link {
  flex: 0 0 auto;
  color: var(--forest) !important;
  font-size: .8rem;
  font-weight: 750;
}

.today-actions-section .section-heading .muted {
  margin: 3px 0 0 !important;
  max-width: 36rem;
  font-size: .8rem !important;
  line-height: 1.35;
}

/* Messages becomes a deliberate compact dashboard control rather than another
   large card competing with the operational information below it. */
.dashboard-message-tile {
  min-height: 52px !important;
  padding: 8px 12px 8px 9px !important;
  color: var(--ink) !important;
  background: var(--hub-surface) !important;
  border: 1px solid var(--hub-border) !important;
  border-radius: 15px !important;
  box-shadow: 0 3px 12px rgba(64, 52, 39, .045) !important;
  font-size: .92rem;
  font-weight: 760;
  transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease, background-color .14s ease;
}

.dashboard-message-tile > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.dashboard-message-tile > span:first-child::before {
  content: "✉";
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 11px;
  background: var(--sage-pale);
  color: var(--forest);
  font-size: .94rem;
  font-weight: 800;
}

.dashboard-message-tile:hover,
.dashboard-message-tile:focus-visible {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--green) 30%, var(--hub-border)) !important;
  background: var(--hub-surface) !important;
  box-shadow: 0 7px 18px rgba(64, 52, 39, .075) !important;
}

.dashboard-message-tile-end {
  gap: 8px !important;
}

.dashboard-message-badge {
  min-width: 23px;
  height: 23px;
  padding: 0 7px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--orange) !important;
  color: #fff !important;
  border: 2px solid var(--hub-surface) !important;
  font-size: .7rem;
  font-weight: 850;
}

.dashboard-message-chevron {
  color: var(--muted) !important;
  font-size: 1.15rem !important;
}

/* Rota card. Empty states are intentionally compact so an empty dashboard does
   not become a stack of oversized blank panels. */
.my-shifts-card {
  padding: 15px 16px !important;
  background: var(--hub-surface) !important;
  box-shadow: 0 4px 14px rgba(64, 52, 39, .05) !important;
}

.my-shifts-card .panel-heading {
  margin-bottom: 0 !important;
}

.shift-empty {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 11px;
  row-gap: 1px;
  align-items: center;
  margin-top: 10px;
  padding: 11px 0 0 !important;
  border-top: 1px solid var(--hub-border);
}

.shift-empty::before {
  content: "▦";
  grid-column: 1;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--mint);
  color: var(--forest);
  font-size: .9rem;
  font-weight: 900;
}

.shift-empty strong {
  grid-column: 2;
  grid-row: 1;
  margin: 0 !important;
  color: var(--ink) !important;
  font-size: .91rem;
  line-height: 1.25;
}

.shift-empty p {
  grid-column: 2;
  grid-row: 2;
  margin: 2px 0 0 !important;
  color: var(--muted) !important;
  font-size: .78rem;
  line-height: 1.35;
}

.shift-empty .button {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  min-height: 34px !important;
  padding: 7px 11px !important;
  border-radius: 10px !important;
  font-size: .78rem !important;
  box-shadow: none !important;
}

.my-shifts-list {
  gap: 0 !important;
  margin-top: 8px !important;
}

.my-shift-row {
  min-height: 58px;
  padding: 10px 4px !important;
  border-top-color: var(--hub-border) !important;
  border-radius: 10px !important;
}

.my-shift-date {
  font-size: .82rem;
}

.my-shift-main strong {
  font-size: .9rem;
}

.my-shift-main small {
  font-size: .77rem;
}

/* Today's actions uses a calm success-style empty state. Assigned work remains
   more prominent through the existing action rows. */
.today-actions-empty {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: 11px;
  row-gap: 2px;
  align-items: center;
  padding: 13px 15px !important;
  background: var(--hub-surface) !important;
  border-color: var(--hub-border) !important;
  box-shadow: 0 4px 14px rgba(64, 52, 39, .045) !important;
}

.today-actions-empty::before {
  content: "✓";
  grid-column: 1;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sage-pale);
  color: var(--forest);
  font-size: .94rem;
  font-weight: 900;
}

.today-actions-empty strong {
  grid-column: 2;
  margin: 0 !important;
  font-size: .91rem;
  line-height: 1.25;
}

.today-actions-empty p {
  grid-column: 2;
  margin: 0 !important;
  color: var(--muted) !important;
  font-size: .78rem;
  line-height: 1.35;
}

.today-actions-list {
  gap: 10px !important;
}

.today-shift-group {
  padding: 14px 15px !important;
  background: var(--hub-surface) !important;
  box-shadow: 0 4px 14px rgba(64, 52, 39, .05) !important;
}

.today-form-row {
  min-height: 50px;
  padding-top: 9px !important;
  padding-bottom: 9px !important;
}

/* Training follows the same information density. Completion is reassuring,
   but it should not occupy half a screen. */
.training-section .section-heading > .muted {
  font-size: .76rem !important;
  font-weight: 700;
  white-space: nowrap;
}

.training-empty {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: 11px;
  row-gap: 2px;
  align-items: center;
  padding: 13px 15px !important;
  box-shadow: 0 4px 14px rgba(64, 52, 39, .045) !important;
}

.training-empty::before {
  content: "✓";
  grid-column: 1;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sage-pale);
  color: var(--forest);
  font-size: .94rem;
  font-weight: 900;
}

.training-empty h3 {
  grid-column: 2;
  margin: 0 !important;
  font-size: .91rem !important;
  line-height: 1.25;
}

.training-empty p {
  grid-column: 2;
  margin: 0 !important;
  font-size: .78rem !important;
  line-height: 1.35;
}

.training-list {
  gap: 9px !important;
}

.training-card {
  border-radius: 14px !important;
  box-shadow: 0 4px 14px rgba(64, 52, 39, .05) !important;
}

.training-document {
  min-height: 54px;
  padding: 11px 14px !important;
}

/* Dark mode preserves the same hierarchy rather than becoming a separate
   layout. */
html.dark-mode .dashboard-message-tile,
html.dark-mode .my-shifts-card,
html.dark-mode .today-actions-empty,
html.dark-mode .today-shift-group,
html.dark-mode .training-empty,
html.dark-mode .training-card {
  background: var(--hub-surface) !important;
  border-color: var(--hub-border) !important;
}

html.dark-mode .dashboard-message-tile > span:first-child::before,
html.dark-mode .shift-empty::before,
html.dark-mode .today-actions-empty::before,
html.dark-mode .training-empty::before {
  background: var(--sage-pale) !important;
  color: #c6d39b !important;
}

html.dark-mode .shift-empty {
  border-top-color: var(--hub-border);
}

@media (max-width: 700px) {
  .dashboard-hero {
    min-height: 128px !important;
    padding: 18px 19px !important;
    margin-bottom: 10px !important;
    border-radius: 18px !important;
  }

  .dashboard-hero::after {
    width: 180px !important;
    height: 180px !important;
    right: -62px !important;
    bottom: -78px !important;
  }

  .dashboard-hero h1 {
    font-size: 1.68rem !important;
  }

  .dashboard-hero .lead {
    font-size: .88rem !important;
  }

  .dashboard-messages-section,
  .my-shifts-section,
  .today-actions-section,
  .training-section {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
  }

  .dashboard-message-tile {
    min-height: 50px !important;
  }

  .my-shifts-card {
    padding: 13px 14px !important;
  }

  .my-shifts-section .panel-heading h2,
  .today-actions-section .section-heading h2,
  .training-section .section-heading h2 {
    font-size: 1.08rem !important;
  }

  .shift-empty {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    column-gap: 9px;
  }

  .shift-empty::before,
  .today-actions-empty::before,
  .training-empty::before {
    width: 32px;
    height: 32px;
  }

  .shift-empty p,
  .today-actions-empty p,
  .training-empty p {
    font-size: .74rem !important;
  }

  .shift-empty .button {
    padding: 6px 9px !important;
  }
}

@media (max-width: 430px) {
  .today-actions-section .section-heading {
    align-items: flex-start !important;
  }

  .today-actions-section .section-heading .text-link {
    padding-top: 2px;
  }

  .shift-empty {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .shift-empty .button {
    grid-column: 2;
    grid-row: 3;
    justify-self: start;
    margin-top: 7px;
  }
}
