/* Cabeçalho principal compartilhado — padrão visual do sistema. */
body.mobile-system-ready main.content .page-head.page-head:has(h1){position:relative;isolation:isolate;display:flex;align-items:center;justify-content:space-between;gap:24px;width:100%;margin:0 0 18px;padding:24px 26px 22px;overflow:hidden;border:1px solid #e5dfe9;border-radius:20px;background:#fff;color:#2f2733;box-shadow:0 14px 38px rgba(46,31,55,.075)}
body.mobile-system-ready main.content .page-head.page-head:has(h1):before{position:absolute;z-index:-1;top:0;right:0;left:0;width:auto;height:4px;border:0;border-radius:0;background:linear-gradient(90deg,#682196 0%,var(--mm-primary,#8706f7) 58%,#b46ce1 100%);content:""}
body.mobile-system-ready main.content .page-head.page-head:has(h1):after{position:absolute;z-index:-1;top:-105px;right:-85px;display:block;width:245px;height:245px;border:1px solid rgba(117,50,153,.07);border-radius:50%;background:radial-gradient(circle,rgba(141,53,196,.055),transparent 69%);content:"";pointer-events:none}
body.mobile-system-ready main.content .page-head.page-head:has(h1)>:first-child{position:relative;z-index:1;display:grid;min-width:0;gap:0}
body.mobile-system-ready main.content .page-head.page-head:has(h1) :is(.eyebrow,.dashboard-eyebrow){color:#7c469b;font-size:10px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
body.mobile-system-ready main.content .page-head.page-head:has(h1) h1{margin:4px 0 0;color:#2f2634;font-size:clamp(25px,2.45vw,34px);font-weight:820;line-height:1.1;letter-spacing:-.035em;overflow-wrap:anywhere}
body.mobile-system-ready main.content .page-head.page-head:has(h1) p{max-width:720px;margin:7px 0 0;color:#7d7282;font-size:12px;line-height:1.45}
body.mobile-system-ready main.content .page-head.page-head:has(h1)>:last-child:not(:first-child){position:relative;z-index:1;flex:0 0 auto}
body.mobile-system-ready main.content .page-head.page-head:has(h1) :is(.actions,.form-actions){display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
body.mobile-system-ready main.content .page-head.page-head:has(h1) :is(.actions,.form-actions) form{display:flex;align-items:center;gap:8px;margin:0;flex-wrap:wrap}
body.mobile-system-ready main.content .page-head.page-head:has(h1) .btn{min-height:36px;padding:8px 12px;border-radius:10px;font-size:13px;line-height:1.2;white-space:nowrap;box-shadow:none}
body.mobile-system-ready main.content .page-head.page-head:has(h1) .btn.primary{border-color:var(--mm-primary,#8706f7);background:var(--mm-primary,#8706f7);color:var(--mm-on-primary,#fff);box-shadow:0 7px 16px rgba(103,38,139,.14)}
body.mobile-system-ready main.content .page-head.page-head:has(h1) .btn:not(.primary):not(.danger){border-color:#dcd3e1;background:#fff;color:#603879}
body.mobile-system-ready main.content .page-head.page-head:has(h1) .btn:not(.primary):not(.danger):hover{border-color:#c9b7d4;background:#faf7fc;color:#4f2866}
body.mobile-system-ready main.content .page-head.page-head:has(h1) :is(.students-page-head-actions,.birthdays-page-head-summary,.enrollment-page-head-actions,.promotion-page-head-actions,.payment-rules-head-actions,.responsibles-page-head-actions,.users-head-actions)>span{display:grid;min-width:108px;min-height:36px;padding:6px 10px;align-content:center;border:1px solid #e3d9e8;border-radius:10px;background:#faf7fc;color:#7b6e80;font-size:9px;line-height:1.2;text-align:right}
body.mobile-system-ready main.content .page-head.page-head:has(h1) :is(.students-page-head-actions,.birthdays-page-head-summary,.enrollment-page-head-actions,.promotion-page-head-actions,.payment-rules-head-actions,.responsibles-page-head-actions,.users-head-actions)>span strong{color:#6d318f;font-size:16px}
body.mobile-system-ready main.content .page-head.page-head.experimental-hero:has(h1) .experimental-hero-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
body.mobile-system-ready main.content .page-head.page-head.experimental-hero:has(h1) :is(.experimental-today-chip,.experimental-followup-count){display:grid;min-width:122px;min-height:48px;padding:7px 11px;align-content:center;border:1px solid #e3d9e8;border-radius:11px;background:#faf7fc;color:#746879;font-size:10px;line-height:1.2;text-align:center;text-decoration:none;box-shadow:none;backdrop-filter:none}
body.mobile-system-ready main.content .page-head.page-head.experimental-hero:has(h1) :is(.experimental-today-chip,.experimental-followup-count) b{color:#6d318f;font-size:17px;font-weight:850;line-height:1.05}
body.mobile-system-ready main.content .page-head.page-head.experimental-hero:has(h1) .experimental-followup-count small{color:#746879;font-size:9px;font-weight:800;letter-spacing:.02em;text-transform:uppercase}
body.mobile-system-ready main.content .page-head.page-head.experimental-hero:has(h1) .experimental-followup-count.has-overdue{border-color:#ead29d;background:#fff8e8;color:#815a0a}
body.mobile-system-ready main.content .page-head.page-head.experimental-hero:has(h1) .experimental-followup-count.has-overdue :is(b,small){color:#815a0a}
body.mobile-system-ready main.content .page-head.page-head:has(h1) :is(.experimental-form-hero-actions,.experimental-detail-hero-actions,.payable-hero-actions,.responsible-cpf-hero-actions,.ticket-events-hero-actions){display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
body.mobile-system-ready main.content .page-head.page-head:has(h1) :is(.dashboard-date,.commercial-report-period,.makeup-hero-note,.experimental-form-hero-actions>span,.responsible-cpf-hero-actions>span,.class-form-required,.professional-form-required){display:grid;min-width:122px;min-height:48px;padding:7px 11px;align-content:center;border:1px solid #e3d9e8;border-radius:11px;background:#faf7fc;color:#746879;text-align:left;box-shadow:none;backdrop-filter:none}
body.mobile-system-ready main.content .page-head.page-head:has(h1) :is(.dashboard-date,.commercial-report-period,.makeup-hero-note,.experimental-form-hero-actions>span,.responsible-cpf-hero-actions>span,.class-form-required,.professional-form-required) :is(strong,b){color:#6d318f;font-size:16px;line-height:1.15}
body.mobile-system-ready main.content .page-head.page-head:has(h1) :is(.dashboard-date,.commercial-report-period,.makeup-hero-note,.experimental-form-hero-actions>span,.responsible-cpf-hero-actions>span,.class-form-required,.professional-form-required) :is(span,small){color:#7c7081}
body.mobile-system-ready main.content .page-head.page-head.experimental-detail-hero:has(h1)>.experimental-detail-identity{display:flex;align-items:center;gap:12px}
body.mobile-system-ready main.content .page-head.page-head.experimental-detail-hero:has(h1)>.experimental-detail-identity>div{display:grid;min-width:0}
body.mobile-system-ready main.content .page-head.page-head:has(h1) .schedule-quick-links{display:flex;gap:7px;margin-top:10px;flex-wrap:wrap}
body.mobile-system-ready main.content .page-head.page-head:has(h1) .schedule-quick-links a{display:inline-flex;align-items:center;min-height:32px;padding:6px 10px;border:1px solid #dfd4e4!important;border-radius:9px;background:#faf7fc!important;color:#603879!important;font-size:11px;font-weight:800;box-shadow:none!important}
body.mobile-system-ready main.content .page-head.page-head:has(h1) .modality-new-button{border-color:var(--mm-primary,#8706f7)!important;background:var(--mm-primary,#8706f7)!important;color:var(--mm-on-primary,#fff)!important}
body.mobile-system-ready main.content .page-head.page-head:has(h1) :is(.monthly-edit-back,.pix-detail-back){color:#6d318f}
body.mobile-system-ready main.content .page-head.page-head:has(h1) .makeup-hero-note{grid-template-columns:auto minmax(0,1fr);align-items:center}
body.mobile-system-ready main.content .page-head.page-head:has(h1) .production-order-location span{color:#7c7081}

@media(max-width:800px){
body.mobile-system-ready main.content .page-head.page-head:has(h1){align-items:flex-start;flex-direction:column;gap:15px;padding:22px 20px 19px}
body.mobile-system-ready main.content .page-head.page-head:has(h1)>:last-child:not(:first-child){width:100%}
body.mobile-system-ready main.content .page-head.page-head:has(h1) :is(.actions,.form-actions){justify-content:flex-start;width:100%}
body.mobile-system-ready main.content .page-head.page-head.experimental-hero:has(h1) .experimental-hero-actions{justify-content:flex-start;width:100%}
body.mobile-system-ready main.content .page-head.page-head:has(h1) :is(.experimental-form-hero-actions,.experimental-detail-hero-actions,.payable-hero-actions,.responsible-cpf-hero-actions,.ticket-events-hero-actions){justify-content:flex-start;width:100%}
}

@media(max-width:620px){
body.mobile-system-ready main.content .page-head.page-head:has(h1){display:block;margin:0 0 12px;padding:4px 12px 10px;overflow:visible;border:0;border-radius:0;background:transparent;color:#302d3b;box-shadow:none}
body.mobile-system-ready main.content .page-head.page-head:has(h1):before{display:none}
body.mobile-system-ready main.content .page-head.page-head:has(h1):after{display:none}
body.mobile-system-ready main.content .page-head.page-head:has(h1) :is(.eyebrow,.dashboard-eyebrow){display:none}
body.mobile-system-ready main.content .page-head.page-head:has(h1) h1{position:relative;margin:0;padding-bottom:10px;color:var(--mm-primary,#8706f7);font-size:20px;font-weight:700;line-height:1.3;letter-spacing:0;text-decoration:none}
body.mobile-system-ready main.content .page-head.page-head:has(h1) h1:after{position:absolute;bottom:2px;left:0;width:38px;height:2px;border-radius:999px;background:var(--mm-primary,#8706f7);content:""}
body.mobile-system-ready main.content .page-head.page-head:has(h1) p{display:none}
body.mobile-system-ready main.content .page-head.page-head:has(h1)>:last-child:not(:first-child){margin-top:10px}
body.mobile-system-ready main.content .page-head.page-head:has(h1) :is(.actions,.form-actions){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
body.mobile-system-ready main.content .page-head.page-head:has(h1) :is(.students-page-head-actions,.birthdays-page-head-summary,.enrollment-page-head-actions,.promotion-page-head-actions,.payment-rules-head-actions,.responsibles-page-head-actions,.users-head-actions)>span{display:none}
body.mobile-system-ready main.content .page-head.page-head:has(h1) :is(.students-page-head-actions,.enrollment-page-head-actions,.promotion-page-head-actions,.payment-rules-head-actions,.responsibles-page-head-actions,.users-head-actions){grid-template-columns:1fr;width:100%}
body.mobile-system-ready main.content .page-head.page-head:has(h1) :is(.actions,.form-actions)>*{min-width:0}
body.mobile-system-ready main.content .page-head.page-head:has(h1) :is(.actions,.form-actions) form{display:grid}
body.mobile-system-ready main.content .page-head.page-head:has(h1) .btn{width:100%;min-height:44px;padding:9px 12px;white-space:normal}
body.mobile-system-ready main.content .page-head.page-head:has(h1) :is(.actions,.form-actions)>.btn:only-child{grid-column:1/-1}
body.mobile-system-ready main.content .page-head.page-head.experimental-hero:has(h1) .experimental-hero-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
body.mobile-system-ready main.content .page-head.page-head.experimental-hero:has(h1) :is(.experimental-today-chip,.experimental-followup-count){width:100%;min-width:0;min-height:44px}
body.mobile-system-ready main.content .page-head.page-head.experimental-hero:has(h1) .experimental-hero-actions>.btn{grid-column:1/-1}
body.mobile-system-ready main.content .page-head.page-head:has(h1) :is(.experimental-form-hero-actions,.experimental-detail-hero-actions,.payable-hero-actions,.responsible-cpf-hero-actions,.ticket-events-hero-actions){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
body.mobile-system-ready main.content .page-head.page-head:has(h1) :is(.experimental-form-hero-actions,.responsible-cpf-hero-actions)>span{width:100%;min-width:0;min-height:44px}
body.mobile-system-ready main.content .page-head.page-head:has(h1) .schedule-quick-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
body.mobile-system-ready main.content .page-head.page-head:has(h1) .schedule-quick-links a{justify-content:center;min-height:44px;padding:8px}
}

@media(max-width:390px){
body.mobile-system-ready main.content .page-head.page-head:has(h1) :is(.actions,.form-actions){grid-template-columns:1fr}
body.mobile-system-ready main.content .page-head.page-head:has(h1) :is(.actions,.form-actions)>.btn:only-child{grid-column:auto}
body.mobile-system-ready main.content .page-head.page-head.experimental-hero:has(h1) .experimental-hero-actions{grid-template-columns:1fr}
body.mobile-system-ready main.content .page-head.page-head.experimental-hero:has(h1) .experimental-hero-actions>.btn{grid-column:auto}
body.mobile-system-ready main.content .page-head.page-head:has(h1) :is(.experimental-form-hero-actions,.experimental-detail-hero-actions,.payable-hero-actions,.responsible-cpf-hero-actions,.ticket-events-hero-actions){grid-template-columns:1fr}
body.mobile-system-ready main.content .page-head.page-head:has(h1) .schedule-quick-links{grid-template-columns:1fr}
}

/* Início: saudação compacta e próxima ao primeiro bloco. */
body.mobile-system-ready main.content .dashboard-page{gap:8px}
body.mobile-system-ready main.content .dashboard-page>.page-head.page-head.dashboard-hero:has(h1){min-height:0;margin:0;padding:10px 12px 4px;gap:0}
body.mobile-system-ready main.content .dashboard-page>.dashboard-content-grid{margin-top:0}
body.mobile-system-ready main.content .dashboard-page .dashboard-student-search{margin-top:0}