:root {
  --blue: #2563eb;
  --blue-dark: #173b86;
  --blue-soft: #eff6ff;
  --green: #16a34a;
  --green-soft: #ecfdf3;
  --red: #dc2626;
  --red-soft: #fef2f2;
  --amber: #d97706;
  --amber-soft: #fff7ed;
  --purple: #7c3aed;
  --purple-soft: #f5f3ff;
  --ink: #17213a;
  --muted: #667085;
  --line: #e6eaf1;
  --surface: #ffffff;
  --page: #f6f8fc;
  --shadow: 0 16px 42px rgba(20, 46, 105, .09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--page); min-width: 320px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(37,99,235,.22); outline-offset: 1px; }
.app-shell { min-height: 100vh; }
.topbar { background: linear-gradient(112deg, #183a85 0%, #2563eb 58%, #3977ec 100%); color: #fff; padding: 18px max(32px, calc((100vw - 1420px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 24px; box-shadow: 0 4px 14px rgba(30, 64, 175, .18); }
.brand-lockup, .header-tools, .intro-row, .workspace-head, .toolbar, .footer-actions, .footer-buttons, .modal-actions { display: flex; align-items: center; }
.brand-lockup { gap: 12px; }
.brand-mark { width: 42px; height: 42px; border-radius: 13px; background: #fff; position: relative; box-shadow: 0 8px 18px rgba(7,35,104,.25); }
.brand-mark::before { content: ""; position: absolute; inset: 10px 9px 9px; border: 2px solid var(--blue); border-radius: 5px; }
.brand-mark::after { content: ""; position: absolute; left: 13px; top: 7px; width: 16px; height: 5px; border-radius: 4px; background: var(--blue); }
.brand-mark span { position: absolute; left: 15px; top: 20px; height: 8px; width: 13px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); z-index: 1; }
.brand-name { letter-spacing: -.7px; font-size: 20px; font-weight: 800; }
.brand-name span { color: #bfe5ff; }
.brand-lockup p { margin: 1px 0 0; font-size: 11px; color: #dbeafe; letter-spacing: .07em; text-transform: uppercase; font-weight: 600; }
.header-tools { gap: 12px; }
.month-picker { border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.11); border-radius: 10px; padding: 7px 10px; display: flex; align-items: center; gap: 8px; color: #dbeafe; font-size: 11px; text-transform: uppercase; letter-spacing: .045em; font-weight: 700; }
.month-picker input { color-scheme: dark; background: transparent; color: white; border: 0; min-width: 128px; font-size: 13px; font-weight: 700; text-transform: none; letter-spacing: normal; }
.button { border: 0; border-radius: 9px; padding: 10px 14px; line-height: 1.15; font-size: 13px; font-weight: 750; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; white-space: nowrap; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button-light { background: #fff; color: var(--blue); box-shadow: 0 5px 14px rgba(8,38,111,.2); }
.button-primary { background: var(--blue); color: #fff; box-shadow: 0 7px 14px rgba(37,99,235,.18); }
.button-secondary { background: #fff; color: #344054; border: 1px solid #d4dce8; }
.button-amber { background: var(--amber); color: #fff; box-shadow: 0 7px 14px rgba(217,119,6,.16); }
.button-danger { background: var(--red-soft); color: var(--red); border: 1px solid #fecaca; }
.page-content { width: min(1420px, calc(100% - 56px)); margin: 0 auto; padding: 35px 0 28px; }
.intro-row { justify-content: space-between; gap: 24px; margin: 0 0 24px; }
.eyebrow { font-size: 10px; color: var(--blue); letter-spacing: .14em; font-weight: 800; margin: 0 0 7px; }
h1, h2, h3 { margin: 0; font-family: "DM Sans", Inter, sans-serif; letter-spacing: -.045em; }
h1 { font-size: clamp(25px, 3vw, 34px); line-height: 1.1; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
.subtitle { color: var(--muted); margin: 8px 0 0; font-size: 14px; }
.period-badge { border: 1px solid #cce2ff; background: #fff; color: var(--blue-dark); padding: 10px 14px; border-radius: 10px; font-weight: 750; font-size: 13px; box-shadow: 0 4px 11px rgba(15, 62, 139, .04); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--surface); border: 1px solid var(--line); min-height: 130px; border-radius: 13px; padding: 18px; display: flex; gap: 13px; position: relative; overflow: hidden; box-shadow: 0 5px 15px rgba(28, 49, 92, .035); }
.stat-card::after { content:""; position: absolute; width: 76px; height: 76px; right: -32px; bottom: -34px; border-radius: 50%; opacity: .42; }
.accent-blue::after { background: #dbeafe; }.accent-red::after { background: #fee2e2; }.accent-amber::after { background: #ffedd5; }.accent-purple::after { background: #ede9fe; }
.stat-icon { height: 35px; width: 35px; display: grid; place-items: center; font-size: 22px; border-radius: 10px; font-weight: 700; flex: none; }.icon-blue { color: var(--blue); background: var(--blue-soft); }.icon-red { color: var(--red); background: var(--red-soft); }.icon-amber { color: var(--amber); background: var(--amber-soft); }.icon-purple { color: var(--purple); background: var(--purple-soft); }
.stat-card span { color: var(--muted); display: block; font-size: 12px; font-weight: 650; }.stat-card strong { display: block; font-size: 29px; line-height: 1.1; margin: 5px 0 4px; letter-spacing: -.05em; }.stat-card small { color: #98a2b3; font-size: 10px; display: block; }
.workspace-card { background: #fff; border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); overflow: hidden; }
.workspace-head { padding: 22px 24px 18px; justify-content: space-between; gap: 18px; border-bottom: 1px solid #edf0f5; }.workspace-head .eyebrow { margin-bottom: 5px; }
.cycle-legend { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 11px; font-weight: 650; }.cycle-legend span { display: inline-flex; align-items: center; gap: 5px; }.legend-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }.legend-dot.pending { background: #94a3b8; }.legend-dot.done { background: var(--green); }.legend-dot.absence { background: var(--red); }.legend-dot.makeup { background: var(--amber); }
.toolbar { padding: 14px 24px; background: #fbfcfe; border-bottom: 1px solid #edf0f5; gap: 12px; }.search-box { flex: 1; min-width: 200px; position: relative; }.search-box > span { position: absolute; color: #98a2b3; left: 12px; top: 7px; font-size: 21px; line-height: 1; }.search-box input, .filter-box select { width: 100%; background: #fff; border: 1px solid #dbe2ec; border-radius: 8px; color: #344054; height: 35px; font-size: 12px; }.search-box input { padding: 0 12px 0 34px; }.filter-box { width: 182px; display: flex; align-items: center; gap: 7px; }.filter-box span { font-size: 11px; color: #667085; white-space: nowrap; font-weight: 650; }.filter-box select { padding: 0 8px; }.toolbar-note { font-size: 11px; font-weight: 750; color: #667085; white-space: nowrap; }
.table-wrap { overflow-x: auto; }.student-table { border-collapse: collapse; width: 100%; min-width: 1060px; }.student-table th { background: #fff; color: #667085; font-size: 10px; letter-spacing: .065em; text-transform: uppercase; text-align: left; padding: 13px 14px; white-space: nowrap; }.student-table td { border-top: 1px solid #edf0f5; padding: 13px 14px; font-size: 12px; vertical-align: middle; }.student-table tbody tr { transition: background .15s ease; }.student-table tbody tr:hover { background: #fafcff; }.student-name { background: none; border: 0; padding: 0; color: #153b87; font-weight: 780; font-size: 13px; text-align: left; }.student-name:hover { color: var(--blue); text-decoration: underline; }.student-meta { display: block; color: #98a2b3; font-size: 10px; margin-top: 3px; }.goal-value { font-weight: 750; color: #344054; }.calendar-count { color: #667085; }.calendar-count strong { color: var(--ink); font-size: 14px; }.progress-pair { display: flex; gap: 10px; align-items: center; }.number-success { color: var(--green); font-weight: 800; }.number-danger { color: var(--red); font-weight: 800; }.pending-number { font-weight: 800; }.status-pill { font-size: 10px; padding: 5px 8px; border-radius: 99px; font-weight: 800; white-space: nowrap; display: inline-block; }.status-pill.active { color: #166534; background: #dcfce7; }.status-pill.inactive { color: #64748b; background: #f1f5f9; }.daily-actions { display: flex; gap: 5px; }.icon-action { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; background: white; font-size: 13px; border: 1px solid #dde4ee; transition: transform .15s ease, box-shadow .15s ease; }.icon-action:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(15,23,42,.1); }.icon-action:disabled { opacity: .38; cursor: not-allowed; }.action-presence { color: var(--green); border-color: #bbf7d0; background: var(--green-soft); }.action-absence { color: var(--red); border-color: #fecaca; background: var(--red-soft); }.action-makeup { color: var(--amber); border-color: #fed7aa; background: var(--amber-soft); }.action-whatsapp { color: #128c3c; border-color: #bbf7d0; background: #f0fdf4; }.action-details { color: var(--blue); border-color: #bfdbfe; background: var(--blue-soft); }.renew-cell .button { padding: 7px 9px; font-size: 11px; }
.empty-state { text-align: center; padding: 46px 20px !important; color: var(--muted); }.empty-state strong { color: var(--ink); display: block; margin-bottom: 6px; font-size: 14px; }
.guide-strip { display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr; align-items: center; gap: 12px; margin: 21px 0 0; padding: 18px 22px; background: #ecf4ff; border: 1px solid #dbeafe; border-radius: 13px; }.guide-number { height: 27px; width: 27px; display: grid; place-items: center; border-radius: 50%; background: #c7e0ff; color: #1d4ed8; font-size: 10px; font-weight: 850; }.guide-strip strong, .guide-strip span { display: block; }.guide-strip strong { font-size: 12px; }.guide-strip span { font-size: 11px; color: #667085; margin-top: 2px; }
.footer-actions { width: min(1420px, calc(100% - 56px)); margin: 0 auto; border-top: 1px solid #dfe5ee; padding: 20px 0 32px; justify-content: space-between; gap: 18px; }.footer-actions strong, .footer-actions span { display: block; }.footer-actions strong { font-size: 12px; }.footer-actions span { margin-top: 3px; color: #667085; font-size: 11px; }.footer-buttons { gap: 8px; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, .5); padding: 24px; z-index: 20; display: none; align-items: center; justify-content: center; backdrop-filter: blur(3px); }.modal-backdrop.open { display: flex; animation: fadeIn .18s ease; }.modal { max-height: min(900px, calc(100vh - 48px)); overflow-y: auto; width: min(1060px, 100%); position: relative; background: #fff; border-radius: 16px; box-shadow: 0 28px 80px rgba(15,23,42,.28); animation: modalIn .2s ease; }.modal-wide { padding: 0; }.modal-form { width: min(620px, 100%); padding: 28px; }.modal-close { position: absolute; right: 14px; top: 14px; z-index: 2; height: 32px; width: 32px; border-radius: 50%; background: #f1f5f9; color: #475467; border: 0; font-size: 22px; line-height: 1; }.modal-title-block { padding-right: 35px; }.modal-title-block h2 { font-size: 23px; }.modal-title-block p:not(.eyebrow) { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 6px 0 20px; }
.detail-hero { color: #fff; padding: 29px 32px 26px; background: linear-gradient(115deg, #173b86, #2563eb); }.detail-hero .eyebrow { color: #bfe5ff; }.detail-hero h2 { font-size: 26px; letter-spacing: -.045em; margin-right: 36px; }.detail-hero p { font-size: 12px; color: #dbeafe; margin: 8px 0 0; }.hero-tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 7px; }.hero-tag { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); font-size: 10px; border-radius: 999px; padding: 5px 8px; font-weight: 700; }
.detail-body { padding: 24px 28px 30px; }.cycle-warning { border-left: 4px solid #94a3b8; background: #f8fafc; border-radius: 7px; padding: 14px; margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }.cycle-warning strong { font-size: 12px; display: block; }.cycle-warning span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.4; }.detail-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 21px; }.detail-metric { border: 1px solid var(--line); border-radius: 10px; padding: 13px; }.detail-metric span { display: block; font-size: 10px; color: var(--muted); font-weight: 650; }.detail-metric strong { display: block; margin-top: 4px; font-size: 23px; letter-spacing: -.05em; }.detail-metric.done strong { color: var(--green); }.detail-metric.absent strong { color: var(--red); }.detail-metric.pending-metric strong { color: var(--amber); }.detail-metric.makeup-metric strong { color: var(--purple); }
.detail-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 18px; }.panel { border: 1px solid var(--line); border-radius: 11px; padding: 17px; }.panel + .panel { margin-top: 18px; }.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }.panel-heading h3 { font-size: 15px; }.panel-heading p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.35; }.panel-heading .button { padding: 7px 9px; font-size: 11px; }.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }.field { display: block; }.field-full { grid-column: 1 / -1; }.field > span, .field > div:first-child { display: block; color: #475467; font-size: 11px; font-weight: 720; margin-bottom: 6px; }.field b { color: var(--red); }.field input:not([type="checkbox"]), .field select, .field textarea { width: 100%; border: 1px solid #d9e0ea; background: #fff; color: #17213a; border-radius: 7px; min-height: 36px; padding: 8px 9px; font-size: 12px; }.field textarea { resize: vertical; min-height: 64px; line-height: 1.45; }.form-divider { border: 0; border-top: 1px solid #edf0f5; margin: 3px 0; }.weekday-options { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }.weekday-options label { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 38px; border: 1px solid #dde4ee; color: #667085; border-radius: 7px; font-size: 9px; font-weight: 750; cursor: pointer; }.weekday-options input { margin: 0 0 3px; accent-color: var(--blue); }.inline-form { display: flex; align-items: end; gap: 7px; flex-wrap: wrap; }.inline-form .field { flex: 1; min-width: 105px; }.inline-form .button { padding: 9px 10px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }.calendar-weekday { color: #98a2b3; text-align: center; font-weight: 800; font-size: 9px; padding-bottom: 4px; }.calendar-day { min-height: 50px; border: 1px solid #edf0f5; padding: 5px; border-radius: 7px; background: #fff; }.calendar-day.empty { border-color: transparent; background: transparent; }.day-number { color: #667085; font-size: 9px; font-weight: 750; }.day-events { display: flex; flex-direction: column; gap: 3px; margin-top: 3px; }.day-chip { height: 5px; border-radius: 9px; background: #cbd5e1; }.day-chip.pending { background: #94a3b8; }.day-chip.presence { background: var(--green); }.day-chip.absence { background: var(--red); }.day-chip.makeup { background: var(--amber); }.calendar-note { margin: 10px 0 0; font-size: 10px; color: var(--muted); }.editable-list { display: flex; flex-direction: column; gap: 7px; max-height: 250px; overflow-y: auto; padding-right: 3px; }.session-row { display: grid; grid-template-columns: 1fr 1fr auto auto; gap: 5px; align-items: center; border: 1px solid #edf0f5; border-radius: 8px; padding: 6px; }.session-row input, .session-row select { border: 1px solid #dce3ed; border-radius: 6px; padding: 5px; min-width: 0; font-size: 10px; color: #344054; height: 30px; }.session-note { grid-column: 1 / -1; }.session-kind { grid-column: 1 / -1; font-size: 9px; color: #667085; font-weight: 650; padding: 0 2px 2px; }.tiny-button { height: 29px; min-width: 29px; border: 0; border-radius: 6px; font-size: 12px; font-weight: 750; }.tiny-save { color: #fff; background: var(--blue); }.tiny-delete { color: var(--red); background: var(--red-soft); }.timeline { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; max-height: 270px; overflow: auto; }.timeline-item { display: grid; grid-template-columns: 9px 1fr auto; gap: 9px; align-items: start; }.timeline-marker { border-radius: 50%; height: 9px; width: 9px; margin-top: 4px; background: #94a3b8; }.timeline-marker.presence { background: var(--green); }.timeline-marker.absence { background: var(--red); }.timeline-marker.makeup { background: var(--amber); }.timeline-marker.scheduled { background: var(--purple); }.timeline-content strong { display: block; font-size: 11px; }.timeline-content span { color: #667085; display: block; font-size: 10px; margin-top: 2px; line-height: 1.35; }.timeline-content time { font-size: 10px; color: #98a2b3; }.timeline .tiny-delete { margin-top: 1px; }.empty-history { color: #98a2b3; font-size: 11px; text-align: center; padding: 17px 4px; }
.modal-actions { justify-content: flex-end; gap: 8px; margin-top: 5px; }.detail-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 19px; margin-top: 19px; border-top: 1px solid #edf0f5; }.detail-actions-right { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }.detail-actions .button { padding: 9px 11px; font-size: 11px; }
.toast { position: fixed; z-index: 50; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none; color: #fff; background: #17213a; box-shadow: 0 12px 26px rgba(15,23,42,.22); padding: 10px 14px; border-radius: 8px; font-size: 12px; font-weight: 650; transition: all .22s ease; max-width: calc(100vw - 34px); text-align: center; }.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }.toast.success { background: #166534; }.toast.error { background: #b42318; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes modalIn { from { transform: scale(.985) translateY(6px); } to { transform: scale(1) translateY(0); } }
@media (max-width: 1100px) { .stats-grid { grid-template-columns: repeat(2, 1fr); }.detail-grid { grid-template-columns: 1fr; }.detail-grid > div:last-child .panel:first-child { margin-top: 0; } }
@media (max-width: 760px) {
  .topbar { padding: 14px 18px; align-items: flex-start; flex-direction: column; }.header-tools { width: 100%; justify-content: space-between; }.month-picker { flex: 1; }.month-picker input { min-width: 0; width: 100%; }.page-content, .footer-actions { width: min(100% - 28px, 1420px); }.page-content { padding-top: 25px; }.intro-row, .workspace-head { align-items: flex-start; flex-direction: column; }.period-badge { width: 100%; }.stats-grid { gap: 10px; }.stat-card { min-height: 112px; padding: 14px; }.stat-icon { display: none; }.stat-card strong { font-size: 25px; }.workspace-head, .toolbar { padding-left: 15px; padding-right: 15px; }.toolbar { flex-wrap: wrap; }.filter-box { width: 100%; }.toolbar-note { margin-left: auto; }.guide-strip { grid-template-columns: auto 1fr; gap: 8px 10px; padding: 15px; }.guide-strip > div:nth-of-type(3), .guide-strip > div:nth-of-type(5) { margin-top: 5px; }.footer-actions { align-items: flex-start; flex-direction: column; }.footer-buttons { width: 100%; }.footer-buttons .button { flex: 1; }.modal-backdrop { padding: 8px; }.modal { max-height: calc(100vh - 16px); }.modal-form { padding: 22px 17px; }.detail-hero { padding: 24px 18px; }.detail-body { padding: 17px; }.detail-metrics { grid-template-columns: repeat(2, 1fr); }.form-grid { grid-template-columns: 1fr; }.field-full { grid-column: auto; }.weekday-options { gap: 3px; }.weekday-options label { min-height: 34px; font-size: 8px; }.cycle-warning, .detail-actions { align-items: flex-start; flex-direction: column; }.detail-actions-right { width: 100%; justify-content: stretch; }.detail-actions-right .button { flex: 1; }.session-row { grid-template-columns: 1fr 1fr auto auto; }.calendar-day { min-height: 43px; padding: 4px; }
  .table-wrap { overflow: visible; padding: 0 10px 11px; }
  .student-table, .student-table tbody { display: block; min-width: 0; width: 100%; }
  .student-table thead { display: none; }
  .student-table tbody { display: grid; gap: 9px; }
  .student-table tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; background: #fff; border: 1px solid #e7edf5; border-radius: 10px; padding: 10px; }
  .student-table tbody tr:hover { background: #fff; }
  .student-table td { display: block; min-width: 0; border: 0 !important; padding: 6px 0; }
  .student-table td::before { color: #98a2b3; content: ""; display: block; font-size: 8px; font-weight: 800; letter-spacing: .07em; margin-bottom: 3px; text-transform: uppercase; }
  .student-table td:nth-child(1) { grid-column: 1 / -1; padding-top: 0; }
  .student-table td:nth-child(1)::before { content: "Aluno"; }
  .student-table td:nth-child(2)::before { content: "Rotina e meta"; }
  .student-table td:nth-child(3)::before { content: "Calendário"; }
  .student-table td:nth-child(4)::before { content: "Realizadas / faltas"; }
  .student-table td:nth-child(5)::before { content: "Pendentes"; }
  .student-table td:nth-child(6) { grid-column: 1 / -1; }
  .student-table td:nth-child(6)::before { content: "Status do ciclo"; }
  .student-table td:nth-child(7) { grid-column: 1 / -1; border-top: 1px dashed #e7edf5 !important; margin-top: 3px; padding-top: 9px; }
  .student-table td:nth-child(7)::before { content: "Ações do dia"; }
  .daily-actions { flex-wrap: wrap; }
  .icon-action { width: 32px; height: 32px; }
  .renew-cell .button { width: 100%; }
}
@media (max-width: 430px) { .header-tools .button { padding: 9px 10px; font-size: 12px; }.brand-lockup p { display: none; }.stats-grid { grid-template-columns: 1fr 1fr; }.stat-card span { font-size: 10px; }.stat-card small { font-size: 9px; }.intro-row h1 { font-size: 25px; }.subtitle { font-size: 12px; }.modal-title-block h2 { font-size: 20px; }.inline-form .field { min-width: 90px; } }

.week-board { margin: 0 0 24px; padding: 22px; border: 1px solid #dbe6f5; border-radius: 17px; background: linear-gradient(135deg, #eff6ff 0%, #ffffff 62%); box-shadow: 0 12px 28px rgba(30, 64, 175, .07); }
.week-board-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 17px; }.week-board h2 { font-size: 21px; }.week-caption { margin: 5px 0 0; color: var(--muted); font-size: 12px; }.quick-filters { display: flex; gap: 6px; padding: 4px; border-radius: 10px; background: rgba(255,255,255,.8); border: 1px solid #dbe6f5; }.quick-filter { border: 0; border-radius: 7px; padding: 7px 10px; color: #667085; background: transparent; font-size: 11px; font-weight: 750; }.quick-filter.active { color: #fff; background: var(--blue); box-shadow: 0 4px 10px rgba(37,99,235,.2); }.week-board-grid { display: grid; grid-template-columns: repeat(7, minmax(125px, 1fr)); gap: 8px; overflow-x: auto; padding-bottom: 2px; }.week-day { min-height: 164px; padding: 10px; border: 1px solid #e3ebf6; border-radius: 12px; background: rgba(255,255,255,.86); }.week-day-head { display: flex; align-items: center; justify-content: space-between; color: #64748b; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }.week-day-head strong { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; color: var(--blue-dark); background: #dbeafe; font-size: 12px; }.week-day-list { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; }.week-item { padding: 8px; border-radius: 9px; background: #fff; border-left: 3px solid #94a3b8; box-shadow: 0 4px 10px rgba(15,23,42,.06); animation: slideUp .2s ease both; }.week-item.presence { border-left-color: var(--green); }.week-item.absence { border-left-color: var(--red); background: #fffafa; }.week-item.makeup { border-left-color: var(--amber); }.week-item-top { display: flex; align-items: flex-start; gap: 6px; }.avatar { flex: none; width: 23px; height: 23px; display: grid; place-items: center; border-radius: 7px; color: var(--blue); background: #eff6ff; font-size: 8px; font-weight: 850; }.week-student { display: block; border: 0; padding: 0; background: none; color: #173b86; font-size: 10px; line-height: 1.2; font-weight: 800; text-align: left; }.week-student:hover { color: var(--blue); text-decoration: underline; }.week-item-status { display: block; margin-top: 3px; color: #64748b; font-size: 8px; font-weight: 750; }.week-item-status.presence { color: var(--green); }.week-item-status.absence { color: var(--red); }.week-item-status.makeup { color: var(--amber); }.week-item-actions { display: flex; align-items: center; gap: 4px; margin-top: 7px; }.mini-action { min-height: 22px; border: 1px solid #dbe3ef; border-radius: 5px; padding: 3px 5px; color: #64748b; background: #f8fafc; font-size: 8px; font-weight: 800; }.mini-action:hover:not(:disabled) { color: var(--blue); border-color: #bfdbfe; background: #eff6ff; }.mini-action.presence { color: var(--green); border-color: #bbf7d0; background: var(--green-soft); }.mini-action.absence { color: var(--red); border-color: #fecaca; background: var(--red-soft); }.mini-action:disabled { opacity: .45; }
@keyframes slideUp { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 760px) { .week-board { padding: 16px 12px; margin-bottom: 18px; }.week-board-head { flex-direction: column; gap: 12px; }.quick-filters { width: 100%; }.quick-filter { flex: 1; }.week-board-grid { grid-template-columns: repeat(7, minmax(135px, 1fr)); margin-right: -4px; } }

/* Navegação por áreas: calendário, alunos e planejamento */
body { background: #f5f8fd; }
.app-shell { display: flex; min-height: 100vh; }
.side-nav { width: 246px; flex: none; display: flex; flex-direction: column; padding: 26px 16px 18px; color: #dbeafe; background: linear-gradient(180deg, #102d68 0%, #173b86 52%, #102c61 100%); }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 0 10px 28px; border-bottom: 1px solid rgba(255,255,255,.13); }.side-brand .brand-mark { width: 38px; height: 38px; }.side-brand .brand-name { color: #fff; font-size: 18px; }.side-brand .brand-lockup p, .side-brand p { margin: 2px 0 0; color: #a9c8f5; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.main-nav { display: flex; flex-direction: column; gap: 7px; padding-top: 24px; }.nav-item { display: grid; grid-template-columns: 30px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; width: 100%; padding: 12px 11px; border: 1px solid transparent; border-radius: 11px; color: #bad0ef; background: transparent; text-align: left; transition: .18s ease; }.nav-item:hover { color: #fff; background: rgba(255,255,255,.08); }.nav-item.active { color: #fff; background: linear-gradient(90deg, rgba(78,143,255,.3), rgba(255,255,255,.08)); border-color: rgba(147,197,253,.25); box-shadow: inset 3px 0 var(--blue); }.nav-icon { grid-row: 1 / -1; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: #9cc4ff; background: rgba(255,255,255,.1); font-size: 17px; }.nav-item span:not(.nav-icon) { font-size: 12px; font-weight: 800; }.nav-item small { margin-top: 3px; color: #88a9d7; font-size: 9px; }.nav-item.active small { color: #cfe2ff; }.side-footer { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 12px 10px 0; border-top: 1px solid rgba(255,255,255,.13); }.side-footer strong, .side-footer small { display: block; }.side-footer strong { color: #e6f0ff; font-size: 10px; }.side-footer small { margin-top: 3px; color: #91add5; font-size: 9px; }.sync-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.12); }
.main-column { min-width: 0; flex: 1; }.page-view { display: none; }.page-view.active { display: block; animation: pageIn .18s ease; }.calendar-shell { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }.calendar-shell-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }.calendar-shell-head h2 { font-size: 20px; }.calendar-shell-head p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }.calendar-legend { display: flex; flex-wrap: wrap; gap: 11px; color: var(--muted); font-size: 10px; font-weight: 700; }.calendar-legend span { display: inline-flex; align-items: center; gap: 5px; }.calendar-page-grid { display: grid; grid-template-columns: repeat(7, minmax(115px, 1fr)); gap: 5px; overflow-x: auto; }.calendar-page-weekday { padding: 8px 5px; color: var(--muted); font-size: 10px; font-weight: 800; text-align: center; text-transform: uppercase; letter-spacing: .06em; }.calendar-page-day { min-height: 112px; padding: 8px; border: 1px solid #e7edf5; border-radius: 9px; background: #fbfdff; }.calendar-page-day.empty { border-color: transparent; background: transparent; }.calendar-page-day > strong { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: var(--blue-dark); background: #e6f0ff; font-size: 11px; }.calendar-event-list { display: flex; flex-direction: column; gap: 4px; margin-top: 7px; }.calendar-event { display: flex; align-items: center; gap: 4px; width: 100%; overflow: hidden; padding: 3px 4px; border: 0; border-radius: 5px; color: #475467; background: #eef2f7; text-align: left; font-size: 9px; white-space: nowrap; }.calendar-event i { flex: none; width: 5px; height: 5px; border-radius: 50%; background: #94a3b8; }.calendar-event span { overflow: hidden; text-overflow: ellipsis; }.calendar-event.presence { color: #166534; background: var(--green-soft); }.calendar-event.presence i { background: var(--green); }.calendar-event.absence { color: #b42318; background: var(--red-soft); }.calendar-event.absence i { background: var(--red); }.calendar-event.makeup { color: #9a3412; background: var(--amber-soft); }.calendar-event.makeup i { background: var(--amber); }.calendar-event:hover { outline: 2px solid #bfdbfe; }.calendar-event-list small { color: var(--muted); font-size: 8px; }
@keyframes pageIn { from { opacity: .35; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 820px) { .app-shell { display: block; }.side-nav { width: 100%; padding: 10px 14px 8px; }.side-brand { display: none; }.main-nav { flex-direction: row; gap: 5px; padding: 0; }.nav-item { flex: 1; grid-template-columns: 24px 1fr; padding: 8px 7px; }.nav-item small { display: none; }.nav-icon { width: 23px; height: 23px; font-size: 14px; }.nav-item span:not(.nav-icon) { font-size: 10px; }.side-footer { display: none; }.mobile-brand { display: flex; } }
@media (min-width: 821px) { .mobile-brand { display: none; }.topbar { padding-left: 32px; padding-right: 32px; } }
@media (max-width: 600px) { .calendar-shell { padding: 13px; }.calendar-shell-head { flex-direction: column; }.calendar-page-grid { grid-template-columns: repeat(7, minmax(110px, 1fr)); }.calendar-page-day { min-height: 95px; }.intro-row .button { width: 100%; } }

/* Tema Noir & Gold — contraste alto, navegação elegante e foco nos dados */
:root {
  --gold: #d9ad4c;
  --gold-bright: #f0c766;
  --gold-soft: #fff5d6;
  --blue: #c79632;
  --blue-dark: #f1cc70;
  --blue-soft: #fff7df;
  --ink: #f5f1e8;
  --muted: #b9b1a2;
  --line: #38352f;
  --surface: #171717;
  --page: #0d0d0d;
  --shadow: 0 18px 48px rgba(0,0,0,.28);
}
body { color: var(--ink); background: #0d0d0d; }
.side-nav { background: linear-gradient(180deg, #090909 0%, #171512 58%, #0b0b0b 100%); border-right: 1px solid #393125; }
.side-brand { border-bottom-color: #393125; }.side-brand p { color: #a99a78; }.side-brand .brand-mark, .brand-mark { background: #f8f0df; box-shadow: 0 8px 20px rgba(217,173,76,.18); }.brand-mark::before { border-color: #a8791c; }.brand-mark::after { background: var(--gold); }.brand-mark span { border-color: #2f6d43; }.brand-name span { color: var(--gold-bright); }
.nav-item { color: #b8ae9b; }.nav-item:hover { color: #fff6df; background: rgba(217,173,76,.09); }.nav-item.active { color: #fff7df; background: linear-gradient(90deg, rgba(217,173,76,.2), rgba(255,255,255,.035)); border-color: rgba(217,173,76,.28); box-shadow: inset 3px 0 var(--gold); }.nav-icon { color: var(--gold-bright); background: rgba(217,173,76,.11); }.nav-item small { color: #857b68; }.nav-item.active small { color: #d8c28e; }.side-footer { border-top-color: #393125; }.side-footer strong { color: #efe3c5; }.side-footer small { color: #8f846d; }
.topbar { background: linear-gradient(112deg, #0b0b0b 0%, #1c1a16 62%, #302516 100%); border-bottom: 1px solid #3b301e; box-shadow: 0 4px 18px rgba(0,0,0,.35); }.brand-lockup p { color: #c7b98d; }.month-picker { border-color: rgba(217,173,76,.34); background: rgba(217,173,76,.1); color: #dfc98d; }.button-light { background: #f3d277; color: #20180a; box-shadow: 0 5px 14px rgba(0,0,0,.3); }.button-primary { background: var(--gold); color: #1d160b; box-shadow: 0 7px 16px rgba(217,173,76,.2); }.button-amber { background: #b77c16; color: #fff5d6; }.button-secondary { background: #1d1c1a; color: #eadfca; border-color: #4a4336; }.button-danger { background: #3b1d1d; color: #ffb4ad; border-color: #733535; }
.page-content { background: transparent; }.eyebrow { color: var(--gold-bright); }.subtitle { color: var(--muted); }.period-badge { border-color: #6a5326; background: #1a1814; color: #f0cd79; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.stat-card, .workspace-card, .calendar-shell { background: #171717; border-color: var(--line); box-shadow: var(--shadow); }.stat-card::after { opacity: .1; }.accent-blue::after { background: var(--gold); }.accent-red::after { background: #bb3939; }.accent-amber::after { background: #d48b1d; }.accent-purple::after { background: #8a64cf; }.stat-card span, .stat-card small { color: var(--muted); }.stat-icon { background: #242018; }.icon-blue { color: var(--gold-bright); background: #302616; }.icon-red { color: #ff8f87; background: #351c1c; }.icon-amber { color: #f1bb52; background: #332514; }.icon-purple { color: #c3a1ff; background: #271d38; }
.workspace-head { border-bottom-color: #2e2b27; }.cycle-legend { color: var(--muted); }.toolbar { background: #121212; border-bottom-color: #2e2b27; }.search-box input, .filter-box select { background: #22211f; border-color: #454035; color: #eee5d3; }.filter-box span, .toolbar-note { color: var(--muted); }.student-table th { background: #171717; color: #aaa08e; }.student-table td { border-top-color: #2c2a26; }.student-table tbody tr:hover { background: #211f1b; }.student-name { color: #f0ca70; }.student-name:hover { color: #ffe2a1; }.student-meta { color: #948a79; }.goal-value, .calendar-count, .calendar-count strong { color: #e6ddce; }.icon-action { background: #1b1a18; border-color: #494234; }.action-presence { color: #73d797; background: #172b1e; border-color: #2c6a42; }.action-absence { color: #ff9b93; background: #351c1c; border-color: #713b38; }.action-makeup { color: #f1c25c; background: #332513; border-color: #73531d; }.action-whatsapp { color: #73d797; background: #172b1e; border-color: #2c6a42; }.action-details { color: #f0ca70; background: #302616; border-color: #735b27; }.status-pill.active { color: #a4e9b9; background: #173121; }.status-pill.inactive { color: #b9b2a6; background: #2a2926; }
.guide-strip { background: #191b1b; border-color: #3a3b34; }.guide-number { background: #3a2d18; color: #f0c766; }.guide-strip span { color: var(--muted); }.footer-actions { border-top-color: #38352f; }.footer-actions span { color: var(--muted); }
.week-board, .calendar-shell { background: #171717; border-color: var(--line); }.week-board-head { border-bottom-color: #2e2b27; }.week-day { background: #1c1b19; border-color: #39352c; }.week-day-head { color: #b5a991; border-bottom-color: #302d27; }.week-day-head strong { color: #f0ca70; background: #342915; }.week-item { background: #24221e; border-color: #3f382b; }.week-item:hover { background: #2b261d; }.week-item-status { color: #bcb09a; }.week-item-status.presence { color: #8fe0a8; }.week-item-status.absence { color: #ff9f96; }.week-item-status.makeup { color: #f2c96d; }.quick-filter { background: #1c1b19; border-color: #464034; color: #bdb29f; }.quick-filter.active { color: #20180a; background: #e0b550; border-color: #e0b550; }.week-empty { color: #877e70; }.calendar-shell-head p, .calendar-legend { color: var(--muted); }.calendar-page-weekday { color: #a49a88; }.calendar-page-day { background: #1c1b19; border-color: #39352c; }.calendar-page-day.empty { background: transparent; border-color: transparent; }.calendar-page-day > strong { color: #211a0c; background: #ddb558; }.calendar-event { color: #d4cbbd; background: #2a2926; }.calendar-event.presence { color: #a4e9b9; background: #173121; }.calendar-event.absence { color: #ffaaa2; background: #351c1c; }.calendar-event.makeup { color: #f2cb76; background: #332513; }
.modal-backdrop { background: rgba(0,0,0,.74); }.modal { background: #171717; border: 1px solid #423b2e; }.modal-close { background: #292722; color: #dbcda9; }.modal-title-block p:not(.eyebrow), .panel-heading p { color: var(--muted); }.detail-hero { background: linear-gradient(115deg, #16130e, #604719); }.detail-hero .eyebrow { color: #f0ca70; }.detail-hero p { color: #e5d4a6; }.hero-tag { background: rgba(255,226,161,.12); border-color: rgba(240,199,102,.28); }.detail-body, .panel, .detail-metric { border-color: #38352f; }.panel { background: #1b1a18; }.detail-metric { background: #1b1a18; }.field > span, .field > div:first-child { color: #d5c8ad; }.field input:not([type="checkbox"]), .field select, .field textarea { background: #23211d; color: #f2eadc; border-color: #4a4336; }.weekday-options label { border-color: #4a4336; color: #c2b59b; }.weekday-options input { accent-color: var(--gold); }.editable-list .session-row, .editable-list .session-row input, .editable-list .session-row select { background: #211f1b; border-color: #4a4336; color: #eee5d3; }.calendar-day { background: #211f1b; border-color: #38352f; }.calendar-day.empty { background: transparent; border-color: transparent; }.day-number { color: #c5b99f; }.calendar-note { color: var(--muted); }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline-color: rgba(240,199,102,.72); }

.lesson-plan-layout { display: grid; grid-template-columns: minmax(330px, .9fr) minmax(420px, 1.1fr); gap: 18px; align-items: start; }.lesson-plan-form { overflow: hidden; }.lesson-fields { padding: 22px 24px 24px; }.plan-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 4px 9px; border: 1px solid #735b27; border-radius: 999px; color: #f0ca70; background: #302616; font-size: 10px; font-weight: 800; white-space: nowrap; }.field-hint { display: block; margin-top: 8px; color: #9f927c; font-size: 10px; line-height: 1.4; }.lesson-preview-card { min-height: 390px; }.lesson-preview { padding: 0 24px 24px; }.lesson-preview-summary { display: flex; flex-direction: column; gap: 5px; padding: 14px; border: 1px solid #514225; border-radius: 10px; background: #211c12; }.lesson-preview-summary strong { color: #f0ca70; font-size: 14px; }.lesson-preview-summary span { color: #bbae96; font-size: 11px; }.lesson-event-list { display: flex; flex-direction: column; gap: 7px; max-height: 515px; overflow-y: auto; margin-top: 12px; padding-right: 4px; }.lesson-event-row { display: grid; grid-template-columns: 112px 92px 1fr; align-items: center; gap: 10px; padding: 10px 11px; border: 1px solid #38352f; border-radius: 8px; background: #1c1b19; font-size: 11px; }.lesson-event-row strong { color: #eee2c8; }.lesson-event-row span { color: #b7aa93; }.lesson-event-row em { overflow: hidden; color: #d9ad4c; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }.lesson-weekdays label { min-height: 43px; }.planning-extra[hidden] { display: none; }
@media (max-width: 980px) { .lesson-plan-layout { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .lesson-fields { padding: 17px; }.lesson-preview { padding: 0 17px 17px; }.lesson-event-row { grid-template-columns: 1fr 1fr; }.lesson-event-row em { grid-column: 1 / -1; }.lesson-plan-layout { gap: 12px; } }

.calendar-page-day[data-action="open-calendar-day"] { cursor: pointer; transition: border-color .16s ease, background .16s ease, transform .16s ease; }.calendar-page-day[data-action="open-calendar-day"]:hover { border-color: #8a6a2d; background: #211d15; transform: translateY(-1px); }.calendar-day-detail { margin-top: 18px; padding: 17px; border: 1px solid #514225; border-radius: 11px; background: #1b1915; }.calendar-day-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }.calendar-day-detail-head .eyebrow { margin-bottom: 4px; }.calendar-day-detail-head h3 { color: #f1dfb6; font-size: 16px; }.calendar-day-detail-head > span { color: #b9a982; font-size: 11px; font-weight: 700; }.occupied-time-list { display: flex; flex-direction: column; gap: 7px; }.occupied-time-row { display: grid; grid-template-columns: 120px 240px 1fr; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border: 1px solid #3e382c; border-radius: 8px; color: #eee4d1; background: #23211d; text-align: left; }.occupied-time-row:hover { border-color: #a17b30; background: #2b2519; }.occupied-time-row strong { color: #f0ca70; font-size: 12px; }.occupied-time-row span { font-size: 12px; font-weight: 750; }.occupied-time-row em { overflow: hidden; color: #b7aa93; font-size: 11px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 700px) { .calendar-day-detail-head { align-items: flex-start; flex-direction: column; gap: 4px; }.occupied-time-row { grid-template-columns: 1fr 1fr; }.occupied-time-row em { grid-column: 1 / -1; } }

.calendar-event-editor { margin-bottom: 18px; }.calendar-event-editor .lesson-plan-layout { grid-template-columns: minmax(300px, .85fr) minmax(380px, 1.15fr); }.control-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }.control-summary { margin-top: 18px; }.control-student-summary { display: flex; flex-direction: column; gap: 6px; padding: 0 22px 22px; }.control-student-row { display: grid; grid-template-columns: minmax(210px, 1.4fr) repeat(5, minmax(80px, 1fr)); align-items: center; gap: 10px; width: 100%; padding: 12px 13px; border: 1px solid #36322a; border-radius: 8px; color: #e9dfce; background: #1d1b18; text-align: left; }.control-student-row:hover, .control-student-row.has-alert { border-color: #8b522d; background: #251d17; }.control-student-row.has-pending { border-color: #6d592b; }.control-student-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.control-student-row > span { color: #aa9e8a; font-size: 11px; }.control-pill { padding: 5px 7px; border-radius: 999px; text-align: center; font-size: 10px !important; font-weight: 800; }.control-pill.done { color: #7ee0aa !important; background: #183523; }.control-pill.pending { color: #f1c56b !important; background: #3a2c16; }.control-pill.absence { color: #f09791 !important; background: #3c1d20; }.control-pill.makeup { color: #c9a3ff !important; background: #2e2344; }.occupied-time-main { display: grid; grid-template-columns: 120px 1fr; gap: 3px 12px; cursor: pointer; }.occupied-time-main strong { grid-row: span 2; }.calendar-entry-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }.mini-action { padding: 6px 8px; border: 1px solid #4a4438; border-radius: 6px; color: #d7ccba; background: #28251f; font-size: 10px; font-weight: 800; cursor: pointer; }.mini-action.done:hover { border-color: #339b61; color: #8be4af; }.mini-action.absence:hover { border-color: #bf5a5a; color: #ff9e96; }.mini-action.makeup:hover { border-color: #9c78d2; color: #d3b3ff; }
@media (max-width: 1120px) { .control-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }.control-student-row { grid-template-columns: minmax(180px, 1.5fr) repeat(3, 1fr); }.control-pill.makeup, .control-pill.absence { grid-row: 2; } }
@media (max-width: 700px) { .control-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }.control-student-summary { padding: 0 14px 14px; }.control-student-row { grid-template-columns: 1fr 1fr; }.control-student-row strong { grid-column: 1 / -1; }.control-pill { grid-row: auto !important; }.occupied-time-main { grid-template-columns: 1fr; }.occupied-time-main strong { grid-row: auto; }.calendar-entry-actions { justify-content: flex-start; grid-column: 1 / -1; }.calendar-event-editor .lesson-plan-layout { grid-template-columns: 1fr; } }
.calendar-header-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }.mini-action.delete { border-color: #663638; color: #f09b91; }.mini-action.delete:hover { border-color: #d15d5d; color: #ffc0b7; background: #3a1e20; }
@media (max-width: 700px) { .calendar-header-actions { justify-content: flex-start; width: 100%; } }
#secondStudentField[hidden] { display: none; }
.editable-list .session-row input[type="time"] { min-width: 88px; color-scheme: dark; }
