/* OpenIT Asset Management System - clean UI
   Font: Maiandra GD (installed with Microsoft Office on Windows); falls back to Segoe UI. */
@font-face { font-family: "OAMS Maiandra"; src: local("Maiandra GD"), local("MaiandraGD-Regular"), local("Maiandra GD Regular"); }
@font-face { font-family: "OAMS Maiandra"; font-weight: 700; src: local("Maiandra GD Demi"), local("Maiandra GD Bold"), local("MaiandraGD-DemiBold"), local("Maiandra GD"); }

:root {
  --font: "Maiandra GD", "OAMS Maiandra", "Segoe UI", "Trebuchet MS", system-ui, sans-serif;
  --blue: #1f5fa8; --blue-700: #174a85; --blue-50: #eef4fb; --blue-100: #dbe8f6;
  --red: #d7282f; --red-50: #fdeeee;
  --green: #1a8a4c; --amber: #c27c00; --grey: #6b7785;
  --bg: #f4f6fa; --card: #ffffff; --line: #e3e8ef; --line-2: #eef1f5;
  --ink: #1d2733; --ink-2: #44505e; --muted: #6b7785;
  --side-w: 248px; --top-h: 60px; --radius: 12px;
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 1px 3px rgba(16,24,40,.06);
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100; --s5: #e87ba4; --s6: #008300; --s7: #6250d6; --s8: #e34948;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 14.5px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-700); text-decoration: underline; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font); font-weight: 700; letter-spacing: .1px; color: var(--ink); }
.btn, .form-control, .form-select, .dropdown-menu, .modal, .tooltip, .popover, input, select, textarea, button { font-family: var(--font); }
.text-muted, .muted { color: var(--muted) !important; }
.small, small { font-size: 12.5px; }
code { color: #8a3b12; }

/* ---------- layout ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--side-w); background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; z-index: 1030; transition: width .18s ease; }
.sidebar .brand { height: var(--top-h); display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.sidebar .brand img { height: 30px; max-width: 120px; object-fit: contain; }
.sidebar .brand .name { font-weight: 700; font-size: 15px; line-height: 1.1; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar .brand .name small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; }
.sidebar nav { overflow-y: auto; padding: 10px 10px 20px; flex: 1; }
.side-sec { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #98a2b3; padding: 14px 10px 6px; white-space: nowrap; }
.side-link { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 8px; color: var(--ink-2); font-size: 14px; white-space: nowrap; }
.side-link i { font-size: 17px; width: 20px; text-align: center; color: #7a8696; }
.side-link:hover { background: var(--blue-50); color: var(--blue); text-decoration: none; }
.side-link:hover i { color: var(--blue); }
.side-link.active { background: var(--blue); color: #fff; }
.side-link.active i { color: #fff; }
.side-link .count { margin-left: auto; background: var(--red); color: #fff; border-radius: 10px; font-size: 11px; padding: 0 7px; line-height: 18px; }
.side-link.active .count { background: #fff; color: var(--blue); }
.side-foot { border-top: 1px solid var(--line); padding: 10px 14px; font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.side-foot img { height: 20px; }
body.collapsed { --side-w: 68px; }
body.collapsed .sidebar .brand .name, body.collapsed .side-sec, body.collapsed .side-link span, body.collapsed .side-link .count, body.collapsed .side-foot span { display: none; }
body.collapsed .side-link { justify-content: center; padding: 10px 0; }

.main { flex: 1; margin-left: var(--side-w); min-width: 0; display: flex; flex-direction: column; transition: margin .18s ease; }
.topbar { position: sticky; top: 0; z-index: 1020; height: var(--top-h); background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 0 20px; }
.icon-btn { border: 0; background: transparent; width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); font-size: 19px; position: relative; }
.icon-btn:hover { background: var(--blue-50); color: var(--blue); }
.icon-btn .dot { position: absolute; top: 4px; right: 3px; background: var(--red); color: #fff; font-size: 10px; border-radius: 9px; min-width: 17px; height: 17px; line-height: 17px; text-align: center; padding: 0 4px; }
.search-wrap { position: relative; flex: 1; max-width: 520px; }
.search-wrap input { width: 100%; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); padding: 0 14px 0 38px; font-size: 14px; }
.search-wrap input:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px var(--blue-100); }
.search-wrap > i { position: absolute; left: 13px; top: 11px; color: var(--muted); }
.search-results { position: absolute; top: 46px; left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(16,24,40,.12); display: none; max-height: 420px; overflow: auto; z-index: 50; }
.search-results a { display: flex; gap: 10px; align-items: center; padding: 9px 14px; color: var(--ink); border-bottom: 1px solid var(--line-2); }
.search-results a:hover, .search-results a.on { background: var(--blue-50); text-decoration: none; }
.search-results .type { font-size: 11px; color: var(--muted); width: 74px; flex: none; }
.search-results .sub { margin-left: auto; font-size: 12px; color: var(--muted); }
.topbar .user { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 10px; color: var(--ink); }
.topbar .user:hover { background: var(--blue-50); text-decoration: none; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }

.content { padding: 22px 26px 30px; flex: 1; }
.page-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { font-size: 23px; margin: 0; }
.page-head .lead { color: var(--muted); font-size: 14px; margin: 2px 0 0; max-width: 760px; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.crumbs a { color: var(--muted); }

.footer { border-top: 1px solid var(--line); background: #fff; padding: 10px 26px; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer img { height: 22px; }
.footer .sep { color: #c9d0da; }

/* ---------- cards & tiles ---------- */
.card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--card); }
.card-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.card-head h2, .card-head h3 { font-size: 15.5px; margin: 0; }
.card-head .actions { margin-left: auto; display: flex; gap: 6px; }
.card-body { padding: 16px 18px; }
.grid { display: grid; gap: 16px; }
.grid.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.k3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.k2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.k21 { grid-template-columns: 2fr 1fr; }
@media (max-width: 1200px) { .grid.k4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid.k21 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid.k4, .grid.k3, .grid.k2 { grid-template-columns: 1fr; } .content { padding: 16px; } :root { --side-w: 0px; } .sidebar { transform: translateX(-100%); width: 248px; } body.mobile-open .sidebar { transform: none; } .search-wrap { max-width: none; } }

.kpi { padding: 16px 18px; position: relative; cursor: default; }
.kpi .label { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 7px; }
.kpi .label i { color: var(--blue); }
.kpi .value { font-size: 26px; font-weight: 700; margin-top: 4px; line-height: 1.15; letter-spacing: -.2px; }
.kpi .value small { font-size: 13px; color: var(--muted); font-weight: 400; }
.kpi .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.kpi.click { cursor: pointer; }
.kpi.click:hover { border-color: var(--blue); }
.kpi .go { position: absolute; right: 14px; top: 14px; color: #c3cad4; }
.kpi.click:hover .go { color: var(--blue); }

.chart-box { position: relative; height: 270px; }
.chart-box.sm { height: 210px; }
.chart-box.lg { height: 330px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; background: var(--c); vertical-align: -1px; }

/* ---------- tables ---------- */
.table { margin: 0; font-size: 13.5px; color: var(--ink); }
.table > :not(caption) > * > * { padding: 9px 12px; border-bottom-color: var(--line-2); }
.table thead th { background: #f8fafc; color: var(--ink-2); font-weight: 700; font-size: 12.5px; text-transform: none; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; z-index: 1; }
.table tbody tr:hover { background: #f7faff; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table tfoot td { font-weight: 700; background: #f8fafc; border-top: 1px solid var(--line); }
.table-wrap { overflow: auto; max-height: 68vh; }
.table-wrap.tall { max-height: none; }
th.sortable { cursor: pointer; user-select: none; }
th.sortable::after { content: "\2195"; color: #c3cad4; margin-left: 5px; font-size: 11px; }
th.sort-asc::after { content: "\2191"; color: var(--blue); }
th.sort-desc::after { content: "\2193"; color: var(--blue); }
.dt-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.dt-bar .dt-search { position: relative; }
.dt-bar .dt-search input { height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px 0 30px; width: 240px; font-size: 13px; }
.dt-bar .dt-search i { position: absolute; left: 10px; top: 8px; color: var(--muted); font-size: 13px; }
.dt-foot { display: flex; align-items: center; gap: 10px; padding: 9px 14px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.dt-foot .pager { margin-left: auto; display: flex; gap: 4px; }
.dt-foot .pager button { border: 1px solid var(--line); background: #fff; border-radius: 6px; min-width: 30px; height: 28px; font-size: 12.5px; color: var(--ink-2); }
.dt-foot .pager button.on { background: var(--blue); color: #fff; border-color: var(--blue); }
.dt-foot .pager button:disabled { opacity: .45; }
.dt-foot select { border: 1px solid var(--line); border-radius: 6px; height: 28px; font-size: 12.5px; }
tr.dt-hidden { display: none; }

/* ---------- chips & badges ---------- */
.chip { display: inline-flex; align-items: center; gap: 5px; border-radius: 20px; padding: 1px 10px; font-size: 12px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.chip-success { background: #e8f6ee; color: #146c3c; border-color: #cdebd9; }
.chip-info { background: var(--blue-50); color: var(--blue-700); border-color: var(--blue-100); }
.chip-warning { background: #fff5e0; color: #8a5a00; border-color: #fbe3b0; }
.chip-danger { background: var(--red-50); color: #a5191f; border-color: #f7cfd1; }
.chip-secondary { background: #f1f3f6; color: #556070; border-color: #e3e8ef; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }

/* ---------- forms ---------- */
.form-label { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; }
.form-control, .form-select { border-color: #d7dde6; border-radius: 8px; font-size: 14px; min-height: 38px; }
.form-control:focus, .form-select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-100); }
.form-text { font-size: 12px; color: var(--muted); }
.form-section { padding: 18px; border-bottom: 1px solid var(--line-2); }
.form-section:last-child { border-bottom: 0; }
.form-section h3 { font-size: 15px; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.form-section h3 .n { width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 12.5px; display: inline-flex; align-items: center; justify-content: center; }
.qa-wrap { display: flex; gap: 6px; }
.qa-wrap .form-select { flex: 1; min-width: 0; }
.qa-wrap .btn { flex: none; }
.req::after { content: " *"; color: var(--red); }
.btn { border-radius: 8px; font-size: 14px; font-weight: 600; padding: 7px 14px; display: inline-flex; align-items: center; gap: 6px; justify-content: center; }
.btn-sm { font-size: 13px; padding: 4px 10px; }
.btn-primary { background: var(--blue); border-color: var(--blue); }
.btn-primary:hover, .btn-primary:focus { background: var(--blue-700); border-color: var(--blue-700); }
.btn-outline-primary { color: var(--blue); border-color: #b9cfea; }
.btn-outline-primary:hover { background: var(--blue); border-color: var(--blue); }
.btn-light { background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.btn-light:hover { background: var(--blue-50); border-color: var(--blue-100); color: var(--blue); }
.btn-danger { background: var(--red); border-color: var(--red); }
.btn-ghost { background: transparent; border: 0; color: var(--ink-2); }
.btn-ghost:hover { background: var(--blue-50); color: var(--blue); }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.filters .f { display: flex; flex-direction: column; min-width: 150px; }
.filters .f label { font-size: 12px; color: var(--muted); margin-bottom: 3px; font-weight: 600; }
.filters .form-control, .filters .form-select { min-height: 34px; height: 34px; font-size: 13px; padding-top: 4px; padding-bottom: 4px; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); padding: 0 12px; overflow-x: auto; }
.tabs a { padding: 11px 14px; color: var(--ink-2); border-bottom: 2px solid transparent; white-space: nowrap; font-size: 14px; }
.tabs a:hover { color: var(--blue); text-decoration: none; }
.tabs a.on { color: var(--blue); border-bottom-color: var(--blue); font-weight: 700; }
.tabs a .count { background: var(--line-2); color: var(--ink-2); border-radius: 10px; padding: 0 7px; font-size: 11.5px; margin-left: 4px; }

/* ---------- misc ---------- */
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty i { font-size: 38px; color: #c3cad4; display: block; margin-bottom: 8px; }
.empty h3 { font-size: 16px; color: var(--ink-2); }
.dl { display: grid; grid-template-columns: 170px 1fr; gap: 7px 14px; font-size: 14px; margin: 0; }
.dl dt { color: var(--muted); font-weight: 400; }
.dl dd { margin: 0; color: var(--ink); }
.hint { display: flex; gap: 10px; background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: 10px; padding: 11px 14px; font-size: 13.5px; color: var(--ink-2); }
.hint > i { color: var(--blue); font-size: 17px; margin-top: 1px; }
.hint.warn { background: #fff8e8; border-color: #fbe3b0; }
.hint.warn > i { color: var(--amber); }
.hint.danger { background: var(--red-50); border-color: #f7cfd1; }
.hint.danger > i { color: var(--red); }
.steps-list { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps-list li { counter-increment: s; position: relative; padding: 0 0 12px 38px; }
.steps-list li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.check-list a { display: flex; align-items: center; gap: 10px; padding: 8px 2px; color: var(--ink); border-bottom: 1px dashed var(--line); }
.check-list a:last-child { border-bottom: 0; }
.check-list i { font-size: 18px; }
.check-list .done { color: var(--muted); text-decoration: line-through; }
.feed-item { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.feed-item:last-child { border-bottom: 0; }
.feed-item .ic { width: 30px; height: 30px; border-radius: 8px; background: var(--blue-50); color: var(--blue); display: flex; align-items: center; justify-content: center; flex: none; }
.feed-item .ic.warning { background: #fff5e0; color: var(--amber); }
.feed-item .ic.danger { background: var(--red-50); color: var(--red); }
.feed-item .meta { font-size: 12px; color: var(--muted); }
.alert { border-radius: 10px; font-size: 14px; }
.asset-photo { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); }
.photo-ph { width: 100%; aspect-ratio: 4/3; border-radius: 10px; border: 1px dashed #cfd6df; display: flex; align-items: center; justify-content: center; flex-direction: column; color: var(--muted); background: #fafbfd; }
.photo-ph i { font-size: 40px; color: #c3cad4; }
.value-card .big { font-size: 28px; font-weight: 700; }
.bar-track { height: 8px; background: var(--line-2); border-radius: 6px; overflow: hidden; }
.bar-track > div { height: 100%; background: var(--blue); border-radius: 6px; }
.toast-oams { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(30px); background: #1d2733; color: #fff; padding: 10px 18px; border-radius: 10px; font-size: 14px; opacity: 0; transition: all .25s; z-index: 3000; pointer-events: none; }
.toast-oams.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.help-btn { border: 1px solid var(--blue-100); background: var(--blue-50); color: var(--blue); border-radius: 20px; padding: 5px 13px; font-size: 13px; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.help-btn:hover { background: var(--blue); color: #fff; }
.mono { font-family: Consolas, "Courier New", monospace; font-size: 12.5px; }
.xml-box { background: #0f1722; color: #d4e1f3; border-radius: 10px; padding: 12px; max-height: 340px; overflow: auto; font-size: 12px; white-space: pre-wrap; word-break: break-all; }
.licence-key { font-family: Consolas, monospace; font-size: 12px; word-break: break-all; }
.section-title { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 22px 0 10px; font-weight: 700; }
.report-tile { display: flex; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); height: 100%; }
.report-tile:hover { border-color: var(--blue); text-decoration: none; box-shadow: var(--shadow); }
.report-tile i { font-size: 22px; color: var(--blue); }
.report-tile b { display: block; font-size: 14px; }
.report-tile span { font-size: 12.5px; color: var(--muted); }

/* ---------- guided tour ---------- */
.tour-shade { position: fixed; inset: 0; z-index: 4000; pointer-events: none; }
.tour-spot { position: fixed; z-index: 4001; border-radius: 10px; box-shadow: 0 0 0 9999px rgba(15,23,34,.55), 0 0 0 3px #fff, 0 0 0 6px var(--red); transition: all .25s ease; pointer-events: none; }
.tour-pop { position: fixed; z-index: 4002; width: 340px; background: #fff; border-radius: 12px; box-shadow: 0 18px 50px rgba(0,0,0,.25); padding: 16px 18px 14px; font-size: 14px; }
.tour-pop .t-step { font-size: 11.5px; color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.tour-pop h4 { font-size: 16px; margin: 4px 0 6px; }
.tour-pop p { margin: 0 0 12px; color: var(--ink-2); }
.tour-pop .t-btns { display: flex; gap: 6px; align-items: center; }
.tour-pop .t-btns .skip { margin-right: auto; color: var(--muted); font-size: 13px; background: none; border: 0; }
.tour-pop .arrow { position: absolute; width: 16px; height: 16px; background: #fff; transform: rotate(45deg); }

/* ---------- labels ---------- */
.label-sheet { display: flex; flex-wrap: wrap; gap: 8px; }
.asset-label { border: 1px dashed #b8c1cc; border-radius: 8px; padding: 8px 10px; display: flex; gap: 8px; align-items: center; background: #fff; page-break-inside: avoid; }
.asset-label.medium { width: 330px; height: 140px; }
.asset-label.small { width: 250px; height: 105px; }
.asset-label.large { width: 420px; height: 180px; }
.asset-label .lb-main { flex: 1; min-width: 0; display: flex; flex-direction: column; height: 100%; }
.asset-label .lb-head { display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; }
.asset-label .lb-head img { height: 18px; }
.asset-label .lb-name { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asset-label svg.bc { width: 100%; height: auto; max-height: 62px; }
.asset-label .lb-qr { flex: none; }
.asset-label .lb-foot { font-size: 9px; color: #777; margin-top: auto; }

/* ---------- help centre ---------- */
.help-article h2 { font-size: 19px; margin-top: 28px; padding-top: 8px; border-top: 1px solid var(--line-2); }
.help-article h2:first-of-type { border-top: 0; margin-top: 8px; }
.help-article p, .help-article li { font-size: 15px; color: var(--ink-2); }
.shot { border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 20px rgba(16,24,40,.08); max-width: 100%; margin: 10px 0 6px; }
.shot-cap { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--ink-2); font-size: 14px; }
.toc a.on, .toc a:hover { background: var(--blue-50); color: var(--blue); text-decoration: none; }

/* ---------- auth pages ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth .art { background: linear-gradient(150deg, #1f5fa8 0%, #174a85 60%, #12396a 100%); color: #fff; padding: 48px; display: flex; flex-direction: column; }
.auth .art h1 { color: #fff; font-size: 32px; margin-top: auto; }
.auth .art p { color: #d6e4f5; font-size: 16px; max-width: 460px; }
.auth .art ul { color: #d6e4f5; padding-left: 18px; }
.auth .art .logo-box { background: #fff; border-radius: 12px; padding: 10px 14px; display: inline-flex; align-self: flex-start; }
.auth .art .logo-box img { height: 46px; }
.auth .panel { display: flex; align-items: center; justify-content: center; padding: 30px; }
.auth .panel .box { width: 100%; max-width: 410px; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth .art { display: none; } }

/* ---------- print ---------- */
.print-head { display: none; }
@media print {
  @page { margin: 12mm; }
  body { background: #fff; font-size: 11px; }
  .sidebar, .topbar, .footer, .no-print, .dt-bar, .dt-foot, .page-head .actions, .filters, .tabs, .btn, .alert { display: none !important; }
  .main { margin: 0 !important; }
  .content { padding: 0; }
  .card { box-shadow: none; border: 0; }
  .table-wrap { max-height: none; overflow: visible; }
  tr.dt-hidden { display: table-row !important; }
  .print-head { display: flex !important; align-items: center; gap: 12px; border-bottom: 2px solid #1f5fa8; padding-bottom: 8px; margin-bottom: 12px; }
  .print-head img { height: 40px; }
  .chart-box { height: 220px; }
  .asset-label { border: 1px solid #ccc; }
}

/* ---------- phones & small tablets ---------- */
.side-backdrop { display: none; }
@media (max-width: 760px) {
  body { font-size: 14px; }
  .sidebar { transition: transform .2s ease; box-shadow: 0 0 40px rgba(0,0,0,.25); }
  body.mobile-open .side-backdrop { display: block; position: fixed; inset: 0; background: rgba(15,23,34,.45); z-index: 1025; }
  .topbar { padding: 0 10px; gap: 6px; }
  .topbar .search-wrap input { font-size: 14px; padding-left: 34px; }
  .topbar #tour-new { padding: 6px 9px; }
  .topbar #tour-new .label-txt { display: none; }
  .help-btn { padding: 6px 9px; }
  .topbar .user span.small, .topbar .user .bi-chevron-down { display: none; }
  .content { padding: 14px 12px 24px; }
  .page-head { gap: 10px; margin-bottom: 14px; }
  .page-head > div:first-child { width: 100%; }
  .page-head h1 { font-size: 20px; }
  .page-head .actions { margin-left: 0; width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
  .page-head .actions .btn, .page-head .actions form { flex: none; }
  .grid.k4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .grid { gap: 12px; }
  .kpi { padding: 12px; }
  .kpi .value { font-size: 20px; }
  .kpi .sub { font-size: 11.5px; }
  .chart-box { height: 230px; } .chart-box.lg { height: 280px; } .chart-box.sm { height: 190px; }
  .filters { padding: 10px; gap: 8px; }
  .filters .f { min-width: calc(50% - 4px); flex: 1 1 calc(50% - 4px); }
  .dt-bar .dt-search input { width: 100%; }
  .dt-bar .dt-search { flex: 1; }
  .dt-foot .pager { margin-left: 0; }
  .table { font-size: 13px; }
  .table > :not(caption) > * > * { padding: 8px 9px; }
  .table-wrap { max-height: none; -webkit-overflow-scrolling: touch; }
  .dl { grid-template-columns: 1fr; gap: 2px; }
  .dl dt { margin-top: 8px; font-size: 12.5px; }
  .card-head { padding: 12px 14px; flex-wrap: wrap; }
  .card-body, .form-section { padding: 14px; }
  .footer { padding: 10px 12px; font-size: 11.5px; }
  .footer .sep { display: none; }
  .tour-pop { width: calc(100vw - 20px) !important; }
  .report-tile { padding: 12px; }
  .auth .panel { padding: 20px; }
  .modal-dialog { margin: 8px; }
  .help-article { padding: 16px !important; }
  .photo-ph { aspect-ratio: 16/5; }
  .asset-photo { aspect-ratio: 16/9; }
}
@media (max-width: 420px) {
  .grid.k4 { grid-template-columns: 1fr 1fr; }
  .filters .f { min-width: 100%; }
  .kpi .value { font-size: 18px; }
}
.f-toggle { display: none; }
@media (max-width: 760px) {
  .filters.collapsible:not(.open) .f:not(:first-child):not(.f-toggle) { display: none; }
  .filters.collapsible .f-toggle { display: flex; min-width: auto !important; flex: 0 0 auto !important; }
  .filters.collapsible .f:first-child { flex: 1 1 60%; }
  .filters .f { min-width: calc(50% - 4px) !important; }
}
