:root { --brand: #1f3a5f; --brand-2: #2e5c8a; }
body { background: #f4f6f9; font-size: .95rem; }
.app-nav { background: var(--brand); }
.app-nav .nav-link, .app-nav .navbar-brand { color: #fff !important; }
.app-nav .dropdown-menu { font-size: .92rem; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: 1rem; }
.page-head h1 { font-size: 1.35rem; margin: 0; color: var(--brand); }
.card { border: 0; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.card-header { background: #fff; font-weight: 600; color: var(--brand); }
.stat { padding: 1rem 1.1rem; }
.stat .label { color: #6b7280; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
.stat .value { font-size: 1.5rem; font-weight: 600; color: #111827; }
.stat .sub { color: #6b7280; font-size: .85rem; }
.table { background: #fff; }
.table thead th { background: #eef2f7; font-weight: 600; font-size: .82rem; white-space: nowrap; }
.table td.num, .table th.num { text-align: right; white-space: nowrap; }
.table tfoot td { font-weight: 600; background: #f8fafc; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.badge-InStock { background: #16a34a; }
.badge-Sold { background: #2563eb; }
.badge-ReturnedToSupplier, .badge-ReturnedToSeller { background: #d97706; }
.badge-Removed, .badge-Cancelled { background: #6b7280; }
.form-label { font-weight: 500; margin-bottom: .2rem; }
.required::after { content: " *"; color: #dc2626; }
.section-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; margin: 1rem 0 .4rem; }
.line-table input, .line-table select { min-width: 70px; }
.line-table .js-imei, .line-table .js-imei2 { min-width: 150px; }
.line-table .js-model { min-width: 130px; }
.line-table input.form-check-input { min-width: 0; width: 1.25em; height: 1.25em; }
.clickable-row { cursor: pointer; }
.big-actions .btn { padding: .9rem 1.2rem; font-size: 1.05rem; }
@media print { body { background: #fff; } .card { box-shadow: none; } }

/* ---------- reports ---------- */
.print-only { display: none; }
.report-daybook { border-left: 4px solid var(--brand-2); }
.report-section { overflow: hidden; }
.report-section-head { padding: .9rem 1.1rem; color: #fff; background: var(--brand); }
.section-used .report-section-head { background: #0f6b5c; }
.section-accounts .report-section-head { background: #6d4c1f; }
.section-accounts .report-tile .t { color: #6d4c1f; }
.mini-stat { background: #f6f8fb; border-radius: .4rem; padding: .55rem .7rem; height: 100%; }
.mini-stat .label { font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; color: #6b7280; }
.mini-stat .value { font-weight: 600; font-size: 1.05rem; }
.mini-stat .sub { font-size: .78rem; color: #6b7280; }
.report-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; }
.report-tile { display: flex; flex-direction: column; gap: .15rem; padding: .7rem .8rem; border: 1px solid #dbe3ee; border-radius: .45rem; text-decoration: none; color: inherit; background: #fff; transition: border-color .12s, box-shadow .12s; }
.report-tile:hover { border-color: var(--brand-2); box-shadow: 0 2px 6px rgba(31,58,95,.12); }
.report-tile .t { font-weight: 600; color: var(--brand); }
.section-used .report-tile .t { color: #0f6b5c; }
.report-tile .d { font-size: .8rem; color: #6b7280; line-height: 1.25; }
.quick-links { list-style: none; padding: 0; margin: 0; columns: 2 220px; }
.quick-links li { padding: .2rem 0; break-inside: avoid; }
.quick-links a::before { content: "→ "; color: #9ca3af; }
.report-nav .nav-tabs .nav-link { font-weight: 500; }
.report-filters .form-label { font-size: .78rem; color: #4b5563; margin-bottom: .1rem; }
.report-filters select.is-set { border-color: var(--brand-2); background-color: #eef4fb; font-weight: 500; }
.chip { display: inline-block; padding: .15rem .55rem; border-radius: 1rem; background: #e7eef8; color: var(--brand); text-decoration: none; }
.chip:hover { background: #d6e2f3; }
.bar { height: .55rem; background: #eef2f7; border-radius: .3rem; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--brand-2); }
table.sortable thead th { cursor: pointer; user-select: none; }
table.sortable thead th.sorted-asc::after { content: " ▲"; font-size: .7em; }
table.sortable thead th.sorted-desc::after { content: " ▼"; font-size: .7em; }
@media print {
  .print-only { display: block; }
  .stat { border: 1px solid #ddd; }
  .stat .value { font-size: 1.1rem; }
  .table-responsive { overflow: visible; }
}
