﻿/* MenuOnline - "Botanical Elegance" design system, mobile-first */

#page-loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--color-accent);
    z-index: var(--z-loading-bar);
    opacity: 0;
    transition: width 0.4s ease-out, opacity 0.2s ease-out;
    pointer-events: none;
}

#page-loading-bar.is-active {
    opacity: 1;
    width: 90%;
}

/* ---------- htmx partial-request loading indicator ---------- */
/* Attach via hx-indicator="#some-id" on the element that triggers the
   request; htmx toggles the "htmx-request" class on the target for the
   request's duration. Hidden by default so it doesn't flash on page load. */
.htmx-indicator {
    display: none;
    align-items: center;
    gap: 0.3rem;
}

.htmx-request.htmx-indicator,
.htmx-request .htmx-indicator {
    display: inline-flex;
}

.htmx-indicator .spinner-icon {
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

:root {
    --color-bg: #fbf9f5;
    --color-surface: #ffffff;
    --color-surface-alt: #f5f3ef;
    --color-surface-high: #eae8e4;
    --color-text: #1b1c1a;
    --color-text-muted: #534341;
    --color-border: rgba(134, 115, 112, 0.25);

    --color-accent: #8f4b41;
    --color-accent-rgb: 143, 75, 65; /* same color as --color-accent, split out for rgba() use (e.g. the site header's glass background) */
    --color-accent-dark: #632821;
    --color-accent-dark-rgb: 99, 40, 33; /* same color as --color-accent-dark, split out for rgba() use */
    --color-accent-container: #e28f83;
    --color-on-accent: #ffffff;

    /* Overlay putih di atas background accent-glass .sidebar — versi tipis
       untuk hover, versi hampir solid untuk pill "aktif/terpilih". */
    --color-glass-border: rgba(255, 255, 255, 0.08);
    --color-glass-overlay-medium: rgba(255, 255, 255, 0.6);
    --color-glass-overlay-strong: rgba(255, 255, 255, 0.85);
    --color-glass-text-muted: rgba(255, 255, 255, 0.7);
    --color-glass-text-faint: rgba(255, 255, 255, 0.45);

    --color-secondary: #53624f;
    --color-secondary-container: #d4e5cc;
    --color-on-secondary-container: #586753;

    --color-danger: #ba1a1a;
    --color-danger-container: #ffdad6;
    --color-on-danger-container: #93000a;
    --color-success: #53624f;

    --radius: 1rem;
    --radius-sm: 0.75rem;
    --radius-lg: 1.5rem;
    --radius-pill: 9999px;
    --max-width: 768px;

    --font-heading: 'Libre Caslon Text', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* ---------- z-index scale ----------
       Single source of truth for every stacking layer in this file, low to
       high. Look here first before adding a new z-index anywhere — reuse an
       existing layer if the element belongs to one, or insert a new
       variable in the right spot rather than guessing a number inline. */
    --z-header: 10;             /* .page-header / .site-header */
    --z-dropdown: 40;           /* small popovers (e.g. branch/action menus) */
    --z-sidebar-backdrop: 150;  /* .sidebar-backdrop — dimmed backdrop behind the mobile sidebar */
    --z-sidebar: 180;           /* .sidebar */
    --z-bottom-sheet-backdrop: 190;  /* .sheet-backdrop — below --z-overlay so a customer-picker/confirm overlay opened from inside a bottom sheet still shows on top of it */
    --z-bottom-sheet: 191;      /* .bottom-sheet */
    --z-overlay: 200;           /* .confirm-overlay and other full-screen modals */
    --z-toast: 210;             /* .toast-container — always above every modal/sidebar */
    --z-loading-bar: 9999;      /* #page-loading-bar — top-of-viewport progress strip, always on top */
    --z-sticky-card: 5;         /* .sticky-summary — sticky in-content card, well below every overlay layer */
}

* {
    box-sizing: border-box;
}

html {
    font-size: 15px;
    /* Reserves the vertical scrollbar's width permanently instead of only
       when content is tall enough to need it — without this, any height
       change (e.g. the Sisa/Piutang section or a payment row appearing)
       that crosses the scrollbar threshold visibly shifts .site-main's
       width as the scrollbar pops in/out. */
    scrollbar-gutter: stable;
}

/* ---------- Scrollbar ---------- */
/* Berlaku untuk semua elemen yang scroll (halaman, .sidebar, .card-list-scroll,
   dropdown/modal, dll) — thumb tipis bertema accent, bukan scrollbar bawaan
   browser yang tebal/abu-abu. */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--color-accent-rgb), 0.4) transparent;
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background-color: rgba(var(--color-accent-rgb), 0.4);
    border-radius: var(--radius-pill);
}

*::-webkit-scrollbar-thumb:hover {
    background-color: rgba(var(--color-accent-rgb), 0.6);
}

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--color-text);
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    display: inline-block;
    line-height: 1;
    vertical-align: middle;
}

/* ---------- Header ---------- */

/* Nama class sama dengan .page-header di site-customer.css, tapi disimpan
   terpisah di sini (file ini tidak pernah dimuat bersamaan dengan file itu)
   bukan dibagi — cuma disamakan namanya. Backoffice baru punya satu header
   (.site-header), tapi variannya bisa memakai class ini juga seperti
   .app-header/.sub-page-header di sisi customer. */
.page-header {
    position: sticky;
    top: 0;
    margin: 0 0 1.5rem;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    z-index: var(--z-header);
}

.site-header,
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    row-gap: 0.4rem;
    padding: 0.9rem 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.25rem;
    color: var(--color-accent-dark);
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: color 0.15s ease;
}

.brand:hover,
.brand:focus-visible {
    color: var(--color-accent);
}

/* Membungkus <img> logo dengan latar solid sendiri — kalau warna logo
   kebetulan sama dengan warna latar halaman, logo akan menyatu/hilang tanpa
   ini. Latarnya pakai variabel sendiri supaya bisa diubah tanpa menyentuh
   header. */
.brand-logo-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    padding: 0.25rem;
    border-radius: 50%;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    flex: none;
    transition: transform 0.15s ease;
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand:hover .brand-logo-box,
.brand:focus-visible .brand-logo-box {
    transform: scale(1.06);
}

.site-nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.8rem;
}

.link-button {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: var(--color-text-muted);
    cursor: pointer;
}

.inline-form {
    display: inline;
}

/* ---------- Profile dropdown (site-nav) ---------- */

.profile-dropdown {
    position: relative;
}

.profile-dropdown-username {
    max-width: 8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-dropdown-caret {
    font-size: 18px;
    transition: transform 0.15s ease;
}

.profile-dropdown-trigger[aria-expanded="true"] .profile-dropdown-caret {
    transform: rotate(180deg);
}

.profile-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    min-width: 180px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: 0 12px 28px rgba(27, 28, 26, 0.15);
    padding: 0.4rem;
    z-index: var(--z-dropdown);
}

.profile-dropdown-menu.open {
    display: block;
}

.profile-dropdown-menu a,
.profile-dropdown-menu .link-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.55rem 0.6rem;
    border-radius: var(--radius-sm);
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.85rem;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
}

.profile-dropdown-menu a:hover,
.profile-dropdown-menu .link-button:hover {
    background: var(--color-surface-alt);
}

.profile-dropdown-menu .material-symbols-outlined {
    font-size: 18px;
    color: var(--color-text-muted);
}

.profile-dropdown-menu .inline-form {
    display: block;
    width: 100%;
}

.site-main {
    max-width: var(--max-width);
    min-height: 100vh;
    margin: 0 auto;
    padding: 1rem 1rem 6rem;
    background: var(--color-surface);
}

main.site-main {
    border: 1px solid var(--color-border);
}

/* wider content (admin/kasir tables) can opt out of the narrow max-width */
.site-main.wide {
    max-width: 900px;
}

/* ---------- Category sections (legacy admin use) ---------- */

.category-section {
    margin-bottom: 2rem;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 400;
    margin: 0 0 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--color-accent);
    display: inline-block;
}

.page-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.4rem 0.75rem;
}

.page-title-row .page-title {
    margin-bottom: 0;
}

/* Like .page-title-row but left-aligned instead of space-between — for a
   back link sitting directly next to the title with nothing pushed to the
   opposite side. */
.title-row-start {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.title-row-start .page-title {
    margin-bottom: 0;
}

.branch-selector-inline {
    font-size: 0.78rem;
}

.branch-select-sm {
    padding: 0.25rem 0.55rem;
    font-size: 0.78rem;
}

/* ---------- Buttons (pill-shaped) ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: none;
    border-radius: var(--radius-pill);
    padding: 0.6rem 1.1rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    width: 100%;
    transition: transform 0.15s ease;
}

.btn:active {
    transform: scale(0.97);
}

.btn-accent {
    background: var(--color-accent);
    color: var(--color-on-accent);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
}

.btn-danger {
    background: var(--color-danger);
    color: #fff;
}

.btn-danger-outline {
    background: transparent;
    border: 1px solid var(--color-danger);
    color: var(--color-danger);
}

.btn-sm {
    padding: 0.4rem 0.7rem;
    font-size: 0.78rem;
    width: auto;
}

.btn-block {
    width: 100%;
}

/* ---------- Qty stepper ---------- */

.qty-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.qty-stepper button {
    background: var(--color-surface-alt);
    border: none;
    padding: 0.4rem 0.75rem;
    font-size: 1rem;
    cursor: pointer;
}

.qty-stepper input {
    border: none;
    width: 2.2rem;
    text-align: center;
    font-size: 0.85rem;
    background: transparent;
}

/* ---------- Forms ---------- */

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

/* 16px (not 0.9rem/13.5px) below the desktop breakpoint: iOS/Android
   auto-zoom the whole page on focus of any form control whose computed
   font-size is under 16px, then zoom back out on blur — the "screen gets
   wide, then shrinks back" jump. Restored to the compact size on desktop
   below, where that auto-zoom behavior doesn't apply. */
.form-control {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-family: var(--font-body);
    background: var(--color-surface);
    color: var(--color-text);
}

/* Cabang filter/switcher <select>, used in headers across Admin and Kasir
   pages — one shared size so it's consistent everywhere it appears. */
.branch-select {
    width: auto;
    padding: 0.35rem 0.6rem;
    font-size: 0.85rem;
}

.form-control:focus {
    outline: none;
    border-color: rgba(var(--color-accent-rgb), 0.5);
    box-shadow: 0 0 0 3px rgba(var(--color-accent-rgb), 0.12);
}

/* Hide native up/down spinner arrows on all numeric inputs. */
input[type="number"] {
    -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Tab lokal 2 item (Aktif | Riwayat) di dalam halaman "Pesanan" Kasir —
   perpindahan antar section (Bill/Piutang/Customer) sekarang ada di .sidebar. */
.pesanan-tabs {
    display: flex;
    gap: 0.5rem;
}

.pesanan-tabs .btn {
    flex: 1;
    width: auto;
    white-space: nowrap;
    border-radius: 0.35rem;
}

/* Neutral dark/gray instead of the accent color used by pill buttons
   elsewhere, so this tab switcher reads visually distinct from them. */
.pesanan-tabs .btn-accent {
    background: var(--color-text);
    color: #fff;
}

.pesanan-tabs .btn-outline {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
}

.password-field {
    position: relative;
}

.password-field .form-control {
    padding-right: 2.6rem;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 0.4rem;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    background: none;
    color: var(--color-text-muted, var(--color-text));
    cursor: pointer;
    padding: 0;
}

.password-toggle .material-symbols-outlined {
    font-size: 20px;
}

.field-validation-error {
    color: var(--color-danger);
    font-size: 0.78rem;
}

/* Form-level error banner (asp-validation-summary, or a one-off ModelState
   message like Login's "Username atau password salah") — more visually
   distinct than a per-field .field-validation-error since it's the only
   feedback the user sees when the error isn't tied to one specific input. */
.validation-summary-errors {
    color: var(--color-danger);
    font-size: 0.82rem;
    font-weight: 600;
    text-align: left;
    background: var(--color-danger-container, #ffdad6);
    border: 1px solid var(--color-danger);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.8rem;
    margin-bottom: 0.75rem;
}

.validation-summary-errors:empty {
    display: none;
}

/* ---------- Cards / lists (admin & kasir) ---------- */

.card-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Class terpisah (bukan bagian dari .card-list itu sendiri) supaya efek
   scroll tinggi-tetap ini cuma kena list yang sengaja diberi class ini
   (mis. daftar pesanan aktif Kasir), bukan otomatis semua pemakai
   .card-list di halaman lain (Users, Kategori, Banner, Cabang, dll).
   Breakpoint-nya sama dengan peralihan kolom persisten .sidebar, supaya
   baru aktif setelah layout benar-benar melebar ke desktop shell. */
@media (min-width: 900px) {
    .card-list-scroll {
        padding-right: 0.4rem;
    }

    /* Compact size restored — the 16px mobile override above only exists to
       dodge iOS/Android's auto-zoom-on-focus, which desktop doesn't have. */
    .form-control {
        font-size: 0.9rem;
    }
}

.item-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.85rem;
}

.item-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.item-card-title {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.05rem;
}

.badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.15rem 0.55rem;
    border-radius: var(--radius-pill);
}

.badge-baru { background: var(--color-danger-container); color: var(--color-on-danger-container); }
.badge-diproses { background: var(--color-accent-container); color: var(--color-accent-dark); }
.badge-selesai { background: var(--color-secondary-container); color: var(--color-on-secondary-container); }

/* Persists as long as there's an unaccepted order — unlike the toast, it
   doesn't auto-dismiss, so it's still there if the kasir only looks back at
   the screen minutes later. Same "needs attention" color as badge-baru. */
.new-order-banner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.9rem;
    border-radius: var(--radius-sm);
    background: var(--color-danger-container);
    color: var(--color-on-danger-container);
    font-weight: 600;
    font-size: 0.85rem;
}

/* Bell hangs from its top and rings in a quick burst, then rests until the
   next cycle — a constant wiggle for the whole 1.4s would be too busy. */
.new-order-banner-icon {
    display: inline-block;
    transform-origin: 50% 0%;
    animation: bell-ring 2.4s ease-in-out infinite;
}

@keyframes bell-ring {
    0%, 65%, 100% { transform: rotate(0deg); }
    68% { transform: rotate(16deg); }
    71% { transform: rotate(-14deg); }
    74% { transform: rotate(11deg); }
    77% { transform: rotate(-8deg); }
    80% { transform: rotate(5deg); }
    83% { transform: rotate(-2deg); }
    86% { transform: rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
    .new-order-banner-icon {
        animation: none;
    }
}

/* ---------- Kasir refresh toolbar ---------- */

.sound-status-icon-active {
    background: var(--color-secondary-container);
    color: var(--color-on-secondary-container);
    border-radius: 50%;
    padding: 0.2rem;
}

.sound-status-icon-inactive {
    background: transparent;
    color: var(--color-text-muted);
    border-radius: 50%;
    padding: 0.2rem;
}

.refresh-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.stat-tile {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.85rem;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-accent-dark);
    margin-top: 0.15rem;
}

.tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
}

.tabs .tab {
    flex: none;
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-pill);
    background: var(--color-surface-high);
    color: var(--color-text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.tabs .tab.active {
    background: var(--color-accent);
    color: var(--color-on-accent);
}

.item-card-lines {
    display: grid;
    grid-template-columns: 1fr auto auto;
    column-gap: 0.6rem;
    row-gap: 0.2rem;
    font-size: 0.85rem;
    margin: 0.4rem 0;
    padding-left: 0;
    list-style: none;
}

/* li becomes a transparent grouping element so its children line up as
   columns in the parent grid, keeping Qty/Harga aligned across every item. */
.item-card-lines li {
    display: contents;
}

.item-line-qty {
    color: var(--color-text-muted);
    text-align: right;
}

.item-line-price {
    text-align: right;
    font-weight: 600;
}

.item-line-note {
    grid-column: 1 / -1;
    font-size: 0.76rem;
    font-style: italic;
    color: var(--color-text-muted);
    padding-left: 0.75rem;
    border-left: 2px solid var(--color-border);
    margin-bottom: 0.3rem;
}

.item-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.85rem;
    flex-wrap: wrap;
    align-items: center;
}

.item-card-actions .btn {
    width: auto;
    flex: 1;
}

/* use when actions should stay their natural width instead of stretching evenly */
.item-card-actions.compact .btn {
    flex: none;
}

.category-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.category-row .item-card-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-row-actions {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
    margin-left: auto;
}

.icon-btn {
    padding: 0.35rem;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.category-row-form {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
}

.form-group-inline {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
}

.form-group-inline .form-label {
    font-size: 0.72rem;
    margin-bottom: 0.2rem;
}

/* ---------- Login ---------- */
/* .site-main already gives every page its one bordered/white card (see
   ".site-main" above) — .auth-box deliberately does NOT add a second nested
   card on top of that, to stay consistent with how every other page (e.g.
   UserCreate's form) renders its content directly inside .site-main. */

.site-main.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-box {
    width: 100%;
    max-width: 320px;
    margin: 3rem auto;
    text-align: center;
}

.auth-box .brand-logo-box {
    width: 4rem;
    height: 4rem;
    padding: 0.5rem;
    margin: 0 auto 1rem;
}

.auth-box h1 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.4rem;
    margin: 0 0 0.3rem;
    color: var(--color-accent);
}

.auth-box .auth-subtitle {
    margin: 0 0 1.5rem;
}

.auth-box form {
    text-align: left;
}

.empty-state {
    text-align: center;
    color: var(--color-text-muted);
    padding: 2rem 1rem;
}

.text-muted {
    color: var(--color-text-muted);
}

/* Shared size utility for the small labels/amounts repeated across Kasir
   list partials (_BillList, _PiutangList, _PaymentsList, Bayar, etc.) —
   use instead of a one-off inline style="font-size:0.78rem". */
.text-xs {
    font-size: 0.78rem;
}

.mt-1 { margin-top: 0.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }

/* ---------- Toast ---------- */

.toast-container {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: calc(100% - 2rem);
    max-width: var(--max-width);
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    padding: 0.7rem 1.1rem;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 4px 14px rgba(27, 28, 26, 0.18);
    animation: toast-in 0.25s ease-out, toast-out 0.3s ease-in 3.2s forwards;
}

.toast-success { background: var(--color-secondary); }
.toast-error { background: var(--color-danger); }
.toast-info { background: var(--color-text); }

@keyframes toast-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes toast-out {
    from { opacity: 1; }
    to { opacity: 0; visibility: hidden; }
}

/* ---------- Branch assignment checkbox (Kasir "Belum Bayar" filter reuses
   this — the modal it was originally built for is gone) ---------- */

.branch-assign-check {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
}

.branch-assign-check input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--color-accent);
}

/* ---------- Confirm modal ---------- */

.confirm-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(27, 28, 26, 0.45);
    z-index: var(--z-overlay);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.confirm-overlay.open {
    display: flex;
}

.confirm-box {
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 1.25rem;
    width: 100%;
    max-width: 320px;
    box-shadow: 0 8px 24px rgba(27, 28, 26, 0.2);
}

.confirm-box p {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: var(--color-text);
}

.confirm-box .confirm-actions {
    display: flex;
    gap: 0.6rem;
}

.confirm-box .confirm-actions .btn {
    width: auto;
    flex: 1;
}

/* ---------- Customer picker modal ---------- */

.customer-picker-trigger {
    text-align: left;
    cursor: pointer;
    background: var(--color-surface);
}

.customer-picker-field {
    position: relative;
}

.customer-picker-field .customer-picker-trigger {
    padding-right: 2.6rem;
}

.customer-picker-clear-btn {
    position: absolute;
    top: 50%;
    right: 0.4rem;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    background: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 0;
}

.customer-picker-clear-btn .material-symbols-outlined {
    font-size: 20px;
}

.customer-picker-trigger-text.is-filled {
    color: var(--color-text);
    font-weight: 600;
}

.customer-picker-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(27, 28, 26, 0.45);
    z-index: var(--z-overlay);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.customer-picker-overlay.open {
    display: flex;
}

.customer-picker-box {
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 1.25rem;
    width: 100%;
    max-width: 360px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(27, 28, 26, 0.2);
}

.customer-picker-title {
    margin: 0;
    font-size: 0.95rem;
}

.customer-picker-close {
    padding: 0;
    line-height: 1;
    color: var(--color-text-muted);
}

.customer-picker-new-actions {
    display: flex;
    gap: 0.6rem;
}

.customer-picker-new-actions .btn {
    width: auto;
    flex: 1;
}

.customer-picker-results {
    max-height: 220px;
    overflow-y: auto;
}

.customer-picker-result-item {
    padding: 0.55rem 0.4rem;
    cursor: pointer;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.85rem;
}

.customer-picker-result-item:hover {
    background: var(--color-bg);
}

.customer-picker-result-empty {
    padding: 0.5rem 0.4rem;
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

.customer-picker-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* =====================================================================
   Home page - "Botanical Elegance" customer-facing layout
   ===================================================================== */

.site-nav a,
.site-nav .link-button {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-accent-dark);
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    border: 1px solid transparent;
    background: none;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav .link-button:hover,
.site-nav .link-button:focus-visible {
    background: var(--color-surface-alt);
    border-color: var(--color-border);
    color: var(--color-accent-dark);
    box-shadow: 0 2px 8px rgba(var(--color-accent-rgb), 0.12);
}

.site-nav a:active,
.site-nav .link-button:active {
    background: var(--color-accent-container);
    border-color: var(--color-accent-container);
}

.site-nav a.active {
    background: var(--color-accent-container);
    border-color: var(--color-accent-container);
    color: var(--color-accent-dark);
}

/* ---------- App shell (sidebar + content) ---------- */

.app-shell {
    display: flex;
    align-items: flex-start;
}

.app-content {
    flex: 1;
    min-width: 0;
}

.sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    flex: none;
    border: none;
    border-radius: var(--radius-pill);
    background: var(--color-surface-alt);
    color: var(--color-accent-dark);
    cursor: pointer;
    margin-right: 0.3rem;
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(27, 28, 26, 0.45);
    z-index: var(--z-sidebar-backdrop);
}

.sidebar-backdrop.open {
    display: block;
}

/* Default-nya drawer off-canvas (layar sempit) — dibuka lewat #sidebar-toggle
   di header; lihat IIFE sidebar-drawer di site-shared.js. */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 260px;
    max-width: 80vw;
    /* Background accent-glass — bahasa warna sendiri untuk sidebar, terpisah
       dari .page-header yang sekarang tidak lagi punya warna latar. */
    background: rgba(var(--color-accent-rgb), 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-right: 1px solid var(--color-glass-border);
    box-shadow: 0 0 24px rgba(27, 28, 26, 0.15);
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    z-index: var(--z-sidebar);
    overflow-y: auto;
    padding: 1rem 0.75rem;
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.sidebar-group-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-glass-text-faint);
    margin: 0.9rem 0 0.3rem 0.65rem;
}

.sidebar-group-label:first-child {
    margin-top: 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--color-glass-text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.sidebar-link .material-symbols-outlined {
    font-size: 20px;
}

/* Pill "overlay terang + teks accent gelap" di atas background accent-glass
   sidebar. */
.sidebar-link:hover,
.sidebar-link:focus-visible {
    background: var(--color-glass-overlay-medium);
    color: var(--color-accent-dark);
}

.sidebar-link.active {
    background: var(--color-glass-overlay-strong);
    color: var(--color-accent-dark);
}

/* Layar lebar: sidebar jadi panel mengambang persisten di samping konten —
   sticky, rounded, ada jarak dari tepi layar.
   #sidebar-toggle tetap terlihat (lihat site-shared.js) supaya masih bisa
   di-collapse untuk mengembalikan lebar konten — collapse di tempat, bukan
   menggeser seperti drawer off-canvas. */
@media (min-width: 900px) {
    .sidebar-backdrop {
        display: none !important;
    }

    /* Menyamakan margin .sidebar sendiri (0.6rem, di bawah) di semua sisi,
       supaya kolom konten dapat jarak yang sama, bukan menempel rata ke
       sidebar dan tepi kanan viewport. min-height (bukan height tetap) sama
       konsepnya seperti .sidebar: kalau konten pendek, .site-main (flex:1)
       tetap melar mengisi; kalau konten memang panjang, kotaknya ikut
       memanjang dan satu halaman yang scroll (bukan .site-main scroll
       sendiri) — jadi tidak dobel scrollbar dengan .card-list yang sudah
       scroll sendiri di dalamnya. Harus >= tinggi .sidebar sendiri
       (calc(100vh - 1.2rem) + margin) — kalau lebih pendek dari itu,
       .sidebar (bukan .app-content) yang jadi child tertinggi di .app-shell,
       sehingga tidak ada sisa ruang bagi `top: 0.6rem` stickynya buat
       diterapkan dan sidebar nempel rata ke atas alih-alih dapat margin. */
    .app-content {
        display: flex;
        flex-direction: column;
        min-height: calc(100vh - 1.2rem);
        margin: 0.6rem;
    }

    .page-header {
        flex: none;
    }

    .site-main {
        flex: 1;
        min-height: 0;
        /* .site-main's own `margin: 0 auto` (for its base non-flex centering)
           disables flexbox's default cross-axis stretch once it becomes a
           flex item here — per spec, an auto margin on the cross axis makes
           the item shrink-to-fit its content instead of filling the
           container. That made its width silently track whatever content
           happened to be visible (e.g. jumping when the Sisa/Piutang section
           toggled) instead of staying capped at max-width. An explicit
           width forces it back to filling .app-content, so max-width still
           caps it but content changes no longer resize it. */
        width: 100%;
    }

    .sidebar {
        position: sticky;
        top: 0.6rem;
        height: calc(100vh - 1.2rem);
        width: 260px;
        margin: 0 0 0.6rem 0.6rem;
        border-radius: var(--radius-lg);
        transform: none;
        flex: none;
        box-shadow: 0 12px 28px rgba(var(--color-accent-rgb), 0.28);
        overflow: hidden;
        transition: width 0.2s ease, margin 0.2s ease, padding 0.2s ease;
    }

    .sidebar.collapsed {
        width: 0;
        margin-left: 0;
        padding-left: 0;
        padding-right: 0;
        border-right-color: transparent;
    }
}

.switch {
    display: inline-flex;
    position: relative;
    cursor: pointer;
}

.switch input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.switch-track {
    width: 2.6rem;
    height: 1.5rem;
    border-radius: var(--radius-pill);
    background: var(--color-border);
    transition: background 0.15s ease;
    display: inline-flex;
    align-items: center;
    padding: 0 2px;
}

.switch-thumb {
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease;
}

.switch input:checked + .switch-track {
    background: var(--color-secondary);
}

.switch input:checked + .switch-track .switch-thumb {
    transform: translateX(1.1rem);
}

.switch input:focus-visible + .switch-track {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.segmented-control {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.segmented-control .segmented-option {
    flex: 1 1 45%;
}

.segmented-option {
    flex: 1;
    position: relative;
}

.segmented-option input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.segmented-option span {
    display: block;
    text-align: center;
    padding: 0.6rem 0.5rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.segmented-option input:checked + span {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-on-accent);
}

.segmented-option input:focus-visible + span {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* =====================================================================
   Summary card (Kasir walk-in order, Bayar, Profile, admin dashboard) /
   Kasir - Pesanan Baru
   ===================================================================== */

.summary-card {
    background: var(--color-surface);
    border: 1px solid var(--color-surface-high);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 12px 28px rgba(143, 75, 65, 0.07);
    margin-top: 1.5rem;
}

.summary-card h2 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.2rem;
    margin: 0 0 1rem;
}

/* top is set from JS (Bayar.cshtml) to the measured .site-header height —
   the header wraps to a second row on narrow viewports, so a fixed rem
   value here would either leave a gap or sit underneath it. */
.sticky-summary {
    position: sticky;
    z-index: var(--z-sticky-card);
    /* Solid (not rgba/alpha) on purpose — this card is sticky, so while
       stuck it sits in front of scrolling content. An alpha background
       would let that content show through underneath it. */
    background: color-mix(in srgb, var(--color-accent) 10%, var(--color-surface));
    border-color: color-mix(in srgb, var(--color-accent) 30%, var(--color-surface));
    border-top: 4px solid var(--color-accent);
    box-shadow: 0 12px 28px rgba(var(--color-accent-rgb), 0.18);
    padding: 0.85rem 1rem;
}

.sticky-summary h2 {
    margin-bottom: 0.5rem;
}

.sticky-summary .mt-1 {
    margin-top: 0.35rem;
}

/* ---------- Kasir - Pesanan Baru (compact) ---------- */

.pesanan-baru .category-section {
    margin-bottom: 1rem;
}

.pesanan-baru .page-title {
    font-size: 1rem;
    margin-bottom: 0.4rem;
    padding-bottom: 0.25rem;
}

.pesanan-baru .card-list {
    gap: 0.4rem;
}

.pesanan-baru .item-card {
    padding: 0.5rem 0.65rem;
}

.pesanan-baru .item-card-header {
    margin-bottom: 0.2rem;
}

.pesanan-baru .item-card-title {
    font-size: 0.92rem;
}

.pesanan-baru .qty-stepper button {
    padding: 0.25rem 0.55rem;
    font-size: 0.85rem;
}

.pesanan-baru .qty-stepper input {
    font-size: 0.8rem;
}

.pesanan-baru .item-card .form-control {
    padding: 0.35rem 0.6rem;
    font-size: 0.82rem;
}

.pesanan-baru .form-group {
    margin-bottom: 0.6rem;
}

.pesanan-baru .form-label {
    font-size: 0.78rem;
    margin-bottom: 0.2rem;
}

.pesanan-baru .segmented-option span {
    padding: 0.4rem 0.4rem;
    font-size: 0.8rem;
}

.pesanan-baru .summary-card {
    padding: 0.85rem;
    margin-top: 0.75rem;
    background: var(--color-surface);
    border-color: var(--color-surface-high);
    box-shadow: none;
}

.pesanan-baru .sticky-summary {
    border-top: 1px solid var(--color-surface-high);
}

.pos-toolbar {
    padding: 0.65rem 0.85rem;
}

.pos-category-chips {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.pos-category-chips::-webkit-scrollbar {
    display: none;
}

.category-chip {
    flex: none;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.category-chip:hover,
.category-chip:focus-visible {
    border-color: var(--color-accent);
    color: var(--color-accent-dark);
}

.pos-toolbar-totals {
    font-size: 0.82rem;
    font-weight: 700;
}

.pesanan-baru .item-card.has-qty {
    border-color: var(--color-accent);
    background: color-mix(in srgb, var(--color-accent) 6%, var(--color-surface));
}

.pos-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding: 0.65rem 0.85rem;
    background: var(--color-surface);
    border: 1px solid var(--color-surface-high);
    border-radius: var(--radius);
}

.pos-action-bar-total {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.3;
}

.pos-action-bar-total small {
    display: block;
    font-weight: 400;
    font-size: 0.72rem;
    color: var(--color-text-muted);
}

.pos-action-bar .btn {
    flex: none;
    width: auto;
}

/* =====================================================================
   Admin quick-menu
   ===================================================================== */

.quick-menu-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin: 1.1rem 0 0.5rem;
}

.quick-menu-label:first-child {
    margin-top: 0;
}

.quick-menu {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .quick-menu {
        grid-template-columns: repeat(3, 1fr);
    }
}

.quick-menu-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.1rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--color-text);
    text-align: center;
    font-size: 0.82rem;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(143, 75, 65, 0.06);
}

.quick-menu-card .material-symbols-outlined {
    font-size: 28px;
    color: var(--color-accent);
}

/* ---------- Settings list (Admin > Pengaturan) ---------- */

.settings-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.settings-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--color-text);
    box-shadow: 0 8px 20px rgba(143, 75, 65, 0.06);
    transition: transform 0.15s ease;
}

.settings-row:active {
    transform: scale(0.99);
}

.settings-row-icon {
    flex: none;
    font-size: 22px;
    color: var(--color-accent);
}

.settings-row-label {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.settings-row-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.settings-row-desc {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 0.1rem;
}

.settings-row-chevron {
    flex: none;
    color: var(--color-text-muted);
}

/* ---------- QR code print card ---------- */

.qrcode-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 380px;
    margin: 0 auto 2rem;
}

.qrcode-card {
    text-align: center;
    background: var(--color-surface);
    border: 2px solid var(--color-accent);
    border-radius: var(--radius-lg);
    padding: 1.1rem 0.85rem 0.85rem;
    box-shadow: 0 16px 40px rgba(143, 75, 65, 0.14);
    position: relative;
    overflow: hidden;
}

.qrcode-card::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid var(--color-accent-container);
    border-radius: calc(var(--radius-lg) - 6px);
    pointer-events: none;
}

.qrcode-card-logo {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    margin: 0 auto 0.6rem;
}

.qrcode-card-store {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-accent-dark);
}

.qrcode-card-tagline {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin: 0.3rem 0 1.5rem;
}

.qrcode-card-frame {
    display: inline-block;
    padding: 0.6rem;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
}

.qrcode-card-image {
    width: 220px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    display: block;
    image-rendering: pixelated;
}

.qrcode-card-cta {
    margin-top: 1.4rem;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--color-text);
}

.qrcode-card-url {
    margin-top: 0.35rem;
    font-size: 0.68rem;
    color: var(--color-text-muted);
    word-break: break-all;
}

.qrcode-card-meja {
    margin-top: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--color-text);
}

.qrcode-card-meja-line {
    display: inline-block;
    width: 4rem;
    border-bottom: 1px solid var(--color-text-muted);
}

.qrcode-card-footer {
    margin-top: 1.5rem;
    padding-top: 0.85rem;
    border-top: 1px dashed var(--color-border);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-accent-container);
}

@media print {
    @page {
        margin: 1.5cm 0;
    }

    .no-print,
    .site-header,
    .sidebar,
    .sidebar-backdrop,
    #toast-root {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .qrcode-grid {
        max-width: 9cm;
        grid-template-columns: 1fr;
        margin: 0 auto;
    }

    .qrcode-card {
        box-shadow: none;
        break-inside: avoid;
        page-break-inside: avoid;
        break-after: page;
        page-break-after: always;
    }

    .qrcode-card:last-child {
        break-after: auto;
        page-break-after: auto;
    }
}

/* ---------- Home menu empty state ---------- */

/* ---------- FilePond theme overrides ---------- */

.filepond--root {
    font-family: var(--font-body);
    margin-bottom: 0.5rem;
}

.filepond--panel-root {
    background-color: var(--color-surface-alt);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-sm);
}

.filepond--drop-label {
    color: var(--color-text-muted);
    font-size: 0.78rem;
    min-height: 2.75rem;
}

.filepond--label-action {
    color: var(--color-accent);
    text-decoration-color: var(--color-accent);
}

.filepond--file-action-button {
    cursor: pointer;
}

/* ---------- Bottom sheet (Kasir/Bayar) ---------- */
/* Mirrors the storefront's .bottom-sheet/.sheet-backdrop (site-customer.css)
   — same shape, ported here for the backoffice since Bayar.cshtml is the
   first backoffice page to need it. Open/close driven by openBottomSheet()/
   closeAllBottomSheets() in site-admin.js. */

.sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(27, 28, 26, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: var(--z-bottom-sheet-backdrop);
}

.sheet-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

body.sheet-open {
    overflow: hidden;
}

.bottom-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0 auto;
    max-width: var(--max-width);
    background: var(--color-surface);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 0.6rem 1.25rem 1.5rem;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.25s ease;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.15);
    z-index: var(--z-bottom-sheet);
}

.bottom-sheet.open {
    transform: translateY(0);
}

.bottom-sheet-handle {
    width: 2.5rem;
    height: 4px;
    border-radius: var(--radius-pill);
    background: var(--color-border);
    margin: 0 auto 0.75rem;
}

.bottom-sheet-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.bottom-sheet-actions .btn {
    width: auto;
}
