/* The look shared by the owner and the admin dashboards. Everything sits under .dash-page so none of it leaks into other pages. */
.dash-page { display: contents; }


/* Ring colours, the same four as the tiles at the top. */
.dash-page .c1 { --c: #C4E07A; }
.dash-page .c2 { --c: #7FCBBE; }
.dash-page .c3 { --c: #9DA1E8; }
.dash-page .c4 { --c: #F09A9C; }
.dash-page .head-note { font-size: 13px; font-weight: 600; color: var(--color-text-muted); }

/* The tiles sit straight on the page, no white card behind them. */
.dash-page .glance.card { background: transparent; border: 0; box-shadow: none; }
.dash-page .glance .card-head { padding: 4px 4px 14px; }
.dash-page .glance-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding: 0 0 6px; }
.dash-page .glance .kpi { container-type: inline-size; min-height: 186px; padding: 22px 26px 22px; gap: 18px; overflow: hidden; border-radius: 30px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 14px 30px rgba(16, 35, 27, 0.07); }
.dash-page .glance .kpi-lime { background: radial-gradient(120% 120% at 0% 0%, #E6F6BC 0%, #D6EEA2 60%, #CDE98F 100%); }
.dash-page .glance .kpi-mint { background: radial-gradient(120% 120% at 0% 0%, #B5E6DE 0%, #9ED9D0 60%, #8DCFC5 100%); }
.dash-page .glance .kpi-lavender { background: radial-gradient(120% 120% at 0% 0%, #CDCFF7 0%, #B9BBF1 60%, #A9ACEA 100%); }
.dash-page .glance .kpi-rose { background: radial-gradient(120% 120% at 0% 0%, #F9C8C8 0%, #F2B1B1 60%, #EBA0A2 100%); }
.dash-page .glance .kpi-top { font-size: 14.5px; font-weight: 600; color: rgba(27, 58, 47, 0.82); }
.dash-page .glance .kpi-chip { background: rgba(255, 255, 255, 0.7); }
.dash-page .kpi-body { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.dash-page .kpi-money { font-size: clamp(24px, 1.9vw, 31px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; white-space: nowrap; }
.dash-page .cur { font-size: 0.55em; font-weight: 700; letter-spacing: 0; opacity: 0.7; margin-right: 2px; }
.dash-page .glance .kpi-note { margin-top: 8px; font-size: 12.5px; font-weight: 600; opacity: 0.72; }

/* Five soft bars in each tile. They are only for looks, the dark one is always the fourth. */
.dash-page .spark { flex: 0 0 auto; height: 76px; display: flex; align-items: flex-end; gap: 5px; }

/* Crisp rounded tops that fade away towards the bottom, like the reference. */
.dash-page .spark span { width: 17px; border-radius: 999px 999px 8px 8px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.22) 55%, rgba(255, 255, 255, 0) 100%); }
.dash-page .spark span.hi { background: linear-gradient(180deg, #123F33 0%, rgba(18, 63, 51, 0.82) 30%, rgba(18, 63, 51, 0.35) 65%, rgba(18, 63, 51, 0) 100%); }
.dash-page .s1 span:nth-child(1) { height: 36%; }
.dash-page .s1 span:nth-child(2) { height: 50%; }
.dash-page .s1 span:nth-child(3) { height: 64%; }
.dash-page .s1 span:nth-child(4) { height: 100%; }
.dash-page .s1 span:nth-child(5) { height: 58%; }
/* With nothing to show (a zero tile) the bars lie flat and faint, so they never look like real numbers. */
.dash-page .spark.is-empty span:nth-child(n) { height: 14%; }
.dash-page .s2 span:nth-child(1) { height: 52%; }
.dash-page .s2 span:nth-child(2) { height: 100%; }
.dash-page .s2 span:nth-child(3) { height: 44%; }
.dash-page .s2 span:nth-child(4) { height: 66%; }
.dash-page .s2 span:nth-child(5) { height: 34%; }
.dash-page .s3 span:nth-child(1) { height: 30%; }
.dash-page .s3 span:nth-child(2) { height: 44%; }
.dash-page .s3 span:nth-child(3) { height: 38%; }
.dash-page .s3 span:nth-child(4) { height: 58%; }
.dash-page .s3 span:nth-child(5) { height: 100%; }
.dash-page .s4 span:nth-child(1) { height: 40%; }
.dash-page .s4 span:nth-child(2) { height: 58%; }
.dash-page .s4 span:nth-child(3) { height: 100%; }
.dash-page .s4 span:nth-child(4) { height: 46%; }
.dash-page .s4 span:nth-child(5) { height: 70%; }

/* A narrow tile gets slimmer bars so the numbers never get squeezed. */

@container (max-width: 300px) {
    .dash-page .spark { gap: 4px; }
    .dash-page .spark span { width: 13px; }
}

@container (max-width: 240px) {
    .dash-page .spark { gap: 3px; }
    .dash-page .spark span { width: 10px; }
}

/* Two cards side by side, then stacked on a narrower page */
.dash-page .dash-row { display: grid; gap: 22px; align-items: stretch; }
.dash-page .dash-row-a { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.dash-page .dash-row-b { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.dash-page .dash-row-c { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.dash-page .dash-row > .card { min-width: 0; }
.dash-page .dash-row-a > .card, .dash-page .dash-row-b > .card, .dash-page .dash-row-c > .card { display: flex; flex-direction: column; }

/* All cards below the tiles are glass: see-through white, a light edge and a soft shadow */
.dash-page .dash-row > .card, .dash-page .card.glass {
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 10px 34px rgba(30, 90, 70, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Sales trend: one soft pill per day. Past a week the pills keep their width and the chart scrolls sideways. */
.dash-page .card-head .head-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dash-page .head-sub { font-size: 13px; font-weight: 500; color: var(--color-text-muted); }
.dash-page .chart-nav { position: relative; z-index: 5; display: flex; gap: 8px; flex: 0 0 auto; }
.dash-page .nav-btn {
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.9); background: rgba(255, 255, 255, 0.7); color: var(--color-ink);
    box-shadow: 0 4px 12px rgba(30, 90, 70, 0.08); transition: background 0.15s ease, opacity 0.15s ease;
}
.dash-page .nav-btn:hover { background: #fff; }
.dash-page .chart-nav[data-start="1"] .nav-prev, .dash-page .chart-nav[data-end="1"] .nav-next { opacity: 0.35; pointer-events: none; }
.dash-page .chart { display: flex; gap: 10px; flex: 1 1 auto; min-height: 380px; padding: 64px 26px 14px; }
.dash-page .y-axis { width: 46px; flex: 0 0 auto; display: flex; flex-direction: column; justify-content: space-between; padding-bottom: 34px; font-size: 12px; font-weight: 600; color: #8DA096; text-align: right; }
.dash-page .y-axis span { height: 0; display: flex; align-items: center; justify-content: flex-end; }
.dash-page .plot { position: relative; flex: 1 1 auto; min-width: 0; }
.dash-page .grid-lines { position: absolute; inset: 0 0 34px 0; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.dash-page .grid-lines i { display: block; height: 0; border-top: 1.5px dashed rgba(12, 61, 48, 0.08); }

/* The scroller reaches 100px above the plot, so a tooltip is never cut off at the top. */
.dash-page .scroller { position: absolute; left: 0; right: 0; top: -100px; bottom: 0; padding-top: 100px; box-sizing: border-box; scrollbar-width: none; overflow: visible; }
.dash-page .scroller::-webkit-scrollbar { display: none; }
.dash-page .scroller.is-scroll {
    overflow-x: auto; overflow-y: hidden; padding-inline: 40px; scroll-snap-type: x proximity; overscroll-behavior-x: contain;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 34px, #000 calc(100% - 34px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 34px, #000 calc(100% - 34px), transparent 100%);
}
.dash-page .bars { height: calc(100% - 34px); display: flex; justify-content: space-around; gap: 12px; }
.dash-page .scroller.is-scroll .bars { width: max-content; min-width: 100%; justify-content: flex-start; gap: 14px; }
.dash-page .bar-col { position: relative; flex: 1 1 0; min-width: 0; max-width: 74px; display: flex; flex-direction: column; outline: none; }
.dash-page .scroller.is-scroll .bar-col { flex: 0 0 56px; max-width: none; scroll-snap-align: center; }
.dash-page .bar-track { flex: 1 1 auto; position: relative; display: flex; align-items: flex-end; border-radius: 999px; overflow: hidden; background: rgba(120, 160, 160, 0.11); transition: background 0.15s ease; }
.dash-page .bar-fill {
    position: relative; width: 100%; border-radius: 999px 999px 0 0; transform-origin: bottom;
    /* Crisp and deeper at the top, fading to nothing at the bottom, like the small bars in the tiles above. */
    background: linear-gradient(180deg, var(--bar) 0%, color-mix(in srgb, var(--bar) 45%, transparent) 55%, transparent 100%);
    transition: filter 0.15s ease;
}

/* Each weekday keeps its own colour. The best day is the same colour, only deeper. */
.dash-page .bar-col { --bar: var(--d); }
.dash-page .bar-col.is-best { --bar: color-mix(in srgb, var(--d) 90%, #0C3D30); }
.dash-page .w1 { --d: #EE9B3F; }
.dash-page .w2 { --d: #D95BD0; }
.dash-page .w3 { --d: #98C236; }
.dash-page .w4 { --d: #35B3A0; }
.dash-page .w5 { --d: #EA6469; }
.dash-page .w6 { --d: #6A6EE0; }
.dash-page .w0 { --d: #3DB26B; }
/* The day total sits just above its bar: small, quiet, same for every day. The best day is a little stronger. */
.dash-page .bar-value {
    position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; pointer-events: none;
    font-size: 11.5px; font-weight: 650; letter-spacing: 0.01em; font-variant-numeric: tabular-nums;
    color: #5E7A6D; transition: opacity 0.12s ease;
}
.dash-page .bar-value.is-zero { color: #B5C4BC; font-weight: 600; }
.dash-page .bar-col.is-best .bar-value { color: var(--color-ink); font-weight: 800; font-size: 12.5px; }
.dash-page .bar-col:hover .bar-value, .dash-page .bar-col:focus-visible .bar-value { opacity: 0; }
.dash-page .bar-col:hover .bar-track, .dash-page .bar-col:focus-visible .bar-track { background: rgba(120, 160, 160, 0.2); }
.dash-page .bar-col:hover .bar-fill, .dash-page .bar-col:focus-visible .bar-fill { filter: saturate(1.15) brightness(1.04); }
.dash-page .bar-label {
    position: absolute; left: 50%; bottom: -30px; transform: translateX(-50%); padding: 3px 10px; border-radius: 999px;
    font-size: 13px; font-weight: 600; color: #8DA096; white-space: nowrap;
}
.dash-page .bar-label.is-today { background: var(--color-ink); color: #fff; }
.dash-page .bar-tip {
    position: absolute; left: 50%; top: -10px; transform: translate(-50%, -100%); z-index: 5;
    display: flex; flex-direction: column; gap: 2px; padding: 10px 16px; border-radius: 16px; white-space: nowrap;
    background: var(--color-ink); color: #fff; box-shadow: 0 12px 26px rgba(12, 61, 48, 0.3);
    opacity: 0; pointer-events: none; transition: opacity 0.12s ease;
}
.dash-page .bar-tip.tip-l { left: 0; transform: translate(0, -100%); }
.dash-page .bar-tip.tip-r { left: auto; right: 0; transform: translate(0, -100%); }
.dash-page .bar-col:hover, .dash-page .bar-col:focus-visible { z-index: 6; }
.dash-page .bar-col:hover .bar-tip, .dash-page .bar-col:focus-visible .bar-tip { opacity: 1; }
.dash-page .tip-day { font-size: 12px; font-weight: 600; opacity: 0.72; }
.dash-page .tip-value { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.dash-page .tip-sub { font-size: 12px; font-weight: 600; opacity: 0.72; }

@media (prefers-reduced-motion: no-preference) {
    /* The grow animations play only on the first load. Changing the period just eases to the new numbers. */
    .dash-page .is-intro .bar-fill { animation: grow 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: calc(var(--i, 0) * 50ms); }
    .dash-page .is-intro .ring-arc { animation: draw 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: calc(var(--i, 0) * 120ms); }
    .dash-page .is-intro .spark span { animation: grow 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
    /* A new period fades in as a whole. Nothing slides from the old bars, so no bar flashes a wrong colour. */
    .dash-page .scroller:not(.is-intro) { animation: dash-in 0.3s ease-out both; }
    .dash-page .ring-arc { transition: stroke-dasharray 0.5s ease, stroke-dashoffset 0.5s ease; }
    .dash-page .dash-in { animation: dash-in 0.35s ease-out both; }
    @keyframes dash-in { from { opacity: 0; } }
    @keyframes grow { from { transform: scaleY(0); } }
    @keyframes draw { from { opacity: 0; } }
}

/* Sales by category: one ring for each category, the arc length is its share */
.dash-page .rings-wrap { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; padding: 16px 28px 28px; }
.dash-page .ring-legend { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.dash-page .ring-legend li { min-width: 0; }
.dash-page .ring-name { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--color-text-nav); }
.dash-page .ring-name .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-page .ring-pct { display: block; margin-top: 3px; padding-left: 24px; font-size: 26px; font-weight: 700; letter-spacing: 0; font-variant-numeric: tabular-nums; line-height: 1.1; color: var(--color-text); }
.dash-page .swatch { width: 14px; height: 14px; border-radius: 50%; background: var(--c); flex: 0 0 auto; }
.dash-page .rings { flex: 0 0 auto; width: 100%; max-width: 250px; aspect-ratio: 1; transform: rotate(-90deg); }
.dash-page .rings circle { fill: none; stroke-width: 16; }
.dash-page .ring-track { stroke: rgba(120, 160, 160, 0.13); }
.dash-page .ring-arc { stroke: var(--c); stroke-linecap: round; }
.dash-page .ring-arc.is-full { stroke-linecap: butt; }

/* Top selling */
.dash-page .top-list { list-style: none; margin: 0; padding: 4px 26px 20px; }
.dash-page .top-list li { display: flex; align-items: flex-start; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--color-border-soft); }
.dash-page .top-list li:last-child { border-bottom: 0; }
.dash-page .rank { width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; background: var(--tile-lime); color: var(--tile-ink); }
.dash-page .rank.r1 { background: var(--color-ink); color: #fff; }
.dash-page .rank.r2 { background: var(--tile-mint); }
.dash-page .rank.r3 { background: var(--tile-lavender); }
.dash-page .rank.r4 { background: var(--tile-rose); }
.dash-page .top-body { flex: 1 1 auto; min-width: 0; }
.dash-page .top-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.dash-page .top-name { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-page .top-money { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dash-page .top-sub { margin-top: 2px; font-size: 13px; color: var(--color-text-muted); }
.dash-page .top-bar { margin-top: 9px; height: 8px; border-radius: 999px; background: rgba(120, 160, 160, 0.17); overflow: hidden; }
.dash-page .top-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #8FD8CC, #2E7D63); }

/* Needs your attention */
.dash-page .attention { display: flex; flex-direction: column; gap: 22px; padding: 6px 26px 24px; }
.dash-page .attention h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 14px; font-weight: 800; color: var(--color-text-nav); }
.dash-page .count { margin-left: auto; min-width: 26px; padding: 2px 9px; border-radius: 999px; text-align: center; font-size: 12.5px; font-weight: 800; background: var(--color-success-bg); color: var(--color-success-ink); }
.dash-page .count.is-warn { background: var(--color-warning-bg); color: var(--color-warning-ink); }
.dash-page .alert-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.dash-page .alert-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.28); border: 1px solid rgba(255, 255, 255, 0.7); }
.dash-page .alert-main { display: flex; flex-direction: column; min-width: 0; }
.dash-page .alert-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-page .alert-sub { font-size: 13px; color: var(--color-text-muted); }
.dash-page .all-good { margin: 0; padding: 12px 14px; border-radius: 16px; background: var(--color-success-bg); color: var(--color-success-ink); font-weight: 600; font-size: 14px; }

/* The short version of the alerts: one row each, the rows share the card's height. The full lists live on the alerts page. */
.dash-page .attn-list { flex: 1 1 auto; display: grid; grid-auto-rows: minmax(84px, 1fr); gap: 12px; padding: 6px 26px 24px; }
.dash-page .attn-row {
    display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 20px; color: inherit; text-decoration: none;
    background: rgba(255, 255, 255, 0.28); border: 1px solid rgba(255, 255, 255, 0.7); transition: background 0.15s ease, transform 0.15s ease;
}
.dash-page .attn-row:hover { background: rgba(255, 255, 255, 0.6); transform: translateY(-1px); text-decoration: none; }
.dash-page .attn-icon { flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--color-success-bg); color: var(--color-success-ink); }
.dash-page .attn-icon.is-warn { background: var(--color-warning-bg); color: var(--color-warning-ink); }
.dash-page .attn-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dash-page .attn-text strong { font-size: 15px; font-weight: 800; }
.dash-page .attn-text span { font-size: 13.5px; color: var(--color-text-muted); line-height: 1.4; }
.dash-page .card-head .btn { flex: 0 0 auto; white-space: nowrap; }
.dash-page .attn-row .count { margin-left: 0; flex: 0 0 auto; font-size: 15px; padding: 4px 12px; }

/* Shown when nothing needs attention, centred in the card so it never looks half empty. */
.dash-page .card.is-clear { display: flex; flex-direction: column; }
.dash-page .all-clear { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 28px 26px 40px; text-align: center; }
.dash-page .all-clear-mark { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 999px; background: var(--color-success-bg); color: var(--color-success-ink); box-shadow: 0 0 0 10px rgba(221, 243, 232, 0.5); margin-bottom: 8px; }
.dash-page .all-clear strong { font-size: 20px; font-weight: 800; }
.dash-page .all-clear p { margin: 0; max-width: 300px; font-size: 14px; font-weight: 600; color: var(--color-text-muted); line-height: 1.5; }

@media (max-width: 1250px) {
    .dash-page .glance-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dash-page .dash-row-a, .dash-page .dash-row-b, .dash-page .dash-row-c { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
    .dash-page .glance .card-head { flex-direction: column; align-items: flex-start; }
    .dash-page .glance-tiles { gap: 12px; }
    .dash-page .glance .kpi { min-height: 160px; padding: 16px; border-radius: 26px; }
    .dash-page .kpi-money { font-size: 22px; }
    .dash-page .kpi-body { flex-direction: column; align-items: flex-start; }
    .dash-page .spark { height: 52px; gap: 4px; }
    .dash-page .spark span { width: 12px; }
    .dash-page .chart { min-height: 320px; padding: 70px 14px 10px; gap: 6px; }
    .dash-page .y-axis { width: 38px; font-size: 11px; }
    .dash-page .bars { gap: 6px; }
    .dash-page .rings-wrap, .dash-page .top-list, .dash-page .attention, .dash-page .attn-list { padding-left: 18px; padding-right: 18px; }
}

/* Rows inside the glass cards are glass too, not solid white. A wide table has one glass strip per row. */

@container (min-width: 1001px) {
    .dash-page .glass .table td { background: rgba(255, 255, 255, 0.28); border-top-color: rgba(255, 255, 255, 0.7); border-bottom-color: rgba(255, 255, 255, 0.7); }
    .dash-page .glass .table td:first-child { border-left-color: rgba(255, 255, 255, 0.7); }
    .dash-page .glass .table td:last-child { border-right-color: rgba(255, 255, 255, 0.7); }
    .dash-page .glass .table tbody tr:hover td { background: rgba(255, 255, 255, 0.5); }
}

/* A narrow table turns each row into a small card, so the glass goes on the card and the cells stay clear. */

@container (max-width: 1000px) {
    .dash-page .glass .table tr { background: rgba(255, 255, 255, 0.28); border-color: rgba(255, 255, 255, 0.7); }
    .dash-page .glass .table tbody tr:hover { background: rgba(255, 255, 255, 0.5); }
}

@media (max-width: 900px) {
}

/* ----- the manager's dashboard ----- */

.mgr-page .mgr-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.mgr-page .mgr-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; }
.mgr-page .glance-tiles a.kpi { color: inherit; text-decoration: none; }
.mgr-page .glance-tiles a.kpi:hover { transform: translateY(-2px); }
/* The hours chart is a report panel, so it takes the same glass as the cards beside it. */
.mgr-page .dash-row > .rp-panel { display: flex; flex-direction: column; justify-content: flex-start; gap: 6px; padding-bottom: 14px; }

@media (max-width: 900px) {
    .mgr-page .mgr-actions .btn { flex: 1 1 calc(50% - 6px); padding: 0 14px; }
    .mgr-page .mgr-actions .btn:first-child { flex-basis: 100%; }
}
.mgr-page .kpi.is-long .spark { display: none; }
/* The two cards in a row are the same height. The hours chart sits in the middle of its card, and the rows beside it share the height. */
.mgr-page .dash-row > .rp-panel .rp-svg { margin-block: auto; }

/* Choosing the four tiles at the top of the owner dashboard. */
.dash-page .pill-icon { display: inline-flex; align-items: center; gap: 7px; }
.dash-page .kpi.is-long .spark { display: none; }
.dash-page .glance-tiles a.kpi { color: inherit; text-decoration: none; }
.dash-page .glance-tiles a.kpi:not([href]) { cursor: default; }
.dash-page .glance-tiles a.kpi[href]:hover { transform: translateY(-2px); }
.dash-page .head-actions { display: flex; align-items: center; gap: 12px; }
.tile-picker { position: relative; z-index: 6; overflow: visible; margin: 0 0 20px; padding: 22px 24px 18px; border-radius: 28px; display: flex; flex-direction: column; gap: 18px;
    background: rgba(255, 255, 255, 0.86); border: 1px solid rgba(255, 255, 255, 0.95); box-shadow: 0 16px 36px rgba(16, 35, 27, 0.07); animation: tile-picker-in 0.22s ease both; }
@keyframes tile-picker-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tile-picker { animation: none; } }
.tile-picker-head { display: flex; align-items: center; gap: 12px; }
.tile-picker-mark { flex: 0 0 auto; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--color-success-bg, #DDF3E8); color: var(--color-ink, #0C3D30); }
.tile-picker-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tile-picker-title strong { font-size: 16.5px; font-weight: 800; letter-spacing: -0.01em; }
.tile-picker-title span { font-size: 13px; font-weight: 600; color: var(--color-text-muted); }
.tile-picker-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile-picker-slot { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 14px 14px 12px; border-radius: 20px; background: rgba(247, 251, 249, 0.9); border: 1px solid var(--color-border-soft, rgba(16, 35, 27, 0.08)); }
.slot-top { display: flex; align-items: center; gap: 8px; }
.tile-picker-slot label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-muted); }
.tile-picker-slot label::before { content: ""; width: 9px; height: 9px; border-radius: 999px; background: var(--dot, #9ED9D0); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot, #9ED9D0) 28%, transparent); }
.tile-picker-slot.slot-lime { --dot: #BFE472; }
.tile-picker-slot.slot-mint { --dot: #5CC3B3; }
.tile-picker-slot.slot-lavender { --dot: #8F93E6; }
.tile-picker-slot.slot-rose { --dot: #EE8F92; }
.tile-picker-slot small { min-height: 2.8em; font-size: 12px; font-weight: 600; color: var(--color-text-muted); line-height: 1.4; }
.tile-picker-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--color-border-soft, rgba(16, 35, 27, 0.08)); }
.tile-picker-actions .grow { flex: 1 1 auto; }

@media (max-width: 1250px) {
    .tile-picker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .tile-picker { padding: 16px; border-radius: 22px; }
    .tile-picker-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .tile-picker-slot small { min-height: 0; }
    .tile-picker-actions .grow { display: none; }
    .tile-picker-actions .btn { flex: 1 1 auto; }
}

/* Inside a Settings card the picker has no box of its own, because the card is the box. */
.tile-picker.is-flat { padding: 0; margin: 0; background: none; border: 0; box-shadow: none; animation: none; border-radius: 0; }
/* Settings has less room than the dashboard, so two tiles to a row keeps every name readable. */
.tile-picker.is-flat { margin-top: 18px; }
.tile-picker.is-flat .tile-picker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 600px) {
    .tile-picker.is-flat .tile-picker-grid { grid-template-columns: minmax(0, 1fr); }
}

/* The loading shapes. They reuse the shimmer lines from reports.css and fade in after a short wait, so a fast load never flashes them. */
.dash-page .dsk { display: contents; }
.dash-page .dsk > * { animation: dsk-in 0.4s ease 0.3s both; }
@keyframes dsk-in { from { opacity: 0; } }
.dash-page .dsk-tile { height: 186px; border-radius: 30px; }
/* The four tiles wear a faint hint of their own colours, so the page already looks like the real one. */
.dash-page .dsk-tile:nth-child(1) { background-image: linear-gradient(90deg, #E3F1BE 25%, #EFF8D6 50%, #E3F1BE 75%); background-size: 200% 100%; }
.dash-page .dsk-tile:nth-child(2) { background-image: linear-gradient(90deg, #D3ECE5 25%, #E4F4F0 50%, #D3ECE5 75%); background-size: 200% 100%; }
.dash-page .dsk-tile:nth-child(3) { background-image: linear-gradient(90deg, #DFE1F5 25%, #EDEEFA 50%, #DFE1F5 75%); background-size: 200% 100%; }
.dash-page .dsk-tile:nth-child(4) { background-image: linear-gradient(90deg, #F6DCDD 25%, #FBEAEA 50%, #F6DCDD 75%); background-size: 200% 100%; }
.dash-page .dsk-card { padding: 22px 26px; display: flex; flex-direction: column; gap: 16px; }
.dash-page .dsk-chart { height: 250px; }
.dash-page .dsk-ring { width: 190px; height: 190px; margin: 6px auto; border-radius: 50%; }
@media (max-width: 900px) { .dash-page .glance .dsk-tile { height: 160px; border-radius: 26px; } }
