/* ===== FTW Power BI Portal — tema escuro inspirado no site FTW ===== */
:root {
  --bg: #0a0a0a;
  --bg-bar: #000000;
  --surface: #151515;
  --surface-2: #1c1c1c;
  --surface-3: #232323;
  --border: #2b2b2b;
  --border-soft: #202020;
  --text: #f4f4f4;
  --text-muted: #9aa0a6;
  --text-dim: #6b7075;
  --red: #e10600;
  --red-bright: #ff2419;
  --red-dim: #7a0f0a;
  --green: #19c37d;
  --amber: #f5a623;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
}

/* ===== Tema claro (aplicado via data-theme no <html>; escuro e o padrao) ===== */
:root[data-theme="light"] {
  --bg: #f4f5f7;
  --bg-bar: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f2f4;
  --surface-3: #e8eaed;
  --border: #d9dbe0;
  --border-soft: #e7e9ec;
  --text: #1b1d21;
  --text-muted: #5c6167;
  --text-dim: #9aa0a6;
  --shadow: 0 8px 30px rgba(20, 20, 30, 0.12);
}
:root[data-theme="light"] .header { background: linear-gradient(180deg, #ffffff, #f6f6f8); }
:root[data-theme="light"] .catnav button.active { color: var(--text); }
:root[data-theme="light"] .btn:hover { background: #dfe1e5; }
:root[data-theme="light"] .btn.primary:hover { background: var(--red-bright); }
:root[data-theme="light"] .btn.danger { color: #c62828; }
:root[data-theme="light"] .login-wrap { background: radial-gradient(120% 120% at 50% -10%, #ffe3e1, #f4f5f7 55%); }
:root[data-theme="light"] .card-thumb { background: radial-gradient(120% 120% at 0% 0%, #ffe3e1, #f1f2f4 60%); }
:root[data-theme="light"] .embed-container { background: #ececee; }
:root[data-theme="light"] .alert.error { color: #b3261e; background: rgba(225, 6, 0, 0.07); border-color: #f0b1ad; }
:root[data-theme="light"] .alert.ok { color: #0f7a4d; background: rgba(25, 195, 125, 0.08); border-color: #a4dfc4; }
:root[data-theme="light"] .alert.warn { color: #8a6116; background: rgba(245, 166, 35, 0.1); border-color: #ecd3a0; }
:root[data-theme="light"] .tag.red { color: #b3261e; background: rgba(225, 6, 0, 0.07); border-color: #f0b1ad; }
:root[data-theme="light"] .tag.green { color: #0f7a4d; background: rgba(25, 195, 125, 0.1); border-color: #a4dfc4; }
:root[data-theme="light"] .pill.admin { color: #ffffff; }
:root[data-theme="light"] .pill.on { color: #0f7a4d; }
:root[data-theme="light"] label.chk-item:hover { background: rgba(0, 0, 0, 0.03); }
:root[data-theme="light"] label.chk-item:focus-within { background: rgba(0, 0, 0, 0.05); }
:root[data-theme="light"] .sidebar .nav-item.active { color: #fff; }
:root[data-theme="light"] .embed-status { background: #fff7e6; border-color: #ecd3a0; color: #8a6116; }

* { box-sizing: border-box; }

/* Reserva o espaco da barra de rolagem mesmo sem overflow: trocar entre telas
   com/sem scroll (portal x admin) nao desloca o cabecalho e os botoes. */
html { scrollbar-gutter: stable; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ===== Header ===== */
.header {
  background: linear-gradient(180deg, #121212, #0c0c0c);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 24px;
  /* Altura fixa: portal (com busca) e admin (sem) ficam identicos, sem "pulo" nos botoes. */
  min-height: 68px;
  box-sizing: border-box;
}
.logo {
  display: inline-flex;
  align-items: center;
  background: #000;
  border: 2px solid #fff;
  border-radius: 6px;
  padding: 4px 10px;
  font-style: italic;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1;
  user-select: none;
}
.logo .slash { color: var(--red); margin-left: 1px; }
.logo small { font-size: 10px; }

.brandline {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.header .spacer { flex: 1; }

.header-search {
  flex: 1;
  max-width: 560px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 16px;
}
.header-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 14px;
}
.header-search svg { color: var(--text-muted); flex-shrink: 0; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-link {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.header-link strong { color: var(--text); font-size: 13px; }
.header-link:hover strong { color: var(--red-bright); }

/* ===== Nav de categorias ===== */
.catnav {
  background: var(--bg-bar);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 24px;
  overflow-x: auto;
}
.catnav button {
  background: transparent;
  border: none;
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 14px 16px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.catnav button:hover { color: var(--red-bright); }
.catnav button.active { color: #fff; border-bottom-color: var(--red); }

/* ===== Layout geral ===== */
.page { min-height: 100vh; display: flex; flex-direction: column; }
.content { flex: 1; padding: 28px 24px; max-width: 1500px; width: 100%; margin: 0 auto; }

.section-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 14px;
}

/* ===== Cards de painel ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-3px); border-color: var(--red); box-shadow: var(--shadow); }
.card-thumb {
  height: 120px;
  background: radial-gradient(120% 120% at 0% 0%, #2a0b0a, #141414 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.card-thumb svg { width: 46px; height: 46px; color: var(--red); opacity: 0.85; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.card-body h3 { margin: 0; font-size: 16px; font-weight: 700; }
.card-body p { margin: 0; font-size: 13px; color: var(--text-muted); line-height: 1.4; }
.card-tags { display: flex; gap: 6px; margin-top: auto; padding-top: 10px; flex-wrap: wrap; }

.tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.tag.red { background: var(--red-dim); color: #ffd2cf; border-color: var(--red); }
.tag.green { background: rgba(25, 195, 125, 0.12); color: #7ff0c2; border-color: #1d6b4d; }

/* ===== Botoes ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--surface-3);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.btn:hover { background: #2c2c2c; }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn.primary:hover { background: var(--red-bright); }
.btn.ghost { background: transparent; }
.btn.danger { background: transparent; border-color: var(--red-dim); color: #ff8b84; }
.btn.danger:hover { background: rgba(225, 6, 0, 0.12); }
.btn.sm { padding: 6px 10px; font-size: 12px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 2px; }
/* Loading: esconde o texto e mostra um spinner central enquanto a acao roda. */
.btn.loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.loading::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 14px; height: 14px;
  margin: -7px 0 0 -7px; border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff; border-radius: 50%; animation: spin 0.6s linear infinite;
}

/* ===== Login ===== */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(120% 120% at 50% -10%, #220606, #0a0a0a 55%);
  padding: 24px;
}
.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
}
.login-card .logo { font-size: 30px; margin-bottom: 18px; }
.login-card h1 { font-size: 20px; margin: 0 0 4px; }
.login-card p.sub { color: var(--text-muted); font-size: 13px; margin: 0 0 24px; }

/* ===== Forms ===== */
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  color: var(--text);
  font-size: 14px;
  outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); }
.field .hint { font-size: 11px; color: var(--text-dim); margin-top: 5px; }
.field-row { display: flex; gap: 14px; }
.field-row > .field { flex: 1; }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
/* input escondido porem focavel: Tab chega no toggle e Espaco alterna. */
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.switch input:focus-visible + .track { outline: 2px solid var(--red-bright); outline-offset: 2px; }
.switch .track {
  width: 42px; height: 24px; border-radius: 999px; background: var(--surface-3);
  border: 1px solid var(--border); position: relative; transition: background 0.15s;
}
.switch .track::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
  border-radius: 50%; background: #777; transition: transform 0.15s, background 0.15s;
}
.switch input:checked + .track { background: var(--red-dim); border-color: var(--red); }
.switch input:checked + .track::after { transform: translateX(18px); background: var(--red-bright); }
/* Evita que a regra generica ".field label" (block + uppercase) quebre o toggle. */
.field label.switch {
  display: inline-flex;
  margin-bottom: 0;
  text-transform: none;
  letter-spacing: normal;
  font-size: 14px;
  color: var(--text);
}

/* Campo de senha com botao revelar/ocultar */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 42px; }
.pw-toggle {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  padding: 6px; display: inline-flex; align-items: center; border-radius: 6px;
}
.pw-toggle:hover { color: var(--text); }

/* Checklist de requisitos da senha (troca de senha) */
.pw-checks { list-style: none; margin: -6px 0 16px; padding: 0; font-size: 12px; color: var(--text-muted); }
.pw-checks li { padding: 2px 0; }
.pw-checks li::before { content: "○ "; }
.pw-checks li.ok { color: var(--green); }
.pw-checks li.ok::before { content: "✓ "; }

/* Toggle de tema no header: so o icone */
.theme-toggle { padding: 6px 8px; }
.theme-toggle svg { display: block; }

/* Preview da imagem de capa no form do admin */
.img-edit { display: flex; align-items: center; gap: 14px; }
.img-edit .img-preview {
  width: 150px; height: 84px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface-2); object-fit: cover; display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); font-size: 11px; overflow: hidden;
}
.img-edit .img-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Alertas ===== */
.alert { border-radius: var(--radius-sm); padding: 11px 14px; font-size: 13px; margin-bottom: 16px; }
.alert.error { background: rgba(225, 6, 0, 0.12); border: 1px solid var(--red-dim); color: #ff9b94; }
.alert.ok { background: rgba(25, 195, 125, 0.1); border: 1px solid #1d6b4d; color: #8af0c4; }
.alert.warn { background: rgba(245, 166, 35, 0.1); border: 1px solid #7a5a16; color: #f3c879; }
.alert.info { background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted); }

/* ===== Admin layout ===== */
.admin-shell { display: flex; min-height: calc(100vh - 60px); }
.sidebar {
  width: 230px;
  background: var(--bg-bar);
  border-right: 1px solid var(--border);
  padding: 18px 12px;
  flex-shrink: 0;
}
.sidebar .nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 14px; border-radius: var(--radius-sm);
  color: var(--text-muted); font-weight: 600; font-size: 14px; line-height: 1.25; cursor: pointer;
  margin-bottom: 3px;
}
/* labels de 2 palavras (ex: Fontes & Agendamento) quebram em 2 linhas compactas e equilibradas em vez de "&" solto */
.sidebar .nav-item span { text-wrap: balance; }
.sidebar .nav-item:hover { background: var(--surface-2); color: var(--text); }
.sidebar .nav-item.active { background: var(--red-dim); color: #fff; }
.sidebar .nav-item svg { width: 18px; height: 18px; }
/* margin auto centraliza o conteudo quando a tela e mais larga que o max-width */
.admin-main { flex: 1; padding: 32px 36px; max-width: 1300px; min-width: 0; margin: 0 auto; }

.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: 22px; margin: 0; }
.page-head .desc { color: var(--text-muted); font-size: 13px; margin-top: 4px; }

/* ===== Stat cards ===== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
@media (max-width: 1100px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; } }
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px;
}
.stat .label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.stat .value { font-size: 30px; font-weight: 800; margin-top: 6px; }
.stat .value.red { color: var(--red-bright); }

/* ===== Ações rápidas (dashboard) ===== */
.quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.qa-card {
  display: flex; align-items: center; gap: 14px; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; color: var(--text); font: inherit; transition: border-color 0.15s, transform 0.15s;
}
.qa-card:hover { border-color: var(--red); transform: translateY(-1px); }
.qa-card svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--red-bright); }
.qa-card b { font-size: 14px; }

/* ===== Tabelas ===== */
.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted); padding: 13px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2);
}
tbody td { padding: 13px 16px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--surface-2); }
.row-actions { display: flex; gap: 8px; justify-content: flex-end; }
.mono { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 12px; color: var(--text-muted); }
.pill { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; }
.pill.admin { background: var(--red-dim); color: #ffd2cf; }
.pill.viewer { background: var(--surface-3); color: var(--text-muted); }
.pill.on { background: rgba(25,195,125,0.14); color: #7ff0c2; }
.pill.off { background: var(--surface-3); color: var(--text-dim); }

/* ===== Modal ===== */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.72);
  display: flex; align-items: flex-start; justify-content: center; padding: 48px 20px; z-index: 100;
  overflow-y: auto;
}
.modal {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  width: 100%; max-width: 560px; box-shadow: var(--shadow);
}
.modal.wide { max-width: 760px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.modal-head h2 { margin: 0; font-size: 18px; }
.modal-head .close { background: none; border: none; color: var(--text-muted); font-size: 24px; cursor: pointer; line-height: 1; }
.modal-body { padding: 24px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 18px 24px; border-top: 1px solid var(--border); }

/* ===== Viewer ===== */
.viewer-bar {
  display: flex; align-items: center; gap: 12px; padding: 6px 16px;
  background: var(--bg-bar); border-bottom: 1px solid var(--border);
}
.viewer-bar h2 { margin: 0; font-size: 15px; flex: 1; }
/* Viewer ocupa exatamente a viewport: sem calc fragil, sem scrollbar. */
.viewer-page { height: 100vh; min-height: 0; overflow: hidden; }
.embed-container { position: relative; width: 100%; flex: 1; min-height: 0; background: #0e0e0e; }
.embed-container iframe { border: none; }
.embed-container:fullscreen { width: 100vw; height: 100vh; background: #000; }
.embed-container:fullscreen iframe { width: 100%; height: 100%; }
.embed-status {
  position: absolute; z-index: 5; top: 14px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px; width: min(680px, calc(100% - 28px));
  padding: 10px 12px; background: #241f15; border: 1px solid #7a5a16;
  color: #f3c879; box-shadow: var(--shadow); font-size: 13px;
}
.embed-status span { flex: 1; min-width: 0; }
.embed-status .btn { flex: 0 0 auto; }

@media (max-width: 640px) {
  .embed-status { align-items: flex-start; flex-direction: column; }
}

/* ===== Workspaces Power BI acessiveis (nome + check verde) ===== */
.ws-list { display: flex; flex-wrap: wrap; gap: 10px; }
.ws-chip {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px;
}
.ws-check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%; background: #1f8f3a; color: #fff;
  font-size: 11px; font-weight: 800;
}

/* ===== Grupos: chips e checklist compacta ===== */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text-muted);
  border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all 0.15s;
}
.chip:hover { border-color: var(--red); color: var(--text); }
.chip:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 2px; }
.chip.on { background: var(--red); border-color: var(--red); color: #fff; }
.chk-search {
  width: 100%; margin-bottom: 8px; background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text); border-radius: 8px; padding: 8px 12px; font-size: 13px;
}
.mini-checklist {
  max-height: 190px; overflow-y: auto; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface-2);
}
/* label.chk-item: mesma especificidade de ".field label", definido depois → vence (evita uppercase/block). */
label.chk-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px; cursor: pointer;
  border-bottom: 1px solid var(--border); font-size: 13px; text-transform: none;
  letter-spacing: 0; margin-bottom: 0; font-weight: 400; color: var(--text);
}
label.chk-item:last-child { border-bottom: none; }
label.chk-item:hover { background: rgba(255, 255, 255, 0.03); }
label.chk-item:focus-within { background: rgba(255, 255, 255, 0.06); }
label.chk-item input { accent-color: var(--red); width: 15px; height: 15px; flex-shrink: 0; }

/* Linha de acesso por painel: label (toggle+nome) cresce; input de roles fica a direita, fora do label. */
.chk-row { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--border); padding-right: 10px; }
.chk-row:last-child { border-bottom: none; }
.chk-row label.chk-item { border-bottom: none; }
.chk-item.chk-grow { flex: 1; min-width: 0; }
.roles-mini {
  width: 150px; flex-shrink: 0; background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text); border-radius: 6px; padding: 5px 8px; font-size: 12px;
}
.access-banner {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--red);
  border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 18px; font-size: 13px; line-height: 1.5;
}

/* ===== Util ===== */
.muted { color: var(--text-muted); }
.center { text-align: center; }
.spinner {
  width: 34px; height: 34px; border: 3px solid var(--border); border-top-color: var(--red);
  border-radius: 50%; animation: spin 0.8s linear infinite; margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty { text-align: center; color: var(--text-muted); padding: 60px 20px; }
.empty svg { width: 54px; height: 54px; opacity: 0.4; margin-bottom: 14px; }
.checklist { display: flex; flex-direction: column; gap: 4px; max-height: 260px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px; }
.checklist .item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); }
.checklist .item:hover { background: var(--surface-2); }
/* alvo de clique maior no toggle sem texto (padding compensado por margin negativa) */
.checklist .item .switch { padding: 8px; margin: -8px; }
.checklist .item .roles-input { margin-left: auto; width: 200px; }
.checklist .item .roles-input input { padding: 6px 9px; font-size: 12px; }
.toast-host { position: fixed; bottom: 24px; right: 24px; display: flex; flex-direction: column; gap: 10px; z-index: 200; }
.toast { background: var(--surface-3); border: 1px solid var(--border); border-left: 3px solid var(--red); border-radius: var(--radius-sm); padding: 12px 16px; font-size: 13px; box-shadow: var(--shadow); animation: slidein 0.2s ease; }
.toast.ok { border-left-color: var(--green); }
.toast.error { border-left-color: var(--red-bright); }
@keyframes slidein { from { transform: translateX(20px); opacity: 0; } }

@media (max-width: 820px) {
  .header-search { display: none; }
  .sidebar { width: 64px; }
  .sidebar .nav-item span { display: none; }
  .field-row { flex-direction: column; }
}
