.attendance-dialog{width:min(960px,96vw);max-height:92vh;border:0;border-radius:24px;padding:26px;overflow:auto;box-shadow:0 28px 80px #0f274733;background:#f4f8fc;color:#10233e}.attendance-dialog::backdrop{background:#07172a99;backdrop-filter:blur(4px)}.attendance-dialog>button.close{position:sticky;top:0;float:right;z-index:2}.attendance-dialog h2,.attendance-dialog h3{margin:0 0 6px}.attendance-dialog p{color:#60728a}
.attendance-summary,.attendance-month{display:grid;grid-template-columns:repeat(5,minmax(110px,1fr));gap:10px;margin:14px 0}.attendance-summary article,.attendance-month article{background:#fff;border:1px solid #d8e3ef;border-radius:16px;padding:15px}.attendance-summary span,.attendance-month span{display:block;font-size:12px;color:#60728a}.attendance-summary b,.attendance-month b{display:block;margin-top:5px;font-size:20px}.attendance-geofence{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px;border-radius:14px;background:#e7f4f7}.attendance-geofence b,.attendance-geofence span{display:block}.attendance-geofence span{font-size:12px;color:#60728a}.attendance-geofence em{font-style:normal;font-weight:800;color:#087d8a}.attendance-actions{display:flex;align-items:end;flex-wrap:wrap;gap:9px;margin:14px 0}.attendance-actions label{display:grid;gap:5px;flex:1 1 220px;font-size:12px;font-weight:800}.attendance-actions input{padding:10px;border:1px solid #c9d7e6;border-radius:10px;background:#fff}.attendance-actions button{border:0;border-radius:11px;padding:12px 16px;font-weight:800;cursor:pointer}.attendance-actions .primary{background:#087d8a;color:#fff}.attendance-history{background:#fff;border:1px solid #d8e3ef;border-radius:16px;padding:15px}.attendance-history>div{display:grid;grid-template-columns:130px 1fr auto;gap:10px;padding:10px 0;border-top:1px solid #e3eaf2}.attendance-history em{font-style:normal;color:#087d8a}
.employee-attendance-shell{padding:26px;background:#f4f8fc;color:#10233e}.employee-attendance-shell>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}.employee-attendance-shell h2,.employee-attendance-shell h3{margin:0 0 6px}.employee-attendance-shell p{margin:0;color:#60728a}.employee-attendance-close{border:0;background:#e5edf6;border-radius:50%;width:38px;height:38px;font-size:22px;cursor:pointer}
.employee-attendance-kpis{display:grid;grid-template-columns:repeat(5,minmax(110px,1fr));gap:10px;margin:14px 0}.employee-attendance-kpis article,.employee-attendance-card{background:#fff;border:1px solid #d8e3ef;border-radius:16px;padding:15px}.employee-attendance-kpis span{display:block;font-size:12px;color:#60728a}.employee-attendance-kpis b{display:block;margin-top:5px;font-size:21px}
.employee-attendance-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);gap:14px}.employee-attendance-card label{display:grid;gap:6px;margin:10px 0;font-weight:700;font-size:13px}.employee-attendance-card input,.employee-attendance-card select,.employee-attendance-card textarea{width:100%;box-sizing:border-box;padding:11px;border:1px solid #c9d7e6;border-radius:10px;background:#fff}.employee-attendance-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:14px}.employee-attendance-actions button{border:0;border-radius:11px;padding:11px 16px;font-weight:800;cursor:pointer;background:#e7eef7;color:#14314f}.employee-attendance-actions .primary{background:#087d8a;color:#fff}
.employee-attendance-table{overflow:auto;margin-top:14px}.employee-attendance-table table{width:100%;border-collapse:collapse;background:#fff;border-radius:14px;overflow:hidden}.employee-attendance-table th,.employee-attendance-table td{padding:11px;border-bottom:1px solid #e4ebf3;text-align:left;white-space:nowrap;font-size:13px}
.hr-attendance-admin{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);gap:16px;margin:16px 0}.hr-geofence-form{display:grid;grid-template-columns:repeat(3,minmax(120px,1fr));gap:10px;margin:14px 0}.hr-geofence-form input{min-width:0;padding:11px;border:1px solid #cbd8e6;border-radius:10px}.hr-geofence-form button{min-height:42px}
@media(max-width:900px){.hr-attendance-admin{grid-template-columns:1fr}.hr-geofence-form{grid-template-columns:repeat(2,minmax(120px,1fr))}}
@media(max-width:720px){.attendance-dialog{width:100vw;max-height:100vh;border-radius:0;margin:0;padding:16px}.attendance-summary,.attendance-month{grid-template-columns:repeat(2,1fr)}.attendance-geofence{align-items:flex-start;flex-direction:column}.attendance-actions button{flex:1 1 140px}.attendance-history>div{grid-template-columns:1fr}.employee-attendance-shell{padding:16px}.employee-attendance-kpis{grid-template-columns:repeat(2,1fr)}.employee-attendance-grid{grid-template-columns:1fr}.employee-attendance-actions button{flex:1 1 140px}.employee-attendance-dialog{width:100vw;max-height:100vh;border-radius:0;margin:0}}
@media(max-width:560px){.hr-geofence-form{grid-template-columns:1fr}}
/* Responsive punch dialog: no desktop minimum-width cards or live clock overlap. */
@media(max-width:720px){
 .attendance-dialog,.employee-attendance-dialog{box-sizing:border-box;width:100%;max-width:100vw;max-height:100dvh;overflow-y:auto;overflow-x:hidden;}
 .attendance-dialog section,.employee-attendance-shell section{min-width:0;}
 .attendance-summary,.attendance-month,.employee-attendance-kpis{grid-template-columns:repeat(2,minmax(0,1fr));}
 .attendance-summary article,.attendance-month article{min-width:0;padding:12px;overflow-wrap:anywhere;}
 .attendance-summary b{font-size:17px;}
 .attendance-actions{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch;}
 .attendance-actions>*{min-width:0;max-width:100%;width:100%;margin:0;}
 .attendance-actions input{max-width:100%;}
 .attendance-geofence{overflow-wrap:anywhere;}
 #attendanceCameraPanel{grid-column:1/-1;}
 .attendance-dialog .close{float:none;display:block;margin-left:auto;position:relative;}
 .attendance-live-error{white-space:normal;overflow-wrap:anywhere;}
}
