:root {
    --theme: #2563eb;
    --theme-dark: #1d4ed8;
    --ink: #111827;
    --muted: #667085;
    --line: #e6eaf0;
    --surface: #ffffff;
    --soft: #f6f8fb;
    --panel: #172033;
    --radius: 12px;
    --shadow: 0 14px 35px rgba(15, 23, 42, .08);
}

.sales-page {
    margin: 0;
    background: #eef3f8;
    color: #101827;
    font-family: Arial, sans-serif;
}

.sales-page a {
    color: inherit;
    text-decoration: none;
}

.sales-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 16px clamp(18px, 4vw, 54px);
    border-bottom: 1px solid rgba(148, 163, 184, .28);
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(14px);
}

.sales-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 20px;
}

.sales-brand span {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #2563eb;
    color: #fff;
}

.sales-nav nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: #4b5f78;
    font-weight: 800;
}

.sales-login form {
    display: flex;
    gap: 8px;
}

.sales-login input {
    width: 140px;
    height: 38px;
    border: 1px solid #cad6e6;
    border-radius: 9px;
    padding: 0 10px;
    font-weight: 800;
}

.sales-login button,
.sales-primary,
.sales-secondary,
.sales-plan-grid a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 10px;
    border: 0;
    padding: 0 16px;
    font-weight: 900;
    cursor: pointer;
}

.sales-login button,
.sales-primary {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 14px 28px rgba(37, 99, 235, .23);
}

.sales-secondary {
    background: #fff;
    color: #1f2a3d;
    border: 1px solid #cdd8e7;
}

.sales-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
    gap: clamp(28px, 5vw, 70px);
    align-items: center;
    padding: clamp(54px, 8vw, 110px) clamp(18px, 6vw, 78px);
    background:
        linear-gradient(135deg, rgba(15, 23, 42, .94), rgba(8, 47, 73, .88)),
        url("https://images.unsplash.com/photo-1559339352-11d035aa65de?auto=format&fit=crop&w=1800&q=82") center / cover;
    color: #fff;
}

.sales-kicker {
    margin: 0 0 10px;
    color: #93c5fd;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.sales-hero h1 {
    margin: 0;
    max-width: 720px;
    font-size: clamp(44px, 7vw, 82px);
    line-height: .98;
}

.sales-hero-copy > p:not(.sales-kicker) {
    max-width: 650px;
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.65;
}

.sales-actions,
.sales-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.sales-proof span {
    display: grid;
    gap: 2px;
    min-width: 150px;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 14px;
    background: rgba(255,255,255,.08);
}

.sales-proof b {
    font-size: 22px;
}

.sales-window {
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 22px;
    background: rgba(255,255,255,.12);
    box-shadow: 0 30px 90px rgba(0,0,0,.32);
    backdrop-filter: blur(16px);
}

.sales-window-bar {
    display: flex;
    gap: 7px;
    padding: 16px;
    background: rgba(15, 23, 42, .48);
}

.sales-window-bar i {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #93c5fd;
}

.sales-metrics,
.sales-board {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.sales-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sales-metrics span,
.sales-board article {
    display: grid;
    gap: 6px;
    padding: 16px;
    border-radius: 14px;
    background: rgba(255,255,255,.12);
}

.sales-metrics b {
    color: #fbbf24;
    font-size: 24px;
}

.sales-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sales-board strong {
    font-size: 18px;
}

.sales-board em {
    color: #bfdbfe;
    font-style: normal;
    font-weight: 800;
}

.sales-section,
.sales-contact {
    padding: clamp(46px, 7vw, 86px) clamp(18px, 6vw, 78px);
}

.sales-section-head {
    max-width: 760px;
    margin-bottom: 28px;
}

.sales-section-head p {
    margin: 0 0 8px;
    color: #2563eb;
    font-weight: 900;
    text-transform: uppercase;
}

.sales-section-head h2,
.sales-contact h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(30px, 5vw, 52px);
    line-height: 1.06;
}

.sales-feature-grid,
.sales-plan-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.sales-feature-grid article,
.sales-plan-grid article {
    min-height: 210px;
    padding: 22px;
    border: 1px solid #d5e0ee;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 38px rgba(15,23,42,.06);
}

.sales-feature-grid span {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 900;
}

.sales-feature-grid h3,
.sales-plan-grid h3 {
    margin: 18px 0 8px;
    color: #111827;
    font-size: 22px;
}

.sales-feature-grid p,
.sales-plan-grid p,
.sales-contact p {
    color: #52657f;
    line-height: 1.6;
}

.sales-band {
    background: #111827;
}

.sales-band .sales-section-head h2 {
    color: #fff;
}

.sales-module-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sales-module-list span {
    padding: 12px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.1);
    color: #e5efff;
    font-weight: 900;
}

.sales-plan-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sales-plan-grid .is-featured {
    border-color: #2563eb;
    box-shadow: 0 24px 60px rgba(37,99,235,.16);
}

.sales-plan-grid a {
    width: fit-content;
    margin-top: 18px;
    background: #111827;
    color: #fff;
}

.sales-plan-grid .is-featured a {
    background: #2563eb;
}

.sales-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin: 0 clamp(18px, 6vw, 78px) 42px;
    border-radius: 22px;
    background: linear-gradient(135deg, #eff6ff, #fff);
    border: 1px solid #cfe0f5;
}

.sales-footer {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 24px clamp(18px, 6vw, 78px);
    color: #64748b;
    font-weight: 800;
}

@media (max-width: 1040px) {
    .sales-nav {
        grid-template-columns: 1fr;
    }
    .sales-nav nav {
        justify-content: flex-start;
        overflow-x: auto;
    }
    .sales-hero,
    .sales-feature-grid,
    .sales-plan-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .sales-login form,
    .sales-contact {
        display: grid;
    }
    .sales-login input {
        width: 100%;
    }
    .sales-metrics,
    .sales-board {
        grid-template-columns: 1fr;
    }
}

.settings-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.settings-page-head h1 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #0f172a;
    font-size: 28px;
}

.settings-page-head h1 svg,
.settings-panel > header > span svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.settings-page-head p {
    margin: 6px 0 0;
    color: #64748b;
    font-weight: 800;
}

.settings-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(310px, 360px);
    gap: 18px;
    align-items: start;
}

.settings-main-stack,
.settings-side-stack {
    display: grid;
    gap: 16px;
}

.settings-side-stack {
    position: sticky;
    top: 18px;
}

.settings-panel {
    overflow: hidden;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, .05);
}

.settings-panel > header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.settings-panel > header > span {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 8px;
    color: #2563eb;
    background: #dbeafe;
}

.settings-panel h2 {
    margin: 0;
    color: #0f172a;
    font-size: 17px;
}

.settings-panel p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 750;
}

.settings-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 18px;
}

.settings-form-grid .field-wide {
    grid-column: 1 / -1;
}

.settings-form-grid .field b {
    color: #e11d48;
}

.settings-form-grid .field small,
.side-form .field small {
    display: block;
    margin-top: 6px;
    min-height: 16px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 850;
}

.settings-toggle-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
    padding: 0 18px 18px;
}

.settings-toggle-row.compact {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.settings-toggle-row label {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    color: #172033;
    background: #f8fafc;
    font-weight: 900;
}

.settings-toggle-row input,
.module-toggle-card input {
    accent-color: #2563eb;
}

.settings-module-grid {
    padding: 0 18px 18px;
}

.settings-savebar {
    position: sticky;
    bottom: 12px;
    z-index: 10;
    display: flex;
    justify-content: flex-end;
    padding: 12px;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 16px 34px rgba(15, 23, 42, .10);
    backdrop-filter: blur(10px);
}

.side-panel .side-form {
    display: grid;
    gap: 12px;
    padding: 16px;
}

.side-form .ghost-btn,
.side-form .warning-btn {
    justify-content: center;
    width: 100%;
}

.side-form input[type="range"] {
    padding: 0;
}

.info-panel dl {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 8px 16px 16px;
}

.info-panel dl div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #edf2f7;
}

.info-panel dl div:last-child {
    border-bottom: 0;
}

.info-panel dt,
.info-panel dd {
    margin: 0;
    font-weight: 900;
}

.info-panel dt {
    color: #64748b;
}

.info-panel dd {
    color: #0f172a;
    text-align: right;
}

.personnel-actionbar {
    align-items: center;
    margin-bottom: 16px;
}

.personnel-actionbar p,
.personnel-section p {
    margin: 6px 0 0;
    color: var(--admin-muted);
    font-weight: 700;
}

.personnel-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.personnel-summary-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    color: inherit;
}

.personnel-summary-card strong {
    display: block;
    font-size: 28px;
    line-height: 1;
}

.personnel-summary-card small {
    display: block;
    margin-top: 5px;
    color: var(--admin-muted);
    font-weight: 850;
}

.personnel-summary-icon,
.personnel-avatar {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    border-radius: 18px;
    color: #2563eb;
    background: #dbeafe;
}

.personnel-summary-icon svg,
.personnel-avatar svg,
.icon-action svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.personnel-call-card {
    border-color: #fed7aa;
    background: linear-gradient(135deg, #fff7ed, #fff);
}

.personnel-call-card .personnel-summary-icon {
    color: #ea580c;
    background: #ffedd5;
}

.personnel-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 4px 0 18px;
}

.personnel-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    color: #1f2937;
    background: #fff;
    font-weight: 900;
}

.personnel-tabs a.active,
.personnel-tabs a:hover {
    color: #fff;
    border-color: var(--theme);
    background: var(--theme);
}

.personnel-tabs a.active span,
.personnel-tabs a:hover span {
    color: var(--theme);
    background: #fff;
}

.personnel-tabs span {
    min-width: 24px;
    min-height: 24px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: #2563eb;
    background: #eff6ff;
    font-size: 12px;
}

.personnel-section {
    display: grid;
    gap: 14px;
    margin-bottom: 26px;
}

.personnel-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 320px));
    gap: 16px;
}

.personnel-card {
    position: relative;
    display: grid;
    overflow: hidden;
    padding: 0;
    border-radius: 8px;
    color: #fff;
    border: 0;
    background: linear-gradient(135deg, #2563eb, #0f766e);
    box-shadow: 0 16px 35px rgba(15, 23, 42, .12);
}

.personnel-card::after {
    content: "";
    position: absolute;
    top: -46px;
    right: -36px;
    width: 110px;
    height: 110px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    pointer-events: none;
}

.personnel-card-main {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 7px;
    padding: 22px 18px 12px;
    text-align: center;
}

.personnel-card-main strong {
    font-size: 17px;
}

.personnel-card-main small {
    color: rgba(255, 255, 255, .78);
    font-weight: 800;
}

.personnel-card .personnel-avatar {
    color: #2563eb;
    background: rgba(255, 255, 255, .92);
}

.personnel-card .status-pill {
    color: #065f46;
    background: #d1fae5;
}

.personnel-card .status-cancelled {
    color: #991b1b;
    background: #fee2e2;
}

.personnel-metrics {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 12px;
}

.personnel-metrics span,
.personnel-info-list span {
    display: grid;
    gap: 4px;
    min-height: 58px;
    align-content: center;
    padding: 10px;
    border-radius: 8px;
    color: #fff;
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .14);
}

.personnel-metrics span:nth-child(1) {
    color: #fff;
    background: rgba(255, 255, 255, .16);
}

.personnel-metrics span:nth-child(2) {
    color: #fff;
    background: rgba(255, 255, 255, .13);
}

.personnel-metrics span:nth-child(3) {
    color: #fff;
    background: rgba(255, 255, 255, .11);
}

.personnel-metrics span:nth-child(4) {
    color: #fff;
    background: rgba(255, 255, 255, .15);
}

.personnel-metrics strong {
    font-size: 16px;
}

.personnel-metrics small,
.personnel-info-list b {
    color: rgba(255, 255, 255, .72);
    font-size: 11px;
    font-weight: 900;
}

.personnel-total {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0 14px 14px;
    text-align: center;
    color: rgba(255, 255, 255, .82);
    font-weight: 850;
}

.personnel-info-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 8px;
    padding: 12px;
}

.personnel-info-list span {
    min-height: 52px;
    color: #fff;
    font-weight: 850;
}

.personnel-card-footer {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid rgba(255, 255, 255, .14);
    background: rgba(15, 23, 42, .12);
}

.personnel-card-footer form {
    margin: 0;
}

.icon-action {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 8px;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    cursor: pointer;
}

.icon-action:hover {
    color: #2563eb;
    background: #fff;
}

.icon-action.danger {
    color: #fff;
    border-color: rgba(255, 255, 255, .55);
}

.icon-action.danger:hover {
    color: #fff;
    background: #e11d48;
}

.staff-modal {
    width: min(560px, calc(100vw - 28px));
}

.staff-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 16px;
}

.staff-form .full,
.staff-form .modal-actions {
    grid-column: 1 / -1;
}

.staff-form .modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 8px;
}

.campaign-page-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.campaign-page-head h1 {
    margin: 0;
    font-size: 28px;
}

.campaign-empty {
    min-height: 190px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    border-radius: 8px;
    background: #fff;
}

.campaign-empty span {
    display: inline-grid;
    place-items: center;
    width: 54px;
    height: 54px;
    color: #a8b3c3;
}

.campaign-empty svg {
    width: 42px;
    height: 42px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.campaign-empty strong {
    font-size: 17px;
}

.campaign-table-wrap {
    overflow: hidden;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 35px rgba(15, 23, 42, .05);
}

.campaign-table td strong {
    display: block;
    font-size: 15px;
}

.campaign-table td small {
    display: block;
    margin-top: 4px;
    color: var(--admin-muted);
    font-weight: 750;
}

.campaign-chip {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    color: #075985;
    background: #e0f2fe;
    font-size: 12px;
    font-weight: 900;
}

.campaign-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.campaign-actions form {
    margin: 0;
}

.icon-action.light {
    color: #2563eb;
    border-color: #2563eb;
    background: #fff;
}

.icon-action.light:hover {
    color: #fff;
    background: #2563eb;
}

.icon-action.danger.light {
    color: #e11d48;
    border-color: #fb7185;
}

.icon-action.danger.light:hover {
    color: #fff;
    background: #e11d48;
}

.campaign-modal {
    width: min(720px, calc(100vw - 28px));
    max-height: calc(100vh - 32px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.campaign-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 16px;
    overflow: auto;
}

.campaign-form .full,
.campaign-form .modal-actions {
    grid-column: 1 / -1;
}

.campaign-form .modal-actions {
    position: sticky;
    bottom: -16px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin: 0 -16px -16px;
    padding: 12px 16px 16px;
    border-top: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(10px);
}

.campaign-product-picker {
    display: grid;
    gap: 12px;
    padding: 12px;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    background: #f8fafc;
}

.campaign-picker-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.campaign-picker-head strong,
.campaign-picker-head small {
    display: block;
}

.campaign-picker-head strong {
    color: #0f172a;
    font-size: 15px;
}

.campaign-picker-head small {
    margin-top: 2px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.campaign-picker-head span {
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: 999px;
    color: #1d4ed8;
    background: #dbeafe;
    font-size: 12px;
    font-weight: 950;
}

.campaign-picker-search {
    margin: 0;
}

.campaign-product-list {
    max-height: min(38vh, 390px);
    overflow: auto;
    padding-right: 6px;
}

.campaign-product-category {
    margin-bottom: 14px;
}

.campaign-product-category:last-child {
    margin-bottom: 0;
}

.campaign-product-category h3 {
    margin: 0 0 8px;
    color: #2563eb;
    font-size: 14px;
    font-weight: 950;
}

.campaign-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.campaign-product-card {
    position: relative;
    display: grid;
    min-height: 124px;
    justify-items: center;
    gap: 5px;
    padding: 10px;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    color: #0f172a;
    background: #fff;
    box-shadow: 0 6px 14px rgba(15, 23, 42, .05);
    cursor: pointer;
    transition: .18s ease;
}

.campaign-product-card:hover {
    border-color: #7c5cff;
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(15, 23, 42, .10);
}

.campaign-product-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.campaign-product-card.is-selected {
    border-color: #2563eb;
    background: linear-gradient(180deg, #eff6ff, #fff);
    box-shadow: 0 14px 30px rgba(37, 99, 235, .18);
}

.campaign-card-check {
    position: absolute;
    top: 8px;
    right: 8px;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    color: #fff;
    background: #2563eb;
    font-size: 12px;
    font-weight: 950;
    opacity: 0;
    transform: scale(.8);
    transition: .18s ease;
}

.campaign-product-card.is-selected .campaign-card-check {
    opacity: 1;
    transform: scale(1);
}

.campaign-product-card img,
.campaign-product-placeholder {
    width: 46px;
    height: 46px;
    border-radius: 8px;
}

.campaign-product-card img {
    object-fit: cover;
}

.campaign-product-placeholder {
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #14b8a6);
    font-weight: 950;
}

.campaign-product-card strong {
    color: #0f172a;
    font-size: 13px;
    line-height: 1.25;
    text-align: center;
}

.campaign-product-card b {
    color: #2563eb;
    font-size: 13px;
}

.reports-page {
    display: grid;
    gap: 18px;
}

.reports-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.reports-head h1 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 28px;
}

.reports-head h1 span,
.report-filter-btn svg,
.report-method-icon svg,
.report-kpi small svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.reports-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.reports-filter input,
.reports-filter select {
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #111827;
    background: #fff;
    font: inherit;
    font-weight: 800;
}

.report-periods {
    display: inline-flex;
    overflow: hidden;
    border: 1px solid #64748b;
    border-radius: 8px;
    background: #fff;
}

.report-periods a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-right: 1px solid #64748b;
    color: #475569;
    font-size: 13px;
    font-weight: 850;
}

.report-periods a:last-child {
    border-right: 0;
}

.report-periods a.active,
.report-periods a:hover {
    color: #fff;
    background: #64748b;
}

.report-filter-btn,
.report-pdf-btn {
    min-width: 38px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.report-filter-btn {
    color: #fff;
    border: 0;
    background: #7c3aed;
}

.report-pdf-btn {
    color: #dc2626;
    border: 1px solid #dc2626;
    background: #fff;
}

.report-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 14px;
}

.report-kpi {
    min-height: 86px;
    display: grid;
    align-content: center;
    gap: 8px;
    padding: 18px;
    border-radius: 8px;
    border-left: 3px solid #2563eb;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}

.report-kpi small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.report-kpi strong {
    color: #0f172a;
    font-size: 26px;
    line-height: 1;
}

.report-kpi.tone-green { border-left-color: #059669; }
.report-kpi.tone-green strong { color: #059669; }
.report-kpi.tone-red { border-left-color: #e11d48; }
.report-kpi.tone-red strong { color: #e11d48; }
.report-kpi.tone-blue { border-left-color: #2563eb; }
.report-kpi.tone-indigo { border-left-color: #2563eb; }
.report-kpi.tone-amber { border-left-color: #f59e0b; }
.report-kpi.tone-amber strong { color: #f59e0b; }

.report-payment-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(160px, 1fr));
    gap: 14px;
}

.report-payment-card {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.report-method-icon {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
}

.report-method-icon.method-cash { color: #059669; }
.report-method-icon.method-card { color: #2563eb; }
.report-method-icon.method-eft { color: #0891b2; }
.report-method-icon.method-qr { color: #111827; }
.report-method-icon.method-comp { color: #f59e0b; }

.report-payment-card small,
.report-payment-card em {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-style: normal;
    font-weight: 850;
}

.report-payment-card strong {
    display: block;
    margin: 2px 0;
    color: #0f172a;
    font-size: 16px;
}

.report-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 1px solid #dbe4f0;
}

.report-tabs a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 0 16px;
    color: #2563eb;
    background: transparent;
    border: 1px solid transparent;
    border-bottom: 0;
    font-weight: 850;
}

.report-tabs a.active {
    color: #111827;
    border-color: #dbe4f0;
    border-radius: 8px 8px 0 0;
    background: #fff;
}

.report-table-wrap {
    overflow-x: auto;
    border-top: 0;
    background: #fff;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.report-table th {
    padding: 13px 14px;
    color: #64748b;
    background: #fff;
    border-bottom: 1px solid #dbe4f0;
    text-align: left;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.report-table td {
    padding: 15px 14px;
    border-bottom: 1px solid #e5eaf1;
    color: #172033;
    font-weight: 800;
}

.report-table .empty-cell {
    height: 62px;
    color: #64748b;
    text-align: center;
    font-weight: 750;
}

.receipts-head small {
    color: #475569;
    font-size: 13px;
    font-weight: 800;
}

.receipts-filter {
    justify-content: flex-start;
    padding: 12px;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .04);
}

.receipts-filter .report-filter-btn {
    gap: 6px;
    padding: 0 12px;
}

.receipts-filter .report-filter-btn svg {
    width: 15px;
    height: 15px;
}

.receipt-list-panel {
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #dbe4f0;
    background: #fff;
}

.receipt-list-panel > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 0 16px;
    border-bottom: 1px solid #dbe4f0;
}

.receipt-list-panel > header strong {
    color: #0f172a;
    font-size: 15px;
}

.receipt-list-panel > header span {
    display: inline-grid;
    min-height: 22px;
    place-items: center;
    padding: 0 9px;
    border-radius: 999px;
    color: #fff;
    background: #2563eb;
    font-size: 12px;
    font-weight: 950;
}

.receipt-empty {
    display: grid;
    min-height: 164px;
    place-items: center;
    align-content: center;
    gap: 12px;
    color: #0f172a;
    text-align: center;
}

.receipt-empty svg {
    width: 44px;
    height: 44px;
    color: #a8b3c4;
}

.receipt-empty strong {
    font-size: 17px;
}

.receipt-table-wrap {
    border: 0;
}

.receipt-table {
    min-width: 1080px;
}

.receipt-row-actions {
    display: flex;
    gap: 8px;
}

.receipt-row-actions .primary-btn,
.receipt-row-actions .ghost-btn {
    min-height: 34px;
    padding: 0 10px;
}

.ops-page {
    display: grid;
    gap: 16px;
}

.ops-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ops-head h1 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #0f172a;
    font-size: 26px;
}

.ops-head h1 svg {
    width: 24px;
    height: 24px;
}

.ops-head-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.ops-filter {
    justify-content: flex-start;
    padding: 12px;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .04);
}

.ops-filter .field {
    min-width: 190px;
    margin: 0;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
}

.ops-filter .field input,
.ops-filter .field select {
    margin-top: 5px;
}

.ops-filter .report-filter-btn {
    gap: 6px;
    padding: 0 14px;
}

.ops-filter .report-filter-btn svg {
    width: 15px;
    height: 15px;
}

.three-kpi-grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.ops-list-panel {
    overflow: hidden;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    background: #fff;
}

.ops-list-panel > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 0 16px;
    border-bottom: 1px solid #dbe4f0;
}

.ops-list-panel > header strong {
    color: #0f172a;
    font-size: 15px;
}

.ops-list-panel > header span {
    display: inline-grid;
    min-height: 22px;
    place-items: center;
    padding: 0 9px;
    border-radius: 999px;
    color: #fff;
    background: #64748b;
    font-size: 12px;
    font-weight: 950;
}

.ops-empty {
    display: grid;
    min-height: 166px;
    place-items: center;
    align-content: center;
    gap: 12px;
    color: #0f172a;
    text-align: center;
}

.ops-empty svg {
    width: 44px;
    height: 44px;
    color: #a8b3c4;
}

.ops-empty strong {
    font-size: 17px;
}

.ops-table {
    min-width: 880px;
}

.expense-modal-card,
.attendance-modal-card {
    width: min(560px, 100%);
}

.ops-modal-form {
    display: grid;
    gap: 12px;
    padding: 16px;
}

.ops-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ops-modal-form .field {
    margin: 0;
}

.activity-filter {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(150px, 180px) minmax(150px, 180px) auto auto;
}

.activity-table {
    min-width: 960px;
}

.activity-role {
    display: inline-flex;
    min-height: 22px;
    align-items: center;
    margin-left: 6px;
    padding: 0 8px;
    border-radius: 999px;
    color: #475569;
    background: #e2e8f0;
    font-size: 11px;
    font-weight: 900;
}

.activity-action {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    color: #047857;
    background: #ecfdf5;
    font-weight: 950;
}

.activity-action.is-danger {
    color: #e11d48;
    background: #fff1f2;
}

@media print {
    .sidebar,
    .admin-topbar,
    .reports-filter,
    .report-tabs {
        display: none !important;
    }

    .admin-main,
    .admin-content {
        padding: 0 !important;
    }
}

@media (max-width: 820px) {
    .campaign-page-head {
        align-items: stretch;
        flex-direction: column;
    }

    .campaign-page-head .primary-btn {
        width: 100%;
    }

    .campaign-form {
        grid-template-columns: 1fr;
    }

    .campaign-modal {
        width: calc(100vw - 24px);
        max-height: calc(100vh - 24px);
    }

    .campaign-picker-head {
        align-items: stretch;
        flex-direction: column;
    }

    .campaign-picker-head span {
        width: max-content;
    }

    .campaign-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .campaign-product-list {
        max-height: 42vh;
    }

    .reports-head,
    .reports-filter {
        align-items: stretch;
        flex-direction: column;
    }

    .reports-filter input,
    .reports-filter select,
    .report-pdf-btn,
    .report-filter-btn {
        width: 100%;
    }

    .report-periods {
        width: 100%;
    }

    .report-periods a {
        flex: 1;
        justify-content: center;
    }

    .report-summary-grid,
    .report-payment-grid {
        grid-template-columns: 1fr;
    }

    .public-review-shell {
        grid-template-columns: 1fr;
    }

    .review-reply-form {
        grid-template-columns: 1fr;
    }

    .ops-head,
    .ops-filter {
        align-items: stretch;
        flex-direction: column;
    }

    .ops-head-actions,
    .ops-head-actions .primary-btn,
    .ops-head-actions .success-btn,
    .ops-head-actions .ghost-btn {
        width: 100%;
    }

    .three-kpi-grid {
        grid-template-columns: 1fr;
    }

    .activity-filter {
        display: flex;
    }
}

.switch-row {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 850;
}

.switch-row input {
    width: 36px;
    height: 20px;
    accent-color: var(--theme);
}

@media (max-width: 720px) {
    .staff-form,
    .personnel-metrics {
        grid-template-columns: 1fr;
    }

    .personnel-actionbar {
        align-items: stretch;
    }
}

.extra-group {
    border: 1px solid var(--line);
    border-radius: 14px;
    display: grid;
    gap: 8px;
    margin: 14px 0;
    padding: 12px;
}

.extra-group > small {
    color: var(--muted);
}

.extra-option {
    align-items: center;
    background: color-mix(in srgb, var(--surface) 92%, var(--theme));
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
    display: grid;
    gap: 10px;
    grid-template-columns: auto 1fr auto;
    padding: 10px 12px;
}

.extra-option b {
    white-space: nowrap;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--soft);
}

a {
    color: inherit;
}

.container {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
}

.hero {
    min-height: 100vh;
    display: block;
    padding: 28px 0 42px;
    color: white;
    background:
        linear-gradient(90deg, rgba(12, 18, 32, .93), rgba(12, 18, 32, .70)),
        url("https://images.unsplash.com/photo-1552566626-52f8b828add9?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.home-hero-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
}

.home-hero-header .logo-mark {
    flex: 0 0 auto;
    margin-bottom: 0;
}

.home-hero-header h1 {
    margin: 4px 0 6px;
    font-size: clamp(34px, 5vw, 64px);
    line-height: .98;
}

.home-hero-header p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: 18px;
    line-height: 1.55;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(320px, 460px) minmax(320px, 1fr);
    gap: 36px;
    align-items: start;
}

.hero-card {
    width: 100%;
}

.hero-side {
    display: grid;
    gap: 16px;
}

.hero-media {
    min-height: 520px;
    border-radius: 18px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.38)),
        var(--hero-media, url("https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?auto=format&fit=crop&w=1200&q=80")) center / cover;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .35);
}

.home-side-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.side-link-item {
    min-height: 86px;
    padding: 13px 14px;
}

.side-link-item strong {
    font-size: 15px;
}

.side-link-item .home-link-chevron {
    font-size: 24px;
}

.home-action-copy {
    display: grid;
    gap: 6px;
    margin-bottom: 18px;
}

.home-action-copy strong {
    font-size: 22px;
}

.home-action-copy span {
    color: rgba(255, 255, 255, .72);
    line-height: 1.55;
}

.logo-mark {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    margin-bottom: 24px;
    border-radius: 18px;
    background: white;
    color: var(--theme);
    font-size: 34px;
    font-weight: 900;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .28);
}

.logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.eyebrow {
    color: rgba(255, 255, 255, .74);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 10px 0 12px;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1;
    letter-spacing: 0;
}

.hero p {
    color: rgba(255, 255, 255, .78);
    font-size: 18px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.primary-btn,
.ghost-btn,
.danger-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    font-weight: 700;
    font-family: inherit;
}

.primary-btn {
    background: var(--theme);
    color: white;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .24);
}

.ghost-btn {
    background: white;
    color: var(--ink);
}

.danger-btn {
    background: #dc2626;
    color: white;
}

.link-list {
    display: grid;
    gap: 12px;
    margin-top: 30px;
}

.link-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 17px 18px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--radius);
    color: white;
    text-decoration: none;
    background: rgba(255, 255, 255, .10);
    backdrop-filter: blur(12px);
}

.link-item:hover {
    background: rgba(255, 255, 255, .16);
}

.home-link-list {
    gap: 13px;
}

.home-link-item {
    min-height: 76px;
    justify-content: flex-start;
    padding: 14px 18px;
    border-color: rgba(255, 255, 255, .22);
    border-radius: 18px;
    background: rgba(255, 255, 255, .12);
}

.home-link-item strong {
    flex: 1;
    font-size: 17px;
}

.home-link-icon {
    width: 48px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    color: white;
    background: rgba(255, 255, 255, .16);
}

.home-link-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-link-chevron {
    color: rgba(255, 255, 255, .66);
    font-size: 30px;
    line-height: 1;
}

.home-link-item.tone-info .home-link-icon { background: rgba(59, 130, 246, .34); color: #93c5fd; }
.home-link-item.tone-map .home-link-icon { background: rgba(239, 68, 68, .32); color: #fca5a5; }
.home-link-item.tone-whatsapp .home-link-icon { background: rgba(22, 163, 74, .34); color: #86efac; }
.home-link-item.tone-instagram .home-link-icon { background: rgba(219, 39, 119, .34); color: #f9a8d4; }
.home-link-item.tone-facebook .home-link-icon { background: rgba(37, 99, 235, .34); color: #93c5fd; }
.home-link-item.tone-menu .home-link-icon { background: rgba(245, 158, 11, .30); color: #fde68a; }
.home-link-item.tone-feedback .home-link-icon { background: rgba(16, 185, 129, .30); color: #a7f3d0; }

.home-slider-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 1fr);
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.home-slider-card {
    min-height: 132px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
    padding: 18px;
    border-radius: 18px;
    color: #fff;
    text-decoration: none;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, .10), rgba(15, 23, 42, .78)),
        var(--slide-photo, linear-gradient(135deg, #2563eb, #16a34a)) center / cover;
    box-shadow: var(--shadow);
}

.home-slider-card strong {
    font-size: 20px;
}

.home-slider-card span {
    color: rgba(255,255,255,.82);
}

.menu-announcements {
    display: grid;
    gap: 10px;
    margin: 16px 0;
}

.announcement-card {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid #dbe6f3;
    border-left: 5px solid var(--theme);
    border-radius: 12px;
    background: #fff;
}

.announcement-card strong {
    color: #0f172a;
}

.announcement-card span {
    color: #475569;
}

.announcement-warning { border-left-color: #f59e0b; background: #fffbeb; }
.announcement-success { border-left-color: #16a34a; background: #f0fdf4; }

.favorite-btn {
    border: 1px solid #dbe6f3;
    background: #fff;
    color: #e11d48;
}

.favorite-btn.is-favorite {
    background: #fff1f2;
    border-color: #fecdd3;
}

.suggested-products {
    display: grid;
    gap: 10px;
    margin: 16px 0;
}

.suggested-products > div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
}

.suggested-products button {
    display: grid;
    gap: 7px;
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    text-align: left;
    cursor: pointer;
}

.suggested-products img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px;
}

.suggested-products span {
    font-weight: 800;
}

.detail-action-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.public-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.public-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.public-review {
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.review-public-page {
    padding-top: 0;
}

.public-subpage-header {
    justify-content: flex-start !important;
    gap: 14px;
}

.public-back-btn {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    color: #2563eb;
    background: #fff;
    text-decoration: none;
    font-size: 24px;
    font-weight: 900;
}

.public-subpage-header span,
.review-form-title span,
.review-list-head span {
    display: block;
    color: #2563eb;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.public-subpage-header strong {
    display: block;
    margin-top: 4px;
    color: #0f172a;
    font-size: 20px;
}

.public-review-shell {
    display: grid;
    grid-template-columns: minmax(300px, 440px) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.review-form-card,
.review-list-card {
    max-width: none;
    margin: 0;
    padding: 24px;
    border: 1px solid rgba(219, 228, 240, .95);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

.review-form-title h1,
.review-list-head h2 {
    margin: 4px 0 8px;
    color: #0f172a;
}

.review-form-title p,
.review-branch-note {
    margin: 0 0 16px;
    color: #64748b;
    font-weight: 750;
}

.public-success-box {
    display: grid;
    gap: 4px;
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    color: #166534;
    background: #f0fdf4;
}

.public-rating-field {
    margin: 0 0 14px;
    padding: 0;
    border: 0;
}

.public-rating-field legend {
    margin-bottom: 8px;
    color: #334155;
    font-weight: 850;
}

.public-rating-options {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.public-rating-options label {
    cursor: pointer;
}

.public-rating-options input {
    position: absolute;
    opacity: 0;
}

.public-rating-options span {
    display: grid;
    place-items: center;
    min-height: 42px;
    padding: 0 8px;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    color: #f59e0b;
    background: #fff;
    font-size: 12px;
    font-weight: 900;
}

.public-rating-options input:checked + span {
    border-color: #f59e0b;
    background: #fffbeb;
    box-shadow: 0 12px 24px rgba(245, 158, 11, .16);
}

.review-list-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.review-list-head strong {
    padding: 8px 12px;
    border-radius: 999px;
    color: #92400e;
    background: #fef3c7;
    font-size: 14px;
}

.public-review-list {
    display: grid;
    gap: 12px;
}

.public-review-item {
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}

.public-review-item header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.public-review-item header strong {
    color: #0f172a;
}

.public-review-item header span {
    color: #f59e0b;
    font-size: 13px;
    font-weight: 900;
}

.public-review-item p {
    margin: 10px 0 0;
    color: #334155;
    line-height: 1.6;
}

.public-review-reply {
    display: grid;
    gap: 4px;
    margin-top: 12px;
    padding: 12px;
    border-radius: 8px;
    color: #0f172a;
    background: #f8fafc;
}

.public-review-reply small {
    color: #2563eb;
    font-weight: 900;
}

.public-empty-review {
    display: grid;
    place-items: center;
    min-height: 180px;
    gap: 8px;
    color: #64748b;
    text-align: center;
}

.public-empty-review span {
    color: #cbd5e1;
    font-size: 48px;
}

.wifi-card input[readonly] {
    background: #f8fafc;
    font-weight: 800;
}

.wifi-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
    gap: 24px;
    align-items: start;
}

.wifi-qr-panel {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
    text-align: center;
}

.wifi-qr-panel img {
    width: min(100%, 320px);
    height: auto;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
}

.wifi-qr-panel strong {
    color: #0f172a;
    font-size: 18px;
}

.wifi-qr-panel span {
    color: #64748b;
}

.review-admin-card p {
    margin: 10px 0 14px;
    color: #334155;
}

.review-admin-page {
    display: grid;
    gap: 14px;
}

.review-admin-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.review-admin-head h1 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #0f172a;
    font-size: 26px;
}

.review-admin-head h1 svg {
    width: 24px;
    height: 24px;
}

.review-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid #dbe4f0;
}

.review-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #2563eb;
    background: transparent;
    text-decoration: none;
    font-weight: 850;
}

.review-tabs a.active {
    color: #0f172a;
    border-color: #dbe4f0;
    background: #fff;
}

.review-tabs span {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    color: #92400e;
    background: #facc15;
    font-size: 12px;
    font-weight: 950;
}

.review-empty {
    display: grid;
    place-items: center;
    gap: 12px;
    min-height: 164px;
    border-radius: 8px;
    text-align: center;
}

.review-empty svg {
    width: 42px;
    height: 42px;
    color: #a8b3c4;
}

.review-empty strong {
    color: #0f172a;
    font-size: 16px;
}

.review-table-wrap {
    overflow-x: auto;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    background: #fff;
}

.review-admin-table {
    min-width: 980px;
}

.review-admin-table td {
    vertical-align: top;
}

.review-admin-table td p {
    max-width: 440px;
    margin: 0 0 10px;
    color: #334155;
    line-height: 1.5;
}

.review-admin-table td small {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-weight: 750;
}

.review-stars {
    color: #f59e0b;
    font-weight: 950;
    white-space: nowrap;
}

.review-reply-form {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 8px;
    align-items: end;
    max-width: 520px;
}

.review-reply-form textarea {
    width: 100%;
    min-height: 48px;
    padding: 10px;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    font: inherit;
    resize: vertical;
}

.review-actions,
.review-actions form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.mini-action {
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    background: #fff;
    font-weight: 900;
    cursor: pointer;
}

.mini-action.success {
    color: #047857;
    border-color: #86efac;
}

.mini-action.success:hover {
    color: #fff;
    background: #059669;
}

.mini-action.muted {
    color: #475569;
}

.mini-action.muted:hover {
    color: #fff;
    background: #64748b;
}

.mini-action.danger {
    color: #e11d48;
    border-color: #fecdd3;
}

.mini-action.danger:hover {
    color: #fff;
    background: #e11d48;
}

.review-status-pending {
    color: #92400e;
    background: #fef3c7;
}

.review-status-approved {
    color: #047857;
    background: #d1fae5;
}

.review-status-hidden {
    color: #475569;
    background: #e2e8f0;
}
.home-link-item.tone-feedback .home-link-icon { background: rgba(20, 184, 166, .30); color: #99f6e4; }

.home-about-panel {
    margin-top: 28px;
    padding: 22px 24px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 18px;
    color: white;
    background: rgba(255, 255, 255, .10);
    backdrop-filter: blur(14px);
}

.home-about-panel span {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, .72);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 12px;
}

.home-about-panel p {
    max-width: 880px;
    margin: 0;
    color: rgba(255, 255, 255, .84);
}

.page-header {
    position: sticky;
    top: 0;
    z-index: 5;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}

.page-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 72px;
}

.feedback-header {
    position: sticky;
}

.brand {
    font-size: 22px;
    font-weight: 850;
    color: var(--theme);
    text-decoration: none;
}

.menu-hero {
    margin: 24px 0;
    padding: 28px;
    border-radius: 18px;
    color: white;
    background:
        linear-gradient(90deg, rgba(37, 99, 235, .92), rgba(22, 163, 74, .76)),
        url("https://images.unsplash.com/photo-1504674900247-0877df9cc836?auto=format&fit=crop&w=1400&q=80") center / cover;
    box-shadow: var(--shadow);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 18px;
    padding: 20px 0 110px;
}

.card {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-body {
    padding: 16px;
}

.card h2,
.card h3 {
    margin-top: 0;
}

.category-tile,
.product-card {
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}

.category-tile:hover,
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, .12);
}

.tile-art,
.product-art {
    height: 150px;
    display: grid;
    place-items: center;
    background: var(--photo, linear-gradient(135deg, var(--theme), #16a34a)) center / cover;
    color: white;
    font-size: 34px;
}

.product-card {
    display: grid;
    grid-template-columns: 118px 1fr;
}

.product-art {
    height: 100%;
    min-height: 136px;
}

.price {
    color: var(--theme);
    font-weight: 850;
}

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    background: white;
    border-top: 1px solid var(--line);
    box-shadow: 0 -12px 30px rgba(15, 23, 42, .08);
}

.menu-app {
    min-height: 100vh;
    padding-bottom: 86px;
    background: #f4f6f9;
}

.menu-app-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 14px max(18px, calc((100vw - 1120px) / 2));
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.menu-app-header p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.menu-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-switcher {
    display: inline-flex;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f8fafc;
}

.lang-switcher a {
    min-width: 38px;
    min-height: 32px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: var(--muted);
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
}

.lang-switcher a.active {
    color: white;
    background: var(--theme);
}

.qr-context-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin: 16px 0;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: white;
    box-shadow: var(--shadow);
}

.qr-context-card strong,
.qr-context-card span {
    display: block;
}

.qr-context-card span,
.qr-context-card small {
    color: var(--muted);
}

.qr-context-card.is-table {
    border-color: rgba(22, 163, 74, .28);
}

.qr-context-card.no-table {
    border-color: rgba(245, 158, 11, .35);
}

.menu-app-main {
    width: min(1120px, calc(100% - 28px));
    margin: 0 auto;
}

.icon-btn {
    position: relative;
    min-width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 12px;
    color: white;
    background: var(--theme);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

.icon-btn svg,
.menu-bottom-nav svg,
.mini-add svg,
.waiter-grid svg,
.menu-search svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-btn strong {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #ef4444;
    color: white;
    font-size: 11px;
}

.icon-btn strong:empty {
    display: none;
}

.icon-btn.light {
    color: var(--ink);
    background: white;
    border: 1px solid var(--line);
}

.menu-cover {
    min-height: 260px;
    display: flex;
    align-items: flex-end;
    margin: 18px 0 22px;
    padding: 28px;
    border-radius: 20px;
    color: white;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, .08), rgba(15, 23, 42, .78)),
        var(--menu-cover, url("https://images.unsplash.com/photo-1543353071-10c8ba85a904?auto=format&fit=crop&w=1400&q=80")) center / cover;
    box-shadow: var(--shadow);
}

.menu-cover h1 {
    max-width: 680px;
    margin: 10px 0;
    font-size: clamp(34px, 8vw, 62px);
    line-height: 1;
}

.menu-cover p {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: 17px;
    line-height: 1.55;
}

.menu-section {
    margin: 26px 0;
}

.section-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.section-row h2 {
    margin: 0;
}

.section-row span,
.section-row small {
    color: var(--muted);
}

.featured-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 330px);
    gap: 16px;
    overflow-x: auto;
    padding: 2px 0 14px;
    scroll-snap-type: x mandatory;
}

.featured-strip.auto-scroll {
    overflow: hidden;
}

.featured-strip.auto-scroll .featured-menu-card {
    animation: featuredSlide var(--featured-speed, 28s) linear infinite;
}

.featured-strip.auto-scroll:hover .featured-menu-card {
    animation-play-state: paused;
}

@keyframes featuredSlide {
    from { transform: translateX(0); }
    to { transform: translateX(-120%); }
}

.featured-menu-card {
    scroll-snap-align: start;
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.featured-menu-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

.featured-menu-card > div {
    padding: 14px;
}

.featured-menu-card h3,
.menu-product-row h3 {
    margin: 0 0 6px;
}

.featured-menu-card p,
.menu-product-row p {
    display: -webkit-box;
    min-height: 38px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.card-foot strong {
    color: var(--theme);
    white-space: nowrap;
}

.mini-add {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 12px;
    background: var(--theme);
    color: white;
    cursor: pointer;
}

.category-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.category-showcase-card {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 16px;
    border: 0;
    border-radius: 16px;
    color: white;
    overflow: hidden;
    position: relative;
    text-align: left;
    cursor: pointer;
    box-shadow: var(--shadow);
    font: inherit;
}

.category-showcase-card span {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, .02), rgba(15, 23, 42, .78)),
        var(--cat-photo) center / cover;
    transition: transform .25s ease;
}

.category-showcase-card:hover span {
    transform: scale(1.04);
}

.category-showcase-card strong,
.category-showcase-card small {
    position: relative;
    z-index: 1;
}

.category-showcase-card strong {
    font-size: 20px;
}

.category-showcase-card small {
    color: rgba(255, 255, 255, .78);
}

.products-view {
    padding-top: 18px;
}

.products-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.products-head h1 {
    margin: 4px 0 0;
}

.menu-search {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: white;
    box-shadow: var(--shadow);
}

.menu-search input {
    width: 100%;
    border: 0;
    outline: 0;
    font: inherit;
}

.menu-product-list {
    display: grid;
    gap: 14px;
}

.menu-product-row {
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: white;
    box-shadow: var(--shadow);
}

.menu-product-row img {
    width: 100%;
    height: 118px;
    border-radius: 12px;
    object-fit: cover;
}

.menu-bottom-nav {
    position: fixed;
    left: 12px;
    right: auto;
    bottom: 0;
    z-index: 30;
    width: calc(100vw - 24px);
    max-width: min(calc(100vw - 24px), 366px);
    display: flex;
    gap: 6px;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    background: white;
    border-top: 1px solid var(--line);
    box-shadow: 0 -16px 34px rgba(15, 23, 42, .10);
}

.menu-bottom-nav button {
    min-width: 0;
    width: auto;
    flex: 1 1 0;
    overflow: hidden;
    display: grid;
    gap: 4px;
    place-items: center;
    min-height: 58px;
    border: 0;
    border-radius: 16px;
    color: #475467;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(226, 232, 240, .9);
}

.menu-bottom-nav button:hover {
    color: white;
    background: linear-gradient(135deg, var(--theme), #16a34a);
    box-shadow: 0 10px 22px rgba(37, 99, 235, .18);
}

.menu-bottom-nav button.active {
    color: white;
    background: linear-gradient(135deg, var(--theme), var(--theme-secondary));
    box-shadow: 0 10px 24px rgba(37, 99, 235, .20);
}

.nav-solid .menu-bottom-nav {
    background: #111827;
    border-top: 0;
}

.nav-solid .menu-bottom-nav button {
    color: white;
    background: rgba(255, 255, 255, .08);
    box-shadow: none;
}

.menu-bottom-nav span {
    font-size: 11px;
    line-height: 1;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-sheet[hidden] {
    display: none;
}

.cart-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(15, 23, 42, .56);
}

.cart-panel {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 41;
    width: min(520px, 100%);
    max-height: 82vh;
    overflow-y: auto;
    padding: 20px;
    border-radius: 22px 22px 0 0;
    background: white;
    transform: translateX(-50%);
    box-shadow: 0 -22px 54px rgba(15, 23, 42, .25);
}

.cart-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.cart-thumb {
    width: 56px;
    height: 56px;
    flex: 0 0 auto;
    border-radius: 12px;
    object-fit: cover;
}

.cart-line small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-control button {
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8fafc;
    cursor: pointer;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    padding: 18px 0;
    font-size: 18px;
}

.full-btn {
    width: 100%;
}

.empty-menu-state {
    padding: 26px;
    border: 1px dashed var(--line);
    border-radius: 16px;
    color: var(--muted);
    text-align: center;
    background: white;
}

.filter-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 0 12px;
}

.filter-chip {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: white;
    color: var(--muted);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.filter-chip.active {
    color: white;
    background: var(--theme);
    border-color: var(--theme);
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
}

.product-tags span,
.product-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: #eef2ff;
    color: var(--theme);
    font-size: 12px;
    font-weight: 800;
}

.product-detail-panel {
    max-width: 620px;
}

.product-gallery {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 1fr);
    gap: 10px;
    overflow-x: auto;
    margin-bottom: 16px;
}

.product-gallery img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 16px;
}

.detail-action {
    position: sticky;
    bottom: -20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin: 18px -20px -20px;
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(10px);
}

.detail-action small {
    display: block;
    color: var(--muted);
}

.detail-action .old-price {
    margin: 3px 0 0;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 800;
}

.detail-action strong {
    color: var(--theme);
    font-size: 20px;
}

.product-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 12px 0;
}

.nutrition-box {
    display: grid;
    gap: 10px;
    margin: 14px 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f8fafc;
}

.nutrition-box div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nutrition-box span {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: white;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.promotion-box {
    display: grid;
    gap: 8px;
    margin: 12px 0;
    padding: 12px;
    border-radius: 14px;
    color: #7c2d12;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

.promotion-box span {
    display: inline-flex;
    width: fit-content;
    min-height: 28px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: white;
    font-size: 12px;
    font-weight: 900;
}

.waiter-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.waiter-grid button {
    min-height: 72px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #f8fafc;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
    display: grid;
    place-items: center;
    gap: 8px;
}

.waiter-grid button:hover {
    color: white;
    border-color: var(--theme);
    background: linear-gradient(135deg, var(--theme), var(--theme-secondary));
}

.image-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.image-admin-card {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f8fafc;
}

.image-admin-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px;
}

.main-image-badge {
    display: inline-flex;
    justify-content: center;
    min-height: 28px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    color: white;
    background: var(--theme);
    font-size: 12px;
}

.theme-preview {
    display: grid;
    gap: 12px;
    margin: 12px 0 18px;
    padding: 14px;
    border-radius: 16px;
    background: var(--preview-bg, #f4f6f9);
    color: var(--preview-text, #111827);
    border: 1px solid var(--line);
}

.theme-preview-hero {
    display: grid;
    gap: 4px;
    padding: 18px;
    border-radius: 14px;
    color: white;
    background: linear-gradient(135deg, var(--preview-theme, #2563eb), var(--preview-secondary, #16a34a));
}

.theme-preview-hero span {
    color: rgba(255,255,255,.78);
}

.theme-preview-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
    background: var(--preview-card, #fff);
    color: var(--preview-text, #111827);
}

.theme-preview-card span {
    color: var(--preview-muted, #667085);
}

.theme-preview-card button {
    min-height: 38px;
    border: 0;
    border-radius: 10px;
    padding: 0 12px;
    color: white;
    background: var(--preview-theme, #2563eb);
    font-weight: 800;
}

.success-panel {
    text-align: center;
}

.success-mark {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    margin: 4px auto 14px;
    border-radius: 50%;
    color: white;
    background: linear-gradient(135deg, var(--theme), var(--theme-secondary));
    font-size: 38px;
    font-weight: 900;
}

.order-status-box {
    display: grid;
    gap: 6px;
    margin: 14px 0;
    padding: 12px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid var(--line);
}

.order-status-box span {
    color: var(--theme);
    font-weight: 900;
}

.order-status-box[hidden] {
    display: none;
}

.form-page {
    min-height: 100vh;
    padding: 36px 0;
    background:
        linear-gradient(135deg, rgba(246, 248, 251, .95), rgba(230, 236, 245, .95)),
        url("https://images.unsplash.com/photo-1555396273-367ea4eb4db5?auto=format&fit=crop&w=1600&q=80") center / cover fixed;
}

.form-card {
    max-width: 720px;
    margin: 0 auto;
    padding: 24px;
}

.field {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
    font-weight: 650;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px;
    font: inherit;
    background: white;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: 3px solid rgba(37, 99, 235, .14);
    border-color: var(--theme);
}

.admin-shell {
    display: grid;
    grid-template-columns: 278px 1fr;
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    background: linear-gradient(180deg, #182234, #111827);
    color: white;
    padding: 18px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 8px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .10);
}

.sidebar-brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--theme);
    font-weight: 900;
}

.sidebar-brand h2 {
    margin: 0;
    font-size: 18px;
}

.sidebar-brand small {
    color: rgba(255, 255, 255, .58);
}

.menu-group {
    margin-top: 18px;
}

.menu-title {
    padding: 0 10px 7px;
    color: rgba(255, 255, 255, .44);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    margin: 4px 0;
    border-radius: 10px;
    color: rgba(255, 255, 255, .76);
    text-decoration: none;
}

.sidebar a:hover,
.sidebar a.active {
    background: rgba(255, 255, 255, .10);
    color: white;
}

.sidebar-icon {
    width: 22px;
    text-align: center;
}

.admin-main {
    padding: 0;
}

.admin-topbar {
    min-height: 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 0 26px;
    background: white;
    border-bottom: 1px solid var(--line);
}

.admin-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.order-alert-badge {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--muted);
    background: #f8fafc;
    text-decoration: none;
    font-weight: 850;
}

.order-alert-badge.has-orders {
    color: white;
    border-color: #ef4444;
    background: #ef4444;
    box-shadow: 0 12px 24px rgba(239, 68, 68, .22);
}

.admin-toast {
    position: fixed;
    right: 24px;
    top: 88px;
    z-index: 3000;
    padding: 14px 18px;
    border-radius: 14px;
    color: white;
    background: #ef4444;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .24);
    font-weight: 850;
}

.admin-toast[hidden] {
    display: none;
}

.admin-topbar h1 {
    margin: 0;
    font-size: 24px;
}

.admin-content {
    padding: 24px;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.panel {
    margin-bottom: 18px;
}

.table-wrap {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.table th,
.table td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.table th {
    background: #f8fafc;
    color: #475467;
    font-size: 13px;
}

.table tr:last-child td {
    border-bottom: 0;
}

.row-pending td {
    background: #fff7ed;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-weight: 850;
    font-size: 12px;
}

.status-pending {
    color: #b45309;
    background: #fef3c7;
}

.status-preparing {
    color: #1d4ed8;
    background: #dbeafe;
}

.status-completed {
    color: #047857;
    background: #d1fae5;
}

.status-ready {
    color: #0f766e;
    background: #ccfbf1;
}

.status-cancelled {
    color: #b91c1c;
    background: #fee2e2;
}

.status-in_progress {
    color: #1d4ed8;
    background: #dbeafe;
}

.status-done {
    color: #047857;
    background: #d1fae5;
}

.call-type {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 12px;
    font-weight: 850;
}

.call-bill {
    color: #047857;
    background: #d1fae5;
}

.call-cleaning {
    color: #0369a1;
    background: #e0f2fe;
}

.call-service {
    color: #b45309;
    background: #fef3c7;
}

.inline-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.inline-form select {
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0 10px;
}

.actions-cell {
    display: flex;
    gap: 8px;
    align-items: center;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.order-board {
    display: grid;
    gap: 14px;
}

.order-card {
    padding: 16px;
}

.order-card-head,
.order-card-foot,
.order-lines div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.order-card-head span,
.order-customer,
.order-customer span {
    color: var(--muted);
}

.order-customer {
    display: grid;
    gap: 4px;
    margin: 12px 0;
}

.order-lines {
    display: grid;
    gap: 8px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.order-card-foot {
    margin-top: 12px;
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.report-card {
    padding: 18px;
}

.report-card h2 {
    margin: 0 0 14px;
}

.report-card div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.report-card div:last-child {
    border-bottom: 0;
}

.qr-print-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.qr-print-card {
    display: grid;
    justify-items: center;
    gap: 10px;
    min-height: 420px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    text-align: center;
    box-shadow: var(--shadow);
}

.qr-print-card h2 {
    margin: 4px 0 0;
    font-size: 30px;
}

.qr-print-card p,
.qr-print-card small {
    margin: 0;
    color: var(--muted);
}

.qr-print-card small {
    word-break: break-all;
}

.qr-brand {
    font-weight: 900;
    color: var(--theme);
    text-transform: uppercase;
    letter-spacing: .08em;
}

@media (max-width: 960px) {
    .smart-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-body .order-board {
        grid-template-columns: 1fr;
    }

    .admin-body .order-card-foot {
        grid-template-columns: 1fr;
    }

    .category-editor-form,
    .category-editor-main {
        grid-template-columns: 1fr;
    }

    .admin-body .kitchen-kanban {
        grid-template-columns: 1fr;
    }

    .admin-body .report-card-wide {
        grid-column: auto;
    }
}

@media (max-width: 1200px) {
    .category-editor-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .home-hero-header {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 22px;
    }

    .home-hero-header h1 {
        font-size: 38px;
    }

    .home-hero-header p {
        font-size: 16px;
    }

    .update-hero {
        grid-template-columns: 1fr;
    }

    .smart-form-grid,
    .upload-strip,
    .admin-body .order-card-foot .inline-form {
        grid-template-columns: 1fr;
    }

    .login-logo-link img {
        height: 68px;
    }
}

@media (max-width: 1200px) {
    .category-editor-form {
        grid-template-columns: 1fr !important;
    }
}

@media print {
    .sidebar,
    .admin-topbar,
    .toolbar,
    .admin-toast {
        display: none !important;
    }

    .admin-shell,
    .admin-main,
    .admin-content {
        display: block;
        padding: 0;
    }

    .qr-print-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12mm;
    }

    .qr-print-card {
        box-shadow: none;
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
    gap: 14px;
}

.stat {
    padding: 20px;
}

.stat strong {
    color: var(--muted);
    font-size: 13px;
}

.stat h2 {
    margin: 8px 0 0;
    font-size: 32px;
}

@media (max-width: 860px) {
    .hero-layout {
        grid-template-columns: 1fr;
    }

    .hero-media {
        min-height: 260px;
    }

    .home-side-links {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .wifi-layout {
        grid-template-columns: 1fr;
    }

    .admin-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        height: auto;
    }

    .admin-topbar {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px;
    }

    .product-card {
        grid-template-columns: 96px 1fr;
    }

    .menu-app-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .menu-head-actions {
        width: 100%;
        justify-content: space-between;
    }

    .qr-context-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .qr-context-card small {
        align-self: flex-start;
    }

    .menu-product-row {
        grid-template-columns: 96px 1fr;
        gap: 10px;
    }

    .menu-product-row img {
        height: 104px;
    }

    .card-foot,
    .order-card-foot,
    .order-card-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .inline-form,
    .actions-cell {
        width: 100%;
        flex-wrap: wrap;
    }

    .inline-form select,
    .inline-form button,
    .actions-cell a,
    .actions-cell button {
        flex: 1 1 140px;
    }
}

/* v0.7.1 behavior and layout corrections */
.status-switch-form {
    display: inline-flex;
    margin: 0;
}

.status-switch {
    border: 0;
    cursor: pointer;
    font-family: inherit;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.status-switch:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, .16);
}

.status-switch:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .25);
    outline-offset: 2px;
}

.order-back-link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    margin-bottom: 12px;
    padding: 0 14px;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    color: #78350f !important;
    background: #fef3c7;
    font-weight: 950;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(245, 158, 11, .13);
}

.order-bulk-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 14px 12px;
    padding: 10px;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    background: #f8fafc;
}

.order-bulk-toolbar .bulk-check-all {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-right: auto;
    color: #334155;
    font-size: 12px;
    font-weight: 900;
}

.order-bulk-toolbar select {
    min-height: 36px;
    padding: 0 34px 0 10px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #fff;
}

.order-bulk-toolbar .primary-btn {
    min-height: 36px;
}

.order-select-cell {
    width: 52px;
    text-align: center;
}

.order-select-cell input {
    width: 17px;
    height: 17px;
    accent-color: #2563eb;
}

.personnel-card-grid {
    grid-template-columns: repeat(auto-fill, minmax(270px, 310px));
}

.personnel-card {
    color: #0f172a;
    border: 1px solid #dbe4f0;
    background: #fff;
    box-shadow: 0 15px 32px rgba(15, 23, 42, .08);
}

.personnel-card::after {
    display: none;
}

.personnel-card-main {
    padding: 20px 18px 12px;
}

.personnel-card-main small {
    color: #64748b;
}

.personnel-card .personnel-avatar {
    color: #2563eb;
    background: #dbeafe;
}

.personnel-card .status-switch-form {
    margin-top: 2px;
}

.personnel-metrics {
    gap: 8px;
    padding: 12px;
}

.personnel-metrics span {
    min-height: 68px;
    border: 1px solid transparent;
    color: #0f172a !important;
}

.personnel-metrics span:nth-child(1) {
    color: #c2410c !important;
    border-color: #fed7aa;
    background: #fff7ed;
}

.personnel-metrics span:nth-child(2) {
    color: #1d4ed8 !important;
    border-color: #bfdbfe;
    background: #eff6ff;
}

.personnel-metrics span:nth-child(3) {
    color: #a16207 !important;
    border-color: #fde68a;
    background: #fefce8;
}

.personnel-metrics span:nth-child(4) {
    color: #047857 !important;
    border-color: #a7f3d0;
    background: #ecfdf5;
}

.personnel-metrics strong {
    color: inherit;
    font-size: 16px;
}

.personnel-metrics small {
    color: #475569 !important;
}

.personnel-total {
    color: #475569;
}

.personnel-card-footer {
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.personnel-card-footer .icon-action {
    color: #2563eb;
    border-color: #93c5fd;
    background: #fff;
}

.personnel-card-footer .icon-action.danger {
    color: #dc2626;
    border-color: #fca5a5;
}

.courier-settings-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

.courier-settings-grid .courier-toggle,
.courier-settings-grid .courier-actions {
    grid-column: 1 / -1;
}

.courier-settings-grid .field {
    display: grid;
    grid-template-rows: auto 42px;
    gap: 6px;
    min-width: 0;
    margin: 0;
}

.courier-settings-grid .field input {
    width: 100%;
    min-height: 42px;
}

.waiter-terminal .terminal-category-tabs button {
    min-height: 32px;
    padding: 0 11px;
    font-size: 11px;
}

.waiter-terminal .terminal-product {
    min-height: 112px;
    padding: 8px;
}

.waiter-terminal .terminal-product-meta,
.waiter-terminal .terminal-product strong,
.waiter-terminal .terminal-product em {
    font-size: 11px !important;
    line-height: 1.15;
}

.waiter-terminal .terminal-product-thumb {
    width: 50px;
    height: 50px;
}

.pos-ticket-zone form {
    display: grid;
    height: 100%;
    min-height: 0;
    grid-template-rows: auto auto minmax(48px, 1fr) auto auto auto auto auto;
    overflow: hidden;
    padding: 0;
}

.pos-ticket-head {
    padding: 8px 12px;
}

.pos-customer-field,
.pos-note-field {
    margin: 6px 12px 0;
}

.pos-note-field textarea {
    min-height: 38px;
    max-height: 48px;
    padding: 7px 9px;
}

.pos-ticket-cart {
    min-height: 48px;
    margin: 6px 12px;
}

.pos-discount-row {
    padding: 7px 12px 0;
}

.pos-total-lines {
    gap: 3px;
    padding: 5px 12px 7px;
}

.pos-total-lines strong {
    font-size: 14px;
}

.pos-total-lines .grand span,
.pos-total-lines .grand strong {
    font-size: 18px;
}

.pos-payment-methods {
    gap: 5px;
    padding: 0 12px 7px;
}

.pos-payment-methods span {
    min-height: 48px;
    padding: 5px 3px;
    font-size: 10px;
}

.pos-payment-methods i {
    font-size: 17px;
}

.pos-pay-btn {
    position: static;
    min-height: 38px;
    margin: 0 12px 8px;
    font-size: 14px;
}

.customer-tv-shell {
    padding: 18px 22px 16px;
}

.customer-tv-brand img,
.customer-tv-brand > span {
    width: 66px;
    height: 66px;
    border-radius: 14px;
    font-size: 34px;
}

.customer-tv-brand h1 {
    font-size: min(var(--cd-title-size), clamp(28px, 3.4vw, 46px)) !important;
}

.customer-tv-clock strong {
    font-size: clamp(34px, 4vw, 62px);
}

.customer-tv-clock span,
.customer-tv-banner,
.customer-tv-footer {
    font-size: 14px;
}

.customer-tv-categories button {
    min-height: 36px;
    padding: 0 16px;
    font-size: 13px;
}

.customer-tv-product {
    grid-template-columns: minmax(96px, 132px) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    min-height: 124px;
    padding: 12px;
}

.customer-tv-product-copy {
    display: grid;
    min-width: 0;
    align-content: start;
}

.customer-tv-product small {
    font-size: 11px;
}

.customer-tv-product h2 {
    margin: 3px 0 5px;
    font-size: min(var(--cd-product-size), clamp(15px, 1.35vw, 20px)) !important;
}

.customer-tv-product p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    font-size: min(var(--cd-description-size), 12px) !important;
    line-height: 1.32;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.customer-tv-price {
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
    margin-top: 8px;
}

.customer-tv-price strong {
    font-size: min(var(--cd-price-size), clamp(17px, 1.7vw, 24px)) !important;
}

.customer-tv-screen.mode-grid .customer-tv-product {
    grid-template-columns: 1fr;
}

.customer-tv-screen.mode-grid .customer-tv-price {
    justify-content: center;
}

.customer-tv-screen.mode-compact .customer-tv-product,
.customer-tv-screen.mode-compact .customer-tv-product.no-image {
    grid-template-columns: 72px minmax(0, 1fr);
}

.customer-tv-screen.mode-compact .customer-tv-product p {
    display: none;
}

@media (max-width: 760px) {
    .order-bulk-toolbar,
    .courier-settings-grid {
        grid-template-columns: 1fr;
    }

    .order-bulk-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .order-bulk-toolbar .bulk-check-all {
        margin-right: 0;
    }

    .courier-settings-grid .courier-toggle,
    .courier-settings-grid .courier-actions {
        grid-column: auto;
    }
}

/* v0.7.0 focused status, operation and display polish */
.status-switch {
    display: inline-grid;
    grid-template-columns: 30px auto;
    align-items: center;
    gap: 8px;
    min-width: 86px;
    padding: 5px 9px 5px 5px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 950;
    line-height: 1;
    white-space: nowrap;
}

.status-switch i {
    position: relative;
    display: block;
    width: 30px;
    height: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
}

.status-switch i::after {
    content: "";
    position: absolute;
    top: 3px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(15, 23, 42, .24);
}

.status-switch.is-active {
    color: #ecfdf5;
    background: #16a34a;
}

.status-switch.is-active i::after {
    right: 3px;
}

.status-switch.is-passive {
    color: #fff1f2;
    background: #e11d48;
}

.status-switch.is-passive i::after {
    left: 3px;
}

.admin-body .status-pill.status-completed,
.admin-body .status-pill.status-ready {
    color: #ecfdf5 !important;
    background: #16a34a !important;
}

.admin-body .status-pill.status-cancelled {
    color: #fff1f2 !important;
    background: #e11d48 !important;
}

.mini-status.untracked,
.stock-state.untracked {
    color: #78350f !important;
    background: #fde68a !important;
}

.stock-state.tracked,
.mini-status.active {
    color: #ecfdf5 !important;
    background: #16a34a !important;
}

.order-list-table .status-completed,
.order-detail-badges .status-completed,
.admin-body .order-pill.status-completed {
    color: #9a3412 !important;
    background: #fed7aa !important;
}

.ready-alert-badge {
    border-color: #bbf7d0 !important;
    color: #166534 !important;
    background: #f0fdf4 !important;
}

.ready-alert-badge span {
    color: #fff !important;
    background: #16a34a !important;
}

.personnel-actionbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.personnel-actionbar .primary-btn {
    margin-left: auto;
    white-space: nowrap;
}

.reports-filter .has-help,
.ops-head .has-help {
    position: relative;
}

.reports-filter .has-help:hover::after,
.ops-head .has-help:hover::after {
    content: attr(title);
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    z-index: 40;
    width: max-content;
    max-width: 240px;
    padding: 7px 9px;
    border-radius: 7px;
    color: #fff;
    background: #0f172a;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.35;
    box-shadow: 0 12px 24px rgba(15, 23, 42, .22);
}

.activity-filter {
    align-items: end;
}

.activity-filter .report-filter-btn,
.activity-filter .ghost-btn {
    min-height: 38px;
    margin-top: 0;
}

.module-toggle-card.compact-toggle {
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: center;
    min-height: auto;
    padding: 10px 12px;
}

.module-toggle-card.compact-toggle strong,
.module-toggle-card.compact-toggle small {
    display: inline;
}

.module-toggle-card.compact-toggle small {
    margin: 0 0 0 4px;
}

.integration-form-grid .module-toggle-card.compact-toggle.field-wide {
    min-height: 44px;
}

.courier-page .admin-form-panel,
.branch-clone-page .admin-form-panel {
    min-height: 0;
}

.courier-page .smart-form-grid,
.branch-clone-page .smart-form-grid {
    align-items: end;
}

.branch-clone-page .toggle-line,
.courier-page .toggle-line {
    min-height: 44px;
    align-items: center;
}

.waiter-product-card strong {
    font-size: 12px;
    line-height: 1.16;
}

.waiter-product-card span,
.waiter-product-card em {
    font-size: 12px;
}

.pos-ticket-zone form {
    min-height: 0;
    height: 100%;
    overflow-y: auto;
    grid-template-rows: auto auto minmax(110px, 1fr) auto auto auto auto;
    padding-bottom: 10px;
}

.pos-ticket-cart {
    min-height: 80px;
}

.pos-payment-methods span {
    min-height: 56px;
    padding: 8px 5px;
    font-size: 12px;
}

.pos-pay-btn {
    position: sticky;
    bottom: 10px;
    z-index: 4;
    margin-bottom: 10px;
}

.customer-tv-screen {
    font-size: 14px;
}

.customer-tv-brand h1 {
    font-size: min(var(--cd-title-size), clamp(32px, 4vw, 56px));
    line-height: 1;
}

.customer-tv-brand p {
    font-size: min(var(--cd-subtitle-size), clamp(15px, 1.7vw, 22px));
}

.customer-tv-product h2 {
    font-size: min(var(--cd-product-size), clamp(16px, 1.55vw, 22px));
}

.customer-tv-product p {
    font-size: min(var(--cd-description-size), 14px);
}

.customer-tv-price strong {
    font-size: min(var(--cd-price-size), clamp(18px, 2vw, 28px));
}

@media (max-width: 720px) {
    .personnel-actionbar {
        align-items: stretch;
        flex-direction: column;
    }

    .personnel-actionbar .primary-btn,
    .ops-head .primary-btn,
    .ops-head .danger-btn {
        width: 100%;
        margin-left: 0;
    }

    .pos-terminal-shell {
        height: calc(100vh - 52px);
        grid-template-columns: 1fr;
        overflow: auto;
    }

    .pos-ticket-zone {
        min-height: 560px;
    }
}

@media (max-width: 560px) {
    .home-side-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .menu-bottom-nav {
        width: calc(100% - 24px);
        max-width: 366px;
    }
}

/* Admin UX refresh */
.admin-body {
    --admin-bg: #eef2f7;
    --admin-sidebar: #111827;
    --admin-sidebar-soft: #1f2937;
    --admin-card: #ffffff;
    --admin-border: #d9e1ec;
    --admin-text: #111827;
    --admin-muted: #64748b;
    --admin-shadow: 0 18px 45px rgba(15, 23, 42, .08);
    background:
        linear-gradient(180deg, rgba(255,255,255,.72), rgba(238,242,247,.92)),
        var(--admin-bg);
}

.admin-body .admin-shell {
    grid-template-columns: 292px minmax(0, 1fr);
}

.admin-body .sidebar {
    padding: 16px 14px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0)),
        var(--admin-sidebar);
    border-right: 1px solid rgba(255,255,255,.08);
}

.admin-body .sidebar-brand {
    min-height: 74px;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    background: rgba(255,255,255,.06);
}

.admin-body .sidebar-brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--theme), #0f766e);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .22);
}

.admin-body .sidebar-brand h2 {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-body .sidebar-brand small {
    color: rgba(255,255,255,.62);
}

.admin-body .menu-group {
    margin-top: 14px;
}

.admin-body .menu-title {
    padding: 0 10px 8px;
    color: rgba(255,255,255,.42);
    letter-spacing: .06em;
}

.admin-body .sidebar a {
    min-height: 42px;
    padding: 9px 10px;
    border-radius: 8px;
    color: rgba(255,255,255,.72);
    font-weight: 750;
}

.admin-body .sidebar a:hover {
    background: rgba(255,255,255,.08);
    color: #fff;
}

.admin-body .sidebar a.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(37,99,235,.95), rgba(15,118,110,.92));
    box-shadow: 0 12px 28px rgba(37, 99, 235, .22);
}

.admin-body .sidebar-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    flex: 0 0 28px;
    border-radius: 8px;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.9);
    font-size: 12px;
    font-weight: 900;
}

.admin-body .sidebar-icon svg {
    width: 16px;
    height: 16px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.admin-body .sidebar a.active .sidebar-icon {
    background: rgba(255,255,255,.18);
}

.admin-body .sidebar-shortcuts {
    margin-top: 22px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.admin-body .admin-main {
    min-width: 0;
}

.admin-body .admin-topbar {
    position: sticky;
    top: 0;
    z-index: 25;
    min-height: 86px;
    padding: 14px 28px;
    background: rgba(255,255,255,.88);
    border-bottom: 1px solid var(--admin-border);
    backdrop-filter: blur(16px);
}

.admin-body .admin-kicker {
    display: inline-flex;
    margin-bottom: 4px;
    color: var(--theme);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.admin-body .admin-topbar h1 {
    font-size: 26px;
    letter-spacing: 0;
}

.admin-body .admin-topbar small {
    color: var(--admin-muted);
}

.admin-body .admin-actions {
    justify-content: flex-end;
}

.admin-body .admin-content {
    width: min(1480px, 100%);
    margin: 0 auto;
    padding: 28px;
}

.admin-body .toolbar {
    min-height: 48px;
    margin-bottom: 18px;
}

.admin-body .toolbar h1 {
    margin: 0;
    font-size: 24px;
}

.admin-body .card,
.admin-body .table,
.admin-body .form-card,
.admin-body .report-card,
.admin-body .order-card,
.admin-body .qr-print-card {
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: var(--admin-card);
    box-shadow: var(--admin-shadow);
}

.admin-body .card:not(.stat),
.admin-body .form-card,
.admin-body .report-card,
.admin-body .order-card,
.admin-body .dashboard-panel,
.admin-body .table {
    color: var(--admin-text);
}

.admin-body .card:not(.stat) h1,
.admin-body .card:not(.stat) h2,
.admin-body .card:not(.stat) h3,
.admin-body .card:not(.stat) strong,
.admin-body .form-card h1,
.admin-body .form-card h2,
.admin-body .form-card h3,
.admin-body .form-card strong,
.admin-body .report-card h2,
.admin-body .report-card strong,
.admin-body .dashboard-panel h2,
.admin-body .dashboard-panel strong,
.admin-body .order-card strong {
    color: var(--admin-text);
}

.admin-body .card:not(.stat) p,
.admin-body .card:not(.stat) small,
.admin-body .form-card p,
.admin-body .form-card small,
.admin-body .dashboard-panel span,
.admin-body .order-card span {
    color: var(--admin-muted);
}

.admin-body .form-card {
    max-width: none;
    padding: 22px;
}

.admin-body .form-card h2,
.admin-body .report-card h2,
.admin-body .card h2 {
    margin: 0 0 16px;
    color: var(--admin-text);
    font-size: 18px;
}

.admin-body .field {
    color: #344054;
    font-size: 13px;
    font-weight: 800;
}

.admin-body .field input,
.admin-body .field select,
.admin-body .field textarea,
.admin-body .inline-form select {
    min-height: 42px;
    border-color: var(--admin-border);
    border-radius: 8px;
    background: #fff;
    color: var(--admin-text);
}

.admin-body .field textarea {
    min-height: 96px;
    resize: vertical;
}

.admin-body .field-wide {
    grid-column: 1 / -1;
}

.admin-body select[multiple] {
    min-height: 180px;
}

.admin-body .primary-btn,
.admin-body .ghost-btn,
.admin-body .danger-btn {
    min-height: 40px;
    border-radius: 8px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 850;
}

.admin-body .ghost-btn {
    border: 1px solid var(--admin-border);
    background: #fff;
    color: #334155;
    box-shadow: none;
}

.admin-body .danger-btn {
    background: #dc2626;
    box-shadow: 0 10px 22px rgba(220, 38, 38, .16);
}

.admin-body .order-alert-badge {
    min-height: 38px;
    border-radius: 8px;
    background: #fff;
    color: #475569;
}

.admin-lang-switch {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: #fff;
}

.admin-lang-switch a {
    min-height: 30px;
    display: inline-grid;
    place-items: center;
    padding: 0 9px;
    border-radius: 6px;
    color: #475569;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.admin-lang-switch a.active {
    color: #fff;
    background: var(--theme);
}

.admin-body .order-alert-badge span {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    margin-right: 8px;
    border-radius: 6px;
    background: #eef2ff;
    color: var(--theme);
}

.admin-body .order-alert-badge.has-orders {
    border-color: #fecaca;
    background: #fff1f2;
    color: #be123c;
    box-shadow: 0 12px 28px rgba(225, 29, 72, .12);
}

.admin-body .order-alert-badge.has-orders span {
    color: #fff;
    background: #e11d48;
}

.admin-body .stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
}

.admin-body .stat {
    position: relative;
    min-height: 126px;
    padding: 18px;
    overflow: hidden;
}

.admin-body .stat::after {
    content: "";
    position: absolute;
    right: -28px;
    top: -28px;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: rgba(37, 99, 235, .08);
}

.admin-body .stat strong {
    color: var(--admin-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.admin-body .stat h2 {
    margin-top: 14px;
    font-size: 34px;
    line-height: 1;
}

.admin-body .table-wrap {
    border-radius: 8px;
    box-shadow: var(--admin-shadow);
}

.admin-body .table {
    box-shadow: none;
}

.admin-body .table th {
    padding: 12px 14px;
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.admin-body .table td {
    padding: 14px;
    color: #1f2937;
}

.admin-body .table tr:hover td {
    background: #f8fafc;
}

.admin-body .row-pending td,
.admin-body .row-pending {
    background: #fff7ed;
}

.admin-body .status-pill,
.admin-body .call-type,
.admin-body .main-image-badge {
    min-height: 28px;
    border-radius: 7px;
    font-size: 12px;
}

.admin-body .order-board {
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 16px;
}

.admin-body .order-card {
    padding: 18px;
}

.admin-body .order-card-head strong {
    font-size: 17px;
}

.admin-body .order-lines {
    gap: 0;
    margin: 12px 0;
    padding: 0;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    overflow: hidden;
}

.admin-body .order-lines div {
    padding: 10px 12px;
    border-bottom: 1px solid var(--admin-border);
    background: #fff;
}

.admin-body .order-lines div:last-child {
    border-bottom: 0;
}

.admin-body .order-card-foot > strong {
    color: var(--theme);
    font-size: 20px;
}

.admin-body .report-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}

.admin-body .report-card {
    padding: 20px;
}

.admin-body .report-card div {
    align-items: center;
    min-height: 42px;
}

.admin-body .image-admin-card {
    border-radius: 8px;
    background: #fff;
}

.admin-body .image-admin-card img {
    border-radius: 7px;
}

.admin-body .admin-thumb {
    width: 64px;
    height: 48px;
    display: block;
    border-radius: 7px;
    object-fit: cover;
    background: #eef2f7;
}

.admin-body .qr-print-card {
    box-shadow: var(--admin-shadow);
}

.admin-body .dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.admin-body .dashboard-panel {
    padding: 20px;
}

.admin-body .dashboard-panel .section-row {
    margin-bottom: 12px;
}

.admin-body .dashboard-panel .section-row a {
    color: var(--theme);
    font-weight: 850;
    text-decoration: none;
}

.admin-body .dashboard-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid var(--admin-border);
}

.admin-body .dashboard-line-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-body .mini-action-btn {
    display: inline-flex;
    min-width: 88px;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    color: #fff;
    background: #2563eb;
    box-shadow: 0 10px 20px rgba(37, 99, 235, .16);
    font-size: 12px;
    font-weight: 950;
    text-decoration: none;
    white-space: nowrap;
}

.admin-body .mini-action-btn:hover {
    color: #fff;
    background: #1d4ed8;
    border-color: #1d4ed8;
    box-shadow: 0 14px 26px rgba(37, 99, 235, .24);
    transform: translateY(-1px);
}

.admin-body .dashboard-money-pill {
    display: inline-flex;
    min-width: 92px;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid #86efac;
    border-radius: 8px;
    color: #065f46;
    background: #dcfce7;
    font-size: 13px;
    font-weight: 950;
    white-space: nowrap;
}

.admin-body .dashboard-panel .dashboard-line .dashboard-money-pill {
    color: #065f46;
}

.admin-body .dashboard-panel .status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

.admin-body .dashboard-panel .status-ready {
    color: #fff;
    background: #16a34a;
}

.admin-body .dashboard-panel .status-pending {
    color: #713f12;
    background: #fde68a;
}

.admin-body .dashboard-panel .status-preparing {
    color: #fff;
    background: #2563eb;
}

.admin-body .dashboard-panel .status-cancelled {
    color: #fff;
    background: #dc2626;
}

.admin-body .dashboard-line:last-child {
    border-bottom: 0;
}

.admin-body .dashboard-line strong,
.admin-body .dashboard-line span {
    display: block;
}

.admin-body .dashboard-line div span {
    margin-top: 4px;
    color: var(--admin-muted);
    font-size: 13px;
}

.admin-body .kitchen-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
    padding: 24px;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    color: white;
    background:
        linear-gradient(135deg, rgba(17,24,39,.96), rgba(15,118,110,.86)),
        url("https://images.unsplash.com/photo-1556910103-1c02745aae4d?auto=format&fit=crop&w=1400&q=80") center / cover;
    box-shadow: var(--admin-shadow);
}

.admin-body .kitchen-hero h1 {
    margin: 6px 0;
    font-size: 34px;
}

.admin-body .kitchen-hero p {
    max-width: 620px;
    margin: 0;
    color: rgba(255,255,255,.76);
}

.admin-body .kitchen-hero .admin-kicker {
    color: rgba(255,255,255,.72);
}

.admin-body .kitchen-clock {
    min-width: 128px;
    padding: 14px 18px;
    border-radius: 8px;
    background: rgba(255,255,255,.14);
    text-align: center;
    font-size: 34px;
    font-weight: 900;
    backdrop-filter: blur(10px);
}

.admin-body .kitchen-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 16px;
}

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.license-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.license-grid div {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: #f8fafc;
}

/* Admin global density and contrast polish */
.admin-body {
    --admin-bg: #f2f5f9;
    --admin-sidebar: #111827;
    --admin-card: #ffffff;
    --admin-border: #d8e0eb;
    --admin-text: #0f172a;
    --admin-muted: #667085;
    --admin-soft: #f7f9fc;
    --admin-shadow: 0 12px 30px rgba(15, 23, 42, .065);
    --admin-shadow-strong: 0 20px 54px rgba(15, 23, 42, .14);
    color: var(--admin-text);
    font-size: 13px;
    line-height: 1.45;
    text-rendering: optimizeLegibility;
}

.admin-body *,
.admin-body *::before,
.admin-body *::after {
    box-sizing: border-box;
}

.admin-body .admin-shell {
    grid-template-columns: 268px minmax(0, 1fr);
}

.admin-body .sidebar {
    padding: 14px 12px;
}

.admin-body .sidebar-brand {
    min-height: 66px;
    padding: 10px;
    gap: 10px;
}

.admin-body .sidebar-brand h2 {
    max-width: 158px;
    font-size: 16px;
    line-height: 1.1;
}

.admin-body .sidebar-brand small {
    font-size: 11px;
    line-height: 1.2;
}

.admin-body .sarmal-admin-logo {
    max-width: 54px;
    height: auto;
}

.admin-body .menu-group {
    margin-top: 11px;
}

.admin-body .menu-title {
    padding: 0 8px 6px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .055em;
}

.admin-body .sidebar a {
    min-height: 36px;
    gap: 9px;
    padding: 7px 9px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 780;
    line-height: 1.2;
}

.admin-body .sidebar a span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-body .sidebar-icon {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
    border-radius: 7px;
}

.admin-body .sidebar-icon svg {
    width: 14px;
    height: 14px;
}

.admin-body .admin-topbar {
    min-height: 74px;
    padding: 12px 24px;
}

.admin-body .admin-kicker {
    margin-bottom: 2px;
    font-size: 10px;
    letter-spacing: .055em;
}

.admin-body .admin-topbar h1,
.admin-body .toolbar h1,
.settings-page-head h1,
.campaign-page-head h1,
.ops-page-head h1 {
    color: var(--admin-text);
    font-size: 21px;
    line-height: 1.16;
    letter-spacing: 0;
}

.admin-body .admin-topbar small,
.admin-body .toolbar p,
.settings-page-head p,
.campaign-page-head p,
.ops-page-head p {
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: 650;
}

.admin-body .admin-actions {
    gap: 8px;
    flex-wrap: wrap;
}

.admin-body .admin-content {
    width: min(1420px, 100%);
    padding: 22px;
}

.admin-body .toolbar,
.campaign-page-head,
.ops-page-head,
.settings-page-head {
    min-height: 42px;
    margin-bottom: 14px;
    gap: 12px;
}

.admin-body h1,
.admin-body h2,
.admin-body h3,
.admin-body h4 {
    letter-spacing: 0;
}

.admin-body h2,
.admin-body .form-card h2,
.admin-body .report-card h2,
.admin-body .card h2,
.admin-body .dashboard-panel h2,
.settings-panel h2 {
    font-size: 16px;
    line-height: 1.25;
}

.admin-body h3 {
    font-size: 14px;
}

.admin-body p,
.admin-body small,
.admin-body td,
.admin-body th,
.admin-body label,
.admin-body input,
.admin-body select,
.admin-body textarea,
.admin-body button,
.admin-body a {
    line-height: 1.35;
}

.admin-body .card,
.admin-body .form-card,
.admin-body .report-card,
.admin-body .order-card,
.admin-body .dashboard-panel,
.admin-body .settings-panel,
.admin-body .table-wrap,
.admin-body .campaign-table-wrap,
.admin-body .image-admin-card {
    border-color: var(--admin-border);
    border-radius: 8px;
    box-shadow: var(--admin-shadow);
}

.admin-body .card:not(.stat),
.admin-body .form-card,
.admin-body .report-card,
.admin-body .dashboard-panel {
    padding: 16px;
}

.admin-body .card:hover,
.admin-body .dashboard-panel:hover,
.admin-body .settings-panel:hover,
.admin-body .image-admin-card:hover {
    border-color: #c8d3e1;
}

.admin-body .field,
.admin-body .side-form .field,
.admin-body .settings-form-grid .field,
.admin-body .smart-form-grid .field {
    gap: 6px;
    color: #344054;
    font-size: 12px;
    font-weight: 760;
}

.admin-body .field input,
.admin-body .field select,
.admin-body .field textarea,
.admin-body .inline-form select,
.admin-body .inline-form input,
.admin-body input[type="text"],
.admin-body input[type="email"],
.admin-body input[type="password"],
.admin-body input[type="number"],
.admin-body input[type="date"],
.admin-body input[type="time"],
.admin-body input[type="search"],
.admin-body input[type="url"],
.admin-body select,
.admin-body textarea {
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    color: var(--admin-text);
    background: #fff;
    font-size: 13px;
    font-weight: 650;
    box-shadow: inset 0 1px 0 rgba(15, 23, 42, .025);
}

.admin-body textarea {
    min-height: 82px;
}

.admin-body input:focus,
.admin-body select:focus,
.admin-body textarea:focus {
    outline: 0;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .13);
}

.admin-body .primary-btn,
.admin-body .success-btn,
.admin-body .warning-btn,
.admin-body .ghost-btn,
.admin-body .danger-btn,
.admin-body button.primary-btn,
.admin-body button.success-btn,
.admin-body button.warning-btn,
.admin-body button.ghost-btn,
.admin-body button.danger-btn,
.admin-body .toolbar-actions a,
.admin-body .toolbar-actions button,
.admin-body .modal-actions button,
.admin-body .modal-actions a,
.admin-body .actions-cell a,
.admin-body .actions-cell button {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.15;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.admin-body .primary-btn,
.admin-body button.primary-btn {
    border: 1px solid #1d4ed8;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 10px 20px rgba(37, 99, 235, .20);
}

.admin-body .success-btn,
.admin-body button.success-btn {
    border: 1px solid #047857;
    color: #fff;
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 10px 20px rgba(5, 150, 105, .18);
}

.admin-body .warning-btn,
.admin-body button.warning-btn {
    border: 1px solid #d97706;
    color: #111827;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 10px 20px rgba(217, 119, 6, .14);
}

.admin-body .ghost-btn,
.admin-body button.ghost-btn {
    border: 1px solid #cbd5e1;
    color: #334155;
    background: #fff;
    box-shadow: 0 1px 0 rgba(15, 23, 42, .04);
}

.admin-body .danger-btn,
.admin-body button.danger-btn {
    border: 1px solid #dc2626;
    color: #fff;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 10px 20px rgba(220, 38, 38, .16);
}

.admin-body .primary-btn:hover,
.admin-body .success-btn:hover,
.admin-body .warning-btn:hover,
.admin-body .ghost-btn:hover,
.admin-body .danger-btn:hover,
.admin-body .actions-cell a:hover,
.admin-body .actions-cell button:hover {
    transform: translateY(-1px);
}

.admin-body .ghost-btn:hover {
    border-color: #94a3b8;
    color: #0f172a;
    background: #f8fafc;
}

.admin-body .table-wrap,
.admin-body .report-table-wrap,
.admin-body .campaign-table-wrap {
    overflow-x: auto;
    background: #fff;
}

.admin-body .table,
.admin-body .report-table,
.admin-body .campaign-table,
.admin-body .ops-table,
.admin-body .activity-table {
    font-size: 12px;
}

.admin-body .table th,
.admin-body .report-table th,
.admin-body .campaign-table th,
.admin-body .ops-table th,
.admin-body .activity-table th {
    padding: 10px 12px;
    color: #526070;
    background: #f8fafc;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.admin-body .table td,
.admin-body .report-table td,
.admin-body .campaign-table td,
.admin-body .ops-table td,
.admin-body .activity-table td {
    padding: 11px 12px;
    color: #1f2937;
    font-size: 12px;
    vertical-align: middle;
}

.admin-body .status-pill,
.admin-body .call-type,
.admin-body .main-image-badge,
.admin-body .badge,
.admin-body .module-badge {
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
}

.admin-body .stat-grid,
.admin-body .report-summary-grid,
.admin-body .dashboard-kpi-row,
.admin-body .ops-summary-grid {
    gap: 12px;
}

.admin-body .stat {
    min-height: 104px;
    padding: 15px;
}

.admin-body .stat strong,
.admin-body .report-kpi small,
.admin-body .ops-kpi small,
.admin-body .dashboard-kpi small {
    color: rgba(255,255,255,.88);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .035em;
}

.admin-body .stat h2,
.admin-body .stat strong + h2 {
    margin-top: 10px;
    color: #fff;
    font-size: 27px;
    line-height: 1;
}

.admin-body .report-kpi strong,
.admin-body .ops-kpi strong,
.admin-body .dashboard-kpi strong,
.admin-body .personnel-summary-card strong {
    font-size: 24px;
    line-height: 1;
}

.admin-body .dashboard-grid {
    gap: 14px;
}

.admin-body .dashboard-line {
    gap: 10px;
    padding: 10px 0;
}

.admin-body .dashboard-line strong {
    font-size: 13px;
}

.admin-body .dashboard-line div span {
    font-size: 11px;
}

.admin-body .mini-action-btn,
.admin-body .dashboard-money-pill {
    min-width: auto;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 11px;
}

.admin-body .modal,
.admin-body .modal-backdrop,
.admin-body .modal-overlay {
    backdrop-filter: blur(3px);
}

.admin-body .modal-card,
.admin-body .campaign-modal,
.admin-body .staff-modal,
.admin-body .expense-modal-card,
.admin-body .attendance-modal-card,
.admin-body .settings-modal,
.admin-body .table-modal,
.admin-body .ops-modal-card {
    border: 1px solid #d8e0eb;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--admin-shadow-strong);
}

.admin-body .modal-card > header,
.admin-body .campaign-modal > header,
.admin-body .staff-modal > header,
.admin-body .expense-modal-card > header,
.admin-body .attendance-modal-card > header,
.admin-body .ops-modal-card > header {
    min-height: 52px;
    padding: 13px 16px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #fff, #f8fafc);
}

.admin-body .modal-card > header h2,
.admin-body .campaign-modal > header h2,
.admin-body .staff-modal > header h2,
.admin-body .expense-modal-card > header h2,
.admin-body .attendance-modal-card > header h2,
.admin-body .ops-modal-card > header h2 {
    margin: 0;
    color: var(--admin-text);
    font-size: 16px;
}

.admin-body .campaign-form,
.admin-body .staff-form,
.admin-body .ops-modal-form,
.admin-body .table-modal-form,
.admin-body .product-modal-form,
.admin-body .category-modal-form {
    gap: 12px;
}

.admin-body .campaign-form .modal-actions,
.admin-body .staff-form .modal-actions,
.admin-body .ops-modal-form .modal-actions,
.admin-body .table-modal-form .modal-actions,
.admin-body .product-modal-form .modal-actions,
.admin-body .category-modal-form .modal-actions {
    gap: 8px;
    padding-top: 10px;
}

.admin-body .empty-menu-state,
.admin-body .empty-cell,
.admin-body .empty-state,
.admin-body .customer-tv-empty {
    color: #667085;
    font-size: 13px;
    font-weight: 700;
}

.admin-body .order-alert-badge {
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 850;
}

.admin-lang-switch a {
    min-height: 28px;
    font-size: 11px;
}

@media (max-width: 860px) {
    .admin-body .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-body .admin-content {
        padding: 16px;
    }

    .admin-body .admin-topbar {
        min-height: auto;
        padding: 14px 16px;
    }

    .admin-body .admin-topbar h1,
    .admin-body .toolbar h1,
    .settings-page-head h1,
    .campaign-page-head h1,
    .ops-page-head h1 {
        font-size: 20px;
    }

    .admin-body .primary-btn,
    .admin-body .success-btn,
    .admin-body .warning-btn,
    .admin-body .ghost-btn,
    .admin-body .danger-btn,
    .admin-body .toolbar-actions a,
    .admin-body .toolbar-actions button,
    .admin-body .actions-cell a,
    .admin-body .actions-cell button {
        min-height: 38px;
        white-space: normal;
    }

    .admin-body .modal-card,
    .admin-body .campaign-modal,
    .admin-body .staff-modal,
    .admin-body .expense-modal-card,
    .admin-body .attendance-modal-card,
    .admin-body .ops-modal-card {
        width: calc(100vw - 22px);
        max-height: calc(100vh - 22px);
    }
}

.license-grid span {
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.license-warning {
    padding: 12px;
    border-radius: 8px;
    color: #92400e;
    background: #fffbeb;
    font-weight: 800;
}

.success-note {
    margin: 0 0 16px;
    padding: 13px 15px;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    color: #166534;
    background: #f0fdf4;
    font-weight: 800;
}

.license-module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.license-module-card {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: #fff;
}

.license-module-card strong {
    color: var(--admin-ink);
}

.license-module-card span {
    display: inline-flex;
    width: max-content;
    padding: 5px 9px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;
    font-size: 12px;
    font-weight: 850;
}

.license-module-card.is-licensed {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.license-module-card.is-licensed span {
    color: #075985;
    background: #dbeafe;
}

.license-module-card.is-locked {
    opacity: .72;
}

.admin-body .report-card-wide {
    grid-column: span 2;
}

.admin-body .kitchen-kanban {
    display: grid;
    grid-template-columns: repeat(3, minmax(280px, 1fr));
    gap: 16px;
    align-items: start;
}

.admin-body .kitchen-column {
    min-height: 320px;
    padding: 12px;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: #f8fafc;
}

.admin-body .kitchen-column-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.admin-body .kitchen-column-head h2 {
    margin: 0;
    font-size: 16px;
}

.admin-body .kitchen-column-head span {
    display: inline-grid;
    place-items: center;
    min-width: 30px;
    height: 30px;
    border-radius: 8px;
    color: #fff;
    background: var(--theme);
    font-weight: 900;
}

.admin-body .kitchen-column .kitchen-ticket {
    margin-bottom: 12px;
}

.admin-body .kitchen-ticket.is-urgent {
    border-color: #fb923c;
    box-shadow: 0 16px 35px rgba(249, 115, 22, .18);
}

.kitchen-empty {
    display: grid;
    place-items: center;
    min-height: 120px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    color: var(--admin-muted);
    background: #fff;
    font-weight: 800;
}

.admin-body .kitchen-ticket {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--admin-border);
    border-top: 5px solid var(--theme);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--admin-shadow);
}

.admin-body .status-ticket-pending {
    border-top-color: #f59e0b;
}

.admin-body .status-ticket-preparing {
    border-top-color: #2563eb;
}

.admin-body .status-ticket-ready {
    border-top-color: #0f766e;
}

.admin-body .kitchen-ticket header,
.admin-body .kitchen-ticket footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.admin-body .kitchen-ticket header strong {
    display: block;
    font-size: 20px;
}

.admin-body .kitchen-ticket header span {
    display: block;
    margin-top: 4px;
    color: var(--admin-muted);
    font-size: 13px;
}

.admin-body .kitchen-items {
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 8px;
    background: #f8fafc;
}

.admin-body .kitchen-items div {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 10px;
    align-items: center;
}

.admin-body .kitchen-items b {
    display: inline-grid;
    place-items: center;
    min-height: 32px;
    border-radius: 7px;
    color: white;
    background: var(--theme);
}

.admin-body .kitchen-note {
    margin: 0;
    padding: 12px;
    border-radius: 8px;
    color: #92400e;
    background: #fffbeb;
    font-weight: 750;
}

.admin-body .kitchen-ready {
    color: #0f766e;
    font-weight: 900;
}

.admin-login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
    background:
        linear-gradient(120deg, rgba(17, 24, 39, .94), rgba(15, 118, 110, .78)),
        url("https://images.unsplash.com/photo-1552566626-52f8b828add9?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.admin-login-shell {
    width: min(980px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 22px;
    align-items: stretch;
}

.admin-login-hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 520px;
    padding: 34px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 8px;
    color: white;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(16px);
}

.admin-login-hero > span {
    margin-top: auto;
    color: rgba(255,255,255,.72);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.login-product-scene {
    position: relative;
    min-height: 250px;
    margin: 0 0 24px;
    border-radius: 8px;
    overflow: hidden;
}

.login-product-scene::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: inherit;
    background:
        linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.04)),
        radial-gradient(circle at 80% 20%, rgba(59,130,246,.22), transparent 36%),
        radial-gradient(circle at 20% 86%, rgba(20,184,166,.20), transparent 34%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
}

.scene-card,
.scene-menu-lines,
.scene-module-rail {
    position: absolute;
    z-index: 1;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 8px;
    background: rgba(15, 23, 42, .34);
    box-shadow: 0 18px 44px rgba(0,0,0,.18);
    backdrop-filter: blur(12px);
}

.scene-card {
    display: grid;
    gap: 5px;
    padding: 13px 14px;
    color: white;
}

.scene-card span {
    color: rgba(255,255,255,.62);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.scene-card strong {
    font-size: 21px;
    line-height: 1;
}

.scene-card small {
    color: rgba(255,255,255,.68);
    font-size: 12px;
    font-weight: 700;
}

.scene-qr-card,
.scene-kitchen-card {
    left: 18px;
    top: 18px;
    width: 150px;
}

.scene-order-card,
.scene-pos-card {
    right: 18px;
    top: 54px;
    width: 185px;
}

.scene-call-card,
.scene-stock-card {
    left: 42px;
    bottom: 28px;
    width: 188px;
}

.scene-menu-lines {
    right: 28px;
    bottom: 30px;
    width: 180px;
    padding: 14px;
    display: grid;
    gap: 9px;
}

.scene-menu-lines i {
    display: block;
    height: 11px;
    border-radius: 999px;
    background: rgba(255,255,255,.2);
}

.scene-menu-lines i:nth-child(1) { width: 90%; }
.scene-menu-lines i:nth-child(2) { width: 68%; }
.scene-menu-lines i:nth-child(3) { width: 78%; }

.scene-module-rail {
    right: 28px;
    bottom: 34px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 214px;
    padding: 14px;
}

.scene-module-rail i {
    min-width: 58px;
    padding: 8px 10px;
    border-radius: 8px;
    color: rgba(255,255,255,.88);
    background: rgba(255,255,255,.12);
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    text-align: center;
}

.admin-login-hero h1 {
    max-width: 520px;
    margin: 8px 0 12px;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1;
}

.admin-login-hero p {
    max-width: 430px;
    margin: 0;
    color: rgba(255,255,255,.76);
    font-size: 17px;
    line-height: 1.55;
}

.admin-login-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px;
    border-radius: 8px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, .28);
}

.admin-login-card .sidebar-brand-mark {
    margin-bottom: 18px;
}

.admin-login-card h2 {
    margin: 0;
    font-size: 26px;
}

.admin-login-card p {
    margin: 8px 0 22px;
    color: var(--muted);
}

.sarmal-admin-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
    flex: 0 0 58px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    padding: 5px;
}

.admin-body .sidebar .sidebar-brand {
    color: #fff;
    text-decoration: none;
}

.admin-body .sidebar .sidebar-brand:hover {
    background: rgba(255, 255, 255, .08);
}

.login-logo-link {
    display: inline-flex;
    width: min(300px, 100%);
    margin-bottom: 22px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.login-logo-link img {
    width: 100%;
    height: 82px;
    object-fit: contain;
}

.admin-form-panel {
    display: grid;
    gap: 18px;
}

.resto-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 24px;
    border: 1px solid rgba(37, 99, 235, .18);
    background:
        linear-gradient(135deg, rgba(15, 23, 42, .94), rgba(21, 128, 61, .86)),
        url("https://images.unsplash.com/photo-1552566626-52f8b828add9?auto=format&fit=crop&w=1400&q=80") center/cover;
    color: #fff;
}

.resto-hero h1 {
    max-width: 780px;
    margin: 8px 0;
    color: #fff;
    font-size: 32px;
    line-height: 1.08;
}

.resto-hero p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, .82);
}

.resto-hero .admin-kicker {
    color: #bfdbfe;
}

.resto-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.resto-hero-actions .ghost-btn {
    color: #fff;
    border-color: rgba(255, 255, 255, .34);
    background: rgba(255, 255, 255, .12);
}

.resto-module-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
}

.resto-module-strip div {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.resto-module-strip strong {
    font-size: 24px;
    color: var(--admin-text);
}

.resto-module-strip span {
    color: var(--admin-muted);
    font-weight: 800;
}

.resto-module-strip a {
    color: var(--theme);
    font-weight: 900;
}

.resto-dashboard-grid {
    align-items: start;
}

.resto-command-center {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 22px;
    padding: 26px;
    overflow: hidden;
    border: 1px solid rgba(37, 99, 235, .16);
    background:
        radial-gradient(circle at 88% 18%, rgba(250, 204, 21, .24), transparent 30%),
        linear-gradient(135deg, rgba(15, 23, 42, .96), rgba(21, 128, 61, .88)),
        url("https://images.unsplash.com/photo-1552566626-52f8b828add9?auto=format&fit=crop&w=1400&q=80") center/cover;
    color: #fff;
}

.resto-command-copy h1 {
    max-width: 780px;
    margin: 8px 0 10px;
    color: #fff;
    font-size: 38px;
    line-height: 1.04;
}

.resto-command-copy p {
    max-width: 700px;
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: 15px;
    line-height: 1.6;
}

.resto-command-copy .admin-kicker {
    color: #bfdbfe;
}

.resto-command-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.resto-command-actions .ghost-btn {
    color: #fff;
    border-color: rgba(255, 255, 255, .34);
    background: rgba(255, 255, 255, .12);
}

.resto-command-actions .primary-btn,
.resto-command-actions .ghost-btn {
    font-weight: 900;
    text-shadow: none;
}

.resto-command-actions .primary-btn {
    color: #fff;
    background: #2563eb;
    box-shadow: 0 14px 32px rgba(37, 99, 235, .28);
}

.resto-command-center .admin-kicker,
.resto-command-center h1,
.resto-command-center p,
.resto-live-card span,
.resto-live-card small,
.resto-live-card strong,
.resto-pulse-card span,
.resto-pulse-card small,
.resto-pulse-card strong {
    text-shadow: 0 1px 2px rgba(15, 23, 42, .26);
}

.resto-live-stack {
    display: grid;
    gap: 12px;
}

.resto-live-card {
    position: relative;
    overflow: hidden;
    min-height: 96px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    background: rgba(255, 255, 255, .13);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}

.resto-live-card::after {
    content: "";
    position: absolute;
    top: -44px;
    right: -34px;
    width: 118px;
    height: 118px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
}

.resto-live-card span,
.resto-live-card small {
    display: block;
    color: rgba(255, 255, 255, .78);
    font-weight: 800;
}

.resto-live-card strong {
    display: block;
    margin: 4px 0;
    color: #fff;
    font-size: 34px;
    line-height: 1;
}

.resto-live-card.hot {
    background: rgba(220, 38, 38, .34);
}

.resto-live-card.good {
    background: rgba(22, 163, 74, .34);
}

.resto-live-card.info {
    background: rgba(37, 99, 235, .32);
}

.resto-pulse-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.resto-pulse-card {
    position: relative;
    overflow: hidden;
    min-height: 120px;
    padding: 18px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .10);
}

.resto-pulse-card::after {
    content: "";
    position: absolute;
    top: -38px;
    right: -28px;
    width: 108px;
    height: 108px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
}

.resto-pulse-card span,
.resto-pulse-card small {
    display: block;
    color: rgba(255, 255, 255, .82);
    font-weight: 800;
}

.resto-pulse-card strong {
    display: block;
    margin: 10px 0 5px;
    color: #fff;
    font-size: 30px;
    line-height: 1;
}

.tone-red {
    background: linear-gradient(135deg, #dc2626, #f97316);
}

.tone-blue {
    background: linear-gradient(135deg, #2563eb, #0891b2);
}

.tone-amber {
    background: linear-gradient(135deg, #d97706, #ca8a04);
}

.tone-green {
    background: linear-gradient(135deg, #16a34a, #15803d);
}

.tone-slate {
    background: linear-gradient(135deg, #334155, #0f172a);
}

/* Report cards must stay readable even when global tone helpers are loaded later. */
.admin-main .reports-page .report-kpi.tone-green,
.admin-main .reports-page .report-kpi.tone-red,
.admin-main .reports-page .report-kpi.tone-blue,
.admin-main .reports-page .report-kpi.tone-indigo,
.admin-main .reports-page .report-kpi.tone-amber,
.admin-main .ops-page .report-kpi.tone-green,
.admin-main .ops-page .report-kpi.tone-red,
.admin-main .ops-page .report-kpi.tone-blue,
.admin-main .ops-page .report-kpi.tone-indigo,
.admin-main .ops-page .report-kpi.tone-amber {
    background: #fff !important;
    color: #0f172a !important;
}

.admin-main .reports-page .report-kpi small,
.admin-main .reports-page .report-kpi small svg,
.admin-main .ops-page .report-kpi small,
.admin-main .ops-page .report-kpi small svg {
    color: #64748b !important;
}

.admin-main .reports-page .report-kpi strong,
.admin-main .ops-page .report-kpi strong {
    color: #0f172a !important;
}

.admin-main .reports-page .report-kpi.tone-green,
.admin-main .ops-page .report-kpi.tone-green {
    border-left-color: #059669 !important;
}

.admin-main .reports-page .report-kpi.tone-green strong,
.admin-main .ops-page .report-kpi.tone-green strong {
    color: #059669 !important;
}

.admin-main .reports-page .report-kpi.tone-red,
.admin-main .ops-page .report-kpi.tone-red {
    border-left-color: #e11d48 !important;
}

.admin-main .reports-page .report-kpi.tone-red strong,
.admin-main .ops-page .report-kpi.tone-red strong {
    color: #e11d48 !important;
}

.admin-main .reports-page .report-kpi.tone-amber,
.admin-main .ops-page .report-kpi.tone-amber {
    border-left-color: #f59e0b !important;
}

.admin-main .reports-page .report-kpi.tone-amber strong,
.admin-main .ops-page .report-kpi.tone-amber strong {
    color: #f59e0b !important;
}

.admin-main .reports-page .report-kpi.tone-blue,
.admin-main .reports-page .report-kpi.tone-indigo,
.admin-main .ops-page .report-kpi.tone-blue,
.admin-main .ops-page .report-kpi.tone-indigo {
    border-left-color: #2563eb !important;
}

.admin-main .reports-page .report-payment-card,
.admin-main .reports-page .report-payment-card small,
.admin-main .reports-page .report-payment-card em,
.admin-main .reports-page .report-payment-card strong {
    color: #0f172a;
}

.admin-main .reports-page .report-payment-card small,
.admin-main .reports-page .report-payment-card em {
    color: #64748b;
}

.resto-quick-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
}

.resto-quick-action {
    --quick-accent: #2563eb;
    --quick-soft: #eff6ff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    min-height: 112px;
    padding: 14px 10px;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    color: var(--admin-text);
    background: #fff;
    text-align: center;
    text-decoration: none;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background-color .16s ease;
}

.resto-quick-action:hover {
    border-color: color-mix(in srgb, var(--quick-accent) 42%, #dbe4f0);
    background: color-mix(in srgb, var(--quick-soft) 45%, #fff);
    box-shadow: 0 14px 28px color-mix(in srgb, var(--quick-accent) 13%, transparent);
    transform: translateY(-2px);
}

.resto-quick-action .sidebar-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: var(--quick-accent);
    background: var(--quick-soft);
    border: 1px solid color-mix(in srgb, var(--quick-accent) 18%, transparent);
}

.resto-quick-action .sidebar-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.resto-quick-action strong {
    color: #0f172a;
    font-size: 14px;
    line-height: 1.2;
    text-decoration: none;
}

.resto-quick-action small {
    color: var(--admin-muted);
    font-size: 11px;
    line-height: 1.25;
    font-weight: 700;
    text-decoration: none;
}

.resto-quick-action.tone-indigo { --quick-accent: #4f46e5; --quick-soft: #eef2ff; }
.resto-quick-action.tone-orange { --quick-accent: #ea580c; --quick-soft: #fff7ed; }
.resto-quick-action.tone-teal { --quick-accent: #0f766e; --quick-soft: #f0fdfa; }
.resto-quick-action.tone-amber { --quick-accent: #b45309; --quick-soft: #fffbeb; }
.resto-quick-action.tone-rose { --quick-accent: #e11d48; --quick-soft: #fff1f2; }

.resto-ops-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
    gap: 18px;
    align-items: start;
}

.resto-table-map {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
    gap: 10px;
}

.resto-table-tile {
    min-height: 92px;
    padding: 12px;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    background: #f8fafc;
    color: var(--admin-text);
}

.resto-table-tile strong,
.resto-table-tile span,
.resto-table-tile small {
    display: block;
}

.resto-table-tile strong {
    font-size: 15px;
}

.resto-table-tile span {
    margin-top: 3px;
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: 800;
}

.resto-table-tile small {
    margin-top: 10px;
    font-weight: 900;
}

.resto-table-tile.busy {
    border-color: rgba(249, 115, 22, .45);
    background: #fff7ed;
}

.resto-table-tile.free {
    border-color: rgba(22, 163, 74, .26);
    background: #f0fdf4;
}

.resto-page-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px;
    background:
        radial-gradient(circle at 90% 0%, rgba(37, 99, 235, .16), transparent 28%),
        linear-gradient(135deg, #ffffff, #f8fafc);
}

.resto-page-hero h1 {
    margin: 6px 0;
    font-size: 30px;
    line-height: 1.08;
}

.resto-page-hero p {
    max-width: 720px;
    margin: 0;
    color: var(--admin-muted);
    font-weight: 700;
    line-height: 1.55;
}

.resto-mini-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.resto-mini-stats span {
    min-width: 118px;
    padding: 12px;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    background: #fff;
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: 900;
    text-align: center;
}

.resto-mini-stats strong {
    display: block;
    margin-bottom: 4px;
    color: var(--admin-text);
    font-size: 20px;
}

.resto-payment-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0;
}

.resto-payment-row div {
    padding: 12px;
    border-radius: 8px;
    background: #f8fafc;
}

.resto-payment-row strong,
.resto-payment-row span {
    display: block;
}

.resto-payment-row strong {
    color: var(--admin-text);
    font-size: 18px;
}

.resto-payment-row span {
    margin-top: 3px;
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: 900;
}

.resto-pos-card {
    border-top: 4px solid var(--theme);
}

.stock-badge {
    display: inline-grid;
    min-width: 46px;
    height: 34px;
    place-items: center;
    border-radius: 8px;
    background: #eef2ff;
    color: #1e40af;
    font-weight: 900;
}

.stock-badge.critical {
    background: #fee2e2;
    color: #b91c1c;
}

.row-warning {
    background: #fff7ed;
}

.stock-inline-form input[type="number"] {
    width: 90px;
}

.stock-inline-form input[name="note"] {
    min-width: 140px;
}

.waiter-order-head {
    display: grid;
    grid-template-columns: minmax(220px, .35fr) minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 16px;
}

.waiter-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 12px;
}

.waiter-product-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 72px;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    background: #fff;
}

.waiter-product-card strong,
.waiter-product-card span {
    display: block;
}

.waiter-product-card span {
    margin-top: 3px;
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: 800;
}

.waiter-product-card em {
    color: var(--admin-text);
    font-style: normal;
    font-weight: 900;
}

.waiter-product-card input[type="number"] {
    width: 72px;
}

.success-panel {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.resto-table-map-large {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.resto-table-tile em {
    display: block;
    margin-top: 8px;
    color: #9a3412;
    font-style: normal;
    font-weight: 900;
}

.integration-grid,
.waiter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.integration-card,
.waiter-card {
    display: grid;
    gap: 12px;
    align-content: start;
    min-height: 190px;
    padding: 18px;
}

.integration-card .sidebar-icon,
.waiter-card .sidebar-icon {
    width: 44px;
    height: 44px;
    color: #fff;
    background: linear-gradient(135deg, var(--theme), #0891b2);
}

.integration-card h2,
.waiter-card h2 {
    margin: 0;
    font-size: 18px;
}

.integration-card p,
.waiter-card p {
    margin: 0;
    color: var(--admin-muted);
    font-weight: 700;
    line-height: 1.5;
}

.waiter-card {
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: start;
    min-height: 150px;
}

.waiter-card .ghost-btn {
    grid-column: 1 / -1;
    justify-self: start;
}

.waiter-card small {
    display: block;
    margin-top: 8px;
    color: var(--theme);
    font-weight: 900;
}

.integration-card.locked {
    opacity: .74;
}

.integration-page {
    display: grid;
    gap: 18px;
}

.integration-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    overflow: hidden;
    position: relative;
    padding: 24px;
    border: 1px solid #d8e2ef;
    background:
        radial-gradient(circle at 86% 12%, color-mix(in srgb, var(--integration-color, var(--theme)) 24%, transparent), transparent 30%),
        linear-gradient(135deg, #ffffff 0%, #f8fbff 58%, #eef6ff 100%);
}

.integration-hero h1 {
    margin: 4px 0 8px;
    color: #0f172a;
    font-size: clamp(28px, 4vw, 46px);
    letter-spacing: 0;
}

.integration-hero p,
.integration-section-title p,
.integration-panel p {
    margin: 0;
    color: #475569;
    font-weight: 700;
    line-height: 1.55;
}

.integration-state {
    min-width: 150px;
    padding: 16px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #fff;
    text-align: center;
    box-shadow: 0 14px 28px rgba(15, 23, 42, .08);
}

.integration-state strong {
    display: block;
    color: var(--integration-color, var(--theme));
    font-size: 28px;
    line-height: 1;
}

.integration-state small {
    display: block;
    margin-top: 8px;
    color: #475569;
    font-weight: 900;
}

.integration-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.integration-kpis article {
    min-height: 120px;
    padding: 18px;
    border: 1px solid #dbe4f0;
    border-left: 5px solid var(--integration-color, var(--theme));
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, .06);
}

.integration-kpis small,
.integration-kpis span {
    display: block;
    color: #475569;
    font-weight: 900;
}

.integration-kpis strong {
    display: block;
    margin: 8px 0 4px;
    color: #0f172a;
    font-size: 30px;
    line-height: 1;
}

.integration-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 6px;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    background: #fff;
}

.integration-tabs a {
    flex: 0 0 auto;
    padding: 10px 13px;
    border-radius: 8px;
    color: #475569;
    font-weight: 900;
}

.integration-tabs a.active,
.integration-tabs a:hover {
    color: #fff;
    background: var(--integration-color, var(--theme));
}

.integration-panel {
    padding: 20px;
    border: 1px solid #d8e2ef;
    border-radius: 8px;
    background: #fff;
}

.integration-panel h2 {
    margin: 0 0 8px;
    color: #0f172a;
}

.integration-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.integration-form-grid .field-wide {
    grid-column: 1 / -1;
}

.integration-toggle-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.integration-toggle-list label,
.mini-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 12px;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    font-weight: 900;
}

.integration-two-col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .6fr);
    gap: 16px;
}

.integration-action-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.integration-feature-list {
    display: grid;
    gap: 9px;
    padding: 0;
    margin: 14px 0 0;
    list-style: none;
}

.integration-feature-list li {
    padding: 10px 12px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #f8fbff;
    color: #1e293b;
    font-weight: 800;
}

.marketplace-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.marketplace-card {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid #dbe4f0;
    border-top: 5px solid var(--integration-color, var(--theme));
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, .08);
}

.marketplace-card-head,
.marketplace-mini-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.marketplace-card .sidebar-icon {
    color: #fff;
    background: var(--integration-color, var(--theme));
}

.marketplace-card h2 {
    margin: 0;
    color: #0f172a;
    font-size: 20px;
}

.marketplace-card p {
    min-height: 52px;
    margin: 0;
    color: #475569;
    font-weight: 750;
    line-height: 1.45;
}

.marketplace-mini-stats span {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 900;
}

.marketplace-mini-stats strong {
    color: #0f172a;
    font-size: 18px;
}

.integration-filter-bar,
.compact-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding: 12px;
}

.integration-filter-bar select,
.integration-filter-bar input,
.compact-filter select {
    min-height: 42px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #0f172a;
    font-weight: 800;
}

.market-product-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.market-product-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(120px, 1fr)) 105px 118px minmax(120px, .8fr) 116px 92px 86px;
    gap: 9px;
    align-items: center;
    padding: 12px;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    background: #fff;
}

.market-product-row:hover {
    border-color: #93c5fd;
    box-shadow: 0 10px 22px rgba(37, 99, 235, .08);
}

.market-product-row strong,
.market-product-row small {
    display: block;
}

.market-product-row small {
    margin-top: 4px;
    color: #64748b;
    font-weight: 850;
}

.market-product-row input,
.market-product-row select {
    width: 100%;
    min-height: 40px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    color: #0f172a;
    font-weight: 800;
}

.market-price-preview {
    display: grid;
    gap: 2px;
    padding: 8px 10px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: linear-gradient(180deg, #eff6ff, #ffffff);
}

.market-price-preview small,
.market-price-preview em {
    margin: 0;
    color: #475569;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
}

.market-price-preview strong {
    color: #0f172a;
    font-size: 15px;
}

.price-policy-example {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 14px;
    align-items: center;
    margin-top: 12px;
    padding: 14px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #f8fbff;
}

.price-policy-example span {
    color: #64748b;
    font-weight: 900;
}

.price-policy-example strong {
    color: #0f172a;
}

.integration-note {
    margin-top: 14px !important;
    padding: 12px;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    background: #fff7ed;
    color: #9a3412 !important;
}

.fiscal-page {
    display: grid;
    gap: 16px;
}

.fiscal-head h1 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #0f172a;
}

.fiscal-head h1 svg,
.fiscal-head .ghost-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.fiscal-head p {
    margin: 6px 0 0;
    color: #64748b;
    font-weight: 850;
}

.fiscal-warning {
    padding: 13px 16px;
    border: 1px solid #fde68a;
    border-radius: 8px;
    background: #fffbeb;
    color: #92400e;
    font-weight: 900;
}

.fiscal-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.fiscal-kpis article {
    min-height: 88px;
    padding: 18px;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, .06);
}

.fiscal-kpis article.accent {
    color: #fff;
    border-color: #1d4ed8;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
}

.fiscal-kpis small {
    display: block;
    color: #475569;
    font-weight: 850;
}

.fiscal-kpis strong {
    display: block;
    margin-top: 8px;
    color: #0f172a;
    font-size: 30px;
    line-height: 1;
}

.fiscal-kpis article.accent small,
.fiscal-kpis article.accent strong {
    color: #fff;
}

.fiscal-panel {
    overflow: hidden;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    background: #fff;
}

.fiscal-panel header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
}

.fiscal-panel header h2 {
    margin: 0;
    color: #0f172a;
    font-size: 17px;
}

.fiscal-panel header span {
    color: #64748b;
    font-weight: 900;
}

.fiscal-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    padding: 14px 16px;
}

.ghost-btn.cyan {
    border-color: #67e8f9;
    color: #0891b2;
}

.ghost-btn.danger-outline {
    border-color: #fecdd3;
    color: #e11d48;
}

.okc-modal-card {
    width: min(540px, calc(100vw - 32px));
}

.okc-modal-form {
    display: grid;
    gap: 13px;
    padding: 16px;
}

.okc-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.okc-modal-grid .field-wide,
.okc-modal-form .field-wide {
    grid-column: 1 / -1;
}

.okc-toggle-list {
    display: grid;
    gap: 8px;
}

.okc-toggle-list label {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    font-weight: 850;
}

@media (max-width: 1080px) {
    .market-product-row {
        grid-template-columns: minmax(220px, 1fr) minmax(120px, 1fr) minmax(120px, 1fr);
    }
}

@media (max-width: 760px) {
    .market-product-row,
    .fiscal-kpis,
    .okc-modal-grid {
        grid-template-columns: 1fr;
    }

    .fiscal-head {
        align-items: stretch;
        flex-direction: column;
    }

    .fiscal-head .ghost-btn,
    .fiscal-action-row .ghost-btn {
        justify-content: center;
        width: 100%;
    }
}

.compact-toolbar {
    justify-content: flex-start;
}

.segmented-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    background: #fff;
}

.segmented-actions a {
    padding: 9px 13px;
    border-radius: 8px;
    color: var(--admin-muted);
    font-weight: 900;
}

.segmented-actions a.active,
.segmented-actions a:hover {
    color: #fff;
    background: var(--theme);
}

.segmented-actions button {
    border: 0;
    padding: 9px 13px;
    border-radius: 8px;
    color: var(--admin-muted);
    background: transparent;
    font-weight: 900;
    cursor: pointer;
}

.segmented-actions button.active,
.segmented-actions button:hover {
    color: #fff;
    background: var(--theme);
}

.terminal-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 360px;
    gap: 16px;
    min-height: calc(100vh - 150px);
}

.terminal-tables,
.terminal-products,
.terminal-ticket {
    min-width: 0;
    padding: 16px;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .07);
}

.terminal-tables,
.terminal-ticket {
    position: sticky;
    top: 16px;
    align-self: start;
    max-height: calc(100vh - 130px);
    overflow: auto;
}

.terminal-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.terminal-head span {
    display: block;
    color: var(--theme);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.terminal-head strong {
    color: var(--admin-text);
    font-size: 20px;
    line-height: 1.1;
}

.terminal-table {
    display: block;
    width: 100%;
    margin-bottom: 9px;
    padding: 12px;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    color: var(--admin-text);
    background: #f8fafc;
    text-align: left;
    cursor: pointer;
}

.terminal-table strong,
.terminal-table span,
.terminal-table small {
    display: block;
}

.terminal-table span {
    margin: 3px 0 8px;
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: 800;
}

.terminal-table small {
    color: #16a34a;
    font-weight: 900;
}

.terminal-table.busy {
    border-color: #fdba74;
    background: #fff7ed;
}

.terminal-table.busy small {
    color: #c2410c;
}

.terminal-table.is-active {
    border-color: var(--theme);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.terminal-search {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
}

.terminal-search input {
    width: 100%;
    min-height: 46px;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    padding: 0 14px;
    font-weight: 800;
}

.terminal-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.terminal-category-tabs button {
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    padding: 9px 12px;
    color: var(--admin-muted);
    background: #fff;
    font-weight: 900;
    cursor: pointer;
}

.terminal-category-tabs button.active,
.terminal-category-tabs button:hover {
    color: #fff;
    border-color: var(--theme);
    background: var(--theme);
}

.terminal-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
}

.terminal-product {
    position: relative;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 8px;
    min-height: 138px;
    padding: 14px;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    color: var(--admin-text);
    background: linear-gradient(180deg, #fff, #f8fafc);
    text-align: left;
    cursor: pointer;
}

.terminal-product:hover {
    border-color: rgba(37, 99, 235, .45);
    box-shadow: 0 16px 30px rgba(37, 99, 235, .10);
    transform: translateY(-1px);
}

.terminal-product.is-selected {
    border-color: #16a34a;
    background: linear-gradient(180deg, #ecfdf5, #eff6ff);
    box-shadow: 0 16px 34px rgba(22, 163, 74, .16);
}

.terminal-product-thumb {
    display: block;
    width: 56px;
    height: 56px;
    overflow: hidden;
    border-radius: 8px;
    background: #eef2ff;
}

.terminal-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.terminal-product-thumb b {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: #1d4ed8;
    font-size: 22px;
    font-weight: 900;
}

.terminal-selected-count {
    position: absolute;
    top: 10px;
    right: 10px;
    min-width: 32px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: #16a34a;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 10px 20px rgba(22, 163, 74, .26);
}

.terminal-product .terminal-product-meta,
.terminal-product strong,
.terminal-product em {
    display: block;
}

.terminal-product .terminal-product-meta {
    color: var(--theme);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.terminal-product strong {
    margin: 12px 0;
    font-size: 16px;
}

.terminal-product em {
    color: #16a34a;
    font-style: normal;
    font-weight: 900;
}

.terminal-cart {
    display: grid;
    gap: 10px;
    min-height: 180px;
    margin-bottom: 14px;
}

.terminal-cart.empty {
    place-items: center;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    color: var(--admin-muted);
    font-weight: 900;
}

.terminal-cart-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    background: #f8fafc;
}

.terminal-cart-row strong,
.terminal-cart-row span {
    display: block;
}

.terminal-cart-row span {
    margin-top: 3px;
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: 800;
}

.qty-stepper {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.qty-stepper button {
    display: inline-grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: var(--theme);
    font-weight: 900;
    cursor: pointer;
}

.terminal-totals {
    display: grid;
    gap: 8px;
    margin: 14px 0;
    padding: 12px;
    border-radius: 8px;
    background: #0f172a;
    color: #fff;
}

.terminal-totals div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.terminal-totals span {
    color: rgba(255, 255, 255, .72);
    font-weight: 800;
}

.terminal-totals strong {
    color: #fff;
    font-size: 20px;
}

.payment-method-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.payment-method-grid label {
    cursor: pointer;
}

.payment-method-grid input {
    position: absolute;
    opacity: 0;
}

.payment-method-grid span {
    display: grid;
    min-height: 40px;
    place-items: center;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    color: var(--admin-muted);
    font-weight: 900;
}

.payment-method-grid input:checked + span {
    color: #fff;
    border-color: var(--theme);
    background: var(--theme);
}

.resto-table-tile.reserved {
    border-color: rgba(37, 99, 235, .32);
    background: #eff6ff;
}

.table-tile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.table-tile-actions .ghost-btn {
    min-height: 32px;
    padding: 6px 9px;
    font-size: 12px;
}

.category-toolbar {
    align-items: center;
}

.category-toolbar h1 {
    margin-bottom: 3px;
}

.category-toolbar small {
    color: var(--admin-muted);
    font-weight: 700;
}

.category-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.category-admin-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, .06);
}

.category-admin-image {
    display: grid;
    width: 92px;
    height: 92px;
    overflow: hidden;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(135deg, #eff6ff, #ecfdf5);
}

.category-admin-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-admin-image span {
    color: var(--theme);
    font-size: 34px;
    font-weight: 900;
}

.category-admin-body {
    min-width: 0;
}

.category-admin-body strong,
.category-admin-body small,
.category-admin-body p {
    display: block;
}

.category-admin-body strong {
    color: var(--admin-text);
    font-size: 17px;
}

.category-admin-body small,
.category-admin-body p {
    color: var(--admin-muted);
    font-weight: 700;
}

.category-admin-body p {
    margin: 10px 0;
    line-height: 1.45;
}

.category-admin-meta,
.category-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.category-admin-meta span:not(.status-pill) {
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: 900;
}

.category-admin-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
    padding-top: 12px;
    border-top: 1px solid #eef2f7;
}

.category-table-wrap {
    border-radius: 12px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .08);
}

.category-admin-table {
    min-width: 920px;
}

.category-admin-table th {
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.category-admin-table td {
    height: 64px;
    font-weight: 800;
}

.category-admin-table tr {
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.category-admin-table tr:hover td {
    background: #f8fbff;
}

.category-admin-table td strong,
.category-admin-table td small {
    display: block;
}

.category-admin-table td small {
    max-width: 460px;
    margin-top: 4px;
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.4;
}

.category-list-thumb,
.category-list-placeholder {
    width: 54px;
    height: 54px;
    border-radius: 10px;
}

.category-list-thumb {
    display: block;
    object-fit: cover;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .12);
}

.category-list-placeholder {
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #7c5cff, #0ea5e9);
    font-size: 20px;
    font-weight: 950;
}

.category-count-pill {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    color: #0f766e;
    background: #ccfbf1;
    font-size: 12px;
    font-weight: 900;
}

.admin-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 220;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(15, 23, 42, .58);
    backdrop-filter: blur(4px);
}

.admin-modal-backdrop.is-open {
    display: flex;
}

.admin-modal-active {
    overflow: hidden;
}

.admin-modal-card {
    width: min(760px, 100%);
    max-height: min(86vh, 760px);
    overflow: auto;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(15, 23, 42, .32);
}

.admin-modal-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
    border-bottom: 1px solid #e5edf6;
}

.admin-modal-head h2 {
    margin: 4px 0;
    font-size: 24px;
}

.admin-modal-head p {
    margin: 0;
    color: var(--admin-muted);
    font-weight: 700;
    line-height: 1.5;
}

.admin-modal-close {
    display: inline-grid;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    color: var(--admin-text);
    background: #f8fafc;
    font-size: 26px;
    font-weight: 800;
}

.category-modal-form {
    padding: 22px;
}

.category-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.category-modal-grid .field-wide {
    grid-column: 1 / -1;
}

.admin-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #eef2f7;
}

.product-toolbar {
    align-items: flex-end;
}

.product-toolbar small {
    display: block;
    margin-top: 4px;
    color: var(--admin-muted);
    font-weight: 800;
}

.product-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.warning-btn {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    border: 1px solid #facc15;
    border-radius: 8px;
    color: #111827;
    background: #facc15;
    box-shadow: 0 12px 26px rgba(234, 179, 8, .20);
    font-weight: 900;
}

.product-filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(220px, 280px);
    gap: 12px;
    align-items: end;
    padding: 16px;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--admin-shadow);
}

.product-search {
    display: grid;
    grid-template-columns: 1fr 44px;
    align-items: stretch;
}

.product-search input {
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--admin-border);
    border-right: 0;
    border-radius: 8px 0 0 8px;
    color: var(--admin-text);
    background: #fff;
    font: inherit;
    font-weight: 800;
}

.product-search span {
    display: grid;
    place-items: center;
    border: 1px solid var(--admin-border);
    border-radius: 0 8px 8px 0;
    color: var(--theme);
    background: #f8fafc;
    font-size: 21px;
    font-weight: 900;
}

.product-table-wrap {
    border-radius: 8px;
    box-shadow: var(--admin-shadow);
}

.product-admin-table {
    min-width: 980px;
}

.product-admin-table th {
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.product-admin-table td {
    padding-top: 10px;
    padding-bottom: 10px;
}

.product-admin-table tr:hover td,
.stock-admin-table tr:hover td {
    background: #f8fbff;
}

.product-list-thumb,
.product-list-placeholder {
    width: 52px;
    height: 52px;
    border-radius: 8px;
}

.product-list-thumb {
    display: block;
    object-fit: cover;
}

.product-list-placeholder {
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #14b8a6);
    font-weight: 900;
}

.product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 6px;
}

.product-badge {
    display: inline-flex;
    min-height: 22px;
    align-items: center;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
}

.product-badge.hot {
    color: #b45309;
    background: #fff7ed;
}

.product-badge.new,
.product-badge.green {
    color: #047857;
    background: #d1fae5;
}

.product-badge.campaign {
    color: #be123c;
    background: #ffe4e6;
}

.product-badge.chef {
    color: #0369a1;
    background: #e0f2fe;
}

.product-badge.spicy {
    color: #c2410c;
    background: #ffedd5;
}

.soft-pill {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    color: #64748b;
    background: #f1f5f9;
    font-size: 12px;
    font-weight: 900;
}

.product-price {
    display: block;
    color: #2563eb;
    font-size: 15px;
}

.discount-price {
    display: block;
    color: #ef4444;
    font-weight: 900;
    text-decoration: line-through;
}

.icon-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.icon-actions form {
    margin: 0;
}

.icon-btn {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    color: #2563eb;
    background: #fff;
    font-size: 16px;
    font-weight: 900;
    text-decoration: none;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.icon-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, .16);
    background: #eff6ff;
}

.icon-btn.delete {
    border-color: #fecdd3;
    color: #e11d48;
}

.icon-btn.toggle {
    border-color: #dbe4f0;
    color: #475569;
}

.product-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--admin-border);
    border-top: 0;
    border-radius: 0 0 8px 8px;
    background: #fff;
    box-shadow: var(--admin-shadow);
}

.product-pagination > span,
.product-pagination label {
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: 900;
}

.product-pagination select {
    min-height: 34px;
    margin: 0 4px;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: #fff;
    font-weight: 900;
}

.product-page-buttons {
    display: flex;
    gap: 5px;
}

.product-page-buttons button {
    min-width: 34px;
    height: 34px;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    color: #2563eb;
    background: #fff;
    font-weight: 900;
}

.product-page-buttons button.is-active {
    border-color: #2563eb;
    color: #fff;
    background: #2563eb;
}

.product-page-buttons button:disabled {
    color: #94a3b8;
    background: #f8fafc;
}

.product-modal-card {
    width: min(1060px, 100%);
}

.product-modal-form,
.product-modal-images {
    padding: 22px;
}

.product-modal-images {
    border-top: 1px solid #eef2f7;
    background: #fbfdff;
}

.product-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.product-modal-grid .field-wide {
    grid-column: 1 / -1;
}

.product-advanced {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: #f8fafc;
}

.product-advanced summary {
    cursor: pointer;
    color: var(--admin-text);
    font-weight: 900;
}

.product-advanced .product-modal-grid {
    margin-top: 14px;
}

.product-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.bulk-price-modal {
    width: min(620px, 100%);
}

.admin-modal-head.warm {
    background: #fffbeb;
}

.bulk-price-form {
    display: grid;
    gap: 16px;
    padding: 22px;
}

.bulk-direction {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    border: 1px solid #f43f5e;
    border-radius: 8px;
}

.bulk-direction label {
    cursor: pointer;
}

.bulk-direction input {
    position: absolute;
    opacity: 0;
}

.bulk-direction span {
    display: grid;
    min-height: 44px;
    place-items: center;
    color: #e11d48;
    background: #fff;
    font-weight: 900;
}

.bulk-direction input:checked + span {
    color: #fff;
    background: #168f52;
}

.percent-field {
    position: relative;
}

.percent-field input {
    padding-right: 52px;
    text-align: center;
    font-weight: 900;
}

.percent-field > span {
    position: absolute;
    right: 1px;
    bottom: 1px;
    display: grid;
    width: 48px;
    height: 42px;
    place-items: center;
    border-left: 1px solid var(--admin-border);
    color: var(--admin-text);
    background: #f8fafc;
    font-weight: 900;
}

.bulk-percent-buttons {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.bulk-percent-buttons button {
    min-height: 38px;
    border: 1px solid #94a3b8;
    border-radius: 8px;
    color: #64748b;
    background: #fff;
    font-weight: 900;
    transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
}

.bulk-percent-buttons button:hover {
    transform: translateY(-1px);
    border-color: #2563eb;
    color: #2563eb;
}

.bulk-percent-buttons button.is-active {
    border-color: #168f52;
    color: #fff;
    background: #168f52;
    box-shadow: 0 12px 24px rgba(22, 143, 82, .22);
}

.bulk-percent-buttons.is-decrease button.is-active {
    border-color: #e11d48;
    background: #e11d48;
    box-shadow: 0 12px 24px rgba(225, 29, 72, .22);
}

.bulk-warning {
    padding: 14px;
    border: 1px solid #facc15;
    border-radius: 8px;
    color: #92400e;
    background: #fffbeb;
    font-weight: 800;
    line-height: 1.5;
}

.extras-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 22px;
}

.extras-page-head h1 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--admin-text);
    font-size: 26px;
}

.extras-page-head h1 span {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 2px solid currentColor;
    border-radius: 999px;
    font-size: 20px;
    line-height: 1;
}

.purple-btn {
    border-color: #7c5cff;
    color: #fff;
    background: #7c5cff;
    box-shadow: 0 14px 28px rgba(124, 92, 255, .22);
}

.extras-group-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
}

.extra-admin-card {
    overflow: hidden;
    border: 1px solid var(--admin-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.extra-admin-card:hover {
    transform: translateY(-2px);
    border-color: #c7d2fe;
    box-shadow: 0 20px 46px rgba(15, 23, 42, .12);
}

.extra-admin-card header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px;
    border-bottom: 1px solid #e5edf6;
}

.extra-admin-card header strong {
    display: block;
    color: var(--admin-text);
    font-size: 17px;
}

.extra-admin-card header small {
    display: block;
    margin-top: 5px;
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: 800;
}

.extra-admin-card .icon-actions {
    flex: 0 0 auto;
}

.extra-admin-limit {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 20px 4px;
    color: #334155;
    font-weight: 800;
}

.extra-admin-limit span {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 0 9px;
    border-radius: 999px;
    background: #f8fafc;
}

.extra-admin-options {
    display: grid;
    gap: 4px;
    padding: 10px 20px 18px;
}

.extra-admin-options div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    min-height: 44px;
    color: #020617;
    font-weight: 800;
}

.extra-admin-options strong {
    color: #020617;
}

.extra-admin-options p {
    margin: 0;
    color: var(--admin-muted);
    font-weight: 800;
}

.extra-modal-card {
    width: min(880px, 100%);
}

.compact-modal-head {
    align-items: center;
    padding: 18px;
}

.compact-modal-head h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--admin-text);
    font-size: 22px;
}

.extra-modal-form {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.extra-modal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
}

.extra-option-editor {
    display: grid;
    gap: 10px;
    margin-top: 2px;
    padding-top: 16px;
    border-top: 1px solid #dbe4f0;
}

.extra-option-title {
    color: #64748b;
    font-weight: 900;
}

.extra-option-rows {
    display: grid;
    gap: 10px;
}

.extra-option-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 44px;
    gap: 10px;
    align-items: end;
    padding: 10px;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    background: #fff;
}

.extra-option-row:focus-within {
    border-color: #7c5cff;
    box-shadow: 0 0 0 3px rgba(124, 92, 255, .10);
}

.add-extra-option-btn {
    justify-self: start;
}

.stock-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.stock-page-head h1 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--admin-text);
    font-size: 28px;
}

.stock-cube-icon {
    color: #0f172a;
    font-size: 26px;
}

.stock-search-panel {
    display: flex;
    gap: 8px;
    align-items: center;
}

.stock-search-panel input {
    width: min(260px, 42vw);
    min-height: 46px;
    padding: 0 15px;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: #fff;
    color: var(--admin-text);
    font: inherit;
    font-weight: 800;
}

.stock-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(190px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.stock-summary-card {
    min-height: 104px;
    padding: 22px 26px;
    border: 1px solid var(--admin-border);
    border-left: 4px solid #2563eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .07);
}

.stock-summary-card span {
    display: block;
    color: #64748b;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.stock-summary-card strong {
    display: block;
    margin-top: 8px;
    color: var(--admin-text);
    font-size: 32px;
    line-height: 1;
}

.stock-summary-card.low {
    border-left-color: #f59e0b;
}

.stock-summary-card.low strong {
    color: #f59e0b;
}

.stock-summary-card.depleted {
    border-left-color: #ef4444;
}

.stock-summary-card.depleted strong {
    color: #e11d48;
}

.stock-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 0;
    border-bottom: 1px solid #dbe4f0;
}

.stock-tabs button {
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-bottom: 0;
    color: #2563eb;
    background: transparent;
    font-weight: 850;
}

.stock-tabs button.is-active {
    border-color: #dbe4f0;
    border-radius: 8px 8px 0 0;
    color: #111827;
    background: #fff;
}

.stock-tabs span {
    display: inline-grid;
    min-width: 22px;
    height: 22px;
    margin-left: 4px;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: #f59e0b;
    font-size: 12px;
    font-weight: 900;
}

.stock-tabs button[data-stock-filter="depleted"] span {
    background: #e11d48;
}

.stock-table-wrap {
    border-radius: 0 0 8px 8px;
    box-shadow: var(--admin-shadow);
}

.stock-admin-table {
    min-width: 900px;
}

.stock-admin-table th {
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.stock-admin-table td {
    height: 56px;
    font-weight: 800;
}

.stock-admin-table tr:nth-child(odd) td {
    background: #fff;
}

.stock-admin-table tr:nth-child(even) td {
    background: #f7f7f8;
}

.mini-status {
    display: inline-flex;
    min-height: 22px;
    align-items: center;
    padding: 0 9px;
    border-radius: 999px;
    color: #64748b;
    background: #f1f5f9;
    font-size: 12px;
    font-weight: 900;
}

.mini-status.active {
    color: #047857;
    background: #d1fae5;
}

.stock-state {
    display: inline-flex;
    min-height: 25px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    color: #fff;
    background: #64748b;
    font-size: 12px;
    font-weight: 900;
}

.stock-state.tracked {
    background: #168f52;
}

.stock-state.low {
    color: #111827;
    background: #facc15;
}

.stock-state.depleted {
    background: #e11d48;
}

.stock-edit-cell {
    width: 72px;
    text-align: center;
}

.stock-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--admin-border);
    border-top: 0;
    border-radius: 0 0 8px 8px;
    background: #fff;
    box-shadow: var(--admin-shadow);
}

.stock-table-footer span {
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: 900;
}

.stock-modal-card {
    width: min(360px, 100%);
}

.stock-modal-form {
    display: grid;
    gap: 14px;
    padding: 20px;
}

.switch-line {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #334155;
    font-weight: 850;
}

.switch-line input {
    position: absolute;
    opacity: 0;
}

.switch-line span {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 18px;
    border-radius: 999px;
    background: #e5e7eb;
    box-shadow: inset 0 0 0 1px #cbd5e1;
}

.switch-line span::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #fff;
    transition: transform .18s ease;
}

.switch-line input:checked + span {
    background: #2f7df6;
    box-shadow: inset 0 0 0 1px #2f7df6;
}

.switch-line input:checked + span::after {
    transform: translateX(16px);
}

.table-management-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.table-management-head h1 {
    margin: 0;
    color: var(--admin-text);
    font-size: 30px;
    letter-spacing: 0;
}

.table-management-head p {
    margin: 6px 0 0;
    color: var(--admin-muted);
    font-weight: 800;
}

.table-head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.table-floor-add-btn {
    min-height: 42px;
    border-color: #94a3b8;
    color: #475569;
    background: #fff;
}

.table-floor-add-btn span {
    color: #2563eb;
    font-weight: 900;
}

.table-floor-tabs-v2 {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.table-floor-tabs-v2 button {
    min-height: 40px;
    padding: 0 17px;
    border: 1px solid #94a3b8;
    border-radius: 9px;
    color: #334155;
    background: #fff;
    font-weight: 900;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}

.table-floor-tabs-v2 button:hover {
    transform: translateY(-1px);
    border-color: #7c5cff;
    box-shadow: 0 10px 22px rgba(124, 92, 255, .14);
}

.table-floor-tabs-v2 button.is-active {
    border-color: #7c5cff;
    color: #fff;
    background: #7c5cff;
}

.table-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(174px, 1fr));
    gap: 18px;
}

.table-admin-card {
    position: relative;
    display: grid;
    min-height: 150px;
    place-items: center;
    overflow: hidden;
    padding: 20px 14px;
    border: 2px solid #8ee5ce;
    border-radius: 14px;
    color: #0f172a;
    background:
        radial-gradient(circle at 80% 0%, rgba(255,255,255,.85), transparent 32%),
        linear-gradient(135deg, #e0f7f3, #d3f1ec);
    text-align: center;
    box-shadow: 0 16px 34px rgba(15, 23, 42, .08);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.table-admin-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 48px rgba(15, 23, 42, .14);
}

.table-admin-card.is-busy {
    border-color: #f2a7ad;
    background:
        radial-gradient(circle at 80% 0%, rgba(255,255,255,.82), transparent 32%),
        linear-gradient(135deg, #f7e4e8, #f1dadd);
}

.table-admin-card.is-reserved {
    border-color: #fde68a;
    background:
        radial-gradient(circle at 80% 0%, rgba(255,255,255,.82), transparent 32%),
        linear-gradient(135deg, #fff7d6, #fef3c7);
}

.table-admin-card strong {
    position: relative;
    z-index: 1;
    display: block;
    color: #111827;
    font-size: 28px;
    line-height: 1;
}

.table-admin-card span {
    position: relative;
    z-index: 1;
    color: #047857;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.table-admin-card.is-busy span {
    color: #e11d48;
}

.table-admin-card.is-reserved span {
    color: #a16207;
}

.table-admin-card small {
    position: relative;
    z-index: 1;
    color: #64748b;
    font-weight: 850;
}

.table-admin-card em {
    position: relative;
    z-index: 1;
    color: #e11d48;
    font-style: normal;
    font-size: 17px;
    font-weight: 950;
}

.table-shape-mark {
    position: absolute;
    inset: auto auto 12px 12px;
    width: 30px;
    height: 30px;
    border: 2px solid rgba(15, 23, 42, .10);
    border-radius: 8px;
    opacity: .75;
}

.shape-round .table-shape-mark {
    border-radius: 999px;
}

.shape-rectangle .table-shape-mark {
    width: 42px;
    border-radius: 8px;
}

.table-card-edit {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid rgba(37, 99, 235, .24);
    border-radius: 8px;
    color: #2563eb;
    background: rgba(255,255,255,.78);
    text-decoration: none;
    font-weight: 950;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .16s ease, transform .16s ease, background .16s ease;
}

.table-admin-card:hover .table-card-edit {
    opacity: 1;
    transform: translateY(0);
}

.table-card-edit:hover {
    background: #fff;
}

.table-modal-card {
    width: min(560px, 100%);
}

.floor-modal-card {
    width: min(430px, 100%);
}

.table-modal-form {
    display: grid;
    gap: 14px;
    padding: 20px;
}

.table-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.table-delete-strip {
    display: flex;
    justify-content: flex-end;
    padding: 0 20px 20px;
}

.form-panel-head,
.settings-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

.form-panel-head h2,
.settings-section-head h2 {
    margin-bottom: 4px;
}

.form-panel-head p,
.settings-section-head p,
.form-help,
.edit-image-manager p {
    margin: 0;
    color: var(--admin-muted);
    font-size: 13px;
    line-height: 1.5;
}

.smart-form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
}

.smart-form-grid .field-wide {
    grid-column: 1 / -1;
}

.toggle-line {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    font-weight: 850;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.settings-card form,
.settings-block {
    display: grid;
    gap: 18px;
}

.settings-block {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--admin-border);
}

.settings-block:last-of-type {
    border-bottom: 0;
}

.homepage-settings-card .field-hint {
    align-self: end;
    margin: 0;
    padding: 13px 14px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    color: #475569;
}

.home-toggle-grid {
    margin-bottom: 18px;
}

.update-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 180px;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #0f172a, #0f766e);
    color: white;
}

.update-hero h2,
.update-hero p {
    margin: 6px 0 0;
    color: inherit;
}

.update-hero p {
    color: rgba(255, 255, 255, .78);
}

.update-version-box {
    padding: 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
}

.update-version-box span {
    display: block;
    color: rgba(255, 255, 255, .70);
    font-size: 12px;
    font-weight: 800;
}

.update-version-box strong {
    display: block;
    margin-top: 8px;
    color: white;
    font-size: 24px;
}

.update-package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.update-package-card {
    padding: 18px;
}

.update-package-card h2 {
    margin: 12px 0 8px;
    font-size: 20px;
}

.update-package-card p {
    min-height: 42px;
    color: var(--muted);
}

.update-package-head,
.update-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.update-package-head span {
    padding: 7px 10px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.update-package-head strong {
    color: var(--theme);
}

.update-meta {
    flex-wrap: wrap;
    margin: 14px 0;
    color: #64748b;
    font-size: 13px;
}

.update-empty {
    grid-column: 1 / -1;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.module-toggle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.module-toggle-card {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 12px;
    align-items: start;
    padding: 14px;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.module-toggle-card:has(input:checked) {
    border-color: rgba(37, 99, 235, .42);
    background: #eff6ff;
}

.module-toggle-card.is-locked {
    opacity: .72;
    cursor: not-allowed;
    background: #f8fafc;
}

.module-toggle-card.is-locked strong::after {
    content: "Kilitli";
    display: inline-flex;
    margin-left: 8px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;
    font-size: 11px;
    font-weight: 800;
}

.module-toggle-card input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.module-toggle-card strong,
.module-toggle-card small {
    display: block;
}

.module-toggle-card small {
    margin-top: 4px;
    color: var(--admin-muted);
    line-height: 1.45;
}

.edit-image-manager {
    display: grid;
    gap: 14px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--admin-border);
}

.upload-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
    padding: 12px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
}

.compact-image-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.image-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.image-actions form,
.actions-cell form {
    margin: 0;
}

.admin-body .stat {
    color: white;
    border: 0;
}

.admin-body .stat strong,
.admin-body .stat small,
.admin-body .stat h2 {
    position: relative;
    z-index: 1;
    color: inherit;
}

.admin-body .stat small {
    opacity: .78;
}

.admin-body .stat::after {
    background: rgba(255, 255, 255, .16);
}

.stat-tone-1 { background: linear-gradient(135deg, #2563eb, #0f766e); }
.stat-tone-2 { background: linear-gradient(135deg, #7c3aed, #db2777); }
.stat-tone-3 { background: linear-gradient(135deg, #0f766e, #65a30d); }
.stat-tone-4 { background: linear-gradient(135deg, #ea580c, #dc2626); }
.stat-tone-5 { background: linear-gradient(135deg, #0891b2, #2563eb); }
.stat-tone-6 { background: linear-gradient(135deg, #475569, #111827); }

.admin-body .stat.card.stat-tone-1 { background: linear-gradient(135deg, #2563eb, #0f766e) !important; }
.admin-body .stat.card.stat-tone-2 { background: linear-gradient(135deg, #7c3aed, #db2777) !important; }
.admin-body .stat.card.stat-tone-3 { background: linear-gradient(135deg, #0f766e, #65a30d) !important; }
.admin-body .stat.card.stat-tone-4 { background: linear-gradient(135deg, #ea580c, #dc2626) !important; }
.admin-body .stat.card.stat-tone-5 { background: linear-gradient(135deg, #0891b2, #2563eb) !important; }
.admin-body .stat.card.stat-tone-6 { background: linear-gradient(135deg, #475569, #111827) !important; }

.admin-body .stat.card,
.admin-body .stat.card strong,
.admin-body .stat.card h2,
.admin-body .stat.card small {
    color: #fff !important;
}

.admin-body .stat.card small {
    opacity: .82;
}

.admin-body .order-board {
    grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
    align-items: start;
}

.admin-body .order-card {
    position: relative;
    display: grid;
    gap: 12px;
    padding: 16px;
    overflow: hidden;
}

.admin-body .order-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: #cbd5e1;
}

.admin-body .order-card.row-pending::before {
    background: #f97316;
}

.admin-body .order-card-head,
.admin-body .order-card-foot {
    align-items: flex-start;
}

.admin-body .order-card-head strong {
    display: block;
    margin-bottom: 4px;
}

.admin-body .order-card-foot {
    display: grid;
    grid-template-columns: minmax(92px, auto) minmax(220px, 1fr);
    align-items: end;
    gap: 10px;
}

.admin-body .order-card-foot .inline-form {
    display: grid;
    grid-template-columns: minmax(130px, 1fr) minmax(112px, auto);
    gap: 8px;
}

.admin-body .order-card-foot > .ghost-btn {
    justify-content: center;
    min-width: 0;
    white-space: normal;
}

.admin-body .order-lines div {
    min-width: 0;
}

.admin-body .order-lines span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.admin-body .order-lines strong {
    white-space: nowrap;
}

.category-editor-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 18px;
    align-items: start;
}

.category-editor-main {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 14px;
}

.category-editor-main .field-wide {
    grid-column: 1 / -1;
}

.category-editor-side {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: #f8fafc;
}

.category-editor-side .primary-btn {
    width: 100%;
}

.admin-body .order-customer {
    margin: 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f8fafc;
}

.login-error {
    margin-bottom: 14px;
    padding: 12px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #b91c1c;
    background: #fef2f2;
    font-weight: 800;
}

.receipt-page {
    background: #f3f4f6;
    color: #111827;
}

.receipt {
    width: min(760px, calc(100% - 24px));
    margin: 24px auto;
    padding: 26px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .10);
}

.receipt header {
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 2px solid #111827;
}

.receipt h1 {
    margin: 0 0 6px;
    font-size: 28px;
}

.receipt p {
    margin: 4px 0;
    color: #4b5563;
}

.receipt-order {
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
}

.receipt-order h2 {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 10px;
    font-size: 16px;
}

.receipt-order h2 span {
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
}

.receipt-line {
    display: grid;
    grid-template-columns: 1fr 82px 120px;
    gap: 10px;
    padding: 8px 0;
}

.receipt-line b,
.receipt-line strong {
    text-align: right;
}

.receipt-note {
    padding: 10px;
    border-radius: 8px;
    background: #fffbeb;
}

.receipt footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    font-size: 22px;
    font-weight: 900;
}

.receipt .no-print {
    margin-top: 18px;
    width: 100%;
}

.receipt-actions {
    display: flex;
    gap: 10px;
}

.receipt-actions .primary-btn,
.receipt-actions .ghost-btn {
    flex: 1;
}

.receipt-thermal .receipt {
    width: 80mm;
    padding: 10px;
    font-size: 12px;
}

.receipt-thermal .receipt h1 {
    font-size: 18px;
}

.receipt-thermal .receipt-line {
    grid-template-columns: 1fr 42px 70px;
    gap: 6px;
}

.order-list-head,
.order-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.order-list-head h1,
.order-detail-head h1 {
    margin: 0;
    color: #0f172a;
    font-size: 30px;
    line-height: 1.1;
}

.order-status-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.order-status-tabs a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    padding: 0 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #475569;
    background: #fff;
    font-weight: 900;
    text-decoration: none;
}

.order-status-tabs a:hover,
.order-status-tabs a.is-active {
    border-color: #7c5cff;
    color: #fff;
    background: #7c5cff;
    box-shadow: 0 14px 28px rgba(124, 92, 255, .22);
}

.order-list-wrap {
    overflow: auto;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--admin-shadow);
}

.order-list-table {
    min-width: 980px;
}

.order-list-table th {
    color: #64748b;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.order-list-table tr:not(:first-child) {
    cursor: pointer;
}

.order-list-table tr:hover td {
    background: #f8fbff;
}

.table-no-pill,
.soft-pill,
.order-pill,
.item-status-pill {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
}

.table-no-pill,
.order-pill.dark {
    color: #fff;
    background: #111827;
}

.soft-pill {
    color: #64748b;
    background: #f1f5f9;
}

.status-pending,
.status-preparing,
.status-ready,
.status-served,
.status-completed,
.status-cancelled,
.payment-paid,
.payment-unpaid {
    color: #fff;
}

.status-pending {
    background: #2563eb;
}

.status-preparing {
    color: #713f12;
    background: #facc15;
}

.status-ready,
.payment-paid {
    background: #16a34a;
}

.status-served {
    background: #0f766e;
}

.status-completed {
    background: #64748b;
}

.status-cancelled,
.payment-unpaid {
    background: #e11d48;
}

.order-back-link {
    display: inline-flex;
    margin-bottom: 8px;
    color: #64748b;
    font-weight: 800;
    text-decoration: none;
}

.order-detail-badges,
.order-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.order-detail-actions {
    justify-content: flex-end;
}

.success-btn,
.danger-btn,
.blue-outline,
.purple-btn,
.full-btn {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border-radius: 8px;
    font-weight: 950;
    text-decoration: none;
}

.success-btn {
    border: 1px solid #16a34a;
    color: #fff;
    background: #15803d;
}

.danger-btn {
    border: 1px solid #e11d48;
    color: #fff;
    background: #e11d48;
}

.blue-outline {
    border-color: #2563eb !important;
    color: #2563eb !important;
    background: #fff !important;
}

.purple-btn {
    border: 1px solid #7c5cff !important;
    color: #fff !important;
    background: #7c5cff !important;
}

.full-btn {
    width: 100%;
}

.order-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
    align-items: start;
}

.order-detail-card {
    overflow: hidden;
    border: 1px solid var(--admin-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .08);
}

.order-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid #e5edf6;
}

.order-section-head h2,
.order-detail-card h2 {
    margin: 0;
    color: #0f172a;
    font-size: 20px;
}

.order-detail-card > h2 {
    padding: 18px 18px 12px;
}

.order-items-wrap {
    border-radius: 0;
    box-shadow: none;
}

.order-items-table th {
    color: #64748b;
    font-size: 12px;
    text-transform: uppercase;
}

.order-items-table td {
    vertical-align: middle;
}

.order-items-table td:first-child strong {
    display: block;
    color: #020617;
}

.order-items-table td:first-child small {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-weight: 700;
}

.item-status-pill {
    color: #713f12;
    background: #facc15;
}

.inline-status-form {
    margin: 0;
}

.item-status-pending {
    color: #713f12;
    background: #facc15;
}

.item-status-preparing {
    color: #fff;
    background: #2563eb;
}

.item-status-ready {
    color: #fff;
    background: #16a34a;
}

.item-status-served {
    color: #fff;
    background: #64748b;
}

.icon-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.icon-actions form {
    margin: 0;
}

.icon-btn {
    display: inline-grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 8px;
    background: #fff;
    font-size: 18px;
    font-weight: 950;
}

.icon-btn.heat {
    border: 1px solid #f59e0b;
    color: #d97706;
}

.icon-btn.item-progress-action {
    cursor: pointer;
}

.icon-btn.item-progress-action:hover {
    color: #fff;
    background: #f59e0b;
}

.icon-btn.item-progress-action:disabled {
    border-color: #cbd5e1;
    color: #94a3b8;
    background: #f8fafc;
    cursor: default;
}

.icon-btn.delete {
    border: 1px solid #f43f5e;
    color: #e11d48;
}

.order-side {
    display: grid;
    gap: 14px;
}

.order-summary-line,
.order-total-line {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 18px;
    color: #334155;
    font-size: 17px;
}

.order-summary-line strong,
.order-total-line strong {
    color: #020617;
}

.order-detail-card hr {
    margin: 12px 18px;
    border: 0;
    border-top: 1px solid #cbd5e1;
}

.order-total-line {
    padding-top: 14px;
    padding-bottom: 18px;
    font-size: 24px;
    font-weight: 950;
}

.order-print-card {
    padding: 16px;
}

.compact-modal-head {
    align-items: center;
    padding: 14px 18px;
}

.compact-modal-head h2 {
    margin: 0;
    font-size: 22px;
}

.payment-modal-card {
    width: min(720px, 100%);
}

.payment-modal-form,
.move-modal-form {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.payment-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    text-align: center;
}

.payment-metrics div {
    padding: 10px;
    border-radius: 8px;
    background: #f8fafc;
}

.payment-metrics span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.payment-metrics strong {
    display: block;
    margin-top: 4px;
    color: #0f172a;
    font-size: 18px;
}

.payment-metrics .discount-preview {
    color: #16a34a;
}

.payment-metrics .payable-preview {
    color: #2563eb;
    font-size: 24px;
}

.percent-field,
.split-field {
    position: relative;
}

.percent-field input,
.split-field input {
    padding-right: 64px;
}

.percent-field > span,
.split-field > span {
    position: absolute;
    right: 0;
    bottom: 0;
    display: grid;
    width: 58px;
    height: 42px;
    place-items: center;
    border-left: 1px solid #dbe4f0;
    color: #334155;
    font-weight: 900;
}

.order-payment-methods {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.order-payment-methods label {
    cursor: pointer;
}

.order-payment-methods input {
    position: absolute;
    opacity: 0;
}

.order-payment-methods span {
    display: grid;
    min-height: 52px;
    place-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #2563eb;
    background: #fff;
    font-size: 13px;
    font-weight: 950;
    text-align: center;
}

.order-payment-methods input:checked + span {
    border-color: #16a34a;
    color: #15803d;
    background: #f0fdf4;
}

.muted-toggle {
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #64748b;
    background: #f8fafc;
}

.product-payment-toggle {
    cursor: pointer;
}

.product-payment-list {
    display: none;
    max-height: 220px;
    overflow: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}

.product-payment-list.is-open {
    display: grid;
}

.product-payment-row {
    display: grid;
    grid-template-columns: auto 1fr 72px;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #eef2f7;
}

.product-payment-row:last-child {
    border-bottom: 0;
}

.product-payment-row span {
    display: grid;
    gap: 2px;
}

.product-payment-row small {
    color: #64748b;
    font-weight: 800;
}

.product-payment-row input[type="number"] {
    min-height: 36px;
    padding: 0 8px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-weight: 900;
}

.product-payment-row.is-paid {
    opacity: .55;
}

.move-modal-card,
.small-action-modal {
    width: min(560px, 100%);
}

.add-product-modal-card {
    width: min(760px, 100%);
}

.add-product-modal-body {
    display: grid;
    gap: 12px;
    padding: 14px;
}

.compact-search-field {
    margin: 0;
}

.add-product-category-list {
    max-height: min(62vh, 560px);
    overflow: auto;
    padding-right: 6px;
}

.add-product-category {
    margin-bottom: 12px;
}

.add-product-category h3 {
    margin: 0 0 8px;
    color: #2563eb;
    font-size: 15px;
}

.add-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.add-product-card {
    margin: 0;
}

.add-product-card button {
    display: grid;
    width: 100%;
    min-height: 116px;
    justify-items: center;
    gap: 5px;
    padding: 10px;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    color: #0f172a;
    background: #fff;
    box-shadow: 0 6px 14px rgba(15, 23, 42, .05);
    cursor: pointer;
}

.add-product-card button:hover {
    border-color: #7c5cff;
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(15, 23, 42, .10);
}

.add-product-card button:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.add-product-card img,
.add-product-placeholder {
    width: 46px;
    height: 46px;
    border-radius: 8px;
}

.add-product-card img {
    object-fit: cover;
}

.add-product-placeholder {
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #14b8a6);
    font-weight: 950;
}

.add-product-card strong {
    font-size: 13px;
    line-height: 1.25;
    text-align: center;
}

.add-product-card b {
    color: #2563eb;
    font-size: 13px;
}

.add-product-card small {
    color: #64748b;
    font-weight: 800;
}

.create-order-modal-card {
    width: min(680px, 100%);
}

.create-order-type-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.create-order-type-grid label {
    cursor: pointer;
}

.create-order-type-grid input {
    position: absolute;
    opacity: 0;
}

.create-order-type-grid span {
    display: grid;
    min-height: 46px;
    place-items: center;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    color: #334155;
    background: #fff;
    font-weight: 950;
}

.create-order-type-grid input:checked + span {
    border-color: #7c5cff;
    color: #fff;
    background: #7c5cff;
    box-shadow: 0 14px 26px rgba(124, 92, 255, .20);
}

.manual-customer-field.is-soft-required input {
    background: #fff;
}

.kitchen-fullscreen {
    min-height: 100vh;
    margin: 0;
    color: #0f172a;
    background: #fff;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.kitchen-full-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 8px;
    color: #fff;
    background: #e53148;
    box-shadow: 0 10px 20px rgba(229, 49, 72, .22);
}

.kitchen-brand {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 14px;
}

.kitchen-brand strong {
    font-weight: 950;
}

.kitchen-brand span {
    opacity: .88;
    font-size: 12px;
}

.kitchen-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.kitchen-top-pill,
.kitchen-icon-btn,
.kitchen-panel-link {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 7px;
    color: #e53148;
    background: #fff;
    font-size: 12px;
    font-weight: 950;
    text-decoration: none;
}

.kitchen-top-pill {
    padding: 0 8px;
}

.kitchen-icon-btn {
    width: 30px;
    padding: 0;
    cursor: pointer;
}

.kitchen-panel-link {
    padding: 0 10px;
}

.kitchen-full-main {
    padding: 12px 4px 40px;
}

.kitchen-ticket-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 328px));
    gap: 12px;
    align-items: start;
}

.kitchen-full-ticket {
    overflow: hidden;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.kitchen-full-ticket.is-urgent {
    border-color: #e11d48;
    box-shadow: 0 14px 32px rgba(225, 29, 72, .16);
}

.kitchen-full-ticket header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 12px 8px;
    border-bottom: 1px solid #e5e7eb;
}

.kitchen-full-ticket header strong,
.kitchen-full-ticket header span {
    display: block;
}

.kitchen-full-ticket header strong {
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 950;
}

.kitchen-full-ticket header span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.kitchen-full-ticket header b {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    padding: 0 8px;
    border-radius: 8px;
    color: #fff;
    background: #e53148;
    font-size: 12px;
}

.kitchen-ticket-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 0 12px 10px;
    color: #64748b;
    font-size: 12px;
    font-weight: 850;
}

.kitchen-full-items {
    display: grid;
    gap: 8px;
    padding: 10px 12px;
}

.kitchen-full-items div {
    display: grid;
    grid-template-columns: 30px 1fr 30px;
    gap: 8px;
    align-items: center;
}

.kitchen-full-items b,
.kitchen-full-items em {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 7px;
    font-style: normal;
    font-weight: 950;
}

.kitchen-full-items b {
    color: #fff;
    background: #2563eb;
}

.kitchen-full-items span {
    font-size: 13px;
    font-weight: 950;
}

.kitchen-full-items small {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-weight: 700;
}

.kitchen-full-items em {
    color: #111827;
    background: #facc15;
}

.kitchen-full-note {
    margin: 0 12px 10px;
    padding: 8px;
    border-radius: 7px;
    color: #92400e;
    background: #fffbeb;
    font-size: 12px;
    font-weight: 800;
}

.kitchen-full-ticket footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 10px 12px;
    border-top: 1px solid #e5e7eb;
}

.kitchen-full-ticket footer form {
    margin: 0;
}

.kitchen-prep-btn,
.kitchen-ready-btn,
.kitchen-served-label {
    display: inline-flex;
    width: 100%;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 950;
}

.kitchen-prep-btn {
    border: 1px solid #f59e0b;
    color: #f59e0b;
    background: #fff;
}

.kitchen-ready-btn {
    border: 1px solid #15803d;
    color: #fff;
    background: #15803d;
}

.kitchen-served-label {
    grid-column: 1 / -1;
    color: #047857;
    background: #d1fae5;
}

.kitchen-full-empty {
    display: grid;
    gap: 6px;
    width: min(520px, calc(100% - 24px));
    margin: 80px auto;
    padding: 28px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    text-align: center;
}

.kitchen-full-empty strong {
    font-size: 20px;
}

.kitchen-full-empty span {
    color: #64748b;
    font-weight: 800;
}

.reservation-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.reservation-page-head h1 {
    margin: 0;
    color: #0f172a;
    font-size: 26px;
}

.reservation-page-head p {
    margin: 6px 0 0;
    color: #64748b;
    font-weight: 800;
}

.reservation-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.reservation-filter-bar input[type="date"] {
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    color: #0f172a;
    background: #fff;
    font-weight: 900;
}

.reservation-range-tabs {
    display: flex;
    gap: 6px;
    padding: 3px;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    background: #fff;
}

.reservation-range-tabs a {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 0 10px;
    border-radius: 6px;
    color: #475569;
    font-size: 12px;
    font-weight: 950;
    text-decoration: none;
}

.reservation-range-tabs a:hover,
.reservation-range-tabs a.is-active {
    color: #fff;
    background: #7c5cff;
}

.reservation-board {
    min-height: 164px;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--admin-shadow);
}

.reservation-empty-state {
    display: grid;
    min-height: 160px;
    place-items: center;
    align-content: center;
    gap: 12px;
    color: #0f172a;
    font-weight: 950;
}

.reservation-empty-state span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 3px solid #cbd5e1;
    border-radius: 8px;
    color: #94a3b8;
    font-size: 18px;
}

.reservation-table-wrap {
    overflow: auto;
    border-radius: 8px;
}

.reservation-table {
    min-width: 940px;
}

.reservation-table th {
    color: #64748b;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.reservation-table td {
    vertical-align: middle;
}

.reservation-table td strong,
.reservation-table td small {
    display: block;
}

.reservation-table td small {
    margin-top: 3px;
    color: #64748b;
    font-weight: 750;
}

.reservation-guest-pill,
.reservation-status {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    justify-content: center;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 950;
}

.reservation-guest-pill {
    color: #2563eb;
    background: #dbeafe;
}

.reservation-status.status-pending {
    color: #713f12;
    background: #fef3c7;
}

.reservation-status.status-confirmed {
    color: #065f46;
    background: #d1fae5;
}

.reservation-status.status-completed {
    color: #fff;
    background: #64748b;
}

.reservation-status.status-cancelled {
    color: #fff;
    background: #e11d48;
}

.reservation-status-form {
    margin: 0;
}

.reservation-status-form select {
    min-height: 34px;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    background: #fff;
    font-weight: 850;
}

.reservation-modal-card {
    width: min(720px, 100%);
}

@media (max-width: 760px) {
    .reservation-page-head {
        display: grid;
    }

    .reservation-filter-bar {
        justify-content: flex-start;
    }

    .reservation-range-tabs {
        order: 3;
        width: 100%;
        overflow: auto;
    }

    .integration-hero {
        display: grid;
    }

    .integration-two-col,
    .integration-kpis,
    .integration-form-grid,
    .integration-toggle-list {
        grid-template-columns: 1fr;
    }

    .integration-state {
        width: 100%;
    }

    .market-product-row {
        grid-template-columns: 1fr;
    }
}

.move-items-list {
    display: grid;
    border-top: 1px solid #e2e8f0;
}

.move-items-list label {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
}

.cancel-confirm-card {
    width: min(460px, 100%);
    padding: 34px;
    text-align: center;
}

.cancel-warning-icon {
    display: inline-grid;
    width: 72px;
    height: 72px;
    margin-bottom: 16px;
    place-items: center;
    border: 4px solid #fdba74;
    border-radius: 50%;
    color: #fb923c;
    font-size: 42px;
    font-weight: 950;
}

.cancel-confirm-card h2 {
    margin: 0 0 8px;
    font-size: 26px;
}

.cancel-confirm-card p {
    margin: 0 0 22px;
    color: #64748b;
    font-weight: 800;
}

.cancel-confirm-card form {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.receipt-stage {
    display: grid;
    justify-items: center;
    gap: 10px;
    min-height: 100vh;
    padding: 20px;
}

.receipt-toolbar-card {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) auto auto auto;
    gap: 8px;
    width: min(330px, 100%);
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .12);
}

.receipt-toolbar-card select {
    min-height: 38px;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    color: #0f172a;
    background: #fff;
    font-weight: 900;
}

.receipt-toolbar-card .primary-btn,
.receipt-toolbar-card .success-btn,
.receipt-toolbar-card .ghost-btn {
    min-height: 38px;
    padding: 0 12px;
}

.receipt-toolbar-card .square {
    width: 44px;
    font-size: 20px;
}

.thermal-receipt {
    width: min(330px, 100%);
    padding: 22px 14px;
    border-radius: 8px;
    color: #000;
    background: #fff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .16);
    font-family: "Courier New", monospace;
}

.thermal-receipt header {
    text-align: center;
}

.thermal-receipt h1 {
    margin: 0 0 8px;
    font-size: 21px;
    letter-spacing: .5px;
}

.thermal-receipt p {
    margin: 3px 0;
    font-size: 12px;
    line-height: 1.35;
}

.receipt-separator,
.receipt-dashed {
    height: 1px;
    margin: 12px 0;
    background: repeating-linear-gradient(90deg, #000 0 8px, transparent 8px 12px);
}

.receipt-dashed {
    margin-top: 18px;
}

.receipt-meta {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 5px 8px;
    margin: 0;
    font-size: 12px;
}

.receipt-meta dt {
    font-weight: 900;
}

.receipt-meta dd {
    margin: 0;
    text-align: right;
}

.receipt-heading-row,
.receipt-item-row,
.receipt-total-row,
.receipt-tax-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.receipt-heading-row {
    margin-bottom: 8px;
    font-size: 12px;
}

.receipt-item-row {
    padding: 6px 0;
}

.receipt-item-row strong,
.receipt-item-row span,
.receipt-item-row small {
    display: block;
}

.receipt-item-row span,
.receipt-item-row small {
    margin-top: 3px;
    font-size: 11px;
}

.receipt-item-row b {
    align-self: start;
    font-size: 13px;
}

.receipt-total-row {
    align-items: center;
    font-size: 18px;
    font-weight: 950;
}

.receipt-tax-row {
    margin-top: 8px;
    color: #475569;
    font-size: 12px;
}

.thermal-receipt footer {
    display: grid;
    gap: 6px;
    justify-items: center;
    padding-top: 8px;
    font-size: 13px;
}

@media (max-width: 980px) {
    .order-detail-head,
    .order-list-head {
        display: grid;
    }

    .order-detail-actions {
        justify-content: flex-start;
    }

    .order-detail-layout {
        grid-template-columns: 1fr;
    }

    .order-payment-methods,
    .payment-metrics {
        grid-template-columns: 1fr;
    }

    .add-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .order-detail-head h1,
    .order-list-head h1 {
        font-size: 24px;
    }

    .order-status-tabs a,
    .order-detail-actions > * {
        flex: 1 1 auto;
    }

    .receipt-toolbar-card {
        grid-template-columns: 1fr 1fr;
    }

    .receipt-toolbar-card select,
    .receipt-toolbar-card .success-btn {
        grid-column: 1 / -1;
    }

    .add-product-grid {
        grid-template-columns: 1fr;
    }

    .product-payment-row {
        grid-template-columns: auto 1fr;
    }

    .product-payment-row input[type="number"] {
        grid-column: 2;
    }

    .create-order-type-grid {
        grid-template-columns: 1fr;
    }

    .kitchen-full-topbar {
        align-items: flex-start;
        flex-direction: column;
        padding: 8px;
    }

    .kitchen-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .kitchen-ticket-grid {
        grid-template-columns: 1fr;
    }
}

@media print {
    .receipt-page {
        background: white;
    }

    .receipt {
        width: 100%;
        margin: 0;
        padding: 0;
        box-shadow: none;
    }

    .receipt-thermal .receipt {
        width: 80mm;
    }

    .no-print {
        display: none !important;
    }
}

@media (max-width: 980px) {
    .admin-body .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-body .sidebar {
        position: static;
        height: auto;
    }

    .admin-body .admin-topbar {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px;
    }

    .admin-body .admin-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .admin-body .admin-content {
        padding: 18px;
    }

    .admin-body .order-board {
        grid-template-columns: 1fr;
    }

    .admin-body .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .resto-hero,
    .resto-module-strip {
        grid-template-columns: 1fr;
        align-items: flex-start;
        flex-direction: column;
    }

    .resto-hero h1 {
        font-size: 25px;
    }

    .resto-hero-actions {
        justify-content: flex-start;
    }

    .admin-body .kitchen-hero,
    .admin-body .kitchen-ticket header,
    .admin-body .kitchen-ticket footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-login-shell {
        grid-template-columns: 1fr;
    }

    .admin-login-hero {
        min-height: 260px;
    }

    .login-product-scene {
        min-height: 180px;
    }

    .scene-card strong {
        font-size: 17px;
    }

    .scene-order-card,
    .scene-pos-card {
        right: 14px;
        width: 160px;
    }

    .scene-menu-lines,
    .scene-module-rail {
        display: none;
    }
}

.admin-menu-toggle,
.admin-sidebar-close,
.admin-sidebar-backdrop {
    display: none;
}

@media (max-width: 980px) {
    .admin-body {
        overflow-x: hidden;
    }

    .admin-body .admin-shell {
        display: block;
        min-height: 100vh;
    }

    .admin-body .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 120;
        width: min(86vw, 320px);
        height: 100dvh;
        overflow-y: auto;
        transform: translateX(-105%);
        transition: transform .22s ease;
        box-shadow: 24px 0 60px rgba(15, 23, 42, .28);
    }

    .admin-body.admin-sidebar-open .sidebar {
        transform: translateX(0);
    }

    .admin-menu-toggle {
        position: fixed;
        top: 14px;
        left: 14px;
        z-index: 110;
        display: inline-grid;
        place-content: center;
        gap: 4px;
        width: 44px;
        height: 44px;
        border: 1px solid #dbe4f0;
        border-radius: 8px;
        background: #ffffff;
        box-shadow: 0 14px 34px rgba(15, 23, 42, .16);
    }

    .admin-menu-toggle span {
        display: block;
        width: 18px;
        height: 2px;
        border-radius: 999px;
        background: #172033;
    }

    .admin-sidebar-close {
        display: inline-grid;
        place-items: center;
        position: absolute;
        top: 14px;
        right: 14px;
        width: 36px;
        height: 36px;
        border: 1px solid rgba(255, 255, 255, .18);
        border-radius: 8px;
        color: #ffffff;
        background: rgba(255, 255, 255, .10);
        font-size: 26px;
        line-height: 1;
    }

    .admin-sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 115;
        background: rgba(15, 23, 42, .52);
        backdrop-filter: blur(2px);
    }

    .admin-body.admin-sidebar-open .admin-sidebar-backdrop {
        display: block;
    }

    .admin-body .admin-topbar {
        padding-left: 72px;
    }

    .resto-command-center,
    .resto-ops-layout,
    .waiter-order-head {
        grid-template-columns: 1fr;
    }

    .resto-page-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .resto-mini-stats {
        width: 100%;
        justify-content: flex-start;
    }

    .resto-command-copy h1 {
        font-size: 30px;
    }

    .resto-pulse-grid,
    .resto-quick-grid {
        grid-template-columns: 1fr 1fr;
    }

    .resto-quick-action {
        min-height: 104px;
    }

    .resto-payment-row {
        grid-template-columns: 1fr;
    }

    .terminal-shell {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .terminal-tables,
    .terminal-ticket {
        position: static;
        max-height: none;
    }

    .terminal-product-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .resto-pulse-grid,
    .resto-quick-grid,
    .resto-table-map {
        grid-template-columns: 1fr;
    }

    .resto-command-center {
        padding: 20px;
    }

    .resto-command-copy h1 {
        font-size: 26px;
    }

    .resto-mini-stats span {
        width: 100%;
    }

    .waiter-product-card {
        grid-template-columns: 1fr;
    }

    .waiter-product-card input[type="number"] {
        width: 100%;
    }

    .terminal-product-grid,
    .payment-method-grid {
        grid-template-columns: 1fr;
    }

    .category-list-grid,
    .category-modal-grid,
    .product-modal-grid,
    .product-filter-panel {
        grid-template-columns: 1fr;
    }

    .product-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .product-toolbar-actions,
    .product-toolbar-actions .primary-btn,
    .product-toolbar-actions .warning-btn {
        width: 100%;
    }

    .product-toolbar-actions .primary-btn,
    .product-toolbar-actions .warning-btn {
        justify-content: center;
    }

    .product-pagination {
        justify-content: flex-start;
    }

    .bulk-direction,
    .bulk-percent-buttons {
        grid-template-columns: 1fr 1fr;
    }

    .extras-page-head {
        align-items: stretch;
        flex-direction: column;
    }

    .extras-page-head .primary-btn {
        justify-content: center;
        width: 100%;
    }

    .extras-group-grid,
    .extra-modal-grid,
    .extra-option-row {
        grid-template-columns: 1fr;
    }

    .stock-page-head,
    .stock-search-panel,
    .stock-table-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .stock-search-panel input,
    .stock-search-panel .primary-btn,
    .stock-table-footer .primary-btn {
        width: 100%;
    }

    .stock-summary-grid {
        grid-template-columns: 1fr;
    }

    .table-management-head,
    .table-head-actions,
    .table-delete-strip {
        align-items: stretch;
        flex-direction: column;
    }

    .table-head-actions .ghost-btn,
    .table-head-actions .primary-btn,
    .table-delete-strip .danger-btn {
        justify-content: center;
        width: 100%;
    }

    .table-card-grid,
    .table-modal-grid {
        grid-template-columns: 1fr;
    }

    .table-card-edit {
        opacity: 1;
        transform: none;
    }

    .extra-admin-card header {
        flex-direction: column;
    }

    .category-admin-card {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .category-admin-image {
        width: 76px;
        height: 76px;
    }

    .admin-modal-backdrop {
        align-items: flex-start;
        padding: 14px;
    }

    .admin-modal-head,
    .category-modal-form {
        padding: 16px;
    }

    .admin-modal-actions {
        flex-direction: column-reverse;
    }

    .admin-modal-actions .primary-btn,
    .admin-modal-actions .ghost-btn {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .campaign-product-grid {
        grid-template-columns: 1fr;
    }

    .campaign-form .modal-actions {
        flex-direction: column-reverse;
    }

    .campaign-form .modal-actions .primary-btn,
    .campaign-form .modal-actions .ghost-btn {
        width: 100%;
    }

    .ops-modal-grid {
        grid-template-columns: 1fr;
    }

    .public-rating-options {
        grid-template-columns: 1fr;
    }

    .review-admin-head,
    .review-list-head {
        align-items: stretch;
        flex-direction: column;
    }

    .review-admin-head .ghost-btn {
        width: max-content;
    }
}

@media (max-width: 1080px) {
    .settings-layout {
        grid-template-columns: 1fr;
    }

    .settings-side-stack,
    .settings-savebar {
        position: static;
    }
}

@media (max-width: 640px) {
    .settings-page-head {
        align-items: stretch;
        flex-direction: column;
    }

    .settings-page-head .ghost-btn {
        justify-content: center;
        width: 100%;
    }

    .settings-form-grid,
    .settings-toggle-row {
        grid-template-columns: 1fr;
    }

    .settings-savebar .primary-btn {
        width: 100%;
    }
}

.pos-fullscreen {
    margin: 0;
    min-height: 100vh;
    overflow: hidden;
    color: #0f172a;
    background: #eef2f7;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.pos-full-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    height: 52px;
    padding: 0 14px 0 24px;
    color: #fff;
    background: linear-gradient(90deg, #675cf6, #7c5cf6);
    box-shadow: 0 12px 28px rgba(79, 70, 229, .24);
}

.pos-brand,
.pos-top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pos-brand strong {
    color: #fff;
    font-size: 18px;
    font-weight: 950;
}

.pos-brand span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 9px;
    border-radius: 7px;
    color: #1d4ed8;
    background: #fff;
    font-size: 12px;
    font-weight: 950;
}

.pos-top-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, .62);
    border-radius: 7px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
    transition: background .16s ease, transform .16s ease;
}

.pos-top-actions a:hover {
    background: rgba(255, 255, 255, .14);
    transform: translateY(-1px);
}

.pos-terminal-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.38fr) minmax(380px, .78fr);
    height: calc(100vh - 52px);
    overflow: hidden;
}

.pos-product-zone {
    display: grid;
    min-width: 0;
    grid-template-rows: auto auto auto auto 1fr;
    border-right: 1px solid #cbd5e1;
    background: #f8fafc;
    overflow: hidden;
}

.pos-mode-tabs,
.pos-category-tabs,
.pos-search-row {
    background: #fff;
}

.pos-mode-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px 0;
    border-bottom: 1px solid #dbe4f0;
}

.pos-mode-tabs button,
.pos-mode-tabs select {
    min-height: 38px;
    padding: 0 15px;
    border: 1px solid #cbd5e1;
    border-radius: 9px 9px 0 0;
    color: #475569;
    background: #fff;
    font-weight: 900;
}

.pos-mode-tabs button.active {
    color: #fff;
    border-color: var(--theme);
    background: var(--theme);
}

.pos-mode-tabs select {
    margin-left: auto;
    border-radius: 8px;
}

.pos-category-tabs {
    padding: 8px 12px;
    border-bottom: 1px solid #dbe4f0;
}

.pos-category-tabs button {
    min-height: 34px;
    border-radius: 999px;
}

.pos-search-row {
    display: grid;
    grid-template-columns: 1fr 40px;
    gap: 8px;
    padding: 8px 12px;
    border-bottom: 1px solid #dbe4f0;
}

.pos-search-row input,
.pos-search-row button {
    min-height: 38px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #fff;
}

.pos-search-row input {
    padding: 0 12px;
}

.pos-search-row button {
    color: #64748b;
    font-weight: 900;
}

.pos-product-grid {
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    align-content: start;
    gap: 10px;
    padding: 12px;
    overflow: auto;
}

.pos-product-card {
    min-height: 134px;
    padding: 10px;
    place-items: center;
    text-align: center;
}

.pos-product-card .terminal-product-thumb {
    width: 58px;
    height: 58px;
    border-radius: 10px;
}

.pos-product-card strong {
    margin: 6px 0 2px;
    color: #0f172a;
    font-size: 13px;
    line-height: 1.18;
}

.pos-product-card em {
    color: #635bff;
    font-size: 13px;
    font-weight: 950;
}

.pos-product-card.is-selected {
    border-color: #635bff;
    background: linear-gradient(180deg, #eef2ff, #f8fafc);
    box-shadow: 0 14px 28px rgba(99, 91, 255, .18);
}

.pos-ticket-zone {
    display: flex;
    min-width: 0;
    flex-direction: column;
    background: #fff;
    overflow: hidden;
}

.pos-ticket-zone form {
    display: grid;
    min-height: 100%;
    grid-template-rows: auto auto minmax(150px, 1fr) auto auto auto auto;
    overflow: hidden;
}

.pos-ticket-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid #dbe4f0;
}

.pos-ticket-head label,
.pos-customer-field,
.pos-note-field {
    display: grid;
    gap: 5px;
    color: #475569;
    font-size: 13px;
    font-weight: 900;
}

.pos-ticket-head label {
    flex: 1;
}

.pos-ticket-head select,
.pos-customer-field input,
.pos-note-field textarea,
.pos-discount-row input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #0f172a;
}

.pos-ticket-head select,
.pos-customer-field input,
.pos-discount-row input {
    min-height: 38px;
    padding: 0 11px;
}

.pos-ticket-head button {
    width: 38px;
    height: 38px;
    border: 1px solid #94a3b8;
    border-radius: 8px;
    color: #475569;
    background: #fff;
    font-weight: 900;
}

.pos-customer-field,
.pos-note-field {
    margin: 10px 16px 0;
}

.pos-note-field textarea {
    min-height: 58px;
    padding: 10px 12px;
    resize: vertical;
}

.pos-ticket-cart {
    min-height: 0;
    margin: 10px 16px;
    padding-right: 2px;
    overflow: auto;
}

.pos-empty-ticket {
    display: grid;
    min-height: 180px;
    place-items: center;
    align-content: center;
    gap: 8px;
    color: #64748b;
}

.pos-empty-ticket strong {
    color: #94a3b8;
    font-size: 42px;
    line-height: 1;
}

.pos-empty-ticket span {
    font-size: 17px;
}

.pos-discount-row {
    padding: 12px 16px 0;
    border-top: 1px solid #dbe4f0;
}

.pos-discount-row label {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px;
    color: #475569;
    font-weight: 900;
}

.pos-total-lines {
    display: grid;
    gap: 8px;
    padding: 9px 16px 12px;
}

.pos-total-lines div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.pos-total-lines span {
    color: #475569;
    font-weight: 900;
}

.pos-total-lines strong {
    color: #0f172a;
    font-size: 16px;
}

.pos-total-lines .grand span,
.pos-total-lines .grand strong {
    color: #0f172a;
    font-size: 22px;
    font-weight: 950;
}

.pos-payment-methods {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0 16px 10px;
}

.pos-payment-methods span {
    min-height: 68px;
    gap: 6px;
    color: #0f172a;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
}

.pos-payment-methods i {
    color: inherit;
    font-style: normal;
    font-size: 22px;
    line-height: 1;
}

.pos-pay-btn {
    min-height: 42px;
    margin: 0 16px 16px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: #62b486;
    font-size: 16px;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(34, 197, 94, .18);
}

.pos-pay-btn:disabled {
    cursor: not-allowed;
    opacity: .52;
}

.customer-display-admin {
    display: grid;
    gap: 16px;
    min-height: auto;
    padding-bottom: 110px;
}

.admin-body:has(.customer-display-admin),
.admin-body:has(.customer-display-admin) .admin-shell,
.admin-body:has(.customer-display-admin) .admin-main,
.admin-body:has(.customer-display-admin) .admin-content {
    overflow: visible;
}

.admin-body:has(.customer-display-admin) {
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
}

.admin-body.customer-display-admin-body,
.admin-body.customer-display-admin-body .admin-shell,
.admin-body.customer-display-admin-body .admin-main,
.admin-body.customer-display-admin-body .admin-content {
    overflow: visible;
}

.admin-body.customer-display-admin-body {
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
}

.customer-display-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.customer-display-head h1 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #0f172a;
    font-size: 25px;
}

.customer-display-head h1 svg {
    width: 24px;
    height: 24px;
}

.customer-display-head p {
    margin: 6px 0 0;
    color: #64748b;
    font-weight: 700;
}

.customer-display-actions,
.customer-display-savebar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.customer-display-url-note {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid #67e8f9;
    border-radius: 8px;
    color: #155e75;
    background: #cffafe;
    font-weight: 800;
}

.customer-display-url-note a {
    color: #2563eb;
    word-break: break-all;
}

.customer-display-url-note span {
    color: #0e7490;
    font-size: 13px;
    font-weight: 700;
}

.customer-display-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr);
    gap: 18px;
    align-items: start;
    min-height: auto;
    overflow: visible;
}

.customer-display-form-stack {
    display: grid;
    gap: 16px;
    min-height: auto;
    overflow: visible;
}

.display-config-card {
    overflow: hidden;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 32px rgba(15, 23, 42, .06);
}

.display-config-card > header {
    padding: 12px 16px;
    color: #fff;
    font-size: 16px;
    font-weight: 950;
}

.display-config-card.tone-blue > header { background: linear-gradient(90deg, #2563eb, #60a5fa); }
.display-config-card.tone-amber > header { background: linear-gradient(90deg, #f59e0b, #f97316); }
.display-config-card.tone-purple > header { background: linear-gradient(90deg, #7c3aed, #a855f7); }
.display-config-card.tone-cyan > header { background: linear-gradient(90deg, #0891b2, #22d3ee); }
.display-config-card.tone-green > header { background: linear-gradient(90deg, #059669, #10b981); }
.display-config-card.tone-rose > header { background: linear-gradient(90deg, #e11d48, #fb7185); }

.display-config-card > .field,
.display-config-card > .toggle-line,
.display-config-card > p,
.display-toggle-grid {
    margin: 14px 16px;
}

.display-config-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 16px;
}

.display-config-grid .field-wide {
    grid-column: 1 / -1;
}

.display-config-grid .field,
.display-config-card .field {
    margin: 0;
}

.display-config-card .field input,
.display-config-card .field select,
.display-config-card .field textarea {
    min-height: 42px;
    border-color: #cbd5e1;
    border-radius: 8px;
    background: #fff;
}

.display-config-card .field small {
    margin-top: 5px;
    color: #64748b;
    font-weight: 700;
}

.display-config-card p {
    color: #64748b;
    font-weight: 700;
}

.display-toggle-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.display-toggle-grid label,
.display-config-card .toggle-line {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    color: #0f172a;
    font-weight: 850;
}

.customer-display-savebar {
    position: sticky;
    bottom: 0;
    z-index: 5;
    padding: 12px 0 4px;
    background: linear-gradient(180deg, rgba(244, 247, 251, 0), #f4f7fb 28%);
}

.customer-display-preview-card {
    position: sticky;
    top: 18px;
    overflow: hidden;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 32px rgba(15, 23, 42, .06);
}

.customer-display-preview-card header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid #dbe4f0;
}

.customer-display-preview-card strong {
    color: #0f172a;
}

.customer-display-preview-card iframe {
    display: block;
    width: 100%;
    height: 285px;
    border: 0;
    background: #0f172a;
}

.customer-display-preview-card p {
    margin: 0;
    padding: 10px 14px;
    color: #64748b;
    background: #f8fafc;
    font-weight: 700;
}

.customer-tv-screen {
    margin: 0;
    min-height: 100vh;
    overflow: auto;
    color: var(--cd-text);
    background: var(--cd-bg);
    background-size: cover;
    background-position: center;
    font-family: var(--cd-font);
}

.customer-tv-screen.is-preview {
    min-height: 100vh;
    overflow: auto;
}

.customer-tv-shell {
    display: grid;
    grid-template-rows: auto auto auto 1fr auto;
    min-height: 100vh;
    padding: 26px 32px 22px;
    background: radial-gradient(circle at 8% 12%, rgba(245, 158, 11, .12), transparent 30%), radial-gradient(circle at 90% 22%, rgba(14, 165, 233, .14), transparent 28%);
}

.customer-tv-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding-bottom: 18px;
}

.customer-tv-header.accented {
    border-bottom: 3px solid var(--cd-primary);
}

.customer-tv-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.customer-tv-brand img,
.customer-tv-brand > span {
    display: grid;
    width: 84px;
    height: 84px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 18px;
    color: var(--cd-primary);
    background: rgba(255, 255, 255, .92);
    object-fit: contain;
    font-size: 46px;
    font-weight: 950;
}

.customer-tv-brand h1 {
    margin: 0;
    color: var(--cd-text);
    font-size: var(--cd-title-size);
    line-height: .98;
}

.customer-tv-brand p {
    margin: 8px 0 0;
    color: color-mix(in srgb, var(--cd-text) 78%, transparent);
    font-size: var(--cd-subtitle-size);
    font-weight: 800;
}

.customer-tv-clock {
    min-width: 260px;
    text-align: right;
}

.customer-tv-clock strong {
    display: block;
    color: var(--cd-primary);
    font-size: clamp(44px, 5vw, 92px);
    line-height: .9;
}

.customer-tv-clock span {
    display: block;
    margin-top: 8px;
    color: color-mix(in srgb, var(--cd-text) 78%, transparent);
    font-size: 18px;
    font-weight: 850;
}

.customer-tv-banner {
    overflow: hidden;
    margin: 16px -32px 14px;
    padding: 9px 0;
    color: #111827;
    background: var(--cd-primary);
    font-size: 19px;
    font-weight: 950;
    white-space: nowrap;
}

.customer-tv-banner div {
    display: inline-block;
    min-width: 100%;
    padding-left: 100%;
    animation: customer-tv-marquee 28s linear infinite;
}

@keyframes customer-tv-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

.customer-tv-categories {
    display: flex;
    gap: 10px;
    overflow: hidden;
    margin-bottom: 16px;
}

.customer-tv-categories button {
    min-height: 44px;
    padding: 0 22px;
    border: 1px solid var(--cd-card-border);
    border-radius: 999px;
    color: var(--cd-text);
    background: var(--cd-card);
    font-size: 17px;
    font-weight: 950;
}

.customer-tv-categories button.active {
    color: #111827;
    border-color: var(--cd-primary);
    background: var(--cd-primary);
}

.customer-tv-products {
    display: grid;
    grid-template-columns: repeat(var(--cd-columns), minmax(0, 1fr));
    gap: 14px;
    align-content: start;
    min-height: 0;
    overflow: visible;
    padding-bottom: 8px;
}

.customer-tv-product {
    display: grid;
    grid-template-columns: minmax(110px, 180px) minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    min-height: 132px;
    padding: 14px;
    border: 1px solid var(--cd-card-border);
    border-radius: var(--cd-radius);
    background: var(--cd-card);
    backdrop-filter: blur(10px);
}

.has-card-shadow .customer-tv-product {
    box-shadow: 0 22px 42px rgba(0, 0, 0, .22);
}

.customer-tv-product[hidden] {
    display: none;
}

.customer-tv-product figure {
    margin: 0;
}

.customer-tv-product img {
    display: block;
    width: 100%;
    height: var(--cd-image-height);
    border-radius: calc(var(--cd-radius) - 4px);
    object-fit: cover;
}

.customer-tv-product small {
    color: var(--cd-primary);
    font-size: 15px;
    font-weight: 950;
    text-transform: uppercase;
}

.customer-tv-product h2 {
    margin: 5px 0;
    color: var(--cd-text);
    font-size: var(--cd-product-size);
    line-height: 1.1;
}

.customer-tv-product p {
    margin: 0;
    color: color-mix(in srgb, var(--cd-text) 76%, transparent);
    font-size: var(--cd-description-size);
    line-height: 1.35;
}

.customer-tv-price {
    display: grid;
    justify-items: end;
    gap: 4px;
    min-width: 160px;
}

.customer-tv-price em {
    color: color-mix(in srgb, var(--cd-text) 55%, transparent);
    font-style: normal;
    font-weight: 850;
    text-decoration: line-through;
}

.customer-tv-price strong {
    color: var(--cd-price);
    font-size: var(--cd-price-size);
    font-weight: 950;
}

.customer-tv-screen.mode-grid .customer-tv-product {
    grid-template-columns: 1fr;
    align-content: start;
    text-align: center;
}

.customer-tv-screen.mode-grid .customer-tv-price {
    justify-items: center;
    min-width: 0;
}

.customer-tv-screen.mode-compact .customer-tv-product {
    grid-template-columns: 84px minmax(0, 1fr) auto;
    min-height: 88px;
    padding: 10px 12px;
}

.customer-tv-screen.mode-compact .customer-tv-product.no-image {
    grid-template-columns: minmax(0, 1fr) auto;
}

.customer-tv-screen.mode-compact .customer-tv-product figure {
    display: block;
}

.customer-tv-screen.mode-compact .customer-tv-product img {
    height: 72px;
    border-radius: 10px;
}

.customer-tv-screen.mode-compact .customer-tv-product p,
.customer-tv-screen.mode-compact .customer-tv-product small {
    display: none;
}

.customer-tv-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 14px;
    color: color-mix(in srgb, var(--cd-text) 78%, transparent);
    font-size: 18px;
    font-weight: 850;
}

.customer-tv-empty {
    grid-column: 1 / -1;
    display: grid;
    min-height: 320px;
    place-items: center;
    border: 1px dashed var(--cd-card-border);
    border-radius: var(--cd-radius);
    color: color-mix(in srgb, var(--cd-text) 74%, transparent);
    background: var(--cd-card);
    font-size: 24px;
    font-weight: 900;
}

@media (max-width: 1100px) {
    .pos-fullscreen {
        overflow: auto;
    }

    .pos-terminal-shell {
        grid-template-columns: 1fr;
        height: auto;
        min-height: calc(100vh - 52px);
    }

    .pos-product-zone {
        max-height: none;
        border-right: 0;
    }

    .pos-ticket-zone form {
        min-height: auto;
    }

    .pos-ticket-cart {
        max-height: 320px;
    }
}

@media (max-width: 1180px) {
    .customer-display-layout {
        grid-template-columns: 1fr;
    }

    .customer-display-preview-card {
        position: static;
    }
}

@media (max-width: 780px) {
    .customer-display-head {
        align-items: stretch;
        flex-direction: column;
    }

    .display-config-grid,
    .display-toggle-grid {
        grid-template-columns: 1fr;
    }

    .customer-tv-screen {
        overflow: auto;
    }

    .customer-tv-shell {
        min-height: 100vh;
        padding: 18px;
    }

    .customer-tv-header,
    .customer-tv-brand {
        align-items: flex-start;
        flex-direction: column;
    }

    .customer-tv-clock {
        min-width: 0;
        text-align: left;
    }

    .customer-tv-products,
    .customer-tv-product {
        grid-template-columns: 1fr;
    }

    .customer-tv-price {
        justify-items: start;
    }
}

@media (max-width: 680px) {
    .pos-full-topbar {
        height: auto;
        min-height: 52px;
        flex-wrap: wrap;
        padding: 10px 12px;
    }

    .pos-terminal-shell {
        min-height: auto;
    }

    .pos-mode-tabs,
    .pos-category-tabs {
        overflow-x: auto;
    }

    .pos-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pos-payment-methods {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Final admin polish overrides: compact, readable, and consistent across late-loaded page rules. */
.admin-body {
    font-size: 13px;
}

.admin-body .admin-shell {
    grid-template-columns: 268px minmax(0, 1fr);
}

.admin-body .admin-content {
    padding: 22px;
}

.admin-body .admin-topbar {
    min-height: 74px;
    padding: 12px 24px;
}

.admin-body .admin-topbar h1,
.admin-body .toolbar h1,
.admin-body .settings-page-head h1,
.admin-body .campaign-page-head h1,
.admin-body .ops-page-head h1,
.admin-body .integration-page-head h1,
.admin-body .customer-display-head h1 {
    font-size: 21px !important;
    line-height: 1.16;
}

.admin-body .sidebar {
    width: auto;
    padding: 14px 12px;
}

.admin-body .sidebar a {
    min-height: 36px;
    padding: 7px 9px;
    font-size: 12px;
    line-height: 1.2;
}

.admin-body .sidebar-icon {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
}

.admin-body .sidebar-icon svg {
    width: 14px;
    height: 14px;
}

.admin-body .card:not(.stat),
.admin-body .form-card,
.admin-body .report-card,
.admin-body .dashboard-panel,
.admin-body .settings-panel,
.admin-body .marketplace-card,
.admin-body .integration-panel,
.admin-body .fiscal-panel,
.admin-body .customer-display-card {
    border-color: #d8e0eb;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .065);
}

.admin-body .card:not(.stat) h2,
.admin-body .form-card h2,
.admin-body .report-card h2,
.admin-body .dashboard-panel h2,
.admin-body .settings-panel h2,
.admin-body .marketplace-card h2,
.admin-body .integration-panel h2,
.admin-body .fiscal-panel h2,
.admin-body .customer-display-card h2 {
    font-size: 16px !important;
}

.admin-body .field,
.admin-body label,
.admin-body .table th,
.admin-body .report-table th,
.admin-body .campaign-table th,
.admin-body .ops-table th,
.admin-body .activity-table th {
    font-size: 12px;
}

.admin-body input,
.admin-body select,
.admin-body textarea,
.admin-body .field input,
.admin-body .field select,
.admin-body .field textarea {
    min-height: 38px;
    font-size: 13px;
}

.admin-body .table,
.admin-body .report-table,
.admin-body .campaign-table,
.admin-body .ops-table,
.admin-body .activity-table {
    font-size: 12px;
}

.admin-body .table th,
.admin-body .report-table th,
.admin-body .campaign-table th,
.admin-body .ops-table th,
.admin-body .activity-table th {
    padding: 10px 12px;
    color: #526070;
}

.admin-body .table td,
.admin-body .report-table td,
.admin-body .campaign-table td,
.admin-body .ops-table td,
.admin-body .activity-table td {
    padding: 11px 12px;
    color: #1f2937;
}

.admin-body .primary-btn,
.admin-body .success-btn,
.admin-body .warning-btn,
.admin-body .ghost-btn,
.admin-body .danger-btn,
.admin-body button,
.admin-body .actions-cell a,
.admin-body .actions-cell button,
.admin-body .toolbar-actions a,
.admin-body .toolbar-actions button {
    min-height: 36px;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.15;
}

.admin-body .primary-btn {
    border: 1px solid #1d4ed8;
    color: #fff !important;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.admin-body .success-btn {
    border: 1px solid #047857;
    color: #fff !important;
    background: linear-gradient(135deg, #059669, #047857);
}

.admin-body .warning-btn {
    border: 1px solid #d97706;
    color: #111827 !important;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.admin-body .ghost-btn {
    border: 1px solid #cbd5e1;
    color: #334155 !important;
    background: #fff;
}

.admin-body .danger-btn {
    border: 1px solid #dc2626;
    color: #fff !important;
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.admin-body .stat {
    min-height: 104px;
    padding: 15px;
}

.admin-body .stat h2,
.admin-body .integration-kpis strong,
.admin-body .fiscal-kpis strong,
.admin-body .stock-summary-card strong,
.admin-body .report-kpi strong,
.admin-body .ops-kpi strong,
.admin-body .personnel-summary-card strong {
    font-size: 24px !important;
    line-height: 1;
}

.admin-body .stat strong,
.admin-body .integration-kpis small,
.admin-body .integration-kpis span,
.admin-body .fiscal-kpis small,
.admin-body .stock-summary-card span,
.admin-body .report-kpi small,
.admin-body .ops-kpi small {
    font-size: 11px !important;
    line-height: 1.25;
}

.admin-body .status-pill,
.admin-body .badge,
.admin-body .call-type,
.admin-body .module-badge {
    min-height: 24px;
    padding: 3px 8px;
    font-size: 11px;
}

.admin-body .modal-card,
.admin-body .campaign-modal,
.admin-body .staff-modal,
.admin-body .expense-modal-card,
.admin-body .attendance-modal-card,
.admin-body .ops-modal-card,
.admin-body .table-modal {
    border-radius: 8px;
    box-shadow: 0 20px 54px rgba(15, 23, 42, .14);
}

@media (max-width: 860px) {
    .admin-body .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-body .admin-content {
        padding: 16px;
    }

    .admin-body .admin-topbar {
        padding: 14px 16px;
    }

    .admin-body .admin-topbar h1,
    .admin-body .toolbar h1,
    .admin-body .settings-page-head h1,
    .admin-body .campaign-page-head h1,
    .admin-body .ops-page-head h1 {
        font-size: 20px !important;
    }
}

/* v0.7.1 final screen overrides - keep at end of file */

/* v0.7.2 product insights, campaign reliability and scoped component polish */
.popular-products-section {
    --popular-accent: #f59e0b;
    padding: 14px;
    border: 1px solid #fde68a;
    border-radius: 8px;
    background: linear-gradient(180deg, #fffbeb, #fff);
}

.popular-strip {
    scrollbar-color: var(--popular-accent) transparent;
}

.popular-menu-card {
    border-color: #fde68a;
}

.popular-menu-card .card-foot small {
    color: #92400e;
    font-size: 11px;
    font-weight: 900;
}

.menu-card-badges,
.customer-tv-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 7px;
}

.menu-card-badges span,
.customer-tv-badges span {
    display: inline-flex;
    min-height: 22px;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 950;
    line-height: 1;
}

.menu-card-badges .campaign,
.customer-tv-badges .campaign { color: #be123c; background: #ffe4e6; }
.menu-card-badges .popular,
.customer-tv-badges .popular { color: #92400e; background: #fef3c7; }
.menu-card-badges .featured,
.customer-tv-badges .featured { color: #1d4ed8; background: #dbeafe; }
.menu-card-badges .chef,
.customer-tv-badges .chef { color: #6d28d9; background: #ede9fe; }
.menu-card-badges .new,
.customer-tv-badges .new { color: #047857; background: #d1fae5; }

.customer-tv-badges {
    margin: 0 0 6px;
}

.customer-tv-badges span {
    min-height: 20px;
    font-size: 9px;
}

.dashboard-best-sellers {
    grid-column: 1 / -1;
}

.dashboard-best-sellers .section-row small {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 11px;
    font-weight: 750;
}

.best-seller-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.best-seller-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    min-height: 62px;
    padding: 9px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}

.best-seller-rank {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    font-weight: 950;
}

.best-seller-row div {
    min-width: 0;
}

.best-seller-row div strong,
.best-seller-row div small {
    display: block;
}

.best-seller-row div small {
    margin-top: 3px;
    color: #64748b;
    font-size: 11px;
}

.best-seller-row b {
    color: #2563eb;
    font-size: 12px;
}

.best-seller-row em {
    color: #047857;
    font-style: normal;
    font-weight: 950;
}

.personnel-card.is-waiter-card {
    --waiter-card-bg: #ffffff;
    color: #0f172a;
    border: 1px solid #dbe4f0;
    background: var(--waiter-card-bg);
}

.personnel-card.is-waiter-card .personnel-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
}

.personnel-card.is-waiter-card .personnel-metrics span {
    position: relative;
    overflow: hidden;
    min-height: 82px;
    align-content: end;
    padding: 12px;
    border: 0;
    color: #fff !important;
    box-shadow: 0 10px 20px rgba(15, 23, 42, .10);
}

.personnel-card.is-waiter-card .personnel-metrics span::after {
    content: "";
    position: absolute;
    top: -28px;
    right: -22px;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
}

.personnel-card.is-waiter-card .personnel-metrics span:nth-child(1) { background: linear-gradient(135deg, #ef4444, #f97316); }
.personnel-card.is-waiter-card .personnel-metrics span:nth-child(2) { background: linear-gradient(135deg, #2563eb, #0891b2); }
.personnel-card.is-waiter-card .personnel-metrics span:nth-child(3) { background: linear-gradient(135deg, #d97706, #f59e0b); }
.personnel-card.is-waiter-card .personnel-metrics span:nth-child(4) { background: linear-gradient(135deg, #16a34a, #0f766e); }
.personnel-card.is-waiter-card .personnel-metrics strong { color: #fff; font-size: 18px; }
.personnel-card.is-waiter-card .personnel-metrics small { color: rgba(255,255,255,.88) !important; }

/* Garson karti: kontrol panelindeki renkli operasyon kartlarinin kompakt karsiligi. */
.waiter-card-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 390px));
    align-items: start;
}

.personnel-card.is-waiter-card {
    width: 100%;
    min-height: 0;
    overflow: visible;
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, .09);
}

.personnel-card.is-waiter-card .personnel-card-main {
    padding: 20px 18px 14px;
}

.waiter-performance-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px 14px;
}

.waiter-performance-tile {
    position: relative;
    display: grid;
    align-content: end;
    min-height: 92px;
    overflow: hidden;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 8px;
    color: #fff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .12);
}

.waiter-performance-tile::after {
    content: "";
    position: absolute;
    top: -34px;
    right: -24px;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .17);
}

.waiter-performance-tile strong,
.waiter-performance-tile small {
    position: relative;
    z-index: 1;
    display: block;
    color: #fff !important;
}

.waiter-performance-tile strong {
    font-size: 19px;
    line-height: 1.05;
}

.waiter-performance-tile small {
    margin-top: 7px;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.25;
}

.waiter-performance-tile.tone-orders { background: linear-gradient(135deg, #ef4444, #f97316); }
.waiter-performance-tile.tone-today { background: linear-gradient(135deg, #2563eb, #0891b2); }
.waiter-performance-tile.tone-week { background: linear-gradient(135deg, #d97706, #f59e0b); }
.waiter-performance-tile.tone-month { background: linear-gradient(135deg, #16a34a, #0f766e); }

.personnel-card.is-waiter-card .personnel-total {
    margin: 0 14px 14px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #475569;
    background: #f8fafc;
    text-align: center;
    font-size: 11px;
    line-height: 1.45;
}

.personnel-card.is-waiter-card .personnel-card-footer {
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.personnel-card.is-waiter-card .personnel-card-footer .icon-action {
    color: #2563eb;
    border-color: #bfdbfe;
    background: #fff;
}

.personnel-card.is-waiter-card .personnel-card-footer .icon-action.danger {
    color: #dc2626;
    border-color: #fecaca;
}

@media (max-width: 520px) {
    .waiter-card-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .waiter-performance-tile {
        min-height: 84px;
        padding: 12px;
    }
}

.personnel-card.is-support-card {
    --support-card-bg: #f8fafc;
    --support-card-border: #dbe4f0;
    --support-card-accent: #2563eb;
    color: #0f172a !important;
    border-color: var(--support-card-border);
    background: var(--support-card-bg) !important;
}

.personnel-card.is-support-card.role-orange { --support-card-bg: #fff7ed; --support-card-border: #fed7aa; --support-card-accent: #ea580c; }
.personnel-card.is-support-card.role-cyan { --support-card-bg: #ecfeff; --support-card-border: #a5f3fc; --support-card-accent: #0891b2; }
.personnel-card.is-support-card.role-green { --support-card-bg: #ecfdf5; --support-card-border: #a7f3d0; --support-card-accent: #059669; }
.personnel-card.is-support-card .personnel-avatar { color: var(--support-card-accent); background: #fff; }
.personnel-card.is-support-card .personnel-card-main small { color: #475569; }
.personnel-card.is-support-card .personnel-info-list span {
    color: #1e293b;
    border-color: rgba(148,163,184,.28);
    background: rgba(255,255,255,.82);
}
.personnel-card.is-support-card .personnel-info-list b { color: var(--support-card-accent); }

/* v0.7.4 Garson siparis terminali */
.waiter-table-selector {
    margin-bottom: 16px;
    min-height: 238px;
    padding: 18px;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, .06);
}

.waiter-table-selector-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.waiter-table-selector-head span {
    color: #2563eb;
    font-size: 11px;
    font-weight: 950;
}

.waiter-table-selector-head h1 {
    margin: 3px 0 0;
    font-size: 19px;
}

.waiter-table-selector-head > strong {
    padding: 9px 12px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    color: #1d4ed8;
    background: #eff6ff;
}

.waiter-floor-tabs {
    margin-bottom: 12px;
}

.waiter-table-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.waiter-table-card {
    position: relative;
    display: grid;
    min-height: 142px;
    place-items: center;
    padding: 14px 10px;
    overflow: hidden;
    border: 2px solid #99e4cf;
    border-radius: 8px;
    color: #0f172a;
    background: linear-gradient(135deg, #ecfdf5, #dff7f0);
    text-align: center;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.waiter-table-card.is-filter-hidden,
.waiter-terminal .terminal-product.is-filter-hidden,
.waiter-terminal .terminal-category-tabs button.is-filter-hidden {
    display: none !important;
}

.waiter-table-card:hover,
.waiter-table-card.is-active {
    transform: translateY(-2px);
    border-color: #2563eb;
    box-shadow: 0 14px 28px rgba(37, 99, 235, .15);
}

.waiter-table-card.is-busy {
    border-color: #f7a9b3;
    background: linear-gradient(135deg, #fff1f2, #ffe4e6);
}

.waiter-table-card strong,
.waiter-table-card span,
.waiter-table-card small,
.waiter-table-card em {
    display: block;
}

.waiter-table-card strong { font-size: 21px; }
.waiter-table-card span { color: #047857; font-size: 11px; font-weight: 950; text-transform: uppercase; }
.waiter-table-card.is-busy span { color: #e11d48; }
.waiter-table-card small { color: #64748b; font-size: 10px; font-weight: 800; }
.waiter-table-card em { color: #be123c; font-size: 11px; font-style: normal; font-weight: 950; }

.waiter-order-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(310px, 380px);
    gap: 16px;
    align-items: start;
}

.waiter-order-workspace .terminal-ticket {
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 130px);
    overflow: auto;
}

.paid-summary-line strong {
    color: #059669 !important;
}

.remaining-total-line {
    border-radius: 8px;
    padding: 12px;
    background: #fff7ed;
}

.remaining-total-line strong {
    color: #c2410c !important;
}

.pos-paid-line strong {
    color: #059669;
}

.terminal-cart-row.is-existing-order-item {
    border: 1px solid #bfdbfe;
    background: #eff6ff;
}

.terminal-cart-row.is-existing-order-item > b {
    color: #1d4ed8;
    font-size: 12px;
}

@media (max-width: 980px) {
    .waiter-order-workspace {
        grid-template-columns: 1fr;
    }

    .waiter-order-workspace .terminal-ticket {
        position: static;
        max-height: none;
    }
}

@media (max-width: 560px) {
    .waiter-table-selector-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .waiter-table-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .waiter-table-selector {
        min-height: 0;
        padding: 14px;
    }

    .waiter-table-card {
        min-height: 128px;
    }
}

.table-admin-card {
    min-height: 196px;
    align-content: center;
    gap: 9px;
    padding: 50px 16px 20px;
}

.table-admin-card.is-floor-hidden {
    display: none !important;
}

.campaign-table .status-switch {
    min-width: 82px;
}

.campaign-actions a.icon-action {
    text-decoration: none;
}

.report-tabs {
    gap: 8px;
    padding: 8px;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    background: #fff;
}

.report-tabs .report-tab-btn {
    min-height: 38px;
    border: 0;
    color: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .10);
}

.report-tabs .report-tab-btn.tone-blue { background: #2563eb; }
.report-tabs .report-tab-btn.tone-green { background: #059669; }
.report-tabs .report-tab-btn.tone-orange { background: #ea580c; }
.report-tabs .report-tab-btn.tone-cyan { background: #0891b2; }
.report-tabs .report-tab-btn.tone-purple { background: #7c3aed; }
.report-tabs .report-tab-btn.tone-slate { background: #475569; }
.report-tabs .report-tab-btn:hover,
.report-tabs .report-tab-btn.active {
    color: #fff;
    filter: brightness(.92);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, .18), inset 0 0 0 2px rgba(255,255,255,.7);
}

@media (max-width: 760px) {
    .best-seller-list { grid-template-columns: 1fr; }
    .best-seller-row { grid-template-columns: 32px minmax(0, 1fr) auto; }
    .best-seller-row em { grid-column: 2 / -1; }
    .personnel-card.is-waiter-card .personnel-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .report-tabs { flex-wrap: nowrap; overflow-x: auto; }
    .report-tabs .report-tab-btn { flex: 0 0 auto; }
}
.waiter-terminal .terminal-category-tabs button {
    min-height: 32px;
    padding: 0 11px;
    font-size: 11px;
}

.waiter-terminal .terminal-product {
    min-height: 112px;
    padding: 8px;
}

.waiter-terminal .terminal-product-meta,
.waiter-terminal .terminal-product strong,
.waiter-terminal .terminal-product em {
    font-size: 11px !important;
    line-height: 1.15;
}

.waiter-terminal .terminal-product-thumb {
    width: 50px;
    height: 50px;
}

.pos-ticket-zone form {
    display: grid;
    height: 100%;
    min-height: 0;
    grid-template-rows: auto auto minmax(48px, 1fr) auto auto auto auto auto;
    overflow: hidden;
    padding: 0;
}

.pos-ticket-head { padding: 8px 12px; }
.pos-customer-field,
.pos-note-field { margin: 6px 12px 0; }
.pos-note-field textarea { min-height: 38px; max-height: 48px; padding: 7px 9px; }
.pos-ticket-cart { min-height: 48px; margin: 6px 12px; }
.pos-discount-row { padding: 7px 12px 0; }
.pos-total-lines { gap: 3px; padding: 5px 12px 7px; }
.pos-total-lines strong { font-size: 14px; }
.pos-total-lines .grand span,
.pos-total-lines .grand strong { font-size: 18px; }
.pos-payment-methods { gap: 5px; padding: 0 12px 7px; }
.pos-payment-methods span { min-height: 48px; padding: 5px 3px; font-size: 10px; }
.pos-payment-methods i { font-size: 17px; }
.pos-pay-btn { position: static; min-height: 38px; margin: 0 12px 8px; font-size: 14px; }

.customer-tv-shell { padding: 18px 22px 16px; }
.customer-tv-brand img,
.customer-tv-brand > span { width: 66px; height: 66px; border-radius: 14px; font-size: 34px; }
.customer-tv-brand h1 { font-size: min(var(--cd-title-size), clamp(28px, 3.4vw, 46px)) !important; }
.customer-tv-clock strong { font-size: clamp(34px, 4vw, 62px); }
.customer-tv-clock span,
.customer-tv-banner,
.customer-tv-footer { font-size: 14px; }
.customer-tv-categories button { min-height: 36px; padding: 0 16px; font-size: 13px; }
.customer-tv-product {
    grid-template-columns: minmax(96px, 132px) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    min-height: 124px;
    padding: 12px;
}
.customer-tv-product-copy { display: grid; min-width: 0; align-content: start; }
.customer-tv-product small { font-size: 11px; }
.customer-tv-product h2 { margin: 3px 0 5px; font-size: min(var(--cd-product-size), clamp(15px, 1.35vw, 20px)) !important; }
.customer-tv-product p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    font-size: min(var(--cd-description-size), 12px) !important;
    line-height: 1.32;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}
.customer-tv-price {
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
    margin-top: 8px;
}
.customer-tv-price strong { font-size: min(var(--cd-price-size), clamp(17px, 1.7vw, 24px)) !important; }
.customer-tv-screen.mode-grid .customer-tv-product { grid-template-columns: 1fr; }
.customer-tv-screen.mode-grid .customer-tv-price { justify-content: center; }
.customer-tv-screen.mode-compact .customer-tv-product,
.customer-tv-screen.mode-compact .customer-tv-product.no-image { grid-template-columns: 72px minmax(0, 1fr); }
.customer-tv-screen.mode-compact .customer-tv-product p { display: none; }

.customer-tv-document,
.customer-tv-screen {
    overflow-x: hidden;
}

.page-header .ghost-btn[href="./"],
.public-back-btn,
.menu-page [aria-label="Geri"] {
    border-color: #f59e0b !important;
    color: #78350f !important;
    background: #fef3c7 !important;
    box-shadow: 0 8px 18px rgba(245, 158, 11, .18);
}

.page-header .ghost-btn[href="./"]:hover,
.public-back-btn:hover,
.menu-page [aria-label="Geri"]:hover {
    background: #fde68a !important;
}

.extra-admin-limit .status-switch-form {
    margin-left: auto;
}

.table-card-status {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.table-card-status .status-switch {
    min-width: 72px;
    min-height: 28px;
    padding: 3px 8px;
    font-size: 10px;
}

/* v0.8.0 ortak kalite ve erisilebilirlik turu */
.sidebar-search {
    position: relative;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    margin: 12px 10px 8px;
    padding: 6px 8px;
    border: 1px solid rgba(148, 163, 184, .2);
    border-radius: 8px;
    background: rgba(255, 255, 255, .07);
    transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.sidebar-search:focus-within {
    border-color: rgba(96, 165, 250, .72);
    background: rgba(255, 255, 255, .11);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .16);
}

.sidebar-search-icon {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    color: #bfdbfe;
}

.sidebar-search-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar-search input {
    width: 100%;
    min-width: 0;
    height: 28px;
    padding: 0;
    border: 0;
    outline: 0;
    color: #fff;
    background: transparent;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
}

.sidebar-search input::placeholder { color: rgba(226, 232, 240, .65); }
.sidebar-search input::-webkit-search-cancel-button { filter: invert(1); }

.sidebar-search kbd {
    padding: 3px 5px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 5px;
    color: rgba(226,232,240,.7);
    background: rgba(15,23,42,.36);
    font-size: 8px;
    font-family: inherit;
    white-space: nowrap;
}

.admin-nav-empty {
    margin: 8px 12px 14px;
    padding: 10px;
    border: 1px dashed rgba(148,163,184,.28);
    border-radius: 8px;
    color: #cbd5e1;
    text-align: center;
    font-size: 10px;
    font-weight: 800;
}

.sidebar .menu-group[hidden],
.sidebar .menu-group a[hidden] { display: none !important; }

.admin-scroll-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 80;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    color: #fff;
    background: #2563eb;
    box-shadow: 0 16px 32px rgba(37, 99, 235, .24);
    font-size: 20px;
    font-weight: 950;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity .18s ease, transform .18s ease, background-color .18s ease;
}

.admin-scroll-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.admin-scroll-top:hover { background: #1d4ed8; }

.admin-body :is(a, button, input, select, textarea, [tabindex]):focus-visible,
.menu-page :is(a, button, input, select, textarea, [tabindex]):focus-visible,
.public-page :is(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid rgba(37, 99, 235, .28);
    outline-offset: 2px;
}

.admin-body :is(input, select, textarea):not([type="checkbox"]):not([type="radio"]):hover {
    border-color: #a8b8cc;
}

.admin-body :is(input, select, textarea):not([type="checkbox"]):not([type="radio"]):focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .11);
}

.admin-body :is(button, .primary-btn, .ghost-btn, .success-btn, .danger-btn):disabled,
.admin-body :is(button, .primary-btn, .ghost-btn, .success-btn, .danger-btn)[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: .52;
    box-shadow: none !important;
    transform: none !important;
}

.admin-body .toolbar,
.admin-body .section-row,
.admin-body .settings-page-head,
.admin-body .stock-page-head,
.admin-body .campaign-page-head,
.admin-body .reservation-page-head,
.admin-body .product-toolbar,
.admin-body .extras-page-head {
    row-gap: 10px;
}

.admin-body .table-wrap,
.admin-body .report-table-wrap,
.admin-body .campaign-table-wrap,
.admin-body .reservation-table-wrap,
.admin-body .review-table-wrap {
    position: relative;
    max-width: 100%;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: #94a3b8 #eef2f7;
    overscroll-behavior-inline: contain;
}

.admin-body :is(.table-wrap,.report-table-wrap,.campaign-table-wrap,.reservation-table-wrap,.review-table-wrap):focus-visible {
    outline: 3px solid rgba(37,99,235,.2);
    outline-offset: 2px;
}

.admin-body :is(.table,.report-table,.campaign-table,.ops-table,.activity-table) thead th,
.admin-body :is(.table,.report-table,.campaign-table,.ops-table,.activity-table) > tbody:first-child > tr:first-child > th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: #f8fafc;
    box-shadow: inset 0 -1px #dbe4f0;
}

.admin-body :is(.table,.report-table,.campaign-table,.ops-table,.activity-table) tbody tr {
    transition: background-color .14s ease, box-shadow .14s ease;
}

.admin-body :is(.table,.report-table,.campaign-table,.ops-table,.activity-table) tbody tr:hover {
    background: #f8fbff;
    box-shadow: inset 3px 0 #93c5fd;
}

.admin-modal-backdrop {
    padding: 22px;
    overflow-y: auto;
    overscroll-behavior: contain;
    backdrop-filter: blur(5px);
}

.admin-modal-card,
.admin-modal {
    max-height: calc(100vh - 44px);
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: #94a3b8 #eef2f7;
}

.admin-modal-head {
    position: sticky;
    top: 0;
    z-index: 5;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(10px);
}

.admin-modal-actions {
    position: sticky;
    bottom: 0;
    z-index: 4;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(10px);
}

.admin-body :is(.empty-state,.reservation-empty-state,.review-empty-state,.campaign-empty-state,.terminal-cart.empty) {
    color: #64748b;
    border-color: #cbd5e1;
    background: linear-gradient(180deg, #fff, #f8fafc);
}

.menu-product-row,
.menu-card,
.popular-menu-card {
    content-visibility: auto;
    contain-intrinsic-size: 180px;
}

.menu-product-row,
.menu-card,
.popular-menu-card,
.home-link-card {
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.menu-product-row:hover,
.menu-card:hover,
.popular-menu-card:hover,
.home-link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(15,23,42,.12);
}

@media (max-width: 760px) {
    .sidebar-search { margin-top: 8px; }
    .sidebar-search kbd { display: none; }
    .admin-scroll-top { right: 14px; bottom: 14px; width: 40px; height: 40px; }

    .admin-body .toolbar,
    .admin-body .section-row,
    .admin-body .settings-page-head,
    .admin-body .stock-page-head,
    .admin-body .campaign-page-head,
    .admin-body .reservation-page-head,
    .admin-body .product-toolbar,
    .admin-body .extras-page-head {
        align-items: stretch;
    }

    .admin-body :is(.toolbar-actions,.product-toolbar-actions,.reservation-head-actions,.campaign-page-actions) {
        width: 100%;
        flex-wrap: wrap;
    }

    .admin-body :is(.toolbar-actions,.product-toolbar-actions,.reservation-head-actions,.campaign-page-actions) > :is(a,button) {
        min-height: 40px;
    }

    .admin-modal-backdrop {
        align-items: flex-end;
        padding: 10px;
    }

    .admin-modal-card,
    .admin-modal {
        width: 100%;
        max-width: none;
        max-height: calc(100dvh - 20px);
        border-radius: 8px 8px 0 0;
    }
}

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

@media (max-width: 760px) {
    .public-review-shell {
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
    }

    .review-form-card,
    .review-list-card {
        min-width: 0;
        padding: 18px;
    }

    .public-subpage-header {
        min-width: 0;
    }
}

/* v0.8.1 satis oncesi urunlesme turu */
.admin-submit-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    height: 3px;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    background: rgba(37, 99, 235, .12);
    transition: opacity .15s ease;
}

.admin-submit-progress::after {
    content: "";
    display: block;
    width: 38%;
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #06b6d4, #22c55e);
    transform: translateX(-110%);
}

.admin-submit-progress.is-active { opacity: 1; }
.admin-submit-progress.is-active::after { animation: admin-submit-progress 1s ease-in-out infinite; }

@keyframes admin-submit-progress {
    50% { transform: translateX(165%); }
    100% { transform: translateX(285%); }
}

.admin-body button.is-submitting,
.admin-body input.is-submitting {
    position: relative;
    min-width: 112px;
    cursor: wait !important;
    opacity: .78;
}

.table-scroll-cue {
    display: none;
    margin: 0 0 6px auto;
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    text-align: right;
}

.table-scroll-cue.is-complete { opacity: .45; }

.admin-settings-shell {
    display: grid;
    gap: 16px;
}

.admin-settings-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    background: linear-gradient(115deg, #fff 0%, #f8fbff 62%, #eef6ff 100%);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}

.admin-settings-intro h1 {
    margin: 3px 0 5px;
    color: #0f172a;
    font-size: 22px;
    line-height: 1.15;
}

.admin-settings-intro p {
    max-width: 720px;
    margin: 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.55;
}

.settings-group-card {
    overflow: hidden;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .055);
}

.settings-group-card > .settings-section-head {
    margin: 0;
    padding: 16px 18px;
    border-bottom: 1px solid #e5edf6;
    background: #f8fbff;
}

.settings-group-card > form,
.settings-group-card > .settings-group-body {
    padding: 18px;
}

.settings-form-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    grid-column: 1 / -1;
    padding-top: 14px;
    border-top: 1px solid #e5edf6;
}

.modal-smart-form,
.profile-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.modal-smart-form > :is(.toggle-line,.admin-modal-actions),
.profile-form-grid > .settings-form-footer {
    grid-column: 1 / -1;
}

.modal-smart-form .admin-modal-actions {
    width: auto;
    margin: 4px -18px -18px;
    padding: 14px 18px;
    border-top: 1px solid #e5edf6;
}

.admin-modal-card > .settings-group-body {
    padding: 18px;
}

.menu-app-header .brand {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
}

.menu-app-header .lang-switcher a {
    min-height: 38px;
}

@media (min-width: 901px) {
    .admin-topbar {
        position: sticky;
        top: 0;
        z-index: 90;
        box-shadow: 0 8px 22px rgba(15, 23, 42, .04);
    }
}

.profile-layout {
    display: grid;
    grid-template-columns: minmax(220px, .72fr) minmax(0, 2fr);
    gap: 16px;
    align-items: start;
}

.profile-summary-card {
    display: grid;
    justify-items: center;
    gap: 9px;
    padding: 26px 20px;
    text-align: center;
}

.profile-avatar {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    border: 6px solid #eff6ff;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #0891b2);
    box-shadow: 0 12px 28px rgba(37, 99, 235, .2);
    font-size: 25px;
    font-weight: 950;
}

.profile-summary-card h2 { margin: 4px 0 0; font-size: 19px; }
.profile-summary-card p { margin: 0; color: #64748b; font-size: 12px; overflow-wrap: anywhere; }
.profile-meta-list { display: grid; width: 100%; gap: 8px; margin-top: 10px; }
.profile-meta-list span { display: flex; justify-content: space-between; gap: 12px; padding: 9px 10px; border-radius: 7px; background: #f8fafc; color: #64748b; font-size: 11px; }
.profile-meta-list strong { color: #0f172a; text-align: right; }

.password-field-wrap { position: relative; }
.password-field-wrap input { padding-right: 72px !important; }
.password-toggle-btn {
    position: absolute;
    right: 7px;
    bottom: 7px;
    min-height: 30px !important;
    padding: 0 9px !important;
    border: 0 !important;
    border-radius: 6px !important;
    color: #1d4ed8 !important;
    background: #eff6ff !important;
    font-size: 10px !important;
    box-shadow: none !important;
}

.management-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.management-summary-card {
    display: grid;
    gap: 4px;
    min-height: 82px;
    padding: 14px;
    border: 1px solid #dbe4f0;
    border-left: 4px solid var(--summary-color, #2563eb);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .05);
}

.management-summary-card strong { color: #0f172a; font-size: 23px; }
.management-summary-card span { color: #64748b; font-size: 11px; font-weight: 800; }
.management-summary-card.tone-green { --summary-color: #16a34a; }
.management-summary-card.tone-orange { --summary-color: #f59e0b; }

.legacy-management-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.legacy-management-toolbar h1 { margin: 0; }
.legacy-management-toolbar p { margin: 4px 0 0; color: #64748b; font-size: 12px; }

.integration-webhook-box {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    margin: 12px 0 18px;
    padding: 14px;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    background: linear-gradient(135deg, #eff6ff, #ffffff);
}

.integration-webhook-box > div {
    grid-column: 1 / -1;
}

.integration-webhook-box strong {
    display: block;
    color: #0f172a;
    font-size: 14px;
}

.integration-webhook-box p {
    margin: 4px 0 0;
    color: #475569;
    font-size: 12px;
}

.integration-webhook-box label {
    display: grid;
    gap: 5px;
    color: #334155;
    font-size: 11px;
    font-weight: 850;
}

.integration-webhook-box input {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    color: #0f172a;
    background: #fff;
    font-size: 12px;
}

.getir-gateway-card {
    display: grid;
    gap: 12px;
    margin: 14px 0 18px;
    padding: 14px;
    border: 1px solid #dbe4ff;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fbff, #eef4ff);
}

.getir-gateway-head {
    display: grid;
    gap: 4px;
    padding: 2px 2px 8px;
    border-bottom: 1px solid #dbe4ff;
}

.getir-gateway-head span {
    color: #2563eb;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.getir-gateway-head strong {
    color: #0f172a;
    font-size: 17px;
}

.getir-gateway-head p {
    margin: 0;
    max-width: 820px;
    color: #53657d;
    font-size: 12px;
    line-height: 1.55;
}

.getir-gateway-card .integration-webhook-box {
    margin: 0;
    border-color: #d9e5ff;
    background: #fff;
    box-shadow: none;
}

.getir-gateway-card .integration-webhook-box:first-of-type {
    border-left: 4px solid #2563eb;
}

.getir-gateway-card .integration-webhook-box + .integration-webhook-box {
    border-left: 4px solid #16a34a;
}

.getir-gateway-card .integration-webhook-box + .integration-webhook-box > div {
    display: none;
}

.getir-gateway-card .integration-webhook-box + .integration-webhook-box::before {
    content: "Müşteri RestoQR+ hedef adresleri";
    grid-column: 1 / -1;
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
}

@media (max-width: 760px) {
    .table-scroll-cue:not([hidden]) { display: block; }
    .admin-settings-intro,
    .legacy-management-toolbar { align-items: stretch; flex-direction: column; }
    .admin-settings-intro > :is(a,button),
    .legacy-management-toolbar > :is(a,button) { width: 100%; }
    .profile-layout { grid-template-columns: 1fr; }
    .modal-smart-form,
    .profile-form-grid { grid-template-columns: 1fr; }
    .integration-webhook-box { grid-template-columns: 1fr; }
    .management-summary-grid { grid-template-columns: 1fr; }
    .settings-group-card > form,
    .settings-group-card > .settings-group-body { padding: 14px; }
    .admin-modal-card > .settings-group-body { padding: 14px; }
    .modal-smart-form .admin-modal-actions { margin: 4px -14px -14px; padding: 12px 14px; }
}
.billing-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 24px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #ffffff, #eef6ff);
}

.billing-hero h2 {
    margin: 6px 0;
    font-size: 30px;
}

.billing-hero p {
    margin: 0;
    color: #5b6b83;
    font-weight: 800;
}

.billing-status {
    min-width: 150px;
    border-radius: 18px;
    padding: 18px;
    text-align: center;
    color: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .16);
}

.billing-status.is-active {
    background: linear-gradient(135deg, #16a34a, #0891b2);
}

.billing-status.is-expired {
    background: linear-gradient(135deg, #e11d48, #f97316);
}

.billing-status strong {
    display: block;
    font-size: 38px;
    line-height: 1;
}

.billing-status span {
    display: block;
    margin-top: 7px;
    font-weight: 900;
}

.billing-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    gap: 18px;
}

.billing-facts {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.billing-facts div {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid #dbe5f2;
    border-radius: 12px;
    background: #f8fafc;
}

.billing-facts span {
    color: #667891;
    font-weight: 850;
}

.billing-facts strong {
    color: #101827;
    overflow-wrap: anywhere;
}

@media (max-width: 850px) {
    .billing-hero,
    .billing-grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    .billing-status {
        min-width: 0;
    }
}
.menu-pay-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: min(100%, 360px);
    margin: 10px 0 14px;
    min-height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, #16a34a, #0891b2);
    color: #fff;
    text-decoration: none;
    font-weight: 950;
    box-shadow: 0 18px 36px rgba(22, 163, 74, .2);
}

.menu-pay-link svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.selfpay-toolbar {
    align-items: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, .08), rgba(20, 184, 166, .08));
}

.selfpay-toolbar p {
    margin: 6px 0 0;
    color: #51637a;
    font-weight: 750;
}

.selfpay-metrics {
    margin: 14px 0;
}

.selfpay-tabs {
    margin: 4px 0 14px;
}

.selfpay-tabs a {
    text-decoration: none;
}

.selfpay-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.selfpay-card {
    display: grid;
    gap: 12px;
    border-left: 5px solid #f59e0b;
}

.selfpay-card.status-paid {
    border-left-color: #16a34a;
}

.selfpay-card.status-cancelled {
    border-left-color: #dc2626;
}

.selfpay-card.status-expired {
    border-left-color: #64748b;
}

.selfpay-card header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.selfpay-card header span,
.selfpay-card small {
    color: #64748b;
    font-weight: 800;
}

.selfpay-card h2 {
    margin: 4px 0 0;
    font-size: 24px;
}

.selfpay-card header strong {
    font-size: 22px;
    color: #0f172a;
    white-space: nowrap;
}

.selfpay-card p {
    margin: 0;
    color: #334155;
    font-weight: 800;
}

.selfpay-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.selfpay-meta span {
    border-radius: 999px;
    background: #eef6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 950;
    padding: 7px 10px;
}

.selfpay-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 4px;
}

.selfpay-actions form {
    margin: 0;
}
