/* ──────────────────────────────────────────────────────────
   Findectra — app.css
   Server-rendered. No framework. No external resources.
   ────────────────────────────────────────────────────────── */

/* ── Design tokens — paleta oficial Findectra ── */
:root {
  /* Navy */
  --color-navy-950: #071525;
  --color-navy-900: #0B2347;
  --color-navy-800: #0e2d5c;
  --color-navy-700: #143680;

  /* Blue */
  --color-primary:      #2563EB;
  --color-primary-dark: #1d4ed8;
  --color-primary-soft: #EFF6FF;
  --color-primary-ring: #bfdbfe;
  --color-accent:       #3B82F6;

  /* Canvas */
  --color-background: #F6F8FB;
  --color-surface:    #FFFFFF;
  --color-border:     #E2E8F0;
  --color-border-soft: #F1F5F9;

  /* Text */
  --color-text-primary:   #0F172A;
  --color-text-secondary: #64748B;
  --color-text-muted:     #94A3B8;

  /* Semânticas */
  --color-success:        #16A34A;
  --color-success-bg:     #f0fdf4;
  --color-success-border: #bbf7d0;
  --color-warning:        #F59E0B;
  --color-warning-bg:     #fffbeb;
  --color-warning-border: #fde68a;
  --color-warning-text:   #92400e;
  --color-danger:         #EF4444;
  --color-danger-bg:      #fef2f2;
  --color-danger-border:  #fca5a5;
  --color-danger-text:    #991b1b;

  /* Typography */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, Helvetica, Arial, sans-serif;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;

  /* Radius */
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 10px;
  --r-xl: 14px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);

  --t-fast: 120ms ease;
  --t-base: 200ms ease;
}

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

html { min-height: 100%; -webkit-text-size-adjust: 100%; }
body {
  min-height: 100%;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-text-primary);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }

button, input, select, textarea {
  font-family: inherit; font-size: inherit; line-height: inherit;
}
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.55; }

:focus-visible {
  outline: 2.5px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* ────────────────────────────────────────────
   LOGIN PAGE
   ─────────────────────────────────────────── */

.page-login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--space-6);
  background: var(--color-background);
}

.login-card {
  display: flex;
  width: 100%;
  max-width: 880px;
  background: var(--color-surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.login-brand {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 340px;
  flex-shrink: 0;
  background: var(--color-navy-950);
  padding: var(--space-12) var(--space-10);
  position: relative;
  overflow: hidden;
}

.login-brand-deco {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.55;
}

.login-brand-top {
  position: relative;
  z-index: 1;
}

.login-brand-footer {
  position: relative;
  z-index: 1;
  font-size: 12px;
  color: rgba(255,255,255,0.22);
  letter-spacing: 0.02em;
}

.brand-logo-img {
  height: 52px;
  width: auto;
  display: block;
  margin-bottom: var(--space-6);
}

.brand-tagline {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.50);
  max-width: 220px;
}

.brand-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: var(--space-8);
}

.brand-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}

.brand-feature-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(59,130,246,0.80);
  flex-shrink: 0;
}

.login-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-10);
}

.login-form-inner { width: 100%; max-width: 360px; }

.login-heading {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
}

.login-subheading {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
}

.alert {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--r-md);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: var(--space-6);
  border: 1px solid transparent;
}

.alert-error {
  background: var(--color-danger-bg);
  color: var(--color-danger-text);
  border-color: var(--color-danger-border);
}

.field { margin-bottom: var(--space-5); }

.field-label {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.field-input {
  display: block;
  width: 100%;
  padding: 10px var(--space-3);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--r-md);
  font-size: 15px;
  color: var(--color-text-primary);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.field-input::placeholder { color: var(--color-text-muted); }
.field-input:hover { border-color: var(--color-text-muted); }
.field-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 10px var(--space-5);
  border-radius: var(--r-md);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  border: 1.5px solid transparent;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
  white-space: nowrap;
}

.btn-full { width: 100%; }

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn-primary:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); }
.btn-primary:focus-visible {
  outline: 2.5px solid var(--color-primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--color-primary-soft);
}

.btn-submit-row { margin-top: var(--space-6); }

/* ────────────────────────────────────────────
   PAINEL — grid layout
   ─────────────────────────────────────────── */

.page-painel {
  display: grid;
  grid-template-columns: 220px 1fr;
  height: 100vh;
  background: var(--color-background);
}

/* ═══════════════════════════════
   SIDEBAR
   ═══════════════════════════════ */

.sidebar {
  background: var(--color-navy-950);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  flex-shrink: 0;
}

/* Logo */
.sidebar-header {
  padding: var(--space-5) var(--space-5);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.sidebar-logo-img {
  height: 64px;
  width: auto;
  display: block;
}

/* Nav */
.sidebar-nav {
  padding: var(--space-3) var(--space-3) var(--space-4);
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px var(--space-3);
  border-radius: var(--r-md);
  font-size: 13.5px;
  color: rgba(255,255,255,0.58);
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast);
  width: 100%;
  margin-bottom: 1px;
  cursor: default;
}

a.nav-item:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
  text-decoration: none;
}

.nav-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.nav-item--active {
  background: rgba(37,99,235,0.20);
  color: #fff;
  font-weight: 500;
}
.nav-item--active:hover { background: rgba(37,99,235,0.20); }

.nav-item--disabled {
  opacity: 0.48;
  pointer-events: none;
}

.nav-item-text { flex: 1; }

/* Footer: user + logout */
.sidebar-footer {
  border-top: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-4) var(--space-3);
}

.sidebar-user-info { flex: 1; min-width: 0; }

.sidebar-username {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-role {
  font-size: 11px;
  color: rgba(255,255,255,0.36);
  text-transform: capitalize;
}

.sidebar-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  flex-shrink: 0;
  text-transform: uppercase;
}

.logout-form { padding: 0 var(--space-3) var(--space-3); }

.btn-logout {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  padding: 7px var(--space-3);
  border-radius: var(--r-md);
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
  text-align: left;
}
.btn-logout:hover {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.68);
}

/* Plan badge */
.sidebar-plan {
  padding: var(--space-3) var(--space-4) var(--space-4);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.sidebar-plan-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
  margin-bottom: 4px;
}

.sidebar-plan-name {
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
}

/* ═══════════════════════════════
   MAIN AREA
   ═══════════════════════════════ */

.main-area {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* ═══════════════════════════════════════════════
   HERO — área unificada navy (search + saudação)
   ═══════════════════════════════════════════════ */

.hero-section {
  position: relative;
  z-index: 10;
  background: var(--color-navy-950);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

/* Geometria exclusiva Findectra — fitas angulares vetoriais */
.hero-deco {
  position: absolute;
  inset: 0 0 0 auto;
  width: 72%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0.98;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.16) 9%, rgba(0,0,0,0.82) 24%, #000 38%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.16) 9%, rgba(0,0,0,0.82) 24%, #000 38%);
}

.hero-art {
  position: absolute;
  inset: -1px -1px -1px 0;
  width: calc(100% + 1px);
  height: calc(100% + 2px);
  display: block;
}

/* ── Hero top row: search + actions ── */
.hero-top {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 0 var(--space-8);
  height: 58px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
}

/* Search no fundo escuro */
.hero-search-wrap {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.hero-search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.38);
  pointer-events: none;
  display: flex;
}

.hero-search-input {
  display: block;
  width: 100%;
  padding: 8px 14px 8px 36px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r-lg);
  font-size: 13.5px;
  color: rgba(255,255,255,0.75);
  transition: border-color var(--t-fast);
}

.hero-search-input::placeholder { color: rgba(255,255,255,0.35); }
.hero-search-input:disabled { cursor: not-allowed; opacity: 1; }
.hero-search-input:focus:not(:disabled) {
  outline: none;
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.09);
}

.hero-top-spacer { flex: 1; }

/* Notificação */
.hero-notif-wrap {
  position: relative;
  flex-shrink: 0;
  z-index: 300;
}

.hero-bell {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.58);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: background var(--t-fast), color var(--t-fast);
}
.hero-bell:hover {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.90);
}
.hero-bell:active {
  background: rgba(255,255,255,0.13);
}

.hero-bell-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  background: #EF4444;
  border-radius: 50%;
  border: 1.5px solid var(--color-navy-950);
}

.hero-notif-panel {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: -8px;
  width: 272px;
  background: #0B2347;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r-lg);
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  z-index: 200;
  overflow: hidden;
}
.hero-notif-panel.is-open { display: block; }

.hero-notif-head {
  padding: 12px 16px 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.40);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.hero-notif-empty {
  padding: 28px 16px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.32);
}

/* Usuário no hero */
.hero-user-wrap {
  position: relative;
  flex-shrink: 0;
  z-index: 300;
}

.hero-user-area {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 4px 8px 4px 4px;
  border-radius: var(--r-lg);
  transition: background var(--t-fast);
}
.hero-user-area:hover { background: rgba(255,255,255,0.07); }
.hero-user-area:active { background: rgba(255,255,255,0.11); }

.hero-user-chevron {
  color: rgba(255,255,255,0.32);
  margin-left: 2px;
  transition: transform var(--t-base), color var(--t-fast);
  flex-shrink: 0;
}
.hero-user-area[aria-expanded="true"] .hero-user-chevron {
  transform: rotate(180deg);
  color: rgba(255,255,255,0.60);
}

.hero-user-panel {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 220px;
  background: #0B2347;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r-lg);
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  z-index: 200;
  overflow: hidden;
}
.hero-user-panel.is-open { display: block; }

.hero-user-panel-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.hero-user-panel-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(37,99,235,0.30);
  border: 1.5px solid rgba(37,99,235,0.50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  text-transform: uppercase;
}

.hero-user-panel-name {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.90);
  line-height: 1.3;
}
.hero-user-panel-role {
  font-size: 11px;
  color: rgba(255,255,255,0.38);
  text-transform: capitalize;
}

.hero-user-panel-items { padding: 6px 0; }

.hero-user-panel-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 9px 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.60);
  cursor: default;
  transition: background var(--t-fast), color var(--t-fast);
  width: 100%;
  background: none;
  border: none;
  text-align: left;
}
.hero-user-panel-item:not(.hero-user-panel-item--disabled):not(.hero-user-panel-item--danger) {
  cursor: pointer;
}
.hero-user-panel-item:not(.hero-user-panel-item--disabled):not(.hero-user-panel-item--danger):hover {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.88);
}

.hero-user-panel-item--disabled {
  opacity: 0.38;
  pointer-events: none;
}

.hero-user-panel-divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 4px 0;
}

.hero-user-panel-item--danger {
  color: rgba(239,68,68,0.80);
  cursor: pointer;
}
.hero-user-panel-item--danger:hover {
  background: rgba(239,68,68,0.08);
  color: #EF4444;
}

.hero-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  flex-shrink: 0;
  text-transform: uppercase;
}

.hero-user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.hero-username {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}

.hero-userrole {
  font-size: 11px;
  color: rgba(255,255,255,0.42);
  text-transform: capitalize;
}

/* ── Hero body: saudação ── */
.hero-body {
  position: relative;
  z-index: 2;
  padding: var(--space-8) var(--space-8) var(--space-10);
  max-width: 58%;
}

.hero-label {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.48);
  margin-bottom: 4px;
}

.hero-greeting {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #fff;
  line-height: 1.1;
  margin-bottom: var(--space-3);
}

.hero-meta {
  font-size: 13.5px;
  color: rgba(255,255,255,0.42);
  line-height: 1.55;
  max-width: 440px;
}

/* ═══════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════ */

.main-content {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding: var(--space-6) var(--space-8);
}

/* Section labels */
.section-heading {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.section-subheading {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

/* ─── Filtro principal — empty state ─── */
.search-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-12) var(--space-8);
  color: var(--color-text-muted);
  text-align: center;
}
.search-empty svg { opacity: 0.35; }
.search-empty p { font-size: 14px; }

/* ─── Continue de onde parou — 4 cards ─── */
.shortcuts-section { margin-bottom: var(--space-6); }

.shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.shortcut-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg);
  padding: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  transition: border-color var(--t-base), box-shadow var(--t-base);
  cursor: default;
  position: relative;
}

.shortcut-card--active {
  cursor: pointer;
}
.shortcut-card--active:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.shortcut-card--soon {
  pointer-events: none;
  opacity: 0.58;
}

.shortcut-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--r-md);
  background: var(--color-primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary);
}

.shortcut-card-body {
  flex: 1;
  min-width: 0;
}

.shortcut-card-category {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

.shortcut-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shortcut-card-sub {
  font-size: 11.5px;
  color: var(--color-text-muted);
  margin-top: 1px;
}

/* Botão circular seta — conforme referência */
.shortcut-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  flex-shrink: 0;
  transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast);
}

.shortcut-card--active .shortcut-arrow {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.shortcut-card--active:hover .shortcut-arrow {
  background: var(--color-primary);
  color: #fff;
}

/* ─── Módulos — linhas horizontais compactas ─── */
.modules-list-section { margin-bottom: var(--space-8); }

.modules-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.module-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 13px var(--space-5);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--t-fast);
  cursor: default;
}

.module-row:last-child { border-bottom: none; }

/* Ícone com fundo azul sólido — conforme referência */
.module-row-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--r-md);
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.module-row-body { flex: 1; min-width: 0; }

.module-row-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.3;
}

.module-row-desc {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-top: 1px;
}

/* Badge ativo */
.badge-active {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-success);
  background: var(--color-success-bg);
  border: 1px solid var(--color-success-border);
  border-radius: 20px;
  padding: 2px 9px;
  flex-shrink: 0;
  white-space: nowrap;
}

.badge-active::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-success);
}

/* Badge Em breve — laranja/âmbar */
.badge-soon-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-warning-text);
  background: var(--color-warning-bg);
  border: 1px solid var(--color-warning-border);
  border-radius: 20px;
  padding: 2px 9px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Chevron do módulo */
.module-row-chevron {
  color: var(--color-text-muted);
  flex-shrink: 0;
  opacity: 0.45;
}

/* Status operacional — pill interativo no hero-top */
.hero-status-wrap {
  position: relative;
  flex-shrink: 0;
  z-index: 300;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: #4ade80;
  background: rgba(74,222,128,0.08);
  border: 1px solid rgba(74,222,128,0.20);
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.hero-status-pill:hover {
  background: rgba(74,222,128,0.13);
  border-color: rgba(74,222,128,0.35);
}

.hero-status-chevron {
  color: rgba(74,222,128,0.60);
  transition: transform var(--t-base);
}
.hero-status-pill[aria-expanded="true"] .hero-status-chevron {
  transform: rotate(180deg);
}

.hero-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(74,222,128,0.60);
}

.hero-status-panel {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  background: #0B2347;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r-lg);
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  z-index: 200;
  overflow: hidden;
}
.hero-status-panel.is-open { display: block; }

.hero-status-panel-head {
  padding: 12px 16px 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.40);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.hero-status-panel-items { padding: 8px 0 4px; }

.hero-status-panel-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
}

.hero-status-panel-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.hero-status-panel-dot--ok {
  background: #4ade80;
  box-shadow: 0 0 5px rgba(74,222,128,0.55);
}

.hero-status-panel-label {
  font-size: 12.5px;
  color: rgba(255,255,255,0.65);
  flex: 1;
}

.hero-status-panel-value { font-size: 11.5px; font-weight: 600; }
.hero-status-panel-value--ok { color: #4ade80; }

/* Divider */
.divider {
  height: 1px;
  background: var(--color-border);
  margin: var(--space-6) 0;
}

/* ════════════════════════════════
   RESPONSIVE
   ════════════════════════════════ */

/* Login: tablet */
@media (max-width: 760px) {
  .login-brand { display: none; }
  .login-card { max-width: 440px; }
  .login-form-panel { padding: var(--space-10) var(--space-8); }
}

/* Login: mobile */
@media (max-width: 480px) {
  .page-login { padding: var(--space-4); align-items: flex-start; padding-top: var(--space-10); }
  .login-form-panel { padding: var(--space-8) var(--space-6); }
}

/* Painel: ≤1200px — 2 colunas nos atalhos */
@media (max-width: 1200px) {
  .shortcuts-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Painel: tablet */
@media (max-width: 900px) {
  .page-painel { grid-template-columns: 190px 1fr; }
  .main-content { padding: var(--space-5); }
  .hero-top { padding: 0 var(--space-5); }
  .hero-body { padding: var(--space-6) var(--space-5) var(--space-8); max-width: 70%; }
  .hero-deco { display: none; }
  .shortcuts-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Painel: mobile */
@media (max-width: 640px) {
  .page-painel { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }

  .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: 0 var(--space-3);
    overflow-x: auto;
    overflow-y: visible;
  }

  .sidebar-header { border-bottom: none; padding: var(--space-3) var(--space-2); flex-shrink: 0; }
  .sidebar-footer, .sidebar-plan { display: none; }

  .sidebar-nav {
    display: flex;
    flex-direction: row;
    gap: 4px;
    padding: var(--space-2) 0;
    flex: 1;
    overflow-x: auto;
  }

  .nav-item { padding: 6px var(--space-3); white-space: nowrap; margin-bottom: 0; }
  .nav-icon { display: none; }

  .hero-top { padding: 0 var(--space-4); height: 50px; }
  .hero-search-wrap { max-width: none; }
  .hero-user-info { display: none; }
  .hero-body { padding: var(--space-5) var(--space-4) var(--space-7); max-width: none; }
  .hero-greeting { font-size: 24px; }
  .hero-deco { display: none; }

  .main-content { padding: var(--space-4); }
  .shortcuts-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 400px) {
  .shortcuts-grid { grid-template-columns: 1fr; }
}
