.closure-review-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:16px}
.closure-review-confirm{display:flex;align-items:center;gap:10px;margin:14px 0;line-height:1.5}
.closure-review-confirm input{width:18px;height:18px;flex:none}
.closure-own-review,.closure-review-progress{margin-bottom:24px;overflow:hidden}
.closure-own-review textarea{min-height:90px}
.closure-review-assignment{margin-bottom:24px;min-width:0}
.closure-assignment-heading,.closure-assignment-tools,.closure-assignment-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.closure-assignment-heading .card-title{margin:0 0 5px}
.closure-assignment-subtitle{margin:0;color:var(--muted);font-size:13px}
.closure-assignment-tools{justify-content:flex-end;gap:12px}
.closure-assignment-count{border-radius:999px;background:#eaf1ff;color:#244ba8;padding:6px 12px;font-weight:700;font-size:12px;white-space:nowrap}
.closure-assignment-guidance{display:flex;flex-direction:column;gap:5px;background:var(--surface-muted,#f4f7fb);border-inline-start:3px solid #5676db;border-radius:8px;padding:12px 14px;margin:20px 0 16px;font-size:13px;line-height:1.6}
.closure-assignment-guidance span,.closure-assignment-footnote{color:var(--muted)}
.closure-assignment-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:12px;max-height:360px;overflow:auto;padding:2px;scrollbar-gutter:stable}
.closure-assignment-options .closure-review-confirm{margin:0;border:1px solid var(--line);border-radius:12px;background:var(--card);padding:15px;gap:12px;cursor:pointer;align-items:flex-start;transition:border-color .15s,background .15s;min-width:0}
.closure-assignment-options .closure-review-confirm:hover{border-color:#7393d9}
.closure-assignment-options .closure-review-confirm:has(input:checked){background:#f2f6ff;border-color:#8ea8e5}
.closure-assignment-options .closure-review-confirm:focus-within{outline:2px solid #5275d2;outline-offset:2px}
.closure-assignment-options input{margin-top:3px;accent-color:#3767d4}
.closure-assignment-person{display:flex;flex:1;min-width:0;flex-direction:column;gap:8px}
.closure-assignment-person strong{font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.closure-assignment-person-meta{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:12px;color:var(--muted)}
.closure-assignment-department{background:var(--surface-muted,#eaf0f8);border-radius:5px;padding:2px 7px;color:var(--text)}
.closure-assignment-choice{font-size:11px;color:var(--muted);white-space:nowrap;padding-top:3px}
.closure-review-confirm:has(input:checked) .closure-assignment-choice{color:#2855ad;font-weight:700}
.closure-assignment-footer{border-top:1px solid var(--line);margin-top:20px;padding-top:16px}
.closure-assignment-footer .closure-review-actions{margin:0;gap:10px}
.closure-assignment-footnote{font-size:12px;line-height:1.6;max-width:520px}
.theme-dark .closure-assignment-count{background:#304d78;color:#d6e6ff}
.theme-dark .closure-assignment-options .closure-review-confirm:has(input:checked){background:#263e5a;border-color:#648fc8}
.theme-dark .closure-review-confirm:has(input:checked) .closure-assignment-choice{color:#a9ceff}
.theme-dark .closure-assignment-department{background:#31465f;color:#dce9fb}
.theme-dark .closure-assignment-guidance{background:#1d3046;border-inline-start-color:#7daaf5}
@media(max-width:900px){.closure-assignment-heading{align-items:flex-start}.closure-assignment-tools{width:100%;justify-content:space-between}.closure-assignment-options{grid-template-columns:1fr}.closure-assignment-footer{align-items:stretch}.closure-assignment-footer .closure-review-actions{width:100%;flex-direction:row;justify-content:flex-end}.closure-assignment-choice{font-size:10px}.closure-assignment-options .closure-review-confirm{padding:12px}}
.closure-review-progress .data-table td{white-space:normal;overflow-wrap:anywhere;vertical-align:top}
@media(max-width:900px){.closure-review-actions{align-items:stretch;flex-direction:column}.closure-review-actions .button{width:100%}}
.closure-management .closure-personal-row { background: rgba(67, 118, 208, .09); }
.closure-management td { vertical-align: top; }
.closure-management td small { display: block; margin-top: 6px; }
.closure-manager-decision textarea { min-height: 85px; margin-top: 8px; }
.closure-management .badge { white-space: normal; }
.closure-section-heading,.closure-review-progress>h2{display:flex;align-items:center;justify-content:space-between;gap:14px}
.closure-progress-summary{display:flex;align-items:center;gap:20px;margin:18px 0}
.closure-progress-summary progress{width:220px;height:9px;accent-color:#3573cb}
.closure-status{display:inline-flex;align-items:center;border-radius:18px;padding:6px 12px;background:#fff1cc;color:#755000;font-size:12px;font-weight:700;line-height:1.4}
.closure-status.approved,.closure-status.not_required{background:#dff5e9;color:#176341}
.closure-status.returned,.closure-status.review_required{background:#fbe5e6;color:#9b2937}
.closure-final-guidance{line-height:1.8;max-width:850px;color:var(--muted)}
.closure-final-actions{border-top:1px solid var(--line);padding-top:20px;margin-top:20px}
.closure-final-confirm{display:flex;align-items:flex-start;gap:12px;line-height:1.8;font-size:14px;max-width:800px}
.closure-final-confirm input{width:19px;height:19px;margin-top:4px;flex-shrink:0;accent-color:#3573cb}
.closure-final-buttons{display:flex;justify-content:flex-end;margin-top:20px}
.closure-final-buttons .button{min-height:46px;min-width:230px}
.closure-approval-blockers{margin:18px 0;padding-inline-start:24px;line-height:1.9;color:var(--muted)}
.closure-approval-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0}
.closure-approval-step{display:flex;align-items:flex-start;gap:14px;border:1px solid var(--line);border-radius:12px;padding:18px;background:var(--surface)}
.closure-step-number{display:grid;place-items:center;width:32px;height:32px;flex-shrink:0;border-radius:50%;background:#e8effb;color:#24518f;font-weight:700}
.closure-approval-step p{margin:8px 0;font-size:14px}.closure-approval-step small{color:var(--muted);line-height:1.6}
.closure-approval-step.complete{border-color:#81b99b}.closure-approval-step.complete .closure-step-number{background:#dff5e9;color:#176341}
.closure-final-return{max-width:750px;margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}
.closure-final-return label{display:block;font-size:13px}.closure-final-return textarea{min-height:80px;margin:8px 0 12px}
.theme-dark .closure-status{background:#574626;color:#ffe2a0}.theme-dark .closure-status.approved,.theme-dark .closure-status.not_required{background:#204d40;color:#b4f3d3}
.theme-dark .closure-status.returned,.theme-dark .closure-status.review_required{background:#5c303c;color:#ffd1d9}
.theme-dark .closure-step-number{background:#304c70;color:#d9eaff}.theme-dark .closure-approval-step.complete .closure-step-number{background:#204d40;color:#b4f3d3}
@media(max-width:900px){.closure-approval-steps{grid-template-columns:1fr}.closure-final-buttons .button{width:100%}.closure-progress-summary{align-items:flex-start;flex-direction:column;gap:10px}.closure-progress-summary progress{width:100%}}

/* Phone layout: compact sections, contained report scrolling, readable controls. */
.attendance-closure-page{min-width:0}
.closure-report-mobile{display:none}
@media(max-width:900px){
 .closure-report-desktop{display:none}
 .closure-report-mobile{display:block}
 .attendance-closure-preview:has(.closure-report-responsive){max-height:none;overflow:visible}
 .closure-report-responsive{scroll-margin-top:90px;min-width:0}
 .closure-report-count{margin:10px 0;font-size:12px;color:var(--muted)}
 .closure-employee-compact{margin:0 0 10px;border:1px solid var(--line);border-radius:10px;background:var(--card);overflow:hidden}
 .closure-employee-compact>summary{display:block;cursor:pointer;list-style:none;padding:12px;text-align:start}
 .closure-employee-compact>summary::-webkit-details-marker{display:none}
 .closure-employee-compact>summary:focus-visible{outline:3px solid #6998ed;outline-offset:-3px}
 .closure-employee-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px;font-size:14px;line-height:1.4}
 .closure-employee-heading strong{min-width:0;overflow-wrap:anywhere;color:var(--text)}
 .closure-employee-heading>span{font-size:12px;white-space:nowrap;color:var(--muted)}
 .closure-employee-position{margin-top:4px;color:var(--muted);font-size:12px;line-height:1.5;overflow-wrap:anywhere}
 .closure-employee-amounts{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px;font-size:12px;line-height:1.5}
 .closure-employee-amounts>span{padding:3px 7px;border-radius:6px;background:var(--blue-soft);color:var(--text)}
 .closure-employee-toggle{display:block;margin-top:8px;color:var(--blue);font-size:12px;font-weight:650}
 .closure-employee-toggle::after{content:' +'}
 .closure-employee-compact[open] .closure-employee-toggle::after{content:' −'}
 .closure-employee-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0;padding:12px;border-top:1px solid var(--line)}
 .closure-employee-fields>div{min-width:0;padding:8px;background:var(--blue-soft);border-radius:6px;font-size:12px;line-height:1.5}
 .closure-employee-fields>div:last-child{grid-column:1/-1}
 .closure-employee-fields dt{color:var(--muted);font-weight:600;overflow-wrap:anywhere}
 .closure-employee-fields dd{margin:3px 0 0;color:var(--text);overflow-wrap:anywhere}
 .closure-report-pagination{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 0;font-size:13px}
 .closure-report-pagination .btn{min-height:44px;min-width:80px}
}
.closure-mobile-fold>summary{display:flex;align-items:center;gap:10px;cursor:pointer;list-style:none;min-height:46px}
.closure-mobile-fold>summary::-webkit-details-marker{display:none}
.closure-mobile-fold>summary::after{content:'+';margin-inline-start:auto;font-size:22px}
.closure-mobile-fold[open]>summary::after{content:'−'}
.closure-mobile-fold>summary:focus-visible{outline:3px solid #6998ed;outline-offset:4px}
.closure-fold-badge{font-size:12px;padding:4px 8px;border-radius:20px;background:var(--blue-soft,#e7effb);color:var(--text);white-space:nowrap}
@media(max-width:900px){
 .attendance-closure-page>*{min-width:0;max-width:100%;box-sizing:border-box}
 .attendance-closure-page .card{padding:14px;margin-bottom:12px;border-radius:12px;min-width:0}
 .attendance-closure-page h1{font-size:25px;line-height:1.25}
 .attendance-closure-page h2{font-size:17px;line-height:1.4}
 .attendance-closure-page .small,.attendance-closure-page .closure-final-guidance{font-size:12px;line-height:1.6}
 .attendance-closure-controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .attendance-closure-controls>.field{min-width:0}
 .attendance-closure-controls>strong{grid-column:1/-1;display:block;padding:10px;background:var(--surface-muted,#eaf0f8);border-radius:8px;font-size:13px;text-align:center;overflow-wrap:anywhere}
 .attendance-closure-page .input,.attendance-closure-page .custom-select{min-width:0;max-width:100%;box-sizing:border-box}
 .attendance-closure-page .input{font-size:16px;min-height:44px}
 .attendance-closure-controls input[type='month']{font-size:14px;padding-inline:9px}
 .closure-mobile-fold:not([open]){padding-block:8px}
 .closure-fold-content{min-width:0;padding-top:12px}
 .closure-fold-content>h2,.closure-fold-content>.closure-section-heading{display:none}
 .closure-fold-content>.table-wrap{max-height:45vh;overflow:auto;overscroll-behavior:contain}
 .closure-mobile-fold.attendance-closure-filters{display:block;margin:12px 0;padding:10px;border:1px solid var(--line);border-radius:10px}
 .attendance-closure-filters .closure-fold-content{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .attendance-closure-filters .field:first-child{grid-column:1/-1}
 .closure-review-actions,.closure-final-buttons{gap:8px;margin-top:12px}
 .closure-review-actions .btn,.closure-final-buttons .btn,.closure-final-return .btn{width:100%;min-width:0;min-height:44px;white-space:normal}
 .closure-final-confirm,.closure-review-confirm{font-size:13px;line-height:1.6;align-items:flex-start}
 .closure-approval-blockers{font-size:12px;padding-inline-start:18px;margin:10px 0;line-height:1.7}
 .closure-approval-steps{margin:10px 0;gap:8px}.closure-approval-step{padding:12px}
 .closure-progress-summary{margin:0 0 12px;gap:8px}
 .closure-issues-alert{padding:12px;gap:8px;font-size:12px;margin-bottom:12px;overflow-wrap:anywhere}
 .attendance-closure-preview .attendance-report-title{font-size:14px;line-height:1.6;padding:0 0 8px}
 .attendance-closure-preview .attendance-closure-table-viewport{max-height:52vh;overscroll-behavior:contain}
 .attendance-closure-preview .data-table :is(td,th){font-size:12px}
 .attendance-closure-filter-actions{gap:8px;font-size:12px}
 .attendance-closure-filter-actions .btn-row{gap:8px;display:grid;grid-template-columns:1fr 1fr}
 .attendance-closure-filter-actions .btn{min-width:0;min-height:42px;padding:8px;white-space:normal}
 .closure-review-progress .data-table,.closure-review-progress tbody,.closure-review-progress tr,.closure-review-progress td{display:block;width:100%;min-width:0;box-sizing:border-box}
 .closure-review-progress thead{display:none}.closure-review-progress tr{border:1px solid var(--line);border-radius:10px;padding:8px;margin-bottom:10px}
 .closure-review-progress td{padding:5px;border:0;text-align:start}
 .closure-review-progress td::before{display:block;color:var(--muted);font-size:11px;margin-bottom:2px}
 .closure-review-progress td:nth-child(1)::before{content:'Department'}.closure-review-progress td:nth-child(2)::before{content:'Reviewer'}.closure-review-progress td:nth-child(3)::before{content:'Status'}.closure-review-progress td:nth-child(4)::before{content:'Time'}.closure-review-progress td:nth-child(5)::before{content:'Note'}
 .attendance-closure-page[lang='ar'] .closure-review-progress td:nth-child(1)::before{content:'القسم'}.attendance-closure-page[lang='ar'] .closure-review-progress td:nth-child(2)::before{content:'المراجع'}.attendance-closure-page[lang='ar'] .closure-review-progress td:nth-child(3)::before{content:'الحالة'}.attendance-closure-page[lang='ar'] .closure-review-progress td:nth-child(4)::before{content:'الوقت'}.attendance-closure-page[lang='ar'] .closure-review-progress td:nth-child(5)::before{content:'الملاحظة'}
 .closure-review-progress .table-wrap{max-height:45vh;overflow:auto;min-width:0}
}
@media(max-width:400px){.attendance-closure-controls{grid-template-columns:minmax(0,1fr)}.attendance-closure-controls .input{font-size:16px}}
