:root {
    --primary: #1e6f5c;
    --primary-dark: #175946;
    --accent: #f39c12;
    --accent-dark: #e08e0b;
    --sidebar-bg: #16342e;
    --sidebar-hover: #1e453c;
    --bg: #f4f6f8;
    --danger: #e74c3c;
    --success: #27ae60;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: #2c3e50;
}

/* ===== AUTH ===== */
.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f8fa;
    padding: 24px;
}

.auth-shell {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-card {
    width: 100%;
    background: #fff;
    border: 1px solid #eceef1;
    border-radius: 16px;
    padding: 40px 36px;
    box-shadow: 0 8px 40px rgba(15, 23, 42, 0.06);
}

.auth-head {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #fafafa;
    color: #0f172a;
    border: 1px solid #eceef1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    padding: 5px;
    margin-bottom: 18px;
    object-fit: contain;
}

.auth-head h1 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px;
    letter-spacing: -0.3px;
}

.auth-head p {
    font-size: .9rem;
    color: #94a3b8;
    margin: 0;
}

.auth-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: .85rem;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.auth-form { display: flex; flex-direction: column; gap: 18px; }

.auth-form .field { display: flex; flex-direction: column; gap: 7px; }

.auth-form .field label {
    font-size: .82rem;
    font-weight: 600;
    color: #334155;
}

.auth-form .field input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    font-size: .95rem;
    color: #0f172a;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: border-color .15s, box-shadow .15s;
    outline: none;
}

.auth-form .field input::placeholder { color: #b0b8c4; }

.auth-form .field input:focus {
    border-color: #0f172a;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.pass-wrap { position: relative; }

.pass-wrap input { padding-right: 44px !important; }

.pass-toggle {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.05rem;
    cursor: pointer;
    border-radius: 8px;
}

.pass-toggle:hover { color: #334155; }

.auth-inline { margin-top: -8px; }

.check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    user-select: none;
    font-size: .88rem;
    color: #475569;
}

.check input { display: none; }

.check-box {
    width: 18px;
    height: 18px;
    border: 1.5px solid #cbd5e1;
    border-radius: 5px;
    display: inline-block;
    position: relative;
    transition: all .15s;
    flex-shrink: 0;
}

.check input:checked + .check-box {
    background: #0f172a;
    border-color: #0f172a;
}

.check input:checked + .check-box::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.auth-submit {
    width: 100%;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #0f172a;
    color: #fff;
    font-size: .95rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background .15s, transform .05s;
    margin-top: 6px;
}

.auth-submit i { font-size: 1rem; }

.auth-submit:hover { background: #1e293b; }
.auth-submit:active { transform: scale(.99); }

.auth-footer {
    margin-top: 24px;
    font-size: .78rem;
    color: #94a3b8;
}

/* ===== ADMIN LAYOUT ===== */
.app-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 244px;
    min-width: 244px;
    background: #ffffff;
    border-right: 1px solid #eceef1;
    color: #334155;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 18px 18px;
    border-bottom: 1px solid #f1f5f9;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #fafafa;
    color: #0f172a;
    border: 1px solid #eceef1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    overflow: hidden;
    padding: 3px;
}

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

.brand-name {
    font-weight: 700;
    font-size: 1rem;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-nav {
    flex: 1;
    padding: 12px 10px 20px;
}

.nav-section {
    font-size: .66rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #a5b0c2;
    padding: 18px 12px 7px;
    font-weight: 600;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #51617a;
    padding: 9px 12px;
    border-radius: 8px;
    margin: 1px 0;
    font-size: .9rem;
    text-decoration: none;
    transition: all .15s;
}

.sidebar-nav .nav-link i {
    font-size: 1.05rem;
    width: 20px;
    text-align: center;
    color: #94a3b8;
}

.sidebar-nav .nav-link:hover {
    background: #f4f6f8;
    color: #0f172a;
}

.sidebar-nav .nav-link:hover i { color: #0f172a; }

.sidebar-nav .nav-link.active {
    background: #0f172a;
    color: #fff;
    font-weight: 600;
}

.sidebar-nav .nav-link.active i { color: #fff; }

.sidebar-nav .nav-link.pos-highlight:not(.active) i { color: #0f172a; }

.sidebar-footer {
    padding: 12px;
    border-top: 1px solid #f1f5f9;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 6px 12px;
}

.avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #eef2f6;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.user-meta { min-width: 0; }

.user-name {
    font-weight: 600;
    color: #0f172a;
    font-size: .88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: .74rem;
    color: #94a3b8;
    text-transform: capitalize;
}

.btn-logout {
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #51617a;
    font-size: .85rem;
}

.btn-logout:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.main-content {
    flex: 1;
    padding: 28px 32px;
    min-height: 100vh;
    background: #f7f8fa;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.page-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.3px;
}

.btn-pos {
    background: #0f172a;
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 9px;
    padding: 9px 16px;
}

.btn-pos:hover {
    background: #1e293b;
    color: #fff;
}

/* Stats grid */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.stat-card {
    background: #fff;
    border: 1px solid #eceef1;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: #f1f5f9;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
}

.stat-body { min-width: 0; }

.stat-label {
    font-size: .76rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.stat-value {
    font-size: 1.45rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    margin: 3px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.5px;
}

.stat-trend {
    font-size: .76rem;
    color: #94a3b8;
}

/* Panels */
.panel {
    background: #fff;
    border: 1px solid #eceef1;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    margin-bottom: 20px;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px 20px;
    border-bottom: 1px solid #f1f5f9;
}

.panel-head h3 {
    font-size: .98rem;
    font-weight: 650;
    color: #0f172a;
    margin: 0;
}

.panel-link {
    font-size: .82rem;
    color: #0f172a;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.panel-link:hover { text-decoration: underline; }

.panel-sub {
    font-size: .76rem;
    color: #94a3b8;
    font-weight: 500;
}

.panel-body { padding: 18px; }

/* Tables */
.table thead th {
    background: #f8fafc;
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #94a3b8;
    white-space: nowrap;
    border-bottom: 1px solid #eceef1;
    font-weight: 600;
    padding: 12px 16px;
}

.table td {
    vertical-align: middle;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    padding: 13px 16px;
}

.table-hover tbody tr:hover { background: #fafbfc; }

.inv-link {
    color: #0f172a;
    font-weight: 600;
    text-decoration: none;
}

.inv-link:hover { text-decoration: underline; }

/* Chips */
.chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: .76rem;
    font-weight: 600;
}

.chip-red { background: #fef2f2; color: #b91c1c; }
.chip-amber { background: #fffbeb; color: #b45309; }
.chip-green { background: #f0fdf4; color: #15803d; }

/* Badge */
.badge-soft-success { background: #f0fdf4; color: #15803d; }
.badge-soft-warning { background: #fffbeb; color: #b45309; }
.badge-soft-danger { background: #fef2f2; color: #b91c1c; }
.badge-soft-info { background: #eff6ff; color: #1d4ed8; }
.badge-soft-secondary { background: #f1f5f9; color: #475569; }

/* Rank list */
.rank-list { list-style: none; margin: 0; padding: 0; }

.rank-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 20px;
    border-bottom: 1px solid #f1f5f9;
}

.rank-item:last-child { border-bottom: none; }

.rank-num {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.rank-name {
    font-size: .9rem;
    color: #0f172a;
    font-weight: 500;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-val {
    font-size: .8rem;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
}

.product-thumb {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 8px;
    background: #f0f0f0;
}

/* Forms */
.form-label {
    font-weight: 600;
    font-size: .85rem;
    color: #334155;
}

.form-card {
    background: #fff;
    border: 1px solid #eceef1;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    padding: 28px;
}

.card {
    border: none;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.card-header {
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
    font-weight: 650;
    color: #0f172a;
    border-radius: 14px 14px 0 0 !important;
    padding: 17px 20px;
}

.card-body { color: #334155; }

/* ===== POS REGISTER ===== */
.pos-body {
    height: 100vh;
    overflow: hidden;
    background: #f4f6f8;
}

.pos-app {
    display: flex;
    height: 100vh;
}

.pos-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f4f6f8;
    min-width: 0;
}

.pos-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 18px;
    background: #ffffff;
    border-bottom: 1px solid #eceef1;
}

.pos-header .pos-store {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0f172a;
    font-weight: 700;
    font-size: 1.02rem;
    white-space: nowrap;
}

.pos-logo {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: #fafafa;
    color: #0f172a;
    border: 1px solid #eceef1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    overflow: hidden;
    flex-shrink: 0;
    padding: 3px;
}

.pos-logo img { width: 100%; height: 100%; object-fit: cover; }

.pos-search {
    flex: 1;
    position: relative;
    max-width: 640px;
    margin: 0 auto;
}

.pos-search input {
    width: 100%;
    height: 46px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    color: #0f172a;
    padding: 0 42px 0 16px;
    font-size: .95rem;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

.pos-search input:focus {
    border-color: #0f172a;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.pos-search input::placeholder { color: #94a3b8; }

.pos-search i {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.1rem;
    pointer-events: none;
}

.pos-scan-flash {
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 3px;
    background: #16a34a;
    display: none;
}

.pos-search.flashing .pos-scan-flash { display: block; animation: flashpulse .3s; }
@keyframes flashpulse {
    0% { background: transparent; }
    50% { background: #22c55e; }
    100% { background: transparent; }
}

.pos-user {
    color: #51617a;
    font-size: .88rem;
    font-weight: 500;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.avatar.small {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #eef2f6;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #51617a;
    font-size: .95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .15s;
    text-decoration: none;
}

.icon-btn:hover { background: #f1f5f9; color: #0f172a; }

/* Category strip */
.category-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: #ffffff;
    border-bottom: 1px solid #eceef1;
    overflow-x: auto;
    flex-shrink: 0;
}

.category-strip::-webkit-scrollbar { height: 6px; }
.category-strip::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 3px; }

.cat-btn {
    background: #f1f5f9;
    border: 1px solid transparent;
    color: #51617a;
    padding: 8px 16px;
    border-radius: 9px;
    font-size: .88rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all .15s;
}

.cat-btn:hover { background: #e8edf3; color: #0f172a; }
.cat-btn.active { background: #0f172a; color: #fff; }

/* Product grid */
.product-grid {
    flex: 1;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
    grid-auto-rows: 190px;
    gap: 14px;
    padding: 18px;
    align-content: start;
}

.product-grid::-webkit-scrollbar { width: 8px; }
.product-grid::-webkit-scrollbar-thumb { background: #d3dae3; border-radius: 4px; }

.product-tile {
    background: #fff;
    border: 1px solid #eceef1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: all .15s;
    text-align: center;
    user-select: none;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.product-tile:hover { border-color: #cbd5e1; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08); }
.product-tile.low { border-color: #fcd34d; }
.product-tile.out { opacity: .55; border-color: #fecaca; }

.product-tile .tile-img {
    width: 100%;
    height: 96px;
    object-fit: cover;
    background: #f8fafc;
    flex-shrink: 0;
}

.product-tile .tile-img.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 30px;
}

/* Uniform info area: fixed reserved space so title always visible */
.product-tile .tile-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 92px;
    justify-content: space-between;
}

.product-tile .tile-name {
    color: #0f172a;
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.13em;
}

.product-tile .tile-footer {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 8px;
}

.product-tile .tile-price {
    color: #0f172a;
    font-size: 1.02rem;
    font-weight: 700;
}

.product-tile .tile-stock {
    font-size: .72rem;
    color: #94a3b8;
    font-weight: 500;
}

.txt-low { color: #b45309; font-weight: 600; }
.txt-out { color: #dc2626; font-weight: 600; }

/* Cart panel */
.pos-cart {
    width: 372px;
    min-width: 372px;
    background: #ffffff;
    border-left: 1px solid #eceef1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cart-header {
    padding: 13px 18px;
    background: #fff;
    color: #0f172a;
    font-weight: 700;
    font-size: .98rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header .badge { background: #f1f5f9 !important; color: #0f172a !important; font-weight: 700; }

.cart-header .cart-actions button {
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    font-size: 1rem;
    margin-left: 4px;
    cursor: pointer;
    transition: all .15s;
    line-height: 1;
}

.cart-header .cart-actions button:hover { background: #f1f5f9; color: #0f172a; }

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 12px 14px;
}

.cart-items::-webkit-scrollbar { width: 6px; }
.cart-items::-webkit-scrollbar-thumb { background: #d3dae3; border-radius: 3px; }

.cart-empty {
    color: #94a3b8;
    text-align: center;
    margin-top: 60px;
}

.cart-empty i { font-size: 52px; display: block; margin-bottom: 12px; color: #d3dae3; }

.cart-item {
    background: #f8fafc;
    border: 1px solid #eceef1;
    border-radius: 11px;
    padding: 11px 13px;
    margin-bottom: 9px;
}

.cart-item .ci-header {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.cart-item .ci-name {
    color: #0f172a;
    font-weight: 600;
    font-size: .88rem;
    flex: 1;
}

.cart-item .ci-remove {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.05rem;
    padding: 0;
    line-height: 1;
    cursor: pointer;
}

.cart-item .ci-remove:hover { color: #dc2626; }

.cart-item .ci-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 9px;
}

.cart-item .qty-stepper {
    display: flex;
    align-items: center;
    gap: 2px;
}

.cart-item .qty-stepper button {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #0f172a;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .15s;
}

.cart-item .qty-stepper button:hover { background: #0f172a; color: #fff; border-color: #0f172a; }
.cart-item .qty-stepper .qty-val {
    min-width: 36px;
    text-align: center;
    color: #0f172a;
    font-weight: 700;
}

.cart-item .ci-total {
    color: #0f172a;
    font-weight: 700;
    font-size: 1rem;
    text-align: right;
}

.cart-item .ci-price {
    font-size: .74rem;
    color: #94a3b8;
    text-align: right;
}

/* Totals */
.cart-totals {
    padding: 12px 18px;
    background: #fff;
    border-top: 1px solid #f1f5f9;
}

.tt-row {
    display: flex;
    justify-content: space-between;
    color: #51617a;
    font-size: .9rem;
    padding: 3px 0;
}

.tt-row.grand {
    color: #0f172a;
    font-weight: 700;
    font-size: 1.3rem;
    padding-top: 9px;
    margin-top: 7px;
    border-top: 1px solid #eceef1;
}

.tt-row.grand .tt-value { color: #0f172a; }

.checkout-bar {
    padding: 12px 18px 18px;
    background: #fff;
    border-top: 1px solid #f1f5f9;
}

.checkout-bar .btn-collect {
    background: #0f172a;
    border: none;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 14px;
    border-radius: 11px;
    width: 100%;
    letter-spacing: .3px;
    cursor: pointer;
    transition: background .15s;
}

.checkout-bar .btn-collect:hover { background: #1e293b; }

.checkout-bar .checkout-secondary {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.checkout-bar .checkout-secondary .btn {
    flex: 1;
    font-size: .85rem;
    border-radius: 9px;
    border-color: #e2e8f0;
    color: #51617a;
    font-weight: 600;
}

.checkout-bar .checkout-secondary .btn:hover { background: #f1f5f9; color: #0f172a; }

/* Payment modal */
.modal-content { border: none; border-radius: 14px; box-shadow: 0 20px 50px rgba(15,23,42,.18); }

.pay-total {
    text-align: center;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #eceef1;
    border-radius: 12px;
}

.pay-total .label { font-size: .8rem; color: #94a3b8; text-transform: uppercase; letter-spacing: .5px; }
.pay-total .amount { font-size: 2.3rem; font-weight: 800; color: #0f172a; }

.numpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.numpad button {
    padding: 16px;
    font-size: 1.15rem;
    font-weight: 700;
    border: 1px solid #eceef1;
    border-radius: 9px;
    background: #fff;
    color: #0f172a;
    cursor: pointer;
    transition: all .1s;
}
.numpad button:hover { background: #f1f5f9; border-color: #e2e8f0; }
.numpad button:active { transform: scale(.95); }
.numpad .num-clear { grid-column: span 2; }

.pay-due { font-size: 1.15rem; font-weight: 700; color: #0f172a; }
.pay-due .due-amount { color: #16a34a; font-size: 1.5rem; }

#paymentModal .form-control, #paymentModal .form-select {
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    padding: 10px 14px;
    font-size: 1rem;
}
#paymentModal .form-control:focus, #paymentModal .form-select:focus {
    border-color: #0f172a;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

/* Holds / Discount / Customer modals */
#holdsModal .hold-row, .modal-body .form-label {
    color: #334155;
}

/* Receipt */
.receipt {
    background: #fff;
    max-width: 300px;
    margin: 0 auto;
    font-family: 'Courier New', monospace;
    padding: 16px;
    font-size: 12px;
    color: #000;
    line-height: 1.3;
}

.receipt .rc-store { text-align: center; font-size: 14px; font-weight: 700; }
.receipt .rc-store img { max-width: 80px; max-height: 50px; }
.receipt .rc-contact { text-align: center; font-size: 10px; }
.receipt hr { border: none; border-top: 1px dashed #000; margin: 6px 0; }
.receipt .rc-row { display: flex; justify-content: space-between; }
.receipt .rc-item-row { display: flex; justify-content: space-between; }
.receipt .rc-qty { font-size: 10px; }
.receipt .rc-total-row { display: flex; justify-content: space-between; font-weight: 700; margin: 4px 0; }
.receipt .rc-footer { text-align: center; font-size: 10px; margin-top: 8px; }

.receipt-modal .modal-content { background: transparent; border: none; box-shadow: none; }
.receipt-actions { text-align: center; margin-top: 12px; }

@media print {
    body * { visibility: hidden; }
    .receipt, .receipt * { visibility: visible; }
    .receipt { position: absolute; left: 0; top: 0; width: 100%; border: none; }
    .receipt-actions { display: none; }
}

/* Misc */
.text-small { font-size: .8rem; }
.cursor-pointer { cursor: pointer; }
.list-group-item-action:hover { background: #f9fbfa; }

@media (max-width: 1200px) {
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
    .pos-cart { width: 340px; min-width: 340px; }
}
