/* =====================================================================
   Sabri Mobile Ghar POS — main stylesheet
   Uses logical properties (inline-start/end) so Urdu RTL works as-is.
   ===================================================================== */

:root {
    --bg: #f3f5f8;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    --text: #1e293b;
    --text-2: #475569;
    --muted: #94a3b8;
    --primary: #0f766e;
    --primary-hover: #115e59;
    --primary-soft: #ccfbf1;
    --sidebar: #0f172a;
    --sidebar-2: #1e293b;
    --sidebar-text: #cbd5e1;
    --danger: #dc2626;
    --danger-soft: #fee2e2;
    --warning: #d97706;
    --warning-soft: #fef3c7;
    --success: #16a34a;
    --success-soft: #dcfce7;
    --info: #2563eb;
    --info-soft: #dbeafe;
    --radius: 8px;
    --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
    --shadow-lg: 0 10px 30px rgba(15, 23, 42, .18);
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-ur: "Noto Naskh Arabic", "Jameel Noori Nastaleeq", Tahoma, sans-serif;
    --sidebar-w: 240px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: 15px; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.45;
}
[dir="rtl"] body { font-family: var(--font-ur); line-height: 1.7; }
[dir="rtl"] input, [dir="rtl"] select, [dir="rtl"] textarea, [dir="rtl"] button { font-family: var(--font-ur); }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.25; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 .8em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 16px 0; }
small, .small { font-size: .85rem; }
.muted { color: var(--text-2); }
.mono, [dir="ltr"].mono { font-family: ui-monospace, Consolas, monospace; }
.ltr { direction: ltr; unicode-bidi: embed; display: inline-block; }
.nowrap { white-space: nowrap; }
.text-end { text-align: end; }
.text-center { text-align: center; }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.fw-bold { font-weight: 700; }
.hidden { display: none !important; }

.icon { width: 18px; height: 18px; flex-shrink: 0; vertical-align: -3px; }

/* ---------- Layout ---------- */
.sidebar {
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    width: var(--sidebar-w);
    background: var(--sidebar);
    color: var(--sidebar-text);
    overflow-y: auto;
    z-index: 40;
    transition: transform .2s;
}
.brand { padding: 16px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand a { color: #fff; font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.menu { padding: 8px 8px 40px; }
.menu-link {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-radius: 6px;
    color: var(--sidebar-text); cursor: pointer; list-style: none;
    font-size: .95rem; user-select: none;
}
.menu-link::-webkit-details-marker { display: none; }
.menu-link:hover { background: var(--sidebar-2); color: #fff; text-decoration: none; }
.menu-link.active { color: #fff; background: rgba(20, 184, 166, .16); }
.menu-group summary::after { content: "›"; margin-inline-start: auto; transition: transform .15s; opacity: .6; }
[dir="rtl"] .menu-group summary::after { content: "‹"; }
.menu-group[open] summary::after { transform: rotate(90deg); }
[dir="rtl"] .menu-group[open] summary::after { transform: rotate(-90deg); }
.menu-sub {
    display: block; padding: 7px 12px 7px 40px; border-radius: 6px;
    color: #94a3b8; font-size: .9rem;
}
[dir="rtl"] .menu-sub { padding: 7px 40px 7px 12px; }
.menu-sub:hover { color: #fff; background: var(--sidebar-2); text-decoration: none; }
.menu-sub.active { color: #5eead4; }

.main { min-height: 100vh; }
.has-sidebar .main { margin-inline-start: var(--sidebar-w); }
.topbar {
    position: sticky; top: 0; z-index: 30;
    display: flex; align-items: center; gap: 12px;
    padding: 10px 20px; background: var(--surface);
    border-bottom: 1px solid var(--border);
}
.page-title { font-size: 1.15rem; margin: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.menu-toggle { display: none; }
.content { padding: 20px; max-width: 1500px; }
.sidebar-backdrop { display: none; }

.icon-btn {
    position: relative; display: inline-flex; align-items: center; gap: 4px;
    padding: 7px; border: 0; background: transparent; border-radius: 6px;
    color: var(--text-2); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.lang-code { font-size: .8rem; font-weight: 600; }
.dot-count {
    position: absolute; top: 0; inset-inline-end: 0;
    min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
    background: var(--danger); color: #fff; font-size: .7rem; line-height: 17px; text-align: center;
}

.user-menu { position: relative; }
.user-menu summary { list-style: none; display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 6px; cursor: pointer; color: var(--text-2); }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary:hover { background: var(--surface-2); }
.dropdown {
    position: absolute; inset-inline-end: 0; top: calc(100% + 4px); min-width: 200px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); padding: 6px; z-index: 50;
}
.dropdown-head { padding: 8px 10px; font-weight: 600; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.dropdown-head small { display: block; color: var(--muted); font-weight: 400; }
.dropdown a, .dropdown button {
    display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px;
    border: 0; background: none; text-align: start; color: var(--text); font-size: .95rem; cursor: pointer; border-radius: 6px;
}
.dropdown a:hover, .dropdown button:hover { background: var(--surface-2); text-decoration: none; }

@media (max-width: 900px) {
    .sidebar { transform: translateX(-100%); }
    [dir="rtl"] .sidebar { transform: translateX(100%); }
    body.sidebar-open .sidebar { transform: none; }
    body.sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 35; }
    .has-sidebar .main { margin-inline-start: 0; }
    .menu-toggle { display: inline-flex; }
    .content { padding: 14px; }
    .hide-mobile { display: none !important; }
}

/* ---------- Cards / grid ---------- */
.card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 18px;
}
.card-head {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
    padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.card-head h2, .card-head h3 { margin: 0; }
.card-body { padding: 16px; }
.card-body.p0 { padding: 0; }
.card-foot { padding: 12px 16px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-sidebar { grid-template-columns: minmax(0, 1fr) 360px; }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-sidebar { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.span-2 { grid-column: span 2; }
.span-all { grid-column: 1 / -1; }
@media (max-width: 700px) { .span-2 { grid-column: auto; } }

.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .spacer { flex: 1; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head h2 { margin: 0; }

/* ---------- Stats ---------- */
.stat {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 14px 16px; box-shadow: var(--shadow);
}
.stat-label { color: var(--text-2); font-size: .85rem; }
.stat-value { font-size: 1.5rem; font-weight: 700; margin-top: 2px; }
.stat-sub { color: var(--muted); font-size: .82rem; }
.stat.tone-green .stat-value { color: var(--success); }
.stat.tone-red .stat-value { color: var(--danger); }
.stat.tone-blue .stat-value { color: var(--info); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 8px 14px; border: 1px solid var(--border-strong); border-radius: 6px;
    background: var(--surface); color: var(--text); font-size: .93rem; font-weight: 500;
    cursor: pointer; white-space: nowrap; line-height: 1.2; text-decoration: none;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:disabled, .btn.disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-success { background: var(--success); border-color: var(--success); color: #fff; }
.btn-warning { background: var(--warning); border-color: var(--warning); color: #fff; }
.btn-outline-danger { color: var(--danger); border-color: #fca5a5; }
.btn-outline-danger:hover { background: var(--danger-soft); }
.btn-whatsapp { background: #25d366; border-color: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1ebe5b; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-sm { padding: 5px 10px; font-size: .85rem; }
.btn-lg { padding: 12px 20px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-group { display: inline-flex; gap: 6px; flex-wrap: wrap; }
form.inline { display: inline; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 14px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 800px) { .form-grid, .form-grid.cols-3, .form-grid.cols-4 { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field.span-all { grid-column: 1 / -1; }
label, .label { font-weight: 600; font-size: .88rem; color: var(--text-2); }
.req::after { content: " *"; color: var(--danger); }
.help { font-size: .8rem; color: var(--muted); }
input[type=text], input[type=number], input[type=password], input[type=date], input[type=search],
input[type=tel], input[type=email], input[type=month], input:not([type]), select, textarea {
    width: 100%; padding: 8px 10px; border: 1px solid var(--border-strong); border-radius: 6px;
    background: #fff; color: var(--text); font-size: .95rem; font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(15, 118, 110, .35); border-color: var(--primary); }
input[readonly] { background: var(--surface-2); }
textarea { min-height: 70px; resize: vertical; }
input.is-invalid, select.is-invalid { border-color: var(--danger); background: #fff7f7; }
.check { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; color: var(--text); cursor: pointer; }
.check input { width: 16px; height: 16px; }
.input-group { display: flex; }
.input-group > input, .input-group > select { border-radius: 0; flex: 1; min-width: 0; }
.input-group > :first-child { border-start-start-radius: 6px; border-end-start-radius: 6px; }
.input-group > :last-child { border-start-end-radius: 6px; border-end-end-radius: 6px; }
.input-group > * + * { margin-inline-start: -1px; }
.input-group .btn { border-radius: 0; }
.input-addon { display: flex; align-items: center; padding: 0 10px; background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text-2); font-size: .9rem; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin: 0 0 16px; }
legend { font-weight: 700; padding: 0 6px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-bottom: 14px; }
.filter-bar .field { min-width: 140px; }
.filter-bar .field.grow { flex: 1; min-width: 200px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { padding: 9px 12px; text-align: start; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table th { background: var(--surface-2); color: var(--text-2); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
[dir="rtl"] .table th { text-transform: none; letter-spacing: 0; font-size: .9rem; }
.table tbody tr:hover { background: #fafcff; }
.table td.num, .table th.num { text-align: end; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table tfoot td { font-weight: 700; background: var(--surface-2); }
.table .actions { text-align: end; white-space: nowrap; }
.table-compact th, .table-compact td { padding: 6px 8px; }
.table tr.row-void td { color: var(--muted); text-decoration: line-through; }
.table tr.row-warn td { background: #fffbeb; }
.table tr.row-danger td { background: #fef2f2; }
.empty { padding: 30px; text-align: center; color: var(--muted); }

dl.details { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
dl.details dt { color: var(--text-2); font-size: .88rem; }
dl.details dd { margin: 0; font-weight: 500; }

/* ---------- Badges / alerts ---------- */
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.badge-gray { background: #f1f5f9; color: #475569; }
.badge-green { background: var(--success-soft); color: #15803d; }
.badge-red { background: var(--danger-soft); color: #b91c1c; }
.badge-amber { background: var(--warning-soft); color: #b45309; }
.badge-blue { background: var(--info-soft); color: #1d4ed8; }

.alert {
    position: relative; padding: 11px 40px 11px 14px; border-radius: var(--radius); margin-bottom: 14px;
    border: 1px solid transparent; font-size: .95rem;
}
[dir="rtl"] .alert { padding: 11px 14px 11px 40px; }
.alert-success { background: var(--success-soft); border-color: #bbf7d0; color: #166534; }
.alert-error, .alert-danger { background: var(--danger-soft); border-color: #fecaca; color: #991b1b; }
.alert-warning { background: var(--warning-soft); border-color: #fde68a; color: #92400e; }
.alert-info { background: var(--info-soft); border-color: #bfdbfe; color: #1e40af; }
.alert-close { position: absolute; top: 6px; inset-inline-end: 8px; border: 0; background: none; font-size: 1.3rem; cursor: pointer; color: inherit; opacity: .6; }
.blacklist-warning {
    padding: 10px 14px; border-radius: var(--radius); background: #b91c1c; color: #fff; font-weight: 600; margin: 8px 0;
    animation: pulse 1.2s ease-in-out 2;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(220, 38, 38, .25); } }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; }
.tabs a { padding: 9px 14px; color: var(--text-2); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.tabs .count { background: var(--surface-2); border-radius: 999px; padding: 0 7px; font-size: .78rem; margin-inline-start: 4px; }

/* ---------- Pager ---------- */
.pager { display: flex; align-items: center; gap: 10px; justify-content: flex-end; padding: 12px 16px; flex-wrap: wrap; }
.pager-info { color: var(--muted); font-size: .85rem; margin-inline-end: auto; padding: 10px 16px; }
.pager .pager-info { padding: 0; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; background: rgba(15, 23, 42, .5); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; overflow-y: auto; }
.modal[hidden] { display: none; }
.modal-box { background: var(--surface); border-radius: 10px; box-shadow: var(--shadow-lg); width: 100%; max-width: 560px; }
.modal-box.wide { max-width: 900px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.modal-head h3 { margin: 0; }
.modal-body { padding: 16px; }

/* ---------- Autocomplete ---------- */
.ac-wrap { position: relative; }
.ac-list {
    position: absolute; inset-inline: 0; top: 100%; z-index: 60; margin-top: 2px;
    background: var(--surface); border: 1px solid var(--border-strong); border-radius: 6px;
    box-shadow: var(--shadow-lg); max-height: 340px; overflow-y: auto;
}
.ac-item { padding: 8px 10px; cursor: pointer; border-bottom: 1px solid var(--border); }
.ac-item:last-child { border-bottom: 0; }
.ac-item:hover, .ac-item.active { background: var(--primary-soft); }
.ac-item .ac-sub { font-size: .8rem; color: var(--text-2); }
.ac-empty { padding: 10px; color: var(--muted); }

/* ---------- Camera capture ---------- */
.capture { border: 1px dashed var(--border-strong); border-radius: var(--radius); padding: 10px; background: var(--surface-2); }
.capture-preview { width: 100%; aspect-ratio: 16 / 10; background: #0f172a; border-radius: 6px; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #64748b; font-size: .85rem; }
.capture-preview video, .capture-preview img { width: 100%; height: 100%; object-fit: contain; }
.capture-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.capture-actions input[type=file] { font-size: .8rem; max-width: 100%; }
.doc-thumb { width: 120px; height: 80px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); background: #f1f5f9; }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.thumbs figure { margin: 0; text-align: center; font-size: .8rem; color: var(--text-2); }

/* ---------- Login ---------- */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: linear-gradient(135deg, #0f172a, #134e4a); }
.auth-card { width: 100%; max-width: 380px; background: var(--surface); border-radius: 12px; padding: 28px; box-shadow: var(--shadow-lg); }
.auth-card h1 { font-size: 1.35rem; text-align: center; margin-bottom: 4px; }
.auth-card .sub { text-align: center; color: var(--text-2); margin-bottom: 20px; }

/* ---------- Empty state ---------- */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-2); }

/* ---------- Timeline (IMEI history etc.) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 16px 24px; }
[dir="rtl"] .timeline li { padding: 0 24px 16px 0; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: 6px; top: 6px; bottom: -6px; width: 2px; background: var(--border); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; inset-inline-start: 1px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--primary); }
.timeline .t-date { font-size: .8rem; color: var(--muted); }
.timeline .t-title { font-weight: 600; }

/* ---------- POS ---------- */
.pos { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
@media (max-width: 1100px) { .pos { grid-template-columns: 1fr; } }
.scan-box { display: flex; gap: 8px; }
.scan-box input { font-size: 1.15rem; padding: 12px 14px; border-width: 2px; border-color: var(--primary); }
.cart-table td { vertical-align: middle; }
.cart-table .qty-input { width: 70px; text-align: center; padding: 5px; }
.pos-totals { font-size: 1rem; }
.pos-totals .row { display: flex; justify-content: space-between; padding: 5px 0; }
.pos-totals .grand { font-size: 1.5rem; font-weight: 800; border-top: 2px solid var(--border); margin-top: 6px; padding-top: 10px; }
.pay-row { display: grid; grid-template-columns: 1fr 120px 32px; gap: 6px; margin-bottom: 6px; align-items: center; }
.pay-row .ref { grid-column: 1 / -1; }
.pos-due { padding: 10px; border-radius: 6px; text-align: center; font-weight: 700; margin: 8px 0; }
.pos-due.ok { background: var(--success-soft); color: #166534; }
.pos-due.short { background: var(--warning-soft); color: #92400e; }
.held-list .held-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); gap: 8px; }

/* ---------- Stock-in grid ---------- */
.grid-table input, .grid-table select { padding: 6px 7px; font-size: .9rem; }
.grid-table td { padding: 4px 5px; }
.grid-table .w-qty { width: 70px; }
.grid-table .w-money { width: 100px; }

/* ---------- Misc ---------- */
.kbd { display: inline-block; padding: 1px 6px; border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 4px; font-size: .75rem; font-family: ui-monospace, monospace; background: #fff; }
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { padding: 7px 0; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; gap: 10px; }
.list-plain li:last-child { border-bottom: 0; }
.alerts-list a { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); color: var(--text); }
.alerts-list a:last-child { border-bottom: 0; }
.quick-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.quick-actions a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); text-align: center; font-weight: 600; font-size: .9rem; }
.quick-actions a:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.quick-actions .icon { width: 26px; height: 26px; color: var(--primary); }
.bar { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--primary); }
svg.barcode { max-width: 100%; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px 20px; }
.perm-grid h4 { grid-column: 1 / -1; margin: 12px 0 2px; font-size: .9rem; color: var(--primary); }

@media print {
    .sidebar, .topbar, .no-print, .toolbar, .filter-bar, .pager, .form-actions, .btn { display: none !important; }
    .has-sidebar .main { margin: 0; }
    .content { padding: 0; }
    .card { box-shadow: none; border: 0; }
    body { background: #fff; }
}
.print-only { display: none; }
@media print { .print-only { display: block; } }
