#wpcontent{margin-left:0!important;padding-left:0!important}.mam-sa-app{--navy:var(--mam-palette-101f33);--blue:var(--mam-primary);--line:var(--mam-border-color);--text:var(--mam-text-color);--muted:var(--mam-palette-687789);min-height:100vh;display:flex;color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:14px}.mam-sa-sidebar{width:250px;flex:0 0 250px;background:var(--navy);color:var(--mam-palette-eef3f8);min-height:100vh;display:flex;flex-direction:column}.mam-sa-brand{padding:27px 22px 25px;font-size:18px;font-weight:650;letter-spacing:.1px;border-bottom:1px solid var(--mam-palette-ffffff14)}.mam-sa-nav{padding:16px 12px;display:flex;flex-direction:column;gap:4px}.mam-sa-nav-link{display:block;margin:0 3px;color:var(--mam-palette-d4deea);text-decoration:none;padding:12px 14px;border-radius:6px;font-size:14px}.mam-sa-nav-link:hover,.mam-sa-nav-link.is-active{background:var(--mam-palette-243c58);color:var(--mam-palette-fff)}.mam-sa-user{margin-top:auto;border-top:1px solid var(--mam-palette-ffffff20);padding:17px 16px;display:flex;align-items:center;gap:11px}.mam-sa-user img{width:39px;height:39px;border-radius:50%;object-fit:cover}.mam-sa-user-meta{min-width:0;display:flex;flex-direction:column;gap:4px}.mam-sa-user-meta strong{color:var(--mam-palette-fff);font-size:13px;overflow:hidden;text-overflow:ellipsis}.mam-sa-user-meta a{color:var(--mam-palette-c3d0df);text-decoration:none;font-size:12px}.mam-sa-main{min-width:0;flex:1}.mam-sa-header{height:66px;background:var(--mam-layout-bg);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 27px;box-sizing:border-box}.mam-sa-page-title{font-size:17px;font-weight:600;color:var(--mam-text-color)}.mam-sa-header-session{font-size:12px;color:var(--muted)}.mam-sa-content{padding:24px 26px 35px;max-width:1600px;margin:0 auto}.mam-sa-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}.mam-sa-card,.mam-sa-panel{background:var(--mam-layout-bg);border:1px solid var(--line);border-radius:10px;padding:18px;box-sizing:border-box}.mam-sa-card span{display:block;color:var(--muted);font-size:13px}.mam-sa-card strong{display:block;font-size:25px;font-weight:600;margin-top:9px;color:var(--mam-text-color)}.mam-sa-panel{margin-bottom:18px}.mam-sa-panel h2{font-size:15px;font-weight:600;margin:0 0 16px;color:var(--mam-text-color)}.mam-sa-quick{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.mam-sa-quick h2{width:100%;margin-bottom:2px}.mam-sa-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.mam-sa-toolbar input[type=search]{width:min(360px,100%);height:36px;border:1px solid var(--mam-palette-cbd5df);border-radius:5px;padding:6px 10px}.mam-sa-table-wrap{width:100%;overflow:auto;background:var(--mam-layout-bg);border:1px solid var(--line);border-radius:9px}.mam-sa-table{width:100%;border-collapse:collapse;min-width:620px}.mam-sa-table th,.mam-sa-table td{text-align:left;padding:11px 13px;border-bottom:1px solid var(--mam-palette-e8edf2);vertical-align:middle}.mam-sa-table th{background:var(--mam-surface-alt-bg);color:var(--mam-palette-526174);font-size:12px;font-weight:600}.mam-sa-table tr:last-child td{border-bottom:0}.mam-sa-empty{text-align:center;color:var(--muted);padding:25px!important}.mam-sa-warning{color:var(--mam-palette-795b21);background:var(--mam-palette-fffdf7)}.mam-sa-app .button{min-height:34px;padding:5px 12px;border:1px solid var(--mam-palette-cbd5df);border-radius:5px;background:var(--mam-layout-bg);color:var(--mam-palette-34465a);box-shadow:none;line-height:1.5;cursor:pointer}.mam-sa-app .button:hover{border-color:var(--mam-palette-8ea5bc);color:var(--mam-palette-1d4269)}.mam-sa-app .button-primary{background:var(--blue);border-color:var(--blue);color:var(--mam-palette-fff)}.mam-sa-app .button-primary:hover{background:var(--mam-button-hover);color:var(--mam-palette-fff)}.mam-sa-danger{color:var(--mam-palette-a33d3d)!important}.mam-sa-tabs{display:flex;gap:5px;border-bottom:1px solid var(--line);margin-bottom:18px;flex-wrap:wrap}.mam-sa-tabs a{padding:11px 14px;color:var(--mam-palette-526174);text-decoration:none;border-bottom:2px solid transparent}.mam-sa-tabs a.is-active{color:var(--mam-palette-244f7b);border-color:var(--mam-primary);font-weight:600}.mam-sa-settings-form{max-width:850px}.mam-sa-field{display:flex;flex-direction:column;gap:6px;margin:0 0 14px;font-size:13px;color:var(--mam-palette-465568)}.mam-sa-field input,.mam-sa-field select,.mam-sa-field textarea{width:100%;max-width:100%;min-height:36px;border:1px solid var(--mam-palette-cbd5df);border-radius:5px;padding:7px 9px;background:var(--mam-layout-bg);color:var(--mam-text-color);box-sizing:border-box}.mam-sa-field textarea{min-height:78px}.mam-sa-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.mam-sa-check{display:flex;gap:8px;align-items:center;margin:12px 0}.mam-sa-overlay{display:none;position:fixed;inset:0;z-index:100000;background:var(--mam-overlay-backdrop);align-items:center;justify-content:center;padding:20px;box-sizing:border-box}.mam-sa-overlay.is-open{display:flex}.mam-sa-modal{width:100%;max-width:650px;max-height:calc(100vh - 40px);display:flex;flex-direction:column;background:var(--mam-layout-bg);border:1px solid var(--mam-palette-d5dde6);border-radius:9px;box-shadow:0 12px 38px var(--mam-overlay-shadow);overflow:hidden}.mam-sa-modal[data-size=small]{max-width:420px}.mam-sa-modal[data-size=large]{max-width:850px}.mam-sa-modal-head{height:44px;min-height:44px;padding:0 14px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--mam-palette-e2e7ed)}.mam-sa-modal-head h2{font-size:16px;font-weight:600;margin:0;color:var(--mam-text-color)}.mam-sa-close{border:0;background:transparent;color:var(--mam-palette-667587);font-size:25px;line-height:1;cursor:pointer;padding:4px 7px}.mam-sa-modal-body{padding:12px;overflow:auto}.mam-sa-modal-foot{display:flex;justify-content:flex-end;gap:8px;padding:8px 12px;border-top:1px solid var(--mam-palette-e2e7ed);background:var(--mam-layout-bg)}.mam-sa-modal-foot .button{min-height:36px}.mam-sa-modal-body .mam-sa-field:last-child{margin-bottom:0}@media(max-width:900px){.mam-sa-sidebar{width:205px;flex-basis:205px}.mam-sa-content{padding:18px}.mam-sa-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.mam-sa-app{display:block}.mam-sa-sidebar{width:100%;min-height:0}.mam-sa-brand{padding:15px 17px}.mam-sa-nav{padding:7px 9px;display:flex;flex-direction:column}.mam-sa-user{padding:10px 15px}.mam-sa-nav-heading{padding:12px 10px 5px}.mam-sa-nav-link{padding:10px 11px}.mam-sa-header{height:54px;padding:0 16px}.mam-sa-content{padding:14px}.mam-sa-stats{gap:10px}.mam-sa-card{padding:13px}.mam-sa-card strong{font-size:21px}.mam-sa-form-grid{grid-template-columns:1fr}.mam-sa-overlay{padding:10px}.mam-sa-modal{max-height:calc(100vh - 20px)}.mam-sa-toolbar{align-items:stretch}.mam-sa-toolbar input[type=search]{min-width:0}.mam-sa-toolbar .button{white-space:nowrap}}
.mam-sa-filter{display:flex;align-items:end;gap:10px;margin:0 0 15px;padding:12px 14px;background:var(--mam-layout-bg);border:1px solid var(--line);border-radius:8px}.mam-sa-filter label{display:flex;flex-direction:column;gap:5px;color:var(--muted);font-size:12px}.mam-sa-filter input{height:35px;border:1px solid var(--mam-palette-cbd5df);border-radius:5px;padding:5px 8px}.mam-sa-att-list .mam-sa-table{min-width:760px}.mam-sa-att-list select,.mam-sa-att-list input{min-height:33px;max-width:170px;border:1px solid var(--mam-palette-cbd5df);border-radius:4px;padding:5px 7px}.mam-sa-att-list .mam-sa-table td{padding:8px 10px}

/* Sidebar groups and page-level layout additions */
.mam-sa-nav-heading{padding:18px 14px 7px;color:var(--mam-palette-9eafc2);font-size:10px;font-weight:700;letter-spacing:.9px;line-height:1.3}
.mam-sa-nav-spacer{height:10px}
.mam-sa-page-intro{max-width:980px;min-height:72px;display:flex;align-items:center}
.mam-sa-page-intro p{margin:0;color:var(--mam-palette-687789);line-height:1.6}
.mam-sa-content>.mam-sa-tabs{margin-top:0}


/* Student page components: shared tokens, one definition per component */
.mam-sa-student-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:20px}
.mam-sa-student-stat{background:var(--mam-layout-bg);border:1px solid var(--line);border-radius:9px;padding:15px 17px;min-height:76px;box-sizing:border-box}
.mam-sa-student-stat span{display:block;color:var(--muted);font-size:12px}
.mam-sa-student-stat strong{display:block;color:var(--text);font-size:23px;font-weight:600;margin-top:7px}
.mam-sa-student-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 14px}
.mam-sa-student-toolbar-title h2{margin:0;color:var(--text);font-size:16px;font-weight:600}
.mam-sa-student-toolbar-title p{margin:5px 0 0;color:var(--muted);font-size:12px}
.mam-sa-student-filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap;background:var(--mam-layout-bg);border:1px solid var(--line);border-radius:9px;padding:13px;margin-bottom:12px}
.mam-sa-student-filters label{display:flex;flex-direction:column;gap:5px;min-width:145px;color:var(--muted);font-size:11px}
.mam-sa-student-filters label.mam-sa-student-search{flex:1;min-width:220px}
.mam-sa-student-filters input,.mam-sa-student-filters select{height:35px;min-height:35px;border:1px solid var(--mam-palette-cbd5df);border-radius:5px;background:var(--mam-layout-bg);padding:6px 9px;color:var(--text);box-sizing:border-box;width:100%}
.mam-sa-student-result-count{margin-left:auto;padding:0 2px 9px;color:var(--muted);font-size:12px;white-space:nowrap}
.mam-sa-student-table th{white-space:nowrap}
.mam-sa-student-person{display:flex;align-items:center;gap:9px;min-width:160px}
.mam-sa-student-person strong{font-weight:600;color:var(--text)}
.mam-sa-student-avatar{width:30px;height:30px;flex:0 0 30px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:var(--mam-palette-edf2f7);color:var(--mam-palette-42566d);font-size:12px;font-weight:600;text-transform:uppercase}
.mam-sa-student-id{font-size:12px;color:var(--mam-palette-526174);font-weight:600;white-space:nowrap}
.mam-sa-status{display:inline-block;padding:4px 9px;border:1px solid var(--mam-palette-d8e1e9);border-radius:20px;background:var(--mam-surface-alt-bg);color:var(--mam-palette-536273);font-size:11px;line-height:1.2}
.mam-sa-status-active{border-color:var(--mam-palette-cfe3d6);background:var(--mam-palette-f4faf6);color:var(--mam-palette-376448)}
.mam-sa-status-inactive{border-color:var(--mam-palette-e5d9d9);background:var(--mam-palette-fbf7f7);color:var(--mam-palette-865454)}
.mam-sa-actions{white-space:nowrap}
.mam-sa-student-list-footer{display:flex;justify-content:space-between;gap:10px;padding:10px 2px;color:var(--muted);font-size:11px}
@media(max-width:760px){.mam-sa-student-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.mam-sa-student-toolbar{align-items:flex-start}.mam-sa-student-filters label.mam-sa-student-search{flex-basis:100%}}
@media(max-width:520px){.mam-sa-student-summary{grid-template-columns:1fr 1fr;gap:8px}.mam-sa-student-stat{padding:12px}.mam-sa-student-stat strong{font-size:20px}.mam-sa-student-toolbar{flex-direction:column}.mam-sa-student-toolbar .button{width:100%}.mam-sa-student-filters label{flex:1;min-width:calc(50% - 8px)}.mam-sa-student-result-count{width:100%;margin:0;padding:0}.mam-sa-student-list-footer{flex-direction:column}}

/* Staff salary summary uses the same card component as the Student page. */
.mam-sa-salary-summary{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:760px){.mam-sa-salary-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}

.mam-sa-salary-history{margin-top:16px}

/* Staff attendance modal: compact shared-form layout */
.mam-sa-attendance-modal-list{display:grid;gap:10px;max-height:58vh;overflow:auto}
.mam-sa-attendance-modal-row{display:grid;grid-template-columns:minmax(130px,1fr) minmax(120px,.8fr) minmax(150px,1fr);gap:12px;align-items:end;padding:10px;border:1px solid var(--mam-palette-dce3ec);border-radius:8px;background:var(--mam-layout-bg)}
.mam-sa-attendance-person{display:flex;flex-direction:column;gap:4px;padding-bottom:8px}
.mam-sa-attendance-person small{color:var(--mam-secondary)}
.mam-sa-attendance-date-label{margin-bottom:12px;color:var(--mam-palette-475569)}
@media(max-width:760px){.mam-sa-attendance-modal-row{grid-template-columns:1fr 1fr}.mam-sa-attendance-person{grid-column:1/-1}}
@media(max-width:480px){.mam-sa-attendance-modal-row{grid-template-columns:1fr}}

/* Staff Attendance modal: shared field and button system */
.mam-sa-attendance-modal-list{display:grid;gap:10px;max-height:58vh;overflow:auto}
.mam-sa-attendance-modal-row{display:grid;grid-template-columns:minmax(140px,1fr) minmax(130px,.8fr) minmax(160px,1fr);gap:12px;align-items:end;padding:10px;border:1px solid var(--mam-palette-dce3ec);border-radius:8px;background:var(--mam-layout-bg)}
.mam-sa-attendance-person{display:flex;flex-direction:column;gap:4px;padding-bottom:8px}
.mam-sa-attendance-person small{color:var(--mam-secondary)}
.mam-sa-attendance-date-label{margin-bottom:12px;color:var(--mam-palette-475569)}
@media(max-width:760px){.mam-sa-attendance-modal-row{grid-template-columns:1fr 1fr}.mam-sa-attendance-person{grid-column:1/-1}}
@media(max-width:480px){.mam-sa-attendance-modal-row{grid-template-columns:1fr}}

/* Student directory reference layout; reuses shared cards, fields and buttons */
.mam-sa-student-summary-four{grid-template-columns:repeat(4,minmax(0,1fr))}
.mam-sa-student-summary-four .mam-sa-student-stat{border:1px solid var(--mam-palette-d8dee8);border-radius:12px;background:var(--mam-layout-bg);box-shadow:none;min-height:92px}
.mam-sa-student-summary-four .mam-sa-student-stat strong{font-size:30px;line-height:1.2}
.mam-sa-student-summary-four .mam-sa-stat-total{border-color:var(--mam-palette-e45b83)}
.mam-sa-student-summary-four .mam-sa-stat-active{border-color:var(--mam-palette-3976df)}
.mam-sa-student-summary-four .mam-sa-stat-male{border-color:var(--mam-palette-3d9c58)}
.mam-sa-student-summary-four .mam-sa-stat-female{border-color:var(--mam-palette-8951cf)}
.mam-sa-student-filters-reference{display:grid;grid-template-columns:minmax(220px,2.4fr) repeat(3,minmax(115px,.8fr)) auto auto;gap:10px;align-items:end;border:1px solid var(--mam-palette-d8dee8);border-radius:12px;background:var(--mam-layout-bg);padding:14px}
.mam-sa-student-filters-reference label{min-width:0}
.mam-sa-student-filters-reference .mam-sa-student-search{min-width:0}
.mam-sa-student-filters-reference .button{height:40px;white-space:nowrap}
.mam-sa-student-table{min-width:1120px}
.mam-sa-student-table thead th{background:var(--mam-surface-alt-bg);font-weight:600}
.mam-sa-student-table .mam-sa-check-col{width:34px}
.mam-sa-student-table td,.mam-sa-student-table th{vertical-align:middle}
.mam-sa-student-table .mam-sa-actions{white-space:nowrap}
.mam-sa-roll-note{font-size:12px;color:var(--mam-secondary);padding:0 0 4px}
@media(max-width:1100px){.mam-sa-student-filters-reference{grid-template-columns:repeat(3,minmax(0,1fr))}.mam-sa-student-filters-reference .mam-sa-student-search{grid-column:1/-1}}
@media(max-width:760px){.mam-sa-student-summary-four{grid-template-columns:repeat(2,minmax(0,1fr))}.mam-sa-student-filters-reference{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.mam-sa-student-summary-four{grid-template-columns:1fr 1fr;gap:8px}.mam-sa-student-summary-four .mam-sa-student-stat{padding:12px}.mam-sa-student-filters-reference{grid-template-columns:1fr}.mam-sa-student-filters-reference .mam-sa-student-search{grid-column:auto}}

/* Student summary icons and alignment refinements */
.mam-sa-student-summary-four .mam-sa-student-stat{display:flex;align-items:center;gap:14px}
.mam-sa-student-summary-four .mam-sa-stat-icon{width:58px;height:58px;min-width:58px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:30px;line-height:1}
.mam-sa-student-summary-four .mam-sa-stat-copy{display:flex;flex-direction:column;justify-content:center;gap:4px}
.mam-sa-stat-total .mam-sa-stat-icon{background:var(--mam-palette-fdebf1);color:var(--mam-palette-df245d)}
.mam-sa-stat-active .mam-sa-stat-icon{background:var(--mam-palette-eaf1ff);color:var(--mam-palette-1857db)}
.mam-sa-stat-male .mam-sa-stat-icon{background:var(--mam-palette-e8f7eb);color:var(--mam-palette-168a36)}
.mam-sa-stat-female .mam-sa-stat-icon{background:var(--mam-palette-f2eaff);color:var(--mam-palette-7026d9)}
.mam-sa-student-filters-reference select{height:40px;min-height:40px;line-height:normal;padding-top:0;padding-bottom:0;display:flex;align-items:center;box-sizing:border-box}
.mam-sa-student-filters-reference label{justify-content:flex-end}
.mam-sa-student-toolbar-title p{margin:5px 0 0;color:var(--muted);font-size:12px}
.mam-sa-id-format-preview{display:flex;flex-direction:column;gap:5px;padding:12px 14px;margin:0 0 16px;border:1px solid var(--line);border-radius:7px;background:var(--mam-surface-alt-bg)}
.mam-sa-id-format-preview span{font-weight:600;color:var(--text);letter-spacing:.4px}
.mam-sa-id-format-preview small{color:var(--muted)}
/* All controls inside the shared modal use one consistent 35px control height */
.mam-sa-modal-body .mam-sa-field input,
.mam-sa-modal-body .mam-sa-field select{height:35px;min-height:35px;line-height:normal;padding:5px 9px;box-sizing:border-box}
.mam-sa-modal-foot .button{height:35px;min-height:35px;line-height:33px;padding:0 14px}
.mam-sa-student-id-auto{background:var(--mam-surface-alt-bg)!important;color:var(--mam-palette-475569)!important;font-weight:600}

/* Admission category filter and column sizing */
.mam-sa-student-filters-reference{grid-template-columns:minmax(180px,1.65fr) repeat(4,minmax(112px,.82fr)) auto auto}
.mam-sa-student-table{min-width:1240px}
@media(max-width:1100px){.mam-sa-student-filters-reference{grid-template-columns:repeat(3,minmax(0,1fr))}.mam-sa-student-filters-reference .mam-sa-student-search{grid-column:1/-1}}
@media(max-width:760px){.mam-sa-student-filters-reference{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.mam-sa-student-filters-reference{grid-template-columns:1fr}.mam-sa-student-filters-reference .mam-sa-student-search{grid-column:auto}}

/* Student table compact alignment and typography */
.mam-sa-student-table{table-layout:fixed;min-width:1060px;width:100%}
.mam-sa-student-table th,
.mam-sa-student-table td{font-size:12px;line-height:16px;padding:8px 9px;vertical-align:middle}
.mam-sa-student-table th:first-child,
.mam-sa-student-table td:first-child{width:30px;padding-left:7px;padding-right:4px;text-align:center}
.mam-sa-student-table th:nth-child(2),
.mam-sa-student-table td:nth-child(2){width:30px;padding-left:4px;padding-right:5px;text-align:center}
.mam-sa-student-table th:nth-child(3),
.mam-sa-student-table td:nth-child(3){width:94px}
.mam-sa-student-table th:nth-child(4),
.mam-sa-student-table td:nth-child(4){width:54px}
.mam-sa-student-table th:nth-child(5),
.mam-sa-student-table td:nth-child(5){width:120px}
.mam-sa-student-table th:nth-child(6),
.mam-sa-student-table td:nth-child(6){width:112px;padding-left:7px;padding-right:7px}
.mam-sa-student-table th:nth-child(7),
.mam-sa-student-table td:nth-child(7){width:72px}
.mam-sa-student-table th:nth-child(8),
.mam-sa-student-table td:nth-child(8){width:65px}
.mam-sa-student-table th:nth-child(9),
.mam-sa-student-table td:nth-child(9){width:94px}
.mam-sa-student-table th:nth-child(10),
.mam-sa-student-table td:nth-child(10){width:100px}
.mam-sa-student-table th:nth-child(11),
.mam-sa-student-table td:nth-child(11){width:68px}
.mam-sa-student-table th:nth-child(12),
.mam-sa-student-table td:nth-child(12){width:112px}
.mam-sa-student-table .mam-sa-student-person{min-width:0}
.mam-sa-student-table .mam-sa-actions .button{font-size:12px;line-height:16px;padding:4px 8px}

/* Student attendance page — shared School Management visual system */
.mam-sa-attendance-app{display:flex;flex-direction:column;gap:16px}
.mam-sa-attendance-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.mam-sa-attendance-stat{min-height:92px;display:flex;align-items:center;gap:13px;padding:14px 16px;border:1px solid var(--line);border-radius:10px;background:var(--mam-layout-bg)}
.mam-sa-attendance-stat-icon{width:48px;height:48px;flex:0 0 48px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--mam-palette-edf2f8);color:var(--mam-primary)}
.mam-sa-attendance-stat-icon:before{font-family:dashicons;font-size:25px}
.mam-sa-attendance-stat-total{border-color:var(--mam-palette-e4a2b2);background:var(--mam-palette-fffafb)}.mam-sa-attendance-stat-total .mam-sa-attendance-stat-icon{background:var(--mam-palette-fdebf1);color:var(--mam-palette-d52e60)}.mam-sa-attendance-stat-total .mam-sa-attendance-stat-icon:before{content:"\f307"}
.mam-sa-attendance-stat-present{border-color:var(--mam-palette-9dc3ed);background:var(--mam-palette-fafdff)}.mam-sa-attendance-stat-present .mam-sa-attendance-stat-icon{background:var(--mam-palette-e6f0ff);color:var(--mam-palette-1760d5)}.mam-sa-attendance-stat-present .mam-sa-attendance-stat-icon:before{content:"\f147"}
.mam-sa-attendance-stat-absent{border-color:var(--mam-palette-a8d7b6);background:var(--mam-palette-fbfefb)}.mam-sa-attendance-stat-absent .mam-sa-attendance-stat-icon{background:var(--mam-palette-e9f8ed);color:var(--mam-palette-c52b35)}.mam-sa-attendance-stat-absent .mam-sa-attendance-stat-icon:before{content:"\f534"}
.mam-sa-attendance-stat-leave{border-color:var(--mam-palette-cbb0e6);background:var(--mam-palette-fdfbff)}.mam-sa-attendance-stat-leave .mam-sa-attendance-stat-icon{background:var(--mam-palette-f1e9fb);color:var(--mam-palette-6e2ac5)}.mam-sa-attendance-stat-leave .mam-sa-attendance-stat-icon:before{content:"\f508"}
.mam-sa-attendance-stat span{display:block;color:var(--muted);font-size:12px;line-height:16px}.mam-sa-attendance-stat strong{display:block;margin-top:4px;color:var(--text);font-size:25px;line-height:29px;font-weight:700}
.mam-sa-attendance-filters{display:grid;grid-template-columns:minmax(130px,1fr) minmax(130px,1fr) minmax(150px,1.1fr) minmax(145px,1fr) auto auto auto;gap:9px;align-items:end;padding:12px;background:var(--mam-layout-bg);border:1px solid var(--line);border-radius:9px}
.mam-sa-attendance-filters label{display:flex;flex-direction:column;gap:5px;min-width:0;font-size:12px;color:var(--text);font-weight:600}
.mam-sa-attendance-filters select,.mam-sa-attendance-filters input{height:35px;min-height:35px;width:100%;padding:5px 9px;border:1px solid var(--mam-palette-cbd5df);border-radius:6px;background:var(--mam-layout-bg);box-sizing:border-box;font-size:12px;line-height:16px}
.mam-sa-attendance-filters .button{height:35px;min-height:35px;white-space:nowrap;padding:0 12px}
.mam-sa-attendance-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(320px,1fr);gap:14px;align-items:start}
.mam-sa-panel{min-width:0;background:var(--mam-layout-bg);border:1px solid var(--line);border-radius:10px}
.mam-sa-attendance-main{overflow:hidden}
.mam-sa-attendance-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:15px 17px;border-bottom:1px solid var(--line)}
.mam-sa-attendance-heading h3,.mam-sa-panel h3{margin:0;color:var(--text);font-size:17px;line-height:22px;font-weight:650}
.mam-sa-attendance-heading p{margin:4px 0 0;color:var(--muted);font-size:12px;line-height:16px}
.mam-sa-attendance-meta{display:flex;gap:7px;flex-wrap:wrap}
.mam-sa-attendance-meta span{padding:7px 10px;border:1px solid var(--mam-palette-dce5ee);border-radius:6px;background:var(--mam-palette-f7faff);color:var(--mam-palette-344d69);font-size:12px;line-height:16px}
.mam-sa-attendance-table-wrap{border:0;border-radius:0;overflow-x:auto}
.mam-sa-attendance-table{min-width:760px;table-layout:fixed}
.mam-sa-attendance-table th,.mam-sa-attendance-table td{font-size:12px;line-height:16px;padding:8px 9px;vertical-align:middle}
.mam-sa-attendance-table th:nth-child(1){width:42px}.mam-sa-attendance-table th:nth-child(2){width:72px}.mam-sa-attendance-table th:nth-child(3){width:115px}.mam-sa-attendance-table th:nth-child(4){width:145px}.mam-sa-attendance-table th:nth-child(5),.mam-sa-attendance-table th:nth-child(6),.mam-sa-attendance-table th:nth-child(7){width:68px;text-align:center}.mam-sa-attendance-table th:nth-child(8){width:160px}
.mam-sa-attendance-table td:nth-child(5),.mam-sa-attendance-table td:nth-child(6),.mam-sa-attendance-table td:nth-child(7){text-align:center}
.mam-sa-att-student{display:flex;flex-direction:column;gap:2px}.mam-sa-att-student strong{font-size:12px;line-height:16px;font-weight:600}.mam-sa-att-student small{font-size:11px;line-height:14px;color:var(--muted)}
.mam-sa-att-radio{display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.mam-sa-att-radio input{position:absolute;opacity:0;width:1px;height:1px}.mam-sa-att-radio span{width:17px;height:17px;border:1.5px solid var(--mam-palette-aab5c2);border-radius:50%;display:block;position:relative;background:var(--mam-layout-bg)}.mam-sa-att-radio input:checked+span{border:2px solid var(--mam-palette-1764dc)}.mam-sa-att-radio input:checked+span:after{content:"";position:absolute;inset:3px;border-radius:50%;background:var(--mam-palette-1764dc)}
.mam-sa-att-remarks{width:100%;height:32px;min-height:32px;padding:5px 7px;border:1px solid var(--mam-palette-cbd5df);border-radius:5px;font-size:12px;line-height:16px;box-sizing:border-box}
.mam-sa-attendance-footer{display:flex;justify-content:flex-end;gap:9px;padding:12px 16px;border-top:1px solid var(--line)}
.mam-sa-attendance-footer .button{height:35px;min-height:35px;padding:0 15px}
.mam-sa-attendance-side{display:flex;flex-direction:column;gap:14px;min-width:0}
.mam-sa-recent-attendance{padding:14px}
.mam-sa-recent-attendance h3{margin-bottom:12px}
.mam-sa-recent-columns{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.mam-sa-recent-head,.mam-sa-recent-row{display:grid;grid-template-columns:minmax(0,1fr) 76px;align-items:center;gap:6px;padding:7px 8px;font-size:12px;line-height:16px}
.mam-sa-recent-head{background:var(--mam-palette-f4f6f9);border-radius:5px;color:var(--mam-palette-34465a);font-weight:600}
.mam-sa-recent-row{border-bottom:1px solid var(--mam-palette-edf0f3);color:var(--text)}
.mam-sa-recent-row>span:first-child{overflow-wrap:anywhere}
.mam-sa-take-class,.mam-sa-complete{display:inline-flex;justify-content:center;align-items:center;min-height:27px;padding:3px 7px;border:0;border-radius:5px;background:var(--mam-palette-fdebed);color:var(--mam-palette-c52e38);font-size:12px;line-height:16px;font-weight:600;cursor:pointer}
.mam-sa-complete{background:var(--mam-palette-e3f6e9);color:var(--mam-palette-198044)}
.mam-sa-holiday-panel{padding:14px;box-sizing:border-box}
.mam-sa-holiday-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.mam-sa-holiday-heading>div{display:flex;gap:5px}
.mam-sa-holiday-heading .button{width:30px;height:30px;min-height:30px;padding:0;border-radius:50%;font-size:18px;line-height:26px}
.mam-sa-calendar-month{display:flex;align-items:center;justify-content:center;min-height:40px;margin:0 0 10px;padding:8px 10px;box-sizing:border-box;border-radius:6px;background:var(--mam-palette-e6f0ff);color:var(--text);text-align:center;font-size:15px;line-height:20px;font-weight:650}
.mam-sa-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}
.mam-sa-calendar-grid b,.mam-sa-calendar-grid button,.mam-sa-calendar-grid .is-empty{display:flex;align-items:center;justify-content:center;min-height:38px;border-radius:5px;font-size:12px;line-height:16px;box-sizing:border-box}
.mam-sa-calendar-grid b{background:var(--mam-palette-eaf2fc);font-weight:650;color:var(--mam-palette-263b57)}
.mam-sa-calendar-grid button{border:1px solid var(--mam-palette-dce2e9);background:var(--mam-layout-bg);color:var(--text);cursor:pointer}
.mam-sa-calendar-grid button.is-sunday{background:var(--mam-palette-fff0f1);border-color:var(--mam-palette-f6d6da);color:var(--mam-palette-c52e38)}
.mam-sa-calendar-grid button.is-selected{border-color:var(--mam-palette-2670db);background:var(--mam-palette-edf4ff);color:var(--mam-palette-1459c3);font-weight:700}
@media(max-width:1150px){.mam-sa-attendance-filters{grid-template-columns:repeat(4,minmax(0,1fr))}.mam-sa-attendance-layout{grid-template-columns:1fr}.mam-sa-attendance-side{display:grid;grid-template-columns:1fr 1fr}}
@media(max-width:760px){.mam-sa-attendance-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.mam-sa-attendance-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.mam-sa-attendance-filters .button{width:100%}.mam-sa-attendance-side{grid-template-columns:1fr}.mam-sa-attendance-heading{align-items:flex-start;flex-direction:column}}
@media(max-width:480px){.mam-sa-attendance-filters{grid-template-columns:1fr}.mam-sa-attendance-stats{gap:8px}.mam-sa-attendance-stat{padding:10px;gap:8px}.mam-sa-attendance-stat-icon{width:38px;height:38px;flex-basis:38px}.mam-sa-attendance-stat strong{font-size:21px}}

/* Global Student Management visual standard v2.9 */
.mam-sa-student-summary-four .mam-sa-student-stat{min-height:98px;padding:15px 17px}
.mam-sa-student-summary-four .mam-sa-stat-icon{width:48px;height:48px;min-width:48px;font-size:25px}
.mam-sa-student-filters-reference input,
.mam-sa-student-filters-reference select,
.mam-sa-student-filters-reference .button{height:35px;min-height:35px;box-sizing:border-box;font-size:12px;line-height:16px}
.mam-sa-student-filters-reference input,
.mam-sa-student-filters-reference select{padding:5px 9px}
.mam-sa-student-filters-reference .button{padding:0 12px;line-height:33px}
.mam-sa-student-filters-reference label{font-size:12px;line-height:16px}
.mam-sa-attendance-stats{margin-bottom:14px}
.mam-sa-attendance-stats .mam-sa-student-stat{min-height:98px}
.mam-sa-attendance-stats .mam-sa-stat-icon{width:48px;height:48px;min-width:48px;font-size:25px}
.mam-sa-attendance-filters select,
.mam-sa-attendance-filters input,
.mam-sa-attendance-filters .button{height:35px;min-height:35px;box-sizing:border-box;font-size:12px;line-height:16px}
.mam-sa-attendance-filters label{font-size:12px;line-height:16px}
.mam-sa-attendance-filters .button{padding:0 12px;line-height:33px}
#mam-sa-att-load{min-width:128px}
#mam-sa-att-load[aria-busy="true"]{opacity:.78;cursor:wait}
.mam-sa-attendance-table-wrap{min-height:210px}
.mam-sa-attendance-table td input[type="text"]{height:35px;min-height:35px;font-size:12px;line-height:16px;box-sizing:border-box}
@media(max-width:1100px){.mam-sa-attendance-filters{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.mam-sa-attendance-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.mam-sa-attendance-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.mam-sa-attendance-layout{grid-template-columns:1fr}}
@media(max-width:480px){.mam-sa-attendance-filters{grid-template-columns:1fr}}

/* Attendance table compact column layout — aligned with Student table typography */
.mam-sa-attendance-table-wrap{width:100%;min-width:0;overflow-x:hidden}
.mam-sa-attendance-table{width:100%;min-width:0;table-layout:fixed;border-collapse:collapse}
.mam-sa-attendance-table th,
.mam-sa-attendance-table td{font-size:12px;line-height:16px;padding:7px 5px;box-sizing:border-box}
.mam-sa-attendance-table th:nth-child(1){width:4%;text-align:center}
.mam-sa-attendance-table th:nth-child(2){width:8%;white-space:nowrap}
.mam-sa-attendance-table th:nth-child(3){width:14%;white-space:normal}
.mam-sa-attendance-table th:nth-child(4){width:21%}
.mam-sa-attendance-table th:nth-child(5),
.mam-sa-attendance-table th:nth-child(6),
.mam-sa-attendance-table th:nth-child(7){width:7%;text-align:center;white-space:normal}
.mam-sa-attendance-table th:nth-child(8){width:32%}
.mam-sa-attendance-table td:nth-child(1){text-align:center}
.mam-sa-attendance-table td:nth-child(5),
.mam-sa-attendance-table td:nth-child(6),
.mam-sa-attendance-table td:nth-child(7){text-align:center;padding-left:2px;padding-right:2px}
.mam-sa-attendance-table td:nth-child(2),
.mam-sa-attendance-table td:nth-child(3){white-space:normal;overflow-wrap:anywhere}
.mam-sa-attendance-table td:nth-child(4){overflow-wrap:anywhere}
.mam-sa-attendance-table td:nth-child(8){padding-left:4px;padding-right:4px}
.mam-sa-attendance-table .mam-sa-att-remarks{width:100%;min-width:0;height:32px;min-height:32px;padding:4px 6px;font-size:11px;line-height:14px;box-sizing:border-box}
.mam-sa-attendance-table .mam-sa-att-radio span{width:15px;height:15px}
@media(max-width:760px){
 .mam-sa-attendance-table-wrap{overflow-x:auto}
 .mam-sa-attendance-table{min-width:700px}
}

/* Staff directory follows the Student page components and shared modal standards. */
.mam-sa-staff-toolbar-actions{display:flex;align-items:center;gap:8px}
.mam-sa-staff-filters{align-items:end}
.mam-sa-staff-filters label{flex:1;min-width:135px}
.mam-sa-staff-filters label.mam-sa-student-search{flex:1.7;min-width:220px}
.mam-sa-staff-filters>.button{height:35px;min-height:35px;line-height:33px;padding:0 15px}
.mam-sa-staff-table{font-size:12px;line-height:16px}
.mam-sa-staff-table th,.mam-sa-staff-table td{font-size:12px;line-height:16px;padding:9px 8px;vertical-align:middle}
.mam-sa-staff-table .mam-sa-student-person{min-width:110px}
.mam-sa-staff-table .mam-sa-actions .button{min-height:32px;height:32px;line-height:30px;padding:0 12px}
.mam-sa-staff-category{display:inline-block;padding:5px 9px;border-radius:6px;font-size:11px;line-height:16px;font-weight:600;white-space:nowrap;background:var(--mam-palette-edf4ff);color:var(--mam-palette-1761bd)}
.mam-sa-staff-category-non_teaching{background:var(--mam-palette-fff3e5);color:var(--mam-palette-b66a12)}
.mam-sa-modal-body .mam-sa-field input,.mam-sa-modal-body .mam-sa-field select{height:35px;min-height:35px;padding:6px 9px;font-size:12px;line-height:16px}
.mam-sa-modal-body .mam-sa-field textarea{font-size:12px;line-height:16px}
.mam-sa-modal-foot .button{height:35px;min-height:35px;line-height:33px}
@media(max-width:900px){.mam-sa-staff-filters label.mam-sa-student-search{flex-basis:100%}}
@media(max-width:620px){.mam-sa-staff-toolbar-actions{width:100%}.mam-sa-staff-toolbar-actions .button{flex:1}.mam-sa-staff-filters>.button{flex:1}}

/* Staff filter controls: vertically centered and aligned to the shared 12/16 type scale. */
.mam-sa-staff-filters{align-items:center;grid-template-columns:minmax(210px,1.65fr) minmax(125px,.82fr) minmax(145px,.95fr) minmax(125px,.82fr) auto auto;gap:8px}
.mam-sa-staff-filters label{display:flex;flex-direction:column;justify-content:center;align-self:center;gap:4px;min-width:0;margin:0;font-size:12px;line-height:16px}
.mam-sa-staff-filters label>span{display:block;margin:0;font-size:12px;line-height:16px}
.mam-sa-staff-filters input,
.mam-sa-staff-filters select{display:block;width:100%;height:35px;min-height:35px;box-sizing:border-box;padding:0 9px;font-size:12px;line-height:16px;vertical-align:middle}
.mam-sa-staff-filters select{padding-top:0;padding-bottom:0;line-height:normal}
.mam-sa-staff-filters>.button{align-self:center;height:35px;min-height:35px;box-sizing:border-box;padding:0 13px;font-size:12px;line-height:33px}
.mam-sa-staff-filters .mam-sa-student-result-count{font-size:12px;line-height:16px;white-space:nowrap}

/* Staff table uses compact, fixed column proportions and stays within the content width. */
.mam-sa-staff-table-wrap{width:100%;max-width:100%;overflow-x:hidden;overflow-y:visible}
.mam-sa-staff-table{width:100%;min-width:0!important;table-layout:fixed;border-collapse:collapse}
.mam-sa-staff-table th,
.mam-sa-staff-table td{font-size:12px;line-height:16px;padding:7px 5px;box-sizing:border-box;text-align:left;white-space:normal;overflow-wrap:anywhere}
.mam-sa-staff-table th:first-child,
.mam-sa-staff-table td:first-child{width:26px;padding-left:4px;padding-right:2px;text-align:center}
.mam-sa-staff-table th:nth-child(2),
.mam-sa-staff-table td:nth-child(2){width:28px;padding-left:3px;padding-right:3px;text-align:center}
.mam-sa-staff-table th:nth-child(3),
.mam-sa-staff-table td:nth-child(3){width:7%;padding-left:4px;padding-right:4px;white-space:nowrap}
.mam-sa-staff-table th:nth-child(4),
.mam-sa-staff-table td:nth-child(4){width:10%;padding-left:4px;padding-right:4px}
.mam-sa-staff-table th:nth-child(5),
.mam-sa-staff-table td:nth-child(5){width:9%;padding-left:4px;padding-right:4px}
.mam-sa-staff-table th:nth-child(6),
.mam-sa-staff-table td:nth-child(6){width:10%;padding-left:4px;padding-right:4px}
.mam-sa-staff-table th:nth-child(7),
.mam-sa-staff-table td:nth-child(7){width:9%;padding-left:4px;padding-right:4px;white-space:nowrap}
.mam-sa-staff-table th:nth-child(8),
.mam-sa-staff-table td:nth-child(8){width:14%;padding-left:4px;padding-right:4px}
.mam-sa-staff-table th:nth-child(9),
.mam-sa-staff-table td:nth-child(9){width:8%;padding-left:4px;padding-right:4px}
.mam-sa-staff-table th:nth-child(10),
.mam-sa-staff-table td:nth-child(10){width:7%;padding-left:4px;padding-right:4px}
.mam-sa-staff-table th:nth-child(11),
.mam-sa-staff-table td:nth-child(11){width:112px;padding-left:4px;padding-right:4px}
.mam-sa-staff-table .mam-sa-student-person{min-width:0;max-width:100%;padding-left:0}
.mam-sa-staff-table .mam-sa-student-person strong{display:block;white-space:normal;overflow-wrap:anywhere}
.mam-sa-staff-table .mam-sa-actions{white-space:nowrap}
.mam-sa-staff-table .mam-sa-actions .button{height:29px;min-height:29px;line-height:27px;padding:0 7px;font-size:11px}
.mam-sa-staff-table .mam-sa-staff-category{padding:3px 5px;font-size:10px;line-height:14px;white-space:normal}
@media(max-width:1100px){
 .mam-sa-staff-filters{grid-template-columns:repeat(3,minmax(0,1fr))}
 .mam-sa-staff-filters label.mam-sa-student-search{grid-column:span 2;min-width:0}
 .mam-sa-staff-filters>.button{width:100%}
 .mam-sa-staff-table th:nth-child(11),.mam-sa-staff-table td:nth-child(11){width:96px}
}
@media(max-width:760px){
 .mam-sa-staff-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
 .mam-sa-staff-filters label.mam-sa-student-search{grid-column:1/-1}
 .mam-sa-staff-table th,.mam-sa-staff-table td{padding:5px 3px;font-size:11px;line-height:14px}
 .mam-sa-staff-table th:nth-child(11),.mam-sa-staff-table td:nth-child(11){width:88px}
 .mam-sa-staff-table .mam-sa-actions .button{padding:0 4px;font-size:10px}
}

/* Staff filter action buttons align with the select/input control row. */
.mam-sa-staff-filters{align-items:end}
.mam-sa-staff-filters>.button{align-self:end;margin:0 0 0 0;transform:none;position:relative;top:0;vertical-align:bottom}
.mam-sa-staff-filters label{align-self:stretch}

/* Staff Attendance shares the exact Student Attendance cards, calendar, controls and typography. */
.mam-sa-staff-attendance-app .mam-sa-student-summary{margin-bottom:14px}
.mam-sa-staff-attendance-filters{grid-template-columns:repeat(4,minmax(0,1fr)) auto auto auto;align-items:end}
.mam-sa-staff-attendance-filters label{align-self:stretch;justify-content:flex-end}
.mam-sa-staff-attendance-filters select,
.mam-sa-staff-attendance-filters input,
.mam-sa-staff-attendance-filters .button{height:35px;min-height:35px;box-sizing:border-box;font-size:12px;line-height:16px}
.mam-sa-staff-attendance-filters select{padding:0 9px}
.mam-sa-staff-attendance-filters .button{align-self:end;padding:0 13px;line-height:33px;white-space:nowrap}
.mam-sa-staff-attendance-layout{grid-template-columns:minmax(0,1.65fr) minmax(300px,1fr)}
.mam-sa-staff-attendance-table{width:100%;min-width:0;table-layout:fixed}
.mam-sa-staff-attendance-table th,
.mam-sa-staff-attendance-table td{font-size:12px;line-height:16px;padding:8px 6px;vertical-align:middle;box-sizing:border-box}
.mam-sa-staff-attendance-table th:nth-child(1){width:34px}
.mam-sa-staff-attendance-table th:nth-child(2){width:72px}
.mam-sa-staff-attendance-table th:nth-child(3){width:19%}
.mam-sa-staff-attendance-table th:nth-child(4){width:16%}
.mam-sa-staff-attendance-table th:nth-child(5),
.mam-sa-staff-attendance-table th:nth-child(6),
.mam-sa-staff-attendance-table th:nth-child(7){width:58px;text-align:center}
.mam-sa-staff-attendance-table th:nth-child(8){width:150px}
.mam-sa-staff-attendance-table td:nth-child(5),
.mam-sa-staff-attendance-table td:nth-child(6),
.mam-sa-staff-attendance-table td:nth-child(7){text-align:center;padding-left:2px;padding-right:2px}
.mam-sa-staff-attendance-table td:nth-child(3),
.mam-sa-staff-attendance-table td:nth-child(4){overflow-wrap:anywhere}
.mam-sa-staff-attendance-table .mam-sa-att-remarks{width:100%;min-width:0;height:35px;min-height:35px;padding:5px 7px;font-size:12px;line-height:16px;box-sizing:border-box}
.mam-sa-staff-attendance-app .mam-sa-holiday-panel{height:100%;box-sizing:border-box}
@media(max-width:1150px){
 .mam-sa-staff-attendance-filters{grid-template-columns:repeat(4,minmax(0,1fr))}
 .mam-sa-staff-attendance-filters .button{width:100%}
 .mam-sa-staff-attendance-layout{grid-template-columns:1fr}
}
@media(max-width:760px){
 .mam-sa-staff-attendance-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
 .mam-sa-staff-attendance-table{min-width:690px}
 .mam-sa-staff-attendance-table-wrap{overflow-x:auto}
}


/* Staff Salary: reuse the Student page's shared cards, typography, controls and table language. */
.mam-sa-salary-summary{margin-bottom:18px}
.mam-sa-salary-summary .mam-sa-student-stat{min-width:0}
.mam-sa-salary-summary .mam-sa-stat-copy strong{font-size:23px;line-height:1.2;white-space:nowrap}
.mam-sa-salary-toolbar-actions{display:flex;align-items:center;gap:10px}
.mam-sa-salary-toolbar-actions .button{height:35px;min-height:35px;line-height:33px;padding:0 16px}
.mam-sa-salary-filters{display:grid;grid-template-columns:minmax(220px,1.6fr) minmax(150px,.9fr) minmax(145px,.8fr) auto auto;gap:10px;align-items:end}
.mam-sa-salary-filters label{min-width:0}
.mam-sa-salary-filters .mam-sa-student-search{min-width:0}
.mam-sa-salary-filters input,.mam-sa-salary-filters select{height:35px;min-height:35px;font-size:12px;line-height:16px;box-sizing:border-box}
.mam-sa-salary-filters .button{height:35px;min-height:35px;line-height:33px;padding:0 17px;white-space:nowrap}
.mam-sa-salary-overview,.mam-sa-salary-history{margin:14px 0;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--mam-layout-bg)}
.mam-sa-salary-section-heading{display:flex;align-items:center;gap:12px;margin:0 0 12px;padding:0 4px}
.mam-sa-salary-section-heading>.dashicons{font-size:25px;width:25px;height:25px;color:var(--mam-primary)}
.mam-sa-salary-section-heading h2{margin:0;color:var(--text);font-size:17px;line-height:22px;font-weight:650}
.mam-sa-salary-section-heading p{margin:3px 0 0;color:var(--muted);font-size:12px;line-height:16px}
.mam-sa-salary-table,.mam-sa-salary-recent-table{width:100%;min-width:0;table-layout:auto}
.mam-sa-salary-table th,.mam-sa-salary-table td,.mam-sa-salary-recent-table th,.mam-sa-salary-recent-table td{font-size:12px;line-height:16px;padding:9px 8px;vertical-align:middle;white-space:nowrap}
.mam-sa-salary-table thead th,.mam-sa-salary-recent-table thead th{background:var(--mam-surface-alt-bg);font-weight:650}
.mam-sa-salary-table td strong{font-weight:650}
.mam-sa-salary-table .mam-sa-actions{white-space:nowrap}
.mam-sa-salary-table .button,.mam-sa-salary-recent-table .button{height:35px;min-height:35px;line-height:33px;padding:0 13px;font-size:12px}
.mam-sa-salary-recent-table td:last-child{text-align:center}
.mam-sa-salary-recent-table button:disabled{opacity:.65;cursor:not-allowed}
@media(max-width:1100px){
 .mam-sa-salary-filters{grid-template-columns:repeat(3,minmax(0,1fr))}
 .mam-sa-salary-filters .button{width:100%}
 .mam-sa-salary-table,.mam-sa-salary-recent-table{min-width:900px}
}
@media(max-width:760px){
 .mam-sa-salary-summary .mam-sa-student-stat{min-height:82px;padding:10px}
 .mam-sa-salary-summary .mam-sa-stat-copy strong{font-size:17px;white-space:normal}
 .mam-sa-salary-toolbar-actions{flex-wrap:wrap}
 .mam-sa-salary-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
 .mam-sa-salary-filters .mam-sa-student-search{grid-column:1/-1}
 .mam-sa-salary-overview,.mam-sa-salary-history{padding:10px}
}

/* Academic management: intentionally reuses the Student page's shared card, control, modal and table standards. */
.mam-sa-academic-summary{margin-bottom:16px}
.mam-sa-academic-heading{margin:0 0 12px}
.mam-sa-academic-tabs{margin-bottom:14px;gap:4px}
.mam-sa-academic-tabs a{font-size:13px;line-height:18px;padding:10px 14px}
.mam-sa-academic-panel{padding:14px;border:1px solid var(--mam-palette-d8dee8);border-radius:12px;background:var(--mam-layout-bg)}
.mam-sa-academic-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px;padding:0 2px}
.mam-sa-academic-panel-head h2{margin:0;color:var(--text);font-size:17px;line-height:22px;font-weight:650}
.mam-sa-academic-panel-head p{margin:4px 0 0;color:var(--muted);font-size:12px;line-height:16px}
.mam-sa-academic-panel-head .button{height:35px;min-height:35px;padding:0 14px;line-height:33px;font-size:12px}
.mam-sa-academic-filter{display:flex;align-items:center;gap:9px;margin:0 0 12px;padding:10px;border:1px solid var(--mam-palette-d8dee8);border-radius:9px;background:var(--mam-layout-bg)}
.mam-sa-academic-filter input,.mam-sa-academic-filter select{height:35px;min-height:35px;box-sizing:border-box;border:1px solid var(--mam-palette-cbd5df);border-radius:5px;background:var(--mam-layout-bg);color:var(--text);padding:5px 9px;font-size:12px;line-height:16px}
.mam-sa-academic-filter input{flex:1;min-width:180px}
.mam-sa-academic-filter select{min-width:150px}
.mam-sa-academic-table{min-width:0;width:100%;table-layout:auto}
.mam-sa-academic-table th,.mam-sa-academic-table td{font-size:12px;line-height:16px;padding:9px 9px;vertical-align:middle}
.mam-sa-academic-table th{white-space:nowrap;background:var(--mam-surface-alt-bg);color:var(--mam-text-color);font-weight:650}
.mam-sa-academic-table td{color:var(--mam-text-color)}
.mam-sa-academic-table .mam-sa-actions{white-space:nowrap}
.mam-sa-academic-table .button{height:30px;min-height:30px;padding:0 9px;line-height:28px;font-size:12px}
.mam-sa-academic-panel .mam-sa-table-wrap{overflow-x:auto}
.mam-sa-academic-panel [data-academic-row][hidden]{display:none}
.mam-sa-modal-body .mam-sa-field input[type=time]{height:35px;min-height:35px;padding:5px 9px;box-sizing:border-box}
@media(max-width:900px){.mam-sa-academic-table{min-width:760px}}
@media(max-width:620px){.mam-sa-academic-panel-head{align-items:flex-start;flex-direction:column}.mam-sa-academic-panel-head .button{width:100%}.mam-sa-academic-filter{flex-wrap:wrap}.mam-sa-academic-filter input{flex-basis:100%;min-width:0}.mam-sa-academic-filter select{flex:1;min-width:0}.mam-sa-academic-table{min-width:700px}}

.mam-sa-modal-body #mam-sa-record-form input:not([type=checkbox]),.mam-sa-modal-body #mam-sa-record-form select{height:35px;min-height:35px;box-sizing:border-box;font-size:12px;line-height:16px;padding:5px 9px}
.mam-sa-modal-foot .button{height:35px;min-height:35px;line-height:33px}
/* Examination Management: shares the Student page summary, control, table and modal standards. */
.mam-sa-exam-summary{margin-bottom:16px}.mam-sa-exam-heading{margin:0 0 12px}.mam-sa-exam-tabs{margin-bottom:14px;gap:4px}.mam-sa-exam-tabs a{font-size:13px;line-height:18px;padding:10px 14px}.mam-sa-exam-panel{padding:14px;border:1px solid var(--mam-palette-d8dee8);border-radius:12px;background:var(--mam-layout-bg)}.mam-sa-exam-panel .mam-sa-academic-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px;padding:0 2px}.mam-sa-exam-panel .mam-sa-academic-panel-head h2{margin:0;color:var(--text);font-size:17px;line-height:22px;font-weight:650}.mam-sa-exam-panel .mam-sa-academic-panel-head p{margin:4px 0 0;color:var(--muted);font-size:12px;line-height:16px}.mam-sa-exam-panel .mam-sa-academic-panel-head .button{height:35px;min-height:35px;padding:0 14px;line-height:33px;font-size:12px}.mam-sa-exam-panel .mam-sa-academic-filter{display:flex;align-items:center;gap:9px;margin:0 0 12px;padding:10px;border:1px solid var(--mam-palette-d8dee8);border-radius:9px;background:var(--mam-layout-bg)}.mam-sa-exam-panel .mam-sa-academic-filter input,.mam-sa-exam-panel .mam-sa-academic-filter select{height:35px;min-height:35px;box-sizing:border-box;border:1px solid var(--mam-palette-cbd5df);border-radius:5px;background:var(--mam-layout-bg);color:var(--text);padding:5px 9px;font-size:12px;line-height:16px}.mam-sa-exam-panel .mam-sa-academic-filter input{flex:1;min-width:180px}.mam-sa-exam-panel .mam-sa-academic-filter select{min-width:150px}.mam-sa-exam-table{width:100%;min-width:900px;table-layout:auto}.mam-sa-exam-table th,.mam-sa-exam-table td{font-size:12px;line-height:16px;padding:9px 9px;vertical-align:middle}.mam-sa-exam-table th{white-space:nowrap;background:var(--mam-surface-alt-bg);color:var(--mam-text-color);font-weight:650}.mam-sa-exam-table td{color:var(--mam-text-color)}.mam-sa-exam-table .mam-sa-actions{white-space:nowrap}.mam-sa-exam-table .button{height:30px;min-height:30px;padding:0 9px;line-height:28px;font-size:12px}.mam-sa-exam-workflow-note{padding:15px;border:1px solid var(--mam-palette-dce4ed);border-radius:8px;background:var(--mam-surface-alt-bg);color:var(--mam-palette-334155);font-size:13px;line-height:1.6}.mam-sa-exam-workflow-note p{margin:7px 0 0}.mam-sa-exam-panel [hidden]{display:none!important}.mam-sa-modal-body #mam-sa-exam-form input:not([type=checkbox]),.mam-sa-modal-body #mam-sa-exam-form select,.mam-sa-modal-body #mam-sa-exam-subject-form input:not([type=checkbox]),.mam-sa-modal-body #mam-sa-exam-subject-form select{height:35px;min-height:35px;box-sizing:border-box;font-size:12px;line-height:16px;padding:5px 9px}.mam-sa-modal-body #mam-sa-exam-form textarea,.mam-sa-modal-body #mam-sa-exam-subject-form textarea{font-size:12px;line-height:16px}.mam-sa-modal-body #mam-sa-exam-form .mam-sa-check,.mam-sa-modal-body #mam-sa-exam-subject-form .mam-sa-check{align-self:center;margin:20px 0 0;font-size:12px}@media(max-width:900px){.mam-sa-exam-table{min-width:900px}}@media(max-width:620px){.mam-sa-exam-panel .mam-sa-academic-panel-head{align-items:flex-start;flex-direction:column}.mam-sa-exam-panel .mam-sa-academic-panel-head .button{width:100%}.mam-sa-exam-panel .mam-sa-academic-filter{flex-wrap:wrap}.mam-sa-exam-panel .mam-sa-academic-filter input{flex-basis:100%;min-width:0}.mam-sa-exam-panel .mam-sa-academic-filter select{flex:1;min-width:0}.mam-sa-exam-tabs{overflow-x:auto;flex-wrap:nowrap}.mam-sa-exam-tabs a{white-space:nowrap}}
.mam-sa-exam-entry-actions{display:flex;justify-content:flex-end;gap:9px;padding:13px 2px 2px}.mam-sa-exam-panel #mam-sa-exam-entry-form .mam-sa-exam-table{min-width:760px}.mam-sa-exam-panel #mam-sa-exam-entry-form select,.mam-sa-exam-panel #mam-sa-exam-entry-form input[type=text],.mam-sa-exam-panel #mam-sa-exam-entry-form input[type=number]{height:35px;min-height:35px;max-width:100%;box-sizing:border-box;border:1px solid var(--mam-palette-cbd5df);border-radius:5px;padding:5px 8px;font-size:12px;line-height:16px}.mam-sa-exam-panel #mam-sa-exam-entry-form input[type=number]{width:110px}.mam-sa-exam-panel #mam-sa-exam-entry-form input[type=text]{width:150px}.mam-sa-exam-panel #mam-sa-exam-entry-form input[type=checkbox]{width:16px;height:16px}

/* Examination print layouts: retain the Student page's restrained typography and spacing. */
.mam-sa-print-area{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px}.mam-sa-print-card{background:var(--mam-layout-bg);border:1px solid var(--mam-border-color);border-radius:9px;padding:18px;color:var(--mam-palette-172b4d);break-inside:avoid}.mam-sa-print-card header{text-align:center;border-bottom:1px solid var(--mam-border-color);padding-bottom:10px;margin-bottom:12px}.mam-sa-print-card header h2{font-size:18px;line-height:23px;margin:0 0 3px;color:var(--mam-palette-101f33)}.mam-sa-print-card header p{font-size:11px;line-height:15px;margin:0 0 8px;color:var(--mam-palette-687789)}.mam-sa-print-card header strong{font-size:13px;letter-spacing:.5px}.mam-sa-admit-meta,.mam-sa-result-summary{display:flex;gap:10px;flex-wrap:wrap;justify-content:space-between;font-size:11px;line-height:16px;margin:8px 0}.mam-sa-admit-student{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 12px;font-size:12px;line-height:16px;margin:10px 0}.mam-sa-admit-student p{margin:0}.mam-sa-print-card h3{font-size:12px;margin:10px 0 6px}.mam-sa-print-card .mam-sa-table{min-width:0}.mam-sa-print-card .mam-sa-table th,.mam-sa-print-card .mam-sa-table td{font-size:11px;line-height:15px;padding:6px 7px}.mam-sa-print-card footer{display:flex;justify-content:space-between;gap:20px;margin-top:28px;padding-top:8px;font-size:10px;border-top:1px solid var(--mam-border-color)}.mam-sa-result-summary{padding:9px;background:var(--mam-page-bg);border-radius:6px}.mam-sa-exam-panel .mam-sa-settings-form input,.mam-sa-exam-panel input:not([type=checkbox]),.mam-sa-exam-panel select{height:35px;min-height:35px;box-sizing:border-box;font-size:12px;line-height:16px;padding:5px 9px}.mam-sa-exam-panel .mam-sa-table input{width:100%;max-width:180px}@media print{body.mam-sa-printing *{visibility:hidden!important}body.mam-sa-printing #mam-sa-admit-print-area,body.mam-sa-printing #mam-sa-admit-print-area *,body.mam-sa-printing #mam-sa-marksheet-print-area,body.mam-sa-printing #mam-sa-marksheet-print-area *{visibility:visible!important}body.mam-sa-printing #mam-sa-admit-print-area,body.mam-sa-printing #mam-sa-marksheet-print-area{position:absolute;left:0;top:0;width:100%;display:block!important;margin:0;padding:0}body.mam-sa-printing .mam-sa-print-card{border:1px solid var(--mam-palette-9aa7b5);border-radius:0;margin:0 0 12px;page-break-after:always;box-shadow:none}body.mam-sa-printing .mam-sa-print-card:last-child{page-break-after:auto}@page{size:A4;margin:12mm}}@media(max-width:900px){.mam-sa-print-area{grid-template-columns:1fr}}

/* Student Fees follows the Student directory's shared visual standard. */
.mam-sa-fee-summary{margin-bottom:16px}
.mam-sa-fee-panel{padding:14px;border:1px solid var(--mam-palette-d8dee8);border-radius:12px;background:var(--mam-layout-bg)}
.mam-sa-fee-panel .mam-sa-academic-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px;padding:0 2px}
.mam-sa-fee-panel .mam-sa-academic-panel-head h2{margin:0;color:var(--text);font-size:17px;line-height:22px;font-weight:650}
.mam-sa-fee-panel .mam-sa-academic-panel-head p{margin:4px 0 0;color:var(--muted);font-size:12px;line-height:16px}
.mam-sa-fee-panel .mam-sa-academic-panel-head .button{height:35px;min-height:35px;padding:0 14px;line-height:33px;font-size:12px}
.mam-sa-fee-table{width:100%;min-width:850px;table-layout:auto}
.mam-sa-fee-table th,.mam-sa-fee-table td{font-size:12px;line-height:16px;padding:9px 10px;vertical-align:middle}
.mam-sa-fee-table th{background:var(--mam-surface-alt-bg);color:var(--mam-text-color);font-weight:650;white-space:nowrap}
.mam-sa-fee-status{display:inline-flex;align-items:center;justify-content:center;padding:3px 9px;border-radius:20px;font-size:11px;line-height:16px;font-weight:600}
.mam-sa-fee-status.is-active{background:var(--mam-palette-e5f7eb);color:var(--mam-success)}.mam-sa-fee-status.is-inactive{background:var(--mam-palette-f1f3f5);color:var(--mam-secondary)}
.mam-sa-fee-guidance{padding:13px 16px;border:1px solid var(--mam-palette-d8dee8);border-radius:10px;background:var(--mam-layout-bg)}
.mam-sa-fee-guidance h2{margin:0 0 5px;font-size:14px;line-height:20px;color:var(--text)}
.mam-sa-fee-guidance p{margin:0;font-size:12px;line-height:17px;color:var(--muted)}
.mam-sa-fee-class-rates{padding:12px;border:1px solid var(--mam-palette-d8dee8);border-radius:8px;margin:2px 0 14px}
.mam-sa-fee-rates-title{font-size:12px;line-height:16px;font-weight:650;color:var(--mam-text-color);margin-bottom:10px}
.mam-sa-fee-class-rates .mam-sa-form-grid{gap:8px 12px}
.mam-sa-fee-class-rates .mam-sa-field{margin:0}
.mam-sa-fee-modal-note{margin:2px 0 0;padding:9px 11px;border:1px solid var(--mam-palette-d8dee8);border-radius:6px;background:var(--mam-palette-f7f9fc);color:var(--mam-palette-526174);font-size:12px;line-height:16px}
.mam-sa-modal-body #mam-sa-fee-type-form input,.mam-sa-modal-body #mam-sa-fee-type-form select,.mam-sa-modal-body #mam-sa-fee-type-form textarea,.mam-sa-modal-body #mam-sa-fee-collect-form input,.mam-sa-modal-body #mam-sa-fee-collect-form select,.mam-sa-modal-body #mam-sa-fee-collect-form textarea{box-sizing:border-box;font-size:12px;line-height:16px}
.mam-sa-modal-body #mam-sa-fee-type-form input,.mam-sa-modal-body #mam-sa-fee-type-form select,.mam-sa-modal-body #mam-sa-fee-collect-form input:not([type=checkbox]),.mam-sa-modal-body #mam-sa-fee-collect-form select{height:35px;min-height:35px;padding:5px 9px}
.mam-sa-modal-body #mam-sa-fee-type-form textarea,.mam-sa-modal-body #mam-sa-fee-collect-form textarea{min-height:62px;padding:7px 9px}
@media(max-width:760px){.mam-sa-fee-panel .mam-sa-academic-panel-head{align-items:flex-start;flex-direction:column}.mam-sa-fee-panel .mam-sa-academic-panel-head>div:last-child{display:flex;gap:8px;width:100%}.mam-sa-fee-panel .mam-sa-academic-panel-head>div:last-child .button{flex:1}.mam-sa-fee-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}

.mam-sa-fee-due-total{font-size:13px;line-height:18px;color:var(--mam-danger);white-space:nowrap}.mam-sa-fee-status.is-partial{background:var(--mam-palette-fff2d9);color:var(--mam-palette-a16207)}.mam-sa-fee-status.is-due{background:var(--mam-palette-fde8e8);color:var(--mam-danger)}

/* Student Fees: reuse the Student directory filter controls and modal sizing. */
.mam-sa-fee-filters{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:0 0 14px;padding:12px 14px;background:var(--mam-layout-bg);border:1px solid var(--line);border-radius:9px}
.mam-sa-fee-filters label{display:flex;flex:1 1 125px;flex-direction:column;gap:5px;min-width:110px;color:var(--muted);font-size:12px;line-height:16px}
.mam-sa-fee-filters label.mam-sa-student-search{flex:1.5 1 170px;min-width:150px}
.mam-sa-fee-filters input,.mam-sa-fee-filters select{box-sizing:border-box;width:100%;height:35px;min-height:35px;padding:5px 9px;border:1px solid var(--mam-palette-cbd5df);border-radius:5px;background:var(--mam-layout-bg);color:var(--text);font-size:12px;line-height:16px}
.mam-sa-fee-filters .button{height:35px;min-height:35px;padding:0 13px;line-height:33px;font-size:12px;white-space:nowrap}
.mam-sa-fee-actions{white-space:nowrap}.mam-sa-fee-actions .button,.mam-sa-fee-table td .button{height:30px;min-height:30px;padding:0 9px;line-height:28px;font-size:11px}
.mam-sa-fee-table .mam-sa-danger-button{color:var(--mam-danger);border-color:var(--mam-palette-f2c7c7);background:var(--mam-palette-fff5f5)}
.mam-sa-modal-confirm-text{margin:0 0 12px;color:var(--text);font-size:13px;line-height:19px}
.mam-sa-modal-body #mam-sa-fee-reversal-form textarea{box-sizing:border-box;width:100%;font-size:12px;line-height:16px;min-height:72px;padding:7px 9px}
@media(max-width:760px){.mam-sa-fee-filters{align-items:stretch}.mam-sa-fee-filters label,.mam-sa-fee-filters label.mam-sa-student-search{flex:1 1 calc(50% - 10px);min-width:0}.mam-sa-fee-filters .button{flex:1 1 calc(50% - 10px)}}
@media(max-width:480px){.mam-sa-fee-filters label,.mam-sa-fee-filters label.mam-sa-student-search{flex-basis:100%}.mam-sa-fee-filters .button{flex:1}}

/* Shared attendance calendar: holiday, weekly off and examination markers. */
.mam-sa-calendar-settings{display:grid;gap:10px;margin-top:14px;padding-top:13px;border-top:1px solid var(--border,var(--mam-palette-e3e8ef))}
.mam-sa-calendar-settings label{display:grid;gap:5px;font-size:12px;font-weight:600;color:var(--text,var(--mam-text-color))}
.mam-sa-calendar-settings select{width:100%;max-width:100%;min-height:38px;border:1px solid var(--mam-palette-d7dee8);border-radius:6px;padding:7px;background:var(--mam-layout-bg)}
.mam-sa-calendar-settings select[multiple]{height:82px}
.mam-sa-calendar-settings .button{width:100%;justify-content:center;min-height:36px}
.mam-sa-calendar-help{margin:0;color:var(--mam-secondary);font-size:11px;line-height:1.5}
.mam-sa-calendar-grid button.is-holiday{background:var(--mam-palette-fff0f0);border-color:var(--mam-palette-f1b9bd);color:var(--mam-danger);font-weight:700}
.mam-sa-calendar-grid button.is-weekly-off{background:var(--mam-palette-fff7e8);border-color:var(--mam-palette-f4d49a);color:var(--mam-warning);font-weight:700}
.mam-sa-calendar-grid button.is-exam{background:var(--mam-palette-eef4ff);border-color:var(--mam-palette-b9cdf8);color:var(--mam-palette-2459b5);font-weight:700}
.mam-sa-calendar-grid button.is-selected{outline:2px solid var(--mam-palette-2563eb);outline-offset:1px}

/* Settings: centralized school calendar and safe data-management controls. */
.mam-sa-weekly-checks{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:8px 0 12px}.mam-sa-weekly-checks label{display:flex;align-items:center;gap:7px;padding:10px 12px;border:1px solid var(--mam-border-color);border-radius:7px;background:var(--mam-surface-alt-bg);font-size:12px}.mam-sa-calendar-admin>h2:not(:first-child){margin-top:14px}.mam-sa-calendar-range-list{display:grid;gap:7px;margin:7px 0}.mam-sa-calendar-range{display:grid;grid-template-columns:minmax(140px,1.3fr) minmax(130px,1fr) minmax(130px,1fr) auto;gap:8px;align-items:end;padding:7px;border:1px solid var(--mam-palette-e1e7ee);border-radius:8px;background:var(--mam-palette-fbfcfe)}.mam-sa-calendar-range input{width:100%;height:35px;min-height:35px;border:1px solid var(--mam-palette-cbd5df);border-radius:5px;padding:5px 8px;box-sizing:border-box;font-size:12px}.mam-sa-calendar-range label{display:grid;gap:4px;font-size:11px;color:var(--mam-palette-59697b)}.mam-sa-calendar-range>input{margin-bottom:0}.mam-sa-data-management{max-width:1000px}.mam-sa-reset-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.mam-sa-reset-card{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px;border:1px solid var(--mam-palette-dce4ed);border-radius:8px;background:var(--mam-layout-bg)}.mam-sa-reset-card h3{margin:0 0 5px;font-size:14px;color:var(--mam-text-color)}.mam-sa-reset-card p{margin:0;color:var(--mam-palette-687789);font-size:12px;line-height:17px}.mam-sa-reset-card button{flex:0 0 auto}.mam-sa-reset-warning{margin-top:16px;padding:12px;border:1px solid var(--mam-palette-f0d5a6);border-radius:7px;background:var(--mam-palette-fffaf0);color:var(--mam-palette-805b20);font-size:12px;line-height:18px}.mam-sa-holiday-panel .mam-sa-calendar-help{font-size:11px;color:var(--mam-palette-687789);line-height:16px;margin:10px 0 0}.mam-sa-calendar-grid button.is-holiday{background:var(--mam-palette-fee2e2)!important;color:var(--mam-danger)!important;border-color:var(--mam-palette-f3b4b4)!important}.mam-sa-calendar-grid button.is-exam{background:var(--mam-palette-dbeafe)!important;color:var(--mam-palette-1d4ed8)!important;border-color:var(--mam-palette-93c5fd)!important}.mam-sa-calendar-grid button.is-weekly-off{background:var(--mam-palette-fff1d6)!important;color:var(--mam-palette-9a6700)!important;border-color:var(--mam-palette-f2d08a)!important}
@media(max-width:760px){.mam-sa-weekly-checks{grid-template-columns:repeat(2,minmax(0,1fr))}.mam-sa-calendar-range{grid-template-columns:1fr 1fr}.mam-sa-calendar-range>input{grid-column:1/-1}.mam-sa-reset-grid{grid-template-columns:1fr}}

.mam-sa-calendar-legend{display:flex;gap:12px;flex-wrap:wrap;margin-top:9px;font-size:10px;color:var(--mam-palette-58677a)}.mam-sa-calendar-legend span{display:inline-flex;align-items:center;gap:5px}.mam-sa-calendar-legend span:before{content:"";display:inline-block;width:9px;height:9px;border-radius:3px}.mam-sa-calendar-legend .holiday:before{background:var(--mam-palette-ef9a9a)}.mam-sa-calendar-legend .weekly:before{background:var(--mam-palette-efc36e)}.mam-sa-calendar-legend .exam:before{background:var(--mam-palette-75a9ef)}
/* General Settings layout — reuses the Student page palette, controls and spacing. */
.mam-sa-settings-intro{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 16px;padding:0 2px}.mam-sa-settings-intro h2{margin:0 0 3px;color:var(--mam-text-color);font-size:22px;line-height:28px;font-weight:700}.mam-sa-settings-intro p{margin:0;color:var(--mam-palette-687789);font-size:13px;line-height:18px}.mam-sa-settings-session{flex:0 0 auto;padding:8px 12px;border:1px solid var(--mam-border-color);border-radius:7px;background:var(--mam-layout-bg);color:var(--mam-text-color);font-size:12px;font-weight:600}.mam-sa-general-layout{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(255px,.9fr);gap:16px;align-items:start}.mam-sa-general-main,.mam-sa-general-side{min-width:0}.mam-sa-general-section{padding:0;overflow:hidden}.mam-sa-settings-section-head{padding:11px 14px;background:var(--mam-palette-edf3f9);border-bottom:1px solid var(--mam-border-color)}.mam-sa-settings-section-head h3{margin:0;color:var(--mam-text-color);font-size:15px;line-height:20px;font-weight:650}.mam-sa-general-section>.mam-sa-institution-grid,.mam-sa-general-section>.mam-sa-localization-list,.mam-sa-general-section>.mam-sa-preference-list{padding:14px}.mam-sa-institution-grid{display:grid;grid-template-columns:minmax(0,1fr) 165px;gap:15px;align-items:center}.mam-sa-general-section .mam-sa-form-grid{gap:0 13px}.mam-sa-general-section .mam-sa-field{font-size:12px;line-height:16px;color:var(--mam-palette-465568);margin:0 0 10px}.mam-sa-general-section .mam-sa-field em{font-style:normal;color:var(--mam-palette-c43b3b)}.mam-sa-general-section .mam-sa-field input,.mam-sa-general-section .mam-sa-field select,.mam-sa-general-section .mam-sa-field textarea,.mam-sa-localization-list input,.mam-sa-localization-list select{height:35px;min-height:35px;padding:6px 9px;border:1px solid var(--mam-palette-cbd5df);border-radius:5px;font-size:12px;line-height:16px;color:var(--mam-text-color);background:var(--mam-layout-bg);box-sizing:border-box;width:100%;max-width:100%}.mam-sa-general-section .mam-sa-field textarea{height:auto;min-height:70px;resize:vertical}.mam-sa-field-wide{grid-column:1/-1}.mam-sa-logo-setting{display:flex;flex-direction:column;align-items:center;gap:9px;min-width:0}.mam-sa-logo-preview{width:145px;height:145px;display:flex;align-items:center;justify-content:center;border:1px solid var(--mam-border-color);border-radius:9px;background:var(--mam-palette-f5f8fb);overflow:hidden;color:var(--mam-palette-687789);font-size:12px;text-align:center}.mam-sa-logo-preview img{width:100%;height:100%;object-fit:contain}.mam-sa-logo-preview img[hidden],.mam-sa-logo-placeholder[hidden]{display:none}.mam-sa-logo-actions{display:flex;gap:6px;justify-content:center;flex-wrap:wrap}.mam-sa-logo-actions .button{min-height:30px;padding:4px 9px;font-size:12px}.mam-sa-logo-setting small{font-size:10px;line-height:14px;color:var(--mam-palette-687789);text-align:center}.mam-sa-general-lower{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px}.mam-sa-localization-list{display:flex;flex-direction:column;gap:10px}.mam-sa-localization-list label{display:grid;grid-template-columns:minmax(95px,.75fr) minmax(0,1.25fr);align-items:center;gap:8px;color:var(--mam-palette-465568);font-size:12px;line-height:16px}.mam-sa-preference-list{display:flex;flex-direction:column}.mam-sa-preference-row{min-height:39px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid var(--mam-palette-e8edf2);color:var(--mam-palette-34465a);font-size:12px;line-height:16px;cursor:pointer}.mam-sa-preference-row:last-child{border-bottom:0}.mam-sa-preference-row input[type=hidden]{display:none}.mam-sa-preference-row input[type=checkbox]{position:absolute;opacity:0;width:1px;height:1px}.mam-sa-preference-row i{position:relative;display:block;flex:0 0 37px;width:37px;height:21px;border-radius:12px;background:var(--mam-palette-b8c2ce);transition:background .15s}.mam-sa-preference-row i:after{content:"";position:absolute;left:3px;top:3px;width:15px;height:15px;border-radius:50%;background:var(--mam-layout-bg);transition:transform .15s}.mam-sa-preference-row input:checked+i{background:var(--mam-primary)}.mam-sa-preference-row input:checked+i:after{transform:translateX(16px)}.mam-sa-preference-row input:focus-visible+i{outline:2px solid var(--mam-primary);outline-offset:2px}.mam-sa-general-save{margin-top:14px;min-width:150px}.mam-sa-general-side{display:flex;flex-direction:column;gap:14px}.mam-sa-general-side>.mam-sa-settings-overview:last-child{margin-top:26px}.mam-sa-settings-overview{padding:0;overflow:hidden;margin:0}.mam-sa-settings-overview ul{list-style:none;margin:0;padding:6px 13px}.mam-sa-settings-overview li{min-height:34px;display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid var(--mam-palette-e8edf2);color:var(--mam-palette-34465a);font-size:12px;line-height:16px}.mam-sa-settings-overview li:last-child{border-bottom:0}.mam-sa-settings-overview li b{font-size:10px;line-height:15px;font-weight:600;padding:2px 8px;border-radius:10px;white-space:nowrap}.mam-sa-settings-overview li b.is-complete{background:var(--mam-palette-e8f4ec);color:var(--mam-palette-247342)}.mam-sa-settings-overview li b.is-pending{background:var(--mam-palette-fff3df);color:var(--mam-palette-946200)}.mam-sa-settings-quick{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:12px}.mam-sa-settings-quick a{display:flex;align-items:center;justify-content:center;min-height:36px;padding:6px 8px;border:1px solid var(--mam-palette-cbd5df);border-radius:5px;background:var(--mam-layout-bg);color:var(--mam-primary);text-decoration:none;text-align:center;font-size:12px;line-height:16px;font-weight:600}.mam-sa-settings-quick a:hover{background:var(--mam-page-bg);border-color:var(--mam-palette-8ea5bc)}.mam-sa-current-session{margin:12px 14px;color:var(--mam-text-color);font-size:14px;font-weight:650}.mam-sa-settings-overview>.button{margin:0 14px 14px}.mam-sa-settings-tabs{margin-bottom:16px}
@media(max-width:1050px){.mam-sa-general-layout{grid-template-columns:minmax(0,1fr)}.mam-sa-general-side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.mam-sa-general-side .mam-sa-settings-overview:last-child{grid-column:1/-1;margin-top:0}}
@media(max-width:700px){.mam-sa-settings-intro{align-items:flex-start;flex-direction:column}.mam-sa-institution-grid{grid-template-columns:minmax(0,1fr)}.mam-sa-logo-setting{align-items:flex-start}.mam-sa-logo-preview{width:120px;height:120px}.mam-sa-general-lower,.mam-sa-general-side{grid-template-columns:minmax(0,1fr)}.mam-sa-general-side .mam-sa-settings-overview:last-child{grid-column:auto;margin-top:0}.mam-sa-localization-list label{grid-template-columns:1fr;gap:5px}.mam-sa-general-section>.mam-sa-institution-grid,.mam-sa-general-section>.mam-sa-localization-list,.mam-sa-general-section>.mam-sa-preference-list{padding:12px}}

/* Settings quick-action modal windows */
.mam-sa-settings-quick button{width:100%;min-height:36px;display:flex;align-items:center;justify-content:center;font-size:12px;line-height:16px;font-weight:600}
body.mam-sa-modal-open{overflow:hidden}
.mam-sa-academic-session-panel,.mam-sa-academic-config-panel,.mam-sa-academic-manage-panel{padding:0;overflow:hidden}
.mam-sa-academic-top-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.85fr);gap:14px;align-items:stretch;margin-top:14px}.mam-sa-academic-top-grid>.mam-sa-panel{margin:0;min-width:0}.mam-sa-academic-top-grid .mam-sa-academic-config-panel{margin-top:0}
.mam-sa-academic-session-body{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(220px,.8fr);gap:16px;padding:15px}
.mam-sa-academic-current .mam-sa-field{margin:0 0 12px}
.mam-sa-academic-current select{width:100%;height:36px;min-height:36px;font-size:12px}
.mam-sa-academic-session-meta{display:flex;flex-wrap:wrap;gap:8px 18px;color:var(--mam-palette-536477);font-size:12px;line-height:16px}
.mam-sa-academic-session-meta b{color:var(--mam-text-color)}
.mam-sa-academic-session-actions{display:flex;flex-direction:column;gap:8px;padding:12px;background:var(--mam-palette-f4f7fb);border:1px solid var(--mam-palette-e0e7ef);border-radius:7px}
.mam-sa-academic-session-actions h4{margin:0 0 2px;color:var(--mam-text-color);font-size:14px;line-height:18px}
.mam-sa-academic-session-actions .button{width:100%;text-align:left;justify-content:flex-start;min-height:34px;font-size:12px}
.mam-sa-warning-button{border-color:var(--mam-palette-e7c78c)!important;color:var(--mam-warning)!important;background:var(--mam-palette-fff8e9)!important}
.mam-sa-academic-all-sessions{padding:0 15px 15px}
.mam-sa-academic-config-panel .mam-sa-preference-list{padding:8px 15px}
.mam-sa-settings-form-footer,.mam-sa-academic-panel-footer{padding:12px 14px;border-top:1px solid var(--mam-palette-e8edf2)}
.mam-sa-academic-settings-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:14px;align-items:start}
.mam-sa-academic-manage-panel .mam-sa-table-wrap{padding:8px 10px}
.mam-sa-academic-manage-panel .mam-sa-table th,.mam-sa-academic-manage-panel .mam-sa-table td{padding:7px 8px;font-size:12px;line-height:16px}
.mam-sa-academic-manage-panel .mam-sa-table .button{min-height:27px;padding:3px 7px;font-size:11px;line-height:15px}
.mam-sa-academic-manage-panel .mam-sa-settings-section-head h3{font-size:16px;line-height:18px;font-weight:600;color:var(--mam-text-color)}
@media(max-width:1100px){.mam-sa-academic-settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:782px){
.mam-sa-grading-edit-row{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:10px;align-items:end;padding:10px 0;border-bottom:1px solid var(--mam-palette-e8edf2)}.mam-sa-grading-edit-row .mam-sa-field{margin:0}.mam-sa-grading-edit-row .button{margin-bottom:1px}@media(max-width:620px){.mam-sa-grading-edit-row{grid-template-columns:1fr 1fr}.mam-sa-grading-edit-row .button{grid-column:1/-1}}


} /* close the academic settings mobile media query before Fee & Payment desktop rules */

/* Fee & Payment Settings — shared Student-page panels and 35px controls. */
.mam-sa-fee-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:stretch;width:100%;margin-bottom:14px}.mam-sa-fee-settings-panel{padding:0;overflow:hidden;min-width:0}.mam-sa-settings-panel-footer{display:flex;justify-content:flex-start;gap:8px;padding:12px 14px;border-top:1px solid var(--mam-palette-e8edf2)}.mam-sa-settings-panel-body{padding:14px;color:var(--mam-palette-687789);font-size:12px;line-height:16px}.mam-sa-fee-class-picker{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;padding:12px 14px 4px}.mam-sa-fee-class-picker .mam-sa-field,.mam-sa-fee-group-name{margin:0}.mam-sa-fee-settings-panel .mam-sa-field{display:flex;flex-direction:column;gap:5px;color:var(--mam-palette-34465a);font-size:12px;line-height:16px}.mam-sa-fee-settings-panel input:not([type=checkbox]),.mam-sa-fee-settings-panel select{box-sizing:border-box;width:100%;height:35px;min-height:35px;padding:5px 9px;border:1px solid var(--mam-palette-cbd5df);border-radius:5px;background:var(--mam-layout-bg);color:var(--mam-text-color);font-size:12px;line-height:16px}.mam-sa-fee-group-name{padding:4px 14px 10px}.mam-sa-fee-settings-panel .mam-sa-table th,.mam-sa-fee-settings-panel .mam-sa-table td{padding:7px 9px;font-size:12px;line-height:16px}.mam-sa-fee-setting-control{max-width:125px}.mam-sa-fee-required{display:flex;align-items:center;gap:6px;font-size:12px;line-height:16px}.mam-sa-fee-settings-bottom{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:stretch;width:100%;min-width:0}.mam-sa-fee-settings-form .mam-sa-preference-list{padding:8px 14px}.mam-sa-fee-settings-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:10px 14px 14px}.mam-sa-fee-settings-fields .mam-sa-field{margin:0}.mam-sa-fee-fine-fields .mam-sa-field{display:grid;grid-template-columns:minmax(92px,44%) minmax(0,1fr);align-items:center;gap:8px}.mam-sa-fee-fine-fields .mam-sa-field>span{margin:0}.mam-sa-fee-settings-fields input,.mam-sa-fee-settings-fields select{height:35px;min-height:35px;box-sizing:border-box}.mam-sa-fee-settings-panel .mam-sa-fee-class-picker select{height:35px;min-height:35px}.mam-sa-fee-settings-form .mam-sa-settings-form-footer{padding:12px 0;margin-top:14px}.mam-sa-fee-settings-panel .mam-sa-table-wrap{width:100%;min-width:0;height:auto;min-height:0;overflow-x:hidden;overflow-y:hidden;padding:8px 10px 0;background:transparent;border:0;border-radius:0;box-sizing:border-box}.mam-sa-fee-settings-panel .mam-sa-table .button{height:35px;min-height:35px;padding:0 10px;line-height:33px;font-size:12px}
@media(max-width:900px){.mam-sa-fee-settings-grid{grid-template-columns:1fr}.mam-sa-fee-settings-bottom{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.mam-sa-fee-settings-bottom,.mam-sa-fee-class-picker,.mam-sa-fee-settings-fields{grid-template-columns:1fr}}
.mam-sa-fee-settings-panel .button,.mam-sa-fee-settings-form .button{box-sizing:border-box;height:35px;min-height:35px;padding:0 12px;line-height:33px;font-size:12px}

/* v2.11.8 — content-sized Academic and Fee & Payment tables (no horizontal scrolling). */
.mam-sa-academic-settings-grid,
.mam-sa-fee-settings-grid{
  align-items:start;
  grid-auto-rows:min-content;
}
.mam-sa-academic-manage-panel,
.mam-sa-fee-settings-panel{
  align-self:start;
  min-width:0;
  min-height:0;
  height:auto;
}
 .mam-sa-academic-manage-panel .mam-sa-table-wrap,
.mam-sa-fee-settings-panel .mam-sa-table-wrap{
  width:100%;
  min-width:0;
  height:auto;
  min-height:0;
  overflow-x:hidden;
  overflow-y:hidden;
  box-sizing:border-box;
}
.mam-sa-academic-settings-grid > .mam-sa-academic-manage-panel:not(.mam-sa-grading-panel) .mam-sa-table-wrap{
  padding:8px 10px 0;
  background:transparent;
  border:0;
  border-radius:0;
}
.mam-sa-academic-manage-panel .mam-sa-table,
.mam-sa-fee-settings-panel .mam-sa-table{
  width:100%;
  min-width:0;
  max-width:100%;
  table-layout:fixed;
  border-collapse:collapse;
}
.mam-sa-academic-manage-panel .mam-sa-table th,
.mam-sa-academic-manage-panel .mam-sa-table td,
.mam-sa-fee-settings-panel .mam-sa-table th,
.mam-sa-fee-settings-panel .mam-sa-table td{
  min-width:0;
  overflow-wrap:anywhere;
  word-break:normal;
  white-space:normal;
  box-sizing:border-box;
}
.mam-sa-academic-manage-panel .mam-sa-table .mam-sa-actions,
.mam-sa-fee-settings-panel .mam-sa-table .mam-sa-fee-actions{
  white-space:nowrap;
  overflow-wrap:normal;
}
.mam-sa-academic-manage-panel .mam-sa-table .mam-sa-actions .button,
.mam-sa-fee-settings-panel .mam-sa-table .mam-sa-fee-actions .button{
  display:inline-block;
  white-space:nowrap;
  margin:1px 2px 1px 0;
  padding-left:6px;
  padding-right:6px;
  max-width:100%;
  box-sizing:border-box;
}
/* Academic table-specific column proportions. */
.mam-sa-academic-manage-panel:not(.mam-sa-grading-panel) .mam-sa-table th:nth-child(1),
.mam-sa-academic-manage-panel:not(.mam-sa-grading-panel) .mam-sa-table td:nth-child(1){width:27%}
.mam-sa-academic-manage-panel:not(.mam-sa-grading-panel) .mam-sa-table th:nth-child(2),
.mam-sa-academic-manage-panel:not(.mam-sa-grading-panel) .mam-sa-table td:nth-child(2){width:17%}
.mam-sa-academic-manage-panel:not(.mam-sa-grading-panel) .mam-sa-table th:nth-child(3),
.mam-sa-academic-manage-panel:not(.mam-sa-grading-panel) .mam-sa-table td:nth-child(3){width:20%}
.mam-sa-academic-manage-panel:not(.mam-sa-grading-panel) .mam-sa-table th:nth-child(4),
.mam-sa-academic-manage-panel:not(.mam-sa-grading-panel) .mam-sa-table td:nth-child(4){width:36%}
/* Subject Management: give the Class column enough room without wasting table width. */
.mam-sa-academic-settings-grid > .mam-sa-academic-manage-panel:nth-child(2) .mam-sa-table th:nth-child(1),
.mam-sa-academic-settings-grid > .mam-sa-academic-manage-panel:nth-child(2) .mam-sa-table td:nth-child(1){width:30%}
.mam-sa-academic-settings-grid > .mam-sa-academic-manage-panel:nth-child(2) .mam-sa-table th:nth-child(2),
.mam-sa-academic-settings-grid > .mam-sa-academic-manage-panel:nth-child(2) .mam-sa-table td:nth-child(2){width:24%}
.mam-sa-academic-settings-grid > .mam-sa-academic-manage-panel:nth-child(2) .mam-sa-table th:nth-child(3),
.mam-sa-academic-settings-grid > .mam-sa-academic-manage-panel:nth-child(2) .mam-sa-table td:nth-child(3){width:18%}
.mam-sa-academic-settings-grid > .mam-sa-academic-manage-panel:nth-child(2) .mam-sa-table th:nth-child(4),
.mam-sa-academic-settings-grid > .mam-sa-academic-manage-panel:nth-child(2) .mam-sa-table td:nth-child(4){width:28%}
.mam-sa-grading-panel .mam-sa-table th:nth-child(1),
.mam-sa-grading-panel .mam-sa-table td:nth-child(1){width:24%}
.mam-sa-grading-panel .mam-sa-table th:nth-child(2),
.mam-sa-grading-panel .mam-sa-table td:nth-child(2){width:43%}
.mam-sa-grading-panel .mam-sa-table th:nth-child(3),
.mam-sa-grading-panel .mam-sa-table td:nth-child(3){width:33%}
/* Fee Type Management: reserve only the width needed for compact row actions. */
.mam-sa-fee-settings-grid>.mam-sa-fee-settings-panel:first-child .mam-sa-table th:nth-child(1),
.mam-sa-fee-settings-grid>.mam-sa-fee-settings-panel:first-child .mam-sa-table td:nth-child(1){width:8%}
.mam-sa-fee-settings-grid>.mam-sa-fee-settings-panel:first-child .mam-sa-table th:nth-child(2),
.mam-sa-fee-settings-grid>.mam-sa-fee-settings-panel:first-child .mam-sa-table td:nth-child(2){width:24%}
.mam-sa-fee-settings-grid>.mam-sa-fee-settings-panel:first-child .mam-sa-table th:nth-child(3),
.mam-sa-fee-settings-grid>.mam-sa-fee-settings-panel:first-child .mam-sa-table td:nth-child(3){width:22%}
.mam-sa-fee-settings-grid>.mam-sa-fee-settings-panel:first-child .mam-sa-table th:nth-child(4),
.mam-sa-fee-settings-grid>.mam-sa-fee-settings-panel:first-child .mam-sa-table td:nth-child(4){width:16%}
.mam-sa-fee-settings-grid>.mam-sa-fee-settings-panel:first-child .mam-sa-table th:nth-child(5),
.mam-sa-fee-settings-grid>.mam-sa-fee-settings-panel:first-child .mam-sa-table td:nth-child(5){width:30%}
/* Class Fee Setup table: compact amount and required columns. */
.mam-sa-fee-settings-grid>.mam-sa-fee-settings-panel:nth-child(2) .mam-sa-table th:nth-child(1),
.mam-sa-fee-settings-grid>.mam-sa-fee-settings-panel:nth-child(2) .mam-sa-table td:nth-child(1){width:44%}
.mam-sa-fee-settings-grid>.mam-sa-fee-settings-panel:nth-child(2) .mam-sa-table th:nth-child(2),
.mam-sa-fee-settings-grid>.mam-sa-fee-settings-panel:nth-child(2) .mam-sa-table td:nth-child(2){width:32%}
.mam-sa-fee-settings-grid>.mam-sa-fee-settings-panel:nth-child(2) .mam-sa-table th:nth-child(3),
.mam-sa-fee-settings-grid>.mam-sa-fee-settings-panel:nth-child(2) .mam-sa-table td:nth-child(3){width:24%}
.mam-sa-fee-settings-panel .mam-sa-fee-setting-control{
  display:block;
  width:100%;
  max-width:110px;
  min-width:0;
}
.mam-sa-fee-settings-panel .mam-sa-fee-required{
  gap:4px;
  white-space:nowrap;
}
.mam-sa-fee-settings-panel .mam-sa-fee-required input{margin:0;flex:0 0 auto}
@media(max-width:1100px){
  .mam-sa-academic-settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:782px){
  .mam-sa-academic-settings-grid,
  .mam-sa-fee-settings-grid{grid-template-columns:minmax(0,1fr)}
  .mam-sa-academic-manage-panel .mam-sa-table,
  .mam-sa-fee-settings-panel .mam-sa-table{table-layout:fixed}
}

/* v2.11.9 — Exam & Result settings: Student-page panel rhythm and compact controls. */
.mam-sa-exam-result-form{display:block;min-width:0}
.mam-sa-exam-result-top-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:14px;align-items:stretch;margin-top:14px}
.mam-sa-exam-result-bottom-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr) minmax(0,1.15fr);gap:14px;align-items:stretch;margin-top:14px}
.mam-sa-exam-result-panel{padding:0;min-width:0;min-height:0;height:auto;overflow:hidden;margin:0}
.mam-sa-exam-result-panel .mam-sa-table-wrap{width:100%;min-width:0;height:auto;min-height:0;overflow-x:hidden;overflow-y:hidden;padding:8px 10px;box-sizing:border-box}
.mam-sa-exam-result-panel .mam-sa-table{width:100%;min-width:0;max-width:100%;table-layout:fixed;border-collapse:collapse}
.mam-sa-exam-result-panel .mam-sa-table th,.mam-sa-exam-result-panel .mam-sa-table td{min-width:0;padding:7px 6px;font-size:12px;line-height:16px;white-space:normal;overflow-wrap:anywhere;box-sizing:border-box}
.mam-sa-exam-result-panel .mam-sa-table th:nth-child(1),.mam-sa-exam-result-panel .mam-sa-table td:nth-child(1){width:10%}
.mam-sa-exam-result-panel .mam-sa-table th:nth-child(2),.mam-sa-exam-result-panel .mam-sa-table td:nth-child(2){width:30%}
.mam-sa-exam-result-panel .mam-sa-table th:nth-child(3),.mam-sa-exam-result-panel .mam-sa-table td:nth-child(3){width:22%}
.mam-sa-exam-result-panel .mam-sa-table th:nth-child(4),.mam-sa-exam-result-panel .mam-sa-table td:nth-child(4){width:38%}
.mam-sa-exam-result-panel .mam-sa-table .mam-sa-actions{white-space:nowrap;overflow-wrap:normal}
.mam-sa-exam-result-panel .mam-sa-table .button{height:35px;min-height:35px;padding:0 8px;line-height:33px;font-size:12px;margin:1px 2px 1px 0}
.mam-sa-exam-setup-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;padding:12px 16px 8px}
.mam-sa-exam-result-panel .mam-sa-field{display:flex;flex-direction:column;gap:5px;margin:0;min-width:0;color:var(--mam-text-color);font-size:12px;line-height:16px}
.mam-sa-exam-result-panel .mam-sa-field input:not([type=checkbox]),.mam-sa-exam-result-panel .mam-sa-field select{width:100%;max-width:100%;height:35px;min-height:35px;box-sizing:border-box;padding:5px 9px;border:1px solid var(--mam-palette-cbd5df);border-radius:5px;background:var(--mam-layout-bg);color:var(--mam-text-color);font-size:12px;line-height:16px}
.mam-sa-exam-setup-toggles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:4px 16px 14px}
.mam-sa-exam-setup-toggles .mam-sa-preference-row{min-height:35px;gap:8px}
.mam-sa-exam-result-options{padding:7px 14px 12px}
.mam-sa-exam-result-options .mam-sa-preference-row{min-height:39px}
.mam-sa-exam-card-fields{display:flex;flex-direction:column;gap:9px;padding:10px 14px 4px}
.mam-sa-exam-result-form>.mam-sa-settings-form-footer{padding:12px 0;margin-top:0}
.mam-sa-exam-result-form .button,.mam-sa-exam-result-panel .button{height:35px;min-height:35px;box-sizing:border-box;padding:0 12px;line-height:33px;font-size:12px}
.mam-sa-exam-result-panel .mam-sa-settings-panel-footer{padding:12px 14px;border-top:1px solid var(--mam-palette-e8edf2);display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.mam-sa-exam-grading-panel .mam-sa-table th:nth-child(1),.mam-sa-exam-grading-panel .mam-sa-table td:nth-child(1){width:14%}
.mam-sa-exam-grading-panel .mam-sa-table th:nth-child(2),.mam-sa-exam-grading-panel .mam-sa-table td:nth-child(2){width:29%}
.mam-sa-exam-grading-panel .mam-sa-table th:nth-child(3),.mam-sa-exam-grading-panel .mam-sa-table td:nth-child(3){width:22%}
.mam-sa-exam-grading-panel .mam-sa-table th:nth-child(4),.mam-sa-exam-grading-panel .mam-sa-table td:nth-child(4){width:35%}
.mam-sa-exam-result-panel .mam-sa-status{white-space:nowrap}
@media(max-width:1100px){.mam-sa-exam-result-bottom-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mam-sa-exam-result-bottom-grid>.mam-sa-exam-result-panel:last-child{grid-column:1/-1}}
@media(max-width:760px){.mam-sa-exam-result-top-grid,.mam-sa-exam-result-bottom-grid{grid-template-columns:1fr}.mam-sa-exam-result-bottom-grid>.mam-sa-exam-result-panel:last-child{grid-column:auto}.mam-sa-exam-setup-grid,.mam-sa-exam-setup-toggles{grid-template-columns:1fr}}

/* Staff Settings: compact, content-sized panels and precise column widths */
.mam-sa-staff-settings-form{width:100%;min-width:0}
.mam-sa-staff-settings-top{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr) minmax(0,.95fr);gap:14px;align-items:start;margin-top:14px}
.mam-sa-staff-settings-bottom{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start;margin-top:14px}
.mam-sa-staff-setting-panel{min-width:0;height:auto;min-height:0;align-self:start;margin:0;padding:0}
.mam-sa-staff-setting-panel .mam-sa-table-wrap{width:100%;min-width:0;max-width:100%;height:auto;min-height:0;overflow:visible;padding:8px 10px 0;background:transparent;border:0;border-radius:0;box-sizing:border-box}
.mam-sa-staff-setting-panel .mam-sa-table{width:100%;min-width:0;max-width:100%;table-layout:fixed;border-collapse:collapse}
.mam-sa-staff-setting-panel .mam-sa-table th,.mam-sa-staff-setting-panel .mam-sa-table td{min-width:0;padding:6px 5px;font-size:12px;line-height:16px;box-sizing:border-box;overflow-wrap:normal}
.mam-sa-staff-setting-panel .mam-sa-table th:first-child,.mam-sa-staff-setting-panel .mam-sa-table td:first-child{white-space:nowrap;text-align:center;padding-left:4px;padding-right:4px}
.mam-sa-staff-category-table th:nth-child(1),.mam-sa-staff-category-table td:nth-child(1){width:7%}
.mam-sa-staff-category-table th:nth-child(2),.mam-sa-staff-category-table td:nth-child(2){width:42%;white-space:normal}
.mam-sa-staff-category-table th:nth-child(3),.mam-sa-staff-category-table td:nth-child(3){width:20%;white-space:nowrap;text-align:center}
.mam-sa-staff-category-table th:nth-child(4),.mam-sa-staff-category-table td:nth-child(4){width:31%;white-space:nowrap}
.mam-sa-staff-designation-table th:nth-child(1),.mam-sa-staff-designation-table td:nth-child(1){width:8%}
.mam-sa-staff-designation-table th:nth-child(2),.mam-sa-staff-designation-table td:nth-child(2){width:55%;white-space:normal}
.mam-sa-staff-designation-table th:nth-child(3),.mam-sa-staff-designation-table td:nth-child(3){width:37%;white-space:nowrap}
.mam-sa-staff-leave-table th:nth-child(1),.mam-sa-staff-leave-table td:nth-child(1){width:6%}
.mam-sa-staff-leave-table th:nth-child(2),.mam-sa-staff-leave-table td:nth-child(2){width:31%;white-space:normal}
.mam-sa-staff-leave-table th:nth-child(3),.mam-sa-staff-leave-table td:nth-child(3){width:8%;text-align:center;white-space:nowrap}
.mam-sa-staff-leave-table th:nth-child(4),.mam-sa-staff-leave-table td:nth-child(4){width:8%;text-align:center;white-space:nowrap}
.mam-sa-staff-leave-table th:nth-child(5),.mam-sa-staff-leave-table td:nth-child(5){width:14%;text-align:center;white-space:nowrap}
.mam-sa-staff-leave-table th:nth-child(6),.mam-sa-staff-leave-table td:nth-child(6){width:39%;white-space:nowrap}
.mam-sa-staff-setting-panel .mam-sa-table td:last-child .button{height:35px;min-height:35px;padding:5px 6px;margin:2px 1px 2px 0;font-size:12px;line-height:23px;white-space:nowrap;box-sizing:border-box}
.mam-sa-staff-setting-panel .mam-sa-preference-list{padding:8px 14px}
.mam-sa-staff-setting-panel .mam-sa-preference-row{min-height:43px}
.mam-sa-staff-id-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:8px 12px 12px}
.mam-sa-staff-id-fields .mam-sa-field{min-width:0}
.mam-sa-staff-settings-form .mam-sa-field input,.mam-sa-staff-settings-form .mam-sa-field select,.mam-sa-staff-settings-form .button,.mam-sa-modal .mam-sa-field input,.mam-sa-modal .mam-sa-field select{height:35px;min-height:35px;box-sizing:border-box}
.mam-sa-staff-pay-type{display:grid;grid-template-columns:130px minmax(0,1fr);align-items:center;gap:10px;padding:8px 14px;margin:0}
.mam-sa-staff-pay-type>span{display:block;margin:0;text-align:left;font-size:12px;line-height:16px}
.mam-sa-staff-pay-type select{display:block;width:100%;height:35px;min-height:35px;padding:0 10px;line-height:16px;font-size:12px;box-sizing:border-box;align-self:center}
.mam-sa-staff-setting-panel .mam-sa-settings-panel-footer{padding:8px 12px 12px}
@media(max-width:1100px){.mam-sa-staff-settings-top{grid-template-columns:repeat(2,minmax(0,1fr))}.mam-sa-staff-settings-top .mam-sa-staff-setting-panel:last-child{grid-column:1/-1}}
@media(max-width:700px){.mam-sa-staff-settings-top,.mam-sa-staff-settings-bottom{grid-template-columns:minmax(0,1fr)}.mam-sa-staff-settings-top .mam-sa-staff-setting-panel:last-child{grid-column:auto}.mam-sa-staff-id-fields{grid-template-columns:minmax(0,1fr)}.mam-sa-staff-pay-type{grid-template-columns:minmax(0,1fr);gap:6px}}

/* Exam & Result: remove nested table-card styling; retain the main Student-standard panels */
.mam-sa-exam-result-panel .mam-sa-table-wrap{width:100%;min-width:0;height:auto;min-height:0;overflow-x:hidden;overflow-y:hidden;padding:8px 10px 0;background:transparent;border:0;border-radius:0;box-sizing:border-box}
.mam-sa-exam-result-panel .mam-sa-settings-panel-footer{border-top:0;padding:8px 14px 12px}


/* v2.12.7 — Academic tables use the same clean, unboxed table treatment as Staff settings. */
.mam-sa-academic-settings-grid > .mam-sa-academic-manage-panel .mam-sa-table-wrap{
  width:100%;
  min-width:0;
  max-width:100%;
  height:auto;
  min-height:0;
  overflow:visible;
  padding:8px 10px 0;
  background:transparent;
  border:0;
  border-radius:0;
  box-sizing:border-box;
}
.mam-sa-academic-settings-grid > .mam-sa-academic-manage-panel .mam-sa-table{
  width:100%;
  min-width:0;
  max-width:100%;
  table-layout:fixed;
  border-collapse:collapse;
}
.mam-sa-academic-settings-grid > .mam-sa-academic-manage-panel .mam-sa-table th,
.mam-sa-academic-settings-grid > .mam-sa-academic-manage-panel .mam-sa-table td{
  min-width:0;
  padding:6px 5px;
  font-size:12px;
  line-height:16px;
  box-sizing:border-box;
  overflow-wrap:normal;
}
/* Subject Management: increase the Class column while keeping the table within its panel. */
.mam-sa-academic-settings-grid > .mam-sa-academic-manage-panel:nth-child(2) .mam-sa-table th:nth-child(1),
.mam-sa-academic-settings-grid > .mam-sa-academic-manage-panel:nth-child(2) .mam-sa-table td:nth-child(1){width:34%}
.mam-sa-academic-settings-grid > .mam-sa-academic-manage-panel:nth-child(2) .mam-sa-table th:nth-child(2),
.mam-sa-academic-settings-grid > .mam-sa-academic-manage-panel:nth-child(2) .mam-sa-table td:nth-child(2){width:25%}
.mam-sa-academic-settings-grid > .mam-sa-academic-manage-panel:nth-child(2) .mam-sa-table th:nth-child(3),
.mam-sa-academic-settings-grid > .mam-sa-academic-manage-panel:nth-child(2) .mam-sa-table td:nth-child(3){width:16%}
.mam-sa-academic-settings-grid > .mam-sa-academic-manage-panel:nth-child(2) .mam-sa-table th:nth-child(4),
.mam-sa-academic-settings-grid > .mam-sa-academic-manage-panel:nth-child(2) .mam-sa-table td:nth-child(4){width:25%}

/* User & Permission: two explicit rows, reusing existing panels and the shared modal. */
.mam-sa-user-permission-layout{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);width:100%;gap:16px;align-items:start;margin:0 0 16px}
.mam-sa-user-permission-panel{min-width:0;margin:0}
.mam-sa-user-permission-row-two{grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr)}
.mam-sa-user-permission-content{min-width:0;overflow-x:auto}
.mam-sa-user-permission-content>.mam-sa-table{width:100%;min-width:0}
.mam-sa-user-permission-actions{padding:10px 14px}
.mam-sa-user-permission-panel .button{height:35px;min-height:35px;padding:0 12px;line-height:33px;font-size:12px}
.mam-sa-user-permission-panel input:not([type=checkbox]):not([type=hidden]),.mam-sa-user-permission-panel select{height:35px;min-height:35px;box-sizing:border-box;font-size:12px;line-height:16px}
.mam-sa-user-permission-panel input[type=checkbox]{width:16px;height:16px}
.mam-sa-permission-table th:not(:first-child),.mam-sa-permission-table td:not(:first-child){text-align:center;padding-left:4px;padding-right:4px}
.mam-sa-permission-table th:first-child,.mam-sa-permission-table td:first-child{width:34%}
.mam-sa-inline-field{display:flex;align-items:center;gap:12px;padding:10px 14px;margin:0}
.mam-sa-inline-field>span{min-width:85px;font-size:12px}
.mam-sa-inline-field select{max-width:240px;width:100%}
@media(max-width:640px){.mam-sa-user-permission-layout{grid-template-columns:minmax(0,1fr)}}
@media(max-width:620px){.mam-sa-user-permission-content>.mam-sa-table{min-width:620px}}

/* Compact user account modal; field controls retain the shared 35px standard. */
.mam-sa-modal-body #mam-sa-user-account-form .mam-sa-form-grid{gap:6px 10px}
.mam-sa-modal-body #mam-sa-user-account-form .mam-sa-field{gap:2px;font-size:11px;line-height:14px}
.mam-sa-modal-body #mam-sa-user-account-form .mam-sa-field input,
.mam-sa-modal-body #mam-sa-user-account-form .mam-sa-field select{height:35px;min-height:35px;padding:5px 8px;font-size:12px;line-height:16px}


/* v2.13.9 — Settings typography and academic-session status alignment. */
.mam-sa-settings-intro h2{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  font-size:17px;
  font-weight:600;
  line-height:18px;
  color:var(--mam-text-color);
}
.mam-sa-settings-section-head h3,
.mam-sa-system-group-title,
.mam-sa-system-accordion>summary strong,
.mam-sa-academic-session-actions h4{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  font-size:16px;
  font-weight:600;
  line-height:18px;
  color:var(--mam-text-color);
}
.mam-sa-settings-tabs>a,
.mam-sa-settings-tabs>a.is-active{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  font-size:13px;
  font-weight:400;
  line-height:18px;
  color:var(--mam-palette-526174);
}
.mam-sa-academic-current .mam-sa-field{
  display:flex;
  flex-direction:column;
  gap:5px;
}
.mam-sa-academic-current select{
  box-sizing:border-box;
  display:flex;
  align-items:center;
  height:35px;
  min-height:35px;
  padding:0 9px;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  font-size:12px;
  line-height:16px;
  color:var(--mam-text-color);
}
.mam-sa-academic-session-meta b.mam-sa-session-status.is-active,
.mam-sa-academic-session-meta b.mam-sa-session-status.is-live,
.mam-sa-session-status.is-active,
.mam-sa-session-live{
  color:var(--mam-success);
  font-weight:600;
}


/* v2.13.2 — System tab composition; reuse Student-page controls and shared panels. */
.mam-sa-system-config{padding:0;overflow:hidden}
.mam-sa-system-config>.mam-sa-settings-section-head{margin:0}
.mam-sa-system-config-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px;padding:12px 14px;align-items:start}
.mam-sa-system-group{min-width:0;margin:0;padding:0;border:0;background:transparent}
.mam-sa-system-group-title{margin:0 0 7px;font-size:14px;line-height:18px;font-weight:600;color:var(--mam-text-color)}
.mam-sa-system-field{display:grid;grid-template-columns:minmax(135px,38%) minmax(0,1fr);gap:8px;align-items:center;margin:0 0 5px;color:var(--mam-palette-34465a);font-size:12px;line-height:16px}
.mam-sa-system-field>span{min-width:0}
.mam-sa-system-field em{font-style:normal;color:var(--mam-palette-c43b3b)}
.mam-sa-system-field input,.mam-sa-system-field select{box-sizing:border-box;width:100%;max-width:100%;height:35px;min-height:35px;padding:5px 9px;border:1px solid var(--mam-palette-cbd5df);border-radius:5px;background:var(--mam-layout-bg);color:var(--mam-text-color);font-size:12px;line-height:16px}
.mam-sa-system-group .mam-sa-preference-list{padding:0}
.mam-sa-system-group .mam-sa-preference-row{min-height:29px}
.mam-sa-system-config .mam-sa-settings-form-footer{display:flex;gap:8px;justify-content:flex-end;padding:10px 14px;border-top:1px solid var(--mam-palette-e8edf2)}
.mam-sa-system-config .button{box-sizing:border-box;height:35px;min-height:35px;padding:0 12px;line-height:33px;font-size:12px}
.mam-sa-system-database-sections{display:grid;gap:7px;margin-top:14px}
.mam-sa-system-accordion{padding:0;overflow:hidden}
.mam-sa-system-accordion>summary{display:grid;grid-template-columns:minmax(210px,28%) minmax(0,1fr) 16px;gap:10px;align-items:center;min-height:39px;padding:7px 12px;cursor:pointer;list-style:none;color:var(--mam-text-color);font-size:12px;line-height:16px}
.mam-sa-system-accordion>summary::-webkit-details-marker{display:none}
.mam-sa-system-accordion>summary:after{content:'⌄';font-size:17px;text-align:right}
.mam-sa-system-accordion[open]>summary:after{content:'⌃'}
.mam-sa-system-accordion>summary strong{font-size:15px;line-height:18px;font-weight:600}
.mam-sa-system-accordion>summary span{color:var(--mam-palette-536477)}
.mam-sa-system-accordion-body{padding:10px 14px;border-top:1px solid var(--mam-palette-e8edf2);font-size:12px;line-height:16px}
.mam-sa-system-accordion-body p{margin:0 0 9px}
.mam-sa-system-accordion-body .mam-sa-table{min-width:0}
.mam-sa-system-accordion-body .mam-sa-table th,.mam-sa-system-accordion-body .mam-sa-table td{padding:6px 8px;font-size:12px;line-height:16px}
.mam-sa-system-accordion-body .button{height:35px;min-height:35px;padding:0 12px;line-height:33px;font-size:12px}
@media(max-width:760px){.mam-sa-system-config-grid{grid-template-columns:1fr}.mam-sa-system-accordion>summary{grid-template-columns:1fr 16px}.mam-sa-system-accordion>summary span{grid-column:1}.mam-sa-system-accordion>summary:after{grid-column:2;grid-row:1/3}.mam-sa-system-field{grid-template-columns:minmax(110px,38%) minmax(0,1fr)}}


/* Student Registration: centered A4-width page form, using the shared Student control standard. */
.mam-sa-registration-wrap{width:100%;max-width:980px;margin:0 auto}
.mam-sa-registration-card{background:var(--mam-layout-bg);border:1px solid var(--mam-palette-d6deea);border-radius:8px;padding:20px 24px;box-sizing:border-box}
.mam-sa-registration-top{display:grid;grid-template-columns:90px minmax(0,1fr) 90px;align-items:start;gap:8px;border-bottom:1px solid var(--mam-palette-8fb5e8);padding-bottom:14px;margin-bottom:14px}
.mam-sa-registration-top>.button{height:35px;min-height:35px;line-height:33px;padding:0 12px;justify-self:start}
.mam-sa-registration-heading{text-align:center;color:var(--mam-palette-243b63)}
.mam-sa-registration-heading h2{margin:0;font-size:25px;line-height:29px;font-weight:600;color:var(--mam-palette-183b78)}
.mam-sa-registration-heading p{margin:3px 0 4px;font-size:16px;line-height:20px}
.mam-sa-registration-heading>div{font-size:15px;line-height:20px}
.mam-sa-registration-heading strong{color:var(--mam-palette-1456b8);font-weight:600}
.mam-sa-registration-section{margin:0;padding:0 0 13px;border-bottom:1px solid var(--mam-palette-e1e7ef);margin-bottom:13px}
.mam-sa-registration-section:last-of-type{border-bottom:0;margin-bottom:0;padding-bottom:10px}
.mam-sa-registration-section h3{margin:0 0 10px;padding:5px 8px;background:var(--mam-palette-e3efff);color:var(--mam-palette-174a9c);font-size:17px;line-height:20px;font-weight:600;border-radius:4px}
.mam-sa-registration-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:28px;row-gap:8px;padding:0 10px}
.mam-sa-registration-field{display:grid;grid-template-columns:minmax(125px,.62fr) minmax(0,1fr);align-items:center;gap:10px;margin:0;color:var(--mam-text-color);font-size:13px;line-height:16px;min-width:0}
.mam-sa-registration-field>span{font-weight:400}
.mam-sa-registration-field b{color:var(--mam-palette-d92d20);font-weight:600}
.mam-sa-registration-field input,.mam-sa-registration-field select{width:100%;height:35px;min-height:35px;max-width:100%;padding:5px 9px;border:1px solid var(--mam-palette-cbd5df);border-radius:5px;background:var(--mam-layout-bg);color:var(--mam-text-color);font-size:13px;line-height:16px;box-sizing:border-box}
.mam-sa-registration-field input[type=file]{padding:3px 5px;font-size:12px}
.mam-sa-registration-field-wide{grid-column:1/-1;display:grid;grid-template-columns:minmax(125px,.62fr) minmax(0,1fr);align-items:center}.mam-sa-registration-field-wide input{grid-column:2;width:100%;min-width:0}
.mam-sa-registration-photo{display:flex;align-items:flex-start;gap:18px;padding:0 10px}
.mam-sa-registration-photo .mam-sa-registration-field{width:min(500px,100%);grid-template-columns:155px minmax(0,1fr)}
.mam-sa-registration-photo small{grid-column:2;color:var(--mam-palette-53647a);font-size:12px;line-height:16px;margin-top:-4px}
.mam-sa-registration-photo-preview{width:58px;height:58px;object-fit:cover;border:1px solid var(--mam-palette-d6deea);border-radius:4px}
.mam-sa-registration-footer{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--mam-palette-8fb5e8);padding-top:12px;margin-top:4px}
.mam-sa-registration-footer .button{height:35px;min-height:35px;line-height:33px;padding:0 22px}
.mam-sa-registration-message{margin:8px 0 0;text-align:right;color:var(--mam-palette-a33d3d);font-size:12px;line-height:16px}
@media(max-width:760px){.mam-sa-registration-card{padding:14px}.mam-sa-registration-top{grid-template-columns:70px minmax(0,1fr) 0}.mam-sa-registration-top-spacer{display:none}.mam-sa-registration-heading h2{font-size:20px;line-height:24px}.mam-sa-registration-grid{grid-template-columns:1fr;gap:8px;padding:0 4px}.mam-sa-registration-field-wide{grid-column:auto}.mam-sa-registration-field{grid-template-columns:minmax(112px,.7fr) minmax(0,1fr)}.mam-sa-registration-photo{padding:0 4px}.mam-sa-registration-photo .mam-sa-registration-field{width:100%;grid-template-columns:112px minmax(0,1fr)}}
@media(max-width:420px){.mam-sa-registration-top{grid-template-columns:1fr}.mam-sa-registration-heading{grid-row:1;text-align:left}.mam-sa-registration-top>.button{grid-row:2}.mam-sa-registration-field{grid-template-columns:1fr;gap:4px}.mam-sa-registration-photo .mam-sa-registration-field{grid-template-columns:1fr}.mam-sa-registration-photo small{grid-column:1}}

/* Staff Registration — reuse the Student Registration field alignment and controls. */
.mam-sa-staff-registration-page{width:min(100%,900px);margin:4px auto 22px;padding:20px 24px;box-sizing:border-box;background:var(--mam-layout-bg);border:1px solid var(--mam-palette-d6deea);border-radius:8px;color:var(--mam-text-color)}
.mam-sa-staff-reg-head{position:relative;display:grid;grid-template-columns:90px minmax(0,1fr) 90px;align-items:start;gap:8px;padding:0 0 14px;margin:0 0 14px;border-bottom:1px solid var(--mam-palette-8fb5e8)}
.mam-sa-staff-reg-head h2{grid-column:2;margin:0;color:var(--mam-palette-183b78);font-size:25px;line-height:29px;font-weight:600;text-align:center}
.mam-sa-staff-reg-head p{grid-column:2;margin:3px 0 0;color:var(--mam-palette-243b63);font-size:14px;line-height:20px;text-align:center;text-transform:capitalize}
.mam-sa-staff-reg-head>[data-staff-form-back]{grid-column:1;grid-row:1 / span 2;height:35px;min-height:35px;padding:0 12px;line-height:33px;justify-self:start;color:var(--mam-palette-1765cf);border-color:var(--mam-palette-2874e8);background:var(--mam-layout-bg);font-size:12px}
.mam-sa-staff-registration-page h3{margin:0 0 10px;padding:5px 8px;background:var(--mam-palette-e3efff);color:var(--mam-palette-174a9c);font-size:17px;line-height:20px;font-weight:600;border-radius:4px}
.mam-sa-staff-registration-page h3:not(:first-of-type){margin-top:13px}
.mam-sa-staff-registration-page .mam-sa-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px;row-gap:8px;padding:0 10px;margin:0 0 12px}
.mam-sa-staff-registration-page .mam-sa-registration-field{display:grid;grid-template-columns:minmax(125px,.62fr) minmax(0,1fr);align-items:center;gap:10px;min-width:0;margin:0;color:var(--mam-text-color);font-size:13px;line-height:16px;font-weight:400}
.mam-sa-staff-registration-page .mam-sa-registration-field>span{font-weight:400}
.mam-sa-staff-registration-page .mam-sa-registration-field b{color:var(--mam-palette-d92d20);font-weight:600}
.mam-sa-staff-registration-page .mam-sa-registration-field input,.mam-sa-staff-registration-page .mam-sa-registration-field select{width:100%;max-width:100%;height:35px;min-height:35px;box-sizing:border-box;padding:5px 9px;border:1px solid var(--mam-palette-cbd5df);border-radius:5px;background:var(--mam-layout-bg);color:var(--mam-text-color);font-size:13px;line-height:16px}
.mam-sa-staff-registration-page .mam-sa-registration-field input[type=file]{padding:3px 5px;font-size:12px}
.mam-sa-staff-registration-page .mam-sa-registration-field small{grid-column:2;color:var(--mam-palette-53647a);font-size:11px;line-height:15px;font-weight:400;text-transform:none;margin-top:-4px}
.mam-sa-staff-registration-page .mam-sa-staff-file-field{align-items:start}
.mam-sa-staff-declaration{display:flex;align-items:flex-start;gap:8px;margin:14px 10px 12px;color:var(--mam-text-color);font-size:12px;line-height:18px;text-transform:capitalize}
.mam-sa-staff-declaration em{font-style:normal;color:var(--mam-palette-d92d20);font-weight:600}
.mam-sa-staff-declaration input{width:16px;height:16px;flex:0 0 16px;margin:1px 0 0;accent-color:var(--mam-palette-1765dc)}
.mam-sa-staff-reg-actions{display:flex;justify-content:flex-end;gap:9px;padding-top:12px;border-top:1px solid var(--mam-palette-8fb5e8)}
.mam-sa-staff-reg-actions .button{height:35px;min-height:35px;padding:0 20px;line-height:33px;font-size:12px;text-transform:capitalize}
.mam-sa-staff-reg-actions .button-primary{background:var(--mam-palette-1765dc);border-color:var(--mam-palette-1765dc);color:var(--mam-palette-fff)}
.mam-sa-staff-registration-page .mam-sa-registration-field input:not([type=email]):not([type=date]):not([type=file]),.mam-sa-staff-registration-page .mam-sa-registration-field select{text-transform:capitalize}
@media(max-width:760px){.mam-sa-staff-registration-page{width:100%;padding:14px;margin:0 auto 14px}.mam-sa-staff-reg-head{grid-template-columns:70px minmax(0,1fr) 0}.mam-sa-staff-reg-head h2{font-size:20px;line-height:24px}.mam-sa-staff-reg-head p{font-size:13px}.mam-sa-staff-reg-head>[data-staff-form-back]{grid-row:1 / span 2}.mam-sa-staff-registration-page .mam-sa-form-grid{grid-template-columns:1fr;gap:8px;padding:0 4px}.mam-sa-staff-registration-page .mam-sa-registration-field{grid-template-columns:minmax(112px,.7fr) minmax(0,1fr)}.mam-sa-staff-registration-page .mam-sa-registration-field small{grid-column:2}}
@media(max-width:420px){.mam-sa-staff-reg-head{grid-template-columns:1fr}.mam-sa-staff-reg-head h2,.mam-sa-staff-reg-head p{grid-column:1;text-align:left}.mam-sa-staff-reg-head>[data-staff-form-back]{grid-row:3}.mam-sa-staff-registration-page .mam-sa-registration-field{grid-template-columns:1fr;gap:4px}.mam-sa-staff-registration-page .mam-sa-registration-field small{grid-column:1}}


/* Registration forms: title-case text fields while preserving identifiers and date/email formats. */
.mam-sa-registration-field input:not([type=email]):not([type=date]):not([type=file]),.mam-sa-registration-field select,.mam-sa-staff-registration-page .mam-sa-field input:not([type=email]):not([type=date]):not([type=file]),.mam-sa-staff-registration-page .mam-sa-field select{text-transform:capitalize}


/* Subject & Teacher Assignment: use the exact Student summary and filter components. */
.mam-sa-assignment-filter-title{margin:0 0 10px;color:var(--text);font-size:16px;line-height:21px;font-weight:600}
.mam-sa-assignment-filters{grid-template-columns:repeat(5,minmax(0,1fr)) minmax(190px,1.5fr) 76px 64px;gap:9px;align-items:end;margin:0 0 14px;padding:12px 14px}
.mam-sa-assignment-filters label{min-width:0}
.mam-sa-assignment-filters .mam-sa-student-search{min-width:0}
.mam-sa-assignment-filters input,.mam-sa-assignment-filters select,.mam-sa-assignment-filters .button{height:35px;min-height:35px;box-sizing:border-box;font-size:12px;line-height:16px}
.mam-sa-assignment-filters input,.mam-sa-assignment-filters select{width:100%;padding:5px 9px}
.mam-sa-assignment-filters .button{padding:0 7px;white-space:nowrap;line-height:33px}
.mam-sa-assignment-actions{display:flex;align-items:center;gap:8px}
.mam-sa-assignment-actions .button{height:35px;min-height:35px;padding:0 14px;line-height:33px;font-size:12px}
.mam-sa-assignment-list .mam-sa-table-wrap{border:0;border-top:1px solid var(--line);border-radius:0}
.mam-sa-assignment-table{min-width:760px}
.mam-sa-assignment-table th,.mam-sa-assignment-table td{padding:8px 10px;font-size:12px;line-height:16px}
.mam-sa-assignment-table th{background:var(--mam-surface-alt-bg);color:var(--text);font-weight:600}
.mam-sa-assignment-table .button{height:35px;min-height:35px;padding:0 10px;line-height:33px;font-size:12px}
.mam-sa-assignment-list .mam-sa-student-list-footer{padding:10px 14px}
.mam-sa-assignment-list .mam-sa-pagination{display:flex;align-items:center;gap:7px}
.mam-sa-assignment-list .mam-sa-pagination .button{height:35px;min-height:35px;padding:0 10px;line-height:33px;font-size:12px}
.mam-sa-assignment-list .mam-sa-pagination span{min-width:28px;text-align:center;color:var(--text);font-size:12px}
@media(max-width:1100px){.mam-sa-assignment-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.mam-sa-assignment-filters .mam-sa-student-search{grid-column:auto}}
@media(max-width:760px){.mam-sa-assignment-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.mam-sa-assignment-actions{width:100%}.mam-sa-assignment-actions .button{flex:1}}
@media(max-width:480px){.mam-sa-assignment-filters{grid-template-columns:1fr}.mam-sa-assignment-actions{flex-direction:column}}



/* v2.14.0 — Compact Settings Quick Action modals, reusing Student page controls. */
.mam-sa-modal-body .mam-sa-id-settings-form{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin:0;
}
.mam-sa-modal-body .mam-sa-id-settings-form .mam-sa-field{
  min-width:0;
  margin:0;
  gap:4px;
}
.mam-sa-modal-body .mam-sa-id-settings-form .mam-sa-field>span{
  font-size:11px;
  line-height:15px;
  color:var(--mam-palette-526174);
}
.mam-sa-modal-body .mam-sa-id-settings-form input,
.mam-sa-modal-body .mam-sa-id-settings-form select,
.mam-sa-modal-body .mam-sa-calendar-admin input,
.mam-sa-modal-body .mam-sa-calendar-admin select,
.mam-sa-modal-foot .button,
.mam-sa-calendar-admin .button,
.mam-sa-data-management .button{
  box-sizing:border-box;
  height:35px;
  min-height:35px;
  max-height:35px;
}
.mam-sa-modal-body .mam-sa-id-format-preview{
  grid-column:1/-1;
  display:flex;
  align-items:center;
  gap:10px;
  margin:2px 0 0;
  padding:0;
  border:0;
  background:transparent;
  font-size:11px;
  line-height:16px;
}
.mam-sa-modal-body .mam-sa-id-format-preview small{display:none}
.mam-sa-modal-body .mam-sa-calendar-admin,
.mam-sa-modal-body .mam-sa-data-management{
  margin:0;
  padding:0;
  border:0;
  background:transparent;
  box-shadow:none;
}
.mam-sa-modal-body .mam-sa-calendar-admin form{display:grid;gap:10px}
.mam-sa-calendar-section{display:grid;gap:6px}
.mam-sa-calendar-section h3{
  margin:0;
  padding:0;
  font-size:13px;
  line-height:18px;
  font-weight:600;
  color:var(--mam-text-color);
}
.mam-sa-modal-body .mam-sa-weekly-checks{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:7px;
  margin:8px 0 12px;
}
.mam-sa-modal-body .mam-sa-weekly-checks label{
  display:flex;
  align-items:center;
  gap:7px;
  min-height:35px;
  padding:7px 10px;
  border:1px solid var(--mam-border-color);
  border-radius:7px;
  background:var(--mam-surface-alt-bg);
  font-size:12px;
  line-height:18px;
}
.mam-sa-modal-body .mam-sa-weekly-checks input[type="checkbox"]{
  width:16px;
  height:16px;
  min-width:16px;
  margin:0;
  flex:0 0 16px;
}
.mam-sa-modal-body .mam-sa-calendar-range-list{
  display:grid;
  gap:5px;
  margin:0;
}
.mam-sa-modal-body .mam-sa-calendar-range{
  display:grid;
  grid-template-columns:minmax(110px,1.2fr) minmax(105px,1fr) minmax(105px,1fr) auto;
  gap:6px;
  align-items:end;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
}
.mam-sa-modal-body .mam-sa-calendar-range label{
  display:grid;
  gap:2px;
  font-size:10px;
  line-height:13px;
}
.mam-sa-modal-body .mam-sa-calendar-range input{
  width:100%;
  min-width:0;
  padding:4px 7px;
  font-size:11px;
}
.mam-sa-modal-body .mam-sa-calendar-range .button{
  padding:0 8px;
  font-size:11px;
}
.mam-sa-modal-body .mam-sa-data-management .mam-sa-reset-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px 10px;
}
.mam-sa-modal-body .mam-sa-data-management .mam-sa-reset-card{
  min-width:0;
  padding:7px 0;
  border:0;
  border-bottom:1px solid var(--mam-palette-e4e9ef);
  border-radius:0;
  background:transparent;
  gap:8px;
}
.mam-sa-modal-body .mam-sa-data-management .mam-sa-reset-card h3{
  margin:0 0 2px;
  font-size:12px;
  line-height:16px;
}
.mam-sa-modal-body .mam-sa-data-management .mam-sa-reset-card p{
  font-size:10px;
  line-height:14px;
}
.mam-sa-modal-body .mam-sa-data-management .mam-sa-reset-warning{
  margin-top:8px;
  padding:6px 0 0;
  border:0;
  border-top:1px solid var(--mam-palette-e4e9ef);
  border-radius:0;
  background:transparent;
  font-size:10px;
  line-height:14px;
}
.mam-sa-modal[data-size=small]{max-width:540px}
.mam-sa-modal[data-size=medium]{max-width:720px}
.mam-sa-modal-body{padding:10px 12px}
.mam-sa-modal-foot{padding:7px 12px}
@media(max-width:620px){
  .mam-sa-modal-body .mam-sa-id-settings-form{grid-template-columns:1fr}
  .mam-sa-modal-body .mam-sa-id-format-preview{grid-column:auto}
  .mam-sa-modal-body .mam-sa-weekly-checks{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mam-sa-modal-body .mam-sa-calendar-range{grid-template-columns:1fr 1fr}
  .mam-sa-modal-body .mam-sa-calendar-range>input{grid-column:1/-1}
  .mam-sa-modal-body .mam-sa-data-management .mam-sa-reset-grid{grid-template-columns:1fr}
}


/* v2.14.1 — Academic modal sizing and 35px control standard. */
.mam-sa-modal[data-size="small"]{max-width:520px}
.mam-sa-modal-body #mam-sa-session-form,
.mam-sa-modal-body #mam-sa-record-form{
  width:100%;
  max-width:100%;
}
.mam-sa-modal-body #mam-sa-session-form .mam-sa-form-grid,
.mam-sa-modal-body #mam-sa-record-form .mam-sa-form-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px 10px;
}
.mam-sa-modal-body #mam-sa-session-form input,
.mam-sa-modal-body #mam-sa-session-form select,
.mam-sa-modal-body #mam-sa-record-form input,
.mam-sa-modal-body #mam-sa-record-form select,
.mam-sa-modal-foot .button{
  height:35px;
  min-height:35px;
  max-height:35px;
  box-sizing:border-box;
}
.mam-sa-modal-body #mam-sa-session-form .mam-sa-field,
.mam-sa-modal-body #mam-sa-record-form .mam-sa-field{
  min-width:0;
  margin:0;
}
.mam-sa-modal-body #mam-sa-session-form .mam-sa-field input,
.mam-sa-modal-body #mam-sa-session-form .mam-sa-field select,
.mam-sa-modal-body #mam-sa-record-form .mam-sa-field input,
.mam-sa-modal-body #mam-sa-record-form .mam-sa-field select{
  width:100%;
  min-width:0;
}
@media(max-width:560px){
  .mam-sa-modal-body #mam-sa-session-form .mam-sa-form-grid,
  .mam-sa-modal-body #mam-sa-record-form .mam-sa-form-grid{
    grid-template-columns:1fr;
  }
  .mam-sa-modal-body .mam-sa-weekly-checks{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}


/* v2.14.2 — Compact square checkboxes and right-sized Add Fee Type dialog. */
/* Restore the small native square checkbox appearance in Calendar & Holidays and Academic Session. */
.mam-sa-modal-body .mam-sa-weekly-checks input[type="checkbox"],
.mam-sa-modal-body #mam-sa-session-form input[type="checkbox"],
.mam-sa-modal-body .mam-sa-check input[type="checkbox"]{
  appearance:auto!important;
  -webkit-appearance:checkbox!important;
  width:16px!important;
  height:16px!important;
  min-width:16px!important;
  min-height:16px!important;
  max-width:16px!important;
  max-height:16px!important;
  flex:0 0 16px!important;
  padding:0!important;
  margin:0 2px 0 0!important;
  border-radius:2px!important;
  box-sizing:border-box!important;
  accent-color:var(--mam-palette-2271b1);
}
.mam-sa-modal-body .mam-sa-weekly-checks label{
  min-height:28px;
  padding:3px 5px;
  gap:6px;
}

/* Fee Type: half-width dialog and compact two-column field layout. */
.mam-sa-modal[data-size="small"]:has(#mam-sa-fee-type-form){
  max-width:440px;
  width:calc(100% - 32px);
}
.mam-sa-modal-body #mam-sa-fee-type-form{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px 10px;
  width:100%;
  max-width:100%;
}
.mam-sa-modal-body #mam-sa-fee-type-form>.mam-sa-field{
  min-width:0;
  margin:0;
}
.mam-sa-modal-body #mam-sa-fee-type-form>.mam-sa-field input,
.mam-sa-modal-body #mam-sa-fee-type-form>.mam-sa-field select{
  width:100%;
  min-width:0;
  height:35px;
  min-height:35px;
  max-height:35px;
  box-sizing:border-box;
}
.mam-sa-modal-body #mam-sa-fee-type-form .mam-sa-fee-class-rates{
  grid-column:1/-1;
  min-width:0;
  margin:0;
}
.mam-sa-modal-body #mam-sa-fee-type-form .mam-sa-fee-class-rates .mam-sa-form-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px 10px;
}
.mam-sa-modal-body #mam-sa-fee-type-form .mam-sa-fee-rate input{
  width:100%;
  min-width:0;
  height:35px;
  min-height:35px;
  max-height:35px;
}
.mam-sa-modal-body #mam-sa-fee-type-form>.mam-sa-field:last-child{
  grid-column:1/-1;
  max-width:50%;
}
.mam-sa-modal-body #mam-sa-fee-type-form textarea{
  width:100%;
  min-width:0;
  min-height:62px;
  box-sizing:border-box;
}
@media(max-width:480px){
  .mam-sa-modal-body #mam-sa-fee-type-form{
    grid-template-columns:1fr;
  }
  .mam-sa-modal-body #mam-sa-fee-type-form .mam-sa-fee-class-rates,
  .mam-sa-modal-body #mam-sa-fee-type-form>.mam-sa-field:last-child{
    grid-column:auto;
    max-width:100%;
  }
}


/* v2.14.3 — compact Examination Type and Manage Grading dialogs. */
/* The Examination Type form contains one field only: keep its dialog appropriately narrow. */
.mam-sa-modal[data-size="small"]:has(#mam-sa-exam-type-form){
  width:calc(100% - 32px);
  max-width:390px;
}
.mam-sa-modal-body #mam-sa-exam-type-form{
  width:100%;
  max-width:100%;
}
.mam-sa-modal-body #mam-sa-exam-type-form input{
  width:100%;
  height:35px;
  min-height:35px;
  max-height:35px;
  box-sizing:border-box;
}

/* Manage Grading: narrower dialog with three fields per row.
   Five grade fields plus Remove naturally occupy two compact rows. */
.mam-sa-modal[data-size="large"]:has(#mam-sa-grading-form){
  width:calc(100% - 32px);
  max-width:700px;
}
.mam-sa-modal-body #mam-sa-grading-form{
  width:100%;
  max-width:100%;
}
.mam-sa-modal-body #mam-sa-grading-form > .mam-sa-field{
  max-width:100%;
}
.mam-sa-modal-body #mam-sa-grading-edit-rows{
  width:100%;
  max-width:100%;
}
.mam-sa-modal-body .mam-sa-grading-edit-row{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px 10px;
  align-items:end;
  padding:9px 0;
  border-bottom:1px solid var(--mam-palette-e8edf2);
}
.mam-sa-modal-body .mam-sa-grading-edit-row .mam-sa-field{
  min-width:0;
  margin:0;
}
.mam-sa-modal-body .mam-sa-grading-edit-row .mam-sa-field input{
  width:100%;
  min-width:0;
  height:35px;
  min-height:35px;
  max-height:35px;
  box-sizing:border-box;
}
.mam-sa-modal-body .mam-sa-grading-edit-row .button{
  width:max-content;
  min-width:76px;
  height:35px;
  min-height:35px;
  max-height:35px;
  margin:0 0 1px;
  justify-self:start;
}
.mam-sa-modal-body #mam-sa-grading-form [data-add-grade-row]{
  height:35px;
  min-height:35px;
  max-height:35px;
  margin-top:9px;
}
@media(max-width:620px){
  .mam-sa-modal[data-size="large"]:has(#mam-sa-grading-form){
    max-width:calc(100% - 20px);
  }
  .mam-sa-modal-body .mam-sa-grading-edit-row{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .mam-sa-modal-body .mam-sa-grading-edit-row .button{
    grid-column:1/-1;
  }
}


/* v2.14.4 — compact Staff Category, Designation and Leave Type dialogs. */
.mam-sa-modal[data-size="small"]:has(#mam-sa-staff-list-label),
.mam-sa-modal[data-size="small"]:has(#mam-sa-leave-name){
  width:calc(100% - 32px);
  max-width:390px;
}
.mam-sa-modal-body:has(#mam-sa-staff-list-label),
.mam-sa-modal-body:has(#mam-sa-leave-name){
  padding:10px;
}
.mam-sa-modal-body #mam-sa-staff-list-label,
.mam-sa-modal-body #mam-sa-leave-name,
.mam-sa-modal-body #mam-sa-leave-days,
.mam-sa-modal-body #mam-sa-leave-paid,
.mam-sa-modal-body #mam-sa-leave-status{
  width:100%;
  min-width:0;
  height:35px;
  min-height:35px;
  max-height:35px;
  box-sizing:border-box;
}
.mam-sa-modal-body:has(#mam-sa-leave-name) .mam-sa-form-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin:0 0 8px;
}
.mam-sa-modal-body:has(#mam-sa-leave-name) .mam-sa-field{
  min-width:0;
  margin:0;
}


/* v2.14.5 — compact User & Permission dialogs (Add/Edit Role and User). */
.mam-sa-modal[data-size="small"]:has(#mam-sa-user-role-form),
.mam-sa-modal[data-size="small"]:has(#mam-sa-user-account-form){
  width:calc(100% - 32px);
  max-width:390px;
}
.mam-sa-modal:has(#mam-sa-user-role-form) .mam-sa-modal-body,
.mam-sa-modal:has(#mam-sa-user-account-form) .mam-sa-modal-body{
  padding:10px;
}
.mam-sa-modal-body #mam-sa-user-role-form,
.mam-sa-modal-body #mam-sa-user-account-form{
  width:100%;
  max-width:100%;
  margin:0;
  box-sizing:border-box;
}
.mam-sa-modal-body #mam-sa-user-role-form .mam-sa-field,
.mam-sa-modal-body #mam-sa-user-account-form .mam-sa-field{
  min-width:0;
  margin:0;
}
.mam-sa-modal-body #mam-sa-user-role-form .mam-sa-field input,
.mam-sa-modal-body #mam-sa-user-account-form .mam-sa-field input,
.mam-sa-modal-body #mam-sa-user-account-form .mam-sa-field select{
  width:100%;
  min-width:0;
  height:35px;
  min-height:35px;
  max-height:35px;
  box-sizing:border-box;
}
.mam-sa-modal-body #mam-sa-user-account-form .mam-sa-form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px 10px;
  margin:0;
}
.mam-sa-modal:has(#mam-sa-user-role-form) .mam-sa-modal-foot,
.mam-sa-modal:has(#mam-sa-user-account-form) .mam-sa-modal-foot{
  padding:7px 10px;
}
@media(max-width:420px){
  .mam-sa-modal-body #mam-sa-user-account-form .mam-sa-form-grid{
    grid-template-columns:1fr;
  }
}


/* v2.14.6 — Centralized Design System. Shared tokens drive all primary UI surfaces. */
.mam-sa-app{font-family:var(--mam-font-family,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif);font-size:var(--mam-base-font-size,14px);font-weight:var(--mam-font-weight,400);color:var(--mam-text-color,var(--mam-text-color))}
.mam-sa-main,.mam-sa-content{background:var(--mam-page-bg,var(--mam-page-bg))}
.mam-sa-header{background:var(--mam-header-bg,var(--mam-palette-fff));border-color:var(--mam-border-color,var(--mam-border-color))}
.mam-sa-page-title,.mam-sa-card strong,.mam-sa-panel h2,.mam-sa-panel h3,.mam-sa-settings-section-head h3,.mam-sa-settings-intro h2{color:var(--mam-heading-color,var(--mam-text-color));font-size:var(--mam-heading-font-size,16px);font-weight:var(--mam-heading-weight,600)}
.mam-sa-card,.mam-sa-panel,.mam-sa-table-wrap,.mam-sa-settings-card,.mam-sa-settings-section,.mam-sa-user-permission-panel,.mam-sa-design-preview-card{background:var(--mam-layout-bg,var(--mam-palette-fff));border:var(--mam-border-width,1px) solid var(--mam-border-color,var(--mam-border-color));border-radius:var(--mam-radius,8px)}
.mam-sa-card{background:var(--mam-card-bg,var(--mam-palette-fff))}
.mam-sa-panel{padding:var(--mam-spacing,12px);margin-bottom:var(--mam-spacing,12px)}
.mam-sa-stats{gap:var(--mam-spacing,12px)}
.mam-sa-form-grid{gap:var(--mam-spacing,12px)}
.mam-sa-modal-body{padding:var(--mam-spacing,12px)}
.mam-sa-toolbar,.mam-sa-quick{gap:var(--mam-spacing,12px)}
.mam-sa-card{padding:var(--mam-spacing,12px)}
.mam-sa-table-wrap{border-radius:var(--mam-radius,8px)}

.mam-sa-settings-section-head,.mam-sa-panel>.mam-sa-panel-head,.mam-sa-panel>.mam-sa-settings-section-head{background:var(--mam-box-header-bg,var(--mam-box-header-bg));border-radius:var(--mam-radius,8px) var(--mam-radius,8px) 0 0}
.mam-sa-modal{background:var(--mam-modal-bg,var(--mam-palette-fff));border-color:var(--mam-border-color,var(--mam-border-color));border-radius:var(--mam-radius,8px)}
.mam-sa-modal-head{background:var(--mam-modal-header-bg,var(--mam-palette-fff));border-color:var(--mam-border-color,var(--mam-border-color))}
.mam-sa-modal-head h2{color:var(--mam-heading-color,var(--mam-text-color));font-weight:var(--mam-heading-weight,600)}
.mam-sa-field,.mam-sa-inline-field{font-size:var(--mam-label-font-size,13px);color:var(--mam-text-color,var(--mam-text-color))}
.mam-sa-app input:not([type=checkbox]):not([type=radio]):not([type=color]),.mam-sa-app select,.mam-sa-app textarea{background:var(--mam-form-bg,var(--mam-palette-fff));color:var(--mam-text-color,var(--mam-text-color));border-color:var(--mam-border-color,var(--mam-border-color));border-width:var(--mam-border-width,1px);border-radius:var(--mam-radius,8px)}
.mam-sa-app input:not([type=checkbox]):not([type=radio]):not([type=color]),.mam-sa-app select{min-height:var(--mam-button-height,35px)}
.mam-sa-app .button{min-height:var(--mam-button-height,35px);height:var(--mam-button-height,35px);border-radius:var(--mam-radius,8px);border-color:var(--mam-border-color,var(--mam-border-color));background:var(--mam-secondary,var(--mam-secondary));color:var(--mam-palette-fff);display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box}
.mam-sa-app .button-primary{background:var(--mam-primary,var(--mam-primary));border-color:var(--mam-primary,var(--mam-primary));color:var(--mam-palette-fff)}
.mam-sa-app .button:hover,.mam-sa-app .button-primary:hover{background:var(--mam-button-hover,var(--mam-button-hover));border-color:var(--mam-button-hover,var(--mam-button-hover));color:var(--mam-palette-fff)}
.mam-sa-tabs a{color:var(--mam-text-color,var(--mam-palette-526174))}
.mam-sa-tabs a.is-active{color:var(--mam-primary,var(--mam-primary));border-color:var(--mam-primary,var(--mam-primary))}
.mam-sa-table th{background:var(--mam-box-header-bg,var(--mam-box-header-bg));color:var(--mam-heading-color,var(--mam-text-color))}
.mam-sa-table td{border-color:var(--mam-border-color,var(--mam-border-color))}
.mam-sa-design-section h3{margin:0 0 8px;font-size:16px}
.mam-sa-design-help{margin:0 0 12px;color:var(--mam-palette-687789);font-size:12px}
.mam-sa-design-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 14px}
.mam-sa-design-settings-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.mam-sa-design-color{display:flex;flex-direction:column;gap:5px;font-size:12px;color:var(--mam-text-color,var(--mam-text-color));min-width:0}
.mam-sa-design-color-control{display:grid;grid-template-columns:42px minmax(0,1fr);gap:7px;align-items:center}
.mam-sa-design-color-control input[type=color]{width:42px;height:35px;padding:2px;border:1px solid var(--mam-border-color,var(--mam-border-color));border-radius:var(--mam-radius,8px);background:var(--mam-layout-bg)}
.mam-sa-design-color-control input[type=text]{height:35px;min-height:35px;width:100%;font-family:monospace;font-size:12px}
.mam-sa-design-preview{margin-top:14px;padding:12px;border:1px dashed var(--mam-border-color,var(--mam-border-color));border-radius:var(--mam-radius,8px)}
.mam-sa-design-preview-card{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px}
.mam-sa-design-preview-card span{color:var(--mam-text-color,var(--mam-text-color));font-size:12px;margin-right:auto}
.mam-sa-design-actions{display:flex;gap:8px;align-items:center;margin:12px 0 20px}
.mam-sa-design-actions a{height:var(--mam-button-height,35px);text-decoration:none}
@media(max-width:900px){.mam-sa-design-grid,.mam-sa-design-settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.mam-sa-design-grid,.mam-sa-design-settings-grid{grid-template-columns:1fr}}


/* v2.14.7 — Shared Design Component Layer. Keep page layout rules local; keep component appearance here. */
.mam-sa-app,.mam-sa-overlay,.mam-sa-settings-modal{font-family:var(--mam-font-family);color:var(--mam-text-color)}
.mam-sa-app{font-size:var(--mam-base-font-size);font-weight:var(--mam-font-weight)}
.mam-sa-main,.mam-sa-content{background:var(--mam-page-bg)}
.mam-sa-header{background:var(--mam-header-bg);border-color:var(--mam-border-color)}
.mam-sa-page-title,.mam-sa-card strong,.mam-sa-panel h2,.mam-sa-panel h3,.mam-sa-settings-section-head h3,.mam-sa-settings-intro h2{color:var(--mam-heading-color);font-size:var(--mam-heading-font-size);font-weight:var(--mam-heading-weight)}
.mam-sa-card,.mam-sa-panel,.mam-sa-table-wrap,.mam-sa-settings-card,.mam-sa-settings-section,.mam-sa-user-permission-panel,.mam-sa-design-preview-card,.mam-sa-component-panel{background:var(--mam-layout-bg);border:var(--mam-border-width) solid var(--mam-border-color);border-radius:var(--mam-radius)}
.mam-sa-card{background:var(--mam-card-bg);padding:var(--mam-spacing)}
.mam-sa-panel,.mam-sa-component-panel{padding:var(--mam-spacing);margin-bottom:var(--mam-spacing)}
.mam-sa-settings-section-head,.mam-sa-panel>.mam-sa-panel-head,.mam-sa-panel>.mam-sa-settings-section-head,.mam-sa-component-panel-head{background:var(--mam-box-header-bg);border-radius:var(--mam-radius) var(--mam-radius) 0 0}
.mam-sa-overlay{background:var(--mam-overlay-backdrop)}
.mam-sa-modal,.mam-sa-settings-modal-dialog{background:var(--mam-modal-bg);border:var(--mam-border-width) solid var(--mam-border-color);border-radius:var(--mam-radius);box-shadow:0 12px 38px var(--mam-overlay-shadow)}
.mam-sa-modal-head,.mam-sa-settings-modal-dialog>header{background:var(--mam-modal-header-bg);border-color:var(--mam-border-color)}
.mam-sa-modal-head h2,.mam-sa-settings-modal-dialog>header h2{color:var(--mam-heading-color);font-size:var(--mam-heading-font-size);font-weight:var(--mam-heading-weight)}
.mam-sa-modal-body,.mam-sa-settings-modal-content{padding:var(--mam-spacing)}
.mam-sa-modal-foot{background:var(--mam-modal-bg);border-color:var(--mam-border-color)}
.mam-sa-field,.mam-sa-inline-field,.mam-sa-component-field{font-size:var(--mam-label-font-size);color:var(--mam-text-color)}
.mam-sa-app input:not([type=checkbox]):not([type=radio]):not([type=color]),.mam-sa-app select,.mam-sa-app textarea,.mam-sa-component-input{background:var(--mam-form-bg);color:var(--mam-text-color);border:var(--mam-border-width) solid var(--mam-border-color);border-radius:var(--mam-radius);box-sizing:border-box}
.mam-sa-app input:not([type=checkbox]):not([type=radio]):not([type=color]),.mam-sa-app select,.mam-sa-component-input{min-height:var(--mam-button-height)}
.mam-sa-app .button,.mam-sa-component-button{min-height:var(--mam-button-height);height:var(--mam-button-height);border:var(--mam-border-width) solid var(--mam-border-color);border-radius:var(--mam-radius);background:var(--mam-secondary);color:var(--mam-palette-fff);display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box}
.mam-sa-app .button-primary,.mam-sa-component-button.is-primary{background:var(--mam-primary);border-color:var(--mam-primary);color:var(--mam-palette-fff)}
.mam-sa-app .button:hover,.mam-sa-app .button-primary:hover,.mam-sa-component-button:hover{background:var(--mam-button-hover);border-color:var(--mam-button-hover);color:var(--mam-palette-fff)}
.mam-sa-app input[type=checkbox],.mam-sa-app input[type=radio]{accent-color:var(--mam-primary)}
.mam-sa-tabs a{color:var(--mam-text-color)}
.mam-sa-tabs a.is-active{color:var(--mam-primary);border-color:var(--mam-primary)}
.mam-sa-table th{background:var(--mam-box-header-bg);color:var(--mam-heading-color)}
.mam-sa-table td,.mam-sa-table th{border-color:var(--mam-border-color)}
.mam-sa-student-summary,.mam-sa-stats,.mam-sa-form-grid,.mam-sa-component-grid{gap:var(--mam-spacing)}
.mam-sa-settings-modal-dialog{color:var(--mam-text-color)}
.mam-sa-component-page{display:block;min-width:0}
.mam-sa-component-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--mam-spacing);margin-bottom:var(--mam-spacing)}
.mam-sa-component-card{background:var(--mam-card-bg);border:var(--mam-border-width) solid var(--mam-border-color);border-radius:var(--mam-radius);padding:var(--mam-spacing);min-width:0}
.mam-sa-component-panel-head{padding:10px var(--mam-spacing);margin:calc(-1 * var(--mam-spacing)) calc(-1 * var(--mam-spacing)) var(--mam-spacing)}
.mam-sa-component-form{display:grid;gap:var(--mam-spacing)}
.mam-sa-component-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.mam-sa-component-field{display:flex;flex-direction:column;gap:6px;min-width:0}
.mam-sa-component-field input,.mam-sa-component-field select,.mam-sa-component-field textarea{width:100%;min-height:var(--mam-button-height);background:var(--mam-form-bg);color:var(--mam-text-color);border:var(--mam-border-width) solid var(--mam-border-color);border-radius:var(--mam-radius);padding:7px 9px;box-sizing:border-box}
.mam-sa-component-actions{display:flex;justify-content:flex-end;align-items:center;gap:var(--mam-spacing);flex-wrap:wrap}
.mam-sa-component-table{width:100%;border-collapse:collapse;background:var(--mam-layout-bg);color:var(--mam-text-color)}
.mam-sa-component-table th{background:var(--mam-box-header-bg);color:var(--mam-heading-color)}
.mam-sa-component-table th,.mam-sa-component-table td{padding:9px 11px;border-bottom:var(--mam-border-width) solid var(--mam-border-color)}
@media(max-width:760px){.mam-sa-component-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.mam-sa-component-grid{grid-template-columns:1fr}}

.mam-sa-overlay input:not([type=checkbox]):not([type=radio]):not([type=color]),.mam-sa-overlay select,.mam-sa-overlay textarea{background:var(--mam-form-bg);color:var(--mam-text-color);border:var(--mam-border-width) solid var(--mam-border-color);border-radius:var(--mam-radius);box-sizing:border-box}
.mam-sa-overlay .button{height:var(--mam-button-height);min-height:var(--mam-button-height);border-radius:var(--mam-radius);border-color:var(--mam-border-color);background:var(--mam-secondary);color:var(--mam-palette-fff)}
.mam-sa-overlay .button-primary{background:var(--mam-primary);border-color:var(--mam-primary);color:var(--mam-palette-fff)}
.mam-sa-overlay .button:hover,.mam-sa-overlay .button-primary:hover{background:var(--mam-button-hover);border-color:var(--mam-button-hover)}

.mam-sa-app .mam-sa-component-panel,.mam-sa-app .mam-sa-component-card,.mam-sa-app .mam-sa-component-form,.mam-sa-app .mam-sa-component-field input,.mam-sa-app .mam-sa-component-field select,.mam-sa-app .mam-sa-component-field textarea{font-family:var(--mam-font-family);font-size:var(--mam-base-font-size)}
.mam-sa-app .mam-sa-component-panel,.mam-sa-app .mam-sa-component-card{border-width:var(--mam-border-width);border-style:solid;border-color:var(--mam-border-color);border-radius:var(--mam-radius)}


/* v2.14.8 — granular design controls for every shared interface surface. */
.mam-sa-header{background:var(--mam-page-header-bg,var(--mam-header-bg,#fff));border-radius:var(--mam-page-radius,8px)}
.mam-sa-modal,.mam-sa-modal-dialog,.mam-sa-open-form{background:var(--mam-modal-bg,#fff);border-radius:var(--mam-modal-radius,10px)}
.mam-sa-modal-head,.mam-sa-open-form-head{background:var(--mam-modal-header-bg,var(--mam-open-form-header-bg,#fff))}
.mam-sa-open-form,.mam-sa-registration-form{background:var(--mam-open-form-bg,var(--mam-form-bg,#fff))}
.mam-sa-panel,.mam-sa-layout-box{background:var(--mam-layout-bg,#fff);border-radius:var(--mam-layout-radius,8px)}
.mam-sa-panel>.mam-sa-settings-section-head,.mam-sa-layout-box>.mam-sa-layout-head{background:var(--mam-layout-header-bg,var(--mam-box-header-bg,#eaf3fc))}
.mam-sa-filter,.mam-sa-filter-section,.mam-sa-filter-panel{background:var(--mam-filter-bg,#fff);border-radius:var(--mam-filter-radius,8px)}
.mam-sa-filter>.mam-sa-filter-head,.mam-sa-filter-section>.mam-sa-filter-head{background:var(--mam-filter-header-bg,#f8fafc)}
.mam-sa-card,.mam-sa-summary-card{background:var(--mam-card-bg,#fff);border-radius:var(--mam-card-radius,8px)}
.mam-sa-card>.mam-sa-card-head,.mam-sa-summary-card>.mam-sa-card-head{background:var(--mam-card-header-bg,#fff)}
.mam-sa-app input:not([type=checkbox]):not([type=radio]):not([type=color]),
.mam-sa-app select,.mam-sa-app textarea{
 background:var(--mam-field-bg,var(--mam-form-bg,#fff));
 color:var(--mam-field-text,var(--mam-text-color,#263445));
 border-color:var(--mam-field-border,var(--mam-border-color,#d9e1ea));
 border-radius:var(--mam-field-radius,6px);
}
.mam-sa-app input:focus,.mam-sa-app select:focus,.mam-sa-app textarea:focus{
 border-color:var(--mam-field-active-border,var(--mam-primary,#315f91));
 box-shadow:0 0 0 2px var(--mam-field-focus-ring,#dbeafe);
 outline:0;
}
.mam-sa-app .button{border-radius:var(--mam-button-radius,6px)}
.mam-sa-app .button-primary{background:var(--mam-primary,#315f91);color:var(--mam-primary-text,#fff)}
.mam-sa-app .button:not(.button-primary){background:var(--mam-secondary,#64748b);color:var(--mam-secondary-text,#fff)}
.mam-sa-app .mam-sa-button-tertiary,.mam-sa-app .button-tertiary{background:var(--mam-tertiary,#eaf3fc);color:var(--mam-tertiary-text,#263445)}
.mam-sa-app .button:active,.mam-sa-app .is-active>.button{background:var(--mam-button-active,var(--mam-primary,#315f91))}
.mam-sa-app .button:hover{background:var(--mam-button-hover,#274f79)}
.mam-sa-app a{color:var(--mam-link-color,var(--mam-primary,#315f91))}
.mam-sa-app .is-active,.mam-sa-app [aria-current=page]{color:var(--mam-active-color,var(--mam-primary,#315f91))}
.mam-sa-app .is-active-tab,.mam-sa-app .is-selected{background:var(--mam-active-bg,#eaf3fc)}
.mam-sa-app .text-muted,.mam-sa-app .mam-sa-muted{color:var(--mam-muted-text,#64748b)}


/* Design System settings layout polish */
.mam-sa-design-group-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:0 0 12px;padding-bottom:9px;border-bottom:1px solid var(--mam-border-color,#d9e1ea)}
.mam-sa-design-group-head h3{margin:0;font-size:16px;font-weight:600;color:var(--mam-heading-color,#263445)}
.mam-sa-design-group-head p{margin:0;color:var(--mam-muted-text,#64748b);font-size:11px}
.mam-sa-design-section{padding:14px}
.mam-sa-design-section .mam-sa-design-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 16px}
.mam-sa-design-color{padding:8px;border:1px solid var(--mam-border-color,#d9e1ea);border-radius:var(--mam-field-radius,6px);background:var(--mam-form-bg,#fff)}
.mam-sa-design-color>span:first-child{font-weight:500}
.mam-sa-design-color-control input[type=text]{background:var(--mam-field-bg,#fff);border-color:var(--mam-field-border,#d9e1ea);border-radius:var(--mam-field-radius,6px);color:var(--mam-field-text,#263445)}
.mam-sa-design-section .mam-sa-field input,.mam-sa-design-section .mam-sa-field select{height:35px;min-height:35px}
@media(max-width:900px){.mam-sa-design-section .mam-sa-design-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.mam-sa-design-section .mam-sa-design-grid{grid-template-columns:1fr}.mam-sa-design-group-head{display:block}.mam-sa-design-group-head p{margin-top:4px}}


/* v2.14.9 — screenshot-matched Design System grid and unified form controls */
.mam-sa-design-system{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px}
.mam-sa-design-system>.mam-sa-settings-intro,
.mam-sa-design-system>.mam-sa-design-actions{grid-column:1/-1}
.mam-sa-design-system>.mam-sa-design-section:nth-of-type(1),
.mam-sa-design-system>.mam-sa-design-section:nth-of-type(2),
.mam-sa-design-system>.mam-sa-design-section:nth-of-type(3),
.mam-sa-design-system>.mam-sa-design-section:nth-of-type(4),
.mam-sa-design-system>.mam-sa-design-section:nth-of-type(5),
.mam-sa-design-system>.mam-sa-design-section:nth-of-type(6){grid-column:span 2}
.mam-sa-design-system>.mam-sa-design-section:nth-of-type(7),
.mam-sa-design-system>.mam-sa-design-section:nth-of-type(8){grid-column:span 3}
.mam-sa-design-section{min-width:0;margin:0!important;padding:0!important;overflow:hidden}
.mam-sa-design-section>h3,.mam-sa-design-group-head{margin:0!important;padding:10px 14px!important;background:var(--mam-box-header-bg,#eaf3fc);border:0!important;border-radius:0!important}
.mam-sa-design-section>.mam-sa-design-grid{padding:12px 14px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 12px}
.mam-sa-design-section .mam-sa-design-color{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding:0;border:0;background:transparent}
.mam-sa-design-color-control{display:flex;align-items:center;gap:8px;min-width:0}
.mam-sa-design-color-control input[type=color]{width:42px;height:27px;padding:2px;border:1px solid var(--mam-field-border)!important;border-radius:5px}
.mam-sa-design-color-control input[type=text]{width:74px;min-width:0;height:30px!important;padding:4px 6px}
.mam-sa-design-section .mam-sa-field{min-width:0}
.mam-sa-design-section .mam-sa-field input,.mam-sa-design-section .mam-sa-field select{width:100%;height:35px;min-height:35px}
.mam-sa-design-presets .mam-sa-preset-options{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;padding:20px 10px}
.mam-sa-preset-option{display:flex;flex-direction:column;align-items:center;gap:8px;padding:8px 4px;border:1px solid transparent;border-radius:8px;cursor:pointer;font-size:12px}
.mam-sa-preset-option:has(input:checked){border-color:var(--mam-primary);background:var(--mam-active-bg)}
.mam-sa-preset-option input{margin:0;accent-color:var(--mam-primary)}
.mam-sa-preset-swatch{display:flex;flex-direction:column;gap:7px;width:100%;padding:9px 5px;border-radius:7px;background:#eef4ff}
.mam-sa-preset-swatch i{display:block;height:13px;border-radius:10px;background:#0d6efd}
.mam-sa-preset-swatch i+ i{opacity:.35}
.mam-sa-preset-option.is-green .mam-sa-preset-swatch{background:#d1fae5}.mam-sa-preset-option.is-green .mam-sa-preset-swatch i{background:#059669}
.mam-sa-preset-option.is-purple .mam-sa-preset-swatch{background:#f3e8ff}.mam-sa-preset-option.is-purple .mam-sa-preset-swatch i{background:#6d28d9}
.mam-sa-preset-option.is-orange .mam-sa-preset-swatch{background:#ffedd5}.mam-sa-preset-option.is-orange .mam-sa-preset-swatch i{background:#ea580c}
.mam-sa-preset-option.is-dark .mam-sa-preset-swatch{background:#172554}.mam-sa-preset-option.is-dark .mam-sa-preset-swatch i{background:#94a3b8}
@media(max-width:1100px){.mam-sa-design-system{grid-template-columns:repeat(2,minmax(0,1fr))}.mam-sa-design-system>.mam-sa-design-section{grid-column:span 1!important}}
@media(max-width:650px){.mam-sa-design-system{grid-template-columns:1fr}.mam-sa-design-system>.mam-sa-design-section{grid-column:1/-1!important}.mam-sa-design-section>.mam-sa-design-grid{grid-template-columns:1fr}.mam-sa-design-presets .mam-sa-preset-options{grid-template-columns:repeat(5,minmax(0,1fr))}}

/* One source of truth for every input, select, textarea, checkbox and radio. */
.mam-sa-app input:not([type=button]):not([type=submit]):not([type=reset]):not([type=color]),
.mam-sa-app select,.mam-sa-app textarea,
.mam-sa-overlay input:not([type=button]):not([type=submit]):not([type=reset]):not([type=color]),
.mam-sa-overlay select,.mam-sa-overlay textarea,
.mam-sa-component-input,.mam-sa-component-field input,.mam-sa-component-field select,.mam-sa-component-field textarea{
 border:var(--mam-border-width,1px) solid var(--mam-field-border,var(--mam-border-color,#d9e1ea))!important;
 border-radius:var(--mam-field-radius,6px)!important;
 background:var(--mam-field-bg,var(--mam-form-bg,#fff))!important;
 color:var(--mam-field-text,var(--mam-text-color,#263445))!important;
 box-shadow:none;
}
.mam-sa-app input:focus,.mam-sa-app select:focus,.mam-sa-app textarea:focus,
.mam-sa-overlay input:focus,.mam-sa-overlay select:focus,.mam-sa-overlay textarea:focus,
.mam-sa-component-field input:focus,.mam-sa-component-field select:focus,.mam-sa-component-field textarea:focus{
 border-color:var(--mam-field-active-border,var(--mam-primary,#0d6efd))!important;
 box-shadow:0 0 0 2px var(--mam-field-focus-ring,#dbeafe)!important;outline:0!important
}
.mam-sa-app input[type=radio],.mam-sa-app input[type=checkbox],
.mam-sa-overlay input[type=radio],.mam-sa-overlay input[type=checkbox]{
 accent-color:var(--mam-primary,#0d6efd)!important;width:16px;height:16px;vertical-align:middle
}

/* Explicit grid placement: first row 3 groups, second row 3 groups, third row 2 groups. */
.mam-sa-design-system{grid-auto-flow:row}
.mam-sa-design-system>.mam-sa-design-section:nth-of-type(1){grid-column:1/span 2;grid-row:2}
.mam-sa-design-system>.mam-sa-design-section:nth-of-type(2){grid-column:3/span 2;grid-row:2}
.mam-sa-design-system>.mam-sa-design-section:nth-of-type(3){grid-column:5/span 2;grid-row:2}
.mam-sa-design-system>.mam-sa-design-section:nth-of-type(4){grid-column:1/span 2;grid-row:3}
.mam-sa-design-system>.mam-sa-design-section:nth-of-type(5){grid-column:3/span 2;grid-row:3}
.mam-sa-design-system>.mam-sa-design-section:nth-of-type(6){grid-column:1/span 3;grid-row:4}
.mam-sa-design-system>.mam-sa-design-section:nth-of-type(7){grid-column:4/span 3;grid-row:4}
.mam-sa-design-system>.mam-sa-design-section:nth-of-type(8){grid-column:5/span 2;grid-row:3}
.mam-sa-design-system>.mam-sa-design-section:nth-of-type(9){grid-column:1/span 6;grid-row:5}
@media(max-width:1100px){.mam-sa-design-system>.mam-sa-design-section{grid-column:span 1!important;grid-row:auto!important}}


/* v2.15.0 — compact four-panel bottom row, with no artificial blank width */
.mam-sa-design-system{
 display:grid!important;
 grid-template-columns:repeat(12,minmax(0,1fr))!important;
 grid-auto-flow:row;
 align-items:stretch;
 gap:12px!important;
}
.mam-sa-design-system>.mam-sa-settings-intro,
.mam-sa-design-system>.mam-sa-design-actions{grid-column:1/-1!important}
.mam-sa-design-system>.mam-sa-design-section{min-width:0;grid-column:span 4!important;grid-row:auto!important}
.mam-sa-design-system>.mam-sa-design-group-layout-spacing,
.mam-sa-design-system>.mam-sa-design-group-shape-spacing,
.mam-sa-design-system>.mam-sa-design-modal-open-form,
.mam-sa-design-system>.mam-sa-design-preview-panel{grid-column:span 3!important}
.mam-sa-design-system>.mam-sa-design-group-layout-spacing .mam-sa-design-grid,
.mam-sa-design-system>.mam-sa-design-group-shape-spacing .mam-sa-design-grid,
.mam-sa-design-system>.mam-sa-design-modal-open-form .mam-sa-design-grid{
 grid-template-columns:1fr!important;
 gap:8px!important;
}
.mam-sa-design-system>.mam-sa-design-group-shape-spacing .mam-sa-field{
 display:grid;grid-template-columns:minmax(0,1fr) 76px;align-items:center;gap:8px
}
.mam-sa-design-system>.mam-sa-design-group-shape-spacing .mam-sa-field input{width:76px;max-width:76px}
.mam-sa-design-system>.mam-sa-design-group-layout-spacing .mam-sa-design-color,
.mam-sa-design-system>.mam-sa-design-modal-open-form .mam-sa-design-color{
 grid-template-columns:minmax(0,1fr) auto;gap:6px
}
.mam-sa-design-system>.mam-sa-design-preview-panel .mam-sa-design-preview{
 margin:0;padding:10px;border:0
}
.mam-sa-design-system>.mam-sa-design-preview-panel .mam-sa-design-preview-card{
 display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:8px
}
.mam-sa-design-system>.mam-sa-design-preview-panel .mam-sa-design-preview-card span{margin:0}
.mam-sa-design-system>.mam-sa-design-preview-panel .mam-sa-design-preview-card .button{width:100%;justify-content:center}
@media(max-width:1100px){
 .mam-sa-design-system{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .mam-sa-design-system>.mam-sa-design-section,
 .mam-sa-design-system>.mam-sa-design-group-layout-spacing,
 .mam-sa-design-system>.mam-sa-design-group-shape-spacing,
 .mam-sa-design-system>.mam-sa-design-modal-open-form,
 .mam-sa-design-system>.mam-sa-design-preview-panel{grid-column:span 1!important}
}
@media(max-width:650px){
 .mam-sa-design-system{grid-template-columns:1fr!important}
 .mam-sa-design-system>.mam-sa-design-section{grid-column:1/-1!important}
}

/* Secondary button hover must preserve readable text contrast. */
.mam-sa-app .button:not(.button-primary):hover,
.mam-sa-app .button:not(.button-primary):focus,
.mam-sa-design-preview-card .button:not(.button-primary):hover,
.mam-sa-design-preview-card .button:not(.button-primary):focus{
 background:var(--mam-secondary,var(--mam-palette-fff))!important;
 color:var(--mam-secondary-text,var(--mam-primary,#0d6efd))!important;
 border-color:var(--mam-secondary-text,var(--mam-primary,#0d6efd))!important;
}
.mam-sa-app .button:not(.button-primary):hover *,
.mam-sa-design-preview-card .button:not(.button-primary):hover *{
 color:var(--mam-secondary-text,var(--mam-primary,#0d6efd))!important
}


/* v2.15.1 — one shared button system across page tabs, modals and open forms */
:root{
 --mam-shared-button-radius:var(--mam-button-radius,6px);
 --mam-shared-button-height:var(--mam-button-height,35px);
}
.mam-sa-app .button,
.mam-sa-overlay .button,
.mam-sa-modal .button,
.mam-sa-open-form .button,
.mam-sa-registration-form .button,
.mam-sa-settings-modal .button,
.mam-sa-settings-tabs>a,
.mam-sa-tabs>a{
 box-sizing:border-box!important;
 min-height:var(--mam-shared-button-height)!important;
 height:var(--mam-shared-button-height)!important;
 border-radius:var(--mam-shared-button-radius)!important;
 border-width:var(--mam-border-width,1px)!important;
 border-style:solid!important;
 font-family:inherit!important;
 font-size:var(--mam-base-font-size,14px)!important;
 font-weight:600!important;
 line-height:1.2!important;
 padding:0 12px!important;
 display:inline-flex!important;
 align-items:center!important;
 justify-content:center!important;
 text-decoration:none!important;
 transition:background-color .15s ease,color .15s ease,border-color .15s ease!important;
}
.mam-sa-app .button-primary,
.mam-sa-overlay .button-primary,
.mam-sa-modal .button-primary,
.mam-sa-open-form .button-primary,
.mam-sa-registration-form .button-primary,
.mam-sa-settings-modal .button-primary,
.mam-sa-settings-tabs>a.is-active,
.mam-sa-tabs>a.is-active{
 background:var(--mam-primary,#315f91)!important;
 color:var(--mam-primary-text,#fff)!important;
 border-color:var(--mam-primary,#315f91)!important;
}
.mam-sa-app .button:not(.button-primary),
.mam-sa-overlay .button:not(.button-primary),
.mam-sa-modal .button:not(.button-primary),
.mam-sa-open-form .button:not(.button-primary),
.mam-sa-registration-form .button:not(.button-primary),
.mam-sa-settings-modal .button:not(.button-primary),
.mam-sa-settings-tabs>a:not(.is-active),
.mam-sa-tabs>a:not(.is-active){
 background:var(--mam-secondary,#fff)!important;
 color:var(--mam-secondary-text,#315f91)!important;
 border-color:var(--mam-secondary-text,#315f91)!important;
}
.mam-sa-app .button-primary:hover,
.mam-sa-overlay .button-primary:hover,
.mam-sa-modal .button-primary:hover,
.mam-sa-open-form .button-primary:hover,
.mam-sa-registration-form .button-primary:hover,
.mam-sa-settings-modal .button-primary:hover,
.mam-sa-settings-tabs>a.is-active:hover,
.mam-sa-tabs>a.is-active:hover{
 background:var(--mam-button-hover,#274f79)!important;
 color:var(--mam-primary-text,#fff)!important;
 border-color:var(--mam-button-hover,#274f79)!important;
}
.mam-sa-app .button:not(.button-primary):hover,
.mam-sa-overlay .button:not(.button-primary):hover,
.mam-sa-modal .button:not(.button-primary):hover,
.mam-sa-open-form .button:not(.button-primary):hover,
.mam-sa-registration-form .button:not(.button-primary):hover,
.mam-sa-settings-modal .button:not(.button-primary):hover,
.mam-sa-settings-tabs>a:not(.is-active):hover,
.mam-sa-tabs>a:not(.is-active):hover{
 background:var(--mam-tertiary,#eaf3fc)!important;
 color:var(--mam-secondary-text,#315f91)!important;
 border-color:var(--mam-secondary-text,#315f91)!important;
}
.mam-sa-app .button:active,
.mam-sa-overlay .button:active,
.mam-sa-modal .button:active,
.mam-sa-open-form .button:active,
.mam-sa-registration-form .button:active,
.mam-sa-settings-modal .button:active{
 background:var(--mam-button-active,#274f79)!important;
 color:var(--mam-primary-text,#fff)!important;
 border-color:var(--mam-button-active,#274f79)!important;
}

/* Compact, content-height panels. The final row order is Layout, Shape, Modal, Preview. */
.mam-sa-design-system{
 grid-template-columns:repeat(12,minmax(0,1fr))!important;
 grid-auto-rows:min-content!important;
 align-items:start!important;
 gap:12px!important;
}
.mam-sa-design-system>.mam-sa-design-section{
 height:auto!important;
 min-height:0!important;
 align-self:start!important;
}
.mam-sa-design-system>.mam-sa-design-group-layout-spacing,
.mam-sa-design-system>.mam-sa-design-group-shape-spacing,
.mam-sa-design-system>.mam-sa-design-modal-open-form,
.mam-sa-design-system>.mam-sa-design-preview-panel{
 grid-column:span 3!important;
 grid-row:4!important;
 height:auto!important;
 min-height:0!important;
}
.mam-sa-design-system>.mam-sa-design-group-layout-spacing{grid-column:1/span 3!important}
.mam-sa-design-system>.mam-sa-design-group-shape-spacing{grid-column:4/span 3!important}
.mam-sa-design-system>.mam-sa-design-modal-open-form{grid-column:7/span 3!important}
.mam-sa-design-system>.mam-sa-design-preview-panel{grid-column:10/span 3!important}
.mam-sa-design-system>.mam-sa-design-group-layout-spacing .mam-sa-design-grid,
.mam-sa-design-system>.mam-sa-design-group-shape-spacing .mam-sa-design-grid,
.mam-sa-design-system>.mam-sa-design-modal-open-form .mam-sa-design-grid{
 grid-template-columns:1fr!important;
 gap:7px!important;
}
.mam-sa-design-system>.mam-sa-design-group-shape-spacing .mam-sa-field{
 grid-template-columns:minmax(0,1fr) 64px!important;
 gap:6px!important;
 margin:0!important;
}
.mam-sa-design-system>.mam-sa-design-group-shape-spacing .mam-sa-field input{
 width:64px!important;max-width:64px!important;padding:4px 6px!important
}
.mam-sa-design-system>.mam-sa-design-preview-panel .mam-sa-design-preview{
 margin:0!important;padding:8px!important;border:0!important
}
.mam-sa-design-system>.mam-sa-design-preview-panel .mam-sa-design-preview-card{
 min-height:0!important;height:auto!important;padding:8px!important;gap:7px!important
}
.mam-sa-design-system>.mam-sa-design-preview-panel .mam-sa-design-preview-card .button{width:100%!important}
.mam-sa-design-section,
.mam-sa-design-section>.mam-sa-design-grid,
.mam-sa-design-section .mam-sa-design-preview,
.mam-sa-design-section .mam-sa-design-preview-card{
 min-height:0!important;height:auto!important
}
.mam-sa-design-system>.mam-sa-design-actions{margin-top:0!important}
@media(max-width:1100px){
 .mam-sa-design-system>.mam-sa-design-group-layout-spacing,
 .mam-sa-design-system>.mam-sa-design-group-shape-spacing,
 .mam-sa-design-system>.mam-sa-design-modal-open-form,
 .mam-sa-design-system>.mam-sa-design-preview-panel{grid-row:auto!important;grid-column:span 6!important}
}
@media(max-width:650px){
 .mam-sa-design-system>.mam-sa-design-group-layout-spacing,
 .mam-sa-design-system>.mam-sa-design-group-shape-spacing,
 .mam-sa-design-system>.mam-sa-design-modal-open-form,
 .mam-sa-design-system>.mam-sa-design-preview-panel{grid-column:1/-1!important}
}


/* v2.15.2 — remove button focus/active border effects and unify field focus states */
.mam-sa-app button:focus,
.mam-sa-app button:focus-visible,
.mam-sa-app .button:focus,
.mam-sa-app .button:focus-visible,
.mam-sa-overlay button:focus,
.mam-sa-overlay button:focus-visible,
.mam-sa-overlay .button:focus,
.mam-sa-overlay .button:focus-visible,
.mam-sa-modal button:focus,
.mam-sa-modal button:focus-visible,
.mam-sa-open-form button:focus,
.mam-sa-open-form button:focus-visible,
.mam-sa-settings-tabs>a:focus,
.mam-sa-settings-tabs>a:focus-visible,
.mam-sa-tabs>a:focus,
.mam-sa-tabs>a:focus-visible{
 outline:none!important;
 box-shadow:none!important;
}
.mam-sa-app button:active,
.mam-sa-app .button:active,
.mam-sa-overlay button:active,
.mam-sa-overlay .button:active,
.mam-sa-modal button:active,
.mam-sa-open-form button:active{
 outline:none!important;
 box-shadow:none!important;
}
.mam-sa-app input:not([type=checkbox]):not([type=radio]):not([type=button]):not([type=submit]):not([type=reset]):focus,
.mam-sa-app select:focus,
.mam-sa-app textarea:focus,
.mam-sa-overlay input:not([type=checkbox]):not([type=radio]):not([type=button]):not([type=submit]):not([type=reset]):focus,
.mam-sa-overlay select:focus,
.mam-sa-overlay textarea:focus,
.mam-sa-modal input:not([type=checkbox]):not([type=radio]):focus,
.mam-sa-modal select:focus,
.mam-sa-modal textarea:focus,
.mam-sa-open-form input:not([type=checkbox]):not([type=radio]):focus,
.mam-sa-open-form select:focus,
.mam-sa-open-form textarea:focus,
.mam-sa-registration-form input:not([type=checkbox]):not([type=radio]):focus,
.mam-sa-registration-form select:focus,
.mam-sa-registration-form textarea:focus{
 outline:none!important;
 border:var(--mam-border-width,1px) solid var(--mam-field-active-border,var(--mam-primary,#0d6efd))!important;
 box-shadow:0 0 0 2px var(--mam-field-focus-ring,#dbeafe)!important;
}
.mam-sa-app input:not([type=checkbox]):not([type=radio]):not([type=button]):not([type=submit]):not([type=reset]),
.mam-sa-app select,.mam-sa-app textarea,
.mam-sa-overlay input:not([type=checkbox]):not([type=radio]):not([type=button]):not([type=submit]):not([type=reset]),
.mam-sa-overlay select,.mam-sa-overlay textarea,
.mam-sa-modal input:not([type=checkbox]):not([type=radio]),
.mam-sa-modal select,.mam-sa-modal textarea,
.mam-sa-open-form input:not([type=checkbox]):not([type=radio]),
.mam-sa-open-form select,.mam-sa-open-form textarea,
.mam-sa-registration-form input:not([type=checkbox]):not([type=radio]),
.mam-sa-registration-form select,.mam-sa-registration-form textarea{
 border-color:var(--mam-field-border,var(--mam-border-color,#d1d5db))!important;
 border-radius:var(--mam-field-radius,6px)!important;
 box-shadow:none;
}
.mam-sa-app input[type=checkbox],
.mam-sa-app input[type=radio],
.mam-sa-overlay input[type=checkbox],
.mam-sa-overlay input[type=radio],
.mam-sa-modal input[type=checkbox],
.mam-sa-modal input[type=radio],
.mam-sa-open-form input[type=checkbox],
.mam-sa-open-form input[type=radio],
.mam-sa-registration-form input[type=checkbox],
.mam-sa-registration-form input[type=radio]{
 appearance:auto!important;
 -webkit-appearance:auto!important;
 accent-color:var(--mam-primary,#0d6efd)!important;
 outline:none!important;
 box-shadow:none!important;
}
.mam-sa-app input[type=checkbox]:focus,
.mam-sa-app input[type=radio]:focus,
.mam-sa-overlay input[type=checkbox]:focus,
.mam-sa-overlay input[type=radio]:focus,
.mam-sa-modal input[type=checkbox]:focus,
.mam-sa-modal input[type=radio]:focus,
.mam-sa-open-form input[type=checkbox]:focus,
.mam-sa-open-form input[type=radio]:focus{
 outline:none!important;
 box-shadow:none!important;
}


/* v2.15.3 — vertically center Design System typography values and reduce focus ring */
.mam-sa-design-section .mam-sa-field{
 display:flex!important;
 flex-direction:column!important;
 justify-content:flex-start!important;
 gap:6px!important;
 min-width:0!important;
}
.mam-sa-design-section .mam-sa-field input,
.mam-sa-design-section .mam-sa-field select{
 box-sizing:border-box!important;
 height:35px!important;
 min-height:35px!important;
 padding:0 10px!important;
 line-height:normal!important;
 vertical-align:middle!important;
 margin:0!important;
}
.mam-sa-design-section .mam-sa-field select{
 display:block!important;
 text-align:left!important;
}
.mam-sa-design-section .mam-sa-field input[type=number]{
 display:block!important;
}
.mam-sa-app input:not([type=checkbox]):not([type=radio]):not([type=button]):not([type=submit]):not([type=reset]):focus,
.mam-sa-app select:focus,
.mam-sa-app textarea:focus,
.mam-sa-overlay input:not([type=checkbox]):not([type=radio]):not([type=button]):not([type=submit]):not([type=reset]):focus,
.mam-sa-overlay select:focus,
.mam-sa-overlay textarea:focus,
.mam-sa-modal input:not([type=checkbox]):not([type=radio]):focus,
.mam-sa-modal select:focus,
.mam-sa-modal textarea:focus,
.mam-sa-open-form input:not([type=checkbox]):not([type=radio]):focus,
.mam-sa-open-form select:focus,
.mam-sa-open-form textarea:focus,
.mam-sa-registration-form input:not([type=checkbox]):not([type=radio]):focus,
.mam-sa-registration-form select:focus,
.mam-sa-registration-form textarea:focus{
 box-shadow:0 0 0 1px var(--mam-field-focus-ring,#dbeafe)!important;
}


/* v2.16.0 — centralized summary card shadow and compact multi-fee collection modal */
.mam-sa-app .mam-sa-summary-card,
.mam-sa-app .mam-sa-student-stat,
.mam-sa-app .mam-sa-stat-card,
.mam-sa-app .mam-sa-component-card,
.mam-sa-app .mam-sa-card.mam-sa-summary-card{
 box-shadow:var(--mam-summary-card-shadow,0 2px 8px rgba(15,27,42,.08))!important;
}
.mam-sa-app .mam-sa-student-summary-four .mam-sa-student-stat{
 box-shadow:var(--mam-summary-card-shadow,0 2px 8px rgba(15,27,42,.08))!important;
}
.mam-sa-modal[data-size="large"]:has(#mam-sa-fee-collect-form){
 width:calc(100% - 32px)!important;
 max-width:680px!important;
}
.mam-sa-modal:has(#mam-sa-fee-collect-form) .mam-sa-modal-body{padding:10px 12px!important}
.mam-sa-modal-body #mam-sa-fee-collect-form{width:100%;max-width:100%;display:flex;flex-direction:column;gap:9px}
.mam-sa-modal-body #mam-sa-fee-collect-form .mam-sa-form-grid{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 10px;margin:0
}
.mam-sa-modal-body #mam-sa-fee-collect-form .mam-sa-field{min-width:0;margin:0}
.mam-sa-modal-body #mam-sa-fee-collect-form .mam-sa-field input,
.mam-sa-modal-body #mam-sa-fee-collect-form .mam-sa-field select,
.mam-sa-modal-body #mam-sa-fee-collect-form .mam-sa-field textarea{
 width:100%;min-width:0;max-width:100%;box-sizing:border-box
}
.mam-sa-fee-multi-picker{padding:8px 10px;border:1px solid var(--mam-border-color);border-radius:var(--mam-field-radius,6px);background:var(--mam-form-bg,#fff)}
.mam-sa-fee-multi-picker>strong{display:block;margin-bottom:7px}
.mam-sa-fee-type-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px 10px}
.mam-sa-fee-type-choice{display:flex;align-items:center;gap:6px;min-width:0;font-size:12px}
.mam-sa-fee-type-choice input{flex:0 0 auto;accent-color:var(--mam-primary)}
.mam-sa-fee-type-choice span{overflow-wrap:anywhere}
.mam-sa-fee-selected-items{display:flex;flex-direction:column;gap:7px}
.mam-sa-fee-selected-row{padding:8px 10px;border:1px solid var(--mam-border-color);border-radius:var(--mam-card-radius,8px);background:var(--mam-card-bg,#fff)}
.mam-sa-fee-selected-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:7px}
.mam-sa-fee-selected-row .mam-sa-form-grid{margin:0!important}
.mam-sa-fee-selected-row .mam-sa-field input,
.mam-sa-fee-selected-row .mam-sa-field select{height:34px;min-height:34px}
.mam-sa-fee-modal-note{margin:0;font-size:12px;color:var(--mam-muted-text)}
@media(max-width:620px){
 .mam-sa-modal[data-size="large"]:has(#mam-sa-fee-collect-form){max-width:calc(100% - 16px)!important;width:calc(100% - 16px)!important}
 .mam-sa-fee-type-list{grid-template-columns:repeat(2,minmax(0,1fr))}
 .mam-sa-modal-body #mam-sa-fee-collect-form .mam-sa-form-grid{grid-template-columns:1fr}
}

/* Shadow strength is controlled by Settings → Design System → Shape & Spacing. */


.mam-sa-app .mam-sa-summary-card,.mam-sa-app .mam-sa-student-stat,.mam-sa-app .mam-sa-stat-card,.mam-sa-app .mam-sa-component-card{box-shadow:var(--mam-summary-card-shadow,0 2px 8px rgba(15,27,42,.08))!important}


/* v2.16.1 — Summary card border control, universal status colors and compact student status controls */
.mam-sa-app .mam-sa-summary-card,
.mam-sa-app .mam-sa-student-stat,
.mam-sa-app .mam-sa-stat-card,
.mam-sa-app .mam-sa-component-card{
 border:var(--mam-summary-card-border,1px solid var(--mam-border-color,#d9e1ea))!important;
}
.mam-sa-app .mam-sa-status-active,
.mam-sa-app .mam-sa-status-paid,
.mam-sa-app .mam-sa-status-success,
.mam-sa-app .mam-sa-status-completed,
.mam-sa-app .mam-sa-status-present{
 background:#e8f7ed!important;color:#16803a!important;border-color:#b7e4c7!important;
}
.mam-sa-app .mam-sa-status-inactive,
.mam-sa-app .mam-sa-status-due,
.mam-sa-app .mam-sa-app .mam-sa-status-overdue,
.mam-sa-app .mam-sa-status-failed,
.mam-sa-app .mam-sa-status-absent{
 background:#fff0f0!important;color:#c62828!important;border-color:#f2c2c2!important;
}
.mam-sa-student-table{table-layout:fixed;width:100%}
.mam-sa-student-table th,.mam-sa-student-table td{padding:7px 6px;overflow-wrap:anywhere}
.mam-sa-student-table th:nth-child(1),.mam-sa-student-table td:nth-child(1){width:28px}
.mam-sa-student-table th:nth-child(2),.mam-sa-student-table td:nth-child(2){width:30px}
.mam-sa-student-table th:nth-child(3),.mam-sa-student-table td:nth-child(3){width:100px}
.mam-sa-student-table th:nth-child(4),.mam-sa-student-table td:nth-child(4){width:55px}
.mam-sa-student-table th:nth-child(7),.mam-sa-student-table td:nth-child(7){width:60px}
.mam-sa-student-table th:nth-child(8),.mam-sa-student-table td:nth-child(8){width:72px}
.mam-sa-student-table th:nth-child(9),.mam-sa-student-table td:nth-child(9){width:92px}
.mam-sa-student-table th:nth-child(10),.mam-sa-student-table td:nth-child(10){width:90px}
.mam-sa-student-table th:nth-child(11),.mam-sa-student-table td:nth-child(11){width:112px}
.mam-sa-student-status-cell{display:flex;flex-direction:column;gap:5px;align-items:flex-start}
.mam-sa-student-status-select{width:100%;max-width:108px;height:29px;min-height:29px;padding:2px 5px;font-size:11px;border:1px solid var(--mam-border-color);border-radius:5px;background:#fff}
.mam-sa-student-table .mam-sa-actions{white-space:nowrap}
.mam-sa-student-table .mam-sa-actions .button{padding:3px 7px;font-size:11px}
.mam-sa-fee-total-line{display:flex;justify-content:flex-end;align-items:center;gap:8px;padding:8px 10px;border-radius:6px;background:var(--mam-active-bg,#eaf3fc);color:var(--mam-text-color)}
.mam-sa-fee-total-line strong{font-size:15px;color:var(--mam-heading-color)}
@media(max-width:900px){
 .mam-sa-student-table{min-width:900px}
 .mam-sa-student-table th,.mam-sa-student-table td{padding:6px 5px}
}


/* v2.16.3 — Unified case-preserving registration, bulk status controls and compact staff columns */
.mam-sa-bulk-status{position:relative;display:flex;align-items:center;justify-content:center}
.mam-sa-status-bulb{width:36px;min-width:36px;height:35px;min-height:35px;padding:0!important;display:inline-flex;align-items:center;justify-content:center;color:#245da8!important}
.mam-sa-status-bulb .dashicons{font-size:18px;width:18px;height:18px}
.mam-sa-bulk-status-pop{position:absolute;z-index:50;top:calc(100% + 6px);left:0;display:flex;gap:6px;align-items:center;padding:8px;background:#fff;border:1px solid #d9e1ea;border-radius:8px;box-shadow:0 5px 18px rgba(15,27,42,.14);min-width:210px}
.mam-sa-bulk-status-pop[hidden]{display:none!important}
.mam-sa-bulk-status-pop select{height:32px;min-height:32px;flex:1;min-width:100px}
.mam-sa-bulk-status-pop .button{height:32px;min-height:32px;padding:0 10px;line-height:30px}
.mam-sa-student-status-cell{display:flex;align-items:center;justify-content:flex-start;min-height:32px}
.mam-sa-student-table .mam-sa-status{display:inline-flex;align-items:center;padding:4px 9px!important;line-height:16px!important;border-radius:16px;font-size:11px;font-weight:500}
.mam-sa-student-filters-reference{grid-template-columns:minmax(150px,1.4fr) repeat(4,minmax(105px,.8fr)) 36px auto auto}
.mam-sa-staff-filters{grid-template-columns:minmax(150px,1.35fr) minmax(115px,.8fr) minmax(115px,.8fr) minmax(105px,.75fr) 36px auto auto auto}
.mam-sa-staff-table th:nth-child(3),.mam-sa-staff-table td:nth-child(3){width:9%!important}
.mam-sa-staff-table th:nth-child(4),.mam-sa-staff-table td:nth-child(4){width:14%!important}
.mam-sa-staff-table th:nth-child(5),.mam-sa-staff-table td:nth-child(5){width:10%!important}
.mam-sa-staff-table th:nth-child(6),.mam-sa-staff-table td:nth-child(6){width:11%!important}
.mam-sa-staff-table th:nth-child(7),.mam-sa-staff-table td:nth-child(7){width:9%!important}
.mam-sa-staff-table th:nth-child(8),.mam-sa-staff-table td:nth-child(8){width:13%!important}
.mam-sa-staff-table .mam-sa-student-person{margin:0!important;padding:0!important;min-width:0!important}
.mam-sa-staff-table .mam-sa-status{padding:4px 8px!important;line-height:16px!important}
@media(max-width:1100px){.mam-sa-student-filters-reference,.mam-sa-staff-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.mam-sa-student-filters-reference .mam-sa-student-search,.mam-sa-staff-filters .mam-sa-student-search{grid-column:1/-1}}
@media(max-width:760px){.mam-sa-student-filters-reference,.mam-sa-staff-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.mam-sa-bulk-status-pop{left:auto;right:0}}
@media(max-width:480px){.mam-sa-student-filters-reference,.mam-sa-staff-filters{grid-template-columns:1fr}.mam-sa-student-filters-reference .mam-sa-student-search,.mam-sa-staff-filters .mam-sa-student-search{grid-column:auto}}

.mam-sa-app .mam-sa-status-pending{background:#fff7e6!important;color:#9a6700!important;border-color:#f1d59a!important}

/* v2.16.4 — Reference-style bulk status selector shared by Students and Staff */
.mam-sa-bulk-status-inline{position:static;display:flex;align-items:center;gap:8px;min-width:0;width:100%}
.mam-sa-bulk-status-inline select{flex:1 1 auto;min-width:105px;width:100%;height:36px;min-height:36px;padding:0 10px;border:1px solid var(--mam-border-color,#d8dee8);border-radius:6px;background:#fff;color:var(--mam-text-color,#263445);font-size:13px}
.mam-sa-bulk-status-inline .button{flex:0 0 auto;height:36px;min-height:36px;padding:0 18px;line-height:34px}
.mam-sa-student-filters-reference{grid-template-columns:minmax(150px,1.35fr) repeat(4,minmax(95px,.8fr)) minmax(190px,1fr) auto auto}
.mam-sa-staff-filters{grid-template-columns:minmax(150px,1.25fr) minmax(105px,.8fr) minmax(105px,.8fr) minmax(95px,.7fr) minmax(190px,1fr) auto auto auto}
.mam-sa-status-rejected{background:#fdebec!important;color:#b42318!important;border:1px solid #f5c2c7}
@media(max-width:1100px){.mam-sa-student-filters-reference,.mam-sa-staff-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.mam-sa-bulk-status-inline{grid-column:span 2}}

/* v2.16.5 — Staff filters aligned to the single-row Student directory layout */
.mam-sa-staff-filters{
 display:grid!important;
 grid-template-columns:minmax(190px,1.55fr) repeat(3,minmax(125px,1fr)) auto auto auto!important;
 align-items:end!important;
 gap:10px!important;
}
.mam-sa-staff-filters>label{min-width:0!important;width:auto!important}
.mam-sa-staff-filters .mam-sa-bulk-status-inline{align-self:end;min-width:118px}
.mam-sa-staff-filters .mam-sa-bulk-status-inline select{width:100%;min-width:118px}
.mam-sa-staff-filters #mam-sa-staff-filter-search,
.mam-sa-staff-filters #mam-sa-staff-reset{white-space:nowrap}
@media(max-width:1100px){
 .mam-sa-staff-filters{grid-template-columns:repeat(4,minmax(0,1fr))!important}
 .mam-sa-staff-filters .mam-sa-student-search{grid-column:span 2}
}
@media(max-width:650px){
 .mam-sa-staff-filters{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .mam-sa-staff-filters .mam-sa-student-search{grid-column:span 2}
}

/* v2.16.6 — Student-standard Staff filters and full-width salary filter row */
.mam-sa-staff-filters{
 display:grid!important;
 grid-template-columns:minmax(155px,1.25fr) minmax(105px,.78fr) minmax(115px,.82fr) minmax(105px,.75fr) minmax(132px,auto) auto auto auto!important;
 align-items:end!important;
 gap:9px!important;
}
.mam-sa-staff-filters .mam-sa-student-search{min-width:0!important}
.mam-sa-staff-filters .mam-sa-bulk-status-inline{min-width:132px}
.mam-sa-staff-filters .mam-sa-bulk-status-inline select{min-width:0;width:100%}
.mam-sa-staff-filters #mam-sa-staff-result-count{
 align-self:end;justify-self:end;white-space:nowrap;margin:0 0 8px 2px;
}
@media(max-width:1150px){
 .mam-sa-staff-filters{grid-template-columns:repeat(4,minmax(0,1fr))!important}
 .mam-sa-staff-filters .mam-sa-student-search{grid-column:span 2}
}
@media(max-width:650px){
 .mam-sa-staff-filters{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .mam-sa-staff-filters .mam-sa-student-search{grid-column:span 2}
}
.mam-sa-salary-filters{
 grid-template-columns:minmax(160px,1.35fr) minmax(130px,.9fr) minmax(130px,.9fr) minmax(135px,.9fr) minmax(100px,auto) minmax(100px,auto)!important;
 width:100%;box-sizing:border-box;
}
.mam-sa-salary-filters .mam-sa-student-search{min-width:0}
.mam-sa-salary-filters>label{min-width:0}
.mam-sa-salary-filters>.button{width:100%;text-align:center}
.mam-sa-salary-section-heading>.dashicons{display:none!important}
@media(max-width:900px){
 .mam-sa-salary-filters{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 .mam-sa-salary-filters .mam-sa-student-search{grid-column:span 2}
}
@media(max-width:600px){
 .mam-sa-salary-filters{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .mam-sa-salary-filters .mam-sa-student-search{grid-column:span 2}
}


/* v2.17.0 — Public role-aware login, themed by the centralized Design System */
.mam-sa-login-page{
 --login-page-bg:var(--mam-page-bg,#f1f4f8);
 --login-card-bg:var(--mam-card-bg,#fff);
 --login-primary:var(--mam-primary,#1765dc);
 --login-primary-text:var(--mam-primary-text,#fff);
 --login-text:var(--mam-text-color,#263445);
 --login-heading:var(--mam-heading-color,#263445);
 --login-muted:var(--mam-muted-text,#687789);
 --login-field-bg:var(--mam-field-bg,#fff);
 --login-field-text:var(--mam-field-text,#263445);
 --login-field-border:var(--mam-field-border,#d9e1ea);
 --login-field-focus:var(--mam-field-active-border,#1765dc);
 min-height:100vh;width:100%;box-sizing:border-box;padding:32px 18px;
 display:flex;align-items:center;justify-content:center;
 background:var(--login-page-bg);font-family:var(--mam-font-family,Arial,sans-serif);
 color:var(--login-text);font-size:var(--mam-base-font-size,14px);
}
.mam-sa-login-page *{box-sizing:border-box}
.mam-sa-login-card{
 width:min(100%,430px);padding:32px;
 background:var(--login-card-bg);border:var(--mam-border-width,1px) solid var(--mam-border-color,#d9e1ea);
 border-radius:var(--mam-card-radius,12px);box-shadow:var(--mam-summary-card-shadow,0 4px 16px rgba(20,40,70,.08));
}
.mam-sa-login-logo{display:flex;justify-content:center;align-items:center;margin:0 0 16px}
.mam-sa-login-logo img{display:block;max-width:100px;max-height:100px;width:auto;height:auto;object-fit:contain}
.mam-sa-login-school{margin:0 0 6px;text-align:center;color:var(--login-heading);font-size:clamp(19px,var(--mam-heading-font-size,20px),25px);line-height:1.3;font-weight:var(--mam-heading-weight,600)}
.mam-sa-login-title{margin:0 0 24px;text-align:center;color:var(--login-primary);font-size:calc(var(--mam-heading-font-size,20px) * .88);line-height:1.3;font-weight:var(--mam-heading-weight,600)}
.mam-sa-login-form{display:flex;flex-direction:column;gap:16px}
.mam-sa-login-form>label{display:flex;flex-direction:column;gap:7px;min-width:0}
.mam-sa-login-form>label>span{font-size:var(--mam-label-font-size,13px);font-weight:600;color:var(--login-text)}
.mam-sa-login-form input[type=text],.mam-sa-login-form input[type=password]{
 width:100%;height:var(--mam-button-height,38px);min-height:var(--mam-button-height,38px);
 padding:0 11px;border:var(--mam-border-width,1px) solid var(--login-field-border);
 border-radius:var(--mam-field-radius,6px);background:var(--login-field-bg);color:var(--login-field-text);
 font:inherit;outline:none;box-shadow:none;
}
.mam-sa-login-form input:focus{border-color:var(--login-field-focus);box-shadow:0 0 0 3px var(--mam-field-focus-ring,rgba(23,101,220,.12))}
.mam-sa-login-password-wrap{position:relative;display:flex;align-items:center}
.mam-sa-login-password-wrap input{padding-right:44px!important}
.mam-sa-login-eye{position:absolute;right:5px;top:50%;transform:translateY(-50%);width:34px;height:32px;border:0;background:transparent;color:var(--login-muted);cursor:pointer;border-radius:var(--mam-button-radius,6px)}
.mam-sa-login-eye .dashicons{font-size:19px;width:19px;height:19px}
.mam-sa-login-form .mam-sa-login-remember{display:flex;flex-direction:row;align-items:center;gap:8px}
.mam-sa-login-remember input{margin:0;width:15px;height:15px;accent-color:var(--login-primary)}
.mam-sa-login-remember span{font-size:var(--mam-label-font-size,13px);color:var(--login-text);font-weight:400}
.mam-sa-login-submit{width:100%;height:var(--mam-button-height,38px);min-height:var(--mam-button-height,38px);border:var(--mam-border-width,1px) solid var(--login-primary);border-radius:var(--mam-button-radius,6px);background:var(--login-primary);color:var(--login-primary-text);font:inherit;font-weight:600;cursor:pointer;padding:0 16px}
.mam-sa-login-submit:hover{background:var(--mam-button-hover,var(--login-primary));border-color:var(--mam-button-hover,var(--login-primary))}
.mam-sa-login-error{margin:0 0 16px;padding:10px 12px;border:1px solid var(--mam-danger,#c43b3b);border-radius:var(--mam-field-radius,6px);background:color-mix(in srgb,var(--mam-danger,#c43b3b) 8%,white);color:var(--mam-danger,#a33d3d);font-size:13px;line-height:1.45}
.mam-sa-shortcode-settings p{margin:0 0 10px;color:var(--muted);font-size:12px}
.mam-sa-shortcode-field{display:flex;flex-direction:column;gap:6px;margin:0 0 8px}
.mam-sa-shortcode-field span{font-size:12px;font-weight:600}
.mam-sa-shortcode-field input{width:100%;height:35px;padding:0 10px;border:1px solid var(--mam-border-color,#d9e1ea);border-radius:var(--mam-field-radius,6px);background:var(--mam-field-bg,#fff);color:var(--mam-text-color,#263445);font:inherit}
.mam-sa-shortcode-settings small{display:block;color:var(--mam-muted-text,#687789);font-size:11px;line-height:1.5}
@media(max-width:520px){.mam-sa-login-page{padding:18px 12px}.mam-sa-login-card{padding:24px 20px}.mam-sa-login-logo img{max-width:82px;max-height:82px}}

.mam-sa-login-body{margin:0!important;padding:0!important;background:var(--mam-page-bg,#f1f4f8)!important}
.mam-sa-login-body .site-header,.mam-sa-login-body .site-footer,
.mam-sa-login-body .wp-site-blocks>header,.mam-sa-login-body .wp-site-blocks>footer,
.mam-sa-login-body .entry-header,.mam-sa-login-body .page-header{display:none!important}
.mam-sa-login-body .site-content,.mam-sa-login-body .content-area,
.mam-sa-login-body .site-main,.mam-sa-login-body .entry-content,
.mam-sa-login-body .wp-site-blocks{margin:0!important;padding:0!important;max-width:none!important;width:100%!important}

/* v2.17.1 — Password visibility control: centered and neutral on hover/focus */
.mam-sa-login-password-wrap{position:relative!important;display:flex!important;align-items:center!important;min-height:var(--mam-button-height,38px)}
.mam-sa-login-password-wrap input{display:block!important}
.mam-sa-login-eye{
 position:absolute!important;right:5px!important;top:50%!important;bottom:auto!important;
 transform:translateY(-50%)!important;margin:0!important;padding:0!important;
 width:32px!important;height:30px!important;min-height:30px!important;line-height:30px!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
 border:0!important;border-radius:4px!important;background:transparent!important;
 box-shadow:none!important;color:var(--mam-muted-text,#687789)!important;outline:none!important;
}
.mam-sa-login-eye:hover,.mam-sa-login-eye:focus,.mam-sa-login-eye:focus-visible,
.mam-sa-login-eye:active{
 background:transparent!important;background-color:transparent!important;
 border:0!important;box-shadow:none!important;outline:none!important;
 color:var(--mam-primary,#1765dc)!important;
}
.mam-sa-login-eye .dashicons{display:block!important;margin:0!important;line-height:19px!important}
