:root {
    --blue: #163f73;
    --blue-dark: #102d52;
    --blue-ink: #0d2748;
    --orange: #ef6b2e;
    --green: #18a85f;
    --red: #d92d20;
    --purple: #6f3cc3;
    --text: #172033;
    --muted: #667085;
    --line: #d9e2ec;
    --bg: #f4f6f9;
    --white: #fff;
}

* { box-sizing: border-box; }
html { width: 100%; min-width: 0; }
body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    width: 100%;
    min-width: 0;
}
a { color: inherit; text-decoration: none; }
.auth-page { min-height: 100vh; display: grid; place-items: center; background: #f5f7fa; }
.auth-shell { width: min(420px, calc(100vw - 32px)); }
.login-card, .panel, .placeholder {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(16, 45, 82, .08);
}
.login-card { padding: 32px; }
.login-brand { margin-bottom: 26px; border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.login-brand img { display: block; width: 132px; height: auto; margin-bottom: 16px; }
.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: var(--blue);
    color: var(--white);
    font-weight: 800;
    border-bottom: 4px solid var(--orange);
}
.login-brand h1 { margin: 14px 0 4px; font-size: 28px; }
.login-brand p, .brand small, .topbar span, .user-menu small { color: var(--muted); }
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 7px; font-weight: 700; }
input, select {
    min-height: 42px;
    border: 1px solid #c5cfda;
    border-radius: 6px;
    padding: 9px 11px;
    font: inherit;
}
input:focus, select:focus, .btn:focus, .main-nav a:focus { outline: 3px solid rgba(239, 107, 46, .25); outline-offset: 2px; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 0;
    border-radius: 6px;
    padding: 9px 16px;
    font-weight: 800;
    cursor: pointer;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover, .btn-secondary:hover { filter: brightness(.94); }
.btn-secondary { background: #e8eef5; color: var(--blue-dark); }
.alert { padding: 12px 14px; border-radius: 6px; margin-bottom: 16px; }
.alert-error { background: #fff2f0; color: #9f1b13; border: 1px solid #ffd0ca; }
.alert-error strong { display: block; margin-bottom: 6px; }
.form-inline-error {
    border: 1px solid #ffd0ca;
    border-radius: 6px;
    background: #fff2f0;
    color: #9f1b13;
    padding: 10px 12px;
    font-weight: 700;
}
.app-shell {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    min-height: 100vh;
    width: 100%;
    min-width: 0;
}
.sidebar {
    background: linear-gradient(180deg, var(--blue-ink) 0%, var(--blue-dark) 100%);
    color: var(--white);
    padding: 18px 12px;
    min-width: 0;
    border-right: 1px solid rgba(255, 255, 255, .08);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 8px 8px 16px; margin-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.brand img { width: 54px; height: auto; background: var(--white); border-radius: 6px; padding: 5px; }
.brand span:last-child { display: grid; gap: 3px; }
.brand strong { letter-spacing: .2px; }
.brand small { line-height: 1.25; }
.main-nav { display: grid; gap: 3px; padding-top: 6px; }
.main-nav a { padding: 10px 12px; border-radius: 6px; color: #dce8f5; font-weight: 700; border-left: 4px solid transparent; }
.main-nav a:hover, .main-nav a.active { background: rgba(255, 255, 255, .11); color: var(--white); }
.main-nav a.active { border-left-color: var(--orange); }
.main-area { min-width: 0; width: 100%; overflow-x: hidden; }
.topbar {
    height: 68px;
    background: var(--white);
    border-bottom: 3px solid var(--orange);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 24px;
}
.topbar > div:first-child { display: grid; gap: 3px; }
.user-menu { display: flex; align-items: center; gap: 10px; }
.user-menu { text-align: right; }
.user-menu span { color: var(--text); font-weight: 800; }
.content { padding: 24px; width: 100%; max-width: 100%; min-width: 0; }
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.metric-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 4px solid var(--blue);
    border-radius: 8px;
    padding: 14px 15px;
    display: grid;
    gap: 8px;
    min-width: 0;
}
.metric-card strong { font-size: 26px; line-height: 1; }
.metric-card span, .metric-card small { color: var(--muted); font-weight: 700; }
.metric-card.azul { border-top-color: var(--blue); }
.metric-card.verde { border-top-color: var(--green); }
.metric-card.laranja { border-top-color: var(--orange); }
.metric-card.vermelho { border-top-color: var(--red); }
.metric-card.roxo { border-top-color: var(--purple); }
.panel-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .75fr); gap: 18px; width: 100%; min-width: 0; }
.panel { padding: 18px; min-width: 0; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel h2 { margin: 0; font-size: 18px; }
.badge, .status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border-radius: 999px;
    padding: 4px 10px;
    font-weight: 800;
    font-size: 12px;
    background: #fff4ed;
    color: #b84a16;
}
.badge-soft { background: #102c51; color: #fff; }
.badge-rescue { background: #fff4ed; color: var(--orange); border: 1px solid #ffd7bd; margin-left: 6px; }
.badge-challenge { background: #eaf2ff; color: #164b82; border: 1px solid #c7dbf6; }
.badge-type,
.badge-type.badge-soft,
.badge-type.badge-rescue,
.badge-type.badge-challenge {
    min-width: 34px;
    justify-content: center;
    margin-left: 0;
    cursor: help;
    background: #102c51 !important;
    color: #fff !important;
    border: 0 !important;
}
.data-table .badge-type,
.operation-table .badge-type,
.operational-leads-table .badge-type {
    background: #102c51 !important;
    color: #fff !important;
    border: 0 !important;
}
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.data-table { width: 100%; border-collapse: collapse; min-width: 760px; background: var(--white); }
.data-table th {
    background: #f0f4f8;
    color: var(--blue-dark);
    text-align: left;
    padding: 11px;
    font-size: 13px;
    border-bottom: 2px solid var(--orange);
}
.data-table td { border-top: 1px solid var(--line); padding: 11px; }
.data-table tbody tr:hover { background: #f8fbff; }
.status-pill { background: #e9f7ef; color: #087443; border-radius: 6px; }
.operation-table { min-width: 980px; }
.status-row-primeira-tentativa { background: #ead9cf; }
.status-row-segunda-tentativa { background: #e5f6e8; }
.status-row-duplicidade { background: #f7c5ec; }
.status-row-novo-lead { background: #fff; }
.status-row-resgate-leads { background: #fff4ed; }
.status-row-interessado { background: #fff6cf; }
.status-row-agendado { background: #f0fdfa; }
.clickable-row { cursor: pointer; }
.clickable-row:hover { outline: 2px solid rgba(239, 107, 46, .28); outline-offset: -2px; }
.status-pill-primeira-tentativa { background: #8b451f; color: #fff; }
.status-pill-segunda-tentativa { background: #7be28d; color: #0f4d1d; }
.status-pill-duplicidade { background: #f000c8; color: #fff; }
.status-pill-novo-lead { background: #fff; color: var(--blue-dark); border: 1px solid #cfd9e5; }
.status-pill-resgate-leads { background: var(--orange); color: #fff; }
.status-pill-interessado { background: #facc15; color: #5f3b00; }
.status-pill-agendado { background: #0f766e; color: #fff; }
.placeholder { padding: 34px; max-width: 720px; }
.placeholder h1 { margin: 14px 0 8px; font-size: 30px; }
.placeholder p { color: var(--muted); margin-bottom: 22px; }
.latest-leads-panel { margin-bottom: 18px; }
.latest-leads-table { min-width: 720px; }
.dashboard-main-panel, .reports-panel { width: 100%; }
.report-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.report-hero h1 { margin: 0 0 6px; color: var(--blue-dark); font-size: 28px; }
.report-hero p { margin: 0; color: var(--muted); font-weight: 800; }
.report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.report-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.report-table { min-width: 1160px; }
.report-big-number { display: block; color: var(--blue-dark); font-size: 42px; line-height: 1; margin-bottom: 10px; }
.report-subtitle { color: var(--blue-dark); font-size: 14px; margin: 14px 0 6px; text-transform: uppercase; }
.empty-state { color: var(--muted); text-align: center; padding: 18px; }
.rd-filters { margin-bottom: 18px; }
.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
}
.filter-grid label { display: grid; gap: 6px; font-weight: 800; color: var(--blue-dark); }
.filter-grid select { min-width: 0; text-overflow: ellipsis; }
.filter-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.rd-card-group { margin-bottom: 18px; }
.rd-card-group h2 { margin: 0 0 10px; color: var(--blue-dark); font-size: 15px; text-transform: uppercase; }
.rd-dashboard-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.rd-chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}
.rd-chart-panel { min-height: 0; }
.chart-box { position: relative; height: 230px; width: 100%; }
.rd-chart { width: 100% !important; height: 230px !important; display: block; }
.bar-chart { display: grid; gap: 9px; }
.bar-row {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) minmax(120px, 1.4fr) 64px;
    gap: 10px;
    align-items: center;
}
.bar-label {
    min-width: 0;
    color: var(--blue-dark);
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bar-track { height: 14px; background: #e8eef5; border-radius: 999px; overflow: hidden; }
.bar-track span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--orange)); border-radius: inherit; }
.bar-row strong { text-align: right; color: var(--text); }
.section-subtitle { margin: -4px 0 14px; color: var(--muted); font-weight: 700; }
.alert-panel { border-left: 5px solid var(--orange); background: #fff8f2; color: var(--blue-dark); margin-bottom: 18px; }
.alert-success { border-left: 5px solid var(--green); background: #eefaf2; color: #0f5d2a; margin-bottom: 18px; }
.badge-danger { background: #fff2f0; color: var(--red); }
.sticky-filters { position: sticky; top: 0; z-index: 5; }
.limited-table { max-height: 620px; overflow: auto; }
.limited-table thead th { position: sticky; top: 0; z-index: 2; }
.batch-toolbar {
    display: grid;
    grid-template-columns: max-content minmax(220px, 1fr) minmax(180px, 1fr) max-content;
    gap: 12px;
    align-items: end;
    margin-bottom: 14px;
}
.batch-toolbar label { display: grid; gap: 6px; font-weight: 800; color: var(--blue-dark); }
.batch-toolbar small { grid-column: 1 / -1; color: var(--muted); font-weight: 800; }
.checkline { display: inline-flex !important; grid-auto-flow: column; align-items: center; gap: 8px; }
.checkline input, [data-batch-item] { min-height: auto; }
.rescue-confirm-form { display: grid; gap: 14px; max-width: 620px; }
.rescue-confirm-form label { display: grid; gap: 7px; font-weight: 800; color: var(--blue-dark); }
.inline-warning { color: #9a3412; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 6px; padding: 8px; font-weight: 800; }
.filter-search { grid-column: span 2; }
.conversion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}
.conversion-grid strong {
    display: grid;
    gap: 6px;
    border-left: 4px solid var(--orange);
    background: #f8fbff;
    border-radius: 6px;
    padding: 12px;
    font-size: 24px;
}
.conversion-grid small { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.funnel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}
.funnel-step {
    border: 1px solid var(--line);
    border-top: 4px solid var(--orange);
    border-radius: 8px;
    background: #f8fbff;
    padding: 12px;
    display: grid;
    gap: 6px;
}
.funnel-step span { color: var(--blue-dark); font-weight: 900; font-size: 12px; }
.funnel-step strong { font-size: 24px; color: var(--text); }
.funnel-step small { color: var(--muted); font-weight: 800; }
.rescue-rates { margin-top: 12px; }
.compact-table { min-width: 520px; }
.rd-rescues-table { min-width: 1480px; }
.table-link { color: var(--blue); font-weight: 800; }
.row-note { display: block; margin-top: 4px; color: var(--muted); font-weight: 800; }
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(13, 39, 72, .52);
    z-index: 30;
    display: grid;
    place-items: center;
    padding: 18px;
}
.modal-backdrop[hidden] { display: none; }
.modal-panel {
    width: min(900px, 100%);
    max-height: min(860px, calc(100vh - 36px));
    overflow: auto;
    background: var(--white);
    border-radius: 8px;
    border-top: 5px solid var(--orange);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
    padding: 20px;
}
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.modal-header h2 { margin: 0; color: var(--blue-dark); }
.modal-close {
    border: 0;
    background: #e8eef5;
    color: var(--blue-dark);
    width: 36px;
    height: 36px;
    border-radius: 6px;
    font-size: 24px;
    cursor: pointer;
}
.modal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-bottom: 14px; }
.modal-grid article, .last-notes {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
    padding: 12px;
}
.modal-grid h3, .last-notes h3 { margin: 0 0 8px; color: var(--blue-dark); }
.modal-grid p { margin: 6px 0; }
.attendance-form { display: grid; gap: 12px; }
.modal-attendance-actions { align-items: center; flex-wrap: nowrap; }
.modal-attendance-actions .btn { white-space: nowrap; }
.modal-attendance-actions .btn-secondary { order: 1; }
.modal-attendance-actions .btn-primary,
.modal-attendance-actions .btn-enroll {
    flex: 0 0 175px;
    width: 175px;
    min-width: 175px;
    max-width: 175px;
}
.modal-attendance-actions .btn-primary { order: 2; }
.btn-enroll {
    order: 3;
    margin-left: auto;
    background: #ef6b2e;
    border-color: #ef6b2e;
    color: #fff;
}
.btn-enroll:hover,
.btn-enroll:focus-visible {
    background: #d95720;
    border-color: #d95720;
    color: #fff;
}
.attendance-form label { display: grid; gap: 6px; color: var(--blue-dark); font-weight: 800; }
textarea {
    border: 1px solid #c5cfda;
    border-radius: 6px;
    padding: 10px 11px;
    font: inherit;
    resize: vertical;
}
.last-notes article { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 8px; }
.last-notes p { margin: 5px 0 0; }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 14px; color: var(--muted); font-weight: 800; }
.rd-history-table { min-width: 1420px; }
.operational-leads-table { min-width: 1520px; }
.lead-detail-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.timeline { display: grid; gap: 12px; }
.timeline-item {
    border-left: 4px solid var(--orange);
    background: #f8fbff;
    border-radius: 6px;
    padding: 12px 14px;
}
.timeline-item time {
    display: block;
    color: var(--muted);
    font-weight: 800;
    margin-bottom: 5px;
}
.timeline-item strong { color: var(--blue-dark); }
.timeline-item p { margin: 6px 0 0; font-weight: 800; }
.timeline-item small { display: block; margin-top: 6px; color: var(--text); line-height: 1.45; }
.task-inline-box {
    display: grid;
    gap: 10px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--orange);
    border-radius: 8px;
    background: #f8fbff;
    padding: 12px;
}
.compact-filters { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.queue-section { margin-bottom: 18px; }
.queue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}
.queue-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    display: grid;
    gap: 8px;
}
.queue-card header { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.queue-card p { margin: 0; color: var(--text); line-height: 1.35; }
.tasks-table { min-width: 1460px; }
.task-actions { display: grid; gap: 8px; min-width: 320px; }
.task-actions form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.task-actions form input[type="date"], .task-actions form input[type="time"] { min-width: 0; }
.task-actions form:nth-of-type(2) { grid-template-columns: 130px 92px minmax(0, 1fr) auto; }
.kanban-board {
    display: grid;
    grid-template-columns: repeat(6, minmax(270px, 1fr));
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 12px;
}
.kanban-column {
    min-width: 270px;
    background: #f7fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    grid-template-rows: auto minmax(220px, 1fr) auto;
}
.kanban-column > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    border-bottom: 2px solid var(--orange);
    background: var(--white);
    border-radius: 8px 8px 0 0;
}
.kanban-column header strong { display: block; color: var(--blue-dark); text-transform: uppercase; font-size: 13px; }
.kanban-column header small { display: block; color: var(--muted); font-weight: 700; margin-top: 4px; }
.kanban-column header span {
    display: inline-grid;
    place-items: center;
    min-width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--blue);
    font-weight: 900;
}
.kanban-dropzone { display: grid; align-content: start; gap: 10px; padding: 10px; min-height: 260px; }
.kanban-column.drop-target { outline: 3px solid rgba(239, 107, 46, .28); outline-offset: -3px; }
.kanban-card {
    background: var(--white);
    border: 1px solid #d7e0ea;
    border-left: 4px solid var(--blue);
    border-radius: 8px;
    padding: 11px;
    display: grid;
    gap: 8px;
    cursor: grab;
    box-shadow: 0 6px 16px rgba(16, 45, 82, .06);
}
.kanban-card.dragging { opacity: .6; }
.kanban-card-main { display: grid; gap: 4px; }
.kanban-card-main strong { color: var(--text); line-height: 1.2; }
.kanban-card-main span, .kanban-card p { color: var(--muted); margin: 0; font-weight: 700; line-height: 1.3; }
.kanban-badges { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.badge-warning { background: #fff6cf; color: #7a4b00; border: 1px solid #fde68a; }
.kanban-age { font-size: 12px; font-weight: 900; }
.kanban-age.normal { color: #087443; }
.kanban-age.attention { color: #9a5b00; }
.kanban-age.late { color: var(--red); }
.btn-small { min-height: 30px; padding: 6px 10px; font-size: 12px; }
.kanban-column footer { padding: 10px 12px; color: var(--muted); font-weight: 800; border-top: 1px solid var(--line); }
.rd-detail-panel { margin-bottom: 18px; }
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}
.detail-grid article {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: #f8fbff;
}
.detail-grid h3 { margin: 0 0 10px; color: var(--blue-dark); }
.detail-grid p { margin: 7px 0; }
.capture-page {
    min-height: 100vh;
    background: radial-gradient(circle at 50% 35%, #12638e 0%, #102d52 46%, #080d2f 100%);
    color: var(--white);
}
.capture-hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(360px, 430px);
    align-items: center;
    gap: 42px;
    width: min(1120px, calc(100vw - 32px));
    margin: 0 auto;
    padding: 48px 0;
}
.capture-content { display: grid; gap: 28px; justify-items: start; }
.capture-logo { width: 178px; height: auto; }
.capture-copy h1 { margin: 0; font-size: 52px; line-height: .95; color: var(--orange); }
.capture-copy h1 span { display: block; color: var(--white); }
.capture-copy p { font-size: 20px; margin: 14px 0 0; color: #d8edf8; }
.capture-form-card {
    background: rgba(255, 255, 255, .96);
    color: var(--text);
    border-radius: 8px;
    padding: 24px;
    border-top: 5px solid var(--orange);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .24);
}
.capture-form-card .form { gap: 13px; }
.capture-form-card .form label span { color: var(--blue-dark); }
.eja-capture-page .capture-form-card { max-width: 680px; }
.eja-capture-page { grid-template-columns: minmax(280px, 1fr) minmax(520px, 680px); width: min(1360px, calc(100vw - 32px)); }
.eja-form-header { display: grid; gap: 5px; margin-bottom: 16px; }
.eja-form-header strong { color: var(--blue-dark); font-size: 24px; }
.eja-form-header span { color: var(--muted); }
.eja-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 16px; }
.eja-form-grid label { min-width: 0; }
.eja-form-grid input, .eja-form-grid select { width: 100%; min-width: 0; }
.capture-form-card .form .eja-consent { display: flex; align-items: center; gap: 9px; margin-top: 3px; cursor: pointer; }
.capture-form-card .form .eja-consent input[type="checkbox"] { appearance: auto; -webkit-appearance: checkbox; width: 18px; min-width: 18px; height: 18px; min-height: 18px; margin: 0; padding: 0; border: 0; border-radius: 3px; flex: 0 0 18px; accent-color: var(--orange); }
.capture-form-card .form .eja-consent span { color: var(--text) !important; line-height: 1.35; font-weight: 600; }
.eja-consent a { color: var(--blue); font-weight: 800; }
.btn-capture { width: 100%; min-height: 46px; background: var(--orange); color: var(--white); font-size: 15px; }
.ead-capture-page {
    min-height: 100vh;
    color: #fff;
    background: linear-gradient(135deg, #0b153f 0%, #123a64 52%, #0a1744 100%);
}
.ead-hero { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 48px 0 56px; }
.ead-heading { display: grid; grid-template-columns: 250px 1fr; align-items: center; gap: 54px; margin-bottom: 38px; }
.ead-logo { width: 230px; height: 150px; object-fit: contain; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .18)); }
.ead-heading h1 { margin: 0; font-size: clamp(42px, 6vw, 68px); line-height: .95; letter-spacing: -2px; }
.ead-heading h1 span { color: #fff; }
.ead-heading h1 { color: #ff641f; }
.ead-heading p { margin: 18px 0 0; font-size: 28px; color: #f2f6fb; }
.ead-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr); align-items: center; gap: 34px; }
.ead-video-wrap { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; box-shadow: 0 22px 50px rgba(0, 0, 0, .3); background: #06132f; }
.ead-video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ead-form-card { background: rgba(255, 255, 255, .98); color: var(--text); border-radius: 10px; border-top: 5px solid #ff641f; padding: 24px; box-shadow: 0 22px 50px rgba(0, 0, 0, .28); }
.ead-form-card .form { gap: 15px; }
.ead-form-card .form label span { color: var(--blue-dark); }
.ead-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.ead-form-grid label { min-width: 0; }
.ead-form-grid input, .ead-form-grid select { width: 100%; min-width: 0; }
.ead-privacy { margin: 2px 0 0; color: #4f6074; line-height: 1.5; }
.ead-privacy a { color: #0b668b; font-weight: 800; }
.ead-submit { width: min(100%, 340px); min-height: 50px; align-self: center; border: 0; border-radius: 999px; background: #ff641f; color: #fff; font-size: 18px; font-weight: 900; cursor: pointer; box-shadow: 0 5px 0 #cf4612; }
.ead-submit:hover { filter: brightness(1.06); transform: translateY(-1px); }
.ead-other-mode { display: grid; justify-items: center; gap: 10px; margin-top: 44px; text-align: center; }
.ead-other-mode p { margin: 0; font-size: 28px; }
.ead-other-mode a { min-width: 360px; padding: 11px 28px; border: 1px solid #fff; border-radius: 5px; background: #ff641f; color: #fff; font-size: 24px; font-weight: 900; text-decoration: none; }
.ead-journey-section { border-top: 1px solid rgba(255, 255, 255, .25); background: linear-gradient(135deg, #0d123c, #112d59); }
.ead-section-inner { width: min(1100px, calc(100% - 40px)); margin: 0 auto; padding: 44px 0 54px; }
.ead-section-inner > h2 { margin: 0 0 26px; text-align: center; font-size: clamp(25px, 3.5vw, 36px); line-height: 1.12; }
.ead-section-inner > h2 span { display: block; color: #ff641f; }
.ead-section-inner > p { font-size: 20px; line-height: 1.48; }
.ead-journey-image { display: block; width: min(720px, 100%); height: auto; margin: 28px auto 14px; }
.ead-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 42px 0; }
.ead-benefits article { min-height: 156px; display: grid; align-content: center; justify-items: center; gap: 8px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 12px; background: rgba(4, 13, 46, .45); text-align: center; }
.ead-benefits strong { color: #ffcc45; font-size: 45px; line-height: 1; }
.ead-benefits span { color: #f6b132; font-weight: 900; text-transform: uppercase; line-height: 1.3; }
.ead-contact { display: grid; justify-items: center; gap: 10px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 14px; padding: 25px; text-align: center; }
.ead-contact h2 { margin: 0 0 8px; font-size: 30px; font-weight: 500; }
.ead-contact a { color: #fff; font-weight: 800; text-decoration: none; }
.pos-capture-page { min-height: 100vh; color: #fff; background: #050505; }
.pos-hero { width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: 30px 0 54px; }
.pos-heading { display: grid; grid-template-columns: 255px 1fr; align-items: center; gap: 54px; margin-bottom: 24px; }
.pos-logo { width: 230px; height: 145px; object-fit: contain; }
.pos-heading h1 { margin: 0; color: #ff641f; font-size: clamp(40px, 5.8vw, 70px); line-height: .98; letter-spacing: -2px; }
.pos-heading h1 span { display: block; color: #fff; }
.pos-hero-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(390px, .82fr); align-items: center; gap: 28px; }
.pos-video-wrap { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #181818; border: 1px solid #332016; }
.pos-video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pos-form-card { border-radius: 8px; border-top: 5px solid #ff641f; background: #fff; color: var(--text); padding: 22px; box-shadow: 0 18px 44px rgba(0, 0, 0, .34); }
.pos-form-card .form { gap: 15px; }
.pos-form-card .form label span { color: var(--blue-dark); }
.pos-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.pos-form-grid label { min-width: 0; }
.pos-form-grid input, .pos-form-grid select { width: 100%; min-width: 0; }
.pos-form-grid label:last-child { grid-column: 1 / -1; }
.pos-privacy { margin: 0; color: #4f6074; line-height: 1.45; }
.pos-privacy a { color: #0b668b; font-weight: 800; }
.pos-submit { min-height: 49px; border: 0; border-radius: 999px; background: #ff641f; color: #fff; font-size: 17px; font-weight: 900; cursor: pointer; box-shadow: 0 5px 0 #bd3d0c; }
.pos-form-card .pos-submit { width: 100%; }
.pos-other-mode { display: grid; justify-items: center; gap: 12px; margin: 42px 0 28px; text-align: center; }
.pos-other-mode p { margin: 0; font-size: 28px; }
.pos-other-mode a { min-width: 380px; padding: 10px 28px; border-radius: 4px; background: #ff641f; color: #fff; font-size: 23px; font-weight: 900; text-decoration: none; }
.pos-benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 34px 0 50px; }
.pos-benefits article { min-height: 140px; display: grid; align-content: center; justify-items: center; gap: 8px; border: 1px solid #d95922; border-radius: 12px; text-align: center; }
.pos-benefits strong { color: #ff7a34; font-size: 30px; line-height: 1; }
.pos-benefits span { color: #fff; font-weight: 900; text-transform: uppercase; line-height: 1.35; }
.pos-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid #fff; border-radius: 14px; overflow: hidden; text-align: center; }
.pos-contact h2 { grid-column: 1 / -1; margin: 0; padding: 24px; border-bottom: 1px solid #fff; font-size: 30px; font-weight: 500; }
.pos-contact div { display: grid; gap: 8px; padding: 20px; }
.pos-contact div + div { border-left: 1px solid #fff; }
.pos-contact a { color: #fff; font-weight: 800; text-decoration: none; }
.pos-success-page { display: grid; place-items: center; padding: 24px; }
.pos-success-card { width: min(520px, 100%); display: grid; justify-items: center; gap: 14px; border-top: 5px solid #ff641f; border-radius: 10px; background: #fff; color: var(--text); padding: 34px; text-align: center; }
.pos-success-card .pos-logo { width: 190px; height: 110px; background: #050505; border-radius: 8px; }
.pos-success-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #0d6849; color: #fff; font-size: 38px; font-weight: 900; }
.pos-success-card h1 { margin: 0; color: var(--blue-dark); }
.pos-success-card p { margin: 0; color: #52616b; line-height: 1.5; }
.pos-success-link { display: grid; place-items: center; width: min(300px, 100%); margin-top: 8px; text-decoration: none; }
.school-visit-page .capture-form-card h2 { margin: 0 0 6px; color: var(--blue-dark); }
.school-visit-intro { margin: 0 0 16px; color: #52616b; line-height: 1.45; }
.agenda-panel { overflow: hidden; }
.agenda-panel h2 { margin-bottom: 14px; color: var(--blue-dark); }
.agenda-table { min-width: 680px; }
.agenda-table th { white-space: nowrap; }
.agenda-table td { vertical-align: middle; white-space: nowrap; }
.agenda-table td:last-child { width: 1%; }
.agenda-table td form { margin: 0; }
.agenda-action { min-width: 88px; padding: 9px 14px; font-weight: 800; }
.agenda-status { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 900; }
.agenda-status.is-open { color: #166534; background: #dcfce7; }
.agenda-status.is-closed { color: #7f1d1d; background: #fee2e2; }
.agenda-summary { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: 14px; margin: 18px 0; }
.agenda-summary article { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: 8px; padding: 16px; display: grid; gap: 4px; }
.agenda-summary strong { color: var(--blue-dark); font-size: 28px; }
.agenda-summary span { color: var(--muted); font-weight: 800; }
.visit-thanks { width: 100%; max-width: none; min-height: 100vh; margin: 0; box-sizing: border-box; padding: 48px 16px; background: #0a2f4b url('https://d335luupugsy2.cloudfront.net/cms/files/897559/1779221025/$eoh1x1qz0ei') center/cover fixed no-repeat; }
.visit-logo-wrap { background: #123f60; border-radius: 8px; padding: 14px; display: inline-block; margin-bottom: 16px; }
.visit-logo-wrap .capture-logo { margin: 0; width: 190px; }
.visit-delivery-notice { background: #fff4e9; color: #7c3d12 !important; border-left: 4px solid var(--orange); padding: 12px; border-radius: 6px; }
.qr-reader-panel { max-width: 720px; display: grid; gap: 14px; }
.qr-reader-panel video { width: min(100%, 620px); aspect-ratio: 4 / 3; object-fit: cover; background: #0f2743; border-radius: 8px; margin: 0 auto; }
.qr-reader-idle { display: grid; gap: 8px; justify-items: center; padding: 46px 20px; border: 2px dashed var(--line); border-radius: 8px; background: #f8fbff; color: var(--blue-dark); text-align: center; }
.qr-reader-panel [hidden] { display: none !important; }
.qr-reader-idle strong { font-size: 22px; }
.qr-reader-idle span { color: var(--muted); }
.qr-reader-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.qr-manual { display: grid; gap: 6px; color: var(--blue-dark); font-weight: 800; }
.visit-checkin-panel { max-width: 760px; display: grid; gap: 20px; }
.visit-identity { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 18px; border: 1px solid #b9e8e2; border-left: 6px solid #0f766e; border-radius: 8px; background: #f0fdfa; }
.visit-identity div { display: grid; gap: 6px; min-width: 0; }
.visit-identity span { color: #115e59; font-size: 12px; font-weight: 900; letter-spacing: .6px; text-transform: uppercase; }
.visit-identity strong { color: var(--blue-dark); font-size: 25px; line-height: 1.2; overflow-wrap: anywhere; }
.visit-checkin-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 18px; }
.visit-checkin-details p { margin: 0; }
@media (max-width: 560px) { .visit-identity { grid-template-columns: 1fr; } .visit-identity strong { font-size: 22px; } }
@media (max-width: 700px) { .agenda-summary { grid-template-columns: repeat(2, 1fr); } }
.privacy-note { color: var(--muted); margin: 2px 0 0; line-height: 1.4; }
.privacy-note a { color: var(--blue); font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.whatsapp-consent { display: flex !important; align-items: flex-start; gap: 9px; margin: 3px 0 0; cursor: pointer; }
.whatsapp-consent input[type="checkbox"] { appearance: auto; -webkit-appearance: checkbox; width: 18px; min-width: 18px; height: 18px; min-height: 18px; margin: 2px 0 0; padding: 0; border: 0; flex: 0 0 18px; accent-color: var(--orange); }
.whatsapp-consent span { color: var(--text) !important; line-height: 1.35; font-weight: 600; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }
.success-state { grid-template-columns: minmax(320px, 520px); justify-content: center; }
.success-card { text-align: center; }
.success-card .capture-logo { margin: 0 auto 18px; }
.success-card h1 { color: var(--blue-dark); margin: 0 0 8px; }
.success-card p { color: var(--muted); margin-bottom: 22px; }
.conversion-step { grid-template-columns: minmax(280px, 1fr) minmax(420px, 520px); }
.conversion-card { padding: 24px; }
.conversion-header { display: grid; gap: 7px; margin-bottom: 18px; }
.conversion-header h1 { margin: 0; color: var(--blue-dark); font-size: 24px; line-height: 1.18; }
.offer-box {
    border-radius: 8px;
    background: linear-gradient(135deg, #fff7f1, #ffffff);
    border: 1px solid #ffd7bd;
    border-left: 6px solid var(--orange);
    padding: 18px;
    margin: 18px 0;
    display: grid;
    gap: 5px;
}
.offer-box span {
    color: var(--orange);
    font-weight: 900;
    font-size: 13px;
}
.offer-box strong {
    color: var(--blue-dark);
    font-size: 36px;
    line-height: 1;
}
.offer-box small {
    color: var(--muted);
    font-weight: 800;
    line-height: 1.35;
}
.conversion-copy {
    color: var(--text);
    font-weight: 800;
    line-height: 1.45;
    margin: 0 0 16px;
}
.conversion-cta { text-align: center; text-decoration: none; }
.ingresso-step { grid-template-columns: minmax(280px, 1fr) minmax(420px, 500px); }
.ingresso-form-card { padding: 24px; }
.ingresso-card-header { display: grid; gap: 7px; margin-bottom: 18px; }
.step-label {
    color: var(--orange);
    font-weight: 900;
    font-size: 12px;
    text-transform: uppercase;
}
.ingresso-card-header h1 {
    margin: 0;
    color: var(--blue-dark);
    font-size: 24px;
    line-height: 1.15;
}
.ingresso-card-header p { margin: 0; color: var(--muted); line-height: 1.45; }
.journey-box {
    display: grid;
    gap: 12px;
    background: #f5f8fb;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 18px;
}
.journey-box div { display: grid; gap: 4px; }
.journey-box span { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.journey-box strong { color: var(--text); line-height: 1.3; }
.ingresso-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.ingresso-options form { min-width: 0; }
.ingresso-enem-form { display: contents; }
.ingresso-enem-form > .ingresso-option[aria-expanded="true"] {
    border-color: var(--orange);
    background: #fff7f1;
    color: var(--blue-ink);
}
.ingresso-enem-score {
    grid-column: 1 / -1;
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid #cfd9e5;
    border-radius: 8px;
    background: #f5f8fb;
}
.ingresso-enem-score[hidden] { display: none; }
.ingresso-enem-score label {
    color: var(--blue-dark);
    font-size: 14px;
    font-weight: 900;
}
.ingresso-enem-score select { width: 100%; }
.ingresso-enem-score .btn { width: 100%; text-align: center; }
.ingresso-option {
    width: 100%;
    min-height: 54px;
    border: 1px solid #cfd9e5;
    border-radius: 8px;
    background: #fff;
    color: var(--blue-dark);
    font-weight: 900;
    font-size: 14px;
    cursor: pointer;
    padding: 12px;
    text-align: left;
}
.ingresso-option:hover, .ingresso-option.selected {
    border-color: var(--orange);
    background: #fff7f1;
    color: var(--blue-ink);
}
.course-return-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 16px;
    color: var(--orange);
    font-weight: 800;
    text-decoration: none;
}
.course-return-link span { font-size: 18px; line-height: 1; }
.course-return-link:hover { filter: brightness(.9); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1180px) {
    .dashboard-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .panel-grid { grid-template-columns: 1fr; }
    .report-grid, .report-grid.three { grid-template-columns: 1fr; }
    .eja-capture-page { grid-template-columns: minmax(250px, 1fr) minmax(440px, 520px); width: min(1080px, calc(100vw - 32px)); }
}

@media (max-width: 760px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .brand img { width: 48px; }
    .main-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .topbar { height: auto; padding: 14px; align-items: flex-start; }
    .topbar, .user-menu { flex-direction: column; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .report-hero { align-items: flex-start; flex-direction: column; }
    .content { padding: 14px; }
    .capture-hero { grid-template-columns: 1fr; align-items: start; gap: 24px; padding: 28px 0; }
    .eja-capture-page { grid-template-columns: 1fr; width: min(100% - 32px, 680px); }
    .capture-copy h1 { font-size: 40px; }
    .capture-logo { width: 138px; }
    .eja-form-grid { grid-template-columns: 1fr; }
    .ead-hero { width: min(100% - 28px, 620px); padding-top: 28px; }
    .ead-heading { grid-template-columns: 120px 1fr; gap: 18px; margin-bottom: 24px; }
    .ead-logo { width: 120px; height: 100px; }
    .ead-heading h1 { font-size: 38px; letter-spacing: -1px; }
    .ead-heading p { margin-top: 8px; font-size: 20px; }
    .ead-hero-grid { grid-template-columns: 1fr; }
    .ead-form-grid { grid-template-columns: 1fr; }
    .ead-other-mode a { min-width: 0; width: 100%; font-size: 20px; }
    .ead-section-inner { width: min(100% - 28px, 620px); }
    .ead-section-inner > p { font-size: 17px; }
    .ead-benefits { grid-template-columns: 1fr; }
    .pos-hero { width: min(100% - 28px, 640px); padding-top: 22px; }
    .pos-heading { grid-template-columns: 105px 1fr; gap: 16px; }
    .pos-logo { width: 105px; height: 90px; }
    .pos-heading h1 { font-size: 34px; letter-spacing: -1px; }
    .pos-hero-grid { grid-template-columns: 1fr; }
    .pos-form-grid { grid-template-columns: 1fr; }
    .pos-form-grid label:last-child { grid-column: auto; }
    .pos-other-mode a { min-width: 0; width: 100%; font-size: 20px; }
    .pos-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pos-contact { grid-template-columns: 1fr; }
    .pos-contact div + div { border-left: 0; border-top: 1px solid #fff; }
    .ingresso-step { grid-template-columns: 1fr; }
    .ingresso-options { grid-template-columns: 1fr; }
}
