/* ============================================================================
   SchoolWise Admin — Prototype
   Academic Navy & Gold design system. Fresh, minimal, elegant.
   ========================================================================== */

:root {
  /* Brand ramps */
  --navy-50:#eef1f6; --navy-100:#d7deea; --navy-200:#aebed2; --navy-300:#8198b6;
  --navy-400:#506c92; --navy-500:#2f4a73; --navy-600:#26395f; --navy-700:#1b2a4a;
  --navy-800:#142036; --navy-900:#0d1626;
  --gold-50:#fbf7ec; --gold-100:#f4ecd6; --gold-200:#e8d6a6; --gold-300:#d9bd74;
  --gold-400:#c8a24b; --gold-500:#b08c3a; --gold-600:#8e6f2c;
  --grey-50:#fbfaf7; --grey-100:#f5f2eb; --grey-200:#e7e3da; --grey-300:#d7d2c6;
  --grey-400:#a9a294; --grey-500:#7a7466; --grey-600:#5b5547;

  /* Semantic */
  --primary:var(--navy-700); --primary-hover:var(--navy-800);
  --accent:var(--gold-400); --on-accent:#241b07;
  --bg:var(--grey-50); --surface:#ffffff; --surface-2:var(--grey-100);
  --border:var(--grey-200); --text:#1a1f2b; --muted:#5b6473;
  --success:#2e7d5b; --success-bg:#e6f2ec;
  --warning:#b7791f; --warning-bg:#fbf1dd;
  --error:#b23a3a;   --error-bg:#f6e6e6;
  --info:#2a5b8c;    --info-bg:#e6eef6;

  /* Shape & depth */
  --r-sm:6px; --r:10px; --r-lg:16px; --r-xl:22px;
  --sh-sm:0 1px 2px rgba(20,25,40,.06),0 1px 3px rgba(20,25,40,.05);
  --sh-md:0 4px 12px rgba(20,25,40,.08),0 2px 4px rgba(20,25,40,.05);
  --sh-lg:0 16px 40px rgba(20,25,40,.16),0 4px 10px rgba(20,25,40,.08);

  /* Type */
  --font-head:"Fraunces",Georgia,"Times New Roman",serif;
  --font-body:"Inter",system-ui,-apple-system,sans-serif;
  --font-mono:"SF Mono",ui-monospace,Menlo,Consolas,monospace;

  --sidebar-w:260px; --topbar-h:68px;
}

* { box-sizing:border-box; margin:0; padding:0; }

/* ---- Global icon sizing safety net ----
   Every icon defaults to 18px and never stretches. Container rules below override
   for specific contexts; intentionally-large spots are restored further down. */
svg.ic-svg { width:18px; height:18px; flex:0 0 auto; vertical-align:middle; }
td svg.ic-svg, .cell-user > svg.ic-svg { vertical-align:middle; }
/* feature icon tiles (rounded coloured squares) get a slightly larger glyph */
.ic-navy svg.ic-svg, .ic-gold svg.ic-svg, .ic-green svg.ic-svg, .ic-red svg.ic-svg { width:20px; height:20px; }
.map-ph svg.ic-svg { width:30px; height:30px; }
.gal-item .ph svg.ic-svg { width:30px; height:30px; }
.profile-head .pa svg.ic-svg { width:34px; height:34px; }
html,body { height:100%; }
body {
  font-family:var(--font-body); color:var(--text); background:var(--bg);
  font-size:14px; line-height:1.5; -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4,h5 { font-family:var(--font-head); font-weight:600; letter-spacing:-.01em; color:var(--text); line-height:1.2; }
a { color:inherit; text-decoration:none; }
button { font-family:inherit; cursor:pointer; }
::selection { background:var(--gold-200); }

/* Scrollbars */
::-webkit-scrollbar { width:10px; height:10px; }
::-webkit-scrollbar-thumb { background:var(--grey-300); border-radius:20px; border:3px solid transparent; background-clip:padding-box; }
::-webkit-scrollbar-thumb:hover { background:var(--grey-400); background-clip:padding-box; }

/* ============================ Layout ============================ */
.app { display:flex; min-height:100vh; }

.sidebar {
  width:var(--sidebar-w); flex:0 0 var(--sidebar-w);
  background:linear-gradient(178deg,var(--navy-700),var(--navy-800) 60%,var(--navy-900));
  color:#c7d0de; height:100vh; position:sticky; top:0;
  display:flex; flex-direction:column; overflow:hidden;
}
.brand {
  display:flex; align-items:center; gap:12px; padding:20px 22px 18px;
  border-bottom:1px solid rgba(255,255,255,.07);
}
.brand .logo {
  width:38px; height:38px; border-radius:11px; flex:0 0 38px;
  background:linear-gradient(135deg,var(--gold-300),var(--gold-500));
  display:grid; place-items:center; color:var(--navy-900); font-family:var(--font-head); font-weight:700; font-size:18px;
  box-shadow:0 2px 8px rgba(0,0,0,.25);
}
.brand .name { font-family:var(--font-head); color:#fff; font-size:17px; font-weight:600; letter-spacing:-.01em; }
.brand .name small { display:block; font-family:var(--font-body); font-size:10.5px; letter-spacing:.14em; text-transform:uppercase; color:var(--gold-300); font-weight:600; margin-top:1px; }

.nav { flex:1; overflow-y:auto; padding:10px 12px 24px; }
.nav::-webkit-scrollbar-thumb { background:rgba(255,255,255,.12); }
.nav-group-label { font-size:10px; letter-spacing:.13em; text-transform:uppercase; color:#6b7891; font-weight:700; padding:16px 12px 7px; }
.nav-item {
  display:flex; align-items:center; gap:11px; padding:9px 12px; border-radius:9px;
  color:#aeb9cc; font-size:13.5px; font-weight:500; cursor:pointer; position:relative;
  transition:background .15s,color .15s; margin-bottom:1px;
}
.nav-item svg { width:18px; height:18px; flex:0 0 18px; stroke-width:2; opacity:.85; }
.nav-item:hover { background:rgba(255,255,255,.06); color:#e8edf4; }
.nav-item.active { background:rgba(255,255,255,.10); color:#fff; }
.nav-item.active::before {
  content:""; position:absolute; left:-12px; top:50%; transform:translateY(-50%);
  width:3px; height:22px; border-radius:0 3px 3px 0; background:var(--gold-400);
}
.nav-item.active svg { opacity:1; color:var(--gold-300); }
.nav-badge { margin-left:auto; font-size:10px; font-weight:700; background:var(--gold-400); color:var(--navy-900); padding:1px 7px; border-radius:20px; }
.nav-caret { margin-left:auto; display:grid; place-items:center; transition:transform .2s; opacity:.6; }
.nav-caret svg { width:15px; height:15px; }
.nav-item.expanded .nav-caret { transform:rotate(180deg); }
.nav-item[data-parent] .nav-badge + .nav-caret { margin-left:8px; }
.nav-sub { max-height:0; overflow:hidden; transition:max-height .25s ease; }
.nav-sub.open { max-height:760px; }
.nav-subitem { display:block; padding:7px 12px 7px 41px; font-size:12.5px; color:#94a2bb; border-radius:8px; font-weight:500; position:relative; margin-bottom:1px; }
.nav-subitem:hover { color:#dbe2ee; background:rgba(255,255,255,.05); }
.nav-subitem.active { color:#fff; background:rgba(255,255,255,.08); }
.nav-subitem.active::before { content:""; position:absolute; left:24px; top:50%; transform:translateY(-50%); width:5px; height:5px; border-radius:50%; background:var(--gold-400); }

/* ============================ Main ============================ */
.main { flex:1; min-width:0; display:flex; flex-direction:column; }
.topbar {
  height:var(--topbar-h); background:rgba(251,250,247,.85); backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border); position:sticky; top:0; z-index:20;
  display:flex; align-items:center; gap:16px; padding:0 28px;
}
.search {
  display:flex; align-items:center; gap:9px; background:var(--surface); border:1px solid var(--border);
  border-radius:10px; padding:9px 13px; width:340px; max-width:38vw; color:var(--muted);
}
.search input { border:none; outline:none; background:none; font-family:inherit; font-size:13.5px; width:100%; color:var(--text); }
.search svg { width:16px; height:16px; flex:0 0 16px; }
.topbar-spacer { flex:1; }
.session-pill {
  display:flex; align-items:center; gap:8px; background:var(--surface); border:1px solid var(--border);
  padding:8px 14px; border-radius:10px; font-weight:600; font-size:13px; color:var(--navy-700); cursor:pointer;
}
.session-pill svg { width:15px; height:15px; color:var(--gold-500); }
.icon-btn {
  width:40px; height:40px; border-radius:10px; border:1px solid var(--border); background:var(--surface);
  display:grid; place-items:center; color:var(--muted); position:relative;
}
.icon-btn svg { width:18px; height:18px; }
.icon-btn .dot { position:absolute; top:9px; right:10px; width:7px; height:7px; border-radius:50%; background:var(--error); border:2px solid var(--surface); }
.user-chip { display:flex; align-items:center; gap:10px; padding-left:6px; cursor:pointer; }
.avatar { width:38px; height:38px; border-radius:11px; object-fit:cover; background:var(--navy-200); display:grid; place-items:center; color:var(--navy-800); font-weight:700; font-size:14px; }
.user-chip .meta { line-height:1.25; }
.user-chip .meta b { font-size:13px; font-weight:600; }
.user-chip .meta span { display:block; font-size:11.5px; color:var(--muted); }

.content { padding:28px 32px 60px; max-width:1320px; width:100%; margin:0 auto; }

/* ============================ Page header ============================ */
.page-head { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:24px; flex-wrap:wrap; }
.crumb { font-size:12px; color:var(--muted); letter-spacing:.04em; text-transform:uppercase; font-weight:600; margin-bottom:7px; }
.crumb b { color:var(--gold-600); }
.page-head h1 { font-size:30px; }
.page-head p.sub { color:var(--muted); font-size:13.5px; margin-top:5px; }
.head-actions { display:flex; gap:10px; align-items:center; }

/* ============================ Buttons ============================ */
.btn {
  display:inline-flex; align-items:center; gap:8px; border:1px solid transparent; border-radius:10px;
  padding:10px 16px; font-size:13.5px; font-weight:600; transition:.15s; white-space:nowrap;
}
.btn svg { width:16px; height:16px; }
.btn-primary { background:var(--primary); color:#fff; box-shadow:var(--sh-sm); }
.btn-primary:hover { background:var(--primary-hover); }
.btn-accent { background:var(--accent); color:var(--on-accent); }
.btn-accent:hover { background:var(--gold-500); }
.btn-ghost { background:var(--surface); border-color:var(--border); color:var(--navy-700); }
.btn-ghost:hover { background:var(--grey-100); }
.btn-soft { background:var(--navy-50); color:var(--navy-700); }
.btn-soft:hover { background:var(--navy-100); }
.btn-danger { background:var(--error-bg); color:var(--error); }
.btn-sm { padding:7px 12px; font-size:12.5px; border-radius:8px; }
.btn-icon { padding:8px; }

/* ============================ Cards ============================ */
.card { background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); box-shadow:var(--sh-sm); }
.card-pad { padding:22px 24px; }
.card-head { display:flex; align-items:center; justify-content:space-between; padding:18px 24px; border-bottom:1px solid var(--border); }
.card-head h3 { font-size:16px; }
.card-head .card-sub { font-size:12px; color:var(--muted); margin-top:2px; font-family:var(--font-body); font-weight:400; }

.grid { display:grid; gap:18px; }
.g-2 { grid-template-columns:repeat(2,1fr); }
.g-3 { grid-template-columns:repeat(3,1fr); }
.g-4 { grid-template-columns:repeat(4,1fr); }
.g-12 { grid-template-columns:2fr 1fr; }
@media(max-width:1100px){ .g-4{grid-template-columns:repeat(2,1fr);} .g-3{grid-template-columns:repeat(2,1fr);} .g-12{grid-template-columns:1fr;} }
@media(max-width:680px){ .g-4,.g-3,.g-2{grid-template-columns:1fr;} }

/* Stat cards */
.stat { background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); padding:20px 22px; box-shadow:var(--sh-sm); position:relative; overflow:hidden; }
.stat .label { font-size:12px; color:var(--muted); font-weight:600; letter-spacing:.02em; text-transform:uppercase; }
.stat .value { font-family:var(--font-head); font-size:32px; font-weight:600; margin-top:8px; letter-spacing:-.02em; }
.stat .value small { font-size:15px; color:var(--muted); font-weight:500; }
.stat .trend { font-size:12px; margin-top:8px; display:inline-flex; align-items:center; gap:5px; font-weight:600; }
.stat .trend.up { color:var(--success); } .stat .trend.down { color:var(--error); }
.stat .ic { position:absolute; top:18px; right:18px; width:40px; height:40px; border-radius:11px; display:grid; place-items:center; }
.stat .ic svg { width:20px; height:20px; }
.ic-navy { background:var(--navy-50); color:var(--navy-600); }
.ic-gold { background:var(--gold-50); color:var(--gold-600); }
.ic-green{ background:var(--success-bg); color:var(--success); }
.ic-red  { background:var(--error-bg); color:var(--error); }

/* ============================ Tables ============================ */
.table-wrap { overflow-x:auto; }
table.tbl { width:100%; border-collapse:collapse; }
table.tbl th { text-align:left; font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); font-weight:700; padding:13px 18px; background:var(--grey-100); border-bottom:1px solid var(--border); white-space:nowrap; }
table.tbl td { padding:14px 18px; border-bottom:1px solid var(--grey-100); font-size:13.5px; vertical-align:middle; }
table.tbl tbody tr:hover { background:var(--grey-50); }
table.tbl tbody tr:last-child td { border-bottom:none; }
.cell-user { display:flex; align-items:center; gap:11px; }
.cell-user .avatar { width:34px; height:34px; border-radius:9px; font-size:12px; }
.cell-user b { font-weight:600; display:block; font-size:13.5px; }
.cell-user span { font-size:11.5px; color:var(--muted); }

.table-toolbar { display:flex; align-items:center; gap:12px; padding:16px 20px; border-bottom:1px solid var(--border); flex-wrap:wrap; }
.table-toolbar .grow { flex:1; }
.mini-search { display:flex; align-items:center; gap:8px; background:var(--grey-100); border-radius:9px; padding:8px 12px; min-width:200px; }
.mini-search input { border:none; background:none; outline:none; font-family:inherit; font-size:13px; width:100%; }
.mini-search svg { width:15px; height:15px; color:var(--muted); }

/* Badges & chips */
.badge { display:inline-flex; align-items:center; gap:5px; font-size:11.5px; font-weight:600; padding:3px 10px; border-radius:20px; }
.b-green{ background:var(--success-bg); color:var(--success);} .b-gold{background:var(--gold-100); color:var(--gold-600);}
.b-red{background:var(--error-bg); color:var(--error);} .b-navy{background:var(--navy-50); color:var(--navy-600);}
.b-grey{background:var(--grey-100); color:var(--grey-600);} .b-info{background:var(--info-bg); color:var(--info);}
.dot-s { width:7px; height:7px; border-radius:50%; display:inline-block; }

/* Filters */
.filter-bar { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; padding:20px 24px; }
@media(max-width:900px){ .filter-bar{grid-template-columns:repeat(2,1fr);} }
.field label { display:block; font-size:11.5px; font-weight:600; color:var(--muted); margin-bottom:6px; text-transform:uppercase; letter-spacing:.03em; }
.field select,.field input,.field textarea {
  width:100%; border:1px solid var(--border); border-radius:9px; padding:10px 12px; font-family:inherit; font-size:13.5px;
  background:var(--surface); color:var(--text); outline:none; transition:.15s;
}
.field select:focus,.field input:focus,.field textarea:focus { border-color:var(--navy-400); box-shadow:0 0 0 3px var(--navy-50); }
.field .hint { font-size:11px; color:var(--muted); margin-top:5px; }

/* Pagination */
.pager { display:flex; align-items:center; justify-content:space-between; padding:15px 20px; border-top:1px solid var(--border); flex-wrap:wrap; gap:12px; }
.pager .count { font-size:12.5px; color:var(--muted); }
.pg-btns { display:flex; gap:5px; }
.pg-btns button { width:34px; height:34px; border:1px solid var(--border); background:var(--surface); border-radius:8px; font-size:13px; color:var(--text); font-weight:600; }
.pg-btns button.active { background:var(--navy-700); color:#fff; border-color:var(--navy-700); }
.pg-btns button:disabled { opacity:.4; }

/* Tabs */
.tabs { display:flex; gap:4px; border-bottom:1px solid var(--border); margin-bottom:22px; overflow-x:auto; }
.tab { padding:11px 16px; font-size:13.5px; font-weight:600; color:var(--muted); border-bottom:2px solid transparent; white-space:nowrap; cursor:pointer; }
.tab.active { color:var(--navy-700); border-bottom-color:var(--gold-400); }
.tab:hover:not(.active){ color:var(--text); }
.tabs button.tab { background:none; border:none; border-bottom:2px solid transparent; font-family:inherit; cursor:pointer; }
.tabs button.tab.active { border-bottom-color:var(--gold-400); }
.local-tabs { display:block; }

/* Misc */
.row { display:flex; gap:16px; } .col { flex:1; min-width:0; }
.between { display:flex; align-items:center; justify-content:space-between; gap:14px; }
.muted { color:var(--muted); } .gold { color:var(--gold-600); }
.mt-0{margin-top:0}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mb-2{margin-bottom:16px}
.section-title { font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); margin-bottom:14px; }

/* Progress / bar chart */
.bars { display:flex; align-items:flex-end; gap:14px; height:170px; padding-top:10px; }
.bars .bar-col { flex:1; display:flex; flex-direction:column; align-items:center; gap:8px; height:100%; justify-content:flex-end; }
.bars .bar { width:60%; max-width:42px; border-radius:7px 7px 3px 3px; background:linear-gradient(var(--navy-400),var(--navy-600)); transition:.4s; }
.bars .bar.gold { background:linear-gradient(var(--gold-300),var(--gold-500)); }
.bars .bar-lbl { font-size:11px; color:var(--muted); font-weight:600; }

/* Donut */
.donut-wrap { display:flex; align-items:center; gap:24px; }
.donut { width:140px; height:140px; border-radius:50%; flex:0 0 140px; display:grid; place-items:center; position:relative; }
.donut .hole { width:96px; height:96px; background:var(--surface); border-radius:50%; display:grid; place-items:center; text-align:center; }
.donut .hole b { font-family:var(--font-head); font-size:26px; display:block; }
.donut .hole span { font-size:11px; color:var(--muted); }
.legend { display:flex; flex-direction:column; gap:11px; }
.legend .li { display:flex; align-items:center; gap:9px; font-size:13px; }
.legend .li b { margin-left:auto; font-weight:600; }

/* Calendar */
.cal { display:grid; grid-template-columns:repeat(7,1fr); gap:6px; }
.cal .dow { font-size:11px; font-weight:700; color:var(--muted); text-align:center; padding:6px 0; text-transform:uppercase; }
.cal .day { aspect-ratio:1; border:1px solid var(--grey-100); border-radius:9px; padding:7px; font-size:13px; font-weight:600; position:relative; }
.cal .day.muted-day { color:var(--grey-300); }
.cal .day.today { background:var(--navy-700); color:#fff; border-color:var(--navy-700); }
.cal .day .ev { position:absolute; bottom:6px; left:7px; display:flex; gap:3px; }
.cal .day .ev i { width:6px; height:6px; border-radius:50%; }

/* Gallery */
.gallery-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
@media(max-width:900px){ .gallery-grid{grid-template-columns:repeat(2,1fr);} }
.gal-item { border-radius:var(--r); overflow:hidden; aspect-ratio:4/3; position:relative; border:1px solid var(--border); }
.gal-item .ph { width:100%; height:100%; display:grid; place-items:center; color:#fff; font-family:var(--font-head); }
.gal-item .cap { position:absolute; left:0; right:0; bottom:0; padding:10px 12px; background:linear-gradient(transparent,rgba(13,22,38,.8)); color:#fff; font-size:12.5px; font-weight:600; }

/* Timeline / activity */
.activity { display:flex; flex-direction:column; }
.activity .it { display:flex; gap:13px; padding:13px 0; border-bottom:1px solid var(--grey-100); }
.activity .it:last-child { border-bottom:none; }
.activity .it .ai { width:34px; height:34px; border-radius:9px; flex:0 0 34px; display:grid; place-items:center; }
.activity .it .ai svg { width:16px; height:16px; }
.activity .it .at b { font-size:13px; font-weight:600; } .activity .it .at p { font-size:12px; color:var(--muted); }
.activity .it time { margin-left:auto; font-size:11px; color:var(--muted); white-space:nowrap; }

/* Form layout */
.form-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
@media(max-width:900px){ .form-grid{grid-template-columns:repeat(2,1fr);} }
@media(max-width:600px){ .form-grid{grid-template-columns:1fr;} }
.form-section { padding:24px; border-bottom:1px solid var(--border); }
.form-section:last-child { border-bottom:none; }
.fs-head { display:flex; align-items:center; gap:11px; margin-bottom:18px; }
.fs-head .n { width:28px; height:28px; border-radius:8px; background:var(--navy-50); color:var(--navy-700); display:grid; place-items:center; font-weight:700; font-size:13px; }
.fs-head h4 { font-size:15px; } .fs-head span { font-size:12px; color:var(--muted); }
.span-2 { grid-column:span 2; } .span-3 { grid-column:span 3; }
.form-foot { padding:18px 24px; display:flex; justify-content:flex-end; gap:10px; background:var(--grey-50); border-radius:0 0 var(--r-lg) var(--r-lg); }

/* Detail profile */
.profile-head { display:flex; gap:22px; align-items:center; padding:26px; }
.profile-head .pa { width:84px; height:84px; border-radius:20px; flex:0 0 84px; display:grid; place-items:center; color:#fff; font-family:var(--font-head); font-size:30px; }
.profile-head h2 { font-size:24px; } .profile-head .role { color:var(--muted); font-size:13.5px; margin-top:3px; }
.kv { display:grid; grid-template-columns:repeat(3,1fr); gap:2px 24px; }
.kv .k { font-size:11px; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); font-weight:600; padding-top:14px; }
.kv .v { font-size:14px; font-weight:500; padding-bottom:14px; border-bottom:1px solid var(--grey-100); }

/* Empty / placeholder map */
.map-ph { height:300px; border-radius:var(--r); background:
  linear-gradient(45deg,var(--navy-50) 25%,transparent 25%),
  linear-gradient(-45deg,var(--navy-50) 25%,transparent 25%),
  linear-gradient(45deg,transparent 75%,var(--navy-50) 75%),
  linear-gradient(-45deg,transparent 75%,var(--navy-50) 75%);
  background-size:24px 24px; background-position:0 0,0 12px,12px -12px,-12px 0;
  border:1px solid var(--border); display:grid; place-items:center; color:var(--navy-400); }

.banner { display:flex; align-items:center; gap:14px; padding:16px 20px; border-radius:var(--r); border:1px solid var(--gold-200); background:var(--gold-50); }
.banner svg { color:var(--gold-600); width:22px; height:22px; flex:0 0 22px; }
.banner b { font-size:14px; } .banner p { font-size:12.5px; color:var(--gold-600); }
.banner .btn { margin-left:auto; }

.toggle { width:42px; height:24px; border-radius:20px; background:var(--grey-300); position:relative; cursor:pointer; transition:.2s; flex:0 0 42px; }
.toggle.on { background:var(--success); }
.toggle::after { content:""; position:absolute; top:3px; left:3px; width:18px; height:18px; border-radius:50%; background:#fff; transition:.2s; }
.toggle.on::after { left:21px; }

.chiprow { display:flex; gap:8px; flex-wrap:wrap; }
.chip { font-size:12px; font-weight:600; padding:6px 12px; border-radius:8px; background:var(--grey-100); color:var(--grey-600); }
.chip.sel { background:var(--navy-700); color:#fff; }

/* Attendance grid */
.att-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:12px; }
.att-card { border:1px solid var(--border); border-radius:var(--r); padding:13px; display:flex; align-items:center; gap:10px; }
.att-card .seg { margin-left:auto; display:flex; gap:3px; }
.att-card .seg b { width:26px; height:26px; border-radius:7px; display:grid; place-items:center; font-size:11px; font-weight:700; cursor:pointer; background:var(--grey-100); color:var(--muted); }
.att-card .seg b.p { background:var(--success); color:#fff; }
.att-card .seg b.a { background:var(--error); color:#fff; }

.mobile-only{display:none}
@media(max-width:920px){
  .sidebar{position:fixed; z-index:60; transform:translateX(-100%); transition:.25s; box-shadow:var(--sh-lg);}
  .sidebar.open{transform:none;}
  .mobile-only{display:grid;}
  .search{display:none;}
  .content{padding:20px 16px 50px;}
  .topbar{padding:0 16px;}
}
