@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg:        #06091e;
  --bg2:       #0b1131;
  --bg3:       #0f1840;
  --bg-card:   #0d1638;
  --accent:    #2563eb;
  --accent2:   #3b82f6;
  --accent-h:  #1d4ed8;
  --text:      #f0f4ff;
  --text2:     #8ba0c4;
  --text3:     #4a6080;
  --green:     #22c55e;
  --red:       #f43f5e;
  --orange:    #fb923c;
  --border:    rgba(59,130,246,0.12);
  --border2:   rgba(255,255,255,0.06);
  --glow:      rgba(37,99,235,0.18);
  --sw:        64px;
  --hh:        56px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; }
body { font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; }
a { text-decoration: none; color: inherit; }

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ── SIDEBAR ── */
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--sw);
  background: var(--bg2); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center;
  padding: 16px 0; z-index: 200;
}
.sidebar .brand {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; flex-shrink: 0; overflow: hidden;
}
.sidebar .brand img { width: 36px; height: 36px; object-fit: contain; }
.sidebar nav { flex: 1; display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 0 10px; }
.nav-btn {
  width: 100%; height: 40px; border-radius: 8px; border: none; background: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--text2); cursor: pointer; transition: all .18s; position: relative;
}
.nav-btn:hover  { background: rgba(59,130,246,.1); color: var(--accent2); }
.nav-btn.active { background: rgba(59,130,246,.15); color: var(--accent2); }
.nav-btn.active::before {
  content:''; position:absolute; left:-10px; top:50%; transform:translateY(-50%);
  width:3px; height:20px; background:var(--accent); border-radius:0 2px 2px 0;
}
.nav-btn svg { width: 20px; height: 20px; }
.sidebar .bottom-nav { padding: 0 10px; display: flex; flex-direction: column; gap: 2px; }
.nav-tooltip {
  position:absolute; left:calc(var(--sw) + 8px); top:50%; transform:translateY(-50%);
  background:var(--bg3); border:1px solid var(--border); border-radius:6px;
  padding:4px 10px; font-size:11px; font-weight:600; white-space:nowrap;
  opacity:0; pointer-events:none; transition:opacity .15s; z-index:300;
}
.nav-btn:hover .nav-tooltip { opacity:1; }

/* ── HEADER ── */
.header {
  position:fixed; top:0; left:var(--sw); right:0; height:var(--hh);
  background:var(--bg2); border-bottom:1px solid var(--border);
  display:flex; align-items:center; justify-content:space-between;
  padding:0 24px; z-index:100;
}
.header-left  { display:flex; align-items:center; gap:12px; }
.header-right { display:flex; align-items:center; gap:8px; }
.page-title { font-size:15px; font-weight:600; }
.divider-v  { width:1px; height:20px; background:var(--border); }
.logo-text  { font-size:15px; font-weight:700; }
.logo-text span { color:var(--accent2); }
.time-badge {
  font-size:11px; color:var(--text2); text-align:right;
  padding:4px 10px; background:var(--bg3); border-radius:6px; border:1px solid var(--border);
  line-height:1.5;
}
.time-badge .lbl { font-size:9px; color:var(--text3); display:block; }
.icon-btn {
  width:34px; height:34px; border-radius:8px; border:none; background:none;
  display:flex; align-items:center; justify-content:center;
  color:var(--text2); cursor:pointer; transition:all .18s;
}
.icon-btn:hover { background:rgba(255,255,255,.06); color:var(--text); }
.icon-btn svg { width:18px; height:18px; }
.avatar {
  width:32px; height:32px; border-radius:50%; background:var(--accent);
  display:flex; align-items:center; justify-content:center;
  font-size:12px; font-weight:700; color:#fff; cursor:pointer; border:2px solid var(--accent2);
}

/* ── LAYOUT ── */
.main { margin-left:var(--sw); padding-top:var(--hh); padding-bottom:36px; min-height:100vh; }
.page { padding:24px; }

/* ── FOOTER ── */
.footer {
  position:fixed; bottom:0; left:var(--sw); right:0; height:28px;
  background:var(--bg2); border-top:1px solid var(--border);
  display:flex; align-items:center; justify-content:flex-end;
  padding:0 20px; z-index:100; font-size:10px; color:var(--text3);
}
.footer-dot { width:5px; height:5px; background:var(--green); border-radius:50%; margin-right:6px; }

/* ── CARDS ── */
.card { background:var(--bg-card); border:1px solid var(--border); border-radius:12px; padding:20px; }

/* ── KPI ROW ── */
.kpi-row { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:20px; }
.kpi-row-6 { display:grid; grid-template-columns:repeat(6,1fr); gap:12px; margin-bottom:20px; }
.kpi {
  background:var(--bg-card); border:1px solid var(--border); border-radius:12px;
  padding:16px 18px; display:flex; flex-direction:column; gap:6px;
  transition:border-color .2s, box-shadow .2s;
}
.kpi:hover { border-color:var(--accent); box-shadow:0 0 0 1px var(--glow); }
.kpi-label { font-size:10px; color:var(--text2); text-transform:uppercase; letter-spacing:.08em; font-weight:500; }
.kpi-val { font-size:22px; font-weight:700; line-height:1.1; }
.kpi-val.red   { color:var(--red); }
.kpi-val.green { color:var(--green); }
.kpi-val.blue  { color:var(--accent2); }
.kpi-footer { display:flex; align-items:center; gap:6px; margin-top:2px; }
.badge {
  display:inline-flex; align-items:center; gap:3px;
  font-size:11px; font-weight:600; padding:2px 6px; border-radius:4px;
}
.badge.up      { color:var(--green);  background:rgba(34,197,94,.12); }
.badge.down    { color:var(--red);    background:rgba(244,63,94,.12); }
.badge.neutral { color:var(--text2); background:rgba(255,255,255,.06); }
.kpi-sub { font-size:11px; color:var(--text3); }

/* ── CHART GRIDS ── */
.charts-2  { display:grid; grid-template-columns:1fr 1fr;  gap:16px; margin-bottom:20px; }
.charts-21 { display:grid; grid-template-columns:2fr 1fr;  gap:16px; margin-bottom:20px; }
.charts-1  { margin-bottom:20px; }
.chart-card { background:var(--bg-card); border:1px solid var(--border); border-radius:12px; padding:20px; }
.chart-title { font-size:11px; font-weight:600; color:var(--text2); text-transform:uppercase; letter-spacing:.06em; margin-bottom:16px; }
.chart-wrap { position:relative; }

/* ── FILTERS ── */
.filter-row { display:flex; align-items:center; gap:12px; margin-bottom:20px; flex-wrap:wrap; }
.filter-lbl { font-size:11px; color:var(--text2); font-weight:500; }
select.filter-sel {
  background:var(--bg3); border:1px solid var(--border); color:var(--text);
  padding:6px 10px; border-radius:7px; font-size:12px; outline:none; cursor:pointer;
  font-family:inherit; transition:border-color .2s;
}
select.filter-sel:hover, select.filter-sel:focus { border-color:var(--accent); }
select.filter-sel option { background:var(--bg2); }

/* ── TOGGLE ── */
.toggle { display:flex; background:var(--bg3); border:1px solid var(--border); border-radius:8px; padding:2px; gap:2px; }
.tog {
  padding:5px 14px; border-radius:6px; border:none; font-size:11px; font-weight:600;
  cursor:pointer; background:none; color:var(--text2); transition:all .18s; font-family:inherit;
}
.tog.on { background:var(--accent); color:#fff; }

/* ── SEARCH ── */
.search {
  display:flex; align-items:center; gap:8px; background:var(--bg3); border:1px solid var(--border);
  border-radius:8px; padding:8px 12px; flex:1; max-width:300px;
}
.search input {
  background:none; border:none; outline:none; color:var(--text);
  font-size:13px; width:100%; font-family:inherit;
}
.search input::placeholder { color:var(--text3); }
.search svg { color:var(--text3); width:16px; height:16px; flex-shrink:0; }

/* ── BUTTONS ── */
.btn {
  display:inline-flex; align-items:center; gap:6px; padding:8px 16px;
  border-radius:8px; border:none; font-size:13px; font-weight:600;
  cursor:pointer; transition:all .18s; font-family:inherit;
}
.btn-primary { background:var(--accent); color:#fff; }
.btn-primary:hover { background:var(--accent-h); box-shadow:0 0 0 3px var(--glow); }
.btn-ghost { background:rgba(255,255,255,.06); color:var(--text); }
.btn-ghost:hover { background:rgba(255,255,255,.1); }
.btn-sm { padding:5px 10px; font-size:11px; }

/* ── TABLE ── */
.tbl-wrap { overflow-x:auto; }
table { width:100%; border-collapse:collapse; font-size:12px; }
thead th {
  padding:10px 12px; text-align:left; color:var(--text2);
  font-size:10px; font-weight:600; text-transform:uppercase; letter-spacing:.06em;
  border-bottom:1px solid var(--border); white-space:nowrap; background:var(--bg2);
}
tbody td { padding:10px 12px; border-bottom:1px solid rgba(255,255,255,.04); vertical-align:middle; }
tbody tr:last-child td { border-bottom:none; }
tbody tr:hover td { background:rgba(59,130,246,.04); }
.td-pos { color:var(--green); font-weight:600; }
.td-neg { color:var(--red);   font-weight:600; }
.td-neu { color:var(--text2); }

/* ── SEC HEADER ── */
.sec-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.sec-title  { font-size:14px; font-weight:600; }

/* ── CLIENT CARDS ── */
.clients-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.client-card {
  background:var(--bg-card); border:1px solid var(--border); border-radius:12px;
  padding:18px 20px; display:flex; align-items:center; gap:14px;
  transition:all .2s; cursor:pointer;
}
.client-card:hover { border-color:var(--accent); background:var(--bg3); transform:translateY(-2px); box-shadow:0 6px 24px rgba(0,0,0,.4); }
.client-icon {
  width:42px; height:42px; background:rgba(37,99,235,.15); border-radius:10px;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.client-icon svg { width:22px; height:22px; color:var(--accent2); }
.client-info { flex:1; min-width:0; }
.client-name { font-size:13px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.client-meta { font-size:11px; color:var(--text2); margin-top:2px; }
.client-actions { display:flex; gap:6px; }
.act-btn {
  width:28px; height:28px; border-radius:6px; border:none; background:none;
  display:flex; align-items:center; justify-content:center;
  color:var(--text2); cursor:pointer; transition:all .18s;
}
.act-btn.edit:hover { background:rgba(59,130,246,.15); color:var(--accent2); }
.act-btn.del:hover  { background:rgba(244,63,94,.12);  color:var(--red); }
.act-btn svg { width:15px; height:15px; }

/* ── PROGRESS BAR ── */
.pbar { height:4px; border-radius:2px; background:rgba(255,255,255,.06); overflow:hidden; width:80px; display:inline-block; vertical-align:middle; }
.pbar-fill { height:100%; border-radius:2px; }

/* ── LOGIN PAGE ── */
.login-page { min-height:100vh; display:flex; }
.login-left {
  width:42%; background:linear-gradient(160deg,#0b1540 0%,#0a0e2a 50%,#060918 100%);
  display:flex; flex-direction:column; justify-content:center; align-items:center;
  padding:48px; border-right:1px solid var(--border); position:relative; overflow:hidden;
}
.login-left::before {
  content:''; position:absolute; top:-100px; right:-100px;
  width:400px; height:400px; background:radial-gradient(circle,rgba(37,99,235,.15) 0%,transparent 70%);
}
.login-brand { display:flex; flex-direction:column; align-items:center; gap:20px; z-index:1; }
.login-logo {
  width:72px; height:72px; display:flex; align-items:center; justify-content:center;
}
.login-logo img { width:72px; height:72px; object-fit:contain; filter:brightness(1.3); }
.login-brand h1 { font-size:26px; font-weight:700; text-align:center; }
.login-brand h1 span { color:var(--accent2); }
.login-brand p { font-size:12px; color:var(--text2); text-align:center; max-width:240px; line-height:1.7; }
.login-feats { margin-top:36px; display:flex; flex-direction:column; gap:12px; width:100%; max-width:260px; z-index:1; }
.login-feat { display:flex; align-items:center; gap:10px; font-size:12px; color:var(--text2); }
.feat-icon { width:28px; height:28px; background:rgba(37,99,235,.15); border-radius:7px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.feat-icon svg { width:14px; height:14px; color:var(--accent2); }
.login-right { flex:1; display:flex; align-items:center; justify-content:center; padding:48px; }
.login-box { width:100%; max-width:380px; background:var(--bg2); border:1px solid var(--border); border-radius:16px; padding:36px 32px; }
.login-box h2 { font-size:20px; font-weight:700; margin-bottom:4px; }
.login-box .sub { font-size:12px; color:var(--text2); margin-bottom:28px; }
.form-group { margin-bottom:16px; }
.form-lbl { display:block; font-size:10px; font-weight:600; color:var(--text2); text-transform:uppercase; letter-spacing:.06em; margin-bottom:6px; }
.form-wrap { position:relative; }
.form-input {
  width:100%; background:var(--bg3); border:1px solid var(--border); color:var(--text);
  padding:10px 36px 10px 14px; border-radius:8px; font-size:13px; outline:none;
  transition:border-color .2s; font-family:inherit;
}
.form-input:focus { border-color:var(--accent); }
.form-input::placeholder { color:var(--text3); }
.input-ico { position:absolute; right:10px; top:50%; transform:translateY(-50%); color:var(--text3); cursor:pointer; line-height:0; }
.input-ico svg { width:16px; height:16px; }
.recaptcha {
  background:var(--bg3); border:1px solid var(--border); border-radius:8px;
  padding:12px 14px; display:flex; align-items:center; gap:12px; margin-bottom:20px;
}
.rc-check {
  width:20px; height:20px; border:2px solid var(--border); border-radius:4px;
  cursor:pointer; flex-shrink:0; display:flex; align-items:center; justify-content:center;
  transition:all .2s;
}
.rc-check.checked { background:var(--accent); border-color:var(--accent); }
.rc-check svg { width:12px; height:12px; color:#fff; display:none; }
.rc-check.checked svg { display:block; }
.rc-text { font-size:13px; color:var(--text); }
.rc-logo { margin-left:auto; text-align:center; font-size:8px; color:var(--text3); }
.rc-logo .rc-g { font-size:14px; font-weight:700; color:#4285f4; }
.btn-login { width:100%; padding:12px; font-size:14px; font-weight:700; border-radius:9px; }
.footer-login {
  position:fixed; bottom:0; left:0; right:0; height:28px;
  background:var(--bg2); border-top:1px solid var(--border);
  display:flex; align-items:center; justify-content:flex-end;
  padding:0 20px; font-size:10px; color:var(--text3);
}

/* ── HOME DO CLIENTE ── */
.home-page { min-height:100vh; display:flex; }
.home-left {
  width:42%; background:linear-gradient(160deg,#0b1540 0%,#0a0e2a 50%,#060918 100%);
  display:flex; flex-direction:column; justify-content:center; align-items:center;
  padding:48px; border-right:1px solid var(--border); position:relative; overflow:hidden;
}
.home-left::before {
  content:''; position:absolute; top:-100px; right:-100px;
  width:400px; height:400px; background:radial-gradient(circle,rgba(37,99,235,.15) 0%,transparent 70%);
}
.home-logo {
  width:72px; height:72px; display:flex; align-items:center; justify-content:center;
}
.home-logo img { width:72px; height:72px; object-fit:contain; filter:brightness(1.3); }
.home-brand { display:flex; flex-direction:column; align-items:center; gap:20px; z-index:1; }
.home-brand h1 { font-size:24px; font-weight:700; text-align:center; }
.home-brand h1 span { color:var(--accent2); }
.home-brand p { font-size:12px; color:var(--text2); text-align:center; line-height:1.7; max-width:240px; }
.home-right { flex:1; display:flex; align-items:center; justify-content:center; padding:48px; }
.home-modules { width:100%; max-width:440px; }
.home-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
.home-welcome { font-size:22px; font-weight:700; }
.home-welcome span { color:var(--accent2); }
.home-sub { font-size:12px; color:var(--text2); margin-bottom:24px; }
.mod-list { display:flex; flex-direction:column; gap:12px; }
.mod-item {
  background:var(--bg2); border:1px solid var(--border); border-radius:12px;
  padding:16px 20px; display:flex; align-items:center; gap:14px;
  cursor:pointer; transition:all .2s; color:inherit;
}
.mod-item:hover { border-color:var(--accent); background:var(--bg3); transform:translateX(4px); box-shadow:0 4px 20px rgba(0,0,0,.3); }
.mod-num {
  width:36px; height:36px; background:rgba(37,99,235,.15); border-radius:9px;
  display:flex; align-items:center; justify-content:center;
  font-size:14px; font-weight:800; color:var(--accent2); flex-shrink:0;
}
.mod-info { flex:1; }
.mod-name { font-size:14px; font-weight:600; }
.mod-desc { font-size:11px; color:var(--text2); margin-top:2px; }
.mod-arr { color:var(--text3); }
.mod-arr svg { width:18px; height:18px; }
.time-chip { font-size:11px; color:var(--text2); padding:5px 12px; background:var(--bg2); border:1px solid var(--border); border-radius:6px; }

/* ── DRE TABLE ── */
.dre-wrap { overflow-x:auto; border-radius:12px; }
.dre-table { min-width:900px; }
.dre-table thead th { position:sticky; top:0; }
.dre-table td:first-child, .dre-table th:first-child { min-width:220px; position:sticky; left:0; z-index:5; background:var(--bg-card); }
.dre-table thead th:first-child { z-index:6; background:var(--bg2); }
.row-header td { background:rgba(37,99,235,.08); color:var(--accent2); font-weight:700; }
.row-sub td:first-child { padding-left:28px; }
.row-sub2 td:first-child { padding-left:44px; color:var(--text2); }
.row-total td { font-weight:700; border-top:1px solid var(--border); }
.row-total.positive td { color:var(--green); }
.row-total.negative td { color:var(--red); }
.exp-btn { background:none; border:none; color:var(--text3); cursor:pointer; padding:0 4px 0 0; font-size:11px; vertical-align:middle; }

/* ── FLUXO ── */
.fluxo-block { background:var(--bg-card); border:1px solid var(--border); border-radius:12px; overflow:hidden; margin-bottom:16px; }
.fluxo-hdr { padding:12px 20px; display:flex; align-items:center; gap:10px; border-bottom:1px solid var(--border); }
.fluxo-dot { width:8px; height:8px; border-radius:50%; flex-shrink:0; }
.fluxo-hdr-title { font-size:13px; font-weight:600; }
.fluxo-hdr-val { margin-left:auto; font-size:15px; font-weight:700; }

/* ── FILTRO MÊS — estilo nativo macOS ── */
.mes-wrap { position:relative; display:inline-block; }
.mes-btn {
  display:inline-flex; align-items:center; justify-content:space-between; gap:8px;
  min-width:110px; cursor:pointer;
  background:var(--bg2); border:1px solid var(--border); border-radius:8px;
  padding:5px 10px; font-size:12px; color:var(--text1); font-family:inherit;
  white-space:nowrap;
}
.mes-btn:hover { border-color:var(--accent); }
.mes-drop {
  display:none; position:absolute; top:calc(100% + 4px); left:0; z-index:300;
  background:#141b35; border:1px solid rgba(255,255,255,.13); border-radius:10px;
  padding:4px; min-width:160px; box-shadow:0 12px 32px rgba(0,0,0,.7);
}
.mes-drop.open { display:block; }
.mes-opt {
  display:flex; align-items:center;
  padding:6px 12px 6px 8px; border-radius:6px;
  cursor:pointer; font-size:13px; color:var(--text1); user-select:none;
}
.mes-opt:hover { background:var(--accent); color:#fff; }
.mes-opt input[type=checkbox] { display:none; }
.mes-opt::before { content:''; display:inline-block; width:18px; flex-shrink:0; font-size:12px; color:var(--accent2); }
.mes-opt:has(input:checked)::before { content:'✓'; }
.mes-opt:hover::before { color:#fff; }
.mes-divider { border:none; border-top:1px solid rgba(255,255,255,.1); margin:3px 4px; }
.mes-tag { display:inline-block; font-size:10px; font-weight:700; padding:1px 5px; border-radius:4px; background:rgba(37,99,235,.25); color:var(--accent2); }

/* ── MOBILE RESPONSIVE ── */

/* Hamburger button — hidden on desktop */
.hamburger {
  display:none; background:none; border:none; color:var(--text2); cursor:pointer;
  padding:4px; border-radius:6px; align-items:center; justify-content:center;
  transition:color .15s;
}
.hamburger:hover { color:var(--text); }
.hamburger svg { width:22px; height:22px; }

/* Sidebar overlay for mobile */
.sidebar-overlay {
  display:none; position:fixed; inset:0; background:rgba(0,0,0,.6);
  z-index:190; opacity:0; transition:opacity .25s;
}
.sidebar-overlay.open { display:block; opacity:1; }

@media (max-width: 900px) {
  /* ── Sidebar becomes a slide-in drawer ── */
  :root { --sw: 0px; }

  .sidebar {
    transform: translateX(-100%);
    transition: transform .25s cubic-bezier(.4,0,.2,1);
    z-index:200;
    width: 220px;
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar nav, .sidebar .bottom-nav { padding: 0 12px; }
  .nav-btn { justify-content: flex-start; gap: 10px; padding: 0 10px; }
  .nav-btn svg { flex-shrink: 0; }
  .nav-tooltip { position:static; opacity:1; pointer-events:auto; background:none; border:none; padding:0; font-size:13px; white-space:nowrap; transform:none; }

  /* Show hamburger */
  .hamburger { display: flex; }

  /* Header adjusts */
  .header { left: 0; padding: 0 14px; gap: 8px; }
  .header-right { gap: 6px; }
  .time-badge { display: none; }
  .header-left { gap: 8px; }
  .logo-text { font-size: 13px; }
  .divider-v { display: none; }

  /* Main fills full width */
  .main { margin-left: 0 !important; padding: 72px 14px 14px; }
  .page { padding: 0; }

  /* Client grid → single column */
  .clients-grid { grid-template-columns: 1fr; }

  /* Top bar wraps naturally */
  .top-bar { gap: 8px; }

  /* Modals → full width on small screens */
  .modal {
    width: calc(100vw - 32px) !important;
    max-width: 100% !important;
    padding: 20px !important;
  }
  .confirm-modal { width: calc(100vw - 32px) !important; }
  .modal-overlay { padding: 16px; align-items: flex-end; }

  /* Tables → horizontal scroll */
  .tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Login / dashboard split → stack */
  .login-page, .home-page { flex-direction: column; }
  .login-left, .home-left { width: 100%; min-height: 220px; padding: 28px 24px; }
  .login-feats { display: none; }
  .login-right, .home-right { padding: 24px 20px 48px; }
  .login-box { padding: 24px 20px; }

  /* DRE table wide on mobile */
  .dre-wrap { border-radius: 8px; }

  /* Profile card full width */
  .profile-card { padding: 20px; }
}

@media (max-width: 600px) {
  /* Even tighter on phones */
  .header { padding: 0 10px; }
  .main   { padding: 68px 10px 10px; }
  .clients-grid { gap: 10px; }
  .client-card { padding: 14px 16px; }

  /* Sec header wraps */
  .sec-header { flex-wrap: wrap; gap: 8px; }

  /* Top bar controls stack */
  .top-bar { flex-direction: column; align-items: flex-start; }
  .top-bar > div:last-child { margin-left: 0 !important; width: 100%; }
  .top-bar input, .top-bar select { width: 100%; }

  /* Reduce font on footer */
  .footer { font-size: 10px; padding: 0 12px; }

  /* Activity log table compact */
  .log-table td:nth-child(2) { display: none; } /* hide user column */
  .log-table th:nth-child(2) { display: none; }
}
