:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --text: #172033;
  --muted: #6f7c91;
  --border: #dce3ee;
  --primary: #5aafd0;
  --primary-dark: #4ea5c5;
  --danger: #d84c4c;
  --success: #2f9e6d;
  --warning: #d88b24;
  --shadow: 0 18px 42px rgba(23, 32, 51, 0.09);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 0;
  background: var(--bg);
  color: var(--text);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.is-hidden {
  display: none !important;
}

.admin-login,
.admin-denied {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background: #f4f8fb;
}

.admin-login-card,
.admin-denied-card {
  width: min(460px, calc(100vw - 32px));
  border: 1px solid #d9e4f2;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(23, 32, 51, 0.1);
}

.admin-login-card {
  display: grid;
  gap: 16px;
  padding: 36px 38px;
}

.admin-denied-card {
  padding: 38px;
}

.admin-login-logo {
  width: 100%;
  max-width: 360px;
  height: auto;
  max-height: 118px;
  display: block;
  margin: 0 auto 4px;
  justify-self: center;
  object-fit: contain;
  object-position: center;
}

.admin-login-heading {
  text-align: center;
  padding-bottom: 4px;
}

.admin-login-card h1,
.admin-denied-card h1 {
  margin: 0;
  font-size: 29px;
  line-height: 1.15;
}

.admin-login-card p,
.admin-denied-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.35;
}

.admin-login-field {
  display: grid;
  gap: 7px;
  margin: 0;
  font-weight: 700;
}

.admin-form label {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  font-weight: 700;
}

.admin-form small {
  color: var(--muted);
  font-weight: 600;
}

.search-settings-form {
  max-width: 520px;
}

.provider-checkboxes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 18px;
}

.provider-checkboxes label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.provider-checkboxes input {
  width: 18px;
  height: 18px;
  min-height: auto;
  accent-color: var(--primary);
}

.admin-login-card input,
.admin-form input,
.admin-form select {
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--text);
}

.admin-login-field input {
  width: 100%;
  height: 46px;
  min-height: 46px;
  border-color: #d6e1ef;
  padding: 0 14px;
}

.admin-login-card input:focus,
.admin-form input:focus,
.admin-form select:focus {
  outline: 3px solid rgba(90, 175, 208, 0.18);
  border-color: var(--primary);
}

.admin-remember,
.admin-checkbox {
  display: flex !important;
  align-items: center;
  grid-template-columns: none !important;
  gap: 10px !important;
  color: var(--muted);
  font-weight: 600 !important;
}

.admin-login-card .admin-remember {
  margin: 3px 0 0;
}

.admin-remember input,
.admin-checkbox input {
  width: 18px;
  height: 18px;
  min-height: auto;
  accent-color: var(--primary);
}

.admin-primary,
.admin-secondary,
.admin-ghost,
.admin-secondary-link,
.row-action {
  min-height: 38px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 14px;
  font-weight: 800;
  text-decoration: none;
}

.admin-primary {
  width: 100%;
  min-height: 46px;
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.admin-login-card .admin-primary {
  min-height: 48px;
  margin-top: 6px;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
}

.admin-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.admin-secondary,
.admin-secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-color: var(--border);
  color: var(--text);
}

.admin-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.18);
  color: #dce8f6;
}

.admin-message {
  min-height: 22px;
  margin-top: 0;
  color: var(--muted);
  font-weight: 700;
}

.admin-login-card .admin-message {
  text-align: center;
  min-height: 22px;
  margin-top: 8px;
}

.admin-message.is-error {
  color: var(--danger);
}

.admin-message.is-ok {
  color: var(--success);
}

.admin-muted {
  color: var(--muted);
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
  min-width: 1180px;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: #0f1b2d;
  color: #fff;
}

.admin-brand {
  display: grid;
  justify-items: start;
  gap: 9px;
  margin-bottom: 28px;
}

.admin-brand-logo {
  width: 145px;
  height: auto;
  max-height: 58px;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.admin-brand span,
.admin-sidebar-footer small {
  display: block;
  color: #9fb0c5;
  margin-top: 3px;
}

.admin-brand strong {
  display: block;
  line-height: 1.2;
}

.admin-nav {
  display: grid;
  gap: 8px;
}

.admin-nav-item,
.admin-nav-link {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  padding: 0 14px;
  background: #17263a;
  box-shadow: 0 2px 5px rgba(4, 10, 20, 0.18);
  color: #f3f7fc;
  cursor: pointer;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: background-color 170ms ease, border-color 170ms ease, box-shadow 170ms ease, color 170ms ease, transform 170ms ease;
}

.admin-nav-item:hover,
.admin-nav-item.is-active {
  border-color: rgba(255, 255, 255, 0.16);
  background: #20364f;
  color: #fff;
}

.admin-nav-item:hover {
  box-shadow: 0 4px 9px rgba(4, 10, 20, 0.24);
  transform: translateY(-1px);
}

.admin-nav-item:active {
  background: #112033;
  transform: translateY(0);
}

.admin-nav-item.is-active {
  border-color: rgba(126, 207, 231, 0.38);
  background: #214861;
  box-shadow: inset 3px 0 0 #79d0e8, 0 4px 10px rgba(4, 10, 20, 0.24);
}

.admin-nav-item:focus-visible,
.admin-nav-link:focus-visible {
  outline: 2px solid #9bdcef;
  outline-offset: 3px;
}

.admin-nav-return {
  justify-content: center;
  border-color: rgba(121, 208, 232, 0.42);
  margin-top: 6px;
  background: rgba(121, 208, 232, 0.06);
  color: #d8f3fb;
}

.admin-nav-return:hover {
  border-color: rgba(121, 208, 232, 0.68);
  background: rgba(121, 208, 232, 0.14);
  box-shadow: 0 4px 9px rgba(4, 10, 20, 0.2);
  color: #fff;
  transform: translateY(-1px);
}

.admin-nav-return:active {
  background: rgba(121, 208, 232, 0.08);
  transform: translateY(0);
}

.admin-sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.admin-sidebar-footer .admin-ghost {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  padding: 0 14px;
  background: #17263a;
  box-shadow: 0 2px 5px rgba(4, 10, 20, 0.18);
  color: #f3f7fc;
  cursor: pointer;
  transition: background-color 170ms ease, border-color 170ms ease, box-shadow 170ms ease, color 170ms ease, transform 170ms ease;
}

.admin-sidebar-footer .admin-ghost:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: #20364f;
  box-shadow: 0 4px 9px rgba(4, 10, 20, 0.24);
  color: #fff;
  transform: translateY(-1px);
}

.admin-sidebar-footer .admin-ghost:active {
  background: #112033;
  box-shadow: 0 1px 3px rgba(4, 10, 20, 0.2);
  transform: translateY(0);
}

.admin-sidebar-footer .admin-ghost:focus-visible {
  outline: 2px solid #9bdcef;
  outline-offset: 3px;
}

.admin-main {
  padding: 28px;
}

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

.admin-header h1 {
  margin: 0;
  font-size: 30px;
}

.admin-header p {
  margin: 6px 0 0;
  color: var(--muted);
}

.admin-header-user {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

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

.admin-card,
.admin-panel {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.05);
}

.admin-card {
  min-height: 112px;
  padding: 18px;
}

.admin-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 12px;
}

.admin-card strong {
  font-size: 22px;
  word-break: break-word;
}

.admin-panel {
  padding: 20px;
}

.admin-search-settings-panel {
  margin-top: 18px;
}

.admin-panel h2 {
  margin: 0 0 16px;
}

.admin-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.admin-panel-title h2 {
  margin: 0;
}

.admin-panel-title p {
  margin: 4px 0 0;
}

.admin-panel-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.users-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) 180px 180px auto;
  gap: 12px;
  align-items: end;
  margin: 14px 0 16px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fbfdff;
}

.users-toolbar label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.users-toolbar input,
.users-toolbar select {
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: var(--text);
}

.users-archive-toggle {
  min-height: 38px;
  align-content: center;
  margin-bottom: 0 !important;
}

.admin-primary.compact {
  width: auto;
  min-height: 38px;
}

.admin-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.admin-table-wrap {
  overflow: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  padding: 10px 9px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  white-space: nowrap;
}

.row-action {
  min-height: 28px;
  background: #f8fbff;
  border-color: var(--border);
  color: var(--text);
  border-radius: 6px;
  padding: 0 9px;
  font-size: 12px;
}

.row-action.danger {
  color: var(--danger);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  font-weight: 800;
  font-size: 12px;
}

.status-badge.ok {
  background: #e8f7ef;
  color: var(--success);
}

.status-badge.off {
  background: #fff0f0;
  color: var(--danger);
}

.status-badge.archive {
  background: #f0f2f6;
  color: #647086;
}

.role-badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 9px;
  background: #eef6ff;
  color: #27648f;
  font-weight: 800;
}

.admin-config-list {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
}

.admin-config-list div,
.supplier-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}

.admin-config-list dt {
  color: var(--muted);
  font-weight: 800;
}

.admin-config-list dd {
  margin: 0;
  font-weight: 800;
}

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

.settings-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  background: #fbfdff;
}

.settings-card.technical {
  grid-column: 1 / -1;
}

.settings-card h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

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

.settings-list div {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.settings-list div:last-child {
  border-bottom: 0;
}

.settings-list dt {
  color: var(--muted);
  font-weight: 800;
}

.settings-list dd {
  margin: 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.settings-editable-row dd {
  display: grid;
  gap: 6px;
}

.settings-editable-row input[type="number"],
.settings-editable-row select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 700;
}

.settings-editable-row input.is-invalid,
.settings-editable-row select.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(191, 55, 55, 0.1);
}

.settings-editable-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.settings-number-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.settings-number-control span {
  color: var(--muted);
}

.settings-toggle {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}

.settings-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.system-settings-save-bar {
  position: sticky;
  bottom: 14px;
  z-index: 5;
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(20, 35, 64, 0.12);
}

.system-settings-actions {
  display: flex;
  gap: 10px;
}

.system-settings-dirty {
  color: var(--muted);
  font-weight: 800;
}

.system-settings-dirty.is-dirty {
  color: #9a6a12;
}

.settings-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 900;
}

.settings-badge.ok {
  background: #e8f7ef;
  color: var(--success);
}

.settings-badge.warning {
  background: #fff6df;
  color: #9a6a12;
}

.settings-badge.web {
  background: #e9f2ff;
  color: #27648f;
}

.settings-badge.muted {
  background: #f0f2f6;
  color: #647086;
}

.settings-badge.danger {
  background: #fff0f0;
  color: var(--danger);
}

.settings-badge.plain {
  background: #eef6ff;
  color: #27648f;
}

.admin-info-note {
  margin: 16px 0 0;
  border: 1px solid #d6e8f3;
  border-radius: 10px;
  padding: 12px 14px;
  background: #f4fbff;
  color: #496274;
  font-weight: 700;
}

.supplier-list {
  display: grid;
}

.supplier-row strong {
  display: block;
}

.supplier-row span {
  color: var(--muted);
}

.supplier-status {
  justify-self: start;
}

.provider-checkboxes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.provider-priority-row {
  display: grid;
  grid-template-columns: 32px minmax(180px, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 9px;
  background: #fbfdff;
  transition: background-color 170ms ease, border-color 170ms ease, opacity 170ms ease;
}

.provider-priority-row.is-disabled {
  background: #f4f6f8;
  opacity: 0.65;
}

.provider-priority-number {
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.provider-checkboxes .provider-priority-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  font-weight: 800;
}

.provider-priority-actions {
  display: flex;
  gap: 6px;
}

.provider-move-button {
  width: 34px;
  height: 34px;
  border: 1px solid #b9cce5;
  border-radius: 8px;
  background: #eef6ff;
  color: #27648f;
  font-size: 18px;
  font-weight: 800;
  transition: background-color 170ms ease, border-color 170ms ease, transform 170ms ease;
}

.provider-move-button:hover:not(:disabled) {
  border-color: #6f9be9;
  background: #dff0fb;
  transform: translateY(-1px);
}

.provider-move-button:focus-visible {
  outline: 3px solid rgba(29, 95, 209, 0.28);
  outline-offset: 2px;
}

.provider-move-button:disabled {
  cursor: default;
  opacity: 0.35;
}

.search-settings-save-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.admin-denied-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.users-table th:first-child,
.users-table td:first-child {
  min-width: 190px;
}

.admin-icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 24px;
  line-height: 1;
}

.user-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr min(720px, 94vw);
}

.user-drawer-backdrop {
  background: rgba(23, 32, 51, 0.36);
}

.user-drawer-panel {
  height: 100vh;
  overflow: auto;
  background: #fff;
  border-left: 1px solid var(--border);
  box-shadow: -20px 0 46px rgba(23, 32, 51, 0.18);
}

.user-drawer-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.user-drawer-header h2 {
  margin: 0;
  font-size: 24px;
}

.user-drawer-header p {
  margin: 5px 0 0;
  color: var(--muted);
}

.user-card-form {
  padding: 16px 22px 0;
}

.user-form-block {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fbfdff;
  margin-bottom: 12px;
}

.user-form-block h3 {
  margin: 0 0 12px;
}

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

.user-card-form textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  color: var(--text);
}

.user-card-form textarea:focus {
  outline: 3px solid rgba(90, 175, 208, 0.18);
  border-color: var(--primary);
}

.user-active-field {
  align-self: end;
  min-height: 44px;
}

.user-drawer-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin: 0 -22px;
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.97);
}

.user-drawer-actions .admin-primary {
  width: auto;
  min-width: 150px;
}

.password-input-shell {
  position: relative;
  display: block;
}

.password-input-shell input {
  width: 100%;
  padding-right: 92px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  min-height: 28px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 6px;
  background: #eef6ff;
  color: #27648f;
  font-size: 12px;
  font-weight: 800;
  padding: 0 8px;
}

.password-toggle:hover {
  background: #dff0fb;
}

/* Shared command-button language for admin surfaces. */
.admin-primary,
.admin-secondary,
.admin-secondary-link,
.row-action,
.admin-icon-button,
.password-toggle {
  border-radius: 10px;
  transition: background-color 170ms ease, border-color 170ms ease, box-shadow 170ms ease, color 170ms ease, transform 170ms ease;
}

.admin-primary {
  border-color: #1d5fd1;
  background: #1d5fd1;
  box-shadow: 0 2px 6px rgba(29, 95, 209, 0.2);
  color: #fff;
}

.admin-primary:hover {
  border-color: #2c70dc;
  background: #2c70dc;
  box-shadow: 0 5px 12px rgba(29, 95, 209, 0.25);
  transform: translateY(-1px);
}

.admin-primary:active {
  border-color: #164ca7;
  background: #164ca7;
  box-shadow: 0 1px 3px rgba(29, 95, 209, 0.18);
  transform: translateY(0);
}

.admin-secondary,
.admin-secondary-link,
.row-action {
  border-color: #9bbaf4;
  background: #f8fbff;
  color: #1d5fd1;
}

.admin-secondary:hover,
.admin-secondary-link:hover,
.row-action:hover {
  border-color: #6f9be9;
  background: #e9f1ff;
  color: #164ca7;
  transform: translateY(-1px);
}

.admin-secondary:active,
.admin-secondary-link:active,
.row-action:active {
  background: #dce9ff;
  transform: translateY(0);
}

.row-action {
  min-height: 30px;
  border-radius: 8px;
  padding: 0 9px;
  font-size: 12px;
}

.row-action.danger {
  border-color: #d9a0a0;
  background: #fff7f7;
  color: #9f4242;
}

.row-action.danger:hover {
  border-color: #bf7777;
  background: #ffeded;
  color: #8d3434;
}

.admin-icon-button,
.password-toggle {
  border-color: #b9cce5;
  background: #eef6ff;
  color: #27648f;
}

.admin-icon-button:hover,
.password-toggle:hover {
  border-color: #8fb4dc;
  background: #dff0fb;
  color: #1d5fd1;
}

.admin-primary:focus-visible,
.admin-secondary:focus-visible,
.admin-secondary-link:focus-visible,
.row-action:focus-visible,
.admin-icon-button:focus-visible,
.password-toggle:focus-visible {
  outline: 2px solid #72c9e4;
  outline-offset: 3px;
}

.admin-primary:disabled,
.admin-secondary:disabled,
.row-action:disabled {
  border-color: #d2dce8;
  background: #e8eef5;
  box-shadow: none;
  color: #7b8797;
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
}

.admin-nav-return {
  white-space: nowrap;
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
}

.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 32, 51, 0.42);
}

.admin-modal-panel {
  position: relative;
  width: min(440px, 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(23, 32, 51, 0.22);
}

.admin-modal-header,
.admin-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-modal-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.admin-modal-header h2 { margin: 0; font-size: 20px; }
.admin-modal-header p { margin: 5px 0 0; color: var(--muted); }
.admin-modal-form { display: grid; gap: 14px; padding: 20px; }
.admin-modal-form input { width: 100%; }
.admin-modal-actions { justify-content: flex-end; }

@media (max-width: 980px) {
  body {
    min-width: 0;
  }

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

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .admin-grid.cards,
  .admin-two-column,
  .settings-dashboard {
    grid-template-columns: 1fr;
  }

  .users-toolbar {
    grid-template-columns: 1fr;
  }

  .admin-header {
    display: grid;
  }

  .user-drawer {
    grid-template-columns: 1fr;
  }

  .user-drawer-backdrop {
    display: none;
  }

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