/* ============================================================
   Mobile Shop Management System — Main Stylesheet
   Design: Industrial/Utilitarian with sharp accent colors
   Fonts: Syne (headings) + DM Sans (body)
   ============================================================ */

:root {
    --bg:           #0f0f13;
    --bg2:          #16161d;
    --bg3:          #1e1e28;
    --border:       #2a2a38;
    --border2:      #35354a;
    --accent:       #f5a623;
    --accent2:      #e8952a;
    --accent-glow:  rgba(245, 166, 35, 0.15);
    --green:        #2ecc71;
    --green-dim:    rgba(46, 204, 113, 0.12);
    --red:          #e74c3c;
    --red-dim:      rgba(231, 76, 60, 0.12);
    --blue:         #3498db;
    --blue-dim:     rgba(52, 152, 219, 0.12);
    --purple:       #9b59b6;
    --purple-dim:   rgba(155, 89, 182, 0.12);
    --text:         #e8e8f0;
    --text2:        #9999b0;
    --text3:        #5a5a72;
    --sidebar-w:    260px;
    --radius:       10px;
    --radius-sm:    6px;
    --shadow:       0 4px 24px rgba(0,0,0,0.4);
    --transition:   0.2s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent2); }

/* ── Sidebar ── */
.sidebar {
    width: var(--sidebar-w);
    min-height: 100vh;
    background: var(--bg2);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0; top: 0;
    z-index: 100;
    transition: transform var(--transition);
}

.sidebar-brand {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}
.brand-icon {
    width: 42px; height: 42px;
    background: var(--accent-glow);
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
}
.brand-name {
    display: block;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.2;
}
.brand-sub {
    display: block;
    font-size: 0.7rem;
    color: var(--text3);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    color: var(--text2);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
    border: 1px solid transparent;
}
.nav-item:hover {
    background: var(--bg3);
    color: var(--text);
    border-color: var(--border);
}
.nav-item.active {
    background: var(--accent-glow);
    color: var(--accent);
    border-color: rgba(245,166,35,0.3);
}
.nav-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    opacity: 0.8;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text2);
}
.user-avatar {
    width: 32px; height: 32px;
    background: var(--accent);
    color: #000;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
}
.logout-btn {
    width: 32px; height: 32px;
    border-radius: var(--radius-sm);
    background: var(--red-dim);
    color: var(--red);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    border: 1px solid rgba(231,76,60,0.2);
    transition: all var(--transition);
}
.logout-btn:hover {
    background: var(--red);
    color: #fff;
}

/* ── Mobile toggle ── */
.mobile-toggle {
    display: none;
    position: fixed;
    top: 16px; left: 16px;
    z-index: 200;
    background: var(--bg2);
    border: 1px solid var(--border);
    color: var(--text);
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    cursor: pointer;
}

/* ── Main content ── */
.main-content {
    margin-left: var(--sidebar-w);
    flex: 1;
    padding: 32px;
    min-height: 100vh;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.page-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text);
}
.page-date {
    font-size: 0.8rem;
    color: var(--text3);
    letter-spacing: 0.03em;
}

/* ── Cards ── */
.card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}
.card-title {
    font-family: 'Syne', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text3);
    margin-bottom: 16px;
}

/* ── Stat grid ── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}
.stat-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    position: relative;
    overflow: hidden;
    transition: border-color var(--transition);
}
.stat-card:hover { border-color: var(--border2); }
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px;
    height: 100%;
}
.stat-card.orange::before { background: var(--accent); }
.stat-card.green::before  { background: var(--green); }
.stat-card.blue::before   { background: var(--blue); }
.stat-card.purple::before { background: var(--purple); }
.stat-card.red::before    { background: var(--red); }

.stat-label {
    font-size: 0.75rem;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}
.stat-value {
    font-family: 'Syne', sans-serif;
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    margin-bottom: 6px;
}
.stat-sub {
    font-size: 0.75rem;
    color: var(--text3);
}
.stat-icon {
    position: absolute;
    top: 18px; right: 18px;
    font-size: 1.6rem;
    opacity: 0.15;
}

/* ── Table ── */
.table-wrap { overflow-x: auto; }
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
thead th {
    font-family: 'Syne', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text3);
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    font-weight: 600;
}
tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}
tbody tr:hover { background: var(--bg3); }
tbody td {
    padding: 12px 14px;
    color: var(--text);
    vertical-align: middle;
}
tbody tr:last-child { border-bottom: none; }

/* ── Badges ── */
.badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}
.badge-green  { background: var(--green-dim);  color: var(--green); }
.badge-red    { background: var(--red-dim);    color: var(--red); }
.badge-orange { background: var(--accent-glow); color: var(--accent); }
.badge-blue   { background: var(--blue-dim);   color: var(--blue); }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}
.btn-primary:hover {
    background: var(--accent2);
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(245,166,35,0.3);
}
.btn-outline {
    background: transparent;
    color: var(--text2);
    border-color: var(--border);
}
.btn-outline:hover {
    background: var(--bg3);
    color: var(--text);
    border-color: var(--border2);
}
.btn-danger {
    background: var(--red-dim);
    color: var(--red);
    border-color: rgba(231,76,60,0.3);
}
.btn-danger:hover {
    background: var(--red);
    color: #fff;
}
.btn-green {
    background: var(--green-dim);
    color: var(--green);
    border-color: rgba(46,204,113,0.3);
}
.btn-green:hover {
    background: var(--green);
    color: #000;
}
.btn-sm { padding: 5px 12px; font-size: 0.8rem; }
.btn-lg { padding: 12px 28px; font-size: 0.95rem; }
.btn-full { width: 100%; justify-content: center; }

/* ── Forms ── */
.form-group { margin-bottom: 18px; }
.form-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text2);
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.form-control {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    transition: border-color var(--transition);
    outline: none;
}
.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-control option { background: var(--bg2); }

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

/* ── Alerts ── */
.alert {
    padding: 13px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.alert-success { background: var(--green-dim); color: var(--green); border: 1px solid rgba(46,204,113,0.25); }
.alert-error   { background: var(--red-dim);   color: var(--red);   border: 1px solid rgba(231,76,60,0.25); }
.alert-warning { background: var(--accent-glow); color: var(--accent); border: 1px solid rgba(245,166,35,0.25); }
.alert-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0;
    opacity: 0.7;
}
.alert-close:hover { opacity: 1; }

/* ── Grid layouts ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }

/* ── Action bar ── */
.action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* ── Login page ── */
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    margin: 0;
}
.login-box {
    width: 100%;
    max-width: 400px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px 40px;
}
.login-logo {
    text-align: center;
    margin-bottom: 32px;
}
.login-logo-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
}
.login-logo h1 {
    font-family: 'Syne', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 4px;
}
.login-logo p {
    font-size: 0.8rem;
    color: var(--text3);
}

/* ── POS / Sales page ── */
.pos-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 24px;
    align-items: start;
}
.cart-items { list-style: none; }
.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    gap: 10px;
    font-size: 0.88rem;
}
.cart-item:last-child { border-bottom: none; }
.cart-item-name { font-weight: 500; flex: 1; }
.cart-item-qty { color: var(--text2); min-width: 60px; text-align: center; }
.cart-item-price { color: var(--accent); font-weight: 600; min-width: 90px; text-align: right; }
.cart-item-remove {
    background: none;
    border: none;
    color: var(--red);
    cursor: pointer;
    font-size: 1rem;
    padding: 2px 6px;
    border-radius: 4px;
}
.cart-item-remove:hover { background: var(--red-dim); }

.cart-total {
    border-top: 2px solid var(--border);
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}
.cart-total-label { font-family: 'Syne', sans-serif; font-weight: 700; }
.cart-total-amount { font-family: 'Syne', sans-serif; font-size: 1.4rem; font-weight: 800; color: var(--accent); }

/* ── Receipt ── */
.receipt-wrap { max-width: 520px; margin: 0 auto; }
.receipt-box {
    background: #fff;
    color: #111;
    padding: 36px;
    border-radius: var(--radius);
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}
.receipt-header { text-align: center; border-bottom: 2px dashed #ccc; padding-bottom: 16px; margin-bottom: 16px; }
.receipt-shop-name { font-size: 1.3rem; font-weight: bold; }
.receipt-sub { font-size: 0.75rem; color: #555; }
.receipt-table { width: 100%; border-collapse: collapse; }
.receipt-table th, .receipt-table td { padding: 5px 0; }
.receipt-table th { border-bottom: 1px solid #ccc; text-align: left; }
.receipt-table .right { text-align: right; }
.receipt-total { border-top: 2px dashed #ccc; margin-top: 10px; padding-top: 10px; }
.receipt-total-row { display: flex; justify-content: space-between; font-weight: bold; }
.receipt-footer { text-align: center; margin-top: 20px; border-top: 2px dashed #ccc; padding-top: 14px; font-size: 0.75rem; color: #666; }

/* ── Low stock alert ── */
.low-stock-list { list-style: none; }
.low-stock-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
}
.low-stock-item:last-child { border-bottom: none; }

/* ── Utility ── */
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-muted { color: var(--text3); }
.text-accent { color: var(--accent); }
.text-green  { color: var(--green); }
.text-red    { color: var(--red); }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-4 { margin-bottom: 16px; }
.gap-2 { gap: 8px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.font-syne { font-family: 'Syne', sans-serif; }
.font-bold { font-weight: 700; }
.d-none { display: none; }

/* ── Divider ── */
.divider { height: 1px; background: var(--border); margin: 20px 0; }

/* ── Empty state ── */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text3);
}
.empty-state-icon { font-size: 2.5rem; margin-bottom: 12px; opacity: 0.4; }
.empty-state h3 { font-family: 'Syne', sans-serif; font-size: 1rem; margin-bottom: 6px; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; padding: 20px 16px; padding-top: 64px; }
    .mobile-toggle { display: flex; align-items: center; justify-content: center; }
    .pos-grid { grid-template-columns: 1fr; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media print {
    .sidebar, .main-content > *:not(.receipt-wrap), .no-print { display: none !important; }
    .main-content { margin: 0; padding: 0; }
    .receipt-wrap { display: block !important; }
    .receipt-box { box-shadow: none; border: none; }
}

/* ============================================================
   v2.0 ADDITIONS — New modules & UI improvements
   ============================================================ */

/* ── Nav group labels ── */
.nav-group-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text3);
    text-transform: uppercase;
    padding: 14px 12px 4px;
    margin-top: 4px;
}

/* ── Nav item improved hover ── */
.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text2);
    font-size: 0.88rem;
    transition: all var(--transition);
    text-decoration: none;
    position: relative;
}
.nav-item:hover {
    background: var(--bg3);
    color: var(--text);
    transform: translateX(2px);
}
.nav-item.active {
    background: var(--accent-glow);
    color: var(--accent);
    border: 1px solid rgba(245,166,35,0.2);
}
.nav-icon { font-size: 1rem; width: 20px; text-align: center; }

/* ── Stat card hover glow ── */
.stat-card { transition: all var(--transition); }
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.35);
}
.stat-card.orange:hover { border-color: var(--accent); box-shadow: 0 6px 24px rgba(245,166,35,0.15); }
.stat-card.green:hover  { border-color: var(--green);  box-shadow: 0 6px 24px rgba(46,204,113,0.15); }
.stat-card.blue:hover   { border-color: var(--blue);   box-shadow: 0 6px 24px rgba(52,152,219,0.15); }
.stat-card.red:hover    { border-color: var(--red);    box-shadow: 0 6px 24px rgba(231,76,60,0.15); }
.stat-card.purple:hover { border-color: var(--purple); box-shadow: 0 6px 24px rgba(155,89,182,0.15); }

/* ── Card improved ── */
.card {
    transition: box-shadow var(--transition);
}
.card:hover {
    box-shadow: 0 2px 16px rgba(0,0,0,0.2);
}

/* ── Cart total row ── */
.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    color: var(--text2);
}

/* ── Alert info ── */
.alert-info {
    background: var(--blue-dim);
    color: var(--blue);
    border: 1px solid rgba(52,152,219,0.25);
}

/* ── Alert dismissible ── */
.alert-dismissible {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

/* ── Text red ── */
.text-red { color: var(--red); }

/* ── Invoice / Receipt v2 ── */
.invoice-box {
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 0.85rem;
    max-width: 660px;
    margin: 0 auto;
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}
.invoice-shop-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 4px;
}
.invoice-shop-detail { font-size: 0.78rem; color: #555; margin-bottom: 2px; }
.invoice-meta-box { text-align: right; }
.invoice-meta-title {
    font-size: 1.3rem;
    font-weight: 900;
    color: #111;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}
.invoice-meta-row {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    font-size: 0.78rem;
    color: #555;
    margin-bottom: 3px;
}

.invoice-customer {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.invoice-divider { border: none; border-top: 1px solid #ddd; margin: 16px 0; }

.invoice-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.invoice-table th {
    background: #f0f0f0;
    padding: 9px 12px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #444;
}
.invoice-table td { padding: 10px 12px; border-bottom: 1px solid #eee; color: #222; }
.invoice-table .right { text-align: right; }
.invoice-table tbody tr:last-child td { border-bottom: none; }
.invoice-table tbody tr:hover { background: #fafafa; }

.invoice-totals { max-width: 280px; margin-left: auto; }
.invoice-total-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 0.85rem;
    color: #333;
}
.invoice-grand-total {
    font-weight: 800;
    font-size: 1rem;
    color: #000;
    border-top: 2px solid #222;
    padding-top: 10px;
    margin-top: 4px;
}
.invoice-notes {
    margin-top: 20px;
    padding: 10px 14px;
    background: #fff9e6;
    border-left: 3px solid #f5a623;
    font-size: 0.8rem;
    color: #555;
    border-radius: 0 6px 6px 0;
}
.invoice-footer {
    text-align: center;
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px dashed #ccc;
    font-size: 0.78rem;
    color: #777;
    line-height: 1.7;
}

/* ── Buttons extra states ── */
.btn:active { transform: scale(0.97) !important; }
.btn-primary:active { box-shadow: none !important; }

/* ── Form control improved ── */
.form-control:hover:not(:focus) {
    border-color: var(--border2);
}
textarea.form-control { resize: vertical; min-height: 70px; }
select.form-control { cursor: pointer; }

/* ── Table improved ── */
thead th:first-child { border-radius: var(--radius-sm) 0 0 0; }
thead th:last-child  { border-radius: 0 var(--radius-sm) 0 0; }

/* ── Progress / bar ── */
.progress-bar-wrap {
    background: var(--bg3);
    border-radius: 4px;
    height: 8px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* ── Toast improved ── */
.toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    padding: 14px 22px;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    z-index: 9999;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    animation: toastSlideUp 0.3s ease;
    max-width: 320px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.toast-success { background: var(--green); color: #000; }
.toast-error   { background: var(--red);   color: #fff; }
.toast-warning { background: var(--accent); color: #000; }
@keyframes toastSlideUp {
    from { opacity:0; transform: translateY(16px); }
    to   { opacity:1; transform: translateY(0); }
}

/* ── Print improvements ── */
@media print {
    .sidebar, .mobile-toggle, .no-print,
    .action-bar, .alert, .page-header { display: none !important; }
    .main-content { margin: 0 !important; padding: 0 !important; }
    .receipt-wrap { max-width: 100%; }
    .invoice-box  { max-width: 100%; box-shadow: none; }
    body { background: #fff !important; color: #000 !important; }
}

/* ── Responsive additions ── */
@media (max-width: 1100px) {
    .pos-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .action-bar { flex-direction: column; align-items: stretch; }
    .action-bar form { flex-wrap: wrap; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .invoice-header { flex-direction: column; gap: 16px; }
    .invoice-meta-box { text-align: left; }
    .invoice-meta-row { justify-content: flex-start; }
    .invoice-totals { max-width: 100%; }
}
