/* VenueBrief Today Service Hub.
   This presentation layer consumes existing readiness state without changing operational rules. */

.vbTodayServiceHub {
  width: 100%;
  color: var(--vb-sc-color-ink, #18232d);
  font-family: var(--vb-sc-font-sans, "IBM Plex Sans", Inter, ui-sans-serif, system-ui, sans-serif);
}

.vbTodayServiceHub[hidden] { display: none; }

body.vbTodayHubActive main.wrap > .hero,
body.vbTodayHubActive main.wrap > .steps,
body.vbTodayHubActive main.wrap > .screen,
body.vbTodayHubActive main.wrap > #paper,
body.vbTodayHubActive main.wrap > #relay,
body.vbTodayHubActive .bottomNav {
  display: none !important;
}

body.vbTodayHubActive .wrap {
  padding-top: 18px;
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
}

.vbTodayContext {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 2px 2px 16px;
  border-bottom: 1px solid var(--vb-sc-color-line, #d7dce1);
}

.vbTodayEyebrow,
.vbTodayCommandLabel {
  color: var(--vb-sc-color-brand, #70293b);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.vbTodayContext h1 {
  margin: 5px 0 4px;
  color: var(--vb-sc-color-ink, #18232d);
  font-size: clamp(28px, 4.5vw, 42px);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.vbTodayContext p {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin: 0;
  color: var(--vb-sc-color-muted, #667085);
  font-size: 15px;
}

.vbTodayContext p strong { color: var(--vb-sc-color-ink, #18232d); }
.vbTodayTime { font-family: var(--vb-sc-font-mono, "IBM Plex Mono", monospace); font-variant-numeric: tabular-nums; }

.vbTodaySave {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--vb-sc-color-muted, #667085);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.vbTodaySave i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--vb-sc-color-ready, #216b49);
}

.vbTodaySave[data-failed="true"] { color: var(--vb-sc-color-blocker, #b42318); }
.vbTodaySave[data-failed="true"] i { background: var(--vb-sc-color-blocker, #b42318); }

.vbTodayLayout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.vbTodayMain,
.vbTodaySide {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.vbTodayCommand,
.vbTodayPanel,
.vbTodayMore {
  border: 1px solid var(--vb-sc-color-line, #d7dce1);
  border-radius: var(--vb-sc-radius-panel, 12px);
  background: var(--vb-sc-color-surface, #fff);
}

.vbTodayCommand {
  position: relative;
  overflow: hidden;
  padding: 22px 24px;
}

.vbTodayCommand::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--vb-sc-color-brand, #70293b);
  content: "";
}

.vbTodayCommand[data-state="manager-check"]::before { background: var(--vb-sc-color-check, #946000); }
.vbTodayCommand[data-state="save-failure"]::before,
.vbTodayCommand[data-state="blocker"]::before,
.vbTodayCommand[data-state="coverage-blocker"]::before,
.vbTodayCommand[data-state="shift-setup"]::before,
.vbTodayCommand[data-state="team-required"]::before { background: var(--vb-sc-color-blocker, #b42318); }
.vbTodayCommand[data-state="ready"]::before,
.vbTodayCommand[data-state="review-required"]::before,
.vbTodayCommand[data-state="released"]::before { background: var(--vb-sc-color-ready, #216b49); }

.vbTodayCommandLabel {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--vb-sc-color-muted, #667085);
}

.vbTodayCommandLabel svg,
.vbTodayModuleIcon svg,
.vbTodayOutputIcon svg,
.vbTodayAttentionIcon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.vbTodayCommand h2 {
  max-width: 720px;
  margin: 11px 0 7px;
  color: var(--vb-sc-color-ink, #18232d);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.vbTodayCommand > p {
  max-width: 720px;
  margin: 0;
  color: var(--vb-sc-color-muted, #667085);
  font-size: 16px;
}

.vbTodayCommandFooter {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 20px;
}

.vbTodayPrimary,
.vbTodayStickyAction button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 11px 18px;
  border: 1px solid var(--vb-sc-color-brand, #70293b);
  border-radius: var(--vb-sc-radius-control, 8px);
  background: var(--vb-sc-color-brand, #70293b);
  color: #fff;
  font: 700 16px/1.15 var(--vb-sc-font-sans, "IBM Plex Sans", sans-serif);
}

.vbTodayPrimary:hover,
.vbTodayStickyAction button:hover {
  border-color: var(--vb-sc-color-brand-hover, #5f2232);
  background: var(--vb-sc-color-brand-hover, #5f2232);
}

.vbTodayPrimary:focus-visible,
.vbTodayModule:focus-visible,
.vbTodayAttentionItem:focus-visible,
.vbTodayOutput button:focus-visible,
.vbTodayTextAction:focus-visible,
.vbTodayMore button:focus-visible,
.vbTodayStickyAction button:focus-visible {
  outline: 3px solid rgb(40 95 122 / 34%);
  outline-offset: 2px;
}

.vbTodaySupporting {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--vb-sc-color-muted, #667085);
  font-size: 14px;
}

.vbTodaySupporting b { color: var(--vb-sc-color-ready, #216b49); }

.vbTodayPanel { overflow: hidden; }

.vbTodayPanel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--vb-sc-color-line, #d7dce1);
}

.vbTodayPanel > header h2 {
  margin: 0;
  color: var(--vb-sc-color-ink, #18232d);
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.vbTodayPanel > header p {
  margin: 4px 0 0;
  color: var(--vb-sc-color-muted, #667085);
  font-size: 14px;
}

.vbTodayRows > :last-child { border-bottom: 0; }

.vbTodayModule,
.vbTodayAttentionItem {
  width: 100%;
  min-height: 78px;
  border: 0;
  border-bottom: 1px solid #e7eaee;
  background: transparent;
  color: var(--vb-sc-color-ink, #18232d);
  text-align: left;
}

.vbTodayModule {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 13px 20px;
}

.vbTodayModule:hover,
.vbTodayAttentionItem:hover { background: var(--vb-sc-color-surface-muted, #f7f8f9); }

.vbTodayModuleIcon,
.vbTodayOutputIcon,
.vbTodayAttentionIcon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--vb-sc-color-line, #d7dce1);
  border-radius: 10px;
  color: var(--vb-sc-color-muted, #667085);
  background: #fff;
}

.vbTodayModule[data-state="complete"] .vbTodayModuleIcon {
  border-color: #b7d9c4;
  background: var(--vb-sc-color-ready-bg, #edf7f1);
  color: var(--vb-sc-color-ready, #216b49);
}

.vbTodayModule[data-state="attention"] .vbTodayModuleIcon {
  border-color: #e6cc99;
  background: var(--vb-sc-color-check-bg, #fff7e8);
  color: var(--vb-sc-color-check, #946000);
}

.vbTodayModuleCopy { display: grid; gap: 3px; min-width: 0; }
.vbTodayModuleCopy strong { font-size: 16px; }
.vbTodayModuleCopy small { overflow: hidden; color: var(--vb-sc-color-muted, #667085); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }

.vbTodayModuleState {
  color: var(--vb-sc-color-muted, #667085);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.vbTodayModule[data-state="complete"] .vbTodayModuleState { color: var(--vb-sc-color-ready, #216b49); }
.vbTodayModule[data-state="attention"] .vbTodayModuleState { color: var(--vb-sc-color-check, #946000); }
.vbTodayModule[data-state="waiting"] .vbTodayModuleState { color: #8a8a86; }

.vbTodayAttentionItem {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
}

.vbTodayAttentionItem > span:nth-child(2) { display: grid; gap: 4px; }
.vbTodayAttentionItem strong { font-size: 13px; }
.vbTodayAttentionItem small { color: var(--vb-sc-color-text, #344054); font-size: 14px; line-height: 1.4; }
.vbTodayAttentionItem[data-level="blocker"] .vbTodayAttentionIcon,
.vbTodayAttentionItem[data-level="blocker"] strong { color: var(--vb-sc-color-blocker, #b42318); }
.vbTodayAttentionItem[data-level="manager-check"] .vbTodayAttentionIcon,
.vbTodayAttentionItem[data-level="manager-check"] strong { color: var(--vb-sc-color-check, #946000); }

.vbTodayOutput {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #e7eaee;
}

.vbTodayOutputIcon { color: var(--vb-sc-color-brand, #70293b); }
.vbTodayOutputCopy { min-width: 0; }
.vbTodayOutputCopy > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vbTodayOutput h3 { margin: 0; font-size: 16px; }
.vbTodayOutputCopy > div > span {
  padding: 3px 8px;
  border: 1px solid var(--vb-sc-color-line, #d7dce1);
  border-radius: 999px;
  color: var(--vb-sc-color-muted, #667085);
  background: var(--vb-sc-color-surface-muted, #f7f8f9);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.vbTodayOutput[data-output-state="ready"] .vbTodayOutputCopy > div > span,
.vbTodayOutput[data-output-state="current"] .vbTodayOutputCopy > div > span {
  border-color: #b7d9c4;
  color: var(--vb-sc-color-ready, #216b49);
  background: var(--vb-sc-color-ready-bg, #edf7f1);
}

.vbTodayOutput[data-output-state="needs-update"] .vbTodayOutputCopy > div > span {
  border-color: #e6cc99;
  color: var(--vb-sc-color-check, #946000);
  background: var(--vb-sc-color-check-bg, #fff7e8);
}

.vbTodayOutput p { margin: 7px 0 11px; color: var(--vb-sc-color-muted, #667085); font-size: 13px; line-height: 1.4; }
.vbTodayOutput button,
.vbTodayTextAction {
  min-height: 36px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--vb-sc-color-brand, #70293b);
  font-weight: 700;
}
.vbTodayOutput button { text-align: left; }

.vbTodayMore { overflow: hidden; }
.vbTodayMore summary { padding: 14px 16px; cursor: pointer; font-weight: 700; }
.vbTodayMore > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0 14px 14px; }
.vbTodayMore button {
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--vb-sc-color-line, #d7dce1);
  border-radius: var(--vb-sc-radius-control, 8px);
  background: #fff;
  color: var(--vb-sc-color-text, #344054);
  font-weight: 650;
}

.vbTodayStickyAction {
  position: fixed;
  right: 0;
  bottom: calc(66px + env(safe-area-inset-bottom));
  left: 0;
  z-index: 55;
  display: none;
  padding: 8px 12px;
  border-top: 1px solid var(--vb-sc-color-line, #d7dce1);
  background: rgb(243 241 236 / 96%);
}

.vbTodayStickyAction[data-visible="true"] { display: block; }
.vbTodayStickyAction button { width: 100%; }

@media (max-width: 959px) {
  .vbTodayLayout { grid-template-columns: 1fr; }
  .vbTodaySide { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .vbTodayMore { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  body.vbTodayHubActive .wrap { padding: 14px 12px calc(90px + env(safe-area-inset-bottom)); }

  .vbTodayContext {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 3px 6px 13px;
  }

  .vbTodayEyebrow { display: none; }
  .vbTodayContext h1 { margin-top: 0; font-size: 29px; }
  .vbTodayContext p { gap: 6px; font-size: 13px; }
  .vbTodaySave { align-self: start; padding-top: 6px; font-size: 12px; }

  .vbTodayLayout,
  .vbTodayMain,
  .vbTodaySide { gap: 14px; }
  .vbTodayLayout { margin-top: 14px; }
  .vbTodaySide { grid-template-columns: 1fr; }

  .vbTodayCommand { padding: 18px 20px 18px 23px; }
  .vbTodayCommandLabel { font-size: 11px; }
  .vbTodayCommandLabel svg { width: 19px; height: 19px; }
  .vbTodayCommand h2 { margin-top: 9px; font-size: 29px; }
  .vbTodayCommand > p { font-size: 15px; }
  .vbTodayCommandFooter { grid-template-columns: 1fr; gap: 11px; margin-top: 17px; }
  .vbTodayPrimary { width: 100%; }
  .vbTodaySupporting { justify-content: flex-start; font-size: 13px; }

  .vbTodayPanel > header { padding: 15px 18px; }
  .vbTodayModule { min-height: 76px; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 12px; padding: 12px 18px; }
  .vbTodayModuleState { max-width: 98px; text-align: right; white-space: normal; }
  .vbTodayModuleCopy small { white-space: normal; }

  .vbTodayMore > div { grid-template-columns: 1fr; }
}

@media (min-width: 960px) {
  .vbTodayStickyAction { display: none !important; }
}

@media print {
  #vbTodayServiceHub { display: none !important; }
  body.vbTodayHubActive main.wrap > #paper { display: block !important; }
}
