/* ============================================================
   Sports Store POS - Main stylesheet
   ============================================================ */
:root {
    /* Layout */
    --sidebar-width: 264px;
    --header-height: 64px;
    --border-radius: 8px;

    /* Brand colors */
    --primary-color: #0878d8;
    --primary-dark: #0459a9;
    --brand-red: #c82232;
    --brand-yellow: #f2b21a;
    --secondary-color: #2f343b;

    --success-color: #1cc88a;
    --warning-color: var(--brand-yellow);
    --danger-color: var(--brand-red);
    --info-color: #22a8d8;

    /* Surfaces */
    --background-color: #d8dde4;
    --card-background: #ffffff;
    --border-color: #c8ced7;

    /* Sidebar */
    --sidebar-bg-1: #3d444d;
    --sidebar-bg-2: #252a31;
}

[data-bs-theme="dark"] {
    --background-color: #121722;
    --card-background: #1b2333;
    --border-color: #2a3448;
    --secondary-color: #0f1420;
}
[data-bs-theme="dark"] body { background: var(--background-color); color: #d6dbe6; }
[data-bs-theme="dark"] .card { background: var(--card-background); box-shadow: 0 2px 12px rgba(0,0,0,.35); }
[data-bs-theme="dark"] .card-header { background: var(--card-background); border-bottom-color: var(--border-color); }
[data-bs-theme="dark"] .table { --bs-table-bg: transparent; }
[data-bs-theme="dark"] .thumb-sm { background: #232c40; border-color: var(--border-color); }
[data-bs-theme="dark"] .btn-outline-secondary { --bs-btn-color: #aab3c5; --bs-btn-border-color: #3a455c; --bs-btn-hover-bg: #2a3448; --bs-btn-hover-border-color: #3a455c; }
[data-bs-theme="dark"] .form-control, [data-bs-theme="dark"] .form-select { background-color: #202a3d; border-color: #33405a; color: #e2e6ee; }
[data-bs-theme="dark"] .form-control:focus, [data-bs-theme="dark"] .form-select:focus { background-color: #202a3d; color: #e2e6ee; }
[data-bs-theme="dark"] .badge.bg-light { background: #2a3448 !important; color: #d6dbe6 !important; border-color: #3a455c !important; }
[data-bs-theme="dark"] .alert-light { background: #232c40 !important; border-color: #33405a !important; color: #d6dbe6 !important; }
[data-bs-theme="dark"] .breadcrumb-item.active { color: #8a92a3; }
[data-bs-theme="dark"] .invoice-doc { background: var(--card-background); color: #d6dbe6; }

body {
    background:
        linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,0) 220px),
        var(--background-color);
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
    font-size: .925rem;
    color: #333a45;
    transition: background-color .3s ease;
}

/* ---------------- Sidebar ---------------- */
#sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background: linear-gradient(180deg, var(--sidebar-bg-1), var(--sidebar-bg-2));
    color: #cdd3e0;
    flex-shrink: 0;
    transition: all .3s ease;
}
.ak-logo {
    min-width: 92px;
    height: 50px;
    padding: 5px 8px 7px;
    border-radius: 7px;
    background: linear-gradient(180deg, #59616c, #333941);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 8px 18px rgba(0,0,0,.28);
    font-weight: 900;
    line-height: .9;
    letter-spacing: 0;
    text-shadow: 0 2px 0 rgba(0,0,0,.25), 0 0 12px rgba(255,255,255,.16);
}
.ak-logo span { display: inline-block; font-size: 2rem; }
.ak-logo-blue { color: #1689e8; margin-right: 3px; }
.ak-logo-red { color: var(--brand-red); margin-left: 5px; margin-right: 2px; }
.ak-logo-yellow { color: var(--brand-yellow); }
.ak-logo-login {
    min-width: 118px;
    height: 62px;
    border: 1px solid rgba(255,255,255,.16);
}
.ak-logo-login span { font-size: 2.45rem; }
.sidebar-custom-logo { max-width: 140px; max-height: 64px; object-fit: contain; }
.login-custom-logo { max-width: 180px; max-height: 80px; object-fit: contain; }
#sidebar .letter-wide { letter-spacing: .18em; font-size: .68rem; color: #bac2cf; }
#sidebar .nav-link {
    color: #eef2f7;
    padding: .55rem .9rem;
    margin: 2px 0;
    border-radius: .45rem;
    display: flex; align-items: center;
    white-space: nowrap;
    transition: all .25s ease;
}
#sidebar .nav-link:hover { background: rgba(8,120,216,.22); color: #fff; transform: translateX(3px); }
#sidebar .nav-link.active,
#sidebar .submenu .nav-link.active {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    box-shadow: inset 4px 0 0 var(--brand-yellow);
}
#sidebar .submenu .nav-link { font-size: .86rem; padding: .42rem .9rem; color: #aab3c5; }
#sidebar .sidebar-footer { color: #7f8aa3; }
#sidebar .menu-badge {
    font-size: .68rem; font-weight: 700;
    border-radius: 20px; padding: 2px 8px;
}
#sidebar .submenu-arrow { transition: transform .25s ease; font-size: .75rem; }
#sidebar .nav-link[aria-expanded="true"] .submenu-arrow { transform: rotate(180deg); }

#wrapper.sidebar-hidden #sidebar { display: none; }
.sidebar-backdrop {
    position: fixed; inset: 0;
    background: rgba(15, 20, 32, .55);
    z-index: 1035;
    animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------------- Topbar ---------------- */
.topbar { height: var(--header-height); z-index: 1020; }
.topbar {
    border-bottom: 3px solid var(--primary-color);
}
.topbar.bg-white {
    background: #f7f8fa !important;
}
.navbar-brand {
    color: #252a31;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.avatar-circle {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--border-color);
    background: var(--card-background);
    color: #5a6273;
    position: relative;
    transition: all .25s ease;
}
.icon-btn:hover { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }
.icon-btn .notif-badge {
    position: absolute; top: -5px; right: -5px;
    min-width: 18px; height: 18px;
    border-radius: 10px;
    background: var(--danger-color); color: #fff;
    font-size: .64rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    padding: 0 4px;
}

/* ---------------- Cards / stats ---------------- */
.card { border: 1px solid rgba(47, 52, 59, .08); border-radius: var(--border-radius); box-shadow: 0 2px 12px rgba(37, 42, 49, .09); transition: box-shadow .3s ease; }
.card-header { background: var(--card-background); border-bottom: 1px solid var(--border-color); font-weight: 600; border-radius: var(--border-radius) var(--border-radius) 0 0 !important; }

.stat-card .icon {
    width: 50px; height: 50px;
    border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.45rem; color: #fff;
    flex-shrink: 0;
}
.stat-card .label { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: #8a92a3; margin-bottom: 2px; }
.stat-card .value { font-size: 1.35rem; font-weight: 700; line-height: 1.15; }
.stat-card .trend { font-size: .72rem; font-weight: 600; }
.trend-up   { color: #13855c; }
.trend-down { color: #be2617; }
.bg-grad-primary   { background: linear-gradient(135deg, #1689e8, #0459a9); }
.bg-grad-success   { background: linear-gradient(135deg, #1cc88a, #13855c); }
.bg-grad-info      { background: linear-gradient(135deg, #22a8d8, #0878d8); }
.bg-grad-warning   { background: linear-gradient(135deg, #f7c247, #f2a900); }
.bg-grad-danger    { background: linear-gradient(135deg, #d73545, #a31624); }
.bg-grad-secondary { background: linear-gradient(135deg, #858796, #60616f); }
.bg-grad-dark      { background: linear-gradient(135deg, #3a3f52, #23262f); }

/* Welcome banner */
.welcome-banner {
    background:
        linear-gradient(90deg, rgba(8,120,216,.96), rgba(4,89,169,.96) 62%, rgba(199,34,49,.93)),
        #3d444d;
    border-radius: var(--border-radius);
    color: #fff;
    padding: 1.4rem 1.6rem;
    box-shadow: 0 8px 22px rgba(37, 42, 49, .20);
}

/* ---------------- Tables ---------------- */
.table thead th {
    font-size: .72rem; text-transform: uppercase; letter-spacing: .05em;
    color: #7c8497; font-weight: 700; white-space: nowrap;
}
.table-sm td { vertical-align: middle; }
.thumb-sm { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; background: #f4f6fb; border: 1px solid var(--border-color); }

/* Clickable rows (tr[data-href]) */
tr[data-href] { cursor: pointer; }
tr[data-href]:hover td { background: rgba(8, 120, 216, .07); }
tr[data-href] a { z-index: 1; position: relative; }

/* Table action buttons */
.table-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: .3rem;
}
.table-actions form { display: inline-flex; margin: 0; }
.table-actions .btn {
    width: 32px; height: 32px;
    padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px;
    font-size: .85rem;
}
.table-actions .btn:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(22,34,74,.15); }

/* ---------------- Empty states ---------------- */
.empty-state { text-align: center; padding: 3rem 1rem; }
.empty-state .es-icon {
    width: 84px; height: 84px;
    border-radius: 50%;
    background: rgba(8, 120, 216, .10);
    color: var(--primary-color);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 1rem;
}

/* ---------------- Image dropzone ---------------- */
.dropzone {
    border: 2px dashed #c6cede;
    border-radius: var(--border-radius);
    background: #fafbfe;
    padding: 1.4rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all .25s ease;
}
.dropzone:hover, .dropzone.dragover {
    border-color: var(--primary-color);
    background: rgba(78, 115, 223, .06);
}
.dropzone .dz-icon { font-size: 2rem; color: var(--primary-color); }

/* ---------------- Buttons ---------------- */
.btn { border-radius: .5rem; transition: all .25s ease; }
.btn-primary {
    --bs-btn-bg: var(--primary-color);
    --bs-btn-border-color: var(--primary-color);
    --bs-btn-hover-bg: var(--primary-dark);
    --bs-btn-hover-border-color: var(--primary-dark);
    --bs-btn-active-bg: var(--primary-dark);
    --bs-btn-active-border-color: var(--primary-dark);
}
.btn-danger {
    --bs-btn-bg: var(--brand-red);
    --bs-btn-border-color: var(--brand-red);
    --bs-btn-hover-bg: #a31624;
    --bs-btn-hover-border-color: #a31624;
}
.btn-warning {
    --bs-btn-bg: var(--brand-yellow);
    --bs-btn-border-color: var(--brand-yellow);
    --bs-btn-hover-bg: #d99a00;
    --bs-btn-hover-border-color: #d99a00;
}
.btn-icon-only { width: 34px; height: 34px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.btn.loading { pointer-events: none; opacity: .75; }
.btn.loading .spinner-border { display: inline-block !important; }

/* ---------------- Toasts ---------------- */
.toast-stack {
    position: fixed; top: calc(var(--header-height) + 12px); right: 16px;
    z-index: 1090;
    display: flex; flex-direction: column; gap: .5rem;
    width: min(360px, calc(100vw - 32px));
}
.toast { border: 0; border-left: 4px solid; border-radius: .6rem; box-shadow: 0 8px 24px rgba(22,34,74,.18); }
.toast.toast-success { border-left-color: var(--success-color); }
.toast.toast-danger  { border-left-color: var(--danger-color); }
.toast.toast-warning { border-left-color: var(--warning-color); }
.toast.toast-info    { border-left-color: var(--info-color); }

/* ---------------- Login page ---------------- */
.login-page {
    min-height: 100vh;
    background: linear-gradient(rgba(38, 43, 50, .80), rgba(28, 32, 38, .90)),
                url('../images/login-bg.jpg') center / cover no-repeat fixed;
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
    position: relative;
    overflow: hidden;
}
.login-bg-shape {
    position: absolute; border-radius: 50%;
    background: rgba(8,120,216,.16);
    pointer-events: none;
}
.login-bg-shape.shape-1 { width: 320px; height: 320px; top: -110px; right: -90px; }
.login-bg-shape.shape-2 { width: 240px; height: 240px; bottom: -80px; left: -70px; }
.login-card {
    max-width: 380px; width: 100%;
    border-radius: 1rem;
    box-shadow: 0 18px 50px rgba(5, 12, 40, .55) !important;
    position: relative; z-index: 1;
}
.login-input .form-control {
    min-height: 42px;
    border-left: 0;
    font-size: .925rem;
}
.login-input .input-group-text {
    min-width: 42px; justify-content: center;
    background: var(--card-background);
    border-right: 0; color: #8a92a3;
}
.login-input .form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}
.login-input .btn { border-radius: 0 .5rem .5rem 0; color: #8a92a3; }
.login-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(34, 74, 190, .35); }
.login-btn { transition: all .15s ease; }

/* ---------------- POS ---------------- */
.pos-product-card { cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; height: 100%; }
.pos-product-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(22,34,74,.14); }
.pos-product-card .thumb { height: 105px; width: 100%; object-fit: contain; background: var(--card-background); }
.pos-product-card.out-of-stock { opacity: .55; }
.pos-product-card.out-of-stock .card-body { position: relative; }
.pos-product-card.out-of-stock::after {
    content: "OUT OF STOCK";
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(30, 41, 59, .45);
    color: #fff; font-weight: 800; font-size: .8rem; letter-spacing: .08em;
    border-radius: var(--border-radius);
}
.cart-panel { position: sticky; top: 80px; }
#cartBody td { vertical-align: middle; }
.qty-input { width: 46px; text-align: center; padding-left: 2px; padding-right: 2px; }
.pos-summary dd { margin-bottom: .25rem; }
.receipt-total { font-size: 1.15rem; font-weight: 700; }
/* ---------------- Invoice ---------------- */
.invoice-doc {
    background: var(--card-background);
    max-width: 820px;
    margin: 0 auto;
    padding: 28px 32px;
    border-radius: 8px;
    color: #222;
}
.inv-sponsored-strip {
    background: #dc2626;
    color: #fff;
    text-align: center;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
    font-size: .8rem;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 16px;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}
.inv-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    border-bottom: 2px solid #222;
    padding-bottom: 16px;
    margin-bottom: 18px;
}
.inv-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.inv-custom-logo {
    max-height: 60px;
    max-width: 180px;
    object-fit: contain;
}
.inv-logo {
    flex: 0 0 auto;
    transform: scale(.9);
    transform-origin: left center;
}
.inv-store-lines { min-width: 0; }
.inv-store { font-size: 1.55rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0; line-height: 1.1; overflow-wrap: anywhere; }
.inv-address { margin: .35rem 0 0; color: #555; font-size: .86rem; line-height: 1.45; }
.inv-heading { flex: 0 0 210px; text-align: right; }
.inv-title { font-size: 1.65rem; text-transform: uppercase; font-weight: 800; letter-spacing: .04em; line-height: 1; }
.inv-number { margin-top: .35rem; font-weight: 700; }
.inv-date { color: #666; font-size: .86rem; margin-top: .2rem; }
.inv-payment { display: inline-block; border: 1px solid #222; padding: 2px 10px; margin-top: .45rem; font-size: .78rem; font-weight: 700; text-transform: uppercase; }
.inv-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
}
.inv-meta-grid > div,
.inv-note {
    border: 1px solid #d9dde3;
    background: #fafafa;
    border-radius: 6px;
    padding: 12px 14px;
}
.inv-panel-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; color: #666; margin-bottom: .35rem; }
.inv-items { border: 1px solid #d9dde3; table-layout: fixed; }
.inv-items thead th {
    background: #f0f2f5;
    color: #222;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: .55rem .65rem;
    border-bottom: 1px solid #cfd4dc !important;
}
.inv-items tbody td { padding: .6rem .65rem; border-bottom: 1px solid #e6e9ee; overflow-wrap: anywhere; }
.inv-items tbody tr:last-child td { border-bottom: 0; }
.inv-bottom {
    display: grid;
    grid-template-columns: 1fr 290px;
    gap: 20px;
    align-items: start;
    margin-top: 18px;
}
.inv-thanks { margin-top: 14px; color: #555; font-size: .86rem; }
.inv-totals { border: 1px solid #d9dde3; border-radius: 6px; padding: 12px 14px; }
.inv-totals > .d-flex { padding: 4px 0; border-bottom: 1px solid #edf0f3; }
.inv-totals > .d-flex:last-child { border-bottom: 0; }
.inv-grand { margin-top: 6px; padding-top: 9px !important; border-top: 2px solid #222; font-size: 1.05rem; }
.inv-footer {
    border-top: 1px solid #d9dde3;
    color: #555;
    font-size: .8rem;
    margin-top: 18px;
    padding-top: 10px;
    text-align: center;
}
.invoice-doc.thermal-80,
.invoice-doc.thermal-58 {
    padding: 8px;
    border-radius: 0;
    box-shadow: none !important;
    font-family: Arial, sans-serif;
    font-size: 11px;
}
.invoice-doc.thermal-80 { max-width: 302px; }
.invoice-doc.thermal-58 { max-width: 219px; font-size: 10px; }
.invoice-doc.thermal-80 .inv-header,
.invoice-doc.thermal-58 .inv-header,
.invoice-doc.thermal-80 .inv-brand,
.invoice-doc.thermal-58 .inv-brand,
.invoice-doc.thermal-80 .inv-meta-grid,
.invoice-doc.thermal-58 .inv-meta-grid,
.invoice-doc.thermal-80 .inv-bottom,
.invoice-doc.thermal-58 .inv-bottom {
    display: block;
}
.invoice-doc.thermal-80 .inv-logo,
.invoice-doc.thermal-58 .inv-logo { transform: scale(.64); transform-origin: center; margin: 0 auto 2px; }
.invoice-doc.thermal-80 .inv-heading,
.invoice-doc.thermal-58 .inv-heading { min-width: 0; text-align: left; margin-top: 8px; }
.invoice-doc.thermal-80 .inv-store,
.invoice-doc.thermal-58 .inv-store { font-size: 1rem; text-align: center; }
.invoice-doc.thermal-80 .inv-address,
.invoice-doc.thermal-58 .inv-address { text-align: center; font-size: 10px; }
.invoice-doc.thermal-80 .inv-title,
.invoice-doc.thermal-58 .inv-title { font-size: .9rem; text-align: center; margin-top: 8px; }
.invoice-doc.thermal-80 .inv-number,
.invoice-doc.thermal-58 .inv-number,
.invoice-doc.thermal-80 .inv-date,
.invoice-doc.thermal-58 .inv-date { text-align: center; }
.invoice-doc.thermal-80 .inv-payment,
.invoice-doc.thermal-58 .inv-payment { display: block; text-align: center; border: 0; border-top: 1px dashed #333; border-bottom: 1px dashed #333; }
.invoice-doc.thermal-80 .inv-meta-grid > div,
.invoice-doc.thermal-58 .inv-meta-grid > div,
.invoice-doc.thermal-80 .inv-note,
.invoice-doc.thermal-58 .inv-note,
.invoice-doc.thermal-80 .inv-totals,
.invoice-doc.thermal-58 .inv-totals { border: 0; background: transparent; padding: 6px 0; }
.invoice-doc.thermal-80 .inv-items,
.invoice-doc.thermal-58 .inv-items { border-left: 0; border-right: 0; font-size: inherit; }
.invoice-doc.thermal-80 .inv-items th,
.invoice-doc.thermal-58 .inv-items th,
.invoice-doc.thermal-80 .inv-items td,
.invoice-doc.thermal-58 .inv-items td { padding: 4px 2px; }
.invoice-doc.thermal-80 .inv-footer,
.invoice-doc.thermal-58 .inv-footer { font-size: 9px; margin-top: 8px; padding-top: 6px; }
.invoice-doc.thermal-80 .inv-col-index,
.invoice-doc.thermal-58 .inv-col-index,
.invoice-doc.thermal-80 .inv-col-price,
.invoice-doc.thermal-58 .inv-col-price,
.invoice-doc.thermal-80 .inv-col-discount,
.invoice-doc.thermal-58 .inv-col-discount,
.invoice-doc.thermal-80 .inv-sku,
.invoice-doc.thermal-58 .inv-sku { display: none; }
.invoice-doc.thermal-80 .inv-col-total,
.invoice-doc.thermal-58 .inv-col-total { display: table-cell; }

/* ---------------- Misc ---------------- */
.page-title { font-weight: 700; }
.min-vw-0 { min-width: 0; }
.chart-box { position: relative; height: 300px; }
.text-xs { font-size: .75rem; }
.cursor-pointer { cursor: pointer; }
.print-only { display: none !important; }

@page {
    size: A4;
    margin: 12mm;
}

@media print {
    * {
        box-shadow: none !important;
        text-shadow: none !important;
    }
    html, body {
        background: #fff !important;
        color: #111 !important;
        font-size: 11px;
    }
    body {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    #sidebar, .topbar, footer, .no-print, .toast-stack {
        display: none !important;
    }
    .print-only {
        display: block !important;
    }
    #wrapper, #page-content-wrapper, #main-content {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .print-report-header {
        border-bottom: 2px solid #111;
        margin-bottom: 10px;
        padding-bottom: 7px;
    }
    .print-report-logo {
        max-height: 40px;
        max-width: 140px;
        object-fit: contain;
        display: block;
        margin-bottom: 4px;
    }
    .print-report-header h1 {
        margin: 0;
        font-size: 18px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: .04em;
    }
    .print-report-header p {
        margin: 3px 0 0;
        color: #444;
        font-size: 11px;
    }
    h5.text-muted { display: none !important; }
    .row {
        --bs-gutter-x: 6px;
        --bs-gutter-y: 6px;
    }
    .card {
        border: 1px solid #bbb !important;
        border-radius: 0 !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }
    .card-header {
        background: #f2f2f2 !important;
        border-bottom: 1px solid #bbb !important;
        color: #111 !important;
        padding: 5px 7px !important;
        font-size: 11px;
    }
    .card-body {
        padding: 6px !important;
    }
    .stat-card .card-body {
        gap: 6px !important;
        min-height: 0;
    }
    .stat-card .icon {
        display: none !important;
    }
    .stat-card .label {
        color: #444 !important;
        font-size: 8px;
        letter-spacing: .03em;
    }
    .stat-card .value {
        font-size: 12px;
        color: #111 !important;
    }
    .table-responsive {
        overflow: visible !important;
    }
    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate,
    .dataTables_wrapper .dataTables_length {
        display: none !important;
    }
    table {
        width: 100% !important;
        border-collapse: collapse !important;
    }
    .table {
        color: #111 !important;
        font-size: 9.5px;
        margin-bottom: 0 !important;
    }
    .table thead th {
        background: #f2f2f2 !important;
        color: #111 !important;
        border: 1px solid #bbb !important;
        padding: 4px 5px !important;
        font-size: 8px;
        letter-spacing: 0;
        white-space: normal;
    }
    .table tbody td {
        border: 1px solid #d5d5d5 !important;
        padding: 4px 5px !important;
        vertical-align: top;
    }
    .badge {
        border: 1px solid #777 !important;
        background: transparent !important;
        color: #111 !important;
        padding: 1px 4px !important;
    }
    a {
        color: #111 !important;
        text-decoration: none !important;
    }

    .invoice-doc {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        border-radius: 0 !important;
        border: 0 !important;
        background: #fff !important;
        color: #111 !important;
    }
    .inv-header {
        border-bottom-color: #111 !important;
        margin-bottom: 12px;
        padding-bottom: 10px;
        gap: 12px;
    }
    .inv-logo {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        transform: scale(.75);
    }
    .inv-store { font-size: 17px; }
    .inv-title { font-size: 17px; }
    .inv-address, .inv-date, .inv-thanks, .inv-footer { color: #333 !important; }
    .inv-heading { flex-basis: 190px; }
    .inv-meta-grid {
        gap: 8px;
        margin-bottom: 12px;
    }
    .inv-meta-grid > div,
    .inv-note,
    .inv-totals {
        background: #fff !important;
        border: 1px solid #bbb !important;
        border-radius: 0 !important;
    }
    .inv-bottom {
        grid-template-columns: 1fr 260px;
        gap: 12px;
        margin-top: 12px;
    }
    .inv-items {
        font-size: 10px;
        table-layout: fixed;
    }
    .inv-items thead th {
        background: #f2f2f2 !important;
        border-color: #bbb !important;
    }
    .inv-grand {
        border-top-color: #111 !important;
    }
    .inv-footer {
        border-top-color: #bbb !important;
        margin-top: 12px;
        padding-top: 7px;
    }
    .invoice-doc.thermal-80,
    .invoice-doc.thermal-58 {
        max-width: none !important;
        padding: 0 !important;
        font-size: 10px;
    }
    .invoice-doc.thermal-80 { width: 80mm !important; }
    .invoice-doc.thermal-58 { width: 58mm !important; }
    .invoice-doc.thermal-80 .inv-header,
    .invoice-doc.thermal-58 .inv-header {
        display: block;
        text-align: center;
        border-bottom: 1px dashed #111 !important;
    }
    .invoice-doc.thermal-80 .inv-brand,
    .invoice-doc.thermal-58 .inv-brand {
        display: block;
    }
    .invoice-doc.thermal-80 .inv-logo,
    .invoice-doc.thermal-58 .inv-logo {
        transform: scale(.58);
        transform-origin: center;
        margin: 0 auto 2px;
    }
    .invoice-doc.thermal-80 .inv-meta-grid,
    .invoice-doc.thermal-58 .inv-meta-grid,
    .invoice-doc.thermal-80 .inv-bottom,
    .invoice-doc.thermal-58 .inv-bottom {
        display: block;
    }
    .invoice-doc.thermal-80 .inv-heading,
    .invoice-doc.thermal-58 .inv-heading {
        min-width: 0;
        text-align: center;
    }
    .invoice-doc.thermal-80 .inv-meta-grid > div,
    .invoice-doc.thermal-58 .inv-meta-grid > div,
    .invoice-doc.thermal-80 .inv-note,
    .invoice-doc.thermal-58 .inv-note,
    .invoice-doc.thermal-80 .inv-totals {
        border: 0 !important;
        padding: 5px 0 !important;
    }
    .invoice-doc.thermal-80 .inv-payment,
    .invoice-doc.thermal-58 .inv-payment {
        border: 0 !important;
        border-top: 1px dashed #111 !important;
        border-bottom: 1px dashed #111 !important;
    }
    .invoice-doc.thermal-80 .inv-items,
    .invoice-doc.thermal-58 .inv-items {
        border-left: 0 !important;
        border-right: 0 !important;
        font-size: inherit;
    }
    .invoice-doc.thermal-80 .inv-col-index,
    .invoice-doc.thermal-58 .inv-col-index,
    .invoice-doc.thermal-80 .inv-col-price,
    .invoice-doc.thermal-58 .inv-col-price,
    .invoice-doc.thermal-80 .inv-col-discount,
    .invoice-doc.thermal-58 .inv-col-discount,
    .invoice-doc.thermal-80 .inv-sku,
    .invoice-doc.thermal-58 .inv-sku {
        display: none !important;
    }
    .invoice-doc.thermal-80 .inv-col-total,
    .invoice-doc.thermal-58 .inv-col-total {
        display: table-cell !important;
    }
    .print-table-card {
        border: 0 !important;
    }
    .print-table-card > .card-header {
        display: none !important;
    }
    .print-table-card > .card-body {
        padding: 0 !important;
    }
}
