*{box-sizing:border-box}:root{font-family:Arial,sans-serif;color:#1f2937;background:#f3f6f4}body{margin:0;min-width:320px;background:#f3f6f4}button{font:inherit;cursor:pointer}.app-shell{min-height:100vh}.app-header{background:#166534;color:#fff;padding:25px 20px;text-align:center}.app-header h1{margin:0 0 8px;font-size:28px}.app-header p{margin:0;opacity:.9}.app-main{width:min(1100px,calc(100% - 32px));margin:30px auto}.welcome-card,.dashboard-section{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:24px;box-shadow:0 3px 12px #0000000a;margin-bottom:20px}.welcome-card{text-align:center;max-width:720px;margin:30px auto}h2,h3,h4,p{margin-top:0}h2,h3{color:#166534}.primary-button,.secondary-button{border:0;border-radius:8px;padding:11px 18px}.primary-button{background:#166534;color:#fff;margin-top:12px}.secondary-button{background:#e8f1eb;color:#166534}.dashboard-top{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#fff;padding:22px 24px;border:1px solid #e5e7eb;border-radius:14px;margin-bottom:20px}.dashboard-top h2{margin:5px 0}.dashboard-top p,.welcome-card p,.module-card p{color:#64748b;margin-bottom:0}.eyebrow{color:#64748b;font-size:13px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.section-heading h3{margin:0}.section-heading span{color:#64748b;font-size:13px}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.stat-card{padding:18px;background:#f7faf8;border:1px solid #e5eee8;border-radius:10px;display:flex;flex-direction:column;gap:10px}.stat-card span{color:#64748b}.stat-card strong{font-size:30px;color:#166534}.stat-card-action{width:100%;text-align:right;font:inherit;cursor:pointer}.stat-card-action small{color:#64748b;font-size:12px}.stat-card-action:focus-visible{outline:3px solid #86b98f;outline-offset:3px}.stat-card-action:hover{border-color:#9abda2}.module-card{display:flex;align-items:center;gap:14px;border:1px solid #e5e7eb;border-radius:10px;padding:16px}.module-icon{width:42px;height:42px;display:grid;place-items:center;flex:0 0 42px;background:#e8f1eb;color:#166534;border-radius:10px;font-size:22px}.module-card h4{margin:0 0 6px;color:#1f2937}.module-card p{font-size:13px}.module-status{margin-right:auto;white-space:nowrap;color:#64748b;background:#f1f5f9;padding:5px 9px;border-radius:20px;font-size:12px}.loading{text-align:center;padding:60px 20px}.app-footer{text-align:center;color:#94a3b8;font-size:13px;padding:20px}@media(max-width:650px){.app-main{width:min(100% - 20px,1100px);margin:16px auto}.dashboard-top{align-items:flex-start;flex-direction:column}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.stat-card{padding:12px;gap:7px}.stat-card strong{font-size:24px}.modules-grid{grid-template-columns:1fr}.section-heading{align-items:flex-start;flex-direction:column}.app-header h1{font-size:24px}}button,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}.app-header{position:relative;overflow:hidden;background:linear-gradient(125deg,#064e3b,#08734e 60%,#0f513b)}.brand-mark{font-size:25px;color:#d1fae5}.user-bar{display:flex;justify-content:space-between;align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:13px;padding:15px 18px}.user-bar div{display:flex;flex-direction:column;gap:4px}.user-bar strong{color:#14532d}.user-bar small,.eyebrow{color:#64748b;font-size:13px}.dashboard-heading{margin:28px 4px 18px}.dashboard-heading h2{margin:6px 0}.dashboard-heading p{margin:0;color:#64748b}.modules-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.module-card{min-width:0;display:flex;align-items:center;gap:13px;text-align:right;background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:16px;color:inherit}.module-card span:nth-child(2){display:flex;flex-direction:column;gap:6px}.module-card small{color:#64748b;font-size:12px}.module-icon{width:42px;height:42px;display:grid;place-items:center;flex:0 0 42px;background:#e8f5ed;color:#08734e;border-radius:50%;font-size:23px}.module-arrow,.module-card em{margin-right:auto;color:#15803d}.module-card em{color:#94a3b8;font-size:11px;font-style:normal}.module-card.muted{background:#fafafa}.attendance-page{padding-bottom:30px}.attendance-hero{position:relative;overflow:hidden;background:linear-gradient(130deg,#064e3b,#08734e 58%,#0b6045);color:#fff;border-radius:18px 18px 28px 28px;text-align:center;padding:22px 20px 28px;box-shadow:0 8px 22px #064e3b22}.attendance-hero:after{content:"۞";position:absolute;left:3%;bottom:-50px;font-size:180px;color:#ffffff0d}.attendance-hero h2{color:#fff;font-size:clamp(25px,4vw,38px);margin:18px 0 5px}.attendance-hero p{margin:0;color:#d1fae5;font-size:19px;font-weight:700}.back-button{position:absolute;right:18px;top:18px;width:42px;height:42px;border:0;border-radius:50%;color:#fff;background:#ffffff25;font-size:32px;line-height:1}.hero-brand{display:inline-flex;align-items:center;gap:12px}.hero-brand>span{font-size:38px}.hero-brand div{display:flex;flex-direction:column;text-align:left;gap:4px}.hero-brand b{font-size:25px}.hero-brand small{font-size:12px;color:#d1fae5}.hero-date{position:absolute;left:22px;top:22px;display:flex;align-items:center;gap:9px;font-size:12px;color:#e5f5ec}.calendar-symbol{font-size:27px}.time-card{display:flex;align-items:center;gap:18px;background:#fff;border:1px solid #e8eee9;border-radius:18px;padding:18px 22px;margin:20px 0;box-shadow:0 5px 18px #0f513b0d}.clock-icon{width:64px;height:64px;flex:0 0 64px;display:grid;place-items:center;border-radius:50%;background:#e2f7ec;color:#08734e;font-size:43px}.time-copy{flex:1}.time-copy h3{color:#1f2937;margin:0 0 6px;font-size:19px}.time-copy p{margin:0;color:#64748b;font-size:13px}.time-value{background:#e2f7ec;color:#064e3b;border-radius:14px;padding:15px 25px;font-size:30px}.department-picker{display:flex;align-items:center;gap:14px;background:#fff;border:1px solid #e5e7eb;border-radius:13px;padding:14px 18px;margin-bottom:18px}.department-picker label{color:#166534;font-weight:700}.department-picker select{flex:1;min-width:0;padding:10px;border:1px solid #d1d5db;border-radius:8px;background:#fff;color:#1f2937}.attendance-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:18px}.attendance-stat{min-height:100px;border-radius:18px;display:grid;grid-template-columns:auto 1fr;align-items:center;justify-items:center;padding:14px;column-gap:9px}.attendance-stat span{grid-row:span 2;width:46px;height:46px;display:grid;place-items:center;border-radius:50%;color:#fff;font-size:28px;font-weight:700;background:currentColor}.attendance-stat b{font-size:27px}.attendance-stat small{font-size:14px;font-weight:700}.attendance-stat.present{background:#d9f7e9;color:#047857}.attendance-stat.present span{color:#fff;background:#059669}.attendance-stat.absent{background:#ffe4e7;color:#be123c}.attendance-stat.absent span{color:#fff;background:#e11d48}.attendance-stat.late{background:#fff1d6;color:#b45309}.attendance-stat.late span{color:#fff;background:#d97706}.students-placeholder{text-align:center;background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:38px 20px;margin-bottom:18px}.placeholder-icon{margin:0 auto 12px;width:62px;height:62px;display:grid;place-items:center;border-radius:50%;background:#e8f5ed;color:#08734e;font-size:34px}.students-placeholder h3{margin:0 0 8px;color:#1f2937}.students-placeholder p{color:#64748b;margin:0 0 12px}.students-placeholder small{color:#94a3b8;font-size:12px}.attendance-note{background:#edf2fb;color:#64748b;border-radius:14px;padding:15px;text-align:center;font-size:13px;margin-bottom:18px}.confirm-button{display:block;width:100%;border:0;border-radius:50px;padding:19px;color:#fff;background:linear-gradient(100deg,#08734e,#064e3b);font-size:21px;font-weight:700;box-shadow:0 7px 16px #064e3b25}.error-message{color:#b91c1c;background:#fef2f2;border:1px solid #fecaca;padding:12px;border-radius:8px}@media(max-width:650px){.app-main{width:calc(100% - 20px);margin:12px auto}.modules-grid{grid-template-columns:1fr}.attendance-hero{padding-top:76px}.hero-date{top:18px;left:14px;font-size:10px}.hero-brand{position:absolute;top:15px;right:68px}.hero-brand b{font-size:19px}.hero-brand>span{font-size:27px}.time-card{gap:10px;padding:13px}.clock-icon{width:48px;height:48px;flex-basis:48px;font-size:32px}.time-copy h3{font-size:15px}.time-copy p{font-size:11px}.time-value{padding:12px;font-size:23px}.attendance-stats{gap:7px}.attendance-stat{min-height:86px;padding:8px 4px;column-gap:3px}.attendance-stat span{width:34px;height:34px;font-size:21px}.attendance-stat b{font-size:22px}.attendance-stat small{font-size:12px}.confirm-button{font-size:18px}}.students-list{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:18px 20px;margin-bottom:18px;box-shadow:0 4px 16px #0f513b08}.students-list-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:2px 4px 14px;border-bottom:1px solid #e5e7eb}.students-list-heading h3{margin:0;color:#166534;font-size:19px}.students-list-heading span{color:#64748b;font-size:13px}.student-row{width:100%;display:flex;align-items:center;gap:14px;padding:13px 5px;border:0;border-bottom:1px solid #e8edf2;background:#fff;text-align:right;color:#1f2937}.student-row:last-child{border-bottom:0}.student-number{width:34px;height:34px;flex:0 0 34px;display:grid;place-items:center;border-radius:50%;background:#eef2f7;color:#334155;font-weight:700}.student-row strong{flex:1;font-size:16px}.student-status{min-width:100px;text-align:center;padding:9px 12px;border-radius:30px;font-weight:700;font-size:14px}.student-status.present{color:#047857;background:#d9f7e9}.student-status.absent{color:#be123c;background:#ffe4e7}.student-status.late{color:#b45309;background:#fff1d6}.student-change{color:#94a3b8;font-size:11px}.students-message,.students-error{text-align:center;padding:24px 8px;color:#64748b}.students-error{color:#b91c1c}.draft-warning{text-align:center;color:#b45309;font-size:12px;margin:10px 0}@media(max-width:650px){.students-list{padding:12px}.student-row{gap:8px}.student-row strong{font-size:14px}.student-status{min-width:83px;padding:8px 7px;font-size:12px}.student-number{width:30px;height:30px;flex-basis:30px}.student-change{display:none}}.management-page{padding-bottom:28px}.management-title{display:flex;align-items:flex-start;gap:18px;margin:22px 0}.management-title h2{margin:5px 0;color:#166534}.management-title p{margin:0;color:#64748b}.department-form,.departments-table{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:20px;margin-bottom:18px;box-shadow:0 3px 12px #00000008}.department-form{display:flex;flex-direction:column;gap:12px}.department-form label{color:#166534;font-weight:700}.department-form input{width:100%;padding:13px 14px;border:1px solid #cbd5e1;border-radius:9px;outline-color:#15803d}.form-actions,.department-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.form-actions .primary-button{margin:0}.department-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 4px;border-bottom:1px solid #e8edf2}.department-row:last-child{border-bottom:0}.department-row>div:first-child{display:flex;flex-direction:column;gap:6px}.department-row strong{color:#1f2937}.department-row small{font-size:12px}.active-label{color:#047857}.inactive-label{color:#b45309}.danger-button,.activate-button{border:0;border-radius:9px;padding:10px 14px;background:#fff1f2;color:#be123c}.activate-button{background:#dcfce7;color:#166534}.success-message{padding:12px 14px;border-radius:9px;background:#ecfdf5;color:#047857}.management-hint{color:#64748b;background:#f1f5f9;padding:13px 15px;border-radius:10px;font-size:13px}@media(max-width:600px){.management-title{flex-direction:column}.department-form,.departments-table{padding:14px}.department-row{align-items:flex-start;flex-direction:column}}.student-tools{display:flex;gap:10px;align-items:center;margin:14px 0}.student-tools input,.department-form select{min-width:0;flex:1;padding:12px 13px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;color:#1f2937}.managed-student-row{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:15px 4px;border-bottom:1px solid #e8edf2}.managed-student-row:last-child{border-bottom:0}.managed-student-row>div:first-child{display:flex;flex-direction:column;gap:6px;min-width:0}.managed-student-row strong{color:#1f2937}.managed-student-row small{color:#64748b;font-size:12px;overflow-wrap:anywhere}@media(max-width:600px){.student-tools,.managed-student-row{align-items:stretch;flex-direction:column}.student-tools button,.managed-student-row .department-actions button{flex:1}}.import-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:16px 0}.import-summary div{display:flex;flex-direction:column;gap:5px;padding:15px;border:1px solid #e5e7eb;background:#fff;border-radius:12px;text-align:center}.import-summary strong{font-size:25px;color:#166534}.import-summary span{color:#64748b;font-size:12px}.import-table-wrap{overflow:auto;max-width:100%;margin:12px 0}.import-table{width:100%;border-collapse:collapse;min-width:850px;font-size:13px}.import-table th,.import-table td{padding:10px;border-bottom:1px solid #e5e7eb;text-align:right;white-space:nowrap}.import-table th{background:#f1f5f9;color:#334155}.import-valid{color:#047857;font-weight:700}.import-invalid{color:#b91c1c;font-weight:700}@media(max-width:600px){.import-summary{gap:6px}.import-summary div{padding:10px 4px}.import-summary strong{font-size:21px}.import-summary span{font-size:11px}}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;background:#0f231c7a;display:flex;align-items:center;justify-content:center;padding:20px;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.justification-modal{width:min(100%,520px);max-height:calc(100vh - 40px);overflow:auto;background:#fff;border:1px solid #e5ece8;border-radius:22px;padding:26px;box-shadow:0 24px 70px #0a281e38;display:flex;flex-direction:column;gap:12px}.justification-modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.justification-modal-header h3{margin:5px 0 0;color:#075c43;font-size:1.35rem}.modal-close{width:36px;height:36px;border:0;border-radius:50%;background:#f0f5f2;color:#285b49;font-size:24px;cursor:pointer}.justification-student-summary{display:flex;flex-direction:column;gap:5px;padding:13px 15px;border-radius:13px;background:#f2f8f5;color:#245743}.justification-student-summary span,.modal-note{font-size:.86rem;color:#718078}.justification-modal label{font-weight:600;color:#284b3d;margin-top:4px}.justification-modal textarea,.justification-modal input[type=date]{width:100%;box-sizing:border-box;border:1px solid #d7e3dc;border-radius:11px;padding:12px 14px;font:inherit;color:#183d30;background:#fff;outline:none}.justification-modal textarea:focus,.justification-modal input[type=date]:focus{border-color:#0b7958;box-shadow:0 0 0 3px #0b79581a}.modal-note{line-height:1.7;margin:0}.modal-actions{display:flex;justify-content:flex-start;gap:10px;margin-top:5px}@media(max-width:560px){.justification-modal{padding:20px;border-radius:18px}.modal-actions{flex-direction:column-reverse}.modal-actions button{width:100%}}.absence-list-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.absence-list-tabs button{border:1px solid #dce8e1;background:#fff;color:#315c49;border-radius:12px;padding:11px 17px;font:inherit;cursor:pointer;transition:.15s}.absence-list-tabs button.active{background:#075c43;color:#fff;border-color:#075c43;box-shadow:0 4px 12px #075c4324}.justified-status{display:inline-flex;align-items:center;padding:9px 12px;border-radius:10px;background:#e8f7ee;color:#167344;font-size:.9rem;font-weight:600}.teacher-account-card{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 16px;margin:10px 0;border:1px solid #e2eee7;border-radius:16px;background:linear-gradient(110deg,#fff,#f6fbf8);box-shadow:0 4px 14px #1046300b}.teacher-account-summary{display:flex;align-items:center;gap:14px;min-width:0}.teacher-account-avatar{width:48px;height:48px;flex:0 0 48px;display:grid;place-items:center;border-radius:15px;background:#e3f4e9;color:#08734e;font-size:27px}.teacher-account-summary>div{min-width:0;display:flex;flex-direction:column;gap:6px}.teacher-account-summary strong{font-size:16px;color:#123c2d;overflow-wrap:anywhere}.teacher-account-summary small{color:#64748b;font-size:12px}.teacher-status-active{color:#08734e;font-weight:700}.teacher-status-inactive{color:#b45309;font-weight:700}.teacher-assigned-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:2px}.teacher-assigned-chips span{padding:5px 10px;border-radius:20px;background:#e7f6ec;color:#17643e;border:1px solid #ccebd6;font-size:12px;font-weight:600}.teacher-assigned-chips em{font-style:normal;color:#7b8790;font-size:12px}.teacher-edit-button{white-space:nowrap}.teacher-editor-backdrop{z-index:1100}.teacher-editor-modal{width:min(100%,760px);max-height:calc(100vh - 32px);overflow:auto;padding:0;background:#fff;border:1px solid #dcebe2;border-radius:22px;box-shadow:0 26px 80px #0a281e47}.teacher-editor-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px 26px;background:linear-gradient(115deg,#e9f7ee,#f6fbf8);border-bottom:1px solid #dcebe2}.teacher-editor-header>div>span{font-size:12px;color:#168052;font-weight:700}.teacher-editor-header h3{margin:5px 0;color:#075c43;font-size:22px}.teacher-editor-header p{margin:0;color:#718078;font-size:13px}.teacher-editor-header .modal-close{flex:0 0 38px}.teacher-editor-fields{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:24px 26px}.teacher-editor-wide{grid-column:1/-1}.teacher-editor-field{display:flex;flex-direction:column;gap:8px;color:#29483b;font-size:14px;font-weight:700}.teacher-editor-field input{width:100%;padding:13px 14px;border:1px solid #d7e3dc;border-radius:12px;background:#fff;color:#183d30;font:inherit;font-weight:400;outline:none}.teacher-editor-field input:focus{border-color:#0b7958;box-shadow:0 0 0 3px #0b79581a}.teacher-role-field{margin:0;padding:0;border:0;min-width:0}.teacher-role-field legend{margin-bottom:9px;color:#29483b;font-size:14px;font-weight:700}.teacher-role-options{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:5px;border:1px solid #e0ebe4;border-radius:13px;background:#f5f9f6}.teacher-role-options button{border:0;border-radius:10px;padding:12px 8px;background:transparent;color:#52665b;font:inherit;font-size:14px}.teacher-role-options button.selected{background:#08734e;color:#fff;box-shadow:0 3px 10px #08734e2e}.teacher-editor-departments{padding:16px;border:1px solid #cfe8d8;border-radius:16px;background:#f7fcf8}.teacher-editor-section-title{display:flex;align-items:center;gap:11px;margin-bottom:15px}.teacher-editor-section-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:#e0f3e6;color:#08734e;font-size:22px}.teacher-editor-section-title>div{flex:1}.teacher-editor-section-title h4{margin:0 0 4px;color:#075c43;font-size:16px}.teacher-editor-section-title p{margin:0;color:#718078;font-size:12px}.teacher-editor-section-title>b{min-width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:#dff3e6;color:#08734e;font-size:12px}.teacher-department-chip-grid{display:flex;flex-wrap:wrap;gap:9px}.teacher-department-chip{display:inline-flex;align-items:center;gap:8px;padding:10px 13px;border:1px solid #dce6e0;border-radius:12px;background:#fff;color:#52665b;font:inherit;font-size:13px;transition:.15s}.teacher-department-chip.selected{border-color:#9bd5b0;background:#e5f6eb;color:#12623c;font-weight:700;box-shadow:0 2px 7px #12623c12}.teacher-department-chip-check{width:22px;height:22px;display:grid;place-items:center;border-radius:7px;background:#f0f4f1;color:#7b8a80;font-weight:700}.teacher-department-chip.selected .teacher-department-chip-check{background:#08734e;color:#fff}.teacher-assistant-note{padding:14px 16px;border-radius:12px;background:#f1f5f9;color:#64748b;font-size:13px}.teacher-active-control{display:flex;align-items:center;gap:12px;padding:14px 16px;border:1px solid #e0ebe4;border-radius:13px;background:#fbfdfb}.teacher-active-control>span{flex:1;display:flex;flex-direction:column;gap:4px}.teacher-active-control strong{color:#29483b;font-size:14px}.teacher-active-control small{color:#718078;font-size:12px}.teacher-active-control input{width:19px;height:19px;accent-color:#08734e}.teacher-active-control>b{min-width:54px;color:#08734e;font-size:13px}.teacher-editor-actions{display:flex;justify-content:flex-start;gap:10px;padding:16px 26px 22px;border-top:1px solid #edf2ee}.teacher-editor-actions .primary-button{margin:0;min-width:170px}@media(max-width:620px){.teacher-account-card{align-items:stretch;flex-direction:column}.teacher-account-card .teacher-edit-button{width:100%}.teacher-editor-modal{border-radius:17px}.teacher-editor-header,.teacher-editor-fields{padding:18px}.teacher-editor-fields{grid-template-columns:1fr;gap:16px}.teacher-editor-wide{grid-column:1}.teacher-editor-actions{padding:14px 18px 18px;flex-direction:column-reverse}.teacher-editor-actions button{width:100%}}.vacation-form{border:1px solid #cfe8d8;background:linear-gradient(145deg,#fff,#f5fbf7);border-radius:17px;box-shadow:0 5px 18px #1046300d}.vacation-heading{display:flex;align-items:center;gap:13px;margin-bottom:18px}.vacation-heading>div{display:flex;flex-direction:column;gap:5px}.vacation-heading h3{margin:0;color:#075c43}.vacation-heading p{margin:0;color:#718078;font-size:13px}.vacation-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:14px;background:#e4f5e9;color:#08734e;font-size:25px}.vacation-form>label,.vacation-date-grid label{display:flex;flex-direction:column;gap:8px;margin:12px 0;color:#29483b;font-size:13px;font-weight:700}.vacation-form>input,.vacation-date-grid input{width:100%;min-width:0;padding:12px 13px;border:1px solid #d7e3dc;border-radius:10px;background:#fff;color:#183d30;font:inherit}.vacation-date-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.vacation-note{margin:12px 0;color:#647b6e;background:#edf7f0;border-radius:10px;padding:11px 13px;font-size:12px;line-height:1.7}@media(max-width:560px){.vacation-date-grid{grid-template-columns:1fr;gap:0}}:root{--iman-green:#075b38;--iman-green-deep:#06452f;--iman-green-soft:#e1efdf;--iman-gold:#d5a63b;--iman-cream:#fff9e8;--iman-red:#c92532;--iman-blue:#2863a5;--iman-ink:#18382b;font-family:Noto Naskh Arabic,Tahoma,Arial,sans-serif;color:var(--iman-ink);background:var(--iman-cream)}body{background-color:var(--iman-cream);background-image:radial-gradient(circle at 1px 1px,rgba(213,166,59,.11) 1px,transparent 1.5px),linear-gradient(135deg,rgba(7,91,56,.025),transparent 42%,rgba(213,166,59,.045));background-size:22px 22px,100% 100%}.app-header{min-height:150px;display:flex;align-items:center;justify-content:center;padding:24px 20px 28px;background:linear-gradient(112deg,var(--iman-green-deep),var(--iman-green) 70%,#0b6848);border-bottom:5px solid var(--iman-gold);border-radius:0 0 42px 42px;box-shadow:0 8px 24px #06452f24}.mzab-header-ornament{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;opacity:.22;background-image:repeating-conic-gradient(from 45deg at 18px 18px,transparent 0deg 12deg,rgba(255,249,232,.3) 12deg 15deg,transparent 15deg 30deg);background-size:42px 42px;-webkit-mask-image:linear-gradient(90deg,#000,transparent 35%,transparent 65%,#000);mask-image:linear-gradient(90deg,#000,transparent 35%,transparent 65%,#000)}.school-brand{position:relative;display:flex;align-items:center;justify-content:center;gap:20px;max-width:100%}.school-emblem{width:76px;height:76px;flex:0 0 76px;position:relative;display:grid;place-items:center;border:2px solid var(--iman-gold);border-radius:50%;background:linear-gradient(145deg,#fff9e8,#f4e6bc);color:var(--iman-green);box-shadow:0 0 0 5px #d5a63b26,0 4px 14px #001f1428}.school-emblem span{position:absolute;line-height:1}.emblem-gold{top:5px;font-size:38px;color:#a87922}.emblem-red{top:19px;font-size:29px;color:var(--iman-red)}.emblem-green{bottom:2px;font-size:36px;color:var(--iman-green);transform:rotate(90deg)}.school-brand-copy{text-align:right}.school-brand-copy h1{margin:0 0 2px;font-size:clamp(23px,3vw,34px);color:#fff9e8}.school-brand-copy strong{display:block;color:#f1cc73;font-size:19px;letter-spacing:.4px}.school-brand-copy p{margin:5px 0 0;color:#fff9e8;font-size:14px;font-weight:600}.app-main{width:min(1100px,calc(100% - 32px));margin:26px auto}.welcome-card,.dashboard-section,.dashboard-top,.students-list,.time-card,.user-bar,.management-page .department-form{border-color:#d5a63b40;background:#fffffff0;box-shadow:0 5px 18px #06452f12}h2,h3,.section-heading h3,.students-list-heading h3{color:var(--iman-green)}.primary-button,.confirm-button{background:linear-gradient(105deg,var(--iman-green),var(--iman-green-deep));border:1px solid var(--iman-gold);color:#fff;box-shadow:0 4px 12px #06452f26}.secondary-button{background:#f5edda;color:var(--iman-green);border:1px solid rgba(213,166,59,.45)}.module-card{border-color:#d5a63b47;background:#fffdf7}.module-icon{background:var(--iman-green-soft);color:var(--iman-green);border:1px solid rgba(213,166,59,.28)}.stat-card{background:#f7f3e6;border-color:#eadbb7}.stat-card strong{color:var(--iman-green)}.attendance-hero{background:linear-gradient(120deg,var(--iman-green-deep),var(--iman-green));border:1px solid var(--iman-gold);border-bottom-width:4px;border-radius:22px 22px 34px 34px}.attendance-hero:after{content:"۞";color:#fff9e817}.hero-brand{text-align:right}.hero-brand b{color:#fff9e8}.hero-brand small{color:#f1cc73}.hero-emblem{width:48px;height:48px;display:grid;place-items:center;border:1px solid var(--iman-gold);border-radius:50%;background:#fff9e8;color:var(--iman-red);font-size:30px}.time-card{background:#fffdf6;border-color:#eadbb7}.clock-icon{background:#f4ecd7;color:var(--iman-green)}.time-value{background:#f5edda;color:var(--iman-green)}.attendance-stat.present{background:#e1efdf;color:var(--iman-green)}.attendance-stat.present span{background:var(--iman-green)}.attendance-stat.absent{background:#fbe4e2;color:var(--iman-red)}.attendance-stat.absent span{background:var(--iman-red)}.attendance-stat.late{background:#f7edd4;color:#9a6a17}.attendance-stat.late span{background:var(--iman-gold)}.students-list{border-color:#e6d8b7}.students-list-heading{border-bottom-color:#e6d8b7}.student-row{border-bottom-color:#eee7d7;background:transparent}.student-number{background:#f3eddf;color:var(--iman-green)}.student-status.present{color:var(--iman-green);background:#e1efdf}.student-status.absent{color:var(--iman-red);background:#fbe4e2}.student-status.late{color:#956516;background:#f7edd4}.attendance-note{background:#f5edda;color:#66583b;border:1px solid #eadbb7}.app-footer{display:flex;flex-direction:column;gap:5px;text-align:center;color:#f7e8bd;background:var(--iman-green-deep);border-top:4px solid var(--iman-gold);padding:22px 14px 26px}.app-footer strong{color:#fff3cf;font-size:15px}.app-footer span{color:#d9c58f;font-size:12px}@media(max-width:650px){.app-header{min-height:126px;padding:18px 12px 22px;border-radius:0 0 26px 26px}.school-brand{gap:12px}.school-emblem{width:58px;height:58px;flex-basis:58px}.emblem-gold{font-size:30px;top:3px}.emblem-red{font-size:23px;top:15px}.emblem-green{font-size:28px}.school-brand-copy h1{font-size:21px}.school-brand-copy strong{font-size:16px}.school-brand-copy p{font-size:11px}.app-main{width:calc(100% - 20px);margin:16px auto}.hero-brand{right:68px}.hero-brand b{font-size:18px}.hero-brand small{font-size:10px}.hero-emblem{width:38px;height:38px;font-size:24px}}.school-logo-image{display:block;width:88px;height:88px;flex:0 0 88px;object-fit:contain;filter:drop-shadow(0 3px 5px rgba(0,0,0,.18))}.hero-emblem-image{display:block;width:54px;height:54px;object-fit:contain;flex:0 0 54px;background:#fff9e8f5;border:1px solid var(--iman-gold);border-radius:50%;padding:4px}@media(max-width:650px){.school-logo-image{width:66px;height:66px;flex-basis:66px}.hero-emblem-image{width:42px;height:42px;flex-basis:42px}}.active-school-schedule{margin:0 0 18px;padding:18px 20px;border:1px solid rgba(184,139,55,.35);border-radius:18px;background:linear-gradient(135deg,#fffdf6,#f7f0dc);box-shadow:0 5px 18px #1b4b370f}.active-school-schedule-heading{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px 14px;margin-bottom:14px}.active-school-schedule-heading h3{margin:0;color:#075b3e;font-size:1.08rem}.active-school-schedule-heading small{color:#806b43}.active-school-days{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:9px}.active-school-day{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:11px 12px;border-radius:12px;background:#e5f2e8;border:1px solid rgba(7,91,62,.12);color:#075b3e}.active-school-day strong{font-weight:700}.active-school-day span{direction:ltr;font-variant-numeric:tabular-nums;font-weight:700;white-space:nowrap}@media(max-width:600px){.active-school-schedule{padding:14px}.active-school-days{grid-template-columns:1fr 1fr}.active-school-day{flex-direction:column;align-items:flex-start;gap:4px}}.schedule-builder{padding:24px!important;border:1px solid #ead9ad!important;border-radius:20px!important;background:linear-gradient(145deg,#fffefa,#fff 72%)!important;box-shadow:0 8px 24px #264d370e}.schedule-builder-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:18px;margin-bottom:20px;border-bottom:1px solid #efe5ce}.schedule-builder-heading h3{margin:4px 0 6px;color:#075b3e;font-size:1.35rem}.schedule-builder-heading p,.schedule-days-heading p{margin:0;color:#718078;font-size:.9rem;line-height:1.7}.schedule-builder-icon{display:grid;place-items:center;flex:0 0 52px;width:52px;height:52px;border-radius:16px;color:#075b3e;background:#e5f2e8;font-size:2rem}.schedule-meta-grid{display:grid;grid-template-columns:1fr 1.3fr 1fr;gap:14px;margin-bottom:25px}.schedule-field{display:flex;flex-direction:column;gap:8px;min-width:0}.schedule-field label{color:#075b3e;font-weight:700}.schedule-field input,.schedule-field select{width:100%;min-height:48px;box-sizing:border-box;border:1px solid #d9dfd5;border-radius:12px;padding:10px 13px;background:#fff;color:#24352c}.schedule-days-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:4px 0 14px}.schedule-days-heading h4{margin:0 0 4px;color:#075b3e;font-size:1.05rem}.schedule-days-heading>span{white-space:nowrap;border-radius:30px;padding:7px 12px;color:#075b3e;background:#e5f2e8;font-size:.84rem;font-weight:700}.schedule-days-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.schedule-day-card{min-width:0;padding:14px;border:1px solid #e5e7e1;border-radius:15px;background:#fbfbf8;transition:border-color .15s,background .15s}.schedule-day-card.is-enabled{border-color:#b7d8c4;background:#f2f8f2}.schedule-day-toggle{display:flex;align-items:center;gap:9px;cursor:pointer}.schedule-day-toggle input{position:absolute;opacity:0;width:1px;height:1px}.schedule-day-check{display:grid;place-items:center;flex:0 0 22px;width:22px;height:22px;border:1.5px solid #aab5ac;border-radius:7px;background:#fff}.schedule-day-toggle input:checked+.schedule-day-check{border-color:#08764e;background:#08764e}.schedule-day-toggle input:checked+.schedule-day-check:after{content:"✓";color:#fff;font-size:15px;font-weight:800}.schedule-day-toggle strong{color:#183c2d;font-size:1rem}.schedule-day-toggle small{margin-right:auto;color:#829087;font-size:.78rem}.schedule-day-times{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px;padding-top:12px;border-top:1px solid #dce9dc}.schedule-day-times label{display:flex;align-items:center;gap:7px;min-width:0;color:#718078;font-size:.82rem}.schedule-day-times input{min-width:0;width:100%;box-sizing:border-box;border:1px solid #d9dfd5;border-radius:9px;padding:8px 7px;background:#fff;color:#174b35;font-weight:700;font-variant-numeric:tabular-nums}.schedule-day-off{margin-top:14px;padding-top:12px;border-top:1px solid #ecece6;color:#9a9f98;font-size:.84rem}.schedule-builder-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;margin-top:20px;padding-top:17px;border-top:1px solid #efe5ce}.schedule-builder-footer>span{color:#78847c;font-size:.85rem}.schedule-builder-footer .primary-button{min-width:190px;margin:0}@media(max-width:700px){.schedule-builder{padding:16px!important}.schedule-meta-grid{grid-template-columns:1fr;gap:12px}.schedule-days-grid{grid-template-columns:1fr}.schedule-builder-heading h3{font-size:1.15rem}.schedule-builder-footer{align-items:stretch}.schedule-builder-footer .primary-button{width:100%;min-width:0}}.join-request-form{display:grid;gap:15px;margin:18px auto 0;width:100%;max-width:520px;text-align:right}.join-request-form .teacher-role-field{margin:0}.join-department-field{display:grid;gap:8px;color:#365447;font-size:.9rem;font-weight:700}.join-department-field select{width:100%;min-height:46px;padding:10px 12px;border:1px solid #d9dfd5;border-radius:10px;background:#fff;color:#174b35;font:inherit}.join-department-field small{color:#9b6b28;font-size:.8rem;font-weight:500}.join-request-form .primary-button{width:100%;margin:0}.join-requests-section{margin-bottom:22px}.join-request-card{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 16px;border-bottom:1px solid #edf0e9}.join-request-card:last-child{border-bottom:0}.join-request-details{display:grid;gap:5px;min-width:0}.join-request-details>strong{color:#214b37;font-size:.98rem}.join-request-details>small{color:#75847a;overflow-wrap:anywhere}.join-request-details>span{color:#52685b;font-size:.83rem}.join-request-status{width:max-content;padding:4px 9px;border-radius:20px;background:#f2f1e9;color:#746b4a;font-size:.76rem;font-style:normal}.join-request-status.approved{background:#e7f4eb;color:#247347}.join-request-status.rejected{background:#f9eaea;color:#a23c3c}.join-request-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}.join-request-actions .primary-button{margin:0;padding:9px 14px}.join-request-actions .secondary-button{padding:9px 14px}@media(max-width:620px){.join-request-card{align-items:stretch;flex-direction:column}.join-request-actions{display:grid;grid-template-columns:1fr 1fr}}.join-fullname-field{display:grid;gap:8px;min-width:0;color:#365447;font-size:.9rem;font-weight:700}.join-fullname-field input{display:block;width:100%;min-width:0;min-height:46px;box-sizing:border-box;padding:10px 13px;border:1px solid #d9dfd5;border-radius:12px;background:#fffdf8;color:#18382b;font:inherit;font-weight:500;text-align:right;direction:rtl;transition:border-color .15s,box-shadow .15s,background .15s}.join-fullname-field input::placeholder{color:#9aa69d;opacity:1;font-weight:400}.join-fullname-field input:hover:not(:disabled){border-color:#a9c6b2}.join-fullname-field input:focus-visible{outline:none;border-color:#08734e;background:#fff;box-shadow:0 0 0 3px #08734e1f}.join-fullname-field input:disabled{background:#f3f5f1;color:#87938a;cursor:not-allowed}.admin-account-form{max-width:620px}.admin-account-form input{width:100%;min-width:0;padding:13px 14px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;color:#1f2937;direction:rtl}.admin-account-form input:focus{outline:2px solid #86b98f;border-color:#15803d}.admin-accounts-list-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.admin-accounts-list-heading h3{margin:0}.admin-account-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 4px;border-bottom:1px solid #e8edf2}.admin-account-row:last-child{border-bottom:0}.admin-account-row>div{display:flex;flex-direction:column;gap:6px;min-width:0}.admin-account-row strong{color:#1f2937;overflow-wrap:anywhere}.admin-account-row small{font-size:12px}@media(max-width:600px){.admin-account-row{align-items:stretch;flex-direction:column}.admin-account-row button{width:100%}}.login-separator{display:flex;align-items:center;gap:12px;margin:18px 0 12px;color:#94a3b8;font-size:13px}.login-separator:before,.login-separator:after{content:"";height:1px;flex:1;background:#e5e7eb}.email-login-form{display:flex;flex-direction:column;gap:12px;text-align:right}.email-login-form label{display:flex;flex-direction:column;gap:6px;color:#166534;font-weight:700}.email-login-form input{width:100%;min-width:0;padding:12px 13px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;color:#1f2937;font:inherit}.email-login-form input:focus{outline:2px solid #86b98f;border-color:#15803d}.email-login-form .primary-button{margin-top:2px}.home-attendance-banner{width:100%;min-height:260px;margin:0 0 24px;padding:38px 22px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;border:1px solid #d5a63b;border-bottom:6px solid #d5a63b;border-radius:30px;color:#fff9e8;cursor:pointer;text-align:center;background-color:#075b39;background-image:radial-gradient(circle at 15% 20%,rgba(255,255,255,.07),transparent 28%),radial-gradient(circle at 85% 75%,rgba(255,255,255,.06),transparent 30%),linear-gradient(135deg,#064e3b,#087344 58%,#064e3b);box-shadow:0 12px 28px #064e3b21;transition:transform .18s ease,box-shadow .18s ease}.home-attendance-banner:active{transform:scale(.99)}.home-attendance-title{font-size:clamp(34px,7vw,54px);font-weight:800;line-height:1.35}.home-attendance-action{min-width:min(330px,85%);padding:13px 26px;display:flex;align-items:center;justify-content:center;gap:14px;border-radius:999px;background:linear-gradient(110deg,#168b58,#23a568);color:#fff;font-size:clamp(22px,5vw,30px);font-weight:700}.home-attendance-action span{font-size:36px;line-height:1}.home-attendance-banner:focus-visible{outline:3px solid #d5a63b;outline-offset:4px}@media(min-width:700px){.home-attendance-banner{min-height:300px}}.school-logo-image{width:104px;height:104px;flex:0 0 104px;object-fit:contain;padding:9px;border-radius:50%;background:radial-gradient(circle,#fffdf3 58%,#f4e8c7);border:3px solid #d7b34d;box-shadow:0 0 0 5px #fff9e833,0 5px 16px #00000029}@media(max-width:650px){.school-logo-image{width:78px;height:78px;flex-basis:78px;padding:6px;border-width:2px}}.teacher-checkin-card{display:grid;grid-template-columns:1fr auto;grid-template-areas:"copy icon" "message message";align-items:center;gap:12px 16px;padding:20px;border:1px solid #eadfbe;border-radius:24px;background:linear-gradient(145deg,#fff,#fffdf6);box-shadow:0 8px 24px #1e4b3514}.teacher-checkin-card .clock-icon{grid-area:icon}.teacher-checkin-card .time-copy{grid-area:copy;min-width:0}.teacher-checkin-card .time-copy h3{color:#075b3e;font-size:21px;margin-bottom:9px}.teacher-checkin-card .time-copy p{font-size:14px;margin-bottom:12px}.teacher-checkin-controls{display:flex;flex-direction:column;align-items:stretch;gap:8px;min-width:0}.teacher-checkin-time-input{width:100%;max-width:250px;min-height:52px;padding:8px 16px;border:1px solid #cfe2d3;border-radius:999px;background:#e7f4df;color:#075b3e;font-size:25px;font-weight:700;text-align:center;font-variant-numeric:tabular-nums}.teacher-checkin-controls small{color:#526b5c;font-size:13px;line-height:1.7}.teacher-checkin-card>small{grid-area:message;color:#075b3e}@media(max-width:650px){.teacher-checkin-card{padding:16px;gap:10px 12px;border-radius:20px}.teacher-checkin-card .clock-icon{width:52px;height:52px;flex-basis:52px;font-size:33px}.teacher-checkin-card .time-copy h3{font-size:18px}.teacher-checkin-card .time-copy p{font-size:12px}.teacher-checkin-time-input{max-width:100%;min-height:48px;font-size:23px}.teacher-checkin-controls small{font-size:12px}}
