.admin-body { background: #e8e2d6; }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; }
.admin-sidebar {
    background: #0b1a27;
    color: #d7e0e7;
    padding: 1.2rem 1rem;
    display: flex;
    flex-direction: column;
}
.admin-brand { display: flex; align-items: center; gap: 0.6rem; color: #fff; text-decoration: none; font-family: Syne, sans-serif; font-weight: 700; margin-bottom: 1.4rem; }
.admin-sidebar nav { display: flex; flex-direction: column; gap: 0.25rem; }
.admin-sidebar nav a, .admin-mobile-nav a, .admin-exit {
    color: #d7e0e7;
    text-decoration: none;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
}
.admin-sidebar nav a:hover, .admin-mobile-nav a:hover, .admin-exit:hover { background: #163246; color: #1ec8d4; }
.admin-exit { margin-top: auto; background: none; border: 0; width: 100%; text-align: left; cursor: pointer; }
.admin-auth-body { min-height: 100vh; display: grid; place-items: center; background: #0b1a27; padding: 1.5rem; }
.admin-auth-card { width: min(460px, 100%); background: #fffdf8; color: #102033; padding: 1.8rem; border-radius: 12px; }
.admin-auth-card h1 { font-size: 1.4rem; margin-bottom: 0.8rem; }
.admin-auth-card .brand-text { color: #102033; }
.admin-auth-card .brand-text em { color: #0c5660; }
.qr-code { background: #fff; padding: 0.6rem; border: 1px solid #d7d0c4; }
.auth-key { font-family: Consolas, monospace; letter-spacing: 0.08em; font-weight: 700; }
.recovery-codes { columns: 2; font-family: Consolas, monospace; }
.admin-main { min-width: 0; }
.admin-topbar {
    background: #12324a;
    color: #fff;
    padding: 0.9rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.admin-topbar h1 { font-size: 1.2rem; margin: 0; flex: 1; }
.admin-content { padding: 1.4rem; }
.admin-panel { padding: 1.2rem; }
.admin-toolbar { display: flex; gap: 0.7rem; margin-bottom: 1rem; }
.admin-toolbar .form-control, .admin-toolbar .form-select { max-width: 320px; }
.admin-table { background: #fffdf8; }
.admin-thumb { max-width: 160px; display: block; margin-bottom: 0.8rem; }
.admin-subtitle { margin: 1.6rem 0 0.6rem; font-size: 1.15rem; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.9rem; margin-bottom: 1.2rem; }
.stat-card { background: #fffdf8; border: 1px solid #d7d0c4; padding: 1rem; }
.stat-card span { display: block; color: #66717b; font-size: 0.85rem; }
.stat-card strong { font-size: 2rem; font-family: Syne, sans-serif; }
.stat-card.in { border-top: 4px solid #1f8a4c; }
.stat-card.low { border-top: 4px solid #c47a12; }
.stat-card.out { border-top: 4px solid #b4232c; }
.inventory-qty { display: flex; justify-content: flex-end; gap: 0.4rem; }
.inventory-qty input { width: 90px; }
.table-row-new { background: #eef7f4; }
.admin-offcanvas { background: #0b1a27; color: #fff; }
.admin-mobile-nav { display: flex; flex-direction: column; gap: 0.4rem; }
.pos-toolbar { margin-bottom: 1rem; }
.pos-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1rem; align-items: start; }
.pos-results { margin-top: 0.7rem; display: flex; flex-direction: column; gap: 0.4rem; }
.pos-result {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    text-align: left;
    background: #fff;
    border: 1px solid #d7d0c4;
    border-radius: 8px;
    padding: 0.65rem 0.8rem;
}
.pos-result small { display: block; color: #66717b; }
.pos-custom { display: grid; grid-template-columns: 1fr 120px auto; gap: 0.5rem; }
.pos-line {
    display: grid;
    grid-template-columns: 1fr 80px 100px 90px auto;
    gap: 0.45rem;
    align-items: center;
    margin-bottom: 0.55rem;
}
.pos-totals { width: 100%; }
.pos-totals th { font-weight: 500; }
.pos-totals td { text-align: right; }

@media (max-width: 991px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
    .pos-grid, .pos-custom, .pos-line { grid-template-columns: 1fr; }
}
