:root {
    --pos-primary: #d9480f;
    --pos-primary-dark: #b33a0b;
    --pos-soft: #fff4e6;
    --bs-primary: #d9480f;
    --bs-primary-rgb: 217, 72, 15;
    --bs-link-color: #d9480f;
    --bs-link-color-rgb: 217, 72, 15;
    --bs-link-hover-color: #b33a0b;
    --bs-body-font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
body { background: #f6f7f9; }
.btn-primary { --bs-btn-bg: var(--pos-primary); --bs-btn-border-color: var(--pos-primary); --bs-btn-hover-bg: var(--pos-primary-dark); --bs-btn-hover-border-color: var(--pos-primary-dark); --bs-btn-active-bg: var(--pos-primary-dark); --bs-btn-disabled-bg: var(--pos-primary); --bs-btn-disabled-border-color: var(--pos-primary); }
.btn-outline-primary { --bs-btn-color: var(--pos-primary); --bs-btn-border-color: var(--pos-primary); --bs-btn-hover-bg: var(--pos-primary); --bs-btn-hover-border-color: var(--pos-primary); --bs-btn-active-bg: var(--pos-primary); }
.text-primary { color: var(--pos-primary) !important; }
.bg-primary-soft { background: var(--pos-soft); }
.form-control:focus, .form-select:focus { border-color: #f7a072; box-shadow: 0 0 0 .2rem rgba(217, 72, 15, .15); }

/* Sidebar */
.app-sidebar { width: 240px; min-height: 100vh; background: #1f1d1b; color: #d9d4cf; position: fixed; inset: 0 auto 0 0; z-index: 1040; transition: transform .2s; }
.app-sidebar .brand { color: #fff; font-weight: 700; font-size: 1.2rem; padding: 1.1rem 1.25rem; display: block; text-decoration: none; }
.app-sidebar .brand i { color: #ff8a3d; }
.app-sidebar .tenant-name { font-size: .78rem; color: #a39d96; padding: 0 1.25rem .75rem; }
.app-sidebar .nav-link { color: #d9d4cf; padding: .6rem 1.25rem; border-left: 3px solid transparent; display: flex; gap: .65rem; align-items: center; }
.app-sidebar .nav-link:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.app-sidebar .nav-link.active { color: #fff; background: rgba(255, 138, 61, .12); border-left-color: #ff8a3d; }
.app-sidebar .section { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #7d766f; padding: 1rem 1.25rem .35rem; }
.app-main { margin-left: 240px; min-height: 100vh; }
.app-topbar { background: #fff; border-bottom: 1px solid #e9ecef; padding: .7rem 1.25rem; position: sticky; top: 0; z-index: 1030; }
.app-content { padding: 1.5rem 1.25rem 3rem; }
@media (max-width: 991.98px) {
    .app-sidebar { transform: translateX(-100%); }
    .app-sidebar.show { transform: translateX(0); }
    .app-main { margin-left: 0; }
}

.card { border: 1px solid #eceef1; border-radius: .75rem; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.stat-card .label { color: #6c757d; font-size: .85rem; }
.stat-card .value { font-size: 1.6rem; font-weight: 700; }
.table > :not(caption) > * > * { padding: .65rem .75rem; }
.badge-status { font-weight: 600; }

/* Pemesanan */
.menu-tile { border: 1px solid #e9ecef; border-radius: .6rem; padding: .6rem .75rem; background: #fff; text-align: left; width: 100%; transition: border-color .15s, background .15s; }
.menu-tile:hover { border-color: var(--pos-primary); background: var(--pos-soft); }
.menu-tile .price { color: var(--pos-primary); font-weight: 600; font-size: .9rem; }
.cart-line + .cart-line { border-top: 1px dashed #dee2e6; }
.sticky-cart { position: sticky; top: 76px; }

/* Dapur */
.kitchen-card { border-top: 4px solid #0d6efd; }
.kitchen-card.diproses { border-top-color: #ffc107; }
.kitchen-card.late { box-shadow: 0 0 0 2px rgba(220, 53, 69, .45); }
.kitchen-item { font-size: 1.05rem; }

/* Auth & landing */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; background: linear-gradient(135deg, #fff4e6 0%, #f6f7f9 60%); }
.auth-card { width: 100%; max-width: 440px; }
.hero { background: linear-gradient(135deg, #fff4e6, #ffe8cc); }
.plan-card.featured { border: 2px solid var(--pos-primary); }

@media print {
    .no-print, .app-sidebar, .app-topbar { display: none !important; }
    .app-main { margin-left: 0; }
    body { background: #fff; }
    .card { box-shadow: none; border: 0; }
}
