﻿/*
   Touch module stylesheet — shared primitives reused across the touch surface
   (turn board, setup, checkout, tender). Scoped under .touch-shell (the TouchLayout
   wrapper) so it can't bleed into the existing MapleSPA UI. Component .razor.css
   files keep ONLY component-specific layout; these common pieces live here once.
*/

/* Kill double-tap-to-zoom + the legacy tap delay across the whole touch surface (fast
   PIN/keypad/tile taps on a phone otherwise trigger the browser zoom). Pinch-zoom still works. */
.touch-shell { touch-action: manipulation; }

/* ── Shared Core wall-display views (SPC.Blazor TvPickerView / TvSetupView / DisplayView / player) ──
   Those views live in Core and were authored for the café; they read a --touch-* token palette (with
   café-brown fallbacks). Map the tokens onto the salon's slate-and-pink hues so the shared UI wears
   this app's look rather than the café's. The salon touch surface is light-only, matching these
   values. The views' `.touch-glass` cards are already styled below. */
.touch-shell {
    --touch-ink:            #1f2024;
    --touch-muted:          #6b6f76;
    --touch-hint:           #9aa0ad;
    --touch-accent:         #c2185b;
    --touch-on-accent:      #fff;
    --touch-accent-soft:    color-mix(in srgb, var(--touch-accent, #c2185b) 10%, transparent);
    --touch-panel:          rgba(255, 255, 255, 0.58);
    --touch-panel-2:        rgba(255, 255, 255, 0.5);
    --touch-control:        #fff;
    --touch-control-border: #d8d6df;
    --touch-line:           rgba(43, 34, 48, 0.10);
    --touch-frost-border:   rgba(255, 255, 255, 0.6);
    --touch-shadow:         rgba(20, 18, 30, 0.14);
    --touch-toggle-off:     #d8d6df;
    --touch-tile-alt:       #efedf3;
}

/* ── Avatar (round, neutral 1px border; colour identity is shown elsewhere) ── */
.touch-shell .tt-avatar {
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e7e5ea;
    box-sizing: border-box;
    display: block;
}
.touch-shell .tt-avatar--i {
    display: flex; align-items: center; justify-content: center;
    background: #efedf2; color: #6b6f76; font-weight: 700;
}

/* ── Dots (small skill swatches) ── */
.touch-shell .dot {
    width: 10px; height: 10px; border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

/* ── Chips (selectable pills with a colour dot) ── */
.touch-shell .chip {
    -webkit-appearance: none; appearance: none;
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 48px; padding: 0 16px; border-radius: 999px;
    border: 1.5px solid #e3e1e8; background: #fff; color: #33363d;
    font-size: 1rem; font-weight: 600; cursor: pointer;
    touch-action: manipulation; transition: transform 0.05s ease;
}
.touch-shell .chip:active { transform: scale(0.96); }
.touch-shell .chip__dot {
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--c, #9aa0ad); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.touch-shell .chip--on {
    border-color: var(--c, var(--touch-accent, #c2185b));
    background: color-mix(in srgb, var(--c, var(--touch-accent, #c2185b)) 12%, #fff);
    color: #1f2024;
}

/* ── Modal popup (overlay + card + title/sub/foot + neutral buttons) ── */
.touch-shell .picker {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(20, 18, 30, 0.32);
    backdrop-filter: blur(10px) saturate(1.1);
    -webkit-backdrop-filter: blur(10px) saturate(1.1);
    display: flex; align-items: center; justify-content: center;
}
/* iOS-style frosted "sheet": translucent material over the blurred content behind. */
.touch-shell .picker__card {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(30px) saturate(1.8);
    -webkit-backdrop-filter: blur(30px) saturate(1.8);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 22px; padding: 24px;
    min-width: 320px; max-width: 560px; max-height: 80vh; overflow: auto;
    box-shadow: 0 24px 60px rgba(20, 18, 30, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.touch-shell .picker__title { font-size: 1.2rem; font-weight: 700; color: #1f2024; margin-bottom: 8px; }
.touch-shell .picker__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.touch-shell .picker__sub { margin: 4px 0 16px; color: #6b6f76; font-size: 0.95rem; }
.touch-shell .picker__foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.touch-shell .picker__cancel,
.touch-shell .picker__none {
    -webkit-appearance: none; appearance: none;
    min-height: 48px; padding: 0 20px; border-radius: 10px;
    border: 1px solid #e3e1e8; background: #fff; color: #6b6f76;
    font-size: 1rem; font-weight: 600; cursor: pointer;
}

/* ── Acrylic / frosted-glass panel (iOS-style "material"), shared by every touch page that
   floats cards over the attract slideshow (provided by TouchLayout). Apply .touch-glass for the
   standard panel; add a tier modifier for more/less translucency:
     --sheer  big launcher tiles (most see-through)
     (base)   standard content panels
     --solid  dense data panels that must stay readable (e.g. the Floor-TV boards)
   Pair with a border-radius/padding from the component's own class. ── */
.touch-shell .touch-glass {
    background: rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 22px;
    box-shadow: 0 16px 44px rgba(20, 18, 30, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.touch-shell .touch-glass--sheer {
    background: rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    box-shadow: 0 14px 40px rgba(20, 18, 30, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.touch-shell .touch-glass--solid {
    background: rgba(255, 255, 255, 0.80);
    backdrop-filter: blur(26px) saturate(1.7);
    -webkit-backdrop-filter: blur(26px) saturate(1.7);
}

/* The guest's preferred tech, called out above the re-tech chips (a wish, not an assignment),
   and her chip marked — distinct from the selected (chip--on) one. */
.touch-shell .picker__hint { margin: -4px 0 10px; font-size: 0.95rem; font-weight: 700; color: var(--touch-accent, #c2185b); }
.touch-shell .chip--pref { box-shadow: 0 0 0 2px var(--touch-accent, #c2185b) inset; }

/* ── T C L E — the turn-rotation counters (TechTile, and the Turn-details tab's adjust control).
   Quiet stat pairs, not chips: a small grey letter, then the number in its own colour, so managers
   still tell them apart at a glance without four filled badges shouting from every tile. ── */
.touch-shell .ctr { display: inline-flex; align-items: baseline; gap: 3px; font-size: 0.875rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; padding: 0; border-radius: 999px; line-height: 1.4; }
.touch-shell .ctr i { font-style: normal; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.04em; color: #9aa0ad; }
.touch-shell .ctr--t { color: #1d4ed8; }   /* T — turns (blue) */
.touch-shell .ctr--c { color: #047857; }   /* C — customers (green) */
.touch-shell .ctr--l { color: #b45309; }   /* L — last turn (amber) */
.touch-shell .ctr--e { color: color-mix(in srgb, var(--touch-accent, #c2185b) 85%, #000); }   /* E — earnings (pink) */
/* The T counter is a control ([K]): locked it is a tap target for the manager unlock, unlocked it
   sits between a − and a + that each write one half-turn ledger row. A hairline pill marks it tappable. */
.touch-shell .ctr--tap { -webkit-appearance: none; appearance: none; padding: 4px 10px; border: 1px solid rgba(29, 78, 216, 0.28); background: rgba(29, 78, 216, 0.05); font: inherit; font-size: 0.875rem; font-weight: 600; cursor: pointer; touch-action: manipulation; }
.touch-shell .ctr--tap:disabled { cursor: default; }
