/* GestãoPro Cash — folha de estilos (idêntica ao projeto original) */

/* ============================================================
   GestãoPro Cash — estilos globais
   Modo claro padrão | dark via .dark no body
   ============================================================ */

:root {
  --bg-page:    #f5f7fa;
  --bg-surface: #ffffff;
  --bg-card:    #ffffff;
  --bg-sidebar: #1a4a8a;
  --bg-topbar:  #ffffff;
  --bg-input:   #f9fafb;
  --bg-hover:   rgba(0,0,0,0.03);
  --bg-modal:   rgba(0,0,0,0.5);

  --text-primary:   #1a1a2e;
  --text-secondary: #555;
  --text-muted:     #999;
  --text-sidebar:   rgba(255,255,255,0.75);

  --border:      rgba(0,0,0,0.08);
  --border-soft: rgba(0,0,0,0.05);

  --accent:      #1a4a8a;
  --accent-hover:#1d56a3;
  --destaque:    #e85d04;
  --success:     #10b981;
  --warning:     #f59e0b;
  --danger:      #ef4444;
  --info:        #3b82f6;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-card:  0 1px 3px rgba(0,0,0,0.06);
  --shadow-modal: 0 8px 32px rgba(0,0,0,0.12);

  --font-title: 'Exo 2', sans-serif;
  --font-body:  'Inter', sans-serif;
  --sidebar-width: 220px;
  --topbar-height: 52px;
}

body.dark {
  --bg-page:    #0a0c10;
  --bg-surface: #10131a;
  --bg-card:    #10131a;
  --bg-sidebar: #10131a;
  --bg-topbar:  #10131a;
  --bg-input:   rgba(255,255,255,0.05);
  --bg-hover:   rgba(255,255,255,0.04);
  --bg-modal:   rgba(0,0,0,0.7);
  --text-primary:   #e8eaf0;
  --text-secondary: rgba(255,255,255,0.6);
  --text-muted:     rgba(255,255,255,0.3);
  --border:      rgba(255,255,255,0.07);
  --border-soft: rgba(255,255,255,0.04);
  --shadow-card:  none;
  --shadow-modal: 0 8px 40px rgba(0,0,0,0.5);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-body); background: var(--bg-page); color: var(--text-primary); line-height: 1.6; transition: background 0.25s, color 0.25s; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font-family: var(--font-body); }

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

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background: var(--bg-sidebar);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 200;
  transition: background 0.25s, transform 0.25s;
  overflow-y: auto;
}

.sidebar-logo { padding: 20px 18px 16px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.sidebar-logo .logo-nome { font-family: var(--font-title); font-size: 18px; font-weight: 600; color: #fff; }
.sidebar-logo .logo-sub  { font-size: 11px; color: rgba(255,255,255,0.45); margin-top: 2px; }

.nav-section { font-size: 9px; font-weight: 500; letter-spacing: 1.2px; text-transform: uppercase; color: rgba(255,255,255,0.35); padding: 18px 18px 6px; }

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 18px; font-size: 13px;
  color: var(--text-sidebar);
  border-left: 2px solid transparent;
  transition: all 0.15s;
  text-decoration: none;
}
.nav-item:hover { background: rgba(255,255,255,0.07); color: #fff; text-decoration: none; }
.nav-item.active,
.nav-item[aria-current="page"] {
  color: #fff;
  background: rgba(255,255,255,0.16);
  border-left-color: #fff;
  font-weight: 600;
}
body.dark .nav-item.active,
body.dark .nav-item[aria-current="page"] {
  border-left-color: var(--destaque);
  color: #fff;
  background: rgba(232,93,4,0.16);
}
.nav-item i, .nav-item svg { font-size: 16px; width: 18px; height: 18px; flex-shrink: 0; }

.nav-badge { margin-left: auto; background: var(--destaque); color: #fff; font-size: 10px; font-weight: 500; padding: 1px 7px; border-radius: 10px; }

.sidebar-user { margin-top: auto; padding: 14px 18px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; gap: 10px; }
.user-avatar  { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 500; color: #fff; flex-shrink: 0; }
.user-nome  { font-size: 13px; font-weight: 500; color: #fff; }
.user-cargo { font-size: 11px; color: rgba(255,255,255,0.4); }

/* ── Overlay sidebar mobile ── */
#sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 199; }
#sidebar-overlay.open { display: block; }

/* ── Main ── */
.main-content { margin-left: var(--sidebar-width); flex: 1; display: flex; flex-direction: column; min-height: 100vh; }

/* ── Topbar ── */
.topbar {
  height: var(--topbar-height);
  background: var(--bg-topbar);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 24px; gap: 12px;
  position: sticky; top: 0; z-index: 50;
  transition: background 0.25s;
}
.topbar-title { font-family: var(--font-title); font-size: 16px; font-weight: 600; color: var(--text-primary); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.btn-icon {
  width: 34px; height: 34px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  transition: all 0.15s;
  text-decoration: none;
}
.btn-icon:hover { background: var(--bg-hover); color: var(--text-primary); text-decoration: none; }
.btn-icon.notif-rel { position: relative; }
.btn-icon.notif-rel::after { content:''; position:absolute; top:6px; right:6px; width:7px; height:7px; background:var(--destaque); border-radius:50%; border:2px solid var(--bg-topbar); }

.btn-theme { height: 30px; padding: 0 12px; border-radius: 15px; border: 1px solid var(--border); background: var(--bg-hover); color: var(--text-secondary); font-size: 12px; font-family: var(--font-body); display: flex; align-items: center; gap: 6px; transition: all 0.15s; }
.btn-theme:hover { border-color: var(--accent); color: var(--accent); }

/* ── Conteúdo ── */
.page-content { padding: 24px; flex: 1; }

.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 12px; flex-wrap: wrap; }
.page-header-info h2 { font-family: var(--font-title); font-size: 18px; font-weight: 600; color: var(--text-primary); }
.page-header-info p  { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ── Cards ── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 24px; }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); color: var(--text-primary); }
.metric-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow-card); }
.metric-label { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.metric-value { font-family: var(--font-title); font-size: 28px; font-weight: 600; color: var(--text-primary); line-height: 1; }
.metric-sub { font-size: 12px; margin-top: 6px; display: flex; align-items: center; gap: 5px; }
.metric-sub.ok     { color: var(--success); }
.metric-sub.warn   { color: var(--warning); }
.metric-sub.danger { color: var(--danger);  }

/* ── Tabelas ── */
.table-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); margin-bottom: 20px; }
.table-card-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border-soft); gap: 12px; flex-wrap: wrap; }
.table-card-title { font-size: 14px; font-weight: 500; color: var(--text-primary); display: flex; align-items: center; gap: 7px; }
.table-wrap { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; }
thead th { font-size: 11px; font-weight: 500; color: var(--text-muted); text-align: left; padding: 10px 18px; border-bottom: 1px solid var(--border-soft); text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }
tbody tr { border-bottom: 1px solid var(--border-soft); transition: background 0.1s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--bg-hover); }
tbody td { padding: 11px 18px; font-size: 13px; color: var(--text-secondary); }
tbody td strong { color: var(--text-primary); font-weight: 500; }
.empty-row td { text-align: center; color: var(--text-muted); padding: 28px; font-size: 13px; }

/* ── Formulários ── */
.checklist-ok {
  width: 17px;
  height: 17px;
  accent-color: #1a4a8a;
  cursor: pointer;
}

.checklist-ok-readonly {
  cursor: default;
}

.checklist-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 14px;
}

.modal-xl {
  width: min(96vw, 1440px);
  max-width: min(96vw, 1440px);
}

.checklist-preview-modal {
  height: 94vh;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
}

.checklist-preview-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0;
}

.checklist-preview-body iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--bg-surface);
}

.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-label { display: block; font-size: 11px; font-weight: 500; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 9px 12px;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-md); font-family: var(--font-body);
  font-size: 13px; color: var(--text-primary); outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--accent); background: var(--bg-surface); }
.form-textarea { resize: vertical; min-height: 80px; }

.cnpj-lookup-status {
  min-height: 17px;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 11.5px;
}

.cnpj-socios {
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(26,74,138,.16);
  border-radius: var(--radius-md);
  background: rgba(26,74,138,.035);
}

.cnpj-socios-title {
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.cnpj-socio-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--text-secondary);
  font-size: 12.5px;
}

.cnpj-socio-item + .cnpj-socio-item {
  margin-top: 4px;
}

.cnpj-socio-item strong {
  color: var(--text-primary);
  font-weight: 600;
}

.cnpj-socio-item span {
  color: var(--text-muted);
  font-size: 11.5px;
}

.input-with-btn { position: relative; }
.input-with-btn .form-input { padding-right: 40px; }
.input-with-btn .btn-inside {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  background: transparent; border: none; color: var(--text-muted);
  font-size: 16px; padding: 4px; border-radius: 4px; transition: color 0.15s;
  display: flex; align-items: center;
}
.input-with-btn .btn-inside:hover { color: var(--text-primary); }

/* ── Botões ── */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: var(--radius-md); font-size: 13px; font-weight: 500; font-family: var(--font-body); border: 1px solid transparent; transition: all 0.15s; text-decoration: none; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn-primary   { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-secondary { background: var(--bg-hover); color: var(--text-primary); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--text-muted); }
.btn-danger    { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-sm  { padding: 4px 10px; font-size: 12px; }

/* ── Badges ── */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 10px; font-size: 11px; font-weight: 500; }
.badge-success { background: rgba(16,185,129,0.1);  color: #059669; }
.badge-warning { background: rgba(245,158,11,0.1);  color: #d97706; }
.badge-danger  { background: rgba(239,68,68,0.1);   color: #dc2626; }
.badge-info    { background: rgba(59,130,246,0.1);  color: #2563eb; }
.badge-muted   { background: rgba(0,0,0,0.05);      color: var(--text-muted); }
body.dark .badge-muted { background: rgba(255,255,255,0.07); }

.sensitive-value {
  display: inline-flex;
  max-width: 220px;
  overflow-wrap: anywhere;
  color: var(--text-primary);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
}

/* ── Importação e backup ── */
.import-layout {
  align-items: stretch;
  gap: 24px;
}

.import-card {
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 20px;
}

.import-card-title {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.25;
}

.import-card-text {
  max-width: 680px;
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.65;
}

.import-card .form-group {
  margin-bottom: 16px;
}

.import-card input[type="file"].form-input {
  min-height: 44px;
  padding: 9px 10px;
}

.backup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-content: flex-start;
}

.backup-actions .btn {
  min-width: 112px;
  justify-content: center;
}

/* ── Hospedagem ── */
.hosting-list {
  display: grid;
  gap: 12px;
}

.hosting-card {
  display: grid;
  grid-template-columns: minmax(240px, .85fr) minmax(0, 1.7fr) auto;
  grid-template-areas:
    "company access actions"
    "company dates actions";
  align-items: center;
  gap: 12px 22px;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.hosting-company {
  grid-area: company;
}

.hosting-company strong,
.hosting-access strong {
  display: block;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.hosting-company span,
.hosting-label {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.35;
}

.hosting-access {
  grid-area: access;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px 18px;
  min-width: 0;
}

.hosting-access > div {
  min-width: 0;
}

.hosting-dates {
  grid-area: dates;
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 160px));
  justify-content: start;
  gap: 8px;
  min-width: 0;
}

.hosting-date {
  padding: 7px 9px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: var(--bg-input);
}

.hosting-date span,
.hosting-date small {
  display: block;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.2;
}

.hosting-date strong {
  display: block;
  margin: 2px 0;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
}

.hosting-date.soon {
  border-color: rgba(245,158,11,.25);
  background: rgba(245,158,11,.06);
}

.hosting-date.overdue {
  border-color: rgba(239,68,68,.25);
  background: rgba(239,68,68,.06);
}

.hosting-actions {
  grid-area: actions;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}

.hosting-actions form {
  display: inline-flex;
}

@media (max-width: 1200px) {
  .hosting-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "company"
      "access"
      "dates"
      "actions";
    align-items: stretch;
  }
  .hosting-access {
    grid-template-columns: repeat(4, minmax(130px, 1fr));
  }
  .hosting-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .hosting-access,
  .hosting-dates {
    grid-template-columns: 1fr;
  }
}

/* ── Search ── */
.search-input { padding: 7px 12px 7px 34px; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-md); font-family: var(--font-body); font-size: 13px; color: var(--text-primary); outline: none; transition: border-color 0.2s; min-width: 220px; }
.search-input:focus { border-color: var(--accent); }
.search-wrap { position: relative; display: inline-flex; align-items: center; }
.search-wrap svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--text-muted); }

/* ── Alertas ── */
.alert { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--radius-md); font-size: 13px; margin-bottom: 16px; border: 1px solid; }
.alert-success { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.alert-danger  { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.alert-warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.alert-info    { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
body.dark .alert-success { background: rgba(16,185,129,0.1); color: #6ee7b7; border-color: rgba(16,185,129,0.2); }
body.dark .alert-danger  { background: rgba(239,68,68,0.1);  color: #fca5a5; border-color: rgba(239,68,68,0.2); }
body.dark .alert-warning { background: rgba(245,158,11,0.1); color: #fcd34d; border-color: rgba(245,158,11,0.2); }
body.dark .alert-info    { background: rgba(59,130,246,0.1); color: #93c5fd; border-color: rgba(59,130,246,0.2); }

/* ── Modal ── */
.modal-overlay { position: fixed; inset: 0; background: var(--bg-modal); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-modal); }
.modal.modal-lg { max-width: min(1100px, 96vw); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--bg-surface); z-index: 1; }
.modal-title  { font-family: var(--font-title); font-size: 16px; font-weight: 600; color: var(--text-primary); }
.modal-body   { padding: 20px; }
.modal-footer { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--border); position: sticky; bottom: 0; background: var(--bg-surface); }

/* ── Toast ── */
.toast { position: fixed; bottom: 24px; right: 24px; padding: 10px 16px; border-radius: var(--radius-md); font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 8px; z-index: 2000; color: #fff; box-shadow: var(--shadow-modal); }
.toast-success { background: var(--success); }
.toast-danger  { background: var(--danger); }
.toast-warning { background: var(--warning); }

/* ── Abas ── */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; flex-wrap: wrap; }
.tab { padding: 8px 14px; font-size: 13px; color: var(--text-muted); border: none; background: transparent; border-bottom: 2px solid transparent; transition: all .15s; }
.tab:hover { color: var(--text-primary); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 500; }
body.dark .tab.active { color: var(--destaque); border-bottom-color: var(--destaque); }

/* ── Paginação ── */
.pagination { display: flex; gap: 4px; align-items: center; justify-content: center; margin-top: 16px; }
.page-btn { width: 32px; height: 32px; border-radius: var(--radius-md); border: 1px solid var(--border); background: transparent; color: var(--text-secondary); font-size: 13px; font-family: var(--font-body); transition: all 0.15s; }
.page-btn:hover { background: var(--bg-hover); }
.page-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── Responsivo Mobile ── */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); box-shadow: 4px 0 20px rgba(0,0,0,0.2); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .form-row { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .page-content { padding: 16px; }
  #btn-menu-mobile { display: flex !important; }
  .topbar-title { font-size: 14px; }
  table { font-size: 12px; }
  thead th, tbody td { padding: 8px 10px; }
}

@media (max-width: 480px) {
  .cards-grid { grid-template-columns: 1fr; }
  .modal { max-height: 95vh; }
  .btn-theme span { display: none; }
}

/* ── Utilitários ── */
.text-muted   { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-accent  { color: var(--accent); }
.font-title   { font-family: var(--font-title); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }

.spin {
  animation: gp-spin 0.9s linear infinite;
}

@keyframes gp-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Permissões ── */
.permissions-grid {
  align-items: start;
}

.permissions-card {
  padding: 18px;
}

.permissions-card-title {
  font-size: 15px;
  margin-bottom: 14px;
}

.permissions-filter {
  margin-bottom: 16px;
}

.permissions-group {
  margin: 16px 0 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.permissions-group:first-of-type {
  margin-top: 4px;
}

.permission-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  align-items: center;
  gap: 14px;
  padding: 7px 0;
}

.permission-label {
  min-width: 0;
  color: var(--text-secondary);
  font-size: 13px;
}

.permission-row-child {
  margin-left: 16px;
  padding-left: 12px;
  border-left: 2px solid var(--border-soft);
}

.permission-row-child .permission-label {
  color: var(--text-muted);
  font-size: 12px;
}

.permission-select {
  width: 100%;
}

.permissions-save {
  margin-top: 16px;
}

@media (max-width: 560px) {
  .permissions-card {
    padding: 14px;
  }
  .permission-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* ── Cadastro em lote de e-mails comerciais ── */
.email-batch {
  padding: 14px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: var(--bg-input);
}

.email-batch-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.email-batch-list {
  display: grid;
  gap: 10px;
}

.email-batch-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(160px, 1fr) auto;
  align-items: end;
  gap: 10px;
}

@media (max-width: 900px) {
  .email-batch-head {
    display: grid;
  }
  .email-batch-row {
    grid-template-columns: 1fr;
  }
}
