/* V104 compact Audit Workday cleanup: removes legacy module deadline/timer surfaces and compresses the simulator layout. */
body.safe-compact-ui{
  --v104-radius-lg: 20px;
  --v104-radius-md: 16px;
}

/* Kill old module/quiz/deadline/security floating surfaces in this dev Workday build. */
#deadlineFocusCard,
#moduleDeadlineBanner,
#secureSessionWidgetV81,
.secure-session-widget-v81,
.secure-alert-stack-v82,
.modal-deadline-card,
.module-card.has-action-deadline .learning-strip{
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}

/* Compact the always-visible shell so Audit Workday is not pushed far below the fold. */
.safe-compact-ui .workspace{
  gap:10px!important;
  padding:14px 18px 28px!important;
}
.safe-compact-ui .topbar{
  padding:10px 14px!important;
  border-radius:18px!important;
  min-height:auto!important;
}
.safe-compact-ui .topbar .eyebrow{font-size:9px!important;letter-spacing:.14em!important;}
.safe-compact-ui .topbar h2{font-size:17px!important;line-height:1.05!important;}
.safe-compact-ui .profile-chip{padding:6px 8px!important;min-width:188px!important;border-radius:16px!important;}
.safe-compact-ui .profile-chip>span{width:34px!important;height:34px!important;border-radius:12px!important;}
.safe-compact-ui .profile-chip strong{font-size:12px!important;}
.safe-compact-ui .profile-chip small{font-size:10px!important;}

.safe-compact-ui .hero{
  padding:12px 14px!important;
  border-radius:20px!important;
  min-height:auto!important;
  grid-template-columns:42px minmax(0,1fr) auto!important;
  gap:12px!important;
}
.safe-compact-ui .hero-logo{width:38px!important;height:38px!important;border-radius:15px!important;}
.safe-compact-ui .hero h1{font-size:clamp(22px,2.4vw,34px)!important;line-height:1.02!important;margin:4px 0 4px!important;}
.safe-compact-ui .hero p{font-size:12px!important;line-height:1.35!important;max-width:860px!important;}
.safe-compact-ui .hero-actions{margin-top:9px!important;gap:8px!important;}
.safe-compact-ui .hero-actions .premium-action{min-height:34px!important;padding:8px 11px!important;border-radius:14px!important;font-size:12px!important;}
.safe-compact-ui .hero-panel{gap:8px!important;min-width:220px!important;}
.safe-compact-ui .mini-stat{padding:8px 10px!important;border-radius:14px!important;}
.safe-compact-ui .mini-stat span{font-size:18px!important;}
.safe-compact-ui .mini-stat small{font-size:10px!important;}

.safe-compact-ui .stats-grid{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:9px!important;
}
.safe-compact-ui .stat-card{padding:11px 12px!important;border-radius:17px!important;min-height:74px!important;}
.safe-compact-ui .stat-card span{font-size:10px!important;}
.safe-compact-ui .stat-card strong{font-size:18px!important;line-height:1.1!important;}
.safe-compact-ui .stat-card small{font-size:10px!important;}

.safe-compact-ui #modulesSection .section-card{
  padding:12px!important;
  border-radius:22px!important;
}
.safe-compact-ui #modulesSection .section-head{
  margin-bottom:10px!important;
  gap:10px!important;
}
.safe-compact-ui #modulesSection .section-head h3{
  font-size:20px!important;
  margin:2px 0!important;
}
.safe-compact-ui #modulesSection .section-head .eyebrow{font-size:9px!important;}
.safe-compact-ui #refreshBtn{min-height:34px!important;padding:8px 11px!important;border-radius:13px!important;font-size:12px!important;}

/* V104 Workday compact layout */
.workday-shell.workday-v104-compact{
  gap:10px!important;
  min-height:0!important;
}
.workday-v104-compact .workday-hero-card{
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:12px!important;
  padding:14px!important;
  border-radius:22px!important;
  box-shadow:0 12px 38px rgba(0,0,0,.22)!important;
}
.workday-v104-compact .workday-hero-card .eyebrow{font-size:9px!important;letter-spacing:.14em!important;}
.workday-v104-compact .workday-hero-card h3{
  font-size:clamp(24px,2.8vw,38px)!important;
  margin:2px 0 4px!important;
  line-height:.98!important;
}
.workday-v104-compact .workday-hero-card span{
  font-size:12px!important;
  line-height:1.35!important;
  max-width:760px!important;
}
.workday-v104-compact .workday-hero-stats{
  grid-template-columns:repeat(3, minmax(78px,1fr))!important;
  min-width:270px!important;
  gap:7px!important;
}
.workday-v104-compact .workday-hero-stats div{
  padding:9px!important;
  border-radius:15px!important;
}
.workday-v104-compact .workday-hero-stats strong{font-size:16px!important;}
.workday-v104-compact .workday-hero-stats small{font-size:9.5px!important;}

.workday-v104-compact .workday-layout{
  grid-template-columns:246px minmax(0,1fr)!important;
  gap:10px!important;
  align-items:start!important;
}
.workday-v104-compact .workday-rail,
.workday-v104-compact .workday-stage{
  border-radius:20px!important;
  box-shadow:0 12px 36px rgba(0,0,0,.20)!important;
}
.workday-v104-compact .workday-rail{
  padding:9px!important;
  top:10px!important;
  max-height:calc(100dvh - 130px)!important;
}
.workday-v104-compact .workday-rail-head{padding:3px 2px 8px!important;}
.workday-v104-compact .workday-rail-head span{font-size:9px!important;}
.workday-v104-compact .workday-rail-head b{font-size:9.5px!important;}
.workday-v104-compact .workday-phase-card{
  grid-template-columns:28px minmax(0,1fr) auto!important;
  gap:7px!important;
  padding:8px!important;
  margin-bottom:6px!important;
  border-radius:14px!important;
}
.workday-v104-compact .workday-phase-card .phase-index{width:26px!important;height:26px!important;border-radius:9px!important;font-size:10px!important;}
.workday-v104-compact .workday-phase-card strong{font-size:11.5px!important;}
.workday-v104-compact .workday-phase-card small{font-size:9.5px!important;}
.workday-v104-compact .workday-phase-card em{font-size:9.5px!important;}
.workday-v104-compact .workday-dev-actions{gap:6px!important;padding-top:5px!important;}
.workday-v104-compact .workday-dev-actions .secondary-btn{min-height:31px!important;padding:7px 9px!important;font-size:11px!important;border-radius:12px!important;}

.workday-v104-compact .workday-stage{
  padding:11px!important;
  min-height:520px!important;
  max-height:none!important;
}
.workday-v104-compact .workday-phase-panel{gap:10px!important;}
.workday-v104-compact .workday-panel-head{
  padding:11px!important;
  border-radius:17px!important;
  gap:10px!important;
}
.workday-v104-compact .workday-panel-head h3{
  font-size:clamp(20px,2.2vw,28px)!important;
  margin:2px 0 4px!important;
}
.workday-v104-compact .workday-panel-head span{font-size:12px!important;line-height:1.34!important;}
.workday-v104-compact .workday-panel-head b{padding:7px 10px!important;font-size:12px!important;}

.workday-v104-compact .orientation-board,
.workday-v104-compact .client-file-grid,
.workday-v104-compact .evidence-card-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:8px!important;
}
.workday-v104-compact .orientation-tile,
.workday-v104-compact .client-folder-card,
.workday-v104-compact .evidence-tag-card,
.workday-v104-compact .process-flow-card,
.workday-v104-compact .artifact-stack,
.workday-v104-compact .station-choice-block,
.workday-v104-compact .fit-report-hero div,
.workday-v104-compact .manager-fit-note,
.workday-v104-compact .field-score-grid article{
  border-radius:15px!important;
  padding:10px!important;
  min-height:0!important;
}
.workday-v104-compact .orientation-tile h4,
.workday-v104-compact .client-folder-card h4{font-size:13px!important;}
.workday-v104-compact .orientation-tile p,
.workday-v104-compact .client-folder-card small,
.workday-v104-compact .client-folder-card li,
.workday-v104-compact .process-flow-card p,
.workday-v104-compact .evidence-tag-card p{
  font-size:11px!important;
  line-height:1.36!important;
}
.workday-v104-compact .client-folder-card ul{margin-top:7px!important;}
.workday-v104-compact .client-folder-card li{margin:3px 0!important;}
.workday-v104-compact .evidence-tag-card p{min-height:42px!important;margin:8px 0!important;}
.workday-v104-compact .tile-top button,
.workday-v104-compact .folder-strip button,
.workday-v104-compact .flow-head button,
.workday-v104-compact .artifact-stack button,
.workday-v104-compact .binder-toolbar button,
.workday-v104-compact .tag-chip-grid button,
.workday-v104-compact .choice-chip-row button{
  padding:6px 8px!important;
  font-size:10.5px!important;
  border-radius:11px!important;
}
.workday-v104-compact .workday-guidance{padding:9px 11px!important;border-radius:14px!important;font-size:11px!important;}
.workday-v104-compact .flow-steps{gap:6px!important;margin:9px 0!important;}
.workday-v104-compact .flow-steps span{padding:7px 8px!important;border-radius:11px!important;font-size:10.5px!important;}
.workday-v104-compact .flow-steps b{width:18px!important;height:18px!important;border-radius:7px!important;font-size:10px!important;}

.workday-v104-compact .binder-toolbar{gap:6px!important;}
.workday-v104-compact .tag-chip-grid,
.workday-v104-compact .choice-chip-row{gap:6px!important;}
.workday-v104-compact .rotation-workbench{
  grid-template-columns:210px minmax(0,1fr)!important;
  gap:10px!important;
}
.workday-v104-compact .station-rail{gap:6px!important;max-height:520px!important;}
.workday-v104-compact .station-rail button{padding:8px!important;border-radius:13px!important;}
.workday-v104-compact .station-rail strong{font-size:11.5px!important;}
.workday-v104-compact .station-rail small{font-size:9.5px!important;}
.workday-v104-compact .station-desk{padding:11px!important;border-radius:17px!important;gap:9px!important;}
.workday-v104-compact .station-head h3{font-size:22px!important;margin:2px 0 4px!important;}
.workday-v104-compact .station-head span{font-size:12px!important;line-height:1.35!important;}
.workday-v104-compact .station-head b{font-size:21px!important;}
.workday-v104-compact .artifact-stack div{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;margin-bottom:8px!important;}
.workday-v104-compact .artifact-stack span{font-size:10.5px!important;padding:7px!important;border-radius:11px!important;}
.workday-v104-compact .fit-report-hero{gap:8px!important;}
.workday-v104-compact .fit-report-hero strong{font-size:20px!important;margin:4px 0 1px!important;}
.workday-v104-compact .field-score-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important;}
.workday-v104-compact .field-score-grid article{padding:9px 54px 9px 10px!important;min-height:60px!important;}
.workday-v104-compact .field-score-grid article strong{font-size:12px!important;}
.workday-v104-compact .field-score-grid article span{font-size:9.5px!important;}
.workday-v104-compact .field-score-grid article b{font-size:15px!important;right:10px!important;top:9px!important;}
.workday-v104-compact .manager-fit-note span{font-size:12px!important;line-height:1.4!important;}

@media(max-width:1100px){
  .safe-compact-ui .hero{grid-template-columns:1fr!important;}
  .safe-compact-ui .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .workday-v104-compact .workday-layout{grid-template-columns:1fr!important;}
  .workday-v104-compact .workday-rail{position:relative!important;top:auto!important;max-height:none!important;}
  .workday-v104-compact .orientation-board,
  .workday-v104-compact .client-file-grid,
  .workday-v104-compact .evidence-card-grid,
  .workday-v104-compact .field-score-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .workday-v104-compact .rotation-workbench{grid-template-columns:1fr!important;}
  .workday-v104-compact .station-rail{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;max-height:none!important;}
}
@media(max-width:760px){
  .safe-compact-ui .workspace{padding:10px 9px 66px!important;}
  .safe-compact-ui .profile-chip{min-width:0!important;}
  .safe-compact-ui .hero-panel{min-width:0!important;}
  .safe-compact-ui .stats-grid,
  .workday-v104-compact .orientation-board,
  .workday-v104-compact .client-file-grid,
  .workday-v104-compact .evidence-card-grid,
  .workday-v104-compact .field-score-grid,
  .workday-v104-compact .fit-report-hero,
  .workday-v104-compact .artifact-stack div,
  .workday-v104-compact .station-rail{grid-template-columns:1fr!important;}
  .workday-v104-compact .workday-hero-card{grid-template-columns:1fr!important;}
  .workday-v104-compact .workday-hero-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important;min-width:0!important;}
  .workday-v104-compact .workday-panel-head{flex-direction:column!important;}
}

/* When the Audit Workday tab is open, remove the old overview stack above it so the simulator starts immediately. */
body.audit-workday-active.safe-compact-ui .hero,
body.audit-workday-active.safe-compact-ui .stats-grid{
  display:none!important;
}
body.audit-workday-active.safe-compact-ui .workspace{
  gap:9px!important;
  padding-top:12px!important;
}
body.audit-workday-active.safe-compact-ui .topbar{
  margin-bottom:0!important;
}
body.audit-workday-active.safe-compact-ui #modulesSection .section-card{
  min-height:calc(100dvh - 58px)!important;
}
body.audit-workday-active.safe-compact-ui .workday-v104-compact .workday-stage{
  min-height:calc(100dvh - 220px)!important;
}
