/*================================================================================
	aCANStreamer — Operational ops theme overrides
	Scoped under html[data-operational-theme="1"]. Rollback: remove the attribute.
================================================================================*/

/* -------------------------------------------------------------------------- */
/* Tokens — light (default)                                                   */
/* -------------------------------------------------------------------------- */
html[data-operational-theme="1"] {
  --ops-background: #F4F4F5;
  --ops-surface: #FFFFFF;
  --ops-primary: #27272A;
  --ops-secondary: #71717A;
  --ops-border: #E4E4E7;
  --ops-accent: #0B5F3C;
  --ops-on-accent: #FFFFFF;
  --ops-on-primary: #FFFFFF;
  --ops-radius: 6px;

  /* Shared toolbar control rhythm (overrides Vuexy huge .btn + tiny *-sm) */
  --ops-control-h: 2.5rem;
  --ops-control-fs: 0.9375rem;
  --ops-control-px: 1rem;
  --ops-control-py: 0.5rem;

  --ops-background-rgb: 244, 244, 245;
  --ops-surface-rgb: 255, 255, 255;
  --ops-primary-rgb: 39, 39, 42;
  --ops-secondary-rgb: 113, 113, 122;
  --ops-border-rgb: 228, 228, 231;
  --ops-accent-rgb: 11, 95, 60;

  /* Remap Vuexy / Bootstrap brand vars away from purple */
  --primary: #27272A;
  --primary-rgb: 39, 39, 42;
  --bs-primary: #27272A;
  --bs-primary-rgb: 39, 39, 42;
}

/* Tokens — dark (html.dark-style or body.dark-layout) */
html[data-operational-theme="1"].dark-style,
html[data-operational-theme="1"]:has(body.dark-layout) {
  --ops-background: #09090B;
  --ops-surface: #18181B;
  --ops-primary: #FAFAFA;
  --ops-secondary: #A1A1AA;
  --ops-border: #3F3F46;
  --ops-accent: #3ECF8E;
  --ops-on-accent: #0A1F16;
  --ops-on-primary: #09090B;

  --ops-background-rgb: 9, 9, 11;
  --ops-surface-rgb: 24, 24, 27;
  --ops-primary-rgb: 250, 250, 250;
  --ops-secondary-rgb: 161, 161, 170;
  --ops-border-rgb: 63, 63, 70;
  --ops-accent-rgb: 62, 207, 142;

  --primary: #FAFAFA;
  --primary-rgb: 250, 250, 250;
  --bs-primary: #FAFAFA;
  --bs-primary-rgb: 250, 250, 250;
}

/* -------------------------------------------------------------------------- */
/* Base canvas                                                                */
/* -------------------------------------------------------------------------- */
html[data-operational-theme="1"] body {
  background: var(--ops-background);
  color: var(--ops-primary);
}

html[data-operational-theme="1"] .content,
html[data-operational-theme="1"] .content-wrapper,
html[data-operational-theme="1"] .app-content {
  background: transparent;
}

/* -------------------------------------------------------------------------- */
/* Surfaces — map Vuexy hardcoded whites to ops tokens via specificity        */
/* Vendor: .card { background-color:#FFF }, dark-layout { #10163A },          */
/* data-list-view rows { #FFF }. Win with html[data-operational-theme] +       */
/* equal-or-deeper selectors. Avoid !important except vendor utilities that   */
/* already ship with it (.bg-white).                                          */
/* -------------------------------------------------------------------------- */

html[data-operational-theme="1"] .card,
html[data-operational-theme="1"] .modal-content,
html[data-operational-theme="1"] .dropdown-menu {
  --bs-card-bg: var(--ops-surface);
  --bs-card-cap-bg: transparent;
  --bs-card-border-color: var(--ops-border);
  --bs-card-color: var(--ops-primary);
  background-color: var(--ops-surface);
  background-image: none;
  border: 1px solid var(--ops-border);
  border-radius: var(--ops-radius);
  color: var(--ops-primary);
  box-shadow: none;
}

/* Match Vuexy `.card .card-header` / Bootstrap `.card-header` fills */
html[data-operational-theme="1"] .card .card-header,
html[data-operational-theme="1"] .card .card-footer,
html[data-operational-theme="1"] .card .card-body,
html[data-operational-theme="1"] .card .card-content {
  background-color: transparent;
  background-image: none;
  color: var(--ops-primary);
  border-color: var(--ops-border);
}

html[data-operational-theme="1"] .card .card-footer {
  border-top: 1px solid var(--ops-border);
}

html[data-operational-theme="1"] .card .card-title,
html[data-operational-theme="1"] .card .card-text,
html[data-operational-theme="1"] .card h1,
html[data-operational-theme="1"] .card h2,
html[data-operational-theme="1"] .card h3,
html[data-operational-theme="1"] .card h4,
html[data-operational-theme="1"] .card h5,
html[data-operational-theme="1"] .card h6 {
  color: var(--ops-primary);
}

html[data-operational-theme="1"] .card .card-subtitle {
  color: var(--ops-secondary);
}

/* Nested card — Vuexy already forces box-shadow:none !important */
html[data-operational-theme="1"] .card .card {
  background-color: var(--ops-surface);
  border: 1px solid var(--ops-border);
}

html[data-operational-theme="1"] .card.card-transparent,
html[data-operational-theme="1"] .card-transparent {
  background-color: transparent;
  border-color: transparent;
  box-shadow: none;
}

/* colors.css: .bg-white { background-color:#FFF !important } — must match weight */
html[data-operational-theme="1"] .bg-white,
html[data-operational-theme="1"] .card.bg-white,
html[data-operational-theme="1"] .bg-white.card {
  background-color: var(--ops-surface) !important;
  color: var(--ops-primary);
}
html[data-operational-theme="1"] .bg-light,
html[data-operational-theme="1"] .card.bg-light {
  background-color: rgba(var(--ops-border-rgb), 0.55) !important;
  color: var(--ops-primary);
}

/* dark-layout.css: body.dark-layout .card { #10163A } */
html[data-operational-theme="1"] body.dark-layout .card,
html[data-operational-theme="1"].dark-style .card {
  background-color: var(--ops-surface);
  color: var(--ops-primary);
}
html[data-operational-theme="1"] body.dark-layout .card .card-header,
html[data-operational-theme="1"] body.dark-layout .card .card-footer,
html[data-operational-theme="1"] body.dark-layout .card .card-body {
  background-color: transparent;
  color: var(--ops-primary);
  border-color: var(--ops-border);
}

/* data-list-view.css: table.data-list-view.dataTable tbody tr { #FFF + shadow } */
html[data-operational-theme="1"] table.data-list-view.dataTable tbody tr,
html[data-operational-theme="1"] table.data-thumb-view.dataTable tbody tr {
  background-color: transparent;
  box-shadow: none;
  border-radius: 0;
  transform: none;
  transition: background-color 0.15s ease;
}
html[data-operational-theme="1"] table.data-list-view.dataTable tbody tr:hover,
html[data-operational-theme="1"] table.data-thumb-view.dataTable tbody tr:hover {
  background-color: rgba(var(--ops-border-rgb), 0.35);
  box-shadow: none;
  transform: none;
}
html[data-operational-theme="1"] table.data-list-view.dataTable tbody tr td,
html[data-operational-theme="1"] table.data-thumb-view.dataTable tbody tr td {
  background-color: transparent;
  color: var(--ops-primary);
  border-color: var(--ops-border);
  border-radius: 0;
}
html[data-operational-theme="1"] table.data-list-view.dataTable thead th,
html[data-operational-theme="1"] table.data-thumb-view.dataTable thead th,
html[data-operational-theme="1"] .card .table thead th {
  background-color: var(--ops-surface);
  color: var(--ops-secondary);
  border-color: var(--ops-border);
}

/* Selected rows — components.css uses purple rgba(115,103,240,.05) !important */
html[data-operational-theme="1"] {
  --ops-row-selected-bg: rgb(211 240 103 / 5%);
}
html[data-operational-theme="1"] table.dataTable tbody tr.selected,
html[data-operational-theme="1"] table.data-list-view.dataTable tbody tr.selected,
html[data-operational-theme="1"] table.data-thumb-view.dataTable tbody tr.selected,
html[data-operational-theme="1"] .table tbody tr.selected,
html[data-operational-theme="1"] .data-list-view tbody tr.selected,
html[data-operational-theme="1"] tbody tr.selected {
  background: var(--ops-row-selected-bg) !important;
  background-color: var(--ops-row-selected-bg) !important;
  color: var(--ops-primary) !important;
  box-shadow: none !important;
  border-radius: 0;
}
html[data-operational-theme="1"] table.dataTable tbody tr.selected td,
html[data-operational-theme="1"] table.dataTable tbody tr.selected th,
html[data-operational-theme="1"] table.data-list-view.dataTable tbody tr.selected td,
html[data-operational-theme="1"] table.data-thumb-view.dataTable tbody tr.selected td,
html[data-operational-theme="1"] .table tbody tr.selected td,
html[data-operational-theme="1"] tbody tr.selected td {
  background: var(--ops-row-selected-bg) !important;
  background-color: var(--ops-row-selected-bg) !important;
  color: var(--ops-primary);
  box-shadow: none !important;
}

/* data-list-view side panel: .data-list-view-header … .add-new-data { #FFF } */
html[data-operational-theme="1"] .data-list-view-header .add-new-data-sidebar .add-new-data,
html[data-operational-theme="1"] .data-thumb-view-header .add-new-data-sidebar .add-new-data {
  background: var(--ops-surface);
  background-color: var(--ops-surface);
  color: var(--ops-primary);
}

/* Named ops surfaces inherit the same contract (no extra !important) */
html[data-operational-theme="1"] .ops-stat-card,
html[data-operational-theme="1"] .ops-listing-card,
html[data-operational-theme="1"] .ops-form-card,
html[data-operational-theme="1"] .ops-role-card,
html[data-operational-theme="1"] .ops-alert-band,
html[data-operational-theme="1"] .ops-context-panel {
  background-color: var(--ops-surface);
  border: 1px solid var(--ops-border);
  color: var(--ops-primary);
}

/* -------------------------------------------------------------------------- */
/* Typography helpers                                                         */
/* -------------------------------------------------------------------------- */
html[data-operational-theme="1"] .ops-page-title {
  color: var(--ops-primary);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

html[data-operational-theme="1"] .ops-page-subtitle {
  color: var(--ops-secondary);
  font-size: 0.875rem;
}

html[data-operational-theme="1"] .ops-stat-value {
  color: var(--ops-primary);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.2;
}

html[data-operational-theme="1"] .ops-stat-label,
html[data-operational-theme="1"] .ops-stat-hint {
  color: var(--ops-secondary);
  font-size: 0.8125rem;
}

html[data-operational-theme="1"] .text-muted,
html[data-operational-theme="1"] small {
  color: var(--ops-secondary) !important;
}

html[data-operational-theme="1"] .ops-entity-link {
  color: var(--ops-primary);
  text-decoration: none;
}

html[data-operational-theme="1"] .ops-entity-link:hover {
  color: var(--ops-accent);
  text-decoration: underline !important;
}

html[data-operational-theme="1"] .input-group-text {
  background: var(--ops-surface);
  border-color: var(--ops-border);
  color: var(--ops-secondary);
}

html[data-operational-theme="1"] .form-control,
html[data-operational-theme="1"] .custom-select,
html[data-operational-theme="1"] .form-select {
  background: var(--ops-surface);
  border-color: var(--ops-border);
  color: var(--ops-primary);
}

/* -------------------------------------------------------------------------- */
/* Buttons                                                                    */
/* -------------------------------------------------------------------------- */
html[data-operational-theme="1"] .btn-accent {
  background: var(--ops-primary);
  border-color: var(--ops-primary);
  color: var(--ops-on-primary);
}

html[data-operational-theme="1"] .btn-accent:hover,
html[data-operational-theme="1"] .btn-accent:focus {
  background: var(--ops-primary);
  border-color: var(--ops-primary);
  color: var(--ops-on-primary);
  filter: brightness(1.08);
}

html[data-operational-theme="1"] .btn-outline-accent {
  background: transparent;
  border: 1px solid var(--ops-accent);
  color: var(--ops-accent);
}

html[data-operational-theme="1"] .btn-outline-accent:hover,
html[data-operational-theme="1"] .btn-outline-accent:focus {
  background: rgba(var(--ops-accent-rgb), 0.12);
  border-color: var(--ops-accent);
  color: var(--ops-accent);
}

html[data-operational-theme="1"] .btn-label-accent,
html[data-operational-theme="1"] .bg-label-accent {
  background: rgba(var(--ops-accent-rgb), 0.12) !important;
  color: var(--ops-accent) !important;
  border: none;
}

html[data-operational-theme="1"] .text-accent {
  color: var(--ops-accent) !important;
}

html[data-operational-theme="1"] .btn-label-secondary {
  background: rgba(var(--ops-secondary-rgb), 0.12);
  color: var(--ops-primary);
  border: 1px solid transparent;
}

html[data-operational-theme="1"] .btn-label-secondary:hover,
html[data-operational-theme="1"] .btn-label-secondary:focus {
  background: rgba(var(--ops-secondary-rgb), 0.2);
  color: var(--ops-primary);
}

/* Remap leftover Vuexy primary CTAs under the flag */
html[data-operational-theme="1"] .btn-primary,
html[data-operational-theme="1"] .btn.bg-gradient-primary,
html[data-operational-theme="1"] .bg-gradient-primary {
  background: var(--ops-primary) !important;
  background-image: none !important;
  border-color: var(--ops-primary) !important;
  color: var(--ops-on-primary) !important;
  box-shadow: none !important;
}

html[data-operational-theme="1"] .btn-primary:hover,
html[data-operational-theme="1"] .btn-primary:focus,
html[data-operational-theme="1"] .btn-primary:active,
html[data-operational-theme="1"] .btn-primary:not(:disabled):not(.disabled):active,
html[data-operational-theme="1"] .btn-primary:not(:disabled):not(.disabled).active,
html[data-operational-theme="1"] .show > .btn-primary.dropdown-toggle {
  background: var(--ops-primary) !important;
  border-color: var(--ops-primary) !important;
  color: var(--ops-on-primary) !important;
  filter: brightness(1.08);
  box-shadow: none !important;
}

html[data-operational-theme="1"] .btn-primary:focus,
html[data-operational-theme="1"] .btn-primary.focus {
  box-shadow: 0 0 0 0.15rem rgba(var(--ops-accent-rgb), 0.18) !important;
}

html[data-operational-theme="1"] .btn-outline-primary {
  color: var(--ops-primary) !important;
  border-color: var(--ops-border) !important;
  background: transparent !important;
}

html[data-operational-theme="1"] .btn-outline-primary:hover,
html[data-operational-theme="1"] .btn-outline-primary:focus {
  background: rgba(var(--ops-accent-rgb), 0.12) !important;
  border-color: rgba(var(--ops-accent-rgb), 0.28) !important;
  color: var(--ops-accent) !important;
}

html[data-operational-theme="1"] .bg-primary {
  background-color: var(--ops-primary) !important;
}

html[data-operational-theme="1"] .text-primary,
html[data-operational-theme="1"] .primary {
  color: var(--ops-primary) !important;
}

/* -------------------------------------------------------------------------- */
/* Purple kill — Vuexy hardcodes #7367F0; vars alone are not enough           */
/* Accent = selection/focus; ink = structural text; never leave purple.       */
/* -------------------------------------------------------------------------- */

/* Global anchors (breadcrumbs, inline links) */
html[data-operational-theme="1"] a {
  color: var(--ops-secondary);
}
html[data-operational-theme="1"] a:hover {
  color: var(--ops-accent);
}

html[data-operational-theme="1"] .breadcrumb {
  border-left-color: var(--ops-border);
}
html[data-operational-theme="1"] .breadcrumb .breadcrumb-item,
html[data-operational-theme="1"] .breadcrumb .breadcrumb-item.active,
html[data-operational-theme="1"] .breadcrumb .breadcrumb-item + .breadcrumb-item:before {
  color: var(--ops-secondary);
}
html[data-operational-theme="1"] .breadcrumb .breadcrumb-item a {
  color: var(--ops-secondary);
}
html[data-operational-theme="1"] .breadcrumb .breadcrumb-item a:hover {
  color: var(--ops-accent);
}
html[data-operational-theme="1"] .content-header-title {
  color: var(--ops-primary) !important;
}

/* Switches / checkboxes / radios — accent when selected */
html[data-operational-theme="1"] .custom-control-input:checked ~ .custom-control-label::before,
html[data-operational-theme="1"] .custom-checkbox .custom-control-input:checked ~ .custom-control-label::before,
html[data-operational-theme="1"] .custom-radio .custom-control-input:checked ~ .custom-control-label::before,
html[data-operational-theme="1"] .custom-switch .custom-control-input:checked ~ .custom-control-label::before {
  background-color: var(--ops-accent) !important;
  border-color: var(--ops-accent) !important;
  box-shadow: none !important;
}
html[data-operational-theme="1"] .custom-control-input:focus ~ .custom-control-label::before,
html[data-operational-theme="1"] .custom-control-input:focus:not(:checked) ~ .custom-control-label::before {
  border-color: var(--ops-accent) !important;
  box-shadow: 0 0 0 0.15rem rgba(var(--ops-accent-rgb), 0.18) !important;
}
html[data-operational-theme="1"] .custom-control-input:not(:disabled):active ~ .custom-control-label::before,
html[data-operational-theme="1"] .custom-switch .custom-control-input:not(:disabled):active ~ .custom-control-label::before {
  background-color: rgba(var(--ops-accent-rgb), 0.35) !important;
  border-color: var(--ops-accent) !important;
}
html[data-operational-theme="1"] .custom-checkbox .custom-control-input:indeterminate ~ .custom-control-label::before {
  background-color: var(--ops-accent) !important;
  border-color: var(--ops-accent) !important;
}
html[data-operational-theme="1"] .custom-switch .custom-control-label .switch-text-left,
html[data-operational-theme="1"] .custom-switch .custom-control-label .switch-text-right {
  color: var(--ops-on-accent);
}

/* Vuexy vs-checkbox / vs-radio */
html[data-operational-theme="1"] .vs-checkbox-con input:checked ~ .vs-checkbox,
html[data-operational-theme="1"] .vs-radio-con input:checked ~ .vs-radio {
  border-color: var(--ops-accent) !important;
}
html[data-operational-theme="1"] .vs-checkbox-con input:checked ~ .vs-checkbox .vs-checkbox--check,
html[data-operational-theme="1"] .vs-checkbox-con input:active:checked + .vs-checkbox .vs-checkbox--check,
html[data-operational-theme="1"] .vs-radio-con input:checked ~ .vs-radio .vs-radio--circle {
  background-color: var(--ops-accent) !important;
}

/* Pagination links (non-active still hardcoded purple) */
html[data-operational-theme="1"] .page-link {
  color: var(--ops-secondary) !important;
  background-color: var(--ops-surface) !important;
  border-color: var(--ops-border) !important;
}
html[data-operational-theme="1"] .page-link:hover {
  color: var(--ops-accent) !important;
  background-color: rgba(var(--ops-accent-rgb), 0.08) !important;
  border-color: var(--ops-border) !important;
}
html[data-operational-theme="1"] .page-link:focus {
  box-shadow: 0 0 0 0.15rem rgba(var(--ops-accent-rgb), 0.18) !important;
}
html[data-operational-theme="1"] .page-item.active .page-link {
  background: rgba(var(--ops-accent-rgb), 0.12) !important;
  color: var(--ops-accent) !important;
  border-color: transparent !important;
}

/* Dropdown hover / active (navbar + menus) */
html[data-operational-theme="1"] .dropdown-item:hover,
html[data-operational-theme="1"] .dropdown-item:focus,
html[data-operational-theme="1"] .dropdown-item.active,
html[data-operational-theme="1"] .dropdown-item:active,
html[data-operational-theme="1"] .header-navbar .navbar-container ul.nav li.dropdown-user .dropdown-menu-right .dropdown-item:hover,
html[data-operational-theme="1"] .header-navbar .navbar-container ul.nav li.dropdown-user .dropdown-menu-right .dropdown-item:active {
  background: rgba(var(--ops-accent-rgb), 0.12) !important;
  color: var(--ops-accent) !important;
}

/* Borders / badges / alerts / progress branded as primary */
html[data-operational-theme="1"] .border-primary {
  border-color: var(--ops-accent) !important;
}
html[data-operational-theme="1"] .badge-primary {
  background-color: var(--ops-accent) !important;
  color: var(--ops-on-accent) !important;
}
html[data-operational-theme="1"] .alert-primary {
  background-color: rgba(var(--ops-accent-rgb), 0.12) !important;
  border-color: rgba(var(--ops-accent-rgb), 0.28) !important;
  color: var(--ops-accent) !important;
}
html[data-operational-theme="1"] .progress-bar,
html[data-operational-theme="1"] .progress-bar.bg-primary {
  background-color: var(--ops-accent) !important;
}

/* Floating labels, icon positions, list-group */
html[data-operational-theme="1"] .form-control:focus ~ .form-control-position i,
html[data-operational-theme="1"] .form-label-group > input:focus:not(:placeholder-shown) ~ label,
html[data-operational-theme="1"] .form-label-group > input:not(:active):not(:placeholder-shown) ~ label,
html[data-operational-theme="1"] .form-label-group textarea:focus:not(:placeholder-shown) ~ label,
html[data-operational-theme="1"] .form-label-group textarea:not(:active):not(:placeholder-shown) ~ label {
  color: var(--ops-accent) !important;
}
html[data-operational-theme="1"] .list-group-item.active {
  background-color: rgba(var(--ops-accent-rgb), 0.12) !important;
  border-color: rgba(var(--ops-accent-rgb), 0.28) !important;
  color: var(--ops-accent) !important;
}

/* Tabs / pills leftovers */
html[data-operational-theme="1"] .nav-tabs .nav-link.active,
html[data-operational-theme="1"] .nav-tabs .nav-item.show .nav-link {
  color: var(--ops-accent) !important;
  border-color: var(--ops-border) var(--ops-border) var(--ops-surface) !important;
}
html[data-operational-theme="1"] .nav-pills .nav-link.active,
html[data-operational-theme="1"] .nav-pills .show > .nav-link {
  background: rgba(var(--ops-accent-rgb), 0.12) !important;
  color: var(--ops-accent) !important;
}

/* Pickers / dropzone / data-list chrome */
html[data-operational-theme="1"] .picker__day--highlighted,
html[data-operational-theme="1"] .picker__day--selected,
html[data-operational-theme="1"] .picker__day--selected:hover,
html[data-operational-theme="1"] .picker__day--infocus.picker__day--selected {
  background: var(--ops-accent) !important;
  color: var(--ops-on-accent) !important;
}
html[data-operational-theme="1"] .dropzone.dz-clickable .dz-message,
html[data-operational-theme="1"] .dropzone {
  border-color: var(--ops-border);
}
html[data-operational-theme="1"] .dropzone.dz-started,
html[data-operational-theme="1"] .dropzone:hover {
  border-color: var(--ops-accent);
}
html[data-operational-theme="1"] .dt-checkboxes-cell input:checked,
html[data-operational-theme="1"] table.dataTable tbody td.select-checkbox:before,
html[data-operational-theme="1"] .data-list-view .dt-checkboxes:checked {
  accent-color: var(--ops-accent);
}

/* Native checkbox/radio accent (modern browsers) */
html[data-operational-theme="1"] input[type="checkbox"],
html[data-operational-theme="1"] input[type="radio"] {
  accent-color: var(--ops-accent);
}

/* Select2 / clockpicker leftovers if present */
html[data-operational-theme="1"] .select2-container--default .select2-results__option--highlighted[aria-selected],
html[data-operational-theme="1"] .select2-container--default .select2-results__option[aria-selected=true] {
  background-color: rgba(var(--ops-accent-rgb), 0.12) !important;
  color: var(--ops-accent) !important;
}
html[data-operational-theme="1"] .select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: var(--ops-secondary) transparent transparent transparent;
}

/* Keep entity / brand text links intentional */
html[data-operational-theme="1"] .ops-entity-link {
  color: var(--ops-primary);
}
html[data-operational-theme="1"] .ops-entity-link:hover {
  color: var(--ops-accent);
}

/* -------------------------------------------------------------------------- */
/* Nav / focus / pagination — accent tint only                                */
/* -------------------------------------------------------------------------- */
html[data-operational-theme="1"] .main-menu.menu-light .navigation > li.active > a,
html[data-operational-theme="1"] .main-menu .navigation > li.active > a {
  background: rgba(var(--ops-accent-rgb), 0.12) !important;
  color: var(--ops-accent) !important;
  box-shadow: none !important;
  border-radius: var(--ops-radius);
  font-weight: 500;
}

html[data-operational-theme="1"] .main-menu.menu-light .navigation > li.active > a i,
html[data-operational-theme="1"] .main-menu .navigation > li.active > a i {
  color: var(--ops-accent) !important;
}

html[data-operational-theme="1"] .main-menu.menu-light .navigation > li .active > a,
html[data-operational-theme="1"] .main-menu .navigation > li ul .active {
  background: rgba(var(--ops-accent-rgb), 0.08) !important;
}

html[data-operational-theme="1"] .main-menu.menu-light .navigation > li .active > a {
  color: var(--ops-accent) !important;
}

html[data-operational-theme="1"] .main-menu {
  background: var(--ops-surface);
  border-right: 1px solid var(--ops-border);
  box-shadow: none;
}

html[data-operational-theme="1"] .main-menu .navbar-header .brand-text,
html[data-operational-theme="1"] .main-menu .navigation li a {
  color: var(--ops-primary);
}

.main-menu .navbar-header .navbar-brand .brand-logo,
html[data-operational-theme="1"] .main-menu .navbar-header .navbar-brand .brand-logo {
  background: none;
  background-image: none;
  width: auto;
  height: 32px;
  max-width: 48px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}

html[data-operational-theme="1"] .main-menu .navigation .navigation-header {
  color: var(--ops-muted, #8a8d93);
  letter-spacing: 0.04em;
  font-size: 0.68rem;
  line-height: 1;
  padding: 0.65rem 22px 0.15rem;
  margin: 0;
}

html[data-operational-theme="1"] .main-menu .navigation .navigation-header:first-child {
  padding-top: 0.35rem;
}

html[data-operational-theme="1"] .main-menu .navigation .navigation-header i {
  display: none;
}

html[data-operational-theme="1"] .header-navbar,
html[data-operational-theme="1"] .header-navbar.floating-nav {
  background: var(--ops-surface) !important;
  border: 1px solid var(--ops-border);
  border-radius: var(--ops-radius);
  box-shadow: none !important;
}

html[data-operational-theme="1"] .page-item.active .page-link,
html[data-operational-theme="1"] .pagination .page-item.active .page-link,
html[data-operational-theme="1"] .nav-link.active,
html[data-operational-theme="1"] .nav-pills .nav-link.active {
  background: rgba(var(--ops-accent-rgb), 0.12) !important;
  color: var(--ops-accent) !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

html[data-operational-theme="1"] .form-control:focus,
html[data-operational-theme="1"] .form-select:focus,
html[data-operational-theme="1"] .custom-select:focus,
html[data-operational-theme="1"] .select2-container--focus .select2-selection {
  border-color: var(--ops-accent) !important;
  box-shadow: 0 0 0 0.15rem rgba(var(--ops-accent-rgb), 0.18) !important;
}

html[data-operational-theme="1"] .ops-facet__btn.active,
html[data-operational-theme="1"] .ops-filter-chip.active {
  background: rgba(var(--ops-accent-rgb), 0.12);
  border-color: rgba(var(--ops-accent-rgb), 0.28);
  color: var(--ops-accent);
}

/* -------------------------------------------------------------------------- */
/* Tables                                                                     */
/* -------------------------------------------------------------------------- */
html[data-operational-theme="1"] .table {
  --bs-table-border-color: var(--ops-border);
  color: var(--ops-primary);
}

html[data-operational-theme="1"] .table thead th {
  color: var(--ops-secondary);
  background: var(--ops-surface);
  border-bottom-color: var(--ops-border);
  font-weight: 500;
  font-size: 0.8125rem;
  text-transform: none;
  letter-spacing: 0;
}

html[data-operational-theme="1"] .table td,
html[data-operational-theme="1"] .table th {
  border-color: var(--ops-border);
  vertical-align: middle;
}

html[data-operational-theme="1"] .table-hover tbody tr:hover {
  background: rgba(var(--ops-border-rgb), 0.35);
}

/* -------------------------------------------------------------------------- */
/* Listing card toolbar                                                       */
/* -------------------------------------------------------------------------- */
html[data-operational-theme="1"] .ops-listing-card > .ops-listing-card__header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  border-bottom: 1px solid var(--ops-border);
}

html[data-operational-theme="1"] .ops-listing-card__toolbar-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  gap: 0.625rem;
  flex-wrap: wrap;
}

/* Primary / secondary CTAs: one comfortable size (kill Vuexy padding + btn-sm) */
html[data-operational-theme="1"] .ops-listing-card__toolbar-row > .btn,
html[data-operational-theme="1"] .ops-listing-card__toolbar-row > a.btn {
  min-height: var(--ops-control-h);
  height: var(--ops-control-h);
  padding: var(--ops-control-py) 1.125rem !important;
  font-size: var(--ops-control-fs) !important;
  font-weight: 500;
  line-height: 1.25;
  border-radius: var(--ops-radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  box-shadow: none;
}

html[data-operational-theme="1"] .ops-listing-card__controls-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

html[data-operational-theme="1"] .ops-listing-card__filters {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.625rem;
  margin-left: auto;
}

/* Shared control face: status, search, length */
html[data-operational-theme="1"] .ops-listing-card__filters .form-control,
html[data-operational-theme="1"] .ops-listing-card__filters .custom-select,
html[data-operational-theme="1"] .ops-listing-card__filters .form-select,
html[data-operational-theme="1"] .ops-status-filter,
html[data-operational-theme="1"] .ops-search .form-control,
html[data-operational-theme="1"] .ops-search .input-group-text,
html[data-operational-theme="1"] .ops-listing-card__length select,
html[data-operational-theme="1"] #listing_length_slot select,
html[data-operational-theme="1"] .ops-listing-card__length .custom-select,
html[data-operational-theme="1"] .ops-listing-card__length .form-control {
  min-height: var(--ops-control-h) !important;
  height: var(--ops-control-h) !important;
  font-size: var(--ops-control-fs) !important;
  line-height: 1.25;
  border-radius: var(--ops-radius) !important;
  border-color: var(--ops-border);
  color: var(--ops-primary);
  background: var(--ops-surface);
  box-shadow: none;
}

html[data-operational-theme="1"] .ops-status-filter {
  width: 10.5rem;
  flex: 0 0 10.5rem;
  padding: 0.5rem 2rem 0.5rem 0.875rem !important;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2371717A' d='M2.5 4.5L6 8l3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

/* DB-backed listing filter (Select2) — same contract as form ops-select2 */
html[data-operational-theme="1"] .ops-listing-card__filters .ops-listing-select2,
html[data-operational-theme="1"] .ops-listing-card__filters .select2-container {
  width: 16rem !important;
  flex: 0 0 16rem;
  max-width: 100%;
}

html[data-operational-theme="1"] .ops-listing-card__filters .select2-container--default .select2-selection--single {
  min-height: var(--ops-control-h) !important;
  height: var(--ops-control-h) !important;
  border-color: var(--ops-border);
  border-radius: var(--ops-radius) !important;
  background: var(--ops-surface);
}

html[data-operational-theme="1"] .ops-listing-card__filters .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: calc(var(--ops-control-h) - 2px);
  padding-left: 0.875rem;
  padding-right: 2rem;
  color: var(--ops-primary);
  font-size: var(--ops-control-fs);
}

html[data-operational-theme="1"] .ops-listing-card__filters .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: calc(var(--ops-control-h) - 2px);
}

html[data-operational-theme="1"] .ops-listing-card__filters .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: var(--ops-secondary);
}

html[data-operational-theme="1"] .ops-listing-card__filters .select2-container--default.select2-container--focus .select2-selection--single,
html[data-operational-theme="1"] .ops-listing-card__filters .select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--ops-accent);
  box-shadow: 0 0 0 0.15rem rgba(var(--ops-accent-rgb), 0.28);
}

html[data-operational-theme="1"] .ops-search {
  width: 16rem;
  max-width: 100%;
  flex: 0 1 16rem;
}

html[data-operational-theme="1"] .ops-search.input-group {
  flex-wrap: nowrap;
}

html[data-operational-theme="1"] .ops-search .input-group-text {
  padding: 0 0.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
}

html[data-operational-theme="1"] .ops-search .form-control {
  padding: 0.5rem 0.875rem !important;
}

html[data-operational-theme="1"] .ops-listing-card__length,
html[data-operational-theme="1"] #listing_length_slot {
  display: flex;
  align-items: center;
  min-height: var(--ops-control-h);
}

html[data-operational-theme="1"] .ops-listing-card__length .dataTables_length,
html[data-operational-theme="1"] #listing_length_slot .dataTables_length {
  margin: 0;
}

html[data-operational-theme="1"] .ops-listing-card__length .dataTables_length label,
html[data-operational-theme="1"] #listing_length_slot .dataTables_length label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: var(--ops-control-fs);
  font-weight: 400;
  color: var(--ops-secondary);
  white-space: nowrap;
}

html[data-operational-theme="1"] .ops-listing-card__length select,
html[data-operational-theme="1"] #listing_length_slot select {
  width: auto;
  min-width: 4.75rem;
  padding: 0.5rem 2rem 0.5rem 0.75rem !important;
  margin: 0 0.25rem;
}

html[data-operational-theme="1"] .ops-listing-card__section-title {
  color: var(--ops-primary);
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
}

@media (max-width: 767.98px) {
  html[data-operational-theme="1"] .ops-listing-card__toolbar-row {
    justify-content: stretch;
  }

  html[data-operational-theme="1"] .ops-listing-card__toolbar-row > .btn,
  html[data-operational-theme="1"] .ops-listing-card__toolbar-row > a.btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 575.98px) {
  html[data-operational-theme="1"] .ops-listing-card__controls-row {
    flex-direction: column;
    align-items: stretch;
  }

  html[data-operational-theme="1"] .ops-listing-card__filters {
    margin-left: 0;
    width: 100%;
    flex-wrap: wrap;
  }

  html[data-operational-theme="1"] .ops-status-filter,
  html[data-operational-theme="1"] .ops-search {
    width: 100%;
    min-width: 0;
    max-width: none;
    flex: 1 1 100%;
  }

  html[data-operational-theme="1"] .ops-listing-card__length,
  html[data-operational-theme="1"] #listing_length_slot {
    width: 100%;
  }

  html[data-operational-theme="1"] .ops-listing-card__length .dataTables_length label,
  html[data-operational-theme="1"] #listing_length_slot .dataTables_length label {
    width: 100%;
    justify-content: space-between;
  }

  html[data-operational-theme="1"] .ops-listing-card__length select,
  html[data-operational-theme="1"] #listing_length_slot select {
    min-width: 5.5rem;
  }
}

/* -------------------------------------------------------------------------- */
/* KPI / context / spec cards                                                 */
/* -------------------------------------------------------------------------- */
html[data-operational-theme="1"] .ops-context-panel {
  border-radius: var(--ops-radius);
  padding: 1rem 1.25rem;
}

html[data-operational-theme="1"] .ops-spec-card {
  background-color: rgba(var(--ops-border-rgb), 0.18);
  border: 1px solid var(--ops-border);
  border-radius: var(--ops-radius);
  padding: 0.85rem 1rem;
  color: var(--ops-primary);
}

/* Soft semantic label badges (keep framework success/warning/danger/info) */
html[data-operational-theme="1"] .badge.bg-label-success {
  background: rgba(40, 199, 111, 0.14) !important;
  color: #28c76f !important;
}

html[data-operational-theme="1"] .badge.bg-label-warning {
  background: rgba(255, 159, 67, 0.14) !important;
  color: #ff9f43 !important;
}

html[data-operational-theme="1"] .badge.bg-label-danger {
  background: rgba(234, 84, 85, 0.14) !important;
  color: #ea5455 !important;
}

html[data-operational-theme="1"] .badge.bg-label-info {
  background: rgba(0, 207, 232, 0.14) !important;
  color: #00cfe8 !important;
}

html[data-operational-theme="1"] .badge.bg-label-secondary {
  background: rgba(var(--ops-secondary-rgb), 0.14) !important;
  color: var(--ops-secondary) !important;
}

/* Identity thumb in listing cells */
html[data-operational-theme="1"] .ops-entity-thumb {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 4px;
  background: rgba(var(--ops-border-rgb), 0.35);
  border: 1px solid var(--ops-border);
}

/* Kill purple glow leftovers on waves / shadows */
html[data-operational-theme="1"] .waves-effect .waves-ripple {
  background: rgba(var(--ops-accent-rgb), 0.35) !important;
}

html[data-operational-theme="1"] .main-menu.menu-light .navigation > li.open > a,
html[data-operational-theme="1"] .main-menu.menu-light .navigation > li.sidebar-group-active > a {
  background: rgba(var(--ops-border-rgb), 0.45) !important;
  color: var(--ops-primary) !important;
  box-shadow: none !important;
}

/* DataTables chrome (pagination / info; length sized in toolbar block above) */
html[data-operational-theme="1"] .dataTables_wrapper .dataTables_info {
  color: var(--ops-secondary);
  padding-top: 0.75rem;
  font-size: var(--ops-control-fs);
}

html[data-operational-theme="1"] .dataTables_wrapper .dataTables_paginate {
  padding-top: 0.5rem;
}

html[data-operational-theme="1"] .dataTables_wrapper .pagination .page-link {
  min-width: 2.25rem;
  min-height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--ops-control-fs);
  border-radius: var(--ops-radius) !important;
  margin: 0 0.125rem;
}

html[data-operational-theme="1"] .dataTables_wrapper .pagination .page-item.active .page-link {
  background: rgba(var(--ops-accent-rgb), 0.12) !important;
  color: var(--ops-accent) !important;
  border-color: transparent !important;
}

html[data-operational-theme="1"] .ops-listing-card .card-datatable {
  padding: 0 0.5rem 0.75rem;
  /* Keep horizontal scroll when identity text is long (do not force overflow:visible).
     Kebab menus are ported to <body> via .ops-dropdown-menu--ported. */
  overflow-x: auto;
  max-width: 100%;
}

html[data-operational-theme="1"] .ops-listing-card .table-responsive {
  overflow-x: auto;
  max-width: 100%;
}

html[data-operational-theme="1"] .ops-listing-card .table {
  width: 100%;
  max-width: 100%;
}

/* Identity / job title cells: wrap instead of blowing out the card */
html[data-operational-theme="1"] .ops-listing-card .ops-entity-cell,
html[data-operational-theme="1"] .ops-listing-card .table td .d-flex.flex-column {
  min-width: 0;
  max-width: 100%;
}

html[data-operational-theme="1"] .ops-listing-card .table td:first-child {
  word-break: break-word;
  overflow-wrap: anywhere;
}

html[data-operational-theme="1"] .ops-listing-card .ops-entity-cell > .text-bold-600,
html[data-operational-theme="1"] .ops-listing-card .ops-entity-cell > .ops-entity-link,
html[data-operational-theme="1"] .ops-listing-card .table td .d-flex.flex-column > .text-bold-600,
html[data-operational-theme="1"] .ops-listing-card .table td .d-flex.flex-column > .ops-entity-link,
html[data-operational-theme="1"] .ops-listing-card .table td .d-flex.flex-column > span:first-child {
  display: block;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

html[data-operational-theme="1"] .ops-listing-card .table td .text-muted.small {
  display: block;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

html[data-operational-theme="1"] .ops-listing-card .dropdown {
  position: static;
}

html[data-operational-theme="1"] .ops-listing-card .dropdown-menu,
html[data-operational-theme="1"] .dropdown-menu.ops-dropdown-menu--ported {
  z-index: 1080;
}

html[data-operational-theme="1"] .dropdown-menu.ops-dropdown-menu--ported {
  position: absolute;
  display: block;
  float: none;
  margin: 0;
}

html[data-operational-theme="1"] .dropdown-item.text-danger {
  color: #ea5455 !important;
}

/* -------------------------------------------------------------------------- */
/* Ops dashboard: alert band + utilisation metrics                            */
/* -------------------------------------------------------------------------- */
html[data-operational-theme="1"] .ops-alert-band {
  border: 1px solid var(--ops-border);
  background: var(--ops-surface);
}

html[data-operational-theme="1"] .ops-alert {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 0.375rem 0.625rem;
  border-left: 3px solid transparent;
  border-radius: var(--ops-radius);
  font-size: var(--ops-control-fs);
}

html[data-operational-theme="1"] .ops-alert + .ops-alert {
  margin-top: 0.25rem;
}

html[data-operational-theme="1"] .ops-alert--danger {
  background: rgba(234, 84, 85, 0.08);
  border-left-color: #ea5455;
  color: #ea5455;
}

html[data-operational-theme="1"] .ops-alert--warning {
  background: rgba(255, 159, 67, 0.08);
  border-left-color: #ff9f43;
  color: #ff9f43;
}

html[data-operational-theme="1"] .ops-stat-total {
  color: var(--ops-secondary);
  font-size: 1rem;
  font-weight: 400;
}

/* Inventory shortcut cards: hues are identity only, never status. */
html[data-operational-theme="1"] .ops-quick-card {
  border: 1px solid var(--ops-border);
  border-top: 3px solid var(--ops-quick-tone);
  background: var(--ops-surface);
}

html[data-operational-theme="1"] .ops-quick-card--indigo { --ops-quick-tone: #4F46E5; --ops-quick-tone-rgb: 79, 70, 229; }
html[data-operational-theme="1"] .ops-quick-card--teal { --ops-quick-tone: #0D9488; --ops-quick-tone-rgb: 13, 148, 136; }
html[data-operational-theme="1"] .ops-quick-card--amber { --ops-quick-tone: #B45309; --ops-quick-tone-rgb: 180, 83, 9; }
html[data-operational-theme="1"] .ops-quick-card--violet { --ops-quick-tone: #7C3AED; --ops-quick-tone-rgb: 124, 58, 237; }

html[data-operational-theme="1"].dark-style .ops-quick-card--indigo { --ops-quick-tone: #818CF8; --ops-quick-tone-rgb: 129, 140, 248; }
html[data-operational-theme="1"].dark-style .ops-quick-card--teal { --ops-quick-tone: #2DD4BF; --ops-quick-tone-rgb: 45, 212, 191; }
html[data-operational-theme="1"].dark-style .ops-quick-card--amber { --ops-quick-tone: #FBBF24; --ops-quick-tone-rgb: 251, 191, 36; }
html[data-operational-theme="1"].dark-style .ops-quick-card--violet { --ops-quick-tone: #A78BFA; --ops-quick-tone-rgb: 167, 139, 250; }

html[data-operational-theme="1"] .ops-quick-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--ops-radius);
  background: rgba(var(--ops-quick-tone-rgb), 0.12);
  color: var(--ops-quick-tone);
}

html[data-operational-theme="1"] .ops-quick-card__count {
  color: var(--ops-primary);
  text-decoration: none;
}

html[data-operational-theme="1"] .ops-quick-card__count:hover {
  color: var(--ops-quick-tone);
  text-decoration: underline;
}

html[data-operational-theme="1"] .ops-quick-card__cta {
  border: 1px solid rgba(var(--ops-quick-tone-rgb), 0.32);
  background: rgba(var(--ops-quick-tone-rgb), 0.10);
  color: var(--ops-quick-tone);
  font-size: var(--ops-control-fs);
}

html[data-operational-theme="1"] .ops-quick-card__cta:hover,
html[data-operational-theme="1"] .ops-quick-card__cta:focus {
  background: var(--ops-quick-tone);
  border-color: var(--ops-quick-tone);
  color: #FFFFFF;
}

html[data-operational-theme="1"] .ops-role-card {
  background: var(--ops-surface);
  border: 1px solid var(--ops-border);
  border-radius: var(--ops-radius);
  color: var(--ops-primary);
}

html[data-operational-theme="1"] .ops-role-card__name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ops-primary);
}

html[data-operational-theme="1"] .ops-role-card__avatars {
  min-height: 1.75rem;
  gap: 0.25rem;
}

html[data-operational-theme="1"] .ops-role-card__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--ops-accent);
  background: rgba(var(--ops-accent-rgb), 0.12);
  border: 1px solid rgba(var(--ops-accent-rgb), 0.22);
}

html[data-operational-theme="1"] .ops-role-card--add {
  border-style: dashed;
  transition: border-color .15s ease, background-color .15s ease;
}

html[data-operational-theme="1"] .ops-role-card--add:hover {
  border-color: rgba(var(--ops-accent-rgb), 0.45);
  background: rgba(var(--ops-accent-rgb), 0.06);
}

html[data-operational-theme="1"] .ops-role-card__add-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--ops-radius);
  color: var(--ops-accent);
  background: rgba(var(--ops-accent-rgb), 0.12);
}

html[data-operational-theme="1"] .ops-role-matrix th {
  color: var(--ops-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  border-color: var(--ops-border);
}

html[data-operational-theme="1"] .ops-role-matrix td {
  border-color: var(--ops-border);
  color: var(--ops-primary);
}

html[data-operational-theme="1"] .ops-metric-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  min-width: 13rem;
}

html[data-operational-theme="1"] .ops-metric {
  flex: 1 1 3.5rem;
  min-width: 3.5rem;
}

html[data-operational-theme="1"] .ops-metric__head {
  display: flex;
  justify-content: space-between;
  gap: 0.25rem;
  font-size: 0.6875rem;
  line-height: 1.4;
}

html[data-operational-theme="1"] .ops-metric__label {
  color: var(--ops-secondary);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

html[data-operational-theme="1"] .ops-metric__value {
  color: var(--ops-primary);
  font-weight: 600;
}

html[data-operational-theme="1"] .ops-metric__bar {
  display: block;
  height: 4px;
  margin-top: 2px;
  border-radius: 2px;
  background: rgba(var(--ops-border-rgb), 0.6);
  overflow: hidden;
}

html[data-operational-theme="1"] .ops-metric__fill {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: var(--ops-accent);
}

html[data-operational-theme="1"] .ops-metric--warning .ops-metric__fill {
  background: #ff9f43;
}

html[data-operational-theme="1"] .ops-metric--warning .ops-metric__value {
  color: #ff9f43;
}

html[data-operational-theme="1"] .ops-metric--danger .ops-metric__fill {
  background: #ea5455;
}

html[data-operational-theme="1"] .ops-metric--danger .ops-metric__value {
  color: #ea5455;
}

/* -------------------------------------------------------------------------- */
/* Ops forms — fully custom controls, no UA chrome                            */
/* -------------------------------------------------------------------------- */
html[data-operational-theme="1"] .ops-form {
  --ops-field-h: 2.625rem;
  --ops-field-fs: 0.875rem;
  --ops-danger: #ea5455;
  --ops-danger-rgb: 234, 84, 85;
  max-width: 72rem;
}

html[data-operational-theme="1"] .ops-form-card > .card-body {
  padding: 1.5rem 1.75rem 1.25rem;
}

html[data-operational-theme="1"] .ops-is-hidden {
  display: none !important;
}

/* Sections: description rail + field grid */
html[data-operational-theme="1"] .ops-form-section {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 1rem 2.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--ops-border);
}

html[data-operational-theme="1"] .ops-form-section:first-child {
  border-top: 0;
  padding-top: 0.25rem;
}

html[data-operational-theme="1"] .ops-form-section__head {
  align-self: start;
}

html[data-operational-theme="1"] .ops-form-section__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ops-primary);
}

html[data-operational-theme="1"] .ops-form-section__hint {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ops-secondary);
}

html[data-operational-theme="1"] .ops-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  align-content: start;
}

html[data-operational-theme="1"] .ops-field--full {
  grid-column: 1 / -1;
}

html[data-operational-theme="1"] .ops-field__label {
  display: block;
  margin: 0 0 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ops-primary);
}

html[data-operational-theme="1"] .ops-field__req {
  color: var(--ops-danger);
  margin-left: 0.125rem;
}

html[data-operational-theme="1"] .ops-field__hint,
html[data-operational-theme="1"] .ops-field__error {
  margin: 0.375rem 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
}

html[data-operational-theme="1"] .ops-field__hint {
  color: var(--ops-secondary);
}

html[data-operational-theme="1"] .ops-field__error {
  color: var(--ops-danger);
}

/* Control face */
html[data-operational-theme="1"] .ops-input,
html[data-operational-theme="1"] .ops-select,
html[data-operational-theme="1"] .ops-textarea {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  min-height: var(--ops-field-h);
  margin: 0;
  padding: 0.5625rem 0.75rem;
  font-family: inherit;
  font-size: var(--ops-field-fs);
  line-height: 1.4;
  color: var(--ops-primary);
  background-color: var(--ops-surface);
  border: 1px solid var(--ops-border);
  border-radius: var(--ops-radius);
  outline: none;
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

html[data-operational-theme="1"] .ops-input:hover:not(:disabled),
html[data-operational-theme="1"] .ops-select:hover:not(:disabled),
html[data-operational-theme="1"] .ops-textarea:hover:not(:disabled) {
  border-color: rgba(var(--ops-primary-rgb), 0.26);
}

html[data-operational-theme="1"] .ops-input:focus,
html[data-operational-theme="1"] .ops-select:focus,
html[data-operational-theme="1"] .ops-textarea:focus {
  border-color: var(--ops-accent);
  box-shadow: 0 0 0 0.15rem rgba(var(--ops-accent-rgb), 0.18);
}

html[data-operational-theme="1"] .ops-input::placeholder,
html[data-operational-theme="1"] .ops-textarea::placeholder {
  color: var(--ops-secondary);
  opacity: 0.7;
}

html[data-operational-theme="1"] .ops-input:disabled,
html[data-operational-theme="1"] .ops-select:disabled,
html[data-operational-theme="1"] .ops-textarea:disabled {
  background-color: rgba(var(--ops-border-rgb), 0.35);
  color: var(--ops-secondary);
  cursor: not-allowed;
}

html[data-operational-theme="1"] .ops-input.is-invalid,
html[data-operational-theme="1"] .ops-select.is-invalid,
html[data-operational-theme="1"] .ops-textarea.is-invalid {
  border-color: var(--ops-danger);
  background-image: none;
}

html[data-operational-theme="1"] .ops-input.is-invalid:focus,
html[data-operational-theme="1"] .ops-select.is-invalid:focus,
html[data-operational-theme="1"] .ops-textarea.is-invalid:focus {
  box-shadow: 0 0 0 0.15rem rgba(var(--ops-danger-rgb), 0.18);
}

html[data-operational-theme="1"] .ops-input--mono,
html[data-operational-theme="1"] .ops-code {
  font-family: "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.8125rem;
}

html[data-operational-theme="1"] .ops-textarea {
  min-height: 6rem;
  resize: vertical;
}

html[data-operational-theme="1"] .ops-input[type="file"] {
  padding: 0.4rem 0.5rem;
  line-height: 1.8;
  cursor: pointer;
}

/* Select2 face aligned with ops-input */
html[data-operational-theme="1"] .ops-select2 + .select2-container {
  width: 100% !important;
}

html[data-operational-theme="1"] .ops-select2 + .select2-container .select2-selection--single {
  min-height: var(--ops-field-h, 2.625rem);
  height: var(--ops-field-h, 2.625rem);
  padding: 0;
  border: 1px solid var(--ops-border);
  border-radius: var(--ops-radius);
  background-color: var(--ops-surface);
  outline: none;
  box-shadow: none;
}

html[data-operational-theme="1"] .ops-select2 + .select2-container .select2-selection--single .select2-selection__rendered {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 2.25rem 0 0.75rem;
  line-height: 1.4;
  font-size: 0.875rem;
  color: var(--ops-primary);
}

html[data-operational-theme="1"] .ops-select2 + .select2-container .select2-selection--single .select2-selection__placeholder {
  color: var(--ops-secondary);
  opacity: 0.7;
}

html[data-operational-theme="1"] .ops-select2 + .select2-container .select2-selection--single .select2-selection__arrow {
  height: 100%;
  right: 0.5rem;
  width: 1.25rem;
}

html[data-operational-theme="1"] .ops-select2 + .select2-container .select2-selection--single .select2-selection__arrow b {
  border-color: var(--ops-secondary) transparent transparent transparent;
  margin-top: -2px;
  border-width: 5px 4px 0 4px;
}

html[data-operational-theme="1"] .ops-select2 + .select2-container.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent var(--ops-secondary) transparent;
  border-width: 0 4px 5px 4px;
  margin-top: -3px;
}

html[data-operational-theme="1"] .ops-select2 + .select2-container.select2-container--focus .select2-selection--single,
html[data-operational-theme="1"] .ops-select2 + .select2-container.select2-container--open .select2-selection--single {
  border-color: var(--ops-accent) !important;
  box-shadow: 0 0 0 0.15rem rgba(var(--ops-accent-rgb), 0.18) !important;
}

html[data-operational-theme="1"] .ops-select2.is-invalid + .select2-container .select2-selection--single {
  border-color: var(--ops-danger, #ea5455);
}

html[data-operational-theme="1"] .select2-dropdown {
  background: var(--ops-surface);
  border: 1px solid var(--ops-border);
  border-radius: var(--ops-radius);
  color: var(--ops-primary);
  box-shadow: none;
  z-index: 1080;
}

html[data-operational-theme="1"] .select2-search--dropdown {
  padding: 0.5rem;
}

html[data-operational-theme="1"] .select2-search--dropdown .select2-search__field {
  appearance: none;
  width: 100%;
  min-height: 2.25rem;
  padding: 0.4375rem 0.75rem;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--ops-primary);
  background: var(--ops-surface);
  border: 1px solid var(--ops-border);
  border-radius: var(--ops-radius);
  outline: none;
}

html[data-operational-theme="1"] .select2-search--dropdown .select2-search__field:focus {
  border-color: var(--ops-accent);
  box-shadow: 0 0 0 0.15rem rgba(var(--ops-accent-rgb), 0.18);
}

html[data-operational-theme="1"] .select2-results__option {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--ops-primary);
}

html[data-operational-theme="1"] .select2-results__option[aria-selected=true] {
  background: rgba(var(--ops-border-rgb), 0.45) !important;
  color: var(--ops-primary) !important;
}

html[data-operational-theme="1"] .select2-container--default .select2-results__option--highlighted[aria-selected],
html[data-operational-theme="1"] .select2-container--default .select2-results__option--highlighted[aria-selected=true] {
  background: rgba(var(--ops-accent-rgb), 0.12) !important;
  color: var(--ops-accent) !important;
}

html[data-operational-theme="1"] .select2-results__message {
  color: var(--ops-secondary);
  font-size: 0.8125rem;
}

/* Strip UA widgets: spinners, reveal/clear buttons, autofill wash */
html[data-operational-theme="1"] .ops-input[type="number"] {
  -moz-appearance: textfield;
}

html[data-operational-theme="1"] .ops-input::-webkit-outer-spin-button,
html[data-operational-theme="1"] .ops-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

html[data-operational-theme="1"] .ops-input::-webkit-search-cancel-button,
html[data-operational-theme="1"] .ops-input::-ms-clear,
html[data-operational-theme="1"] .ops-input::-ms-reveal {
  -webkit-appearance: none;
  display: none;
}

html[data-operational-theme="1"] .ops-input:-webkit-autofill,
html[data-operational-theme="1"] .ops-input:-webkit-autofill:hover,
html[data-operational-theme="1"] .ops-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 100px var(--ops-surface) inset;
  -webkit-text-fill-color: var(--ops-primary);
  caret-color: var(--ops-primary);
}

/* Select: own chevron, no UA arrow */
html[data-operational-theme="1"] .ops-select {
  padding-right: 2.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2371717A' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  cursor: pointer;
}

html[data-operational-theme="1"].dark-style .ops-select {
  color-scheme: dark;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23A1A1AA' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

/* Segmented radio group */
html[data-operational-theme="1"] .ops-segment {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  background: rgba(var(--ops-border-rgb), 0.5);
  border: 1px solid var(--ops-border);
  border-radius: calc(var(--ops-radius) + 2px);
}

html[data-operational-theme="1"] .ops-segment__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

html[data-operational-theme="1"] .ops-segment__label {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin: 0;
  padding: 0.4375rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ops-secondary);
  border-radius: var(--ops-radius);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

html[data-operational-theme="1"] .ops-segment__label:hover {
  color: var(--ops-primary);
}

html[data-operational-theme="1"] .ops-segment__input:checked + .ops-segment__label {
  background: var(--ops-surface);
  color: var(--ops-primary);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

html[data-operational-theme="1"] .ops-segment__input:focus-visible + .ops-segment__label {
  box-shadow: 0 0 0 0.15rem rgba(var(--ops-accent-rgb), 0.28);
}

/* Attached control + action button */
html[data-operational-theme="1"] .ops-input-group {
  display: flex;
  align-items: stretch;
}

html[data-operational-theme="1"] .ops-input-group > .ops-input {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  position: relative;
  z-index: 1;
}

html[data-operational-theme="1"] .ops-input-group__btn {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  flex: 0 0 auto;
  padding: 0 0.875rem;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ops-secondary);
  background: rgba(var(--ops-border-rgb), 0.4);
  border: 1px solid var(--ops-border);
  border-left: 0;
  border-radius: 0 var(--ops-radius) var(--ops-radius) 0;
  cursor: pointer;
  outline: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

html[data-operational-theme="1"] .ops-input-group__btn:hover {
  background: rgba(var(--ops-accent-rgb), 0.12);
  color: var(--ops-accent);
}

html[data-operational-theme="1"] .ops-input-group__btn:focus-visible {
  box-shadow: 0 0 0 0.15rem rgba(var(--ops-accent-rgb), 0.28);
}

html[data-operational-theme="1"] .ops-show-copy > .ops-show-copy__value {
  flex: 1 1 auto;
  min-width: 0;
  display: block;
  margin: 0;
  padding: 0.5625rem 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--ops-primary);
  background: var(--ops-surface);
  border: 1px solid var(--ops-border);
  border-right: 0;
  border-radius: var(--ops-radius) 0 0 var(--ops-radius);
  word-break: break-all;
}

/* Derived-value preview strip */
html[data-operational-theme="1"] .ops-form-preview {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  color: var(--ops-secondary);
  background: rgba(var(--ops-border-rgb), 0.22);
  border: 1px dashed var(--ops-border);
  border-radius: var(--ops-radius);
}

html[data-operational-theme="1"] .ops-form-preview .ops-code {
  color: var(--ops-primary);
  background: none;
  padding: 0;
  word-break: break-all;
}

/* Footer actions */
html[data-operational-theme="1"] .ops-form-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.625rem;
  padding-top: 1.125rem;
  border-top: 1px solid var(--ops-border);
}

html[data-operational-theme="1"] .ops-form-footer__hint {
  margin: 0 auto 0 0;
  font-size: 0.8125rem;
  color: var(--ops-secondary);
}

html[data-operational-theme="1"] .ops-btn {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  min-height: var(--ops-control-h);
  padding: 0 1.125rem;
  font-family: inherit;
  font-size: var(--ops-control-fs);
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  background: none;
  border: 1px solid transparent;
  border-radius: var(--ops-radius);
  cursor: pointer;
  outline: none;
  box-shadow: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, filter 0.15s ease;
}

html[data-operational-theme="1"] .ops-btn:focus-visible {
  box-shadow: 0 0 0 0.15rem rgba(var(--ops-accent-rgb), 0.28);
}

html[data-operational-theme="1"] .ops-btn--primary {
  background: var(--ops-primary);
  border-color: var(--ops-primary);
  color: var(--ops-on-primary);
}

html[data-operational-theme="1"] .ops-btn--primary:hover,
html[data-operational-theme="1"] .ops-btn--primary:focus {
  color: var(--ops-on-primary);
  filter: brightness(1.12);
}

html[data-operational-theme="1"] a.ops-btn--primary:hover,
html[data-operational-theme="1"] a.ops-btn--primary:focus {
  color: var(--ops-on-primary);
}

html[data-operational-theme="1"] .ops-btn--ghost {
  background: var(--ops-surface);
  border-color: var(--ops-border);
  color: var(--ops-secondary);
}

html[data-operational-theme="1"] .ops-btn--ghost:hover,
html[data-operational-theme="1"] .ops-btn--ghost:focus {
  background: rgba(var(--ops-border-rgb), 0.45);
  color: var(--ops-primary);
}

html[data-operational-theme="1"] a.ops-btn--ghost:hover,
html[data-operational-theme="1"] a.ops-btn--ghost:focus {
  color: var(--ops-primary);
}

@media (max-width: 991.98px) {
  html[data-operational-theme="1"] .ops-form-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.875rem;
  }
}

@media (max-width: 575.98px) {
  html[data-operational-theme="1"] .ops-form-card > .card-body {
    padding: 1.25rem 1rem 1rem;
  }

  html[data-operational-theme="1"] .ops-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  html[data-operational-theme="1"] .ops-segment {
    width: 100%;
  }

  html[data-operational-theme="1"] .ops-segment__label {
    flex: 1 1 0;
    justify-content: center;
    padding: 0.4375rem 0.5rem;
  }

  html[data-operational-theme="1"] .ops-form-footer {
    flex-wrap: wrap;
  }

  html[data-operational-theme="1"] .ops-form-footer__hint {
    flex: 1 1 100%;
    margin-bottom: 0.75rem;
  }

  html[data-operational-theme="1"] .ops-btn {
    flex: 1 1 auto;
  }
}

/* -------------------------------------------------------------------------- */
/* Global alert / confirm dialog                                              */
/* -------------------------------------------------------------------------- */
html[data-operational-theme="1"] {
  --ops-danger: #ea5455;
  --ops-danger-rgb: 234, 84, 85;
}

html[data-operational-theme="1"] #opsAlertDialog .modal-dialog {
  max-width: 22.5rem;
}

html[data-operational-theme="1"] .ops-alert-dialog .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.25rem 1.25rem 0.5rem;
  border-bottom: 0;
}

html[data-operational-theme="1"] .ops-alert-dialog .modal-body {
  padding: 0.25rem 1.25rem 1rem;
}

html[data-operational-theme="1"] .ops-alert-dialog .modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  padding: 0 1.25rem 1.25rem;
  border-top: 0;
}

html[data-operational-theme="1"] .ops-alert-dialog .modal-footer .ops-btn + .ops-btn {
  margin-left: 0.5rem;
}

html[data-operational-theme="1"] .ops-alert-dialog__close {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  margin: 0 0 0 auto;
  padding: 0;
  border: 1px solid var(--ops-border);
  border-radius: var(--ops-radius);
  background: rgba(var(--ops-border-rgb), 0.35);
  color: var(--ops-secondary);
  cursor: pointer;
  outline: none;
  line-height: 1;
  box-shadow: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

html[data-operational-theme="1"] .ops-alert-dialog__close i {
  font-size: 1rem;
  line-height: 1;
}

html[data-operational-theme="1"] .ops-alert-dialog__close:hover {
  background: rgba(var(--ops-accent-rgb), 0.12);
  border-color: rgba(var(--ops-accent-rgb), 0.28);
  color: var(--ops-accent);
}

html[data-operational-theme="1"] .ops-alert-dialog__close:focus,
html[data-operational-theme="1"] .ops-alert-dialog__close:focus-visible {
  border-color: var(--ops-accent);
  color: var(--ops-accent);
  box-shadow: 0 0 0 0.15rem rgba(var(--ops-accent-rgb), 0.18);
}

html[data-operational-theme="1"] .ops-alert-dialog__title {
  color: var(--ops-primary);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
}

html[data-operational-theme="1"] .ops-alert-dialog__message {
  color: var(--ops-secondary);
  font-size: 0.875rem;
  line-height: 1.45;
}

html[data-operational-theme="1"] .ops-alert-dialog__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  margin-right: 0.625rem;
  border-radius: var(--ops-radius);
  background: rgba(var(--ops-border-rgb), 0.55);
  color: var(--ops-secondary);
}

html[data-operational-theme="1"] .ops-alert-dialog--danger .ops-alert-dialog__icon {
  background: rgba(var(--ops-danger-rgb), 0.12);
  color: var(--ops-danger);
}

html[data-operational-theme="1"] .ops-btn--danger {
  background: var(--ops-danger);
  border-color: var(--ops-danger);
  color: #fff;
}

html[data-operational-theme="1"] .ops-btn--danger:hover,
html[data-operational-theme="1"] .ops-btn--danger:focus {
  color: #fff;
  filter: brightness(1.08);
}

html[data-operational-theme="1"] .ops-btn--danger:focus-visible {
  box-shadow: 0 0 0 0.15rem rgba(var(--ops-danger-rgb), 0.28);
}

@keyframes ops-spin {
  to { transform: rotate(360deg); }
}

html[data-operational-theme="1"] .ops-spin {
  display: inline-block;
  animation: ops-spin 0.85s linear infinite;
}

/* -------------------------------------------------------------------------- */
/* Global show / detail dialog                                                */
/* -------------------------------------------------------------------------- */
html[data-operational-theme="1"] #opsShowDialog.show {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

html[data-operational-theme="1"] #opsShowDialog .modal-dialog {
  width: min(72rem, calc(100vw - 2rem));
  max-width: min(72rem, calc(100vw - 2rem));
  margin: 0 auto;
}

html[data-operational-theme="1"] #opsShowDialog .modal-dialog.modal-xl {
  width: min(72rem, calc(100vw - 2rem));
  max-width: min(72rem, calc(100vw - 2rem));
}

html[data-operational-theme="1"] .ops-show-dialog .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--ops-border);
}

html[data-operational-theme="1"] .ops-show-dialog .modal-body {
  max-height: calc(100vh - 11rem);
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
}

html[data-operational-theme="1"] .ops-show-dialog .modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  padding: 0.875rem 1.25rem 1.25rem;
  border-top: 1px solid var(--ops-border);
}

html[data-operational-theme="1"] .ops-show-dialog .modal-footer .ops-btn + .ops-btn {
  margin-left: 0.5rem;
}

html[data-operational-theme="1"] .ops-show-dialog__title {
  color: var(--ops-primary);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
  padding-right: 0;
}

html[data-operational-theme="1"] .ops-show-dialog__close {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--ops-border);
  border-radius: var(--ops-radius);
  background: rgba(var(--ops-border-rgb), 0.35);
  color: var(--ops-secondary);
  cursor: pointer;
  outline: none;
  line-height: 1;
  box-shadow: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

html[data-operational-theme="1"] .ops-show-dialog__close i {
  font-size: 1rem;
  line-height: 1;
}

html[data-operational-theme="1"] .ops-show-dialog__close:hover {
  background: rgba(var(--ops-accent-rgb), 0.12);
  border-color: rgba(var(--ops-accent-rgb), 0.28);
  color: var(--ops-accent);
}

html[data-operational-theme="1"] .ops-show-dialog__close:focus,
html[data-operational-theme="1"] .ops-show-dialog__close:focus-visible {
  border-color: var(--ops-accent);
  color: var(--ops-accent);
  box-shadow: 0 0 0 0.15rem rgba(var(--ops-accent-rgb), 0.18);
}

html[data-operational-theme="1"] .ops-show-band + .ops-show-band {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ops-border);
}

html[data-operational-theme="1"] .ops-show-band__title {
  color: var(--ops-secondary);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.875rem;
}

html[data-operational-theme="1"] .ops-show-dl {
  margin: 0;
}

html[data-operational-theme="1"] .ops-show-dl > dt {
  color: var(--ops-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

html[data-operational-theme="1"] .ops-show-dl > dd {
  color: var(--ops-primary);
  font-size: 0.875rem;
  margin-bottom: 0;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

html[data-operational-theme="1"] .ops-show-dl code,
html[data-operational-theme="1"] .ops-show-timeline code {
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  color: var(--ops-primary);
  background: rgba(var(--ops-border-rgb), 0.35);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
}

html[data-operational-theme="1"] .ops-show-ops-block + .ops-show-ops-block {
  margin-top: 1.125rem;
  padding-top: 1.125rem;
  border-top: 1px dashed var(--ops-border);
}

html[data-operational-theme="1"] .ops-show-ops-block__title {
  color: var(--ops-primary);
  font-size: 0.8125rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

html[data-operational-theme="1"] .ops-show-timeline thead th {
  color: var(--ops-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  border-top: 0;
}

html[data-operational-theme="1"] .ops-show-label {
  font-size: 0.6875rem;
  margin-bottom: 0.25rem;
}

html[data-operational-theme="1"] .ops-form--modal {
  max-width: none;
}

html[data-operational-theme="1"] .ops-form--modal .ops-form-section:first-child {
  border-top: 0;
  padding-top: 0;
}

html[data-operational-theme="1"] .ops-form--modal .ops-form-footer {
  position: sticky;
  bottom: 0;
  background: var(--ops-surface);
  z-index: 1;
}
