:root { --brand: #0f3d5e; --brand-2: #f2a900; }
body { background: #f4f6f9; font-size: .93rem; }
.bg-brand { background: var(--brand) !important; }
.text-brand { color: var(--brand) !important; }
.btn-brand { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-brand:hover { background: #0b2e47; color: #fff; }
.sidebar { width: 240px; min-height: 100vh; display: flex; flex-direction: column; }
@media (min-width: 992px) { .sidebar { position: sticky; top: 0; height: 100vh; } }
.sidebar .nav-link { border-radius: .4rem; opacity: .85; }
.sidebar .nav-link:hover, .sidebar .nav-link.active { background: rgba(255,255,255,.12); opacity: 1; }
.sidebar .nav-link.active { border-left: 3px solid var(--brand-2); }
.offcanvas-lg.sidebar .offcanvas-body { padding: 0; }
.main-content { min-width: 0; }
.login-bg { background: linear-gradient(135deg, #0f3d5e 0%, #1d6a96 60%, #f2a900 160%); }
.card { border: 1px solid #e3e7ee; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.stat .card-body { padding: .8rem 1rem; }
.steps .step { display: flex; align-items: center; gap: .4rem; color: #6c757d; font-size: .85rem; }
.steps .step .num { width: 24px; height: 24px; border-radius: 50%; background: #e9ecef; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; }
.steps .step.done { color: #198754; } .steps .step.done .num { background: #198754; color: #fff; }
.photo-card { border: 1px solid #dee2e6; border-radius: .4rem; overflow: hidden; background: #fff; }
.photo-card img { width: 100%; height: 120px; object-fit: cover; display: block; }
.items-table input, .items-table select { min-width: 0; font-size: .85rem; }
.items-table td { padding: .2rem .3rem; }
.items-table tr.group-row td { background: #eef3f8; font-weight: 600; }
.rab-table th, .rab-table td { font-size: .84rem; }
.rab-table .table-group td { background: #eef3f8; }
.summary-table td { font-size: .88rem; }
.boq-preview { max-height: 480px; overflow: auto; }
.boq-preview tr.is-header td { background: #eef3f8; font-weight: 600; }
.badge-src { font-size: .7rem; }
@media print {
  .no-print, .sidebar, nav.navbar, .nav-tabs, .alert { display: none !important; }
  body { background: #fff; }
  .main-content { padding: 0 !important; }
  .col-xl-8 { width: 100% !important; flex: 0 0 100% !important; max-width: 100% !important; }
  .card { border: 0; box-shadow: none; }
}
.btn-outline-brand { color: var(--brand); border-color: #c9d6e2; background: #fff; }
.btn-check:checked + .btn-outline-brand { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-outline-brand:hover { background: #eef3f8; color: var(--brand); }
.picker-table td { padding: .25rem .4rem; font-size: .85rem; }
.picker-table tr.group-row td { background: #eef3f8; font-weight: 600; }
.picker-table input.qty { width: 90px; }
.picker-table tr.has-qty td { background: #fff8e1; }
.sys-grid .form-select { font-size: .82rem; }
