:root{font-family:Tahoma,'Segoe UI',sans-serif;font-size:12px;color:#18314c;background:#eee;--list-font:Tahoma;--list-size:12px;--extra-height:5px}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer;padding:5px 10px;border:1px solid #acb4be;border-radius:2px;background:linear-gradient(#fff,#e7e9ec)}button:hover{border-color:#5896ca;background:#ddecfa}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible{outline:2px solid #0073c6;outline-offset:2px}input,select,textarea{width:100%;border:1px solid #aab3bf;border-radius:1px;padding:5px 6px;background:white}input:focus,select:focus,textarea:focus{outline:1px solid #007ac5}textarea{min-height:70px;resize:vertical}label{display:block;font-size:12px}label>input,label>select,label>textarea{margin-top:4px}input[type=checkbox],input[type=radio]{width:14px;height:14px;margin:0 6px 0 0;vertical-align:middle}.primary{color:white;border-color:#076eb0;background:#0874bd}.primary:hover{background:#0567a8;color:white}.danger{color:#a32121}.hint{font-size:11px;color:#667789;line-height:1.6}.auth{min-height:100vh;display:grid;place-items:center;background:linear-gradient(145deg,#e8edef,#f6f8fa)}.login-card{width:min(420px,92vw);padding:30px;background:white;border:1px solid #ced8df;box-shadow:0 14px 70px #234b6215}.brandmark{font-size:42px;font-weight:900;color:#168d2b;letter-spacing:-4px}.eyebrow{font-size:10px;letter-spacing:2px;color:#6b7b85}.login-card h1{font-size:25px;margin:23px 0 8px}.login-card label{margin:16px 0}.login-card .primary{width:100%;padding:10px}.login-card p{line-height:1.6}#fileHelp{padding:14px;background:#fff7df;border:1px solid #e2d4a6}#authError,#formError{color:#ab2424;white-space:pre-line}.titlebar{height:30px;background:#fafafa;display:flex;align-items:center;gap:12px;padding:2px 8px;border-bottom:1px solid #ccc}.titlebar>strong{position:absolute;left:50%;transform:translateX(-50%);font-weight:400}.brandbutton{border:0;background:none;padding:0}.brandbutton .brand-image{width:32px;height:24px;object-fit:contain}.brand-fallback{color:#188c2a;font-weight:900}.session-name{margin-left:auto;color:#667684}.menubar{display:flex;background:#0874bd;min-height:27px;overflow:auto}.menubar button{border:0;background:none;color:white;border-radius:0;padding:6px 19px;white-space:nowrap}.menubar button.selected{background:#eee;color:#1e334b}.ribbon{height:100px;display:flex;border-bottom:1px solid #b6b6b6;background:#efefef;overflow:auto}.ribbon-actions{padding:7px 10px 20px;border-right:1px solid #d0d0d0;min-width:300px;position:relative;flex-shrink:0}.ribbon-actions>div{display:flex;gap:4px}.ribbon-actions button{font-size:11px;padding:4px 6px}.search-label{display:flex;align-items:center;gap:7px;margin-top:8px;color:#657990}.search-label input{height:24px;width:230px;margin:0}.ribbon-actions>span{position:absolute;bottom:4px;left:0;right:0;text-align:center;font-size:11px}.ribbon-items{display:flex;gap:2px;padding:5px 8px;align-items:flex-start;flex-shrink:0}.ribbon-items button{border:1px solid transparent;background:none;width:90px;height:83px;padding:3px;line-height:15px}.ribbon-items button:hover,.ribbon-items button.selected{background:#dae8f6;border-color:#9ab9d4}.ribbon-items .icon{display:block;font-size:26px;line-height:34px}.ribbon-logo{margin-left:auto;display:flex;align-items:center;padding:0 18px;font-size:29px;font-style:italic}.ribbon-logo img{width:110px;height:85px;object-fit:contain}.workspace-tabs{height:28px;display:flex;align-items:end;gap:2px;padding:3px 2px 0;border-bottom:1px solid #aaa;overflow:auto}.workspace-tabs>div{display:flex;flex-shrink:0;border:1px solid #b5bbc4;border-bottom:0}.workspace-tabs button{border:0;border-radius:0;background:#e8e8e8;padding:4px 9px}.workspace-tabs .selected button{background:#fff}.workspace-tabs .close-tab{font-size:13px;color:#697985;padding:2px 6px}#workspace{height:calc(100vh - 211px);min-height:330px;display:flex;flex-direction:column;padding:0 3px}#notice{background:#fff8df;border-bottom:1px solid #dacba3;padding:8px 12px;line-height:1.4;flex-shrink:0}#notice.error{background:#ffe9e5;color:#a32a20}#view{flex:1;min-height:0;display:flex;flex-direction:column;overflow:auto;border:1px solid #c1c3c6}.statusbar{height:26px;position:fixed;bottom:0;width:100%;display:flex;align-items:center;border-top:1px solid #bbb;background:#eee;font-size:11px}.statusbar span{padding:0 10px;border-right:1px solid #ccc}.status-right{margin-left:auto}.view-tools{display:flex;gap:7px;padding:7px;align-items:center;flex-wrap:wrap;border-bottom:1px solid #c7cbd0;background:#f4f4f4;flex-shrink:0}.view-tools select,.view-tools input{width:auto;max-width:240px;padding:4px}.view-tools .grow{flex:1}.grid-wrap{flex:1;overflow:auto;min-height:100px}table.data{border-collapse:collapse;text-align:left;font-family:var(--list-font),sans-serif;font-size:var(--list-size);min-width:100%;white-space:nowrap}table.data th{font-weight:400;font-size:inherit;background:linear-gradient(#fafafa,#e4e6e8);border:1px solid #b2b7be;padding:4px 6px;position:sticky;top:0;z-index:1}table.data td{padding:calc(3px + var(--extra-height)/2) 6px;border-bottom:1px solid #e4e5e6;max-width:330px;text-overflow:ellipsis;overflow:hidden}table.data tr:nth-child(even){background:white}table.data tr:hover{background:#e2f0fb}table.data tr.group-row{background:#e4e7ea;font-weight:600}table.data button{font-size:11px;padding:2px 7px;margin-right:3px}table.data td.note-cell{color:#0874bd;white-space:normal;font-size:11px}.table-foot{display:flex;gap:22px;padding:7px;border-top:1px solid #aaa;font-size:11px;background:#eee;flex-wrap:wrap}.badge{border:1px solid #d2dce4;background:#edf2f7;padding:2px 6px;font-size:11px;display:inline-block}.badge.good{color:#1d6c35;background:#e7f4ea;border-color:#b9ddc4}.badge.bad{color:#a92626;background:#fde9e6;border-color:#e4b8b4}.capacity-full{background:#ff3838!important;color:white}.progress{width:105px;height:18px;position:relative;background:white;border:1px solid #aaa;text-align:center;font-size:10px;line-height:16px}.progress i{position:absolute;inset:0 auto 0 0;background:#0780c4}.progress span{position:relative;color:#163751}.empty{padding:65px 20px;color:#8893a2;line-height:1.6}.empty strong{display:block;color:#5a7083;font-weight:400}.welcome{display:flex;align-items:center;flex-direction:column;padding:28px;overflow:auto;gap:20px}.welcome-logo{width:min(75vw,850px);height:210px;object-fit:contain}.welcome .brandmark{font-size:90px}.welcome h1{font-size:27px;margin:0}.dashboard{display:grid;grid-template-columns:repeat(4,minmax(170px,1fr));gap:12px;width:100%;max-width:1150px}.metric{background:white;border:1px solid #cbd3db;padding:18px}.metric strong{display:block;font-size:25px;margin:8px 0}.metric span{color:#6b7e90}.dashboard-notes{width:100%;max-width:1150px;background:#f9fafb;border:1px solid #d2d8df;padding:16px;line-height:1.7}.dashboard-notes h3{font-size:13px;margin:0 0 8px}.kanban{display:flex;gap:10px;padding:12px;overflow:auto;flex:1}.kanban-column{min-width:230px;flex:1;background:#e6e9ed;border:1px solid #c4cbd4;padding:8px}.kanban-column h3{font-size:12px;margin:4px 0 12px}.lead-card{background:#fff;border:1px solid #c9d3df;margin-bottom:8px;padding:12px;line-height:1.7}.lead-card button{margin-top:6px;font-size:11px}.lead-card small{display:block;color:#758293}dialog{border:1px solid #9da9b8;background:#efefef;border-radius:0;width:min(760px,96vw);padding:0;box-shadow:4px 10px 30px #0003;color:#18314c;max-height:94vh}dialog::backdrop{background:#11283f66}dialog form{display:flex;flex-direction:column;max-height:94vh}dialog header{background:linear-gradient(white,#e0e4e8);padding:8px 12px;border-bottom:1px solid #aaa;display:flex;justify-content:space-between;align-items:center}dialog h2{margin:0;font-size:13px}dialog header button{border:0;background:transparent;font-size:18px;padding:0 6px}.dialog-tabs{display:flex;gap:2px;border-bottom:1px solid #aaa;padding:5px 9px 0;flex-wrap:wrap}.dialog-tabs button{border-bottom:0;background:#e5e7ea;padding:5px 12px}.dialog-tabs button.selected{background:#fafafa}.form-fields{padding:14px;overflow:auto;min-height:140px;display:grid;grid-template-columns:1fr 1fr;gap:13px;align-items:start}.form-fields .wide{grid-column:1/-1}.form-fields .check{display:flex;align-items:center;gap:5px;padding:8px 0}.form-fields .check input{margin:0}.multicheck{padding:8px;border:1px solid #c5cbd3;display:flex;gap:10px;flex-wrap:wrap;margin-top:4px}.multicheck label{font-size:11px;display:flex;align-items:center}.form-fields .section-title{grid-column:1/-1;color:#0874bd;border-bottom:1px solid #cad3dd;padding-bottom:6px;font-size:12px;margin:3px 0}.form-fields select[multiple]{height:100px}.form-fields .helpbox{grid-column:1/-1;padding:10px;background:#fff9e5;border:1px solid #e5d6ad;line-height:1.6;font-size:11px}dialog footer{display:flex;gap:5px;justify-content:flex-end;border-top:1px solid #b9c3cd;padding:9px 12px}#formError{padding:0 14px;margin:0 0 9px;line-height:1.5}.settings-page{padding:15px;max-width:900px}.settings-page fieldset{border:1px solid #b9c3cf;padding:16px;margin:0 0 14px}.settings-page legend{color:#0874bd}.settings-page label{margin-bottom:12px}.settings-page input,.settings-page select{max-width:350px;display:block}.settings-page .two-cols{display:grid;grid-template-columns:1fr 1fr;gap:20px}.receipt{padding:35px;max-width:850px;background:white;color:#222;margin:20px auto;border:1px solid #ddd;line-height:1.8}.receipt h1{font-size:24px}.receipt .receipt-total{font-size:25px;border-top:1px solid #bbb;padding-top:16px}.receipt dl{display:grid;grid-template-columns:180px 1fr}.receipt dt{color:#666}.receipt dd{margin:0}.permission-grid{display:grid;grid-template-columns:1fr 140px;gap:5px;align-items:center;grid-column:1/-1}.permission-grid select{padding:3px}.links-list{padding:12px;line-height:1.8}.links-list a{color:#0874bd}@media(max-width:850px){.titlebar>strong{display:none}.ribbon-logo{display:none}.ribbon-actions{min-width:270px}.ribbon-actions button{font-size:10px}.menubar button{padding:6px 10px}.dashboard{grid-template-columns:1fr 1fr}.form-fields{grid-template-columns:1fr}.settings-page .two-cols{grid-template-columns:1fr}.statusbar #statusDate{display:none}}@media print{body{background:white;color:black}#auth,.titlebar,.menubar,.ribbon,.workspace-tabs,.statusbar,.view-tools,#notice,dialog{display:none!important}#workspace{height:auto;padding:0}#view{border:0;overflow:visible}.grid-wrap{overflow:visible}table.data th{position:static}table.data td{max-width:none;white-space:normal}button{display:none!important}body.printing #app{display:none!important}body.printing #printArea{display:block!important}.receipt{border:0;margin:0;padding:15px}}

.workspace-tabs{overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;height:32px}.workspace-tabs>div{height:25px;align-self:flex-start}#workspace{height:calc(100vh - 215px)}

.school-selector{display:flex;align-items:center;gap:5px;min-width:180px}.school-selector select{min-width:135px;max-width:230px;padding:3px}.school-selector #unitLabel{font-size:11px}

.executive-panel{max-width:1400px;margin:auto;padding:24px;color:#19342a}.executive-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}.executive-heading h1{font-size:28px;margin:8px 0}.executive-heading p{color:#596b64}.executive-eyebrow{font-size:11px;font-weight:bold;letter-spacing:1px;color:#397451}.executive-heading select{padding:9px;border:1px solid #bdcec3;border-radius:5px;background:white}.executive-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.executive-card,.executive-block{background:white;border:1px solid #d6e1db;border-radius:9px;padding:20px;box-shadow:0 3px 10px #183d2610}.executive-card{display:flex;flex-direction:column;gap:12px}.executive-card>span{font-size:13px;color:#53655b}.executive-card strong{font-size:25px;letter-spacing:-.6px}.executive-card small,.executive-block small{color:#66766d;line-height:1.5}.executive-card.income strong{color:#16734b}.executive-card.expense strong{color:#a23a30}.executive-note{color:#66766d;font-size:12px;line-height:1.6;margin:14px 0 24px}.executive-lower{display:grid;grid-template-columns:1fr 2fr;gap:14px;margin-bottom:14px}.executive-block h2{font-size:16px;margin:0 0 14px}.executive-number{font-size:36px}.aging{border-top:3px solid #d5a055;margin-bottom:24px}.executive-trend{display:grid;grid-template-columns:70px 1fr 170px 1fr 160px;gap:12px;align-items:center;margin:15px 0;font-size:12px}.executive-track{height:12px;background:#edf2ef;border-radius:3px;overflow:hidden}.executive-bar{height:100%}.executive-bar.income{background:#258659}.executive-bar.expense{background:#c17c62}@media(max-width:1000px){.executive-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.executive-trend{grid-template-columns:55px 1fr 140px}.executive-lower{grid-template-columns:1fr 1fr}}@media(max-width:550px){.executive-panel{padding:12px}.executive-heading{align-items:flex-start;flex-direction:column}.executive-cards,.executive-lower{grid-template-columns:1fr}}

/* Tela de acesso */
.auth{padding:28px 16px;background:linear-gradient(145deg,#edf3ef,#f5f8fb);font-family:'Segoe UI',Tahoma,sans-serif}.login-card{width:100%;max-width:440px;padding:30px 36px 26px;border:1px solid #dce5df;border-radius:14px;box-shadow:0 16px 48px #173c2612}.login-logo{display:block;width:240px;max-width:100%;height:112px;object-fit:contain;margin:0 auto 10px}.login-card h1{font-size:26px;line-height:1.25;letter-spacing:-.6px;margin:0 0 10px;text-align:center;color:#18314c}.login-card #authText{text-align:center;font-size:14px;color:#607080;margin:0 0 26px}.login-card label{font-size:13px;font-weight:600;margin:0 0 18px}.login-card input{height:44px;padding:10px 12px;margin-top:7px;border:1px solid #bcc8d1;border-radius:6px;font-size:15px;font-weight:400}.login-card input:focus{outline:2px solid #0874bd;outline-offset:1px}.login-card .primary{height:46px;border-radius:6px;font-size:14px;font-weight:600;margin-top:2px}.login-card #authError:empty{display:none}.login-card #authError{font-size:13px;margin:0 0 16px}.login-card .login-footer{text-align:center;margin:20px 0 0;padding-top:16px;border-top:1px solid #e8ecef;color:#78858e;font-size:12px}@media(max-width:480px){.auth{padding:20px 14px}.login-card{padding:24px}.login-card h1{font-size:24px}.login-logo{height:100px}}

.contract-editor{max-width:1100px;margin:auto;padding:24px}.editor-heading h1{margin:0 0 10px;font-size:24px}.editor-heading p{color:#607080;line-height:1.6}.contract-editor>label{font-weight:600;margin:18px 0;font-size:13px}.contract-editor input{padding:10px}.contract-editor textarea{min-height:420px;padding:18px;font:15px/1.7 Georgia,serif;resize:vertical;border:1px solid #bcc8d1;border-radius:5px}.editor-actions{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.editor-actions button{padding:9px 14px}.editor-tags{background:#f6f8fa;border:1px solid #d4dde4;border-radius:6px;padding:12px}.editor-tags p{margin:0 0 10px;color:#607080}.editor-tags button{margin:3px}.editor-preview{margin-top:24px;background:white;border:1px solid #ccc;padding:35px}.contract-text{white-space:pre-wrap;overflow-wrap:anywhere;font:14px/1.7 Georgia,serif}.contract-document h1{text-align:center;font-size:21px}.contract-document{max-width:800px}@media(max-width:600px){.contract-editor{padding:14px}.contract-editor textarea{min-height:340px}}

.contract-sheet+.contract-sheet{border-top:2px dashed #aab6c0;margin-top:35px;padding-top:35px}.editor-actions select{max-width:360px;padding:8px}@media print{.contract-sheet+.contract-sheet{break-before:page;page-break-before:always;border:0;margin:0;padding:0}.contract-document{max-width:none}.contract-sheet{break-inside:auto}}

.text-format-toolbar{display:flex;gap:6px;align-items:center;flex-wrap:wrap;position:sticky;top:0;background:#edf3f8;padding:10px;border:1px solid #b6c4d1;z-index:2}.rich-contract-edit,.rich-contract-page{font:10pt/1.15 Arial,sans-serif;color:#000;overflow-wrap:break-word}.rich-contract-edit{background:white;border:1px solid #bbc7d1;padding:35px 65px;min-height:600px;outline:none;font-weight:normal}.rich-contract-edit:focus{border-color:#0874bd}.rich-contract-edit p,.rich-contract-page p{white-space:pre-wrap;min-height:1em}.rich-contract-header{text-align:center;background:white;padding:10px}.rich-contract-header img,.rich-contract-page img{max-width:100%}.rich-contract-edit hr[data-pagebreak]{border:0;border-top:2px dashed #9aaaba;margin:30px 0}.rich-contract-page{padding:35px 65px;background:white;box-sizing:border-box;max-width:794px;margin:auto}.contract-document:has(.rich-contract-page){padding:0;max-width:none}.contract-document:has(.rich-contract-page)>h1{display:none}.editor-preview:has(.rich-contract-page)>h2{font-size:14px}.editor-preview:has(.rich-contract-page){padding:12px;background:#e7eaed}.contract-editor>label:has(.rich-contract-edit){font-weight:normal}@media print{@page{size:A4;margin:10mm}.rich-contract-page{max-width:none;padding:0 15mm}.rich-contract-page+.rich-contract-page{padding:0 15mm}.rich-contract-page p{orphans:2;widows:2}.rich-contract-page img{print-color-adjust:exact}}

.text-format-toolbar select{width:85px}.rich-contract-edit,.rich-contract-page{font-size:12pt}.rich-contract-page{position:relative;padding:70.85pt 85.05pt}.rich-page-logo{position:absolute;top:20pt;left:0;right:0;text-align:center;pointer-events:none}.rich-contract-page+.rich-contract-page{padding:70.85pt 85.05pt}@media print{@page{size:A4;margin:0}.rich-contract-page,.rich-contract-page+.rich-contract-page{padding:70.85pt 85.05pt;width:210mm;min-height:297mm}.rich-contract-page{break-after:page}.rich-contract-page:last-child{break-after:auto}}

.text-format-toolbar label{display:flex;flex-direction:column;gap:4px;font-size:11px;margin:3px!important}.text-format-toolbar input[type=number]{width:90px;padding:5px}.text-format-toolbar .format-help{flex-basis:100%;margin:5px 0;color:#52687c}.rich-contract-edit{box-sizing:border-box;max-width:794px;margin:auto;width:100%}

.contract-print-logo{display:none}@media print{@page mc-contract{size:A4;margin:35mm 0 10mm}.contract-document:has(.rich-contract-page){page:mc-contract}.contract-print-logo{display:block;position:fixed;top:-33mm;left:0;right:0;text-align:center;height:32mm}.contract-print-logo img{max-height:32mm;object-fit:contain}.rich-contract-page .rich-page-logo{display:none}.rich-contract-page,.rich-contract-page+.rich-contract-page{padding-top:max(0mm,calc(var(--contract-top,25mm) - 35mm))!important;padding-bottom:max(0mm,calc(var(--contract-bottom,25mm) - 10mm))!important;min-height:0}}

.commercial-policy{max-width:1100px;margin:auto;padding:24px}.commercial-policy>p{line-height:1.6}.commercial-policy fieldset{padding:18px;margin:18px 0;border:1px solid #bdcbd5;background:white}.commercial-policy legend{font-size:16px;font-weight:600;color:#0874bd}.policy-fields{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.policy-fields label:last-child{grid-column:1/-1}.policy-fields input,.policy-fields textarea{padding:9px;width:100%;margin-top:6px}.policy-fields textarea{min-height:65px}.policy-total{font-weight:600;color:#276645}@media(max-width:700px){.policy-fields{grid-template-columns:1fr}.commercial-policy{padding:14px}}

.source-metric{display:grid;grid-template-columns:minmax(130px,1fr) 2fr minmax(130px,1fr);gap:14px;align-items:center;margin:16px 0}.source-metric .executive-track{width:100%}@media(max-width:650px){.source-metric{grid-template-columns:1fr;gap:5px}}

.visit-enrollment-name{cursor:context-menu}.visit-enrollment-name:focus{outline:2px solid #0874bd;outline-offset:-2px}.visit-context-menu{position:fixed;z-index:10000;background:white;border:1px solid #aebcc9;box-shadow:0 5px 20px #0003;padding:5px;min-width:180px}.visit-context-menu button{width:100%;border:0;background:white;text-align:left;padding:11px}.visit-context-menu button:hover,.visit-context-menu button:focus{background:#e3f1fc}@media print{.visit-context-menu{display:none}}

.source-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:20px 0}.source-summary>div{padding:16px 20px;background:#f2f7fb;border:1px solid #dce5ee;border-radius:8px;display:flex;flex-direction:column;gap:8px}.source-summary strong{font:700 30px Arial;color:#123952}.source-summary span{font-size:13px;color:#476478}.source-charts{display:grid;grid-template-columns:290px minmax(0,1fr);gap:30px;padding:12px 0 24px}.source-charts h3{font-size:14px;margin:0 0 20px}.source-distribution{text-align:center}.source-donut{height:210px;width:210px;border-radius:50%;display:grid;place-items:center;margin:0 auto 14px}.source-donut>div{width:146px;height:146px;border-radius:50%;background:white;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}.source-donut strong{font:700 34px Arial;color:#123952}.source-donut span{font-size:12px;color:#607383}.source-chart-row{margin-bottom:16px}.source-chart-label{display:flex;gap:8px;align-items:center;margin-bottom:6px}.source-chart-label i{width:10px;height:10px;border-radius:3px;flex-shrink:0}.source-chart-label strong{flex:1;font-size:13px}.source-chart-label span{font-size:13px;font-weight:bold}.source-chart-row .executive-track{height:12px}.source-chart-row small{display:block;margin-top:4px;color:#7b5261}@media(max-width:800px){.source-charts{grid-template-columns:1fr}.source-summary{gap:6px}.source-summary>div{padding:12px 8px}.source-summary strong{font-size:25px}}

/* Cada telefone inicia uma linha, seguido pelo respectivo responsável. */
#formFields > [data-key="student_phone"],#formFields > [data-key="student_mobile"],#formFields > [data-key="student_commercial"]{grid-column:1}

.cep-search{margin-top:6px}.cep-status{display:block;margin-top:5px;color:#476478;line-height:1.4}

#formFields > [data-key="guardian_phone"],#formFields > [data-key="guardian_mobile"],#formFields > [data-key="guardian_commercial"]{grid-column:1}

.mc-about{max-width:920px;margin:35px auto;padding:35px 40px;background:#fff;border:1px solid #d5dfe7;border-top:4px solid #168d2b;border-radius:5px;line-height:1.8}.mc-about h1{font-size:30px;margin:0;color:#18314c}.mc-about h2{font-size:19px;margin:0 0 25px;color:#276445}.mc-about p{font-size:14px;margin:18px 0}.mc-about .mc-about-motto{font-weight:bold;color:#176633;border-top:1px solid #dce5dc;padding-top:20px;margin-top:25px}@media(max-width:650px){.mc-about{margin:15px;padding:22px}}

.overdue-search{display:flex;align-items:flex-end;gap:6px;flex-wrap:wrap}.overdue-search label{min-width:290px}.overdue-search input{display:block;width:100%}@media(max-width:650px){.overdue-search label{min-width:0;width:100%}}

.collection-filters{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:12px;width:100%;padding:14px;background:#f6f8fa;border:1px solid #cbd5de}.collection-filters label>input,.collection-filters label>select{display:block}.collection-filters .check{display:flex;align-items:center;gap:5px}.collection-filters .check input{display:inline-block;width:14px;flex-shrink:0}.collection-filters button{align-self:end}@media(max-width:850px){.collection-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}

.rich-editor-sheet{display:flex;flex-direction:column;background:white;border:1px solid #bbc7d1;max-width:794px;margin:auto}.rich-editor-sheet>.rich-contract-header{order:0;position:relative;top:auto;bottom:auto;flex:none;padding:12px 25px 0;text-align:center}.rich-editor-sheet>.rich-contract-edit{order:1;border:0;width:100%;padding-top:10mm!important}.rich-contract-header>div,.rich-page-logo>div{margin-top:0!important;margin-bottom:0!important}.rich-contract-header img{display:block;margin:0 auto;max-height:28mm;object-fit:contain}@media print{.contract-print-logo{top:-30mm!important;bottom:auto!important;height:27mm!important;overflow:hidden}.contract-print-logo>div{margin:0!important;padding:0!important}.contract-print-logo img{display:block;margin:0 auto!important;max-height:27mm!important;height:27mm!important;object-fit:contain}}

/* O cabeçalho faz parte da tabela impressa, sem posicionamento fixo no rodapé. */
.contract-print-table{width:100%;border:0;border-collapse:collapse;table-layout:fixed}.contract-print-table>thead>tr>td,.contract-print-table>tbody>tr>td{border:0;padding:0;background:white;vertical-align:top}.contract-table-logo{position:static;display:block;text-align:center;padding:0 0 5mm}.contract-table-logo>div{margin:0!important;padding:0!important}.contract-table-logo img{display:block;margin:0 auto!important;width:auto!important;height:27mm!important;max-width:100%;object-fit:contain}
@media print{@page mc-contract{size:A4;margin:10mm 0}.contract-print-logo{display:none!important}.contract-print-table>thead{display:table-header-group!important;break-inside:avoid;break-after:avoid}.contract-print-table>tbody{display:table-row-group}.contract-print-table>tbody>tr,.contract-print-table>tbody>tr>td{break-inside:auto!important}.contract-print-table .contract-table-logo{position:static!important;top:auto!important;bottom:auto!important;display:block!important}.rich-contract-page,.rich-contract-page+.rich-contract-page{padding-top:0!important;padding-bottom:max(0mm,calc(var(--contract-bottom,25mm) - 10mm))!important}.contract-print-table>thead>tr>td{height:32mm}}

.employee-permissions{grid-column:1/-1}.permission-check-table{width:100%;border-collapse:collapse;background:white}.permission-check-table th,.permission-check-table td{border:1px solid #d6dfe7;padding:9px;text-align:left}.permission-check-table th:not(:first-child),.permission-check-table td:not(:first-child){text-align:center;width:130px}.permission-check-table input[type=checkbox]{width:17px;height:17px;margin:0;cursor:pointer}.permission-check-table .permission-unavailable{color:#909aa3;background:#f3f4f5}.permission-check-table .permission-special td:first-child{font-weight:bold;border-left:3px solid #e8a02b}.employee-permissions h3{margin-top:0}

.class-students-dialog{width:min(820px,95vw);padding:0;border:1px solid #aab7c3}.class-students-body{padding:16px;max-height:65vh;overflow:auto}.class-students-dialog header,.class-students-dialog footer{padding:12px;display:flex;justify-content:space-between;align-items:center;gap:10px;background:#edf2f6}.class-students-dialog h2{font-size:16px;margin:0}.class-students-dialog footer{justify-content:flex-end}

.class-students-expanded{padding:10px 14px;background:#f5f8fb;border-left:3px solid #0874bd;max-height:420px;overflow:auto}.class-students-expanded>strong{display:block;margin-bottom:8px}.class-enrolled-table{width:100%}.class-enrolled-table th{position:sticky;top:0;z-index:1}.class-enrolled-table td{font-size:12px}

.class-code-cell{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}.class-students-toggle{width:21px;height:21px;min-width:21px;padding:0;line-height:17px;text-align:center;font-size:15px;font-weight:bold}

.roster-period-dialog{width:min(440px,94vw);padding:0;border:1px solid #aab7c3}.roster-period-dialog header{padding:14px;background:#edf2f6}.roster-period-dialog h2{margin:0;font-size:16px}.roster-period-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:18px}.roster-period-dialog footer{display:flex;justify-content:flex-end;gap:8px;padding:12px;background:#edf2f6}.roster-period-error{color:#a32121;padding:0 18px;margin:0 0 12px}.roster-period-error:empty{display:none}

.roster-print-document{font:9pt Arial,sans-serif;color:#000;background:#fff}.roster-sheet{position:relative;min-height:184mm;padding-bottom:12mm;break-after:page}.roster-sheet:last-child{break-after:auto}.roster-brand{display:flex;align-items:flex-start;gap:5mm;min-height:27mm;margin-bottom:5mm}.roster-brand img{width:31mm;height:22mm;object-fit:contain}.roster-brand h1{font-size:13pt;margin:0 0 3mm}.roster-brand>div>div{font-size:8pt}.roster-details{display:grid;grid-template-columns:1.15fr 1.2fr 1fr;gap:3mm 8mm;margin-bottom:3mm}.roster-signature-table{width:100%;border-collapse:collapse;table-layout:fixed}.roster-signature-table th,.roster-signature-table td{border:1px solid #000;padding:1.2mm;overflow-wrap:anywhere}.roster-signature-table th{background:#ccc!important;font-weight:bold;font-size:8pt;text-align:center}.roster-signature-table thead tr:first-child th{height:10mm;text-align:left}.roster-signature-table thead tr:nth-child(2) th:first-child{text-align:left}.roster-signature-table tbody td{height:6mm;font-size:8pt}.roster-sheet-footer{position:absolute;bottom:0;left:0;right:0;display:flex;justify-content:space-between;gap:5mm;border-top:1px solid #000;padding-top:2mm;font-size:8pt}@media print{@page mc-roster{size:A4 landscape;margin:10mm}.roster-print-document{page:mc-roster;width:277mm}.roster-signature-table thead{display:table-header-group}.roster-signature-table tr{break-inside:avoid}.roster-signature-table th{print-color-adjust:exact;-webkit-print-color-adjust:exact}}

.payment-notice{margin-top:5px;padding:6px 8px;background:#fff4ce;border-left:3px solid #d39116;color:#714700;white-space:pre-wrap;font-weight:600;line-height:1.4}

.visit-form-dialog{width:min(620px,95vw);padding:0;border:1px solid #aab3bf}.visit-form-dialog header,.visit-form-dialog footer{padding:14px;background:#edf0f3}.visit-form-dialog h2{margin:0;font-size:16px}.visit-form-fields{padding:18px;display:grid;grid-template-columns:1fr 1fr;gap:14px}.visit-form-dialog footer{display:flex;justify-content:flex-end;gap:8px}.visit-scholarship-form{font:12pt Arial;color:#111;line-height:1.5;max-width:180mm;margin:auto}.visit-scholarship-form header{display:flex;align-items:center;gap:18px;border-bottom:2px solid #24952d;padding-bottom:12px}.visit-scholarship-form header img{width:35mm;height:23mm;object-fit:contain}.visit-scholarship-form h1{font-size:23pt}.visit-scholarship-form h2{font-size:14pt}.visit-form-identification{border:1px solid #999;padding:8px 16px}.visit-form-identification p{margin:6px 0}.visit-scholarship-form p{white-space:pre-line}@media print{@page mc-visit{size:A4 portrait;margin:15mm}.visit-scholarship-form{page:mc-visit;font-size:11pt;line-height:1.35}.visit-scholarship-form header,.visit-form-identification{break-inside:avoid}.visit-form-dialog{display:none!important}}

.visit-form-dialog{width:min(900px,95vw);max-height:92vh;overflow:auto}.visit-form-fields>.wide{grid-column:1/-1}.visit-form-dialog footer{position:sticky;bottom:0}

.visit-format-toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:6px;padding:8px;background:#edf1f5;border:1px solid #adb8c2}.visit-format-toolbar label{width:140px}.visit-format-toolbar button{height:30px}.visit-rich-editor{min-height:300px;max-height:450px;overflow:auto;padding:14px;border:1px solid #adb8c2;background:white;font:12pt Arial;line-height:1.4;outline-color:#0874bd}.visit-rich-editor p{margin:0 0 12px}.visit-formatted-body{font:12pt Arial;line-height:1.4;overflow-wrap:anywhere}.visit-formatted-body p{margin:0 0 12px}

.visit-scholarship-form header{display:block;border:0;padding-bottom:0}.visit-scholarship-form header img{display:block;width:100%;height:auto;object-fit:contain}.visit-scholarship-form header h1{font-size:18pt;margin:10px 0}

.lead-import-dialog{width:min(1000px,95vw);max-height:92vh;padding:0;border:1px solid #aab3bf}.lead-import-dialog header,.lead-import-dialog footer{padding:14px;background:#edf1f5}.lead-import-dialog h2{margin:0}.lead-import-body{padding:18px;display:grid;gap:12px;max-height:72vh;overflow:auto}.lead-import-body textarea{min-height:130px}.lead-import-dialog footer{display:flex;justify-content:flex-end;gap:8px}

/* CRM: ambiente simples para atendimento e distribuição. */
.crm-shell{padding:24px;max-width:1600px;margin:auto;font-family:Arial,sans-serif}.crm-header{display:flex;justify-content:space-between;gap:20px}.crm-header h1{margin:0;color:#17583d;font-size:26px}.crm-header p{color:#68766e}.crm-actions,.crm-filters{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0}.crm-actions button,.crm-primary{padding:11px 16px;background:#16864f;border:1px solid #147b48;color:white;border-radius:5px;text-decoration:none;font-weight:bold}.crm-filters input,.crm-filters select{width:180px;padding:10px}.crm-filters input[type=search]{width:280px}.crm-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;margin:18px 0}.crm-metrics button{padding:18px;background:#fff;text-align:left;border:1px solid #d5e0d9;border-radius:8px}.crm-metrics strong{display:block;font-size:28px;color:#16864f;margin-top:10px}.crm-grid{width:100%;background:white}.crm-grid td{padding:12px 8px;white-space:normal}.crm-pending{background:#fff3de!important}.crm-error{color:#a42020}.crm-distribution{display:grid;grid-template-columns:minmax(0,3fr) minmax(220px,1fr);gap:24px}.crm-distribution label{padding:10px;background:white;margin:8px 0}.crm-distribution>div{overflow:auto}.crm-dialog{width:min(960px,96vw);max-height:94vh;padding:0;border:1px solid #b2c6b9;border-radius:8px}.crm-dialog>header{display:flex;justify-content:space-between;align-items:center;padding:16px;background:#f0f5f1}.crm-dialog h2{margin:0;font-size:20px}.crm-dialog-body{padding:22px;max-height:80vh;overflow:auto}.crm-dialog form{display:grid;gap:12px;background:#f7faf8;padding:16px;border-radius:6px}.crm-dialog form textarea{min-height:110px}.crm-contact-info{display:flex;flex-wrap:wrap;gap:16px;align-items:center}.crm-extra,.crm-history-item p{white-space:pre-wrap;overflow-wrap:anywhere}.crm-history-item{padding:14px;border-left:3px solid #16864f;background:#f5f8f6;margin:10px 0}.crm-result-bar{height:16px;background:#16864f;min-width:2px;margin:6px 0 18px}.crm-result-charts{max-width:650px;margin:20px 0}.crm-shell:has(.crm-grid){overflow:auto}@media(max-width:750px){.crm-shell{padding:12px}.crm-distribution{grid-template-columns:1fr}.crm-filters input,.crm-filters select,.crm-filters input[type=search]{width:100%}.crm-dialog-body{padding:12px}.crm-actions>*{flex:1;text-align:center}}

.crm-kanban{display:flex;gap:12px;overflow:auto;align-items:flex-start}.crm-kanban section{min-width:210px;padding:14px;background:#e9f1ed;border-radius:8px}.crm-kanban button{display:block;background:white;text-align:left;width:100%;padding:12px;margin:8px 0}.crm-kanban h3{font-size:14px}

.crm-slots{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0}.crm-slots strong{width:100%}.crm-slots button{padding:7px;background:#ecf7ee}

.crm-local-nav{display:flex;flex-wrap:wrap;gap:6px;padding:10px 0;border-bottom:1px solid #d5dfd8;margin-bottom:16px}.crm-local-nav button{background:#f7faf8;padding:8px 12px}

.crm-workspace{display:grid;grid-template-columns:minmax(320px,0.85fr) minmax(420px,1.4fr);gap:18px;align-items:start}.crm-contact-list{overflow:auto;background:#fff;border:1px solid #d7e2db;border-radius:8px}.crm-inline-card{background:#fff;border:1px solid #d7e2db;border-radius:8px;overflow:hidden}.crm-inline-card>h2{padding:18px;margin:0;background:#f0f6f2;color:#17583d;font-size:21px}.crm-inline-card .crm-dialog-body{max-height:none;padding:18px;overflow:visible}.crm-inline-card form{display:grid;gap:12px}.crm-inline-card small,.crm-contact-list small{display:block;color:#64766b;margin:4px 0}.crm-inline-card .crm-contact-info{display:grid;gap:8px}.crm-inline-card .crm-actions{gap:6px}.crm-inline-card .crm-actions>*{padding:10px}.crm-inline-card .crm-extra{background:#fafaf4;padding:12px}.crm-inline-card p{line-height:1.5}@media(max-width:850px){.crm-workspace{grid-template-columns:1fr}.crm-inline-card{width:100%}.crm-contact-list .crm-grid td{padding:10px 6px}}

.crm-seller-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px;margin:18px 0}.crm-seller-card,.crm-manager-summary{padding:20px;background:#fff;border:1px solid #d5e0d9;border-radius:8px}.crm-seller-card h2{color:#17583d;font-size:20px}.crm-seller-card p{margin:9px 0}.crm-manager-summary strong{display:block;font-size:28px;color:#16864f;margin-top:10px}

.crm-simple-header{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-bottom:24px}.crm-simple-header h1{margin:0;color:#17583d;font-size:26px}.crm-simple-header p{color:#62756b}.crm-simple-header input[type=search]{width:300px;padding:10px}.crm-sales-board{display:grid;grid-template-columns:repeat(5,minmax(200px,1fr));gap:12px;overflow-x:auto;padding-bottom:16px;align-items:start}.crm-sales-column{background:#e8ece9;border-radius:6px;min-height:420px;padding:8px}.crm-sales-column>header{padding:12px 6px 18px;text-align:center}.crm-sales-column h2{font-size:16px;margin:0 0 6px}.crm-sales-column>header span{font-size:12px;color:#6a766f}.crm-sales-card{background:white;border:1px solid #dae3dc;border-left:4px solid #29a35b;border-radius:4px;padding:12px;margin-bottom:10px;line-height:1.5}.crm-sales-card.overdue{border-left-color:#c74937}.crm-sales-card-name{display:block;background:none;border:0;padding:0;text-align:left;font-weight:bold;font-size:14px;width:100%;color:#183b2a}.crm-sales-card-name:hover{background:#eff7f1}.crm-sales-card small{display:block;margin:6px 0;color:#8a5a20}.crm-sales-card-actions{display:flex;gap:10px;justify-content:space-between;margin-top:10px;padding-top:8px;border-top:1px solid #edf0ee}.crm-sales-card-actions a{font-size:12px;color:#137c46;text-decoration:none}.crm-sales-card .badge{margin-top:6px}@media(max-width:750px){.crm-simple-header input[type=search]{width:100%}.crm-sales-board{grid-template-columns:repeat(5,230px)}}

.crm-manager-board{display:flex;align-items:stretch;gap:16px;overflow-x:auto;padding-bottom:16px}.crm-manager-board>.crm-seller-card{min-width:300px;max-width:350px;flex:0 0 300px}.crm-incoming-column{background:#f1f7f2;border-top:4px solid #16864f}.crm-incoming-column>.crm-sales-card{font-size:12px}.crm-manager-board .crm-actions{flex-direction:column}

.crm-incoming-column{max-height:75vh;overflow-y:auto}.crm-incoming-column>input[type=search]{margin:8px 0 12px;padding:9px}.crm-incoming-column .crm-sales-card small{white-space:normal}

.crm-visual-distribution{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:14px;background:#edf5ef;border:1px solid #cbded0;border-radius:6px;margin:16px 0}.crm-visual-distribution select{width:230px}.crm-lead-selected{background:#e7f7ec!important;border-color:#16864f!important}.crm-incoming-column .crm-sales-card>label{font-size:11px;color:#587363;margin-bottom:7px}.crm-incoming-column>select{margin:8px 0}

.crm-management-shell{max-width:none;width:100%;box-sizing:border-box;margin:0}.crm-management-shell .crm-manager-board>.crm-seller-card{max-height:72vh;overflow-y:auto;min-width:290px;flex:0 0 310px;padding:14px}.crm-manager-board .crm-seller-portfolio{margin-top:16px;border-top:1px solid #d5e0d9;padding-top:14px}.crm-manager-board .crm-sales-card>label{display:block;font-size:12px;margin-bottom:8px}.crm-management-shell .crm-header p{margin-bottom:0}

.crm-manager-board .crm-sales-card[draggable=true]{cursor:grab}.crm-manager-board .crm-sales-card[draggable=true]:active{cursor:grabbing}.crm-manager-board>.crm-drop-active{background:#e4f6e9;outline:3px dashed #16864f;outline-offset:-4px}

/* Quadro de distribuição: cabeçalhos visíveis e carteiras extensas com rolagem própria. */
.crm-management-shell .crm-manager-board{gap:8px;align-items:stretch}
.crm-management-shell .crm-manager-board>.crm-seller-card{display:flex;flex-direction:column;flex:0 0 220px;min-width:220px;max-width:220px;height:68vh;min-height:420px;max-height:none;overflow:hidden;padding:8px;box-sizing:border-box}
.crm-management-shell .crm-seller-card h2{font-size:16px;margin:3px 0 8px;overflow-wrap:anywhere}
.crm-management-shell .crm-seller-card>p{margin:4px 0;font-size:11px}
.crm-management-shell .crm-manager-board .crm-seller-portfolio{min-height:0;overflow-y:auto;overscroll-behavior:contain;flex:1;margin-top:8px;padding:8px 3px 0 0;scrollbar-gutter:stable}
.crm-management-shell .crm-manager-board .crm-actions{margin:6px 0;gap:4px;flex-direction:row}
.crm-management-shell .crm-manager-board .crm-actions button{padding:6px 8px;font-size:11px;flex:1 1 90px}
.crm-management-shell .crm-manager-board .crm-sales-card{padding:8px;margin-bottom:6px;font-size:12px;line-height:1.3}
.crm-management-shell .crm-manager-board .crm-sales-card-name{font-size:12px;line-height:1.35}
.crm-management-shell .crm-manager-board .crm-sales-card>label{margin:0 0 4px;font-size:11px}
.crm-management-shell .crm-manager-board .crm-sales-card>button:not(.crm-sales-card-name){font-size:10px;padding:4px 7px;margin-top:5px}
.crm-lead-details{margin-top:5px;font-size:11px}.crm-lead-details summary{cursor:pointer;color:#597166}.crm-compact-stats{display:flex;flex-wrap:wrap;gap:4px 9px;font-size:11px;margin:4px 0}.crm-compact-stats span:first-child{font-weight:bold;color:#17583d}
.crm-management-shell .crm-incoming-column>input[type=search]{box-sizing:border-box;width:100%;padding:6px;margin:5px 0}
.crm-management-shell{padding:14px}
.crm-management-shell .crm-filters{gap:8px;margin:10px 0}
.crm-management-shell .crm-filters label{display:flex;flex-direction:column;gap:4px;font-size:11px;min-width:0}
.crm-management-shell .crm-filters select{width:160px;max-width:100%;padding:6px;box-sizing:border-box}
.crm-management-shell .crm-filters input{width:135px;padding:6px;box-sizing:border-box}
.crm-management-shell .crm-visual-distribution{gap:6px;padding:8px;margin:10px 0;font-size:11px}
.crm-management-shell .crm-visual-distribution select{width:180px;max-width:100%}
.crm-management-shell .crm-visual-distribution button{padding:5px 8px;font-size:11px}
.crm-management-shell .crm-seller-card h2{font-size:14px}
.crm-management-shell .crm-manager-board .crm-actions button{padding:5px;font-size:10px;flex-basis:80px;min-width:0}

.crm-quick-actions{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px;padding-top:8px;border-top:1px solid #e3eae5}.crm-quick-actions button{flex:1 1 75px;padding:6px;font-size:11px;border:1px solid #b8cebe;background:#eff7f1;color:#17583d;border-radius:4px}.crm-quick-actions button:hover{background:#d9efdf}

.crm-attendance-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;border:1px solid #c7d9cc;border-radius:6px;padding:12px;background:white}.crm-attendance-options legend{font-weight:bold;color:#17583d}.crm-attendance-options label{display:flex!important;flex-direction:row!important;align-items:center;gap:8px;padding:8px;background:#f2f7f3;border-radius:4px;cursor:pointer}.crm-attendance-options input[type=checkbox]{width:18px;height:18px;flex:0 0 18px}.crm-attendance-options label:has(input:checked){background:#dbf1e2;outline:1px solid #16864f}@media(max-width:600px){.crm-attendance-options{grid-template-columns:1fr}}

.crm-receipt-totals{display:grid;grid-template-columns:repeat(4,minmax(100px,1fr));gap:10px;margin:12px 0 20px}.crm-receipt-totals>div{border:1px solid #d3e3d8;border-radius:7px;padding:13px;background:white}.crm-receipt-totals strong{display:block;font-size:24px;color:#16864f;margin-top:5px}.crm-receipt-totals span{font-size:12px;color:#52685b}.crm-receipt-groups{display:grid;gap:12px}.crm-receipt-group{border:1px solid #cbdcd0;border-radius:8px;background:white;overflow:hidden}.crm-receipt-group>summary{cursor:pointer;padding:16px;background:#f0f6f2;list-style-position:inside}.crm-receipt-group>summary>div:first-child{display:flex;justify-content:space-between;gap:12px;margin-bottom:8px;color:#17583d}.crm-receipt-counts{font-size:12px;color:#52685b;margin:8px 0}.crm-receipt-group progress{width:calc(100% - 100px);height:10px;accent-color:#16864f;margin-right:10px}.crm-receipt-lead{display:grid;grid-template-columns:minmax(150px,1.2fr) minmax(100px,.6fr) minmax(170px,1fr) auto;gap:12px;align-items:center;padding:12px 16px;border-top:1px solid #e2ebe5;font-size:12px}.crm-receipt-lead>div>*{display:block;margin:3px 0}.crm-receipt-lead>small{grid-column:1/-1;color:#92632a}.crm-receipt-lead button{padding:7px 10px;white-space:nowrap}.crm-shell:has(.crm-receipt-groups){max-width:1250px;padding:20px}.crm-shell:has(.crm-receipt-groups) .crm-simple-header{margin-bottom:12px}@media(max-width:700px){.crm-receipt-totals{grid-template-columns:repeat(2,1fr)}.crm-receipt-lead{grid-template-columns:1fr 1fr}.crm-receipt-lead>span{grid-column:1/-1}}
.crm-shell.crm-seller-dashboard{max-width:1400px;padding:22px}.crm-dashboard-header h1{color:#17583d;font-size:27px;margin:0 0 6px}.crm-dashboard-header p{color:#5c7466;margin:0 0 18px}.crm-dashboard-filters{display:flex;align-items:end;flex-wrap:wrap;gap:12px;padding:14px;border:1px solid #d3e3d8;background:#f4f8f5;border-radius:8px}.crm-dashboard-filters>label{display:flex;flex-direction:column;gap:5px;font-size:12px}.crm-dashboard-filters>label:has(input[type=checkbox]){flex-direction:row;align-items:center;align-self:center}.crm-dashboard-filters select,.crm-dashboard-filters input[type=date]{padding:8px;min-width:140px}.crm-dashboard-filters button{padding:8px 12px;background:#16864f;color:white;border:1px solid #147b48;border-radius:4px}.crm-dashboard-kpis{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:14px;margin:14px 0 24px}.crm-dashboard-kpis article{background:white;border:1px solid #d4e2d9;border-top:3px solid #16864f;border-radius:8px;padding:17px}.crm-dashboard-kpis span{color:#587363;font-size:12px}.crm-dashboard-kpis strong{display:block;color:#17583d;font-size:31px;margin-top:10px}.crm-dashboard-period{color:#587363;font-size:12px}.crm-dashboard-chart{padding:18px;background:white;border:1px solid #d4e2d9;border-radius:8px;margin:20px 0}.crm-dashboard-chart h2,.crm-seller-dashboard h2{font-size:18px;color:#17583d}.crm-dashboard-chart-row{display:grid;grid-template-columns:100px repeat(3,minmax(80px,1fr));gap:10px;align-items:center;margin:8px 0;font-size:11px}.crm-dashboard-bar{position:relative;background:#f0f4f1;min-height:25px;border-radius:3px;overflow:hidden}.crm-dashboard-bar span{position:absolute;inset:0 auto 0 0;background:#cae6d3}.crm-dashboard-bar.worked span{background:#93c7a5}.crm-dashboard-bar.scheduled span{background:#bfd6ef}.crm-dashboard-bar small{position:relative;display:block;padding:5px;color:#173b28;font-size:10px}.crm-seller-dashboard .crm-grid{border:1px solid #d4e2d9}.crm-seller-dashboard .hint{white-space:normal;line-height:1.6}@media(max-width:750px){.crm-dashboard-kpis{grid-template-columns:repeat(2,1fr)}.crm-dashboard-chart-row{grid-template-columns:75px repeat(3,minmax(55px,1fr));gap:5px}.crm-shell.crm-seller-dashboard{padding:12px}.crm-dashboard-filters label{width:100%}}
.crm-dashboard-visuals{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:18px;margin:20px 0}.crm-visual-chart{min-width:0;background:#fff;border:1px solid #d4e2d9;border-radius:10px;padding:18px;box-shadow:0 3px 12px #17583d08}.crm-visual-chart h2{margin:0 0 7px;font-size:18px}.crm-visual-chart svg{display:block;width:100%;height:auto;margin-top:14px;min-height:180px}.crm-visual-chart svg circle:hover,.crm-visual-chart svg circle:focus{r:7;outline:none;stroke:#183b2a;stroke-width:2}.crm-chart-legend{display:flex;gap:14px;flex-wrap:wrap;font-size:11px;color:#4b6656;margin:12px 0}.crm-chart-legend span{display:flex;align-items:center;gap:6px}.crm-chart-legend i{width:9px;height:9px;border-radius:50%}.crm-vendor-chart-list{max-height:400px;overflow-y:auto;padding-right:6px}.crm-vendor-chart-group{padding:12px 0;border-bottom:1px solid #e5ece8}.crm-vendor-chart-group>strong{display:block;margin-bottom:9px;font-size:12px;color:#234c35}.crm-vendor-chart-line{display:grid;grid-template-columns:72px minmax(0,1fr) 28px;gap:7px;align-items:center;margin:6px 0;font-size:10px;color:#597262}.crm-vendor-chart-track{height:11px;border-radius:6px;background:#eef3f0;overflow:hidden}.crm-vendor-chart-track>div{height:100%;border-radius:6px}.crm-vendor-chart-line b{text-align:right;font-size:12px;color:#234c35}.crm-dashboard-table-details{background:white;border:1px solid #d4e2d9;border-radius:7px;overflow:auto;margin:18px 0}.crm-dashboard-table-details>summary{cursor:pointer;padding:13px;color:#17583d;font-weight:bold}.crm-chart-empty{font-size:12px;color:#64796b;text-align:center}@media(max-width:1000px){.crm-dashboard-visuals{grid-template-columns:1fr}}
.attendance-grid-wrap{max-width:100%;max-height:72vh;overflow:auto;border:1px solid #b9c8bf;background:#fff;margin:14px 0;overscroll-behavior:contain}.attendance-matrix{border-collapse:separate;border-spacing:0;width:max-content;min-width:100%;font-family:Arial,sans-serif;font-size:12px}.attendance-matrix th,.attendance-matrix td{border-right:1px solid #d2dbd6;border-bottom:1px solid #d2dbd6;padding:6px;text-align:center;min-width:105px;box-sizing:border-box}.attendance-matrix thead th{position:sticky;top:0;z-index:3;background:#edf1ee;vertical-align:top;padding:9px 6px}.attendance-matrix thead th:first-child,.attendance-matrix tbody th{position:sticky;left:0;min-width:240px;max-width:300px;text-align:left;background:#f7f9f7;z-index:2}.attendance-matrix thead th:first-child{z-index:5;background:#e6eee8}.attendance-matrix tbody th strong{display:block;font-weight:normal;overflow-wrap:anywhere}.attendance-matrix tbody th small{display:block;color:#6c7c71;font-size:10px;margin-bottom:2px}.attendance-matrix tbody tr:hover th{background:#eaf3ed}.attendance-lesson-date{font-weight:bold;color:#174d32;margin-bottom:5px}.attendance-matrix thead th small{display:block;font-size:10px;margin:4px 0;white-space:normal;max-width:150px;overflow-wrap:anywhere}.attendance-matrix thead th button{display:block;width:100%;padding:4px;font-size:10px;margin:3px 0}.attendance-matrix td label{display:inline-flex;align-items:center;gap:4px;margin:0}.attendance-matrix input[type=checkbox]{width:17px;height:17px;accent-color:#16864f;cursor:pointer;margin:0}.attendance-matrix td select{width:38px;padding:2px;margin-left:5px;font-size:10px;background:transparent;min-width:0}.attendance-matrix .attendance-present{background:#eff8f1}.attendance-matrix .attendance-absent{background:#ffe1de;color:#a52b1f}.attendance-matrix .attendance-justified{background:#fff2cd;color:#8a5c00}.attendance-matrix .attendance-unrecorded{background:#f4f4f4;color:#7b837e}.attendance-matrix .attendance-unsaved{background:#fff1cd}.attendance-grid-legend{display:flex;gap:9px;flex-wrap:wrap;margin:10px 0}.attendance-mark{font-size:11px;padding:5px 8px;border:1px solid #d2dbd6;border-radius:4px}.attendance-mark.attendance-present{background:#eff8f1}.attendance-mark.attendance-absent{background:#ffe1de}.attendance-mark.attendance-justified{background:#fff2cd}.attendance-mark.attendance-unrecorded{background:#f4f4f4}
/* Chamada semelhante à pauta de referência: datas verticais, linhas compactas e vermelho reservado à reposição. */
.attendance-matrix th,.attendance-matrix td{min-width:74px;padding:2px 4px;font-size:11px}.attendance-matrix tbody td,.attendance-matrix tbody th{height:23px}.attendance-matrix tbody th{min-width:245px;max-width:300px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.attendance-matrix tbody th small,.attendance-matrix tbody th strong{display:inline;font-size:11px;font-weight:normal;color:#163d62;margin:0}.attendance-matrix thead th{top:29px;height:145px;vertical-align:middle;background:#efefef}.attendance-matrix thead .attendance-group-row th{top:0;height:29px;padding:7px 5px;background:#ebefec;color:#294b38;z-index:4;font-size:11px;font-weight:normal}.attendance-matrix thead .attendance-group-row th:first-child{z-index:7;position:sticky;left:0;min-width:245px}.attendance-matrix thead th.attendance-selected-student{z-index:6;font-size:17px;font-weight:bold;text-align:center;white-space:normal;color:#122d20;min-width:245px;max-width:300px;padding:12px}.attendance-lesson-date{writing-mode:vertical-rl;transform:rotate(180deg);height:107px;margin:5px auto;text-align:center;white-space:nowrap;font-size:10px;font-weight:normal;color:#193e5c}.attendance-matrix thead th.attendance-today .attendance-lesson-date{font-weight:bold}.attendance-lesson-controls{position:relative;font-size:10px}.attendance-lesson-controls>summary{cursor:pointer;list-style:none;text-align:center;font-size:16px;line-height:16px}.attendance-lesson-controls[open]{position:relative;min-width:135px;background:white;padding:5px;border:1px solid #b5c9bd}.attendance-lesson-controls[open] .attendance-lesson-date{writing-mode:horizontal-tb}.attendance-matrix input[type=checkbox]{width:13px;height:13px;accent-color:#768d7d}.attendance-matrix td select{width:23px;margin-left:3px;padding:0;font-size:9px;opacity:0;pointer-events:auto}.attendance-matrix td:hover select,.attendance-matrix td:focus-within select{opacity:1}.attendance-matrix td label{gap:2px}.attendance-matrix .attendance-present{background:#f5f6f5}.attendance-matrix .attendance-absent{background:#fff8eb;color:#8f611d}.attendance-matrix .attendance-makeup{background:#f01616;color:white}.attendance-matrix .attendance-makeup input[type=checkbox]{accent-color:#f4f4f4}.attendance-mark.attendance-makeup{background:#f01616;color:white}.attendance-mark.attendance-absent{background:#fff8eb;color:#8f611d}.attendance-matrix tbody .attendance-student-selected>th{background:#e4ece7;font-weight:bold;outline:1px dotted #366448;outline-offset:-1px}.attendance-matrix .attendance-student-notes{min-width:190px;max-width:260px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:#fafbf9}.attendance-matrix tbody th{cursor:pointer}
.attendance-matrix thead tr:not(.attendance-group-row)>th{height:195px}.attendance-matrix .attendance-module-label,.attendance-matrix .attendance-taught-label{font-size:10px;font-weight:normal;line-height:1.35;white-space:normal;overflow-wrap:anywhere;max-width:130px;margin:5px auto;text-align:center;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.attendance-matrix .attendance-module-label{color:#17583d;font-weight:bold}.attendance-matrix .attendance-taught-label{color:#415c70}.attendance-matrix .attendance-lesson-date{height:90px}
.attendance-lesson-heading{display:flex;align-items:center;justify-content:center;gap:5px;min-height:145px}.attendance-matrix .attendance-lesson-heading>.attendance-lesson-date,.attendance-matrix .attendance-lesson-heading>.attendance-module-label,.attendance-matrix .attendance-lesson-heading>.attendance-taught-label{writing-mode:vertical-rl;transform:rotate(180deg);height:140px;width:15px;max-width:15px;margin:0;display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;text-align:left;line-height:15px;font-size:10px}.attendance-matrix thead tr:not(.attendance-group-row)>th{height:180px}

.instructor-visuals{padding:12px;display:grid;gap:16px}.instructor-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.instructor-kpi,.instructor-chart{background:white;border:1px solid #d2e0da;border-radius:8px;padding:16px}.instructor-kpi strong{display:block;font-size:26px;color:#148353;margin-top:8px}.instructor-chart-row{display:grid;grid-template-columns:minmax(150px,240px) minmax(100px,1fr) 100px;gap:8px;align-items:center;margin:14px 0}.instructor-chart-row small{grid-column:2 / -1;color:#526775}.instructor-bar-track{height:20px;background:#eef2f5;border-radius:4px;overflow:hidden}.instructor-bar-fill{height:100%;border-radius:4px}.instructor-chart-row strong{text-align:right}@media(max-width:650px){.instructor-chart-row{grid-template-columns:1fr 80px}.instructor-chart-row>span{grid-column:1 / -1}.instructor-chart-row small{grid-column:1 / -1}}

.instructor-comparison-wrap{overflow-x:auto;margin:16px 0}.instructor-comparison-table{width:100%;border-collapse:collapse}.instructor-comparison-table th,.instructor-comparison-table td{padding:10px;border-bottom:1px solid #dce5e0;text-align:right;white-space:nowrap}.instructor-comparison-table th:first-child,.instructor-comparison-table td:first-child{text-align:left}.instructor-comparison-table th{background:#edf5f1}.instructor-comparison-table tbody tr:nth-child(even){background:#f7faf8}

.crm-management-shell .crm-seller-daily .crm-receipt-group{margin-bottom:10px;flex-shrink:0}.crm-management-shell .crm-seller-daily .crm-receipt-group>summary{padding:10px}.crm-management-shell .crm-seller-daily .crm-receipt-counts{line-height:1.5}.crm-management-shell .crm-seller-daily .crm-sales-card{margin:7px}.crm-shell.crm-management-shell:has(.crm-receipt-group){max-width:none}.crm-management-shell .crm-seller-daily progress{width:100%;margin:0}

button.contract-installments-button{background:#148353;color:#fff;border:1px solid #116f46}button.contract-installments-button:hover{background:#106a43}button.contract-installments-button:focus-visible{outline:2px solid #148353;outline-offset:2px}

input.contract-student-locator{background:#fff0d9;border:1px solid #e5af63;color:#59370c}input.contract-student-locator::placeholder{color:#876335;opacity:1}input.contract-student-locator:focus{background:#ffe6bf;outline:2px solid #d99439;outline-offset:1px}

#ribbonItems .icon.cancellation-icon{color:#d52323}

.cash-filter-dialog{width:min(700px,95vw);border:1px solid #bac8d1;border-radius:6px;padding:20px}.cash-filter-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.cash-filter-fields label{display:grid;gap:5px}.cash-filter-dialog footer{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.cash-filter-dialog::backdrop{background:#1236}@media(max-width:550px){.cash-filter-fields{grid-template-columns:1fr}}

.cash-filter-fields>label[data-key='start']{grid-column:1}
.mc-cancellation-dialog{width:min(1040px,96vw);max-height:94vh;padding:18px;background:#eaf1f7;border:1px solid #a4b9cd;border-radius:8px}.mc-cancellation-dialog::backdrop{background:#102e4b88}.mc-cancellation-toolbar{display:flex;gap:8px;flex-wrap:wrap;position:sticky;top:0;background:#eaf1f7;padding:8px;z-index:1}.mc-cancellation-paper{background:white;color:#173450;font:12px/1.55 Arial,sans-serif;padding:32px;max-width:850px;margin:12px auto;box-shadow:0 2px 12px #15344a22}.mc-cancellation-paper header{display:flex;align-items:center;gap:20px;border-bottom:3px solid #163c64;padding-bottom:18px}.mc-cancellation-paper header img{width:105px;height:70px;object-fit:contain}.mc-cancellation-paper h1{font-size:18px;line-height:1.35;color:#143c65}.mc-cancellation-paper h2{font-size:14px;color:#163c64;background:#eaf3fc;padding:8px;border-left:4px solid #2d79b0}.mc-cancellation-paper p{white-space:pre-line}.mc-cancellation-paper section{margin-top:22px}.mc-cancellation-paper table{width:100%;border-collapse:collapse;font-size:11px;table-layout:auto}.mc-cancellation-paper td,.mc-cancellation-paper th{border:1px solid #cfdae4;padding:7px;text-align:left;white-space:normal}.mc-cancellation-paper th{background:#eaf3fc}.mc-cancellation-note{font-size:11px;color:#536779;border-left:2px solid #b6cfe2;padding-left:10px}.mc-cancellation-status{font-weight:bold;color:#1c608d}.mc-cancellation-financial{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.mc-cancellation-signature{display:inline-block;width:48%;margin-top:38px;vertical-align:top;font-size:11px}.mc-cancellation-paper footer{font-size:10px;color:#536779;border-top:1px solid #b6cfe2;margin-top:24px;padding-top:12px}.mc-cancellation-authorization{padding:16px;font-weight:bold}.mc-cancellation-dialog form>label{margin:15px 0}.mc-cancellation-dialog form textarea{width:100%}@media(max-width:650px){.mc-cancellation-paper{padding:16px}.mc-cancellation-financial{grid-template-columns:1fr}}@media print{dialog.mc-cancellation-dialog{display:none!important}.mc-cancellation-paper{box-shadow:none;margin:0;padding:0;max-width:none;font-size:10pt}.mc-cancellation-paper h1{font-size:14pt}.mc-cancellation-paper h2{break-after:avoid}.mc-cancellation-paper tr,.mc-cancellation-paper header,.mc-cancellation-signature{break-inside:avoid}.mc-cancellation-paper thead{display:table-header-group}.mc-cancellation-paper h2,.mc-cancellation-paper th{print-color-adjust:exact;-webkit-print-color-adjust:exact}.mc-cancellation-paper{page:mc-cancellation}@page mc-cancellation{size:A4 portrait;margin:15mm}}

.settings-page.school-company-form{max-width:1050px;width:100%;padding:20px}.school-company-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.school-company-grid fieldset{border:1px solid #cbd8e2;padding:18px;background:#fff;min-width:0}.school-company-grid legend{font-weight:bold;color:#165579}.school-company-grid label{margin-bottom:12px}.school-company-grid input{min-height:34px;width:100%}@media(max-width:700px){.school-company-grid{grid-template-columns:1fr}}

.mc-cancellation-parties{display:grid;grid-template-columns:1fr 1fr;gap:16px}.mc-cancellation-party,.mc-cancellation-contract-info{border:1px solid #c8d9e8;border-radius:4px;padding:14px;min-width:0}.mc-cancellation-contract-info{margin-top:16px;background:#f5f9fd}.mc-cancellation-paper h3{font-size:12px;color:#174b76;border-bottom:1px solid #c8d9e8;margin:0 0 12px;padding-bottom:8px}.mc-cancellation-party p{overflow-wrap:anywhere}@media(max-width:650px){.mc-cancellation-parties{grid-template-columns:1fr}}@media print{.mc-cancellation-parties{grid-template-columns:1fr 1fr}.mc-cancellation-party,.mc-cancellation-contract-info{break-inside:avoid}}

.mc-cancellation-paper>header{position:relative;justify-content:center;min-height:90px;padding-left:125px;padding-right:125px}.mc-cancellation-paper>header>img{position:absolute;left:0;top:0}.mc-cancellation-paper>header>div{flex:1;text-align:center;min-width:0}.mc-cancellation-paper>header h1,.mc-cancellation-paper>header p{text-align:center}@media(max-width:650px){.mc-cancellation-paper>header{padding-left:0;padding-right:0;flex-direction:column}.mc-cancellation-paper>header>img{position:static}}@media print{.mc-cancellation-paper>header{padding-left:105px;padding-right:105px}.mc-cancellation-paper>header>img{width:90px}}

button.lead-import-green{background:#148353;border-color:#116f46;color:#fff}button.lead-import-green:hover{background:#106a43;border-color:#0b5635;color:#fff}button.lead-import-green:focus-visible{outline:2px solid #148353;outline-offset:2px}

.free-roster-preview{width:96vw;max-width:1240px;max-height:94vh;padding:0 14px 14px;border:1px solid #aab3bf;background:#60656b}.free-roster-preview::backdrop{background:#0008}.free-roster-toolbar{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:10px;padding:14px;background:#edf0f3}.free-roster-toolbar strong{margin-right:auto}.free-roster-preview>.hint{color:white}.free-roster-viewport{overflow:auto;padding:16px 0}.free-roster-viewport .roster-print-document{background:white;margin:auto;box-shadow:0 2px 8px #0008;padding:10mm;width:297mm;min-width:297mm}.free-roster-viewport .roster-sheet{background:white}@media print{dialog.free-roster-preview{display:none!important}}

.roster-brand.free-roster-brand{position:relative;justify-content:space-between}.free-roster-brand>img{flex-shrink:0}.free-roster-brand>div{margin-left:auto;max-width:32%}.free-roster-title{position:absolute;left:50%;transform:translateX(-50%);text-align:center;font:bold 18pt Arial,sans-serif;white-space:nowrap;color:#000}

.free-certificate-dialog{width:min(1240px,96vw);max-height:94vh;padding:14px;background:#e9eef3;border:1px solid #aab3bf}.free-certificate-dialog::backdrop,.free-certificate-history::backdrop{background:#102e4b88}.free-certificate-paper{page:mc-free-certificate;background:white;color:#173450;font:15pt/1.6 Arial,sans-serif;text-align:center;width:277mm;min-height:180mm;margin:auto;padding:12mm 18mm;border:3mm double #277450;box-shadow:0 2px 12px #0003}.free-certificate-paper header{display:flex;align-items:center;justify-content:center;gap:20px}.free-certificate-paper header img{width:28mm;height:18mm;object-fit:contain}.free-certificate-paper h1{font-size:34pt;letter-spacing:5px;margin:6mm 0 0}.free-certificate-paper h2{font-size:14pt;color:#278349;margin:0 0 5mm}.free-certificate-paper h3{font-size:25pt;border-bottom:1px solid #c4d5c9;margin:5mm 0}.free-certificate-paper p{margin:3mm 0}.free-certificate-project{font-size:10pt;letter-spacing:3px}.free-certificate-signatures{display:flex;justify-content:space-around;margin-top:14mm;font-size:11pt;white-space:pre-line}.free-certificate-paper footer{font-size:8pt;margin-top:7mm;overflow-wrap:anywhere}.free-certificate-history{width:min(1100px,95vw);max-height:90vh;padding:20px;border:1px solid #aab3bf}.free-certificate-history table{width:100%}@media print{@page mc-free-certificate{size:A4 landscape;margin:10mm}.free-certificate-paper{box-shadow:none;margin:0;break-after:page}.free-certificate-dialog,.free-certificate-history{display:none!important}}

.free-certificate-paper{font-size:13pt;line-height:1.3;padding:8mm 14mm;min-height:180mm}.free-certificate-paper header img{height:15mm}.free-certificate-paper h1{font-size:30pt;line-height:1.15;margin:3mm 0 0}.free-certificate-paper h2{margin:1mm 0 3mm;line-height:1.2}.free-certificate-paper h3{font-size:23pt;line-height:1.25;margin:3mm 0}.free-certificate-paper p{margin:2mm 0}.free-certificate-signatures{margin-top:10mm;line-height:1.5}.free-certificate-paper footer{margin-top:5mm;line-height:1.3}

.free-certificate-template-dialog{width:min(1250px,97vw);max-height:95vh;padding:16px;border:1px solid #aab3bf;background:#eef2f5}.free-certificate-template-dialog::backdrop{background:#102e4b88}.free-certificate-template-dialog .free-roster-toolbar{flex-wrap:wrap}.free-certificate-template-dialog .free-roster-toolbar select{width:auto}.free-certificate-template-dialog .visit-rich-editor{min-height:320px;background:white;padding:24px;border:1px solid #b7c3ce}.free-template-tags{margin:12px 0}.free-template-tags button{margin:3px}.free-certificate-custom{position:relative;text-align:initial}.free-certificate-custom-body{position:relative;z-index:1;min-height:145mm}.free-certificate-custom>footer{position:relative;z-index:1;text-align:center}.free-certificate-custom.has-background{border:0}.free-certificate-background{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;z-index:0}.free-certificate-portrait{width:190mm;min-height:277mm}.free-certificate-portrait .free-certificate-custom-body{min-height:240mm}@media print{@page mc-free-certificate-portrait{size:A4 portrait;margin:10mm}.free-certificate-portrait{page:mc-free-certificate-portrait}.free-certificate-template-dialog{display:none!important}}

.free-certificate-class-list{display:flex;flex-direction:column;gap:20px;padding:8px 12px 24px}.free-certificate-class-card{background:white;border:1px solid #c5d7cb;border-radius:5px;overflow:hidden}.free-certificate-class-card>header{display:flex;justify-content:space-between;align-items:center;gap:20px;background:#eef7f0;border-left:5px solid #218149;padding:14px 18px}.free-certificate-class-card h3{margin:0 0 6px;font-size:16px}.free-certificate-class-card header p{margin:0}.free-certificate-class-card>p{padding:12px}.free-certificate-class-scroll{overflow-x:auto}.free-certificate-class-scroll table{width:100%}.free-certificate-class-scroll td:last-child{white-space:nowrap}.free-certificate-class-scroll td button{margin:3px}

.free-certificate-class-footer{display:flex;justify-content:flex-start;padding:8px 12px;border-top:1px solid #dce5df;background:#f8fbf9}

.free-certificate-class-card>header{justify-content:flex-start;gap:10px}.free-certificate-class-card>header>strong{margin-left:auto}.free-certificate-class-toggle{flex:0 0 21px;width:21px;height:21px;padding:0;line-height:19px;text-align:center;font-size:13px}

.cash-demonstrative{padding:18px 12px;margin-top:14px;border-top:1px solid #ccd7df}.cash-demonstrative-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px;margin-top:12px}.cash-demonstrative-card{display:flex;flex-direction:column;gap:12px;background:white;border:1px solid #cbd8d1;border-radius:5px;padding:18px}.cash-demonstrative-card>strong{font-size:24px;color:#167248}.cash-negative,.cash-demonstrative-card>.cash-negative{color:#c22222!important}

.bank-direction-lists{padding:8px 12px}.bank-direction-section{margin:0 0 24px;background:white;border:1px solid #cbd8d1;overflow-x:auto}.bank-direction-section h3{margin:0;padding:12px;background:#edf5ef}.bank-direction-section table{width:100%}.bank-direction-section th:first-child{width:40%}.bank-direction-section th{min-width:130px}.bank-direction-section td:last-child{white-space:nowrap}.bank-direction-section td button{margin-right:5px}

.cash-print-document{background:white;color:#18314c;font:11pt Arial,sans-serif}.cash-print-document>header{display:flex;gap:20px;align-items:center;border-bottom:2px solid #20804b;padding-bottom:12px}.cash-print-document>header img{width:90px;height:60px;object-fit:contain}.cash-print-document h1{font-size:20pt;margin:0}.cash-print-document>footer{font-size:9pt;margin-top:16px;border-top:1px solid #ccd7df;padding-top:8px}.cash-print-document .bank-direction-section table{border-collapse:collapse}.cash-print-document td,.cash-print-document th{border:1px solid #ccd7df;padding:8px;text-align:left}.cash-print-document .bank-direction-lists{padding:16px 0}.cash-print-document .cash-demonstrative{padding:8px 0}@media print{@page mc-cash{size:A4 landscape;margin:12mm}.cash-print-document{page:mc-cash}.cash-print-document .bank-direction-section{break-inside:avoid;overflow:visible}.cash-print-document .cash-demonstrative-grid{grid-template-columns:1fr 1fr}.cash-print-document .cash-negative{color:#c22222!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}.cash-print-document thead{display:table-header-group}}

.receipt-origin-summary{margin-top:10px;font-size:12px;line-height:1.6;color:#34586a;white-space:normal}

.receipt-breakdown{margin-top:16px;border-top:1px solid #e2e9e5;padding-top:12px}.receipt-breakdown-title{font-size:10px;letter-spacing:.7px;text-transform:uppercase;color:#74847c;font-weight:700;margin-bottom:10px}.receipt-breakdown-list{display:flex;flex-direction:column;gap:6px;margin:0}.receipt-breakdown-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:8px 10px;background:#f4f8f5;border-radius:4px;border-left:3px solid #c7e3d1}.receipt-breakdown-row dt{font-size:12px;color:#40594b;overflow-wrap:anywhere}.receipt-breakdown-row dd{margin:0;font-size:13px;font-weight:700;color:#17613a;white-space:nowrap;font-variant-numeric:tabular-nums}.crm-metrics>.metric:has(.receipt-breakdown){min-width:250px}.receipt-breakdown-row:nth-child(even){background:#f8faf9}@media(max-width:650px){.receipt-breakdown-row{gap:10px;padding:8px}.receipt-breakdown-row dd{font-size:12px}}@media print{.receipt-breakdown-row{break-inside:avoid}.receipt-breakdown-title{color:#444}}

.crm-metrics.reception-cash-metrics{display:grid;grid-template-columns:260px 290px 180px 180px;gap:12px;justify-content:start;align-items:start;width:100%;max-width:1046px}.reception-cash-metrics>.metric{min-width:0!important;padding:16px;align-self:start}.reception-cash-metrics .receipt-breakdown-row{padding:7px 9px;gap:12px}.reception-cash-metrics .receipt-breakdown{margin-top:12px;padding-top:10px}@media(max-width:1080px){.crm-metrics.reception-cash-metrics{grid-template-columns:repeat(2,minmax(0,290px));max-width:592px}}@media(max-width:600px){.crm-metrics.reception-cash-metrics{grid-template-columns:minmax(0,1fr);max-width:340px}}@media print{.crm-metrics.reception-cash-metrics{grid-template-columns:1fr 1fr;max-width:100%}}

.reception-cash-summary{width:min(840px,100%);margin:10px 0 16px;border:1px solid #d1ddd6;border-radius:8px;background:#fff;overflow:hidden;box-shadow:0 2px 7px #173d2510}.cash-summary-totals{display:grid;grid-template-columns:1fr 1.35fr 1fr 1fr;background:#fafcfb;border-bottom:1px solid #e1e9e4}.cash-summary-total{padding:16px 18px;display:flex;flex-direction:column;gap:9px;min-width:0;border-right:1px solid #e1e9e4}.cash-summary-total:last-child{border-right:0}.cash-summary-total>span{color:#63796e;font-size:11px}.cash-summary-total>strong{font-size:22px;line-height:1.2;font-variant-numeric:tabular-nums;color:#254836;white-space:nowrap}.cash-summary-total.received{background:#edf7f0}.cash-summary-total.received>strong{color:#148349}.cash-summary-total.discount>strong,.cash-summary-total.interest>strong{font-size:19px;color:#526b5e}.cash-summary-details{display:grid;grid-template-columns:1fr 1.2fr;gap:0;padding:16px 18px}.cash-summary-details>.receipt-breakdown{margin:0;padding:0;border:0;min-width:0}.cash-summary-details>.receipt-breakdown:first-child{padding-right:20px;border-right:1px solid #e5ece8}.cash-summary-details>.receipt-breakdown:last-child{padding-left:20px}.cash-summary-details .receipt-breakdown-title{margin-bottom:12px;color:#61776b;font-size:10px}.cash-summary-details .receipt-breakdown-row{background:#f5f8f6;border-left:0;padding:7px 10px;border-radius:4px}.cash-summary-details .receipt-breakdown-row dd{font-size:12px}.cash-summary-details .receipt-breakdown-row dt{font-size:12px}.cash-summary-details .receipt-breakdown-list{gap:5px}@media(max-width:700px){.cash-summary-totals{grid-template-columns:1fr 1fr}.cash-summary-total{padding:12px;border-bottom:1px solid #e1e9e4}.cash-summary-total>strong{font-size:20px}.cash-summary-details{padding:14px;gap:16px;grid-template-columns:1fr}.cash-summary-details>.receipt-breakdown:first-child,.cash-summary-details>.receipt-breakdown:last-child{padding:0;border:0}}@media print{.reception-cash-summary{box-shadow:none;break-inside:avoid}}

.cash-summary-row{display:flex;align-items:stretch;gap:18px;flex-wrap:wrap;margin:10px 0 16px;flex-shrink:0}.cash-summary-row>.reception-cash-summary{margin:0;flex:0 1 840px;display:flex;flex-direction:column}.cash-summary-row>.reception-cash-summary>.cash-summary-details{flex:1}.cash-summary-row>.cash-calculator{margin:0;align-self:stretch}.cash-calculator{width:250px;flex:0 0 250px;background:#fff;border:1px solid #d1ddd6;border-radius:8px;padding:14px;box-shadow:0 2px 7px #173d2510}.cash-calculator-heading{font-weight:bold;color:#345b46;font-size:13px}.cash-calculator-history{text-align:right;min-height:20px;color:#718279;font-size:11px;padding-top:8px}.cash-calculator-display{font-size:23px;text-align:right;background:#f2f7f4;border:1px solid #dce7df;height:46px;color:#215938;cursor:default}.cash-calculator-keys{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:10px}.cash-calculator-keys button{height:35px;font-size:15px;border:1px solid #dce5df;background:#f8faf9;border-radius:4px;padding:0}.cash-calculator-keys button:hover{background:#e5f1e9}.cash-calculator-keys .calculator-operator{background:#eaf4ee;color:#176d40;font-weight:bold}.cash-calculator-keys .calculator-equals{background:#18864d;color:white;border-color:#18864d}@media print{.cash-calculator{display:none!important}}

.reception-cash-print>table{width:100%;border-collapse:collapse;font-size:9pt;margin-top:16px}.reception-cash-print .reception-cash-summary{margin-top:12px;max-width:100%}.reception-cash-print>table th{background:#edf5ef}.reception-cash-print>table tr{break-inside:avoid}.reception-cash-print>table td{overflow-wrap:anywhere}

.cash-report{font:9pt Arial,sans-serif;color:#111}.cash-report>header{border-bottom:0;padding-bottom:10px;gap:14px}.cash-report>header h1{font-size:15pt;margin:0 0 6px}.cash-report>header img{width:100px;height:65px}.cash-report>header div div{font-size:8pt;line-height:1.4}.cash-report-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;border-bottom:3px solid #46665a}.cash-report-heading h2{font-size:13pt;margin:10px 0 6px}.cash-report-heading span,.cash-report-meta{font-size:8pt}.cash-report-category{margin:12px 0}.cash-report h3{background:#dce5df;padding:6px 8px;font-size:10pt;margin:0}.cash-report-table{width:100%;border-collapse:collapse;font-size:8pt}.cash-report .cash-report-table th,.cash-report .cash-report-table td{padding:5px;border:0;border-bottom:1px solid #e1e5e2;vertical-align:top;text-align:left;overflow-wrap:anywhere}.cash-report .cash-report-table th{background:#eff3f0}.cash-report .cash-report-table tbody tr:nth-child(even){background:#f7f9f8}.cash-report .cash-report-table .cash-report-number{text-align:right}.cash-report .cash-report-table tfoot th{border-top:1px solid #263b30;border-bottom:2px solid #263b30;text-align:right;background:white;white-space:nowrap}.cash-report-grand-total{display:flex;justify-content:space-between;padding:10px;border-top:2px solid #365342;border-bottom:2px solid #365342;margin:14px 0}.cash-report-summaries{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:20px}.cash-report-summaries>section{break-inside:avoid}.cash-report footer{font-size:8pt;line-height:1.5}@media print{.cash-report-category h3{break-after:avoid}.cash-report-table tr{break-inside:avoid}.cash-report-table thead{display:table-header-group}.cash-report-table tfoot{display:table-row-group}.cash-report-summaries{grid-template-columns:1fr 1fr}.cash-report h3,.cash-report-table th{print-color-adjust:exact;-webkit-print-color-adjust:exact}}

.cash-report-receipts th:nth-child(4),.cash-report-receipts th:nth-child(5),.cash-report-receipts td:nth-child(4),.cash-report-receipts td:nth-child(5){white-space:nowrap}.cash-report-receipts td:nth-last-child(-n+3),.cash-report-receipts th:nth-last-child(-n+3){white-space:nowrap;text-align:right}.cash-report-receipts th:nth-child(2){min-width:35mm}.cash-report-receipts th:nth-child(3){min-width:29mm}.cash-report-receipts td,.cash-report-receipts th{line-height:1.4}.cash-report .cash-report-category>h3{font-weight:700;letter-spacing:.2px;border-left:4px solid #456e57}.cash-report .cash-report-grand-total{font-size:12pt;background:#eef5f0}.cash-report-meta{color:#526259}.cash-report .cash-report-summaries h3{font-size:9pt}.cash-report .cash-report-table thead th{font-weight:700;border-bottom:1px solid #a8b8ad}.cash-report .cash-report-table tbody td{padding-top:6px;padding-bottom:6px}@media print{.cash-report-grand-total{break-inside:avoid}.cash-report-summaries>section h3{break-after:avoid}.cash-report-receipts td:nth-child(2){max-width:50mm}.cash-report-receipts td:nth-child(3){max-width:45mm}}

.cash-report .cash-report-table th.cash-report-number,.cash-report .cash-report-table td.cash-report-number{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.cash-report-summaries .cash-report-table{table-layout:fixed}.cash-report-summaries .cash-report-table th:first-child,.cash-report-summaries .cash-report-table td:first-child{text-align:left;width:50%}

.bank-direction-section table{table-layout:fixed;border-collapse:collapse}.bank-direction-section th,.bank-direction-section td{padding:8px 12px;vertical-align:middle}.bank-direction-section th:first-child,.bank-direction-section td:first-child{width:36%;text-align:left}.bank-direction-section th:nth-child(2),.bank-direction-section td:nth-child(2),.bank-direction-section th:nth-child(3),.bank-direction-section td:nth-child(3){width:22%;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.bank-direction-section th:last-child,.bank-direction-section td:last-child{width:20%;text-align:center}.bank-direction-section th{min-width:0}@media(max-width:700px){.bank-direction-section table{min-width:650px}}@media print{.cash-print-document .bank-direction-section th:first-child,.cash-print-document .bank-direction-section td:first-child{width:46%;text-align:left}.cash-print-document .bank-direction-section th:nth-child(2),.cash-print-document .bank-direction-section td:nth-child(2),.cash-print-document .bank-direction-section th:nth-child(3),.cash-print-document .bank-direction-section td:nth-child(3){width:27%;text-align:right}}

.bank-direction-section thead th{background:#e7efea;color:#294c39;font-size:12px;font-weight:700;border-top:1px solid #d4e1d8;border-bottom:2px solid #adc9b7;padding-top:11px;padding-bottom:11px}.bank-direction-section thead th:nth-child(3){background:#d8eade;color:#155e36}.bank-direction-section tbody td{border-bottom:1px solid #e9eeeb}.bank-direction-section tbody tr:last-child td{border-bottom:0}.bank-direction-section tbody tr:nth-child(even){background:#fafcfb}.bank-direction-section tbody td:nth-child(2)>strong{font-weight:400;color:#667b6d}.bank-direction-section tbody td:nth-child(3){background:#f2f8f4}.bank-direction-section tbody td:nth-child(3)>strong{font-size:13px;font-weight:700}.bank-direction-section tbody tr:hover td{background:#eaf3ed}.bank-direction-section tbody td:first-child{font-weight:500}.bank-direction-section thead th+th{border-left:1px solid #d5e2d9}@media print{.bank-direction-section thead th{print-color-adjust:exact;-webkit-print-color-adjust:exact}}

.bank-direction-section th:first-child,.bank-direction-section td:first-child{width:30%}.bank-direction-section th:nth-child(2),.bank-direction-section td:nth-child(2),.bank-direction-section th:nth-child(3),.bank-direction-section td:nth-child(3){width:18%}.bank-direction-section th:nth-child(4),.bank-direction-section td:nth-child(4){width:18%;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.bank-direction-section th:last-child,.bank-direction-section td:last-child{width:16%;text-align:center}.bank-direction-section thead th:nth-child(4){background:#d8eade;color:#155e36}.bank-direction-section tbody td:nth-child(4){background:#f2f8f4}.bank-direction-section tbody td:nth-child(4)>strong{font-size:13px}@media print{.cash-print-document .bank-direction-section th:first-child,.cash-print-document .bank-direction-section td:first-child{width:37%}.cash-print-document .bank-direction-section th:nth-child(2),.cash-print-document .bank-direction-section td:nth-child(2),.cash-print-document .bank-direction-section th:nth-child(3),.cash-print-document .bank-direction-section td:nth-child(3),.cash-print-document .bank-direction-section th:nth-child(4),.cash-print-document .bank-direction-section td:nth-child(4){width:21%;text-align:right}}

.cash-accumulation-toolbar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:6px 0 14px;color:#3f614d}.cash-period-dialog{width:min(560px,94vw)}.cash-period-dialog .danger{padding:0 14px}

/* Tela de Caixas e Bancos: listas compactas e resumo no mesmo espaço. */
#view>.bank-direction-lists{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;padding:10px 12px 0}#view>.bank-direction-lists>.cash-accumulation-toolbar{padding:0 0 2px;gap:10px;min-height:29px}#view>.bank-direction-lists>.bank-direction-section{margin:0;border-radius:5px}#view>.bank-direction-lists .bank-direction-section h3{padding:8px 10px;font-size:13px}#view>.bank-direction-lists .bank-direction-section th,#view>.bank-direction-lists .bank-direction-section td{padding:5px 9px;font-size:11px;line-height:1.25}#view>.bank-direction-lists .bank-direction-section td button{padding:3px 6px;margin-right:3px;font-size:11px}#view>.bank-direction-lists .bank-direction-section tbody td>strong{font-size:12px}#view>.bank-direction-lists>.hint{margin:0;font-size:10px;line-height:1.35;color:#728079}#view>.cash-demonstrative{padding:10px 12px;margin-top:10px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px 16px}#view>.cash-demonstrative>h2{font-size:13px;margin:0;grid-column:1/-1}#view>.cash-demonstrative>.cash-demonstrative-grid{margin:0;gap:10px;grid-template-columns:1fr 1fr}#view>.cash-demonstrative .cash-demonstrative-card{padding:10px 14px;gap:5px;flex-direction:row;align-items:center;justify-content:space-between}#view>.cash-demonstrative .cash-demonstrative-card>strong{font-size:20px}#view>.cash-demonstrative>p{margin:0;padding:10px 14px;background:#eaf3ed;border:1px solid #cbdcd0;border-radius:5px;white-space:nowrap}#view>.cash-demonstrative>p>strong{font-size:18px;margin-left:8px}
@media(min-width:1250px){#view>.bank-direction-lists{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}#view>.bank-direction-lists>.cash-accumulation-toolbar,#view>.bank-direction-lists>.hint{grid-column:1/-1}#view>.bank-direction-lists .bank-direction-section th:first-child,#view>.bank-direction-lists .bank-direction-section td:first-child{width:23%}#view>.bank-direction-lists .bank-direction-section th:nth-child(2),#view>.bank-direction-lists .bank-direction-section td:nth-child(2),#view>.bank-direction-lists .bank-direction-section th:nth-child(3),#view>.bank-direction-lists .bank-direction-section td:nth-child(3){width:17%}#view>.bank-direction-lists .bank-direction-section th:nth-child(4),#view>.bank-direction-lists .bank-direction-section td:nth-child(4){width:22%}#view>.bank-direction-lists .bank-direction-section th:last-child,#view>.bank-direction-lists .bank-direction-section td:last-child{width:21%}}
@media(max-width:850px){#view>.cash-demonstrative{grid-template-columns:1fr}#view>.cash-demonstrative>p{justify-self:start}#view>.cash-demonstrative .cash-demonstrative-card>strong{font-size:17px}}

/* Dashboard gerencial compacto: mantém indicadores e usa a largura disponível. */
.executive-panel{max-width:none;width:100%;padding:12px 16px;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:10px 12px}.executive-panel>.executive-heading,.executive-panel>.executive-cards,.executive-panel>.executive-note,.executive-panel>.executive-lower{grid-column:1/-1}.executive-panel .executive-heading{margin:0;gap:16px}.executive-panel .executive-heading>div{margin-right:auto}.executive-panel .executive-heading h1{margin:3px 0}.executive-panel .executive-heading p{margin:3px 0;}.executive-panel .executive-eyebrow{letter-spacing:.5px}.executive-panel .executive-heading label{min-width:155px;}.executive-panel .executive-heading select{padding:5px;margin-top:3px}.executive-panel .executive-cards{gap:10px}.executive-panel .executive-card,.executive-panel .executive-block{padding:12px 14px;border-radius:6px;min-width:0}.executive-panel .executive-card{gap:6px}.executive-panel .executive-card>span{}.executive-panel .executive-card strong{}.executive-panel .executive-card small{line-height:1.3}.executive-panel>.executive-note{line-height:1.35;margin:0}.executive-panel .executive-lower{grid-template-columns:1fr 2fr;gap:10px;margin:0}.executive-panel .executive-block h2{margin:0 0 7px}.executive-panel .executive-number{}.executive-panel .executive-lower .executive-block{display:grid;grid-template-columns:auto 1fr;gap:3px 14px;align-items:center}.executive-panel .executive-lower h2{grid-column:1/-1}.executive-panel .executive-lower p{margin:0}.executive-panel .executive-lower small{grid-column:1/-1;line-height:1.3}.executive-panel .enrollment-sources>p{margin:0;}.executive-panel .source-summary{gap:7px;margin:9px 0}.executive-panel .source-summary>div{padding:7px 9px;gap:4px;border-radius:4px}.executive-panel .source-summary span{}.executive-panel .source-summary strong{}.executive-panel .source-charts{grid-template-columns:140px minmax(0,1fr);gap:14px;padding:4px 0 7px;align-items:start}.executive-panel .source-charts h3{margin:0 0 7px}.executive-panel .source-donut{width:112px;height:112px;margin:0 auto 4px}.executive-panel .source-donut>div{width:78px;height:78px;gap:2px}.executive-panel .source-donut strong{}.executive-panel .source-donut span{}.executive-panel .source-bars{display:grid;grid-template-columns:1fr 1fr;gap:7px 12px}.executive-panel .source-bars>h3{grid-column:1/-1}.executive-panel .source-chart-row{margin:0;min-width:0}.executive-panel .source-chart-label{margin-bottom:3px;gap:4px}.executive-panel .source-chart-label strong{overflow-wrap:anywhere}.executive-panel .source-chart-label span{white-space:nowrap}.executive-panel .source-chart-label i{width:7px;height:7px}.executive-panel .source-chart-row small{margin-top:2px}.executive-panel .source-chart-row .executive-track{height:6px}.executive-panel .enrollment-sources>small{line-height:1.3;display:block}.executive-panel .executive-trend{grid-template-columns:50px minmax(30px,1fr) 140px minmax(30px,1fr) 130px;gap:7px;margin:12px 0;}.executive-panel .executive-trend .executive-track{height:8px}.executive-panel .executive-cash-trend{align-self:stretch}
@media(max-width:1250px){.executive-panel .executive-trend{grid-template-columns:42px 1fr 115px;gap:5px;margin:8px 0}.executive-panel .executive-trend>span:first-child{grid-row:span 2}.executive-panel .executive-trend>.executive-track:nth-of-type(2){grid-column:2}.executive-panel .executive-trend>span:last-child{grid-column:3}.executive-panel .source-charts{grid-template-columns:115px 1fr;gap:9px}.executive-panel .source-bars{grid-template-columns:1fr}}
@media(max-width:900px){.executive-panel{grid-template-columns:minmax(0,1fr);padding:10px}.executive-panel .executive-heading{flex-wrap:wrap;gap:8px}.executive-panel .executive-heading>div{flex:1 0 100%}.executive-panel .executive-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.executive-panel .source-bars{grid-template-columns:1fr 1fr}}
@media(max-width:550px){.executive-panel .executive-lower{grid-template-columns:1fr}.executive-panel .executive-heading label{flex:1;min-width:125px}.executive-panel .source-bars{grid-template-columns:1fr}.executive-panel .executive-card strong{}.executive-panel .executive-trend{}}
@media print{.executive-panel{padding:0;gap:8px}.executive-panel .executive-card,.executive-panel .executive-block{break-inside:avoid}.executive-panel .executive-heading select{border:0}}

/* Eficiência: mesma tipografia, com margens e distribuição compactas. */
.crm-shell.crm-seller-dashboard{max-width:none;padding:12px 16px;display:grid;grid-template-columns:minmax(240px,1fr) auto;gap:10px 14px;align-items:center}.crm-seller-dashboard .crm-dashboard-header h1{margin:0 0 4px}.crm-seller-dashboard .crm-dashboard-header p{margin:0}.crm-seller-dashboard .crm-dashboard-filters{gap:10px;padding:9px 12px;border-radius:6px}.crm-seller-dashboard .crm-dashboard-filters select,.crm-seller-dashboard .crm-dashboard-filters input[type=date]{padding:5px;min-width:125px}.crm-seller-dashboard .crm-dashboard-filters button{padding:6px 9px}.crm-efficiency-output,.crm-efficiency-status{grid-column:1/-1;min-width:0}.crm-efficiency-status:empty{display:none}.crm-seller-dashboard .crm-dashboard-period{margin:0 0 7px}.crm-seller-dashboard .crm-dashboard-kpis{gap:10px;margin:0 0 10px}.crm-seller-dashboard .crm-dashboard-kpis article{padding:11px 14px;border-radius:6px}.crm-seller-dashboard .crm-dashboard-kpis strong{margin-top:5px}.crm-seller-dashboard .crm-dashboard-visuals{gap:12px;margin:0 0 10px;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}.crm-seller-dashboard .crm-visual-chart{padding:12px 14px;border-radius:6px}.crm-seller-dashboard .crm-visual-chart>.hint{margin:5px 0}.crm-seller-dashboard .crm-chart-legend{gap:12px;margin:7px 0}.crm-seller-dashboard .crm-visual-chart svg{margin-top:5px;max-width:760px;margin-left:auto;margin-right:auto}.crm-seller-dashboard .crm-vendor-chart-list{display:grid;grid-template-columns:1fr 1fr;gap:6px 14px;max-height:none;padding:0}.crm-seller-dashboard .crm-vendor-chart-group{padding:7px 0;min-width:0}.crm-seller-dashboard .crm-vendor-chart-group>strong{margin-bottom:5px}.crm-seller-dashboard .crm-vendor-chart-line{margin:4px 0}.crm-seller-dashboard .crm-dashboard-table-details{margin:0 0 8px;border-radius:6px}.crm-seller-dashboard .crm-dashboard-table-details>summary{padding:9px 12px}.efficiency-definitions{color:#597365}.efficiency-definitions>summary{cursor:pointer;padding:5px 0}.efficiency-definitions>.hint{margin:6px 0}.crm-seller-dashboard .crm-grid th,.crm-seller-dashboard .crm-grid td{padding-top:6px;padding-bottom:6px}
#view>.instructor-efficiency-toolbar{gap:10px;padding:8px 12px;margin-bottom:0}#view:has(>.instructor-visuals)>h2{margin:8px 12px}#view:has(>.instructor-visuals)>.hint{margin:4px 12px}.instructor-visuals{padding:8px 12px;gap:10px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.instructor-visuals>.instructor-kpis,.instructor-visuals>.hint{grid-column:1/-1}.instructor-visuals>.instructor-chart:nth-of-type(3){grid-column:1/-1}.instructor-visuals .instructor-kpis{gap:10px;grid-template-columns:repeat(4,minmax(0,1fr))}.instructor-visuals .instructor-kpi,.instructor-visuals .instructor-chart{padding:11px 14px;border-radius:6px;min-width:0}.instructor-visuals .instructor-kpi strong{margin-top:5px}.instructor-visuals .instructor-chart h3{margin:0 0 8px}.instructor-visuals .instructor-chart-row{grid-template-columns:minmax(100px,1fr) minmax(70px,1fr) 90px;gap:4px 8px;margin:8px 0}.instructor-visuals .instructor-bar-track{height:12px}.instructor-visuals .instructor-comparison-wrap{margin:8px 0}.instructor-visuals .instructor-comparison-table th,.instructor-visuals .instructor-comparison-table td{padding:6px 7px}.instructor-visuals>.hint{margin:0}.instructor-monthly-bars>summary,.instructor-table-details>summary{cursor:pointer;color:#246345;padding:8px 10px;font-weight:bold}.instructor-table-details{margin:0 12px 10px;background:white;border:1px solid #d2e0da;border-radius:6px}.instructor-monthly-bars{border-top:1px solid #e2eae5;margin-top:8px}
@media(min-width:1450px){.instructor-visuals{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.65fr)}.instructor-visuals>.instructor-chart:nth-of-type(3){grid-column:auto}.instructor-visuals .instructor-chart-row{grid-template-columns:minmax(90px,1fr) minmax(55px,1fr) 80px}}
@media(max-width:1150px){.crm-shell.crm-seller-dashboard{grid-template-columns:1fr}.crm-seller-dashboard .crm-dashboard-filters{justify-content:flex-start}.crm-seller-dashboard .crm-vendor-chart-list{grid-template-columns:1fr}}
@media(max-width:800px){.crm-seller-dashboard .crm-dashboard-visuals,.instructor-visuals{grid-template-columns:1fr}.instructor-visuals>.instructor-chart:nth-of-type(3){grid-column:auto}.instructor-visuals .instructor-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-seller-dashboard .crm-dashboard-filters>label{width:auto}.crm-seller-dashboard .crm-dashboard-filters{gap:8px}.crm-shell.crm-seller-dashboard{padding:10px}}
@media print{.crm-shell.crm-seller-dashboard{display:block}.crm-seller-dashboard .crm-visual-chart,.instructor-visuals .instructor-chart{break-inside:avoid}}

.payables-summary{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:12px;max-width:1000px;margin:12px}.payables-summary>div{background:white;border:1px solid #d3e0d7;border-radius:6px;padding:14px;display:flex;flex-direction:column;gap:10px}.payables-summary span{color:#607969}.payables-summary strong{font-size:22px;color:#176c3b}@media(max-width:750px){.payables-summary{grid-template-columns:1fr 1fr}}

.bank-direction-section.bank-outgoing{border-color:#e3c7cd}.bank-direction-section.bank-outgoing h3{background:#f9edef;color:#8f3545}.bank-direction-section.bank-outgoing thead th{background:#f2e2e6;color:#79333f;border-color:#dec1c9}.bank-direction-section.bank-outgoing thead th:nth-child(3),.bank-direction-section.bank-outgoing thead th:nth-child(4){background:#ecd4da;color:#842e40}.bank-direction-section.bank-outgoing tbody td:nth-child(3),.bank-direction-section.bank-outgoing tbody td:nth-child(4){background:#fcf2f4}.bank-direction-section.bank-outgoing tbody tr:nth-child(even){background:#fff8f9}.bank-direction-section.bank-outgoing tbody tr:hover td{background:#f5e0e6}.bank-direction-section.bank-outgoing td button{color:#8a3b4d;border-color:#d6aeb9}.bank-direction-section.bank-outgoing td button:hover{background:#f3dfe5}.bank-direction-section.bank-outgoing tbody td:nth-child(3)>strong,.bank-direction-section.bank-outgoing tbody td:nth-child(4)>strong{color:#9f4056}@media print{.bank-direction-section.bank-outgoing h3,.bank-direction-section.bank-outgoing thead th{print-color-adjust:exact;-webkit-print-color-adjust:exact}}

.cash-demonstrative-card.cash-outgoing-card{background:#fcf2f4;border-color:#e1c0c9}.cash-demonstrative-card.cash-outgoing-card>span{color:#85394c}.cash-demonstrative-card.cash-outgoing-card>strong{color:#a13d54}@media print{.cash-outgoing-card{print-color-adjust:exact;-webkit-print-color-adjust:exact}}
#view>.cash-demonstrative .cash-outgoing-card>strong{color:#a13d54}

button.attendance-save-green{background:#16864f;color:white;border-color:#137441;font-weight:bold}button.attendance-save-green:hover{background:#116c3e;border-color:#0e5933}button.attendance-save-green:disabled{background:#7fa68f;border-color:#7fa68f}

.attendance-class-locator{position:relative;min-width:360px;max-width:560px;flex:0 1 520px}.attendance-class-controls{display:flex;align-items:center;gap:5px;margin-top:4px}.attendance-class-controls input{min-width:0;flex:1}.attendance-class-controls button{white-space:nowrap}.attendance-class-results{position:absolute;top:100%;left:0;right:0;max-height:280px;overflow:auto;background:white;border:1px solid #9bb9a8;border-radius:3px;box-shadow:0 5px 14px #153f2525;z-index:30}.attendance-class-results>button{display:block;text-align:left;width:100%;border:0;border-bottom:1px solid #e5ece8;border-radius:0;padding:9px 10px;background:white;white-space:normal}.attendance-class-results>button:hover,.attendance-class-results>button.selected{background:#e8f3ec;color:#17643a}.attendance-class-empty{padding:10px;color:#63796d;font-size:11px}@media(max-width:650px){.attendance-class-locator{min-width:0;width:100%;flex-basis:100%}}



.bank-opening-date{display:block;white-space:nowrap;color:#607586;margin-top:2px}

/* Pesquisa de alunos: identificação legível e ações agrupadas. */
#view table.students-table{width:100%;white-space:normal;background:#fff}
#view table.students-table th{background:#edf3f8;color:#25425d;padding:10px 12px;font-weight:600;border-color:#d8e2eb;text-align:left}
#view table.students-table td{padding:12px;vertical-align:middle;max-width:none;border-bottom:1px solid #e1e8ee;overflow:visible}
#view table.students-table tbody tr{background:#fff}
#view table.students-table tbody tr:nth-child(even){background:#f7f9fc}
#view table.students-table tbody tr:hover{background:#eef5fc}
#view table.students-table tbody tr:focus-within{background:#eef5fc;box-shadow:inset 3px 0 #0874bd}
#view table.students-table th:first-child{min-width:200px}
#view table.students-table th:nth-child(2){min-width:110px}
#view table.students-table th:nth-child(3){min-width:135px}
#view table.students-table th:last-child{width:530px;min-width:490px}
.student-identity,.student-contact,.student-contracts{display:grid;gap:5px;line-height:1.45;overflow-wrap:anywhere}
.student-identity strong{font-weight:600;color:#183d60}
.student-identity>span{color:#4b6073}
.student-contracts{max-width:240px}
.student-action-buttons{display:flex;align-items:stretch;gap:8px}
.student-action-group{padding:8px;background:#f1f5fa;border:1px solid #d8e2ed;border-radius:7px;flex:1;min-width:0}
.student-action-label{display:block;color:#29445e;font-weight:600;margin-bottom:7px;line-height:1.3;white-space:nowrap}
.student-action-grid{display:grid;gap:6px}
.student-actions-teaching{flex:2;background:#edf7f3;border-color:#c5dfd3}
.student-actions-teaching .student-action-label{color:#245c48}
.student-actions-teaching .student-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.student-actions-management{flex:1.65;background:#fbf5ec;border-color:#e6d5b9}
.student-actions-management .student-action-label{color:#6b4717}
#view .students-table .student-action-buttons button{margin:0;min-height:32px;padding:6px 8px;border:1px solid #a9bbcd;border-radius:5px;background:#fff;color:#183d60;line-height:1.3;white-space:normal;text-align:center;box-shadow:0 1px 2px #193a5410}
#view .students-table .student-actions-teaching button{border-color:#95baa8;color:#20523e}
#view .students-table .student-actions-management button{border-color:#c9ae84;color:#654215}
#view .students-table .student-action-buttons button:hover{background:#dfecf8;border-color:#4277a9}
#view .students-table .student-actions-teaching button:hover{background:#d8eee3;border-color:#448468}
#view .students-table .student-actions-management button:hover{background:#f5e6cd;border-color:#a47939}
#view .students-table .student-action-buttons button:focus-visible{outline:3px solid #075caa;outline-offset:3px;position:relative;z-index:2}
@media(pointer:coarse){#view .students-table .student-action-buttons button{min-height:44px}}
@media print{#view table.students-table th:last-child,#view table.students-table td:last-child{display:none}}

.menubar .main-menu-divider{display:block;align-self:center;flex:0 0 1px;height:19px;margin:0 10px;background:#ffffffb3}.menubar>button{flex-shrink:0}

.titlebar>.payable-alert-button{margin-left:auto;white-space:nowrap;color:#20543d;border-color:#a8c7b6;background:#edf6f0}
.titlebar:has(.payable-alert-button:not([hidden])) .session-name{margin-left:0}
.titlebar>.payable-alert-button.has-due{background:#fff5df;border-color:#c9a052;color:#654812}
.titlebar>.payable-alert-button.has-overdue{background:#fceceb;border-color:#d49b98;color:#8b2623;font-weight:600}
.payable-alert-dialog{width:min(820px,94vw);max-height:85vh;padding:0;border:1px solid #bdcbd7;border-radius:10px;color:#18314c}
.payable-alert-dialog::backdrop{background:#102d4760}
.payable-alert-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px;border-bottom:1px solid #dce4eb;background:#f4f7fa}
.payable-alert-dialog h2{margin:0;font-size:18px}
.payable-alert-body{padding:16px 18px;overflow:auto}
.payable-alert-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0 18px}
.payable-alert-count{padding:12px;border:1px solid #e0cda6;border-radius:6px;background:#fff8e9;color:#6d4b16}
.payable-alert-count.overdue{background:#fcefee;border-color:#e1b7b4;color:#8b2623}
.payable-alert-count strong{display:block;margin-top:5px;font-size:22px}
.payable-alert-table-wrap{overflow:auto;max-height:45vh}
.payable-alert-table-wrap table{width:100%;border-collapse:collapse;font-size:12px}
.payable-alert-table-wrap th,.payable-alert-table-wrap td{padding:10px;text-align:left;border-bottom:1px solid #e0e7ed}
.payable-alert-table-wrap th{position:sticky;top:0;background:#edf3f8;color:#25425d}
.payable-alert-table-wrap th:nth-child(3),.payable-alert-table-wrap td:nth-child(3){text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.payable-alert-status{display:inline-block;padding:4px 7px;border-radius:4px;background:#fff4db;color:#795419;white-space:nowrap}
.payable-alert-status.overdue{background:#fce7e5;color:#8e2924}

.titlebar>.payable-alert-button.requires-awareness{background:#a92323;color:#fff;border-color:#8e1919;animation:payable-alert-pulse 1.8s ease-in-out infinite;font-weight:600}
@keyframes payable-alert-pulse{0%,100%{background:#a92323;box-shadow:0 0 0 0 #b31f1f35}50%{background:#d23b34;box-shadow:0 0 0 4px #b31f1f25}}
.payable-alert-body>footer{display:flex;justify-content:flex-end;align-items:center;gap:12px;padding-top:14px;border-top:1px solid #dce4eb}
.payable-alert-acknowledge{background:#a92323;border-color:#8e1919;color:#fff;min-height:38px;font-weight:600}
.payable-alert-acknowledge:hover{background:#8e1919;color:#fff}
.payable-alert-error{color:#a92323;margin:0;flex:1}
@media(prefers-reduced-motion:reduce){.titlebar>.payable-alert-button.requires-awareness{animation:none;outline:2px solid #a92323;outline-offset:2px}}

@media(max-width:1500px){.titlebar:has(.payable-alert-button:not([hidden]))>strong{display:none}}

.payable-alert-demo-notice{padding:16px;border-radius:6px;background:#a92323;color:white;font-weight:600;line-height:1.5}
.payable-alert-demo-notice.requires-awareness{animation:payable-alert-pulse 1.8s ease-in-out infinite}
.payable-alert-demo-notice.acknowledged{background:#e9f5ed;color:#225d3b;border:1px solid #a7cbb4}
@media(prefers-reduced-motion:reduce){.payable-alert-demo-notice.requires-awareness{animation:none}}

/* MC DESIGN 2026: tema escuro compartilhado. Regras e fontes preservadas. */
@media screen {
:root{color-scheme:dark;--mc-green:#16864F;--mc-green-hover:#11723F;--mc-graphite:#20312B;--mc-bg:#17221E;--mc-surface:#20312B;--mc-raised:#263C33;--mc-field:#182720;--mc-text:#EAF3EE;--mc-muted:#B2C8BC;--mc-border:#3B5549;--mc-positive:#78DCA6;--mc-negative:#FF9F96;--mc-focus:#96E2B7;--mc-selected:#2F5140;--mc-shadow:0 2px 7px #00000018;background:var(--mc-bg);color:var(--mc-text)}
body{background:var(--mc-bg);color:var(--mc-text)}
#app{height:100dvh;display:flex;flex-direction:column;min-width:320px}
button,input,select,textarea{border-color:var(--mc-border);border-radius:6px;color:var(--mc-text);background:var(--mc-field)}
button{background:var(--mc-raised);transition:background-color .14s ease,border-color .14s ease;box-shadow:0 1px 2px #00000015}
button:hover{background:var(--mc-selected);border-color:#688875;color:var(--mc-text)}
button:disabled{opacity:.55;box-shadow:none}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--mc-focus);outline-offset:3px}
input:focus,select:focus,textarea:focus{outline:2px solid var(--mc-focus);outline-offset:1px;border-color:var(--mc-focus)}
input::placeholder,textarea::placeholder{color:#A4BCAF;opacity:1}
input[type=checkbox],input[type=radio]{accent-color:var(--mc-green)}
.primary,.crm-primary,button.attendance-save-green,#saveButton{background:var(--mc-green);border-color:var(--mc-green);color:#fff}
.primary:hover,.crm-primary:hover,button.attendance-save-green:hover,#saveButton:hover{background:var(--mc-green-hover);border-color:var(--mc-green-hover);color:#fff}
.danger,#formError,#authError,.crm-error{color:var(--mc-negative)}
a{color:#97D9B4}.hint,.table-foot,.table-foot span{color:var(--mc-muted)}
.titlebar{height:auto;min-height:39px;flex-shrink:0;gap:10px;padding:6px 12px;background:var(--mc-graphite);border-bottom:1px solid var(--mc-border);flex-wrap:wrap}
.titlebar>strong{position:static;transform:none;flex:1;margin-left:10px;color:var(--mc-text)}
.titlebar>.session-name{color:var(--mc-muted);margin-left:auto}
.titlebar button{min-height:28px}.titlebar .brandbutton{background:transparent;box-shadow:none}
.titlebar .school-selector{color:var(--mc-muted)}
.titlebar .school-selector select{background:var(--mc-field);border-color:var(--mc-border);color:var(--mc-text)}
.menubar{background:#1B3328;border-bottom:1px solid var(--mc-border);min-height:34px;flex-shrink:0;gap:3px;padding:3px 8px;align-items:center}
.menubar button{color:var(--mc-muted);padding:6px 12px;border:1px solid transparent;border-radius:6px;box-shadow:none;background:transparent;min-height:28px}
.menubar button:hover{background:#294536;color:var(--mc-text)}
.menubar button.selected{background:#315640;color:#fff;border-color:#4D785E;font-weight:600}
.menubar .main-menu-divider{background:#587363;height:22px;margin:0 7px}
.ribbon{height:auto;min-height:75px;flex-shrink:0;background:var(--mc-graphite);border-color:var(--mc-border);align-items:stretch}
.ribbon-actions{padding:7px 10px 17px;min-width:290px;border-color:var(--mc-border)}
.ribbon-actions>div{flex-wrap:wrap;gap:5px}.ribbon-actions button{padding:4px 7px;min-height:25px}
.search-label{margin-top:6px;color:var(--mc-muted)}.search-label input{height:26px;background:var(--mc-field);border-color:var(--mc-border)}
.ribbon-actions>span{bottom:2px;color:var(--mc-muted)}
.ribbon-items{padding:5px 8px;gap:5px;align-items:stretch}
.ribbon-items button{height:auto;min-height:63px;width:96px;padding:5px 7px;line-height:15px;background:transparent;border-radius:7px;white-space:normal;color:var(--mc-muted);box-shadow:none}
.ribbon-items button.selected{background:#2D4D3C;border-color:#4B735B;color:#fff}.ribbon-items button:hover{background:#294536;border-color:#4B735B;color:#fff}
.ribbon-items .icon{height:26px;line-height:26px;margin:0 auto 4px;color:var(--mc-positive)}
.ribbon-logo{padding:0 14px}.ribbon-logo img{height:58px;width:90px}
.workspace-tabs{height:auto;min-height:32px;flex-shrink:0;background:var(--mc-bg);border-color:var(--mc-border);padding:5px 8px 0;gap:5px}
.workspace-tabs>div{border-color:var(--mc-border);border-radius:6px 6px 0 0;overflow:visible}
.workspace-tabs button{background:var(--mc-surface);color:var(--mc-muted);padding:6px 10px;box-shadow:none;display:inline-flex;align-items:center;gap:6px}
.workspace-tabs .selected{border-top:2px solid var(--mc-positive)}.workspace-tabs .selected button{background:var(--mc-raised);color:var(--mc-text)}
.workspace-tabs .close-tab{color:var(--mc-muted);border-radius:0 5px 0 0}
#workspace{height:auto;flex:1;min-height:0;padding:0 8px 8px}
#view{border:1px solid var(--mc-border);border-radius:0 0 8px 8px;background:var(--mc-bg);min-height:0;overflow:auto;scrollbar-color:#557461 var(--mc-bg)}
#view>h1,#view>h2,#view>h3{margin:14px 14px 10px;color:var(--mc-text)}#view>.hint{margin:6px 14px 12px}
.statusbar{position:static;height:auto;min-height:24px;flex-shrink:0;background:var(--mc-graphite);border-color:var(--mc-border);color:var(--mc-muted);flex-wrap:wrap;gap:3px;padding:4px 0}
.statusbar span{border-color:var(--mc-border)}
.view-tools{padding:9px 12px;gap:9px;align-items:end;background:var(--mc-surface);border-bottom:1px solid var(--mc-border)}
.view-tools>label{display:inline-flex;flex-direction:column;gap:4px;align-items:flex-start;color:var(--mc-muted)}
.view-tools>label>input,.view-tools>label>select{margin:0}
.view-tools input,.view-tools select{max-width:none;min-height:30px;min-width:0;background:var(--mc-field);color:var(--mc-text)}
.view-tools button{min-height:30px;padding:5px 10px;white-space:nowrap}.view-tools .hint{align-self:center}
input.contract-student-locator{background:#243D2F;color:var(--mc-text);border-color:#658B72}
input.contract-student-locator::placeholder{color:#B6CDBD}input.contract-student-locator:focus{background:#284735;outline-color:var(--mc-focus)}
.grid-wrap{background:var(--mc-bg);min-height:110px;scrollbar-color:#557461 var(--mc-bg)}
table.data,.crm-grid{background:var(--mc-surface);color:var(--mc-text);border-collapse:separate;border-spacing:0}
table.data th,.crm-grid th{background:var(--mc-raised);color:var(--mc-muted);border:0;border-bottom:1px solid #567360;padding:9px 10px;font-weight:600;text-align:left;vertical-align:middle;white-space:normal;line-height:1.4}
table.data td,.crm-grid td{background:transparent;border-color:#334A3E;padding:9px 10px;color:var(--mc-text);max-width:none;overflow:visible;text-overflow:clip;line-height:1.45;white-space:normal;overflow-wrap:break-word}
table.data tr:nth-child(even),.crm-grid tr:nth-child(even){background:#22382D}table.data tr:nth-child(odd),.crm-grid tr:nth-child(odd){background:var(--mc-surface)}
table.data tr:hover,.crm-grid tr:hover{background:#2C4939}table.data tr:focus-within,.crm-grid tr:focus-within{background:#2F5140;box-shadow:inset 3px 0 var(--mc-positive)}
table.data tr.group-row{background:#304C3A;color:#C8EDDA}table.data button{padding:5px 8px;min-height:28px;border-radius:6px;margin:2px 4px 2px 0}
.mc-number{font-variant-numeric:tabular-nums;text-align:right!important;white-space:nowrap!important}
.table-foot{padding:9px 12px;background:var(--mc-surface);border-color:var(--mc-border)}
.badge{background:#2C4436;border-color:#567461;color:#D1E4D8;border-radius:5px;line-height:1.5}.badge.good{background:#244D34;border-color:#4D805F;color:#A1E8B9}
.badge.bad,.cash-amount-negative{background:#482D2A;border-color:#9F625B;color:#FFADA4}.capacity-full{background:#7C302C!important;color:#fff}
.empty,.mc-empty{margin:14px;padding:22px;border:1px dashed #52715E;border-radius:8px;background:var(--mc-surface);color:var(--mc-muted);line-height:1.6}.empty strong,.mc-empty strong{color:var(--mc-text)}
#notice{margin:6px 0;border:1px solid #53765E;border-radius:6px;background:#294A35;color:#BFE9CC;padding:10px 12px;line-height:1.5}#notice.error{background:#462A29;color:#FFB2A8;border-color:#985B55}
.helpbox{border-color:#5E7050;background:#303D28;color:#D5E5BC;border-radius:6px;line-height:1.5}
dialog,.crm-dialog{border:1px solid #587663;border-radius:10px;background:var(--mc-surface);color:var(--mc-text);box-shadow:0 16px 48px #0005}
dialog::backdrop{background:#07160EB3;backdrop-filter:blur(2px)}dialog form{background:var(--mc-surface)}
dialog header,.crm-dialog header{background:var(--mc-raised);border-color:var(--mc-border);padding:12px 16px;gap:12px}dialog h2{color:var(--mc-text)}dialog header button{min-height:30px;min-width:30px;color:var(--mc-muted)}
.dialog-tabs{border-color:var(--mc-border);padding:8px 12px 0;gap:5px}.dialog-tabs button{background:var(--mc-field);border-color:var(--mc-border);color:var(--mc-muted);border-radius:6px 6px 0 0}
.dialog-tabs button.selected{background:var(--mc-selected);color:#fff;border-top:2px solid var(--mc-positive)}
.form-fields{padding:16px;gap:14px}.form-fields label{color:var(--mc-muted)}.form-fields input,.form-fields select,.form-fields textarea{color:var(--mc-text);background:var(--mc-field);border-color:var(--mc-border)}.form-fields [readonly]{color:#BDD1C3;background:#26372D}
dialog footer{background:var(--mc-raised);border-color:var(--mc-border);padding:12px 16px;gap:8px;flex-wrap:wrap}
.auth{background:var(--mc-bg)}.login-card{background:var(--mc-surface);color:var(--mc-text);border-color:var(--mc-border);border-radius:10px;box-shadow:var(--mc-shadow)}.login-card h1,.login-card label{color:var(--mc-text)}.login-card p{color:var(--mc-muted)}#fileHelp{background:#3F3D27;border-color:#756E43;color:var(--mc-text)}
.welcome,.dashboard-notes{color:var(--mc-text);background:var(--mc-bg)}
.metric,.executive-card,.executive-block,.instructor-kpi,.instructor-chart,.crm-visual-chart,.crm-dashboard-kpis article,.payables-summary>div,.crm-metrics button{background:var(--mc-surface);border-color:var(--mc-border);color:var(--mc-text);box-shadow:var(--mc-shadow)}
.metric strong,.executive-card strong,.executive-number,.instructor-kpi strong,.payables-summary strong,.crm-metrics strong{color:var(--mc-positive)}
.metric span,.executive-card small,.executive-note,.source-summary span,.crm-header p,.crm-dashboard-header p,.efficiency-definitions{color:var(--mc-muted)}
.executive-panel,.instructor-visuals{color:var(--mc-text)}.executive-panel h1,.executive-panel h2,.instructor-chart h2,.instructor-chart h3,.crm-visual-chart h2,.crm-visual-chart h3{color:var(--mc-text)}
.source-summary>div,.source-detail,.instructor-monthly-bars,.instructor-table-details,.crm-dashboard-table-details{background:var(--mc-surface);border-color:var(--mc-border)}
.instructor-table-details summary,.instructor-monthly-bars summary,.crm-dashboard-table-details summary{color:var(--mc-positive)}
.crm-shell{width:100%;margin:0;align-self:stretch;max-width:none;padding:16px;color:var(--mc-text)}
.crm-header,.crm-dashboard-header{align-items:center;gap:14px;margin:0 0 12px}.crm-header h1,.crm-dashboard-header h1,.crm-board-title h1{color:var(--mc-text)}.crm-header p{margin:5px 0 0}
.crm-local-nav{margin:0 0 12px;padding:0 0 12px;border-color:var(--mc-border);gap:6px;display:flex;flex-wrap:wrap}
.crm-local-nav button{background:var(--mc-surface);border-color:var(--mc-border);color:var(--mc-muted);padding:7px 10px}.crm-local-nav button[aria-current=page]{background:var(--mc-selected);color:var(--mc-text);border-color:#70957B}
.crm-filters,.crm-actions{gap:8px;margin:10px 0;align-items:end}.crm-filters input,.crm-filters select{background:var(--mc-field);color:var(--mc-text);border-color:var(--mc-border);padding:7px 9px;min-height:32px}
.crm-actions button,.crm-primary{border-radius:6px;background:var(--mc-green);border-color:var(--mc-green);color:white}.crm-filters label,.crm-subtle,.crm-subtitle{color:var(--mc-muted)}
.crm-sales-card,.crm-seller-card,.crm-lead-card,.crm-receipt-group,.crm-history-item,.crm-seller-portfolio,.crm-dashboard-filters{background:var(--mc-surface);border-color:var(--mc-border);color:var(--mc-text)}
.crm-receipt-group>summary,.crm-seller-card>h2,.crm-manager-board .crm-incoming-column>h2{background:var(--mc-raised);border-color:var(--mc-border);color:var(--mc-text)}
.crm-receipt-group strong,.crm-sales-card strong,.crm-seller-card h2{color:var(--mc-text)}.crm-pending{background:#3C3D27!important;color:#ECE1AF}
.crm-compact-stats,.crm-board-stats>div,.crm-board-kpis>div{background:var(--mc-surface);color:var(--mc-muted);border-color:var(--mc-border)}.crm-board-stats strong,.crm-board-kpis strong{color:var(--mc-positive)}
.crm-shell.crm-agenda-shell{padding:14px 16px;display:flex;flex-direction:column;gap:0}.crm-agenda-shell .crm-header{margin-bottom:10px}.crm-agenda-shell .crm-local-nav{margin-bottom:6px}.crm-agenda-shell .crm-filters{margin:8px 0 12px}.crm-agenda-shell>.crm-table-wrap{overflow:auto;min-height:0;width:100%}.crm-grid{border:1px solid var(--mc-border);border-radius:7px;overflow:hidden}
.cash-summary-row{align-items:stretch;margin:12px;gap:14px;flex-shrink:0}.cash-summary-row>.reception-cash-summary{margin:0;background:var(--mc-surface);border-color:var(--mc-border);box-shadow:var(--mc-shadow)}
.cash-summary-totals{background:var(--mc-surface);border-color:var(--mc-border)}.cash-summary-total{border-color:var(--mc-border);padding:14px 16px}.cash-summary-total>span,.cash-summary-details .receipt-breakdown-title{color:var(--mc-muted)}.cash-summary-total>strong{color:var(--mc-text)}.cash-summary-total.received{background:#243E2E}.cash-summary-total.received>strong{color:var(--mc-positive)}.cash-summary-total.discount>strong,.cash-summary-total.interest>strong{color:var(--mc-text)}
.cash-summary-details{padding:16px}.cash-summary-details>.receipt-breakdown:first-child{border-color:var(--mc-border)}.cash-summary-details .receipt-breakdown-row{background:#243A2E;color:var(--mc-text)}.cash-summary-details .receipt-breakdown-row dd{color:var(--mc-positive)}
.cash-summary-row>.cash-calculator{background:var(--mc-surface);border-color:var(--mc-border);box-shadow:var(--mc-shadow);align-self:stretch}.cash-calculator-heading{color:var(--mc-text)}.cash-calculator-history{color:var(--mc-muted)}.cash-calculator-display{background:var(--mc-field);color:var(--mc-positive);border-color:var(--mc-border)}
.cash-calculator-keys button{background:var(--mc-field);color:var(--mc-text);border-color:var(--mc-border);border-radius:6px}.cash-calculator-keys button:hover{background:var(--mc-selected)}.cash-calculator-keys .calculator-operator{background:#2E4B39;color:var(--mc-positive)}.cash-calculator-keys .calculator-equals{background:var(--mc-green);color:#fff}
.bank-direction-section,.cash-demonstrative-card{background:var(--mc-surface);border-color:var(--mc-border);box-shadow:var(--mc-shadow)}
.bank-direction-section h3,.bank-direction-section thead th,.bank-direction-section thead th:nth-child(3),.bank-direction-section thead th:nth-child(4){background:#2B4936;color:#B3E8C6;border-color:#4B6B57}
.bank-direction-section tbody td,.bank-direction-section tbody td:nth-child(3),.bank-direction-section tbody td:nth-child(4){background:var(--mc-surface);color:var(--mc-text)}.bank-direction-section tbody tr:hover td{background:#2C4939}.bank-direction-section tbody td>strong,.cash-demonstrative-card>strong{color:var(--mc-positive)}.bank-direction-section th,.bank-direction-section td{border-color:var(--mc-border)}
.bank-direction-section.bank-outgoing{border-color:#8C5550}.bank-direction-section.bank-outgoing h3,.bank-direction-section.bank-outgoing thead th,.bank-direction-section.bank-outgoing thead th:nth-child(3),.bank-direction-section.bank-outgoing thead th:nth-child(4){background:#472E2C;color:#FFB5AB;border-color:#82534D}.bank-direction-section.bank-outgoing tbody td,.bank-direction-section.bank-outgoing tbody td:nth-child(3),.bank-direction-section.bank-outgoing tbody td:nth-child(4){background:#302824;color:#F1DDD8}.bank-direction-section.bank-outgoing tbody tr:hover td{background:#51332E}.bank-direction-section.bank-outgoing tbody td:nth-child(3)>strong,.bank-direction-section.bank-outgoing tbody td:nth-child(4)>strong{color:var(--mc-negative)}.bank-direction-section.bank-outgoing td button{background:#3F2E2A;color:#FFD0C5;border-color:#9C6B60}
.cash-demonstrative-card>span,.bank-opening-date{color:var(--mc-muted)}#view>.cash-demonstrative .cash-outgoing-card{background:#392A27;border-color:#85564F}#view>.cash-demonstrative .cash-outgoing-card>strong,#view>.cash-demonstrative .cash-outgoing-card>span{color:var(--mc-negative)}.payables-summary span{color:var(--mc-muted)}
.payable-alert-dialog,.payable-alert-dialog>header,.payable-alert-body>footer{background:var(--mc-surface);color:var(--mc-text);border-color:var(--mc-border)}.payable-alert-dialog h2{color:var(--mc-text)}.payable-alert-count{background:#403C27;border-color:#8F8050;color:#F1DCA1}.payable-alert-count.overdue{background:#462A29;border-color:#9A5E56;color:#FFB1A6}.payable-alert-table-wrap th{background:var(--mc-raised);color:var(--mc-muted)}.payable-alert-table-wrap th,.payable-alert-table-wrap td{border-color:var(--mc-border)}.payable-alert-status{background:#4A4026;color:#FFE0A2}.payable-alert-status.overdue{background:#532E2B;color:#FFBAB0}
#view table.students-table{background:var(--mc-surface)}#view table.students-table th{background:var(--mc-raised);color:var(--mc-muted);border-color:var(--mc-border)}#view table.students-table tbody tr{background:var(--mc-surface)}#view table.students-table tbody tr:nth-child(even){background:#24392E}#view table.students-table tbody tr:hover,#view table.students-table tbody tr:focus-within{background:#2C4939}#view table.students-table td{color:var(--mc-text);border-color:var(--mc-border)}.student-identity strong{color:var(--mc-text)}.student-identity>span{color:var(--mc-muted)}
.student-action-group{background:#243B2F;border-color:var(--mc-border)}.student-action-label{color:#D0E8D9}.student-actions-teaching{background:#243D2D;border-color:#4D7258}.student-actions-teaching .student-action-label{color:#BDE6C9}.student-actions-management{background:#3B3727;border-color:#756849}.student-actions-management .student-action-label{color:#F0DBAC}#view .students-table .student-action-buttons button{background:var(--mc-field);color:var(--mc-text);border-color:#60806B}#view .students-table .student-actions-teaching button{color:#C8EDD4;border-color:#60846B}#view .students-table .student-actions-management button{color:#F3DFBA;border-color:#99855D}#view .students-table .student-action-buttons button:hover{background:var(--mc-selected)}
.attendance-grid-wrap{margin:8px 12px 12px;border:1px solid var(--mc-border);border-radius:7px;background:var(--mc-surface);overflow:auto;min-height:120px}.attendance-matrix{background:var(--mc-surface);color:var(--mc-text);border-collapse:separate;border-spacing:0}.attendance-matrix th,.attendance-matrix td{border-color:var(--mc-border);color:var(--mc-text)}.attendance-matrix thead th,.attendance-matrix .attendance-group-row th{background:var(--mc-raised);color:var(--mc-muted)}.attendance-matrix .attendance-group-row th{padding:7px}.attendance-matrix thead tr:not(.attendance-group-row)>th{height:auto;vertical-align:top;min-width:108px;padding:9px 8px}.attendance-matrix .attendance-selected-student{vertical-align:middle!important;min-width:220px;max-width:none;color:var(--mc-text);background:var(--mc-raised)}
.attendance-lesson-heading{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:3px;min-height:0}.attendance-matrix .attendance-lesson-heading>.attendance-lesson-date{writing-mode:horizontal-tb;transform:none;height:auto;width:auto;max-width:none;margin:0;line-height:1.5;overflow:visible;white-space:nowrap;color:var(--mc-text);font-weight:600;text-align:center}.attendance-matrix .attendance-lesson-heading>.attendance-module-label,.attendance-matrix .attendance-lesson-heading>.attendance-taught-label{display:none}
.attendance-lesson-controls{font-size:10px;margin-top:5px}.attendance-lesson-controls>summary{display:block;cursor:pointer;list-style:none;padding:5px 8px;border:1px solid #567963;border-radius:5px;color:#BBE7CA;background:#294233;line-height:1.5;font-size:10px;white-space:nowrap}.attendance-lesson-controls[open]{min-width:160px;background:var(--mc-field);border-color:var(--mc-border);border-radius:6px;padding:6px}.attendance-lesson-controls .attendance-detail-text{white-space:normal;overflow-wrap:anywhere;max-width:240px;line-height:1.5;color:var(--mc-muted);text-align:left}
.attendance-matrix tbody th{background:var(--mc-surface);color:var(--mc-text);padding:10px}.attendance-matrix .attendance-present,.attendance-grid-legend .attendance-present{background:#264C34;color:#C9F0D6}.attendance-matrix .attendance-absent,.attendance-grid-legend .attendance-absent{background:#492D2A;color:#FFB6AC}.attendance-matrix .attendance-unrecorded{background:#28362E;color:var(--mc-muted)}.attendance-matrix .attendance-justified{background:#464128;color:#F0DBA1}.attendance-matrix .attendance-makeup{background:#56352C;color:#FFD0B2}.attendance-matrix .attendance-student-selected th{background:#31563F;color:#fff}.attendance-matrix td.attendance-student-notes{background:var(--mc-surface);min-width:180px}.attendance-grid-legend{margin:4px 14px;gap:8px}
.attendance-class-results{background:var(--mc-surface);border-color:var(--mc-border)}.attendance-class-results>button{background:var(--mc-surface);color:var(--mc-text);border-color:var(--mc-border)}.attendance-class-results>button:hover,.attendance-class-results>button.selected{background:var(--mc-selected);color:#fff}
.mc-ui-icon{width:18px;height:18px;flex-shrink:0;vertical-align:middle;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.ribbon-items .mc-ui-icon{width:23px;height:23px}.mc-button-icon{display:inline-flex;align-items:center;gap:6px}
.policy-card,.policy-course,.policy-panel,.contract-summary,.summary-card,.settings-card,.editor-toolbar,.editor-fields,.crm-contact-card,.crm-contact-step,.crm-incoming-column{background:var(--mc-surface);border-color:var(--mc-border);color:var(--mc-text)}[contenteditable=true]{color:var(--mc-text)}
.contract-paper,.free-certificate-paper,.print-document,.cash-print-document,.reception-cash-print,.roster-print{color-scheme:light;background:white;color:#18314c}
@media(max-width:1050px){.titlebar>strong{flex-basis:190px}.titlebar .session-name{margin-left:0}.ribbon-logo{display:none}.crm-shell{padding:12px}.cash-summary-row{gap:12px}.cash-summary-row>.reception-cash-summary{flex:1 1 620px}.cash-summary-row>.cash-calculator{flex:0 0 250px}}
@media(max-width:700px){.titlebar{gap:7px;padding:7px 10px}.titlebar>strong{display:none}.titlebar .session-name{flex:1 1 180px}.menubar{flex-wrap:wrap}.ribbon{flex-direction:column;overflow:visible}.ribbon-actions{min-width:0;border-right:0;border-bottom:1px solid var(--mc-border);padding-bottom:7px}.ribbon-actions>span{display:none}.ribbon-actions .search-label input{flex:1;width:auto}.ribbon-items{overflow:auto;flex-shrink:0}.ribbon-items button{min-width:90px}.view-tools>label{max-width:100%;min-width:0}.view-tools input,.view-tools select{max-width:100%}.cash-summary-row>.reception-cash-summary,.cash-summary-row>.cash-calculator{flex:1 1 100%;width:100%}.cash-calculator-keys button{min-height:40px}.form-fields{grid-template-columns:1fr}.form-fields .wide{grid-column:auto}.statusbar{position:static}.attendance-class-locator{min-width:0}#view{overflow:auto}.crm-header{flex-wrap:wrap}.crm-filters input,.crm-filters select{max-width:100%}}
@media(prefers-reduced-motion:reduce){button,input,select,textarea{transition:none!important}.requires-awareness{animation:none!important}*{scroll-behavior:auto!important}}
}

@media screen {
#view input,#view select,#view textarea{background-color:var(--mc-field);color:var(--mc-text);border-color:var(--mc-border)}
#view .executive-panel .executive-eyebrow,#view .executive-heading p,#view .executive-card>span,#view .executive-panel small{color:var(--mc-muted)}
#view .executive-card strong,#view .executive-card.positive strong,#view .source-summary strong{color:var(--mc-positive)}
#view .executive-card.negative strong,#view .executive-card.expense strong{color:var(--mc-negative)}
#view .cash-summary-details .receipt-breakdown-row dt{color:var(--mc-text)}
#view .cash-summary-details .receipt-breakdown-row dd{color:var(--mc-positive)}
.mc-loading{padding:18px;color:var(--mc-muted);border:1px solid var(--mc-border);background:var(--mc-surface);border-radius:7px}
.crm-agenda-shell .crm-filters label{display:flex;flex-direction:column;gap:5px}
}

/* Compatibilidade visual das telas legadas: apenas cores; papel de impressão preservado. */
@media screen{
button{background:var(--mc-raised);border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
button:hover{background:#284332;background-color:#284332}
input, select, textarea{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.primary{background:var(--mc-green);background-color:var(--mc-green)}
.primary:hover{background:var(--mc-green);background-color:var(--mc-green)}
.danger{color:var(--mc-negative)}
.hint{color:var(--mc-muted)}
.login-card{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.brandmark{color:var(--mc-positive)}
.eyebrow{color:var(--mc-muted)}
#fileHelp{background:#403C27;background-color:#403C27;border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
#authError, #formError{color:var(--mc-negative)}
.titlebar{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border)}
.brand-fallback{color:var(--mc-positive)}
.session-name{color:var(--mc-muted)}
.menubar{background:var(--mc-green);background-color:var(--mc-green)}
.menubar button.selected{background:var(--mc-surface);background-color:var(--mc-surface);color:var(--mc-muted)}
.ribbon{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border)}
.ribbon-actions{border-right-color:var(--mc-border)}
.search-label{color:var(--mc-muted)}
.ribbon-items button:hover, .ribbon-items button.selected{background:#284332;background-color:#284332;border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.workspace-tabs{border-bottom-color:var(--mc-border)}
.workspace-tabs > div{border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.workspace-tabs button{background:var(--mc-surface);background-color:var(--mc-surface)}
.workspace-tabs .selected button{background:var(--mc-surface);background-color:var(--mc-surface)}
.workspace-tabs .close-tab{color:var(--mc-muted)}
#notice{background:#403C27;background-color:#403C27;border-bottom-color:var(--mc-border)}
#notice.error{background:#462A29;background-color:#462A29;color:var(--mc-negative)}
#view{border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.statusbar{background:var(--mc-surface);background-color:var(--mc-surface);border-top-color:var(--mc-border)}
.statusbar span{border-right-color:var(--mc-border)}
.view-tools{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border)}
table.data th{border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
table.data td{border-bottom-color:var(--mc-border)}
table.data tr:nth-child(2n){background:var(--mc-surface);background-color:var(--mc-surface)}
table.data tr:hover{background:#284332;background-color:#284332}
table.data tr.group-row{background:var(--mc-surface);background-color:var(--mc-surface)}
table.data td.note-cell{color:var(--mc-text)}
.table-foot{background:var(--mc-surface);background-color:var(--mc-surface);border-top-color:var(--mc-border)}
.badge{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.badge.good{background:#284332;background-color:#284332;border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border);color:var(--mc-positive)}
.badge.bad{background:#462A29;background-color:#462A29;border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border);color:var(--mc-negative)}
.progress{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.progress i{background:var(--mc-green);background-color:var(--mc-green)}
.progress span{color:var(--mc-text)}
.empty{color:var(--mc-muted)}
.empty strong{color:var(--mc-muted)}
.metric{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.metric span{color:var(--mc-muted)}
.dashboard-notes{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.kanban-column{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.lead-card{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.lead-card small{color:var(--mc-muted)}
dialog{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border);color:var(--mc-text)}
dialog header{background:var(--mc-surface);border-bottom-color:var(--mc-border)}
.dialog-tabs{border-bottom-color:var(--mc-border)}
.dialog-tabs button{background:var(--mc-surface);background-color:var(--mc-surface)}
.dialog-tabs button.selected{background:var(--mc-surface);background-color:var(--mc-surface)}
.multicheck{border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.form-fields .section-title{border-bottom-color:var(--mc-border);color:var(--mc-text)}
.form-fields .helpbox{background:#403C27;background-color:#403C27;border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
dialog footer{border-top-color:var(--mc-border)}
.settings-page fieldset{border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.settings-page legend{color:var(--mc-text)}
.receipt{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border);color:var(--mc-text)}
.receipt .receipt-total{border-top-color:var(--mc-border)}
.receipt dt{color:var(--mc-muted)}
.links-list a{color:var(--mc-text)}
.executive-panel{color:var(--mc-text)}
.executive-heading p{color:var(--mc-muted)}
.executive-eyebrow{color:var(--mc-positive)}
.executive-heading select{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.executive-card, .executive-block{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.executive-card > span{color:var(--mc-positive)}
.executive-card small, .executive-block small{color:var(--mc-muted)}
.executive-card.income strong{color:var(--mc-positive)}
.executive-card.expense strong{color:var(--mc-negative)}
.executive-note{color:var(--mc-muted)}
.aging{border-top-color:var(--mc-border)}
.executive-track{background:var(--mc-surface);background-color:var(--mc-surface)}
.login-card{border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.login-card h1{color:var(--mc-text)}
.login-card #authText{color:var(--mc-muted)}
.login-card input{border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.login-card .login-footer{border-top-color:var(--mc-border);color:var(--mc-muted)}
.editor-heading p{color:var(--mc-muted)}
.contract-editor textarea{border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.editor-tags{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.editor-tags p{color:var(--mc-muted)}
.editor-preview{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.text-format-toolbar{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.rich-contract-edit, .rich-contract-page{color:var(--mc-text)}
.rich-contract-edit{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.rich-contract-header{background:var(--mc-surface);background-color:var(--mc-surface)}
.rich-contract-edit hr[data-pagebreak]{border-top-color:var(--mc-border)}
.rich-contract-page{background:var(--mc-surface);background-color:var(--mc-surface)}
.editor-preview:has(.rich-contract-page){background:var(--mc-surface);background-color:var(--mc-surface)}
.text-format-toolbar .format-help{color:var(--mc-muted)}
.commercial-policy fieldset{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.commercial-policy legend{color:var(--mc-text)}
.policy-total{color:var(--mc-positive)}
.visit-context-menu{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.visit-context-menu button{background:var(--mc-surface);background-color:var(--mc-surface)}
.visit-context-menu button:hover, .visit-context-menu button:focus{background:#284332;background-color:#284332}
.source-summary > div{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.source-summary strong{color:var(--mc-text)}
.source-summary span{color:var(--mc-text)}
.source-donut > div{background:var(--mc-surface);background-color:var(--mc-surface)}
.source-donut strong{color:var(--mc-text)}
.source-donut span{color:var(--mc-muted)}
.source-chart-row small{color:var(--mc-negative)}
.cep-status{color:var(--mc-text)}
.mc-about{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border)}
.mc-about h1{color:var(--mc-text)}
.mc-about h2{color:var(--mc-positive)}
.mc-about .mc-about-motto{border-top-color:var(--mc-border);color:var(--mc-positive)}
.collection-filters{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.rich-editor-sheet{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.permission-check-table{background:var(--mc-surface);background-color:var(--mc-surface)}
.permission-check-table th, .permission-check-table td{border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.permission-check-table .permission-unavailable{background:var(--mc-surface);background-color:var(--mc-surface);color:var(--mc-muted)}
.permission-check-table .permission-special td:first-child{border-left-color:var(--mc-border)}
.class-students-dialog{border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.class-students-dialog header, .class-students-dialog footer{background:var(--mc-surface);background-color:var(--mc-surface)}
.class-students-expanded{background:var(--mc-surface);background-color:var(--mc-surface)}
.payment-notice{background:#462A29;background-color:#462A29;border-left-color:var(--mc-border);color:var(--mc-negative)}
.visit-form-dialog{border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.visit-form-dialog header, .visit-form-dialog footer{background:var(--mc-surface);background-color:var(--mc-surface)}
.visit-scholarship-form{color:var(--mc-text)}
.visit-form-identification{border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.visit-format-toolbar{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.visit-rich-editor{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.lead-import-dialog{border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.lead-import-dialog header, .lead-import-dialog footer{background:var(--mc-surface);background-color:var(--mc-surface)}
.crm-header h1{color:var(--mc-positive)}
.crm-header p{color:var(--mc-muted)}
.crm-metrics button{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.crm-metrics strong{color:var(--mc-positive)}
.crm-grid{background:var(--mc-surface);background-color:var(--mc-surface)}
.crm-pending{background:#462A29!important;background-color:#462A29!important}
.crm-error{color:var(--mc-negative)}
.crm-distribution label{background:var(--mc-surface);background-color:var(--mc-surface)}
.crm-dialog{border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.crm-dialog > header{background:var(--mc-surface);background-color:var(--mc-surface)}
.crm-dialog form{background:var(--mc-surface);background-color:var(--mc-surface)}
.crm-history-item{background:var(--mc-surface);background-color:var(--mc-surface)}
.crm-kanban section{background:#284332;background-color:#284332}
.crm-kanban button{background:var(--mc-surface);background-color:var(--mc-surface)}
.crm-slots button{background:#284332;background-color:#284332}
.crm-local-nav{border-bottom-color:var(--mc-border)}
.crm-local-nav button{background:var(--mc-surface);background-color:var(--mc-surface)}
.crm-contact-list{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.crm-inline-card{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.crm-inline-card > h2{background:var(--mc-surface);background-color:var(--mc-surface);color:var(--mc-positive)}
.crm-inline-card small, .crm-contact-list small{color:var(--mc-muted)}
.crm-inline-card .crm-extra{background:var(--mc-surface);background-color:var(--mc-surface)}
.crm-seller-card, .crm-manager-summary{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.crm-seller-card h2{color:var(--mc-positive)}
.crm-manager-summary strong{color:var(--mc-positive)}
.crm-simple-header h1{color:var(--mc-positive)}
.crm-simple-header p{color:var(--mc-muted)}
.crm-sales-column{background:var(--mc-surface);background-color:var(--mc-surface)}
.crm-sales-column > header span{color:var(--mc-muted)}
.crm-sales-card{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.crm-sales-card-name{color:var(--mc-text)}
.crm-sales-card-name:hover{background:#284332;background-color:#284332}
.crm-sales-card small{color:var(--mc-negative)}
.crm-sales-card-actions{border-top-color:var(--mc-border)}
.crm-sales-card-actions a{color:var(--mc-positive)}
.crm-incoming-column{background:var(--mc-surface);background-color:var(--mc-surface)}
.crm-visual-distribution{background:#284332;background-color:#284332;border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.crm-lead-selected{background:#284332!important;background-color:#284332!important}
.crm-incoming-column .crm-sales-card > label{color:var(--mc-positive)}
.crm-manager-board .crm-seller-portfolio{border-top-color:var(--mc-border)}
.crm-manager-board > .crm-drop-active{background:#284332;background-color:#284332}
.crm-lead-details summary{color:var(--mc-positive)}
.crm-compact-stats span:first-child{color:var(--mc-positive)}
.crm-quick-actions{border-top-color:var(--mc-border)}
.crm-quick-actions button{background:#284332;background-color:#284332;border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border);color:var(--mc-positive)}
.crm-quick-actions button:hover{background:#284332;background-color:#284332}
.crm-attendance-options{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.crm-attendance-options legend{color:var(--mc-positive)}
.crm-attendance-options label{background:var(--mc-surface);background-color:var(--mc-surface)}
.crm-attendance-options label:has(input:checked){background:#284332;background-color:#284332}
.crm-receipt-totals > div{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.crm-receipt-totals strong{color:var(--mc-positive)}
.crm-receipt-totals span{color:var(--mc-positive)}
.crm-receipt-group{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.crm-receipt-group > summary{background:var(--mc-surface);background-color:var(--mc-surface)}
.crm-receipt-group > summary > div:first-child{color:var(--mc-positive)}
.crm-receipt-counts{color:var(--mc-positive)}
.crm-receipt-lead{border-top-color:var(--mc-border)}
.crm-receipt-lead > small{color:var(--mc-negative)}
.crm-dashboard-header h1{color:var(--mc-positive)}
.crm-dashboard-header p{color:var(--mc-positive)}
.crm-dashboard-filters{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.crm-dashboard-kpis article{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border)}
.crm-dashboard-kpis span{color:var(--mc-positive)}
.crm-dashboard-kpis strong{color:var(--mc-positive)}
.crm-dashboard-period{color:var(--mc-positive)}
.crm-dashboard-chart{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.crm-dashboard-chart h2, .crm-seller-dashboard h2{color:var(--mc-positive)}
.crm-dashboard-bar{background:var(--mc-surface);background-color:var(--mc-surface)}
.crm-dashboard-bar span{background:#284332;background-color:#284332}
.crm-dashboard-bar.scheduled span{background:#284332;background-color:#284332}
.crm-dashboard-bar small{color:var(--mc-text)}
.crm-seller-dashboard .crm-grid{border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.crm-visual-chart{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.crm-chart-legend{color:var(--mc-positive)}
.crm-vendor-chart-group{border-bottom-color:var(--mc-border)}
.crm-vendor-chart-group > strong{color:var(--mc-positive)}
.crm-vendor-chart-line{color:var(--mc-positive)}
.crm-vendor-chart-track{background:var(--mc-surface);background-color:var(--mc-surface)}
.crm-vendor-chart-line b{color:var(--mc-positive)}
.crm-dashboard-table-details{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.crm-dashboard-table-details > summary{color:var(--mc-positive)}
.crm-chart-empty{color:var(--mc-positive)}
.attendance-grid-wrap{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.attendance-matrix th, .attendance-matrix td{border-bottom-color:var(--mc-border);border-right-color:var(--mc-border)}
.attendance-matrix thead th{background:var(--mc-surface);background-color:var(--mc-surface)}
.attendance-matrix thead th:first-child, .attendance-matrix tbody th{background:var(--mc-surface);background-color:var(--mc-surface)}
.attendance-matrix thead th:first-child{background:#284332;background-color:#284332}
.attendance-matrix tbody th small{color:var(--mc-muted)}
.attendance-matrix tbody tr:hover th{background:#284332;background-color:#284332}
.attendance-lesson-date{color:var(--mc-positive)}
.attendance-matrix .attendance-present{background:#284332;background-color:#284332}
.attendance-matrix .attendance-absent{background:#462A29;background-color:#462A29;color:var(--mc-negative)}
.attendance-matrix .attendance-justified{background:#462A29;background-color:#462A29;color:var(--mc-negative)}
.attendance-matrix .attendance-unrecorded{background:var(--mc-surface);background-color:var(--mc-surface);color:var(--mc-muted)}
.attendance-matrix .attendance-unsaved{background:#462A29;background-color:#462A29}
.attendance-mark{border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.attendance-mark.attendance-present{background:#284332;background-color:#284332}
.attendance-mark.attendance-absent{background:#462A29;background-color:#462A29}
.attendance-mark.attendance-justified{background:#462A29;background-color:#462A29}
.attendance-mark.attendance-unrecorded{background:var(--mc-surface);background-color:var(--mc-surface)}
.attendance-matrix tbody th small, .attendance-matrix tbody th strong{color:var(--mc-text)}
.attendance-matrix thead th{background:var(--mc-surface);background-color:var(--mc-surface)}
.attendance-matrix thead .attendance-group-row th{background:var(--mc-surface);background-color:var(--mc-surface);color:var(--mc-positive)}
.attendance-matrix thead th.attendance-selected-student{color:var(--mc-text)}
.attendance-lesson-date{color:var(--mc-text)}
.attendance-lesson-controls[open]{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.attendance-matrix .attendance-present{background:var(--mc-surface);background-color:var(--mc-surface)}
.attendance-matrix .attendance-absent{background:var(--mc-surface);background-color:var(--mc-surface);color:var(--mc-negative)}
.attendance-mark.attendance-absent{background:var(--mc-surface);background-color:var(--mc-surface);color:var(--mc-negative)}
.attendance-matrix tbody .attendance-student-selected > th{background:#284332;background-color:#284332}
.attendance-matrix .attendance-student-notes{background:var(--mc-surface);background-color:var(--mc-surface)}
.attendance-matrix .attendance-module-label{color:var(--mc-positive)}
.attendance-matrix .attendance-taught-label{color:var(--mc-muted)}
.instructor-kpi, .instructor-chart{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.instructor-kpi strong{color:var(--mc-positive)}
.instructor-chart-row small{color:var(--mc-muted)}
.instructor-bar-track{background:var(--mc-surface);background-color:var(--mc-surface)}
.instructor-comparison-table th, .instructor-comparison-table td{border-bottom-color:var(--mc-border)}
.instructor-comparison-table th{background:#284332;background-color:#284332}
.instructor-comparison-table tbody tr:nth-child(2n){background:var(--mc-surface);background-color:var(--mc-surface)}
input.contract-student-locator{background:#462A29;background-color:#462A29;border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border);color:var(--mc-text)}
input.contract-student-locator::placeholder{color:var(--mc-negative)}
input.contract-student-locator:focus{background:#462A29;background-color:#462A29}
#ribbonItems .icon.cancellation-icon{color:var(--mc-negative)}
.cash-filter-dialog{border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.mc-cancellation-dialog{background:#284332;background-color:#284332;border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.mc-cancellation-toolbar{background:#284332;background-color:#284332}
.mc-cancellation-note{border-left-color:var(--mc-border);color:var(--mc-muted)}
.mc-cancellation-status{color:var(--mc-text)}
.school-company-grid fieldset{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.school-company-grid legend{color:var(--mc-text)}
.mc-cancellation-party, .mc-cancellation-contract-info{border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.mc-cancellation-contract-info{background:var(--mc-surface);background-color:var(--mc-surface)}
.free-certificate-dialog{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.free-certificate-history{border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.free-certificate-template-dialog{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.free-certificate-template-dialog .visit-rich-editor{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.free-certificate-class-card{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.free-certificate-class-card > header{background:#284332;background-color:#284332}
.free-certificate-class-footer{background:var(--mc-surface);background-color:var(--mc-surface);border-top-color:var(--mc-border)}
.cash-demonstrative{border-top-color:var(--mc-border)}
.cash-demonstrative-card{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.cash-demonstrative-card > strong{color:var(--mc-positive)}
.cash-negative, .cash-demonstrative-card > .cash-negative{color:var(--mc-negative)!important}
.bank-direction-section{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.bank-direction-section h3{background:#284332;background-color:#284332}
.receipt-origin-summary{color:var(--mc-text)}
.receipt-breakdown{border-top-color:var(--mc-border)}
.receipt-breakdown-title{color:var(--mc-muted)}
.receipt-breakdown-row{background:var(--mc-surface);background-color:var(--mc-surface);border-left-color:var(--mc-border)}
.receipt-breakdown-row dt{color:var(--mc-positive)}
.receipt-breakdown-row dd{color:var(--mc-positive)}
.receipt-breakdown-row:nth-child(2n){background:var(--mc-surface);background-color:var(--mc-surface)}
.reception-cash-summary{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.cash-summary-totals{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border)}
.cash-summary-total{border-right-color:var(--mc-border)}
.cash-summary-total > span{color:var(--mc-muted)}
.cash-summary-total > strong{color:var(--mc-positive)}
.cash-summary-total.received{background:#284332;background-color:#284332}
.cash-summary-total.received > strong{color:var(--mc-positive)}
.cash-summary-total.discount > strong, .cash-summary-total.interest > strong{color:var(--mc-positive)}
.cash-summary-details > .receipt-breakdown:first-child{border-right-color:var(--mc-border)}
.cash-summary-details .receipt-breakdown-title{color:var(--mc-positive)}
.cash-summary-details .receipt-breakdown-row{background:var(--mc-surface);background-color:var(--mc-surface)}
@media (max-width: 700px){.cash-summary-total{border-bottom-color:var(--mc-border)}}
.cash-calculator{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.cash-calculator-heading{color:var(--mc-positive)}
.cash-calculator-history{color:var(--mc-muted)}
.cash-calculator-display{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border);color:var(--mc-positive)}
.cash-calculator-keys button{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.cash-calculator-keys button:hover{background:#284332;background-color:#284332}
.cash-calculator-keys .calculator-operator{background:#284332;background-color:#284332;color:var(--mc-positive)}
.cash-report{color:var(--mc-text)}
.cash-report h3{background:#284332;background-color:#284332}
.cash-report .cash-report-table th, .cash-report .cash-report-table td{border-bottom-color:var(--mc-border)}
.cash-report .cash-report-table th{background:var(--mc-surface);background-color:var(--mc-surface)}
.cash-report .cash-report-table tbody tr:nth-child(2n){background:var(--mc-surface);background-color:var(--mc-surface)}
.cash-report .cash-report-table tfoot th{background:var(--mc-surface);background-color:var(--mc-surface)}
.cash-report .cash-report-grand-total{background:#284332;background-color:#284332}
.cash-report-meta{color:var(--mc-muted)}
.cash-report .cash-report-table thead th{border-bottom-color:var(--mc-border)}
.bank-direction-section thead th{background:#284332;background-color:#284332;border-bottom-color:var(--mc-border);border-top-color:var(--mc-border);color:var(--mc-positive)}
.bank-direction-section thead th:nth-child(3){background:#284332;background-color:#284332;color:var(--mc-positive)}
.bank-direction-section tbody td{border-bottom-color:var(--mc-border)}
.bank-direction-section tbody tr:nth-child(2n){background:var(--mc-surface);background-color:var(--mc-surface)}
.bank-direction-section tbody td:nth-child(2) > strong{color:var(--mc-positive)}
.bank-direction-section tbody td:nth-child(3){background:var(--mc-surface);background-color:var(--mc-surface)}
.bank-direction-section tbody tr:hover td{background:#284332;background-color:#284332}
.bank-direction-section thead th + th{border-left-color:var(--mc-border)}
.bank-direction-section thead th:nth-child(4){background:#284332;background-color:#284332;color:var(--mc-positive)}
.bank-direction-section tbody td:nth-child(4){background:var(--mc-surface);background-color:var(--mc-surface)}
.cash-accumulation-toolbar{color:var(--mc-positive)}
#view > .bank-direction-lists > .hint{color:var(--mc-muted)}
#view > .cash-demonstrative > p{background:#284332;background-color:#284332;border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.efficiency-definitions{color:var(--mc-positive)}
.instructor-monthly-bars > summary, .instructor-table-details > summary{color:var(--mc-positive)}
.instructor-table-details{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.instructor-monthly-bars{border-top-color:var(--mc-border)}
.payables-summary > div{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.payables-summary span{color:var(--mc-positive)}
.payables-summary strong{color:var(--mc-positive)}
.bank-direction-section.bank-outgoing{border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.bank-direction-section.bank-outgoing h3{background:#462A29;background-color:#462A29;color:var(--mc-negative)}
.bank-direction-section.bank-outgoing thead th{background:#462A29;background-color:#462A29;border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border);color:var(--mc-negative)}
.bank-direction-section.bank-outgoing thead th:nth-child(3), .bank-direction-section.bank-outgoing thead th:nth-child(4){background:#462A29;background-color:#462A29;color:var(--mc-negative)}
.bank-direction-section.bank-outgoing tbody td:nth-child(3), .bank-direction-section.bank-outgoing tbody td:nth-child(4){background:var(--mc-surface);background-color:var(--mc-surface)}
.bank-direction-section.bank-outgoing tbody tr:nth-child(2n){background:var(--mc-surface);background-color:var(--mc-surface)}
.bank-direction-section.bank-outgoing tbody tr:hover td{background:#462A29;background-color:#462A29}
.bank-direction-section.bank-outgoing td button{border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border);color:var(--mc-negative)}
.bank-direction-section.bank-outgoing td button:hover{background:#462A29;background-color:#462A29}
.bank-direction-section.bank-outgoing tbody td:nth-child(3) > strong, .bank-direction-section.bank-outgoing tbody td:nth-child(4) > strong{color:var(--mc-negative)}
.cash-demonstrative-card.cash-outgoing-card{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.cash-demonstrative-card.cash-outgoing-card > span{color:var(--mc-negative)}
.cash-demonstrative-card.cash-outgoing-card > strong{color:var(--mc-negative)}
#view > .cash-demonstrative .cash-outgoing-card > strong{color:var(--mc-negative)}
button.attendance-save-green:disabled{border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.attendance-class-results{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.attendance-class-results > button{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border)}
.attendance-class-results > button:hover, .attendance-class-results > button.selected{background:#284332;background-color:#284332;color:var(--mc-positive)}
.attendance-class-empty{color:var(--mc-positive)}
.bank-opening-date{color:var(--mc-muted)}
#view table.students-table{background:var(--mc-surface);background-color:var(--mc-surface)}
#view table.students-table th{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border);color:var(--mc-text)}
#view table.students-table td{border-bottom-color:var(--mc-border)}
#view table.students-table tbody tr{background:var(--mc-surface);background-color:var(--mc-surface)}
#view table.students-table tbody tr:nth-child(2n){background:var(--mc-surface);background-color:var(--mc-surface)}
#view table.students-table tbody tr:hover{background:#284332;background-color:#284332}
#view table.students-table tbody tr:focus-within{background:#284332;background-color:#284332}
.student-identity strong{color:var(--mc-text)}
.student-identity > span{color:var(--mc-muted)}
.student-action-group{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.student-action-label{color:var(--mc-text)}
.student-actions-teaching{background:#284332;background-color:#284332;border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.student-actions-teaching .student-action-label{color:var(--mc-positive)}
.student-actions-management{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border)}
.student-actions-management .student-action-label{color:var(--mc-negative)}
#view .students-table .student-action-buttons button{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border);color:var(--mc-text)}
#view .students-table .student-actions-teaching button{border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border);color:var(--mc-positive)}
#view .students-table .student-actions-management button{border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border);color:var(--mc-negative)}
#view .students-table .student-action-buttons button:hover{background:#284332;background-color:#284332}
#view .students-table .student-actions-teaching button:hover{background:#284332;background-color:#284332}
#view .students-table .student-actions-management button:hover{background:#462A29;background-color:#462A29}
.menubar .main-menu-divider{background:var(--mc-surface);background-color:var(--mc-surface)}
.titlebar > .payable-alert-button{background:#284332;background-color:#284332;border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border);color:var(--mc-positive)}
.titlebar > .payable-alert-button.has-due{background:#403C27;background-color:#403C27;border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border);color:var(--mc-negative)}
.titlebar > .payable-alert-button.has-overdue{background:#462A29;background-color:#462A29;border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border);color:var(--mc-negative)}
.payable-alert-dialog{border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border);color:var(--mc-text)}
.payable-alert-dialog > header{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border)}
.payable-alert-count{background:var(--mc-surface);background-color:var(--mc-surface);border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border);color:var(--mc-negative)}
.payable-alert-count.overdue{background:#462A29;background-color:#462A29;border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border);color:var(--mc-negative)}
.payable-alert-table-wrap th, .payable-alert-table-wrap td{border-bottom-color:var(--mc-border)}
.payable-alert-table-wrap th{background:var(--mc-surface);background-color:var(--mc-surface);color:var(--mc-text)}
.payable-alert-status{background:#462A29;background-color:#462A29;color:var(--mc-negative)}
.payable-alert-status.overdue{background:#462A29;background-color:#462A29;color:var(--mc-negative)}
.payable-alert-body > footer{border-top-color:var(--mc-border)}
.payable-alert-error{color:var(--mc-negative)}
.payable-alert-demo-notice.acknowledged{background:#284332;background-color:#284332;border-bottom-color:var(--mc-border);border-color:var(--mc-border);border-left-color:var(--mc-border);border-right-color:var(--mc-border);border-top-color:var(--mc-border);color:var(--mc-positive)}
}

@media screen {
#view .attendance-matrix thead tr.attendance-group-row th,#view .attendance-matrix thead th.attendance-selected-student{background:var(--mc-raised);color:var(--mc-text)}
#view .attendance-matrix tbody th strong,#view .attendance-matrix tbody th small{color:var(--mc-text)}
dialog .helpbox,.form-fields .helpbox{background:#303D28;color:#E0EBC8;border-color:#6C8058}
.crm-shell .crm-simple-header h1{color:var(--mc-text)}.crm-shell .crm-simple-header p{color:var(--mc-muted)}
.crm-shell .crm-receipt-totals>div{background:var(--mc-surface);border-color:var(--mc-border)}
.crm-shell .crm-receipt-totals span,.crm-shell .crm-receipt-counts,.crm-shell .crm-receipt-group>summary>span{color:var(--mc-muted)}
.crm-shell .crm-receipt-totals strong{color:var(--mc-positive)}
.crm-dialog .crm-dialog-body form,.crm-dialog .crm-attendance-options,.crm-dialog .crm-attendance-options label{background:var(--mc-field);border-color:var(--mc-border);color:var(--mc-text)}
.crm-dialog .crm-attendance-options legend{color:var(--mc-positive)}
.source-donut>div{background:var(--mc-surface)}.source-donut strong{color:var(--mc-text)}.source-donut span{color:var(--mc-muted)}
}

/* Estados principais têm prioridade sobre a compatibilidade de telas antigas. */
@media screen {
.menubar{background:#1B3328}.menubar button{background:transparent;color:var(--mc-muted)}.menubar button.selected{background:#315640;color:#fff}.menubar button:hover{background:#294536;color:var(--mc-text)}
button:hover{background:var(--mc-selected);color:var(--mc-text)}
.primary,.crm-primary,#saveButton,button.attendance-save-green{background:var(--mc-green);color:white;border-color:var(--mc-green)}
.primary:hover,.crm-primary:hover,#saveButton:hover,button.attendance-save-green:hover{background:var(--mc-green-hover);color:white}
#notice{background:#294A35;color:#BFE9CC;border-color:#53765E}#notice.error{background:#462A29;color:#FFB2A8;border-color:#985B55}
#view table.students-table tbody tr:nth-child(even),table.data tbody tr:nth-child(even){background:#24392E}
#view table.students-table tbody tr:hover,table.data tbody tr:hover{background:#2C4939}
#view .executive-card.income strong{color:var(--mc-positive)}#view .executive-card.expense strong{color:var(--mc-negative)}
#view .bank-direction-section.bank-outgoing tbody td:nth-child(3)>strong,#view .bank-direction-section.bank-outgoing tbody td:nth-child(4)>strong,#view>.cash-demonstrative .cash-outgoing-card>strong{color:var(--mc-negative)}
}

@media screen {
#view>.cash-demonstrative>p{background:var(--mc-surface);color:var(--mc-text);border-color:var(--mc-border)}
#view>.cash-demonstrative>p strong{color:var(--mc-positive)}
#view .cash-accumulation-toolbar strong,#view .bank-direction-lists>.hint{color:var(--mc-muted)}
#view .bank-direction-section tbody td:nth-child(2){color:var(--mc-muted)}
.crm-dialog .crm-dialog-body form input,.crm-dialog .crm-dialog-body form select,.crm-dialog .crm-dialog-body form textarea{background:var(--mc-field);color:var(--mc-text);border-color:var(--mc-border)}
}

@media screen {
#newButton:not(:disabled){background:var(--mc-green);border-color:var(--mc-green);color:#fff}
#view .mc-primary-action{background:var(--mc-green);border-color:var(--mc-green);color:#fff}
#view .mc-primary-action:hover{background:var(--mc-green-hover);color:#fff}
.executive-panel svg text,.crm-visual-chart svg text,.instructor-chart svg text{fill:var(--mc-muted)}
dialog.payable-alert-dialog::backdrop{background:#07160EB3}
.cash-negative{color:var(--mc-negative)!important}
}

/* Legibilidade do menu principal, conforme ajuste solicitado. */
@media screen {
.menubar > button{font-size:14px;line-height:1.35}
}

/* Ações comerciais com o mesmo agrupamento visual da Coordenação. */
@media screen {
#view table.contracts-table th:last-child{min-width:470px;width:500px}
#view .contracts-table td:last-child{vertical-align:middle}
#view .contracts-table .student-action-buttons{min-width:440px}
#view .contracts-table .student-action-buttons button{margin:0;min-height:32px;padding:6px 8px;border:1px solid var(--mc-border);border-radius:6px;background:var(--mc-field);color:var(--mc-text);line-height:1.3;white-space:normal;text-align:center;box-shadow:0 1px 2px #07160E18}
#view .contracts-table .student-action-buttons button:hover{background:var(--mc-selected);border-color:#78B991;color:#fff}
#view .contracts-table .student-actions-teaching .student-action-grid{grid-template-columns:1fr}
#view .contracts-table .student-action-buttons .contract-installments-button{background:var(--mc-green);border-color:var(--mc-green);color:#fff}
}

@media screen {
#view .students-table th:first-child{min-width:100px}
#view .students-table th:nth-child(2){min-width:200px}
#view .students-table th:nth-child(3){min-width:110px}
#view .students-table th:nth-child(4){min-width:135px}
}

/* Tema escuro suavizado: superfícies mais claras, mantendo o verde MC. */
@media screen {
:root{--mc-bg:#24392F;--mc-surface:#2E483B;--mc-raised:#385744;--mc-field:#294235;--mc-text:#F1F7F3;--mc-muted:#C6D8CD;--mc-border:#587363;--mc-selected:#42684F}
.menubar{background:#294638}
.menubar button:hover{background:#3B5F48}
.menubar button.selected{background:#42684F;border-color:#83A58E}
#view .attendance-selected-student{background:var(--mc-raised);color:var(--mc-text)}
}

/* A preferência visual fica no navegador e não muda os dados da escola. */
@media screen {
.titlebar .layout-theme-control{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;color:var(--mc-muted)}
.titlebar .layout-theme-control select{width:85px;min-height:28px;margin:0;padding:3px 6px}
html[data-mc-theme="light"]{color-scheme:light;--mc-graphite:#FFFFFF;--mc-bg:#F5F7F8;--mc-surface:#FFFFFF;--mc-raised:#EAF2ED;--mc-field:#FFFFFF;--mc-text:#20312B;--mc-muted:#52685B;--mc-border:#C7D6CD;--mc-positive:#087443;--mc-negative:#B3261E;--mc-focus:#16864F;--mc-selected:#E0EEE5;--mc-shadow:0 2px 7px #20312B12}
html[data-mc-theme="light"] a{color:#087443}
html[data-mc-theme="light"] input::placeholder,html[data-mc-theme="light"] textarea::placeholder{color:#657A6C}
html[data-mc-theme="light"] .menubar{background:#E8F1EB}
html[data-mc-theme="light"] .menubar button{color:#344E3D}
html[data-mc-theme="light"] .menubar button:hover{background:#D6E8DC;color:#20312B}
html[data-mc-theme="light"] .menubar button.selected{background:#D6E8DC;border-color:#9ABDA7;color:#163D26}
html[data-mc-theme="light"] .titlebar .brandbutton,html[data-mc-theme="light"] .ribbon-logo{background:#20312B;border-radius:6px}
html[data-mc-theme="light"] .ribbon-items button.selected,html[data-mc-theme="light"] .ribbon-items button:hover{background:#E0EEE5;color:#163D26;border-color:#9ABDA7}
html[data-mc-theme="light"] .dialog-tabs button.selected{color:#163D26}
html[data-mc-theme="light"] input.contract-student-locator,html[data-mc-theme="light"] input.contract-student-locator:focus{background:#FFF9E9;color:#20312B;border-color:#B7CCBC}
html[data-mc-theme="light"] input.contract-student-locator::placeholder{color:#6C715C}
html[data-mc-theme="light"] #view table.data tbody tr:nth-child(even),html[data-mc-theme="light"] .crm-grid tr:nth-child(even){background:#F2F6F3}
html[data-mc-theme="light"] #view table.students-table tbody tr:nth-child(even){background:#F2F6F3}
html[data-mc-theme="light"] #view table.data tbody tr:hover,html[data-mc-theme="light"] .crm-grid tr:hover,html[data-mc-theme="light"] #view table.students-table tbody tr:hover{background:#E9F3EC}
html[data-mc-theme="light"] #view table.data tbody tr:focus-within,html[data-mc-theme="light"] .crm-grid tr:focus-within,html[data-mc-theme="light"] #view table.students-table tbody tr:focus-within{background:#E0EEE5}
html[data-mc-theme="light"] #view table.data tr.group-row{background:#E0EBE4;color:#254C33}
html[data-mc-theme="light"] table.data th,html[data-mc-theme="light"] table.data td,html[data-mc-theme="light"] .crm-grid th,html[data-mc-theme="light"] .crm-grid td{border-color:var(--mc-border)}
html[data-mc-theme="light"] .student-action-group,html[data-mc-theme="light"] .student-actions-teaching{background:#EFF7F1;border-color:#BCD5C4}
html[data-mc-theme="light"] .student-action-label,html[data-mc-theme="light"] .student-actions-teaching .student-action-label{color:#245C38}
html[data-mc-theme="light"] .student-actions-management{background:#FFF5EB;border-color:#E2CBB8}
html[data-mc-theme="light"] .student-actions-management .student-action-label{color:#8B4329}
html[data-mc-theme="light"] #view .students-table .student-actions-teaching button{color:#245C38;border-color:#A7C6B2}
html[data-mc-theme="light"] #view .students-table .student-actions-management button{color:#8B4329;border-color:#D4B89F}
html[data-mc-theme="light"] #view .contracts-table .student-action-buttons button:hover{color:#20312B}
html[data-mc-theme="light"] .helpbox{background:#FFF8E6;color:#67552B;border-color:#DECCA1}
html[data-mc-theme="light"] .form-fields [readonly]{color:#52685B;background:#F0F4F1}
html[data-mc-theme="light"] #notice{background:#E7F4EB;color:#245C38;border-color:#A7C6B2}
html[data-mc-theme="light"] #notice.error{background:#FFF0ED;color:#9B2922;border-color:#E3B7B0}
html[data-mc-theme="light"] .executive-panel,html[data-mc-theme="light"] .crm-shell,html[data-mc-theme="light"] .instructor-efficiency{color:var(--mc-text)}
html[data-mc-theme="light"] .executive-panel h1,html[data-mc-theme="light"] .executive-panel h2,html[data-mc-theme="light"] .executive-panel h3,html[data-mc-theme="light"] .crm-shell h1,html[data-mc-theme="light"] .crm-shell h2,html[data-mc-theme="light"] .crm-shell h3{color:#245C38}
html[data-mc-theme="light"] .bank-direction-section.bank-incoming,html[data-mc-theme="light"] .bank-direction-section.bank-incoming h3,html[data-mc-theme="light"] .bank-direction-section.bank-incoming thead th{background:#EAF5ED;color:#245C38}
html[data-mc-theme="light"] #view .bank-direction-section.bank-incoming tbody td{background:#FFFFFF;color:#20312B}
html[data-mc-theme="light"] #view .bank-direction-section.bank-outgoing{border-color:#DEB9B2}
html[data-mc-theme="light"] #view .bank-direction-section.bank-outgoing h3,html[data-mc-theme="light"] #view .bank-direction-section.bank-outgoing thead th{background:#FCE7E2;color:#9B2922;border-color:#DEB9B2}
html[data-mc-theme="light"] #view .bank-direction-section.bank-outgoing tbody td{background:#FFF7F5;color:#703D35}
html[data-mc-theme="light"] #view .bank-direction-section.bank-outgoing tbody tr:hover td{background:#FFEFEA}
html[data-mc-theme="light"] #view .bank-direction-section.bank-outgoing td button{background:#FFFFFF;color:#9B2922;border-color:#DEB9B2}
html[data-mc-theme="light"] #view>.cash-demonstrative .cash-outgoing-card{background:#FFF0EC;border-color:#DEB9B2}
html[data-mc-theme="light"] .attendance-lesson-controls>summary{background:#EAF4ED;color:#245C38;border-color:#A7C6B2}
html[data-mc-theme="light"] .attendance-matrix .attendance-present,html[data-mc-theme="light"] .attendance-grid-legend .attendance-present{background:#E7F4EB;color:#245C38}
html[data-mc-theme="light"] .attendance-matrix .attendance-absent,html[data-mc-theme="light"] .attendance-grid-legend .attendance-absent{background:#FFF0ED;color:#9B2922}
html[data-mc-theme="light"] .attendance-matrix .attendance-unrecorded{background:#F0F4F1;color:#52685B}
html[data-mc-theme="light"] .attendance-matrix .attendance-justified{background:#FFF8E6;color:#67552B}
html[data-mc-theme="light"] .attendance-matrix .attendance-student-selected th{background:#DDEDE2;color:#245C38}
html[data-mc-theme="light"] .attendance-class-results>button.selected,html[data-mc-theme="light"] .attendance-class-results>button:hover{color:#245C38}
}

@media screen {
html[data-mc-theme="light"] #payableAlertButton{color:#FFFFFF!important}
html[data-mc-theme="light"] #view .badge{background:#EDF3EF;color:#52685B;border-color:#C7D6CD}
html[data-mc-theme="light"] #view .badge.good{background:#E4F2E8;color:#245C38;border-color:#A7C6B2}
html[data-mc-theme="light"] #view .badge.bad{background:#FFF0ED;color:#9B2922;border-color:#DEB9B2}
html[data-mc-theme="light"] .crm-visual-distribution{background:#EAF2ED;color:#20312B;border-color:#C7D6CD}
}

/* Separação dos módulos de equipes, preservada nos dois temas. */
@media screen{
.menubar .main-menu-divider{flex:0 0 1px;height:24px;margin-inline:18px;background:var(--mc-border);background-color:var(--mc-border)}
@media(max-width:700px){.menubar .main-menu-divider{margin-inline:10px}}
}

/* Ações de turmas no mesmo padrão dos cartões de alunos. */
@media screen{
#view .classes-table th:last-child{min-width:350px;width:370px}
#view .classes-table td:last-child{vertical-align:middle;padding:12px}
#view .classes-table .student-action-buttons{min-width:326px}
#view .classes-table .student-action-group{flex:1}
#view .classes-table .student-action-grid{grid-template-columns:1fr}
#view .classes-table .student-action-buttons button{margin:0;min-height:32px;padding:6px 8px;border:1px solid var(--mc-border);border-radius:6px;background:var(--mc-field);color:var(--mc-text);line-height:1.3;white-space:normal;text-align:center;box-shadow:0 1px 2px #07160E18}
#view .classes-table .student-actions-teaching button{color:var(--mc-positive)}
#view .classes-table .student-actions-management button{color:#F3DFBA;border-color:#99855D}
#view .classes-table .student-action-buttons button:hover{background:var(--mc-selected)}
html[data-mc-theme="light"] #view .classes-table .student-actions-teaching button{color:#245C38;border-color:#A7C6B2}
html[data-mc-theme="light"] #view .classes-table .student-actions-management button{color:#8B4329;border-color:#D4B89F}
@media(pointer:coarse){#view .classes-table .student-action-buttons button{min-height:44px}}
}

/* Seleção do período dentro do cartão Faturamento previsto. */
@media screen{
.executive-card-period .executive-month-control{display:block;min-width:0;margin-top:6px;padding:9px 10px;border:1px solid #60846B;border-left:3px solid #54B37A;border-radius:7px;background:#284332;color:#C8EDD4;font-weight:600;line-height:1.4}
.executive-card-period input[type="month"]{display:block;width:100%;min-width:0;min-height:36px;margin-top:6px;padding:7px 10px;border:1px solid #60846B;border-radius:6px;background:var(--mc-field);color:var(--mc-text);font:inherit;font-weight:400}
html[data-mc-theme="light"] .executive-card-period .executive-month-control{background:#EAF5ED;border-color:#BCD5C4;border-left-color:#16864F;color:#245C38}
html[data-mc-theme="light"] .executive-card-period input[type="month"]{background:#FFFFFF;border-color:#A7C6B2;color:#20312B}
}

/* Mobile restrito aos perfis definidos em mobileLayoutAllowed. Desktop e impressão preservados. */
@media screen and (max-width: 760px){
html[data-mc-mobile="true"] body{min-width:0}
html[data-mc-mobile="true"] #app{height:auto;min-height:100dvh;width:100%;min-width:0}
html[data-mc-mobile="true"] button{touch-action:manipulation}
html[data-mc-mobile="true"] input:not([type=checkbox]):not([type=radio]),html[data-mc-mobile="true"] select,html[data-mc-mobile="true"] textarea{font-size:max(16px,1em);min-height:44px;max-width:100%}
html[data-mc-mobile="true"] .titlebar{gap:8px;padding:8px 10px;align-items:center}
html[data-mc-mobile="true"] .titlebar>strong{display:none}
html[data-mc-mobile="true"] .titlebar .brandbutton{flex:0 0 32px;min-height:44px}
html[data-mc-mobile="true"] .titlebar .school-selector{display:flex;flex-direction:column;align-items:stretch;gap:3px;flex:1 1 90px;min-width:0}
html[data-mc-mobile="true"] .titlebar .school-selector select{width:100%;min-width:0}
html[data-mc-mobile="true"] .titlebar .layout-theme-control{display:flex;flex-direction:column;align-items:stretch;gap:3px;flex:0 0 96px;margin-left:0}
html[data-mc-mobile="true"] .titlebar .layout-theme-control select{min-width:0;width:100%;min-height:44px;font-size:16px}
html[data-mc-mobile="true"] .titlebar>.session-name{order:1;flex:1 0 100%;margin:0;overflow-wrap:anywhere}
html[data-mc-mobile="true"] .titlebar>#payableAlertButton,html[data-mc-mobile="true"] .titlebar>#changePassword,html[data-mc-mobile="true"] .titlebar>#logout{order:2;min-height:44px;white-space:normal}
html[data-mc-mobile="true"] .titlebar>#payableAlertButton{flex:1 1 100px;min-width:0}
html[data-mc-mobile="true"] .titlebar>#changePassword{flex:1 1 100px;min-width:0}
html[data-mc-mobile="true"] .titlebar>#logout{flex:0 0 48px}
html[data-mc-mobile="true"] .menubar{flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding:5px 8px;scroll-padding:8px}
html[data-mc-mobile="true"] .menubar>button{min-height:44px}
html[data-mc-mobile="true"] .menubar .main-menu-divider{margin-inline:12px}
html[data-mc-mobile="true"] .ribbon{display:flex;flex-direction:column;overflow:visible;min-width:0}
html[data-mc-mobile="true"] .ribbon-actions{width:100%;min-width:0;padding:8px;border-right:0}
html[data-mc-mobile="true"] .ribbon-actions>div{display:flex;flex-wrap:nowrap;gap:6px;overflow-x:auto}
html[data-mc-mobile="true"] .ribbon-actions>div>button{flex-shrink:0}
html[data-mc-mobile="true"] .ribbon-actions button{min-height:44px;padding:8px 10px;font-size:inherit}
html[data-mc-mobile="true"] .ribbon-actions>span{display:none}
html[data-mc-mobile="true"] .search-label{margin-top:8px;min-width:0}
html[data-mc-mobile="true"] .ribbon-actions .search-label input{width:100%;min-width:0;flex:1;height:auto}
html[data-mc-mobile="true"] .ribbon-items{width:100%;max-width:100%;min-width:0;overflow-x:auto;flex-wrap:nowrap;padding:6px 8px;gap:6px}
html[data-mc-mobile="true"] .ribbon-items button{flex:0 0 96px;min-height:68px}
html[data-mc-mobile="true"] .ribbon-logo{display:none}
html[data-mc-mobile="true"] .workspace-tabs{max-width:100%;overflow-x:auto;align-items:stretch;min-height:44px}
html[data-mc-mobile="true"] .workspace-tabs button{min-height:44px}
html[data-mc-mobile="true"] .workspace-tabs .close-tab{min-width:38px}
html[data-mc-mobile="true"] #workspace{height:auto;flex:1 0 auto;min-height:45vh;min-width:0;padding:0 6px 8px}
html[data-mc-mobile="true"] #view{flex:1 0 auto;min-width:0;overflow:visible}
html[data-mc-mobile="true"] #view>*{min-width:0;max-width:100%}
html[data-mc-mobile="true"] #view>.grid-wrap,html[data-mc-mobile="true"] .crm-table-wrap{width:100%;max-width:100%;overflow:auto;max-height:70dvh;min-height:100px;overscroll-behavior-x:contain}
html[data-mc-mobile="true"] .grid-wrap table{width:max-content;min-width:100%}
html[data-mc-mobile="true"] .grid-wrap table button{min-height:44px}
html[data-mc-mobile="true"] .view-tools{flex-wrap:wrap;align-items:end;padding:10px;gap:10px}
html[data-mc-mobile="true"] .view-tools>label{flex:1 1 160px;width:auto;min-width:0;max-width:100%}
html[data-mc-mobile="true"] .view-tools>label input,html[data-mc-mobile="true"] .view-tools>label select{width:100%;min-width:0!important;max-width:100%}
html[data-mc-mobile="true"] .view-tools>input,html[data-mc-mobile="true"] .view-tools>select{flex:1 1 160px;width:100%;min-width:0!important}
html[data-mc-mobile="true"] .view-tools>button{min-height:44px;white-space:normal;flex:0 1 auto}
html[data-mc-mobile="true"] .view-tools .grow{flex-basis:100%}
html[data-mc-mobile="true"] .statusbar{position:static;min-width:0;gap:6px;padding:8px 0}
html[data-mc-mobile="true"] .statusbar span{overflow-wrap:anywhere}
html[data-mc-mobile="true"] .executive-panel{display:flex;flex-direction:column;padding:12px;gap:12px;margin:0}
html[data-mc-mobile="true"] .executive-panel .executive-heading{flex-direction:column;align-items:stretch;gap:12px}
html[data-mc-mobile="true"] .executive-panel .executive-heading>div{flex:auto;margin:0}
html[data-mc-mobile="true"] .executive-panel .executive-heading label{width:100%;min-width:0}
html[data-mc-mobile="true"] .executive-panel .executive-cards,html[data-mc-mobile="true"] .executive-panel .executive-lower{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
html[data-mc-mobile="true"] .executive-panel .source-charts,html[data-mc-mobile="true"] .executive-panel .source-bars{grid-template-columns:minmax(0,1fr)}
html[data-mc-mobile="true"] .executive-panel .source-donut{margin-inline:auto}
html[data-mc-mobile="true"] .executive-panel .executive-trend{grid-template-columns:50px minmax(0,1fr) minmax(100px,auto)}
html[data-mc-mobile="true"] .executive-panel .executive-card strong{overflow-wrap:anywhere}
html[data-mc-mobile="true"] .cash-summary-row{flex-direction:column;margin:10px;gap:12px;min-width:0}
html[data-mc-mobile="true"] .cash-summary-row>.reception-cash-summary,html[data-mc-mobile="true"] .cash-summary-row>.cash-calculator{flex:0 1 auto;width:100%;min-width:0}
html[data-mc-mobile="true"] .cash-summary-totals{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
html[data-mc-mobile="true"] .cash-summary-total{padding:12px 10px}
html[data-mc-mobile="true"] .cash-summary-total>strong{font-size:22px;white-space:normal;overflow-wrap:anywhere}
html[data-mc-mobile="true"] .cash-summary-details{grid-template-columns:minmax(0,1fr);gap:16px;padding:12px}
html[data-mc-mobile="true"] .cash-summary-details>.receipt-breakdown:first-child,html[data-mc-mobile="true"] .cash-summary-details>.receipt-breakdown:last-child{padding:0;border:0}
html[data-mc-mobile="true"] .cash-calculator-keys button{height:48px;min-height:48px}
html[data-mc-mobile="true"] .cash-demonstrative{width:100%;min-width:0}
html[data-mc-mobile="true"] .bank-direction-section{max-width:100%;overflow-x:auto}
html[data-mc-mobile="true"] .crm-shell,html[data-mc-mobile="true"] .crm-shell.crm-agenda-shell{width:100%;min-width:0;padding:12px;margin:0;overflow:visible}
html[data-mc-mobile="true"] .crm-header,html[data-mc-mobile="true"] .crm-dashboard-header,html[data-mc-mobile="true"] .crm-simple-header{flex-direction:column;align-items:stretch;gap:10px}
html[data-mc-mobile="true"] .crm-header>*,html[data-mc-mobile="true"] .crm-dashboard-header>*{min-width:0;max-width:100%}
html[data-mc-mobile="true"] .crm-local-nav{flex-wrap:nowrap;overflow-x:auto;max-width:100%;gap:6px}
html[data-mc-mobile="true"] .crm-local-nav button{flex-shrink:0;min-height:44px}
html[data-mc-mobile="true"] .crm-filters,html[data-mc-mobile="true"] .crm-dashboard-filters{flex-wrap:wrap;min-width:0}
html[data-mc-mobile="true"] .crm-filters>*,html[data-mc-mobile="true"] .crm-dashboard-filters>*{min-width:0!important;max-width:100%;flex:1 1 150px}
html[data-mc-mobile="true"] .crm-filters input,html[data-mc-mobile="true"] .crm-filters select,html[data-mc-mobile="true"] .crm-filters input[type=search]{width:100%}
html[data-mc-mobile="true"] .crm-actions>*,html[data-mc-mobile="true"] .crm-filters button{min-height:44px}
html[data-mc-mobile="true"] .crm-workspace,html[data-mc-mobile="true"] .crm-distribution,html[data-mc-mobile="true"] .crm-seller-cards,html[data-mc-mobile="true"] .crm-dashboard-visuals,html[data-mc-mobile="true"] .crm-seller-dashboard .crm-dashboard-visuals{grid-template-columns:minmax(0,1fr)}
html[data-mc-mobile="true"] .crm-contact-list,html[data-mc-mobile="true"] .crm-inline-card{min-width:0;max-width:100%}
html[data-mc-mobile="true"] .crm-grid{min-width:650px}
html[data-mc-mobile="true"] .crm-dashboard-kpis,html[data-mc-mobile="true"] .crm-board-kpis,html[data-mc-mobile="true"] .crm-compact-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
html[data-mc-mobile="true"] .crm-sales-board{grid-template-columns:repeat(5,280px);max-width:100%;overflow-x:auto}
html[data-mc-mobile="true"] .crm-seller-dashboard .crm-vendor-chart-list{grid-template-columns:minmax(0,1fr)}
html[data-mc-mobile="true"] .instructor-visuals,html[data-mc-mobile="true"] .instructor-kpis,html[data-mc-mobile="true"] .instructor-efficiency{min-width:0;max-width:100%}
html[data-mc-mobile="true"] .instructor-visuals{display:grid;grid-template-columns:minmax(0,1fr)}
html[data-mc-mobile="true"] dialog,html[data-mc-mobile="true"] .crm-dialog{width:calc(100% - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);margin:auto;padding:0;overflow:auto}
html[data-mc-mobile="true"] dialog header,html[data-mc-mobile="true"] dialog footer{flex-wrap:wrap;gap:8px;padding:12px}
html[data-mc-mobile="true"] dialog header h2{min-width:0;overflow-wrap:anywhere}
html[data-mc-mobile="true"] dialog button{min-height:44px}
html[data-mc-mobile="true"] .dialog-tabs{overflow-x:auto;flex-wrap:nowrap;max-width:100%}
html[data-mc-mobile="true"] .dialog-tabs button{flex-shrink:0}
html[data-mc-mobile="true"] .form-fields{grid-template-columns:minmax(0,1fr);gap:14px;padding:12px;max-height:none;overflow:visible}
html[data-mc-mobile="true"] .form-fields .wide{grid-column:auto}
html[data-mc-mobile="true"] .form-fields>*,html[data-mc-mobile="true"] .form-fields label{min-width:0;max-width:100%;overflow-wrap:anywhere}
html[data-mc-mobile="true"] .crm-dialog-body{padding:12px;max-height:none;overflow:visible}
html[data-mc-mobile="true"] .crm-dialog form{padding:12px;min-width:0}
html[data-mc-mobile="true"] .settings-page{padding:12px;max-width:100%}
html[data-mc-mobile="true"] .settings-page .two-cols,html[data-mc-mobile="true"] .school-company-grid{grid-template-columns:minmax(0,1fr)}
html[data-mc-mobile="true"] .permission-grid{grid-template-columns:minmax(0,1fr) minmax(110px,140px)}
html[data-mc-mobile="true"] .attendance-class-locator{min-width:0;width:100%}
html[data-mc-mobile="true"] .attendance-matrix{width:max-content;min-width:100%}
html[data-mc-mobile="true"] .attendance-matrix input[type=checkbox]{width:24px;height:24px;margin:10px}
}

/* Contraste explícito no menu de matrícula, inclusive com foco e hover. */
@media screen{
.visit-context-menu{width:min(340px,calc(100vw - 24px));min-width:0;padding:6px;border:1px solid var(--mc-border);border-radius:8px;background:var(--mc-surface);color:var(--mc-text);box-shadow:0 6px 20px #07160E26}
.visit-context-menu button{display:block;min-height:44px;width:100%;padding:11px 12px;border:1px solid transparent;border-radius:6px;background:var(--mc-surface);color:var(--mc-text);text-align:left;line-height:1.4;white-space:normal;box-shadow:none}
.visit-context-menu button:hover,.visit-context-menu button:focus{background:#365A43;color:#F1F7F3;border-color:#83A58E}
.visit-context-menu button:focus-visible{outline:2px solid var(--mc-focus);outline-offset:-3px}
html[data-mc-theme="light"] .visit-context-menu button:hover,html[data-mc-theme="light"] .visit-context-menu button:focus{background:#E0EEE5;color:#163D26;border-color:#9ABDA7}
.visit-context-menu button:disabled{background:var(--mc-surface);color:var(--mc-muted);opacity:1;border-color:transparent;cursor:not-allowed}
}

/* Espaço para nomes completos, sem reduzir fontes ou truncar conteúdo. */
@media screen{
#view table.contracts-table th:nth-child(2),#view table.contracts-table td:nth-child(2),#view table.contracts-table th:nth-child(3),#view table.contracts-table td:nth-child(3),#view table.students-table th:nth-child(2),#view table.students-table td:nth-child(2),#view table.students-table th:nth-child(5),#view table.students-table td:nth-child(5){min-width:260px;width:280px;white-space:normal;word-break:normal;overflow-wrap:break-word}
}

.contract-notes-content{padding:16px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}

@media screen{
.payable-methods-dialog{width:min(860px,calc(100vw - 24px));padding:0}
.payable-methods-body{padding:16px;overflow:auto}
.payable-methods-list{list-style:none;display:flex;flex-wrap:wrap;gap:8px;padding:0;margin:12px 0 20px}
.payable-methods-list li{padding:8px 12px;border:1px solid var(--mc-border);border-radius:6px;background:var(--mc-field);color:var(--mc-text)}
.payable-method-add{display:flex;flex-direction:row;flex-wrap:wrap;align-items:end;gap:10px;padding-top:14px;border-top:1px solid var(--mc-border)}
.payable-method-add label{flex:1 1 220px}.payable-method-add input{width:100%;min-height:36px}.payable-method-add button{min-height:36px}.payable-method-add .error{flex-basis:100%;margin:0;color:var(--mc-negative)}
.payable-history-wrap{max-width:100%;overflow:auto;max-height:55dvh}.payable-history-wrap table{min-width:650px;width:100%}
}

@media screen{.payable-methods-dialog header button{font:inherit;min-height:36px;padding:6px 10px;border:1px solid var(--mc-border);background:var(--mc-field)}}

/* Recebimento por contrato: identificação, seleção e totais no mesmo espaço. */
@media screen{
#view:has(>.receive-workspace){display:block;overflow:auto}
.receive-workspace{padding:12px;display:flex;flex-direction:column;gap:8px;min-width:0;color:var(--mc-text)}
.receive-workspace .receive-group{margin:0;padding:12px;border:1px solid var(--mc-border);border-radius:8px;background:var(--mc-surface);min-width:0}
.receive-group>legend{padding:0 7px;font-weight:bold;color:var(--mc-text)}
.receive-locator{display:flex;align-items:end;flex-wrap:wrap;gap:8px}.receive-locator>label{flex:0 1 360px;min-width:220px}.receive-locator button{min-height:32px}
.receive-identity{display:grid;grid-template-columns:minmax(100px,.45fr) minmax(260px,2fr) minmax(240px,1.8fr);gap:12px}
.receive-payment-fields{display:grid;grid-template-columns:minmax(140px,.8fr) minmax(220px,1.4fr) minmax(220px,1.4fr) minmax(180px,1fr);gap:12px}
.receive-workspace label{font-size:inherit}.receive-workspace input,.receive-workspace select{min-height:32px}.receive-workspace input[readonly]{background:var(--mc-raised);color:var(--mc-text)}
.receive-contract-navigation{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:12px}.receive-contract-navigation>span{color:var(--mc-muted)}
.receive-workspace .receive-installments{overflow:auto;height:clamp(240px,26dvh,330px);min-height:240px;border:1px solid var(--mc-border);border-radius:6px;flex:none;max-width:100%}
.receive-workspace .receive-table{width:1180px;max-width:100%;min-width:1000px!important;table-layout:fixed;border-collapse:separate;border-spacing:0;margin:0}
.receive-table th:first-child{width:170px}.receive-table th:nth-child(2){width:110px}
.receive-table th:nth-child(3),.receive-table th:nth-child(4),.receive-table th:nth-child(5){width:105px}
.receive-table th:nth-child(6){width:140px}.receive-table th:nth-child(7){width:80px}.receive-table th:nth-child(8){width:180px}
.receive-workspace table.receive-table th,.receive-workspace table.receive-table td{padding:4px 8px;vertical-align:middle}
.receive-workspace table.receive-table th.mc-number,.receive-workspace table.receive-table td.mc-number{text-align:right!important;padding-left:12px;padding-right:12px;font-variant-numeric:tabular-nums}
.receive-workspace table.receive-table th.mc-number{line-height:1.35;white-space:normal!important}
.receive-workspace table.receive-table button{margin:0;min-height:28px;padding:4px 8px;white-space:nowrap}
.receive-table th{position:sticky;top:0;z-index:1;background:var(--mc-raised);color:var(--mc-text);padding:9px 12px;white-space:nowrap}
.receive-table td{padding:8px 12px;white-space:nowrap}.receive-table td:first-child{min-width:170px}.receive-table td:nth-child(2){min-width:110px}
#view .receive-table input[type=checkbox]{appearance:none;box-sizing:border-box;width:26px;height:26px;min-height:26px;padding:0;border:2px solid #16864F;border-radius:5px;background:var(--mc-field);margin:2px;vertical-align:middle;cursor:pointer}
#view .receive-table input[type=checkbox]:enabled:not(:checked){background:#C6EDD5;border:3px solid #08763D;outline:2px solid #16864F;outline-offset:2px}
#view .receive-table input[type=checkbox]:checked{background:#16864F url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12 4 4 10-10' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat;border-color:#16864F;box-shadow:0 0 0 3px #16864F22}
#view .receive-table input[type=checkbox]:disabled:not(:checked){background:var(--mc-raised);border-color:var(--mc-border);opacity:.45;cursor:not-allowed;box-shadow:none}
#view .receive-table input[type=checkbox]:focus-visible{outline:3px solid #16864F;outline-offset:3px}
.receive-table th label{display:flex;align-items:center;gap:7px}
@keyframes mc-receive-check-pulse{0%,100%{box-shadow:0 0 0 2px #16864F99}50%{box-shadow:0 0 0 6px #16864F44}}
@media screen and (prefers-reduced-motion:no-preference){#view .receive-table input[type=checkbox]:enabled:not(:checked){animation:mc-receive-check-pulse 2.4s ease-in-out infinite}}
@media(prefers-reduced-motion:reduce){#view .receive-table input[type=checkbox]{animation:none!important}}
.receive-table tr.receive-selected>td{background:var(--mc-selected);color:var(--mc-text)}
.receive-table .receipt-partial-badge{background:#FFF3D5;color:#785000;border:1px solid #D4AB50;white-space:nowrap}
.receipt-status-actions{display:flex;align-items:center;gap:6px}
.receive-workspace table.receive-table tr.receipt-residual-row>td{padding:8px 12px;white-space:normal;background:#FFF1EE;border-left:3px solid #B52C26;color:#A72520}
.receipt-residual-content{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-weight:600}
.receipt-residual-content strong{font-size:15px;font-variant-numeric:tabular-nums}
html[data-mc-theme="dark"] .receive-workspace table.receive-table tr.receipt-residual-row>td{background:#402B29;color:#FFB9AE;border-left-color:#F27C6A}
.receive-workspace table.receive-table button.receipt-paid-print{display:inline-flex;align-items:center;justify-content:center;flex:none;width:30px;height:28px;min-height:28px;padding:3px;background:var(--mc-selected);color:var(--mc-text)}
.receipt-paid-print svg{width:18px;height:18px}
html[data-mc-theme="dark"] .receive-table .receipt-partial-badge{background:#463A20;color:#FFE1A1;border-color:#AD893F}
.receive-workspace .hint{margin:4px 0 10px}.receive-total-grid{display:grid;grid-template-columns:repeat(6,minmax(120px,1fr));gap:10px}
.receive-total-grid>label{display:flex;flex-direction:column;gap:8px;padding:10px;border-radius:6px;background:var(--mc-raised);color:var(--mc-muted)}
.receive-total-grid strong{font-size:16px;font-variant-numeric:tabular-nums;color:var(--mc-text);text-align:right;white-space:nowrap}
.receive-total-grid>.receive-bonus-control{display:flex;flex-direction:column;justify-content:space-between;gap:2px;min-width:0;padding:4px 6px;border:1px solid var(--mc-border);border-radius:6px;background:var(--mc-raised);color:var(--mc-muted);font:inherit;text-align:left;user-select:none}
.receive-total-grid>.receive-bonus-control small{font-size:10px;color:var(--mc-muted)}
.receive-total-grid>.receive-bonus-control.is-released{background:var(--mc-selected);border:2px solid #16864F}
.receive-total-grid>.receive-bonus-control.is-released strong{color:var(--mc-accent,#16864F)}
.receive-total-grid>.receive-bonus-control:focus-visible{outline:2px solid #16864F;outline-offset:2px}
.receive-total-grid>label:last-child{background:var(--mc-field);border:1px solid var(--mc-border)}.receive-total-grid>label:last-child strong{color:var(--mc-accent,#16864F)}
.receive-form-table{width:100%;margin-bottom:12px}.receive-form-table th,.receive-form-table td{padding:8px 12px;text-align:left}.receive-form-table td:nth-child(3){text-align:right;font-variant-numeric:tabular-nums}
.receive-workspace textarea{min-height:54px;margin-top:6px}.receive-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px}.receive-actions select{width:auto;margin-right:auto;max-width:100%}.receive-actions button{min-height:36px}
.receive-print-actions{flex:0 0 100%;display:flex;align-items:center;justify-content:center;gap:6px;min-width:0}
.receive-actions .receive-print-actions button{flex:0 0 auto}
.receive-actions .receive-print-actions .receipt-print-icon{display:inline-flex;align-items:center;justify-content:center;width:44px;min-height:36px;padding:6px;background:var(--mc-selected);color:var(--mc-text)}
.receipt-print-icon svg{width:22px;height:22px}
.class-enrolled-table .student-presence-efficiency{text-align:center;min-width:140px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.student-presence-efficiency button{display:block;margin:4px auto 0!important;font-size:11px;font-weight:normal}
.student-presence-dialog{width:min(980px,96vw);max-height:90vh;padding:0;border:1px solid var(--mc-border);background:var(--mc-surface);color:var(--mc-text)}
.student-presence-dialog header,.student-presence-dialog footer{padding:12px 16px}.student-presence-dialog h2{font-size:18px;margin:0}
.student-presence-body{padding:0 16px 12px;max-height:70vh;overflow:auto}
.student-presence-course-total{display:block;padding:12px;border-radius:6px;background:var(--mc-selected);font-size:20px}
.student-presence-dialog table{width:100%}.student-presence-dialog tfoot{font-weight:bold}.student-presence-dialog td:not(:first-child),.student-presence-dialog th:not(:first-child){text-align:center;font-variant-numeric:tabular-nums}
.student-presence-dialog table.data{font-size:13px}
.student-presence-dialog table.data td{color:var(--mc-text);background:transparent}
.student-presence-dialog table.data tbody tr:nth-child(odd){background:var(--mc-surface)}
.student-presence-dialog table.data tbody tr:nth-child(even){background:var(--mc-raised)}
.student-presence-dialog table.data tbody tr:hover{background:var(--mc-selected)}
.student-presence-dialog table.data th,.student-presence-dialog table.data tfoot tr{background:var(--mc-raised);color:var(--mc-text)}
html[data-mc-theme="light"] .student-presence-dialog table.data tbody tr:nth-child(odd){background:#FFFFFF}
html[data-mc-theme="light"] .student-presence-dialog table.data tbody tr:nth-child(even){background:#F0F6F2}
html[data-mc-theme="light"] .student-presence-dialog table.data tbody tr:hover{background:#E5F1E9}
html[data-mc-theme="light"] .student-presence-dialog table.data td,html[data-mc-theme="light"] .student-presence-dialog table.data th{color:#20312B}
html[data-mc-theme="light"] .student-presence-dialog table.data th,html[data-mc-theme="light"] .student-presence-dialog table.data tfoot tr{background:#E4F0E8}
.receive-feedback:empty{display:none}.receive-feedback{margin:0;color:var(--mc-negative);white-space:pre-wrap}
.receive-contract-results{min-height:0;display:flex;flex-direction:column;overflow:hidden}
.receive-contract-results>.helpbox{margin:4px 0 8px;padding:8px 10px}
.receive-contract-results-list{min-height:0;overflow:auto;flex:1 1 auto}
.receive-contract-results-list table{width:100%;margin:0}
.receive-contract-results-list thead th{position:sticky;top:0;z-index:1}
.receive-no-contract>.receive-contract-results{grid-area:message;align-self:stretch}
@media(max-width:1099px){.receive-contract-results-list{max-height:65dvh}.receive-contract-results{overflow:visible}}
.receive-history{border:1px solid var(--mc-border);border-radius:8px;background:var(--mc-surface);min-width:0}.receive-history>summary{cursor:pointer;padding:12px;font-weight:bold}.receive-history>div{padding:0 12px 12px;overflow:auto}.receive-history .financial-history-panel{display:block}.receive-history .grid-wrap{height:auto;max-height:400px;min-height:100px;overflow:auto}.receive-contract-notice{padding:10px;background:var(--mc-raised);color:var(--mc-text);border:1px solid var(--mc-border);border-radius:6px;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:1050px){.receive-payment-fields{grid-template-columns:repeat(2,minmax(180px,1fr))}.receive-total-grid{grid-template-columns:repeat(3,minmax(120px,1fr))}}
@media(max-width:640px){.receive-identity,.receive-payment-fields{grid-template-columns:minmax(0,1fr)}.receive-locator>label{flex:1 1 100%;min-width:0}.receive-total-grid{grid-template-columns:repeat(2,minmax(110px,1fr))}.receive-workspace{padding:8px;gap:10px}.receive-group{padding:10px}.receive-actions button{flex:1 1 150px}.receive-actions select{width:100%}.receive-workspace .receive-installments{height:400px}.receive-form-table{display:block;overflow:auto}}
}

@media screen{.receive-observation>summary{padding:5px 0;color:var(--mc-text);cursor:pointer}.receive-observation[open]>label{margin-top:5px}}

@media screen{html[data-mc-theme="dark"] .receive-total-grid>label:last-child strong{color:#9DE4B5}}

@media screen{
.receive-identity{padding:12px;border:1px solid #BCDCC8;border-left:4px solid #16864F;border-radius:8px;background:#EDF7F0}
.receive-identity>label{color:#225C3A;font-weight:bold}
.receive-workspace .receive-identity input,.receive-workspace .receive-identity input[readonly],.receive-workspace .receive-identity select{background:#FFFFFF;border-color:#A5C8B3;color:#20312B;font-weight:normal}
html[data-mc-theme="dark"] .receive-identity{background:#29483A;border-color:#4A725B;border-left-color:#73D69A}
html[data-mc-theme="dark"] .receive-identity>label{color:#BDEACA}
html[data-mc-theme="dark"] .receive-workspace .receive-identity input,html[data-mc-theme="dark"] .receive-workspace .receive-identity input[readonly],html[data-mc-theme="dark"] .receive-workspace .receive-identity select{background:#20392C;border-color:#5C856B;color:#F1F7F3}
}

@media screen{
.receive-locator{padding:12px;border:1px solid #D5AA35;border-left:5px solid #C68B08;border-radius:8px;background:#FFF5D6}
.receive-locator>label{font-weight:bold;color:#694900}
.view-tools.cancellation-locator{margin:8px;padding:10px 12px;flex:none;font-size:14px}
.view-tools.cancellation-locator>label{flex:1 1 420px;max-width:650px;min-width:220px;font-size:14px}
.cancellation-locator input,.cancellation-locator button{font-size:14px;min-height:36px}
.cancellation-locator-summary{margin:4px 12px 10px}
.receive-workspace .receive-locator,.receive-workspace .receive-identity-group{font-size:14px}
.receive-workspace .receive-locator input,.receive-workspace .receive-locator>button,.receive-workspace .receive-identity input,.receive-workspace .receive-identity select{font-size:14px;line-height:1.35}
.receive-workspace .receive-contract-navigation,.receive-workspace .receive-contract-navigation button{font-size:13px}
.receive-locator input[type=search]{background:#FFFEF8;color:#20312B;border:2px solid #C69420;min-height:36px;font-weight:normal}
.receive-locator input[type=search]::placeholder{color:#6D623D;opacity:1}
.receive-locator input[type=search]:focus-visible{outline:3px solid #16864F;outline-offset:2px}
html[data-mc-theme="dark"] .receive-locator{background:#423A22;border-color:#B38E36;border-left-color:#F1C65D}
html[data-mc-theme="dark"] .receive-locator>label{color:#FFE5A0}
html[data-mc-theme="dark"] .receive-locator input[type=search]{background:#252D25;color:#F4F7F3;border-color:#D3AE55}
html[data-mc-theme="dark"] .receive-locator input[type=search]::placeholder{color:#DBD1B1}
html[data-mc-theme="dark"] .receive-locator input[type=search]:focus-visible{outline-color:#9DE4B5}
}

@keyframes mc-locator-gentle-pulse{
0%,100%{box-shadow:0 0 0 0 #D5AA3500}
50%{box-shadow:0 0 0 3px #D5AA3538}
}
@media screen and (prefers-reduced-motion:no-preference){
.receive-locator{animation:mc-locator-gentle-pulse 3.6s ease-in-out infinite}
.receive-locator:focus-within{animation:none;box-shadow:0 0 0 2px #16864F33}
}
@media (prefers-reduced-motion:reduce){.receive-locator{animation:none}}

@media screen{
.receive-parcels-group legend button{margin-left:12px;padding:4px 10px;min-height:28px}
.receipt-history-dialog{width:min(1000px,94vw);max-height:90vh;padding:0}
.receipt-history-dialog header,.receipt-history-dialog footer{padding:12px 16px}
.receipt-history-dialog h2{margin:0;font-size:18px}
.receipt-history-body{padding:0 16px 12px;max-height:65vh;overflow:auto}
.receipt-history-body td{white-space:normal;overflow-wrap:anywhere}
.receipt-balance-summary{display:flex;flex-wrap:wrap;gap:10px 20px;padding:10px;margin:8px 0 12px;border:1px solid var(--mc-border);border-radius:6px;background:var(--mc-selected);color:var(--mc-text)}
.installment-receipt-history{max-width:300px}.installment-receipt-history>summary{cursor:pointer;color:var(--mc-text);font-weight:bold;padding:3px 0}
.installment-receipt-entry{display:flex;flex-direction:column;gap:4px;padding:8px 0;border-top:1px solid var(--mc-border);overflow-wrap:anywhere;white-space:normal}
.installment-receipt-entry>strong:first-child{font-variant-numeric:tabular-nums}.receipt-entry-reversed>strong:not(:first-child){color:var(--mc-negative)}
}
@media screen and (min-width:1100px){
#view:has(>.receive-workspace){overflow:hidden}
.receive-workspace{height:100%;min-height:0;padding:6px;gap:6px;display:grid;grid-template-columns:minmax(340px,.8fr) minmax(620px,1.2fr);grid-template-rows:auto auto minmax(0,1fr) auto auto auto;grid-template-areas:"locator identity" "payment payment" "parcels parcels" "totals forms" "history actions" "feedback feedback"}
.receive-workspace .receive-group{padding:6px 8px;min-height:0}
.receive-locator{grid-area:locator;padding:6px 8px;display:grid;grid-template-columns:minmax(150px,1fr) auto auto;gap:5px;align-content:center}
.receive-locator>label{min-width:0}.receive-locator input[type=search]{min-height:30px}.receive-locator>button{min-height:30px;padding:4px 8px;align-self:end}
.receive-locator .receive-contract-navigation{grid-column:1/-1;margin:2px 0 0;gap:5px;justify-content:space-between;flex-wrap:nowrap}
.receive-contract-navigation button{min-height:26px;padding:3px 7px}.receive-contract-navigation>span{white-space:nowrap}
.receive-identity-group{grid-area:identity}.receive-identity{height:100%;padding:7px 9px;gap:8px;align-items:center;grid-template-columns:minmax(75px,.4fr) minmax(180px,1.4fr) minmax(160px,1.2fr)}
.receive-workspace .receive-identity input,.receive-workspace .receive-identity select{min-height:30px}
.receive-payment-group{grid-area:payment}.receive-payment-fields{gap:8px;grid-template-columns:minmax(140px,.8fr) minmax(220px,1.4fr) minmax(220px,1.4fr) minmax(180px,1fr)}
.receive-payment-fields input,.receive-payment-fields select{min-height:30px}
.receive-parcels-group{grid-area:parcels;display:flex;flex-direction:column;overflow:hidden}
.receive-workspace .receive-installments{height:0;min-height:0;max-height:none;flex:1 1 auto}
.receive-table th,.receive-table td{padding:6px 10px}.receive-table{min-width:1000px!important}
.receive-totals-group{grid-area:totals}.receive-total-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}.receive-total-grid>label{padding:4px 6px;gap:2px}.receive-total-grid strong{font-size:16px}
.receive-forms-group{grid-area:forms;position:relative}.receive-form-table{margin:0 0 2px}.receive-form-table th,.receive-form-table td{padding:4px 6px}.receive-observation>summary{padding:3px 0}
.receive-observation[open]>label{position:absolute;bottom:30px;left:8px;right:8px;z-index:5;padding:10px;background:var(--mc-surface);border:1px solid var(--mc-border);border-radius:6px}
.receive-actions{grid-area:actions;gap:6px;align-self:end}.receive-actions select{width:150px;margin-right:auto;min-height:32px}.receive-actions button{min-height:32px;padding:5px 8px}
.receive-history{grid-area:history;position:relative;align-self:end}.receive-history>summary{padding:8px}.receive-history[open]>div{position:absolute;bottom:calc(100% + 6px);left:0;z-index:6;min-width:600px;width:min(1000px,calc(100vw - 40px));max-height:60dvh;overflow:auto;background:var(--mc-surface);border:1px solid var(--mc-border);border-radius:8px;padding:10px}
.receive-feedback{grid-area:feedback;min-width:0}
.receive-no-contract{grid-template-rows:auto 1fr;grid-template-areas:"locator identity" "message message"}.receive-no-contract>.helpbox{grid-area:message;align-self:start}
}
.receive-method-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:8px}
.receive-method-fields select{width:100%;min-width:0}
.receive-split-panel{padding:8px;margin-bottom:8px;border:1px solid var(--mc-border);border-radius:6px;background:var(--mc-raised)}
.receive-split-line{display:grid;grid-template-columns:minmax(0,1fr) minmax(90px,.55fr);gap:8px;margin-bottom:6px}
.receive-split-line select,.receive-split-line input{width:100%;min-width:0;min-height:32px}
.receive-split-summary{margin:4px 0 0;font-weight:bold;color:var(--mc-negative)}
.receive-split-summary.is-complete{color:var(--mc-accent,#16864F)}
@media screen and (min-width:1100px) and (max-width:1599px){#view:has(>.receive-workspace.receive-split-active){overflow:auto}.receive-workspace.receive-split-active{height:auto;min-height:100%;grid-template-rows:auto auto minmax(180px,1fr) auto auto auto}}
.receive-bank-highlight{padding:8px 10px;border:1px solid #6DAF89;border-left:4px solid #16864F;border-radius:7px;background:var(--mc-selected);color:var(--mc-text);font-weight:600}
.receive-bank-highlight select{margin-top:5px;border-color:#6DAF89;background:var(--mc-field);color:var(--mc-text);font-weight:normal}
.receive-bank-highlight select:focus{outline:2px solid #16864F;outline-offset:2px}
html[data-mc-theme="light"] .receive-bank-highlight{background:#E8F5ED;color:#17613B}
html[data-mc-theme="light"] .receive-bank-highlight select{background:#F7FCF9;color:#20312B}
.receive-workspace .receive-payment-fields{grid-template-columns:minmax(160px,220px) minmax(0,1fr)}
.receive-form-table th,.receive-form-table td{text-align:left;vertical-align:middle}
.receive-form-table td:first-child:not([colspan]){text-align:left;font-variant-numeric:tabular-nums}
.receive-form-table td[colspan]{text-align:left;color:var(--mc-muted)}
.receive-form-table td:nth-child(3){text-align:left}
.receive-total-grid>label:last-child{background:var(--mc-selected);border-color:var(--mc-accent,#16864F)}
@media screen and (min-width:1600px){
.receive-workspace:not(.receive-no-contract){grid-template-columns:repeat(12,minmax(0,1fr));grid-template-rows:auto auto auto auto auto minmax(0,1fr) auto auto;grid-template-areas:none;column-gap:12px}
.receive-workspace:not(.receive-no-contract)>.receive-locator{grid-area:1/1/2/6}
.receive-workspace:not(.receive-no-contract)>.receive-identity-group{grid-area:1/6/2/13}
.receive-workspace:not(.receive-no-contract)>.receive-payment-group{grid-area:2/1/3/13}
.receive-workspace:not(.receive-no-contract)>.receive-parcels-group{grid-area:3/1/7/9}
.receive-workspace:not(.receive-no-contract)>.receive-totals-group{grid-area:3/9/4/13}
.receive-workspace:not(.receive-no-contract)>.receive-forms-group{grid-area:4/9/5/13}
.receive-workspace:not(.receive-no-contract)>.receive-actions{grid-area:5/9/6/13;justify-content:flex-start;align-self:start}
.receive-workspace:not(.receive-no-contract)>.receive-feedback{grid-area:6/9/7/13;align-self:start}
.receive-workspace:not(.receive-no-contract)>.receive-history{grid-area:7/1/8/13}
.receive-total-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.receive-total-grid>label{padding:8px;gap:4px}
.receive-workspace .receive-method-fields{grid-template-columns:minmax(0,1fr)}
.receive-actions select{margin-right:0;flex:1 1 160px}
.receive-actions button{flex:1 1 auto}
.receive-actions button.primary{flex-basis:100%}
.receive-workspace:not(.receive-no-contract)>.receive-actions{padding:10px;border:1px solid var(--mc-border);border-radius:8px;background:var(--mc-surface)}
}
@media(max-width:640px){.receive-method-fields,.receive-workspace .receive-payment-fields{grid-template-columns:minmax(0,1fr)}}

/* Compact payment receipt */
.mc-payment-receipt{box-sizing:border-box;width:130mm;max-width:100%;margin:0 auto;padding:3mm 0;background:#fff;color:#202020;font:11pt/1.45 Arial,sans-serif;overflow-wrap:anywhere}
.mc-payment-receipt>header{display:flex;align-items:center;gap:5mm;margin-bottom:8mm}
.mc-payment-receipt>header img{width:25mm;height:18mm;object-fit:contain;flex:none}
.mc-payment-receipt>header strong{font-size:12pt}.mc-payment-receipt>header p{margin:2mm 0 0;font-size:10pt}
.mc-payment-receipt h1{text-align:center;font-size:17pt;margin:0 0 5mm;letter-spacing:.4px}
.mc-payment-receipt table{width:100%;border-collapse:collapse;font:inherit}
.mc-payment-receipt th,.mc-payment-receipt td{padding:2mm 0;vertical-align:top;text-align:left;border:0}
.mc-payment-receipt thead{border-bottom:1px solid #333}
.mc-payment-receipt th:last-child,.mc-payment-receipt td:last-child{text-align:right;white-space:nowrap;width:30mm;padding-left:3mm;font-variant-numeric:tabular-nums}
.mc-payment-receipt tfoot{border-top:1px solid #333}.mc-receipt-total{font-weight:bold;font-size:13pt}
.mc-payment-receipt .mc-receipt-date{margin:7mm 0 3mm}.mc-payment-receipt .mc-receipt-student{margin:0 0 8mm;font-weight:bold}
.mc-receipt-facts p{margin:3mm 0}.mc-payment-receipt>footer{margin-top:6mm;padding-top:2mm;border-top:1px solid #bbb;color:#444;font-size:8pt}
.mc-payment-receipt tr{break-inside:avoid}.mc-payment-receipt thead{display:table-header-group}
@media print{
 .mc-payment-receipt{width:100%;max-width:130mm;margin:0;padding:0;box-shadow:none}
 .mc-payment-receipt header{break-inside:avoid}.mc-payment-receipt tfoot{display:table-row-group}
}

/* Duas vias por folha A4, com corte central. */
.mc-receipt-sheet{box-sizing:border-box;position:relative;width:190mm;height:276mm;margin:0 auto 8mm;background:white;color:#202020;display:grid;grid-template-rows:repeat(2,minmax(0,1fr))}
.mc-receipt-sheet .mc-payment-receipt{position:relative;box-sizing:border-box;width:100%;max-width:none;margin:0;padding:5mm 4mm;font-size:10pt;line-height:1.35}
.mc-receipt-copy-label{text-align:right;font-size:8pt;color:#555;margin-bottom:2mm}
.mc-receipt-sheet .mc-payment-receipt>header{gap:4mm;margin-bottom:3mm}
.mc-receipt-sheet .mc-payment-receipt>header img{width:22mm;height:13mm}
.mc-receipt-sheet .mc-payment-receipt>header strong{font-size:11pt}
.mc-receipt-sheet .mc-payment-receipt>header p{font-size:9pt;margin:1mm 0 0}
.mc-receipt-sheet .mc-payment-receipt h1{font-size:14pt;margin:0 0 3mm}
.mc-receipt-sheet .mc-payment-receipt th,.mc-receipt-sheet .mc-payment-receipt td{padding:1mm 0}
.mc-receipt-sheet .mc-payment-receipt .mc-receipt-total{font-size:12pt}
.mc-receipt-sheet .mc-payment-receipt .mc-receipt-date{margin:4mm 0 2mm}
.mc-receipt-sheet .mc-payment-receipt .mc-receipt-student{margin:0 0 3mm}
.mc-receipt-sheet .mc-receipt-facts p{margin:1.5mm 0}
.mc-receipt-sheet .mc-payment-receipt>footer{margin-top:3mm;padding-top:1mm;font-size:8pt}
.mc-receipt-balances{margin-top:2mm;padding:2mm 0;border-bottom:1px solid #bbb;font-size:10pt}
.mc-receipt-balances p{margin:0 0 1mm}.mc-receipt-balances>div+div{margin-top:2mm}
.mc-receipt-cut{position:absolute;top:50%;left:0;right:0;border-top:1px dashed #888;text-align:center;font:8pt Arial,sans-serif;color:#555;line-height:4mm}
@media print{
 @page mc-receipt-dual{size:A4 portrait;margin:10mm}
 .mc-receipt-sheet{page:mc-receipt-dual;margin:0;height:276mm;width:100%;break-after:page;break-inside:avoid}
 .mc-receipt-sheet:last-child{break-after:auto}
 .mc-receipt-sheet .mc-payment-receipt{page:auto;break-inside:avoid}
}

/* Localizador de Alunos segue a identificação usada no recebimento. */
.students-locator-header{display:grid;grid-template-columns:minmax(340px,.8fr) minmax(460px,1.2fr);gap:8px;margin:6px;flex:none}
.students-locator-header .receive-locator{font-size:14px;grid-area:auto}
.students-locator-header .receive-locator input,.students-locator-header .receive-locator button{font-size:14px;min-height:34px}
.students-locator-header .receive-identity-group{grid-area:auto;margin:0;min-width:0}
.students-locator-header .receive-identity{display:grid;grid-template-columns:100px minmax(180px,1.3fr) minmax(140px,1fr);gap:8px;padding:8px}
.students-locator-header label{display:flex;flex-direction:column;gap:4px;min-width:0}
.students-locator-header .receive-identity input,.students-locator-header .receive-identity select{width:100%;min-width:0;font-size:14px;min-height:34px}
@media(max-width:950px){.students-locator-header{grid-template-columns:1fr}.students-locator-header .receive-identity{grid-template-columns:90px 1fr}.students-locator-header .receive-identity>label:last-child{grid-column:1/-1}}

.students-locator-header .receive-locator>button:first-of-type{background:#16864F;border-color:#16864F;color:#FFFFFF;font-weight:bold}

/* Padrão de cor dos campos de todos os formulários. */
@media screen{
 :root{--mc-form-panel:#EDF7F0;--mc-form-panel-border:#B6D9C3;--mc-form-panel-accent:#16864F;--mc-form-label:#245C3B;--mc-form-input:#FFFFFF;--mc-form-input-text:#20312B;--mc-form-input-border:#94BFA5;--mc-form-readonly:#F0F5F2}
 html[data-mc-theme="dark"]{--mc-form-panel:#29483A;--mc-form-panel-border:#527B61;--mc-form-panel-accent:#73D69A;--mc-form-label:#D6F1DE;--mc-form-input:#20392C;--mc-form-input-text:#F1F7F3;--mc-form-input-border:#73967F;--mc-form-readonly:#263E31}
 :is(#formFields,form,dialog,.form-fields,.visit-form-fields) label:has(>input,>select,>textarea,>.multicheck):not(.multicheck label){padding:10px 12px;min-width:0;background:var(--mc-form-panel);border:1px solid var(--mc-form-panel-border);border-left:4px solid var(--mc-form-panel-accent);border-radius:7px;color:var(--mc-form-label);font-weight:bold}
 :is(#formFields,form,dialog,.form-fields,.visit-form-fields) label> :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){background:var(--mc-form-input);color:var(--mc-form-input-text);border-color:var(--mc-form-input-border);font-weight:normal;max-width:100%}
 :is(#formFields,form,dialog,.form-fields,.visit-form-fields) label> :is(input,textarea)[readonly]{background:var(--mc-form-readonly);color:var(--mc-form-input-text)}
 :is(#formFields,form,dialog,.form-fields,.visit-form-fields) label> :is(input,select,textarea):focus-visible{outline:2px solid var(--mc-form-panel-accent);outline-offset:1px}
}
