#schoolPortalDashboard{margin:24px 0;color:#222542;font-size:15px}
#schoolPortalDashboard :is(p,label,input,button){font-size:14px!important}
#schoolPortalDashboard .sp-statistics article>strong{font-size:30px!important}
#schoolPortalDashboard .sp-notification>strong,#schoolPortalDashboard .sp-events article>strong{font-size:16px!important}
#schoolPortalDashboard header{display:flex;justify-content:space-between;align-items:center;gap:16px}
#schoolPortalDashboard .sp-header-actions{display:flex;align-items:end;gap:10px}#schoolPortalDashboard .sp-header-actions label{display:grid;gap:6px;color:#565e74}#schoolPortalDashboard .sp-header-actions select{min-height:40px;border:1px solid #d9dbe9;border-radius:9px;padding:0 34px 0 12px;background:#fff;color:#222542;font:inherit}
#schoolPortalDashboard h2{font-size:23px;margin:0 0 8px}#schoolPortalDashboard h3{font-size:19px;margin:0 0 8px}
#schoolPortalDashboard p{font-size:14px;line-height:1.6;color:#565e74;margin:6px 0 16px}
#schoolPortalDashboard .sp-statistics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin:18px 0}
#schoolPortalDashboard .sp-statistics article,#schoolPortalDashboard .sp-columns>section,#schoolPortalDashboard .sp-columns>aside{background:#fff;border:1px solid #e1e2ef;border-radius:16px;padding:22px}
#schoolPortalDashboard .sp-statistics span{font-size:14px;color:#565e74;display:block}#schoolPortalDashboard .sp-statistics strong{font-size:30px;display:block;margin-top:12px;color:#6050d8}
#schoolPortalDashboard .sp-statistics small{display:block;color:#687084;margin-top:6px;line-height:1.4}
#schoolPortalDashboard .sp-columns{display:grid;grid-template-columns:minmax(0,2fr) minmax(240px,1fr);gap:20px}
#schoolPortalDashboard .sp-filters{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}
#schoolPortalDashboard .sp-title-row{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.sp-legend{display:flex;align-items:center;gap:6px;flex-wrap:wrap;color:#687084;font-size:12px}.sp-legend i{width:8px;height:8px;border-radius:50%}.sp-legend .urgent{background:#d54a62}.sp-legend .attention{background:#e79635}.sp-legend .info{background:#5d7cdc}
#schoolPortalDashboard .sp-filters button{padding:10px 14px;background:white;border:1px solid #d9dbe9;border-radius:9px;font:inherit;color:inherit;cursor:pointer}
#schoolPortalDashboard .sp-filters [aria-pressed=true]{color:#5541c9;background:#f0edff;border-color:#b9acf8}
#schoolPortalDashboard .sp-search{display:grid;gap:8px;font-size:14px}#schoolPortalDashboard input{font:inherit;padding:12px;border:1px solid #d9dbe9;border-radius:9px;width:100%;box-sizing:border-box}
#schoolPortalDashboard .sp-notifications{max-height:520px;overflow:auto;margin-top:12px}
#schoolPortalDashboard .sp-notification{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;width:100%;background:#fff;border:0;border-left:4px solid #5d7cdc;border-bottom:1px solid #e6e8f0;padding:14px 8px;font:inherit;color:inherit;overflow-wrap:anywhere}#schoolPortalDashboard .sp-notification.urgent{border-left-color:#d54a62}#schoolPortalDashboard .sp-notification.attention{border-left-color:#e79635}
#schoolPortalDashboard .sp-open{display:flex;flex-direction:column;gap:7px;text-align:left;background:transparent;border:0;font:inherit;color:inherit;cursor:pointer}.sp-open:hover strong{color:#5945c9}#schoolPortalDashboard .sp-notification strong{font-size:16px}#schoolPortalDashboard .sp-type{font-size:13px;color:#606779}#schoolPortalDashboard .sp-type i{display:inline-block;width:8px;height:8px;background:#5d7cdc;border-radius:50%;margin-right:7px}.sp-notification.urgent .sp-type i{background:#d54a62}.sp-notification.attention .sp-type i{background:#e79635}
#schoolPortalDashboard .sp-quick-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}#schoolPortalDashboard .sp-quick-actions button{border:1px solid #d9dbe9;background:#fff;color:#5541c9;border-radius:8px;padding:8px 10px;cursor:pointer;white-space:nowrap}#schoolPortalDashboard .sp-quick-actions button:hover{background:#f0edff}
#schoolPortalDashboard button:focus-visible,#schoolPortalDashboard input:focus-visible{outline:3px solid #8c79ef;outline-offset:2px}
#schoolPortalDashboard .sp-events article{display:grid;gap:8px;border-bottom:1px solid #e6e8f0;padding:16px 0;font-size:15px}#schoolPortalDashboard .sp-events span{font-size:14px;color:#606779}#schoolPortalDashboard aside>button{margin-top:20px}
@media(max-width:1250px){#schoolPortalDashboard .sp-statistics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1000px){#schoolPortalDashboard .sp-columns{grid-template-columns:1fr}#schoolPortalDashboard .sp-statistics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:550px){#schoolPortalDashboard header,#schoolPortalDashboard .sp-title-row{align-items:flex-start;flex-direction:column}#schoolPortalDashboard .sp-header-actions{width:100%;align-items:stretch;flex-direction:column}#schoolPortalDashboard .sp-statistics{gap:10px;grid-template-columns:1fr 1fr}#schoolPortalDashboard .sp-statistics article{padding:15px}#schoolPortalDashboard .sp-statistics strong{font-size:24px!important}#schoolPortalDashboard .sp-columns>section,#schoolPortalDashboard .sp-columns>aside{padding:16px}#schoolPortalDashboard .sp-notification{grid-template-columns:1fr}#schoolPortalDashboard .sp-quick-actions{justify-content:flex-start}.sp-legend{font-size:11px}}

/* Portal da escola — composição visual inspirada na identidade MuniEdu. */
#portal-escola.portal-school-impact{background:linear-gradient(145deg,#f9faff 0%,#f5f3ff 48%,#f8fbff 100%);padding-top:0!important}
.portal-school-impact .school-portal-heading{position:relative;isolation:isolate;display:flex;align-items:center;min-height:164px;margin:0 -20px 14px;padding:24px 38px;overflow:hidden;border:1px solid #ebe8fb;border-radius:0 0 24px 24px;background-image:linear-gradient(90deg,#f9f8ff 0%,#f6f5ff 34%,rgba(246,245,255,.86) 44%,rgba(246,245,255,.12) 72%),url('assets/portal-escola-hero.png');background-size:cover;background-position:center 53%;box-shadow:0 16px 36px rgba(48,38,112,.09)}
.portal-school-impact .school-portal-heading>div:first-child{position:relative;z-index:2;max-width:560px}.portal-school-impact .school-portal-heading .eyebrow{color:#57559a!important;font-size:12px!important;letter-spacing:.16em}.portal-school-impact .school-portal-heading h1{color:#17135b;font-size:42px!important;line-height:1.03;margin:7px 0}.portal-school-impact .school-portal-heading h1::after{content:'';display:inline-block;width:70px;height:5px;margin-left:12px;border-radius:9px;background:linear-gradient(90deg,#563be8,#8e6cff);vertical-align:middle}.portal-school-impact .school-portal-heading h1+p{max-width:500px;color:#454b76!important;font-size:16px!important}
.portal-school-impact .sp-hero-message{position:absolute;z-index:2;left:45%;top:36px;display:grid;color:#4431be;transform:rotate(-3deg)}.portal-school-impact .sp-hero-message strong{font-size:17px}.portal-school-impact .sp-hero-message span{font-size:15px}.portal-school-impact .sp-hero-message::after{content:'';width:54px;height:3px;margin:9px auto 0;border-radius:9px;background:#7a5af2;transform:rotate(-7deg)}
.portal-school-impact .publisher-context{display:grid;grid-template-columns:minmax(270px,1fr) auto auto minmax(520px,auto);align-items:center;gap:12px;margin:0 0 18px;padding:12px 14px;border:1px solid #e4e2f3;border-radius:16px;background:rgba(255,255,255,.94);box-shadow:0 9px 24px rgba(48,38,112,.07)}
.portal-school-impact .publisher-school{min-width:0}.portal-school-impact .publisher-school>i{width:48px;height:48px;border-radius:13px;background:linear-gradient(145deg,#e5deff,#f3f0ff);color:#624de4}.portal-school-impact .publisher-school>div strong{font-size:15px!important;color:#181945}.portal-school-impact .publisher-school>div small{color:#6a60c6}.portal-school-impact .publisher-school>select{max-width:185px;border:0;background:#f4f1ff;font-weight:700;color:#4c3ac1}.portal-school-impact .publisher-context>label{padding:0 14px;border-left:1px solid #eceaf5;color:#777d96}.portal-school-impact .publisher-context>label select{border:0;background:transparent;color:#22254e;font-weight:700;min-width:132px}.portal-school-impact .publisher-context .heading-actions{display:flex;justify-content:flex-end;gap:7px;flex-wrap:nowrap}.portal-school-impact .publisher-context .heading-actions .button{min-height:40px;white-space:nowrap;border-radius:9px!important}.portal-school-impact .publisher-context .heading-actions .primary{box-shadow:0 8px 18px rgba(88,63,220,.24)}
#schoolPortalDashboard{margin:0;color:#1d2048}#schoolPortalDashboard>header{padding:3px 2px 0}#schoolPortalDashboard .sp-section-kicker{color:#6450df;font-size:11px;font-weight:800;letter-spacing:.13em}#schoolPortalDashboard>header h2{font-size:22px;margin:4px 0 0}#schoolPortalDashboard>header p{margin:3px 0 0!important}#schoolPortalDashboard>[data-status]{margin:6px 2px 10px!important;color:#8a8fa6!important;font-size:12px!important}
#schoolPortalDashboard .sp-statistics{gap:10px;margin:10px 0 14px}#schoolPortalDashboard .sp-statistics article{display:grid;grid-template-columns:48px 1fr;grid-template-rows:auto auto;align-items:center;gap:0 11px;min-height:104px;padding:14px!important;border-color:#e5e4f0;border-radius:14px;box-shadow:0 8px 20px rgba(58,52,101,.05)}#schoolPortalDashboard .sp-statistics article>i{grid-row:1;width:46px;height:46px;border-radius:13px;display:grid;place-items:center;font-style:normal;font-size:20px;background:#eeeaff;color:#644ee4}#schoolPortalDashboard .sp-statistics article.blue>i{background:#e8f1ff;color:#3477df}#schoolPortalDashboard .sp-statistics article.green>i{background:#e2f7eb;color:#249768}#schoolPortalDashboard .sp-statistics article.cyan>i{background:#e2f4ff;color:#238bcf}#schoolPortalDashboard .sp-statistics article.rose>i{background:#ffe9ed;color:#d84863}#schoolPortalDashboard .sp-statistics article.orange>i{background:#fff0e2;color:#dd7420}#schoolPortalDashboard .sp-statistics article>div{grid-column:2;grid-row:1}#schoolPortalDashboard .sp-statistics article strong{font-size:25px!important;line-height:1;margin:0;color:#17194a}#schoolPortalDashboard .sp-statistics article span{font-size:13px!important;margin-top:4px;color:#474d73}#schoolPortalDashboard .sp-statistics article small{grid-column:1/-1;grid-row:2;margin-top:10px;padding-top:8px;border-top:1px solid #f0eff7;color:#7a8097;font-size:11px!important}
#schoolPortalDashboard .sp-columns{grid-template-columns:minmax(0,2.25fr) minmax(290px,.78fr);gap:12px}#schoolPortalDashboard .sp-columns>section,#schoolPortalDashboard .sp-columns>aside{padding:16px;border-color:#e4e3ef;border-radius:15px;box-shadow:0 10px 25px rgba(55,48,102,.055)}#schoolPortalDashboard .sp-title-row{align-items:center}#schoolPortalDashboard .sp-title-row>div:nth-child(2){flex:1}#schoolPortalDashboard .sp-title-row h3,#schoolPortalDashboard .sp-aside-title h3{margin:0;font-size:17px}#schoolPortalDashboard .sp-title-row p,#schoolPortalDashboard .sp-aside-title p{margin:2px 0!important;font-size:12px!important}.sp-title-icon{width:38px;height:38px;flex:0 0 38px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#654ae8,#876bf7);color:white;box-shadow:0 7px 15px rgba(93,70,219,.24)}.sp-title-icon.calendar{border-radius:10px}.sp-aside-title{display:flex;align-items:center;gap:10px}
#schoolPortalDashboard .sp-legend{font-size:11px}#schoolPortalDashboard .sp-filters{justify-content:flex-end;margin:-42px 0 18px;gap:3px;padding-right:0}#schoolPortalDashboard .sp-filters button{padding:8px 11px;border-color:#eeedf5;font-size:11px!important}#schoolPortalDashboard .sp-filters [aria-pressed=true]{color:white;background:linear-gradient(90deg,#6044e1,#775bee);border-color:#6044e1;box-shadow:0 4px 11px rgba(91,66,213,.21)}#schoolPortalDashboard .sp-search{font-size:0!important;margin-bottom:9px}#schoolPortalDashboard .sp-search input{height:36px;padding:8px 12px;background:#fafaff;border-color:#ecebf4;font-size:12px!important}
#schoolPortalDashboard .sp-notifications{max-height:400px;margin:0;padding-right:4px}#schoolPortalDashboard .sp-notification{grid-template-columns:42px minmax(190px,1.7fr) minmax(120px,.7fr) 88px auto;align-items:center;gap:10px;margin:6px 0;padding:9px 10px;border:0;border-radius:11px;background:linear-gradient(90deg,#f2f7ff,#fbfcff)}#schoolPortalDashboard .sp-notification.urgent{background:linear-gradient(90deg,#fff0f2,#fffafa)}#schoolPortalDashboard .sp-notification.attention{background:linear-gradient(90deg,#fff6e9,#fffdfa)}#schoolPortalDashboard .sp-row-icon{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;background:#dfeeff;color:#2d79d7;font-style:normal;font-size:17px}#schoolPortalDashboard .sp-notification.urgent .sp-row-icon{background:#ffdce2;color:#d93652}#schoolPortalDashboard .sp-notification.attention .sp-row-icon{background:#ffead0;color:#cf7318}#schoolPortalDashboard .sp-open{gap:3px;padding:0}#schoolPortalDashboard .sp-open strong{font-size:13px!important;color:#1b1e49}#schoolPortalDashboard .sp-open span{font-size:11px!important;color:#69708c}#schoolPortalDashboard .sp-type{justify-self:start;padding:5px 8px;border-radius:30px;background:#e6efff;color:#3474ca;font-size:10px!important;text-align:center}#schoolPortalDashboard .sp-notification.urgent .sp-type{background:#ffe0e5;color:#c8314d}#schoolPortalDashboard .sp-notification.attention .sp-type{background:#ffebcb;color:#b96719}#schoolPortalDashboard .sp-type i{display:none}#schoolPortalDashboard .sp-notification>time{font-size:10px;color:#8a8fa5;text-align:center}#schoolPortalDashboard .sp-quick-actions{flex-wrap:nowrap}#schoolPortalDashboard .sp-quick-actions button{padding:7px 10px;font-size:11px!important;color:#292a58}#schoolPortalDashboard .sp-quick-actions .sp-more{width:29px;padding:7px 0;color:#2d9369}
#schoolPortalDashboard .sp-events{margin-top:10px}#schoolPortalDashboard .sp-events article{display:grid;grid-template-columns:48px 1fr;align-items:center;gap:10px;padding:10px 0}#schoolPortalDashboard .sp-events article>time{width:42px;padding:5px 2px;border-radius:9px;background:#f1efff;text-align:center;color:#5e4bce}#schoolPortalDashboard .sp-events article>time strong,#schoolPortalDashboard .sp-events article>time span{display:block}#schoolPortalDashboard .sp-events article>time strong{font-size:15px!important}#schoolPortalDashboard .sp-events article>time span{font-size:9px!important;color:#6c60b8}#schoolPortalDashboard .sp-events article>div{display:grid;gap:4px}#schoolPortalDashboard .sp-events article>div strong{font-size:12px!important}#schoolPortalDashboard .sp-events article>div span{font-size:10px!important}.event-dot{display:inline-block;width:7px;height:7px;margin-right:6px;border-radius:50%;background:#7255e7}.event-dot.tone-1{background:#2bb875}.event-dot.tone-2{background:#358de3}.event-dot.tone-3{background:#e47a1c}#schoolPortalDashboard aside>button{width:100%;margin-top:10px;color:#5942ce}
.portal-school-impact .publisher-metrics[hidden]{display:none!important}.portal-school-impact .publisher-layout{grid-template-columns:minmax(0,1.7fr) minmax(320px,.8fr);gap:12px;margin-top:14px}.portal-school-impact .publisher-layout>.panel{border:1px solid #e4e3ef;border-radius:15px;box-shadow:0 10px 25px rgba(55,48,102,.055)}.portal-school-impact .publisher-panel-heading{padding-bottom:12px;border-bottom:1px solid #efedf7}.portal-school-impact .publisher-panel-heading h2{font-size:18px!important;color:#1b1d4a}.portal-school-impact .publication-types{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:12px 0}.portal-school-impact .publication-types label span{min-height:39px;border-radius:8px}.portal-school-impact .publication-form-grid textarea{min-height:82px}.portal-school-impact .publication-feed #publicationFeed article{padding:11px 0}.portal-school-impact .publication-feed #publicationFeed article h3{font-size:13px!important}.portal-school-impact .publication-feed #publicationFeed article p,.portal-school-impact .publication-feed #publicationFeed article small{font-size:10px!important}
@media(max-width:1450px){.portal-school-impact .publisher-context{grid-template-columns:minmax(260px,1fr) auto auto}.portal-school-impact .publisher-context .heading-actions{grid-column:1/-1;justify-content:flex-start;border-top:1px solid #efedf7;padding-top:10px}#schoolPortalDashboard .sp-notification{grid-template-columns:42px minmax(190px,1fr) 110px auto}#schoolPortalDashboard .sp-notification>time{display:none}}
@media(max-width:1050px){.portal-school-impact .school-portal-heading{background-position:60% center}.portal-school-impact .sp-hero-message{display:none}.portal-school-impact .publisher-context{grid-template-columns:1fr 1fr}.portal-school-impact .publisher-school{grid-column:1/-1}.portal-school-impact .publisher-context .heading-actions{overflow-x:auto;justify-content:flex-start}.portal-school-impact .publisher-layout{grid-template-columns:1fr}#schoolPortalDashboard .sp-filters{justify-content:flex-start;margin:10px 0}.sp-legend{display:none!important}#schoolPortalDashboard .sp-notification{grid-template-columns:42px minmax(180px,1fr) auto}#schoolPortalDashboard .sp-type{display:none}}
@media(max-width:650px){.portal-school-impact .school-portal-heading{min-height:150px;margin:0 -12px 12px;padding:22px;background-position:67% center}.portal-school-impact .school-portal-heading::after{content:'';position:absolute;inset:0;background:rgba(248,247,255,.38);z-index:0}.portal-school-impact .school-portal-heading h1{font-size:32px!important}.portal-school-impact .school-portal-heading h1::after{display:none}.portal-school-impact .publisher-context{grid-template-columns:1fr;padding:12px}.portal-school-impact .publisher-context>label{border-left:0;border-top:1px solid #efedf7;padding:9px 0}.portal-school-impact .publisher-context .heading-actions{grid-column:auto;display:grid;grid-template-columns:1fr 1fr;overflow:visible}.portal-school-impact .publisher-context .heading-actions .button{white-space:normal}.portal-school-impact .publisher-context .heading-actions .primary{grid-column:1/-1}#schoolPortalDashboard .sp-statistics{grid-template-columns:1fr 1fr}#schoolPortalDashboard .sp-statistics article{grid-template-columns:38px 1fr;min-height:96px}#schoolPortalDashboard .sp-statistics article>i{width:36px;height:36px}#schoolPortalDashboard .sp-notification{grid-template-columns:38px 1fr;padding:10px}#schoolPortalDashboard .sp-row-icon{width:34px;height:34px}#schoolPortalDashboard .sp-quick-actions{grid-column:2;justify-content:flex-start}#schoolPortalDashboard .sp-notification>time,#schoolPortalDashboard .sp-type{display:none}.portal-school-impact .publication-types{grid-template-columns:1fr 1fr}}

/* Faixa permanente para que a prévia da família nunca pareça uma troca de perfil sem retorno. */
.school-family-preview-toolbar{display:none;position:fixed;z-index:120;top:10px;left:18px;right:18px;min-height:58px;box-sizing:border-box;align-items:center;justify-content:space-between;gap:18px;padding:9px 11px 9px 16px;border:1px solid rgba(105,79,226,.28);border-radius:15px;background:rgba(255,255,255,.97);box-shadow:0 14px 38px rgba(36,27,99,.2);backdrop-filter:blur(12px);color:#22234b}
body.school-family-preview .school-family-preview-toolbar{display:flex}
.school-family-preview-toolbar>div{display:flex;align-items:center;gap:11px;min-width:0}.school-family-preview-toolbar i{width:38px;height:38px;flex:0 0 38px;display:grid;place-items:center;border-radius:11px;background:linear-gradient(145deg,#6044df,#8468f2);color:#fff;font-style:normal;font-size:17px}.school-family-preview-toolbar span{display:grid;gap:2px}.school-family-preview-toolbar strong{font-size:14px}.school-family-preview-toolbar small{font-size:12px;color:#686e86;line-height:1.35}.school-family-preview-toolbar button{min-height:39px;padding:0 15px;border:0;border-radius:10px;background:linear-gradient(135deg,#5b40da,#7359ea);box-shadow:0 7px 16px rgba(86,61,209,.24);color:#fff;font:700 13px inherit;white-space:nowrap;cursor:pointer}.school-family-preview-toolbar button:focus-visible{outline:3px solid #a99af4;outline-offset:2px}
body.school-family-preview .family-view.active-view{padding-top:82px!important}
body.school-family-preview #closeFamilyApp{display:none!important}
@media(max-width:650px){.school-family-preview-toolbar{top:6px;left:6px;right:6px;align-items:flex-start;padding:9px;border-radius:12px}.school-family-preview-toolbar i{display:none}.school-family-preview-toolbar small{font-size:11px}.school-family-preview-toolbar button{min-height:42px;padding:0 10px;font-size:12px}body.school-family-preview .family-view.active-view{padding-top:78px!important}}
