:root{--green:#176b50;--green2:#e8f4ef;--ink:#17221e;--muted:#6d7773;--line:#e3e9e6;--bg:#f5f7f6}*{box-sizing:border-box}html,body{margin:0;font-family:'Tajawal','Segoe UI',sans-serif;background:var(--bg);color:var(--ink)}a{text-decoration:none}.page{min-height:100vh;display:flex}.sidebar{width:260px;background:#103f33;color:#fff;position:fixed;inset-block:0;right:0;z-index:10}.brand{height:92px;padding:23px 24px;border-bottom:1px solid #ffffff18}.brand a{display:flex;align-items:center;gap:12px;color:#fff}.brand b{display:block;font-size:22px}.brand small{display:block;color:#c3d7d0;font-size:11px}.brand-mark{width:42px;height:42px;border-radius:12px;background:#d5a94d;color:#fff;display:grid;place-items:center;font-size:22px;font-weight:800}.nav{padding:26px 14px;gap:6px}.nav-link{color:#d6e4df!important;padding:13px 16px;border-radius:10px;display:flex;gap:14px;align-items:center}.nav-link span{width:22px;text-align:center;font-size:19px}.nav-link.active,.nav-link:hover{background:#ffffff14;color:#fff!important}.nav-footer{position:absolute;bottom:24px;right:20px;left:20px;padding:16px;border:1px solid #ffffff1c;border-radius:12px;background:#ffffff09}.nav-footer>*{display:block}.nav-footer small,.nav-footer span{color:#afc9c0;font-size:11px}.nav-footer b{margin:5px 0}.navbar-toggler{display:none}main{margin-right:260px;width:calc(100% - 260px)}.top-row{height:72px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:flex-end;gap:14px;padding:0 36px}.top-row strong{font-size:14px}.role-chip{display:block;font-size:11px;color:var(--green)}.avatar{width:40px;height:40px;border-radius:50%;background:var(--green2);color:var(--green);display:grid;place-items:center;font-weight:700}.content{padding:38px;max-width:1500px;margin:auto}.page-heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:28px}.page-heading h1{margin:4px 0;font-size:30px}.page-heading p,.panel p{color:var(--muted);margin:0}.eyebrow{color:var(--green);font-size:12px}.primary-btn,.secondary-btn{border:0;border-radius:9px;padding:11px 18px;font-family:inherit;font-weight:700;cursor:pointer}.primary-btn{background:var(--green);color:#fff}.secondary-btn{background:#fff;border:1px solid var(--line);color:var(--ink)}.actions{display:flex;gap:8px}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:20px}.stat-card,.panel{background:#fff;border:1px solid var(--line);border-radius:14px}.stat-card{padding:22px;display:flex;gap:16px;align-items:center}.stat-card small,.stat-card strong,.stat-card em{display:block}.stat-card small{color:var(--muted)}.stat-card strong{font-size:27px;margin:3px 0}.stat-card em{font-size:11px;color:var(--green);font-style:normal}.stat-icon{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;font-weight:800}.green{background:#e5f4ed;color:#177353}.blue{background:#e8f0fb;color:#3068a2}.red{background:#fbecec;color:#b24d4d}.gold{background:#fbf3df;color:#a67924}.dashboard-grid{display:grid;grid-template-columns:2fr 1fr;gap:18px}.panel{padding:24px;margin-bottom:18px}.panel-title,.report-header,.summary-row{display:flex;justify-content:space-between;align-items:center}.panel h2{font-size:18px;margin:0 0 5px}.success-pill,.surah-pill{background:var(--green2);color:var(--green);border-radius:20px;padding:5px 10px;font-size:11px}.chart-placeholder{height:220px;margin-top:30px;border-bottom:1px solid var(--line);display:flex;align-items:flex-end;justify-content:space-around;padding:0 30px}.bar{width:42px;background:linear-gradient(#2b8c6c,#176b50);border-radius:7px 7px 0 0;position:relative}.bar span{position:absolute;bottom:-28px;width:70px;right:-14px;color:var(--muted);font-size:11px}.progress-item{margin:24px 0}.progress-item span{display:flex;justify-content:space-between;font-size:13px}.progress-item progress{width:100%;height:8px;accent-color:var(--green)}table{width:100%;border-collapse:collapse}th,td{text-align:right;padding:15px;border-bottom:1px solid var(--line);font-size:13px}th{color:var(--muted);font-weight:600;background:#fafbfa}.table-panel{padding:0;overflow:hidden}.block{display:block;color:var(--muted)}input,select{font:inherit;border:1px solid var(--line);border-radius:8px;padding:10px;background:#fff;width:100%}.form-grid,.filters{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.form-grid label,.filters label{font-size:12px;color:var(--muted)}.form-grid input,.form-grid select,.filters input,.filters select{margin-top:6px;color:var(--ink)}.credentials{margin-top:14px;background:#fff8df;border:1px solid #efd98f;padding:12px;border-radius:8px;font-size:13px}.segmented{display:flex}.segmented button{border:1px solid var(--line);background:#fff;padding:7px 10px;font:inherit;font-size:11px}.segmented .selected{background:var(--green);color:#fff}.activity{display:flex;align-items:center;gap:14px;padding:18px 0;border-bottom:1px solid var(--line)}.activity p{font-size:12px}.rating{margin-right:auto;color:#d5a12e}.big-number{font-size:52px;color:var(--green);font-weight:800;margin-top:25px}.report-header{padding-bottom:18px}.report-area{padding:24px}.filters{margin-bottom:18px}.filters label{display:block}.filters.panel{grid-template-columns:2fr 1fr 1fr 2fr}.navbar-toggler{appearance:none}
@media(max-width:1000px){.stats-grid{grid-template-columns:repeat(2,1fr)}.dashboard-grid{grid-template-columns:1fr}.form-grid,.filters.panel{grid-template-columns:repeat(2,1fr)}}
@media(max-width:820px){.stats-grid{grid-template-columns:1fr}.form-grid,.filters.panel{grid-template-columns:1fr}.table-panel{overflow:auto}.actions{flex-direction:column}}
@media print{.sidebar,.top-row,.page-heading,.filters{display:none!important}main{margin:0;width:100%}.content{padding:0}.report-area{border:0}.panel:not(.report-area){display:none}}
.sidebar{overflow:hidden;overscroll-behavior:contain}
#blazor-error-ui{display:none}
.alert-student{border:1px solid #efd98f;background:#fff;border-radius:20px;padding:5px 10px;color:#705718;font:inherit;font-size:11px;cursor:pointer}.alert-student small{color:#a67924;margin-right:5px}
.attendance-summary{display:grid;grid-template-columns:repeat(4,1fr);padding:0}.attendance-summary div{padding:18px 24px;border-left:1px solid var(--line)}.attendance-summary div:last-child{border:0}.attendance-summary b,.attendance-summary span{display:block}.attendance-summary b{font-size:25px}.attendance-summary span{font-size:11px;color:var(--muted)}.attendance-summary .present b{color:var(--green)}.attendance-summary .absent b{color:#b24d4d}.segmented .danger{background:#b74d4d}.segmented .warning{background:#b9892d}.segmented .neutral{background:#60716b}.save-message{background:#e5f4ed;color:var(--green);padding:12px 16px;border-radius:9px;margin-bottom:14px;font-weight:600}.empty-state{text-align:center!important;color:var(--muted);padding:40px!important}
.report-summary{margin-bottom:18px}.report-summary div{background:#fff}.report-summary div:nth-child(2) b{color:#b9892d}.report-summary div:nth-child(4) b{color:var(--green)}
.status-meter{height:5px;background:#e7eeeb;border-radius:8px;overflow:hidden;margin-top:7px;width:120px}.status-meter span{display:block;height:100%;background:var(--green);border-radius:8px}.status-medium .status-meter span{background:#b9892d}.status-low .status-meter span{background:#b24d4d}.status-good{border-color:#bfe3d2}.status-medium{border-color:#efd98f}.status-low{border-color:#e7b1b1}.notification-menu{position:relative}.notification-trigger{list-style:none;cursor:pointer;width:38px;height:38px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center;background:#fff;position:relative}.notification-trigger::-webkit-details-marker{display:none}.bell-icon{font-size:18px;line-height:1}.notification-count{position:absolute;top:-5px;left:-5px;min-width:18px;height:18px;border-radius:10px;background:#b24d4d;color:#fff;font-size:10px;display:grid;place-items:center;padding:0 4px}.notification-popover{position:absolute;top:48px;left:0;width:330px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 30px #173e3020;z-index:30;overflow:hidden}.notification-heading{display:flex;justify-content:space-between;padding:13px 15px;background:#f7faf8;border-bottom:1px solid var(--line)}.notification-heading small,.notification-empty{color:var(--muted);font-size:11px}.notification-empty{padding:18px;margin:0}.notification-item{display:flex;gap:10px;padding:13px 15px;border-bottom:1px solid var(--line);color:var(--ink)}.notification-item:last-child{border-bottom:0}.notification-item b,.notification-item small{display:block}.notification-item b{font-size:12px}.notification-item small{font-size:11px;color:var(--muted);margin-top:3px;line-height:1.5}.notification-dot{width:8px;height:8px;border-radius:50%;background:#b9892d;margin-top:5px;flex:0 0 auto}.notification-item.success .notification-dot{background:var(--green)}
@media(max-width:820px){.notification-popover{position:fixed;top:64px;left:14px;right:14px;width:auto}.status-meter{width:100px}}
@media(max-width:820px){.attendance-summary{grid-template-columns:repeat(2,1fr)}.segmented{min-width:280px}}
.field-hint{display:block;margin-top:5px;color:var(--muted);font-size:10px}.error-message{background:#fff0f0!important;border-color:#e7b1b1!important;color:#a64040}.active-filter{display:flex;align-items:center;gap:8px;margin:-4px 0 14px;color:var(--muted);font-size:13px}.active-filter b{color:var(--green)}.result-count{margin-right:auto;background:#fff;border:1px solid var(--line);border-radius:20px;padding:5px 11px}.report-filters.panel{grid-template-columns:repeat(4,1fr)}
@media(max-width:820px){.report-filters.panel{grid-template-columns:1fr}}
@media(max-width:820px){.wide-field{grid-column:span 1}}
.plan-box{margin-top:18px;padding:15px;border-radius:10px;background:var(--green2);display:grid;gap:5px}.plan-box strong{color:var(--green)}.plan-box span{font-size:11px;color:var(--muted)}.section-gap{margin-top:30px!important}.small-stat{font-size:18px!important}.table-link{color:var(--green);font-size:11px;margin-left:8px;white-space:nowrap}
.form-note{background:var(--green2);padding:10px 12px;border-radius:8px;margin:8px 0 18px!important;font-size:12px}.logout-btn{border:1px solid var(--line);background:#fff;border-radius:8px;padding:7px 11px;color:var(--muted);font-family:inherit;cursor:pointer}.login-page{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at top right,#e6f3ed,transparent 40%),var(--bg);padding:20px}.login-card{width:min(430px,100%);background:#fff;border:1px solid var(--line);border-radius:18px;padding:34px;box-shadow:0 18px 55px #173e3020}.login-brand{display:flex;align-items:center;gap:14px;margin-bottom:28px}.login-brand h1{font-size:24px;margin:0 0 5px}.login-brand p{margin:0;color:var(--muted);font-size:13px}.login-card form{display:grid;gap:16px}.login-card label{font-size:13px;font-weight:600}.login-card input{margin-top:6px}.login-button{width:100%;margin-top:4px}.demo-login{margin-top:22px;background:#f7f9f8;border:1px dashed var(--line);border-radius:10px;padding:12px;display:grid;grid-template-columns:1fr 1fr;gap:4px;font-size:12px}.demo-login b{grid-column:1/-1;color:var(--muted)}
.plan-alert{display:flex;gap:13px;align-items:flex-start;background:#fff8df;border:1px solid #efd98f;color:#705718;border-radius:12px;padding:15px 18px;margin-bottom:18px}.plan-alert-icon{width:27px;height:27px;border-radius:50%;display:grid;place-items:center;background:#d5a12e;color:#fff;font-weight:800;flex:0 0 auto}.plan-alert b{font-size:14px}.plan-alert p{margin:5px 0 0;color:#705718;font-size:12px}.plan-alert-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.plan-alert-list span{background:#fff;border:1px solid #efd98f;border-radius:20px;padding:4px 9px;font-size:11px}
.date-picker{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);white-space:nowrap}.date-picker input{width:150px;padding:9px}.all-present-active{background:#2b8c6c!important;box-shadow:0 0 0 3px #d5eee4;color:#fff}
.status-pill{display:inline-block;border-radius:20px;padding:5px 9px;font-size:11px}.status-pill.approved{background:#e5f4ed;color:#177353}.status-pill.pending{background:#fff8df;color:#9b751d}.status-pill.rejected{background:#fff0f0;color:#a64040}.table-action{border:0;background:transparent;color:var(--green);font:inherit;font-size:11px;cursor:pointer;margin-left:8px}.table-action.approve{color:#177353}.table-action.reject{color:#a64040}.wide-field{grid-column:span 2}
.golden-config{border:1px solid #cfe8dc;background:#fbfefc;border-radius:11px;padding:18px}.golden-config h3{margin:0 0 6px;color:var(--green);font-size:16px}.golden-preview{margin-top:15px;background:#edf8f2}.four-day-plan{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-top:6px}.four-day-plan span{background:#fff;border:1px solid #d9ece2;border-radius:7px;padding:7px;color:var(--ink);font-size:11px}@media(max-width:820px){.four-day-plan{grid-template-columns:repeat(2,1fr)}.golden-config.wide-field{grid-column:span 1}}
.daily-plan-section{margin-top:20px}.daily-plan-section h3{margin:0 0 5px;font-size:16px}.daily-plan-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}.daily-plan-card{border:1px solid #dbe8e1;border-radius:12px;overflow:hidden;background:#fff}.daily-plan-card.today{border:2px solid #2b8c6c;box-shadow:0 5px 14px #176b5014}.daily-plan-card header{display:flex;justify-content:space-between;gap:10px;padding:12px 14px;background:#edf8f2;color:var(--green)}.daily-plan-card header span{font-size:12px;color:var(--muted)}.daily-requirement{padding:11px 14px;border-top:1px solid var(--line);display:grid;gap:4px}.daily-requirement small{font-weight:800;font-size:12px}.daily-requirement b{font-size:12px;line-height:1.8;font-weight:600}.daily-requirement.ward small{color:#176b50}.daily-requirement.minor small{color:#3068a2}.daily-requirement.major small{color:#a67924}.role-dashboard{padding:28px}.role-dashboard .actions{margin-top:18px;flex-wrap:wrap}@media(max-width:820px){.daily-plan-grid{grid-template-columns:1fr}}
.monthly-plan{padding:18px;border:1px solid #d7e6de;border-radius:18px;background:linear-gradient(145deg,#fff,#f7fbf8);text-align:right}.monthly-plan-heading,.monthly-week-header{display:flex;align-items:center;justify-content:space-between;gap:16px}.monthly-plan-heading h3{margin:5px 0;font-size:20px;color:var(--green)}.monthly-plan-heading p{margin:0;color:var(--muted)}.monthly-plan-period{white-space:nowrap;padding:8px 12px;border-radius:999px;background:#edf8f2;color:var(--green);font-size:12px;font-weight:800}.monthly-weeks{display:grid;gap:16px;margin-top:18px}.monthly-week{border:1px solid #dbe8e1;border-radius:16px;background:#fff;overflow:hidden}.monthly-week.current{border-color:#c89b38;box-shadow:0 0 0 2px #c89b3820}.monthly-week-header{padding:12px 16px;background:#f2f8f4}.monthly-week-header div{display:flex;align-items:center;gap:12px}.monthly-week-header span{font-weight:900;color:var(--green)}.monthly-week-header small{color:var(--muted)}.monthly-week-header>b{font-size:11px;color:#866319;background:#fff3cf;padding:5px 9px;border-radius:999px}.monthly-days{display:grid;grid-template-columns:repeat(4,minmax(220px,1fr));overflow-x:auto}.monthly-day{min-width:220px;border-inline-start:1px solid var(--line)}.monthly-day:last-child{border-inline-start:0}.monthly-day.today{background:#fffdf5;box-shadow:inset 0 4px #c89b38}.monthly-day>header{display:flex;justify-content:space-between;padding:11px 14px;color:var(--green);background:#fbfdfb}.monthly-day>header span{font-size:12px;color:var(--muted)}.monthly-day .requirement-table{font-size:11px}.plan-month-row>td{padding:14px!important;background:#f6faf7!important}.month-action{color:var(--green)!important;border-color:#a8cdbd!important}@media(max-width:800px){.monthly-plan{padding:13px}.monthly-plan-heading{align-items:flex-start;flex-direction:column}.monthly-plan-period{white-space:normal}.monthly-week-header{align-items:flex-start;padding:11px 13px}.monthly-week-header div{align-items:flex-start;flex-direction:column;gap:3px}.monthly-days{display:flex;gap:10px;overflow-x:auto;padding:10px 12px 14px;scroll-padding-inline:12px;scroll-snap-type:inline mandatory;overscroll-behavior-inline:contain;scrollbar-width:thin}.monthly-day{min-width:0;flex:0 0 calc(100% - 28px);overflow:hidden;border:1px solid var(--line)!important;border-radius:12px;scroll-snap-align:start;scroll-snap-stop:always}.monthly-day.today{border-color:#d5a94d!important}.monthly-day .requirement-table{table-layout:fixed}.monthly-day .requirement-table th,.monthly-day .requirement-table td{padding:7px 5px}}
.report-date-range{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-top:14px}.report-date-range label{display:grid;gap:6px;min-width:190px;font-weight:700}.report-date-range input,.report-filters input[type=date]{min-height:46px}.date-error{color:#b33f3f;font-weight:800}.report-date-error{margin:-6px 0 16px;padding:10px 14px;border:1px solid #efcaca;border-radius:12px;background:#fff1f1}.personal-period-panel .date-error{display:block;margin-top:8px}
.password-change-panel{display:grid;gap:16px;border-color:#c9ddd4}.password-change-panel h2{margin:0 0 5px}.password-change-fields{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:14px}.password-change-fields label{font-size:12px;color:var(--muted)}.password-change-fields input{margin-top:6px}@media(max-width:650px){.password-change-fields{grid-template-columns:1fr}}
.weekly-ward-panel{padding:20px}.weekly-header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px}.weekly-header h2{margin:0 0 4px;font-size:18px}.week-navigation{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}.week-navigation strong{font-size:12px;color:var(--green);white-space:nowrap}.weekly-table{margin:0}.weekly-table th,.weekly-table td{text-align:center}.weekly-table th:first-child,.weekly-table td:first-child{text-align:right}.weekly-table th small{font-weight:400;color:var(--muted)}.ward-check{width:23px;height:23px;accent-color:var(--green);cursor:pointer}.weekly-actions{display:flex;align-items:center;gap:14px;margin-top:16px}.weekly-actions .save-message{margin:0;padding:9px 12px}.danger-btn{border:1px solid #e7b1b1;background:#fff0f0;color:#a64040;border-radius:9px;padding:11px 18px;font-family:inherit;font-weight:700;cursor:pointer}.confirm-box{margin-top:14px;padding:12px;background:#fff0f0;border:1px solid #e7b1b1;border-radius:9px;display:flex;align-items:center;gap:10px;color:#8f3636}.confirm-box span{margin-left:auto;font-size:12px}
.requirement-table{margin-top:5px;background:#fff;border:1px solid #dbe8e1;border-radius:7px;overflow:hidden}.requirement-table th,.requirement-table td{padding:7px 9px;font-size:11px}.requirement-table th{background:#f7faf8}.requirement-table td{font-weight:600}
.personal-period-panel{display:flex;align-items:center;gap:16px;margin-bottom:18px}.personal-period-panel>span{font-size:13px;font-weight:700}.period-buttons button{min-width:90px}.personal-period-panel .field-hint{margin-right:auto}
@media(max-width:820px){.personal-period-panel{align-items:stretch;flex-direction:column;gap:10px}.personal-period-panel .field-hint{margin-right:0}}
.edit-action{display:inline-block;border:1px solid #b7d9ca;background:#edf8f2;color:var(--green);border-radius:7px;padding:6px 11px;font-weight:700;font-size:12px}.primary-btn:disabled{opacity:.55;cursor:not-allowed}.form-grid textarea{font:inherit;border:1px solid var(--line);border-radius:8px;padding:10px;background:#fff;width:100%;resize:vertical;margin-top:6px;color:var(--ink)}
.brand-logo{width:46px;height:46px;display:block;flex:0 0 auto;color:var(--green)}.brand .brand-logo{color:#d5a94d}.brand b{font-size:16px;white-space:nowrap}.brand small{font-size:10px}.login-brand .brand-logo{width:58px;height:58px}h1:focus{outline:none}.report-header .brand-logo{width:46px;height:46px}
.role-dashboard .actions>a{display:inline-flex;align-items:center;justify-content:center;min-width:150px;min-height:44px;background:var(--green);border:1px solid var(--green);color:#fff;font:inherit;font-weight:700;border-radius:9px;padding:11px 18px}
button,.primary-btn,.secondary-btn,.danger-btn,.table-action,.alert-student,.logout-btn{transition:background-color .12s ease,border-color .12s ease,color .12s ease,transform .08s ease,box-shadow .12s ease}
 .profile-avatar{cursor:pointer;transition:background-color .12s ease,color .12s ease,transform .12s ease}.profile-avatar:hover{background:#d5a94d;color:#fff;transform:translateY(-1px)}.profile-card{display:grid;grid-template-columns:1fr 2fr;gap:28px;align-items:center}.profile-identity{display:flex;align-items:center;gap:16px}.profile-identity h2{margin:0 0 7px}.profile-monogram{width:74px;height:74px;border-radius:50%;display:grid;place-items:center;background:var(--green);color:#fff;font-size:30px;font-weight:800}.profile-details{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.profile-details div{background:#f7faf8;border:1px solid var(--line);border-radius:10px;padding:13px}.profile-details small,.profile-details b{display:block}.profile-details small{font-size:11px;color:var(--muted);margin-bottom:5px}.profile-scopes h2{margin-top:0}.scope-list{display:flex;gap:8px;flex-wrap:wrap}@media(max-width:820px){.profile-card{grid-template-columns:1fr}.profile-details{grid-template-columns:1fr}}
 .reports-page{direction:rtl;text-align:right}.reports-page .page-heading,.reports-page .active-filter,.reports-page .report-header,.reports-page th,.reports-page td{text-align:right}.report-kpi-grid{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}.report-kpi-grid .stat-card{min-height:132px}.report-kpi-grid .stat-card>div{flex:1}.report-kpi-grid .stat-card strong{font-size:28px}.report-kpi-note{display:block;margin-top:7px;font-size:11px;color:var(--muted)}
.report-audience-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:-8px 0 12px;padding:7px;border:1px solid var(--line);border-radius:16px;background:color-mix(in srgb,var(--green2) 55%,#fff)}.report-audience-switch button{display:grid;gap:3px;min-height:66px;padding:11px 16px;border:1px solid transparent;border-radius:12px;background:transparent;color:var(--ink);font:inherit;text-align:right;cursor:pointer}.report-audience-switch button span{font-size:11px;color:var(--muted)}.report-audience-switch button.selected{border-color:#9dceba;background:#fff;box-shadow:0 6px 18px #17443512;color:var(--green)}.report-level-switch{display:flex;gap:8px;margin-bottom:16px}.report-level-switch button{min-height:40px;padding:8px 16px;border:1px solid #c7ddd3;border-radius:999px;background:#fff;color:var(--muted);font:inherit;font-weight:700;cursor:pointer}.report-level-switch button.selected{border-color:var(--green);background:var(--green);color:#fff}.report-administrative-breakdown>small{display:block;margin-top:7px;color:#64766f}@media(max-width:650px){.report-audience-switch{grid-template-columns:1fr}.report-level-switch{display:grid;grid-template-columns:repeat(3,1fr)}.report-level-switch button{padding-inline:7px;font-size:11px}}
.report-preview-backdrop{position:fixed;inset:0;z-index:120;display:grid;place-items:center;padding:24px;background:#071c16a8;backdrop-filter:blur(7px)}.report-preview-dialog{display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;width:min(1180px,96vw);max-height:94dvh;overflow:hidden;border:1px solid #b9d4c8;border-radius:22px;background:var(--bg);box-shadow:0 28px 80px #071c1660}.report-preview-dialog-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:18px 22px;border-bottom:1px solid var(--line);background:var(--panel,#fff)}.report-preview-dialog-header h2{margin:3px 0;font-size:22px;color:var(--ink)}.report-preview-dialog-header p{margin:0;color:var(--muted);font-size:12px}.report-preview-close{display:grid;width:40px;height:40px;place-items:center;border:1px solid var(--line);border-radius:12px;background:var(--bg);color:var(--ink);font:inherit;font-size:25px;cursor:pointer}.report-preview-student-picker{display:flex;align-items:center;gap:12px;padding:10px 22px;border-bottom:1px solid var(--line);background:var(--panel,#fff);color:var(--muted);font-size:12px;font-weight:700}.report-preview-student-picker select{width:min(360px,100%);margin:0}.report-preview-scroll{min-height:0;overflow:auto;padding:24px;overscroll-behavior:contain}.report-preview-paper{width:min(930px,100%);min-height:620px;margin:auto;padding:28px;border:1px solid #d4e2dc;border-radius:4px;background:#fff;color:#173f32;box-shadow:0 12px 38px #17443517}.report-preview-brand{display:flex;align-items:center;gap:14px;padding-bottom:14px;border-bottom:3px solid #176b50}.report-preview-brand .brand-logo{width:58px;height:58px}.report-preview-brand small,.report-preview-brand span{display:block;color:#60756d}.report-preview-brand h2{margin:2px 0;color:#173f32}.report-preview-meta,.report-preview-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:14px;border:1px solid #d7e5de}.report-preview-meta span,.report-preview-kpis span{display:grid;gap:3px;padding:10px 12px;border-inline-start:1px solid #d7e5de}.report-preview-meta span:last-child,.report-preview-kpis span:last-child{border:0}.report-preview-meta small,.report-preview-kpis small{color:#60756d;font-size:10px}.report-preview-meta b{font-size:12px}.report-preview-kpis{grid-template-columns:repeat(4,minmax(0,1fr));border:0;gap:8px}.report-preview-kpis span{border:1px solid #d7e5de!important;border-radius:10px;background:#edf7f2;text-align:center}.report-preview-kpis b{font-size:22px;color:#176b50}.report-preview-kpis em{font-size:9px;color:#60756d;font-style:normal}.report-preview-paper>h3{margin:22px 0 9px;color:#176b50}.report-preview-table-wrap{overflow:auto;border:1px solid #d7e5de;border-radius:10px}.report-preview-table{min-width:680px}.report-preview-table th,.report-preview-table td{padding:9px;border-color:#d7e5de;font-size:10px;background:#fff;color:#173f32}.report-preview-table th{background:#176b50;color:#fff}.report-preview-table td small{display:block;color:#60756d}.report-preview-note{color:#60756d;font-size:10px}.report-preview-days{display:grid;gap:9px}.report-preview-days>article{overflow:hidden;border:1px solid #d7e5de;border-radius:11px}.report-preview-days>article>header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 12px;background:#edf7f2;color:#176b50}.report-preview-days>article>header span{font-size:10px;font-weight:700}.report-preview-days>article>p{margin:0;padding:13px;color:#60756d;font-size:11px}.report-preview-days>article>div>span{display:grid;grid-template-columns:135px 1fr auto;gap:10px;padding:9px 12px;border-top:1px solid #d7e5de;font-size:10px}.report-preview-days em{font-style:normal}.report-preview-days strong{border-radius:999px;padding:3px 8px;background:#f1f3f2;color:#60756d}.report-preview-days strong.done{background:#e4f3ec;color:#176b50}.report-preview-days strong.late{background:#fff0f0;color:#a64040}.report-preview-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;padding:14px 20px;border-top:1px solid var(--line);background:var(--panel,#fff)}@media(max-width:700px){.report-preview-backdrop{padding:0}.report-preview-dialog{width:100vw;max-height:100dvh;height:100dvh;border-radius:0}.report-preview-scroll{padding:10px}.report-preview-paper{padding:16px;min-height:0}.report-preview-meta,.report-preview-kpis{grid-template-columns:1fr 1fr}.report-preview-days>article>div>span{grid-template-columns:1fr}.report-preview-actions{display:grid;grid-template-columns:1fr 1fr}.report-preview-actions button{min-height:44px}.report-preview-actions .primary-btn{grid-column:1/-1}}
 .scope-lock{background:#edf8f2;color:var(--green);border:1px solid #cfe8dc;border-radius:20px;padding:5px 10px;font-size:11px}
.plan-wizard{padding:0;overflow:hidden}.wizard-heading{display:flex;align-items:center;justify-content:space-between;padding:22px 24px 12px}.wizard-heading h2{margin:3px 0 0}.wizard-progress{font-size:12px;color:var(--green);background:var(--green2);padding:7px 11px;border-radius:20px}.plan-stepper{display:grid;grid-template-columns:repeat(3,1fr);gap:0;padding:0 24px 20px;border-bottom:1px solid var(--line)}.plan-step{border:0;border-bottom:3px solid var(--line);background:transparent!important;color:var(--muted)!important;padding:12px 8px;display:flex;align-items:center;justify-content:center;gap:8px;font:inherit;cursor:pointer;box-shadow:none!important}.plan-step span{width:25px;height:25px;border-radius:50%;background:#eef1ef;display:grid;place-items:center;font-size:11px;font-weight:800}.plan-step b{font-size:12px}.plan-step.current{color:var(--green)!important;border-color:var(--green)}.plan-step.current span{background:var(--green);color:#fff}.plan-step.completed{color:var(--green)!important;border-color:#9fcfba}.plan-step.completed span{background:var(--green2);color:var(--green)}.plan-step:disabled{cursor:not-allowed;opacity:.62}.plan-wizard>.form-note{margin:18px 24px 0!important}.wizard-panel{padding:22px 24px}.wizard-panel-title{display:grid;gap:4px;margin-bottom:20px}.wizard-panel-title b{font-size:16px}.wizard-panel-title span{font-size:12px;color:var(--muted)}.wizard-attachments{margin-top:18px}.wizard-actions{display:flex;justify-content:space-between;gap:12px;padding:18px 24px;border-top:1px solid var(--line);background:#fafcfa}.preview-btn{margin-top:14px}.required-mark{color:#b24d4d}.plan-review-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.plan-review-grid>div{padding:14px;border:1px solid var(--line);border-radius:10px;background:#fafcfa;min-width:0}.plan-review-grid small,.plan-review-grid b{display:block}.plan-review-grid small{font-size:11px;color:var(--muted);margin-bottom:5px}.plan-review-grid b{font-size:13px;overflow-wrap:anywhere}.check-item{display:flex!important;align-items:center;gap:8px;margin-top:23px}.check-item input{width:18px;height:18px;margin:0!important;accent-color:var(--green)}
@media(max-width:820px){.wizard-heading{padding:18px 16px 10px}.plan-stepper{padding:0 12px 14px}.plan-step{display:grid;gap:5px}.plan-step b{font-size:10px}.plan-step span{margin:auto}.plan-wizard>.form-note{margin:14px 16px 0!important}.wizard-panel{padding:18px 16px}.wizard-actions{padding:14px 16px}.plan-review-grid{grid-template-columns:1fr}.wizard-actions>.actions{flex-direction:row}.wizard-progress{font-size:10px}}
.mobile-nav-toggle,.mobile-nav-trigger,.mobile-nav-backdrop,.mobile-nav-close{display:none}
@media(max-width:820px){
    .page{display:block}.mobile-nav-toggle{position:fixed;opacity:0;pointer-events:none}.sidebar{width:min(84vw,300px);transform:translateX(105%);transition:transform .22s ease;box-shadow:-12px 0 35px #071c1670;overflow:hidden;z-index:60}.mobile-nav-toggle:checked~.sidebar{transform:translateX(0)}.mobile-nav-backdrop{display:block;position:fixed;inset:0;margin:0;padding:0;border:0;background:#071c1680;opacity:0;visibility:hidden;transition:opacity .22s ease,visibility .22s ease;z-index:50}.mobile-nav-toggle:checked~.mobile-nav-backdrop{opacity:1;visibility:visible}.mobile-nav-trigger{width:40px;height:40px;border:1px solid var(--line);border-radius:10px;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;cursor:pointer;flex:0 0 auto}.mobile-nav-trigger span{display:block;width:18px;height:2px;border-radius:2px;background:var(--green)}.mobile-nav-close{display:grid;width:34px;height:34px;padding:0;border:1px solid #ffffff25;border-radius:9px;background:transparent;place-items:center;color:#fff;font:inherit;font-size:23px;cursor:pointer;margin-right:auto}.brand{display:flex;align-items:center;padding:20px;height:84px}.brand a>span:last-child{display:block}.nav-scrollable{min-height:0;display:flex;flex-direction:column}.nav{padding:16px 12px}.nav-link,.nav-link:not(.active){justify-content:flex-start;padding:12px 14px;font-size:14px}.nav-link span{font-size:20px}.nav-footer{display:block;position:static;margin:auto 16px 18px}.sidebar .brand b{font-size:16px}main{margin-right:0;width:100%}.top-row{height:64px;padding:0 14px;justify-content:flex-start;gap:10px;position:sticky;top:0;z-index:35}.top-row .notification-menu{margin-right:auto}.account-greeting{display:none}.logout-btn{padding:7px 9px;font-size:11px}.content{padding:20px 14px}.page-heading{flex-direction:column;align-items:stretch;gap:14px;margin-bottom:20px}.page-heading>.actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.page-heading>button,.page-heading>a{width:100%;text-align:center}.stats-grid{gap:12px}.stat-card{padding:17px}.panel{padding:18px}.table-panel{padding:0}.weekly-header{align-items:stretch;flex-direction:column}.week-navigation{justify-content:stretch}.week-navigation>*{flex:1}.notification-popover{top:58px}
}
.data-table-toolbar{display:flex;align-items:end;gap:12px;padding:16px 18px;background:#fafcfa;border-bottom:1px solid var(--line)}.data-table-toolbar label{font-size:11px;color:var(--muted);min-width:170px}.data-table-toolbar .table-search{flex:1;max-width:430px}.data-table-toolbar input,.data-table-toolbar select{margin-top:5px;background:#fff}.data-table-toolbar .result-count{margin-right:auto;white-space:nowrap;align-self:center}.data-table thead th{position:sticky;top:0;z-index:2}.data-table tbody tr{transition:background-color .12s ease}.data-table tbody tr:hover{background:#fbfdfc}.row-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:150px}.row-actions .table-link,.row-actions .table-action{margin:0}.table-pager{display:flex;align-items:center;justify-content:center;gap:14px;padding:14px 18px;border-top:1px solid var(--line);background:#fafcfa}.table-pager span{font-size:12px;color:var(--muted)}.table-pager .secondary-btn{padding:7px 13px;font-size:11px}
.student-directory{overflow:hidden}.directory-groups{display:grid;gap:12px;padding:16px}.directory-stage,.directory-circle{overflow:hidden;border:1px solid var(--line);border-radius:16px;background:#fff}.directory-stage.is-open{border-color:#b8d8c9;box-shadow:0 10px 28px #1744350c}.directory-stage-content{display:grid;gap:10px;padding:12px;background:#f5f8f6;border-top:1px solid var(--line)}.directory-circle{border-radius:13px}.directory-toggle{width:100%;border:0;background:transparent;color:var(--green);display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 18px;text-align:right;cursor:pointer}.directory-toggle>span{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.directory-toggle small{color:var(--muted);font-size:11px;font-weight:600}.directory-toggle svg{width:18px;height:18px;transition:transform .18s ease}.directory-stage.is-open>.stage-toggle svg,.directory-circle.is-open>.circle-toggle svg{transform:rotate(180deg)}.circle-toggle{padding:13px 16px;background:#fbfdfc}.directory-circle>.data-table{border-top:1px solid var(--line)}
.account-directory{overflow:hidden}.account-stage-circles{display:grid;gap:8px;padding:10px;background:#f7faf8;border-top:1px solid var(--line)}.account-stage-circles .directory-circle{border-radius:11px}
.plan-directory-groups{border-bottom:1px solid var(--line);background:#fafcfa}.plan-circle-choices{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.plan-circle-choices .circle-toggle{border:1px solid var(--line);border-radius:11px}.plan-circle-choices .circle-toggle.selected{border-color:#8fc8ab;background:#edf8f2;box-shadow:inset 0 0 0 1px #b9dfcc}.plan-circle-choices .circle-toggle svg{transform:none!important;color:var(--green)}
@media(max-width:820px){.data-table-toolbar{align-items:stretch;display:grid;grid-template-columns:1fr 1fr;padding:14px}.data-table-toolbar .table-search{grid-column:1/-1;max-width:none}.data-table-toolbar label{min-width:0}.data-table-toolbar .result-count{margin:0;justify-self:end;align-self:end}.data-table{min-width:720px}.row-actions{min-width:180px}.table-pager{position:sticky;right:0;left:0}}
@media(max-width:820px){
  .mobile-card-table{display:block;min-width:0;padding:12px;background:#f5f8f6}
  .mobile-card-table thead{display:none}
  .mobile-card-table tbody{display:grid;gap:12px}
  .mobile-card-table tr{display:block;overflow:hidden;border:1px solid #d7e6de;border-radius:15px;background:#fff;box-shadow:0 7px 20px #1744350b}
  .mobile-card-table td{display:grid;grid-template-columns:minmax(96px,38%) 1fr;gap:12px;align-items:center;padding:11px 13px;border-bottom:1px solid var(--line);font-size:13px}
  .mobile-card-table td::before{content:attr(data-label);color:var(--muted);font-size:11px;font-weight:700}
  .mobile-card-table td:first-child{padding-block:14px;background:#f7fbf9;color:var(--green);font-size:15px}
  .mobile-card-table td:last-child{border-bottom:0}
  .mobile-card-table .row-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));min-width:0;width:100%;gap:7px}
  .mobile-card-table .row-actions :where(.table-link,.table-action){min-height:44px;width:100%;padding:8px 6px;white-space:normal;text-align:center}
  .mobile-card-table .empty-row{display:block}
  .mobile-card-table .empty-state{display:block;padding:32px 16px!important}
  .mobile-card-table .empty-state::before{display:none}
}
.mobile-card-toggle{display:none}
@media(max-width:820px){
  .mobile-card-table tr:not(.mobile-expanded):not(.empty-row) td:not(:first-child){display:none}
  .mobile-card-table td:first-child{display:block;padding:0;background:#fff;border-bottom:0}
  .mobile-card-table td:first-child::before,.mobile-card-table .desktop-student-name,.mobile-card-table .desktop-card-heading{display:none}
  .mobile-card-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:68px;padding:12px 14px;border:0;background:transparent;color:var(--ink);font:inherit;text-align:right;cursor:pointer}
  .mobile-card-toggle span:first-child{min-width:0}
  .mobile-card-toggle b,.mobile-card-toggle small{display:block}
  .mobile-card-toggle b{overflow:hidden;font-size:14px;text-overflow:ellipsis;white-space:nowrap}
  .mobile-card-toggle small{margin-top:4px;color:var(--muted);font-size:11px;font-weight:500}
  .mobile-card-chevron{display:grid;width:34px;height:34px;flex:0 0 34px;place-items:center;border:1px solid #c6ded3;border-radius:11px;background:linear-gradient(145deg,#fff,#e8f4ef);color:var(--green);box-shadow:0 4px 12px #17443512;transition:transform .2s ease,background-color .2s ease,color .2s ease,border-color .2s ease}
  .mobile-card-chevron .app-icon{width:16px;height:16px}
  .mobile-expanded .mobile-card-chevron{transform:rotate(180deg);border-color:var(--green);background:var(--green);color:#fff}
  .mobile-expanded td:first-child{border-bottom:1px solid var(--line);background:#f7fbf9}
}
@media(max-width:820px){
  .attendance-card-panel{padding:12px;background:#f5f8f6}
  .attendance-mobile-table,.attendance-mobile-table tbody{display:block}
  .attendance-mobile-table thead{display:none}
  .attendance-mobile-table tbody{display:grid;gap:12px}
  .attendance-mobile-table tr{display:block;overflow:hidden;border:1px solid #d7e6de;border-radius:15px;background:#fff;box-shadow:0 7px 20px #1744350b}
  .attendance-mobile-table tr.attendance-marked{border-color:#acd3c2}
  .attendance-mobile-table td{display:block;padding:12px 14px;border-bottom:1px solid var(--line)}
  .attendance-mobile-table td::before{content:attr(data-label);display:block;margin-bottom:8px;color:var(--muted);font-size:11px;font-weight:700}
  .attendance-mobile-table .attendance-student{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;background:#f7fbf9}
  .attendance-mobile-table .attendance-student::before{display:none}
  .attendance-mobile-table .attendance-student b{font-size:15px;color:var(--green)}
  .attendance-mobile-table td:last-child{border-bottom:0}
  .attendance-mobile-table .segmented{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));min-width:0;gap:6px}
  .attendance-mobile-table .segmented button{min-height:44px;border-radius:10px;padding:8px 3px;font-size:11px}
  .attendance-mobile-table .table-input{min-height:44px;margin:0}
  .attendance-mobile-table tr:not(.notes-open) td[data-label="الملاحظة"]{display:none}
}
.attendance-note-toggle{display:none}
.attendance-save-actions{display:flex;gap:8px}
@media(max-width:820px){
  .attendance-heading-actions{display:grid!important;grid-template-columns:1fr!important;width:100%}
  .attendance-heading-actions>.hijri-date-picker,.attendance-heading-actions>.secondary-btn,.attendance-heading-actions>.primary-btn{width:100%}
  .attendance-note-toggle{display:flex;align-items:center;gap:5px;min-height:36px;padding:6px 9px;border:1px solid #c6ded3;border-radius:9px;background:#fff;color:var(--green);font:inherit;font-size:10px;font-weight:700}
  .attendance-note-toggle .app-icon{width:13px;height:13px;transition:transform .18s ease}
  .notes-open .attendance-note-toggle .app-icon{transform:rotate(180deg)}
  .attendance-save-actions{position:fixed;right:13px;bottom:0;left:13px;z-index:45;display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:11px 12px calc(11px + env(safe-area-inset-bottom));border:1px solid #d4e3dc;border-bottom:0;border-radius:16px 16px 0 0;background:rgba(250,252,250,.96);box-shadow:0 -10px 28px #123f3020;backdrop-filter:blur(14px)}
  .attendance-save-actions button{min-height:46px}
  .attendance-card-panel{margin-bottom:82px}
}
@media(max-width:360px){.attendance-mobile-table .segmented{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:820px){
  html,body{max-width:100%;overflow-x:clip}
  html.mobile-nav-open,html.mobile-nav-open body{overflow:hidden;overscroll-behavior:none}
  .page,main,.content{max-width:100%}
  .nav-scrollable{min-height:0}
  .notification-popover{max-height:calc(100dvh - 76px);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}
  .notification-heading{position:sticky;top:0;z-index:2}
  .row-actions :where(.table-link,.table-action,.edit-action,.danger-btn),.table-pager .secondary-btn,.week-navigation button{min-height:44px}
  .table-pager{gap:9px;padding:12px}
  .table-pager .secondary-btn{padding:8px 12px;font-size:12px}
}
@media(max-width:820px){
  .plan-wizard{padding-bottom:82px}
  .plan-wizard .wizard-actions{position:fixed;right:13px;bottom:0;left:13px;z-index:45;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:9px;padding:11px 12px calc(11px + env(safe-area-inset-bottom));border:1px solid #d4e3dc;border-bottom:0;border-radius:16px 16px 0 0;background:rgba(250,252,250,.96);box-shadow:0 -10px 28px #123f3020;backdrop-filter:blur(14px)}
  .plan-wizard .wizard-actions>.actions{display:flex;justify-content:flex-end;gap:8px;min-width:0}
  .plan-wizard .wizard-actions :where(.primary-btn,.secondary-btn){min-height:46px;padding-inline:15px}
}
@media(max-width:820px){
  .account-mobile-card-table .row-actions{grid-template-columns:1fr}
  .account-mobile-card-table code{overflow-wrap:anywhere;word-break:break-word}
  .progress-history-mobile-table .rating{margin:0;direction:ltr;justify-self:start;white-space:nowrap}
}
@media(max-width:820px){
  .plan-mobile-table{display:block;min-width:0;padding:12px;background:#f5f8f6}
  .plan-mobile-table thead{display:none}
  .plan-mobile-table tbody{display:grid;gap:12px}
  .plan-mobile-table .plan-summary-row{display:block;overflow:hidden;border:1px solid #d7e6de;border-radius:15px;background:#fff;box-shadow:0 7px 20px #1744350b}
  .plan-mobile-table .plan-summary-row td{display:grid;grid-template-columns:minmax(80px,31%) 1fr;gap:10px;align-items:center;padding:10px 13px;border-bottom:1px solid var(--line);font-size:12px}
  .plan-mobile-table .plan-summary-row td::before{content:attr(data-label);color:var(--muted);font-size:10px;font-weight:700}
  .plan-mobile-table .plan-summary-row td:first-child{padding-block:13px;background:#f7fbf9;color:var(--green);font-size:14px}
  .plan-mobile-table .plan-summary-row td:last-child{border-bottom:0}
  .plan-mobile-table .row-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));min-width:0;width:100%;gap:7px}
  .plan-mobile-table .row-actions :where(.table-action,.table-link){min-height:44px;width:100%;white-space:normal}
  .plan-mobile-table .empty-row{display:block;border:1px solid var(--line);border-radius:14px;background:#fff}
  .plan-mobile-table .empty-state{display:block;padding:32px 16px!important}
  .plan-mobile-table .plan-month-row{display:block;scroll-margin-top:76px}
  .plan-mobile-table .plan-month-row>td{display:block;padding:0!important;border:0;background:transparent!important}
  .plan-mobile-table .plan-month-row>td::before{display:none}
}
@media(max-width:820px){
  .plan-mobile-table .plan-summary-row:not(.mobile-expanded) td:not(:first-child){display:none}
  .plan-mobile-table .plan-summary-row td:first-child{display:block;padding:0;background:#fff;border-bottom:0}
  .plan-mobile-table .plan-summary-row td:first-child::before,.plan-mobile-table .desktop-plan-heading{display:none}
  .plan-mobile-table .plan-summary-row>td:first-child .plan-cell-details{display:none}
  .plan-mobile-table .mobile-expanded td:first-child{border-bottom:1px solid var(--line);background:#f7fbf9}
  .plan-mobile-table .mobile-expanded>td:first-child .plan-cell-details{display:block;padding:12px 14px;border-top:1px solid var(--line)}
}
.report-mobile-list{display:none}
@media(max-width:820px){
  .report-area{padding:16px 12px}
  .selected-personal-week .personal-week-table-wrap{display:none}
  .report-area .report-header{align-items:flex-start;padding:2px 3px 14px}
  .report-area .report-header p{font-size:11px}
  .report-area .report-header .brand-logo{width:38px;height:38px}
  .report-desktop-table{display:none}
  .report-mobile-list{display:grid;gap:10px}
  .report-mobile-card{overflow:hidden;border:1px solid #d7e6de;border-radius:14px;background:#fff;box-shadow:0 6px 18px #1744350a}
  .report-mobile-card summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:66px;padding:11px 13px;cursor:pointer;list-style:none}
  .report-mobile-card summary::-webkit-details-marker{display:none}
  .report-mobile-card summary>span:first-child{min-width:0}
  .report-mobile-card summary b,.report-mobile-card summary small{display:block}
  .report-mobile-card summary b{overflow:hidden;color:var(--green);font-size:14px;text-overflow:ellipsis;white-space:nowrap}
  .report-mobile-card summary small{margin-top:4px;color:var(--muted);font-size:10px}
  .report-card-chevron{display:grid;width:34px;height:34px;flex:0 0 34px;place-items:center;border:1px solid #c6ded3;border-radius:11px;background:linear-gradient(145deg,#fff,#e8f4ef);color:var(--green);transition:transform .2s ease,background-color .2s ease,color .2s ease}
  .report-card-chevron .app-icon{width:16px;height:16px}
  .report-mobile-card[open] .report-card-chevron{transform:rotate(180deg);border-color:var(--green);background:var(--green);color:#fff}
  .report-card-details{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--line);background:#f9fcfa}
  .report-card-details>div{min-width:0;padding:10px 12px;border-bottom:1px solid var(--line)}
  .report-card-details>div:nth-child(odd){border-inline-end:1px solid var(--line)}
  .report-card-details small,.report-card-details b{display:block;overflow-wrap:anywhere}
  .report-card-details small{margin-bottom:4px;color:var(--muted);font-size:10px}
  .report-card-details b{font-size:12px}
}
.child-activity-content{min-width:0;flex:1}.child-activity-content :where(b,p,small){overflow-wrap:anywhere}.child-activity-action{flex:0 0 auto;margin-inline-start:auto;text-align:center}
@media(max-width:820px){.child-list-panel{padding:12px}.child-activity{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px 12px;padding:14px 10px}.child-activity-action{grid-column:1/-1;width:100%;min-height:44px;margin:2px 0 0}}
@media(max-width:820px){
  .excel-import-panel .table-panel{padding:12px;background:#f5f8f6}
  .excel-import-panel .data-table{display:block;min-width:0}
  .excel-import-panel .data-table thead{display:none}
  .excel-import-panel .data-table tbody{display:grid;gap:10px}
  .excel-import-panel .data-table tr{display:block;overflow:hidden;border:1px solid #d7e6de;border-radius:14px;background:#fff;box-shadow:0 6px 18px #1744350a}
  .excel-import-panel .data-table td{display:grid;grid-template-columns:minmax(82px,32%) 1fr;gap:10px;align-items:start;padding:10px 12px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
  .excel-import-panel .data-table td:last-child{border-bottom:0}
  .excel-import-panel .data-table td::before{color:var(--muted);font-size:10px;font-weight:700}
  .excel-import-panel .data-table td:nth-child(1)::before{content:"الصف"}
  .excel-import-panel .data-table td:nth-child(2)::before{content:"الطالب"}
  .excel-import-panel .data-table td:nth-child(3)::before{content:"الحلقة"}
  .excel-import-panel .data-table td:nth-child(4)::before{content:"أولياء الأمور"}
  .excel-import-panel .data-table td:nth-child(5)::before{content:"النتيجة"}
}
@media(max-width:820px){
  .supervisor-mobile-card-table td[data-label="الإجراءات"]{display:block;padding:12px 13px}
  .supervisor-mobile-card-table td[data-label="الإجراءات"]::before{display:block;margin-bottom:9px}
  .supervisor-mobile-card-table .row-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;min-width:0}
  .supervisor-mobile-card-table .row-actions :where(button,.edit-action,.danger-btn,.secondary-btn){width:100%;min-width:0;min-height:44px;white-space:normal;text-align:center}
}
@media print{.report-mobile-list{display:none!important}.report-desktop-table{display:table!important}}
.report-print-sheet{display:none}
.reports-page .page-heading{z-index:40;overflow:visible}.reports-page .page-heading .report-export-actions,.report-export-actions,.report-export-menu{overflow:visible}.report-export-actions{align-items:flex-start}.report-export-menu{position:relative}.report-export-menu>summary{display:flex;align-items:center;justify-content:center;min-height:42px;list-style:none;white-space:nowrap}.report-export-menu>summary::-webkit-details-marker{display:none}.report-export-menu>summary::after{content:"";width:7px;height:7px;margin-inline-start:10px;border-inline-end:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-2px);transition:transform .18s ease}.report-export-menu[open]>summary::after{transform:rotate(225deg) translate(-2px,-1px)}.report-export-menu.is-disabled{pointer-events:none;opacity:.55}.report-export-options{position:absolute;z-index:80;top:calc(100% + 8px);inset-inline-end:0;display:grid;min-width:210px;padding:7px;border:1px solid var(--line);border-radius:13px;background:var(--surface,#fff);box-shadow:0 16px 36px rgba(18,63,48,.18)}.report-export-options button{display:flex;align-items:center;min-height:40px;padding:9px 12px;border:0;border-radius:9px;background:transparent;color:var(--ink);font:inherit;font-size:12px;font-weight:800;text-align:right;cursor:pointer}.report-export-options button:hover:not(:disabled){background:var(--surface-subtle,#edf7f2);color:var(--green)}.report-export-options button:disabled{cursor:not-allowed;opacity:.55}
@media(max-width:820px){.report-export-actions{grid-template-columns:1fr 1fr!important}.report-export-menu>summary{width:100%}.report-export-options{inset-inline:0;min-width:0}.report-export-menu:last-child .report-export-options{inset-inline-start:0;inset-inline-end:auto}}
@media print{
  @page{size:A4 landscape;margin:9mm}
  html,body{width:100%;min-height:0;background:#fff!important;color:#17221e!important}
  .reports-page>:not(.report-export-sheet){display:none!important}
  .report-export-sheet{display:none!important}
  .report-export-sheet.is-print-target{display:block!important;width:100%;direction:rtl;text-align:right;color:#17221e;font-family:'Tajawal','Segoe UI',sans-serif}
  .report-print-header{display:flex;align-items:center;gap:14px;padding:0 0 15px;border-bottom:2px solid #176b50}
  .report-print-header .brand-logo{width:54px;height:54px;flex:0 0 54px}
  .report-print-header div{display:grid;gap:2px}
  .report-print-header span{color:#176b50;font-size:10px;font-weight:800}
  .report-print-header h1{margin:0;color:#17221e;font-size:21px;line-height:1.35}
  .report-print-header p{margin:0;color:#60756d;font-size:10px}
  .report-print-meta{display:grid;grid-template-columns:1.15fr 1.7fr .65fr;gap:8px;margin:14px 0}
  .report-print-meta article{display:grid;gap:4px;min-height:60px;padding:10px 12px;border:1px solid #d7e5de;border-radius:10px;background:#f7faf8}
  .report-print-meta small{color:#60756d;font-size:9px}
  .report-print-meta b{color:#173f32;font-size:11px;line-height:1.5}
  .report-print-sections{display:grid;gap:11px}
  .report-print-summary{overflow:hidden;border:1px solid #cfe2d9;border-radius:12px;background:#fff;page-break-inside:avoid;break-inside:avoid}
  .report-print-summary>header{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;background:#edf7f2}
  .report-print-summary>header div{display:flex;align-items:baseline;gap:9px}
  .report-print-summary>header small{color:#176b50;font-size:10px;font-weight:800}
  .report-print-summary>header strong{color:#176b50;font-size:23px}
  .report-print-summary>header span{color:#60756d;font-size:10px;font-weight:700}
  .report-print-progress>header{background:#fff8e6}
  .report-print-progress>header small,.report-print-progress>header strong{color:#946a10}
  .report-print-metrics{display:grid;grid-template-columns:repeat(4,1fr)}
  .report-print-metrics div{display:grid;gap:3px;padding:13px 10px;text-align:center;border-inline-start:1px solid #e1ebe6}
  .report-print-metrics div:last-child{border-inline-start:0}
  .report-print-metrics b{color:#173f32;font-size:18px}
  .report-print-metrics small{color:#60756d;font-size:9px}
  .report-print-detail-section{margin-top:5px;break-before:auto}.report-print-detail-section h2{margin:0;padding:8px 10px;background:#edf7f2;color:#176b50;font-size:12px}.report-print-table{width:100%;table-layout:fixed;border-collapse:collapse}.report-print-table th,.report-print-table td{padding:5px 6px;border:1px solid #d7e5de;color:#263d35;font-size:7px;line-height:1.45;vertical-align:top;overflow-wrap:anywhere}.report-print-table th{background:#f3f8f5;color:#176b50;font-weight:800}.report-print-table tbody tr:nth-child(even){background:#fafcfb}
  .student-achievement-print-list{display:grid;gap:12px}.student-achievement-print-card{break-before:page}.student-achievement-print-card:first-child{break-before:auto}.student-achievement-print-card>header{display:flex;align-items:center;justify-content:space-between;padding:9px 11px;background:#edf7f2;border:1px solid #cfe2d9;border-bottom:0}.student-achievement-print-card h2{margin:0;color:#176b50;font-size:13px}.student-achievement-print-card header span{color:#60756d;font-size:8px}.student-achievement-print-card header>b{color:#176b50;font-size:20px}.student-achievement-print-metrics{display:grid;grid-template-columns:repeat(5,1fr);border:1px solid #d7e5de}.student-achievement-print-metrics span{padding:7px;text-align:center;color:#60756d;font-size:8px;border-inline-start:1px solid #d7e5de}.student-achievement-print-metrics span:last-child{border-inline-start:0}.student-achievement-print-metrics b{display:block;margin-top:2px;color:#173f32;font-size:11px}.student-assessment-print{padding:7px 9px;border:1px solid #d7e5de;border-top:0;color:#60756d;font-size:7px;line-height:1.6}
  .report-print-sheet>footer{display:flex;align-items:center;justify-content:space-between;margin-top:14px;padding-top:9px;border-top:1px solid #d7e5de;color:#71827c;font-size:8px}
}
.week-registration-control{display:flex;align-items:center;justify-content:space-between;gap:1rem;width:min(100%,46rem);margin:.9rem auto 0;padding:.8rem 1rem;border:1px solid var(--border);border-radius:16px;background:color-mix(in srgb,var(--surface) 88%,var(--primary) 12%)}
.week-registration-control>div{display:grid;gap:.12rem}.week-registration-control span{color:var(--muted);font-size:.88rem}.week-registration-control.is-closed{border-color:color-mix(in srgb,var(--danger) 45%,var(--border));background:color-mix(in srgb,var(--surface) 90%,var(--danger) 10%)}
@media(max-width:640px){.week-registration-control{align-items:stretch;flex-direction:column}.week-registration-control button{width:100%}}
