body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f6f9;
    color: #333;
}
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}
.sidebar {
    min-width: 250px;
    max-width: 250px;
    background: #0d213b;
    color: #fff;
    transition: all 0.3s;
    min-height: 100vh;
}
.sidebar .sidebar-header {
    padding: 20px;
    background: #09172a;
    font-weight: 700;
}
.sidebar ul.components {
    padding: 20px 0;
}
.sidebar ul li a {
    padding: 12px 20px;
    font-size: 14px;
    display: block;
    color: #ced4da;
    text-decoration: none;
    transition: all 0.2s;
}
.sidebar ul li a:hover, .sidebar ul li.active > a {
    color: #fff;
    background: #1d3557;
    border-left: 4px solid #ffc107;
}
.main-content {
    width: 100%;
    min-height: 100vh;
    transition: all 0.3s;
    background: #f8f9fa;
}
.topbar {
    background: #fff;
    padding: 15px 25px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.btn-menu {
    background: none;
    border: none;
    color: #333;
    font-size: 20px;
    cursor: pointer;
}
.card-custom {
    border-radius: 15px;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
    background: #fff;
}
.card-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.07);
}
.pos-wrapper {
    display: flex;
    height: 100vh;
    overflow: hidden;
    background: #f8f9fa;
}
.pos-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 20px;
}
.pos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 15px;
}
.pos-categories {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 15px;
    scrollbar-width: none;
}
.pos-categories::-webkit-scrollbar {
    display: none;
}
.category-chip {
    padding: 8px 20px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s;
    font-size: 13px;
}
.category-chip.active, .category-chip:hover {
    background: #0d213b;
    color: #fff;
    border-color: #0d213b;
}
.pos-menu-area {
    flex: 1;
    overflow-y: auto;
}
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
}
.menu-item-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}
.menu-item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.06);
}
.menu-item-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}
.menu-title {
    font-weight: 600;
    font-size: 13px;
    padding: 10px 10px 2px 10px;
    color: #333;
}
.menu-price {
    font-weight: 700;
    color: #198754;
    font-size: 13px;
    padding: 0 10px 10px 10px;
}
.pos-cart-sidebar {
    width: 380px;
    background: #fff;
    border-left: 1px solid #dee2e6;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.cart-header {
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}
.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #e9ecef;
}
.cart-item-img {
    width: 55px;
    height: 55px;
    border-radius: 10px;
    object-fit: cover;
}
.cart-item-info {
    flex: 1;
}
.cart-item-info h6 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
}
.cart-item-info p {
    margin: 0;
    font-size: 12px;
    color: #198754;
    font-weight: 700;
}
.cart-qty-control {
    display: flex;
    align-items: center;
    border: 1px solid #ced4da;
    border-radius: 20px;
    overflow: hidden;
}
.cart-qty-btn {
    background: #fff;
    border: none;
    width: 26px;
    height: 26px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
}
.cart-qty-btn:hover {
    background: #f1f3f5;
}
.cart-qty-input {
    width: 32px;
    text-align: center;
    border: none;
    font-size: 12px;
    font-weight: bold;
    pointer-events: none;
}
.cart-summary {
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
}
.summary-row.total {
    font-size: 18px;
    font-weight: 700;
    color: #0d213b;
    border-top: 1px solid #dee2e6;
    padding-top: 10px;
    margin-top: 10px;
}
.btn-pay {
    width: 100%;
    background: #198754;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 15px;
    margin-top: 15px;
    transition: all 0.2s;
}
.btn-pay:hover:not(:disabled) {
    background: #146c43;
}
.btn-pay:disabled {
    background: #ced4da;
    cursor: not-allowed;
}
.btn-primary-custom {
    background: #0d213b;
    color: #fff;
    border-radius: 10px;
    transition: all 0.2s;
}
.btn-primary-custom:hover {
    background: #1d3557;
    color: #fff;
}
@media (max-width: 992px) {
    .pos-wrapper {
        flex-direction: column;
        height: auto;
        overflow: visible;
    }
    .pos-cart-sidebar {
        width: 100%;
        height: auto;
        border-left: none;
        border-top: 1px solid #dee2e6;
    }
    .pos-main {
        height: auto;
        overflow: visible;
    }
}
@media (max-width: 768px) {
    .sidebar {
        margin-left: -250px;
        position: fixed;
        z-index: 1050;
        height: 100%;
    }
    .sidebar.active {
        margin-left: 0;
    }
    .topbar {
        padding: 15px;
    }
}

/* =========================================================
   GOPANG POS — REFINED INTERFACE
   A restrained design system for daily restaurant operations
   ========================================================= */
:root {
    --gp-navy-950: #0b132b;
    --gp-navy-900: #111d3d;
    --gp-navy-800: #172554;
    --gp-blue-600: #2563eb;
    --gp-blue-500: #3b82f6;
    --gp-blue-100: #dbeafe;
    --gp-slate-950: #0f172a;
    --gp-slate-700: #334155;
    --gp-slate-600: #475569;
    --gp-slate-500: #64748b;
    --gp-slate-400: #94a3b8;
    --gp-slate-300: #cbd5e1;
    --gp-slate-200: #e2e8f0;
    --gp-slate-100: #f1f5f9;
    --gp-slate-50: #f8fafc;
    --gp-surface: #ffffff;
    --gp-success: #15803d;
    --gp-danger: #dc2626;
    --gp-warning: #d97706;
    --gp-radius-sm: 8px;
    --gp-radius: 12px;
    --gp-radius-lg: 16px;
    --gp-shadow-sm: 0 1px 2px rgba(15, 23, 42, .04);
    --gp-shadow: 0 8px 24px rgba(15, 23, 42, .06);
    --gp-sidebar-width: 264px;
}

* { box-sizing: border-box; }

html { background: var(--gp-slate-50); }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--gp-slate-950);
    background: var(--gp-slate-50);
    font-size: 14px;
    letter-spacing: -.006em;
    -webkit-font-smoothing: antialiased;
}

a, button, input, select, textarea { transition: border-color .16s ease, background-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease; }

.wrapper { min-height: 100vh; align-items: stretch; }

.main-content {
    min-width: 0;
    background: var(--gp-slate-50);
}

.content-body {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 28px 30px 40px;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex: 0 0 var(--gp-sidebar-width);
    flex-direction: column;
    min-width: var(--gp-sidebar-width);
    max-width: var(--gp-sidebar-width);
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    background: var(--gp-navy-950);
    color: #fff;
    border-right: 1px solid rgba(255, 255, 255, .05);
}

.sidebar::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 160px;
    content: '';
    pointer-events: none;
    background: radial-gradient(circle at 30% 0, rgba(59, 130, 246, .18), transparent 70%);
}

.sidebar-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 82px;
    padding: 20px;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.brand-mark {
    display: grid;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    place-items: center;
    color: #fff;
    background: var(--gp-blue-600);
    border-radius: 11px;
    box-shadow: 0 8px 20px rgba(37, 99, 235, .25);
}

.brand-copy { display: flex; flex-direction: column; min-width: 0; }
.brand-copy strong { font-size: 15px; font-weight: 700; line-height: 1.25; letter-spacing: -.02em; }
.brand-copy span { margin-top: 3px; color: var(--gp-slate-400); font-size: 10px; letter-spacing: .03em; }

.sidebar-scroll {
    position: relative;
    z-index: 1;
    flex: 1;
    padding: 12px 10px 20px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-color: rgba(255,255,255,.12) transparent;
    scrollbar-width: thin;
}

.sidebar ul,
.sidebar ul.components,
.sidebar .sidebar-menu { margin: 0; padding: 0; list-style: none; }

.sidebar .menu-label {
    margin: 17px 12px 7px;
    padding: 0;
    color: #7785a3;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sidebar .menu-label:first-child { margin-top: 7px; }

.sidebar ul li a,
.sidebar .sidebar-menu li a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 42px;
    margin: 3px 0;
    padding: 9px 12px;
    color: #b7c2d8;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 9px;
}

.sidebar ul li a i {
    flex: 0 0 19px;
    width: 19px;
    color: #8190ad;
    font-size: 14px;
    text-align: center;
}

.sidebar ul li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .055);
    border-color: rgba(255, 255, 255, .04);
}

.sidebar ul li a:hover i { color: #c8d5ef; }

.sidebar ul li a.active,
.sidebar ul li.active > a {
    color: #fff;
    background: rgba(37, 99, 235, .20);
    border: 1px solid rgba(96, 165, 250, .18);
    box-shadow: inset 3px 0 0 #60a5fa;
}

.sidebar ul li a.active i,
.sidebar ul li.active > a i { color: #93c5fd; }

.sidebar-footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 68px;
    padding: 14px 20px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.sidebar-footer .status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border: 2px solid rgba(34, 197, 94, .24);
    border-radius: 50%;
    box-sizing: content-box;
}

.sidebar-footer div { display: flex; flex-direction: column; }
.sidebar-footer strong { color: #cbd5e1; font-size: 11px; font-weight: 600; }
.sidebar-footer small { margin-top: 1px; color: #6f7d98; font-size: 9px; }

/* Topbar */
.topbar {
    position: sticky;
    z-index: 1040;
    top: 0;
    display: flex;
    justify-content: space-between;
    min-height: 72px;
    padding: 12px 28px;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--gp-slate-200);
    box-shadow: none;
    backdrop-filter: blur(12px);
}

.topbar-heading,
.topbar-actions { display: flex; align-items: center; }
.topbar-heading { gap: 13px; min-width: 0; }
.topbar-actions { justify-content: flex-end; gap: 10px; }

.btn-menu {
    display: none;
    width: 38px;
    height: 38px;
    padding: 0;
    color: var(--gp-slate-600);
    background: var(--gp-slate-100);
    border: 1px solid var(--gp-slate-200);
    border-radius: 9px;
}
.btn-menu:hover { color: var(--gp-navy-800); background: #fff; border-color: var(--gp-slate-300); }

.topbar-eyebrow {
    display: block;
    margin-bottom: 2px;
    color: var(--gp-slate-500);
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.topbar h1 {
    max-width: 430px;
    margin: 0;
    overflow: hidden;
    color: var(--gp-slate-950);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -.025em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar .badge {
    margin: 0 !important;
    padding: 7px 10px !important;
    color: var(--gp-slate-700) !important;
    font-size: 10px;
    font-weight: 600;
    background: var(--gp-slate-100) !important;
    border: 1px solid var(--gp-slate-200);
    border-radius: 999px;
    box-shadow: none !important;
}
.topbar .badge.bg-danger { color: #b91c1c !important; background: #fef2f2 !important; border-color: #fecaca; }
.topbar .badge.bg-warning { color: #92400e !important; background: #fffbeb !important; border-color: #fde68a; }
.topbar .badge.bg-info { color: #1d4ed8 !important; background: #eff6ff !important; border-color: #bfdbfe; }

.topbar-user {
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding-left: 4px;
}
.user-avatar {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    background: var(--gp-navy-800);
    border-radius: 50%;
}
.user-copy { display: flex; flex-direction: column; max-width: 140px; }
.user-copy strong { overflow: hidden; font-size: 11px; font-weight: 700; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.user-copy small { margin-top: 2px; color: var(--gp-slate-500); font-size: 9px; }

.btn-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    padding: 7px 11px;
    color: var(--gp-slate-600);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--gp-slate-200);
    border-radius: 9px;
}
.btn-logout:hover { color: #b91c1c; background: #fef2f2; border-color: #fecaca; }

/* Cards, headings and data */
.content-body > .mb-4:first-child h3,
.content-body > .d-flex:first-child h4,
.content-body > h3:first-child {
    color: var(--gp-slate-950) !important;
    font-size: 22px;
    letter-spacing: -.035em;
}

.card,
.card-custom {
    color: var(--gp-slate-950);
    background: var(--gp-surface);
    border: 1px solid var(--gp-slate-200) !important;
    border-radius: var(--gp-radius-lg) !important;
    box-shadow: var(--gp-shadow-sm) !important;
}

.card-custom { overflow: hidden; }
.card-custom:hover { transform: none; box-shadow: var(--gp-shadow) !important; }

.card-header {
    min-height: 58px;
    padding: 18px 20px;
    color: var(--gp-slate-950);
    background: #fff !important;
    border-bottom: 1px solid var(--gp-slate-100) !important;
}
.card-header h5,
.card-header h6 { font-size: 14px; letter-spacing: -.02em; }
.card-body { padding: 20px; }

.stat-card { min-height: 112px; border: 0 !important; }
.stat-card.bg-primary { background: var(--gp-blue-600) !important; }
.stat-card.bg-success { background: var(--gp-success) !important; }

.metric-card { min-height: 126px; }
.metric-card .card-body { padding: 24px; }
.metric-label { display: block; margin-bottom: 8px; color: var(--gp-slate-500); font-size: 11px; font-weight: 600; }
.metric-card h2 { margin: 0; color: var(--gp-slate-950); font-size: 32px; font-weight: 700; line-height: 1; letter-spacing: -.045em; }
.metric-icon { display: grid; width: 46px; height: 46px; place-items: center; font-size: 16px; border-radius: 12px; }
.metric-icon-blue { color: #1d4ed8; background: #eff6ff; }
.metric-icon-red { color: #b91c1c; background: #fef2f2; }

.cashier-welcome { color: #fff; background: var(--gp-navy-900); border-color: var(--gp-navy-900) !important; }
.cashier-welcome .text-white-50 { color: #a9b5cb !important; }
.cashier-clock { min-width: 220px; color: #fff; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.cashier-clock small { color: #93c5fd; font-size: 10px; }
.cashier-clock h3 { font-size: 24px; letter-spacing: -.03em; }
.queue-live-badge { color: #166534; background: #f0fdf4; border: 1px solid #bbf7d0; }
.queue-live-badge i { font-size: 6px; }

.table-responsive { scrollbar-color: var(--gp-slate-300) transparent; scrollbar-width: thin; }
.table { margin: 0; color: var(--gp-slate-700); vertical-align: middle; }
.table > :not(caption) > * > * { padding: 13px 14px; border-bottom-color: var(--gp-slate-100); }
.table thead th,
.table .table-light th {
    color: var(--gp-slate-500);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .055em;
    text-transform: uppercase;
    background: var(--gp-slate-50) !important;
    border-bottom: 1px solid var(--gp-slate-200);
    white-space: nowrap;
}
.table tbody td { font-size: 12px; }
.table-hover > tbody > tr:hover > * { --bs-table-bg-state: #f8fafc; }
.table tbody tr:last-child td { border-bottom: 0; }

.list-group-item { color: var(--gp-slate-700); border-color: var(--gp-slate-100); }
.text-muted { color: var(--gp-slate-500) !important; }

/* Forms and controls */
.form-label { margin-bottom: 7px; color: var(--gp-slate-700); font-size: 11px; font-weight: 600; }
.form-control,
.form-select,
.form-control-custom {
    min-height: 42px;
    padding: 9px 12px;
    color: var(--gp-slate-950);
    font-size: 12px;
    background-color: #fff;
    border: 1px solid var(--gp-slate-300);
    border-radius: var(--gp-radius-sm);
    box-shadow: none;
}
.form-control:focus,
.form-select:focus,
.form-control-custom:focus {
    color: var(--gp-slate-950);
    background-color: #fff;
    border-color: var(--gp-blue-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .12);
}
.form-control::placeholder { color: var(--gp-slate-400); }
.input-group-text { color: var(--gp-slate-500); border-color: var(--gp-slate-300); }

.btn {
    min-height: 38px;
    padding: 8px 13px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 9px;
    box-shadow: none !important;
}
.btn-sm { min-height: 32px; padding: 6px 10px; border-radius: 8px; }
.btn-lg { min-height: 48px; padding: 11px 17px; font-size: 12px; }
.btn-primary-custom,
.btn-primary { color: #fff; background: var(--gp-blue-600); border-color: var(--gp-blue-600); }
.btn-primary-custom:hover,
.btn-primary:hover { color: #fff; background: #1d4ed8; border-color: #1d4ed8; }
.btn-success { background: var(--gp-success); border-color: var(--gp-success); }
.btn-danger { background: var(--gp-danger); border-color: var(--gp-danger); }
.btn-light { color: var(--gp-slate-700); background: var(--gp-slate-100); border-color: var(--gp-slate-200); }
.btn-outline-secondary { color: var(--gp-slate-600); border-color: var(--gp-slate-300); }
.btn-outline-secondary:hover { color: var(--gp-slate-950); background: var(--gp-slate-100); border-color: var(--gp-slate-400); }

.badge { padding: 6px 9px; font-size: 9px; font-weight: 600; letter-spacing: .01em; border-radius: 999px; }
.alert { font-size: 12px; border: 1px solid transparent; border-radius: var(--gp-radius); }
.alert-info { color: #1e40af; background: #eff6ff; border-color: #bfdbfe; }
.alert-warning { color: #92400e; background: #fffbeb; border-color: #fde68a; }
.alert-danger { color: #991b1b; background: #fef2f2; border-color: #fecaca; }

.modal-content {
    overflow: hidden;
    border: 1px solid var(--gp-slate-200) !important;
    border-radius: var(--gp-radius-lg) !important;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .18);
}
.modal-header { padding: 20px 22px 12px; }
.modal-body { padding: 18px 22px; }
.modal-footer { padding: 12px 22px 20px; }
.modal-backdrop.show { opacity: .4; }

/* Login */
.login-page { min-height: 100vh; overflow-x: hidden; background: #fff; }
.login-shell { display: grid; grid-template-columns: minmax(380px, .9fr) minmax(460px, 1.1fr); min-height: 100vh; }
.login-brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    padding: 42px clamp(38px, 5vw, 78px);
    overflow: hidden;
    color: #fff;
    background: var(--gp-navy-950);
}
.login-brand-panel::before {
    position: absolute;
    top: -20%;
    right: -25%;
    width: 520px;
    height: 520px;
    content: '';
    background: radial-gradient(circle, rgba(37, 99, 235, .25), transparent 68%);
}
.login-brand-panel::after {
    position: absolute;
    right: -90px;
    bottom: -120px;
    width: 330px;
    height: 330px;
    content: '';
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 50%;
    box-shadow: 0 0 0 55px rgba(255,255,255,.02), 0 0 0 110px rgba(255,255,255,.015);
}
.login-brand,
.login-mobile-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; }
.login-brand-mark { display: grid; width: 42px; height: 42px; place-items: center; color: #fff; background: var(--gp-blue-600); border-radius: 11px; }
.login-brand > span:last-child { display: flex; flex-direction: column; }
.login-brand strong { font-size: 15px; }
.login-brand small { margin-top: 2px; color: #94a3b8; font-size: 9px; letter-spacing: .05em; }
.login-brand-message { position: relative; z-index: 1; max-width: 500px; }
.login-kicker { color: #60a5fa; font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.login-brand-message h1 { max-width: 470px; margin: 14px 0 18px; font-size: clamp(34px, 4vw, 52px); font-weight: 700; line-height: 1.08; letter-spacing: -.055em; }
.login-brand-message p { max-width: 450px; margin: 0; color: #a9b5cb; font-size: 14px; line-height: 1.75; }
.login-brand-footer { position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; color: #71809c; font-size: 10px; }
.login-brand-footer span { width: 26px; height: 1px; background: #334155; }
.login-form-panel { display: grid; min-height: 100vh; padding: 40px; place-items: center; background: #fff; }
.login-card { width: 100%; max-width: 400px; }
.login-mobile-brand { display: none; margin-bottom: 42px; }
.login-heading { margin-bottom: 27px; }
.login-heading .login-kicker { color: var(--gp-blue-600); }
.login-heading h2 { margin: 9px 0 8px; color: var(--gp-slate-950); font-size: 28px; font-weight: 700; line-height: 1.2; letter-spacing: -.045em; }
.login-heading p { margin: 0; color: var(--gp-slate-500); font-size: 12px; line-height: 1.6; }
.login-alert { padding: 11px 13px; }
.login-form .form-label { font-size: 11px; }
.login-input-wrap { position: relative; }
.login-input-wrap > i { position: absolute; z-index: 2; top: 50%; left: 14px; color: var(--gp-slate-400); font-size: 13px; transform: translateY(-50%); }
.login-input-wrap .form-control { height: 48px; padding-right: 44px; padding-left: 40px; font-size: 12px; background: var(--gp-slate-50); }
.login-input-wrap .form-control:focus { background: #fff; }
.password-toggle { position: absolute; top: 50%; right: 8px; display: grid; width: 34px; height: 34px; padding: 0; place-items: center; color: var(--gp-slate-400); background: transparent; border: 0; border-radius: 8px; transform: translateY(-50%); }
.password-toggle:hover { color: var(--gp-slate-700); background: var(--gp-slate-100); }
.btn-login { display: flex; width: 100%; height: 48px; align-items: center; justify-content: space-between; margin-top: 22px; padding: 0 18px; color: #fff; background: var(--gp-navy-800); border: 1px solid var(--gp-navy-800); }
.btn-login:hover { color: #fff; background: var(--gp-blue-600); border-color: var(--gp-blue-600); transform: translateY(-1px); }
.login-help { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 24px 0 0; color: var(--gp-slate-400); font-size: 9px; }

/* POS */
.pos-wrapper { color: var(--gp-slate-950); background: var(--gp-slate-100); }
.pos-main { padding: 20px 22px; }
.pos-header { min-height: 62px; margin-bottom: 17px; padding-bottom: 15px; border-bottom-color: var(--gp-slate-200); }
.text-primary-custom { color: var(--gp-navy-800) !important; }
.pos-header .bg-white { background: rgba(255,255,255,.86) !important; border-color: var(--gp-slate-200) !important; border-radius: 10px !important; box-shadow: var(--gp-shadow-sm) !important; }
.pos-categories { gap: 8px; margin-bottom: 12px; }
.category-chip { padding: 8px 14px; color: var(--gp-slate-600); font-size: 11px; font-weight: 600; background: #fff; border-color: var(--gp-slate-200); border-radius: 9px; }
.category-chip.active,
.category-chip:hover { color: #fff; background: var(--gp-navy-800); border-color: var(--gp-navy-800); }
.menu-grid { grid-template-columns: repeat(auto-fill, minmax(164px, 1fr)); gap: 13px; padding: 2px 2px 22px; }
.menu-item-card { border-color: var(--gp-slate-200); border-radius: 13px; box-shadow: var(--gp-shadow-sm); }
.menu-item-card:hover { border-color: var(--gp-slate-300); box-shadow: var(--gp-shadow); transform: translateY(-2px); }
.menu-item-card img { height: 128px; background: var(--gp-slate-100); }
.menu-title { min-height: 36px; padding: 10px 11px 2px; color: var(--gp-slate-950); font-size: 12px; font-weight: 600; }
.menu-price { padding: 0 11px 11px; color: var(--gp-success); font-size: 12px; }
.pos-cart-sidebar { border-left-color: var(--gp-slate-200); }
.cart-header { min-height: 70px; padding: 18px 20px; border-bottom-color: var(--gp-slate-200); }
.cart-header h5 { font-size: 15px; }
.cart-items { padding: 18px; }
.cart-item { gap: 11px; margin-bottom: 13px; padding-bottom: 13px; border-bottom-color: var(--gp-slate-200); }
.cart-item-img { width: 50px; height: 50px; border-radius: 9px; }
.cart-item-info h6 { font-size: 11px; }
.cart-item-info p { color: var(--gp-success); font-size: 10px; }
.cart-qty-control { border-color: var(--gp-slate-300); border-radius: 8px; }
.cart-qty-btn { width: 27px; height: 27px; color: var(--gp-slate-700); font-size: 12px; }
.cart-qty-input { width: 28px; font-size: 11px; }
.cart-summary { padding: 18px 20px 20px; background: var(--gp-slate-50); border-top-color: var(--gp-slate-200); }
.summary-row { color: var(--gp-slate-600); font-size: 11px; }
.summary-row.total { color: var(--gp-slate-950); font-size: 17px; border-top-color: var(--gp-slate-200); }
.btn-pay { min-height: 46px; margin-top: 13px; padding: 11px; font-size: 12px; font-weight: 700; background: var(--gp-success); border-radius: 10px; }
.btn-pay:hover:not(:disabled) { background: #166534; }
.btn-pay:disabled { background: var(--gp-slate-300); }

/* Small refinements for utility-heavy legacy screens */
.border-dashed { border-style: dashed !important; }
.rounded-3 { border-radius: var(--gp-radius) !important; }
.rounded-pill { border-radius: 999px !important; }
.shadow-sm { box-shadow: var(--gp-shadow-sm) !important; }
.bg-light { background-color: var(--gp-slate-50) !important; }
.nav-pills .nav-link { color: var(--gp-slate-600); font-size: 11px; font-weight: 600; }
.nav-pills .nav-link.active { color: #fff; background: var(--gp-navy-800); }
.swal2-popup { font-family: 'Inter', sans-serif; border-radius: 16px; }
.swal2-title { color: var(--gp-slate-950); font-size: 20px; }

@media (max-width: 1100px) {
    .topbar .branch-badge,
    .topbar > .topbar-actions > .badge { display: none; }
    .pos-cart-sidebar { width: 340px; }
}

@media (max-width: 992px) {
    .login-shell { grid-template-columns: minmax(330px, .85fr) minmax(410px, 1.15fr); }
    .login-brand-panel { padding: 36px; }
    .login-brand-message h1 { font-size: 36px; }
    .pos-wrapper { min-height: 100vh; }
    .pos-cart-sidebar { width: 100%; border-top-color: var(--gp-slate-200); }
}

@media (max-width: 768px) {
    body.sidebar-open { overflow: hidden; }
    body.sidebar-open::after { position: fixed; z-index: 1045; inset: 0; content: ''; background: rgba(15, 23, 42, .42); }
    .sidebar {
        position: fixed;
        z-index: 1050;
        top: 0;
        left: 0;
        margin-left: calc(var(--gp-sidebar-width) * -1);
        box-shadow: 20px 0 50px rgba(15, 23, 42, .18);
    }
    .sidebar.active { margin-left: 0; }
    .btn-menu { display: grid; place-items: center; }
    .topbar { min-height: 66px; padding: 10px 14px; }
    .topbar-heading { gap: 9px; }
    .topbar h1 { max-width: 42vw; font-size: 14px; }
    .topbar-eyebrow { display: none; }
    .btn-logout { width: 36px; height: 36px; min-height: 36px; padding: 0; }
    .btn-logout span { display: none; }
    .content-body { padding: 20px 14px 32px; }
    .card-body { padding: 17px; }
    .login-shell { display: block; min-height: 100vh; }
    .login-brand-panel { display: none; }
    .login-form-panel { min-height: 100vh; padding: 32px 22px; }
    .login-mobile-brand { display: flex; }
    .login-mobile-brand strong { font-size: 15px; }
    .login-heading h2 { font-size: 25px; }
    .pos-main { padding: 14px; }
    .pos-header { align-items: flex-start; }
    .pos-header > .d-flex { flex-wrap: wrap; justify-content: flex-end; }
    .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .menu-item-card img { height: 112px; }
}

@media (max-width: 420px) {
    .topbar h1 { max-width: 36vw; }
    .login-form-panel { padding: 26px 18px; }
    .menu-item-card img { height: 102px; }
    .pos-header .text-end { display: none; }
}

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

/* =========================================================
   RESPONSIVE READABILITY PASS
   Consistent type, spacing and touch targets on every screen
   ========================================================= */
html {
    font-size: 16px;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    min-width: 320px;
    font-size: clamp(14px, calc(12.6px + .18vw), 16px);
    line-height: 1.55;
}

p { line-height: 1.65; }
small,
.small { font-size: 13px !important; line-height: 1.5; }

/* Navigation readability */
.sidebar-header { min-height: 88px; padding: 22px 20px; }
.brand-mark { width: 42px; height: 42px; flex-basis: 42px; font-size: 16px; }
.brand-copy strong { font-size: 16px; }
.brand-copy span { margin-top: 4px; font-size: 11px; }
.sidebar .menu-label { margin-top: 20px; margin-bottom: 9px; font-size: 11px; }
.sidebar ul li a,
.sidebar .sidebar-menu li a { min-height: 46px; gap: 12px; padding: 10px 13px; font-size: 14px; }
.sidebar ul li a i { width: 20px; flex-basis: 20px; font-size: 15px; }
.sidebar-footer { min-height: 74px; }
.sidebar-footer strong { font-size: 12px; }
.sidebar-footer small { font-size: 11px !important; }

.topbar { min-height: 78px; padding: 13px 30px; }
.topbar-eyebrow { margin-bottom: 3px; font-size: 10px; }
.topbar h1 { max-width: 520px; font-size: 18px; }
.topbar .badge { padding: 8px 11px !important; font-size: 12px; }
.user-avatar { width: 38px; height: 38px; flex-basis: 38px; font-size: 14px; }
.user-copy { max-width: 170px; }
.user-copy strong { font-size: 13px; }
.user-copy small { font-size: 11px !important; }
.btn-logout { min-height: 40px; padding: 8px 13px; font-size: 13px; }

/* Content and cards */
.content-body { padding: 30px clamp(22px, 2.4vw, 38px) 46px; }
.content-body > .mb-4:first-child h3,
.content-body > .d-flex:first-child h4,
.content-body > h3:first-child { font-size: clamp(22px, 1.6vw, 27px); }

.card-header { min-height: 64px; padding: 19px 21px; }
.card-header h5 { font-size: 17px; }
.card-header h6 { font-size: 16px; }
.card-body { padding: 22px; }
.card-body h5 { font-size: 18px; }
.card-body h6 { font-size: 15px; }

.metric-card { min-height: 136px; }
.metric-card .card-body { padding: 26px; }
.metric-label { margin-bottom: 9px; font-size: 13px; }
.metric-card h2 { font-size: clamp(30px, 2.4vw, 38px); }
.metric-icon { width: 50px; height: 50px; font-size: 18px; }

/* Forms */
.form-label,
label.small,
label.form-label.small { display: inline-block; margin-bottom: 7px; color: var(--gp-slate-700) !important; font-size: 13px !important; font-weight: 600; }
.form-control,
.form-select,
.form-control-custom {
    min-height: 46px;
    padding: 10px 13px;
    font-size: 14px;
    line-height: 1.45;
}
textarea.form-control { min-height: 84px; }
.form-control-lg,
.form-select-lg { min-height: 52px; padding: 12px 14px; font-size: 16px; }
.form-control[type='file'] { padding: 9px 12px; }
.input-group-text { padding-right: 13px; padding-left: 13px; font-size: 14px; }

/* Buttons and status */
.btn { min-height: 42px; padding: 9px 14px; font-size: 13px; line-height: 1.35; }
.btn-sm { min-height: 38px; padding: 8px 11px; font-size: 12.5px; }
.btn-lg { min-height: 50px; padding: 12px 18px; font-size: 15px; }
.badge { padding: 7px 10px; font-size: 11px; line-height: 1.2; }
.alert { padding: 13px 15px; font-size: 14px; }
.nav-pills .nav-link { min-height: 42px; padding: 9px 15px; font-size: 13px; }

/* Tables */
.table > :not(caption) > * > * { padding: 15px 16px; }
.table thead th,
.table .table-light th { font-size: 12px; line-height: 1.4; }
.table tbody td { font-size: 14px; line-height: 1.5; }
.table tbody td small,
.table tbody td .small { font-size: 12.5px !important; }
.table .btn + .btn,
.table .btn + form,
.table form + .btn { margin-left: 3px; }
.table-responsive { -webkit-overflow-scrolling: touch; }

/* Modals and popups */
.modal-title,
.modal-header h5 { font-size: 18px; }
.modal-header { padding: 22px 24px 13px; }
.modal-body { padding: 19px 24px; font-size: 14px; }
.modal-footer { gap: 8px; padding: 13px 24px 22px; }
.swal2-popup { font-size: 15px; }
.swal2-title { font-size: 22px; }
.swal2-html-container { font-size: 14px; line-height: 1.6; }

/* Login */
.login-brand strong { font-size: 17px; }
.login-brand small { font-size: 11px; }
.login-kicker { font-size: 12px; }
.login-brand-message p { font-size: 16px; }
.login-brand-footer { font-size: 12px; }
.login-heading h2 { font-size: clamp(28px, 2.1vw, 34px); }
.login-heading p { font-size: 14px; }
.login-form .form-label { font-size: 13px; }
.login-input-wrap > i { font-size: 14px; }
.login-input-wrap .form-control { height: 50px; font-size: 14px; }
.btn-login { height: 50px; font-size: 14px; }
.login-help { font-size: 11px; }

/* Cashier dashboard and POS */
.cashier-welcome h4 { font-size: clamp(20px, 2vw, 26px); }
.cashier-welcome p { font-size: 14px !important; }
.cashier-clock small { font-size: 12px !important; }
.cashier-clock h3 { font-size: 27px; }
.queue-live-badge { font-size: 11px; }

.pos-main { padding: 22px 24px; }
.pos-header { min-height: 70px; }
.pos-header h5 { font-size: 18px; }
.pos-header small { font-size: 13px !important; }
.pos-header #posTimeDisplay { font-size: 16px !important; }
.category-chip { min-height: 40px; padding: 9px 16px; font-size: 13px; }
.menu-grid { grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 15px; }
.menu-item-card img { height: 138px; }
.menu-title { min-height: 42px; padding: 11px 12px 3px; font-size: 14px; }
.menu-price { padding: 0 12px 12px; font-size: 14px; }
.cart-header h5 { font-size: 18px; }
.cart-item-info h6 { font-size: 13px; }
.cart-item-info p { font-size: 12px; }
.cart-qty-btn { width: 32px; height: 32px; font-size: 14px; }
.cart-qty-input { width: 32px; font-size: 13px; }
.summary-row { font-size: 13px; }
.summary-row.total { font-size: 20px; }
.btn-pay { min-height: 50px; font-size: 14px; }

/* Medium laptops and tablet landscape */
@media (max-width: 1199.98px) {
    .content-body { padding-right: 24px; padding-left: 24px; }
    .topbar { padding-right: 22px; padding-left: 22px; }
    .menu-grid { grid-template-columns: repeat(auto-fill, minmax(164px, 1fr)); }
    .table > :not(caption) > * > * { padding-right: 13px; padding-left: 13px; }
}

/* Sidebar becomes a drawer on tablets and compact laptops */
@media (max-width: 1024px) {
    body.sidebar-open { overflow: hidden; }
    body > .wrapper { z-index:auto !important; }
    .wrapper .main-content { position:relative; z-index:1; }
    body.sidebar-open::after {
        position: fixed;
        z-index: 1045;
        inset: 0;
        content: '';
        background: rgba(15, 23, 42, .46);
        backdrop-filter: blur(2px);
    }
    .sidebar {
        position: fixed;
        z-index: 1050;
        top: 0;
        left: 0;
        margin-left: calc(var(--gp-sidebar-width) * -1);
        box-shadow: 20px 0 50px rgba(15, 23, 42, .22);
    }
    .sidebar.active { margin-left: 0; }
    .main-content { width: 100%; }
    .btn-menu { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; }
    .topbar h1 { max-width: 52vw; }
    .pos-cart-sidebar { width: 340px; }
}

/* Tablet portrait */
@media (max-width: 991.98px) {
    .content-body > .row > .col-md-4,
    .content-body > .row > .col-md-5,
    .content-body > .row > .col-md-6,
    .content-body > .row > .col-md-7,
    .content-body > .row > .col-md-8 { flex: 0 0 100%; width: 100%; max-width: 100%; }
    .content-body > .row > [class*='col-md-']:last-child { margin-bottom: 0 !important; }
    .pos-wrapper { min-height: 100vh; flex-direction: column; height: auto; overflow: visible; }
    .pos-main { min-height: 62vh; overflow: visible; }
    .pos-cart-sidebar { width: 100%; min-height: 430px; height: auto; border-top: 1px solid var(--gp-slate-200); border-left: 0; }
    .cart-items { min-height: 220px; max-height: 420px; }
}

@media (max-width: 899.98px) {
    .topbar-user { display: none !important; }
}

/* Phones */
@media (max-width: 767.98px) {
    body { font-size: 14px; }
    small,
    .small { font-size: 12.5px !important; }
    .topbar { min-height: 68px; padding: 10px 14px; }
    .topbar-heading { min-width: 0; }
    .topbar-eyebrow { display: none; }
    .topbar h1 { max-width: calc(100vw - 126px); font-size: 16px; }
    .btn-menu { width: 42px; height: 42px; }
    .btn-logout { width: 42px; height: 42px; min-height: 42px; }
    .content-body { padding: 18px 13px 32px; }
    .content-body > .mb-4:first-child h3,
    .content-body > .d-flex:first-child h4,
    .content-body > h3:first-child { font-size: 21px; }
    .card,
    .card-custom { border-radius: 13px !important; }
    .card-header { min-height: 58px; padding: 16px; }
    .card-header h5 { font-size: 16px; }
    .card-header h6 { font-size: 15px; }
    .card-body { padding: 16px; }
    .metric-card { min-height: 118px; }
    .metric-card .card-body { padding: 19px; }
    .metric-card h2 { font-size: 29px; }
    .metric-icon { width: 46px; height: 46px; }
    .form-control,
    .form-select,
    .form-control-custom { min-height: 48px; font-size: 16px; }
    .form-control-lg,
    .form-select-lg { min-height: 52px; font-size: 16px; }
    .btn { min-height: 44px; font-size: 14px; }
    .btn-sm { min-height: 42px; padding: 9px 12px; font-size: 13px; }
    .badge { font-size: 11px; }
    .table-responsive {
        margin-right: -1px;
        margin-left: -1px;
        border-radius: 0 0 12px 12px;
    }
    .table-responsive .table { min-width: 700px; }
    .table thead th { font-size: 11.5px; }
    .table tbody td { font-size: 13.5px; }
    .modal-dialog { width: auto; margin: 12px; }
    .modal-header { padding: 18px 17px 10px; }
    .modal-body { padding: 16px 17px; }
    .modal-footer { padding: 10px 17px 18px; }
    .modal-footer .btn { flex: 1; }
    .cashier-welcome .card-body { padding: 20px !important; }
    .cashier-clock { width: 100%; min-width: 0; text-align: left !important; }
    .pos-main { min-height: 58vh; padding: 13px; }
    .pos-header { gap: 12px; align-items: flex-start; }
    .pos-header > .d-flex { gap: 7px !important; }
    .pos-header .text-end { margin-right: 0 !important; }
    .pos-categories { margin-right: -13px; margin-left: -13px; padding-right: 13px; padding-left: 13px; }
    .category-chip { min-height: 42px; padding: 10px 15px; font-size: 13px; }
    .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
    .menu-item-card img { height: 118px; }
    .menu-title { min-height: 43px; padding: 10px 10px 3px; font-size: 13.5px; }
    .menu-price { padding: 0 10px 11px; font-size: 13px; }
    .cart-items { padding: 16px; }
    .cart-summary { padding: 16px; }
    .login-form-panel { padding: 28px 19px; }
    .login-mobile-brand { margin-bottom: 36px; }
    .login-mobile-brand strong { font-size: 17px; }
    .login-heading h2 { font-size: 27px; }
    .login-heading p { font-size: 14px; }
}

/* Small phones */
@media (max-width: 479.98px) {
    .topbar h1 { max-width: calc(100vw - 118px); font-size: 15px; }
    .content-body { padding-right: 11px; padding-left: 11px; }
    .card-header { padding-right: 14px; padding-left: 14px; }
    .card-body { padding-right: 14px; padding-left: 14px; }
    .card-header.d-flex { gap: 10px; align-items: flex-start !important; flex-direction: column; }
    .card-header.d-flex .btn,
    .card-header.d-flex .badge { align-self: stretch; }
    .card-header.d-flex .badge { text-align: center; }
    .d-flex.justify-content-between.mb-4 { gap: 10px; align-items: flex-start !important; flex-direction: column; }
    .d-flex.justify-content-between.mb-4 > .btn,
    .d-flex.justify-content-between.mb-4 > a { width: 100%; }
    .pos-header { flex-wrap: wrap; }
    .pos-header > div:first-child { width: 100%; }
    .pos-header .text-end { display: none; }
    .pos-back-label { display: none; }
    .menu-grid { gap: 9px; }
    .menu-item-card img { height: 108px; }
    .cart-item-img { width: 48px; height: 48px; }
    .cart-qty-btn { width: 34px; height: 34px; }
    .modal-footer { flex-direction: column-reverse; }
    .modal-footer .btn { width: 100%; }
}

/* Nomor invoice memiliki tinggi, padding, dan baseline yang konsisten di semua halaman. */
.invoice-badge {
    display: inline-flex !important;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 9px 14px !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px !important;
    font-weight: 700;
    line-height: 1 !important;
    letter-spacing: .02em;
    white-space: nowrap;
    border-radius: 10px !important;
}
.card-header .invoice-badge {
    width: auto !important;
    max-width: 100%;
    align-self: center !important;
    text-align: center;
}

/* Ambient background — selalu berada di belakang konten dan tidak ikut layout. */
.gp-ambient {
    position: fixed !important;
    z-index: 0 !important;
    inset: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    color: transparent !important;
    font-size: 0 !important;
    background:
        radial-gradient(circle at 12% 12%, rgba(118,170,221,.12), transparent 28%),
        radial-gradient(circle at 88% 16%, rgba(201,169,106,.10), transparent 24%),
        linear-gradient(135deg,#fff 0%,#f7f9fc 60%,#f5f8fc 100%);
}
.gp-ambient-grid { position:absolute; inset:0; opacity:.55; background-image:linear-gradient(rgba(91,121,153,.027) 1px,transparent 1px),linear-gradient(90deg,rgba(91,121,153,.027) 1px,transparent 1px); background-size:42px 42px; -webkit-mask-image:linear-gradient(to bottom,rgba(0,0,0,.22),transparent 74%); mask-image:linear-gradient(to bottom,rgba(0,0,0,.22),transparent 74%); }
.gp-ambient-orb { position:absolute; border-radius:50%; filter:blur(70px); opacity:.22; animation:gpOrb 18s ease-in-out infinite alternate; }
.gp-ambient-orb-one { width:28vw; height:28vw; left:-12vw; top:-9vw; background:rgba(130,182,233,.35); }
.gp-ambient-orb-two { width:23vw; height:23vw; right:-9vw; top:5vw; background:rgba(213,185,128,.28); animation-duration:22s; animation-direction:alternate-reverse; }
.gp-ambient-brand { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); display:flex; align-items:center; justify-content:center; gap:18px; opacity:.18; }
.gp-ambient-mark { position:relative; width:72px; height:72px; border:9px solid rgba(201,169,106,.75); border-right-color:transparent; border-radius:50%; }
.gp-ambient-mark::after { position:absolute; width:30px; height:9px; right:-3px; top:28px; content:""; background:rgba(201,169,106,.75); border-radius:999px; }
.gp-ambient-word { color:transparent; -webkit-text-fill-color:transparent; -webkit-text-stroke:1.8px rgba(24,49,83,.68); font-size:clamp(34px,4vw,64px); font-weight:750; letter-spacing:-.04em; line-height:1; white-space:nowrap; }
.gp-ambient-word b { -webkit-text-stroke-color:rgba(201,169,106,.9); }
.gp-ambient-icon { position:absolute; color:#5f8fbe; font-size:clamp(44px,5vw,86px); opacity:.075; animation:gpFloat 16s ease-in-out infinite; }
.gp-i1{left:8%;top:19%}.gp-i2{left:21%;bottom:14%;animation-delay:-4s}.gp-i3{left:42%;top:12%;animation-delay:-8s}.gp-i4{right:14%;bottom:15%;animation-delay:-12s}.gp-i5{right:33%;top:28%;animation-delay:-6s}.gp-i6{right:6%;top:13%;animation-delay:-10s}
.gp-ambient-wave { position:absolute; left:-10%; bottom:-18%; width:120%; height:38%; border-top:1px solid rgba(163,190,213,.22); background:linear-gradient(90deg,rgba(115,167,218,.10),rgba(159,197,231,.09) 45%,rgba(210,180,120,.06) 75%,transparent); border-radius:50% 50% 0 0 / 55% 55% 0 0; animation:gpWave 20s ease-in-out infinite alternate; }
@keyframes gpOrb { to{transform:translate3d(4vw,3vh,0) scale(1.08)} }
@keyframes gpFloat { 0%,100%{transform:translateY(0) rotate(-2deg)} 50%{transform:translateY(-17px) rotate(3deg)} }
@keyframes gpWave { to{transform:translateX(3%) translateY(-3%)} }

/* Konten tetap di atas background. Overlay dikecualikan agar selalu mengikuti viewport. */
body > :not(.gp-ambient):not(.swal2-container):not(.modal):not(.modal-backdrop) { position:relative; z-index:1; }
body > .swal2-container { position:fixed !important; inset:0 !important; z-index:3000 !important; padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left)) !important; }
body > .modal { position:fixed !important; inset:0 !important; z-index:2055 !important; }
body > .modal-backdrop { position:fixed !important; inset:0 !important; z-index:2050 !important; }
.modal-dialog-centered { min-height:calc(100% - var(--bs-modal-margin) * 2); }
.modal-dialog-scrollable .modal-content { max-height:calc(100dvh - var(--bs-modal-margin) * 2); }
.swal2-popup { max-width:min(32em,calc(100vw - 24px)) !important; max-height:calc(100dvh - 24px); overflow-y:auto; }
body.swal2-shown:not(.swal2-no-backdrop),body.modal-open { overflow:hidden !important; }

/* Kontrol printer disimpan per perangkat kasir. */
.printer-control-btn { min-height:40px; display:inline-grid; grid-template-columns:auto auto; grid-template-rows:auto auto; align-items:center; column-gap:7px; padding:7px 12px; color:#1e3a5f; line-height:1.05; background:#fff; border:1px solid #cbd8e7; border-radius:999px; }
.printer-control-btn > i { grid-row:1 / 3; color:#2563eb; }
.printer-control-btn > span { font-size:12px; font-weight:800; }
.printer-control-btn > small { max-width:105px; overflow:hidden; color:#64748b; font-size:8.5px; text-overflow:ellipsis; white-space:nowrap; }
.printer-control-btn:hover { color:#0f2b4b; background:#f8fbff; border-color:#8fb2dc; }
.printer-settings-modal { border:0; border-radius:18px; box-shadow:0 24px 70px rgba(15,23,42,.18); }
.printer-status-panel { display:flex; align-items:center; gap:12px; margin-bottom:18px; padding:14px; background:#f8fafc; border:1px solid #e2e8f0; border-radius:13px; }
.printer-status-panel > i { display:grid; width:42px; height:42px; flex:0 0 42px; place-items:center; color:#2563eb; background:#dbeafe; border-radius:11px; }
.printer-status-panel strong,.printer-status-panel small { display:block; }
.printer-status-panel small { margin-top:3px; color:#64748b; font-size:11px; }
.printer-auto-switch { margin:17px 0; padding:14px 14px 14px 48px; background:#f8fafc; border:1px solid #e2e8f0; border-radius:12px; }
.printer-compat-note { display:flex; gap:9px; padding:12px; color:#475569; font-size:11px; line-height:1.55; background:#fffbeb; border:1px solid #fde68a; border-radius:11px; }
.printer-compat-note i { margin-top:2px; color:#d97706; }
.store-toggle-btn { min-height:40px; display:inline-flex; align-items:center; gap:7px; padding:8px 13px; font-size:12px; font-weight:800; white-space:nowrap; background:#fff; border:1px solid; border-radius:999px; transition:.2s ease; }
.store-toggle-btn.store-open { color:#15803d; background:#f0fdf4; border-color:#86efac; }
.store-toggle-btn.store-closed { color:#b91c1c; background:#fef2f2; border-color:#fca5a5; }
.store-toggle-btn:disabled { opacity:.65; cursor:wait; }

@media (max-width:767.98px) {
    .topbar-heading { flex:1 1 auto; min-width:0; overflow:hidden; }
    .topbar h1 { max-width:100%; }
    .topbar-actions { flex:0 0 auto; gap:5px; }
    .gp-ambient-brand { gap:10px; opacity:.12; }
    .gp-ambient-mark { width:52px; height:52px; border-width:7px; }
    .gp-ambient-mark::after { width:22px; height:7px; top:20px; }
    .gp-ambient-icon { opacity:.055; }
    .modal-dialog { margin:12px; }
    .modal-dialog-centered { min-height:calc(100% - 24px); }
    .modal-dialog-scrollable .modal-content { max-height:calc(100dvh - 24px); }
    .swal2-popup { width:calc(100vw - 24px) !important; padding:22px 18px !important; }
    .printer-control-btn { min-width:40px; grid-template-columns:auto; padding:8px 10px; }
    .printer-control-btn > i { grid-row:auto; }
    .printer-control-btn > span,.printer-control-btn > small { display:none; }
    .printer-settings-modal .modal-footer { flex-direction:column; }
    .printer-settings-modal .modal-footer .btn { width:100%; }
    .store-toggle-btn { min-width:40px; justify-content:center; padding:9px 10px; }
    .store-toggle-btn span { display:none; }
}
@media (prefers-reduced-motion:reduce) { .gp-ambient * { animation:none !important; } }
/* Dialog aplikasi pengganti alert/confirm/prompt bawaan browser. */
.gopang-dialog-overlay {
    position: fixed;
    inset: 0;
    z-index: 20050;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(15, 23, 42, .58);
}
.gopang-dialog-card {
    width: min(100%, 28rem);
    max-height: min(34rem, calc(100dvh - 2rem));
    overflow: auto;
    padding: 1.5rem;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
    text-align: center;
}
.gopang-dialog-card h2 { margin: 0 0 .65rem; font-size: 1.25rem; font-weight: 750; }
.gopang-dialog-card p { margin: 0; color: #64748b; overflow-wrap: anywhere; white-space: pre-wrap; }
.gopang-dialog-actions { display: flex; justify-content: center; gap: .65rem; margin-top: 1.35rem; flex-wrap: wrap; }

/* Status meja pada monitor kasir. */
.cashier-table-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 12px;
}
.cashier-table-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    min-height: 104px;
    padding: 13px;
    background: #fff;
    border: 1px solid #dbe4ee;
    border-left-width: 4px;
    border-radius: 13px;
}
.cashier-table-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #2563eb;
    background: #eff6ff;
    border-radius: 11px;
}
.cashier-table-info { min-width: 0; }
.cashier-table-info strong,
.cashier-table-info small { display: block; }
.cashier-table-info strong { overflow: hidden; color: #172554; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.cashier-table-info small { margin-top: 3px; color: #64748b; font-size: 10.5px; line-height: 1.35; word-break: normal; overflow-wrap: normal; }
.cashier-table-state { grid-column: 1 / -1; display:flex; min-height:25px; align-items:center; justify-content:center; padding: 5px 10px; font-size: 9.5px; font-weight: 800; line-height: 1; text-align:center; white-space: nowrap; border-radius: 999px; }
.cashier-table-card.is-empty { border-left-color: #22c55e; }
.cashier-table-card.is-empty .cashier-table-state { color: #15803d; background: #dcfce7; }
.cashier-table-card.is-waiting { border-left-color: #f59e0b; }
.cashier-table-card.is-waiting .cashier-table-icon { color: #b45309; background: #fffbeb; }
.cashier-table-card.is-waiting .cashier-table-state { color: #92400e; background: #fef3c7; }
.cashier-table-card.is-occupied { border-left-color: #ef4444; }
.cashier-table-card.is-occupied .cashier-table-icon { color: #b91c1c; background: #fef2f2; }
.cashier-table-card.is-occupied .cashier-table-state { color: #b91c1c; background: #fee2e2; }
.cashier-table-empty { grid-column: 1 / -1; padding: 14px; color: #64748b; font-size: 12px; text-align: center; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 12px; }
.cashier-new-order-summary { display: grid; gap: 7px; margin-top: 6px; padding: 14px; text-align: left; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; }
.cashier-new-order-summary > span { color: #172554; font-weight: 750; }
.cashier-new-order-summary > strong { color: #15803d; font-size: 20px; }
.cashier-new-order-summary > small { color: #64748b; }

/* Editor pesanan dibuka setelah kasir menerima antrean. */
.cashier-order-editor { overflow:hidden; border:0; border-radius:18px; box-shadow:0 24px 70px rgba(15,23,42,.2); }
.cashier-order-editor-meta { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-bottom:18px; }
.cashier-order-editor-meta > div { min-width:0; padding:11px 13px; background:#f8fafc; border:1px solid #e2e8f0; border-radius:11px; }
.cashier-order-editor-meta small,.cashier-order-editor-meta strong { display:block; }
.cashier-order-editor-meta small { margin-bottom:3px; color:#64748b; font-size:10px; font-weight:700; }
.cashier-order-editor-meta strong { color:#172554; font-size:12px; line-height:1.35; overflow-wrap:anywhere; }
.cashier-order-editor-items { min-height:150px; border:1px solid #e2e8f0; border-radius:13px; overflow:hidden; }
.cashier-order-editor-loading { display:grid; min-height:150px; place-items:center; color:#64748b; }
.cashier-order-editor-table thead th { padding:12px; color:#64748b; font-size:10px; text-transform:uppercase; background:#f8fafc; border-bottom:1px solid #e2e8f0; }
.cashier-order-editor-table td { padding:12px; font-size:12px; }
.cashier-order-editor-table tfoot td { background:#fffbeb; border-top:1px solid #fde68a; }
.cashier-order-qty { display:grid; grid-template-columns:32px 48px 32px; justify-content:center; }
.cashier-order-qty button,.cashier-order-qty input { min-height:34px; text-align:center; background:#fff; border:1px solid #cbd5e1; }
.cashier-order-qty button:first-child { border-radius:8px 0 0 8px; }
.cashier-order-qty button:last-child { border-radius:0 8px 8px 0; }
.cashier-order-qty input { width:48px; padding:4px; border-right:0; border-left:0; -moz-appearance:textfield; }
.cashier-order-qty input::-webkit-inner-spin-button { margin:0; -webkit-appearance:none; }
.cashier-order-editor-actions { display:flex; justify-content:center; gap:6px; }
.cashier-order-editor-add { display:grid; grid-template-columns:minmax(0,1fr) 100px auto; gap:10px; align-items:end; padding:14px; background:#f8fafc; border:1px solid #e2e8f0; border-radius:13px; }
.cashier-order-editor-add .form-label { margin-bottom:5px; color:#475569; font-size:11px; font-weight:700; }
#orderEditorModal.is-saving .modal-content { pointer-events:none; opacity:.72; }

/* Pemilih meja berbentuk kartu pada POS kasir. */
.pos-table-picker-popup { width: min(680px, calc(100vw - 24px)) !important; }
.pos-table-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-height: min(320px, 42dvh);
    margin: 4px 0 17px;
    padding: 2px;
    overflow: auto;
}
.pos-table-choice {
    position: relative;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-height: 82px;
    padding: 12px;
    color: #172554;
    text-align: left;
    background: #fff;
    border: 1px solid #dbe4ee;
    border-radius: 13px;
    cursor: pointer;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.pos-table-choice:hover { border-color: #93b4dd; transform: translateY(-1px); }
.pos-table-choice.is-selected { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .14); }
.pos-table-choice-icon { display: grid; width: 36px; height: 36px; place-items: center; color: #2563eb; background: #eff6ff; border-radius: 10px; }
.pos-table-choice-copy { min-width: 0; }
.pos-table-choice-copy strong,
.pos-table-choice-copy small { display: block; }
.pos-table-choice-copy strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.pos-table-choice-copy small { margin-top: 2px; color: #64748b; font-size: 10px; }
.pos-table-choice-status { position: absolute; right: 8px; bottom: 7px; padding: 4px 7px; font-size: 8px; font-weight: 800; border-radius: 999px; }
.pos-table-choice.is-empty .pos-table-choice-status { color: #15803d; background: #dcfce7; }
.pos-table-choice.is-occupied .pos-table-choice-icon { color: #b91c1c; background: #fef2f2; }
.pos-table-choice.is-occupied .pos-table-choice-status { color: #b91c1c; background: #fee2e2; }
.pos-table-choice.is-general .pos-table-choice-status { color: #1d4ed8; background: #dbeafe; }
.pos-table-choice-empty { grid-column: 1 / -1; padding: 18px; color: #64748b; font-size: 12px; text-align: center; background: #f8fafc; border-radius: 12px; }
.pos-customer-field { display: block; color: #334155; text-align: left; }
.pos-customer-field > span { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 750; }
.pos-customer-field input { width: 100%; min-height: 46px; padding: 10px 13px; color: #172554; background: #fff; border: 1px solid #cbd5e1; border-radius: 10px; outline: 0; }
.pos-customer-field input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }

@media (max-width: 767.98px) {
    .cashier-table-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .cashier-table-card { grid-template-columns: 36px minmax(0, 1fr); min-height: 98px; padding: 11px; }
    .cashier-table-icon { width: 36px; height: 36px; }
    .cashier-order-editor-meta { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .cashier-order-editor-add { grid-template-columns:minmax(0,1fr) 82px; }
    .cashier-order-editor-add .btn { grid-column:1 / -1; width:100%; }
    .pos-table-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 44dvh; }
}
@media (max-width: 379.98px) {
    .cashier-table-status-grid,
    .pos-table-choice-grid { grid-template-columns: 1fr; }
    .cashier-order-editor-meta { grid-template-columns:1fr; }
}
