/* Business layout adjustments on top of the unmodified Adminator template. */
.ops [hidden] { display: none !important; }
.ops :focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.ops :disabled { cursor: default; opacity: .55; }
.ops :is(p, dl) { margin: 0; }
.ops .shell, .ops .d-sidebar { min-height: 100dvh; }
.ops .brand-logo { flex-shrink: 0; }
.ops .brand-text { display: grid; gap: 4px; }
.ops .brand-tag { font-size: 11px; letter-spacing: 0; }
.ops summary.nav-link { list-style: none; cursor: pointer; }
.ops summary.nav-link::-webkit-details-marker { display: none; }
.ops .nav-item-group.is-open .nav-submenu { max-height: 40rem; }
.ops .ops-sidebar-account {
  display: grid;
  justify-items: start;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
  color: var(--t-muted);
}

[data-theme="light"] .ops-sun, [data-theme="dark"] .ops-moon { display: none; }
.ops #version-actions { display: contents; }
.ops #version-workspace { min-width: 0; }
.ops #version-workspace .boot { min-height: calc(100dvh - 60px); }
.ops .auth-shell { min-height: 100dvh; }
.ops .auth-main { min-height: 0; }
.ops .auth-aside .brand-logo { margin-bottom: 14px; }
.ops .auth-card h2 { margin: 0 0 16px; }

.ops .ops-toolbar, .ops .ops-button-group { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ops .ops-toolbar { align-items: flex-end; margin-bottom: 12px; }
.ops .table :is(th, td):not(:last-child) { padding-right: 16px; }
.ops .table th { white-space: nowrap; }
.ops .ops-pager { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 12px; }
.ops .ops-empty { padding: 20px 0; color: var(--t-muted); text-align: center; }
.ops .ops-notice { display: block; }

/* The business sidebar keeps labels on mid-size screens so grouped modules stay identifiable. */
@media (min-width: 721px) and (max-width: 1100px) {
  .ops .shell { grid-template-columns: 224px minmax(0, 1fr); }
  .ops .d-sidebar { padding-inline: 16px; }
  .ops .brand, .ops .nav-link { justify-content: flex-start; }
  .ops .brand-text { display: grid; }
  .ops .brand-tag, .ops .nav-link > span:not(.nav-badge) { display: revert; }
  .ops .nav-submenu {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    margin-left: 20px;
    opacity: 1;
    position: relative;
    inset: auto;
    visibility: visible;
    width: auto;
  }
  .ops .nav-submenu::before { display: block; }
  .ops .nav-item-group.is-open .nav-submenu { padding-left: 14px; }
}

@media (max-width: 720px) {
  .ops .topbar-actions { flex-shrink: 0; }
  .ops #environment-label { font-size: 10px; white-space: nowrap; }
}

.ops .ops-env-switch {
  height: 32px;
  padding: 0 28px 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border, #d8e1ee);
  background: var(--surface, #fff);
  color: var(--ink, #172439);
  font: 500 13px/1 inherit;
  cursor: pointer;
}
.ops .ops-readonly-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #f0d599;
  background: #fff9eb;
  color: #7c4d00;
  font-size: 13px;
}
[data-theme="dark"] .ops .ops-readonly-banner {
  border-color: rgba(245, 190, 75, 0.35);
  background: rgba(245, 190, 75, 0.12);
  color: #f8d486;
}
