
:root{
  --blue:#103BFF;
  --blue-dark:#0B1B78;
  --yellow:#F7F108;
  --green:#12B76A;
  --red:#E5484D;
  --amber:#F2B705;
  --ink:#101828;
  --muted:#667085;
  --line:#E4E7EC;
  --bg:#F4F7FF;
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:var(--bg);
  color:var(--ink);
}
button,input{font:inherit}
button{cursor:pointer}
.app-shell{
  width:min(100%,760px);
  min-height:100vh;
  margin:auto;
  padding:20px 16px 34px;
}
.brand-bar{
  display:flex;
  align-items:center;
  gap:13px;
  margin-bottom:17px;
}
.logo{
  width:62px;height:62px;border-radius:50%;object-fit:cover;
  box-shadow:0 10px 28px rgba(16,59,255,.2)
}
.eyebrow{
  font-size:11px;
  font-weight:900;
  letter-spacing:.12em;
  color:var(--blue)
}
h1{margin:3px 0 0;font-size:28px}
.user-badge{
  margin-left:auto;
  background:white;
  border:1px solid #D7DEEE;
  border-radius:14px;
  padding:9px 12px;
  font-size:12px;
  font-weight:800;
  color:var(--blue-dark)
}
.event-card,.scan-card,.manual-card,.result-card,.login-card,.panel{
  background:white;
  border:1px solid var(--line);
  border-radius:22px;
  padding:18px;
  box-shadow:0 10px 30px rgba(34,48,86,.07)
}
.login-card{
  max-width:460px;
  margin:45px auto
}
.login-card h2{
  font-size:28px;
  margin:6px 0
}
.login-card p{
  color:var(--muted);
  margin-top:0
}
.login-card label,.manual-card label,.panel label{
  display:block;
  font-size:13px;
  font-weight:800;
  margin:10px 0 6px
}
.login-card input,.manual-card input,.panel input{
  width:100%;
  padding:13px 14px;
  border:1px solid #D0D5DD;
  border-radius:13px;
  background:#FCFCFD;
  outline:none
}
.primary,.secondary,.yellow{
  border:0;
  border-radius:14px;
  font-weight:900;
  padding:14px 18px
}
.primary{background:var(--blue);color:white}
.secondary{background:#EEF2FF;color:var(--blue)}
.yellow{background:var(--yellow);color:#101828}
.full{width:100%}
.login-card .primary{margin-top:16px}
.message{
  margin-top:12px;
  padding:12px;
  border-radius:12px;
  background:#ECFDF3;
  color:#067647;
  font-weight:700
}
.message.error{
  background:#FEF3F2;
  color:#B42318
}
.top-actions{
  display:flex;
  justify-content:flex-end;
  margin-bottom:10px
}
.event-card{margin-bottom:14px}
.event-label{
  font-size:11px;
  font-weight:900;
  color:var(--blue);
  letter-spacing:.1em
}
.event-card h2{margin:6px 0}
.event-meta{
  color:var(--muted);
  font-size:14px
}
.scan-frame{
  min-height:250px;
  border:2px dashed #B9C5FF;
  border-radius:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#F7F9FF;
  margin-bottom:12px
}
.scan-frame:empty:after{
  content:"QR scanner";
  color:#7E8CC2;
  font-weight:800
}
.hint{
  text-align:center;
  color:var(--muted);
  font-size:13px;
  margin:10px 0 0
}
.divider{
  display:flex;
  align-items:center;
  gap:12px;
  color:#98A1B2;
  margin:16px 0
}
.divider:before,.divider:after{
  content:"";
  height:1px;
  background:#DDE3EF;
  flex:1
}
.manual-row{
  display:flex;
  gap:10px
}
.result-card{
  text-align:center;
  margin-top:16px
}
.result-icon{
  width:68px;
  height:68px;
  border-radius:50%;
  margin:0 auto 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--green);
  color:white;
  font-size:32px;
  font-weight:900
}
.result-card.warning .result-icon{
  background:var(--amber);
  color:#5F4600
}
.result-card.error .result-icon{
  background:var(--red)
}
.result-card h2{
  color:var(--blue-dark);
  margin:5px 0
}
.result-card h3{
  font-size:26px;
  margin:8px 0
}
.result-card p{
  color:var(--muted)
}
.result-time{
  font-weight:900;
  margin-top:10px
}
.checked-by{
  margin-top:6px;
  color:var(--muted);
  font-size:13px
}
.admin-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px
}
.admin-head h2{
  margin:3px 0 0;
  font-size:28px
}
.create-btn{margin-bottom:14px}
.event-list{display:grid;gap:10px}
.event-row{
  background:white;
  border:1px solid var(--line);
  border-radius:18px;
  padding:16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  box-shadow:0 8px 24px rgba(34,48,86,.05)
}
.event-row h3{
  margin:0 0 5px;
  font-size:18px
}
.badge{
  display:inline-flex;
  padding:6px 9px;
  border-radius:999px;
  font-size:11px;
  font-weight:900
}
.badge.weekly{
  background:#E9F9F1;
  color:#087A43
}
.badge.special{
  background:#FFF8D9;
  color:#7A5D00
}
.badge.open{
  background:#E8EEFF;
  color:var(--blue)
}
.panel{margin-top:16px}
.grid2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px
}
.actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:16px
}
.empty{
  background:white;
  border:1px dashed #CBD5E1;
  border-radius:16px;
  padding:24px;
  text-align:center;
  color:var(--muted)
}
.hidden{display:none!important}
footer{
  text-align:center;
  color:#98A1B2;
  font-size:12px;
  margin-top:22px
}
@media(max-width:620px){
  .app-shell{padding:15px}
  h1{font-size:24px}
  .manual-row{align-items:stretch}
  .grid2{grid-template-columns:1fr}
  .event-row{
    flex-direction:column;
    align-items:flex-start
  }
}

.admin-tabs{
  display:flex;
  gap:8px;
  background:white;
  padding:7px;
  border-radius:16px;
  margin-bottom:16px;
  box-shadow:0 8px 24px rgba(34,48,86,.06)
}
.admin-tab{
  flex:1;
  border:0;
  border-radius:12px;
  padding:11px 14px;
  background:transparent;
  color:var(--muted);
  font-weight:900
}
.admin-tab.active{
  background:var(--blue);
  color:white
}
.panel select{
  width:100%;
  padding:13px 14px;
  border:1px solid #D0D5DD;
  border-radius:13px;
  background:#FCFCFD;
  outline:none
}
.user-row{
  background:white;
  border:1px solid var(--line);
  border-radius:18px;
  padding:16px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  box-shadow:0 8px 24px rgba(34,48,86,.05)
}
.user-row h3{
  margin:0 0 4px;
  font-size:18px
}
.user-actions{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  justify-content:flex-end
}
.small-btn{
  border:0;
  border-radius:10px;
  padding:8px 10px;
  background:#EEF2FF;
  color:var(--blue);
  font-weight:800;
  font-size:12px
}
.small-btn.danger{
  background:#FEF3F2;
  color:#B42318
}
.small-btn.success{
  background:#ECFDF3;
  color:#067647
}
.subtle{
  color:var(--muted);
  font-size:13px;
  margin-bottom:8px
}
.badge.inactive{
  background:#F2F4F7;
  color:#667085
}
@media(max-width:620px){
  .user-row{
    flex-direction:column
  }
  .user-actions{
    justify-content:flex-start
  }
}

.section-toolbar{
  display:flex;
  gap:10px;
  margin-bottom:14px
}
.search-input{
  flex:1;
  padding:13px 14px;
  border:1px solid #D0D5DD;
  border-radius:13px;
  background:#fff;
  outline:none
}
.child-row{
  background:white;
  border:1px solid var(--line);
  border-radius:18px;
  padding:16px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  box-shadow:0 8px 24px rgba(34,48,86,.05)
}
.child-row h3{
  margin:0 0 4px;
  font-size:18px
}
.child-actions{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  justify-content:flex-end
}
.panel textarea{
  width:100%;
  padding:13px 14px;
  border:1px solid #D0D5DD;
  border-radius:13px;
  background:#FCFCFD;
  outline:none;
  resize:vertical;
  font:inherit
}
.qr-box{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:260px;
  margin:16px 0;
  background:#fff;
  border:1px dashed #CBD5E1;
  border-radius:16px
}
@media(max-width:620px){
  .section-toolbar{
    flex-direction:column
  }
  .child-row{
    flex-direction:column
  }
  .child-actions{
    justify-content:flex-start
  }
}

.child-secondary{
  margin-top:6px;
  color:#667085;
  font-size:13px
}

.profile-head,.section-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px
}
.profile-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:14px
}
.profile-item{
  background:#F8FAFF;
  border:1px solid #E4EAF7;
  border-radius:14px;
  padding:12px
}
.profile-item.wide{
  grid-column:1 / -1
}
.profile-item span{
  display:block;
  color:#667085;
  font-size:11px;
  font-weight:800;
  margin-bottom:4px;
  text-transform:uppercase;
  letter-spacing:.05em
}
.profile-item strong{
  font-size:14px
}
.profile-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:14px
}
.attendance-history{
  margin-top:22px
}
.attendance-history h3{
  margin:0
}
.history-list{
  display:grid;
  gap:8px;
  margin-top:10px
}
.history-row{
  border:1px solid #E4E7EC;
  border-radius:14px;
  padding:12px;
  background:#fff
}
.history-row strong{
  display:block;
  margin-bottom:4px
}
.history-meta{
  color:#667085;
  font-size:12px
}
.qr-close{
  margin-top:8px
}
.print-area{
  display:none
}
@media(max-width:620px){
  .profile-grid{
    grid-template-columns:1fr
  }
  .profile-item.wide{
    grid-column:auto
  }
}
@media print{
  body *{
    visibility:hidden!important
  }
  #printArea,
  #printArea *{
    visibility:visible!important
  }
  #printArea{
    display:block!important;
    position:absolute;
    left:0;
    top:0;
    width:100%;
    padding:20mm
  }
  .name-tag-card{
    width:90mm;
    height:120mm;
    margin:0 auto;
    border:1px solid #ddd;
    border-radius:8mm;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding:10mm;
    background:#fff
  }
  .print-logo{
    width:24mm;
    height:24mm;
    border-radius:50%;
    object-fit:cover;
    margin-bottom:7mm
  }
  .print-name{
    font-size:22pt;
    font-weight:900;
    margin-bottom:3mm
  }
  .print-id{
    font-size:12pt;
    font-weight:800;
    margin-bottom:6mm
  }
  .print-qr{
    width:42mm;
    height:42mm
  }
}

.modal{
  position:fixed;
  inset:0;
  z-index:9999;
  background:rgba(15,23,42,.42);
  backdrop-filter:blur(4px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  overflow:auto
}
.modal.hidden{
  display:none!important
}
.modal-card{
  width:min(100%,680px);
  max-height:90vh;
  overflow:auto;
  margin:auto
}
.qr-modal-card{
  width:min(100%,420px)
}
body.modal-open{
  overflow:hidden
}

.stats-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
  margin-bottom:14px
}
.stat-card,.dashboard-card{
  background:white;
  border:1px solid var(--line);
  border-radius:18px;
  padding:18px;
  box-shadow:0 8px 24px rgba(34,48,86,.05)
}
.stat-card span{
  display:block;
  color:#667085;
  font-size:11px;
  font-weight:900;
  letter-spacing:.08em
}
.stat-card strong{
  display:block;
  margin-top:6px;
  font-size:34px;
  color:var(--blue-dark)
}
.dashboard-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px
}
.dashboard-card h3{
  margin:7px 0 5px
}
.dashboard-card p{
  margin:0;
  color:#667085;
  font-size:13px
}
.quick-actions{
  display:flex;
  gap:9px;
  flex-wrap:wrap;
  margin:14px 0
}
.quick-action{
  flex:1;
  min-width:140px
}
.recent-card{
  margin-top:8px
}
@media(max-width:620px){
  .stats-grid,.dashboard-grid{
    grid-template-columns:1fr
  }
}

.attendance-toolbar{
  display:grid;
  grid-template-columns:2fr 1fr 1fr auto;
  gap:10px;
  margin-bottom:14px
}
.attendance-toolbar select,
.attendance-toolbar input{
  width:100%;
  padding:13px 14px;
  border:1px solid #D0D5DD;
  border-radius:13px;
  background:white;
  outline:none
}
.attendance-summary{
  display:flex;
  justify-content:flex-end;
  margin-bottom:10px
}
.attendance-summary div{
  background:white;
  border:1px solid var(--line);
  border-radius:14px;
  padding:10px 14px;
  min-width:110px;
  text-align:center
}
.attendance-summary span{
  display:block;
  color:#667085;
  font-size:10px;
  font-weight:900;
  letter-spacing:.08em
}
.attendance-summary strong{
  display:block;
  margin-top:4px;
  font-size:24px;
  color:var(--blue-dark)
}
.attendance-list{
  display:grid;
  gap:9px
}
.attendance-row{
  background:white;
  border:1px solid var(--line);
  border-radius:16px;
  padding:14px 16px;
  display:grid;
  grid-template-columns:1.4fr 1.2fr 1fr;
  gap:12px;
  align-items:center;
  box-shadow:0 8px 24px rgba(34,48,86,.04)
}
.attendance-row h3{
  margin:0 0 4px;
  font-size:17px
}
.attendance-meta{
  color:#667085;
  font-size:12px
}
.attendance-right{
  text-align:right
}
.method-badge{
  display:inline-flex;
  padding:5px 8px;
  border-radius:999px;
  background:#EEF2FF;
  color:var(--blue);
  font-size:11px;
  font-weight:900
}
@media(max-width:760px){
  .attendance-toolbar{
    grid-template-columns:1fr
  }
  .attendance-row{
    grid-template-columns:1fr
  }
  .attendance-right{
    text-align:left
  }
}

.reports-summary-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin-bottom:14px
}
.stat-card small{
  display:block;
  margin-top:4px;
  color:#667085
}
.report-card{
  background:white;
  border:1px solid var(--line);
  border-radius:18px;
  padding:18px;
  box-shadow:0 8px 24px rgba(34,48,86,.05);
  margin-bottom:14px
}
.report-card h3{
  margin:0
}
.bar-list{
  display:grid;
  gap:10px;
  margin-top:14px
}
.bar-row{
  display:grid;
  grid-template-columns:110px 1fr 60px;
  gap:10px;
  align-items:center
}
.bar-label{
  color:#475467;
  font-size:12px;
  font-weight:800
}
.bar-track{
  height:12px;
  background:#EEF2FF;
  border-radius:999px;
  overflow:hidden
}
.bar-fill{
  height:100%;
  background:var(--blue);
  border-radius:999px
}
.bar-value{
  text-align:right;
  font-weight:900;
  color:var(--blue-dark)
}
.report-table{
  display:grid;
  gap:8px;
  margin-top:14px
}
.report-row{
  display:grid;
  grid-template-columns:1.5fr 1fr 100px;
  gap:10px;
  align-items:center;
  padding:11px 12px;
  border:1px solid #E4E7EC;
  border-radius:13px;
  background:#fff
}
.report-row strong{
  font-size:14px
}
.report-row span{
  color:#667085;
  font-size:12px
}
.report-row .metric{
  text-align:right;
  color:var(--blue-dark);
  font-weight:900
}
@media(max-width:760px){
  .reports-summary-grid{
    grid-template-columns:1fr
  }
  .bar-row{
    grid-template-columns:90px 1fr 50px
  }
  .report-row{
    grid-template-columns:1fr
  }
  .report-row .metric{
    text-align:left
  }
}

.followup-actions{
  display:flex;
  gap:6px;
  justify-content:flex-end;
  flex-wrap:wrap
}
@media(max-width:760px){
  .followup-actions{
    justify-content:flex-start
  }
}

.followup-select{
  min-width:165px;
  padding:10px 12px;
  border:1px solid #D0D5DD;
  border-radius:12px;
  background:white;
  color:#101828;
  font-weight:800;
  outline:none
}
.nextgen-toast{
  position:fixed;
  left:50%;
  bottom:28px;
  transform:translate(-50%,20px);
  z-index:12000;
  background:#101828;
  color:white;
  padding:11px 16px;
  border-radius:12px;
  font-weight:800;
  font-size:13px;
  opacity:0;
  pointer-events:none;
  transition:.18s ease;
  box-shadow:0 10px 30px rgba(16,24,40,.22)
}
.nextgen-toast.show{
  opacity:1;
  transform:translate(-50%,0)
}

.loading-state{
  min-height:92px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:11px;
  padding:22px;
  color:#667085;
  text-align:center
}
.loading-spinner{
  width:30px;
  height:30px;
  border:3px solid #DFE6FF;
  border-top-color:#1847FF;
  border-radius:50%;
  animation:nextgenSpin .8s linear infinite
}
.loading-text{
  font-size:13px;
  font-weight:700
}
.button-spinner{
  width:15px;
  height:15px;
  display:inline-block;
  vertical-align:-2px;
  margin-right:7px;
  border:2px solid rgba(255,255,255,.5);
  border-top-color:#fff;
  border-radius:50%;
  animation:nextgenSpin .7s linear infinite
}
@keyframes nextgenSpin{
  to{transform:rotate(360deg)}
}
button:disabled{
  cursor:not-allowed;
  opacity:.72
}


/* V13 navigation icons */
.admin-tab{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px
}
.tab-icon{
  width:20px;
  height:20px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:17px;
  line-height:1;
  font-weight:900
}

/* V13 child filtering */
.filter-toggle{
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 13px;
  min-height:46px;
  background:#fff;
  border:1px solid #D0D5DD;
  border-radius:13px;
  color:#475467;
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
  cursor:pointer
}
.filter-toggle input{
  width:16px;
  height:16px;
  accent-color:var(--blue)
}

/* V13 gender identification */
.child-row{
  position:relative;
  overflow:hidden
}
.child-row::before{
  content:'';
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:5px
}
.child-row.child-male{
  background:linear-gradient(90deg,#F1F7FF 0,#FFFFFF 28%)
}
.child-row.child-male::before{
  background:#4B8DFF
}
.child-row.child-female{
  background:linear-gradient(90deg,#FFF3F8 0,#FFFFFF 28%)
}
.child-row.child-female::before{
  background:#F179A8
}
.child-row.child-neutral::before{
  background:#CBD5E1
}
.child-main{
  min-width:0
}
.child-name-line{
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
  margin-bottom:4px
}
.child-name-line h3{
  margin:0
}
.child-name-line .badge{
  transform:translateY(-1px)
}

/* View profile edit placement */
.profile-title-row{
  display:flex;
  align-items:center;
  gap:8px
}
.profile-edit-btn{
  border:0;
  border-radius:9px;
  padding:5px 9px;
  background:#EEF2FF;
  color:var(--blue);
  font-size:11px;
  font-weight:900;
  cursor:pointer
}

/* User modal */
.user-modal-card{
  width:min(100%,520px)
}
.readonly-field{
  background:#F2F4F7!important;
  color:#667085!important;
  font-weight:900;
  letter-spacing:.04em
}

@media(max-width:760px){
  .admin-tabs{
    overflow-x:auto;
    justify-content:flex-start
  }
  .admin-tab{
    flex:0 0 auto;
    min-width:105px
  }
}


/* =========================================
   V13.1 COMPACT TAB BAR
========================================= */
.compact-tabs{
  display:flex;
  align-items:center;
  gap:4px;
  padding:5px;
  border:1px solid rgba(214,221,236,.95);
  border-radius:16px;
  background:rgba(255,255,255,.88);
  backdrop-filter:blur(10px);
  box-shadow:0 8px 24px rgba(32,54,104,.05);
  overflow-x:auto;
  scrollbar-width:none
}
.compact-tabs::-webkit-scrollbar{
  display:none
}
.compact-tabs .admin-tab{
  flex:1 0 auto;
  min-width:0;
  padding:9px 12px;
  border-radius:11px;
  background:transparent;
  color:#667085;
  font-size:12px;
  font-weight:800;
  gap:6px;
  box-shadow:none;
  transition:.18s ease
}
.compact-tabs .admin-tab:hover{
  background:#F3F6FF;
  color:#1847FF
}
.compact-tabs .admin-tab.active{
  background:#1847FF;
  color:#fff;
  box-shadow:0 5px 12px rgba(24,71,255,.16)
}
.compact-tabs .tab-icon{
  width:16px;
  height:16px;
  font-size:14px
}
.compact-tabs .tab-label{
  white-space:nowrap
}

/* =========================================
   V13.1 LIGHT KIDS BACKGROUND DECOR
========================================= */
body{
  position:relative;
  overflow-x:hidden
}
.kids-bg-decor{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:0;
  overflow:hidden
}
#app,
.app-shell,
main,
header{
  position:relative;
  z-index:1
}
.decor-cloud{
  position:absolute;
  width:78px;
  height:24px;
  border-radius:999px;
  background:rgba(255,255,255,.54);
  box-shadow:
    18px -10px 0 rgba(255,255,255,.54),
    40px -4px 0 rgba(255,255,255,.54)
}
.cloud-a{
  top:7%;
  right:5%;
  transform:scale(.72)
}
.cloud-b{
  bottom:10%;
  left:2%;
  transform:scale(.52)
}
.decor-bolt{
  position:absolute;
  font-size:28px;
  font-weight:900;
  color:rgba(255,191,0,.20);
  transform:rotate(-10deg)
}
.bolt-a{
  top:19%;
  left:2.2%
}
.bolt-b{
  bottom:7%;
  right:3%;
  transform:rotate(12deg) scale(.8)
}
.decor-dot{
  position:absolute;
  border-radius:50%;
  background:rgba(38,88,255,.10)
}
.dot-a{
  width:14px;
  height:14px;
  top:36%;
  right:4%
}
.dot-b{
  width:9px;
  height:9px;
  bottom:24%;
  left:5%
}
.decor-ring{
  position:absolute;
  width:28px;
  height:28px;
  border:5px solid rgba(241,121,168,.09);
  border-radius:50%
}
.ring-a{
  top:58%;
  right:2.5%
}

@media(max-width:760px){
  .compact-tabs{
    justify-content:flex-start;
    gap:2px;
    padding:4px
  }
  .compact-tabs .admin-tab{
    flex:0 0 auto;
    min-width:auto;
    padding:8px 10px;
    font-size:11px
  }
  .decor-cloud{
    opacity:.7
  }
  .bolt-a{
    left:-3px
  }
  .ring-a{
    right:-8px
  }
}


/* =========================================
   V13.2 FLOATING BOTTOM DOCK
========================================= */
body{
  padding-bottom:110px
}

.floating-dock{
  position:fixed!important;
  left:50%;
  bottom:18px;
  transform:translateX(-50%);
  z-index:11000;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  width:auto;
  max-width:calc(100vw - 28px);
  padding:8px 10px;
  margin:0!important;
  border:1px solid rgba(218,224,239,.95);
  border-radius:24px;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  box-shadow:
    0 18px 50px rgba(28,45,95,.18),
    0 3px 10px rgba(28,45,95,.08)
}

.floating-dock .admin-tab{
  position:relative;
  flex:0 0 auto!important;
  width:48px;
  height:48px;
  min-width:48px!important;
  padding:0!important;
  display:flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:16px;
  background:transparent;
  color:#7B8499;
  box-shadow:none;
  transition:
    transform .18s ease,
    background .18s ease,
    color .18s ease,
    box-shadow .18s ease
}

.floating-dock .admin-tab:hover{
  background:#F1F4FF;
  color:#1847FF;
  transform:translateY(-2px)
}

.floating-dock .admin-tab.active{
  background:#1847FF;
  color:#fff;
  transform:translateY(-3px);
  box-shadow:0 8px 18px rgba(24,71,255,.28)
}

.floating-dock .admin-tab.active::after{
  content:'';
  position:absolute;
  left:50%;
  bottom:-7px;
  transform:translateX(-50%);
  width:5px;
  height:5px;
  border-radius:50%;
  background:#FFD326;
  box-shadow:0 0 0 3px rgba(255,211,38,.18)
}

.floating-dock .dock-icon{
  width:24px;
  height:24px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:21px;
  line-height:1;
  font-weight:900
}

/* hide obsolete labels from any cached markup */
.floating-dock .tab-label{
  display:none!important
}

@media(max-width:620px){
  body{
    padding-bottom:100px
  }

  .floating-dock{
    bottom:12px;
    gap:3px;
    padding:7px 8px;
    border-radius:22px
  }

  .floating-dock .admin-tab{
    width:44px;
    height:44px;
    min-width:44px!important;
    border-radius:14px
  }

  .floating-dock .dock-icon{
    font-size:20px
  }
}

.event-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  flex-wrap:wrap
}
.event-modal-card{
  width:min(100%,560px)
}
.attendance-action-line{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  margin-top:7px
}
.correction-modal-card{
  width:min(100%,500px)
}
.correction-note{
  margin-top:10px;
  padding:10px 12px;
  border-radius:12px;
  background:#FFF7E8;
  color:#7A4E00;
  font-size:12px;
  line-height:1.45
}
.danger-btn{
  border:0;
  border-radius:12px;
  padding:11px 14px;
  background:#FEECEC;
  color:#C5221F;
  font-weight:900;
  cursor:pointer
}
@media(max-width:760px){
  .event-actions,
  .attendance-action-line{
    justify-content:flex-start
  }
}
