@import url("/assets/vendor/mdi/css/materialdesignicons.min.css");

:root {
    --red: #e30613;
    --red-dark: #b8040d;
    --red-soft: #fff0f1;
    --black: #161518;
    --black-soft: #2c2a2e;
    --muted: #706d73;
    --canvas: #f7f6f5;
    --white: #fff;
    --line: #e7e3e2;
    --success: #1d8f62;
    --success-soft: #e9f8f0;
    --danger: #c62632;
    --radius: 16px;
    --shadow: 0 18px 44px rgba(28, 23, 24, .09);
    --shadow-sm: 0 4px 16px rgba(28, 23, 24, .055);
    --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --sidebar-rail-width: 68px;
    --sidebar-drawer-width: 218px;
    --sidebar-motion: .24s cubic-bezier(.2,.8,.2,1);
    --app-gutter: clamp(18px, 3vw, 42px);
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--canvas); }

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background: radial-gradient(circle at 100% 0%, rgba(227, 6, 19, .06), transparent 25rem), var(--canvas);
    color: var(--black);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button, input, select, textarea { font: inherit; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }
button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid rgba(227, 6, 19, .26);
    outline-offset: 3px;
}

/* Header */
.app-header {
    position: sticky;
    z-index: 80;
    top: 0;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 10px var(--app-gutter);
    border-bottom: 1px solid rgba(26, 23, 25, .08);
    background: rgba(255,255,255,.92);
    box-shadow: 0 3px 16px rgba(30,22,24,.035);
    backdrop-filter: blur(16px);
    margin-left: var(--sidebar-rail-width);
    transition: none;
}

.app-header__left, .app-header__right, .brand, .user-summary, .header-primary-action {
    display: flex;
    align-items: center;
}

.app-header__left { min-width: 0; gap: 15px; }
.app-header__right { flex: 0 0 auto; gap: 16px; }

.brand { min-width: 0; gap: 12px; color: var(--black); text-decoration: none; }

.brand__mark {
    width: 52px;
    height: 52px;
    display: grid;
    flex: 0 0 52px;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fafafa;
    box-shadow: 0 5px 12px rgba(21,18,18,.07);
}

.brand__mark img { width: 100%; height: 100%; object-fit: contain; }
.brand__copy { min-width: 0; display: grid; gap: 1px; }
.brand__copy strong {
    overflow: hidden;
    font-size: 14px;
    font-weight: 850;
    letter-spacing: -.025em;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.brand__copy small { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .015em; }

.menu-toggle, .sidebar-close {
    width: 42px;
    height: 42px;
    display: none;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    color: var(--black);
    cursor: pointer;
}

.menu-toggle { display: grid; padding: 10px; }
.menu-toggle .mdi { font-size: 20px; line-height: 1; }
.mdi { display: inline-block; line-height: 1; }

.header-primary-action {
    min-height: 42px;
    gap: 8px;
    padding: 0 15px;
    border-radius: 12px;
    background: var(--red);
    box-shadow: 0 8px 17px rgba(227,6,19,.2);
    color: #fff;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.header-primary-action > .mdi { font-size: 19px; }
.header-primary-action:hover { background: var(--red-dark); box-shadow: 0 12px 24px rgba(227,6,19,.28); transform: translateY(-1px); }

.user-summary { gap: 9px; }
.user-summary__avatar {
    width: 38px;
    height: 38px;
    display: grid;
    flex: 0 0 38px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--black);
    box-shadow: 0 0 0 1px var(--line);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}
.user-summary__copy { display: grid; gap: 1px; }
.user-summary__copy strong { max-width: 170px; overflow: hidden; font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.user-summary__copy small { color: var(--muted); font-size: 10px; font-weight: 650; }

/* Layout and sidebar */
.container {
    width: auto;
    min-height: calc(100vh - 76px);
    display: block;
    margin: 0 0 0 var(--sidebar-rail-width);
    padding: clamp(12px, 1.8vw, 22px) var(--app-gutter) clamp(32px, 4vw, 48px);
    transition: none;
}

.sidebar {
    width: var(--sidebar-rail-width);
    height: 100dvh;
    position: fixed;
    z-index: 100;
    inset: 0 auto 0 0;
    max-height: none;
    overflow: visible;
    padding: 14px 10px 12px;
    border-radius: 0 19px 19px 0;
    background: radial-gradient(circle at 0 0, rgba(227,6,19,.35), transparent 10rem), linear-gradient(155deg, #272327 0%, #131214 58%, #080809 100%);
    box-shadow: 0 20px 45px rgba(19,16,18,.2);
    color: #fff;
    scrollbar-color: rgba(255,255,255,.3) transparent;
    transform: none;
    transition: none;
}

body.sidebar-expanded .sidebar { width: var(--sidebar-drawer-width); }
body.sidebar-expanded .app-header, body.sidebar-expanded .container { margin-left: var(--sidebar-drawer-width); }
body.sidebar-ready .app-header, body.sidebar-ready .container { transition: margin-left var(--sidebar-motion), padding var(--sidebar-motion); }
body.sidebar-ready .sidebar { transition: width var(--sidebar-motion); }

.sidebar-mobile-header, .sidebar-overlay { display: none; }

.admin-navigation { min-height: 100%; display: flex; flex-direction: column; gap: 9px; }
.admin-navigation ul { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }
.nav-section { padding: 0 2px; }
.nav-section + .nav-section { padding-top: 8px; border-top: 1px solid rgba(255,255,255,.09); }
.nav-section h2 {
    margin: 0 0 5px;
    padding: 0 8px;
    color: rgba(255,255,255,.43);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.nav-link {
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: rgba(255,255,255,.72);
    font-size: 11px;
    font-weight: 650;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.nav-link:hover { border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.08); color: #fff; transform: translateX(2px); }
.nav-link.is-active { border-color: rgba(255,255,255,.1); background: var(--red); box-shadow: 0 8px 18px rgba(227,6,19,.23); color: #fff; font-weight: 750; }
.nav-icon { width: 19px; display: grid; flex: 0 0 19px; place-items: center; font-size: 17px; line-height: 1; }
.nav-parent { width: 100%; appearance: none; background: transparent; font-family: inherit; text-align: left; cursor: pointer; }
.nav-chevron { display: none; margin-left: auto; font-size: 15px; transition: transform .18s ease; }
.nav-item--has-children.is-submenu-open > .nav-parent .nav-chevron { transform: rotate(180deg); }
.nav-submenu { display: none !important; }
.payment-order-total { margin: 0 0 18px; color: var(--black-soft); font-size: 13px; font-weight: 700; }
.payment-order-total strong { margin-left: 6px; color: var(--red-dark); font-size: 18px; font-weight: 850; }
.nav-signout { margin-top: auto; padding-top: 9px; border-top: 1px solid rgba(255,255,255,.09); }
.nav-signout .nav-link { color: #ffafb4; }
.nav-signout .nav-link:hover { background: rgba(227,6,19,.16); color: #fff; }

@media (min-width: 981px) {
    body:not(.sidebar-expanded) .sidebar { padding: 12px 10px; }
    body:not(.sidebar-expanded) .admin-navigation { gap: 7px; }
    body:not(.sidebar-expanded) .nav-section { padding: 0; }
    body:not(.sidebar-expanded) .nav-section + .nav-section { padding-top: 0; border-top: 0; }
    body:not(.sidebar-expanded) .nav-section h2 { display: none; }
    body:not(.sidebar-expanded) .nav-link {
        width: 48px;
        min-height: 44px;
        position: relative;
        justify-content: center;
        padding: 0;
        border-radius: 13px;
    }
    body:not(.sidebar-expanded) .nav-link .nav-label { display: none; }
    body:not(.sidebar-expanded) .nav-icon { width: 22px; flex-basis: 22px; font-size: 17px; }
    body:not(.sidebar-expanded) .nav-item--has-children { position: relative; }
    body:not(.sidebar-expanded) .nav-item--has-children > .nav-submenu {
        width: 190px;
        position: absolute;
        z-index: 5;
        top: 0;
        left: 100%;
        margin-left: 8px;
        display: none !important;
        gap: 3px;
        margin: 0;
        padding: 8px;
        border: 1px solid rgba(255,255,255,.12);
        border-radius: 12px;
        background: #242024;
        box-shadow: 0 14px 28px rgba(0,0,0,.25);
    }
    body:not(.sidebar-expanded) .nav-item--has-children:hover > .nav-submenu,
    body:not(.sidebar-expanded) .nav-item--has-children:focus-within > .nav-submenu,
    body:not(.sidebar-expanded) .nav-item--has-children.is-submenu-open > .nav-submenu { display: grid !important; }
    body:not(.sidebar-expanded) .nav-submenu .nav-link {
        width: auto;
        min-height: 36px;
        justify-content: flex-start;
        padding: 7px 9px;
        border-radius: 8px;
    }
    body:not(.sidebar-expanded) .nav-submenu .nav-label { display: inline; }
    body:not(.sidebar-expanded) .nav-submenu .nav-icon { width: 18px; flex-basis: 18px; font-size: 14px; }
    body:not(.sidebar-expanded) .nav-item--has-children > .nav-submenu::before {
        position: absolute;
        top: 0;
        right: 100%;
        width: 8px;
        height: 100%;
        content: "";
    }
    body:not(.sidebar-expanded) .nav-signout { margin-top: auto; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.1); }
    body:not(.sidebar-expanded) .nav-link::after {
        position: absolute;
        z-index: 2;
        top: 50%;
        left: calc(100% + 11px);
        padding: 7px 10px;
        border: 1px solid rgba(255,255,255,.12);
        border-radius: 8px;
        background: #242024;
        box-shadow: 0 10px 22px rgba(0,0,0,.22);
        color: #fff;
        content: attr(data-nav-label);
        font-size: 11px;
        font-weight: 750;
        line-height: 1;
        opacity: 0;
        pointer-events: none;
        transform: translate(-5px,-50%);
        visibility: hidden;
        white-space: nowrap;
        transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
    }
    body:not(.sidebar-expanded) .nav-link:hover::after,
    body:not(.sidebar-expanded) .nav-link:focus-visible::after {
        opacity: 1;
        transform: translate(0,-50%);
        visibility: visible;
    }
    body.sidebar-expanded .nav-chevron { display: inline-block; }
    body.sidebar-expanded .nav-item--has-children:hover > .nav-submenu,
    body.sidebar-expanded .nav-item--has-children:focus-within > .nav-submenu,
    body.sidebar-expanded .nav-item--has-children.is-submenu-open > .nav-submenu {
        display: grid !important;
        gap: 1px;
        margin: 3px 0 3px 19px;
        padding-left: 8px;
        border-left: 1px solid rgba(255,255,255,.14);
    }
    body.sidebar-expanded .nav-submenu .nav-link { min-height: 31px; padding: 6px 8px; color: rgba(255,255,255,.58); font-size: 10px; }
    body.sidebar-expanded .nav-submenu .nav-link.is-active { background: rgba(227,6,19,.22); box-shadow: none; color: #fff; }
}

.content { width: min(1800px,100%); min-width: 0; margin: 0 auto; padding: 0 0 30px; }
.content > h1 { margin-bottom: 24px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; color: var(--black); font-size: clamp(28px, 3vw, 38px); font-weight: 850; letter-spacing: -.05em; line-height: 1.08; }
h2 { margin-bottom: 8px; color: var(--black); font-size: clamp(18px, 2vw, 22px); font-weight: 800; letter-spacing: -.035em; line-height: 1.2; }
p { color: var(--muted); }
.page-kicker, .panel-eyebrow { display: inline-block; color: var(--red); font-size: 10px; font-weight: 850; letter-spacing: .105em; text-transform: uppercase; }

/* Shared admin page header */
.admin-page-header {
    min-width: 0;
    margin: 0 0 11px;
    padding: 0 2px;
}
.page-location {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: var(--red);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .095em;
    line-height: 1.2;
    text-transform: uppercase;
}
.page-location__icon {
    width: 20px;
    height: 20px;
    display: grid;
    flex: 0 0 20px;
    place-items: center;
    border: 1px solid #f2c7ca;
    border-radius: 7px;
    background: var(--red-soft);
    color: var(--red);
    font-size: 14px;
    line-height: 1;
}
.page-location strong { color: inherit; font-weight: 900; }

/* Dashboard */
.grid { display: grid; gap: 18px; }
.dashboard-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.stat-card { position: relative; min-height: 133px; display: flex; flex-direction: column; overflow: hidden; padding: 16px; transition: box-shadow .2s ease, transform .2s ease; }
.stat-card::after { width: 68px; height: 68px; position: absolute; right: -25px; bottom: -35px; border-radius: 50%; background: var(--red-soft); content: ""; }
.stat-card--orders::after { background: #efedef; }
.stat-card--pending::after { background: #fff5df; }
.stat-card--paid::after { background: var(--success-soft); }
.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stat-label { color: var(--muted); font-size: 12px; font-weight: 700; }
.stat-icon { width: 38px; height: 38px; display: grid; flex: 0 0 38px; place-items: center; border-radius: 12px; font-size: 18px; }
.stat-icon--red { background: var(--red-soft); color: var(--red); }
.stat-icon--dark { background: #efedef; color: var(--black); }
.stat-icon--gold { background: #fff5df; color: #bf7e13; }
.stat-icon--success { background: var(--success-soft); color: var(--success); }
.metric { margin-top: 14px; color: var(--black); font-size: clamp(25px, 2.55vw, 32px); font-weight: 850; letter-spacing: -.055em; line-height: 1; }
.stat-caption { margin-top: auto; padding-top: 10px; color: var(--muted); font-size: 10px; font-weight: 650; }
.dashboard-lower { display: grid; grid-template-columns: minmax(0,1.48fr) minmax(275px,.72fr); align-items: start; gap: 16px; margin-top: 16px; }
.panel-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 19px; }
.panel-title h2 { margin: 0; }
.panel-count { flex: 0 0 auto; padding: 7px 9px; border: 1px solid #f2d1d4; border-radius: 999px; background: var(--red-soft); }
.dashboard-active-orders, .dashboard-shortcuts { padding: 18px; }
.dashboard-panel-title { align-items: center; margin-bottom: 14px; }
.dashboard-panel-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.dashboard-panel-link { display: inline-flex; align-items: center; gap: 4px; color: var(--red); font-size: 11px; font-weight: 800; text-decoration: none; }
.dashboard-panel-link:hover { color: var(--red-dark); text-decoration: underline; text-underline-offset: 3px; }
.dashboard-order-list { display: grid; }
.dashboard-order { min-height: 63px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.dashboard-order__identity, .dashboard-order__meta { min-width: 0; display: flex; align-items: center; }
.dashboard-order__identity { gap: 10px; }
.dashboard-order__icon { width: 36px; height: 36px; display: grid; flex: 0 0 36px; place-items: center; border-radius: 11px; background: #f1efee; color: var(--black); font-size: 18px; }
.dashboard-order__identity > div { min-width: 0; display: grid; gap: 2px; }
.dashboard-order__identity strong { overflow: hidden; color: var(--black); font-size: 12px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-order__identity small { overflow: hidden; color: var(--muted); font-size: 10px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-order__identity small .mdi { margin-right: 2px; font-size: 12px; vertical-align: -1px; }
.dashboard-order__meta { flex: 0 0 auto; justify-content: flex-end; gap: 10px; }
.dashboard-order__meta > strong { color: var(--black); font-size: 12px; font-weight: 850; letter-spacing: -.02em; white-space: nowrap; }
.dashboard-empty-state { min-height: 126px; display: flex; align-items: center; gap: 12px; padding: 14px 0 0; border-top: 1px solid var(--line); }
.dashboard-empty-state__icon { width: 39px; height: 39px; display: grid; flex: 0 0 39px; place-items: center; border-radius: 12px; background: var(--success-soft); color: var(--success); font-size: 21px; }
.dashboard-empty-state > div { min-width: 0; display: grid; flex: 1 1 auto; gap: 2px; }
.dashboard-empty-state strong { color: var(--black); font-size: 12px; font-weight: 850; }
.dashboard-empty-state span:not(.dashboard-empty-state__icon) { color: var(--muted); font-size: 10px; font-weight: 650; line-height: 1.4; }
.quick-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.quick-link {
    min-height: 68px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: linear-gradient(135deg,#fff,#fcfbfb);
    color: var(--black);
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.quick-link:hover { border-color: #f0b4b8; box-shadow: 0 10px 20px rgba(36,26,27,.06); transform: translateY(-2px); }
.quick-link--primary { border-color: #f0c8cb; background: linear-gradient(135deg,#fff8f8,#fff); }
.quick-link-icon { width: 36px; height: 36px; display: grid; flex: 0 0 36px; place-items: center; border-radius: 11px; background: #f1efee; color: var(--black); font-size: 18px; }
.quick-link-icon--red { background: var(--red); color: #fff; }
.quick-link strong { display: block; font-size: 12px; font-weight: 800; }

/* Forms, lists and tables */
.btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: #edebea;
    color: var(--black);
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.btn:hover { box-shadow: 0 8px 17px rgba(28,23,24,.1); transform: translateY(-1px); }
.btn:disabled { cursor: wait; opacity: .72; transform: none; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-secondary { border-color: #ead8b3; background: #fff8e8; color: #90651a; }
.btn-danger { border-color: #f3d5d8; background: #fff1f2; color: var(--danger); }
.btn-danger-solid { border-color: transparent; background: linear-gradient(135deg,#e11d48,#c61338); box-shadow: 0 9px 18px rgba(198,38,50,.22); color: #fff; }
.btn-danger-solid:hover { background: linear-gradient(135deg,#c61338,#a80f2f); box-shadow: 0 12px 23px rgba(198,38,50,.3); }
.btn-small { min-height: 34px; padding: 8px 11px; font-size: 11px; }

.entry-form { width: 100%; margin-bottom: 24px; }
.entry-form .panel-title { margin-bottom: 17px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 14px 18px; }
.form-grid-wide { grid-column: 1 / -1; }
.field-control { min-width: 0; display: block; }
.field-label small { color: var(--muted); font-size: 10px; font-weight: 600; }
.form-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 17px; }
.form-grid .form-actions { margin-top: 0; }
.input, select, textarea {
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 11px 13px;
    border: 1px solid #ded9d8;
    border-radius: 10px;
    background: #fff;
    color: var(--black);
    font-size: 14px;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.input::placeholder, textarea::placeholder { color: #a19ca0; }
.input:hover, select:hover, textarea:hover { border-color: #c6bfc1; }
.input:focus, select:focus, textarea:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(227,6,19,.09); outline: none; }
textarea { min-height: 110px; resize: vertical; }
.checkbox-group { min-height: 46px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.checkbox-row { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--black-soft); font-size: 13px; font-weight: 650; }
.checkbox-row input { width: 16px; height: 16px; margin: 0; accent-color: var(--red); }
.list-section { min-width: 0; }
.list-section .panel-title { margin-bottom: 13px; }
.table-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.table-actions form { margin: 0; }
.orders-toolbar { align-items: center; }
.orders-search { width: min(440px,100%); position: relative; display: block; }
.orders-search > .mdi { position: absolute; z-index: 1; top: 50%; left: 13px; color: var(--red); font-size: 18px; line-height: 1; pointer-events: none; transform: translateY(-50%); }
.orders-search .input { min-height: 40px; padding: 9px 12px 9px 39px; font-size: 12px; }
.table { width: 100%; overflow: hidden; border: 1px solid var(--line); border-spacing: 0; border-radius: 14px; background: var(--white); box-shadow: var(--shadow-sm); }
.table th, .table td { padding: 15px 16px; border-bottom: 1px solid #f0edec; color: var(--black-soft); font-size: 12px; text-align: left; white-space: nowrap; }
.table th { background: #fbfafa; color: #837d81; font-size: 10px; font-weight: 850; letter-spacing: .075em; text-transform: uppercase; }
.table tbody tr { transition: background .16s ease; }
.table tbody tr:hover { background: #fffafa; }
.table tr:last-child td { border-bottom: 0; }
.empty-state { padding: 30px 16px !important; color: var(--muted) !important; text-align: center !important; }
.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 5px 8px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .045em;
    line-height: 1;
    text-transform: uppercase;
}
.status-pill--pending { border-color: #eddcb9; background: #fff8e8; color: #936817; }
.status-pill--paid { border-color: #cce9da; background: var(--success-soft); color: #18734f; }
.status-pill--danger { border-color: #f0c9cd; background: #fff1f2; color: var(--danger); }
.order-cancellation-reason { max-width: 220px; display: block; overflow: hidden; margin-top: 5px; color: var(--muted); font-size: 10px; font-weight: 650; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }

/* Thermal kitchen ticket */
.comanda-page { min-width: 0; min-height: 100vh; padding: clamp(18px,5vw,54px); background: #eeeceb; color: #111; }
.comanda-layout { width: min(100%,820px); display: grid; grid-template-columns: 72mm minmax(220px,1fr); align-items: start; gap: clamp(20px,4vw,42px); margin: 0 auto; }
.comanda { width: 72mm; min-height: 230mm; padding: 5mm 4mm 6mm; background: #fff; box-shadow: 0 16px 42px rgba(24,18,20,.15); color: #000; font-family: "Courier New", Courier, monospace; font-size: 11px; line-height: 1.34; }
.comanda__header { padding-bottom: 4mm; border-bottom: 1px dashed #000; text-align: center; }
.comanda__eyebrow { display: block; margin-bottom: 2mm; font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.comanda__header h1 { margin: 0; font-family: var(--font); font-size: 19px; font-weight: 900; letter-spacing: -.05em; line-height: 1.05; text-transform: uppercase; }
.comanda__number { display: block; margin-top: 3mm; font-size: 14px; letter-spacing: .02em; }
.comanda__meta { display: grid; gap: 2.5mm; margin: 4mm 0; padding-bottom: 4mm; border-bottom: 1px dashed #000; }
.comanda__meta div { display: flex; align-items: baseline; justify-content: space-between; gap: 4mm; }
.comanda__meta dt { color: #333; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.comanda__meta dd { margin: 0; font-size: 11px; font-weight: 700; text-align: right; }
.comanda__meta-highlight { align-items: center !important; padding: 2mm; background: #000; color: #fff; }
.comanda__meta-highlight dt { color: #fff; }
.comanda__meta-highlight dd { font-size: 14px; }
.comanda__items { padding: 1mm 0 4mm; border-bottom: 1px dashed #000; }
.comanda__items h2, .comanda__notes h2 { margin: 0 0 3mm; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.comanda__items ul { display: grid; gap: 3mm; margin: 0; padding: 0; list-style: none; }
.comanda__item { display: grid; grid-template-columns: 8mm minmax(0,1fr); align-items: start; gap: 2mm; }
.comanda__quantity { display: inline-flex; min-height: 6mm; align-items: center; justify-content: center; padding: 0 1mm; background: #000; color: #fff; font-size: 12px; font-weight: 900; line-height: 1; }
.comanda__item strong { display: block; font-size: 13px; font-weight: 900; line-height: 1.18; text-transform: uppercase; }
.comanda__item small { display: block; margin-top: 1mm; font-size: 10px; font-style: italic; line-height: 1.28; }
.comanda__notes { margin: 4mm 0 0; padding: 3mm; border: 1px solid #000; }
.comanda__notes p { margin: 0; font-size: 11px; font-weight: 700; line-height: 1.38; }
.comanda__footer { margin-top: 5mm; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.comanda-toolbar { display: grid; justify-items: start; gap: 13px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: var(--shadow-sm); }
.comanda-toolbar__icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--red-soft); color: var(--red); font-size: 23px; }
.comanda-toolbar h2 { margin: 0 0 5px; font-size: 20px; letter-spacing: -.04em; }
.comanda-toolbar p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.comanda-toolbar .btn { width: 100%; justify-content: center; }
.comanda-toolbar__link { color: var(--red-dark); font-size: 11px; font-weight: 800; text-decoration: none; }
.comanda-toolbar__link:hover { text-decoration: underline; }

.cancel-order-dialog {
    width: min(520px,calc(100vw - 32px));
    max-width: none;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 22px;
    background: var(--white);
    box-shadow: 0 28px 70px rgba(28,20,22,.28);
    color: var(--black);
}
.cancel-order-dialog[open] { animation: dialog-enter .22s cubic-bezier(.2,.8,.2,1) both; }
.cancel-order-dialog::backdrop { background: rgba(18,14,16,.58); backdrop-filter: blur(3px); }
.cancel-order-dialog__form { padding: clamp(22px,4vw,30px); }
.cancel-order-dialog__header { display: grid; grid-template-columns: 44px minmax(0,1fr); align-items: start; gap: 13px; margin-bottom: 22px; }
.cancel-order-dialog__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: #fff0f2; color: #dc183f; font-size: 25px; }
.cancel-order-dialog__eyebrow { display: block; margin-bottom: 4px; color: #c61338; font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.cancel-order-dialog h2 { margin: 0 0 5px; font-size: clamp(20px,4vw,25px); letter-spacing: -.04em; }
.cancel-order-dialog h2 span { color: var(--red); white-space: nowrap; }
.cancel-order-dialog__header p { margin: 0; font-size: 12px; line-height: 1.5; }
.cancel-order-dialog textarea { min-height: 106px; }
.cancel-order-dialog__hint { display: flex; align-items: flex-start; gap: 6px; margin: 10px 1px 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.cancel-order-dialog__hint .mdi { flex: 0 0 auto; margin-top: 1px; color: var(--red); font-size: 14px; }
.cancel-order-dialog__actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
@keyframes dialog-enter {
    from { opacity: 0; transform: translateY(10px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Order POS */
.visually-hidden {
    width: 1px;
    height: 1px;
    position: absolute;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}
.pos-order { margin-bottom: 32px; scroll-margin-top: 98px; }
.pos-workspace { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(340px,.8fr); align-items: start; gap: 20px; }
.pos-catalog, .pos-cart {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}
.pos-catalog { padding: clamp(17px,2vw,23px); }
.pos-catalog__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 17px; }
.pos-catalog__heading h2 { margin: 0 0 4px; }
.pos-search { position: relative; margin-bottom: 15px; }
.pos-search > .mdi { position: absolute; z-index: 1; top: 50%; left: 15px; color: var(--red); font-size: 19px; line-height: 1; pointer-events: none; transform: translateY(-55%); }
.pos-search .input { padding-left: 43px; }
.pos-search .input::-webkit-search-cancel-button { cursor: pointer; }
.pos-category-list { display: flex; gap: 8px; overflow-x: auto; padding: 1px 1px 8px; scrollbar-width: thin; }
.pos-category {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 5px;
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--black-soft);
    cursor: pointer;
    font-size: 11px;
    font-weight: 780;
    white-space: nowrap;
    transition: background .17s ease, border-color .17s ease, box-shadow .17s ease, color .17s ease, transform .17s ease;
}
.pos-category .mdi { font-size: 16px; line-height: 1; }
.pos-category:first-child span { padding: 2px 5px; border-radius: 999px; background: #efeded; color: var(--muted); font-size: 9px; }
.pos-category:hover { border-color: #efb9bd; background: #fff8f8; color: var(--red-dark); }
.pos-category.is-active { border-color: var(--red); background: var(--red); box-shadow: 0 7px 15px rgba(227,6,19,.18); color: #fff; }
.pos-category.is-active:first-child span { background: rgba(255,255,255,.2); color: #fff; }
.pos-product-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(118px,1fr)); gap: 10px; }
.pos-product-card {
    min-height: 0;
    aspect-ratio: 1;
    position: relative;
    display: grid;
    grid-template-rows: minmax(0,1fr) 26px 24px;
    align-items: center;
    gap: 2px;
    overflow: hidden;
    padding: 9px 8px;
    border: 1px solid #ebe6e5;
    border-radius: 16px;
    background: white;
    color: var(--black);
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}
.pos-product-card[hidden], .pos-catalog__empty[hidden] { display: none !important; }
.pos-product-card:hover { border-color: #f0afb4; box-shadow: 0 12px 22px rgba(38,26,28,.09); transform: translateY(-3px); }
.pos-product-card.is-in-cart { border-color: #e98a91; background: linear-gradient(145deg,#fff,#fff5f5); }
.pos-product-card.is-in-cart::after {
    width: 20px;
    height: 20px;
    position: absolute;
    top: 8px;
    right: 8px;
    display: grid;
    z-index: 2;
    place-items: center;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 4px 10px rgba(227,6,19,.25);
    color: #fff;
    content: attr(data-pos-quantity);
    font-size: 9px;
    font-weight: 850;
}
.pos-product-card__image {
    width: clamp(42px,44%,56px);
    aspect-ratio: 1;
    display: grid;
    place-self: center;
    place-items: center;
    margin: 0;
    border: 1px solid #efdfe0;
    border-radius: 50%;
    background: radial-gradient(circle at 31% 24%,#fff 0 16%,transparent 17%);
    box-shadow: 0 7px 14px rgba(119,62,66,.12);
    font-size: clamp(24px,2vw,30px);
    line-height: 1;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.pos-product-card:hover .pos-product-card__image { box-shadow: 0 10px 17px rgba(119,62,66,.16); transform: scale(1.06); }
.pos-product-card.is-in-cart .pos-product-card__image { border-color: #ef9fa6; background: radial-gradient(circle at 31% 24%,#fff 0 16%,transparent 17%), linear-gradient(145deg,#fff2f3,#ffdce0); }
.pos-product-card > strong { width: 100%; max-width: 100%; display: -webkit-box; align-self: center; overflow: hidden; color: var(--black-soft); font-size: 11px; font-weight: 850; letter-spacing: -.018em; line-height: 1.16; text-align: center; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.pos-product-card__footer { width: 100%; min-height: 24px; display: flex; align-items: center; align-self: end; justify-content: center; gap: 7px; margin: 0; padding: 0; color: var(--red-dark); font-size: 10px; font-weight: 850; }
.pos-product-card__add { width: 24px; height: 24px; display: grid; flex: 0 0 24px; place-items: center; border-radius: 9px; background: var(--red-soft); color: var(--red); font-size: 16px; line-height: 1; transition: background .18s ease, color .18s ease, transform .18s ease; }
.pos-product-card:hover .pos-product-card__add, .pos-product-card.is-in-cart .pos-product-card__add { background: var(--red); color: #fff; transform: scale(1.04); }
.pos-catalog__empty { margin: 22px 0 4px; padding: 24px 18px; border: 1px dashed #decfd0; border-radius: 14px; background: #fffafa; color: var(--muted); font-size: 12px; font-weight: 650; text-align: center; }
.pos-catalog__empty--static { display: grid; gap: 5px; }
.pos-catalog__empty--static strong { color: var(--black-soft); }
.pos-cart {
    position: sticky;
    top: 97px;
    max-height: calc(100dvh - 118px);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 20px;
    scrollbar-width: thin;
}
.pos-cart__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 13px; padding-bottom: 16px; border-bottom: 1px solid #eeeaea; }
.pos-cart__heading-copy { min-width: 0; }
.pos-cart__heading h2 { margin: 4px 0 0; }
.pos-cart__attendant { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px; margin: 7px 0 0; }
.pos-cart__attendant span { color: var(--red); font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.pos-cart__attendant strong { overflow-wrap: anywhere; color: var(--black-soft); font-size: 11px; font-weight: 850; }
.pos-cart__clear {
    min-height: 34px;
    flex: 0 0 auto;
    padding: 7px 10px;
    border: 1px solid #ef8f96;
    border-radius: 9px;
    background: #fff;
    color: var(--red);
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
    transition: background .17s ease, color .17s ease, opacity .17s ease;
}
.pos-cart__clear:hover:not(:disabled) { background: var(--red); color: #fff; }
.pos-cart__clear:disabled { border-color: var(--line); color: #aaa3a5; cursor: not-allowed; opacity: .7; }
.pos-cart__empty { margin: 18px 0; padding: 17px 13px; border: 1px dashed #e5d6d7; border-radius: 12px; background: #fffafa; color: var(--muted); font-size: 12px; line-height: 1.5; text-align: center; }
.pos-cart__items { display: grid; }
.pos-cart__line { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid #eeeaea; }
.pos-cart__line-copy { min-width: 0; display: grid; gap: 2px; }
.pos-cart__line-category { overflow: hidden; color: #a09295; font-size: 8px; font-weight: 820; letter-spacing: .08em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.pos-cart__line-name { overflow: hidden; color: var(--black-soft); font-size: 12px; font-weight: 830; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.pos-cart__line-price { color: var(--muted); font-size: 10px; font-weight: 650; }
.pos-cart__line-controls { display: grid; justify-items: end; gap: 5px; }
.pos-quantity { display: inline-grid; grid-template-columns: 29px 42px 29px; align-items: center; overflow: hidden; border: 1px solid #ebe5e4; border-radius: 9px; background: #fff; transition: border-color .16s ease, box-shadow .16s ease; }
.pos-quantity:focus-within { border-color: #e9838b; box-shadow: 0 0 0 3px rgba(227,6,19,.12); }
.pos-quantity__button { width: 29px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; background: #f7f5f4; color: var(--red); cursor: pointer; font-size: 16px; line-height: 1; transition: background .16s ease, color .16s ease; }
.pos-quantity__button:hover { background: var(--red); color: #fff; }
.pos-quantity__value { width: 42px; height: 28px; min-width: 0; padding: 0 2px; border: 0; appearance: textfield; background: #fff; color: var(--black-soft); font-family: inherit; font-size: 11px; font-weight: 820; text-align: center; }
.pos-quantity__value:focus { outline: 0; }
.pos-quantity__value[aria-invalid="true"] { background: #fff4f4; color: var(--danger); }
.pos-quantity__value::-webkit-inner-spin-button, .pos-quantity__value::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.pos-cart__line-subtotal { color: var(--black); font-size: 11px; font-weight: 850; }
.pos-cart__details { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 16px; padding-top: 17px; border-top: 1px solid #eeeaea; }
.pos-cart__details .field-label { margin-bottom: 5px; font-size: 10px; }
.pos-cart__details .input, .pos-cart__details select { min-height: 40px; padding: 9px 10px; font-size: 12px; }
.pos-cart__details textarea { min-height: 72px; padding: 9px 10px; font-size: 12px; }
.pos-cart__observations { grid-column: 1 / -1; }
.pos-cart__total { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 17px; padding: 17px 0; border-top: 1px solid #eeeaea; color: var(--black-soft); font-size: 12px; font-weight: 760; }
.pos-cart__total strong { color: var(--black); font-size: 22px; font-weight: 900; letter-spacing: -.04em; }
.pos-cart__submit { width: 100%; min-height: 47px; margin-top: auto; }
.pos-cart__submit:disabled { cursor: not-allowed; opacity: .55; }
.pos-mobile-summary { display: none; }

/* Reports */
.report-filter {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}
.report-filter__fields { width: min(560px,100%); display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.report-filter__fields label { min-width: 0; }
.report-filter__actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 9px; }
.report-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; margin-bottom: 25px; }
.report-stat { min-height: 153px; display: flex; flex-direction: column; justify-content: space-between; padding: 19px; }
.report-stat > span { color: var(--muted); font-size: 11px; font-weight: 750; }
.report-stat strong { color: var(--black); font-size: clamp(25px,2.5vw,32px); font-weight: 850; letter-spacing: -.055em; line-height: 1; }
.report-stat small { color: var(--muted); font-size: 10px; font-weight: 650; line-height: 1.4; }
.report-table-section { padding-bottom: 6px; }

.cash-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-bottom: 24px; }
.cash-action { scroll-margin-top: 96px; }
.cash-action h2 { margin-bottom: 5px; font-size: 18px; }
.cash-action p { margin-bottom: 18px; font-size: 12px; }
.cash-action form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 11px; align-items: start; }

/* Toast notifications */
.toast-stack {
    width: min(360px, calc(100vw - 32px));
    position: fixed;
    z-index: 150;
    top: calc(88px + env(safe-area-inset-top));
    right: 18px;
    display: grid;
    gap: 8px;
    pointer-events: none;
}
.toast {
    --toast-accent: #007e50;
    --toast-soft: rgba(255,255,255,.18);
    min-height: 60px;
    position: relative;
    display: grid;
    grid-template-columns: 32px minmax(0,1fr) 26px;
    align-items: center;
    gap: 9px;
    overflow: hidden;
    padding: 9px 7px 9px 11px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 14px;
    background: var(--toast-accent);
    box-shadow: 0 13px 28px rgba(31,25,27,.16);
    color: #fff;
    isolation: isolate;
    pointer-events: auto;
    animation: toast-enter .34s cubic-bezier(.2,.85,.25,1) both;
}
.toast::before { width: 3px; position: absolute; z-index: 0; inset: 0 auto 0 0; background: rgba(255,255,255,.72); content: ""; }
.toast--error { --toast-accent: #e11d48; }
.toast--warning { --toast-accent: #b45309; }
.toast--info { --toast-accent: #2563eb; }
.toast__icon { width: 32px; height: 32px; position: relative; z-index: 1; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; background: var(--toast-soft); color: #fff; font-size: 18px; line-height: 1; }
.toast__message { position: relative; z-index: 1; margin: 0; color: inherit; font-size: 12px; font-weight: 760; line-height: 1.35; }
.toast__close { width: 26px; height: 26px; position: relative; z-index: 1; display: grid; place-items: center; padding: 0; border: 0; border-radius: 9px; background: transparent; color: currentColor; cursor: pointer; font-size: 18px; line-height: 1; transition: background .16s ease, color .16s ease, transform .16s ease; }
.toast__close:hover { background: rgba(255,255,255,.18); transform: scale(1.06); }
.toast__progress { height: 2px; position: absolute; z-index: 1; right: 0; bottom: 0; left: 0; background: #fff; opacity: .94; transform-origin: left center; animation: toast-progress var(--toast-duration,5.2s) linear forwards; }
.toast.is-paused .toast__progress { animation-play-state: paused; }
.toast.is-leaving { pointer-events: none; animation: toast-leave .26s cubic-bezier(.4,0,1,1) both; }
.auth-shell .toast-stack { top: calc(18px + env(safe-area-inset-top)); }
@keyframes toast-enter {
    from { opacity: 0; transform: translate3d(18px,-8px,0) scale(.96); }
    to { opacity: 1; transform: translate3d(0,0,0) scale(1); }
}
@keyframes toast-leave {
    from { opacity: 1; transform: translate3d(0,0,0) scale(1); }
    to { opacity: 0; transform: translate3d(18px,-7px,0) scale(.96); }
}
@keyframes toast-progress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

/* Login */
.auth-shell {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 28px;
    background: linear-gradient(125deg,rgba(0,0,0,.68),rgba(0,0,0,.76)), radial-gradient(circle at 3% 100%,rgba(227,6,19,.58),transparent 29rem), #111012;
}
.auth-layout {
    width: min(1100px,100%);
    min-height: min(660px,calc(100vh - 56px));
    display: grid;
    grid-template-columns: 1.18fr .82fr;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 28px 75px rgba(0,0,0,.28);
}
.auth-brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    padding: clamp(30px,5vw,58px);
    background: radial-gradient(circle at 15% 15%,rgba(227,6,19,.84),transparent 17rem), radial-gradient(circle at 100% 100%,rgba(227,6,19,.43),transparent 17rem), #171417;
    color: #fff;
}
.auth-brand-panel::after { width: 360px; height: 360px; position: absolute; top: -188px; right: -188px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; content: ""; }
.auth-brand-panel img { width: min(245px,64%); position: absolute; z-index: 1; top: clamp(26px,5vw,54px); left: clamp(28px,5vw,58px); border-radius: 14px; box-shadow: 0 14px 30px rgba(0,0,0,.24); }
.auth-brand-panel > div { position: relative; z-index: 1; max-width: 520px; }
.auth-brand-panel .page-kicker { color: #ffb5bb; }
.auth-card { align-self: center; padding: clamp(34px,5vw,63px); background: #fff; }
.auth-card h2 { margin: 8px 0; font-size: clamp(27px,3vw,34px); }
.auth-card__intro { margin-bottom: 28px; font-size: 13px; line-height: 1.6; }
.field-label { display: block; margin: 0 0 7px; color: var(--black-soft); font-size: 12px; font-weight: 750; }
.auth-card .input { margin-bottom: 17px; }
.auth-submit { width: 100%; margin-top: 4px; }

/* Responsive */
@media (max-width: 1180px) {
    .dashboard-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .report-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .dashboard-lower { grid-template-columns: minmax(0,1fr); }
}

@media (max-width: 980px) {
    :root { --app-gutter: 20px; }
    .app-header { min-height: 68px; margin-left: 0; padding: 8px var(--app-gutter); }
    .container { min-height: calc(100vh - 68px); margin-left: 0; padding: 16px var(--app-gutter) 36px; }
    body.sidebar-expanded .app-header, body.sidebar-expanded .container { margin-left: 0; }
    .sidebar {
        width: min(320px,calc(100vw - 28px));
        max-height: none;
        height: 100dvh;
        overflow-x: hidden;
        overflow-y: auto;
        position: fixed;
        z-index: 100;
        top: 0;
        left: 0;
        padding-top: 13px;
        border-radius: 0 19px 19px 0;
        transform: translateX(calc(-100% - 18px));
        transition: transform .26s cubic-bezier(.2,.8,.2,1);
    }
    body.sidebar-expanded .sidebar { width: min(320px,calc(100vw - 28px)); transform: translateX(calc(-100% - 18px)); }
    body.sidebar-open { overflow: hidden; }
    .sidebar-open .sidebar { transform: translateX(0); }
    .nav-chevron { display: inline-block; }
    .nav-item--has-children > .nav-submenu {
        display: none !important;
        gap: 1px;
        margin: 3px 0 3px 19px;
        padding-left: 8px;
        border-left: 1px solid rgba(255,255,255,.14);
    }
    .nav-item--has-children.is-submenu-open > .nav-submenu { display: grid !important; }
    .nav-submenu .nav-link { min-height: 34px; padding: 6px 8px; color: rgba(255,255,255,.6); font-size: 10px; }
    .nav-submenu .nav-link.is-active { background: rgba(227,6,19,.22); box-shadow: none; color: #fff; }
    .sidebar-open .sidebar-mobile-header { animation: mobile-menu-content-in .24s .06s both; }
    .sidebar-open .nav-section { animation: mobile-menu-content-in .24s both; }
    .sidebar-open .nav-section:nth-of-type(2) { animation-delay: .05s; }
    .sidebar-open .nav-section:nth-of-type(3) { animation-delay: .1s; }
    .sidebar-open .nav-signout { animation: mobile-menu-content-in .24s .15s both; }
    .sidebar-mobile-header { display: flex; align-items: center; justify-content: space-between; margin: 0 3px 13px; padding: 0 2px 12px; border-bottom: 1px solid rgba(255,255,255,.1); color: #fff; font-size: 12px; font-weight: 800; }
    .sidebar-close { width: 34px; height: 34px; display: grid; border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.1); color: #fff; font-size: 18px; line-height: 1; }
    .sidebar-overlay { position: fixed; z-index: 90; inset: 0; display: block; visibility: hidden; background: rgba(15,13,14,.52); opacity: 0; pointer-events: none; transition: opacity .24s ease, visibility .24s ease; }
    .sidebar-open .sidebar-overlay { visibility: visible; opacity: 1; pointer-events: auto; }
    @keyframes mobile-menu-content-in {
        from { opacity: 0; transform: translateX(-8px); }
        to { opacity: 1; transform: translateX(0); }
    }
    .content { padding: 0; }
    .auth-layout { grid-template-columns: 1fr; }
    .auth-brand-panel { min-height: 360px; }
    .auth-card { min-height: 420px; }
}

@media (max-width: 980px) and (prefers-reduced-motion: reduce) {
    .sidebar,
    .sidebar-overlay,
    .sidebar-open .sidebar-mobile-header,
    .sidebar-open .nav-section,
    .sidebar-open .nav-signout {
        animation: none;
        transition: none;
    }
}

@media (max-width: 700px) {
    .app-header__right { gap: 10px; }
    .header-primary-action { width: 42px; padding: 0; }
    .header-primary-action > span:last-child, .user-summary__copy { display: none; }
    .cash-actions, .form-grid { grid-template-columns: minmax(0,1fr); }
    .report-filter { align-items: stretch; flex-direction: column; }
    .report-filter__fields { grid-template-columns: minmax(0,1fr); }
    .report-filter__actions { width: 100%; }
    .report-filter__actions .btn { flex: 1 1 150px; }
    .report-summary { grid-template-columns: minmax(0,1fr); gap: 12px; }
    .report-stat { min-height: 128px; }
    .form-grid-wide { grid-column: auto; }
    .cash-action form { grid-template-columns: minmax(0,1fr); }
    .table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .table th, .table td { padding: 13px 14px; }
    .auth-shell { padding: 14px; }
    .auth-layout { min-height: calc(100vh - 28px); border-radius: 22px; }
    .auth-brand-panel { min-height: 330px; padding: 26px 24px; }
    .auth-brand-panel img { width: min(160px,54%); position: relative; top: auto; left: auto; margin-bottom: 22px; }
    .auth-card { padding: 34px 28px; }
    .dashboard-panel-title { align-items: flex-start; }
    .dashboard-order { gap: 10px; }
    .dashboard-order__meta { gap: 8px; }
}

@media (max-width: 480px) {
    :root { --app-gutter: 14px; }
    .app-header { padding: 8px var(--app-gutter); }
    .app-header__left { gap: 9px; }
    .brand__mark { width: 50px; height: 38px; flex-basis: 50px; border-radius: 10px; }
    .brand__copy strong { font-size: 11px; }
    .brand__copy small { display: none; }
    .container { padding: 12px var(--app-gutter) 28px; }
    .dashboard-stats, .quick-links { grid-template-columns: minmax(0,1fr); }
    .panel-title { flex-direction: column; }
    .orders-toolbar { align-items: stretch; }
    .orders-search { width: 100%; }
    .card { padding: 18px; }
    .stat-card { min-height: 128px; }
    .metric { font-size: 28px; }
    .dashboard-panel-actions { justify-content: flex-start; }
    .dashboard-empty-state { min-height: 0; flex-wrap: wrap; padding-top: 14px; }
    .dashboard-empty-state .btn { width: 100%; }
    .cancel-order-dialog { width: calc(100vw - 24px); border-radius: 18px; }
    .cancel-order-dialog__form { padding: 21px; }
    .cancel-order-dialog__header { grid-template-columns: 39px minmax(0,1fr); gap: 10px; }
    .cancel-order-dialog__icon { width: 39px; height: 39px; border-radius: 12px; font-size: 22px; }
    .cancel-order-dialog__actions .btn { width: 100%; }
    .auth-brand-panel { min-height: 0; padding: 22px 20px; }
    .auth-brand-panel img { width: min(140px,52%); margin-bottom: 18px; }
}

@media (min-width: 360px) and (max-width: 480px) {
    .dashboard-stats, .quick-links { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
    .stat-card { min-height: 126px; padding: 14px; }
    .stat-label { font-size: 10px; }
    .stat-icon { width: 33px; height: 33px; flex-basis: 33px; border-radius: 10px; font-size: 16px; }
    .metric { font-size: clamp(20px,6.5vw,26px); }
    .stat-caption { font-size: 9px; }
    .quick-link { min-height: 62px; gap: 8px; padding: 9px; }
    .quick-link-icon { width: 32px; height: 32px; flex-basis: 32px; border-radius: 10px; font-size: 16px; }
    .quick-link strong { font-size: 11px; }
}

@media (max-width: 359px) {
    .dashboard-order { align-items: flex-start; flex-direction: column; }
    .dashboard-order__meta { width: 100%; justify-content: space-between; }
}

@media (max-width: 1120px) {
    .pos-workspace { grid-template-columns: minmax(0,1fr) minmax(315px,.76fr); gap: 17px; }
    .pos-product-grid { grid-template-columns: repeat(auto-fill,minmax(118px,1fr)); gap: 10px; }
    .pos-product-card { min-height: 0; padding: 10px; }
    .pos-cart { padding: 17px; }
}

@media (max-width: 820px) {
    .pos-workspace { grid-template-columns: minmax(0,1fr); }
    .pos-cart { max-height: none; position: static; }
    .orders-content { padding-bottom: 92px; }
    .pos-mobile-summary:not([hidden]) {
        position: fixed;
        z-index: 85;
        right: 16px;
        bottom: calc(12px + env(safe-area-inset-bottom));
        left: 16px;
        min-height: 58px;
        display: grid;
        grid-template-columns: minmax(0,1fr) auto auto;
        align-items: center;
        gap: 12px;
        padding: 10px 15px;
        border: 1px solid rgba(255,255,255,.21);
        border-radius: 16px;
        background: linear-gradient(135deg,#ec0716,#bd030d);
        box-shadow: 0 14px 28px rgba(156,2,11,.32);
        color: #fff;
        cursor: pointer;
        font-family: inherit;
        text-align: left;
    }
    .pos-mobile-summary > span:first-child { min-width: 0; display: grid; gap: 1px; }
    .pos-mobile-summary > span:first-child strong { overflow: hidden; font-size: 12px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
    .pos-mobile-summary > span:first-child small { color: rgba(255,255,255,.75); font-size: 10px; font-weight: 650; }
    .pos-mobile-summary > strong { font-size: 16px; font-weight: 900; letter-spacing: -.03em; }
    .pos-mobile-summary > .mdi { font-size: 20px; }
}

@media (max-width: 560px) {
    .toast-stack { width: auto; top: calc(80px + env(safe-area-inset-top)); right: 12px; left: 12px; }
    .toast { grid-template-columns: 30px minmax(0,1fr) 26px; gap: 8px; padding: 9px 7px 9px 11px; }
    .toast__icon { width: 30px; height: 30px; border-radius: 9px; font-size: 15px; }
    .toast__message { font-size: 12px; }
    .pos-order { margin-bottom: 26px; }
    .pos-catalog, .pos-cart { border-radius: 17px; }
    .pos-catalog { padding: 15px; }
    .pos-catalog__heading { align-items: flex-start; flex-direction: column; gap: 7px; margin-bottom: 14px; }
    .pos-category-list { margin-right: -2px; }
    .pos-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
    .pos-product-card { min-height: 0; padding: 9px; border-radius: 15px; }
    .pos-product-card__image { width: 54px; font-size: 29px; }
    .pos-cart { padding: 16px; }
    .pos-cart__details { grid-template-columns: minmax(0,1fr); }
    .pos-cart__observations { grid-column: auto; }
    .pos-cart__line { gap: 8px; }
    .pos-cart__line-name { max-width: 152px; }
    .pos-mobile-summary:not([hidden]) { right: 12px; left: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media (max-width: 700px) {
    .comanda-page { padding: 16px; }
    .comanda-layout { grid-template-columns: minmax(0,1fr); justify-items: center; gap: 18px; }
    .comanda-toolbar { width: min(100%,72mm); padding: 19px; }
}

@media print {
    html, body.comanda-page { width: 80mm; min-width: 0; min-height: 0; background: #fff !important; }
    body.comanda-page { margin: 0; padding: 0; color: #000; }
    .comanda-page .comanda-layout { display: block; width: 72mm; margin: 0; }
    .comanda-page .comanda { width: 72mm; min-height: 0; padding: 4mm; box-shadow: none; }
    .comanda-page .comanda-toolbar { display: none !important; }
    .comanda-page .comanda__quantity, .comanda-page .comanda__meta-highlight { border: 1px solid #000; background: #fff !important; color: #000 !important; }
    .comanda-page .comanda__meta-highlight dt { color: #000; }
}
