/*
 * @file        platform/public/assets/css/platform.css
 * @description Design system da Plataforma Axial Finance Solutions.
 *              Dark premium fintech — paleta marinho + ouro.
 * @version     1.2.5
 * @since       2026-05-16
 *
 * CHANGELOG:
 * 1.2.5 | 2026-08-27 | Planejamento: .pe-modal + carrossel anexos com painel/overlay opacos
 * 1.2.4 | 2026-08-18 | Estado visual leve para zona de colar print (AxialClipboardImage)
 * 1.2.3 | 2026-08-13 | --surface-panel opaco para modais/dropdowns/notificações
 * 1.2.2 | 2026-07-23 | live-filter + botão data-table__sort (dashboard)
 * 1.2.1 | 2026-07-23 | data-table__sort (ordenação de colunas no dashboard)
 * 1.2.0 | 2026-05-30 | Componentes de formulário, settings tabs, toggles, alerts, btn--outline
 * 1.1.0 | 2026-05-17 | Auth: redesign painel visual (gradiente CSS, orbs, headline)
 * 1.0.0 | 2026-05-16 | Criação — app shell, auth, dashboard, componentes
 */

/* ─── Tokens ─────────────────────────────────────────────────────────────────── */
:root {
  color-scheme: dark;

  --navy-deep:    #060f1e;
  --navy-dark:    #0a1628;
  --navy-mid:     #0f2040;
  --navy-light:   #1F3A5F;
  --navy-muted:   #2a4f82;

  --gold:         #D4AF37;
  --gold-light:   #e8cc6a;
  --gold-dim:     rgba(212, 175, 55, 0.15);

  --text-primary:   #f0f4ff;
  --text-secondary: #8fa3c0;
  --text-muted:     #5a7090;

  --surface-1:  rgba(255,255,255,0.04);
  --surface-2:  rgba(255,255,255,0.07);
  --surface-3:  rgba(255,255,255,0.10);
  /* Painéis flutuantes (modal, dropdown, notif) — opaco; não usar surface-1/2 */
  --surface-panel: #0f2040;
  --border:     rgba(255,255,255,0.08);
  --border-gold: rgba(212,175,55,0.25);

  --sidebar-w: 260px;
  --topbar-h:   60px;
  --radius:     10px;
  --radius-lg:  16px;

  --transition: 0.2s ease;
  --shadow-card: 0 4px 24px rgba(0,0,0,0.35);
  --shadow-glow: 0 0 20px rgba(212,175,55,0.12);

  /* Fontes */
  --font-display: 'Montserrat', 'Arial Black', sans-serif;
  --font-body:    'Lato', Arial, sans-serif;
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;
}

/* ─── Reset & base ────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-primary);
  background: var(--navy-deep);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.8; }

img { max-width: 100%; display: block; }

/* ─── App shell ──────────────────────────────────────────────────────────────── */
.app-body { display: flex; height: 100vh; overflow: hidden; }

.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-left: var(--sidebar-w);
  min-width: 0;
  transition: margin-left var(--transition);
}

.app-content {
  flex: 1;
  overflow-y: auto;
  padding: 28px 32px;
  background: var(--navy-deep);
}

/* ─── Sidebar ────────────────────────────────────────────────────────────────── */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--navy-dark);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform var(--transition);
}

.sidebar__brand {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar__logo { height: 36px; width: auto; }

.sidebar__product {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2px;
}

.sidebar__nav {
  flex: 1;
  padding: 12px 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
}

.sidebar__link i { font-size: 18px; flex-shrink: 0; }

.sidebar__link:hover {
  background: var(--surface-2);
  color: var(--text-primary);
  opacity: 1;
}

.sidebar__link--active {
  background: var(--gold-dim);
  color: var(--gold);
  border-left: 3px solid var(--gold);
}

.sidebar__link--active:hover { opacity: 1; }

.sidebar__badge-soon {
  margin-left: auto;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 20px;
  background: rgba(212,175,55,.15);
  color: var(--gold);
  flex-shrink: 0;
}

.sidebar__group { margin-bottom: 2px; }
.sidebar__children {
  display: none;
  padding: 0 0 6px 28px;
}
.sidebar__group.is-open .sidebar__children { display: block; }
.sidebar__child {
  display: block;
  padding: 6px 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  border-radius: 6px;
}
.sidebar__child:hover,
.sidebar__child.is-active {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.sidebar__footer {
  padding: 14px 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 1px solid var(--border-gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--gold);
  flex-shrink: 0;
}

.sidebar__user-info { flex: 1; min-width: 0; }
.sidebar__user-name {
  display: block;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar__user-role {
  font-size: 11px;
  color: var(--text-muted);
}

.sidebar__logout {
  color: var(--text-muted);
  font-size: 18px;
  padding: 6px;
  border-radius: 6px;
  transition: all var(--transition);
}
.sidebar__logout:hover { color: #ff6b6b; background: rgba(255,107,107,0.1); opacity: 1; }

/* ─── Topbar ─────────────────────────────────────────────────────────────────── */
.topbar {
  height: var(--topbar-h);
  background: var(--navy-dark);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar__menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: background var(--transition);
}
.topbar__menu-btn:hover { background: var(--surface-2); }

.topbar__breadcrumb {
  flex: 1;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
}

.topbar__actions { display: flex; align-items: center; gap: 8px; }

.topbar__clock {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  min-width: 60px;
  text-align: center;
}

.topbar__icon-btn {
  position: relative;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all var(--transition);
}
.topbar__icon-btn:hover { background: var(--surface-2); color: var(--text-primary); }

.topbar__badge {
  position: absolute;
  top: 4px; right: 4px;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 9px;
  font-weight: 700;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.topbar__badge:empty, [data-badge="0"] { display: none; }

.topbar__profile { position: relative; cursor: pointer; }

.topbar__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 2px solid var(--border-gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--gold);
  user-select: none;
}

.topbar__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--surface-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  z-index: 200;
}
.topbar__profile.open .topbar__dropdown { display: block; }

.topbar__dropdown-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.topbar__dropdown-header strong { display: block; font-size: 14px; }
.topbar__dropdown-header small { color: var(--text-muted); font-size: 12px; }

.topbar__dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.topbar__dropdown-item:hover { background: var(--surface-2); color: var(--text-primary); opacity: 1; }
.topbar__dropdown-item--danger:hover { color: #ff6b6b; background: rgba(255,107,107,0.08); }
.topbar__dropdown-item i { font-size: 16px; }

.topbar__dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* ─── Page header ────────────────────────────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.page-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}
.page-subtitle { color: var(--text-muted); font-size: 14px; margin-top: 4px; }

/* ─── KPI grid ───────────────────────────────────────────────────────────────── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all var(--transition);
}
.kpi-card:hover { border-color: var(--border-gold); box-shadow: var(--shadow-glow); }

.kpi-card__icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.kpi-card__icon--blue   { background: rgba(42,79,130,0.25); color: #6ea8fe; }
.kpi-card__icon--gold   { background: var(--gold-dim);       color: var(--gold); }
.kpi-card__icon--green  { background: rgba(52,168,83,0.18);  color: #5cdb95; }
.kpi-card__icon--purple { background: rgba(130,80,200,0.18); color: #b89af5; }

.kpi-card__body { min-width: 0; }

.kpi-card__value {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
}
.kpi-card__label { display: block; font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.kpi-card__sub   { display: block; font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ─── Dashboard row & cards ──────────────────────────────────────────────────── */
.dashboard-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.dash-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
}

.dash-card--half { /* used inside grid row */ }

.dash-card--center {
  text-align: center;
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.dash-card__icon-lg {
  font-size: 52px;
  color: var(--gold);
  margin-bottom: 8px;
}

.dash-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.dash-card__header h3 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dash-card__header h3 i { color: var(--gold); font-size: 16px; }
.dash-card__link { font-size: 12px; color: var(--gold); font-weight: 600; }

.dash-card__body { padding: 16px 20px; }

.dash-empty { color: var(--text-muted); font-size: 13px; text-align: center; padding: 16px 0; }

/* ─── Segment bar ────────────────────────────────────────────────────────────── */
.seg-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.seg-bar:last-child { border-bottom: none; }
.seg-bar__label { color: var(--text-secondary); }
.seg-bar__value { font-family: var(--font-mono); font-weight: 600; color: var(--gold); }

/* ─── Activity list ──────────────────────────────────────────────────────────── */
.activity-list { list-style: none; }

.activity-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.activity-item:last-child { border-bottom: none; }
.activity-item__action { font-weight: 600; color: var(--text-primary); min-width: 80px; }
.activity-item__user   { flex: 1; color: var(--text-secondary); }
.activity-item__time   { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }

/* ─── Data table ─────────────────────────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
  text-align: left;
  padding: 8px 12px;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.data-table tbody tr:hover td { background: var(--surface-2); color: var(--text-primary); }
.data-table__sort {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.data-table__sort:hover,
.data-table__sort.is-active { color: var(--gold); }
.data-table__sort .ph { font-size: 12px; opacity: 0.7; }
.data-table__sort.is-active .ph { opacity: 1; }

.live-filter {
  position: relative;
  margin-bottom: 14px;
}
.live-filter__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.live-filter__input {
  padding-left: 36px !important;
}
.live-filter__empty { margin-top: 12px; }

/* ─── Badge ──────────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.badge--role    { background: var(--gold-dim);                color: var(--gold);   border: 1px solid var(--border-gold); }
.badge--ok      { background: rgba(52,168,83,0.15);           color: #5cdb95;       border: 1px solid rgba(92,219,149,0.2); }
.badge--warning { background: rgba(255,165,0,0.15);           color: #ffb347;       border: 1px solid rgba(255,165,0,0.25); }
.badge--danger  { background: rgba(255,80,80,0.12);           color: #ff8888;       border: 1px solid rgba(255,80,80,0.2); }
.badge--info    { background: rgba(42,79,130,0.25);           color: #6ea8fe;       border: 1px solid rgba(110,168,254,0.2); }
.badge--muted   { background: var(--surface-2);               color: var(--text-muted); border: 1px solid var(--border); }

/* ─── Module chips ───────────────────────────────────────────────────────────── */
.module-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.module-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
}
.module-chip--active     { background: rgba(52,168,83,0.12); color: #5cdb95; border-color: rgba(92,219,149,0.2); }
.module-chip--beta       { background: var(--gold-dim); color: var(--gold); border-color: var(--border-gold); }
.module-chip--coming_soon { background: var(--surface-2); color: var(--text-muted); }

/* ─── Module grid (operador) ─────────────────────────────────────────────────── */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.module-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-1);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  transition: all var(--transition);
}
.module-card i { font-size: 32px; }
.module-card small { font-size: 10px; color: var(--text-muted); }

.module-card--active:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-dim);
  box-shadow: var(--shadow-glow);
  opacity: 1;
}
.module-card--coming_soon { cursor: default; opacity: 0.5; }

/* ─── Flash messages ─────────────────────────────────────────────────────────── */
.flash {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 14px;
  animation: fadeInDown 0.3s ease;
}
.flash--error   { background: rgba(255,80,80,0.12); border: 1px solid rgba(255,80,80,0.25); color: #ff8888; }
.flash--success { background: rgba(52,168,83,0.12); border: 1px solid rgba(52,168,83,0.25); color: #5cdb95; }
.flash--info    { background: var(--gold-dim);       border: 1px solid var(--border-gold);   color: var(--gold); }
.flash i { font-size: 18px; flex-shrink: 0; }
.flash__close { margin-left: auto; background: none; border: none; cursor: pointer; color: inherit; font-size: 18px; opacity: 0.6; transition: opacity var(--transition); }
.flash__close:hover { opacity: 1; }

/* ─── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}
.btn--primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy-deep);
}
.btn--primary:hover { filter: brightness(1.08); box-shadow: var(--shadow-glow); opacity: 1; }

.btn--full { width: 100%; }

.btn--outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.btn--outline:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); opacity: 1; }

.btn--danger {
  background: rgba(255,80,80,0.15);
  border: 1px solid rgba(255,80,80,0.3);
  color: #ff8888;
}
.btn--danger:hover { background: rgba(255,80,80,0.25); opacity: 1; }

.btn--sm { padding: 7px 14px; font-size: 12px; }

.btn--sso {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font-body);
  padding: 10px 16px;
}
.btn--sso:hover { background: var(--surface-3); opacity: 1; }

/* ─── Error page ──────────────────────────────────────────────────────────────── */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  gap: 16px;
  text-align: center;
  padding: 24px;
}
.error-page__icon { font-size: 64px; color: var(--gold); }
.error-page h1 { font-family: var(--font-display); font-size: 28px; }
.error-page p  { color: var(--text-muted); }

/* ─── Auth layout — card centralizado ───────────────────────────────────────── */
.auth-body {
  background: linear-gradient(145deg, #040c1a 0%, #060f1e 50%, #040c1a 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Container centraliza o card na tela */
.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  padding: 32px 20px;
}

/* Card — dois painéis lado a lado */
.auth-card {
  display: flex;
  width: 100%;
  max-width: 980px;
  min-height: 600px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.65), 0 0 0 1px var(--border);
}

.auth-card--narrow {
  max-width: 860px;
}

/* ── Painel esquerdo ──────────────────────────────────────── */
.auth-panel--visual {
  flex: 1;
  position: relative;
  background: linear-gradient(145deg, #0d1c38 0%, #0f2040 55%, #091629 100%);
  padding: 48px 52px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.auth-panel--visual::before {
  content: '';
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31,58,95,0.6) 0%, transparent 70%);
  top: -120px; right: -100px;
  pointer-events: none;
}

.auth-panel--visual::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,0.08) 0%, transparent 70%);
  bottom: -60px; left: -60px;
  pointer-events: none;
}

.auth-panel__overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.auth-panel__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.auth-logo { height: 48px; width: auto; margin-bottom: 10px; }

.auth-tagline {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.8;
}

.auth-headline {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
  margin-top: 40px;
  margin-bottom: 14px;
}
.auth-headline span { color: var(--gold); }

.auth-headline-sub {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 320px;
}

.auth-features {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: rgba(240,244,255,0.8);
}
.auth-feature i { font-size: 20px; color: var(--gold); flex-shrink: 0; }

/* ── Painel direito — formulário ─────────────────────────── */
.auth-panel--form {
  width: 400px;
  flex-shrink: 0;
  background: #0c1a2e;
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid rgba(212,175,55,0.15);
}

.auth-form-wrap { width: 100%; }

.auth-form-header { margin-bottom: 28px; }
.auth-form-header h1 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}
.auth-form-header p { color: var(--text-muted); font-size: 14px; margin-top: 4px; }

/* Form fields */
.form-group { margin-bottom: 16px; }

.form-group label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-label-link { font-weight: 600; font-size: 12px; color: var(--gold); }

.form-input-wrap { position: relative; }

.form-input-icon {
  position: absolute;
  left: 13px; top: 50%;
  transform: translateY(-50%);
  font-size: 17px;
  color: var(--text-muted);
  pointer-events: none;
}

.form-input {
  width: 100%;
  padding: 11px 14px 11px 40px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition);
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus { border-color: var(--gold); background: var(--surface-3); }


.form-toggle-pwd {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 17px;
  cursor: pointer;
  padding: 4px;
  transition: color var(--transition);
}
.form-toggle-pwd:hover { color: var(--text-primary); }

.auth-form { margin-bottom: 20px; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 16px;
  color: var(--text-muted);
  font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-sso { display: flex; gap: 10px; margin-bottom: 20px; }

.auth-footer-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 20px;
}

/* ─── Form components (telas internas) ──────────────────────────────────────── */

/* Linha de campos lado a lado */
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
  align-items: flex-start;
}

/* Grupo label + input */
.form-group { margin-bottom: 16px; flex: 1; min-width: 160px; }

.form-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-group small {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 5px;
  line-height: 1.4;
}

.form-group code {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--gold);
}

.form-group--grow { flex: 2; }
.form-group--sm   { flex: 0 0 130px; min-width: 0; }

/* Input / select / textarea padrão */
.form-control {
  display: block;
  width: 100%;
  padding: 10px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
  -webkit-appearance: none;
}
.form-control::placeholder { color: var(--text-muted); }
.form-control:focus         { border-color: var(--gold); background: var(--surface-3); }
.form-control--disabled, .form-control:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.form-control--half { max-width: 50%; }

select.form-control {
  cursor: pointer;
  background-color: #0a1628;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238fa3c0' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

select.form-control option,
select.form-control optgroup {
  background-color: #0a1628;
  color: #f0f4ff;
}
select.form-control option:disabled { color: #5a7090; }

textarea.form-control { resize: vertical; min-height: 90px; }

/* Input password com botão olho */
.input-password { position: relative; }
.input-password .form-control { padding-right: 42px; }
.input-password__toggle {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 17px;
  cursor: pointer;
  padding: 4px;
  transition: color var(--transition);
}
.input-password__toggle:hover { color: var(--text-primary); }

/* Toggle switch */
.form-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 600;
}
.form-toggle input[type="checkbox"] { display: none; }

.form-toggle__slider {
  position: relative;
  width: 42px; height: 22px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 999px;
  flex-shrink: 0;
  transition: all var(--transition);
}
.form-toggle__slider::before {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: all var(--transition);
}
.form-toggle input:checked + .form-toggle__slider {
  background: var(--gold-dim);
  border-color: var(--border-gold);
}
.form-toggle input:checked + .form-toggle__slider::before {
  left: 22px;
  background: var(--gold);
}
.form-toggle--inline { font-size: 13px; }

/* Rodapé do formulário com botões */
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.form-actions--spaced { justify-content: space-between; }

/* Alert / aviso inline */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 20px;
}
.alert i { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.alert--info    { background: rgba(42,79,130,0.2);  border: 1px solid rgba(110,168,254,0.2); color: #6ea8fe; }
.alert--success { background: rgba(52,168,83,0.12); border: 1px solid rgba(92,219,149,0.2);  color: #5cdb95; }
.alert--warning { background: var(--gold-dim);       border: 1px solid var(--border-gold);    color: var(--gold); }
.alert--danger  { background: rgba(255,80,80,0.12); border: 1px solid rgba(255,80,80,0.25);  color: #ff8888; }

/* ─── Settings — navegação por abas ─────────────────────────────────────────── */
.settings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.settings-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  border-radius: var(--radius) var(--radius) 0 0;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: -1px;
  white-space: nowrap;
}
.settings-tab-btn i { font-size: 15px; }

.settings-tab-btn:hover {
  background: var(--surface-1);
  color: var(--text-primary);
}
.settings-tab-btn--active {
  color: var(--gold);
  border-bottom-color: var(--gold);
  background: var(--gold-dim);
}

/* Painel de conteúdo de uma aba */
.settings-panel { animation: fadeInDown 0.18s ease; }

/* Seção interna (ex: SSO Google / Microsoft separados) */
.settings-section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 20px;
  background: var(--surface-1);
}
.settings-section:last-of-type { margin-bottom: 0; }

.settings-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.settings-section__header h4 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

/* data-table variante compacta */
.data-table--compact th,
.data-table--compact td { padding: 7px 10px; }

/* ─── Pagination ─────────────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  padding: 4px 0;
}

.pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px; height: 32px;
  padding: 0 8px;
  border-radius: var(--radius);
  background: var(--surface-1);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
}
.pagination__btn:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); opacity: 1; }
.pagination__btn--active { background: var(--gold-dim); border-color: var(--border-gold); color: var(--gold); }
.pagination__btn--nav { font-size: 16px; }

/* ─── Modal ──────────────────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(4, 12, 26, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.15s ease;
}

.modal {
  background: var(--surface-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
  width: 100%;
  max-width: 480px;
  animation: slideUp 0.2s ease;
  overflow: hidden;
}

.modal--sm  { max-width: 360px; }
.modal--lg  { max-width: 600px; }

.modal__header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 24px 0;
}

.modal__icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.modal__icon--warning  { background: var(--gold-dim);               color: var(--gold);   }
.modal__icon--danger   { background: rgba(255,80,80,0.12);          color: #ff8888;       }
.modal__icon--info     { background: rgba(42,79,130,0.25);          color: #6ea8fe;       }
.modal__icon--success  { background: rgba(52,168,83,0.12);          color: #5cdb95;       }

.modal__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.modal__subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.modal__body {
  padding: 16px 24px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.modal__body ul {
  margin: 8px 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
}

/* ─── Toast ──────────────────────────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--navy-mid);
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
  pointer-events: all;
  animation: slideInRight 0.25s ease;
  min-width: 280px;
}

.toast i { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.toast__content { flex: 1; min-width: 0; }
.toast__title   { font-weight: 700; font-size: 13px; color: var(--text-primary); }
.toast__msg     { font-size: 12px;  color: var(--text-secondary); margin-top: 2px; }
.toast__close   { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 16px; padding: 2px; flex-shrink: 0; transition: color var(--transition); }
.toast__close:hover { color: var(--text-primary); }

.toast--success { border-color: rgba(92,219,149,0.3); }
.toast--success i { color: #5cdb95; }
.toast--error   { border-color: rgba(255,80,80,0.3); }
.toast--error   i { color: #ff8888; }
.toast--info    { border-color: var(--border-gold); }
.toast--info    i { color: var(--gold); }
.toast--warning { border-color: rgba(255,165,0,0.3); }
.toast--warning i { color: #ffb347; }

.toast.removing { animation: slideOutRight 0.2s ease forwards; }

/* ─── Animations ─────────────────────────────────────────────────────────────── */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideOutRight {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(40px); }
}

/* ===== MÓDULO: GESTÃO DA CARTEIRA ========================================== */

.kpi-card--alert { border-color: rgba(255,80,80,0.3); }
.kpi-card__icon--red   { background: rgba(255,80,80,0.12);  color: #ff8888; }
.kpi-card__value--sm   { font-size: 20px; }

.carteira-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
  margin-top: 20px;
}

.carteira-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.carteira-empty {
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
  padding: 24px 0;
}

.carteira-link {
  color: var(--gold);
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 12px;
}
.carteira-link:hover { opacity: 0.8; }

.carteira-contrato {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
}

.carteira-cliente { font-weight: 600; font-size: 13px; }
.carteira-cpf     { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* Detail list */
.carteira-dl { display: flex; flex-direction: column; gap: 0; }
.carteira-dl__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}
.carteira-dl__row:last-child { border-bottom: none; }
.carteira-dl__row dt { font-size: 12px; color: var(--text-muted); flex-shrink: 0; }
.carteira-dl__row dd { font-size: 13px; color: var(--text-primary); text-align: right; }
.carteira-dl__value  { font-size: 16px; font-weight: 700; color: var(--gold); }

.carteira-obs { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

.carteira-row--inadimplente td { background: rgba(255,80,80,0.04); }
.carteira-row--inadimplente:hover td { background: rgba(255,80,80,0.08) !important; }

@media (max-width: 900px) {
  .carteira-grid        { grid-template-columns: 1fr; }
  .carteira-detail-grid { grid-template-columns: 1fr; }
}

/* ===== /MÓDULO: GESTÃO DA CARTEIRA ========================================= */

/* ===== MÓDULO: PLANEJAMENTO ESTRATÉGICO ==================================== */

/* Modais de formulário do módulo — overlay escuro + painel opaco (não altera .dash-card global) */
.pe-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  background: rgba(6, 15, 30, 0.92);
}
.pe-modal__panel.dash-card {
  background: var(--surface-panel);
  margin-bottom: 0;
}

.pe-progress {
  height: 8px;
  background: var(--surface-3);
  border-radius: 4px;
  overflow: hidden;
}

.pe-progress__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold));
  border-radius: 4px;
  transition: width var(--transition);
  min-width: 2px;
}

.pe-initiatives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.pe-initiative-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color var(--transition);
}

.pe-initiative-card:hover {
  border-color: var(--border-gold);
}

.pe-initiative-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pe-initiative-card__num {
  font-size: 28px;
  font-weight: 800;
  color: var(--gold-dim);
  font-family: var(--font-display);
  line-height: 1;
  filter: brightness(1.6);
}

.pe-initiative-card__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.4;
}

.pe-initiative-card__marco {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.pe-initiative-card__progress {
  margin-top: auto;
}

.pe-acao-card {
  transition: border-color var(--transition);
}

.pe-acao-card:hover {
  border-color: var(--border-gold);
}

.pe-acao-card--cancelada {
  opacity: .55;
}

.pe-initiative-card--cancelada {
  opacity: .6;
}

.pe-initiative-card--cancelada:hover {
  border-color: var(--border);
}

@media (max-width: 900px) {
  .pe-initiatives-grid { grid-template-columns: 1fr; }
}


/* ─── AxialClipboardImage + anexos iniciativa (Planejamento) ───────────────── */
[data-axia-paste-upload]:focus {
  outline: none;
}
[data-axia-paste-upload].axia-paste-active {
  border-color: var(--gold) !important;
  background: var(--gold-dim) !important;
  box-shadow: 0 0 0 1px var(--gold);
}
.axia-paste-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.axia-paste-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin: 6px 0 0;
}
.pe-attach-dropzone {
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 16px;
  background: var(--surface-2);
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.pe-attach-dropzone.is-dragover,
.pe-attach-dropzone:focus {
  border-color: var(--gold);
  background: var(--surface-3);
}
.pe-attach-dropzone__text {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.pe-attach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.pe-attach-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.pe-attach-card__preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 110px;
  background: var(--surface-3);
  border: none;
  cursor: pointer;
  padding: 0;
  width: 100%;
  color: var(--gold);
}
.pe-attach-card__preview img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}
.pe-attach-card__icon {
  font-size: 32px;
  line-height: 1;
}
.pe-attach-card__ext {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text-muted);
}
.pe-attach-card__meta {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pe-attach-card__name {
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  color: var(--gold);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  word-break: break-word;
}
.pe-attach-card__sub {
  font-size: 11px;
  color: var(--text-muted);
}
.pe-attach-card__actions {
  display: flex;
  gap: 6px;
}

.pe-attach-carousel {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pe-attach-carousel[hidden] { display: none !important; }
.pe-attach-carousel__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 15, 30, 0.92);
}
.pe-attach-carousel__panel {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  background: var(--surface-panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
}
.pe-attach-carousel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.pe-attach-carousel__header h3 {
  margin: 0;
  font-size: 15px;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pe-attach-carousel__header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.pe-attach-carousel__close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  padding: 4px;
}
.pe-attach-carousel__body {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  min-height: 280px;
  background: var(--surface-2);
}
.pe-attach-carousel__stage {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  max-height: calc(100vh - 220px);
}
.pe-attach-carousel__img {
  max-width: 100%;
  max-height: calc(100vh - 220px);
  object-fit: contain;
  border-radius: 6px;
}
.pe-attach-carousel__frame {
  width: 100%;
  height: min(70vh, 560px);
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-1);
}
.pe-attach-carousel__file {
  text-align: center;
  color: var(--text-secondary);
  padding: 24px;
}
.pe-attach-carousel__file i {
  font-size: 48px;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
}
.pe-attach-carousel__hint {
  font-size: 12px;
  color: var(--text-muted);
  margin: 8px 0 0;
}
.pe-attach-carousel__nav {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-1);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.pe-attach-carousel__nav:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.pe-attach-carousel__footer {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* ===== /MÓDULO: PLANEJAMENTO ESTRATÉGICO =================================== */

/* ─── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .app-main { margin-left: 0; }

  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open { transform: translateX(0); }

  .topbar__menu-btn { display: flex; }

  .auth-card { flex-direction: column; min-height: auto; }
  .auth-panel--visual { display: none; }
  .auth-panel--form { width: 100%; border-left: none; padding: 40px 24px; }
}

/* ─── AxialClipboardImage — zona de colar print ─────────────────────────────── */
[data-axia-paste-upload]:focus {
  outline: none;
}
[data-axia-paste-upload].axia-paste-active {
  border-color: var(--gold) !important;
  background: var(--gold-dim) !important;
  box-shadow: 0 0 0 1px var(--gold);
}
.axia-paste-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.axia-paste-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin: 6px 0 0;
}
