/* Quản lý Tài sản HGPA — hệ thống thiết kế. Mobile-first. CSS thuần, không cần build. */
:root {
  --primary-900: #0F4A1B;
  --primary-800: #135A22;
  --primary: #1A6B2A;
  --primary-500: #2E8B40;
  --primary-200: #BFE0C6;
  --primary-100: #E3F2E7;
  --primary-50: #F2F9F4;
  --accent: #FFD700;
  --accent-700: #8A6D00;

  --ink: #0F1F17;
  --ink-2: #34463C;
  --muted: #5B6B62;
  --subtle: #8A9890;

  --bg: #F4F6F5;
  --surface: #FFFFFF;
  --line: #E3E8E5;
  --line-2: #D2DAD5;

  --danger: #B42318;
  --danger-bg: #FEE9E6;
  --warn: #B54708;
  --warn-bg: #FEF0DC;
  --info: #1D4ED8;
  --info-bg: #E6EEFF;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --shadow-xs: 0 1px 2px rgba(15, 31, 23, .05);
  --shadow-sm: 0 1px 3px rgba(15, 31, 23, .06), 0 1px 2px rgba(15, 31, 23, .04);
  --shadow-md: 0 6px 18px rgba(15, 31, 23, .08), 0 2px 6px rgba(15, 31, 23, .04);
  --ring: 0 0 0 3px rgba(26, 107, 42, .22);
  --font: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.5; -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; overflow-x: hidden; font-feature-settings: 'tnum' 1; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-500); }
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
img { max-width: 100%; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-sm); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.bold { font-weight: 700; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.hide { display: none !important; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .01em; }

/* ===== Khung trang ===== */
.shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 40; top: 0; left: 0; bottom: 0; width: 268px; background: linear-gradient(180deg, var(--primary-800) 0%, var(--primary-900) 100%); color: #fff; padding: 20px 14px; display: flex; flex-direction: column; gap: 22px; overflow-y: auto; transform: translateX(-100%); transition: transform .22s ease; box-shadow: 2px 0 24px rgba(0, 0, 0, .15); }
.sidebar.open { transform: none; }
.scrim { position: fixed; inset: 0; z-index: 30; background: rgba(8, 20, 12, .5); backdrop-filter: blur(2px); display: none; }
.scrim.open { display: block; }
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 6px 16px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.brand-logo { width: 52px; height: 46px; flex: none; border-radius: 12px; background: #fff; padding: 4px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-name { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.brand-sub { font-size: 11.5px; color: #BFE0C6; }
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav-title { font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: #8FC59B; padding: 16px 14px 6px; font-weight: 600; }
.nav a { position: relative; display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 14px; border-radius: 10px; color: #E4F2E8; text-decoration: none; font-size: 14px; font-weight: 500; transition: background .15s; }
.nav a:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.nav a.active { background: rgba(255, 255, 255, .15); color: #fff; font-weight: 700; }
.nav a.active::before { content: ''; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--accent); }
.nav a.active .ico { color: var(--accent); }
.ico { width: 20px; height: 20px; flex: none; }

.content { min-height: 100vh; display: flex; flex-direction: column; padding-bottom: 84px; }
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); padding: 10px 14px; display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 42px; height: 42px; flex: none; border: 0; border-radius: 12px; background: transparent; color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s; }
.icon-btn:hover { background: var(--primary-50); color: var(--primary); }
.topbar-title { flex: 1; min-width: 0; font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.userchip { display: flex; align-items: center; gap: 10px; padding: 4px 6px; border-radius: 12px; }
.userchip:hover { background: var(--primary-50); }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #FFE45C, var(--accent)); color: var(--primary-900); font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6); }
.userchip-text { display: none; flex-direction: column; line-height: 1.25; }
.page { width: 100%; max-width: 1240px; margin: 0 auto; padding: 18px 14px 28px; display: flex; flex-direction: column; gap: 18px; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.page-head h1 { font-size: 24px; font-weight: 700; }
.page-sub { color: var(--muted); font-size: 13.5px; margin-top: 2px; }

.bottomnav { position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; height: 66px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -4px 16px rgba(15, 31, 23, .05); }
.bottomnav a, .bottomnav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; border: 0; background: transparent; font: inherit; font-size: 11px; font-weight: 500; color: var(--muted); text-decoration: none; cursor: pointer; }
.bottomnav .active { color: var(--primary); font-weight: 700; }

/* ===== Thành phần ===== */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-xs); }
.card-title { font-size: 15px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-head .card-title { margin: 0; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.divider { height: 1px; background: var(--line); margin: 4px 0; border: 0; }

.hero { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 22px 20px; color: #fff; background: radial-gradient(900px 260px at 90% -20%, rgba(255, 215, 0, .28), transparent 60%), linear-gradient(135deg, var(--primary-800), var(--primary) 70%); box-shadow: var(--shadow-md); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.hero h1 { font-size: 22px; color: #fff; }
.hero p { margin: 4px 0 0; color: #D6EBDB; font-size: 14px; }
.hero .btn { border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .12); color: #fff; box-shadow: none; }
.hero .btn:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.hero .btn-primary { background: var(--accent); border-color: var(--accent); color: var(--primary-900); }
.hero .btn-primary:hover { background: #FFE24D; color: var(--primary-900); }

.grid-kpi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kpi { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-xs); transition: transform .15s, box-shadow .15s, border-color .15s; }
.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--primary-200); color: var(--ink); }
.kpi-icon { width: 42px; height: 42px; flex: none; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: var(--c, var(--primary)); background: color-mix(in srgb, var(--c, var(--primary)) 13%, white); }
.kpi-icon .ico { width: 22px; height: 22px; }
.kpi-body { display: flex; flex-direction: column; min-width: 0; }
.kpi-label { font-size: 12.5px; color: var(--muted); }
.kpi-value { font-size: 26px; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }

.donut-wrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: center; }
.donut { width: 150px; height: 150px; border-radius: 50%; position: relative; flex: none; }
.donut::after { content: ''; position: absolute; inset: 22px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.donut-center { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.donut-center b { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.donut-center span { font-size: 11.5px; color: var(--muted); }
.legend { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; min-width: 150px; }
.legend div { display: flex; align-items: center; gap: 10px; }
.legend .dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.legend b { margin-left: auto; padding-left: 14px; font-variant-numeric: tabular-nums; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; box-shadow: var(--shadow-xs); transition: background .15s, border-color .15s, transform .05s, box-shadow .15s; }
.btn:hover { background: var(--primary-50); border-color: var(--primary-200); color: var(--primary); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 1px 2px rgba(15, 74, 27, .3), inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn-primary:hover { background: var(--primary-500); border-color: var(--primary-500); color: #fff; }
.btn-danger { border-color: #F2B8B0; color: var(--danger); background: #fff; }
.btn-danger:hover { background: var(--danger-bg); border-color: #E89A8F; color: var(--danger); }
.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn .ico { width: 18px; height: 18px; }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px 3px 8px; border-radius: 999px; white-space: nowrap; line-height: 1.5; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.badge-green { background: #E3F4E8; color: #166A2B; }
.badge-blue { background: var(--info-bg); color: var(--info); }
.badge-orange { background: var(--warn-bg); color: var(--warn); }
.badge-red { background: var(--danger-bg); color: var(--danger); }
.badge-gray { background: #EDF0EE; color: #4A5A51; }
.badge-yellow { background: #FFF6CC; color: #7A5F00; }
.badge-plain::before { display: none; }

.alert { border-radius: var(--r-md); padding: 12px 14px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.alert-ok { background: #E9F6EC; color: #14501F; border: 1px solid var(--primary-200); }
.alert-err { background: var(--danger-bg); color: var(--danger); border: 1px solid #F5C2BA; }

/* ===== Form ===== */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field-label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input, select.input, textarea.input { width: 100%; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); font: inherit; font-size: 15px; color: var(--ink); transition: border-color .15s, box-shadow .15s; box-shadow: var(--shadow-xs); }
select.input { appearance: none; -webkit-appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235B6B62' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
textarea.input { padding: 10px 14px; min-height: 92px; resize: vertical; line-height: 1.5; }

/* Danh sách chọn tùy biến (Chrome/Edge mới): bo góc, đổ bóng, màu xanh HGPA. Trình duyệt cũ vẫn dùng danh sách mặc định. */
@supports (appearance: base-select) {
  select.input, select.input::picker(select) { appearance: base-select; }
  select.input { background-image: none; padding: 0 12px 0 14px; align-items: center; }
  select.input::picker-icon { content: ''; width: 16px; height: 16px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235B6B62' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; transition: rotate .18s; }
  select.input:open::picker-icon { rotate: 180deg; }
  select.input::picker(select) { padding: 6px; margin-top: 6px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-md); min-inline-size: anchor-size(width); max-block-size: 320px; }
  select.input option { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; font-size: 14.5px; color: var(--ink); cursor: pointer; white-space: nowrap; }
  select.input option:hover, select.input option:focus-visible { background: var(--primary-50); outline: none; box-shadow: none; }
  select.input option:checked { background: var(--primary-100); color: var(--primary-800); font-weight: 600; }
  select.input option::checkmark { color: var(--primary); order: 2; margin-left: auto; }
}
.input::placeholder { color: var(--subtle); }
.input:hover { border-color: #B9C5BE; }
.input:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.field-error { color: var(--danger); font-size: 13px; }
.hint { color: var(--muted); font-size: 12.5px; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--primary); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 600; cursor: pointer; transition: all .15s; }
.seg label:hover { border-color: var(--primary-200); background: var(--primary-50); }
.seg input { accent-color: var(--primary); }
.seg label:has(input:checked) { border-color: var(--primary); background: var(--primary-100); color: var(--primary-800); box-shadow: 0 0 0 1px var(--primary) inset; }
.filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-xs); }
.filters .field:first-child, .filters .field:nth-last-child(2), .filters .row { grid-column: 1 / -1; }
.filters .input { min-height: 42px; font-size: 14px; }

/* ===== Danh sách ===== */
.list { display: flex; flex-direction: column; gap: 10px; }
.item { display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; color: var(--ink); box-shadow: var(--shadow-xs); transition: border-color .15s, box-shadow .15s, transform .15s; }
.item:hover { border-color: var(--primary-200); box-shadow: var(--shadow-sm); color: var(--ink); }
.tile { width: 56px; height: 44px; flex: none; border-radius: 12px; background: var(--primary-100); color: var(--primary-800); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; letter-spacing: .02em; padding: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile.fixed { background: #FFF1B8; color: #6B5300; }
/* Ô mã cho phòng ban / loại tài sản: rộng hơn để chứa chữ viết tắt như P.HCNS, các dòng thẳng hàng. */
.tile.tile-code { width: 92px; height: 40px; border-radius: 10px; font-size: 13px; letter-spacing: .03em; }
.item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.item-name { font-size: 14.5px; font-weight: 600; overflow-wrap: anywhere; }
.item-sub { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.table-wrap { display: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow-x: auto; box-shadow: var(--shadow-xs); }
table.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.table th { text-align: left; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #F8FAF9; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; }
.table td { padding: 12px 14px; border-bottom: 1px solid #EEF2EF; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover td { background: var(--primary-50); }
.table a { font-weight: 600; text-decoration: none; }
.only-mobile { display: flex; }

.dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; margin: 0; }
.dl > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dl dt { font-size: 12px; color: var(--muted); font-weight: 500; }
.dl dd { margin: 0; font-size: 14.5px; font-weight: 600; overflow-wrap: anywhere; }
.dl .span2 { grid-column: span 2; }
.bar-row { display: grid; grid-template-columns: minmax(90px, 150px) minmax(0, 1fr) 34px; align-items: center; gap: 12px; font-size: 13.5px; }
.bar { height: 10px; border-radius: 6px; background: #EDF1EE; overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--primary), var(--primary-500)); }
.bar.fixed > span { background: linear-gradient(90deg, #B8860B, #D9A520); }

.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 36px 20px; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r-lg); color: var(--muted); }
.empty .empty-ico { width: 56px; height: 56px; border-radius: 16px; background: var(--primary-50); color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.empty .empty-ico .ico { width: 28px; height: 28px; }
.empty h3 { font-size: 16px; color: var(--ink); }

.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
.pager .btns { display: flex; gap: 8px; }
.pager a, .pager span.dis { display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); text-decoration: none; font-weight: 600; font-size: 13px; box-shadow: var(--shadow-xs); }
.pager a:hover { background: var(--primary-50); border-color: var(--primary-200); }
.pager span.dis { color: var(--subtle); background: #F6F8F7; box-shadow: none; }

/* ===== Đăng nhập ===== */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr); }
.auth-brand { display: none; position: relative; overflow: hidden; color: #fff; padding: 56px 56px; flex-direction: column; justify-content: space-between; background: radial-gradient(700px 400px at 100% 0%, rgba(255, 215, 0, .25), transparent 60%), radial-gradient(500px 400px at 0% 100%, rgba(46, 139, 64, .55), transparent 60%), linear-gradient(160deg, var(--primary-800), var(--primary-900)); }
.auth-brand h2 { font-size: 34px; line-height: 1.15; max-width: 440px; letter-spacing: -.02em; }
.auth-brand p { color: #CFE8D5; max-width: 420px; margin: 14px 0 0; font-size: 15.5px; }
.auth-points { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.auth-points li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: #E4F2E8; }
.auth-points .pt { width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .13); display: flex; align-items: center; justify-content: center; color: var(--accent); }
.auth-form-side { display: flex; align-items: center; justify-content: center; padding: 28px 18px; background: var(--primary-900); }
.login-card { width: 100%; max-width: 410px; background: #fff; border-radius: 22px; padding: 30px 26px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .28); }
.login-logo { align-self: center; width: 104px; }
.login-title { text-align: center; font-size: 22px; font-weight: 700; }
.login-sub { text-align: center; font-size: 13.5px; color: var(--muted); margin: -10px 0 0; }

/* ===== Màn hình lớn (máy tính) ===== */
@media (min-width: 900px) {
  .sidebar { transform: none; }
  .scrim { display: none !important; }
  .content { margin-left: 268px; padding-bottom: 0; }
  .topbar { padding: 12px 32px; }
  .topbar .menu-btn { display: none; }
  .bottomnav { display: none; }
  .userchip-text { display: flex; }
  .page { padding: 28px 32px 40px; gap: 22px; }
  .page-head h1 { font-size: 26px; }
  .grid-kpi { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
  .two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .two-col.wide-left { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
  .form-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid .span2 { grid-column: span 2; }
  .filters { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)) auto; align-items: end; }
  .filters .field:first-child, .filters .field:nth-last-child(2), .filters .row { grid-column: auto; }
  .filters .input { min-height: 44px; font-size: 15px; }
  .table-wrap { display: block; }
  .only-mobile { display: none; }
  .narrow { max-width: 780px; }
  .hero { padding: 28px 32px; }
  .hero h1 { font-size: 26px; }
  .auth { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .auth-brand { display: flex; }
  .auth-form-side { background: var(--bg); }
  .login-card { box-shadow: var(--shadow-md); border: 1px solid var(--line); }
}
