/* Escola: escopo explícito, sem alterar as demais verticais do CRM. */
html.fluxo-escolas-premium { --school-ink:#172c46;--school-muted:#64758a;--school-blue:#2460df;--school-line:#e4eaf2;--seg-bg:#f4f7fb;--flux-brand:#2460df;--flux-brand-hover:#174bbb;--flux-brand-muted:#edf3ff; }
html.fluxo-escolas-premium #app-main-scroll,html.fluxo-escolas-premium #tab-dashboard,html.fluxo-escolas-premium .tab-content[id^="tab-edu-"] {background:#f4f7fb!important;}
html.fluxo-escolas-premium #dashboard-panel-segment {max-width:1400px;margin:0 auto;}
html.fluxo-escolas-premium #tab-dashboard {padding:28px 32px 100px!important;}
html.fluxo-escolas-premium #app-sidebar {border-right:1px solid #e4eaf2;background:#fff!important;}
html.fluxo-escolas-premium .segment-tab-badge {color:#2460df;}
html.fluxo-escolas-premium #login-screen {background-color:#f1f5fb!important;background-image:radial-gradient(ellipse at 10% 15%,#c5dafc 0,transparent 48%),radial-gradient(ellipse at 92% 88%,#d0ebe5 0,transparent 42%)!important;background-size:auto!important;overflow-y:auto!important;touch-action:auto;}
html.fluxo-escolas-premium #login-card {box-shadow:0 20px 80px #223b6420!important;border:1px solid #fff!important;}
.school-home {color:var(--school-ink);font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;line-height:1.5;animation:school-enter .35s ease-out;}
.school-home svg {width:19px;height:19px;stroke-width:1.75;flex-shrink:0;}
.school-home button {cursor:pointer;font-family:inherit;transition:background .16s,box-shadow .16s,transform .16s;}
.school-home button:disabled {cursor:default;opacity:.65;}
.school-home button:focus-visible,.school-home input:focus-visible {outline:3px solid #81adff;outline-offset:3px;}
.school-welcome {display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px;}
.school-eyebrow {font-size:10px!important;letter-spacing:.13em;text-transform:uppercase;font-weight:700!important;color:var(--school-muted)!important;margin:0 0 6px!important;}
.school-welcome h2 {font-size:34px!important;line-height:1.2!important;letter-spacing:-1.2px;font-weight:650!important;margin:0 0 7px!important;color:var(--school-ink)!important;}
.school-welcome p:not(.school-eyebrow) {font-size:13px;color:var(--school-muted);margin:0;}
.school-greeting-dot {color:var(--school-blue);}
.school-welcome-actions,.school-agenda-toolbar>div {display:flex;align-items:center;gap:8px;}
.school-btn {display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:9px 14px;border-radius:11px;font-size:12px;font-weight:600;white-space:nowrap;border:1px solid transparent;}
.school-btn--primary {background:var(--school-blue);color:#fff;box-shadow:0 4px 10px #2460df25;}
.school-btn--primary:hover {background:#174bbb;transform:translateY(-1px);}
.school-btn--secondary,.school-btn--icon {background:#fff;color:var(--school-ink);border-color:var(--school-line);}
.school-btn--secondary:hover,.school-btn--icon:hover {background:#edf3ff;}
.school-btn--icon {width:40px;padding:9px;}
.school-btn--icon span {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);}
.school-btn--quiet {background:transparent;color:var(--school-muted);padding:6px;min-height:36px;}
.school-overview {border-radius:20px;background:#172f50;color:#fff;padding:18px 24px 24px;margin-bottom:22px;overflow:hidden;}
.school-overview-heading {display:flex;justify-content:space-between;align-items:center;padding-bottom:18px;}
.school-overview-heading>span {display:flex;align-items:center;gap:8px;font-size:11px;color:#d6e4fc;font-weight:600;}
.school-overview-heading svg {width:15px;color:#97b9ff;}
.school-overview-heading>small {font-size:11px;color:#afc2de;}
.school-stats {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));}
.school-stat {display:flex;flex-direction:column;align-items:flex-start;text-align:left;padding:0 22px;border-left:1px solid #ffffff20;color:#fff;background:transparent;}
.school-stat:first-child {padding-left:0;border:0;}
.school-stat>span {display:flex;align-items:center;gap:8px;font-size:12px;color:#c6d5ec;}
.school-stat>span svg {width:16px;}
.school-stat>strong {font-size:36px;font-weight:550;line-height:1.3;letter-spacing:-1px;margin:5px 0;}
.school-stat>small {font-size:11px;color:#a7bcda;}
.school-stat:hover:not(:disabled) {background:#ffffff08;border-radius:8px;}
.school-main-grid {display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:20px;margin-bottom:26px;}
.school-card {background:#fff;border:1px solid var(--school-line);border-radius:18px;overflow:hidden;box-shadow:0 3px 8px #1c355403;min-width:0;}
.school-card-head {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:22px 22px 14px;}
.school-card h3,.school-section-title h3 {font-size:16px!important;letter-spacing:-.3px;font-weight:650!important;margin:0;color:var(--school-ink)!important;}
.school-card-footer {width:100%;padding:13px 22px;display:flex;align-items:center;justify-content:space-between;color:var(--school-blue);font-size:11px;font-weight:650;border-top:1px solid #edf0f5;background:#fff;}
.school-card-footer:hover {background:#f5f8ff;}
.school-card-footer svg {width:16px;}
.school-agenda-toolbar {padding:4px 22px 14px;display:flex;align-items:center;justify-content:space-between;gap:8px;}
.school-agenda-toolbar>span {font-size:11px;color:var(--school-muted);}
.school-agenda-toolbar .school-btn--icon {border:0;width:30px;min-height:36px;padding:4px;}
.school-week {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;padding:0 22px;}
.school-day {display:flex;align-items:center;flex-direction:column;border-radius:12px;border:1px solid transparent;background:#f7f9fc;padding:8px 3px 6px;gap:3px;min-width:0;color:var(--school-ink);}
.school-day>span {font-size:10px;text-transform:uppercase;color:var(--school-muted);}
.school-day>strong {font-size:17px;font-weight:600;}
.school-day>i {width:4px;height:4px;background:transparent;border-radius:50%;}
.school-day>i.has-classes {background:var(--school-blue);}
.school-day.is-today {border-color:#a4c2f9;}
.school-day.is-selected {background:var(--school-blue);color:#fff;box-shadow:0 4px 10px #2460df25;}
.school-day.is-selected>span {color:#fff;}
.school-day.is-selected>i.has-classes {background:#fff;}
.school-empty {min-height:192px;text-align:center;padding:28px 16px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px;}
.school-empty>svg {color:#94a9c5;width:27px;height:27px;margin-bottom:5px;}
.school-empty>strong {font-size:13px;font-weight:600;}
.school-empty p {font-size:11px;color:var(--school-muted);margin:0 0 6px;max-width:260px;}
.school-loading {padding:30px;font-size:12px;color:var(--school-muted);text-align:center;}
.school-session {width:calc(100% - 44px);margin:0 22px;display:flex;align-items:center;gap:14px;padding:15px 0;text-align:left;border-bottom:1px solid #edf1f6;}
.school-session>time {font-size:12px;font-weight:700;color:var(--school-blue);}
.school-session>span {flex:1;min-width:0;}
.school-session strong,.school-course strong {display:block;font-size:12px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.school-session small,.school-course small {display:block;font-size:10px;color:var(--school-muted);margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.school-count {font-size:10px;color:#506882;background:#f1f5fa;padding:5px 9px;border-radius:7px;white-space:nowrap;}
.school-search {display:flex;align-items:center;gap:8px;padding:9px 12px;margin:0 22px 5px;border:1px solid var(--school-line);border-radius:10px;color:#90a1b5;background:#fcfdff;}
.school-search svg {width:16px;}
.school-search input {background:transparent;border:0;font-size:12px;width:100%;min-width:0;color:var(--school-ink);padding:2px;}
.school-course {display:flex;align-items:center;gap:11px;text-align:left;width:100%;padding:12px 22px;background:#fff;border-bottom:1px solid #f0f3f7;}
.school-course:hover {background:#f8faff;}
.school-course>span:nth-child(2) {flex:1;min-width:0;}
.school-course>svg {color:#91a3b9;width:16px;}
.school-course-icon,.school-avatar {width:35px;height:35px;border-radius:10px;background:#edf3ff;color:#3466c6;display:grid;place-items:center;flex-shrink:0;font-size:12px;font-weight:600;}
.school-course-icon.tone-1 {background:#ecf7f2;color:#3e886c;}
.school-course-icon.tone-2 {background:#fff5e8;color:#b68a37;}
.school-module-section {margin:0 0 26px;scroll-margin-top:20px;}
.school-section-title {display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 14px;}
.school-section-title>span {font-size:10px;color:var(--school-muted);}
.school-modules {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;}
.school-module {display:flex;align-items:center;gap:10px;padding:16px 12px;text-align:left;border:1px solid var(--school-line);border-radius:13px;background:#fff;}
.school-module:hover {border-color:#9bbdf6;box-shadow:0 5px 16px #2460df0b;transform:translateY(-2px);}
.school-module-icon {color:var(--school-blue);display:flex;}
.school-module>span:nth-child(2) {min-width:0;flex:1;}
.school-module strong {display:block;font-size:11px;font-weight:650;}
.school-module small {display:block;font-size:9px;color:var(--school-muted);margin-top:3px;}
.school-module>svg {width:13px;color:#91a3b9;}
.school-enrollment-empty {display:flex;align-items:center;gap:18px;padding:10px 22px 26px;}
.school-enrollment-empty>svg {color:#9aaec8;width:34px;height:34px;}
.school-enrollment-empty>span {flex:1;}
.school-enrollment-empty strong {font-size:12px;font-weight:600;}
.school-enrollment-empty p {font-size:11px;color:var(--school-muted);margin-top:4px;}
.school-status {font-size:10px;padding:4px 8px;border-radius:6px;color:#377956;background:#eff8f1;}
.school-text-link {display:inline-flex;gap:4px;align-items:center;font-size:11px;color:var(--school-blue);}
.school-text-link svg {width:15px;}
.school-bottom-note {display:flex;gap:7px;align-items:center;justify-content:center;color:#8695a9;font-size:10px;margin:23px 0 0;}
.school-bottom-note svg {width:14px;}
html.fluxo-escolas-premium [id^="tab-edu-"]>div {animation:school-enter .25s ease-out;}
@keyframes school-enter {from{opacity:.5;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1600px){.school-main-grid{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr)}}
@media(max-width:1100px){.school-modules{grid-template-columns:repeat(2,minmax(0,1fr))}.school-card-head{padding:18px 16px 12px}.school-welcome h2{font-size:30px!important}.school-stat{padding:0 12px}.school-week{padding:0 16px;gap:4px}.school-search{margin:0 16px 5px}.school-agenda-toolbar{padding:4px 16px 12px}.school-agenda-toolbar>span{font-size:10px}}
@media(max-width:700px){html.fluxo-escolas-premium #tab-dashboard{padding:18px 16px 110px!important}.school-welcome{margin-bottom:18px;align-items:center}.school-welcome h2{font-size:28px!important}.school-welcome p:not(.school-eyebrow){font-size:11px}.school-welcome .school-eyebrow{font-size:8px!important;max-width:175px}.school-welcome-actions{gap:5px}.school-welcome-actions .school-btn{padding:9px 10px;font-size:10px}.school-welcome-actions .school-btn--icon{display:none}.school-overview{padding:16px 18px 18px;border-radius:17px;margin-bottom:16px}.school-stats{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:18px}.school-stat{padding:0 0 0 18px}.school-stat:nth-child(3){padding-left:0;border:0}.school-stat>strong{font-size:30px}.school-stat>span{font-size:11px}.school-stat>small{font-size:10px}.school-main-grid{grid-template-columns:1fr;gap:16px;margin-bottom:22px}.school-card{border-radius:16px}.school-card-head h3{font-size:15px!important}.school-card-head .school-eyebrow{font-size:9px!important}.school-module{padding:13px 10px;gap:9px}.school-module>svg{display:none}.school-module small{font-size:9px}.school-section-title>span{display:none}.school-enrollment-empty{flex-wrap:wrap;gap:12px;padding:10px 16px 20px}.school-enrollment-empty>.school-btn{margin-left:46px}.school-bottom-note{font-size:9px}.school-course{padding:12px 16px}.school-day{padding-top:10px}.school-empty{min-height:185px}}
@media(prefers-reduced-motion:reduce){.school-home,html.fluxo-escolas-premium [id^="tab-edu-"]>div{animation:none}.school-home button{transition:none}}
@media(max-width:700px){.school-enrollment-empty>span{min-width:calc(100% - 55px)}.school-enrollment-empty>.school-btn{flex-basis:calc(100% - 46px);margin-left:46px}.school-text-link{background:transparent}}

.school-login-wordmark{font-size:22px;font-weight:650;color:#172c46;letter-spacing:-.6px;order:2;margin-top:5px}
html.fluxo-escolas-premium #tab-dashboard>div {max-width:1400px!important;width:100%!important;}
html.fluxo-escolas-premium #header-profile-avatar {background:#2460df!important;}
html.fluxo-escolas-premium #genius-guide-fab {background:#2460df!important;box-shadow:0 4px 16px #2460df33!important;}
html.fluxo-escolas-premium #edu-enrollments-list>div[hidden],html.fluxo-escolas-premium #edu-classes-list>div[hidden] {display:none!important;}
.school-list-filter {display:none;}
html.fluxo-escolas-premium .school-list-filter {display:flex;align-items:center;gap:10px;padding:12px 15px;background:#fff;border:1px solid #e4eaf2;border-radius:12px;color:#64758a;}
.school-list-filter svg{width:18px;height:18px}.school-list-filter input{flex:1;min-width:0;background:transparent;border:0;font-size:13px;color:#172c46}.school-list-filter span{font-size:11px;white-space:nowrap}
html.fluxo-escolas-premium [id^="tab-edu-"] h2 {color:#172c46;letter-spacing:-.5px;}
html.fluxo-escolas-premium [id^="tab-edu-"] button.bg-\[\#6E42FF\] {background:#2460df;}
html.fluxo-escolas-premium [id^="tab-edu-"] .border-violet-200 {border-color:#d4e3fa;}
html.fluxo-escolas-premium [id^="tab-edu-"] .text-violet-700,html.fluxo-escolas-premium [id^="tab-edu-"] .text-violet-600 {color:#2460df;}
html.fluxo-escolas-premium #edu-enrollments-list,html.fluxo-escolas-premium #edu-classes-list {border-color:#e4eaf2;box-shadow:0 3px 8px #1c355403;}
html.fluxo-escolas-premium #edu-enrollments-list>div:hover,html.fluxo-escolas-premium #edu-classes-list>div:hover {background:#f5f8fd;}

/* COMPUTRON / Fluxo Escolas: largura útil e navegação responsiva. */
html.fluxo-escolas-premium #dashboard-panel-segment {
    width:100%; min-width:0; flex-shrink:0;
    container-type:inline-size; container-name:school-dashboard;
}
html.fluxo-escolas-premium #dashboard-segment-tabs { flex-shrink:0; }
html.fluxo-escolas-premium #app-sidebar {
    --sidebar-tile:#edf3ff; --sidebar-text:#172c46;
    --sidebar-muted:#64758a; --sidebar-icon:#506882;
}
html.fluxo-escolas-premium #app-sidebar .sidebar-nav-scroll {min-height:0;}
html.fluxo-escolas-premium #app-sidebar .nav-item.is-active .nav-item-icon {color:#2460df;}
@media(min-width:768px) {
    html.fluxo-escolas-premium #app-sidebar:not(.is-collapsed) {width:244px;}
    html.fluxo-escolas-premium #app-sidebar:not(.is-collapsed) .nav-item {padding:8px 10px;gap:10px;}
    html.fluxo-escolas-premium #app-sidebar:not(.is-collapsed) .nav-item-icon {width:30px;height:30px;}
}
@container school-dashboard (max-width:850px) {
    .school-main-grid {grid-template-columns:1fr;}
    .school-modules {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@container school-dashboard (max-width:520px) {
    .school-welcome {flex-wrap:wrap;}
    .school-welcome-actions {width:100%;justify-content:flex-end;}
    .school-agenda-toolbar {flex-wrap:wrap;}
    .school-card-head {flex-wrap:wrap;}
    .school-stats {grid-template-columns:repeat(2,minmax(0,1fr));row-gap:18px;}
    .school-stat:nth-child(3) {padding-left:0;border-left:0;}
}
