:root {
  --dmc-primary: #2563eb;
  --dmc-primary-hover: #1d4ed8;
  --dmc-bg: #f6f8fb;
  --dmc-surface: #ffffff;
  --dmc-border: #e2e8f0;
  --dmc-border-strong: #cbd5e1;
  --dmc-muted: #64748b;
  --dmc-ink: #172033;
  --dmc-soft: #f8fafc;
  --dmc-success: #16a34a;
  --dmc-warning: #d97706;
  --dmc-danger: #dc2626;
  --dmc-radius-sm: 8px;
  --dmc-radius: 10px;
  --dmc-radius-lg: 12px;
  --dmc-gap-xs: 8px;
  --dmc-gap-sm: 12px;
  --dmc-gap-md: 16px;
  --dmc-gap-lg: 20px;
  --dmc-gap-xl: 24px;
  --dmc-header-height: 56px;
  --dmc-sidebar-width: 220px;
  --dmc-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --dmc-shadow-md: 0 10px 28px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  min-width: 0;
  color: var(--dmc-ink);
  background: var(--dmc-bg);
  font-variant-numeric: tabular-nums;
}

.login-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--dmc-gap-xl);
  background: var(--dmc-bg);
}

.login-panel {
  width: min(360px, 100%);
  display: grid;
  gap: var(--dmc-gap-sm);
  padding: var(--dmc-gap-xl);
  border: 1px solid var(--dmc-border);
  border-radius: var(--dmc-radius-lg);
  background: var(--dmc-surface);
  box-shadow: 0 20px 46px rgba(15, 23, 42, 0.08);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: var(--dmc-gap-sm);
  margin-bottom: var(--dmc-gap-xs);
}

.login-brand h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.login-brand p {
  margin: 2px 0 0;
  color: var(--dmc-muted);
  font-size: 13px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  color: #fff;
  background: var(--dmc-primary);
  font-size: 12px;
  font-weight: 800;
}

.field-label {
  margin: 0;
  color: var(--dmc-ink);
  font-size: 13px;
  font-weight: 600;
}

.login-panel .form-control,
.login-panel .btn {
  min-height: 38px;
  border-radius: var(--dmc-radius-sm);
}

.captcha-block {
  display: grid;
  gap: 6px;
}

.captcha-row {
  display: flex;
  align-items: flex-start;
}

.captcha-image {
  width: 180px;
  height: 42px;
  display: block;
  border: 1px solid var(--dmc-border);
  border-radius: var(--dmc-radius-sm);
  background: var(--dmc-soft);
  object-fit: contain;
  cursor: pointer;
  user-select: none;
}

.console-shell:not(.d-none) {
  min-height: 100vh;
  height: 100vh;
  display: grid !important;
  grid-template-columns: var(--dmc-sidebar-width) minmax(0, 1fr);
  grid-template-rows: var(--dmc-header-height) minmax(0, 1fr);
  overflow: hidden;
  background: var(--dmc-bg);
}

.console-sidebar {
  grid-column: 1;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: #e5edf9;
  background: #0f172a;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.console-brand-block {
  height: var(--dmc-header-height);
  display: flex;
  align-items: center;
  gap: var(--dmc-gap-sm);
  padding: 0 var(--dmc-gap-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.console-brand-block .brand-mark {
  color: #0f172a;
  background: #fff;
}

.brand-text {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.console-nav {
  display: grid;
  gap: 4px;
  padding: var(--dmc-gap-sm) var(--dmc-gap-xs);
}

.console-nav .nav-link {
  min-height: 38px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--dmc-gap-sm);
  padding: 0 var(--dmc-gap-sm);
  border: 0;
  border-radius: var(--dmc-radius-sm);
  color: rgba(226, 232, 240, 0.78);
  background: transparent;
  font-size: 14px;
  text-align: left;
  transition: color 0.16s ease, background 0.16s ease;
  cursor: pointer;
}

.console-nav .nav-link i {
  width: 18px;
  font-size: 17px;
  text-align: center;
}

.console-nav .nav-link:hover,
.console-nav .nav-link:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.console-nav .nav-link.active {
  color: #fff;
  background: var(--dmc-primary);
  font-weight: 650;
}

.console-header {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  height: var(--dmc-header-height);
  display: flex;
  align-items: center;
  gap: var(--dmc-gap-sm);
  padding: 0 var(--dmc-gap-xl);
  border-bottom: 1px solid var(--dmc-border);
  background: var(--dmc-surface);
  z-index: 10;
}

.navbar-toggler {
  display: none;
}

.console-header-title {
  min-width: 0;
  flex: 1 1 auto;
  color: var(--dmc-ink);
  font-size: 17px;
  font-weight: 700;
}

.console-header-actions {
  display: flex;
  align-items: center;
  gap: var(--dmc-gap-xs);
}

.btn {
  border-radius: var(--dmc-radius-sm);
  font-weight: 600;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.btn-primary {
  border-color: var(--dmc-primary);
  background: var(--dmc-primary);
}

.btn-primary:hover,
.btn-primary:focus {
  border-color: var(--dmc-primary-hover);
  background: var(--dmc-primary-hover);
}

.btn-link {
  color: var(--dmc-muted);
  text-decoration: none;
}

.btn-link:hover,
.btn-link:focus {
  color: var(--dmc-primary);
}

.page-wrapper {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--dmc-gap-lg);
}

.console-page {
  min-width: 0;
}

#pageHost.is-loading {
  opacity: .58;
  pointer-events: none;
}

.panel {
  min-width: 0;
  border: 1px solid var(--dmc-border);
  border-radius: var(--dmc-radius);
  background: var(--dmc-surface);
  box-shadow: var(--dmc-shadow-sm);
}

.panel-header,
.panel-toolbar {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--dmc-gap-sm);
  padding: var(--dmc-gap-sm) var(--dmc-gap-md);
  border-bottom: 1px solid var(--dmc-border);
}

.panel-toolbar {
  align-items: stretch;
  flex-direction: column;
  justify-content: flex-start;
}

.panel-header h2,
.panel-toolbar h2 {
  margin: 0;
  color: var(--dmc-ink);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.panel-body {
  display: grid;
  gap: var(--dmc-gap-sm);
  padding: var(--dmc-gap-md);
}

.panel-footer {
  padding: var(--dmc-gap-sm) var(--dmc-gap-md);
  border-top: 1px solid var(--dmc-border);
}

.toolbar-title,
.toolbar-filters {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--dmc-gap-xs);
}

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

.toolbar-filters {
  justify-content: flex-start;
}

.toolbar-filters .form-control,
.toolbar-filters .form-select {
  width: 176px;
  min-height: 32px;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: var(--dmc-gap-xs);
  width: 100%;
  margin-left: 0;
}

.toolbar-actions:empty {
  display: none;
}

.toolbar-filters .btn,
.toolbar-actions .btn {
  min-height: 32px;
  padding-right: var(--dmc-gap-sm);
  padding-left: var(--dmc-gap-sm);
}

.toolbar-filters .btn-link,
.toolbar-actions .btn-link {
  padding-right: var(--dmc-gap-xs);
  padding-left: var(--dmc-gap-xs);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: var(--dmc-gap-md);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--dmc-gap-md);
}

.metric-card {
  height: 100%;
  border: 1px solid var(--dmc-border);
  border-radius: var(--dmc-radius);
  background: var(--dmc-surface);
}

.metric-card-body {
  padding: var(--dmc-gap-md);
}

.metric-label {
  color: var(--dmc-muted);
  font-size: 13px;
  font-weight: 600;
}

.metric-value {
  margin-top: var(--dmc-gap-xs);
  color: var(--dmc-ink);
  font-size: 28px;
  line-height: 1.1;
  font-weight: 760;
}

.panel-dial {
  height: 100%;
}

.online-dial {
  display: grid;
  gap: var(--dmc-gap-md);
  padding: var(--dmc-gap-md);
}

.dial-ring {
  --online-deg: 0deg;
  --stale-deg: 0deg;
  width: 176px;
  height: 176px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 999px;
  background:
    conic-gradient(
      var(--dmc-success) 0 var(--online-deg),
      var(--dmc-warning) var(--online-deg) calc(var(--online-deg) + var(--stale-deg)),
      #cbd5e1 calc(var(--online-deg) + var(--stale-deg)) 360deg
    );
}

.dial-center {
  width: 124px;
  height: 124px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 999px;
  background: #fff;
}

.dial-total {
  color: var(--dmc-ink);
  font-size: 30px;
  line-height: 1;
  font-weight: 760;
}

.dial-label {
  margin-top: 4px;
  color: var(--dmc-muted);
  font-size: 12px;
}

.dial-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--dmc-gap-sm);
  color: var(--dmc-muted);
  font-size: 13px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 6px;
  border-radius: 999px;
}

.dot-online { background: var(--dmc-success); }
.dot-stale { background: var(--dmc-warning); }
.dot-offline { background: #cbd5e1; }

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

.console-table {
  min-width: 760px;
  margin: 0;
  color: var(--dmc-ink);
}

.console-table thead th {
  padding: var(--dmc-gap-xs) var(--dmc-gap-md);
  color: var(--dmc-muted);
  background: var(--dmc-soft);
  border-bottom: 1px solid var(--dmc-border);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.console-table tbody td {
  padding: 10px var(--dmc-gap-md);
  border-top: 1px solid var(--dmc-border);
  vertical-align: middle;
  font-size: 13px;
}

.console-table tbody tr:hover {
  background: #fbfdff;
}

.col-license-account {
  width: 28%;
}

.col-license-status {
  width: 10%;
}

.col-license-trade {
  width: 34%;
}

.col-license-strategy {
  width: 14%;
}

.col-license-actions {
  width: 14%;
}

.entity-main {
  color: var(--dmc-ink);
  font-weight: 650;
}

.entity-sub {
  margin-top: 2px;
  color: var(--dmc-muted);
  font-size: 12px;
}

.audit-summary {
  max-width: 520px;
  color: #334155;
  line-height: 1.45;
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.badge-ok {
  color: #166534;
  background: #dcfce7;
}

.badge-warn {
  color: #92400e;
  background: #fef3c7;
}

.badge-danger {
  color: #991b1b;
  background: #fee2e2;
}

.online-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.online-age {
  color: var(--dmc-muted);
  font-size: 12px;
  white-space: nowrap;
}

.runtime-position-summary {
  display: grid;
  gap: 4px;
}

.position-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.position-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  color: #1e3a8a;
  background: #dbeafe;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.license-actions,
.customer-edit-actions,
.actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.customer-edit-actions {
  flex-wrap: wrap;
}

.subject-action-group {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.customer-license-card > td {
  vertical-align: top;
}

.customer-license-header {
  display: grid;
  gap: 6px;
}

.customer-license-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.customer-license-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  color: #334155;
  background: #f1f5f9;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.license-count-text {
  color: #1e293b;
}

.license-subrows {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.license-subrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.license-id-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  max-width: 100%;
  overflow: hidden;
}

.license-id-pill,
.license-strategy-pill,
.license-id-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid #e5eaf2;
  border-radius: 999px;
  background: #ffffff;
  color: var(--dmc-ink);
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.license-id-pill {
  max-width: 118px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.customer-subject-id {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-right: 8px;
  padding: 0 7px;
  border: 1px solid #dbe5f2;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  font-weight: 650;
}

.license-id-more {
  background: #f8fafc;
  color: var(--dmc-muted);
  font-weight: 700;
}

.device-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.device-bound {
  color: #166534;
  background: #dcfce7;
}

.device-unbound {
  color: #92400e;
  background: #fef3c7;
}

.license-strategy-pill {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
  font-weight: 700;
}

.default-strategy-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-left: 8px;
  padding: 0 7px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 750;
  vertical-align: middle;
}

.license-expiry-text {
  color: var(--dmc-muted);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.customer-license-meta .license-expiry-text {
  background: #eef4ff;
  color: #1d4ed8;
}

.license-actions .btn,
.customer-edit-actions .btn,
.actions .btn {
  min-height: 30px;
  padding: 3px 8px;
  border-radius: 7px;
}

.subject-action-group .btn {
  min-width: 46px;
}

.editor-batch-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--dmc-border);
  border-radius: var(--dmc-radius-sm);
  background: #f8fafc;
}

.customer-account-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--dmc-border);
  border-radius: var(--dmc-radius-sm);
  background: #fff;
  overflow: hidden;
}

.customer-account-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.75fr) minmax(220px, 1.35fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--dmc-border);
  background: #ffffff;
}

.customer-account-row:last-child {
  border-bottom: 0;
}

.customer-account-id {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--dmc-ink);
  font-weight: 750;
}

.customer-account-status {
  justify-self: end;
}

.customer-account-device {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 6px;
  color: var(--dmc-muted);
  font-size: 12px;
  white-space: nowrap;
}

.device-label {
  color: #64748b;
  font-weight: 650;
}

.device-id-code {
  display: inline-block;
  max-width: min(360px, 100%);
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 2px 6px;
  border: 1px solid var(--dmc-border);
  border-radius: 6px;
  background: #f8fafc;
  color: #334155;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.45;
  vertical-align: middle;
}

.device-id-empty {
  overflow: hidden;
  text-overflow: ellipsis;
  color: #64748b;
  font-size: 12px;
}

.customer-account-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.customer-account-actions .btn {
  min-height: 28px;
  padding: 3px 9px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
}

.account-delete-toggle,
.account-reset-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 3px 8px;
  border: 1px solid #fecaca;
  border-radius: 7px;
  color: #dc2626;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.account-reset-toggle {
  border-color: #cbd5e1;
  color: #475569;
  background: #fff;
}

.account-delete-toggle input,
.account-reset-toggle input {
  width: 14px;
  height: 14px;
  margin: 0;
}

.customer-account-row .customer-account-id {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subject-expiry-line,
.inline-note {
  min-height: 38px;
  padding: 9px 11px;
  border: 1px solid var(--dmc-border);
  border-radius: var(--dmc-radius-sm);
  background: #f8fafc;
  color: var(--dmc-muted);
  font-size: 13px;
  font-weight: 650;
}

.subject-expiry-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.subject-expiry-line strong {
  color: var(--dmc-ink);
  font-weight: 750;
}

.empty-row {
  padding: var(--dmc-gap-xl) !important;
  color: var(--dmc-muted);
  text-align: center;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--dmc-gap-sm);
  color: var(--dmc-muted);
  font-size: 13px;
  width: 100%;
  flex-wrap: wrap;
}

.pager-info,
.pager-controls,
.pager-size-label {
  display: inline-flex;
  align-items: center;
  gap: var(--dmc-gap-xs);
}

.pager-info {
  min-height: 32px;
  order: 0;
}

.pager-size-label {
  color: var(--dmc-muted);
  white-space: nowrap;
  order: 1;
}

.pager-controls .btn {
  order: 2;
}

.pager-size {
  width: 74px;
  min-height: 30px;
  padding-top: 3px;
  padding-bottom: 3px;
}

.pager-pages {
  color: var(--dmc-ink);
  font-weight: 650;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--dmc-gap-md);
  align-items: start;
}

.password-panel .form-control {
  min-height: 38px;
}

.modal-content {
  border: 0;
  border-radius: var(--dmc-radius-lg);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}

.modal-header,
.modal-footer {
  padding: var(--dmc-gap-md);
}

.modal-body {
  padding: var(--dmc-gap-md);
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
}

.modal-error {
  margin: 12px 16px 0;
  padding: 10px 12px;
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--dmc-radius-sm);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--dmc-gap-sm);
}

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

.form-label {
  color: var(--dmc-ink);
  font-size: 13px;
  font-weight: 650;
}

.form-control,
.form-select {
  border-color: var(--dmc-border-strong);
  border-radius: var(--dmc-radius-sm);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--dmc-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.console-notification {
  position: fixed;
  right: var(--dmc-gap-lg);
  bottom: var(--dmc-gap-lg);
  z-index: 1080;
  width: min(420px, calc(100vw - 32px));
  min-height: 64px;
  padding: 14px 16px 18px;
  color: var(--dmc-ink);
  background: #fff;
  border: 1px solid var(--dmc-border);
  border-left: 4px solid var(--dmc-primary);
  border-radius: var(--dmc-radius);
  box-shadow: var(--dmc-shadow-md);
  font-size: 14px;
  overflow: hidden;
}

.notification-message {
  line-height: 1.5;
  font-weight: 650;
}

.notification-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: currentColor;
  opacity: 0.55;
  transform-origin: left center;
  animation: notification-progress 2.6s linear forwards;
}

.console-notification.is-success {
  border-left-color: var(--dmc-success);
}

.console-notification.is-warning {
  border-left-color: var(--dmc-warning);
}

.console-notification.is-error {
  border-left-color: var(--dmc-danger);
}

@keyframes notification-progress {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

.form-section {
  grid-column: 1 / -1;
  padding-top: var(--dmc-gap-xs);
  color: var(--dmc-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-top: 1px solid var(--dmc-border);
}

.form-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.mt-3 {
  margin-top: var(--dmc-gap-md) !important;
}

@media (max-width: 960px) {
  .console-shell:not(.d-none) {
    grid-template-columns: 1fr;
    grid-template-rows: var(--dmc-header-height) auto minmax(0, 1fr);
  }

  .console-sidebar {
    grid-column: 1;
    grid-row: 2;
    display: block;
    max-height: 0;
    overflow: hidden;
    border-right: 0;
    transition: max-height 0.18s ease;
  }

  .console-sidebar:has(#topNav.show),
  .console-sidebar:has(.console-nav.show) {
    max-height: 360px;
  }

  .console-brand-block {
    display: none;
  }

  .console-nav {
    padding: var(--dmc-gap-sm);
  }

  .console-header {
    grid-column: 1;
    grid-row: 1;
    padding: 0 var(--dmc-gap-md);
  }

  .navbar-toggler {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .page-wrapper {
    grid-column: 1;
    grid-row: 3;
    padding: var(--dmc-gap-md);
  }

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

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .panel-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar-title,
  .toolbar-filters,
  .toolbar-actions {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }

  .toolbar-filters .form-control,
  .toolbar-filters .form-select {
    width: min(100%, 240px);
  }

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

  .license-subrows {
    grid-template-columns: 1fr;
  }

  .license-account-chip {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .customer-edit-actions {
    justify-content: flex-start;
  }

  .subject-action-group {
    justify-content: flex-start;
  }

  .editor-batch-panel {
    grid-template-columns: 1fr;
  }

  .customer-account-row {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}
