/* ShishaMix admin. One stylesheet built on the palette of the guest site (shishamix.az):
   dark by default, a warm light theme behind html[data-theme="light"]. Loaded after Bootstrap. */

/* ---------- Tokens ---------- */
:root {
    --bg:#0d0b09; --surface:#15110d; --surface-2:#1d1812; --surface-3:#262017;
    --line:#ffeed617; --line-strong:#ffeed62e;
    --text:#f3ede4; --text-2:#f3ede4a3; --text-3:#f3ede46b;
    --gold:#c9a46a; --gold-light:#e2c28c; --gold-10:#c9a46a1a; --on-gold:#0d0b09;
    --danger:#f08a7e; --success:#8fcf9f; --warn:#e8c071;
    --field:#1d1812; --overlay:#000000a6; --shadow:0 18px 48px #00000059;
    --bar:#0d0b09cc;
    --radius-sm:10px; --radius:14px; --radius-lg:18px;
    /* The guest site's main button (peach) and its card sheen and selection glow. */
    --peach:#ebc79e; --peach-dark:#ddb386; --on-peach:#0d0b09;
    --sheen:linear-gradient(180deg,#fff0dc09,#fff0dc04);
    --glow:0 0 0 1px #c9a46a8c, 0 8px 30px #c9a46a1f;
    color-scheme:dark;
}
:root[data-theme="light"] {
    --bg:#f7f4ee; --surface:#ffffff; --surface-2:#f2ede3; --surface-3:#e9e1d2;
    --line:#e3dacb; --line-strong:#d3c6ae;
    --text:#241d15; --text-2:#6b5f4f; --text-3:#9a8d79;
    --gold:#8a6624; --gold-light:#6b4e17; --gold-10:#8a662414; --on-gold:#ffffff;
    --danger:#b3392b; --success:#2d6a3e; --warn:#7a5a12;
    --field:#ffffff; --overlay:#241d1566; --shadow:0 16px 40px #3a2c1a22;
    --bar:#f7f4eecc;
    --peach:#ebc79e; --peach-dark:#ddb386; --on-peach:#241d15;
    --sheen:linear-gradient(180deg,#ffffff,#ffffff);
    --glow:0 0 0 1px #8a66248c, 0 8px 24px #8a66241f;
    color-scheme:light;
}
/* Names of the previous theme, kept so that nothing outside this file breaks. */
:root, :root[data-theme="light"] { --ink:var(--text); --muted:var(--text-2); --accent:var(--gold); --accent-dark:var(--gold-light); --paper:var(--bg); --sidebar:var(--surface); }

/* ---------- Base ---------- */
* { box-sizing:border-box; }
html, body { margin:0; min-height:100%; background:var(--bg); color:var(--text); font-family:'Montserrat','Segoe UI',system-ui,sans-serif; font-size:14px; font-weight:400; -webkit-font-smoothing:antialiased; }
body { transition:background-color .2s, color .2s; }
a { color:var(--gold); }
a:hover { color:var(--gold-light); }
a, button, input, select, textarea { -webkit-tap-highlight-color:transparent; }
:focus-visible { outline:2px solid var(--gold); outline-offset:3px; }
h1,h2,h3,h4 { font-weight:300; letter-spacing:.02em; color:var(--text); }
hr { border-color:var(--line); opacity:1; }
code { color:var(--gold-light); background:var(--surface-2); padding:1px 6px; border-radius:6px; font-size:12px; }
::selection { background:var(--gold); color:var(--on-gold); }
.skip-link { position:fixed; top:-80px; left:16px; z-index:300; background:var(--surface); color:var(--text); border:1px solid var(--line); border-radius:var(--radius-sm); padding:12px; }
.skip-link:focus { top:16px; }
.text-muted,.form-text { color:var(--text-2)!important; font-size:12px; }
.text-danger { color:var(--danger)!important; font-size:12px; }
.validation-summary-valid { display:none; }

/* Thin scrollbars in the theme colors */
* { scrollbar-width:thin; scrollbar-color:var(--surface-3) transparent; }
::-webkit-scrollbar { width:8px; height:8px; }
::-webkit-scrollbar-button { display:none; }
::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb { background:var(--surface-3); border-radius:4px; }
::-webkit-scrollbar-thumb:hover { background:var(--line-strong); }

/* ---------- Layout ---------- */
.admin-layout { min-height:100vh; }
.sidebar { width:260px; position:fixed; inset:0 auto 0 0; z-index:100; display:flex; flex-direction:column; background:var(--surface); border-right:1px solid var(--line); color:var(--text); }
.sidebar-header { padding:26px 22px 20px; }
.sidebar-brand { display:flex; align-items:center; gap:12px; font-size:20px; font-weight:300; letter-spacing:.06em; color:var(--gold); text-decoration:none; }
.sidebar-brand:hover { color:var(--gold-light); }
.brand-logo { height:34px; width:auto; flex-shrink:0; filter:drop-shadow(0 0 6px #c9a46a55); }
:root[data-theme="light"] .brand-logo { filter:drop-shadow(0 0 1px #8a662480); }
.brand-caption { display:block; margin:12px 0 0; font-size:9px; font-weight:500; letter-spacing:.24em; color:var(--text-3); }
.sidebar-nav { flex:1; list-style:none; padding:4px 12px 12px; margin:0; overflow-y:auto; }
.nav-item { margin:2px 0; }
.sidebar-nav .nav-link { position:relative; display:flex; align-items:center; gap:12px; padding:10px 12px; border-radius:var(--radius-sm); color:var(--text-2); font-size:13.5px; letter-spacing:.02em; text-decoration:none; transition:background .15s, color .15s; }
.sidebar-nav .nav-link:hover { background:var(--surface-2); color:var(--text); }
.sidebar-nav .nav-link.active { background:var(--gold-10); color:var(--gold); }
.sidebar-nav .nav-link.active::before { content:""; position:absolute; left:0; top:9px; bottom:9px; width:3px; border-radius:3px; background:var(--gold); }
.sidebar-nav .nav-business-label { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:16px 12px 6px; color:var(--text-3); font-size:10px; font-weight:500; letter-spacing:.2em; text-transform:uppercase; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sidebar-nav .nav-admin-item { margin-top:10px; border-top:1px solid var(--line); }
.nav-group > summary { cursor:pointer; list-style:none; }
.nav-group > summary::-webkit-details-marker { display:none; }
.nav-group > summary::after { content:"▸"; font-size:10px; transition:transform .15s; }
.nav-group[open] > summary::after { transform:rotate(90deg); }
.nav-group > summary:hover, .nav-group > summary:focus-visible { color:var(--gold); }
.sidebar-nav-sub { list-style:none; padding:0; margin:0; }
.sidebar-nav-sub .sidebar-nav-sub { padding-left:12px; }
.sidebar-nav-sub .nav-business-label { padding-top:8px; }
.section-icon { width:18px; height:18px; flex:0 0 18px; }
.section-icon-text { display:inline-block; width:18px; text-align:center; flex:0 0 18px; }
.sidebar-footer { padding:16px 18px 18px; border-top:1px solid var(--line); display:flex; flex-wrap:wrap; gap:12px; align-items:center; justify-content:space-between; }
.profile-label { display:block; font-size:10px; letter-spacing:.14em; text-transform:uppercase; color:var(--text-3); margin-bottom:3px; }
.user-name { display:block; font-size:13px; max-width:140px; overflow-wrap:anywhere; color:var(--text); }
.btn-logout { border:1px solid var(--line-strong); border-radius:999px; padding:6px 14px; background:transparent; color:var(--text-2); font-size:12px; letter-spacing:.04em; white-space:nowrap; transition:color .15s, border-color .15s; }
.btn-logout:hover { color:var(--danger); border-color:var(--danger); }
/* The name gives up its width so "Sign out" and the gear stay on its row instead of wrapping below it. */
.sidebar-profile { flex:1; min-width:0; }
.sidebar-account-actions { display:flex; align-items:center; gap:8px; flex-shrink:0; }
.sidebar-account-actions form { margin:0; }

/* ---------- Account settings (gear next to "Sign out") ---------- */
.settings-menu { position:relative; }
.settings-menu > summary { list-style:none; width:32px; height:32px; }
.settings-menu > summary::-webkit-details-marker { display:none; }
.settings-menu > summary svg { width:16px; height:16px; transition:transform .3s; }
.settings-menu[open] > summary { color:var(--gold); border-color:var(--gold); }
.settings-menu[open] > summary svg { transform:rotate(60deg); }
.settings-panel { position:absolute; right:0; bottom:calc(100% + 8px); z-index:120; min-width:200px; background:var(--surface); border:1px solid var(--line-strong); border-radius:var(--radius); box-shadow:var(--shadow); padding:6px; }
.settings-option { display:block; width:100%; padding:8px 10px; border:0; border-radius:var(--radius-sm); background:transparent; color:var(--text); font-size:13px; text-align:left; cursor:pointer; }
.settings-option:hover, .settings-option:focus-visible { background:var(--surface-2); color:var(--gold); }

.admin-dialog { width:420px; max-width:calc(100vw - 32px); padding:24px; border:1px solid var(--line-strong); border-radius:var(--radius-lg); background:var(--surface); color:var(--text); box-shadow:var(--shadow); }
.admin-dialog::backdrop { background:var(--overlay); }
.dialog-title { font-size:18px; font-weight:500; margin:0 0 18px; }

/* Confirmation before a form with data-confirm is sent (site.js). */
.confirm-dialog { width:380px; padding:28px 26px 22px; text-align:center; }
.confirm-dialog[open] { animation:confirm-in .18s ease-out; }
.confirm-dialog[open]::backdrop { animation:confirm-fade .18s ease-out; }
.confirm-icon { width:48px; height:48px; margin:0 auto 14px; display:grid; place-items:center; border-radius:50%; color:var(--gold); background:var(--gold-10); border:1px solid color-mix(in srgb, var(--gold) 30%, transparent); }
.confirm-icon svg { width:24px; height:24px; }
.confirm-dialog.is-danger .confirm-icon { color:var(--danger); background:color-mix(in srgb, var(--danger) 12%, transparent); border-color:color-mix(in srgb, var(--danger) 35%, transparent); }
.confirm-message { margin:0 0 22px; font-size:16px; font-weight:500; line-height:1.45; color:var(--text); }
.confirm-actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.confirm-actions .btn { width:100%; }
.btn-danger { color:#fff; background:var(--danger); border-color:var(--danger); }
.btn-danger:hover,.btn-danger:focus { color:#fff; background:color-mix(in srgb, var(--danger) 85%, #000); border-color:color-mix(in srgb, var(--danger) 85%, #000); }
@keyframes confirm-in { from { opacity:0; transform:translateY(8px) scale(.97); } to { opacity:1; transform:none; } }
@keyframes confirm-fade { from { opacity:0; } to { opacity:1; } }

/* Flavor import: the dialog shows the file's columns in the order of the spreadsheet. */
.admin-dialog.import-dialog { width:600px; }
.import-dialog .dialog-title { margin-bottom:8px; }
.import-hint { margin:0 0 18px; font-size:13px; line-height:1.55; color:var(--text-2); }
.import-format { border:1px solid var(--line); border-radius:var(--radius); background:var(--surface-2); padding:14px; margin-bottom:16px; }
.import-format .form-text { display:block; margin:10px 0 0; }
.import-format-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; font-size:10px; font-weight:500; letter-spacing:.2em; text-transform:uppercase; color:var(--gold); }
.import-template-link { display:inline-flex; align-items:center; gap:6px; font-size:12px; letter-spacing:.02em; text-transform:none; color:var(--gold); text-decoration:none; border-bottom:1px dashed currentColor; }
.import-template-link:hover { color:var(--gold-light); }
.import-template-link svg { width:14px; height:14px; }
.import-format-table { overflow-x:auto; border:1px solid var(--line-strong); border-radius:var(--radius-sm); }
.import-format-table table { width:100%; border-collapse:collapse; font-size:12px; white-space:nowrap; }
.import-format-table th, .import-format-table td { padding:6px 10px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); text-align:left; }
.import-format-table tr > :last-child { border-right:0; }
.import-format-table tbody tr:last-child > * { border-bottom:0; }
.import-format-table th { background:var(--surface); color:var(--text-3); font-weight:500; text-align:center; width:1%; }
.import-format-table thead tr:first-child th { text-align:center; width:auto; }
.import-format-table thead tr:first-child th:first-child { width:1%; }
.import-format-table thead td { font-weight:600; color:var(--text); background:var(--gold-10); }
.import-format-table tbody td { color:var(--text-2); }
.import-drop { position:relative; display:flex; flex-direction:column; align-items:center; gap:6px; padding:22px 16px; margin-bottom:16px; border:1px dashed var(--line-strong); border-radius:var(--radius); text-align:center; cursor:pointer; transition:border-color .15s, background .15s; }
.import-drop:hover, .import-drop.is-dragging, .import-drop:focus-within { border-color:var(--gold); background:var(--gold-10); }
.import-drop.has-file { border-style:solid; border-color:var(--gold); }
.import-drop input { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
.import-drop svg { width:28px; height:28px; color:var(--gold); }
.import-drop-title { font-size:13px; font-weight:500; color:var(--text); word-break:break-all; }
.import-drop-note { font-size:11px; color:var(--text-3); }
.import-options { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.import-dialog .form-actions { margin-top:20px; padding-top:18px; }
.header-actions { display:flex; gap:10px; flex-wrap:wrap; flex-shrink:0; }
.header-actions > .btn { white-space:nowrap; }
.btn-icon { width:15px; height:15px; }
.import-skipped { margin:-12px 0 20px; padding:12px 16px; border:1px solid var(--line); border-radius:var(--radius); background:var(--surface-2); font-size:13px; }
.import-skipped summary { cursor:pointer; color:var(--gold); }
.import-skipped ul { margin:10px 0 0; padding-left:18px; max-height:220px; overflow-y:auto; color:var(--text-2); }
@media (max-width:575px) { .import-options { grid-template-columns:1fr; } }

.main-content { margin-left:260px; padding:0 40px 48px; max-width:1840px; }
.workspace-bar { position:sticky; top:0; z-index:90; min-height:68px; display:flex; align-items:center; gap:14px; margin:0 -40px 32px; padding:10px 40px; background:var(--bar); -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); border-bottom:1px solid var(--line); color:var(--text-2); font-size:12px; letter-spacing:.04em; }
.workspace-crumbs { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.workspace-crumbs a { color:var(--text); text-decoration:none; }
.workspace-crumbs a:hover { color:var(--gold); }
.workspace-actions { display:flex; align-items:center; gap:10px; }
.breadcrumb-divider { margin:0 10px; color:var(--text-3); }
.workspace-tag { border:1px solid var(--line); border-radius:999px; padding:6px 12px; font-size:10px; letter-spacing:.14em; text-transform:uppercase; white-space:nowrap; }
.icon-btn { display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px; flex-shrink:0; padding:0; border:1px solid var(--line-strong); border-radius:999px; background:transparent; color:var(--text-2); cursor:pointer; transition:color .15s, border-color .15s, background .15s; }
.icon-btn:hover { color:var(--gold); border-color:var(--gold); background:var(--gold-10); }
.icon-btn svg { width:18px; height:18px; }
.theme-toggle .icon-moon, :root[data-theme="light"] .theme-toggle .icon-sun { display:none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display:block; }
.nav-toggle, .sidebar-backdrop { display:none; }

/* ---------- Page header ---------- */
.content-header { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:28px; }
.content-header > .btn { white-space:nowrap; flex-shrink:0; }
.content-header h1 { font-size:30px; font-weight:300; letter-spacing:.06em; text-transform:uppercase; margin:4px 0 0; }
.eyebrow { display:block; color:var(--gold); font-size:10px; font-weight:500; letter-spacing:.26em; margin-bottom:8px; }
.page-description { margin:10px 0 0; font-size:14px; color:var(--text-2); max-width:720px; line-height:1.6; }

/* ---------- Buttons ---------- */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; border-radius:999px; font-size:13px; font-weight:500; letter-spacing:.04em; padding:10px 22px; border:1px solid transparent; background:transparent; color:var(--text); text-decoration:none; box-shadow:none!important; transition:background .15s, color .15s, border-color .15s, transform .1s; }
.btn:active { transform:translateY(1px); }
.btn-sm { font-size:12px; padding:6px 14px; }
.btn-block { display:flex; width:100%; }
/* The main action looks like the guest site's: a peach pill. */
.btn-primary { color:var(--on-peach); background:var(--peach); border-color:var(--peach); }
.btn-primary:hover,.btn-primary:focus,.btn-primary:active { color:var(--on-peach); background:var(--peach-dark); border-color:var(--peach-dark); }
.btn-outline-primary,.btn-outline-secondary { color:var(--text); background:transparent; border-color:var(--line-strong); }
.btn-outline-primary:hover,.btn-outline-secondary:hover,.btn-outline-primary:focus,.btn-outline-secondary:focus { color:var(--gold); background:var(--gold-10); border-color:var(--gold); }
.btn-outline-danger { color:var(--danger); border-color:color-mix(in srgb, var(--danger) 40%, transparent); background:transparent; }
.btn-outline-danger:hover,.btn-outline-danger:focus { color:var(--danger); border-color:var(--danger); background:color-mix(in srgb, var(--danger) 12%, transparent); }
.btn-link { color:var(--gold); padding-left:0; padding-right:0; }
.btn-link:hover { color:var(--gold-light); }
.btn:disabled,.btn.disabled { opacity:.45; }

/* ---------- Cards ---------- */
.business-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:18px; }
/* Cards carry the guest site's faint sheen; hovered and selected ones its gold glow. */
.business-card,.editor-card,.empty-state,.order-column,.dashboard-kpi,.qr-card,.table-responsive { background:var(--sheen), var(--surface); }
.business-card { position:relative; border:1px solid var(--line); border-radius:var(--radius-lg); padding:24px; transition:border-color .15s, transform .15s, box-shadow .15s; }
.editor-card { border:1px solid var(--line); border-radius:var(--radius-lg); padding:28px; max-width:960px; }
.empty-state { text-align:center; padding:60px 24px; border:1px dashed var(--line-strong); border-radius:var(--radius-lg); color:var(--text-2); }
.empty-state h2 { font-size:20px; margin:0 0 8px; }
.empty-state p { margin:0; }
.business-logo,.business-logo-placeholder { width:52px; height:52px; border-radius:var(--radius); margin-bottom:22px; object-fit:cover; }
.business-logo-placeholder { display:flex; align-items:center; justify-content:center; background:var(--gold-10); color:var(--gold); border:1px solid var(--line); font-size:22px; font-weight:400; }
.business-name { font-size:19px; font-weight:400; margin:0 0 16px; overflow-wrap:anywhere; }
.business-date { color:var(--text-2); font-size:11px; border-top:1px solid var(--line); margin:22px 0 0; padding-top:14px; }
.workspace-section { display:flex; flex-direction:column; justify-content:space-between; text-decoration:none; color:var(--text-2); }
.workspace-section .business-name { display:flex; align-items:center; color:var(--text); }
.workspace-section:hover { border-color:var(--gold); color:var(--gold); transform:translateY(-2px); box-shadow:var(--glow); }
.workspace-group { margin:30px 0 12px; color:var(--text-3); font-size:11px; font-weight:500; letter-spacing:.2em; text-transform:uppercase; }
.workspace-group:first-of-type { margin-top:0; }
.workspace-icon { display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; margin-right:12px; border-radius:12px; background:var(--gold-10); color:var(--gold); }
.workspace-icon .section-icon { width:20px; height:20px; }

/* Business directory */
.business-toolbar { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:4px 0 22px; }
.business-count { display:flex; align-items:center; gap:10px; font-size:13px; font-weight:500; }
.business-count > span { display:inline-flex; justify-content:center; align-items:center; min-width:26px; height:26px; padding:0 8px; border-radius:999px; border:1px solid var(--line-strong); color:var(--gold); font-size:11px; }
.business-search { width:280px; max-width:100%; }
.business-directory { grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:20px; }
.directory-card:hover { border-color:var(--gold); box-shadow:var(--glow); }
.directory-card-top { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:22px; }
.directory-card-top .business-logo,.directory-card-top .business-logo-placeholder { margin:0; width:54px; height:54px; }
.business-kind { color:var(--text-3); font-size:9px; letter-spacing:.22em; }
.directory-card .business-name { margin:0 0 8px; font-size:21px; font-weight:300; }
.directory-description { color:var(--text-2); font-size:12px; line-height:1.8; margin:0 0 24px; }
.business-open { display:flex; justify-content:space-between; align-items:center; padding:12px 18px; background:var(--gold-10); color:var(--gold); border:1px solid transparent; border-radius:999px; font-size:13px; font-weight:500; letter-spacing:.04em; text-decoration:none; transition:background .15s, color .15s; }
.business-open:hover { background:var(--gold); color:var(--on-gold); }
.business-open > span { font-size:18px; line-height:1; }
.directory-admin { padding-top:16px; margin-top:18px; border-top:1px solid var(--line); }
.directory-admin .btn { font-weight:400; }

/* ---------- Tables ---------- */
.table-responsive { border:1px solid var(--line); border-radius:var(--radius-lg); overflow-x:auto; }
.table { --bs-table-bg:transparent; --bs-table-accent-bg:transparent; --bs-table-striped-bg:transparent; --bs-table-hover-bg:var(--surface-2); --bs-table-active-bg:var(--surface-2); color:var(--text); border-color:var(--line); }
.table > :not(caption) > * > * { color:inherit; border-bottom-color:var(--line); }
.table > :not(:first-child) { border-top:0; }
.admin-table { margin:0; font-size:13px; }
.admin-table th { background:var(--surface-2); color:var(--text-2); font-size:10px; font-weight:500; text-transform:uppercase; letter-spacing:.16em; white-space:nowrap; padding:14px 20px; }
.admin-table td { padding:16px 20px; vertical-align:middle; max-width:360px; overflow-wrap:anywhere; background:transparent; }
.admin-table tbody tr:last-child td { border-bottom:0; }
.admin-table tbody tr { transition:background .1s; }
.admin-table tbody tr:hover td { background:var(--surface-2); }
.admin-table td.row-actions { display:table-cell; white-space:nowrap; }
.admin-table td.row-actions > * { display:inline-flex; margin:3px 4px 3px 0; }
.row-actions,.form-actions { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.row-actions form { margin:0; }
.menu-icon-cell { display:inline-flex; align-items:center; gap:8px; }

/* ---------- Forms ---------- */
.form-actions { border-top:1px solid var(--line); margin-top:26px; padding-top:22px; }
.form-group { margin-bottom:20px; }
.form-group label,.form-label,legend { display:block; margin-bottom:8px; font-size:12px; font-weight:500; letter-spacing:.04em; color:var(--text); }
.form-control,.form-select { border:1px solid var(--line-strong); border-radius:12px; padding:11px 14px; font-size:14px; color:var(--text); background-color:var(--field); transition:border-color .15s, box-shadow .15s; }
.form-select { padding-right:38px; background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23c9a46a' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e"); }
:root[data-theme="light"] .form-select { background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%238a6624' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e"); }
.form-select option { background:var(--surface); color:var(--text); }
.form-control:focus,.form-select:focus { color:var(--text); background-color:var(--field); border-color:var(--gold); box-shadow:0 0 0 3px var(--gold-10); }
.form-control::placeholder { color:var(--text-3); }
.form-control[readonly],.form-control:disabled,.form-select:disabled { background-color:var(--surface-2); color:var(--text-2); }
.form-control[type=file]::file-selector-button { background:var(--surface-3); color:var(--text); border-color:var(--line-strong); }
.form-control[type=file]:hover:not(:disabled)::file-selector-button { background:var(--gold-10); color:var(--gold); }
textarea.form-control { min-height:100px; }
input[type=checkbox],input[type=radio] { accent-color:var(--gold); }
.form-check-input { background-color:var(--field); border-color:var(--line-strong); }
.form-check-input:checked { background-color:var(--gold); border-color:var(--gold); }
.form-check-input:focus { border-color:var(--gold); box-shadow:0 0 0 3px var(--gold-10); }
input[type=date].form-control::-webkit-calendar-picker-indicator { opacity:.7; cursor:pointer; }
.selection-grid { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
fieldset { min-width:0; }
legend { font-size:15px; margin-bottom:12px; }
.selection-list { border:1px solid var(--line); background:var(--surface); padding:8px 16px; border-radius:var(--radius); max-height:360px; overflow:auto; }
.selection-option { display:flex; align-items:center; gap:10px; padding:10px 0; cursor:pointer; overflow-wrap:anywhere; border-bottom:1px solid var(--line); }
.selection-option:last-child { border-bottom:0; }
.selection-option input { width:17px; height:17px; flex-shrink:0; }

/* ---------- Alerts and badges ---------- */
.alert { padding:13px 18px; border-radius:var(--radius); font-size:13px; background:var(--surface-2); border:1px solid var(--line); color:var(--text); }
.alert-success { background:color-mix(in srgb, var(--success) 12%, transparent); border-color:color-mix(in srgb, var(--success) 35%, transparent); color:var(--success); }
.alert-danger { background:color-mix(in srgb, var(--danger) 12%, transparent); border-color:color-mix(in srgb, var(--danger) 35%, transparent); color:var(--danger); }
.status-badge { display:inline-block; border-radius:999px; padding:3px 10px; font-size:11px; font-weight:500; letter-spacing:.04em; border:1px solid var(--line); white-space:nowrap; vertical-align:middle; }
.status-ok { background:color-mix(in srgb, var(--success) 12%, transparent); border-color:color-mix(in srgb, var(--success) 35%, transparent); color:var(--success); }
.status-warn { background:color-mix(in srgb, var(--warn) 12%, transparent); border-color:color-mix(in srgb, var(--warn) 35%, transparent); color:var(--warn); }

/* ---------- Language switcher ---------- */
.lang-switcher { display:inline-flex; padding:3px; gap:2px; margin:0; border:1px solid var(--line); border-radius:999px; background:var(--surface-2); }
.lang-btn { min-width:40px; padding:6px 10px; border:0; border-radius:999px; background:transparent; color:var(--text-2); font-size:11px; font-weight:500; letter-spacing:.1em; line-height:1; cursor:pointer; transition:background .15s, color .15s; }
.lang-btn:hover { color:var(--text); }
.lang-btn.active { background:var(--gold); color:var(--on-gold); cursor:default; }
.sidebar-footer .lang-switcher { flex:0 0 100%; }
.sidebar-footer .lang-btn { flex:1; }

/* ---------- Business switcher ---------- */
.business-switcher { position:relative; width:260px; max-width:100%; flex-shrink:0; z-index:110; }
.business-switcher summary { display:flex; align-items:center; gap:10px; border:1px solid var(--line-strong); background:var(--surface); border-radius:999px; padding:5px 14px 5px 5px; cursor:pointer; list-style:none; transition:border-color .15s; }
.business-switcher summary::-webkit-details-marker { display:none; }
.business-switcher summary:hover, .business-switcher[open] summary { border-color:var(--gold); }
.business-switcher[open] summary { box-shadow:0 0 0 3px var(--gold-10); }
.switcher-avatar { width:30px; height:30px; border-radius:999px; background:var(--gold-10); color:var(--gold); display:inline-flex; justify-content:center; align-items:center; font-size:13px; font-weight:500; flex-shrink:0; }
.switcher-caption { min-width:0; flex:1; }
.switcher-caption small { display:block; font-size:8px; letter-spacing:.16em; color:var(--text-3); margin-bottom:2px; }
.switcher-caption strong { display:block; color:var(--text); font-size:12px; font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.switcher-chevron { font-size:16px; color:var(--text-2); }
.switcher-panel { position:absolute; right:0; top:calc(100% + 8px); width:310px; max-width:calc(100vw - 32px); background:var(--surface); border:1px solid var(--line-strong); border-radius:var(--radius); box-shadow:var(--shadow); padding:6px; }
.switcher-heading { display:flex; justify-content:space-between; padding:10px 12px; color:var(--text-2); font-size:11px; letter-spacing:.06em; }
.switcher-options { max-height:280px; overflow:auto; }
.switcher-option { display:flex; align-items:center; gap:10px; padding:8px 10px; border-radius:var(--radius-sm); text-decoration:none; font-size:13px; color:var(--text); }
.switcher-option > span:nth-child(2) { overflow-wrap:anywhere; min-width:0; }
.switcher-option:hover,.switcher-option.selected { background:var(--surface-2); color:var(--gold); }
.switcher-check { margin-left:auto; color:var(--gold); }
.switcher-all { display:flex; justify-content:space-between; margin-top:6px; border-top:1px solid var(--line); padding:12px 12px 8px; text-decoration:none; font-size:12px; color:var(--gold); }

/* ---------- Login ---------- */
.login-body { display:flex; align-items:center; justify-content:center; min-height:100vh; padding:40px; background:radial-gradient(1200px 600px at 20% 0%, var(--gold-10), transparent 60%), var(--bg); }
.login-container { display:grid; grid-template-columns:1.1fr 1fr; max-width:1250px; width:100%; min-height:700px; border:1px solid var(--line); border-radius:28px; overflow:hidden; box-shadow:var(--shadow); }
/* The intro panel stays dark in both themes: it is the brand side of the page. */
.login-intro { --text:#f3ede4; --text-2:#f3ede4a3; --text-3:#f3ede46b; --gold:#c9a46a; --gold-light:#e2c28c;
    position:relative; overflow:hidden; display:flex; flex-direction:column; justify-content:space-between; padding:56px; background:radial-gradient(420px 300px at 50% 0%, #2a221855, transparent 70%), linear-gradient(170deg,#1a1611 0%,#0b0907 75%); color:var(--text); }
.login-intro > * { position:relative; z-index:1; }
/* Warm floor glow under the hookah base. */
.login-intro::after { content:""; position:absolute; z-index:0; right:10px; bottom:30px; width:200px; height:40px; border-radius:50%; background:radial-gradient(closest-side, #e0832c66, #e0832c1a 60%, transparent); filter:blur(6px); pointer-events:none; }
.login-intro > .login-emblem { position:absolute; z-index:0; right:0; bottom:44px; height:360px; width:auto; filter:drop-shadow(0 0 18px #e0832c40); pointer-events:none; }
.login-intro .sidebar-brand { font-size:24px; }
.login-intro .brand-logo { filter:drop-shadow(0 0 6px #c9a46a55); }
.login-intro .eyebrow { font-size:11px; }
.login-intro h1 { font-size:44px; line-height:1.35; font-weight:200; letter-spacing:.06em; text-transform:uppercase; margin:28px 0 0; color:var(--gold); }
.login-intro p { color:var(--text-2); font-size:14px; max-width:260px; line-height:1.8; }
.login-footnote { color:var(--text-3); font-size:13px; letter-spacing:.02em; }
.login-card { background:var(--surface); padding:56px 60px; display:flex; flex-direction:column; justify-content:center; }
.login-tools { display:flex; justify-content:flex-end; align-items:center; gap:10px; margin-bottom:36px; }
.login-header { margin-bottom:32px; }
.login-header .eyebrow { font-size:11px; margin-bottom:12px; }
.login-header h2 { font-size:36px; font-weight:300; letter-spacing:.06em; text-transform:uppercase; margin:0 0 14px; }
.login-header p { color:var(--text-2); font-size:14px; margin:0; }
.login-card .form-group { margin-bottom:24px; }
.login-card .form-group label { font-size:14px; letter-spacing:.02em; }
.login-card .form-control { padding:16px 18px; font-size:15px; }
.login-card .btn { margin-top:2px; justify-content:space-between; padding:17px 26px; font-size:15px; }

/* ---------- Filters ---------- */
.zone-filter,.catalog-filter { display:flex; align-items:flex-end; flex-wrap:wrap; gap:12px; margin-bottom:24px; }
.zone-filter > div { width:320px; max-width:100%; }
.catalog-filter > div { min-width:145px; flex:1; }
.catalog-filter .catalog-search { min-width:210px; flex:2; }
.catalog-filter .form-label { font-size:12px; }

/* ---------- Catalog: hookahs, tobacco, ready mixes ---------- */
.hookah-pricing { margin-bottom:32px; }
.hookah-pricing h2 { margin:0 0 10px; font-size:20px; }
.hookah-pricing .hookah-price-fields + h2 { margin-top:32px; padding-top:24px; border-top:1px solid var(--line); }
.hookah-price-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.name-fields { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.hookah-cell,.catalog-cell { display:flex; align-items:center; gap:14px; min-width:200px; }
.hookah-thumbnail { width:56px; height:66px; object-fit:cover; border-radius:10px; flex-shrink:0; border:1px solid var(--line); }
.hookah-description { color:var(--text-2); font-size:12px; margin:6px 0 0; max-width:280px; white-space:normal; overflow-wrap:anywhere; }
.hookah-popular,.catalog-tier,.order-tier { display:inline-block; border:1px solid var(--line-strong); border-radius:999px; padding:2px 9px; font-size:10.5px; letter-spacing:.04em; color:var(--gold); background:transparent; white-space:nowrap; }
.hookah-popular { margin-left:8px; }
.hookah-image-preview { display:block; width:160px; height:190px; object-fit:cover; border:1px solid var(--line); border-radius:var(--radius); margin-bottom:20px; }
.catalog-thumbnail { width:52px; height:52px; object-fit:cover; border-radius:10px; flex-shrink:0; border:1px solid var(--line); }
.catalog-logo { object-fit:contain; background:#fff; }
.catalog-image-preview { display:block; width:150px; height:150px; object-fit:cover; border:1px solid var(--line); border-radius:var(--radius); margin-bottom:20px; }
.catalog-image-preview.catalog-logo { object-fit:contain; }
.hookah-bowls-table th[scope="row"] { font-weight:500; white-space:nowrap; }
.hookah-bowls-table td, .hookah-bowls-table thead th { text-align:center; vertical-align:middle; }
.hookah-bowls-table thead th:first-child { text-align:left; }
.hookah-bowls-table th .hookah-description { display:block; margin:4px 0 0; text-transform:none; letter-spacing:0; }
.hookah-bowls-table .form-check-input { float:none; margin:0; width:18px; height:18px; }

.ready-mix-detail { color:var(--text-2); font-size:12px; margin:6px 0 0; max-width:260px; white-space:normal; overflow-wrap:anywhere; }
.ready-mix-recipe { list-style:none; padding:0; margin:0; min-width:190px; }
.ready-mix-recipe li { margin:5px 0; }
.ready-mix-recipe li span { display:block; color:var(--text-2); font-size:11px; }
.ready-mix-recipe li .ready-mix-premium { display:inline-block; margin-left:6px; padding:1px 7px; border:1px solid var(--gold); border-radius:999px; background:var(--gold-10); color:var(--gold); font-size:10px; letter-spacing:.04em; vertical-align:middle; }
.ready-mix-moods { padding:0; border:0; display:flex; gap:14px; flex-wrap:wrap; }
.ready-mix-moods legend,.ready-mix-composition legend { font-size:16px; font-weight:500; margin-bottom:12px; }
.ready-mix-moods label { display:flex; align-items:center; gap:6px; }
.ready-mix-composition { border:0; border-top:1px solid var(--line); padding:22px 0; margin:22px 0; }
.ready-mix-ingredient { display:grid; grid-template-columns:minmax(0,1fr) 110px auto; align-items:end; gap:12px; margin-bottom:14px; }
.ready-mix-recipe-actions { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-top:18px; }
.ready-mix-recipe-actions p { margin:0; font-size:13px; }
.ready-mix-tier { margin:14px 0 0; font-size:13px; color:var(--text-2); }
.ready-mix-tier-premium { color:var(--gold); }

/* ---------- Order board ---------- */
.order-toolbar { display:flex; flex-wrap:wrap; gap:8px; }
.d-contents { display:contents; }
.order-refresh-status { margin:0 0 20px; color:var(--text-2); font-size:13px; }
.order-columns { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; align-items:start; }
.order-column { min-width:0; border:1px solid var(--line); border-radius:var(--radius-lg); padding:16px; }
.order-column > h2 { font-size:15px; font-weight:500; letter-spacing:.08em; text-transform:uppercase; display:flex; justify-content:space-between; align-items:center; margin:2px 4px 16px; }
.order-count { font-size:12px; border:1px solid var(--line-strong); border-radius:999px; padding:2px 10px; color:var(--gold); letter-spacing:0; }
.order-column-empty { padding:24px 0; color:var(--text-3); text-align:center; }
.order-card { background:var(--surface-2); border:1px solid var(--line); border-radius:var(--radius); padding:16px; margin-bottom:12px; overflow-wrap:anywhere; }
.order-card:last-child { margin-bottom:0; }
.order-card-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.order-card-heading h3 { font-size:17px; font-weight:400; margin:0; }
.order-status { font-size:11px; border-radius:999px; padding:3px 10px; border:1px solid var(--line-strong); color:var(--text-2); white-space:nowrap; }
.order-status-inprogress { background:color-mix(in srgb, var(--warn) 12%, transparent); border-color:color-mix(in srgb, var(--warn) 35%, transparent); color:var(--warn); }
.order-status-ready { background:color-mix(in srgb, var(--success) 12%, transparent); border-color:color-mix(in srgb, var(--success) 35%, transparent); color:var(--success); }
.order-status-cancelled { background:color-mix(in srgb, var(--danger) 12%, transparent); border-color:color-mix(in srgb, var(--danger) 35%, transparent); color:var(--danger); }
.order-zone,.order-time,.order-mix-settings { color:var(--text-2); font-size:12px; margin:8px 0; }
.order-time { display:flex; flex-wrap:wrap; justify-content:space-between; gap:6px; }
.order-summary { font-size:13px; margin:12px 0; }
.order-composition { border-top:1px solid var(--line); padding-top:12px; }
.order-composition summary { cursor:pointer; font-size:13px; font-weight:500; color:var(--gold); }
.order-mix { padding:12px 0; border-bottom:1px solid var(--line); }
.order-mix:last-child { border-bottom:0; }
.order-mix h4 { font-size:14px; font-weight:500; margin:0 0 5px; }
.order-mix-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px 10px; margin-bottom:5px; }
.order-mix-heading h4 { margin:0; }
.order-tier-standard { color:var(--text-2); }
.order-tier-premium { background:var(--gold-10); border-color:var(--gold); color:var(--gold); }
.order-mix-price { display:flex; justify-content:space-between; gap:12px; margin:10px 0 0; font-size:13px; color:var(--text-2); }
.order-mix-price strong { color:var(--text); font-weight:600; white-space:nowrap; }
.order-recipe { font-size:13px; margin:5px 0; }
.order-flavors { list-style:none; padding:0; margin:8px 0; }
.order-flavors li { display:flex; justify-content:space-between; gap:12px; font-size:12px; margin:6px 0; }
.order-flavors strong { white-space:nowrap; overflow-wrap:normal; }
/* A set order: what to bring besides the hookahs. */
.order-set { margin:10px 0; padding:10px 12px; border-left:2px solid var(--gold); background:var(--gold-10); border-radius:0 var(--radius) var(--radius) 0; font-size:13px; }
.order-set p { margin:4px 0 0; color:var(--text-2); white-space:pre-line; }
.order-note { white-space:pre-wrap; background:color-mix(in srgb, var(--warn) 10%, transparent); color:var(--warn); padding:10px 12px; border-radius:var(--radius-sm); font-size:13px; margin:10px 0 0; }
/* Tablet-friendly: one large main action per card, cancelling a quiet text button under it. */
.order-action { margin-top:16px; }
.order-action button { width:100%; min-height:46px; font-size:14px; }
.order-action-cancel { margin-top:6px; }
.order-action-cancel .order-cancel { min-height:36px; font-size:12px; font-weight:400; color:var(--text-3); text-decoration:none; }
.order-action-cancel .order-cancel:hover { color:var(--danger); }
.order-card { transition:border-color .15s; }
.order-card:hover { border-color:var(--line-strong); }
.order-history { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; align-items:start; }
.order-history .order-card { margin:0; background:var(--surface); }
.order-history-pages { display:flex; align-items:center; justify-content:center; gap:16px; margin-top:24px; }

/* ---------- Tables and QR codes ---------- */
/* QR codes stay black on white in both themes so that they scan. */
.table-qr { display:flex; align-items:center; gap:14px; }
.table-qr-image { flex:none; width:72px; height:72px; border:1px solid var(--line); border-radius:10px; background:#fff; padding:4px; box-sizing:content-box; }
.table-qr-image svg { display:block; width:72px; height:72px; }
.table-qr-links { display:flex; flex-direction:column; align-items:flex-start; gap:4px; font-size:12px; }
.qr-create { margin-bottom:24px; max-width:640px; }
.qr-create-row { display:flex; align-items:flex-end; gap:12px; flex-wrap:wrap; }
.qr-create-row > div { flex:1; min-width:200px; }
.qr-create-row .form-control { font-size:18px; }
.qr-warning { background:color-mix(in srgb, var(--warn) 10%, transparent); border-color:color-mix(in srgb, var(--warn) 35%, transparent); color:var(--warn); margin-bottom:24px; line-height:1.7; }
.qr-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:18px; }
.qr-card { border:1px solid var(--line); border-radius:var(--radius-lg); padding:18px; text-align:center; display:flex; flex-direction:column; align-items:center; }
.qr-card-new { border-color:var(--gold); box-shadow:0 0 0 3px var(--gold-10); }
.qr-card-inactive { opacity:.55; }
.qr-card-code { width:150px; height:150px; background:#fff; border:1px solid var(--line); border-radius:12px; padding:8px; }
.qr-card-code svg { width:100%; height:100%; display:block; }
.qr-card h2 { font-size:20px; font-weight:400; margin:14px 0 2px; }
.qr-card-zone { color:var(--text-2); font-size:12px; margin:0 0 14px; }
.qr-card-download { width:100%; }
.qr-card-links { display:flex; justify-content:center; align-items:center; gap:14px; margin-top:10px; font-size:12px; }
.qr-card-links form { margin:0; }
.qr-card-delete { color:var(--danger)!important; }
.qr-new-zone { margin-top:28px; max-width:640px; }
.qr-new-zone summary { cursor:pointer; color:var(--gold); font-size:13px; margin-bottom:12px; }

/* ---------- Dashboard ---------- */
.dashboard-filter { align-items:end; }
.dashboard-quick { display:flex; gap:8px; flex-wrap:wrap; }
.dashboard-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin-bottom:20px; }
.dashboard-kpi { border:1px solid var(--line); border-radius:var(--radius-lg); padding:18px 20px; display:flex; flex-direction:column; gap:4px; }
.dashboard-kpi span { color:var(--text-2); font-size:10px; letter-spacing:.18em; text-transform:uppercase; }
.dashboard-kpi strong { font-size:28px; font-weight:300; color:var(--text); }
.dashboard-kpi strong em { font-style:normal; font-size:14px; color:var(--gold); }
.dashboard-kpi small { color:var(--text-2); font-size:12px; }
.dashboard-card { max-width:none; }
.dashboard-chart-card { margin-bottom:20px; }
.dashboard-chart { display:flex; align-items:stretch; gap:4px; height:180px; }
.dashboard-bar { flex:1 1 0; min-width:0; display:flex; flex-direction:column; justify-content:flex-end; align-items:center; gap:4px; }
.dashboard-bar-fill { width:100%; max-width:34px; background:linear-gradient(to top, var(--gold), var(--gold-light)); border-radius:6px 6px 2px 2px; opacity:.9; }
.dashboard-bar-value { font-size:11px; color:var(--text); min-height:14px; }
.dashboard-bar-label { font-size:10px; color:var(--text-2); }
.dashboard-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.dashboard-table { margin-bottom:10px; font-size:13px; }
.dashboard-table td:not(:first-child), .dashboard-table th:not(:first-child) { text-align:right; white-space:nowrap; }
.dashboard-muted { color:var(--text-2); font-size:12px; }

/* ---------- System status ---------- */
.status-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin-bottom:30px; }
.status-grid .editor-card { max-width:none; }
.status-title { font-size:18px; display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 16px; }
.status-list { display:grid; grid-template-columns:max-content 1fr; gap:8px 18px; margin:0 0 14px; font-size:13px; }
.status-list dt { color:var(--text-2); font-weight:500; }
.status-list dd { margin:0; overflow-wrap:anywhere; }

/* ---------- Responsive ---------- */
@media (max-width:1100px) {
    .sidebar { width:230px; }
    .main-content { margin-left:230px; padding:0 26px 32px; }
    .workspace-bar { margin:0 -26px 28px; padding:10px 26px; }
    .order-columns,.order-history { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:991px) { .dashboard-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); } .dashboard-grid { grid-template-columns:1fr; } }
@media (max-width:900px) { .status-grid { grid-template-columns:1fr; } }
/* Phones: the sidebar becomes a drawer opened from the top bar. */
@media (max-width:760px) {
    .sidebar { width:min(300px, 86vw); transform:translateX(-100%); transition:transform .25s ease; box-shadow:var(--shadow); }
    .nav-open .sidebar { transform:none; }
    .nav-toggle { display:inline-flex; }
    .sidebar-backdrop { position:fixed; inset:0; z-index:95; background:var(--overlay); }
    .nav-open .sidebar-backdrop { display:block; }
    .nav-open { overflow:hidden; }
    .main-content { margin:0; padding:0 16px 32px; }
    .workspace-bar { margin:0 -16px 24px; padding:10px 16px; min-height:60px; flex-wrap:wrap; gap:10px; }
    .workspace-bar:has(.business-switcher) .workspace-crumbs { flex:1 1 calc(100% - 100px); }
    .workspace-bar:has(.business-switcher) .workspace-actions { flex:1 1 100%; }
    .workspace-actions .business-switcher { flex:1; width:auto; }
    .workspace-tag { display:none; }
    .switcher-panel { width:100%; }
    .content-header { align-items:flex-start; flex-wrap:wrap; gap:16px; }
    .content-header h1 { font-size:24px; }
    .selection-grid,.hookah-price-fields,.name-fields { grid-template-columns:1fr; gap:16px; }
    .editor-card { padding:20px; }
    .business-toolbar { align-items:flex-start; flex-direction:column; gap:14px; }
    .business-search { width:100%; }
    .business-directory { grid-template-columns:minmax(0,1fr); }
    /* Filters in two columns, the search across both, so the list starts on the first screen. */
    .catalog-filter { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
    .catalog-filter > div { min-width:0; }
    .catalog-filter .catalog-search { grid-column:1 / -1; min-width:0; }
    .catalog-filter .form-label { font-size:11px; margin-bottom:4px; }
    .catalog-filter .form-control, .catalog-filter .form-select { padding:9px 12px; font-size:13px; }
    .catalog-filter > .btn { width:100%; white-space:nowrap; padding-left:12px; padding-right:12px; }
    /* List tables become cards: the first cell (name and photo) on top, the other columns as label · value rows. */
    .table-responsive:has(.stack-table) { overflow:visible; border:0; background:none; }
    .stack-table, .stack-table tbody { display:block; }
    .stack-table thead { display:none; }
    .stack-table tbody tr { display:block; margin-bottom:12px; padding:14px 16px; border:1px solid var(--line); border-radius:var(--radius-lg); background:var(--sheen), var(--surface); }
    .stack-table tbody tr:hover td { background:transparent; }
    .stack-table td { display:flex; justify-content:space-between; align-items:center; gap:16px; max-width:none; padding:7px 0; border:0; text-align:right; }
    .stack-table td::before { content:attr(data-label); flex-shrink:0; color:var(--text-3); font-size:10px; font-weight:500; letter-spacing:.14em; text-transform:uppercase; text-align:left; }
    .stack-table td:first-child { justify-content:flex-start; text-align:left; padding:0 0 10px; margin-bottom:4px; border-bottom:1px solid var(--line); font-size:15px; }
    .stack-table td:first-child::before, .stack-table td.row-actions::before { content:none; }
    .stack-table td:first-child > * { min-width:0; }
    .stack-table td.row-actions { display:flex; justify-content:flex-start; flex-wrap:wrap; padding-top:12px; }
    .stack-table .hookah-cell, .stack-table .catalog-cell { min-width:0; }
    .stack-table .ready-mix-recipe { min-width:0; text-align:right; }
    .order-columns,.order-history { grid-template-columns:minmax(0,1fr); }
    .order-toolbar { width:100%; }
    .ready-mix-ingredient { grid-template-columns:minmax(0,1fr) 90px; }
    .ready-mix-ingredient > button { grid-column:1 / -1; justify-self:start; }
    .ready-mix-recipe-actions { align-items:flex-start; flex-direction:column; }
    .login-body { padding:16px; }
    .login-container { grid-template-columns:1fr; min-height:0; max-width:460px; }
    .login-intro { padding:24px; }
    .login-intro > div,.login-footnote,.login-intro > .login-emblem,.login-intro::after { display:none; }
    .login-card .form-group { margin-bottom:20px; }
    .login-header h2 { font-size:28px; }
    .login-intro .sidebar-brand { font-size:20px; }
    .login-card { padding:30px 22px; }
}
@media (max-width:575px) { .dashboard-kpis { grid-template-columns:1fr; } .dashboard-bar-label { font-size:9px; } }
@media (prefers-reduced-motion:reduce) { * { transition:none!important; } }
