/* ==========================================================================
   ADHIKARA — Law Firm Suite
   Tema "Chambers": oxblood, tinta navy, kuningan, kertas perkamen.
   ========================================================================== */
:root {
  --primary: #6B1E2A; --accent: #B08D57; --ink: #1B2233;
  --bg: #F6F2E9; --bg-2: #EFE9DC; --surface: #FFFFFF; --surface-2: #FBF9F4;
  --line: #E3DCCB; --line-2: #D4CAB3;
  --text: #1F2430; --text-2: #5B6170; --text-3: #8C8F98;
  --ok: #2E7D4F; --ok-bg: #E6F2EA; --warn: #A86A12; --warn-bg: #FBF0DC; --bad: #B3261E; --bad-bg: #FBE7E5; --info: #2F6DB5; --info-bg: #E6EEF8;
  --s1: #8E2A3A; --s2: #2F6DB5; --s3: #C8892B; --s4: #1E9C86; --s5: #7A5BD0; --s6: #D2557A;
  --radius: 12px; --radius-sm: 8px; --shadow: 0 1px 2px rgba(27,34,51,.06), 0 4px 14px rgba(27,34,51,.05);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --pad: 22px; --gap: 18px; --row: 11px;
  color-scheme: light;
}
[data-density="compact"] { --pad: 16px; --gap: 12px; --row: 7px; }
[data-mode="dark"] {
  --bg: #12161F; --bg-2: #181D28; --surface: #1C2230; --surface-2: #212838; --line: #2C3445; --line-2: #3A4357;
  --text: #E9E6DF; --text-2: #A9ADB8; --text-3: #7D8291;
  --ok-bg: #173327; --warn-bg: #3A2C12; --bad-bg: #3B1C1C; --info-bg: #182A42; --ok: #5CC28A; --warn: #E0A548; --bad: #F07A72; --info: #6FA6E8;
  --s1: #C8566A; --s2: #5B95DA; --s3: #C98F33; --s4: #2DB59C; --s5: #9A85E6; --s6: #E07595;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25); color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14px/1.5 var(--sans); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
[data-mode="dark"] a { color: #E08B98; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: .2px; margin: 0; color: var(--text); }
h1 { font-size: 32px; line-height: 1.1; }
h2 { font-size: 24px; } h3 { font-size: 19px; } h4 { font-size: 16px; }
.mono { font-family: var(--mono); font-size: .92em; }
.num { font-variant-numeric: tabular-nums; font-family: var(--mono); font-size: 12.5px; white-space: nowrap; }
.muted { color: var(--text-2); } .small { font-size: 12px; } .center { text-align: center; } .strong { font-weight: 600; }
.r { text-align: right; } .c { text-align: center; } .pad { padding: 16px; } .w1 { width: 1%; white-space: nowrap; }
.hide-sm {} .only-mobile { display: none !important; }
.ico { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -4px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }

/* ------------------------------------------------------------- shell */
.shell { display: flex; min-height: 100vh; }
.nav { width: 262px; flex: none; background: var(--ink); color: #D9D4C7; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; z-index: 40;
  background-image: linear-gradient(180deg, rgba(255,255,255,.03), transparent 220px); }
.nav::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 1px; background: linear-gradient(var(--accent), transparent 70%); opacity: .5; }
.brand { display: flex; align-items: center; gap: 12px; padding: 20px 18px 18px; color: #fff; border-bottom: 1px solid rgba(255,255,255,.07); }
.brand:hover { text-decoration: none; }
.brand-mark, .brand-logo { width: 40px; height: 40px; object-fit: contain; flex: none; }
.brand-logo { background: #fff; border-radius: 8px; padding: 3px; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text b { font-family: var(--serif); font-size: 19px; line-height: 1.1; letter-spacing: .3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { color: var(--accent); font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-scroll { overflow-y: auto; flex: 1; padding: 10px 10px 20px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.nav-group { margin-top: 10px; }
.nav-title { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.6px; color: rgba(217,212,199,.45); padding: 8px 12px 4px; }
.nav-link { display: flex; align-items: center; gap: 11px; padding: 8px 12px; border-radius: 9px; color: #CFC9BA; font-size: 13.5px; position: relative; }
.nav-link:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.nav-link.active { background: linear-gradient(90deg, rgba(176,141,87,.22), rgba(176,141,87,.04)); color: #fff; }
.nav-link.active::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--accent); }
.nav-link .ico { opacity: .85; }
.nav-link span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-link .pill { margin-left: auto; background: var(--primary); color: #fff; }
.nav-foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font-size: 11px; color: rgba(217,212,199,.4); border-top: 1px solid rgba(255,255,255,.07); }
.nav-foot .icon-btn { color: #CFC9BA; }
body.nav-collapsed .nav { width: 72px; }
body.nav-collapsed .brand-text, body.nav-collapsed .nav-title, body.nav-collapsed .nav-link span, body.nav-collapsed .nav-foot span, body.nav-collapsed .nav-link .pill { display: none; }
body.nav-collapsed .nav-link { justify-content: center; }
body.nav-collapsed [data-collapse] .ico { transform: rotate(180deg); }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 12px var(--pad); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.search-trigger { flex: 1; max-width: 520px; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; color: var(--text-3); font: inherit; cursor: pointer; text-align: left; }
.search-trigger span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.search-trigger kbd { font: 11px var(--mono); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; color: var(--text-3); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.content { padding: var(--pad); padding-bottom: 60px; max-width: 1600px; width: 100%; }

/* ------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: 500 13.5px var(--sans); cursor: pointer; white-space: nowrap; transition: .15s; }
.btn:hover { border-color: var(--accent); text-decoration: none; background: var(--surface-2); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 2px 6px color-mix(in srgb, var(--primary) 30%, transparent); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--bg-2); }
.btn.sm { height: 31px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn.block { width: 100%; justify-content: center; height: 44px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.icon-btn { display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 6px; border-radius: 9px; border: 0; background: transparent; color: var(--text-2); cursor: pointer; position: relative; gap: 4px; grid-auto-flow: column; }
.icon-btn:hover { background: var(--bg-2); color: var(--text); text-decoration: none; }
.icon-btn.sm { min-width: 28px; height: 28px; }
.icon-btn.danger { color: var(--bad); }
.icon-btn.bell em { position: absolute; top: 3px; right: 2px; background: var(--primary); color: #fff; font: 600 10px/16px var(--sans); min-width: 16px; padding: 0 4px; border-radius: 8px; font-style: normal; }
.lang-code { font: 600 11px var(--mono); }
.avatar-btn { display: flex; align-items: center; gap: 9px; border: 0; background: none; cursor: pointer; padding: 3px 6px 3px 3px; border-radius: 30px; color: var(--text); font: inherit; text-align: left; }
.avatar-btn:hover { background: var(--bg-2); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--c, var(--primary)); color: #fff; font: 600 14px var(--serif); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px color-mix(in srgb, var(--c, var(--primary)) 40%, transparent); }
.avatar.sm { width: 26px; height: 26px; font-size: 12px; }
.who { display: flex; flex-direction: column; line-height: 1.15; } .who b { font-size: 13px; } .who small { color: var(--text-3); font-size: 11.5px; }
.inline { display: inline; }
.x { border: 0; background: none; color: inherit; opacity: .6; cursor: pointer; font-size: 18px; line-height: 1; padding: 0 4px; }

/* dropdown */
.dropdown { position: relative; }
.dd-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 40px rgba(27,34,51,.16); padding: 6px; display: none; z-index: 60; }
.dd-menu.right { left: auto; right: 0; }
.dropdown.open .dd-menu { display: block; animation: pop .12s ease-out; }
.dd-menu a { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px; color: var(--text); font-size: 13.5px; }
.dd-menu a:hover, .dd-menu a.on { background: var(--bg-2); text-decoration: none; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } }

/* timer */
.timer-btn { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 9px; color: var(--text-2); font: 500 12.5px var(--mono); border: 1px dashed var(--line-2); }
.timer.running .timer-btn { color: #fff; background: var(--ok); border: 0; animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 25%, transparent); } }
.timer-card { max-width: 720px; }
.timer-face { font: 500 56px var(--mono); text-align: center; padding: 20px 0 26px; color: var(--primary); letter-spacing: 2px; }

/* ------------------------------------------------------------- page */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 4px 0 20px; flex-wrap: wrap; }
.page-head h1 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-head h1 .badge { font-family: var(--sans); }
.eyebrow { margin: 0 0 6px; font-size: 11.5px; text-transform: uppercase; letter-spacing: 1.6px; color: var(--accent); font-weight: 600; }
.eyebrow a { color: var(--accent); }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.section-title { margin: 26px 0 12px; font-size: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--pad); box-shadow: var(--shadow); margin-bottom: var(--gap); }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-head h3, .card-title { font-size: 17px; display: flex; align-items: center; gap: 8px; }
.card-title { margin-bottom: 12px; }
.card-head .ico, .card-title .ico { color: var(--accent); }
.link { font-size: 12.5px; font-weight: 500; }
.sub { margin: 18px 0 8px; font-size: 16px; color: var(--text-2); }

/* alerts & badges */
.alert { padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; border: 1px solid; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.alert .x { margin-left: auto; }
.alert.ok { background: var(--ok-bg); border-color: color-mix(in srgb, var(--ok) 30%, transparent); color: var(--ok); }
.alert.bad { background: var(--bad-bg); border-color: color-mix(in srgb, var(--bad) 30%, transparent); color: var(--bad); }
.alert.warn { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 30%, transparent); color: var(--warn); }
.alert.info { background: var(--info-bg); border-color: color-mix(in srgb, var(--info) 30%, transparent); color: var(--info); }
.alert.big { font-size: 16px; padding: 18px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 20px; font: 600 11.5px/18px var(--sans); background: var(--bg-2); color: var(--text-2); white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); } .badge.bad { background: var(--bad-bg); color: var(--bad); } .badge.warn { background: var(--warn-bg); color: var(--warn); } .badge.info { background: var(--info-bg); color: var(--info); } .badge.muted { background: var(--bg-2); color: var(--text-3); }
.pill { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; font: 600 11px/18px var(--sans); background: var(--bg-2); color: var(--text-2); text-align: center; font-style: normal; }
.tag { display: inline-block; margin-top: 3px; font-size: 10.5px; color: var(--info); background: var(--info-bg); padding: 0 6px; border-radius: 4px; }
.yes { color: var(--ok); font-weight: 700; }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; border: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12.5px; color: var(--text-2); }
.chip b { color: var(--text); font-family: var(--mono); font-size: 12px; }
a.chip:hover { border-color: var(--accent); text-decoration: none; }
.ok-text { color: var(--ok); }
.wa { color: #1FA855; margin-left: 4px; } .wa .ico { width: 15px; height: 15px; }

/* ------------------------------------------------------------- forms */
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fld > span:first-child { font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.fld.full { grid-column: 1 / -1; }
.req { color: var(--bad); font-style: normal; }
input, select, textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line-2); border-radius: 9px; padding: 8px 11px; min-height: 38px; width: 100%; transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; min-height: 70px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
input[type=checkbox], input[type=radio] { width: auto; min-height: 0; accent-color: var(--primary); }
input[type=color] { padding: 3px; height: 38px; }
input[disabled], select[disabled], textarea[disabled] { background: var(--bg-2); color: var(--text-2); }
select.sm, input.sm { min-height: 31px; padding: 4px 8px; font-size: 12.5px; width: auto; }
.has-err input, .has-err select, .has-err textarea { border-color: var(--bad); }
.err { color: var(--bad); font-size: 12px; } .hint { color: var(--text-3); font-size: 11.5px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px 18px; }
.form-card { max-width: 1100px; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.form-actions.sticky { position: sticky; bottom: 0; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(6px); padding: 12px 0; margin-top: 0; border: 0; }
.affix { display: flex; align-items: stretch; }
.affix em { display: grid; place-items: center; padding: 0 10px; border: 1px solid var(--line-2); border-right: 0; border-radius: 9px 0 0 9px; background: var(--bg-2); color: var(--text-2); font: 500 12px var(--mono); font-style: normal; }
.affix input { border-radius: 0 9px 9px 0; }
.affix.sm input { min-height: 31px; }
.chk { display: flex; align-items: center; gap: 8px; margin: 6px 0; cursor: pointer; }
.chk.big { padding: 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; margin-top: 16px; }
.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex: none; }
.switch input[type=checkbox] { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 2; width: 100%; height: 100%; }
.switch i { position: absolute; inset: 0; background: var(--line-2); border-radius: 20px; transition: .2s; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch input:checked + i { background: var(--primary); }
.switch input:checked + i::after { transform: translateX(18px); }
.seg { display: inline-flex; background: var(--bg-2); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg a, .seg label { padding: 6px 12px; border-radius: 8px; color: var(--text-2); font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.seg a:hover { text-decoration: none; color: var(--text); }
.seg a.on, .seg label:has(input:checked) { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.seg.sm a { padding: 4px 10px; font-size: 12.5px; }
.inline-lbl { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); }
.inline-lbl input { width: auto; }
/* searchable select */
.ss { position: relative; }
.ss-box { position: absolute; z-index: 70; top: calc(100% + 4px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.15); max-height: 300px; display: flex; flex-direction: column; }
.ss-box input { border: 0; border-bottom: 1px solid var(--line); border-radius: 10px 10px 0 0; }
.ss-list { overflow-y: auto; padding: 4px; }
.ss-list div { padding: 7px 10px; border-radius: 7px; cursor: pointer; font-size: 13px; }
.ss-list div:hover, .ss-list div.hl { background: var(--bg-2); }
/* rich text */
.rte { border: 1px solid var(--line-2); border-radius: 9px; overflow: hidden; background: var(--surface); }
.rte-bar { display: flex; gap: 2px; padding: 4px; border-bottom: 1px solid var(--line); background: var(--surface-2); flex-wrap: wrap; }
.rte-bar button { border: 0; background: none; min-width: 30px; height: 28px; border-radius: 6px; cursor: pointer; color: var(--text-2); font: 13px var(--sans); }
.rte-bar button:hover { background: var(--bg-2); color: var(--text); }
.rte-area { min-height: 160px; padding: 12px 14px; outline: none; line-height: 1.65; }
.rte-area:focus { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent); }

/* filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 12px; }
.filters select, .filters input[type=date], .filters input[type=month] { width: auto; min-height: 36px; padding: 6px 10px; font-size: 13px; max-width: 240px; }
.filters .search { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 200px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 9px; padding: 0 10px; color: var(--text-3); }
.filters .search input { border: 0; background: transparent; box-shadow: none; padding: 7px 0; min-height: 34px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; padding: 0 10px; background: var(--surface-2); }
.tabs a, .tabs button { padding: 12px 14px; border: 0; background: none; color: var(--text-2); font: 500 13.5px var(--sans); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.tabs .on { color: var(--primary); border-bottom-color: var(--primary); }
.tabs a:hover { text-decoration: none; color: var(--text); }
.tabs.line { background: none; padding: 0; margin: -6px 0 16px; }
.pane-head { display: flex; gap: 8px; padding: 12px 14px; justify-content: space-between; }

/* ------------------------------------------------------------- tables */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font: 600 11.5px var(--sans); text-transform: uppercase; letter-spacing: .6px; color: var(--text-3); padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.tbl th a { color: inherit; }
.tbl td { padding: var(--row) 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl.hover tbody tr { cursor: pointer; } .tbl.hover tbody tr:hover td { background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.tbl.compact td { padding: 7px 12px; } .tbl.compact th { padding: 8px 12px; }
.tbl tfoot td, .tbl tfoot th { background: var(--surface-2); border-top: 2px solid var(--line-2); font-weight: 600; padding: 10px 14px; }
.tbl tr.dim td { opacity: .55; }
.tbl tr.grp td { background: var(--bg-2); font: 600 12px var(--sans); text-transform: uppercase; letter-spacing: .5px; color: var(--text-2); }
.tbl.report tr.total td { font-weight: 600; border-top: 1px solid var(--line-2); background: var(--surface-2); }
.tbl.report tr.grand td { font-weight: 700; background: color-mix(in srgb, var(--primary) 8%, var(--surface)); border-top: 2px solid var(--primary); color: var(--text); }
.tbl .neg { color: var(--bad); }
.tbl-foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); background: var(--surface-2); gap: 10px; flex-wrap: wrap; }
.pager { display: flex; align-items: center; gap: 6px; }
.row-actions { white-space: nowrap; text-align: right; }
.tbl.lines td { padding: 6px 8px; vertical-align: top; }
.tbl.lines textarea { min-height: 38px; }
.tbl.lines input.r { text-align: right; }
.perm-matrix td.c, .perm-matrix th.c { text-align: center; }
.perm-matrix label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.modules-tbl input { min-height: 32px; padding: 5px 8px; }
.modules-tbl small { display: block; }
.drag { cursor: grab; color: var(--text-3); user-select: none; }

/* empty */
.empty { padding: 48px 20px; text-align: center; color: var(--text-2); }
.empty.big { padding: 90px 20px; }
.empty-seal { width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; font: 600 26px var(--serif); color: var(--accent); border: 2px solid color-mix(in srgb, var(--accent) 50%, transparent); box-shadow: inset 0 0 0 5px var(--surface), inset 0 0 0 6px color-mix(in srgb, var(--accent) 35%, transparent); }

/* ------------------------------------------------------------- KPIs & dashboard */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-bottom: var(--gap); }
.kpis.compact { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; position: relative; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 3px; }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent), transparent); opacity: .7; }
.kpi small { color: var(--text-2); font-size: 12px; display: flex; align-items: center; gap: 6px; }
.kpi small .ico { width: 15px; height: 15px; color: var(--accent); }
.kpi b { font: 600 clamp(15px, 1.25vw, 21px) var(--mono); letter-spacing: -.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi b.sm { font-size: 15px; }
.kpi.mini b { font-size: 24px; font-family: var(--serif); }
.kpi .unit { font-size: 14px; color: var(--text-3); }
.kpi em { font-style: normal; font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi.accent::before { background: var(--primary); opacity: 1; }
.kpi.warn::before { background: var(--warn); opacity: 1; }
.delta { font-weight: 600; } .delta.up { color: var(--ok); } .delta.down { color: var(--bad); }
.bar { height: 6px; background: var(--bg-2); border-radius: 6px; overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; background: var(--primary); border-radius: 6px; }
.bar i.good { background: var(--ok); } .bar i.low { background: var(--warn); }
.bar.lg { height: 10px; flex: 1; margin: 0; }
.dash-head .period { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dash-head .period input[type=date] { width: auto; min-height: 31px; padding: 4px 8px; font-size: 12.5px; }
.dash-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.dash-grid > .card { margin: 0; }
.dash-grid .span2 { grid-column: span 2; }
.dash-grid.two { grid-template-columns: 1fr 1fr; margin-top: var(--gap); }
.approvals { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: var(--gap); }
.appr { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--warn-bg); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); border-radius: 10px; color: var(--warn); }
.appr b { font: 600 18px var(--mono); } .appr:hover { text-decoration: none; filter: brightness(.97); }
.list { list-style: none; margin: 0; padding: 0; }
.list li > a, .list li > span { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 4px; border-bottom: 1px dashed var(--line); color: var(--text); }
.list li:last-child > a, .list li:last-child > span { border-bottom: 0; }
.list li > a:hover { text-decoration: none; background: var(--surface-2); }
.list span > b, .list a > span > b { display: block; font-weight: 500; font-size: 13.5px; }
.list small { color: var(--text-3); font-size: 12px; display: block; }
.list .r { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.list.notif li.unread > a { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.list.notif li > a { padding: 12px 16px; }
.agenda { list-style: none; margin: 0; padding: 0; }
.agenda a { display: flex; gap: 12px; padding: 9px 2px; border-bottom: 1px dashed var(--line); color: var(--text); }
.agenda a:hover { text-decoration: none; background: var(--surface-2); }
.agenda time { width: 46px; flex: none; text-align: center; border-radius: 8px; background: color-mix(in srgb, var(--primary) 10%, var(--surface)); color: var(--primary); padding: 4px 0; line-height: 1.1; }
.agenda time b { display: block; font: 600 20px var(--serif); } .agenda time small { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; }
.agenda div { display: flex; flex-direction: column; min-width: 0; } .agenda div span { font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .agenda div small { color: var(--text-3); font-size: 11.5px; }
.util { display: flex; flex-direction: column; gap: 9px; margin-bottom: 10px; }
.util-row { display: flex; align-items: center; gap: 12px; } .util-row .nm { width: 160px; flex: none; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .util-row .num { width: 110px; text-align: right; }
/* charts */
.chart { position: relative; width: 100%; }
.chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chart .axis text { font: 10.5px var(--sans); fill: var(--text-3); }
.chart .grid line { stroke: var(--line); stroke-dasharray: 2 3; }
.chart .legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--text-2); margin-top: 6px; }
.chart .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.chart .tip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; padding: 7px 10px; border-radius: 8px; font-size: 12px; white-space: nowrap; transform: translate(-50%, -110%); box-shadow: 0 6px 20px rgba(0,0,0,.2); z-index: 5; }
.chart .tip b { font-family: var(--mono); font-weight: 500; }
.chart .hit { fill: transparent; cursor: pointer; }
.chart .mark { transition: opacity .15s; }
.chart:hover .mark.dim { opacity: .35; }

/* detail */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--gap); align-items: start; }
.detail-main > .card:last-child, .detail-side > .card:last-child { margin-bottom: 0; }
.dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0; margin: 0; }
.dl.one { grid-template-columns: 1fr; }
.dl > div { padding: 10px 4px; border-bottom: 1px dashed var(--line); }
.dl dt { font-size: 11.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 2px; }
.dl dd { margin: 0; font-size: 14px; word-break: break-word; }
.prose, .rich { line-height: 1.7; } .prose p, .rich p { margin: .4em 0; }
.att { display: flex; align-items: center; gap: 6px; padding: 7px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.att a { display: flex; gap: 6px; align-items: center; flex: 1; min-width: 0; } .att a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att small { width: 100%; padding-left: 24px; }
.drop { position: relative; margin-top: 10px; border: 1.5px dashed var(--line-2); border-radius: 10px; padding: 16px; text-align: center; color: var(--text-3); font-size: 12.5px; transition: .15s; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop span { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.drop.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.note-form { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; margin-bottom: 10px; }
.feed { list-style: none; margin: 0; padding: 0; } .feed li { padding: 9px 0; border-top: 1px dashed var(--line); } .feed p { margin: 3px 0 0; } .feed.small li { padding: 6px 0; font-size: 12.5px; }
.stage-track { display: flex; gap: 4px; overflow-x: auto; margin-bottom: 14px; padding-bottom: 4px; }
.stage-track span { flex: none; padding: 6px 12px 6px 16px; font-size: 12px; background: var(--bg-2); color: var(--text-3); clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%, 8px 50%); }
.stage-track span:first-child { clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%); padding-left: 12px; }
.stage-track span.done { background: color-mix(in srgb, var(--primary) 18%, var(--surface)); color: var(--primary); }
.stage-track span.now { background: var(--primary); color: #fff; font-weight: 600; }

/* kanban */
.kanban { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 14px; align-items: flex-start; }
.kcol { flex: 0 0 290px; background: var(--bg-2); border-radius: var(--radius); display: flex; flex-direction: column; max-height: calc(100vh - 210px); }
.kcol header { display: flex; align-items: center; gap: 8px; padding: 12px 14px; flex-wrap: wrap; } .kcol header b { font-family: var(--serif); font-size: 16px; } .kcol header small { width: 100%; color: var(--text-3); }
.kdrop { padding: 0 10px 12px; overflow-y: auto; min-height: 80px; display: flex; flex-direction: column; gap: 8px; }
.kdrop.over { background: color-mix(in srgb, var(--accent) 12%, transparent); border-radius: 10px; }
.kcard { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; box-shadow: var(--shadow); cursor: grab; }
.kcard.dragging { opacity: .5; }
.kcard > a { display: block; margin-bottom: 6px; color: var(--text); line-height: 1.35; }
.kmeta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; padding: 2px 0; } .kmeta span { color: var(--text-3); }

/* calendar */
.legend { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.legend .ev { padding: 3px 10px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--line); gap: 1px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cal-h { background: var(--surface-2); padding: 9px; font: 600 11.5px var(--sans); text-transform: uppercase; letter-spacing: 1px; color: var(--text-3); text-align: center; }
.cal-d { background: var(--surface); min-height: 118px; padding: 6px; display: flex; flex-direction: column; gap: 3px; }
.cal-d.out { background: var(--surface-2); } .cal-d.out .dn { opacity: .4; }
.cal-d.off .dn { color: var(--bad); }
.cal-d.today { box-shadow: inset 0 0 0 2px var(--accent); }
.cal-d .dn { font: 600 14px var(--serif); margin-bottom: 2px; }
.ev { display: block; font-size: 11.5px; padding: 2px 6px; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); border-left: 3px solid; }
.ev:hover { text-decoration: none; filter: brightness(.96); }
.ev.hearing { background: color-mix(in srgb, var(--s1) 14%, var(--surface)); border-color: var(--s1); }
.ev.deadline { background: color-mix(in srgb, var(--s3) 16%, var(--surface)); border-color: var(--s3); }
.ev.task { background: color-mix(in srgb, var(--s2) 13%, var(--surface)); border-color: var(--s2); }
.ev.appt { background: color-mix(in srgb, var(--s4) 14%, var(--surface)); border-color: var(--s4); }
.ev.leave { background: color-mix(in srgb, var(--s5) 13%, var(--surface)); border-color: var(--s5); }
.more { color: var(--text-3); font-size: 11px; padding-left: 4px; }

/* invoice */
.inv-bottom { display: grid; grid-template-columns: 1fr 380px; gap: var(--gap); }
.totals > div { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px dashed var(--line); gap: 10px; }
.totals b { font: 500 14px var(--mono); }
.totals .grand { border-bottom: 0; border-top: 2px solid var(--primary); margin-top: 4px; padding-top: 12px; } .totals .grand b { font-size: 19px; color: var(--primary); } .totals .grand span { font-family: var(--serif); font-size: 18px; font-weight: 600; }
.totals .affix { width: 180px; }
.card.paper { background: #fff; color: #1F2430; }
[data-mode="dark"] .card.paper { background: #F7F4EC; }
.slip-edit { display: flex; gap: 4px; align-items: center; justify-content: flex-end; } .slip-edit input { width: 110px; min-height: 30px; padding: 4px 6px; font-size: 12px; }

/* reports */
.report-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.report-tile { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px 40px 16px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); box-shadow: var(--shadow); transition: .15s; }
.report-tile:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-1px); }
.report-tile b { font-family: var(--serif); font-size: 17px; } .report-tile span { font-size: 12.5px; color: var(--text-2); }
.report-tile .ico { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--accent); }
.print-preview { overflow-x: auto; }
.print-preview .ptable { width: 100%; border-collapse: collapse; } .print-preview .ptable td, .print-preview .ptable th { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: left; } .print-preview .r { text-align: right; }

/* settings */
.settings { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--gap); align-items: start; }
.settings-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 80px; }
.settings-nav a { padding: 9px 12px; border-radius: 9px; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.settings-nav a:hover { background: var(--bg-2); text-decoration: none; }
.settings-nav a.on { background: var(--surface); color: var(--primary); font-weight: 600; box-shadow: var(--shadow); }
.settings-nav .pill { margin-left: auto; }
.settings-body h2 { margin-bottom: 16px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.new-role { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; padding: 12px; background: var(--surface); border: 1px dashed var(--line-2); border-radius: 10px; }
.new-role input, .new-role select { min-height: 32px; padding: 5px 8px; font-size: 12.5px; }
.role-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.role-card { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 10px; border: 1px solid var(--line); border-left: 4px solid var(--c); color: var(--text); }
.role-card:hover { text-decoration: none; background: var(--surface-2); } .role-card b { font-family: var(--serif); font-size: 17px; } .role-card span { font-size: 12.5px; color: var(--text-2); } .role-card small { color: var(--text-3); font-size: 11.5px; }
.feature-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.feature { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.feature b { display: block; font-size: 13.5px; } .feature small { color: var(--text-3); font-size: 12px; }
.conflict-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; } .conflict-form .fld { flex: 1; min-width: 280px; }

/* palette */
.palette { position: fixed; inset: 0; background: rgba(15,18,26,.45); backdrop-filter: blur(3px); z-index: 100; display: flex; justify-content: center; padding-top: 10vh; }
.palette[hidden] { display: none; }
.palette-box { width: min(640px, 94vw); background: var(--surface); border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.35); overflow: hidden; align-self: flex-start; }
.palette-in { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--text-3); }
.palette-in input { border: 0; font-size: 16px; padding: 4px 0; box-shadow: none !important; background: transparent; }
.palette-res { max-height: 60vh; overflow-y: auto; padding: 6px; }
.palette-res h6 { margin: 8px 10px 4px; font: 600 10.5px var(--sans); text-transform: uppercase; letter-spacing: 1.2px; color: var(--accent); }
.palette-res a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--text); }
.palette-res a small { color: var(--text-3); margin-left: auto; font-family: var(--mono); font-size: 11.5px; }
.palette-res a.hl, .palette-res a:hover { background: var(--bg-2); text-decoration: none; }

/* bottom nav (mobile) */
.bottom-nav { display: none; }
.nav-backdrop { display: none; }

/* ------------------------------------------------------------- login */
.login-body { background: var(--ink); }
.login { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; }
.login-art { position: relative; overflow: hidden; color: #EDE7D9; display: flex; align-items: center; padding: 60px; background: radial-gradient(1200px 600px at 20% 10%, color-mix(in srgb, var(--primary) 55%, transparent), transparent 60%), var(--ink); }
.pillars { position: absolute; inset: auto 0 0 0; height: 60%; display: flex; justify-content: space-around; align-items: flex-end; opacity: .08; padding: 0 6%; }
.pillars i { width: 9%; height: 100%; background: repeating-linear-gradient(90deg, #fff 0 3px, transparent 3px 14px); border-top: 18px solid #fff; }
.login-art-text { position: relative; max-width: 460px; }
.login-logo { width: 74px; height: 74px; object-fit: contain; margin-bottom: 22px; }
.login-art h1 { color: #fff; font-size: 46px; margin-bottom: 8px; }
.login-art p { color: var(--accent); letter-spacing: 2px; text-transform: uppercase; font-size: 12.5px; margin: 0 0 34px; }
.login-points { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.login-points li::before { content: "§"; color: var(--accent); font-family: var(--serif); font-size: 20px; margin-right: 12px; }
.login-form { background: var(--bg); display: grid; place-items: center; padding: 30px; }
.login-card { width: min(420px, 100%); padding: 34px; display: flex; flex-direction: column; gap: 16px; }
.login-card h2 { font-size: 28px; margin-top: -8px; }

/* ------------------------------------------------------------- wizard */
.wizard-body { background: var(--bg); }
.wizard { display: grid; grid-template-columns: 300px 1fr; min-height: 100vh; }
.wiz-side { background: var(--ink); color: #D9D4C7; padding: 34px 26px; display: flex; flex-direction: column; }
.wiz-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 38px; } .wiz-brand img { width: 46px; } .wiz-brand b { display: block; color: #fff; font: 600 22px var(--serif); letter-spacing: 1px; } .wiz-brand small { color: var(--accent); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; }
.wiz-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.wiz-steps li { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 9px; color: rgba(217,212,199,.55); }
.wiz-steps li span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); font-size: 12px; }
.wiz-steps li.now { background: rgba(176,141,87,.16); color: #fff; } .wiz-steps li.now span { background: var(--accent); border-color: var(--accent); color: var(--ink); font-weight: 700; }
.wiz-steps li.done { color: #D9D4C7; } .wiz-steps li.done span { background: var(--primary); border-color: var(--primary); color: #fff; }
.wiz-quote { margin-top: auto; font: italic 17px var(--serif); color: rgba(217,212,199,.45); }
.wiz-main { padding: 50px min(6vw, 70px); max-width: 980px; }
.wiz-main h1 { font-size: 38px; margin-bottom: 12px; }
.wiz-form { display: flex; flex-direction: column; gap: 14px; }
.lead { font-size: 15.5px; color: var(--text-2); max-width: 640px; margin: 0 0 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; } .grid2 .full { grid-column: 1 / -1; }
.wiz-actions { display: flex; justify-content: space-between; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.tbl.check td { padding: 10px 12px; }
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.mod-grid fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; background: var(--surface); margin: 0; }
.mod-grid legend { font: 600 15px var(--serif); padding: 0 6px; color: var(--primary); }
.mod-grid .chk { margin: 4px 0; font-size: 13.5px; }
.review { display: grid; grid-template-columns: 180px 1fr; gap: 10px; margin: 10px 0; } .review dt { color: var(--text-3); } .review dd { margin: 0; font-weight: 500; }
.done-seal { width: 100px; height: 100px; border-radius: 50%; display: grid; place-items: center; font-size: 46px; color: #fff; background: var(--primary); box-shadow: 0 0 0 8px color-mix(in srgb, var(--primary) 18%, transparent); margin-bottom: 20px; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1280px) { .dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .detail-layout { grid-template-columns: minmax(0, 1fr) 300px; } }
@media (max-width: 1024px) {
  .detail-layout, .inv-bottom, .settings { grid-template-columns: 1fr; }
  .settings-nav { position: static; flex-direction: row; overflow-x: auto; } .settings-nav a { white-space: nowrap; }
  .new-role { display: none; }
}
@media (max-width: 860px) {
  .only-mobile { display: inline-grid !important; } .hide-sm { display: none !important; }
  .nav { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .22s ease; width: 280px !important; box-shadow: 20px 0 60px rgba(0,0,0,.3); }
  body.nav-open .nav { transform: none; }
  body.nav-open .nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 35; }
  body.nav-collapsed .brand-text, body.nav-collapsed .nav-title, body.nav-collapsed .nav-link span { display: initial; }
  .nav-foot [data-collapse] { display: none; }
  .top { padding: 10px 12px; gap: 6px; }
  .search-trigger kbd { display: none; }
  .search-trigger { min-width: 0; padding: 8px 10px; }
  .top-actions .timer, .top-actions > .dropdown:nth-child(3), .top-actions > a[href*=mode] { display: none; }
  .kpi b { font-size: 15px; letter-spacing: -.6px; }
  .content { padding: 14px 12px 90px; }
  h1 { font-size: 26px; }
  .dash-grid, .dash-grid.two { grid-template-columns: 1fr; } .dash-grid .span2 { grid-column: auto; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .kpi b { font-size: 17px; }
  .page-head { align-items: flex-start; } .head-actions { width: 100%; }
  .form-grid, .grid2 { grid-template-columns: 1fr; }
  .bottom-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 45; background: var(--surface); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; box-shadow: 0 -4px 20px rgba(0,0,0,.06); }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; color: var(--text-3); padding: 4px 8px; }
  .bottom-nav a.on { color: var(--primary); } .bottom-nav a:hover { text-decoration: none; }
  .bottom-nav .fab { width: 50px; height: 50px; border-radius: 50%; background: var(--primary); color: #fff; justify-content: center; margin-top: -22px; box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 45%, transparent); }
  .bottom-nav .fab .ico { width: 24px; height: 24px; }
  .login { grid-template-columns: 1fr; } .login-art { padding: 40px 28px 30px; min-height: auto; } .login-art h1 { font-size: 32px; } .login-points { display: none; } .login-art p { margin-bottom: 0; }
  .wizard { grid-template-columns: 1fr; } .wiz-side { padding: 20px; } .wiz-steps { flex-direction: row; overflow-x: auto; } .wiz-steps li { white-space: nowrap; font-size: 12px; } .wiz-quote { display: none; } .wiz-main { padding: 26px 18px; }
  .cal-d { min-height: 72px; } .cal .ev { font-size: 0; height: 6px; padding: 0; border-left-width: 0; } .cal .ev b { display: none; }
  .tbl td, .tbl th { padding: 9px 10px; }
  .util-row .nm { width: 96px; } .util-row .num { width: 90px; font-size: 11px; }
  .filters .search { min-width: 100%; }
}
@media print { .nav, .top, .bottom-nav, .head-actions, .filters, .form-actions { display: none !important; } .content { padding: 0; } .card { box-shadow: none; } }
