:root {
  --ops-sidebar: 230px;
  --ops-navy: #071a2f;
  --ops-navy-soft: #0c2744;
  --ops-blue: #1267e8;
  --ops-blue-dark: #0b55c7;
  --ops-border: #dce5ef;
  --ops-muted: #637189;
  --ops-surface: #ffffff;
  --ops-bg: #f5f7fb;
  --ops-shadow: 0 1px 2px rgba(15, 35, 60, .045), 0 6px 20px rgba(15, 35, 60, .035);
}

.tf4-dashboard-body {
  min-width: 1180px;
  background: var(--ops-bg);
  color: #142239;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tf4-dashboard-main {
  width: calc(100% - var(--ops-sidebar));
  min-height: 100vh;
  margin-left: var(--ops-sidebar);
  padding: 0 30px 32px !important;
}

.tf4-ops-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1040;
  display: flex;
  width: var(--ops-sidebar);
  height: 100vh;
  flex-direction: column;
  overflow: hidden;
  color: #d8e5f4;
  background: linear-gradient(160deg, #06172b 0%, #092b50 56%, #06182d 100%);
  border-right: 1px solid rgba(140, 180, 220, .14);
  box-shadow: 8px 0 26px rgba(3, 14, 29, .08);
}

.tf4-ops-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 88px;
  padding: 0 20px 0 27px;
}

.tf4-ops-brand-mark {
  color: #fff;
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.tf4-ops-brand-mark span { color: #2f86ff; }

.tf4-ops-workspace-selector {
  min-width: 0;
}

.tf4-ops-workspace-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 104px;
  min-height: 30px;
  padding: 6px 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 5px;
  background: rgba(255, 255, 255, .06);
  color: #e8f0fa;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.tf4-ops-workspace-toggle:hover,
.tf4-ops-workspace-toggle:focus,
.tf4-ops-workspace-toggle[aria-expanded="true"] {
  border-color: rgba(94, 164, 255, .48);
  background: rgba(47, 134, 255, .16);
  color: #fff;
  outline: 0;
}

.tf4-ops-workspace-toggle::after {
  flex: 0 0 auto;
  margin-left: 0;
  font-size: 9px;
  opacity: .72;
}

.tf4-ops-workspace-menu {
  min-width: 220px;
  padding: 6px;
  border: 1px solid #dce4ef;
  border-radius: 7px;
  box-shadow: 0 16px 38px rgba(3, 18, 36, .2);
}

.tf4-ops-workspace-menu .dropdown-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 10px;
  border-radius: 5px;
  color: #10243e;
}

.tf4-ops-workspace-menu .dropdown-item:hover,
.tf4-ops-workspace-menu .dropdown-item:focus {
  background: #eef5ff;
  color: #075ed1;
}

.tf4-ops-workspace-menu .dropdown-item.is-current {
  background: #e8f2ff;
  color: #075ed1;
}

.tf4-ops-workspace-menu .dropdown-item strong {
  font-size: 12px;
  font-weight: 800;
}

.tf4-ops-workspace-menu .dropdown-item small {
  color: #718096;
  font-size: 10px;
}

.tf4-ops-brand-copy {
  padding-left: 11px;
  border-left: 1px solid rgba(255, 255, 255, .22);
  color: #f4f8fd;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.tf4-ops-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0 13px 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.16) transparent;
}

.tf4-ops-nav-home { margin-bottom: 24px; }
.tf4-ops-nav-group + .tf4-ops-nav-group { margin-top: 17px; }

.tf4-ops-nav-label {
  padding: 0 12px 7px;
  color: #7e96b0;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.tf4-ops-nav-link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 36px;
  gap: 11px;
  margin: 2px 0;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #aec0d3;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.15;
  text-decoration: none;
  transition: color .16s ease, background-color .16s ease, border-color .16s ease, transform .16s ease;
}

.tf4-ops-nav-link svg,
.tf4-ops-logout svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tf4-ops-nav-link[data-icon="dashboard"] svg { fill: currentColor; stroke: none; }

.tf4-ops-nav-link:hover,
.tf4-ops-nav-link:focus-visible {
  color: #fff;
  background: rgba(255,255,255,.075);
  border-color: rgba(255,255,255,.06);
  outline: 0;
  transform: translateX(1px);
}

.tf4-ops-nav-link.is-active {
  color: #fff;
  background: linear-gradient(135deg, #1267e8, #0c57ce);
  border-color: rgba(107, 169, 255, .58);
  box-shadow: 0 7px 18px rgba(0, 91, 218, .28), inset 0 1px 0 rgba(255,255,255,.16);
}

.tf4-ops-nav-parent {
  cursor: default;
  color: #d8e4f2;
}

.tf4-ops-nav-parent:hover {
  border-color: transparent;
  background: transparent;
  color: #d8e4f2;
  transform: none;
}

.tf4-ops-cad-subnav {
  position: relative;
  margin: -1px 0 5px 19px;
  padding-left: 9px;
  border-left: 1px solid rgba(126, 166, 208, .28);
}

.tf4-ops-cad-subnav .tf4-ops-nav-link {
  min-height: 29px;
  gap: 8px;
  margin: 1px 0;
  padding: 5px 8px;
  font-size: 10px;
}

.tf4-ops-cad-subnav .tf4-ops-nav-link svg {
  width: 13px;
  height: 13px;
  flex-basis: 13px;
}

.tf4-ops-user {
  display: grid;
  grid-template-columns: 34px 1fr 20px;
  align-items: center;
  gap: 9px;
  margin: 10px 13px 5px;
  padding: 11px 12px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 8px;
  background: rgba(255,255,255,.045);
}

.tf4-ops-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 6px;
  color: #eaf3ff;
  background: #153756;
  font-size: 10px;
  font-weight: 800;
}

.tf4-ops-user-copy { display: grid; min-width: 0; }
.tf4-ops-user-copy strong { color: #f7fbff; font-size: 10px; }
.tf4-ops-user-copy span { color: #7790aa; font-size: 9px; }
.tf4-ops-user-chevron { color: #8fa5bb; font-size: 13px; text-align: center; }
.tf4-ops-logout {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 11px;
  margin: 0 13px 12px;
  padding: 9px 12px;
  color: #91a7bd;
  border-radius: 7px;
  font-size: 10.5px;
  font-weight: 650;
  text-decoration: none;
  transition: color .16s ease, background-color .16s ease;
}
.tf4-ops-logout:hover { color: #fff; background: rgba(255,255,255,.075); }
.tf4-icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.operations-dashboard { width: 100%; max-width: none; margin: 0 auto; }
.operations-dashboard .row { --bs-gutter-x: 12px; --bs-gutter-y: 12px; }

.operations-dashboard .dashboard-hero {
  min-height: 95px;
  margin: 0 -30px 21px !important;
  padding: 22px 30px 19px;
  border: 0;
  border-bottom: 1px solid var(--ops-border);
  border-radius: 0;
  box-shadow: none;
}

.operations-dashboard .dashboard-hero h1 {
  color: #0d1a2d;
  font-size: 24px;
  font-weight: 750;
  letter-spacing: 0;
}

.operations-dashboard .dashboard-subhead { gap: 9px; font-size: 10px; }
.operations-dashboard .dashboard-roid { padding: 4px 8px; border-radius: 5px; font-size: 9px; font-weight: 800; }
.operations-dashboard .dashboard-controls { gap: 8px; }
.operations-dashboard .dashboard-toggle-form {
  min-height: 38px;
  gap: 7px;
  padding: 5px 6px 5px 9px;
  border-color: var(--ops-border);
  border-radius: 6px;
  background: #f9fbfe;
}
.operations-dashboard .dashboard-control-label { color: #5b6b80; font-size: 9px; letter-spacing: .03em; }
.operations-dashboard .dashboard-toggle-form .btn { min-width: 38px; padding: 4px 7px; }
.operations-dashboard .dashboard-run-btn { min-width: 112px; min-height: 38px; border-radius: 6px; font-size: 10px; font-weight: 700; }

.operations-dashboard .btn {
  border-radius: 5px;
  font-weight: 650;
  transition: color .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.operations-dashboard .btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 5px 13px rgba(16, 39, 69, .09); }
.operations-dashboard .btn:active:not(:disabled) { transform: translateY(0); box-shadow: none; }
.operations-dashboard .btn:focus-visible { outline: 3px solid rgba(18,103,232,.17); outline-offset: 2px; }
.operations-dashboard .btn-primary { background: var(--ops-blue); border-color: var(--ops-blue); }
.operations-dashboard .btn-primary:hover { background: var(--ops-blue-dark); border-color: var(--ops-blue-dark); }

.operations-dashboard > .row.g-3.mb-4 { margin-bottom: 21px !important; }
.operations-dashboard .dashboard-metric,
.operations-dashboard .panel {
  border: 1px solid var(--ops-border);
  border-radius: 8px;
  background: var(--ops-surface);
  box-shadow: var(--ops-shadow);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.operations-dashboard .dashboard-metric:hover,
.operations-dashboard .panel:hover { border-color: #ccd9e8; box-shadow: 0 4px 13px rgba(15,35,60,.075); transform: translateY(-1px); }

.operations-dashboard .dashboard-metric {
  min-height: 122px;
  padding: 18px 17px 15px;
}
.operations-dashboard .dashboard-metric::before { left: 16px; right: 16px; height: 2px; background: #bdd4fb; }
.operations-dashboard .dashboard-metric-error::before { background: #f3a8b2; }
.operations-dashboard .metric-label { color: #64748a; font-size: 9px; font-weight: 800; letter-spacing: .035em; }
.operations-dashboard .metric-value { margin: 5px 0 4px; color: #0b1a31; font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.operations-dashboard .dashboard-metric-error .metric-value { color: #a31d2d; }
.operations-dashboard .metric-export { color: #1267e8; font-size: 9px; font-weight: 650; }
.operations-dashboard .metric-foot { max-width: 150px; font-size: 9px; line-height: 1.35; }

.operations-dashboard .panel { padding: 17px 18px; }
.operations-dashboard .dashboard-primary-grid > .col-xl-8 { width: 64%; }
.operations-dashboard .dashboard-primary-grid > .col-xl-4 { width: 36%; }
.operations-dashboard .dashboard-primary-panel { min-height: 397px; padding: 19px 20px; }
.operations-dashboard .dashboard-side-panel { min-height: 397px; }
.operations-dashboard .dashboard-section-head { margin-bottom: 10px; }
.operations-dashboard .dashboard-section-head h2 { color: #122038; font-size: 16px; font-weight: 750; }
.operations-dashboard .dashboard-section-eyebrow { margin-bottom: 3px; color: #718198; font-size: 8px; letter-spacing: .08em; }
.operations-dashboard .dashboard-progress-subtext { color: #53667d; font-size: 10px; }
.operations-dashboard .dashboard-progress-badge { min-width: 66px; padding: 5px 10px; font-size: 9px; }
.operations-dashboard .dashboard-progress-badge-auto { min-width: 76px; }
.operations-dashboard .dashboard-progress-track { height: 8px; }
.operations-dashboard .dashboard-progress-track-auto { height: 7px; }
.operations-dashboard .dashboard-auto-progress-note,
.operations-dashboard .dashboard-progress-note { margin-top: 7px; font-size: 9px; }
.operations-dashboard .dashboard-status-grid-auto { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.operations-dashboard .dashboard-status-card { min-height: 82px; padding: 12px 13px; border-color: #dbe4ef; border-radius: 7px; background: #f8fafd; }
.operations-dashboard .dashboard-status-label { margin-bottom: 5px; font-size: 8px; letter-spacing: .03em; }
.operations-dashboard .dashboard-status-value { color: #0b1a31; font-size: 21px; font-variant-numeric: tabular-nums; }
.operations-dashboard .dashboard-auto-mini { gap: 6px; margin-top: 8px; font-size: 9px; }
.operations-dashboard .dashboard-auto-mini span { padding: 3px 7px; }
.operations-dashboard .dashboard-auto-last { margin-top: 8px; font-size: 9px; }
.operations-dashboard .dashboard-debug-panel { margin-top: 9px !important; border-radius: 6px; }
.operations-dashboard .dashboard-debug-summary { min-height: 33px; padding: 7px 10px; font-size: 8px; }
.operations-dashboard .dashboard-debug-hint { font-size: 8px; }
.operations-dashboard .dashboard-debug-body-auto { max-height: 142px; }
.operations-dashboard .dashboard-debug-item { padding: 7px 10px; }
.operations-dashboard .dashboard-debug-line,
.operations-dashboard .dashboard-debug-meta { gap: 5px; margin-bottom: 4px; font-size: 9px; }
.operations-dashboard .dashboard-debug-status,
.operations-dashboard .dashboard-debug-outcome,
.operations-dashboard .dashboard-debug-time,
.operations-dashboard .dashboard-debug-meta span { padding: 1px 6px; font-size: 8px; }

.operations-dashboard .dashboard-summary-table { margin: 0; font-size: 10px; }
.operations-dashboard .dashboard-summary-table th { padding: 7px 5px; color: #64748a; border-bottom-color: #cfdbe8; font-size: 8px; letter-spacing: .03em; text-transform: uppercase; }
.operations-dashboard .dashboard-summary-table td { padding: 7px 5px; border-bottom-color: #e5ebf2; }
.operations-dashboard .dashboard-summary-table tbody tr:hover { background: #f4f8fe; }
.operations-dashboard .dashboard-summary-table tfoot th { padding: 8px 5px; border-top: 1px solid #cad7e5; color: #17243a; font-size: 9px; }
.operations-dashboard .dashboard-summary-table th:last-child,
.operations-dashboard .dashboard-summary-table td:last-child { text-align: right; }

.operations-dashboard .dashboard-secondary-grid { margin-top: 1px !important; }
.operations-dashboard .dashboard-secondary-grid > .col-xl-7 { width: 64%; }
.operations-dashboard .dashboard-secondary-grid > .col-xl-5 { width: 36%; }
.operations-dashboard .dashboard-secondary-stack { gap: 10px; }
.operations-dashboard .dashboard-progress-panel { padding: 14px 16px; }
.operations-dashboard .run-strip { gap: 6px; }
.operations-dashboard .run-strip span,
.operations-dashboard .summary-pill { padding: 4px 7px; border-radius: 5px; font-size: 9px; }

.operations-dashboard .table-responsive { max-height: 310px; overflow: auto; }
.operations-dashboard .table { margin-bottom: 0; color: #26364c; font-size: 9px; }
.operations-dashboard .table thead { position: sticky; top: 0; z-index: 2; background: #f7f9fc; }
.operations-dashboard .table th { padding: 8px 7px; color: #627188; border-bottom-color: #ccd8e5; font-size: 8px; font-weight: 800; letter-spacing: .025em; text-transform: uppercase; }
.operations-dashboard .table td { padding: 8px 7px; border-bottom-color: #e5eaf0; }
.operations-dashboard .table-hover > tbody > tr:hover > * { --bs-table-bg-state: #f3f7fd; }
.operations-dashboard .table td:nth-child(3) { font-weight: 700; text-transform: capitalize; }

.operations-dashboard .dashboard-table-status {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  border: 1px solid #c8d9ee;
  border-radius: 5px;
  color: #265a9f;
  background: #edf5ff;
  font-size: 8px;
  line-height: 1;
}
.operations-dashboard .dashboard-table-status-completed { color: #187442; border-color: #b9e5c9; background: #e9f9ef; }
.operations-dashboard .dashboard-table-status-failed { color: #a62b39; border-color: #f0c0c6; background: #fff0f2; }
.operations-dashboard .dashboard-table-status-running { color: #1859ae; border-color: #b9d5fb; background: #ebf4ff; }

.operations-dashboard .dashboard-table-footer {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 2px 0;
  color: #728097;
  font-size: 8px;
}
.operations-dashboard .dashboard-page-controls { display: inline-flex; align-items: center; gap: 4px; }
.operations-dashboard .dashboard-page-btn {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  padding: 0;
  border: 1px solid #d7e0eb;
  border-radius: 5px;
  color: #42526a;
  background: #fff;
  font-size: 9px;
  transition: color .16s ease, border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.operations-dashboard .dashboard-page-btn:hover:not(:disabled) { color: #0f61da; border-color: #9dc3f8; background: #f3f8ff; }
.operations-dashboard .dashboard-page-btn.is-active { color: #fff; border-color: #1267e8; background: #1267e8; box-shadow: 0 3px 8px rgba(18,103,232,.18); }
.operations-dashboard .dashboard-page-btn:disabled { opacity: .42; cursor: default; }

.operations-dashboard [data-run-strip] { min-height: 44px; }
.operations-dashboard .dashboard-empty { min-height: 66px; font-size: 10px; }

@media (max-width: 1450px) {
  :root { --ops-sidebar: 210px; }
  .tf4-dashboard-main { padding: 0 20px 28px !important; }
  .operations-dashboard .dashboard-hero { margin-inline: -20px !important; padding-inline: 20px; }
  .tf4-ops-brand { padding-inline: 15px; }
  .tf4-ops-brand-mark { font-size: 26px; }
  .tf4-ops-nav-link { min-height: 31px; padding-block: 6px; font-size: 10px; }
  .operations-dashboard .metric-value { font-size: 24px; }
  .operations-dashboard .dashboard-metric { min-height: 112px; }
}

@media (max-width: 1199px) {
  .tf4-dashboard-body { min-width: 1024px; }
  .operations-dashboard .dashboard-secondary-grid > .col-xl-7,
  .operations-dashboard .dashboard-secondary-grid > .col-xl-5 { width: 100%; }
  .operations-dashboard .dashboard-primary-grid > .col-xl-8 { width: 67%; }
  .operations-dashboard .dashboard-primary-grid > .col-xl-4 { width: 33%; }
  .operations-dashboard .dashboard-status-grid-auto { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .tf4-ops-nav-link,
  .operations-dashboard .btn,
  .operations-dashboard .panel,
  .operations-dashboard .dashboard-metric,
  .operations-dashboard .dashboard-progress-bar { transition: none !important; animation: none !important; }
}
