
:root{--dt17-gold-bottom-h:72px;}
#dt17GoldBottomNav{
  position:fixed!important;
  left:10px!important;right:10px!important;bottom:10px!important;
  z-index:12000!important;
  height:calc(var(--dt17-gold-bottom-h) + env(safe-area-inset-bottom))!important;
  padding:8px 9px calc(8px + env(safe-area-inset-bottom))!important;
  border-radius:24px!important;
  background:linear-gradient(180deg,#00A884 0%,#008069 54%,#005C4B 100%)!important;
  border:1px solid rgba(255,255,255,.18)!important;
  box-shadow:0 15px 30px rgba(0,92,75,.32), inset 0 1px 0 rgba(255,255,255,.20)!important;
  display:none!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  align-items:center!important;
  gap:2px!important;
  font-family:var(--font,'Noto Sans Devanagari',system-ui,sans-serif)!important;
}
body.dt17-bottom-nav-ready #dt17GoldBottomNav{display:grid!important;}
body.dt17-bottom-nav-ready .bottom-nav:not(#dt17GoldBottomNav){display:none!important;}
#dt17GoldBottomNav .dt17-gold-item{
  appearance:none!important;-webkit-appearance:none!important;
  border:0!important;background:transparent!important;
  min-width:0!important;min-height:52px!important;
  padding:4px 1px!important;margin:0!important;
  color:rgba(255,255,255,.72)!important;
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
  gap:3px!important;cursor:pointer!important;
  font-family:inherit!important;font-weight:900!important;font-size:8.7px!important;line-height:1.05!important;
  text-align:center!important;letter-spacing:.01em!important;
  transition:transform .15s ease,color .15s ease,background .15s ease!important;
  border-radius:16px!important;
}
#dt17GoldBottomNav .dt17-gold-item:active{transform:scale(.94)!important;background:rgba(255,255,255,.10)!important;}
#dt17GoldBottomNav .dt17-gold-ico{
  width:29px!important;height:29px!important;border-radius:14px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  color:currentColor!important;position:relative!important;
  background:rgba(255,255,255,.10)!important;
  border:1px solid rgba(255,255,255,.08)!important;
}
#dt17GoldBottomNav .dt17-gold-ico svg{width:21px!important;height:21px!important;fill:none!important;stroke:currentColor!important;stroke-width:2.35!important;stroke-linecap:round!important;stroke-linejoin:round!important;}
#dt17GoldBottomNav .dt17-gold-label{display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:100%!important;}
#dt17GoldBottomNav .dt17-gold-item.active{color:#FFFFFF!important;text-shadow:0 0 12px rgba(255,255,255,.25)!important;}
#dt17GoldBottomNav .dt17-gold-item.active .dt17-gold-ico{background:#D9FDD3!important;color:#005C4B!important;border-color:rgba(255,255,255,.45)!important;box-shadow:0 5px 16px rgba(217,253,211,.26)!important;}
#dt17GoldBottomNav .dt17-gold-item.profile .dt17-gold-ico{
  width:50px!important;height:50px!important;margin-top:-22px!important;
  border-radius:50%!important;
  background:linear-gradient(135deg,#ffffff 0%,#D9FDD3 48%,#25D366 100%)!important;
  border:3px solid #005C4B!important;
  color:#005C4B!important;
  box-shadow:0 8px 22px rgba(37,211,102,.38),0 0 0 3px rgba(255,255,255,.16)!important;
  overflow:hidden!important;
  font-size:17px!important;font-weight:1000!important;
}
#dt17GoldBottomNav .dt17-gold-item.profile.active .dt17-gold-ico{background:linear-gradient(135deg,#ffffff 0%,#D9FDD3 45%,#25D366 100%)!important;color:#005C4B!important;}
#dt17GoldBottomNav .dt17-gold-item.profile .dt17-gold-ico img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important;}
#dt17GoldBottomNav .dt17-gold-item.profile .dt17-gold-ico svg{width:25px!important;height:25px!important;stroke-width:2.5!important;}
#dt17GoldBottomNav .dt17-gold-item.profile .dt17-gold-label{margin-top:-1px!important;color:inherit!important;}
#dt17GoldBottomNav .dt17-gold-item.group .dt17-gold-ico:after,
#dt17GoldBottomNav .dt17-gold-item.rank .dt17-gold-ico:after,
#dt17GoldBottomNav .dt17-gold-item.home .dt17-gold-ico:after,
#dt17GoldBottomNav .dt17-gold-item.attendance .dt17-gold-ico:after{
  content:"";position:absolute;inset:auto 3px -4px 3px;height:2px;border-radius:999px;background:currentColor;opacity:0;transition:.15s ease;
}
#dt17GoldBottomNav .dt17-gold-item.active .dt17-gold-ico:after{opacity:.85!important;}

/* Bottom nav is primary now; old Facebook/top tabs stay hidden to avoid duplicate navigation */
#adminScreen .dt17-fb-tabs-wrap,#empScreen .dt17-fb-tabs-wrap,#mgrScreen .dt17-fb-tabs-wrap{display:none!important;visibility:hidden!important;height:0!important;min-height:0!important;overflow:hidden!important;}
body.dt17-bottom-nav-ready .screen.active>main.page{padding-bottom:calc(var(--dt17-gold-bottom-h) + env(safe-area-inset-bottom) + 14px)!important;}
body.dt17-bottom-nav-ready .toast{bottom:calc(var(--dt17-gold-bottom-h) + 18px + env(safe-area-inset-bottom))!important;}

/* HOME = only home/dashboard/actions. Profile, attendance and leaderboard cards are separate tabs. */
body.dt17-bottom-tab-home .screen.active .dt17-social-card.dt17-fbprof-card,
body.dt17-bottom-tab-home .screen.active .dt17-fbprof-details,
body.dt17-bottom-tab-home .screen.active .dt17-social-card.dt17-full-button-card,
body.dt17-bottom-tab-home .screen.active #photoSection{display:none!important;}
body.dt17-bottom-tab-home .screen.active .dt17-social-card.dt17-home-actions-card{display:block!important;}
body.dt17-bottom-tab-home .screen.active #dashboard{display:grid!important;}
body.dt17-bottom-tab-home .screen.active .dt17-simple-top-att{display:flex!important;}
body.dt17-bottom-tab-home #adminSelfAttPanel,
body.dt17-bottom-tab-home #mgrSelfAttPanel{display:none!important;}
body.dt17-bottom-tab-home #empScreen.active #attSection{display:none!important;}

/* PROFILE = profile card only. */
body.dt17-bottom-tab-profile .screen.active .dt17-social-card.dt17-fbprof-card{display:block!important;}
body.dt17-bottom-tab-profile .screen.active .dt17-fbprof-details{display:block!important;}
body.dt17-bottom-tab-profile .screen.active #photoSection{display:flex!important;}
body.dt17-bottom-tab-profile .screen.active .dt17-social-card.dt17-home-actions-card,
body.dt17-bottom-tab-profile .screen.active .dt17-social-card.dt17-full-button-card,
body.dt17-bottom-tab-profile .screen.active #dashboard,
body.dt17-bottom-tab-profile .screen.active .dt17-simple-top-att,
body.dt17-bottom-tab-profile .screen.active #dt17SimpleTopAtt.dt17-simple-top-att,
body.dt17-bottom-tab-profile #adminSelfAttPanel,
body.dt17-bottom-tab-profile #mgrSelfAttPanel,
body.dt17-bottom-tab-profile #empScreen.active #attSection{display:none!important;}
body.dt17-bottom-tab-profile .screen.active .dt17-social-home{max-width:680px!important;margin-top:6px!important;}
body.dt17-bottom-tab-profile .screen.active>main.page{padding-top:4px!important;}

/* माझी हजेरी = फक्त self attendance panel. */
body.dt17-bottom-tab-attendance #adminScreen.active main.page > *:not(#adminSelfAttPanel),
body.dt17-bottom-tab-attendance #empScreen.active main.page > *:not(#attSection),
body.dt17-bottom-tab-attendance #mgrScreen.active main.page > *:not(#mgrSelfAttPanel){display:none!important;}
body.dt17-bottom-tab-attendance #adminSelfAttPanel,
body.dt17-bottom-tab-attendance #empScreen.active #attSection,
body.dt17-bottom-tab-attendance #mgrSelfAttPanel{display:block!important;margin-top:10px!important;}
body.dt17-bottom-tab-attendance #adminSelfAttPanel.panel.collapsed .panel-body,
body.dt17-bottom-tab-attendance #empScreen.active #attSection.panel.collapsed .panel-body,
body.dt17-bottom-tab-attendance #mgrSelfAttPanel.panel.collapsed .panel-body{display:block!important;}
body.dt17-bottom-tab-attendance #adminSelfAttPanel .panel-body,
body.dt17-bottom-tab-attendance #empScreen.active #attSection .panel-body,
body.dt17-bottom-tab-attendance #mgrSelfAttPanel .panel-body{display:block!important;}
body.dt17-bottom-tab-attendance .screen.active .dt17-simple-top-att,
body.dt17-bottom-tab-attendance .screen.active #dt17SimpleTopAtt.dt17-simple-top-att,
body.dt17-bottom-tab-group .screen.active .dt17-simple-top-att,
body.dt17-bottom-tab-group .screen.active #dt17SimpleTopAtt.dt17-simple-top-att,
body.dt17-bottom-tab-rank .screen.active .dt17-simple-top-att,
body.dt17-bottom-tab-rank .screen.active #dt17SimpleTopAtt.dt17-simple-top-att{display:none!important;}

/* Keep floating screens from painting a black page after tab switch */


body.dt17-bottom-tab-attendance #groupScreen{display:none!important;}

/* Keep content above custom nav */
body.dt17-bottom-nav-ready .modal-sheet{padding-bottom:calc(20px + env(safe-area-inset-bottom))!important;}
@media(min-width:700px){
  #dt17GoldBottomNav{left:50%!important;right:auto!important;bottom:14px!important;transform:translateX(-50%)!important;width:min(520px,calc(100% - 32px))!important;border-radius:28px!important;}
}
@media(max-width:380px){
  #dt17GoldBottomNav{left:6px!important;right:6px!important;padding-left:5px!important;padding-right:5px!important;}
  #dt17GoldBottomNav .dt17-gold-item{font-size:7.7px!important;}
  #dt17GoldBottomNav .dt17-gold-item.profile .dt17-gold-ico{width:46px!important;height:46px!important;margin-top:-19px!important;}
  #dt17GoldBottomNav .dt17-gold-ico{width:25px!important;height:25px!important;}
  #dt17GoldBottomNav .dt17-gold-ico svg{width:19px!important;height:19px!important;}
}
