:root {
    --canvas: #f4f6fa;
    --ink: #18243b;
    --muted: #586780;
    --accent: #2459c8;
    --border: #dce3ed;
}
body { background: var(--canvas); color: var(--ink); font-family: system-ui, sans-serif; }
.workspace { width: min(100%, 1440px); padding-inline: clamp(16px, 4vw, 56px); margin-inline: auto; }
.navbar { background: #142541; min-height: 66px; }
.brand-mark { display:grid; place-items:center; width:36px; height:36px; color:white; background:#326be1; border-radius:10px; font-size:.78rem; }
.navbar .nav-link { color:#d9e4f9; }
.navbar .nav-link:hover, .navbar .nav-link:focus { color:white; }
h1 { font-size: clamp(1.65rem, 3vw, 2.4rem); font-weight:750; letter-spacing:-.035em; }
h2 { font-size:1.12rem; font-weight:700; }
.panel { border:1px solid var(--border); border-radius:16px; background:white; padding:clamp(14px, 2.5vw, 24px); box-shadow:0 5px 16px #152a4910; }
.metric { border-top:3px solid #326be1; }
.metric p { color:var(--muted); margin-bottom:.45rem; }
.metric strong { font-size:clamp(1.35rem,3vw,2rem); letter-spacing:-.03em; }
.table { --bs-table-color:var(--ink); }
.table th { color:var(--muted); font-size:.86rem; white-space:nowrap; }
.table td, .table th { vertical-align:middle; padding:.7rem .75rem; }
.form-control, .form-select { min-height:42px; }
.btn-primary { --bs-btn-bg:#2459c8; --bs-btn-border-color:#2459c8; }
.text-muted { color:var(--muted)!important; }
.login-panel { max-width:420px; margin:clamp(20px, 12vh, 120px) auto; }
.select2-container .select2-selection--single { min-height:42px; border-color:#dee2e6; }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height:40px; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height:40px; }
.transaction-row { display:grid; grid-template-columns:minmax(12rem, 2fr) minmax(5rem, 1fr) minmax(7rem,1fr) auto; align-items:end; gap:.75rem; padding:1rem 0; border-bottom:1px solid var(--border); }
@media (max-width: 680px) {
    .transaction-row { grid-template-columns:1fr 1fr; }
    .transaction-row .product-field { grid-column:1/-1; }
}

@media (min-width: 992px) {
    .transaction-row.sale-row { grid-template-columns:minmax(12rem, 2fr) minmax(5rem, 1fr) repeat(2,minmax(7rem,1fr)) auto; }
}
