/* =====================================================
   Gestion S.A.V — thème SCOFI Informatique
   Repris de Parc Info (clients.interv.top), du site
   maintenance et du monitoring NAS (theme.css / monitoring.css)
   0AB6A1 turquoise · 0A9A8A turquoise2 · 0A675F teal
   1C5440 vert profond · A3B390 sauge · FCF9D9 crème
   ===================================================== */

:root {
  --tq: #0AB6A1; --tq2: #0A9A8A; --teal: #0A675F; --green: #1C5440; --sage: #A3B390; --cream: #FCF9D9;
  --bg: #FCF9D9; --surface: #ffffff; --surface2: #f6f3df;
  --line: rgba(28, 84, 64, .14); --line2: rgba(28, 84, 64, .26);
  --txt: #14302a; --muted: #5d7268; --muted2: #7d9183;
  /* états (monitoring NAS) */
  --ok: #0AB6A1; --ok-dark: #078A7A;
  --warn: #D9902B; --warn-dark: #A96D1C;
  --fail: #C0392B; --fail-dark: #96271B;
  --mute: #8A8677;
  --font-d: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --font-b: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --font-m: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(28, 84, 64, .05);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; line-height: 1.5;
  font-family: var(--font-b); font-size: 14.5px; color: var(--txt);
  background: var(--bg);
  background-image:
    radial-gradient(1100px 520px at 10% -10%, rgba(10, 182, 161, .10), transparent 60%),
    radial-gradient(900px 460px at 100% 0%, rgba(10, 103, 95, .08), transparent 55%);
  background-attachment: fixed;
}
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-family: var(--font-d); color: var(--green); line-height: 1.2; }
h1 { font-weight: 600; font-size: 1.85rem; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
h2 { font-weight: 600; font-size: 1.02rem; display: flex; align-items: center; gap: .6rem; }
.muted { color: var(--muted); }
.small { font-size: .84rem; }
.strong { font-weight: 600; }
.mono { font-family: var(--font-m); font-size: .92em; letter-spacing: .02em; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ic { width: 18px; height: 18px; flex: none; vertical-align: middle; }
.ic-sm { width: 15px; height: 15px; }
.ic-faint { opacity: .45; }

/* ---------- Topbar (Parc Info) ---------- */
.topbar {
  display: flex; align-items: center; gap: 1.2rem;
  padding: .75rem 2rem; border-bottom: 1px solid var(--line);
  background: rgba(252, 249, 217, .85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 20;
}
.brand { display: flex; align-items: center; gap: .8rem; flex: none; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 38px; width: auto; display: block; border-radius: 6px; }
.brand-sep { width: 1px; height: 28px; background: var(--line2); }
.brand-name { font-family: var(--font-d); font-weight: 700; font-size: 1.12rem; letter-spacing: .3px; white-space: nowrap; }
.brand-name b { color: var(--green); }
.brand-name span { color: var(--tq2); }
.topnav { display: flex; align-items: center; gap: 1rem; flex: 1; min-width: 0; }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a { color: var(--muted); font-size: .9rem; font-weight: 500; padding: .5rem .85rem; border-radius: 8px; transition: .15s; white-space: nowrap; }
.nav a:hover { color: var(--green); background: rgba(28, 84, 64, .06); text-decoration: none; }
.nav a.actif { color: var(--green); background: rgba(28, 84, 64, .08); font-weight: 600; }
.top-search { position: relative; flex: 1; max-width: 340px; margin-left: auto; }
.top-search .ic { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted2); }
.top-search input { width: 100%; padding: .55rem .8rem .55rem 2.3rem; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font: inherit; font-size: .88rem; color: var(--txt); }
.top-search input:focus { outline: none; border-color: var(--tq); box-shadow: 0 0 0 3px rgba(10, 182, 161, .16); }
.user { display: flex; align-items: center; gap: .35rem; padding-left: 1rem; border-left: 1px solid var(--line); }
.user form { margin: 0; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line2); color: var(--teal); font-weight: 600; font-size: .8rem; font-family: var(--font-d); margin-right: .2rem; }
.user-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--muted); background: none; border: 0; cursor: pointer; }
.user-ic:hover { color: var(--green); background: rgba(28, 84, 64, .06); }
.menu-btn { display: none; margin-left: auto; }

/* ---------- Conteneur ---------- */
.wrap { max-width: 1240px; margin: 0 auto; padding: 2rem 2rem 3rem; }
.footer { text-align: center; padding: 1.5rem 1rem 2rem; color: var(--muted2); font-size: .8rem; font-family: var(--font-m); }

/* ---------- En-tête de page ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.page-head p { margin: .45rem 0 0; }
.kicker { color: var(--tq2); font-family: var(--font-m); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: .45rem; }
.head-actions { display: flex; gap: .6rem; }
.back { display: inline-flex; align-items: center; gap: .3rem; color: var(--teal); font-family: var(--font-m); font-size: .8rem; margin-bottom: .8rem; }
.back .ic { width: 14px; height: 14px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-b); font-weight: 600; font-size: .88rem; line-height: 1.3;
  padding: .65rem 1.1rem; border-radius: 10px; cursor: pointer; white-space: nowrap; transition: .15s;
  background: var(--surface); color: var(--teal); border: 1px solid var(--line2);
}
.btn:hover { background: rgba(28, 84, 64, .06); text-decoration: none; }
.btn .ic { width: 16px; height: 16px; stroke-width: 2.4; }
.btn-primary { background: linear-gradient(135deg, var(--tq), var(--tq2)); color: #fff; border: 0; box-shadow: 0 6px 18px rgba(10, 182, 161, .28); }
.btn-primary:hover { background: linear-gradient(135deg, var(--tq), var(--tq2)); transform: translateY(-1px); box-shadow: 0 10px 26px rgba(10, 182, 161, .36); }
.btn-ghost { background: transparent; }
.btn-danger-ghost { background: transparent; border-color: transparent; color: var(--fail-dark); }
.btn-danger-ghost:hover { background: #FBEAE8; }
.btn-block { width: 100%; }
.btn:focus-visible, .icon-btn:focus-visible, a:focus-visible, .user-ic:focus-visible { outline: 2px solid var(--tq); outline-offset: 2px; }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--muted); background: none; border: 0; cursor: pointer; }
.icon-btn:hover { background: rgba(28, 84, 64, .06); color: var(--green); text-decoration: none; }
.icon-btn.accent { color: #fff; background: linear-gradient(135deg, var(--tq), var(--tq2)); }
.icon-btn.accent:hover { box-shadow: 0 4px 12px rgba(10, 182, 161, .3); }
.pulse { animation: pulse 1.6s ease-in-out 3; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(10, 182, 161, .22); } }

/* ---------- Statistiques (tableaux de bord maintenance / NAS) ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.8rem; }
.stat { position: relative; overflow: hidden; display: block; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--tq); border-radius: 14px; padding: 1rem 1.25rem; box-shadow: var(--shadow); color: inherit; transition: .18s; }
.stat::after { content: ""; position: absolute; right: -20px; top: -20px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, rgba(10, 182, 161, .10), transparent 70%); }
.stat:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(28, 84, 64, .14); text-decoration: none; }
.stat .lab { display: block; color: var(--muted); font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.stat .num { display: block; font-family: var(--font-d); font-weight: 700; font-size: 2rem; color: var(--green); line-height: 1.1; margin-top: .3rem; }
.stat-fail { border-left-color: var(--fail); }
.stat-fail .num { color: var(--fail-dark); }
.stat-fail::after { background: radial-gradient(circle, rgba(192, 57, 43, .10), transparent 70%); }
.stat-warn { border-left-color: var(--warn); }
.stat-warn .num { color: var(--warn-dark); }
.stat-warn::after { background: radial-gradient(circle, rgba(217, 144, 43, .12), transparent 70%); }
.stat-ok { border-left-color: var(--teal); }

/* ---------- Cartes ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 1.35rem 1.4rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.card-head h2::before { content: ""; width: 3px; height: 1.1em; background: linear-gradient(180deg, var(--tq), var(--teal)); border-radius: 2px; }
.card-head h2 .ic { display: none; }
.link-sm { font-size: .84rem; font-weight: 600; }
.narrow { max-width: 480px; }
.stack { display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.1rem; align-items: start; }
.empty { text-align: center; padding: 3rem 1.5rem; color: var(--muted); }
.note-card { border-style: dashed; border-color: var(--line2); background: rgba(255, 255, 255, .7); }
.client-card { border-left: 3px solid var(--tq); }

/* ---------- Tableaux (Parc Info) ---------- */
.table-card { padding: 0; overflow-x: auto; border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table thead th { background: var(--teal); color: var(--cream); text-align: left; padding: .75rem 1rem; font-weight: 600; font-family: var(--font-d); font-size: .8rem; letter-spacing: .3px; white-space: nowrap; }
.table tbody td { padding: .72rem 1rem; border-top: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:nth-child(even) { background: rgba(163, 179, 144, .07); }
.table tbody tr:hover { background: rgba(10, 182, 161, .07); }
.table.clickable tbody tr { cursor: pointer; }
.table td a { color: inherit; }
.table td.strong a { color: var(--green); }
.table tr.late td { background: #FBEAE8; }
.table tr.late:hover td { background: #F6DEDB; }
.table tr.late td.strong a, .table tr.late td:last-child { color: var(--fail-dark); }
.late-ic { color: var(--fail); margin-right: .3rem; }
/* PC terminés : ligne vert d'eau bien visible */
.table tbody tr.done td { background: #BFEDE4; color: var(--green); font-weight: 600; }
.table tbody tr.done td:first-child { box-shadow: inset 5px 0 0 var(--tq2); }
.table tbody tr.done:hover td { background: #A9E5D9; }
.table tr.done td.strong a { color: var(--green); }
.table tr.done .badge-done { background: var(--tq2); color: #fff; border-color: var(--tq2); }
/* Séparateurs de groupes (vue atelier) */
.table tbody tr.group-sep td { background: var(--tq2); color: #fff; font-family: var(--font-d); font-weight: 600; font-size: .82rem; letter-spacing: .3px; padding: .5rem 1rem; }
.table tbody tr.group-sep.group-encours td { background: var(--surface2); color: var(--green); }
.table tbody tr.group-sep .ic { vertical-align: -2px; margin-right: .3rem; }
.table tbody tr.group-sep:hover td { filter: none; }
.th-sort { display: inline-flex; align-items: center; gap: .3rem; color: inherit !important; }
.th-sort:hover { text-decoration: none; color: #fff !important; }
.th-sort .ic-faint { opacity: .5; }
.clip { max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.col-actions { width: 1%; white-space: nowrap; text-align: right; }
.col-actions .icon-btn { width: 30px; height: 30px; }

/* ---------- Pastilles d'état (status-pill Parc Info + couleurs NAS) ---------- */
.badge { display: inline-flex; align-items: center; gap: .4rem; padding: .22rem .7rem; border-radius: 999px; font-family: var(--font-m); font-size: .74rem; font-weight: 600; white-space: nowrap; border: 1px solid; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-todo { background: rgba(138, 134, 119, .12); color: #6B6859; border-color: rgba(138, 134, 119, .3); }
.badge-doing { background: rgba(217, 144, 43, .12); color: var(--warn-dark); border-color: rgba(217, 144, 43, .3); }
.badge-done { background: rgba(10, 182, 161, .12); color: var(--teal); border-color: rgba(10, 182, 161, .3); }
.badge-out { background: rgba(163, 179, 144, .2); color: #4a6b1f; border-color: rgba(163, 179, 144, .5); }
.badge-late { background: #FBEAE8; color: var(--fail-dark); border-color: rgba(192, 57, 43, .3); }
.badge-late::before { display: none; }
h1 .badge { font-size: .78rem; }
.prio { display: inline-flex; align-items: center; gap: .45rem; font-size: .84rem; font-weight: 600; white-space: nowrap; color: var(--muted); }
.prio::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--sage); }
.prio-normal { color: var(--teal); }
.prio-normal::before { background: var(--tq); }
.prio-high { color: var(--fail-dark); }
.prio-high::before { background: var(--fail); }
.pill { display: inline-block; margin-left: .5rem; padding: .1rem .55rem; border-radius: 999px; background: rgba(10, 182, 161, .10); color: var(--teal); border: 1px solid rgba(10, 182, 161, .22); font-size: .72rem; font-weight: 600; vertical-align: 1px; }
.fb { display: inline-flex; vertical-align: middle; margin-left: .3rem; }
.fb .ic { width: 15px; height: 15px; }
.fb-1 { color: var(--fail); }
.fb-2 { color: var(--warn); }
.fb-3 { color: var(--tq2); }

/* ---------- Onglets / filtres (périodes NAS) ---------- */
.tabs { display: flex; gap: .5rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.tab { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .95rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line2); color: var(--teal); font-weight: 600; font-size: .84rem; white-space: nowrap; }
.tab:hover { border-color: var(--tq); text-decoration: none; }
.tab.active { background: var(--teal); border-color: var(--teal); color: #fff; }
.tab-n { font-family: var(--font-m); font-size: .72rem; padding: 0 .45rem; border-radius: 999px; background: rgba(10, 103, 95, .1); }
.tab.active .tab-n { background: rgba(255, 255, 255, .2); }
.toolbar { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.search-box { position: relative; flex: 1; min-width: 240px; max-width: 560px; }
.search-box .ic { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted2); }
.search-box input { width: 100%; padding: .8rem 1rem .8rem 2.8rem; border-radius: 11px; font-size: .95rem; }
.letters { display: flex; flex-wrap: wrap; gap: .25rem; margin-bottom: 1.2rem; }
.letters a { min-width: 32px; padding: .3rem .5rem; text-align: center; border-radius: 8px; color: var(--muted); font-family: var(--font-m); font-weight: 500; font-size: .82rem; }
.letters a:hover { background: rgba(28, 84, 64, .06); color: var(--green); text-decoration: none; }
.letters a.active { background: linear-gradient(135deg, var(--tq), var(--tq2)); color: #fff; box-shadow: 0 3px 10px rgba(10, 182, 161, .28); }
.pager { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 1.2rem; color: var(--muted); font-family: var(--font-m); font-size: .84rem; }
.pager a { font-weight: 600; }

/* ---------- Formulaires (Parc Info) ---------- */
.form { display: flex; flex-direction: column; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.card .field:last-child, .login-box .field { margin-bottom: 0; }
.field > span { font-family: var(--font-d); font-weight: 500; font-size: .86rem; color: var(--green); }
input[type=text], input[type=search], input[type=password], input[type=email], input[type=tel], input[type=date], select, textarea {
  width: 100%; padding: .65rem .75rem; border: 1px solid var(--line); border-radius: 9px;
  background: #fcfdfb; color: var(--txt); font-family: var(--font-b); font-size: .92rem; transition: .15s;
}
input::placeholder, textarea::placeholder { color: var(--muted2); }
textarea { resize: vertical; min-height: 70px; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--tq); box-shadow: 0 0 0 3px rgba(10, 182, 161, .16); }
.has-error input, .has-error textarea, .has-error select { border-color: var(--fail); }
.err { color: var(--fail-dark); font-size: .82rem; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.row-cp { display: grid; grid-template-columns: 120px 1fr; gap: .9rem; }
.input-suffix { position: relative; }
.input-suffix input { padding-right: 2rem; }
.input-suffix span { position: absolute; right: .8rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.seg { display: flex; flex-wrap: wrap; gap: .4rem; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: .42rem .9rem; border: 1px solid var(--line2); border-radius: 999px; font-size: .84rem; font-weight: 600; color: var(--muted); background: var(--surface); transition: .15s; }
.seg label:hover span { border-color: var(--tq); color: var(--green); }
.seg input:checked + span { background: linear-gradient(135deg, var(--tq), var(--tq2)); border-color: transparent; color: #fff; box-shadow: 0 4px 12px rgba(10, 182, 161, .25); }
.seg input:focus-visible + span { outline: 2px solid var(--tq); outline-offset: 2px; }
.seg-etat .seg-todo input:checked + span { background: var(--mute); box-shadow: none; }
.seg-etat .seg-doing input:checked + span { background: var(--warn); box-shadow: 0 4px 12px rgba(217, 144, 43, .25); }
.seg-etat .seg-done input:checked + span { background: linear-gradient(135deg, var(--tq), var(--tq2)); }
.seg-etat .seg-out input:checked + span { background: var(--green); box-shadow: none; }
.actions { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.spacer { flex: 1; }

/* ---------- Messages ---------- */
.flash { display: flex; align-items: center; gap: .6rem; padding: .75rem 1rem; border-radius: 9px; margin-bottom: 1.2rem; font-size: .9rem; font-weight: 500; }
.flash-ok { background: rgba(10, 182, 161, .12); color: var(--teal); border: 1px solid rgba(10, 182, 161, .25); }
.flash-error { background: rgba(180, 80, 47, .12); color: var(--fail-dark); border: 1px solid rgba(180, 80, 47, .25); }
.flash-info { background: var(--surface2); color: var(--muted); border: 1px solid var(--line); }

/* ---------- Fiches ---------- */
.client-name { font-family: var(--font-d); font-size: 1.12rem; font-weight: 600; color: var(--green); margin: 0 0 .6rem; }
.contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; font-size: .9rem; }
.contact li { display: flex; gap: .65rem; align-items: flex-start; }
.contact .ic { color: var(--tq2); width: 16px; height: 16px; margin-top: 2px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.1rem; border-left: 2px solid var(--line2); display: flex; flex-direction: column; gap: 1rem; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: calc(-1.1rem - 6px); top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--tq); }
.timeline li.tl-fin::before { background: var(--tq); }
.tl-head { display: flex; flex-wrap: wrap; gap: .2rem .7rem; font-size: .84rem; }
.tl-head strong { color: var(--green); }
.tl-head .muted { font-family: var(--font-m); font-size: .76rem; }
.tl-body { margin-top: .2rem; font-size: .9rem; overflow-wrap: anywhere; }
.tl-fin .tl-body { color: var(--teal); font-weight: 700; display: flex; align-items: center; gap: .35rem; }
.int-list { list-style: none; margin: 0; padding: 0; }
.int-list li a { display: block; padding: .8rem .7rem; border-top: 1px solid var(--line); color: inherit; border-radius: 8px; transition: .15s; }
.int-list li:first-child a { border-top: 0; }
.int-list li a:hover { background: rgba(10, 182, 161, .06); text-decoration: none; }
.int-list li.late a { background: #FBEAE8; }
.int-list li.late .mono { color: var(--fail-dark); }
.int-list li.done a { background: #BFEDE4; box-shadow: inset 4px 0 0 var(--tq2); }
.int-top { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.int-top .mono { color: var(--green); font-weight: 600; }
.push { margin-left: auto; font-family: var(--font-m); }
.int-desc { color: var(--muted); font-size: .86rem; margin-top: .25rem; }

/* ---------- Connexion (Parc Info) ---------- */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1.5rem;
  background:
    radial-gradient(circle at 25% 15%, rgba(10, 182, 161, .16), transparent 55%),
    radial-gradient(circle at 80% 85%, rgba(10, 103, 95, .14), transparent 55%),
    var(--cream);
}
.login-box { background: var(--surface); border-radius: 18px; box-shadow: 0 20px 50px rgba(28, 84, 64, .18); padding: 2.2rem 2.4rem 2.4rem; width: 100%; max-width: 400px; border: 1px solid var(--line); }
.login-logo { display: block; width: 190px; max-width: 70%; height: auto; margin: 0 auto 1.4rem; }
.logobox { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin: 0 auto 1rem; color: #fff; background: linear-gradient(135deg, var(--tq), var(--teal)); box-shadow: 0 8px 22px rgba(10, 182, 161, .3); }
.logobox .ic { width: 28px; height: 28px; }
.login-box h1 { justify-content: center; font-size: 1.5rem; margin-bottom: .3rem; }
.login-box .sub { text-align: center; color: var(--muted); font-size: .88rem; margin: 0 0 1.6rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1150px) {
  .hide-md { display: none; }
  .top-search { max-width: 240px; }
}
@media (max-width: 960px) {
  .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .menu-btn { display: inline-grid; }
  .topbar { flex-wrap: wrap; padding: .7rem 1.2rem; }
  .topnav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: .6rem; padding: .4rem 0 .6rem; }
  .topnav.open { display: flex; }
  .nav { flex-direction: column; align-items: stretch; }
  .top-search { max-width: none; margin: 0; }
  .user { border-left: 0; padding-left: 0; }
}
@media (max-width: 680px) {
  .wrap { padding: 1.4rem 1rem 2.5rem; }
  .hide-sm { display: none; }
  h1 { font-size: 1.5rem; }
  .brand-logo { height: 30px; }
  .brand-name { font-size: 1rem; }
  .table thead th, .table tbody td { padding: .6rem .65rem; }
  .row-2, .row-cp { grid-template-columns: 1fr; gap: 0; }
  .page-head .btn { width: 100%; }
}
@media (max-width: 420px) {
  .brand-sep, .brand-name { display: none; }
  .stats { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .stat .num { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
