/* =====================================================================
   Café Manager – theme (from Claude Design "Cafe Order Manager")
   Bootstrap 5.3 is used for grid, modals, dropdowns and collapse;
   this file gives everything the design's look.
   ===================================================================== */
:root {
    /* Design tokens */
    --c-bg: #FAF7F2;
    --c-text: #2B211A;
    --c-label: #4A3426;
    --c-muted: #857668;
    --c-muted-2: #A2927F;
    --c-primary: #6B4226;
    --c-primary-hover: #573419;
    --c-primary-light: #8A5A33;
    --c-sidebar: #3B2517;
    --c-border: #E8E0D6;
    --c-border-soft: #EFE7DC;
    --c-line: #F1EAE0;
    --c-line-soft: #F7F1E8;
    --c-head: #F8F4EE;
    --c-hover: #FDFBF8;
    --c-input: #FDFBF8;
    --c-tan: #F4EDE4;
    --c-brown-soft: #F6EFE7;
    --c-brown-border: #E6D8C8;
    --c-dashed: #D9CBB9;
    --c-green: #1E7A4F; --c-green-bg: #ECF7F0; --c-green-border: #CBE8D7;
    --c-red: #B23A2F;   --c-red-bg: #FCEEEC;   --c-red-border: #F3D5D0;
    --c-amber: #9A6B06; --c-amber-bg: #FDF4E3; --c-amber-border: #F0E0BC; --c-amber-strong: #C98A10;
    --c-blue: #2F5D8A;  --c-blue-bg: #EDF3F9;  --c-blue-border: #D2E2F0;
    --focus-ring: 0 0 0 3px rgba(107, 66, 38, .09);
    --sidebar-w: 242px;
    --sidebar-w-collapsed: 62px;

    /* Bootstrap overrides */
    --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Instrument Serif', serif;
    --bs-body-font-family: var(--font-body);
    --bs-body-font-size: 14px;
    --bs-body-color: var(--c-text);
    --bs-body-bg: var(--c-bg);
    --bs-border-color: var(--c-border);
    --bs-primary: var(--c-primary);
    --bs-primary-rgb: 107, 66, 38;
    --bs-link-color: var(--c-primary);
    --bs-link-color-rgb: 107, 66, 38;
    --bs-link-hover-color: var(--c-primary-light);
    --bs-link-hover-color-rgb: 138, 90, 51;
    --bs-border-radius: 9px;
    --bs-focus-ring-color: rgba(107, 66, 38, .09);
}

* { box-sizing: border-box; }
html, body { background: var(--c-bg); color: var(--c-text); -webkit-font-smoothing: antialiased; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-primary-light); text-decoration: underline; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--c-dashed); border-radius: 8px; border: 3px solid var(--c-bg); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.num, .tabular { font-variant-numeric: tabular-nums; }
.text-muted { color: var(--c-muted) !important; }
.text-label { color: var(--c-label) !important; }
.text-green { color: var(--c-green) !important; }
.text-red { color: var(--c-red) !important; }
.text-amber { color: var(--c-amber) !important; }
.text-primary { color: var(--c-primary) !important; }
.serif { font-family: var(--font-display); font-weight: 400; }
.min-w-0 { min-width: 0; }
.fs-13 { font-size: 13px; }

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */
.btn {
    font-family: inherit; font-size: 13.5px; font-weight: 600; border-radius: 10px;
    padding: 10px 17px; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    white-space: nowrap; transition: background-color .12s, border-color .12s, color .12s;
}
.btn:focus-visible { box-shadow: var(--focus-ring); }
.btn-sm { font-size: 12.5px; padding: 7px 12px; border-radius: 8px; gap: 6px; }
.btn-tb { font-size: 13px; padding: 8px 12px; border-radius: 9px; gap: 6px; }
.btn-primary {
    --bs-btn-color: #fff; --bs-btn-bg: var(--c-primary); --bs-btn-border-color: var(--c-primary);
    --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--c-primary-hover); --bs-btn-hover-border-color: var(--c-primary-hover);
    --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--c-primary-hover); --bs-btn-active-border-color: var(--c-primary-hover);
    --bs-btn-disabled-color: #fff; --bs-btn-disabled-bg: var(--c-primary); --bs-btn-disabled-border-color: var(--c-primary);
    font-weight: 700;
}
.btn-secondary, .btn-light, .btn-outline-secondary {
    --bs-btn-color: var(--c-label); --bs-btn-bg: #fff; --bs-btn-border-color: var(--c-border);
    --bs-btn-hover-color: var(--c-label); --bs-btn-hover-bg: var(--c-head); --bs-btn-hover-border-color: var(--c-dashed);
    --bs-btn-active-color: var(--c-label); --bs-btn-active-bg: var(--c-head); --bs-btn-active-border-color: var(--c-dashed);
    --bs-btn-disabled-color: var(--c-muted-2); --bs-btn-disabled-bg: var(--c-tan); --bs-btn-disabled-border-color: var(--c-border);
}
.btn-success { --bs-btn-bg: var(--c-green); --bs-btn-border-color: var(--c-green); --bs-btn-hover-bg: #17643F; --bs-btn-hover-border-color: #17643F; font-weight: 700; }
.btn-danger { --bs-btn-bg: var(--c-red); --bs-btn-border-color: var(--c-red); --bs-btn-hover-bg: #962F26; --bs-btn-hover-border-color: #962F26; --bs-btn-active-bg: #962F26; font-weight: 700; }
.btn-outline-danger { --bs-btn-color: var(--c-red); --bs-btn-border-color: var(--c-red-border); --bs-btn-bg: #fff; --bs-btn-hover-color: var(--c-red); --bs-btn-hover-bg: var(--c-red-bg); --bs-btn-hover-border-color: var(--c-red-border); --bs-btn-active-bg: var(--c-red-bg); --bs-btn-active-color: var(--c-red); }
.btn-excel { --bs-btn-color: var(--c-green); --bs-btn-bg: #fff; --bs-btn-border-color: var(--c-green-border); --bs-btn-hover-color: var(--c-green); --bs-btn-hover-bg: var(--c-green-bg); --bs-btn-hover-border-color: var(--c-green-border); --bs-btn-active-bg: var(--c-green-bg); --bs-btn-active-color: var(--c-green); }
.btn-pdf { --bs-btn-color: var(--c-red); --bs-btn-bg: #fff; --bs-btn-border-color: var(--c-red-border); --bs-btn-hover-color: var(--c-red); --bs-btn-hover-bg: var(--c-red-bg); --bs-btn-hover-border-color: var(--c-red-border); --bs-btn-active-bg: var(--c-red-bg); --bs-btn-active-color: var(--c-red); }
.btn-link { color: var(--c-primary); font-weight: 600; text-decoration: none; }
.btn-link:hover { color: var(--c-primary-hover); text-decoration: underline; }

/* Square icon buttons (view / edit / delete) */
.btn-icon {
    width: 28px; height: 28px; padding: 0; border-radius: 7px; font-size: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid var(--c-border); color: var(--c-label);
}
.btn-icon:hover { background: var(--c-head); color: var(--c-label); text-decoration: none; }
.btn-icon.danger { border-color: var(--c-red-border); color: var(--c-red); }
.btn-icon.danger:hover { background: var(--c-red-bg); }
.btn-icon.lg { width: 38px; height: 38px; border-radius: 10px; font-size: 16px; }

/* Call / WhatsApp chips */
.chip-call, .chip-wa {
    width: 27px; height: 27px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center;
    font-size: 12px; text-decoration: none !important; flex: 0 0 auto;
}
.chip-call { background: var(--c-brown-soft); color: var(--c-primary); }
.chip-wa { background: var(--c-green-bg); color: var(--c-green); font-size: 13px; }
.chip-call:hover { color: var(--c-primary-hover); background: var(--c-brown-border); }
.chip-wa:hover { color: var(--c-green); background: var(--c-green-border); }
.btn-call, .btn-wa {
    display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; border-radius: 9px;
    padding: 9px 14px; text-decoration: none !important;
}
.btn-call { color: var(--c-primary); background: var(--c-brown-soft); border: 1px solid var(--c-brown-border); }
.btn-wa { color: var(--c-green); background: var(--c-green-bg); border: 1px solid var(--c-green-border); }
.phone-cell { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.phone-cell span { font-variant-numeric: tabular-nums; color: var(--c-label); }

/* ---------------------------------------------------------------------
   Badges (pills)
   --------------------------------------------------------------------- */
.pill {
    display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700;
    border-radius: 20px; padding: 3px 10px; border: 1px solid; white-space: nowrap; line-height: 1.4;
}
.pill-green { color: var(--c-green); background: var(--c-green-bg); border-color: var(--c-green-border); }
.pill-amber { color: var(--c-amber); background: var(--c-amber-bg); border-color: var(--c-amber-border); }
.pill-red { color: var(--c-red); background: var(--c-red-bg); border-color: var(--c-red-border); }
.pill-grey { color: var(--c-muted); background: var(--c-tan); border-color: var(--c-border); }
.pill-brown { color: var(--c-primary); background: var(--c-brown-soft); border-color: var(--c-brown-border); }
.pill-blue { color: var(--c-blue); background: var(--c-blue-bg); border-color: var(--c-blue-border); }

/* ---------------------------------------------------------------------
   Forms
   --------------------------------------------------------------------- */
.form-label, .field-label { font-size: 12.5px; font-weight: 600; color: var(--c-label); margin-bottom: 5px; }
.required::after { content: ' *'; color: var(--c-red); }
.form-control, .form-select {
    font-family: inherit; font-size: 13.5px; color: var(--c-text); background-color: var(--c-input);
    border: 1px solid var(--c-border); border-radius: 9px; padding: 10px 12px; box-shadow: none;
}
.form-select { padding-right: 34px; }
.form-control:focus, .form-select:focus { border-color: var(--c-primary); background-color: #fff; box-shadow: var(--focus-ring); color: var(--c-text); }
.form-control::placeholder { color: var(--c-muted-2); }
.form-control:disabled, .form-select:disabled, .form-control[readonly] { background-color: var(--c-tan); color: var(--c-muted-2); border-color: var(--c-border); }
.form-control.is-invalid, .form-select.is-invalid, .was-validated .form-control:invalid {
    border-color: var(--c-red-border); background-image: none; padding-right: 12px;
}
.form-control.is-invalid:focus, .form-select.is-invalid:focus { border-color: var(--c-red); box-shadow: 0 0 0 3px rgba(178, 58, 47, .09); }
.invalid-feedback { font-size: 11.5px; color: var(--c-red); margin-top: 5px; }
.invalid-feedback::before { content: '\F333'; font-family: 'bootstrap-icons'; margin-right: 5px; vertical-align: -1px; }
.form-text { font-size: 12px; color: var(--c-muted); margin-top: 5px; }
.form-check-input { width: 16px; height: 16px; border-color: var(--c-dashed); margin-top: .15em; }
.form-check-input:checked { background-color: var(--c-primary); border-color: var(--c-primary); }
.form-check-input:focus { border-color: var(--c-primary); box-shadow: var(--focus-ring); }
.form-switch .form-check-input { width: 2.1em; height: 1.15em; }
.form-check-label { font-size: 13px; color: var(--c-label); }
.input-group-text { background: var(--c-head); border-color: var(--c-border); color: var(--c-muted); font-size: 13px; border-radius: 9px; }
.input-group > .btn { border-color: var(--c-border); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 13px; }
.form-grid .span-2 { grid-column: span 2; }
@media (max-width: 520px) { .form-grid .span-2 { grid-column: auto; } }
.form-section + .form-section { border-top: 1px solid var(--c-line); padding-top: 16px; margin-top: 18px; }
.form-section-title { font-size: 15px; font-weight: 700; margin-bottom: 13px; }
.form-actions { display: flex; gap: 9px; flex-wrap: wrap; border-top: 1px solid var(--c-line); padding-top: 16px; margin-top: 18px; }

/* Toggle cards (bordered label with switch + sub text) */
.toggle-card { display: flex; align-items: center; gap: 12px; border: 1px solid var(--c-border-soft); border-radius: 11px; padding: 13px 14px; cursor: pointer; margin: 0; }
.toggle-card:hover { background: var(--c-hover); }
.toggle-card .form-check-input { flex: 0 0 auto; margin: 0; }
.toggle-card .t-title { font-size: 13.5px; font-weight: 600; color: var(--c-text); }
.toggle-card .t-sub { font-size: 12px; color: var(--c-muted); }

/* Upload boxes */
.upload-box {
    border: 1.5px dashed var(--c-dashed); border-radius: 14px; background: var(--c-input);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    color: var(--c-muted-2); text-align: center; overflow: hidden; position: relative; cursor: pointer;
}
.upload-box i { font-size: 22px; }
.upload-box span { font-size: 10.5px; font-weight: 600; }
.upload-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.upload-box input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-box:hover { border-color: var(--c-primary); }

/* ---------------------------------------------------------------------
   Cards / panels
   --------------------------------------------------------------------- */
.panel { background: #fff; border: 1px solid var(--c-border); border-radius: 16px; min-width: 0; }
.panel-body { padding: 20px; }
.panel-pad { padding: 16px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--c-line); }
.panel-title { font-size: 15px; font-weight: 700; margin: 0; }
.panel-sub { font-size: 12.5px; color: var(--c-muted); margin-top: 2px; }
.panel-soft { background: var(--c-head); border: 1px solid var(--c-border-soft); border-radius: 16px; padding: 18px; }
.panel-row { display: flex; align-items: center; gap: 11px; padding: 12px 18px; border-bottom: 1px solid var(--c-line-soft); }
.panel-row:last-child { border-bottom: 0; }
.info-box { display: flex; gap: 10px; background: var(--c-head); border: 1px solid var(--c-border-soft); border-radius: 12px; padding: 14px; font-size: 12.5px; color: var(--c-label); line-height: 1.55; }
.info-box > i { color: var(--c-primary); font-size: 15px; }
.grid-auto { display: grid; gap: 14px; align-items: start; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.span-2 { grid-column: span 2; }
@media (max-width: 700px) { .grid-auto .span-2 { grid-column: auto; } .grid-auto { grid-template-columns: 1fr; } }
.stack { display: flex; flex-direction: column; gap: 18px; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px 28px; }
.detail-label { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--c-muted-2); }
.detail-value { font-size: 14px; font-weight: 600; margin-top: 4px; word-break: break-word; }
.avatar-sq {
    width: 32px; height: 32px; flex: 0 0 32px; border-radius: 9px; background: var(--c-brown-soft); color: var(--c-primary);
    font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
}
.avatar-sq img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sq.dark { background: var(--c-primary); color: #fff; }
.avatar-sq.xl { width: 62px; height: 62px; flex-basis: 62px; border-radius: 16px; font-size: 22px; }
.avatar-sq.lg { width: 52px; height: 52px; flex-basis: 52px; border-radius: 14px; font-size: 17px; }
.empty-box { border: 1.5px dashed var(--c-border); border-radius: 12px; padding: 26px; text-align: center; }
.empty-box .e-icon { font-size: 26px; color: var(--c-dashed); line-height: 1; }
.empty-box .e-title { font-size: 13.5px; font-weight: 700; margin-top: 9px; }
.empty-box .e-sub { font-size: 12.5px; color: var(--c-muted); margin-top: 3px; }

/* Money card */
.money-card { background: #fff; border: 1px solid var(--c-border); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; box-shadow: 0 1px 2px rgba(43,33,26,.04); }
.money-card .mc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.money-card .mc-label { font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--c-muted); line-height: 1.3; }
.money-card .mc-icon { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.money-card .mc-value { font-size: 30px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.money-card .mc-sub { font-size: 12.5px; color: var(--c-muted); line-height: 1.4; }
.tone-brown .mc-icon { background: var(--c-brown-soft); color: var(--c-primary); } .tone-brown .mc-value { color: var(--c-text); }
.tone-green .mc-icon { background: var(--c-green-bg); color: var(--c-green); } .tone-green .mc-value { color: var(--c-green); }
.tone-red .mc-icon { background: var(--c-red-bg); color: var(--c-red); } .tone-red .mc-value { color: var(--c-red); }
.tone-amber .mc-icon { background: var(--c-amber-bg); color: var(--c-amber); } .tone-amber .mc-value { color: var(--c-amber); }
@media (max-width: 575px) { .money-card .mc-value { font-size: 24px; } }

/* ---------------------------------------------------------------------
   App shell: sidebar, top bar, page header
   --------------------------------------------------------------------- */
.app-shell { display: flex; min-height: 100vh; }
.app-sidebar {
    width: var(--sidebar-w); flex: 0 0 auto; background: var(--c-sidebar) !important; color: #E9DED1;
    display: flex; flex-direction: column; transition: width .18s ease; z-index: 1040;
    --bs-offcanvas-width: 270px; --bs-offcanvas-bg: var(--c-sidebar); --bs-offcanvas-color: #E9DED1;
}
@media (min-width: 992px) {
    .app-sidebar { position: sticky; top: 0; height: 100vh; }
    body.sidebar-collapsed .app-sidebar { width: var(--sidebar-w-collapsed); }
    body.sidebar-collapsed .app-sidebar .hide-collapsed { display: none !important; }
    body.sidebar-collapsed .side-link { justify-content: center; }
    body.sidebar-collapsed .side-group { visibility: hidden; height: 14px; padding: 0; }
    body.sidebar-collapsed .side-collapse i { transform: rotate(180deg); }
}
@media (max-width: 991.98px) { .app-sidebar { width: 270px; } }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 16px 14px; border-bottom: 1px solid rgba(233,222,209,.12); min-height: 64px; color: #fff; text-decoration: none !important; }
.side-brand .b-icon { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 11px; background: var(--c-brown-soft); color: var(--c-primary); display: flex; align-items: center; justify-content: center; font-size: 18px; overflow: hidden; }
.side-brand .b-icon img { width: 100%; height: 100%; object-fit: cover; }
.side-brand .b-name { font-family: var(--font-display); font-size: 19px; line-height: 1.1; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-brand .b-sub { font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(233,222,209,.55); font-weight: 600; white-space: nowrap; }
.side-nav { flex: 1; overflow-y: auto; padding: 10px 8px 20px; display: flex; flex-direction: column; gap: 2px; }
.side-nav::-webkit-scrollbar-thumb { background: rgba(233,222,209,.2); border-color: var(--c-sidebar); }
.side-group { font-size: 9.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(233,222,209,.38); padding: 14px 10px 6px; }
.side-link {
    display: flex; align-items: center; gap: 11px; width: 100%; font-size: 13.5px; font-weight: 500;
    color: rgba(233,222,209,.82); border-radius: 10px; padding: 10px 11px; text-decoration: none !important;
}
.side-link i { font-size: 16px; flex: 0 0 16px; }
.side-link span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-link:hover { background: rgba(246,239,231,.1); color: #fff; }
.side-link.active { background: var(--c-primary); color: #fff; font-weight: 600; }
.side-link.soon { opacity: .45; pointer-events: none; }
.side-link .soon-tag { margin-left: auto; font-size: 9.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: rgba(246,239,231,.12); border-radius: 10px; padding: 1px 6px; }
.side-collapse {
    display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; color: rgba(233,222,209,.7);
    background: rgba(0,0,0,.14); border: none; border-top: 1px solid rgba(233,222,209,.12); padding: 12px 14px; text-align: left; width: 100%;
}
.side-collapse:hover { color: #fff; }

.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-topbar {
    position: sticky; top: 0; z-index: 1020; background: rgba(250,247,242,.92); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--c-border); display: flex; align-items: center; gap: 12px; padding: 11px 20px; min-height: 64px;
}
.top-search { position: relative; display: flex; align-items: center; flex: 1; max-width: 400px; min-width: 0; }
.top-search > i { position: absolute; left: 12px; font-size: 13.5px; color: var(--c-muted-2); }
.top-search input { width: 100%; font-size: 13.5px; background: #fff; border: 1px solid var(--c-border); border-radius: 10px; padding: 9px 12px 9px 34px; outline: none; }
.top-search input:focus { border-color: var(--c-primary); box-shadow: var(--focus-ring); }
.top-search .search-results { position: absolute; top: 44px; left: 0; right: 0; background: #fff; border: 1px solid var(--c-border); border-radius: 12px; box-shadow: 0 18px 44px rgba(43,33,26,.16); padding: 6px; display: none; z-index: 30; max-height: 360px; overflow-y: auto; }
.top-search .search-results.show { display: block; }
.top-search .search-results a { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 8px; color: var(--c-text); font-size: 13px; text-decoration: none; }
.top-search .search-results a:hover, .top-search .search-results a.focus { background: var(--c-head); }
.top-search .search-results .sr-group { font-size: 11px; color: var(--c-muted-2); margin-left: auto; }
.top-btn { width: 38px; height: 38px; border-radius: 10px; background: #fff; border: 1px solid var(--c-border); color: var(--c-label); font-size: 16px; display: inline-flex; align-items: center; justify-content: center; position: relative; }
.top-btn:hover { background: var(--c-head); }
.top-btn .count { position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; border-radius: 9px; background: var(--c-red); color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.user-btn { display: flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--c-border); border-radius: 10px; padding: 5px 10px 5px 5px; }
.user-btn:hover { background: var(--c-head); }
.user-btn .u-avatar { width: 28px; height: 28px; border-radius: 8px; background: var(--c-primary); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.user-btn .u-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-btn .u-name { font-size: 12.5px; font-weight: 700; color: var(--c-text); line-height: 1.2; text-align: left; }
.user-btn .u-role { font-size: 10.5px; color: var(--c-muted); text-align: left; }
.dropdown-menu { border: 1px solid var(--c-border); border-radius: 12px; box-shadow: 0 18px 44px rgba(43,33,26,.16); padding: 6px; font-size: 13px; animation: fadeUp .16s ease both; }
.dropdown-item { border-radius: 8px; padding: 9px 10px; color: var(--c-text); display: flex; align-items: center; gap: 9px; font-weight: 500; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--c-head); color: var(--c-text); }
.dropdown-item:active { background: var(--c-brown-soft); color: var(--c-text); }
.dropdown-item.text-danger:hover { background: var(--c-red-bg); }
.dropdown-divider { border-color: var(--c-line); }
.notif-menu { width: 330px; padding: 0; overflow: hidden; }
.notif-menu .n-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--c-line); }
.notif-menu .n-item { display: flex; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--c-line-soft); }
.n-icon { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 9px; background: var(--c-brown-soft); color: var(--c-primary); display: flex; align-items: center; justify-content: center; font-size: 14px; }

.page-head { padding: 20px 20px 10px; }
.crumbs { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--c-muted); flex-wrap: wrap; }
.crumbs a { color: var(--c-muted); font-weight: 500; }
.crumbs i { font-size: 9px; }
.crumbs .current { color: var(--c-label); font-weight: 600; }
.page-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.page-title { margin: 0; font-size: 25px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.page-subtitle { font-size: 13.5px; color: var(--c-muted); margin-top: 4px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.app-content { flex: 1; padding: 10px 20px 60px; min-width: 0; }
@media (max-width: 575px) {
    .app-topbar { padding: 10px 14px; }
    .page-head { padding: 16px 16px 8px; }
    .app-content { padding: 8px 16px 48px; }
    .page-title { font-size: 21px; }
}

/* ---------------------------------------------------------------------
   Data table (design: TableToolbar + table + pagination)
   --------------------------------------------------------------------- */
.dt-card { background: #fff; border: 1px solid var(--c-border); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tb-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.tb-group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; }
.tb-search { position: relative; display: flex; align-items: center; }
.tb-search i { position: absolute; left: 11px; font-size: 13px; color: var(--c-muted-2); }
.tb-search input { font-size: 13.5px; color: var(--c-text); background: #fff; border: 1px solid var(--c-border); border-radius: 9px; padding: 8px 12px 8px 32px; width: 230px; outline: none; }
.tb-search input:focus { border-color: var(--c-primary); box-shadow: var(--focus-ring); }
@media (max-width: 575px) { .tb-search, .tb-search input { width: 100%; } .tb-group:first-child { width: 100%; } }
.tb-select { font-size: 13px; font-weight: 500; color: var(--c-label); background-color: #fff; border: 1px solid var(--c-border); border-radius: 9px; padding: 8px 32px 8px 10px; width: auto; }
.tb-count { background: var(--c-primary); color: #fff; border-radius: 20px; font-size: 11px; padding: 1px 6px; font-weight: 700; }
.tb-panel { background: #fff; border: 1px solid var(--c-border); border-radius: 12px; padding: 16px; }
.tb-panel .p-title { font-size: 12.5px; font-weight: 700; color: var(--c-text); }
.tb-panel .filter-label { font-size: 12px; font-weight: 600; color: var(--c-muted); margin-bottom: 5px; }
.tb-panel .form-control, .tb-panel .form-select { background-color: #fff; padding: 8px 11px; }
.tb-panel .form-select { padding-right: 32px; }
.columns-list { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.bulk-bar { display: none; align-items: center; gap: 8px 12px; background: var(--c-sidebar); border-radius: 11px; padding: 9px 14px; flex-wrap: wrap; }
.bulk-bar.show { display: flex; }
.bulk-bar .b-count { font-size: 12.5px; font-weight: 700; color: #fff; margin-right: auto; }
.bulk-bar .b-btn { font-size: 12.5px; font-weight: 600; border: none; border-radius: 8px; padding: 6px 12px; color: #fff; background: rgba(246,239,231,.16); display: inline-flex; align-items: center; gap: 5px; }
.bulk-bar .b-btn:hover { background: rgba(246,239,231,.26); }
.bulk-bar .b-btn.green { color: var(--c-sidebar); background: var(--c-green-bg); }
.bulk-bar .b-btn.amber { color: var(--c-sidebar); background: var(--c-amber-bg); }
.bulk-bar .b-btn.danger { background: var(--c-red); }
.bulk-bar .b-btn.danger:hover { background: #962F26; }
.bulk-bar .b-clear { background: none; border: none; color: rgba(246,239,231,.7); font-size: 12.5px; font-weight: 600; }
.bulk-bar .b-clear:hover { color: #fff; }

.table-wrap { overflow-x: auto; border: 1px solid var(--c-border-soft); border-radius: 12px; }
table.app-table { width: 100% !important; font-size: 13px; margin: 0 !important; border-collapse: collapse !important; }
table.app-table thead th {
    background: var(--c-head); padding: 11px 12px !important; text-align: left; font-size: 11.5px; font-weight: 700;
    letter-spacing: .05em; text-transform: uppercase; color: var(--c-muted); white-space: nowrap; border-bottom: 0 !important;
}
table.app-table tbody td { padding: 11px 12px !important; border-top: 1px solid var(--c-line); border-bottom: 0 !important; vertical-align: middle; color: var(--c-text); background: transparent; box-shadow: none !important; }
table.app-table tbody tr:hover > td { background: var(--c-hover); }
table.app-table tbody tr.selected > td { background: var(--c-brown-soft) !important; }
table.app-table .text-end { text-align: right !important; }
table.app-table .col-check { width: 40px; text-align: center; }
table.app-table .col-actions { width: 1%; white-space: nowrap; text-align: right; }
table.app-table thead th.text-end { text-align: right; }
.cell-title { font-size: 13.5px; font-weight: 600; color: var(--c-text); }
a.cell-title:hover { color: var(--c-primary); }
.cell-sub { font-size: 11.5px; color: var(--c-muted); font-weight: 400; }
.row-actions { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }

/* DataTables pieces */
.dt-card div.dt-container { display: flex; flex-direction: column; gap: 14px; }
.dt-card div.dt-container div.dt-layout-row { margin: 0; }
.dt-card div.dt-container div.dt-layout-table { margin: 0; }
.dt-card div.dt-container .dt-layout-row:not(.dt-layout-table) { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.dt-card div.dt-container .dt-info { font-size: 12.5px; color: var(--c-muted); padding: 0; }
.dt-card div.dt-container .dt-paging nav { display: flex; }
.dt-card div.dt-container .dt-paging .pagination { margin: 0; gap: 5px; flex-wrap: wrap; }
.dt-card div.dt-container .dt-paging .page-link {
    font-size: 12.5px; font-weight: 600; color: var(--c-label); background: #fff; border: 1px solid var(--c-border);
    border-radius: 8px !important; padding: 6px 11px; min-width: 34px; text-align: center; box-shadow: none;
}
.dt-card div.dt-container .dt-paging .page-link:hover { background: var(--c-head); }
.dt-card div.dt-container .dt-paging .page-item.active .page-link { color: #fff; background: var(--c-primary); border-color: var(--c-primary); font-weight: 700; }
.dt-card div.dt-container .dt-paging .page-item.disabled .page-link { color: var(--c-muted-2); background: #fff; }
.dt-card div.dt-processing { margin: 0; transform: translate(-50%, -50%); top: 50%; left: 50%; width: auto; background: #fff; border: 1px solid var(--c-border); border-radius: 12px; box-shadow: 0 12px 30px rgba(43,33,26,.12); padding: 12px 18px; font-size: 13px; font-weight: 600; color: var(--c-label); }
.dt-card div.dt-processing > div:last-child { display: none; }
table.app-table thead > tr > th.dt-orderable-asc span.dt-column-order,
table.app-table thead > tr > th.dt-orderable-desc span.dt-column-order { right: 6px; }
table.app-table thead > tr > th.dt-orderable-asc, table.app-table thead > tr > th.dt-orderable-desc { padding-right: 24px !important; }
table.app-table thead > tr > th.dt-ordering-asc, table.app-table thead > tr > th.dt-ordering-desc { color: var(--c-primary); }
.dt-empty .empty-state { padding: 34px 10px; text-align: center; }
.empty-state .e-icon { font-size: 26px; color: var(--c-dashed); line-height: 1; }
.empty-state .e-title { font-size: 13.5px; font-weight: 700; margin-top: 9px; color: var(--c-text); }
.empty-state .e-sub { font-size: 12.5px; color: var(--c-muted); margin-top: 3px; }

/* ---------------------------------------------------------------------
   Modals, toasts
   --------------------------------------------------------------------- */
.modal-backdrop.show { background: #2B211A; opacity: .42; }
.modal-content { border: 0; border-radius: 16px; box-shadow: 0 24px 60px rgba(43,33,26,.28); overflow: hidden; }
.modal-header { padding: 16px 20px; border-bottom: 1px solid var(--c-border-soft); }
.modal-title { font-size: 16px; font-weight: 700; }
.modal-body { padding: 18px 20px; }
.modal-footer { padding: 14px 20px; border-top: 1px solid var(--c-border-soft); background: var(--c-hover); gap: 8px; }
.modal-footer > * { margin: 0; }
.btn-close { font-size: 13px; }
.confirm-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--c-red-bg); color: var(--c-red); display: flex; align-items: center; justify-content: center; font-size: 23px; margin: 0 auto; }
.confirm-icon.brown { background: var(--c-brown-soft); color: var(--c-primary); }

.import-steps { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.import-steps .st { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; font-size: 12.5px; font-weight: 600; color: var(--c-label); }
.import-steps .st .n { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; background: var(--c-line); color: var(--c-muted-2); display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 700; }
.import-steps .st.on .n { background: var(--c-primary); color: #fff; }
.import-drop { border: 1.5px dashed var(--c-dashed); border-radius: 12px; padding: 28px; text-align: center; background: var(--c-hover); position: relative; cursor: pointer; }
.import-drop:hover, .import-drop.drag { border-color: var(--c-primary); }
.import-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.import-drop .d-icon { font-size: 26px; color: var(--c-muted-2); line-height: 1; }
.import-drop .d-title { font-size: 13.5px; font-weight: 600; color: var(--c-text); margin-top: 8px; }
.import-drop .d-sub { font-size: 12px; color: var(--c-muted); margin-top: 3px; }
.import-preview { max-height: 340px; overflow: auto; border: 1px solid var(--c-border-soft); border-radius: 12px; }
.import-preview table { width: 100%; font-size: 12.5px; border-collapse: collapse; }
.import-preview th { background: var(--c-head); color: var(--c-muted); font-weight: 600; padding: 9px 12px; text-align: left; position: sticky; top: 0; white-space: nowrap; }
.import-preview td { padding: 9px 12px; border-top: 1px solid var(--c-line); color: var(--c-text); }
.import-preview tr.has-error td { background: var(--c-red-bg); color: var(--c-red); }
.import-preview .err-note { padding: 10px 12px; background: var(--c-hover); border-top: 1px solid var(--c-line); font-size: 12.5px; color: var(--c-red); font-weight: 600; }

.toast-area { position: fixed; right: 18px; bottom: 18px; z-index: 1090; display: flex; flex-direction: column; gap: 9px; max-width: 340px; }
.app-toast {
    background: #fff; border: 1px solid var(--c-green-border); border-left: 4px solid var(--c-green); border-radius: 12px;
    box-shadow: 0 16px 40px rgba(43,33,26,.18); padding: 13px 16px; display: flex; align-items: center; gap: 11px; animation: fadeUp .2s ease both;
}
.app-toast > i { font-size: 17px; color: var(--c-green); }
.app-toast .t-title { font-size: 13.5px; font-weight: 700; color: var(--c-text); }
.app-toast .t-body { font-size: 12.5px; color: var(--c-muted); margin-top: 1px; }
.app-toast.danger { border-color: var(--c-red-border); border-left-color: var(--c-red); } .app-toast.danger > i { color: var(--c-red); }
.app-toast.warning { border-color: var(--c-amber-border); border-left-color: var(--c-amber-strong); } .app-toast.warning > i { color: var(--c-amber); }
.app-toast.info { border-color: var(--c-brown-border); border-left-color: var(--c-primary); } .app-toast.info > i { color: var(--c-primary); }
.app-toast.hide { opacity: 0; transform: translateY(6px); transition: all .2s; }

/* ---------------------------------------------------------------------
   Auth pages
   --------------------------------------------------------------------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 28px 18px; background: radial-gradient(1100px 600px at 18% 8%, #F2E7DA 0%, var(--c-bg) 58%); }
.auth-box { width: 100%; max-width: 400px; animation: fadeUp .35s ease both; }
.auth-brand { display: flex; align-items: center; gap: 11px; justify-content: center; margin-bottom: 22px; }
.auth-brand .a-icon { width: 44px; height: 44px; border-radius: 13px; background: var(--c-primary); color: #F6EFE7; display: flex; align-items: center; justify-content: center; font-size: 21px; overflow: hidden; }
.auth-brand .a-icon img { width: 100%; height: 100%; object-fit: cover; }
.auth-brand .a-name { font-family: var(--font-display); font-size: 25px; line-height: 1.05; color: var(--c-text); }
.auth-brand .a-sub { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted-2); font-weight: 600; }
.auth-card { background: #fff; border: 1px solid var(--c-border); border-radius: 18px; padding: 26px 24px; box-shadow: 0 12px 36px rgba(43,33,26,.07); }
.auth-card .a-title { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.auth-card .a-text { font-size: 13.5px; color: var(--c-muted); margin-top: 4px; }
.auth-card .form-control { font-size: 14px; padding: 11px 13px; border-radius: 10px; }
.auth-card .btn-primary { font-size: 14.5px; padding: 12px; border-radius: 10px; width: 100%; }
.auth-help { text-align: center; font-size: 12px; color: var(--c-muted-2); margin-top: 18px; }
.alert-soft { border-radius: 11px; padding: 11px 13px; font-size: 13px; display: flex; gap: 9px; align-items: flex-start; border: 1px solid; }
.alert-soft.green { background: var(--c-green-bg); border-color: var(--c-green-border); color: var(--c-green); }
.alert-soft.red { background: var(--c-red-bg); border-color: var(--c-red-border); color: var(--c-red); }
.alert-soft.amber { background: var(--c-amber-bg); border-color: var(--c-amber-border); color: var(--c-amber); }

/* ---------------------------------------------------------------------
   Settings, permissions, misc
   --------------------------------------------------------------------- */
.settings-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 860px) { .settings-layout { grid-template-columns: 1fr; } }
.settings-menu { background: #fff; border: 1px solid var(--c-border); border-radius: 16px; padding: 8px; }
.settings-menu a { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; color: var(--c-label); border-radius: 10px; padding: 10px 12px; text-decoration: none; }
.settings-menu a i { font-size: 15px; }
.settings-menu a:hover { background: var(--c-head); }
.settings-menu a.active { background: var(--c-primary); color: #fff; font-weight: 700; }
@media (max-width: 860px) {
    .settings-menu { display: flex; overflow-x: auto; gap: 2px; }
    .settings-menu a { white-space: nowrap; }
}
.perm-table th, .perm-table td { text-align: center; }
.perm-table th:first-child, .perm-table td:first-child { text-align: left; }
.perm-table td { padding: 9px 14px !important; }
.role-card { border: 1px solid var(--c-border-soft); border-radius: 11px; padding: 12px 14px; display: flex; align-items: center; gap: 11px; }
.role-card + .role-card { margin-top: 9px; }
.diff-old { font-size: 12.5px; color: var(--c-red); background: var(--c-red-bg); border-radius: 7px; padding: 3px 8px; }
.diff-new { font-size: 12.5px; color: var(--c-green); background: var(--c-green-bg); border-radius: 7px; padding: 3px 8px; }
.chart-bars { display: flex; align-items: flex-end; gap: 10px; margin-top: 22px; min-height: 178px; }
.chart-bars .bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.chart-bars .bar-val { font-size: 11px; font-weight: 700; color: var(--c-label); font-variant-numeric: tabular-nums; white-space: nowrap; }
.chart-bars .bar { width: 100%; max-width: 46px; background: linear-gradient(180deg, var(--c-primary-light), var(--c-primary)); border-radius: 8px 8px 3px 3px; min-height: 3px; }
.chart-bars .bar.today { background: repeating-linear-gradient(135deg, #C9A882 0 6px, #DEC4A6 6px 12px); }
.chart-bars .bar-day { font-size: 12px; font-weight: 600; color: var(--c-label); text-align: center; }
.chart-bars .bar-date { font-size: 10.5px; color: var(--c-muted-2); text-align: center; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-green); animation: pulseDot 1.6s infinite; display: inline-block; }
.progress-thin { height: 7px; border-radius: 5px; background: var(--c-tan); margin-top: 7px; overflow: hidden; }
.progress-thin > div { height: 100%; background: var(--c-primary); border-radius: 5px; }
.wa-preview { background: #E5DDD5; border-radius: 12px; padding: 16px; }
.wa-preview .bubble { background: #fff; border-radius: 10px; padding: 10px 12px; font-size: 13px; white-space: pre-wrap; max-width: 92%; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.tooltip { --bs-tooltip-bg: var(--c-sidebar); --bs-tooltip-font-size: 12px; }

/* DataTables (Bootstrap 5 build) puts the table in .row.dt-layout-table > .dt-layout-full; that cell is our bordered scroll box */
.dt-card div.dt-container > .row { --bs-gutter-x: 0; margin: 0 !important; }
.dt-card div.dt-container > .row > * { padding: 0; }
.dt-card div.dt-container div.dt-layout-table > .dt-layout-full { display: block !important; overflow-x: auto; border: 1px solid var(--c-border-soft); border-radius: 12px; position: relative; min-width: 0; }
.dt-card div.dt-container div.dt-layout-table > .dt-layout-full > table { margin: 0 !important; }
.dt-card div.dt-container > .row:not(.dt-layout-table) { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
table.app-table { min-width: 720px; }
.filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.cell-title { white-space: nowrap; }
.import-preview td:last-child { min-width: 240px; }
.btn-check:checked + .icon-choice { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.btn-check:focus-visible + .icon-choice { box-shadow: var(--focus-ring); }
table.app-table tfoot th { background: var(--c-head); border-top: 2px solid var(--c-border) !important; padding: 12px !important; font-size: 13px; font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--c-text); }

/* ---------------------------------------------------------------------
   Order entry (New Order / Staff Direct Order)
   --------------------------------------------------------------------- */
.step-dot { width: 24px; height: 24px; border-radius: 50%; background: var(--c-primary); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 24px; }
.chip { font-size: 12.5px; font-weight: 600; color: var(--c-label); background: #fff; border: 1px solid var(--c-border); border-radius: 20px; padding: 6px 14px; }
.chip:hover { background: var(--c-head); }
.chip.on { color: #fff; background: var(--c-primary); border-color: var(--c-primary); font-weight: 700; }
.oe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 11px; }
.oe-card { border: 1px solid var(--c-border-soft); border-radius: 13px; padding: 13px; display: flex; flex-direction: column; gap: 10px; background: var(--c-hover); }
.oe-card.has-qty, .oe-row.has-qty { border-color: var(--c-brown-border); background: var(--c-brown-soft); }
.oe-icon { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; background: var(--c-tan); color: var(--c-primary-light); display: inline-flex; align-items: center; justify-content: center; font-size: 16px; overflow: hidden; }
.oe-icon img { width: 100%; height: 100%; object-fit: cover; }
.oe-name { font-size: 13px; font-weight: 700; line-height: 1.25; }
.oe-price { font-size: 12px; color: var(--c-muted); font-variant-numeric: tabular-nums; }
.oe-btn { width: 32px; height: 32px; border-radius: 9px; background: #fff; border: 1px solid var(--c-border); color: var(--c-label); font-size: 14px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.oe-btn:hover { background: var(--c-tan); }
.oe-btn.plus { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.oe-btn.plus:hover { background: var(--c-primary-hover); }
.oe-qty { text-align: center; font-size: 14.5px; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 28px; }
.oe-list { display: flex; flex-direction: column; gap: 9px; }
.oe-row { display: flex; align-items: center; gap: 11px; border: 1px solid var(--c-border-soft); border-radius: 12px; padding: 11px 12px; background: #fff; }
.oe-row .oe-icon { width: 40px; height: 40px; flex-basis: 40px; border-radius: 11px; font-size: 17px; }
.oe-row .oe-name { font-size: 14px; }
.oe-row .oe-price { font-size: 12.5px; }
.oe-row .oe-btn { width: 44px; height: 44px; border-radius: 12px; font-size: 15px; }
.oe-row .oe-qty { font-size: 16px; }
.pay-mode { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; background: #fff; border: 1.5px solid var(--c-border); border-radius: 11px; padding: 12px; }
.pay-mode:hover:not(:disabled) { border-color: var(--c-dashed); background: var(--c-hover); }
.pay-mode i.pm-icon { font-size: 17px; color: var(--c-muted); }
.pay-mode .pm-title { font-size: 13.5px; font-weight: 700; color: var(--c-text); }
.pay-mode .pm-sub { font-size: 12px; color: var(--c-muted); }
.pay-mode .pm-check { display: none; color: var(--c-primary); font-size: 16px; margin-left: auto; }
.pay-mode.on { background: var(--c-brown-soft); border-color: var(--c-primary); }
.pay-mode.on i.pm-icon { color: var(--c-primary); }
.pay-mode.on .pm-check { display: inline-block; }
.pay-mode:disabled { opacity: .55; cursor: not-allowed; }
.warn-box { display: flex; gap: 9px; background: var(--c-red-bg); border: 1px solid var(--c-red-border); border-radius: 11px; padding: 12px; font-size: 12.5px; color: #8E2C23; line-height: 1.5; }
.warn-box > i { color: var(--c-red); font-size: 15px; }
@media (min-width: 992px) { .sticky-side { position: sticky; top: 84px; } }

/* ---------------------------------------------------------------------
   Live Order Board
   --------------------------------------------------------------------- */
.board { display: grid; grid-template-columns: repeat(auto-fit, minmax(252px, 1fr)); gap: 13px; align-items: start; }
.board-col { background: var(--c-tan); border: 1px solid var(--c-border); border-radius: 15px; padding: 12px; min-width: 0; }
.board-col .bc-head { display: flex; align-items: center; gap: 8px; padding: 2px 4px 11px; }
.board-col .bc-dot { width: 8px; height: 8px; border-radius: 50%; }
.board-col .bc-title { font-size: 13.5px; font-weight: 700; }
.board-col .bc-count { font-size: 11.5px; font-weight: 700; background: #fff; border-radius: 20px; padding: 2px 8px; }
.board-card { background: #fff; border: 1px solid var(--c-border); border-radius: 12px; padding: 13px; display: flex; flex-direction: column; gap: 9px; animation: fadeUp .2s ease both; }
.board-card .bk-items { font-size: 12px; color: var(--c-label); line-height: 1.45; background: var(--c-hover); border-radius: 8px; padding: 8px 10px; }
.board-card.done { opacity: .86; gap: 8px; }
.board-card.fresh { box-shadow: 0 0 0 2px var(--c-primary); }
.board-empty { text-align: center; font-size: 12.5px; color: var(--c-muted); padding: 18px 8px; border: 1.5px dashed var(--c-dashed); border-radius: 12px; }

/* ---------------------------------------------------------------------
   Order detail: timeline
   --------------------------------------------------------------------- */
.timeline-step { display: flex; gap: 12px; }
.timeline-step .tl-rail { display: flex; flex-direction: column; align-items: center; }
.timeline-step .tl-dot { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; flex: 0 0 26px; }
.timeline-step .tl-dot.done { background: var(--c-green); color: #fff; }
.timeline-step .tl-dot.cancel { background: var(--c-red); color: #fff; }
.timeline-step .tl-dot.wait { background: var(--c-tan); border: 1.5px dashed var(--c-dashed); }
.timeline-step .tl-line { width: 2px; flex: 1; min-height: 22px; background: var(--c-line); }
.timeline-step:last-child .tl-line { display: none; }
.timeline-step .tl-body { padding-bottom: 14px; }
.kv { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.kv > span:first-child { color: var(--c-muted); }

/* ---------------------------------------------------------------------
   Staff panel (phone-first, bottom tab bar)
   --------------------------------------------------------------------- */
.staff-shell { min-height: 100vh; display: flex; justify-content: center; background: var(--c-bg); }
.staff-app { width: 100%; max-width: 480px; min-height: 100vh; display: flex; flex-direction: column; border-left: 1px solid var(--c-border-soft); border-right: 1px solid var(--c-border-soft); }
.staff-header { position: sticky; top: 0; z-index: 20; background: var(--c-sidebar); color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 11px; }
.staff-header .sh-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--c-brown-soft); color: var(--c-primary); display: flex; align-items: center; justify-content: center; font-size: 16px; overflow: hidden; }
.staff-header .sh-icon img { width: 100%; height: 100%; object-fit: cover; }
.staff-header .sh-btn { width: 34px; height: 34px; border-radius: 9px; background: rgba(246,239,231,.14); border: none; color: #fff; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; position: relative; }
.staff-main { flex: 1; padding: 16px 16px 160px; display: flex; flex-direction: column; gap: 14px; }
.staff-card { background: #fff; border: 1px solid var(--c-border); border-radius: 14px; padding: 15px; }
.staff-tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 28; display: flex; justify-content: center; background: #fff; border-top: 1px solid var(--c-border); padding-bottom: env(safe-area-inset-bottom); }
.staff-tabbar .tb-inner { width: 100%; max-width: 480px; display: flex; }
.staff-tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px 11px; color: var(--c-muted-2); text-decoration: none; font-size: 11px; font-weight: 500; position: relative; }
.staff-tabbar a i { font-size: 19px; }
.staff-tabbar a.on { color: var(--c-primary); font-weight: 700; }
.staff-tabbar a .count { position: absolute; top: 4px; left: 55%; min-width: 16px; height: 16px; border-radius: 8px; background: var(--c-red); color: #fff; font-size: 9.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.staff-cartbar { position: fixed; bottom: 62px; left: 0; right: 0; z-index: 30; display: flex; justify-content: center; padding: 0 16px; }
.staff-cartbar .cb-inner { width: 100%; max-width: 448px; background: var(--c-sidebar); border-radius: 15px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; box-shadow: 0 12px 30px rgba(43,33,26,.26); }
.staff-cartbar .cb-btn { font-size: 14.5px; font-weight: 700; color: var(--c-sidebar); background: var(--c-brown-soft); border: none; border-radius: 11px; padding: 13px 20px; }
.staff-cartbar .cb-btn:disabled { opacity: .6; }
.big-action { display: flex; align-items: center; gap: 14px; width: 100%; border-radius: 16px; padding: 20px; text-align: left; text-decoration: none !important; }
.big-action .ba-icon { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.big-action.dark { background: var(--c-primary); color: #fff; }
.big-action.dark:hover { background: var(--c-primary-hover); color: #fff; }
.big-action.dark .ba-icon { background: rgba(246,239,231,.18); color: #fff; }
.big-action.light { background: #fff; border: 1px solid var(--c-border); color: var(--c-text); }
.big-action.light:hover { background: var(--c-hover); color: var(--c-text); }
.big-action.light .ba-icon { background: var(--c-brown-soft); color: var(--c-primary); }
.staff-stat { background: #fff; border: 1px solid var(--c-border); border-radius: 13px; padding: 13px 11px; text-align: center; }
.staff-stat .ss-num { font-size: 27px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.staff-stat .ss-label { font-size: 11.5px; font-weight: 600; color: var(--c-muted); margin-top: 3px; }
.staff-field { font-size: 15px !important; padding: 13px !important; border-radius: 11px !important; }
.office-chip { font-size: 12.5px; font-weight: 600; color: var(--c-label); background: var(--c-head); border: 1px solid var(--c-border-soft); border-radius: 20px; padding: 9px 14px; }
.office-chip:hover { border-color: #C9A882; }
.office-chip.on { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.office-results { border: 1px solid var(--c-border); border-radius: 11px; margin-top: 6px; max-height: 260px; overflow-y: auto; background: #fff; }
.office-results button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 11px 13px; font-size: 14px; border-bottom: 1px solid var(--c-line-soft); }
.office-results button:hover { background: var(--c-head); }

/* ---------------------------------------------------------------------
   Invoice page (A4 look) + print
   --------------------------------------------------------------------- */
.invoice-paper { background: #fff; border: 1px solid var(--c-border); border-radius: 6px; box-shadow: 0 10px 30px rgba(43,33,26,.09); width: 100%; max-width: 794px; padding: 40px 44px; margin: 0 auto; }
@media (max-width: 575px) { .invoice-paper { padding: 22px 16px; } }
.inv-label { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted-2); }
.inv-table { width: 100%; font-size: 12.5px; margin-top: 24px; border-collapse: collapse; }
.inv-table th { background: var(--c-head); padding: 9px 10px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; color: var(--c-muted); }
.inv-table td { padding: 10px; border-bottom: 1px solid var(--c-line); }
.cancel-stamp { display: inline-block; border: 2px solid var(--c-red); color: var(--c-red); font-weight: 800; letter-spacing: .12em; padding: 4px 12px; border-radius: 6px; transform: rotate(-4deg); }
@media print {
    .app-sidebar, .app-topbar, .no-print, .toast-area, .page-head { display: none !important; }
    .app-main, .app-content { margin: 0 !important; padding: 0 !important; }
    body, html { background: #fff !important; }
    .invoice-paper { border: 0; box-shadow: none; padding: 0; max-width: none; }
}

/* ---------------------------------------------------------------------
   Notifications
   --------------------------------------------------------------------- */
.notif-menu .n-item:hover { background: var(--c-head); }
.notif-menu .n-foot { border-top: 1px solid var(--c-line); padding: 4px; }
.notif-row { display: flex; gap: 13px; padding: 15px 18px; border-bottom: 1px solid var(--c-line); color: var(--c-text); text-decoration: none; }
.notif-row:last-child { border-bottom: 0; }
.notif-row:hover { background: var(--c-head); color: var(--c-text); text-decoration: none; }
.notif-row .nr-icon { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px; background: var(--c-tan); color: var(--c-muted-2); display: flex; align-items: center; justify-content: center; font-size: 17px; }
.notif-row .nr-title { font-size: 13.5px; font-weight: 600; line-height: 1.4; color: var(--c-label); }
.notif-row .nr-body { font-size: 12.5px; color: var(--c-muted); margin-top: 2px; }
.notif-row .nr-time { font-size: 12px; color: var(--c-muted-2); margin-top: 4px; }
.notif-row .nr-dot { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: var(--c-red); margin-top: 6px; }
.notif-row.unread { background: var(--c-hover); }
.notif-row.unread .nr-icon { background: var(--c-brown-soft); color: var(--c-primary); }
.notif-row.unread .nr-title { font-weight: 700; color: var(--c-text); }
.staff-header .sh-count { position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--c-red); color: #fff; font-size: 9.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

/* ---------------------------------------------------------------------
   Reports
   --------------------------------------------------------------------- */
.report-card { text-align: left; background: #fff; border: 1px solid var(--c-border); border-radius: 15px; padding: 18px; display: flex; flex-direction: column; gap: 11px; min-width: 0; color: var(--c-text); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.report-card:hover { border-color: #C9A882; box-shadow: 0 8px 22px rgba(43,33,26,.07); color: var(--c-text); text-decoration: none; }
.report-card .rc-icon { width: 38px; height: 38px; border-radius: 11px; background: var(--c-brown-soft); color: var(--c-primary); display: flex; align-items: center; justify-content: center; font-size: 17px; }
.report-card .rc-name { font-size: 14.5px; font-weight: 700; }
.report-card .rc-desc { font-size: 12.5px; color: var(--c-muted); margin-top: 3px; line-height: 1.45; }
.report-card .rc-open { font-size: 12.5px; font-weight: 600; color: var(--c-primary); margin-top: auto; }
.share-bar { height: 7px; border-radius: 5px; background: var(--c-tan); overflow: hidden; }
.share-bar > div { height: 100%; background: var(--c-primary); border-radius: 5px; }

/* ---------------------------------------------------------------------
   Client portal (phone-first, same shell as the staff panel)
   --------------------------------------------------------------------- */
.client-header { position: sticky; top: 0; z-index: 20; background: rgba(250,247,242,.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--c-border); padding: 13px 16px; display: flex; align-items: center; gap: 11px; }
.client-header .ch-logo { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; background: var(--c-primary); color: var(--c-brown-soft); display: flex; align-items: center; justify-content: center; font-size: 16px; overflow: hidden; }
.client-header .ch-logo img { width: 100%; height: 100%; object-fit: cover; }
.client-header .ch-btn { width: 34px; height: 34px; border-radius: 9px; background: #fff; border: 1px solid var(--c-border); color: var(--c-label); font-size: 15px; display: inline-flex; align-items: center; justify-content: center; position: relative; }
.client-header .ch-btn .dot { position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--c-red); }
.client-main { flex: 1; padding: 16px 16px 100px; display: flex; flex-direction: column; gap: 14px; }
.client-main.has-cartbar { padding-bottom: 170px; }
.c-card { background: #fff; border: 1px solid var(--c-border); border-radius: 14px; }
.c-card.r16 { border-radius: 16px; }
.c-pad { padding: 15px; }
.c-title { font-size: 14px; font-weight: 700; }
.c-sub { font-size: 12.5px; color: var(--c-muted); }
.c-balance { background: var(--c-primary); border-radius: 17px; padding: 20px; color: #fff; }
.c-balance .cb-label { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(246,239,231,.68); }
.c-balance .cb-big { font-size: 36px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 5px; line-height: 1.15; }
.c-balance .cb-row { display: flex; gap: 20px; margin-top: 16px; padding-top: 15px; border-top: 1px solid rgba(246,239,231,.18); }
.c-balance .cb-small { font-size: 11.5px; color: rgba(246,239,231,.68); }
.c-balance .cb-val { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 2px; }
.c-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 14.5px; font-weight: 700; border-radius: 13px; padding: 15px; text-decoration: none; border: 1px solid transparent; }
.c-btn-primary { color: #fff; background: var(--c-primary); }
.c-btn-primary:hover, .c-btn-primary:focus { color: #fff; background: var(--c-primary-hover); text-decoration: none; }
.c-btn-primary:disabled { opacity: .6; }
.c-btn-light { color: var(--c-primary); background: #fff; border-color: var(--c-brown-border); }
.c-btn-light:hover { color: var(--c-primary); background: var(--c-head); text-decoration: none; }
.c-btn-soft { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--c-label); background: #fff; border: 1px solid var(--c-border); border-radius: 11px; padding: 11px; text-decoration: none; }
.c-btn-soft:hover { background: var(--c-head); color: var(--c-label); text-decoration: none; }
.c-btn-soft.excel { color: var(--c-green); border-color: var(--c-green-border); }
.c-btn-soft.pdf { color: var(--c-red); border-color: var(--c-red-border); }
.c-contact { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 13.5px; font-weight: 600; border-radius: 12px; padding: 13px; text-decoration: none; }
.c-contact.call { color: var(--c-primary); background: var(--c-brown-soft); border: 1px solid var(--c-brown-border); }
.c-contact.wa { color: var(--c-green); background: var(--c-green-bg); border: 1px solid var(--c-green-border); }
.c-contact:hover { text-decoration: none; filter: brightness(.98); }
.c-list-row { display: flex; align-items: center; gap: 11px; padding: 12px 15px; border-bottom: 1px solid var(--c-line-soft); color: var(--c-text); text-decoration: none; }
.c-list-row:last-child { border-bottom: 0; }
.c-list-row:hover { background: var(--c-hover); color: var(--c-text); text-decoration: none; }
.c-chips { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 3px; scrollbar-width: none; }
.c-chips::-webkit-scrollbar { display: none; }
.c-chip { font-size: 13px; font-weight: 600; color: var(--c-label); background: #fff; border: 1px solid var(--c-border); border-radius: 20px; padding: 9px 16px; white-space: nowrap; text-decoration: none; }
.c-chip:hover { color: var(--c-label); background: var(--c-head); text-decoration: none; }
.c-chip.on { color: #fff; background: var(--c-primary); border-color: var(--c-primary); font-weight: 700; }
.c-item { background: #fff; border: 1px solid var(--c-border); border-radius: 14px; padding: 13px; display: flex; align-items: center; gap: 12px; }
.c-item.has-qty { border-color: var(--c-brown-border); background: var(--c-brown-soft); }
.c-item.closed { opacity: .62; }
.c-item .ci-icon { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 13px; background: var(--c-tan); color: var(--c-primary-light); display: flex; align-items: center; justify-content: center; font-size: 22px; overflow: hidden; }
.c-item .ci-icon img { width: 100%; height: 100%; object-fit: cover; }
.c-item .ci-name { font-size: 14.5px; font-weight: 700; }
.c-item .ci-price { font-size: 13px; color: var(--c-muted); font-variant-numeric: tabular-nums; margin-top: 2px; }
.c-item .ci-time { font-size: 11.5px; color: var(--c-muted-2); margin-top: 2px; }
.c-qty-btn { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; background: #fff; border: 1px solid var(--c-border); color: var(--c-label); font-size: 15px; display: inline-flex; align-items: center; justify-content: center; }
.c-qty-btn.plus { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.c-qty-btn:disabled { opacity: .45; }
.c-qty-btn.sm { width: 40px; height: 40px; flex-basis: 40px; border-radius: 11px; font-size: 14px; }
.c-qty { min-width: 24px; text-align: center; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.c-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.c-field > span { font-size: 12.5px; font-weight: 600; color: var(--c-label); }
.c-field .form-control, .c-field .form-select { font-size: 14.5px; background-color: var(--c-input); border: 1px solid var(--c-border); border-radius: 11px; padding: 12px; }
.c-field .form-control:focus, .c-field .form-select:focus { border-color: var(--c-primary); background-color: #fff; box-shadow: none; }
.c-field .form-control.is-invalid { border-color: var(--c-red); }
.c-kv { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--c-label); }
.c-kv > span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; }
.c-pay-mode { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; background: #fff; border: 1.5px solid var(--c-border); border-radius: 12px; padding: 13px; }
.c-pay-mode > i:first-child { font-size: 18px; color: var(--c-muted); }
.c-pay-mode .pm-title { font-size: 14px; font-weight: 700; color: var(--c-text); }
.c-pay-mode .pm-sub { font-size: 12px; color: var(--c-muted); }
.c-pay-mode .pm-check { display: none; color: var(--c-primary); font-size: 17px; }
.c-pay-mode.on { background: var(--c-brown-soft); border-color: var(--c-primary); }
.c-pay-mode.on > i:first-child { color: var(--c-primary); }
.c-pay-mode.on .pm-check { display: inline-block; }
.c-pay-mode:disabled { opacity: .55; cursor: not-allowed; }
.c-empty { background: #fff; border: 1px solid var(--c-border); border-radius: 16px; padding: 40px 20px; text-align: center; }
.c-empty .ce-icon { font-size: 30px; color: var(--c-dashed); line-height: 1; }
.c-empty .ce-title { font-size: 15px; font-weight: 700; margin-top: 11px; }
.c-empty .ce-sub { font-size: 13px; color: var(--c-muted); margin-top: 4px; }
.c-track-dot { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.c-track-dot.done { background: var(--c-green); color: #fff; }
.c-track-dot.todo { background: var(--c-tan); border: 1.5px dashed var(--c-dashed); }
.c-track-dot.cancel { background: var(--c-red); color: #fff; }
.c-track-line { width: 2px; flex: 1; min-height: 20px; background: var(--c-line); }
.c-qr { width: 206px; height: 206px; border-radius: 16px; background: #fff; border: 1.5px solid var(--c-border); display: flex; align-items: center; justify-content: center; margin: 18px auto 0; padding: 8px; overflow: hidden; }
.c-qr.empty { background: var(--c-input); border: 1.5px dashed var(--c-dashed); flex-direction: column; gap: 8px; color: var(--c-muted-2); }
.c-qr svg, .c-qr img { width: 100%; height: 100%; }
.c-upload { border: 1.5px dashed var(--c-dashed); border-radius: 12px; padding: 20px; text-align: center; background: var(--c-input); cursor: pointer; display: block; position: relative; }
.c-upload:hover { border-color: var(--c-primary-light); }
.c-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.c-menu-link { display: flex; align-items: center; gap: 11px; width: 100%; font-size: 14px; font-weight: 500; color: var(--c-text); background: none; border: none; border-radius: 11px; padding: 13px; text-align: left; text-decoration: none; }
.c-menu-link:hover { background: var(--c-head); color: var(--c-text); text-decoration: none; }
.c-menu-link > i:first-child { font-size: 16px; color: var(--c-primary); }
.c-menu-link.danger { color: var(--c-red); font-weight: 600; }
.c-menu-link.danger > i:first-child { color: var(--c-red); }
.c-menu-link.danger:hover { background: var(--c-red-bg); }
.c-tag { font-size: 11px; font-weight: 700; border-radius: 20px; padding: 3px 10px; border: 1px solid; white-space: nowrap; }

/* A button placed straight in the page column keeps its own height (c-btn is flex: 1 for side-by-side pairs) */
.client-main > .c-btn,
.client-main > form > .c-btn { flex: 0 0 auto; }

/* Order sound button: off = muted look */
[data-bell-toggle].bell-off { color: var(--c-red); border-color: var(--c-red-border, #f0c9c4); background: var(--c-red-bg, #fbeceb); }

/* Offer banner (admin preview + client slider) */
.offer-card { position: relative; border-radius: 18px; overflow: hidden; min-height: 132px; display: flex; align-items: flex-end; background: var(--c-primary); color: #fff; text-decoration: none; }
.offer-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.offer-card img + .oc-text { background: linear-gradient(transparent, rgba(0,0,0,.62)); color: #fff; }
.offer-card .oc-text { position: relative; padding: 16px 18px; width: 100%; }
.offer-card .oc-tag { display: inline-flex; gap: 5px; align-items: center; font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; background: rgba(255,255,255,.2); border-radius: 20px; padding: 2px 9px; }
.offer-card .oc-title { font-size: 19px; font-weight: 800; line-height: 1.2; margin-top: 8px; }
.offer-card .oc-sub { font-size: 13px; opacity: .9; margin-top: 3px; }
.offer-card::after { content: ''; position: absolute; right: -30px; top: -30px; width: 130px; height: 130px; border-radius: 50%; background: rgba(255,255,255,.1); pointer-events: none; }
.c-offers { position: relative; }
.c-offers .carousel-indicators { position: static; margin: 8px 0 0; }
.c-offers .carousel-indicators [data-bs-target] { width: 7px; height: 7px; border-radius: 50%; background: var(--c-primary); border: 0; opacity: .3; margin: 0 3px; }
.c-offers .carousel-indicators .active { opacity: 1; width: 18px; border-radius: 4px; }

/* Combo on menus */
.combo-tag { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--c-amber); background: var(--c-amber-bg); border: 1px solid var(--c-amber-border); border-radius: 20px; padding: 0 7px; vertical-align: 2px; }
.combo-has { font-size: 12px; color: var(--c-label); }
.combo-save { display: block; font-size: 11.5px; font-weight: 700; color: var(--c-green); }
.pop-tag { display: inline-block; font-size: 10.5px; font-weight: 700; color: var(--c-red); background: var(--c-red-bg); border-radius: 20px; padding: 0 7px; vertical-align: 2px; }
.pos-pop { position: absolute; top: 8px; left: 10px; color: var(--c-red); font-size: 15px; }

/* "Powered & developed by Softieons" */
.powered-by { display: flex; align-items: center; justify-content: center; gap: 5px; flex-wrap: wrap; font-size: 12px; color: var(--c-muted-2); padding: 14px 10px; }
.powered-by a { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; letter-spacing: .02em; color: var(--c-primary); text-decoration: none; border-radius: 20px; padding: 2px 10px; background: var(--c-brown-soft); border: 1px solid var(--c-brown-border); transition: background .15s, color .15s; }
.powered-by a:hover { background: var(--c-primary); color: #fff; }
.powered-by a i { font-size: 11px; color: var(--c-amber-strong); }
.powered-by a:hover i { color: #FFD27A; }
.powered-by.pb-dark { color: rgba(246,239,231,.6); }
.powered-by.pb-dark a { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #F6EFE7; }
.powered-by.pb-dark a:hover { background: #F6EFE7; color: var(--c-sidebar); }
.powered-by.pb-compact { padding: 6px; font-size: 11px; }

/* Sign-in page: brand panel + form */
.auth-split { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--c-bg); }
.auth-side { position: relative; overflow: hidden; color: #F6EFE7; background: radial-gradient(900px 500px at 15% 0%, var(--c-primary-light) 0%, transparent 60%), linear-gradient(160deg, color-mix(in srgb, var(--c-sidebar) 85%, var(--c-primary)) 0%, color-mix(in srgb, var(--c-sidebar) 75%, #000) 100%); }
.auth-side::before { content: ''; position: absolute; inset: 0; background-image: var(--auth-photo, none); background-size: cover; background-position: center; opacity: .28; }
.auth-side::after { content: ''; position: absolute; right: -120px; bottom: -120px; width: 380px; height: 380px; border-radius: 50%; border: 60px solid rgba(255,255,255,.04); }
.as-inner { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; padding: 48px 56px 28px; max-width: 620px; }
.as-brand { display: flex; align-items: center; gap: 14px; }
.as-logo { width: 58px; height: 58px; flex: 0 0 58px; border-radius: 16px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; font-size: 27px; overflow: hidden; }
.as-logo.as-logo-img { width: auto; min-width: 58px; max-width: 200px; flex-basis: auto; background: #fff; padding: 6px 10px; }
.as-logo img { max-width: 100%; max-height: 46px; object-fit: contain; }
.as-name { font-family: var(--font-display); font-size: 34px; line-height: 1.05; }
.as-sub { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: rgba(246,239,231,.65); font-weight: 600; margin-top: 3px; }
.as-tagline { font-family: var(--font-display); font-weight: 400; font-size: 40px; line-height: 1.15; margin: auto 0 26px; padding-top: 48px; max-width: 480px; }
.as-points { list-style: none; padding: 0; margin: 0 0 auto; display: grid; gap: 13px; }
.as-points li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: rgba(246,239,231,.9); }
.as-points span { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 11px; background: rgba(255,255,255,.1); display: grid; place-items: center; color: #FFD27A; font-size: 16px; }
.as-powered { justify-content: flex-start; padding: 36px 0 0; }
.auth-main { display: grid; place-items: center; padding: 32px 22px; background: radial-gradient(800px 500px at 90% 0%, #F2E7DA 0%, var(--c-bg) 60%); }
.auth-main .auth-box { max-width: 410px; }
.auth-main .auth-card { padding: 30px 28px; border-radius: 20px; }
.auth-main .auth-card .a-title { font-size: 25px; }
.auth-help a { color: var(--c-label); font-weight: 600; }
.auth-powered { padding-top: 22px; }
@media (max-width: 991px) {
    .auth-split { grid-template-columns: 1fr; }
    .as-inner { padding: 26px 22px 30px; max-width: none; }
    .as-name { font-size: 27px; }
    .as-tagline { font-size: 23px; margin: 18px 0 0; padding-top: 0; }
    .as-points, .as-powered { display: none; }
    .auth-main { place-items: start center; padding: 0 16px 26px; background: var(--c-bg); }
    .auth-main .auth-box { margin-top: -18px; position: relative; z-index: 2; }
    .auth-main .auth-card { padding: 24px 20px; }
}
@media (min-width: 992px) { .auth-powered { display: none; } }

/* Settings → Look & Branding: theme swatches and font cards */
.span-all { grid-column: 1 / -1; }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.theme-card, .font-card { cursor: pointer; border: 2px solid var(--c-border); border-radius: 14px; padding: 8px; background: #fff; display: flex; flex-direction: column; gap: 7px; transition: border-color .15s, box-shadow .15s; }
.theme-card:hover, .font-card:hover { border-color: var(--c-brown-border); }
.theme-card:has(input:checked), .font-card:has(input:checked) { border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-brown-soft); }
.theme-card:has(input:focus-visible), .font-card:has(input:focus-visible) { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.tc-preview { position: relative; height: 58px; border-radius: 9px; overflow: hidden; display: block; }
.tc-bar { position: absolute; left: 34%; right: 0; top: 0; bottom: 0; background: #fff; }
.tc-bar { border-radius: 9px 0 0 9px; }
.tc-dot { position: absolute; left: 9px; top: 10px; width: 16px; height: 16px; border-radius: 5px; }
.tc-chip { position: absolute; right: 9px; bottom: 9px; font-weight: 800; font-size: 12px; border-radius: 6px; padding: 2px 8px; background: #fff; }
.tc-name, .fc-name { font-size: 12px; font-weight: 700; color: var(--c-label); }
.font-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.fc-sample { font-size: 20px; line-height: 1.2; color: var(--c-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 6px 4px 0; }
.theme-card:has(input:checked) .tc-name::after, .font-card:has(input:checked) .fc-name::after { content: ' ✓'; color: var(--c-primary); }

/* Wide logos */
.as-wide { display: inline-flex; align-items: center; }
.as-wide img { max-height: 64px; max-width: 300px; object-fit: contain; display: block; }
.side-brand .b-logo { display: flex; align-items: center; min-width: 0; flex: 1 1 auto; height: 40px; }
.side-brand .b-logo img { max-height: 34px; max-width: 100%; object-fit: contain; display: block; }
/* Settings: white logos are previewed on the dark menu colour */
.upload-box.on-dark { background: var(--c-sidebar); border-color: var(--c-sidebar); }
.upload-box.on-dark img { object-fit: contain; padding: 6px; }
.side-brand .only-collapsed { display: none; }
@media (min-width: 992px) { body.sidebar-collapsed .side-brand .only-collapsed { display: flex; } }
@media (max-width: 991px) { .as-wide img { max-height: 42px; max-width: 200px; } }
