
/* =========================================================
   EMPLOYEE HOME — PROFESSIONAL SIZE SYSTEM (FINAL)
   Visual-only sizing patch. No attendance/task/backend logic changed.
   ========================================================= */

/* ---------- TOP BAR ---------- */
#empScreen > header.topnav{
  height:60px!important;
  min-height:60px!important;
  width:calc(100% - 24px)!important;
  max-width:none!important;
  margin:8px 12px 0!important;
  padding:0 14px!important;
  border-radius:18px!important;
  gap:10px!important;
}
#empScreen > header.topnav .topnav-logo{
  width:38px!important;
  height:38px!important;
  min-width:38px!important;
  min-height:38px!important;
  border-radius:12px!important;
}
#empScreen > header.topnav .topnav-info h1{
  font-size:18px!important;
  line-height:1.05!important;
  font-weight:900!important;
}
#empScreen > header.topnav .topnav-info p{
  font-size:10px!important;
  line-height:1.15!important;
  margin-top:3px!important;
}
#empScreen > header.topnav .topnav-right{gap:7px!important;}
#empScreen > header.topnav .icon-btn{
  width:36px!important;
  height:36px!important;
  min-width:36px!important;
  min-height:36px!important;
  border-radius:11px!important;
}
#empScreen > header.topnav .icon-btn svg{width:18px!important;height:18px!important;}
#empScreen > header.topnav .user-av{
  width:40px!important;
  height:40px!important;
  min-width:40px!important;
  min-height:40px!important;
  font-size:12px!important;
}
#empScreen > header.topnav .user-av img{
  width:100%!important;height:100%!important;object-fit:cover!important;border-radius:50%!important;
}

/* ---------- MAIN CONTENT ---------- */
#empScreen:not(.page-open) main.page{
  width:100%!important;
  max-width:1080px!important;
  margin:12px auto 0!important;
  padding-left:12px!important;
  padding-right:12px!important;
}
#empScreen #dt17EmpHomePro{
  width:100%!important;
  max-width:1080px!important;
  margin:0 auto 14px!important;
}

/* ---------- EMPLOYEE PROFILE ---------- */
#empScreen #dt17EmpHomePro .dt17-eh-profile{
  min-height:78px!important;
  padding:12px 16px!important;
  gap:12px!important;
  border-radius:20px!important;
}
#empScreen #dt17EmpHomePro .dt17-eh-avatar{
  width:48px!important;
  height:48px!important;
  min-width:48px!important;
  min-height:48px!important;
}
#empScreen #dt17EmpHomePro .dt17-eh-name{font-size:16px!important;}
#empScreen #dt17EmpHomePro .dt17-eh-meta{font-size:10px!important;}
#empScreen #dt17EmpHomePro .dt17-eh-att{
  min-height:30px!important;
  padding:6px 10px 6px 21px!important;
  font-size:10px!important;
  display:inline-flex!important;
  align-items:center!important;
}

/* ---------- SUMMARY ---------- */
#empScreen #dt17EmpHomePro .dt17-eh-stats{
  gap:10px!important;
  margin:10px 0 12px!important;
}
#empScreen #dt17EmpHomePro .dt17-eh-stat{
  min-height:72px!important;
  height:72px!important;
  padding:10px 7px 8px!important;
  border-radius:16px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
}
#empScreen #dt17EmpHomePro .dt17-eh-stat b{
  font-size:24px!important;
  line-height:1!important;
}
#empScreen #dt17EmpHomePro .dt17-eh-stat span{
  font-size:9px!important;
  margin-top:5px!important;
}

/* ---------- TODAY TASK CARD ---------- */
#empScreen #dt17EmpHomePro .dt17-eh-tasks{
  min-height:150px!important;
  padding:15px 16px!important;
  border-radius:20px!important;
  margin-bottom:12px!important;
}

/* ---------- ACTION BUTTONS ---------- */
#empScreen #dt17EmpHomePro .dt17-eh-actions{
  width:100%!important;
  grid-template-columns:repeat(4,150px)!important;
  justify-content:center!important;
  align-items:stretch!important;
  gap:12px!important;
  margin:0 auto 12px!important;
}
#empScreen #dt17EmpHomePro .dt17-eh-action{
  width:150px!important;
  height:68px!important;
  min-height:68px!important;
  max-height:68px!important;
  padding:7px 6px!important;
  gap:5px!important;
  border-radius:15px!important;
}
#empScreen #dt17EmpHomePro .dt17-eh-action .ico{
  width:36px!important;
  height:36px!important;
  min-width:36px!important;
  min-height:36px!important;
  border-radius:11px!important;
}
#empScreen #dt17EmpHomePro .dt17-eh-action .ico svg{
  width:20px!important;
  height:20px!important;
}
#empScreen #dt17EmpHomePro .dt17-eh-action .lbl{
  font-size:11px!important;
  line-height:1.1!important;
  white-space:nowrap!important;
}

/* ---------- BOTTOM IN / OUT BAR ---------- */
#empScreen.active > #dt17SimpleTopAtt.dt17-simple-top-att{
  position:fixed!important;
  top:auto!important;
  bottom:14px!important;
  left:50%!important;
  right:auto!important;
  transform:translateX(-50%)!important;
  width:620px!important;
  max-width:calc(100% - 28px)!important;
  height:52px!important;
  min-height:52px!important;
  margin:0!important;
  padding:7px 10px!important;
  border-radius:16px!important;
  z-index:11500!important;
  box-sizing:border-box!important;
}
#empScreen.active #dt17SimpleTopAtt .dt17-simple-top-att-left{
  gap:9px!important;
  min-width:0!important;
  height:100%!important;
  align-items:center!important;
}
#empScreen.active #dt17SimpleTopAtt .dt17-simple-top-att-icon{
  width:36px!important;
  height:36px!important;
  min-width:36px!important;
  min-height:36px!important;
  flex:0 0 36px!important;
}
#empScreen.active #dt17SimpleTopAtt .dt17-simple-top-att-title{
  font-size:12px!important;
  line-height:1.1!important;
}
#empScreen.active #dt17SimpleTopAtt .dt17-simple-top-att-sub{
  font-size:9px!important;
  line-height:1.1!important;
  max-width:285px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
#empScreen.active #dt17SimpleTopAtt .dt17-simple-top-att-mini{
  font-size:9px!important;
  padding:3px 7px!important;
  border-radius:999px!important;
}
#empScreen.active #dt17SimpleTopAtt .dt17-simple-top-att-btn{
  width:110px!important;
  min-width:110px!important;
  height:38px!important;
  min-height:38px!important;
  border-radius:12px!important;
  font-size:11px!important;
  padding:0 12px!important;
}
#empScreen.active main.page{
  padding-bottom:88px!important;
}

/* ---------- MOBILE ---------- */
@media(max-width:699px){
  #empScreen > header.topnav{
    height:56px!important;
    min-height:56px!important;
    width:calc(100% - 12px)!important;
    margin:6px 6px 0!important;
    padding:0 10px!important;
    border-radius:16px!important;
  }
  #empScreen > header.topnav .topnav-logo{
    width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;border-radius:11px!important;
  }
  #empScreen > header.topnav .topnav-info h1{font-size:16px!important;}
  #empScreen > header.topnav .topnav-info p{font-size:9px!important;margin-top:2px!important;}
  #empScreen > header.topnav .icon-btn{
    width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;border-radius:10px!important;
  }
  #empScreen > header.topnav .icon-btn svg{width:17px!important;height:17px!important;}
  #empScreen > header.topnav .user-av{
    width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;
  }

  #empScreen:not(.page-open) main.page{
    max-width:none!important;
    margin-top:8px!important;
    padding-left:10px!important;
    padding-right:10px!important;
  }
  #empScreen #dt17EmpHomePro .dt17-eh-profile{
    min-height:72px!important;
    padding:10px 12px!important;
    border-radius:17px!important;
  }
  #empScreen #dt17EmpHomePro .dt17-eh-avatar{
    width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;
  }
  #empScreen #dt17EmpHomePro .dt17-eh-name{font-size:15px!important;}
  #empScreen #dt17EmpHomePro .dt17-eh-meta{font-size:9px!important;}
  #empScreen #dt17EmpHomePro .dt17-eh-att{font-size:9px!important;min-height:28px!important;padding:5px 8px 5px 18px!important;}

  #empScreen #dt17EmpHomePro .dt17-eh-stats{gap:7px!important;margin:8px 0 10px!important;}
  #empScreen #dt17EmpHomePro .dt17-eh-stat{
    min-height:60px!important;height:60px!important;padding:7px 3px!important;border-radius:14px!important;
  }
  #empScreen #dt17EmpHomePro .dt17-eh-stat b{font-size:20px!important;}
  #empScreen #dt17EmpHomePro .dt17-eh-stat span{font-size:8px!important;margin-top:4px!important;}

  #empScreen #dt17EmpHomePro .dt17-eh-tasks{
    min-height:0!important;
    padding:12px!important;
    border-radius:17px!important;
    margin-bottom:10px!important;
  }

  #empScreen #dt17EmpHomePro .dt17-eh-actions{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:8px!important;
    margin-bottom:10px!important;
  }
  #empScreen #dt17EmpHomePro .dt17-eh-action{
    width:100%!important;
    height:64px!important;
    min-height:64px!important;
    max-height:64px!important;
    padding:6px 3px!important;
    border-radius:13px!important;
  }
  #empScreen #dt17EmpHomePro .dt17-eh-action .ico{
    width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;border-radius:10px!important;
  }
  #empScreen #dt17EmpHomePro .dt17-eh-action .ico svg{width:18px!important;height:18px!important;}
  #empScreen #dt17EmpHomePro .dt17-eh-action .lbl{font-size:9px!important;}

  #empScreen.active > #dt17SimpleTopAtt.dt17-simple-top-att{
    bottom:8px!important;
    width:calc(100% - 20px)!important;
    max-width:none!important;
    height:52px!important;
    min-height:52px!important;
    padding:7px 8px!important;
    border-radius:16px!important;
  }
  #empScreen.active #dt17SimpleTopAtt .dt17-simple-top-att-icon{
    width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;flex-basis:34px!important;
  }
  #empScreen.active #dt17SimpleTopAtt .dt17-simple-top-att-title{font-size:11px!important;}
  #empScreen.active #dt17SimpleTopAtt .dt17-simple-top-att-sub{font-size:8px!important;max-width:145px!important;}
  #empScreen.active #dt17SimpleTopAtt .dt17-simple-top-att-btn{
    width:100px!important;min-width:100px!important;height:38px!important;min-height:38px!important;font-size:10.5px!important;
  }
  #empScreen.active main.page{padding-bottom:78px!important;}
}

@media(max-width:380px){
  #empScreen #dt17EmpHomePro .dt17-eh-actions{gap:6px!important;}
  #empScreen #dt17EmpHomePro .dt17-eh-action .lbl{font-size:8px!important;}
  #empScreen.active #dt17SimpleTopAtt .dt17-simple-top-att-sub{max-width:105px!important;}
  #empScreen.active #dt17SimpleTopAtt .dt17-simple-top-att-btn{width:92px!important;min-width:92px!important;}
}
