@import "./workspacePatterns.css";
/* Shared presentation for operational screens, including existing application class names. */
.field {
  display: grid;
  align-content: start;
  gap: 6px;
}

.field > span {
  color: var(--sidebar-text);
  font-size: 13px;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: var(--ods-button-height);
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--ods-radius-sm);
  background-color: var(--control-surface);
  color: var(--text);
  font-size: 13px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.field select,
.table-filter-field select,
.page-size-field select {
  appearance: none;
  background-image: var(--ods-select-arrow);
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 12px 12px;
  padding-right: 34px;
}

.field input::placeholder {
  color: var(--muted-soft);
}

.readonly-field-value {
  display: flex;
  min-height: var(--ods-button-height);
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--ods-radius-sm);
  background: var(--surface-strong);
  color: var(--sidebar-text);
  padding: 7px 10px;
  font-size: 13px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38);
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  transform: translateY(-1px);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--ring);
}

.workspace-shell {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--ods-sidebar-width) minmax(0, 1fr);
  background: #f7f7f8;
}

.workspace-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 24px;
  min-height: 0;
  padding: 20px 10px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  overflow: hidden;
}

.workspace-sidebar-main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 24px;
  min-height: 0;
}

.workspace-brand-lockup {
  padding: 0 10px;
}

.workspace-brand {
  width: 132px;
}

.workspace-nav {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 0;
  overflow-y: auto;
}

.sidebar-section {
  display: grid;
  grid-template-rows: auto auto;
  gap: 8px;
}

.sidebar-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 10px;
}

.sidebar-section-title {
  margin: 0;
  color: var(--sidebar-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: uppercase;
}

.sidebar-nav-list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-nav-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: var(--ods-button-height);
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: var(--ods-radius-sm);
  background: transparent;
  color: var(--sidebar-text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.4;
  text-align: left;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.sidebar-nav-button:hover {
  background: var(--sidebar-hover);
  border-color: rgba(228, 228, 235, 0.92);
}

.sidebar-nav-button.is-current {
  background: #ffffff;
  border-color: var(--sidebar-border);
  color: var(--sidebar-text-strong);
}

.sidebar-nav-button.is-group-active {
  color: var(--sidebar-text-strong);
}

.sidebar-nav-button:focus-visible,
.sidebar-account-button:focus-visible,
.bug-report-button:focus-visible,
.primary-button:focus-visible,
.ghost-button:focus-visible,
.icon-button:focus-visible,
.table-search-field input:focus-visible,
.table-filter-field select:focus-visible,
.page-size-field select:focus-visible,
.operations-table-sort-button:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--ring);
}

.sidebar-nav-icon {
  display: inline-flex;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.sidebar-nav-group-item {
  display: grid;
  gap: 2px;
}

.sidebar-nav-group-toggle {
  justify-content: flex-start;
}

.sidebar-nav-group-toggle > span:nth-child(2) {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-nav-chevron {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  color: var(--sidebar-muted);
  transition: transform 160ms ease;
}

.sidebar-nav-chevron.is-expanded {
  transform: rotate(90deg);
}

.sidebar-nav-sublist {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0 0 0 26px;
  list-style: none;
}

.sidebar-nav-child-button {
  min-height: var(--ods-button-height);
  gap: 8px;
  padding: 6px 10px;
  font-size: 14px;
}

.sidebar-nav-child-marker {
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--sidebar-muted);
  opacity: 0.68;
}

.sidebar-nav-child-button.is-current .sidebar-nav-child-marker {
  background: var(--sidebar-text-strong);
  opacity: 1;
}

.sidebar-footer {
  display: grid;
  gap: 2px;
  padding: 0 10px;
}

.sidebar-credit {
  display: grid;
  justify-items: start;
  gap: 5px;
  margin: 7px 0 10px 1px;
  color: var(--ods-neutral-500);
}

.sidebar-credit-copy {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  color: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.25;
}

.sidebar-credit-heart {
  width: 13px;
  height: 13px;
  color: currentColor;
  fill: currentColor;
  transform-origin: center;
}

.sidebar-credit-logo {
  display: block;
  width: 116px;
  max-width: 100%;
  opacity: 0.48;
  filter: grayscale(1);
}

.sidebar-credit:hover .sidebar-credit-heart {
  animation: sidebar-heartbeat 820ms ease-in-out infinite;
}

@keyframes sidebar-heartbeat {
  0%,
  38%,
  72%,
  100% {
    transform: scale(1);
  }

  18%,
  54% {
    transform: scale(1.24);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar-credit:hover .sidebar-credit-heart {
    animation: none;
  }
}

.sidebar-account-button {
  width: 100%;
  display: grid;
  gap: 2px;
  padding: 6px;
  margin: 0 0 2px -6px;
  border: 1px solid transparent;
  border-radius: var(--ods-radius-sm);
  background: transparent;
  text-align: left;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.sidebar-account-button:hover {
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(228, 228, 235, 0.92);
}

.sidebar-account-button.is-current {
  background: #ffffff;
  border-color: var(--sidebar-border);
}

.sidebar-footer-title,
.sidebar-footer-copy {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0;
  line-height: 1.4;
}

.sidebar-footer-title {
  color: var(--sidebar-text-strong);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-footer-copy {
  color: var(--sidebar-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-signout {
  justify-self: start;
  min-height: 28px;
  margin: 4px 0 0 -6px;
  padding: 0 6px;
  border: 1px solid transparent;
  border-radius: var(--ods-radius-sm);
  background: transparent;
  color: var(--sidebar-text);
  font-size: 14px;
  font-weight: 600;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.sidebar-signout:hover {
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(228, 228, 235, 0.92);
  color: var(--sidebar-text-strong);
}

.sidebar-signout:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--ring);
}

.workspace-content {
  min-width: 0;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(250, 250, 251, 0.98)), var(--content-bg);
}

.workspace-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px;
  border-bottom: 1px solid var(--sidebar-border);
  background: rgba(255, 255, 255, 0.96);
}

.breadcrumbs {
  display: inline-flex;
  align-items: center;
  flex: 1 1 auto;
  gap: 10px;
  min-width: 0;
}

.breadcrumbs {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.breadcrumb-segment {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.breadcrumb-item {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.breadcrumbs strong {
  color: var(--sidebar-text-strong);
  font-weight: 700;
}

.breadcrumb-identifier {
  font-family: var(--font-mono);
  font-size: 13px;
}

.breadcrumb-separator {
  color: var(--sidebar-muted);
}

.workspace-topbar-actions {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
  min-width: 0;
}

.bug-report-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--bug-report);
  border-radius: var(--ods-radius-sm);
  background: var(--bug-report);
  color: #fff8f9;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(173, 89, 96, 0.12);
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.bug-report-button svg {
  width: 16px;
  height: 16px;
}

.bug-report-button:hover {
  border-color: var(--bug-report-hover);
  background: var(--bug-report-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(148, 70, 77, 0.16);
}

.bug-report-button:focus-visible {
  outline: none;
  border-color: var(--bug-report);
  box-shadow: 0 0 0 4px var(--bug-report-ring);
}

.dashboard-body {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 24px;
  padding: 32px;
}

.dashboard-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 32px;
  align-items: end;
}

.dashboard-heading h1,
.panel-heading h2 {
  margin: 0;
  color: var(--sidebar-text-strong);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
}

.dashboard-heading h1 {
  font-size: 34px;
}

.dashboard-heading p {
  margin: 0;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: uppercase;
}

.detail-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.field input[readonly],
.field textarea[readonly] {
  background: var(--control-surface-soft);
  color: var(--muted);
  cursor: default;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(25, 28, 32, 0.22);
  backdrop-filter: blur(2px);
}

.modal-panel {
  width: min(100%, 560px);
  max-height: min(720px, calc(100vh - 48px));
  overflow: auto;
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--ods-radius-sm);
  background: var(--surface-raised);
  box-shadow: 0 24px 64px rgba(25, 28, 32, 0.18);
}

.modal-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.modal-heading h2 {
  margin: 0;
  color: var(--sidebar-text-strong);
  font-size: 20px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.modal-close-button {
  width: 34px;
  min-height: 32px;
  border-radius: var(--ods-radius-sm);
}

.modal-close-button svg {
  width: 16px;
  height: 16px;
}

.modal-form,
.modal-form-grid {
  display: grid;
  gap: 12px;
}

.modal-form-grid .field-full {
  grid-column: 1 / -1;
}

.modal-action-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.panel-heading h2 {
  font-size: 20px;
}

.table-search-field {
  flex: 1 1 260px;
  display: grid;
  gap: 6px;
}

.table-search-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.table-search-field input {
  width: 100%;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--ods-radius-sm);
  background: var(--control-surface);
  color: var(--text);
  font-size: 13px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.table-search-field input::placeholder {
  color: var(--muted-soft);
}

.table-filter-field {
  display: grid;
  gap: 6px;
}

.table-filter-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.table-filter-field input,
.table-filter-field select {
  width: 100%;
  min-height: 32px;
  padding-left: 10px;
  border: 1px solid var(--border);
  border-radius: var(--ods-radius-sm);
  background-color: var(--control-surface);
  color: var(--sidebar-text-strong);
  font-size: 13px;
  font-weight: 600;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.table-filter-field input::placeholder {
  color: var(--muted-soft);
}

.table-filter-field input:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--ring);
}

.operations-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--ods-radius-sm);
  background: var(--surface-raised);
}

.operations-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  table-layout: fixed;
}

.operations-table th,
.operations-table td {
  height: 34px;
  overflow: hidden;
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.operations-table th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.operations-table td {
  color: var(--sidebar-text-strong);
  font-size: 13px;
}

.operations-table tr:last-child td {
  border-bottom: none;
}

.operations-table tbody tr:hover td {
  background: var(--surface-strong);
}

.operations-table tbody tr.is-selected td {
  background: color-mix(in srgb, var(--accent) 9%, var(--surface-raised));
}

.operations-table tbody tr.is-selected:hover td {
  background: color-mix(in srgb, var(--accent) 13%, var(--surface-raised));
}

.operations-table-selection-column {
  width: 42px;
}

.operations-table th.operations-table-selection-cell,
.operations-table td.operations-table-selection-cell {
  padding-right: 6px;
  padding-left: 10px;
  overflow: visible;
  text-align: center;
}

.operations-table-selection-cell input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.operations-table tbody tr.is-clickable {
  cursor: pointer;
}

.operations-table tbody tr.is-clickable:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.operations-table tbody tr.is-clickable:focus-visible td {
  background: var(--surface-strong);
}

.operations-table-sort-button {
  width: 100%;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--ods-radius-sm);
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
}

.operations-table-sort-button:hover {
  color: var(--sidebar-text-strong);
}

.operations-table-sort-indicator {
  display: inline-flex;
  flex: 0 0 18px;
  align-items: center;
  justify-content: flex-end;
  color: var(--accent);
}

.operations-table-sort-icon {
  width: 16px;
  height: 16px;
  opacity: 0;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  transform-origin: center;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.operations-table-sort-button:hover .operations-table-sort-icon {
  opacity: 0.45;
}

.operations-table-sort-icon.is-visible,
.operations-table-sort-button:hover .operations-table-sort-icon.is-visible {
  opacity: 1;
}

.operations-table-sort-icon.is-descending {
  transform: rotate(180deg);
}

.operations-table-empty {
  color: var(--muted);
}

.danger-button {
  color: var(--danger-text);
}

.page-size-field {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 32px;
  text-transform: uppercase;
}

.page-size-field select {
  min-height: 32px;
  padding-left: 10px;
  border: 1px solid var(--border);
  border-radius: var(--ods-radius-sm);
  background-color: var(--control-surface);
  color: var(--sidebar-text-strong);
  font-size: 13px;
  font-weight: 700;
}

.primary-button,
.ghost-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--ods-button-height);
  border-radius: var(--ods-radius-sm);
  font-size: 13px;
  font-weight: 700;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.primary-button,
.ghost-button {
  padding: 0 12px;
}

.primary-button {
  border: 1px solid var(--control-primary);
  background: var(--control-primary);
  color: #f8f8fb;
  box-shadow: 0 8px 20px rgba(40, 41, 61, 0.14);
}

.ghost-button {
  border: 1px solid var(--border);
  background: var(--control-surface-soft);
  color: var(--sidebar-text-strong);
}

.icon-button {
  width: 34px;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--control-surface-soft);
  color: var(--sidebar-text);
}

.icon-button svg {
  width: 16px;
  height: 16px;
}

.primary-button:hover,
.ghost-button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
}

.ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

@media (max-width: 1120px) {
  .workspace-shell {
    grid-template-columns: var(--ods-sidebar-width) minmax(0, 1fr);
  }

  .dashboard-heading {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .workspace-shell {
    grid-template-columns: 1fr;
  }

  .workspace-sidebar {
    position: static;
    height: auto;
    grid-template-rows: auto;
    gap: 16px;
    border-right: none;
    border-bottom: 1px solid var(--sidebar-border);
  }

  .workspace-sidebar-main {
    gap: 16px;
  }

  .workspace-nav {
    overflow: visible;
  }

  .sidebar-nav-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace-topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 16px;
  }

  .workspace-topbar-actions {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }

  .dashboard-body {
    padding: 20px 16px;
  }

  .dashboard-heading h1 {
    font-size: 28px;
  }

  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .table-search-field {
    width: 100%;
  }

  .modal-backdrop {
    padding: 16px;
  }

  .modal-panel {
    max-height: calc(100vh - 32px);
  }

  .modal-action-row > .primary-button,
  .modal-action-row > .ghost-button {
    flex: 1 1 140px;
  }
}

@media (max-width: 460px) {
  .sidebar-nav-list {
    grid-template-columns: 1fr;
  }
}

.workspace-shell {
  background: var(--ods-neutral-25);
}
.workspace-sidebar {
  gap: 18px;
  padding: 18px 10px 12px;
  background: var(--ods-neutral-25);
}
.workspace-sidebar-main {
  gap: 20px;
}
.workspace-brand-lockup {
  padding: 0 9px;
}
.workspace-brand {
  width: 126px;
}
.sidebar-mobile-toggle {
  display: none;
}
.workspace-nav {
  gap: 16px;
}
.sidebar-section {
  gap: 6px;
}
.sidebar-section-title {
  color: var(--ods-neutral-700);
  font-size: 11px;
  font-weight: 600;
}
.sidebar-nav-button,
.sidebar-nav-child-button {
  min-height: 34px;
  padding: 6px 9px;
  border-radius: var(--ods-radius-sm);
  font-size: var(--ods-font-size-nav);
  font-weight: 500;
}
.sidebar-nav-button:hover {
  border-color: var(--ods-violet-border);
  color: var(--ods-violet);
}
.sidebar-nav-button.is-current {
  border-color: var(--ods-violet-border);
  background: var(--ods-white);
  color: var(--ods-violet);
  font-weight: 600;
  box-shadow: var(--ods-shadow-1);
}
.sidebar-nav-button.is-group-active {
  color: var(--ods-violet);
}
.sidebar-nav-icon,
.sidebar-nav-icon svg {
  width: 17px;
  height: 17px;
}
.sidebar-nav-sublist {
  padding-left: 24px;
}
.sidebar-nav-child-marker {
  background: var(--ods-violet-muted);
}
.sidebar-nav-child-button.is-current .sidebar-nav-child-marker {
  background: var(--ods-violet);
}
.sidebar-footer {
  border-top: 1px solid var(--ods-neutral-200);
  padding-top: 9px;
}
.sidebar-footer-title,
.sidebar-footer-copy,
.sidebar-signout {
  font-size: 13px;
}

.workspace-content {
  background: var(--ods-neutral-25);
}
.workspace-topbar {
  min-height: var(--ods-header-height);
  padding: 0 16px;
  background: var(--ods-white);
}
.breadcrumbs {
  color: var(--ods-neutral-700);
  font-size: 13px;
  font-weight: 400;
}
.breadcrumbs strong {
  font-weight: 500;
}
.breadcrumb-segment {
  gap: 7px;
}
.bug-report-button {
  min-height: 28px;
  padding: 0 9px;
  border-color: var(--ods-neutral-200);
  background: var(--ods-white);
  color: var(--ods-neutral-700);
  font-size: 12px;
  font-weight: 500;
  box-shadow: none;
}
.bug-report-button:hover {
  border-color: var(--ods-violet-border);
  background: var(--ods-violet-surface);
  color: var(--ods-violet);
  transform: none;
  box-shadow: none;
}
.bug-report-button svg {
  width: 14px;
  height: 14px;
}

.dashboard-body,
.page-body,
.detail-page-body {
  gap: var(--ods-space-section);
  padding: var(--ods-space-page);
}
.dashboard-heading h1 {
  font-size: 24px;
  font-weight: 600;
}
.panel-heading h2 {
  font-size: 17px;
  font-weight: 600;
}
.eyebrow {
  color: var(--ods-violet);
  font-size: 10px;
  font-weight: 600;
}

.workspace-shell.is-live-view {
  height: 100vh;
  min-height: 0;
  overflow: hidden;
}
.workspace-shell.is-live-view .workspace-content {
  min-height: 0;
}

.field > span,
.table-search-field span,
.table-filter-field span,
.page-size-field span {
  color: var(--ods-neutral-700);
  font-size: var(--ods-font-size-label);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.page-size-field select {
  min-height: var(--ods-control-height);
  padding: 7px 11px;
  border: 1px solid var(--ods-neutral-200);
  border-radius: var(--ods-radius-sm);
  background-color: var(--ods-white);
  color: var(--ods-neutral-800);
  font-size: 13px;
  font-weight: 400;
  box-shadow: 0 1px 2px rgb(27 27 31 / 5%);
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease;
}
.page-size-field select:focus-visible {
  border-color: var(--ods-violet);
  box-shadow: var(--ods-focus);
}
.readonly-field-value {
  min-height: var(--ods-control-height);
  border-radius: var(--ods-radius-sm);
  background: var(--ods-neutral-25);
  box-shadow: none;
}
/* Keep legacy controls on the same recipe as Button and ButtonLink. */
:is(.primary-button, .ghost-button, .icon-button, .danger-button,
.table-toolbar-action-button):not(.auth-screen *) {
  min-height: var(--ods-button-height);
  font: 500 var(--ods-font-size-table)/1.3 var(--ods-font-sans);
  box-shadow: none;
  text-decoration: none;
  white-space: nowrap;
}
:is(.primary-button, .ghost-button, .icon-button, .danger-button,
.table-toolbar-action-button):not(.auth-screen *):focus-visible {
  outline: 0;
  border-color: var(--ods-violet);
  box-shadow: var(--ods-focus);
}
:is(.field, .ods-field, .ods-form-section, .ods-modal) input[type="checkbox"] {
  accent-color: var(--ods-violet);
}
.ods-text-link {
  color: var(--ods-violet);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ods-inline-feedback {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--ods-red-100);
  border-radius: var(--ods-radius-sm);
  color: var(--ods-red-700);
  background: var(--ods-neutral-25);
}
.ods-inline-feedback p { margin: 0; }

.primary-button:not(.auth-screen *) {
  border-color: var(--ods-violet);
  background: var(--ods-violet);
  color: var(--ods-white);
}
.primary-button:not(.auth-screen *):hover:not(:disabled) {
  border-color: var(--ods-violet-hover);
  background: var(--ods-violet-hover);
  transform: none;
}
.ghost-button:not(.auth-screen *),
.icon-button:not(.auth-screen *) {
  border-color: var(--ods-neutral-300);
  background: var(--ods-white);
  color: var(--ods-neutral-800);
}
.ghost-button:not(.auth-screen *):hover:not(:disabled),
.icon-button:not(.auth-screen *):hover:not(:disabled) {
  border-color: var(--ods-violet-border);
  background: var(--ods-violet-surface);
  color: var(--ods-violet);
  transform: none;
}
.danger-button:not(.auth-screen *) {
  border-color: var(--ods-red-700);
  background: var(--ods-red-700);
  color: var(--ods-white);
}

.operations-table-wrap {
  border-color: var(--ods-neutral-200);
  border-radius: var(--ods-radius-md);
  box-shadow: var(--ods-shadow-1);
}
.operations-table th,
.operations-table td {
  height: var(--ods-table-row-height);
  padding: 7px 12px;
  border-bottom-color: var(--ods-neutral-200);
}
.operations-table th {
  background: var(--ods-neutral-25);
  color: var(--ods-neutral-700);
  font-size: var(--ods-font-size-table-heading);
  font-weight: 600;
  text-transform: none;
}
.operations-table td {
  color: var(--ods-neutral-800);
  font-size: var(--ods-font-size-table);
}
.operations-table tbody tr:hover td {
  background: var(--ods-violet-surface);
}
.operations-table-sort-button {
  font-weight: 500;
  text-transform: none;
}
.operations-table tbody tr.is-selected td {
  background: var(--ods-violet-surface);
}

.modal-backdrop {
  z-index: 100;
  background: rgb(18 18 27 / 42%);
  backdrop-filter: none;
}
.modal-panel {
  padding: 20px;
  border-color: var(--ods-neutral-200);
  border-radius: var(--ods-radius-md);
  box-shadow: var(--ods-shadow-2);
}
.modal-heading h2 {
  font-size: 18px;
  font-weight: 600;
}
.modal-close-button {
  border-radius: var(--ods-radius-sm);
}

@media (max-width: 760px) {
  .workspace-shell.is-live-view {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }
  .workspace-sidebar {
    position: sticky;
    top: 0;
    z-index: 30;
    gap: 0;
    padding: 10px 12px;
    box-shadow: var(--ods-shadow-1);
  }
  .workspace-sidebar-main {
    gap: 0;
    grid-template-rows: auto auto;
  }
  .workspace-brand-lockup {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--ods-header-height);
    padding: 0 4px;
  }
  .workspace-brand {
    width: 110px;
  }
  .sidebar-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--ods-button-height);
    padding: 0 12px;
    border: 1px solid var(--ods-neutral-300);
    border-radius: var(--ods-radius-sm);
    background: var(--ods-white);
    color: var(--ods-neutral-800);
    font: 500 12px/1 var(--ods-font-sans);
    cursor: pointer;
  }
  .sidebar-mobile-toggle:focus-visible {
    outline: 0;
    box-shadow: var(--ods-focus);
  }
  .workspace-sidebar:not(.is-mobile-nav-open) :is(.workspace-nav, .sidebar-footer) {
    display: none;
  }
  .workspace-sidebar.is-mobile-nav-open {
    gap: 12px;
  }
  .workspace-sidebar.is-mobile-nav-open .workspace-sidebar-main {
    gap: 12px;
  }
  .workspace-sidebar.is-mobile-nav-open .workspace-nav {
    max-height: min(58vh, 520px);
    overflow-y: auto;
    padding: 4px 0;
  }
  .workspace-sidebar.is-mobile-nav-open .sidebar-footer {
    border-top: 1px solid var(--ods-neutral-200);
    padding: 10px 4px 0;
  }
  .dashboard-body,
  .page-body,
  .detail-page-body {
    padding: 14px;
  }
}

:root {
  color-scheme: light;
  font-family: var(--ods-font-sans);
  font-weight: 400;
  line-height: 1.5;
  --font-mono: var(--ods-font-mono);
  --bg: var(--ods-background);
  --surface: var(--ods-surface);
  --surface-strong: var(--ods-neutral-50);
  --surface-raised: var(--ods-surface);
  --text: var(--ods-text);
  --muted: var(--ods-text-muted);
  --muted-soft: var(--ods-neutral-700);
  --accent: var(--ods-violet);
  --accent-deep: var(--ods-primary);
  --accent-soft: var(--ods-violet-surface);
  --border: var(--ods-border);
  --border-strong: var(--ods-neutral-300);
  --ring: rgb(86 75 170 / 18%);
  --sidebar-bg: var(--ods-background);
  --sidebar-border: var(--ods-border);
  --sidebar-text: var(--ods-neutral-700);
  --sidebar-text-strong: var(--ods-text);
  --sidebar-muted: var(--ods-neutral-700);
  --sidebar-hover: var(--ods-violet-surface);
  --content-bg: var(--ods-background);
  --control-surface: var(--ods-surface);
  --control-surface-soft: var(--ods-surface);
  --control-primary: var(--ods-violet);
  --good-bg: var(--ods-success-surface);
  --good-text: var(--ods-green-700);
  --info-bg: var(--ods-info-surface);
  --info-text: var(--ods-blue-700);
  --warn-bg: var(--ods-warning-surface);
  --warn-text: var(--ods-orange-700);
  --danger-bg: var(--ods-danger-surface);
  --danger-text: var(--ods-red-700);
  --bug-report: var(--ods-violet);
  --bug-report-hover: var(--ods-violet-hover);
  --bug-report-ring: var(--ods-focus);
}
body {
  margin: 0;
  background: var(--ods-background);
  color: var(--ods-text);
  font-family: var(--ods-font-sans);
  font-size: var(--ods-font-size-body);
}
* {
  box-sizing: border-box;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
img {
  max-width: 100%;
}
.ods-workspace {
  color: var(--ods-text);
  font: 400 var(--ods-font-size-body)/1.5 var(--ods-font-sans);
}
.ods-sidebar {
  border-right: 1px solid var(--ods-border);
  overflow: hidden;
}
.ods-sidebar__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 9px;
}
.ods-sidebar__brand > img {
  width: 126px;
  height: auto;
}
.workspace-nav {
  min-height: 0;
  overflow-y: auto;
}
.sidebar-nav-sublist[hidden] {
  display: none;
}
.sidebar-nav-button {
  text-decoration: none;
}
.sidebar-nav-icon,
.sidebar-nav-icon svg {
  flex-shrink: 0;
}
.sidebar-nav-chevron {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.sidebar-account-button {
  text-decoration: none;
}
.sidebar-signout {
  font-family: var(--ods-font-sans);
}
.breadcrumb-item {
  text-decoration: none;
  color: inherit;
}
.ods-workspace--viewport {
  height: 100vh;
  min-height: 0;
  overflow: hidden;
}
.ods-workspace--viewport .workspace-content {
  min-height: 0;
}
.ods-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--ods-space-section);
  margin-bottom: 18px;
}
.ods-page-header h1 {
  margin: 0;
  color: var(--ods-text);
  font-size: 24px;
  line-height: 1.3;
  font-weight: 600;
}
.ods-page-header p {
  margin: 6px 0 0;
  color: var(--ods-text-muted);
  font-size: 12px;
}
.ods-page-header p.eyebrow {
  color: var(--ods-violet);
}
.ods-page-header--operations h1 {
  line-height: 1.1;
}
.ods-page-header--operations p.eyebrow {
  margin: 0;
  color: var(--ods-text-muted);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  text-transform: uppercase;
}
.ods-detail-list {
  margin: 0;
}
.ods-detail-list > div {
  display: grid;
  grid-template-columns: minmax(110px, 38%) minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--ods-border);
}
.ods-detail-list > div:last-child {
  border-bottom: 0;
}
.ods-detail-list dt {
  color: var(--ods-text-muted);
  font-size: 12px;
}
.ods-detail-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
}
.ods-detail-list--summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 12px 24px;
}
.ods-detail-list--summary > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  border: 0;
  min-width: 0;
}
.operations-table-wrap.ods-table-frame--plain {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.ods-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--ods-border);
}
.ods-tabs :is(a, button) {
  padding: 10px 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--ods-text-muted);
  text-decoration: none;
}
.ods-tabs [aria-current] {
  border-bottom-color: var(--ods-violet);
  color: var(--ods-violet);
}
.ods-tabs :is(a, button):focus-visible {
  outline: none;
  box-shadow: var(--ods-focus);
}
.operations-table-expanded-row > td {
  height: auto;
  white-space: normal;
  overflow: visible;
}
.ods-auth__actions {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 3;
}
.ods-auth__brand {
  display: flex;
  justify-content: center;
  align-items: center;
}
@media (max-width: 760px) {
  .ods-sidebar {
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--ods-border);
  }
  .ods-sidebar__brand {
    min-height: 42px;
    padding: 0 4px;
  }
  .ods-sidebar.is-mobile-nav-open .workspace-nav {
    max-height: 58svh;
  }
  .ods-workspace--viewport {
    height: auto;
    min-height: 100svh;
    overflow: visible;
  }
  .ods-detail-list > div {
    grid-template-columns: minmax(100px, 38%) minmax(0, 1fr);
  }
}

/* Distribution charts use the same presentation in every operations workspace. */
.ods-chart-card {
  display: grid;
  gap: 10px;
  align-self: start;
  padding: 12px;
  border: 1px solid var(--ods-neutral-200);
  border-radius: 8px;
  background: var(--ods-white);
}

.ods-chart-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.ods-chart-card h2 {
  margin: 0;
  color: var(--ods-neutral-800);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ods-chart-expand-button {
  width: 28px;
  min-height: 28px;
  flex: 0 0 auto;
  border-radius: 6px;
}

.ods-chart-expand-button svg {
  width: 14px;
  height: 14px;
}

.ods-chart-layout {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.ods-chart-pie-wrap {
  position: relative;
  width: 76px;
  height: 76px;
}

.ods-chart-pie {
  width: 100%;
  height: 100%;
  border: 1px solid var(--ods-neutral-200);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.58);
}

.ods-chart-empty-slice {
  fill: var(--ods-violet-surface);
}

.ods-chart-slice {
  cursor: pointer;
  outline: none;
  stroke: #ffffff;
  stroke-width: 0.9;
  transition:
    filter 160ms ease,
    opacity 160ms ease,
    stroke-width 160ms ease;
}

.ods-chart-slice:hover,
.ods-chart-slice:focus-visible {
  filter: brightness(0.94);
  stroke-width: 1.8;
}

.ods-chart-slice.is-active {
  filter: saturate(1.16);
  stroke: var(--ods-neutral-800);
  stroke-width: 2.2;
}

.ods-chart-legend {
  display: grid;
  gap: 4px;
  min-width: 0;
  max-height: 104px;
  overflow: auto;
  overflow-x: hidden;
}

.ods-chart-total {
  margin: 0 0 1px;
  color: var(--ods-text-muted);
  font-size: 12px;
}

.ods-chart-legend-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-height: 22px;
  padding: 2px 3px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--ods-neutral-800);
  cursor: pointer;
  font-size: 13px;
  line-height: 1.25;
  text-align: left;
}

.ods-chart-legend-row:hover:not(:disabled),
.ods-chart-legend-row:focus-visible {
  background: var(--ods-neutral-100);
  outline: none;
}

.ods-chart-legend-row.is-active {
  background: var(--ods-violet-surface);
}

.ods-chart-legend-row:disabled {
  cursor: default;
  opacity: 1;
}

.ods-chart-legend-row strong {
  color: var(--ods-neutral-800);
  font-family: var(--ods-font-mono);
  font-size: 13px;
  font-weight: 500;
}

.ods-chart-legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.ods-chart-tooltip {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 1px;
  min-width: max-content;
  padding: 6px 8px;
  border: 1px solid rgba(40, 41, 61, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 28px rgba(25, 28, 32, 0.16);
  color: var(--ods-neutral-800);
  font-size: 12px;
  line-height: 1.25;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 8px));
  white-space: nowrap;
}

.ods-chart-tooltip strong {
  font-size: 12px;
  font-weight: 700;
}

.ods-chart-tooltip span {
  color: var(--ods-text-muted);
  font-family: var(--ods-font-mono);
  font-size: 11px;
}

.ods-chart-layout-expanded {
  grid-template-columns: minmax(260px, min(40vw, 380px)) minmax(240px, 1fr);
  gap: 28px;
  align-items: center;
}

.ods-chart-pie-wrap-expanded {
  width: min(100%, 380px, calc(100vh - 190px));
  height: auto;
  aspect-ratio: 1;
  justify-self: center;
}

.ods-chart-legend-expanded {
  max-height: none;
  overflow: visible;
  gap: 6px;
}

.ods-chart-legend-expanded .ods-chart-total {
  font-size: 14px;
}

.ods-chart-legend-expanded .ods-chart-legend-row {
  min-height: 30px;
  padding: 5px 6px;
  font-size: 14px;
}

.ods-chart-legend-row > span:nth-child(2) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .ods-chart-layout-expanded {
    grid-template-columns: minmax(0, 1fr);
  }
  .ods-chart-pie-wrap-expanded {
    width: min(100%, 280px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ods-chart-slice {
    transition: none;
  }
}

/* Readable activity shared by operational records. */
.ods-activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.ods-activity-entry {
  padding: 18px 0;
  border-bottom: 1px solid var(--ods-neutral-200);
  display: grid;
  gap: 10px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.ods-activity-entry:last-child {
  border-bottom: 0;
}
.ods-activity-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.ods-activity-header h3 {
  margin: 0;
  font-size: var(--ods-font-size-body);
  font-weight: 600;
}
.ods-activity-header p {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 5px 0 0;
  color: var(--ods-text-muted);
  font-size: var(--ods-font-size-label);
}
.ods-activity-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.ods-activity-changes {
  display: grid;
  gap: 8px;
  margin: 0;
  font-size: var(--ods-font-size-body);
}
.ods-activity-changes > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
}
.ods-activity-changes dt {
  color: var(--ods-text-muted);
}
.ods-activity-changes dd {
  margin: 0;
  white-space: pre-wrap;
}
.ods-activity-changes strong {
  font-weight: 500;
}
.ods-activity-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.ods-activity-comparison p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .ods-activity-comparison {
    grid-template-columns: 1fr;
  }
  .ods-activity-changes > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}
