/* ============================================================================
   Cintatec Inspeção — Painel Administrativo
   Design system: "Data-Dense Dashboard" · Navy + Âmbar de segurança
   Tokens light/dark · componentes · movimento · acessibilidade
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@400;500;600;700&family=Source+Sans+3:wght@400;500;600;700&display=swap');

/* ---------- Design tokens ---------- */
:root {
  /* Marca */
  --navy-900: #0A1826;
  --navy-800: #10263F;
  --navy-700: #17334f;
  --amber-400: #FBBF24;
  --amber-500: #F59E0B;
  --amber-600: #D97706;
  --amber-700: #B45309;
  --on-amber: #1A1206;

  /* Status (contrato de domínio — não alterar os valores) */
  --st-pendente: #9E9E9E;
  --st-aprovado: #2E7D32;
  --st-aprovado-sem-doc: #1565C0;
  --st-reparavel: #F9A825;
  --st-reprovado: #C62828;
  --st-novo: #6A1B9A;

  /* Neutros — LIGHT */
  --bg: #EEF2F6;
  --surface: #FFFFFF;
  --surface-2: #F8FAFC;
  --surface-3: #F1F5F9;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --text: #0F172A;
  --text-2: #64748B;
  --text-3: #94A3B8;
  --danger: #C62828;
  --danger-soft: #FEECEC;
  --success: #2E7D32;

  /* Papéis semânticos */
  --accent: var(--amber-500);
  --accent-hover: var(--amber-600);
  --on-accent: var(--on-amber);
  --ring: rgba(245, 158, 11, .45);
  --sidebar-bg: var(--navy-800);
  --sidebar-text: #B7C4D4;
  --sidebar-text-strong: #F4F7FB;

  /* Elevação */
  --e1: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.08);
  --e2: 0 2px 6px rgba(15,23,42,.06), 0 6px 18px rgba(15,23,42,.08);
  --e3: 0 14px 40px rgba(15,23,42,.18);

  /* Raios */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 999px;

  /* Movimento */
  --t-fast: 120ms;
  --t-base: 200ms;
  --t-slow: 320ms;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-emph: cubic-bezier(.2, .9, .1, 1);

  --font-head: 'Lexend', system-ui, 'Segoe UI', sans-serif;
  --font-body: 'Source Sans 3', system-ui, 'Segoe UI', sans-serif;
  --sidebar-w: 236px;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0A1420;
  --surface: #12202F;
  --surface-2: #17293B;
  --surface-3: #1B3049;
  --border: #24384D;
  --border-strong: #33506B;
  --text: #E8EEF5;
  --text-2: #93A6BC;
  --text-3: #64798F;
  --danger: #F87171;
  --danger-soft: #2A1518;
  --success: #4ADE80;

  --accent: var(--amber-400);
  --accent-hover: var(--amber-500);
  --on-accent: #1A1206;
  --ring: rgba(251, 191, 36, .5);
  --sidebar-bg: #0A1826;
  --sidebar-text: #94A6BB;
  --sidebar-text-strong: #F4F7FB;

  --e1: 0 1px 2px rgba(0,0,0,.4);
  --e2: 0 4px 16px rgba(0,0,0,.45);
  --e3: 0 18px 48px rgba(0,0,0,.6);

  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background var(--t-base) var(--ease), color var(--t-base) var(--ease);
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; letter-spacing: -.01em; color: var(--text); }
h2 { font-size: 22px; }
h3 { font-size: 15px; }

.hidden { display: none !important; }
.muted { color: var(--text-2); font-size: 13px; }
.error { color: var(--danger); font-size: 13px; margin-top: 8px; }

/* Scrollbar sutil */
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: var(--text-3); background-clip: padding-box; }

/* ============================================================================
   Login
   ========================================================================== */
.login-screen {
  display: flex; align-items: center; justify-content: center;
  min-height: 100dvh; padding: 24px;
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(245,158,11,.14), transparent 55%),
    radial-gradient(1000px 700px at 110% 120%, rgba(21,101,192,.12), transparent 55%),
    linear-gradient(160deg, var(--navy-900), var(--navy-800) 60%, #0d2138);
}
.login-card {
  background: var(--surface);
  padding: 40px 36px 32px;
  border-radius: var(--r-lg);
  box-shadow: var(--e3);
  width: 100%; max-width: 380px;
  display: flex; flex-direction: column; gap: 14px;
  border: 1px solid var(--border);
  animation: cardRise var(--t-slow) var(--ease-emph) both;
}
.login-brand { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 8px; }
.login-badge {
  width: 60px; height: 60px; border-radius: 18px;
  background: linear-gradient(150deg, var(--navy-700), var(--navy-900));
  display: grid; place-items: center; color: var(--amber-500);
  box-shadow: var(--e2), inset 0 0 0 1px rgba(255,255,255,.06);
}
.login-badge svg { width: 34px; height: 34px; }
.login-card h1 { font-family: var(--font-head); font-size: 22px; color: var(--text); text-align: center; }
.login-card .muted { text-align: center; margin-top: -6px; }
.login-card label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .03em; }
.login-card .btn.primary { margin-top: 6px; padding: 12px; font-size: 14px; }
.login-foot { text-align: center; font-size: 12px; color: var(--text-3); margin-top: 4px; }

/* ============================================================================
   Shell
   ========================================================================== */
.app { display: flex; min-height: 100dvh; }

.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex; flex-direction: column;
  position: fixed; inset: 0 auto 0 0; z-index: 30;
  border-right: 1px solid rgba(255,255,255,.05);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 20px 18px 18px; border-bottom: 1px solid rgba(255,255,255,.07); }
.brand .brand-mark { flex: none; width: 34px; height: 34px; color: var(--amber-500); display: grid; place-items: center; }
.brand .brand-mark svg { width: 30px; height: 30px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; overflow: hidden; }
.brand-text strong { font-family: var(--font-head); font-size: 17px; color: var(--sidebar-text-strong); letter-spacing: .01em; }
.brand-text span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--amber-500); font-weight: 600; }

.sidebar nav { flex: 1; padding: 14px 12px; display: flex; flex-direction: column; gap: 3px; overflow-y: auto; }
.nav-btn {
  --nav-ind: transparent;
  position: relative;
  display: flex; align-items: center; gap: 12px;
  background: none; border: none; color: var(--sidebar-text);
  text-align: left; padding: 11px 12px; border-radius: var(--r-sm);
  cursor: pointer; font-size: 14px; font-weight: 500; font-family: var(--font-body);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  white-space: nowrap;
}
.nav-btn svg { width: 20px; height: 20px; flex: none; stroke-width: 1.9; opacity: .9; transition: opacity var(--t-fast); }
.nav-btn::before {
  content: ""; position: absolute; left: 0; top: 50%; translate: 0 -50%;
  width: 3px; height: 0; border-radius: 3px; background: var(--amber-500);
  transition: height var(--t-base) var(--ease);
}
.nav-btn:hover { background: rgba(255,255,255,.06); color: var(--sidebar-text-strong); }
.nav-btn.active { background: rgba(245,158,11,.14); color: #fff; }
.nav-btn.active svg { color: var(--amber-500); opacity: 1; }
.nav-btn.active::before { height: 22px; }

.sidebar-footer { padding: 14px 14px 16px; border-top: 1px solid rgba(255,255,255,.07); display: flex; flex-direction: column; gap: 10px; }
.sidebar-user { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--sidebar-text); overflow: hidden; }
.sidebar-user .avatar { flex: none; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(150deg, var(--amber-500), var(--amber-700)); color: var(--on-amber); display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.sidebar-user .u-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-actions { display: flex; gap: 8px; }
.sidebar-actions .btn { flex: 1; justify-content: center; }

.content { flex: 1; margin-left: var(--sidebar-w); padding: 26px 30px 40px; min-width: 0; }
.view-header { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.view h2 { margin-bottom: 16px; }
.view-header h2 { margin-bottom: 0; }
.view-sub { color: var(--text-2); font-size: 13.5px; margin: -8px 0 18px; }

/* animação de troca de vista */
.view { animation: viewIn var(--t-slow) var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ============================================================================
   Botões
   ========================================================================== */
.btn {
  --btn-bg: var(--surface);
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--border-strong); background: var(--btn-bg); color: var(--text);
  padding: 9px 15px; border-radius: var(--r-sm); cursor: pointer;
  font-size: 13.5px; font-weight: 600; font-family: var(--font-body);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), filter var(--t-fast);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:hover { background: var(--surface-2); border-color: var(--text-3); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: transparent; box-shadow: 0 1px 2px rgba(180,83,9,.35); }
.btn.primary:hover { background: var(--accent-hover); filter: none; box-shadow: 0 4px 14px rgba(217,119,6,.35); transform: translateY(-1px); }
.btn.primary:active { transform: translateY(0) scale(.985); }
.btn.danger { background: var(--danger); color: #fff; border-color: transparent; }
.btn.danger:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--surface-3); color: var(--text); }
.btn.small { padding: 5px 10px; font-size: 12px; border-radius: 7px; }
.btn.icon-only { padding: 8px; }
.btn.icon-only svg { width: 18px; height: 18px; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ============================================================================
   Inputs
   ========================================================================== */
input, select, textarea {
  border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  padding: 9px 11px; font-size: 14px; font-family: inherit;
  background: var(--surface); color: var(--text); min-height: 40px;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background var(--t-fast);
}
input::placeholder, textarea::placeholder { color: var(--text-3); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
textarea { resize: vertical; min-height: 68px; line-height: 1.5; }
select { cursor: pointer; }
label { color: var(--text); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; align-items: center; }
.filters input[type="text"] { min-width: 220px; flex: 1 1 220px; max-width: 340px; }
.filters .search { position: relative; flex: 1 1 240px; max-width: 360px; display: flex; }
.filters .search svg { position: absolute; left: 11px; top: 50%; translate: 0 -50%; width: 17px; height: 17px; color: var(--text-3); pointer-events: none; }
.filters .search input { padding-left: 34px; width: 100%; max-width: none; }

/* ============================================================================
   KPI cards
   ========================================================================== */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(184px, 1fr)); gap: 14px; margin-bottom: 24px; }
.kpi {
  --kpi: var(--text-3);
  position: relative; overflow: hidden; text-align: left;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 16px 16px 15px;
  box-shadow: var(--e1);
  display: flex; flex-direction: column; gap: 2px;
  animation: cardRise var(--t-slow) var(--ease-emph) both;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
  font: inherit; cursor: default; width: 100%;
}
.kpi::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--kpi); opacity: .9; }
.kpi-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.kpi-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--kpi); background: color-mix(in srgb, var(--kpi) 14%, transparent); }
.kpi-icon svg { width: 19px; height: 19px; stroke-width: 2; }
.kpi-num { font-family: var(--font-head); font-size: 28px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.kpi-label { font-size: 12.5px; color: var(--text-2); font-weight: 500; }
.kpi--action { cursor: pointer; }
.kpi--action:hover { transform: translateY(-3px); box-shadow: var(--e2); border-color: var(--border-strong); }
.kpi--action:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }
.kpi--action:active { transform: translateY(-1px) scale(.99); }

/* ============================================================================
   Panels + grid dashboard
   ========================================================================== */
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 18px 18px 8px; box-shadow: var(--e1); animation: cardRise var(--t-slow) var(--ease-emph) both; }
.panel > h3 { margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.panel > h3 svg { width: 17px; height: 17px; color: var(--text-2); }
.panel.padded { padding-bottom: 18px; }

/* ============================================================================
   Tabelas
   ========================================================================== */
.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); overflow-x: auto; box-shadow: var(--e1); animation: cardRise var(--t-slow) var(--ease-emph) both; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
  text-align: left; padding: 12px 14px; background: var(--surface-3);
  font-size: 11px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--text-2); font-weight: 700; white-space: nowrap;
  position: sticky; top: 0; z-index: 1; border-bottom: 1px solid var(--border);
}
.table td { padding: 11px 14px; border-top: 1px solid var(--border); vertical-align: middle; color: var(--text); }
.table tbody tr { transition: background var(--t-fast) var(--ease); }
.table tbody tr:hover td { background: var(--surface-2); }
.table td.actions { white-space: nowrap; display: flex; gap: 6px; flex-wrap: wrap; }
.table .num-badge { display: inline-flex; align-items: center; gap: 5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.table .num-badge svg { width: 14px; height: 14px; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: var(--r-pill); color: #fff; font-size: 11px; font-weight: 700; white-space: nowrap; letter-spacing: .01em; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.85); }
.tag-soft { display: inline-block; padding: 2px 8px; border-radius: var(--r-pill); background: var(--surface-3); color: var(--text-2); font-size: 11.5px; font-weight: 600; border: 1px solid var(--border); }

/* ============================================================================
   Galeria de fotos
   ========================================================================== */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.photo-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--e1); animation: cardRise var(--t-slow) var(--ease-emph) both; transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease); }
.photo-card:hover { transform: translateY(-3px); box-shadow: var(--e2); }
.photo-card .ph-media { position: relative; aspect-ratio: 4 / 3; background: var(--surface-3); overflow: hidden; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; transition: transform var(--t-slow) var(--ease); }
.photo-card:hover img { transform: scale(1.04); }
.photo-card .info { padding: 10px 12px; font-size: 12.5px; display: flex; flex-direction: column; gap: 3px; }
.photo-card .info strong { font-size: 13px; }
.photo-card .actions { padding: 0 12px 12px; display: flex; gap: 6px; }

/* ============================================================================
   Modal
   ========================================================================== */
.modal { position: fixed; inset: 0; background: rgba(6, 15, 25, .55); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; z-index: 60; padding: 20px; animation: fadeIn var(--t-base) var(--ease); }
.modal-card { background: var(--surface); border-radius: var(--r-lg); width: 100%; max-width: 880px; max-height: 92dvh; display: flex; flex-direction: column; border: 1px solid var(--border); box-shadow: var(--e3); animation: modalIn var(--t-slow) var(--ease-emph); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.modal-header h3 { font-size: 17px; }
.modal-body { padding: 22px; overflow-y: auto; }

.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.form-grid label, .form-full label { display: flex; flex-direction: column; gap: 5px; font-size: 11.5px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .03em; }
.form-grid label input, .form-grid label select, .form-full label input, .form-full label textarea, .form-full label select { font-weight: 400; text-transform: none; letter-spacing: normal; color: var(--text); }
.form-full { margin-top: 14px; display: flex; flex-direction: column; gap: 14px; }
.form-actions { margin-top: 20px; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.status-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.status-option { border: 2px solid transparent; border-radius: var(--r-sm); padding: 8px 13px; color: #fff; cursor: pointer; font-size: 12px; font-weight: 700; opacity: .5; transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-fast); }
.status-option:hover { opacity: .8; }
.status-option.selected { opacity: 1; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--text); transform: translateY(-1px); }
.checklist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.report-buttons { display: flex; gap: 10px; margin: 16px 0; flex-wrap: wrap; }
.detail-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.detail-photos img { width: 116px; height: 92px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface-3); }

/* ============================================================================
   Toasts
   ========================================================================== */
.toast-wrap { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: flex; flex-direction: column; gap: 10px; max-width: min(380px, calc(100vw - 40px)); }
.toast {
  display: flex; align-items: flex-start; gap: 11px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-left: 4px solid var(--text-3);
  border-radius: var(--r-md); padding: 13px 15px; box-shadow: var(--e3);
  font-size: 13.5px; font-weight: 500;
  animation: toastIn var(--t-slow) var(--ease-emph);
}
.toast.leaving { animation: toastOut var(--t-base) var(--ease) forwards; }
.toast svg { width: 19px; height: 19px; flex: none; margin-top: 1px; }
.toast.success { border-left-color: var(--success); } .toast.success svg { color: var(--success); }
.toast.error { border-left-color: var(--danger); } .toast.error svg { color: var(--danger); }
.toast.info { border-left-color: var(--accent); } .toast.info svg { color: var(--accent); }
.toast .t-close { margin-left: auto; background: none; border: none; color: var(--text-3); cursor: pointer; padding: 2px; display: grid; }
.toast .t-close:hover { color: var(--text); }

/* ============================================================================
   Confirm dialog
   ========================================================================== */
.confirm-body { display: flex; gap: 14px; align-items: flex-start; }
.confirm-icon { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.confirm-icon svg { width: 22px; height: 22px; }
.confirm-text { font-size: 14px; color: var(--text); line-height: 1.55; }
.modal-card.dialog { max-width: 460px; }

/* ============================================================================
   Skeleton loaders
   ========================================================================== */
.skel { position: relative; overflow: hidden; background: var(--surface-3); border-radius: 6px; }
.skel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--text-3) 22%, transparent), transparent); transform: translateX(-100%); animation: shimmer 1.3s infinite; }
.skel-kpi { height: 96px; border-radius: var(--r-md); }
.skel-row { height: 44px; border-radius: 8px; margin-bottom: 8px; }
.skel-card { height: 240px; border-radius: var(--r-md); }

/* ============================================================================
   Empty states
   ========================================================================== */
.empty { text-align: center; padding: 42px 20px; color: var(--text-2); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty svg { width: 40px; height: 40px; color: var(--text-3); }
.empty p { font-size: 14px; max-width: 420px; }

/* ============================================================================
   Keyframes
   ========================================================================== */
@keyframes cardRise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px) scale(.96); } }
@keyframes shimmer { 100% { transform: translateX(100%); } }
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 900ms linear infinite; }

/* ============================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 1000px) {
  :root { --sidebar-w: 72px; }
  .brand { justify-content: center; padding: 18px 8px; }
  .brand-text, .nav-btn span, .sidebar-user .u-name, .sidebar-actions .btn span { display: none; }
  .nav-btn { justify-content: center; padding: 12px; }
  .nav-btn::before { display: none; }
  .sidebar-user { justify-content: center; }
  .sidebar-actions { flex-direction: column; }
  .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .content { padding: 18px 14px 32px; }
  h2 { font-size: 19px; }
  .cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .filters input[type="text"], .filters .search { max-width: none; }
  .toast-wrap { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

/* ============================================================================
   Acessibilidade — movimento reduzido
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
