
/* INF Rescue v5.9.162.22.6 — Closing Shift Alarms */
#closingTeamLeadV2 .ctl-shift-alarms{
  border-left:5px solid #cc0000;
}
#closingTeamLeadV2 .ctl-shift-alarm-head,
#closingTeamLeadV2 .ctl-shift-alarm-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  flex-wrap:wrap;
}
#closingTeamLeadV2 .ctl-shift-alarm-eyebrow{
  display:block;
  font-size:.62rem;
  font-weight:950;
  letter-spacing:.08em;
  color:#cc0000;
}
#closingTeamLeadV2 .ctl-next-alarm{
  width:100%;
  margin:5px 0 7px;
  border:1px solid var(--ctl-border,#d7dee8);
  border-radius:11px;
  padding:9px 11px;
  text-align:left;
  display:grid;
  gap:2px;
  background:var(--ctl-soft,#f3f6fa);
  color:inherit;
  cursor:pointer;
}
#closingTeamLeadV2 .ctl-next-alarm.active{
  background:rgba(204,0,0,.055);
  border-color:rgba(204,0,0,.28);
}
#closingTeamLeadV2 .ctl-next-alarm strong{
  font-size:1rem;
}
#closingTeamLeadV2 .ctl-next-alarm span{
  color:var(--ctl-muted,#64748b);
  font-size:.77rem;
  font-weight:800;
}
#closingTeamLeadV2 .ctl-shift-alarm-mini{
  font-size:.68rem;
  color:var(--ctl-muted,#64748b);
}
#closingTeamLeadV2 .ctl-shift-alarm-status{
  width:100%;
  min-height:17px;
  margin-top:3px;
  font-size:.68rem;
  font-weight:800;
}
#closingTeamLeadV2 .ctl-shift-alarm-status.ok{color:#177a3d}
#closingTeamLeadV2 .ctl-shift-alarm-status.checking{color:#2368c4}
#closingTeamLeadV2 .ctl-shift-alarm-status.saving{color:#a15c00}
#closingTeamLeadV2 .ctl-shift-alarm-status.error{color:#b42318}

body.ctl-alarm-modal-open{overflow:hidden}
.ctl-shift-alarm-modal{
  position:fixed;inset:0;z-index:23000;
  display:flex;align-items:center;justify-content:center;
  padding:14px;
}
.ctl-shift-alarm-backdrop{
  position:absolute;inset:0;background:rgba(0,0,0,.72);
}
.ctl-shift-alarm-dialog{
  position:relative;z-index:1;
  width:min(760px,100%);
  max-height:calc(100dvh - 28px);
  overflow:auto;
  border-radius:16px;
  background:#fff;
  color:#172033;
  padding:16px;
  box-shadow:0 24px 80px rgba(0,0,0,.35);
}
@media(prefers-color-scheme:dark){
  .ctl-shift-alarm-dialog{background:#151b24;color:#f3f4f6;border:1px solid #3a4656}
}
.ctl-shift-alarm-dialog-head{
  display:flex;justify-content:space-between;align-items:center;gap:10px;
}
.ctl-shift-alarm-dialog h2{margin:1px 0 0}
.ctl-shift-alarm-help{font-size:.78rem;color:#64748b;line-height:1.4}
.ctl-shift-alarm-rows{display:grid;gap:6px;margin:10px 0}
.ctl-shift-alarm-row{
  display:grid;
  grid-template-columns:20px 110px minmax(0,1fr) 34px;
  gap:7px;align-items:center;
  padding:6px;
  border:1px solid #d7dee8;
  border-radius:10px;
}
.ctl-shift-alarm-row input[type="checkbox"]{
  width:17px!important;height:17px!important;min-width:17px!important;padding:0!important;margin:0!important;
}
.ctl-shift-alarm-row input[type="time"],
.ctl-shift-alarm-row input[type="text"]{
  width:100%;min-height:36px;padding:6px 8px;border:1px solid #cbd5e1;border-radius:8px;background:inherit;color:inherit;
}
.ctl-icon-btn{
  width:34px;height:34px;border:1px solid #cbd5e1;border-radius:9px;background:transparent;color:inherit;font-size:20px;cursor:pointer;
}
.ctl-shift-alarm-savebar{
  display:flex;justify-content:flex-end;gap:7px;flex-wrap:wrap;margin-top:12px;padding-top:10px;border-top:1px solid #d7dee8;
}
.ctl-shift-alarm-setup{
  display:grid;gap:2px;margin-top:10px;padding:9px 10px;border-radius:9px;background:#f3f6fa;color:#475569;font-size:.72rem;
}
@media(prefers-color-scheme:dark){
  .ctl-shift-alarm-setup{background:#202936;color:#cbd5e1}
}
.ctl-alarm-toast{
  position:fixed;left:50%;bottom:88px;transform:translateX(-50%);
  z-index:25000;max-width:min(520px,calc(100vw - 28px));
  background:#111827;color:#fff;padding:10px 13px;border-radius:10px;
  font-weight:800;font-size:.78rem;box-shadow:0 12px 36px rgba(0,0,0,.35);
}
.ctl-foreground-alarm{
  position:fixed;inset:14px 14px auto 14px;z-index:26000;
  max-width:640px;margin:auto;
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  border:2px solid #cc0000;border-radius:15px;padding:13px;
  background:#fff;color:#111827;box-shadow:0 20px 65px rgba(0,0,0,.35);
}
.ctl-foreground-alarm>div{display:grid;gap:2px}
.ctl-foreground-alarm span{color:#cc0000;font-weight:950;font-size:.7rem;letter-spacing:.08em}
.ctl-foreground-alarm strong{font-size:1.15rem}
.ctl-foreground-alarm small{color:#64748b}
.ctl-foreground-alarm button{border:0;border-radius:9px;background:#cc0000;color:#fff;padding:9px 11px;font-weight:900}
@media(max-width:600px){
  .ctl-shift-alarm-dialog{padding:11px;border-radius:12px}
  .ctl-shift-alarm-row{
    grid-template-columns:18px 92px minmax(0,1fr) 32px;
    gap:5px;padding:5px;
  }
  .ctl-shift-alarm-savebar{display:grid;grid-template-columns:1fr}
  .ctl-shift-alarm-savebar .ctl-btn{width:100%}
  #closingTeamLeadV2 .ctl-shift-alarm-actions .ctl-btn{flex:1 1 130px}
}


/* v5.9.162.22.7.6 — persistent Next Alarm pill */
#closingTeamLeadV2 .ctl-next-alarm-pill{
  width:100%;
  min-height:46px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:9px;
  padding:7px 13px;
  border-radius:999px;
  border:2px solid transparent;
  cursor:pointer;
  text-align:left;
  color:#fff;
  box-shadow:0 4px 14px rgba(0,0,0,.10);
}
#closingTeamLeadV2 .ctl-next-alarm-pill.safe{
  background:#16803d;
  border-color:#16803d;
}
#closingTeamLeadV2 .ctl-next-alarm-pill.urgent{
  background:#c81e1e;
  border-color:#c81e1e;
  animation:ctlAlarmUrgentPulse 1.8s ease-in-out infinite;
}
#closingTeamLeadV2 .ctl-next-alarm-pill.loading{
  background:#64748b;
}
#closingTeamLeadV2 .ctl-next-alarm-pill-icon{
  font-size:1.1rem;
  flex:0 0 auto;
}
#closingTeamLeadV2 .ctl-next-alarm-pill-copy{
  min-width:0;
  display:grid;
  gap:1px;
}
#closingTeamLeadV2 .ctl-next-alarm-pill-copy strong{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:.84rem;
}
#closingTeamLeadV2 .ctl-next-alarm-pill-copy small{
  font-size:.66rem;
  color:rgba(255,255,255,.9);
  font-weight:800;
}
@keyframes ctlAlarmUrgentPulse{
  0%,100%{box-shadow:0 4px 14px rgba(200,30,30,.18)}
  50%{box-shadow:0 4px 22px rgba(200,30,30,.48)}
}

/* INF Rescue v5.9.162.22.7.11 — compact persistent alarm on phones */
@media(max-width:650px){
  #closingTeamLeadV2 .ctl-next-alarm-pill{
    min-height:38px;
    gap:7px;
    padding:5px 10px;
    border-width:1px;
  }
  #closingTeamLeadV2 .ctl-next-alarm-pill-icon{font-size:.92rem}
  #closingTeamLeadV2 .ctl-next-alarm-pill-copy{display:flex;align-items:baseline;gap:7px;min-width:0}
  #closingTeamLeadV2 .ctl-next-alarm-pill-copy strong{font-size:.75rem;flex:0 1 auto}
  #closingTeamLeadV2 .ctl-next-alarm-pill-copy small{font-size:.58rem;white-space:nowrap}
}
