/* ============================================================
   Lux Contabilidade — Área do Cliente
   Identidade: fundo escuro #0f1117, laranja #B83229, branco
   ============================================================ */

:root {
  --lux-orange:      #B83229;
  --lux-orange-dark: #8e2520;
  --lux-orange-light:#cc3d33;
  --lux-dark:        #0f1117;
  --lux-dark-2:      #1a1d27;
  --lux-dark-3:      #22263a;
  --lux-border:      rgba(255,255,255,.1);
  --lux-border-2:    rgba(255,255,255,.06);
  --lux-text:        #f1f1f1;
  --lux-text-muted:  #9ca3af;
  --lux-success:     #34d399;
  --lux-danger:      #f87171;
  --lux-radius:      10px;
  --lux-radius-lg:   14px;
  --lux-shadow:      0 4px 24px rgba(0,0,0,.35);
}

/* ── Wrapper geral ── */
.lux-dashboard,
.lux-upload-form,
.lux-history {
  width: 100%;
  padding: 2rem 0;
  color: var(--lux-text);
}

/* ── Header ── */
.lux-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--lux-border);
}
.lux-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--lux-text);
}
.lux-cnpj {
  color: var(--lux-text-muted);
  font-size: .8125rem;
  background: var(--lux-dark-3);
  padding: .2rem .65rem;
  border-radius: 20px;
  border: 1px solid var(--lux-border);
}

/* ── Cards de resumo ── */
.lux-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.lux-card {
  background: var(--lux-dark-2);
  border: 1px solid var(--lux-border);
  border-radius: var(--lux-radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: border-color .2s;
}
.lux-card:hover { border-color: var(--lux-orange); }
.lux-card__number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--lux-orange);
  line-height: 1;
}
.lux-card__label {
  font-size: .8125rem;
  color: var(--lux-text-muted);
  margin-top: .35rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ── Botões ── */
.lux-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem 1.3rem;
  border-radius: var(--lux-radius);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid var(--lux-border);
  background: var(--lux-dark-3);
  color: var(--lux-text);
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.lux-btn:hover { background: var(--lux-dark-2); border-color: rgba(255,255,255,.2); color: #fff; }
.lux-btn--primary {
  background: var(--lux-orange);
  color: #fff;
  border-color: var(--lux-orange);
}
.lux-btn--primary:hover { background: var(--lux-orange-dark); border-color: var(--lux-orange-dark); color: #fff; }
.lux-btn--outline { background: transparent; border-color: var(--lux-border); }
.lux-btn--full { width: 100%; justify-content: center; padding: .75rem; font-size: 1rem; }
.lux-btn--sm { padding: .55rem 1.1rem; font-size: .875rem; }
.lux-btn:disabled { opacity: .5; cursor: not-allowed; }

.lux-actions {
  display: flex;
  gap: .75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

/* ── Tabela ── */
.lux-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
  background: var(--lux-dark-2);
  border-radius: var(--lux-radius-lg);
  overflow: hidden;
  border: 1px solid var(--lux-border);
}
.lux-table th {
  background: var(--lux-dark-3);
  color: var(--lux-text-muted);
  font-weight: 600;
  font-size: .8125rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--lux-border);
}
.lux-table td {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--lux-border-2);
  color: var(--lux-text);
}
.lux-table tr:last-child td { border-bottom: none; }
.lux-table tr:hover td { background: rgba(255,255,255,.03); }

/*
 * Paginação para listagens longas
 *
 * A tabela de histórico de documentos agora pode ter muitas entradas. Para
 * evitar páginas infinitas, implementamos uma paginação simples na página
 * history.php. Estas classes definem a aparência dos links de página.
 */
.lux-pagination {
  display: flex;
  gap: 6px;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.lux-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border: 1px solid var(--lux-border);
  border-radius: var(--lux-radius);
  font-size: .8125rem;
  color: var(--lux-text);
  background: var(--lux-dark-3);
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.lux-page-link:hover {
  background: var(--lux-dark-2);
  border-color: rgba(255,255,255,.2);
  color: #fff;
}
.lux-page-link.active {
  background: var(--lux-orange);
  border-color: var(--lux-orange);
  color: #fff;
}

/* ── Formulário de upload ── */
.lux-upload-form h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--lux-text);
}
.lux-field { margin-bottom: 1.35rem; }
.lux-field label {
  display: block;
  font-weight: 600;
  margin-bottom: .5rem;
  font-size: .875rem;
  color: var(--lux-text);
}
.lux-field select,
.lux-field input[type="month"],
.lux-field textarea {
  width: 100%;
  max-width: 520px;
  padding: .65rem .9rem;
  border: 1px solid var(--lux-border);
  border-radius: var(--lux-radius);
  font-size: .9rem;
  font-family: inherit;
  background: var(--lux-dark-3);
  color: var(--lux-text);
  transition: border-color .15s;
}
.lux-field select:focus,
.lux-field input[type="month"]:focus,
.lux-field textarea:focus {
  outline: none;
  border-color: var(--lux-orange);
  box-shadow: 0 0 0 3px rgba(232,93,36,.15);
}
.lux-field select option { background: var(--lux-dark-3); }
.lux-field textarea { resize: vertical; min-height: 90px; }
.lux-required { color: var(--lux-orange); }

/* ── Dropzone ── */
.lux-dropzone {
  border: 2px dashed var(--lux-border);
  border-radius: var(--lux-radius);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  position: relative;
  max-width: 520px;
  transition: border-color .2s, background .2s;
  color: var(--lux-text-muted);
  background: var(--lux-dark-3);
}
.lux-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.lux-dropzone--over {
  border-color: var(--lux-orange);
  background: rgba(232,93,36,.07);
  color: var(--lux-text);
}
.lux-file-name {
  display: block;
  margin-top: .5rem;
  font-size: .8125rem;
  color: var(--lux-orange-light);
  max-width: 520px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Mensagens ── */
.lux-msg--success {
  color: var(--lux-success);
  padding: .7rem 1rem;
  background: rgba(52,211,153,.08);
  border-radius: var(--lux-radius);
  border: 1px solid rgba(52,211,153,.25);
  margin-bottom: 1.25rem;
  display: block;
  font-size: .875rem;
}
.lux-msg--error {
  color: var(--lux-danger);
  padding: .7rem 1rem;
  background: rgba(248,113,113,.08);
  border-radius: var(--lux-radius);
  border: 1px solid rgba(248,113,113,.25);
  margin-bottom: 1.25rem;
  display: block;
  font-size: .875rem;
}

/* ── Filtros ── */
.lux-filters {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  align-items: center;
}
.lux-filters select,
.lux-filters input[type="month"] {
  padding: .5rem .75rem;
  border: 1px solid var(--lux-border);
  border-radius: var(--lux-radius);
  font-size: .875rem;
  background: var(--lux-dark-3);
  color: var(--lux-text);
}
.lux-empty { color: var(--lux-text-muted); padding: 2rem 0; }
.lux-recent h3 { font-size: 1rem; margin-bottom: .75rem; font-weight: 600; color: var(--lux-text-muted); text-transform: uppercase; letter-spacing: .05em; }

/* ── Login ── */
.lux-login-wrap {
  max-width: 420px;
  margin: 0 auto;
  padding: 2rem 0;
}
.lux-login-form {
  background: var(--lux-dark-2);
  border: 1px solid var(--lux-border);
  border-radius: var(--lux-radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--lux-shadow);
}
.lux-login-logo {
  text-align: center;
  margin-bottom: 1.5rem;
}
.lux-logo-img { max-width: 160px; height: auto; }
.lux-login-brand { font-size: 1.4rem; font-weight: 800; color: var(--lux-orange); }
.lux-login-title {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 .35rem;
  color: var(--lux-text);
}
.lux-login-subtitle {
  text-align: center;
  color: var(--lux-text-muted);
  font-size: .875rem;
  margin-bottom: 1.75rem;
}
.lux-password-wrap { position: relative; max-width: 520px; }
.lux-password-wrap input { padding-right: 2.75rem; width: 100%; }
.lux-pwd-toggle {
  position: absolute;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--lux-text-muted);
  padding: 0;
  line-height: 1;
}
.lux-pwd-toggle:hover { color: var(--lux-text); }
.lux-field--checkbox label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 400;
  color: var(--lux-text-muted);
  font-size: .875rem;
}
.lux-login-forgot {
  text-align: center;
  margin-top: 1.25rem;
  font-size: .8125rem;
}
.lux-login-forgot a { color: var(--lux-text-muted); }
.lux-login-forgot a:hover { color: var(--lux-orange); }

/* ── Barra laranja no topo da página de login WP ── */
#login { background: var(--lux-dark) !important; }
#login h1 a { background-size: contain !important; }
.login #backtoblog a, .login #nav a { color: var(--lux-text-muted) !important; }

/* ── Responsivo ── */
@media (max-width: 640px) {
  .lux-table { display: block; overflow-x: auto; }
  .lux-filters { flex-direction: column; align-items: flex-start; }
  .lux-login-form { padding: 1.75rem 1.25rem; }
  .lux-cards { grid-template-columns: 1fr 1fr; }
}


/* ── Navegação do cliente (breadcrumb entre páginas) ── */
.lux-client-nav {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 10px 0 18px !important;
  flex-wrap: wrap !important;
  list-style: none !important;
  margin: 0 !important;
}
.lux-cnav-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #9ca3af !important;
  text-decoration: none !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  background: #22263a !important;
  transition: all .15s !important;
  white-space: nowrap !important;
  line-height: 1.4 !important;
}
.lux-cnav-item:hover {
  color: #f1f1f1 !important;
  border-color: rgba(255,255,255,.25) !important;
  background: #1a1d27 !important;
  text-decoration: none !important;
}
.lux-cnav-item.active {
  border-color: #B83229 !important;
  color: #B83229 !important;
  background: rgba(232,93,36,.08) !important;
}
.lux-cnav-logout {
  margin-left: auto !important;
  color: #f87171 !important;
  border-color: rgba(248,113,113,.2) !important;
}
.lux-cnav-logout:hover {
  background: rgba(248,113,113,.08) !important;
  border-color: rgba(248,113,113,.4) !important;
  color: #f87171 !important;
}


/* ── Histórico renovado ── */
.lux-history-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}
.lux-history-count {
  font-size: 13px;
  color: var(--lux-text-muted);
  background: var(--lux-dark-3);
  padding: 2px 10px;
  border-radius: 20px;
  border: 1px solid var(--lux-border);
}
.lux-filters-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
  padding: 16px;
  background: var(--lux-dark-3);
  border: 1px solid var(--lux-border);
  border-radius: 8px;
  margin-bottom: 16px;
}
.lux-filter-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 140px;
}
.lux-filter-field label {
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--lux-text-muted);
}
.lux-filter-field select,
.lux-filter-field input[type=date] {
  background: var(--lux-dark-2) !important;
  border: 1px solid var(--lux-border) !important;
  border-radius: 6px !important;
  padding: 8px 10px !important;
  color: var(--lux-text) !important;
  font-size: 13px !important;
  font-family: inherit !important;
  outline: none !important;
  height: auto !important;
  box-shadow: none !important;
}
.lux-filter-field select:focus,
.lux-filter-field input[type=date]:focus {
  border-color: var(--lux-orange) !important;
}
.lux-filter-actions {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  flex-wrap: wrap;
}
/* lux-btn--sm definido acima */
.lux-table-wrap {
  overflow-x: auto;
}
.lux-td-file {
  font-family: monospace;
  font-size: 13px;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lux-td-folder {
  font-size: 13px;
  max-width: 160px;
}
.lux-folder-link {
  display: inline-flex;
  align-items: flex-start; /* alinha o ícone ao topo quando o texto quebra em 2 linhas */
  gap: 5px;
  color: var(--lux-orange) !important;
  text-decoration: none !important;
  font-size: 13px;
  line-height: 1.35;
  transition: opacity .15s;
}
.lux-folder-link svg {
  flex: 0 0 auto !important;   /* nunca cresce nem encolhe */
  flex-shrink: 0 !important;
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  max-width: 14px !important;
  min-height: 14px !important;
  max-height: 14px !important;
  margin-top: 1px;             /* alinha com a primeira linha do texto */
  align-self: flex-start;      /* fixa no topo se o texto quebrar */
}
.lux-folder-link:hover { opacity: .75; }
.lux-td-date { font-size: 13px; white-space: nowrap; color: var(--lux-text-muted); }
.lux-role-badge {
  font-size: 13px;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 500;
  letter-spacing: .04em;
  white-space: nowrap;
}
.lux-role-escritório {
  background: rgba(200,22,29,.1);
  border: 1px solid rgba(200,22,29,.25);
  color: #e87a7d;
}
.lux-role-colaborador {
  background: rgba(99,102,241,.1);
  border: 1px solid rgba(99,102,241,.25);
  color: #a5b4fc;
}
.lux-role-cliente {
  background: rgba(52,211,153,.08);
  border: 1px solid rgba(52,211,153,.2);
  color: #34d399;
}


/* ── Botões do histórico — isolados do tema/Elementor ── */
.lux-history-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 9px 18px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  font-family: inherit !important;
  cursor: pointer !important;
  text-decoration: none !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  background: #22263a !important;
  color: #f1f1f1 !important;
  transition: background .15s, border-color .15s !important;
  white-space: nowrap !important;
  line-height: 1 !important;
  box-shadow: none !important;
  outline: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}
.lux-history-btn:hover {
  background: #2d3250 !important;
  border-color: rgba(255,255,255,.22) !important;
  color: #fff !important;
  text-decoration: none !important;
}
.lux-history-btn--primary {
  background: #B83229 !important;
  border-color: #B83229 !important;
  color: #fff !important;
}
.lux-history-btn--primary:hover {
  background: #8e2520 !important;
  border-color: #8e2520 !important;
  color: #fff !important;
}


/* ── Dashboard enriquecido ── */
.lux-dash-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--lux-border);
}
.lux-dash-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--lux-text);
  margin: 0 0 4px;
}
.lux-dash-subtitle {
  font-size: 0.875rem;
  color: var(--lux-text-muted);
  margin: 0;
}
.lux-dash-badge {
  background: rgba(184,50,41,.12);
  border: 1px solid rgba(184,50,41,.25);
  color: #e87a7d;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}
.lux-dash-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.lux-dash-card {
  background: var(--lux-dark-3);
  border: 1px solid var(--lux-border);
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
  transition: border-color .15s;
}
.lux-dash-card:hover { border-color: rgba(184,50,41,.3); }
.lux-dash-card__icon {
  color: var(--lux-orange);
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
}
.lux-dash-card__num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--lux-text);
  line-height: 1;
  margin-bottom: 6px;
}
.lux-dash-card__label {
  font-size: 0.8125rem;
  color: var(--lux-text-muted);
  line-height: 1.4;
}
.lux-dash-section {
  margin-bottom: 28px;
}
.lux-dash-section__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--lux-text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0 0 12px;
}
.lux-dash-last-doc {
  background: var(--lux-dark-3);
  border: 1px solid var(--lux-border);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.lux-dash-last-doc__icon {
  color: var(--lux-orange);
  flex-shrink: 0;
}
.lux-dash-last-doc__info {
  flex: 1;
  min-width: 0;
}
.lux-dash-last-doc__name {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--lux-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lux-dash-last-doc__meta {
  display: block;
  font-size: 0.8125rem;
  color: var(--lux-text-muted);
  margin-top: 2px;
}
.lux-dash-folders {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--lux-border);
  border-radius: 8px;
  overflow: hidden;
}
.lux-dash-folder {
  background: var(--lux-dark-3);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
  color: var(--lux-text) !important;
  transition: background .15s;
  cursor: pointer;
}
.lux-dash-folder:hover { background: var(--lux-dark-2) !important; }
.lux-dash-folder svg:first-child { color: var(--lux-orange); flex-shrink: 0; }
.lux-dash-folder > div { flex: 1; min-width: 0; }
.lux-dash-folder__name {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lux-dash-folder__date {
  display: block;
  font-size: 0.8125rem;
  color: var(--lux-text-muted);
  margin-top: 1px;
}
.lux-dash-folder__arrow { color: var(--lux-text-muted); flex-shrink: 0; }
.lux-dash-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ── Abas do Histórico (Arquivos / Atividades) ── */
.lux-history-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--lux-border, #e5e7eb);
  margin: 16px 0 20px;
}
.lux-history-tab {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--lux-text-muted, #6b7280);
  text-decoration: none !important;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .15s, border-color .15s;
}
.lux-history-tab:hover { color: var(--lux-orange, #B83229); }
.lux-history-tab.active {
  color: var(--lux-orange, #B83229);
  border-bottom-color: var(--lux-orange, #B83229);
}

/* Badge de ação na aba Atividades */
.lux-activity-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

/* ── Timeline de Atividades (Histórico) ─────────────────────────────── */
.lux-tl-filters {
  display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 18px;
}
/* Blindado contra estilos globais de button do tema/Elementor:
   reset explícito + !important nas propriedades que temas costumam impor */
.lux-tl-filters button.lux-tl-filter {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 14px !important;
  font-size: 12.5px !important;
  font-family: inherit !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  text-shadow: none !important;
  box-shadow: none !important;
  height: auto !important;
  min-height: 0 !important;
  cursor: pointer;
  background: #1a1d27 !important;
  color: #9ca3af !important;
  border: 1px solid rgba(255,255,255,.09) !important;
  border-radius: 99px !important;
  transition: all .15s;
}
.lux-tl-filters button.lux-tl-filter:hover {
  color: #f1f1f1 !important;
  border-color: rgba(255,255,255,.2) !important;
  background: #1a1d27 !important;
}
.lux-tl-filters button.lux-tl-filter.active {
  background: #B83229 !important;
  border-color: #B83229 !important;
  color: #fff !important;
  font-weight: 600 !important;
}

.lux-timeline { position: relative; padding-left: 4px; }
.lux-tl-day {
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: #9ca3af; margin: 22px 0 10px; padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.lux-tl-day:first-child { margin-top: 0; }

.lux-tl-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 9px 10px; margin: 0 0 4px; border-radius: 8px;
  border-left: 3px solid transparent;
}
.lux-tl-item:hover { background: #1a1d27; }
.lux-tl-item--del { border-left-color: rgba(239,68,68,.55); background: rgba(239,68,68,.05); }

.lux-tl-dot {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #fff; margin-top: 1px;
  box-shadow: 0 0 0 3px rgba(255,255,255,.05);
}
.lux-tl-body { flex: 1; min-width: 0; }
.lux-tl-line1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lux-tl-badge {
  font-size: 10.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  color: #fff; padding: 2px 9px; border-radius: 5px; white-space: nowrap;
}
.lux-tl-ctx {
  font-size: 11px; color: #9ca3af; background: #22263a;
  border: 1px solid rgba(255,255,255,.09); padding: 1px 8px; border-radius: 5px; white-space: nowrap;
}
.lux-tl-time { margin-left: auto; font-size: 11.5px; color: #9ca3af; font-variant-numeric: tabular-nums; }
.lux-tl-text { font-size: 13px; color: #d5d7de; margin-top: 3px; word-break: break-word; }
.lux-tl-who { font-size: 11.5px; color: #9ca3af; margin-top: 2px; }
.lux-tl-who strong { color: #c9ccd4; font-weight: 600; }

@media (max-width: 600px) {
  .lux-tl-time { width: 100%; margin-left: 34px; order: 9; }
  .lux-tl-item { padding: 9px 6px; }
}

/* Paginação da timeline */
.lux-tl-pager {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 22px 0 6px; flex-wrap: wrap;
}
.lux-tl-pager-btn {
  padding: 7px 16px; font-size: 13px; text-decoration: none;
  background: #1a1d27; color: #f1f1f1;
  border: 1px solid rgba(255,255,255,.12); border-radius: 8px;
  transition: all .15s; white-space: nowrap;
}
a.lux-tl-pager-btn:hover { border-color: #B83229; color: #fff; }
.lux-tl-pager-btn--off { opacity: .35; cursor: default; }
.lux-tl-pager-info { font-size: 12.5px; color: #9ca3af; }
.lux-tl-pager-info strong { color: #f1f1f1; }

/* Acessibilidade AA (P3): foco visível no Histórico/Dashboard/Login */
.lux-history-wrap :is(button, a, input, select):focus-visible,
.lux-timeline :is(button, a):focus-visible,
.lux-tl-filters button.lux-tl-filter:focus-visible,
.lux-tl-pager a:focus-visible,
.lux-login-card :is(button, a, input):focus-visible,
.lux-dash :is(button, a):focus-visible {
  outline: 2px solid #ff6b35 !important;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Boas-vindas da primeira sessão (P4) */
.lux-welcome-card {
  background: linear-gradient(135deg, #1d2130 0%, #1a1d27 100%);
  border: 1px solid rgba(184,50,41,.35); border-left: 3px solid #B83229;
  border-radius: 14px; padding: 22px 24px; margin-bottom: 22px;
}
.lux-welcome-head h3 { margin: 0 0 4px; font-size: 17px; color: #f1f1f1; }
.lux-welcome-head p { margin: 0 0 16px; font-size: 13px; color: #9ca3af; }
.lux-welcome-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-bottom: 18px; }
.lux-welcome-step { display: flex; gap: 11px; align-items: flex-start; }
.lux-ws-num {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(184,50,41,.18); color: #ff8a7a; border: 1px solid rgba(184,50,41,.4);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.lux-welcome-step p { margin: 2px 0 0; font-size: 13px; line-height: 1.6; color: #c9ced8; }
.lux-welcome-step strong { color: #f1f1f1; }
.lux-welcome-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.lux-welcome-go {
  display: inline-block; padding: 9px 20px; border-radius: 8px;
  background: #B83229; color: #fff !important; font-size: 13.5px; font-weight: 600;
  text-decoration: none; transition: background .15s;
}
.lux-welcome-go:hover { background: #d13a2f; }
.lux-welcome-dismiss {
  -webkit-appearance: none; appearance: none;
  background: transparent; border: none; cursor: pointer;
  font-size: 12.5px; color: #9ca3af; text-decoration: underline;
  text-transform: none; letter-spacing: normal; padding: 6px 4px;
}
.lux-welcome-dismiss:hover { color: #f1f1f1; }
@media (max-width: 640px) { .lux-welcome-steps { grid-template-columns: 1fr; } }
