:root {
  --ops-bg: #eef2f5;
  --ops-surface: #ffffff;
  --ops-surface-soft: #f7f9fb;
  --ops-sidebar: #151b22;
  --ops-sidebar-soft: #202832;
  --ops-border: #d5dce3;
  --ops-border-strong: #bcc7d1;
  --ops-text: #17202a;
  --ops-muted: #5f6d79;
  --ops-soft: #7c8995;
  --ops-accent: #2267d8;
  --ops-accent-soft: #e9f0fc;
  --ops-gold: #c89b55;
  --ops-green: #19704a;
  --ops-green-soft: #eaf6ef;
  --ops-amber: #8a5700;
  --ops-amber-soft: #fff4dc;
  --ops-red: #a42a34;
  --ops-red-soft: #fcebed;
  --ops-radius: 6px;
  --ops-shadow: 0 10px 30px rgba(21, 32, 43, 0.08);
  --ops-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  background: var(--ops-bg);
}

body {
  margin: 0;
  color: var(--ops-text);
  background: var(--ops-bg);
  font-family: var(--ops-font);
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

a {
  color: var(--ops-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: #174da8;
}

.ops-skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 12px;
  color: #fff;
  background: var(--ops-accent);
  border-radius: 4px;
  transform: translateY(-160%);
}

.ops-skip-link:focus {
  transform: none;
}

.ops-layout {
  min-height: 100vh;
}

.ops-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: 248px;
  min-height: 100vh;
  flex-direction: column;
  padding: 22px 16px 16px;
  color: #f4f6f8;
  background: var(--ops-sidebar);
  border-right: 1px solid #2b3540;
}

.ops-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.ops-brand:hover {
  color: inherit;
}

.ops-brand-mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  color: #151b22;
  background: var(--ops-gold);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}

.ops-brand strong,
.ops-brand small {
  display: block;
}

.ops-brand strong {
  font-size: 15px;
}

.ops-brand small {
  margin-top: 1px;
  color: #9eabb7;
  font-size: 12px;
  font-weight: 500;
}

.ops-sidebar-nav {
  display: grid;
  gap: 4px;
  margin-top: 34px;
}

.ops-sidebar-nav a {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 7px 10px;
  color: #bdc7d0;
  border: 1px solid transparent;
  border-radius: 5px;
  text-decoration: none;
}

.ops-sidebar-nav a:hover,
.ops-sidebar-nav a.is-active {
  color: #fff;
  background: var(--ops-sidebar-soft);
  border-color: #303b47;
}

.ops-sidebar-nav a.is-active {
  box-shadow: inset 3px 0 0 var(--ops-gold);
}

.ops-nav-code {
  color: #71808d;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.ops-sidebar-nav a.is-active .ops-nav-code {
  color: var(--ops-gold);
}

.ops-sidebar-foot {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid #2b3540;
}

.ops-environment {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #9eabb7;
  font-size: 12px;
}

.ops-user-summary {
  display: grid;
  gap: 2px;
  padding: 9px 0;
  border-top: 1px solid #2b3540;
  border-bottom: 1px solid #2b3540;
}

.ops-user-summary strong {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.ops-user-summary span,
.ops-user-summary a {
  color: #9eabb7;
  font-size: 11px;
}

.ops-user-summary a:hover {
  color: #fff;
}

.ops-live-dot {
  width: 8px;
  height: 8px;
  background: #42b883;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(66, 184, 131, 0.14);
}

.ops-logout {
  width: 100%;
  padding: 8px 10px;
  color: #d7dde2;
  background: transparent;
  border: 1px solid #3a4652;
  border-radius: 5px;
  cursor: pointer;
}

.ops-logout:hover {
  color: #fff;
  border-color: #657482;
}

.ops-workspace {
  min-width: 0;
  margin-left: 248px;
}

.ops-mobile-header {
  display: none;
}

.ops-main {
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.ops-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.ops-page-head h1 {
  margin: 2px 0 4px;
  font-size: 30px;
  line-height: 1.2;
}

.ops-page-head p {
  max-width: 74ch;
  margin: 0;
  color: var(--ops-muted);
}

.ops-kicker {
  color: var(--ops-soft) !important;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.ops-page-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.ops-source-line {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: -8px 0 18px;
  color: var(--ops-muted);
  font-size: 13px;
}

.ops-source-line strong {
  color: var(--ops-text);
}

.ops-status,
.ops-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 25px;
  padding: 3px 9px;
  color: #40505e;
  background: #eef2f5;
  border: 1px solid #d4dbe2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.ops-status.is-info {
  color: #1d57ad;
  background: var(--ops-accent-soft);
  border-color: #c8d8f2;
}

.ops-status.is-ok {
  color: var(--ops-green);
  background: var(--ops-green-soft);
  border-color: #c7e4d4;
}

.ops-status.is-warn {
  color: var(--ops-amber);
  background: var(--ops-amber-soft);
  border-color: #eed7a9;
}

.ops-status.is-danger {
  color: var(--ops-red);
  background: var(--ops-red-soft);
  border-color: #edc6ca;
}

.ops-status.is-muted {
  color: var(--ops-muted);
  background: #f1f3f5;
  border-color: #d9dee3;
}

.ops-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.ops-metric {
  min-height: 96px;
  padding: 15px 16px;
  background: var(--ops-surface);
  border: 1px solid var(--ops-border);
  border-radius: var(--ops-radius);
}

.ops-metric.is-alert {
  border-color: #e3b9bd;
  background: #fffafa;
}

.ops-metric-label {
  color: var(--ops-muted);
  font-size: 12px;
  font-weight: 650;
}

.ops-metric-value {
  margin-top: 5px;
  font-size: 25px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.ops-metric-note {
  margin-top: 2px;
  color: var(--ops-soft);
  font-size: 12px;
}

.ops-toolbar,
.ops-band {
  margin-bottom: 14px;
  padding: 14px;
  background: var(--ops-surface);
  border: 1px solid var(--ops-border);
  border-radius: var(--ops-radius);
}

.ops-filter-grid {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(150px, 1fr)) auto auto;
  gap: 10px;
  align-items: end;
}

.ops-field {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--ops-muted);
  font-size: 12px;
  font-weight: 650;
}

.ops-input,
.ops-select,
.ops-textarea {
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
  color: var(--ops-text);
  background: #fff;
  border: 1px solid var(--ops-border-strong);
  border-radius: 5px;
}

.ops-input,
.ops-select {
  height: 40px;
}

.ops-textarea {
  min-height: 88px;
  resize: vertical;
}

.ops-input:focus,
.ops-select:focus,
.ops-textarea:focus {
  outline: 3px solid rgba(34, 103, 216, 0.14);
  border-color: var(--ops-accent);
}

.ops-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  color: var(--ops-text);
  background: #fff;
  border: 1px solid var(--ops-border-strong);
  border-radius: 5px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.ops-button:hover {
  color: var(--ops-text);
  background: var(--ops-surface-soft);
  border-color: #9faeba;
}

.ops-button.is-primary {
  color: #fff;
  background: var(--ops-accent);
  border-color: var(--ops-accent);
}

.ops-button.is-primary:hover {
  color: #fff;
  background: #1b57ba;
}

.ops-btn {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  color: var(--ops-text);
  background: #fff;
  border: 1px solid var(--ops-border-strong);
  border-radius: 5px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.ops-btn:hover {
  color: var(--ops-text);
  background: var(--ops-surface-soft);
  border-color: #9faeba;
}

.ops-btn-primary {
  color: #fff;
  background: var(--ops-accent);
  border-color: var(--ops-accent);
}

.ops-btn-primary:hover {
  color: #fff;
  background: #1b57ba;
}

.ops-muted,
.text-muted {
  color: var(--ops-muted);
}

.ops-compact-value {
  font-size: 16px;
}

.ops-grid-pad {
  padding: 14px;
}

.ops-top-gap {
  margin-top: 12px;
}

.ops-search-form {
  display: flex;
  width: min(540px, 100%);
  gap: 8px;
}

.ops-search-form .ops-input {
  min-width: 0;
}

.ops-legal-filter {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) minmax(190px, 1fr) minmax(190px, 1fr) auto auto;
  gap: 10px;
  align-items: end;
}

.ops-status-tabs {
  display: flex;
  gap: 7px;
  margin-bottom: 14px;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.ops-status-tabs a {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 7px;
  align-items: center;
  min-height: 36px;
  padding: 7px 11px;
  color: var(--ops-muted);
  background: var(--ops-surface);
  border: 1px solid var(--ops-border);
  border-radius: 5px;
  text-decoration: none;
}

.ops-status-tabs a:hover,
.ops-status-tabs a.is-active {
  color: var(--ops-text);
  border-color: var(--ops-accent);
}

.ops-status-tabs b {
  min-width: 23px;
  padding: 1px 6px;
  color: var(--ops-muted);
  background: var(--ops-bg);
  border-radius: 999px;
  text-align: center;
  font-size: 11px;
}

.ops-data-section {
  background: var(--ops-surface);
  border: 1px solid var(--ops-border);
  border-radius: var(--ops-radius);
  overflow: hidden;
}

.ops-panel {
  margin-bottom: 14px;
  padding: 16px;
  background: var(--ops-surface);
  border: 1px solid var(--ops-border);
  border-radius: var(--ops-radius);
}

.ops-panel > h2,
.ops-panel-head h2,
.ops-panel h3 {
  margin: 0;
}

.ops-panel > h2 {
  margin-bottom: 12px;
  font-size: 17px;
}

.ops-panel h3 {
  font-size: 14px;
}

.ops-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -16px -16px 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ops-border);
}

.ops-panel-head h2 {
  font-size: 16px;
}

.ops-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ops-tabs {
  display: flex;
  gap: 4px;
  margin: 0 0 14px;
  padding: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--ops-border);
  list-style: none;
}

.ops-tabs a {
  display: block;
  padding: 9px 12px;
  color: var(--ops-muted);
  border-bottom: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.ops-tabs a:hover,
.ops-tabs a.is-active {
  color: var(--ops-text);
  border-bottom-color: var(--ops-accent);
}

.table-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.table-tools .ops-input {
  width: min(420px, 100%);
}

.sort-button {
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  text-transform: inherit;
  cursor: pointer;
}

th.sorted-asc .sort-button::after {
  content: " ↑";
}

th.sorted-desc .sort-button::after {
  content: " ↓";
}

.d-flex {
  display: flex;
}

.justify-content-between {
  justify-content: space-between;
}

.align-items-start {
  align-items: flex-start;
}

.align-items-center {
  align-items: center;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-2 {
  gap: 8px;
}

.gap-3 {
  gap: 12px;
}

.mb-2 {
  margin-bottom: 8px;
}

.mb-3 {
  margin-bottom: 12px;
}

.mt-2 {
  margin-top: 8px;
}

.small {
  font-size: 12px;
}

.text-end {
  text-align: right !important;
}

.path-cell {
  max-width: 420px;
  overflow-wrap: anywhere;
}

.path-cell code {
  font-size: 11px;
  white-space: normal;
}

.qty-in {
  color: var(--ops-green);
}

.qty-out {
  color: var(--ops-red);
}

.qty-total {
  font-weight: 750;
}

.ops-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  padding: 12px 15px;
  border-bottom: 1px solid var(--ops-border);
}

.ops-section-head h2 {
  margin: 0;
  font-size: 16px;
}

.ops-section-head span {
  color: var(--ops-muted);
  font-size: 12px;
}

.ops-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.ops-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--ops-surface);
}

.ops-table th,
.ops-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #e5e9ed;
  text-align: left;
  vertical-align: top;
}

.ops-table th {
  color: var(--ops-muted);
  background: var(--ops-surface-soft);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  white-space: nowrap;
}

.ops-table td {
  font-size: 13px;
}

.ops-table tbody tr:hover {
  background: #fbfcfd;
}

.ops-table tbody tr:last-child td {
  border-bottom: 0;
}

.ops-legal-table {
  min-width: 1080px;
}

.ops-legal-table th,
.ops-legal-table td {
  padding: 15px 16px;
}

.ops-legal-table tbody tr.is-important {
  box-shadow: inset 3px 0 0 var(--ops-red);
}

.ops-case-number {
  display: block;
  width: fit-content;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.ops-table-secondary.is-danger {
  color: var(--ops-red);
  font-weight: 700;
}

.ops-access-table {
  min-width: 1080px;
  table-layout: fixed;
}

.ops-access-table th,
.ops-access-table td {
  padding: 17px 22px;
  vertical-align: middle;
}

.ops-access-table .ops-access-col-account {
  width: 28%;
}

.ops-access-table .ops-access-col-role {
  width: 24%;
}

.ops-access-table .ops-access-col-state {
  width: 18%;
}

.ops-access-table .ops-access-col-login {
  width: 16%;
}

.ops-access-table .ops-access-col-actions {
  width: 210px;
}

.ops-access-table .ops-inline-actions {
  flex-wrap: nowrap;
  gap: 10px;
}

.ops-access-table .ops-table-secondary {
  overflow-wrap: anywhere;
}

.ops-role-table {
  min-width: 900px;
}

.ops-role-table th,
.ops-role-table td {
  padding: 17px 20px;
  vertical-align: middle;
}

.ops-role-table th:first-child {
  width: 25%;
}

.ops-role-table th:nth-child(2) {
  width: 48%;
}

.ops-role-table th:nth-child(3) {
  width: 100px;
}

.ops-permission-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.ops-permission-level {
  display: inline-flex;
  width: fit-content;
  min-height: 26px;
  align-items: center;
  padding: 4px 8px;
  color: var(--ops-muted);
  background: #f1f3f5;
  border: 1px solid #d9dee3;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.ops-permission-level.is-read {
  color: #1d57ad;
  background: var(--ops-accent-soft);
  border-color: #c8d8f2;
}

.ops-permission-level.is-write {
  color: var(--ops-green);
  background: var(--ops-green-soft);
  border-color: #c7e4d4;
}

.ops-permission-table {
  min-width: 800px;
  table-layout: fixed;
}

.ops-permission-table th,
.ops-permission-table td {
  padding: 15px 18px;
  vertical-align: middle;
}

.ops-permission-table th:first-child {
  width: 28%;
}

.ops-permission-table th:last-child {
  width: 260px;
}

.ops-permission-table .ops-select {
  max-width: 240px;
}

.ops-table-title {
  display: block;
  max-width: 52ch;
  color: var(--ops-text);
  font-weight: 700;
  text-decoration: none;
}

.ops-table-title:hover {
  color: var(--ops-accent);
}

.ops-table-secondary {
  display: block;
  max-width: 58ch;
  margin-top: 3px;
  color: var(--ops-muted);
  font-size: 12px;
}

.ops-nowrap {
  white-space: nowrap;
}

.ops-empty {
  padding: 30px 18px !important;
  color: var(--ops-muted);
  text-align: center !important;
}

.ops-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 15px;
  border-top: 1px solid var(--ops-border);
}

.ops-pagination-links {
  display: flex;
  gap: 7px;
}

.ops-alert {
  margin-bottom: 14px;
  padding: 11px 13px;
  color: var(--ops-amber);
  background: var(--ops-amber-soft);
  border: 1px solid #ecd39d;
  border-radius: 5px;
}

.ops-alert.is-danger {
  color: var(--ops-red);
  background: var(--ops-red-soft);
  border-color: #e8bcc1;
}

.ops-alert.success {
  color: var(--ops-green);
  background: var(--ops-green-soft);
  border-color: #c7e4d4;
}

.ops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.ops-dashboard-link {
  display: block;
  min-height: 150px;
  padding: 16px;
  color: inherit;
  background: var(--ops-surface);
  border: 1px solid var(--ops-border);
  border-radius: var(--ops-radius);
  text-decoration: none;
}

.ops-dashboard-link:hover {
  color: inherit;
  border-color: #9eb4d5;
  box-shadow: var(--ops-shadow);
}

.ops-dashboard-link h2 {
  margin: 7px 0 8px;
  font-size: 17px;
}

.ops-dashboard-link p {
  margin: 0;
  color: var(--ops-muted);
  font-size: 13px;
}

.ops-dashboard-link-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}

.ops-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 0.8fr);
  gap: 14px;
}

.ops-legal-detail {
  grid-template-columns: minmax(0, 1.8fr) minmax(320px, 1fr);
}

.ops-legal-detail .ops-facts div {
  grid-template-columns: 110px 1fr;
}

.ops-detail-section {
  padding: 18px;
  background: var(--ops-surface);
  border: 1px solid var(--ops-border);
  border-radius: var(--ops-radius);
}

.ops-detail-section h2 {
  margin: 0 0 12px;
  font-size: 16px;
}

.ops-detail-section p {
  margin: 0;
  color: var(--ops-muted);
}

.ops-detail-section .ops-preline {
  white-space: pre-wrap;
}

.ops-detail-section + .ops-detail-section {
  margin-top: 14px;
}

.ops-section-title-row,
.ops-timeline-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ops-action-form {
  display: grid;
  grid-template-columns: minmax(170px, 0.7fr) minmax(220px, 1.4fr) auto;
  gap: 10px;
  align-items: end;
}

.ops-legal-status-form {
  grid-template-columns: minmax(220px, 1fr) auto;
  max-width: 560px;
  margin-top: 12px;
}

.ops-field-grow {
  min-width: 0;
}

.ops-note-form {
  display: grid;
  gap: 9px;
  margin-bottom: 18px;
}

.ops-note-form .ops-button {
  width: fit-content;
}

.ops-legal-summary,
.ops-legal-hearings {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--ops-border);
}

.ops-legal-summary > strong,
.ops-legal-hearings > strong {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
}

.ops-resource-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ops-resource-list li {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--ops-border);
}

.ops-resource-list li:first-child {
  border-top: 0;
}

.ops-resource-list li span {
  flex: 0 0 auto;
  color: var(--ops-soft);
  font-size: 11px;
}

.ops-legal-material-form {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(260px, 1.4fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--ops-border);
}

.ops-legal-important {
  background: #fffafa;
  border-color: #e3b9bd;
}

.ops-timeline {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ops-timeline li {
  padding: 12px 0;
  border-top: 1px solid var(--ops-border);
}

.ops-timeline-meta strong {
  font-size: 13px;
}

.ops-timeline-meta span {
  color: var(--ops-soft);
  font-size: 12px;
}

.ops-timeline li > p {
  margin: 4px 0 0;
}

.ops-edit-form {
  display: grid;
  gap: 14px;
}

.ops-form-section {
  padding: 16px;
  background: var(--ops-surface);
  border: 1px solid var(--ops-border);
  border-radius: var(--ops-radius);
}

.ops-form-section h2 {
  margin: 0 0 14px;
  font-size: 16px;
}

.ops-form-section .ops-section-head.is-compact {
  margin: -16px -16px 14px;
}

.ops-form-section .ops-section-head.is-compact h2 {
  margin: 0;
}

.ops-form-section .ops-section-head.is-compact p:last-child {
  margin: 5px 0 0;
}

.ops-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ops-form-span-2 {
  grid-column: span 2;
}

.ops-field-help {
  color: var(--ops-soft);
  font-size: 11px;
  font-weight: 500;
}

.ops-field .errorlist {
  margin: 0;
  padding: 0;
  color: var(--ops-red);
  font-size: 12px;
  list-style: none;
}

.ops-form-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  padding: 12px 0;
  background: linear-gradient(to bottom, rgba(238, 242, 245, 0), var(--ops-bg) 30%);
}

.ops-form-narrow {
  max-width: 720px;
}

.ops-check-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.ops-check-list label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  font-weight: 650;
  cursor: pointer;
}

.ops-checkbox {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--ops-accent);
}

.ops-check-line {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 9px;
  font-weight: 650;
  cursor: pointer;
}

.ops-check-line .errorlist {
  margin: 0;
  color: var(--ops-red);
  font-size: 12px;
  list-style: none;
}

.ops-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ops-inline-actions .ops-button {
  min-height: 32px;
  padding: 5px 8px;
  font-size: 12px;
}

.ops-facts {
  display: grid;
  gap: 0;
  margin: 0;
}

.ops-facts div {
  display: grid;
  grid-template-columns: 135px 1fr;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #e5e9ed;
}

.ops-facts div:last-child {
  border-bottom: 0;
}

.ops-facts dt {
  color: var(--ops-muted);
  font-size: 12px;
  font-weight: 650;
}

.ops-facts dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.ops-login-body {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  color: #f4f6f8;
  background: var(--ops-sidebar);
}

.ops-login {
  width: min(420px, 100%);
}

.ops-login .ops-brand {
  margin-bottom: 24px;
}

.ops-login-card {
  padding: 24px;
  color: var(--ops-text);
  background: var(--ops-surface);
  border: 1px solid #35404b;
  border-radius: 7px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.25);
}

.ops-login-card h1 {
  margin: 0 0 5px;
  font-size: 24px;
}

.ops-login-card p {
  margin: 0 0 20px;
  color: var(--ops-muted);
}

.ops-login-form {
  display: grid;
  gap: 13px;
}

.ops-login-form .ops-button {
  width: 100%;
  margin-top: 4px;
}

@media (max-width: 1180px) {
  .ops-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ops-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ops-legal-filter {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .ops-sidebar {
    display: none;
  }

  .ops-workspace {
    margin-left: 0;
  }

  .ops-mobile-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 14px;
    color: #fff;
    background: var(--ops-sidebar);
    border-bottom: 1px solid #2b3540;
  }

  .ops-mobile-header .ops-brand-mark {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .ops-mobile-menu {
    position: relative;
  }

  .ops-mobile-menu summary {
    padding: 7px 10px;
    color: #fff;
    border: 1px solid #45515d;
    border-radius: 5px;
    cursor: pointer;
    list-style: none;
  }

  .ops-mobile-menu nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: grid;
    width: 220px;
    padding: 7px;
    background: var(--ops-sidebar);
    border: 1px solid #394551;
    border-radius: 6px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  }

  .ops-mobile-menu nav a {
    padding: 9px 10px;
    color: #d8dee4;
    border-radius: 4px;
    text-decoration: none;
  }

  .ops-mobile-menu nav a:hover {
    color: #fff;
    background: var(--ops-sidebar-soft);
  }

  .ops-main {
    width: min(100% - 24px, 1480px);
    padding-top: 20px;
  }

  .ops-detail-layout {
    grid-template-columns: 1fr;
  }

  .ops-grid-2 {
    grid-template-columns: 1fr;
  }

  .ops-action-form {
    grid-template-columns: 1fr;
  }

  .ops-legal-material-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ops-page-head {
    display: grid;
  }

  .ops-page-head h1 {
    font-size: 25px;
  }

  .ops-page-actions {
    width: 100%;
  }

  .ops-metric-grid,
  .ops-filter-grid,
  .ops-legal-filter {
    grid-template-columns: 1fr;
  }

  .ops-metric {
    min-height: 82px;
  }

  .ops-toolbar {
    padding: 11px;
  }

  .ops-filter-grid .ops-button {
    width: 100%;
  }

  .ops-legal-filter .ops-button {
    width: 100%;
  }

  .ops-data-section {
    overflow: visible;
    background: transparent;
    border: 0;
  }

  .ops-section-head {
    margin-bottom: 8px;
    background: var(--ops-surface);
    border: 1px solid var(--ops-border);
    border-radius: var(--ops-radius);
  }

  .ops-table-wrap {
    overflow: visible;
  }

  .ops-registry-table,
  .ops-registry-table tbody,
  .ops-registry-table tr,
  .ops-registry-table td {
    display: block;
    width: 100%;
  }

  .ops-registry-table thead {
    display: none;
  }

  .ops-registry-table tbody {
    display: grid;
    gap: 9px;
  }

  .ops-registry-table tbody tr {
    padding: 12px;
    background: var(--ops-surface);
    border: 1px solid var(--ops-border);
    border-radius: var(--ops-radius);
  }

  .ops-registry-table td {
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid #e6eaee;
    overflow-wrap: anywhere;
  }

  .ops-registry-table td::before {
    content: attr(data-label);
    color: var(--ops-muted);
    font-size: 11px;
    font-weight: 750;
    text-transform: uppercase;
  }

  .ops-registry-table td:last-child {
    border-bottom: 0;
  }

  .ops-legal-table {
    min-width: 0;
  }

  .ops-legal-table tbody tr.is-important {
    box-shadow: inset 3px 0 0 var(--ops-red);
  }

  .ops-access-table {
    min-width: 0;
    table-layout: auto;
  }

  .ops-role-table {
    min-width: 0;
  }

  .ops-access-table .ops-inline-actions {
    flex-wrap: wrap;
  }

  .ops-permission-table {
    min-width: 680px;
  }

  .ops-table-title,
  .ops-table-secondary {
    max-width: none;
  }

  .ops-pagination {
    align-items: stretch;
    flex-direction: column;
    background: var(--ops-surface);
    border: 1px solid var(--ops-border);
    border-radius: var(--ops-radius);
  }

  .ops-pagination-links .ops-button {
    flex: 1;
  }

  .ops-facts div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .ops-form-grid {
    grid-template-columns: 1fr;
  }

  .ops-form-span-2 {
    grid-column: span 1;
  }

  .ops-timeline-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .ops-form-actions .ops-button {
    width: 100%;
  }

  .ops-search-form {
    display: grid;
  }

  .ops-search-form .ops-btn {
    width: 100%;
  }
}
