/* Casona: limestone, courtyard greenery and brushed brass. */
:root[data-theme="light"] {
  --canvas: #f1ede5;
  --surface: #fffcf6;
  --surface-2: #f4efe6;
  --surface-3: #ede5d8;
  --input: #fffcf7;
  --ink: #252921;
  --muted: #5c5a50;
  --line: #ded6c8;
  --stroke: #887e6c;
  --green: #335246;
  --accent: #335246;
  --accent-soft: #eee6d9;
  --selected: #e2ebe1;
  --button: #28483c;
  --button-ink: #fffdf6;
  --focus: #376454;
  --veil: #fffcf6eb;
  --shade: #24251e66;
  --series-wallet: #476d5a;
  --series-card: #a4653d;
}
:root[data-theme="dark"] {
  --canvas: #151713;
  --surface: #1e211b;
  --surface-2: #272a22;
  --surface-3: #303429;
  --input: #171a15;
  --ink: #f5efe4;
  --muted: #c0b8a8;
  --line: #3d4135;
  --stroke: #857e6e;
  --green: #eed2a1;
  --accent: #eed2a1;
  --accent-soft: #343026;
  --selected: #3a3224;
  --button: #eed2a1;
  --button-ink: #262115;
  --focus: #f3ce89;
  --veil: #1e211bec;
  --shade: #080b07a6;
  --series-wallet: #a8bd9c;
  --series-card: #d9a579;
}
:root[data-theme] .casona-panel .sidebar .nav button.active {
  box-shadow: inset 0 0 0 1px color-mix(in srgb,var(--accent),transparent 79%);
}
:root[data-theme] .casona-panel .metric-icon {
  color: var(--accent);
}
:root[data-theme] .casona-panel #view-body:has(>.dashboard-hero) > .stock-alert-banner:not(.has-alerts) {
  padding-block: 5px;
  margin-bottom: 14px;
}
@media (min-width: 701px) {
  :root[data-theme] .casona-panel #view-body:has(>.dashboard-hero) > .stock-alert-banner:not(.has-alerts) > div {
    display: flex;
    align-items: baseline;
    gap: 12px;
  }
}

/* One visual moment at the entrance. The working panels below keep their cadence. */
:root[data-theme] .hero.dashboard-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0,1fr);
  align-items: end;
  min-height: clamp(280px,34vw,370px);
  border: 0;
  border-radius: 26px;
  background: #26241b;
  color: #fff9ed;
}
.dashboard-hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  min-height: 0;
}
.dashboard-hero-photo img {
  object-position: 56% 56%;
}
.dashboard-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(91deg,#181b13f8 0%,#1b1c14ec 24%,#1819138a 52%,#14150e0d 84%),
    linear-gradient(0deg,#17130d75,transparent 55%);
}
.dashboard-hero-copy {
  max-width: 640px;
  align-self: end;
  padding: clamp(24px,4.5vw,56px);
}
:root[data-theme] .dashboard-hero h2 {
  max-width: 15ch;
  margin: 0;
  font: 400 clamp(41px,5.5vw,76px)/.98 "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  letter-spacing: -.045em;
  text-wrap: balance;
}
:root[data-theme] .dashboard-hero .dashboard-total-label {
  display: block;
  margin-top: 24px;
  color: #f5e5ca;
  font-size: 13px;
}
.dashboard-total {
  display: block;
  margin-top: 2px;
  color: #fff9ed;
  font-size: clamp(27px,4vw,44px);
  line-height: 1.16;
  font-weight: 680;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}
:root[data-theme] .dashboard-hero .dashboard-meta {
  margin-top: 8px;
  color: #efe3ce;
  font-size: 13px;
  line-height: 1.45;
}
:root[data-theme] body:not(.pos-mode) .dashboard-metrics {
  grid-template-columns: repeat(3,minmax(0,1fr));
}
:root[data-theme] body:not(.pos-mode) .dashboard-metrics .metric {
  padding-block: clamp(14px,2vw,24px);
  border-radius: 17px;
}
.dashboard-insights .chart {
  min-height: 162px;
  border-color: var(--line);
  background: repeating-linear-gradient(0deg,transparent 0,transparent calc(25% - 1px),var(--line) calc(25% - 1px),var(--line) 25%);
}
:root[data-theme] .dashboard-insights .bar {
  background: var(--series-wallet);
  border-radius: 5px 5px 2px 2px;
}
:root[data-theme] .dashboard-insights .bar.secondary { background: var(--series-card); }
:root[data-theme] .dashboard-insights .chart-legend span:first-child i { background: var(--series-wallet)!important; }
:root[data-theme] .dashboard-insights .chart-legend span:last-child i { background: var(--series-card)!important; }

/* In operational screens, the contents of the task are the visual focal points. */
:root[data-theme] .pos-mode .op-product-add img { object-position: center 54%; }
:root[data-theme] .pos-mode .op-total > strong {
  font-size: clamp(32px,3.3vw,40px);
  letter-spacing: -.045em;
}
:root[data-theme] .pos-mode .op-payment {
  background: var(--surface-2);
}
:root[data-theme] .kitchen-pro .prep-column-title > span:last-child {
  min-width: 26px;
  padding: 3px 8px;
  border-radius: 8px;
  background: var(--surface-3);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
:root[data-theme] .customer-wallet {
  background: linear-gradient(120deg,#355347,#1b3028 80%);
  border-color: #63806c;
}
@media (min-width: 701px) and (max-height: 800px) {
  :root[data-theme] .hero.dashboard-hero { min-height: 304px; }
  .dashboard-hero-copy { padding-block: 32px; }
}
@media (max-width: 700px) {
  :root[data-theme] .hero.dashboard-hero {
    min-height: 286px;
    border-radius: 21px;
  }
  .dashboard-hero-copy { padding: 24px; }
  .dashboard-hero::after {
    background: linear-gradient(0deg,#1c1a12fa 0%,#1b1911e8 28%,#211d1477 65%,#17140d29),
      linear-gradient(90deg,#1d1a115c,transparent 84%);
  }
  .dashboard-hero-photo img { object-position: 50% 42%; }
  :root[data-theme] .dashboard-hero h2 { font-size: clamp(37px,9.5vw,55px); }
  :root[data-theme] .dashboard-hero .dashboard-total-label { margin-top: 16px; }
  :root[data-theme] body:not(.pos-mode) .dashboard-metrics {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .dashboard-metrics .metric:first-child { grid-column: 1 / -1; }
  .dashboard-insights .chart { padding-inline: 3px; gap: 4px; }
  .dashboard-insights .bar { width: clamp(5px,2vw,13px); }
}
