/* =========================================================
   Computer Shop POS — Global Styles (complete)
   ========================================================= */
:root {
    --bg:        #f1f5f9;
    --card:      #ffffff;
    --text:      #0f172a;
    --muted:     #64748b;
    --border:    #e2e8f0;
    --primary:   #2563eb;
    --primary-d: #1d4ed8;
    --ok:        #16a34a;
    --warn:      #d97706;
    --err:       #dc2626;
    --sidebar-w: 250px;
    --topbar-h:  62px;
    --sidebar-bg:#0f172a;
    --sidebar-fg:#cbd5e1;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    font-size: 14.5px;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: none; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.text-end { text-align: right; }
.text-center { text-align: center; }
.text-danger { color: var(--err); }
.text-ok { color: var(--ok); }
hr { border: none; border-top: 1px solid var(--border); margin: 16px 0; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 16px; border-radius: 8px;
    border: 1px solid transparent; background: #e5e7eb; color: #111827;
    font-size: 14px; cursor: pointer; text-align: center;
    text-decoration: none; line-height: 1.2;
    transition: background .15s ease, opacity .15s ease;
    font-family: inherit;
}
.btn:hover { opacity: .92; text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-d); }
.btn-secondary { background: #e5e7eb; color: #111827; }
.btn-danger { background: var(--err); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn.disabled, .btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-block { display: block; width: 100%; padding: 12px; font-size: 15px; margin-top: 10px; }
.btn-sm { padding: 6px 10px; font-size: 13px; border-radius: 6px; }
.btn-lg { padding: 14px 18px; font-size: 15px; }

/* Forms */
label { display: block; margin: 12px 0 6px; font-weight: 500; color: #334155; font-size: 13.5px; }
input[type=text], input[type=email], input[type=password], input[type=number],
input[type=date], input[type=datetime-local], input[type=search], input[type=file], select, textarea {
    width: 100%; padding: 10px 12px;
    border: 1px solid var(--border); border-radius: 8px;
    font-size: 14.5px; font-family: inherit; background: #fff; color: var(--text);
    transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
input[type=file] { padding: 8px; }
textarea { resize: vertical; }
.checkbox-label { display: flex; align-items: center; gap: 8px; margin: 16px 0 6px; font-weight: 500; }
.checkbox-label input { width: auto; }
.input-lg { font-size: 16px !important; padding: 12px 14px !important; }
.input-readonly { background: #f8fafc !important; color: var(--muted) !important; cursor: not-allowed; }
.img-preview { margin-top: 8px; display: flex; align-items: center; gap: 10px; }
.img-preview img { max-height: 70px; max-width: 140px; border-radius: 6px; border: 1px solid var(--border); }

/* Alerts */
.alert { padding: 12px 14px; border-radius: 8px; margin: 14px 0; font-size: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.alert-ok    { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.alert-warn  { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

/* Badges */
.badge { display: inline-block; padding: 3px 9px; font-size: 12px; font-weight: 600; border-radius: 999px; letter-spacing: .2px; }
.badge-admin      { background: #ede9fe; color: #5b21b6; }
.badge-cashier    { background: #dbeafe; color: #1d4ed8; }
.badge-technician { background: #fef3c7; color: #92400e; }
.badge-ok         { background: #dcfce7; color: #166534; }
.badge-off        { background: #f1f5f9; color: #64748b; }
.badge-received     { background: #e0e7ff; color: #3730a3; }
.badge-diagnosing   { background: #fef3c7; color: #92400e; }
.badge-waiting      { background: #ffedd5; color: #9a3412; }
.badge-inrepair     { background: #dbeafe; color: #1d4ed8; }
.badge-ready        { background: #dcfce7; color: #166534; }
.badge-delivered    { background: #e5e7eb; color: #374151; }
.badge-cancelled    { background: #fee2e2; color: #991b1b; }

/* Login */
.login-page {
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh; padding: 20px;
    background: linear-gradient(135deg, #e0e7ff 0%, #f1f5f9 100%);
}
.login-box {
    background: #fff; padding: 36px 32px; border-radius: 14px;
    box-shadow: 0 10px 40px rgba(15,23,42,.08);
    width: 100%; max-width: 400px;
}
.login-box h1 { margin: 6px 0 4px; font-size: 22px; text-align: center; }
.login-box p.muted { margin: 0 0 22px; text-align: center; }
.login-logo { text-align: center; font-size: 44px; color: var(--primary); }

/* App layout */
.app-wrap { min-height: 100vh; }

.topbar {
    height: var(--topbar-h);
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 18px;
    position: fixed; top: 0; left: 0; right: 0; z-index: 40;
    box-shadow: 0 1px 2px rgba(15,23,42,.03);
}
.topbar-left { display: flex; align-items: center; gap: 14px; }
.topbar-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); font-size: 16px; }
.topbar-logo { height: 32px; width: auto; border-radius: 6px; }
.topbar-logo-placeholder {
    display: inline-flex; width: 32px; height: 32px;
    align-items: center; justify-content: center;
    background: #dbeafe; color: var(--primary);
    border-radius: 8px; font-size: 16px;
}
.topbar-title { white-space: nowrap; }
.menu-toggle {
    display: none;
    background: none; border: none; font-size: 20px; cursor: pointer;
    color: var(--text); padding: 6px 10px; border-radius: 6px;
}
.menu-toggle:hover { background: #f1f5f9; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.icon-btn {
    position: relative; background: none; border: none; cursor: pointer;
    font-size: 17px; color: var(--muted);
    padding: 8px; border-radius: 8px;
}
.icon-btn:hover { background: #f1f5f9; color: var(--text); }
.notif-dot { position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: #ef4444; }

/* User menu */
.user-menu { position: relative; }
.user-menu-btn {
    display: flex; align-items: center; gap: 10px;
    background: none; border: none; cursor: pointer;
    padding: 6px 10px; border-radius: 10px; color: var(--text);
    font-family: inherit;
}
.user-menu-btn:hover { background: #f1f5f9; }
.user-avatar {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--primary); color: #fff; font-weight: 700; font-size: 15px;
}
.user-meta { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.user-name { font-weight: 600; font-size: 13.5px; }
.user-role { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; }
.user-menu-btn .fa-caret-down { font-size: 11px; color: var(--muted); }
.user-menu-dropdown {
    display: none; position: absolute; right: 0; top: calc(100% + 6px);
    background: #fff; border: 1px solid var(--border); border-radius: 10px;
    box-shadow: 0 10px 30px rgba(15,23,42,.08);
    min-width: 210px; padding: 6px; z-index: 50;
}
.user-menu.open .user-menu-dropdown { display: block; }
.user-menu-dropdown a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 8px;
    color: var(--text); font-size: 14px;
}
.user-menu-dropdown a:hover { background: #f1f5f9; text-decoration: none; }
.user-menu-dropdown a.danger { color: var(--err); }
.user-menu-dropdown a i { width: 16px; }

/* Sidebar */
.sidebar {
    position: fixed; top: var(--topbar-h); bottom: 0; left: 0;
    width: var(--sidebar-w);
    background: var(--sidebar-bg); color: var(--sidebar-fg);
    padding: 14px 0 20px; overflow-y: auto;
    display: flex; flex-direction: column; justify-content: space-between;
    z-index: 30;
}
.sidebar-nav { padding: 4px 10px 20px; }
.nav-section {
    color: #64748b; font-size: 11px; text-transform: uppercase;
    letter-spacing: .8px; padding: 14px 12px 6px;
}
.nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; margin-bottom: 2px;
    border-radius: 8px; color: var(--sidebar-fg); font-size: 14px;
    transition: background .15s;
}
.nav-item:hover { background: #1e293b; color: #fff; text-decoration: none; }
.nav-item.active { background: var(--primary); color: #fff; }
.nav-item.disabled { opacity: .55; cursor: not-allowed; }
.nav-item.disabled:hover { background: transparent; color: var(--sidebar-fg); }
.nav-ico { width: 18px; text-align: center; font-size: 14px; }
.nav-soon {
    margin-left: auto; font-size: 10px;
    background: #1e293b; color: #94a3b8;
    padding: 2px 7px; border-radius: 999px; letter-spacing: .3px;
}
.sidebar-footer { padding: 14px 22px; color: #475569; font-size: 12px; }

/* Content */
.content {
    margin-left: var(--sidebar-w);
    padding: calc(var(--topbar-h) + 22px) 24px 32px;
    min-height: 100vh;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--muted); margin-bottom: 14px;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--primary); text-decoration: none; }
.bc-sep { color: #cbd5e1; font-size: 10px; }
.bc-current { color: var(--text); font-weight: 500; }

/* Page header */
.page-header {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 16px; margin-bottom: 20px; flex-wrap: wrap;
}
.page-header h1 { margin: 0 0 4px; font-size: 24px; }
.page-sub { margin: 0; color: var(--muted); font-size: 14px; }
.page-header-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* KPI cards */
.kpi-row {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px; margin-bottom: 22px;
}
.kpi-card {
    background: #fff; border: 1px solid var(--border); border-radius: 12px;
    padding: 18px 20px; box-shadow: 0 1px 2px rgba(15,23,42,.03);
    position: relative; overflow: hidden;
}
.kpi-card::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0;
    width: 4px;
}
.kpi-sales::before     { background: #2563eb; }
.kpi-purchases::before { background: #d97706; }
.kpi-profit::before    { background: #16a34a; }
.kpi-expenses::before  { background: #dc2626; }
.kpi-head {
    display: flex; align-items: center; gap: 8px;
    color: var(--muted); font-size: 13px; margin-bottom: 8px;
}
.kpi-head i { font-size: 14px; }
.kpi-sales .kpi-head i     { color: #2563eb; }
.kpi-purchases .kpi-head i { color: #d97706; }
.kpi-profit .kpi-head i    { color: #16a34a; }
.kpi-expenses .kpi-head i  { color: #dc2626; }
.kpi-value { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.kpi-foot { font-size: 12px; color: #94a3b8; }

/* Stat cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 22px; }
.card-stat {
    background: #fff; padding: 16px; border-radius: 12px;
    display: flex; gap: 14px; align-items: center;
    border: 1px solid var(--border);
    box-shadow: 0 1px 2px rgba(15,23,42,.03);
}
.stat-icon {
    width: 46px; height: 46px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex: 0 0 auto;
}
.stat-label { font-size: 12.5px; color: var(--muted); }
.stat-value { font-size: 20px; font-weight: 700; }

/* Panels */
.panel {
    background: #fff; border: 1px solid var(--border); border-radius: 12px;
    padding: 20px; margin-bottom: 20px;
    box-shadow: 0 1px 2px rgba(15,23,42,.03);
}
.panel h2 { margin: 0 0 12px; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.panel h2 i { color: var(--primary); }
.panel-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px; gap: 10px; flex-wrap: wrap;
}
.panel-head h2 { margin: 0; }

/* Two-column grid */
.grid-2 {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
    margin-bottom: 20px;
}
@media (max-width: 900px) {
    .grid-2 { grid-template-columns: 1fr; }
}

/* Bar chart */
.bar-chart {
    display: flex; align-items: flex-end; gap: 10px;
    height: 180px; padding: 10px 4px 0; border-bottom: 1px solid var(--border);
}
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.bar-fill { width: 70%; max-width: 46px; min-height: 3px; background: linear-gradient(180deg, #3b82f6, #2563eb); border-radius: 6px 6px 0 0; transition: height .4s ease; }
.bar-val { font-size: 11px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.bar-label { font-size: 12px; color: var(--muted); margin-top: 8px; }

/* Empty state */
.empty-state { text-align: center; padding: 24px 12px; color: var(--muted); }
.empty-state i { font-size: 30px; color: #cbd5e1; margin-bottom: 8px; display: block; }
.empty-state p { margin: 4px 0 0; font-size: 13.5px; }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 24px; }
.checklist li { padding: 6px 0; display: flex; align-items: center; gap: 10px; break-inside: avoid; }
.checklist .fa-circle-check.ok { color: var(--ok); }
.checklist .fa-circle { color: #cbd5e1; }
@media (max-width: 620px) { .checklist { columns: 1; } }

/* Tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: middle; }
.table th { background: #f8fafc; font-weight: 600; color: #334155; white-space: nowrap; }
.table tbody tr:hover { background: #f8fafc; }
.table .actions { white-space: nowrap; }
.table .actions .btn { margin-right: 2px; }
.table tfoot td { background: #f8fafc; }

/* Product thumbnails */
.thumb {
    width: 42px; height: 42px; object-fit: cover;
    border-radius: 8px; border: 1px solid var(--border); background: #f8fafc;
    display: inline-flex; align-items: center; justify-content: center;
}
.thumb-placeholder { color: #94a3b8; font-size: 16px; }

/* Filter bar */
.filter-bar {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto auto;
    gap: 10px;
    align-items: center;
}
.filter-bar-sales { grid-template-columns: 1.4fr 1fr 1fr 1.2fr 1.2fr auto auto; }
@media (max-width: 1100px) {
    .filter-bar-sales { grid-template-columns: 1fr 1fr; }
    .filter-bar-sales input,
    .filter-bar-sales select,
    .filter-bar-sales button,
    .filter-bar-sales a { width: 100%; }
}
@media (max-width: 900px) {
    .filter-bar { grid-template-columns: 1fr 1fr; }
    .filter-bar input, .filter-bar select, .filter-bar button, .filter-bar a { width: 100%; }
}

/* Pagination */
.pagination {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    padding-top: 14px;
}

/* Form grid */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 4px 18px; }
.form-actions { grid-column: 1 / -1; margin-top: 14px; display: flex; gap: 10px; }

/* Fast-entry hint */
.fast-entry-hint {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.fast-entry-hint i { color: #2563eb; font-size: 16px; }

.section-label {
    margin: 18px 0 2px;
    padding: 10px 0 4px;
    border-top: 1px dashed var(--border);
    color: var(--muted);
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: .6px;
    font-weight: 600;
}
.section-label i { margin-right: 6px; }

/* =========================================================
   POS
   ========================================================= */
.pos-content { padding-bottom: 40px; }
.pos-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 20px;
    align-items: start;
}
.pos-grid-fast { grid-template-columns: minmax(0, 1fr) 360px; }
@media (max-width: 1000px) {
    .pos-grid,
    .pos-grid-fast { grid-template-columns: 1fr; }
}
.pos-left, .pos-right { min-width: 0; }
.pos-right .panel { position: relative; }

.pos-cart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pos-cart-head h2 { display: flex; align-items: center; gap: 10px; }
.pos-cart-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.pos-search-panel { padding: 12px 12px 0; position: relative; }
.pos-search-row {
    display: flex; align-items: center; gap: 10px;
    background: #fff; border: 2px solid var(--border); border-radius: 10px;
    padding: 10px 14px;
    box-shadow: 0 1px 2px rgba(15,23,42,.04);
    transition: border-color .15s, box-shadow .15s;
}
.pos-search-row:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}
.pos-search-row i { color: var(--muted); }
.pos-search-row input {
    border: none !important; background: transparent !important;
    flex: 1; font-size: 16px; padding: 4px 0 !important;
    box-shadow: none !important;
}
.pos-search-hint { color: var(--muted); font-size: 12px; white-space: nowrap; }

.pos-results {
    position: absolute; left: 12px; right: 12px;
    top: calc(100% - 8px); z-index: 60;
    background: #fff; border: 1px solid var(--border);
    border-radius: 10px; box-shadow: 0 10px 30px rgba(15,23,42,.08);
    max-height: 380px; overflow-y: auto; display: none;
}
.pos-result {
    padding: 10px 14px; cursor: pointer;
    display: grid; grid-template-columns: 1fr auto; gap: 4px 12px;
    border-bottom: 1px solid var(--border);
}
.pos-result:last-child { border-bottom: none; }
.pos-result:hover { background: #eff6ff; }
.pos-result-name { font-weight: 600; }
.pos-result-meta { grid-column: 1 / 2; font-size: 12px; color: var(--muted); }
.pos-result-price { grid-row: 1 / 3; grid-column: 2 / 3; align-self: center; font-weight: 700; color: var(--primary); }

.pos-cart-table td { vertical-align: middle; padding: 10px 10px; }
.pos-cart-table .qty-ctrl { display: inline-flex; align-items: center; gap: 4px; }
.pos-cart-table .qty-ctrl button {
    width: 30px; height: 30px; border-radius: 6px;
    border: 1px solid var(--border); background: #f8fafc;
    cursor: pointer; font-size: 16px; line-height: 1;
}
.pos-cart-table .qty-ctrl button:hover { background: #e2e8f0; }
.pos-cart-table .qty-ctrl input { width: 52px; text-align: center; padding: 6px 4px !important; }
.pos-cart-table.hide-disc .disc-col { display: none; }
.pos-cart-table.hide-disc th:nth-child(4),
.pos-cart-table.hide-disc td:nth-child(4) { display: none; }
.pos-cart-summary { padding: 10px 4px 0; border-top: 1px dashed var(--border); margin-top: 10px; }

.pos-pay-panel { padding: 16px; }
.pos-mini-label {
    display: block; font-size: 12px; font-weight: 600;
    color: #475569; text-transform: uppercase; letter-spacing: .4px;
    margin: 12px 0 4px;
}
.pos-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pos-two-col > div > .input-lg,
.pos-two-col > div > input,
.pos-two-col > div > select { width: 100%; }

.pos-totals {
    margin: 12px 0 4px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
}
.pos-total-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; gap: 10px; }
.pos-total-row.grand {
    font-size: 18px; font-weight: 700;
    border-top: 1px dashed var(--border); margin-top: 6px; padding-top: 10px;
}
.pos-total-row.grand span:last-child { color: var(--primary); }
.pos-totals-compact .pos-total-row { padding: 4px 0; }
.pos-totals-compact .pos-total-row.grand { padding-top: 8px; margin-top: 4px; }
.paid-input { font-size: 20px !important; font-weight: 700; text-align: right; }
.pos-discount-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.pos-sticky-save {
    position: sticky; bottom: 12px; margin-top: 12px;
    background: #fff; border: 1px solid var(--border); border-radius: 12px;
    padding: 12px 14px;
    display: flex; align-items: center; gap: 12px;
    box-shadow: 0 6px 24px rgba(15,23,42,.08);
}
.pos-sticky-amount { display: flex; flex-direction: column; line-height: 1.15; }
.pos-sticky-amount b { color: var(--primary); font-size: 18px; }
.pos-save-btn { flex: 1; padding: 14px 18px; font-size: 16px; font-weight: 700; }

.kbd-hint { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-right: 6px; }
.kbd {
    display: inline-block; padding: 1px 7px;
    border: 1px solid var(--border); border-bottom-width: 2px;
    border-radius: 5px; font-family: monospace; font-size: 11px;
    background: #f8fafc; color: #334155; font-weight: 700;
}

/* =========================================================
   Reports hub
   ========================================================= */
.report-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    margin-top: 8px;
}
.report-card {
    display: flex !important;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 20px;
    text-decoration: none;
    color: var(--text);
    box-shadow: 0 1px 2px rgba(15,23,42,.03);
    transition: transform .12s ease, box-shadow .12s ease;
}
.report-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15,23,42,.06);
    text-decoration: none;
    color: var(--text);
}
.report-icon {
    width: 46px; height: 46px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex: 0 0 auto;
}
.report-body { flex: 1 1 auto; min-width: 0; }
.report-body h3 { margin: 0 0 2px; font-size: 15px; font-weight: 700; }
.report-body p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.report-card > i.fa-chevron-right { color: #cbd5e1; font-size: 14px; flex: 0 0 auto; }

.pl-table { width: 100%; }
.pl-table tr.pl-section td {
    background: #f8fafc;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #475569;
    padding-top: 14px;
    padding-bottom: 8px;
}
.pl-table tr.pl-total td { font-weight: 600; border-top: 1px dashed var(--border); }
.pl-table tr.pl-grand td { font-size: 16px; background: #f1f5f9; }
.pl-table tr.pl-grand td:last-child { font-weight: 800; }

/* Activity feed */
.activity-feed { list-style: none; padding: 0; margin: 0; }
.activity-feed li {
    display: flex; gap: 12px;
    padding: 10px 4px;
    border-bottom: 1px dashed var(--border);
    font-size: 13.5px;
}
.activity-feed li:last-child { border-bottom: none; }
.activity-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--primary);
    margin-top: 6px; flex: 0 0 auto;
}

/* Responsive */
@media (max-width: 900px) {
    .menu-toggle { display: inline-block; }
    .sidebar { transform: translateX(-100%); transition: transform .2s ease; }
    body.sidebar-open .sidebar { transform: translateX(0); }
    .content { margin-left: 0; padding: calc(var(--topbar-h) + 16px) 16px 24px; }
    .user-meta { display: none; }
    .topbar-title { font-size: 15px; }
}
@media (max-width: 520px) {
    .topbar-title { display: none; }
    .page-header h1 { font-size: 20px; }
    .kpi-value { font-size: 19px; }
}

/* Print */
@media print {
    .sidebar,
    .topbar,
    .page-header-actions,
    .no-print,
    .pagination,
    .breadcrumbs,
    .menu-toggle,
    .user-menu,
    .icon-btn {
        display: none !important;
    }
    .content {
        margin-left: 0 !important;
        padding: 0 !important;
    }
    body, body.app-body { background: #fff !important; }
    .panel {
        box-shadow: none !important;
        border: 1px solid #cbd5e1 !important;
        page-break-inside: avoid;
    }
    .kpi-row { gap: 8px; margin-bottom: 12px; }
    .kpi-card { box-shadow: none !important; }
    .report-grid { display: none !important; }
    table { font-size: 12px; }
    .table th { background: transparent !important; }
}
/* =========================================================
   STEP 21C — Barcode label print page (minimal global)
   ========================================================= */
.barcode-page-body { background:#f1f5f9; padding:20px; }