
/* =========================================================
   EMPLOYEE HOME — PURPLE/GOLD PROFESSIONAL POLISH V2
   Visual-only patch. Attendance/task/backend logic untouched.
   ========================================================= */
#empScreen.active main.page{
  background:
    radial-gradient(circle at 8% 0%,rgba(109,40,217,.055),transparent 28%),
    radial-gradient(circle at 94% 8%,rgba(217,154,40,.055),transparent 24%),
    var(--dtp-page,#f6f5fa)!important;
}
body.dt17-emp-home-ready #empScreen:not(.page-open) #empQuickNav{
  display:none!important;
  visibility:hidden!important;
}
#empScreen #dt17EmpHomePro{
  width:100%!important;
  max-width:980px!important;
  margin:10px auto 22px!important;
  padding:0 2px!important;
}
#empScreen #dt17EmpHomePro .dt17-eh-card{
  background:#fff!important;
  border:1px solid rgba(109,40,217,.085)!important;
  border-radius:22px!important;
  box-shadow:0 12px 30px -22px rgba(77,43,124,.46)!important;
}
#empScreen #dt17EmpHomePro .dt17-eh-profile{
  position:relative!important;
  min-height:82px!important;
  padding:15px 18px!important;
  gap:13px!important;
  overflow:hidden!important;
  background:
    radial-gradient(circle at 5% -90%,rgba(217,154,40,.24),transparent 42%),
    linear-gradient(135deg,#fff 0%,#fbf9ff 56%,#f3ecff 100%)!important;
}
#empScreen #dt17EmpHomePro .dt17-eh-profile:before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:4px;
  background:linear-gradient(180deg,var(--dtp-gold,#d99a28),var(--dtp-p,#6d28d9));
}
#empScreen #dt17EmpHomePro .dt17-eh-avatar{
  width:54px!important;
  height:54px!important;
  border:3px solid #fff!important;
  outline:1px solid rgba(217,154,40,.28)!important;
  background:linear-gradient(135deg,var(--dtp-p,#6d28d9),var(--dtp-p2,#7c3aed))!important;
  box-shadow:0 9px 18px -9px rgba(77,43,124,.62)!important;
}
#empScreen #dt17EmpHomePro .dt17-eh-name{
  font-family:'Space Grotesk','Noto Sans Devanagari',sans-serif!important;
  font-size:17px!important;
  font-weight:700!important;
  color:var(--dtp-ink,#171229)!important;
  letter-spacing:-.015em!important;
}
#empScreen #dt17EmpHomePro .dt17-eh-meta{
  margin-top:4px!important;
  font-size:10.8px!important;
  font-weight:700!important;
  color:var(--dtp-ink2,#6d667d)!important;
}
#empScreen #dt17EmpHomePro .dt17-eh-att{
  position:relative!important;
  padding:7px 10px 7px 22px!important;
  border:1px solid var(--dtp-line,#e8e4ef)!important;
  background:#f8f7fb!important;
  color:var(--dtp-ink2,#6d667d)!important;
  font-size:10.5px!important;
  font-weight:900!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8)!important;
}
#empScreen #dt17EmpHomePro .dt17-eh-att:before{
  content:"";
  position:absolute;
  left:9px;top:50%;transform:translateY(-50%);
  width:7px;height:7px;border-radius:50%;
  background:#94a3b8;
  box-shadow:0 0 0 3px rgba(148,163,184,.14);
}
#empScreen #dt17EmpHomePro .dt17-eh-att.in{background:#ecfdf5!important;border-color:#b7ead9!important;color:#087458!important;}
#empScreen #dt17EmpHomePro .dt17-eh-att.in:before{background:#10b981;box-shadow:0 0 0 3px rgba(16,185,129,.14);}
#empScreen #dt17EmpHomePro .dt17-eh-att.out{background:#fff7ed!important;border-color:#fed7aa!important;color:#c2410c!important;}
#empScreen #dt17EmpHomePro .dt17-eh-att.out:before{background:#f97316;box-shadow:0 0 0 3px rgba(249,115,22,.14);}

#empScreen #dt17EmpHomePro .dt17-eh-stats{
  gap:10px!important;
  margin:11px 0!important;
}
#empScreen #dt17EmpHomePro .dt17-eh-stat{
  position:relative!important;
  min-height:68px!important;
  padding:12px 7px 10px!important;
  border:1px solid var(--dtp-line,#e8e4ef)!important;
  border-radius:17px!important;
  background:linear-gradient(180deg,#fff 0%,#fcfbfe 100%)!important;
  box-shadow:0 7px 18px -17px rgba(77,43,124,.7)!important;
  overflow:hidden!important;
}
#empScreen #dt17EmpHomePro .dt17-eh-stat:before{
  content:"";position:absolute;left:0;right:0;top:0;height:3px;background:var(--dtp-p,#6d28d9);
}
#empScreen #dt17EmpHomePro .dt17-eh-stat:nth-child(2):before{background:var(--dtp-gold,#d99a28);}
#empScreen #dt17EmpHomePro .dt17-eh-stat:nth-child(3):before{background:var(--dtp-green,#0f9f72);}
#empScreen #dt17EmpHomePro .dt17-eh-stat:nth-child(4):before{background:#4f46e5;}
#empScreen #dt17EmpHomePro .dt17-eh-stat b{
  font-family:'Space Grotesk','Noto Sans Devanagari',sans-serif!important;
  font-size:23px!important;
  font-weight:700!important;
  color:var(--dtp-ink,#171229)!important;
}
#empScreen #dt17EmpHomePro .dt17-eh-stat span{
  margin-top:6px!important;
  font-size:9.2px!important;
  font-weight:900!important;
  color:var(--dtp-ink2,#6d667d)!important;
}

#empScreen #dt17EmpHomePro .dt17-eh-actions{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px!important;
  margin:0 0 12px!important;
}
#empScreen #dt17EmpHomePro .dt17-eh-action{
  min-height:78px!important;
  height:auto!important;
  padding:10px 7px!important;
  gap:7px!important;
  border:1px solid var(--dtp-line,#e8e4ef)!important;
  border-radius:18px!important;
  background:linear-gradient(180deg,#fff 0%,#fbfaff 100%)!important;
  color:var(--dtp-ink,#171229)!important;
  box-shadow:0 8px 18px -17px rgba(77,43,124,.78)!important;
  transition:transform .14s ease,border-color .14s ease,box-shadow .14s ease,background .14s ease!important;
}
#empScreen #dt17EmpHomePro .dt17-eh-action:hover{
  transform:translateY(-2px)!important;
  border-color:rgba(109,40,217,.26)!important;
  box-shadow:0 13px 24px -18px rgba(77,43,124,.55)!important;
  background:#fff!important;
}
#empScreen #dt17EmpHomePro .dt17-eh-action:active{transform:scale(.975)!important;}
#empScreen #dt17EmpHomePro .dt17-eh-action .ico{
  width:38px!important;height:38px!important;
  border-radius:13px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  background:#f1eafe!important;color:var(--dtp-p,#6d28d9)!important;
  box-shadow:inset 0 0 0 1px rgba(109,40,217,.07)!important;
  font-size:0!important;
}
#empScreen #dt17EmpHomePro .dt17-eh-action .ico svg{
  width:19px!important;height:19px!important;
  fill:none!important;stroke:currentColor!important;stroke-width:1.9!important;stroke-linecap:round!important;stroke-linejoin:round!important;
}
#empScreen #dt17EmpHomePro .dt17-eh-action .lbl{
  font-size:10.8px!important;line-height:1.15!important;font-weight:900!important;color:var(--dtp-ink,#171229)!important;text-align:center!important;
}
#empScreen #dt17EmpHomePro .dt17-eh-action[data-tone="green"] .ico{background:#eafaf4!important;color:#07815f!important;}
#empScreen #dt17EmpHomePro .dt17-eh-action[data-tone="blue"] .ico{background:#eef5ff!important;color:#2563eb!important;}
#empScreen #dt17EmpHomePro .dt17-eh-action[data-tone="gold"] .ico{background:#fff6e7!important;color:#b7791f!important;}
#empScreen #dt17EmpHomePro .dt17-eh-action[data-tone="mint"] .ico{background:#ecfdf5!important;color:#0f9f72!important;}
#empScreen #dt17EmpHomePro .dt17-eh-action[data-tone="violet"] .ico{background:#f3edff!important;color:#7c3aed!important;}
#empScreen #dt17EmpHomePro .dt17-eh-action[data-tone="amber"] .ico{background:#fff7e6!important;color:#d97706!important;}
#empScreen #dt17EmpHomePro .dt17-eh-action[data-tone="slate"] .ico{background:#f1f5f9!important;color:#475569!important;}

#empScreen #dt17EmpHomePro .dt17-eh-tasks{
  padding:15px!important;
  border-radius:22px!important;
}
#empScreen #dt17EmpHomePro .dt17-eh-head{margin-bottom:9px!important;}
#empScreen #dt17EmpHomePro .dt17-eh-head b{
  font-family:'Space Grotesk','Noto Sans Devanagari',sans-serif!important;
  font-size:15px!important;font-weight:700!important;color:var(--dtp-ink,#171229)!important;
}
#empScreen #dt17EmpHomePro .dt17-eh-head button{
  padding:7px 11px!important;
  border:1px solid rgba(109,40,217,.12)!important;
  border-radius:999px!important;
  background:#f1eafe!important;
  color:var(--dtp-p,#6d28d9)!important;
  font-size:10px!important;font-weight:900!important;
}
#empScreen #dt17EmpHomePro .dt17-eh-task{
  gap:10px!important;
  margin-top:7px!important;
  padding:10px 11px!important;
  border:1px solid #eeeaf4!important;
  border-radius:15px!important;
  background:#fdfcff!important;
}
#empScreen #dt17EmpHomePro .dt17-eh-task:first-of-type{margin-top:0!important;}
#empScreen #dt17EmpHomePro .dt17-eh-task-dot{
  width:32px!important;height:32px!important;border-radius:11px!important;
  background:linear-gradient(145deg,#f4efff,#fff8e8)!important;
  box-shadow:inset 0 0 0 1px rgba(109,40,217,.07)!important;
}
#empScreen #dt17EmpHomePro .dt17-eh-task-title{font-size:12.3px!important;font-weight:900!important;color:var(--dtp-ink,#171229)!important;}
#empScreen #dt17EmpHomePro .dt17-eh-task-sub{font-size:10.2px!important;font-weight:700!important;color:#8b8497!important;}
#empScreen #dt17EmpHomePro .dt17-eh-task-actions{gap:6px!important;margin-top:7px!important;}
#empScreen #dt17EmpHomePro .dt17-eh-mini{height:27px!important;border-radius:999px!important;padding:0 10px!important;font-size:9.5px!important;font-weight:900!important;}
#empScreen #dt17EmpHomePro .dt17-eh-start{background:#eef5ff!important;color:#1d4ed8!important;}
#empScreen #dt17EmpHomePro .dt17-eh-done{background:#ecfdf5!important;color:#087458!important;}
#empScreen #dt17EmpHomePro .dt17-eh-undo{background:#f3f4f6!important;color:#4b5563!important;}
#empScreen #dt17EmpHomePro .dt17-eh-empty{padding:22px 8px!important;color:#8b8497!important;font-size:11px!important;font-weight:700!important;}

/* bottom attendance control — more legible, still thumb-reachable */
#empScreen.active > #dt17SimpleTopAtt.dt17-simple-top-att{
  max-width:610px!important;
  min-height:52px!important;
  padding:8px 10px!important;
  border-radius:18px!important;
  border:1px solid rgba(255,255,255,.12)!important;
  box-shadow:0 14px 28px -12px rgba(77,43,124,.58)!important;
}
#empScreen.active #dt17SimpleTopAtt .dt17-simple-top-att-left{gap:9px!important;min-width:0!important;}
#empScreen.active #dt17SimpleTopAtt .dt17-simple-top-att-icon{width:34px!important;height:34px!important;flex:0 0 34px!important;}
#empScreen.active #dt17SimpleTopAtt .dt17-simple-top-att-title{font-size:12px!important;}
#empScreen.active #dt17SimpleTopAtt .dt17-simple-top-att-sub{font-size:9px!important;max-width:260px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
#empScreen.active #dt17SimpleTopAtt .dt17-simple-top-att-btn{height:35px!important;min-width:88px!important;border-radius:12px!important;font-size:10.8px!important;}

@media(max-width:699px){
  #empScreen #dt17EmpHomePro{margin-top:6px!important;padding:0!important;}
  #empScreen #dt17EmpHomePro .dt17-eh-profile{min-height:74px!important;padding:12px 13px!important;gap:10px!important;}
  #empScreen #dt17EmpHomePro .dt17-eh-avatar{width:48px!important;height:48px!important;}
  #empScreen #dt17EmpHomePro .dt17-eh-name{font-size:15.5px!important;}
  #empScreen #dt17EmpHomePro .dt17-eh-meta{font-size:9.7px!important;}
  #empScreen #dt17EmpHomePro .dt17-eh-att{font-size:9.2px!important;padding:6px 8px 6px 19px!important;}
  #empScreen #dt17EmpHomePro .dt17-eh-att:before{left:8px;width:6px;height:6px;}
  #empScreen #dt17EmpHomePro .dt17-eh-stats{gap:7px!important;margin:8px 0!important;}
  #empScreen #dt17EmpHomePro .dt17-eh-stat{min-height:61px!important;padding:10px 4px 8px!important;border-radius:14px!important;}
  #empScreen #dt17EmpHomePro .dt17-eh-stat b{font-size:20px!important;}
  #empScreen #dt17EmpHomePro .dt17-eh-stat span{font-size:8.4px!important;}
  #empScreen #dt17EmpHomePro .dt17-eh-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important;}
  #empScreen #dt17EmpHomePro .dt17-eh-action{min-height:68px!important;border-radius:15px!important;padding:8px 4px!important;gap:5px!important;}
  #empScreen #dt17EmpHomePro .dt17-eh-action .ico{width:33px!important;height:33px!important;border-radius:11px!important;}
  #empScreen #dt17EmpHomePro .dt17-eh-action .ico svg{width:17px!important;height:17px!important;}
  #empScreen #dt17EmpHomePro .dt17-eh-action .lbl{font-size:9.4px!important;}
  #empScreen #dt17EmpHomePro .dt17-eh-tasks{padding:12px!important;}
  #empScreen.active > #dt17SimpleTopAtt.dt17-simple-top-att{left:7px!important;right:7px!important;max-width:520px!important;padding:7px 8px!important;}
  #empScreen.active #dt17SimpleTopAtt .dt17-simple-top-att-sub{max-width:145px!important;}
}
@media(max-width:370px){
  #empScreen #dt17EmpHomePro .dt17-eh-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  #empScreen #dt17EmpHomePro .dt17-eh-profile{flex-wrap:wrap!important;}
  #empScreen #dt17EmpHomePro .dt17-eh-att{margin-left:58px!important;margin-top:-8px!important;}
  #empScreen #dt17EmpHomePro .dt17-eh-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
