
.attendance-modal{z-index:1100}
.attendance-card{width:min(1060px,97vw);max-height:96vh;overflow-y:auto}
.attendance-editor{padding:16px 24px 24px}
.attendance-inputs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.attendance-inputs label{display:flex;flex-direction:column;gap:6px;font-weight:800;font-size:14px;color:#18324b}
.attendance-inputs input,.attendance-inputs select{width:100%;border:1px solid #d4dee7;border-radius:9px;padding:10px;background:white;color:#122b3d;font:inherit;min-width:0}
.attendance-period{margin:13px 0;padding:12px;background:#edf7f9;border-radius:9px;font-weight:800;text-align:center;color:#166673}
.attendance-editor-actions{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;margin:10px 0 20px;font-size:13px}
.attendance-preview-label{font-size:13px;font-weight:800;margin-bottom:9px}
.attendance-preview-frame{background:#d9e2e9;padding:15px;max-height:640px;overflow:auto;border-radius:12px}
.attendance-preview-frame .attendance-paper{box-shadow:0 8px 22px #27374620;margin:auto}
.attendance-print-sheet{display:none}
.attendance-paper{background:white;color:#111;width:190mm;min-height:272mm;padding:7mm 8mm;margin:0 auto;direction:rtl;font-family:Arial,Tahoma,sans-serif;box-sizing:border-box}
.attendance-paper *{box-sizing:border-box}
.attendance-letterhead{display:grid;grid-template-columns:1fr 1.2fr 1fr;align-items:start;gap:5mm;min-height:22mm}
.attendance-ar-head{font-size:9px;font-weight:bold;line-height:1.45;text-align:right}
.attendance-en-head{font-size:8px;font-weight:bold;line-height:1.45;text-align:left}
.attendance-center-head{text-align:center;font-size:12px;font-weight:800;display:flex;flex-direction:column;align-items:center;gap:1mm}
.attendance-center-head img{height:15mm;width:25mm;object-fit:contain}
.attendance-center-head strong{white-space:nowrap}
.attendance-employee{display:grid;grid-template-columns:1fr 1fr;column-gap:21mm;row-gap:4mm;margin:5mm 0 3mm;font-size:11px}
.attendance-employee>div{display:flex;align-items:baseline;gap:4mm;min-height:5mm}
.attendance-employee span{white-space:nowrap;font-weight:800}
.attendance-employee b{flex:1;border-bottom:1px dotted #444;text-align:center;min-height:4mm;font-weight:600}
.attendance-employee-location{grid-column:1/-1;width:48%}
.attendance-table-title{text-align:center;font-weight:800;font-size:13px;margin:2mm 0 1mm}
.attendance-grid{width:100%;border-collapse:collapse;table-layout:fixed;direction:rtl;text-align:center;font-size:10px}
.attendance-grid th,.attendance-grid td{border:1px solid #222;padding:0 2px;height:5.25mm;line-height:1.1;white-space:nowrap}
.attendance-grid th{height:6.5mm;font-weight:800;font-size:10px;background:#eee}
.attendance-grid tbody td:nth-child(-n+3){font-weight:700}
.attendance-grid .attendance-sunday{background:#b5b5b5!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}
.attendance-notes{font-size:8.25px;line-height:1.24;margin-top:2mm;text-align:right}
.attendance-notes strong{display:block;font-size:9px}
.attendance-notes div{padding-right:10px}
.attendance-signatures{display:flex;justify-content:space-between;align-items:flex-start;gap:5mm;margin-top:3mm;font-size:15px;font-weight:800;text-align:center}
.attendance-signatures>div{min-width:36%;min-height:20mm}
.attendance-signatures strong{font-size:12px}
.attendance-sign-line{height:13mm}
@media(max-width:750px){.attendance-inputs{grid-template-columns:repeat(2,minmax(0,1fr))}.attendance-editor{padding:12px}.attendance-preview-frame{padding:8px}.attendance-preview-frame .attendance-paper{zoom:.64}}
@media(max-width:470px){.attendance-inputs{grid-template-columns:1fr}.attendance-preview-frame .attendance-paper{zoom:.43}}
@media print{
  @page{size:A4 portrait;margin:7mm}
  body.printing-attendance{background:#fff!important}
  body.printing-attendance>*{display:none!important}
  body.printing-attendance>#attendancePrintArea{display:block!important;position:static!important;width:100%!important;margin:0!important;padding:0!important;visibility:visible!important;background:#fff!important}
  body.printing-attendance .attendance-paper{width:100%!important;min-height:0!important;padding:0!important;margin:0!important;box-shadow:none!important}
  body.printing-attendance .attendance-grid tr{break-inside:avoid!important;page-break-inside:avoid!important}
  body.printing-attendance .attendance-grid .attendance-sunday{background:#b5b5b5!important;print-color-adjust:exact!important;-webkit-print-color-adjust:exact!important}
  body.printing-attendance .attendance-signatures{break-inside:avoid!important}
}
