/* ============================================================
   style.css — Sistema de Gestão Parlamentar (Interface Corporativa Limpa)
   Gabinete da Vereadora Nely Gomes — Câmara Municipal de Itaberaí-GO
   ============================================================ */

:root {
    --bg-page: #FFFFFF;
    --bg-surface: #FFFFFF;
    --bg-subtle: #F7F7F5;
    --bg-sidebar: #FBFBFA;
    --bg-sidebar-hover: #F1F1EF;
    --bg-sidebar-active: #EBEBE8;

    --border-color: #E8E8E6;
    --border-strong: #D3D3CF;

    --text-primary: #1F1F1D;
    --text-secondary: #404040;
    --text-muted: #787774;

    /* azul da logo da Nely Gomes */
    --primary: #00409A;
    --primary-hover: #003078;
    --primary-soft: #EEF3FB;

    --accent-gold: #B7791F;
    --accent-gold-soft: #FBF3DB;

    --emerald: #0F7B6C;
    --emerald-soft: #EDF3EC;

    --indigo: #00409A;
    --indigo-soft: #EEF3FB;

    --danger: #C4352B;
    --danger-soft: #FDEBEC;

    --radius-sm: 5px;
    --radius-md: 7px;
    --radius-lg: 10px;

    --shadow-sm: 0 1px 1px rgba(15, 15, 15, 0.04);
    --shadow-md: 0 2px 8px rgba(15, 15, 15, 0.06);
    --shadow-lg: 0 8px 28px rgba(15, 15, 15, 0.12);

    --sidebar-w: 248px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ============================================================
   TELA DE LOGIN INSTITUCIONAL
   ============================================================ */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-subtle);
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    box-shadow: var(--shadow-md);
}

.login-brand {
    text-align: center;
    margin-bottom: 28px;
}

.login-logo-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 0;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.login-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.login-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.login-subtitle {
    font-size: 13px;
    color: var(--text-muted);
}

.login-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================================
   ESTRUTURA PRINCIPAL (SIDEBAR CLARA + MAIN) — estilo Notion/Linear
   ============================================================ */
.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-w);
    background-color: var(--bg-sidebar);
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 40;
    border-right: 1px solid var(--border-color);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 16px 14px;
}

.sidebar-logo {
    height: 34px;
    width: auto;
    object-fit: contain;
}

.sidebar-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.sidebar-brand-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.sidebar-brand-sub {
    font-size: 12px;
    color: var(--text-muted);
}

.sidebar-section-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 16px 18px 6px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 0 8px;
}

.sidebar-nav + .sidebar-section-label { margin-top: 4px; }
.sidebar-nav-main { flex: 0 0 auto; }
.sidebar-spacer { flex: 1; }

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 7px 10px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: left;
    transition: background-color 0.12s;
}

.nav-item:hover { background-color: var(--bg-sidebar-hover); }

.nav-item.active {
    background-color: var(--bg-sidebar-active);
    color: var(--text-primary);
    font-weight: 600;
}

.nav-icon {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    color: var(--text-muted);
}

.nav-item.active .nav-icon { color: var(--primary); }

.nav-label { flex: 1; }

.nav-badge {
    font-size: 11px;
    font-weight: 500;
    padding: 1px 7px;
    border-radius: 99px;
    background: var(--bg-sidebar-hover);
    color: var(--text-muted);
}

.nav-badge-accent {
    background: var(--primary-soft);
    color: var(--primary);
}

.sidebar-footer {
    padding: 12px;
    border-top: 1px solid var(--border-color);
}

.ia-status-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
    padding: 0 4px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #B4B4B0;
}

.status-dot.online { background: #2F9E6B; }

.sidebar-footer-actions {
    display: flex;
    gap: 6px;
}

.btn-sidebar-util {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 8px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.12s;
}

.btn-sidebar-util:hover { background: var(--bg-sidebar-hover); }

/* ============================================================
   ÁREA PRINCIPAL E PÁGINAS
   ============================================================ */
.main-area {
    flex: 1;
    margin-left: var(--sidebar-w);
    padding: 28px 36px 48px;
    max-width: 1480px;
}

.module-view {
    display: none;
}

.module-view.active {
    display: block;
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.page-desc {
    font-size: 13.5px;
    color: var(--text-muted);
    max-width: 740px;
}

.page-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* ============================================================
   CARTÕES DE MÉTRICAS E FILTROS RÁPIDOS
   ============================================================ */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.metric-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.metric-card.clickable {
    cursor: pointer;
}

.metric-card.clickable:hover {
    border-color: var(--primary);
}

.metric-card.clickable.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 64, 154, 0.16);
    background: #F8FAFF;
}

.metric-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.metric-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 4px 0 2px;
}

.metric-sub {
    font-size: 12px;
    color: var(--text-muted);
}

.text-blue { color: var(--primary); }
.text-emerald { color: var(--emerald); }
.text-indigo { color: var(--indigo); }
.text-muted { color: var(--text-muted); font-size: 12.5px; }

/* ============================================================
   CARDS E FORMULÁRIOS
   ============================================================ */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.card-header-clean {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.card-title-sm {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.filter-panel {
    margin-bottom: 18px;
}

.search-row {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.search-input-wrap {
    position: relative;
    flex: 1;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-input {
    padding-left: 38px !important;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    align-items: end;
}

.filter-item-end {
    display: flex;
    justify-content: flex-end;
}

.quick-tags-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--bg-subtle);
}

.quick-tags-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-right: 4px;
}

.tag-chip {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 99px;
    cursor: pointer;
    transition: all 0.15s;
}

.tag-chip:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary);
}

/* ============================================================
   INPUTS E BOTÕES
   ============================================================ */
.form-group {
    margin-bottom: 14px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-label-sm {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.form-help {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 3px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 9px 12px;
    font-family: inherit;
    font-size: 13.5px;
    color: var(--text-primary);
    background-color: #FFFFFF;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 64, 154, 0.16);
}

.mono-textarea {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12.5px;
    line-height: 1.6;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 16px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background-color: var(--primary);
    color: #FFFFFF;
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: var(--bg-subtle);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover:not(:disabled) {
    background-color: var(--bg-sidebar-active);
}

.btn-outline {
    background-color: #FFFFFF;
    border-color: var(--border-strong);
    color: var(--text-secondary);
}

.btn-outline:hover:not(:disabled) {
    background-color: var(--bg-subtle);
    border-color: #94A3B8;
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
}

.btn-ghost:hover {
    background: var(--bg-subtle);
    color: var(--text-primary);
}

.btn-danger {
    background: var(--danger);
    color: #FFFFFF;
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 11px 20px;
    font-size: 14px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12.5px;
}

.btn-link-xs {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.label-with-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

/* ============================================================
   LISTA DE PROPOSIÇÕES E DEMANDAS (TABELA / CARDS LIMPOS)
   ============================================================ */
.results-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.results-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.proposicoes-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.prop-row {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.15s;
}

.prop-row:hover {
    border-color: #94A3B8;
}

.prop-main {
    flex: 1;
    min-width: 0;
}

.prop-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 4px;
    font-size: 11.5px;
    font-weight: 600;
}

.badge-req {
    background: var(--primary-soft);
    color: var(--primary);
    border: 1px solid #BFDBFE;
}

.badge-ind {
    background: var(--emerald-soft);
    color: var(--emerald);
    border: 1px solid #A7F3D0;
}

.badge-pl {
    background: var(--indigo-soft);
    color: var(--indigo);
    border: 1px solid #C7D2FE;
}

.badge-tema {
    background: var(--bg-subtle);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.badge-cidade {
    background: #FFFBEB;
    color: #B45309;
    border: 1px solid #FDE68A;
}

.badge-neutral {
    background: var(--bg-subtle);
    color: var(--text-muted);
}

.prop-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    cursor: pointer;
}

.prop-title:hover {
    color: var(--primary);
}

.prop-summary {
    font-size: 13px;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prop-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* ============================================================
   ESTÚDIO DE VÍDEO AUTOMATIZADO
   ============================================================ */
.studio-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.95fr;
    gap: 20px;
    align-items: start;
}

.mode-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}

.mode-tab {
    padding: 14px;
    background: var(--bg-subtle);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: left;
    cursor: pointer;
    transition: all 0.15s;
}

.mode-tab.active {
    background: var(--primary-soft);
    border-color: var(--primary);
}

.mode-tab-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.mode-tab.active .mode-tab-title {
    color: var(--primary);
}

.mode-tab-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.35;
}

.upload-box {
    border: 2px dashed var(--border-strong);
    border-radius: var(--radius-md);
    padding: 24px 18px;
    text-align: center;
    background: var(--bg-page);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.upload-box:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.upload-icon {
    color: var(--primary);
    margin-bottom: 6px;
}

.upload-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.upload-hint {
    font-size: 12px;
    color: var(--text-muted);
}

.whisper-panel {
    background: var(--bg-page);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 16px;
}

.whisper-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    cursor: pointer;
}

.whisper-editor {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.whisper-blocks-list {
    max-height: 210px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.whisper-block-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.whisper-time-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text-muted);
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    padding: 4px 6px;
    border-radius: 4px;
    min-width: 92px;
    text-align: center;
}

.video-empty-state {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    background: var(--bg-subtle);
    border: 1px dashed var(--border-strong);
    color: var(--text-muted);
    border-radius: var(--radius-md);
}

.preview-watermark {
    height: 44px;
    opacity: 0.7;
    margin-bottom: 12px;
}

.video-player-916 {
    width: 100%;
    max-height: 460px;
    background: #000;
    border-radius: var(--radius-sm);
}

.video-meta-bar {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    text-align: center;
}

/* ============================================================
   MODAIS E UTILITÁRIOS
   ============================================================ */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 100;
}

.modal-dialog {
    width: 100%;
    max-width: 580px;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 92vh;
}

.modal-dialog.modal-xl {
    max-width: 1180px;
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
}

.modal-body {
    padding: 20px 24px;
    overflow-y: auto;
}

.modal-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.modal-textarea {
    height: 360px;
    resize: vertical;
    font-size: 13px;
    line-height: 1.55;
}

.modal-footer-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.status-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--primary-soft);
    border: 1px solid #BFDBFE;
    color: var(--primary);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-weight: 500;
}

.status-banner-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.spinner-sm {
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

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

.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 13px;
}

.alert-error {
    background: var(--danger-soft);
    border: 1px solid #FECACA;
    color: var(--danger);
}

.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 200;
}

.toast {
    background: #0F172A;
    color: #FFFFFF;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    box-shadow: var(--shadow-md);
}

.hidden { display: none !important; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 14px; }


/* ============================================================
   COMPONENTES v5 — Redator, Aniversariantes & Agenda, refinamentos
   ============================================================ */
.two-col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 20px;
    align-items: start;
}

.panel {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    background: var(--bg-surface);
}

.panel-head, .agenda-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.panel-actions, .inline-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.field { margin-bottom: 14px; flex: 1; min-width: 0; }
.field-row { display: flex; gap: 14px; }
.field-label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.optional { font-weight: 400; color: var(--text-muted); margin-left: 4px; }
.doc-textarea { font-family: Georgia, "Times New Roman", serif; font-size: 14px; line-height: 1.6; }

.btn-ghost {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
}
.btn-ghost:hover { background: var(--bg-subtle); }

/* Passos numerados (Aniversariantes) */
.steps { list-style: none; display: flex; flex-direction: column; gap: 0; max-width: 860px; }
.step { display: flex; gap: 16px; padding: 0 0 26px; position: relative; }
.step:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 13px; top: 30px; bottom: 4px;
    width: 1px;
    background: var(--border-color);
}
.step-num {
    flex: 0 0 27px; height: 27px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 700; font-size: 13px;
    display: flex; align-items: center; justify-content: center;
}
.step-body { flex: 1; min-width: 0; }
.step-title { font-size: 15px; font-weight: 600; margin: 3px 0 10px; }
.step-hint { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.file-input { font-size: 13px; max-width: 100%; }

.agenda-box {
    margin-top: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    background: var(--bg-subtle);
}
.agenda-list { margin: 6px 0 0 18px; font-size: 13.5px; color: var(--text-secondary); }

.anv-lista { margin: 10px 0 4px; display: flex; flex-direction: column; gap: 8px; }
.anv-row { display: grid; grid-template-columns: minmax(180px, 1fr) auto minmax(80px, 160px) 28px; gap: 10px; align-items: center; }
.anv-foto-nome { font-size: 12.5px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.anv-foto-nome.ok { color: var(--emerald); }
.btn-icon { border: none; background: transparent; font-size: 20px; line-height: 1; color: var(--text-muted); cursor: pointer; border-radius: var(--radius-sm); height: 28px; }
.btn-icon:hover { background: var(--danger-soft); color: var(--danger); }

.anv-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; margin-top: 10px; }
.anv-card { margin: 0; }
.anv-card img { width: 100%; display: block; border-radius: var(--radius-md); border: 1px solid var(--border-color); }
.anv-card figcaption { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding-top: 8px; font-size: 13px; font-weight: 500; }
.anv-aviso { font-size: 12px; font-weight: 400; color: var(--accent-gold); }

/* Cartões de métrica e superfícies mais discretos */
.metric-card, .card { box-shadow: none; }

@media (max-width: 980px) {
    :root { --sidebar-w: 0px; }
    .sidebar { position: static; width: 100%; border-right: none; border-bottom: 1px solid var(--border-color); }
    .app-shell { flex-direction: column; }
    .sidebar-nav { flex-direction: row; flex-wrap: wrap; }
    .nav-item { width: auto; }
    .sidebar-footer, .sidebar-spacer { display: none; }
    .main-area { margin-left: 0; padding: 20px 16px 40px; }
    .two-col { grid-template-columns: 1fr; }
    .anv-row { grid-template-columns: 1fr auto 28px; }
    .anv-foto-nome { display: none; }
}

/* ---- Redator: WhatsApp, dica de tipo, avisos ---- */
.wa-box {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 18px;
    background: var(--bg-subtle);
}
.wa-box > summary {
    cursor: pointer;
    padding: 11px 16px;
    font-weight: 600;
    font-size: 13.5px;
    list-style: none;
}
.wa-box > summary::before { content: "＋"; color: var(--primary); margin-right: 8px; }
.wa-box[open] > summary::before { content: "−"; }
.wa-body { padding: 0 16px 16px; }
.wa-resumo {
    margin-top: 12px;
    padding: 10px 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 13px;
    display: flex; flex-direction: column; gap: 8px; align-items: flex-start;
}
.wa-falta { color: var(--accent-gold); }
.tipo-dica { font-size: 12px; color: var(--text-muted); margin-top: 5px; line-height: 1.4; }
.aviso {
    font-size: 12.5px;
    padding: 8px 10px;
    margin-bottom: 8px;
    border-radius: var(--radius-sm);
    background: var(--accent-gold-soft);
    color: #6B4A10;
}

/* ---- Modo púlpito ---- */
.pulpito {
    position: fixed; inset: 0; z-index: 200;
    background: #FFFFFF;
    display: flex; flex-direction: column;
}
.pulpito-bar {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-subtle);
}
.pulpito-vel { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-muted); }
.pulpito-fechar { margin-left: auto; }
.pulpito-texto {
    flex: 1; overflow-y: auto;
    padding: 28px 7vw 40vh;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.55;
    color: #111;
}
.pulpito-texto p { margin-bottom: 0.9em; }
.pulpito-pausa {
    text-align: center; color: #999; font-size: 0.55em; letter-spacing: 0.3em;
    text-transform: uppercase; border-top: 1px dashed #ccc; padding-top: 0.5em;
}
.pulpito-texto mark { background: #FFE9A8; }

/* ---- Radar de acompanhamento ---- */
.radar-banner {
    padding: 10px 14px;
    margin-bottom: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
    font-size: 13.5px;
}
.radar-banner-urgente { background: var(--danger-soft); border-color: #F3C4C0; color: #7A1F18; }
.prop-row-urgente { border-left: 3px solid var(--danger); }
.badge-alerta { background: var(--danger-soft); color: var(--danger); font-weight: 600; }
.badge-atencao { background: var(--accent-gold-soft); color: #7A5300; font-weight: 600; }
.badge-ok { background: var(--emerald-soft); color: var(--emerald); }
.badge-neutral { background: var(--bg-subtle); color: var(--text-muted); }
.nav-badge-alerta { background: var(--danger); color: #fff; }
.btn-danger-soft { background: var(--danger-soft); border-color: #F3C4C0; color: var(--danger); font-weight: 600; }
.btn-danger-soft:hover:not(:disabled) { background: #F9D9D6; }
.radar-resposta { margin-top: 8px; font-size: 13px; color: var(--text-secondary); }
.radar-resposta summary { cursor: pointer; color: var(--emerald); font-weight: 600; }
.proto-box { margin: 10px 0 0; border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 8px 12px; background: var(--bg-subtle); }
.proto-box > summary { cursor: pointer; font-size: 13px; font-weight: 600; }
.proto-row { margin-top: 10px; }

/* ---- Abas e nota de pesar ---- */
.segmented { display: inline-flex; gap: 2px; padding: 3px; background: var(--bg-subtle); border-radius: var(--radius-md); margin-bottom: 18px; }
.seg { border: none; background: transparent; padding: 6px 14px; border-radius: var(--radius-sm); font: inherit; font-size: 13px; font-weight: 500; color: var(--text-muted); cursor: pointer; }
.seg.active { background: var(--bg-surface); color: var(--text-primary); box-shadow: var(--shadow-sm); }
.pesar-panel { max-width: 960px; }
.pes-resultado { display: flex; justify-content: center; align-items: flex-start; }
.pes-card { width: 260px; }

/* ---- Painel do dia (Vilma) ---- */
.dia-barra { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 8px; }
.dia-data { width: auto; }
.dia-lista { display: flex; flex-direction: column; gap: 8px; max-width: 920px; }
.dia-row { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: var(--bg-surface); cursor: pointer; }
.dia-row:hover { background: var(--bg-subtle); }
.dia-row.sel { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(0, 64, 154, 0.14); }
.dia-row.drag { background: var(--primary-soft); border-style: dashed; }
.dia-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: 0 0 48px; }
.dia-avatar-ini { background: var(--primary-soft); color: var(--primary); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.dia-info { flex: 1; min-width: 0; }
.dia-nome { font-weight: 600; font-size: 14.5px; }
.dia-sub { margin-top: 3px; display: flex; gap: 6px; flex-wrap: wrap; }
.dia-cand { margin-top: 4px; font-size: 12.5px; color: var(--accent-gold); }
.dia-card-mini { width: 40px; height: 71px; object-fit: cover; border-radius: 4px; border: 1px solid var(--border-color); }
.dia-acoes { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* ---- Visão mobile da Nely (/hoje) ---- */
.hoje-wrap { max-width: 520px; margin: 0 auto; padding: 18px 16px 60px; }
.hoje-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.hoje-top img { height: 30px; }
.hoje-top h1 { font-size: 18px; margin: 0; }
.hoje-sec { margin-top: 22px; }
.hoje-sec h2 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 8px; }
.hoje-item { padding: 12px 14px; border: 1px solid var(--border-color); border-radius: var(--radius-md); margin-bottom: 8px; }
.hoje-hora { font-weight: 700; color: var(--primary); margin-right: 8px; }
.hoje-local { color: var(--text-muted); font-size: 13px; }
.hoje-alerta { background: var(--danger-soft); border-color: #F3C4C0; color: #7A1F18; }
.hoje-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.hoje-card img { width: 100%; border-radius: var(--radius-md); border: 1px solid var(--border-color); display: block; }
.hoje-card .btn { width: 100%; margin-top: 6px; }
.hoje-nome { font-size: 13px; font-weight: 600; margin-top: 6px; }
