
/* Employee Home: compact daily-use dashboard. Existing attendance/task modules remain unchanged. */
/* Progressive enhancement: legacy working content is hidden only after the
   replacement Home has actually rendered. A slow/failed mobile boot can never
   leave the employee with a completely blank centre area. */
body.dt17-emp-home-ready #empScreen #empWelcome{display:none!important;}
body.dt17-emp-home-ready #empScreen #photoSection{display:none!important;}
body.dt17-emp-home-ready #empScreen:not(.page-open) #empQuickNav,
body.dt17-emp-home-ready #empScreen:not(.page-open) #attSection,
body.dt17-emp-home-ready #empScreen:not(.page-open) #myTasksSection{display:none!important;}
body.dt17-emp-home-ready #empScreen:not(.page-open) #empFabKaam{display:none!important;}
#dt17EmpHomePro{max-width:780px;margin:4px auto 14px;display:block;}
.dt17-eh-card{background:#fff;border:1px solid #E6E9EF;border-radius:18px;box-shadow:0 4px 16px rgba(15,23,42,.06);overflow:hidden;}
.dt17-eh-profile{padding:14px 15px;display:flex;align-items:center;gap:12px;background:linear-gradient(135deg,#F0FDFA 0%,#FFFFFF 55%,#F5F3FF 100%);}
.dt17-eh-avatar{width:52px;height:52px;border-radius:50%;display:flex;align-items:center;justify-content:center;overflow:hidden;background:linear-gradient(135deg,#00A884,#7C3AED);color:#fff;font-size:17px;font-weight:900;border:3px solid #fff;box-shadow:0 4px 12px rgba(15,23,42,.14);flex:0 0 auto;}
.dt17-eh-avatar img{width:100%;height:100%;object-fit:cover;}
.dt17-eh-person{flex:1;min-width:0;}
.dt17-eh-name{font-size:16px;font-weight:950;color:#0F172A;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.dt17-eh-meta{font-size:11px;color:#64748B;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.dt17-eh-att{font-size:11px;font-weight:900;padding:6px 9px;border-radius:999px;background:#F1F5F9;color:#64748B;white-space:nowrap;}
.dt17-eh-att.in{background:#D1FAE5;color:#047857;}.dt17-eh-att.out{background:#FFEDD5;color:#C2410C;}
.dt17-eh-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:9px 0;}
.dt17-eh-stat{background:#fff;border:1px solid #E8ECF2;border-radius:14px;padding:10px 7px;text-align:center;box-shadow:0 2px 8px rgba(15,23,42,.035);}
.dt17-eh-stat b{display:block;font-size:20px;line-height:1;font-weight:950;color:#0F172A;}
.dt17-eh-stat span{display:block;margin-top:5px;font-size:9px;font-weight:800;color:#64748B;}
.dt17-eh-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:10px;}
.dt17-eh-action{height:68px;border:1px solid #E5EAF0;border-radius:15px;background:#fff;cursor:pointer;font-family:var(--font);font-size:11px;font-weight:900;color:#334155;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;box-shadow:0 2px 8px rgba(15,23,42,.04);transition:transform .1s ease,box-shadow .1s ease;}
.dt17-eh-action:active{transform:scale(.97);box-shadow:none;}.dt17-eh-action .ico{font-size:20px;line-height:1;}
.dt17-eh-tasks{padding:13px 14px 10px;}
.dt17-eh-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;}
.dt17-eh-head b{font-size:14px;color:#0F172A;font-weight:950;}.dt17-eh-head button{border:0;background:#EEF2FF;color:#4F46E5;font-family:var(--font);font-weight:900;font-size:10px;padding:6px 9px;border-radius:999px;cursor:pointer;}
.dt17-eh-task{display:flex;gap:9px;align-items:flex-start;padding:10px 0;border-top:1px solid #F1F5F9;}.dt17-eh-task:first-of-type{border-top:0;}
.dt17-eh-task-dot{width:30px;height:30px;border-radius:10px;background:#EEF2FF;display:flex;align-items:center;justify-content:center;flex:0 0 auto;font-size:14px;}
.dt17-eh-task-main{flex:1;min-width:0;}.dt17-eh-task-title{font-size:12px;font-weight:900;color:#1E293B;line-height:1.35;}.dt17-eh-task-sub{font-size:10px;color:#94A3B8;margin-top:3px;}
.dt17-eh-task-actions{display:flex;gap:5px;margin-top:6px;}.dt17-eh-mini{height:26px;border:0;border-radius:8px;padding:0 9px;font-family:var(--font);font-size:10px;font-weight:900;cursor:pointer;}.dt17-eh-start{background:#DBEAFE;color:#1D4ED8;}.dt17-eh-done{background:#DCFCE7;color:#15803D;}.dt17-eh-undo{background:#F1F5F9;color:#475569;}
.dt17-eh-empty{padding:16px 4px;text-align:center;color:#94A3B8;font-size:11px;}
@media(max-width:520px){
  #dt17EmpHomePro{margin-top:2px}.dt17-eh-profile{padding:12px}.dt17-eh-avatar{width:46px;height:46px}.dt17-eh-name{font-size:15px}.dt17-eh-att{font-size:10px;padding:5px 8px}
  .dt17-eh-stats{gap:6px}.dt17-eh-stat{padding:9px 4px}.dt17-eh-stat b{font-size:18px}.dt17-eh-actions{gap:7px}.dt17-eh-action{height:62px;border-radius:13px;font-size:10px}
}
