

html:has(body.admin-desktop-app) {
  scroll-padding-top: 0;
  min-height: 100%;
  background-color: #f0f2fa;
  background-image: none;
}

body.admin-desktop-app {
  --font-display: "Outfit", "Plus Jakarta Sans", system-ui, sans-serif;
  --bg: #f4f6fb;
  --text: #0f172a;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.08);
  --line-strong: rgba(15, 23, 42, 0.12);
  --line-glow: rgba(99, 102, 241, 0.35);
  --accent: #4f46e5;
  --accent-2: #2563eb;
  --accent-dim: #4338ca;
  --accent-soft: rgba(79, 70, 229, 0.09);
  --accent-soft-2: rgba(37, 99, 235, 0.08);
  --accent-glow: rgba(79, 70, 229, 0.28);
  --panel: #ffffff;
  --panel-2: #f8f9fd;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.045), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  --shadow-md:
    0 2px 4px rgba(15, 23, 42, 0.04), 0 12px 32px rgba(15, 23, 42, 0.07), 0 1px 0 rgba(255, 255, 255, 0.95) inset;
  --shadow-lg:
    0 4px 8px rgba(15, 23, 42, 0.05), 0 28px 64px rgba(15, 23, 42, 0.11), 0 1px 0 rgba(255, 255, 255, 1) inset;
  
  --shadow-primary: 0 1px 2px rgba(15, 23, 42, 0.05), 0 3px 10px rgba(79, 70, 229, 0.26);
  --shadow-primary-hover: 0 2px 6px rgba(15, 23, 42, 0.07), 0 6px 16px rgba(79, 70, 229, 0.28);
  --radius-card: 18px;
  --radius-pill: 14px;
  --admin-sidebar-tint: linear-gradient(175deg, #ffffff 0%, #fbfbfe 45%, #f4f6fd 100%);

  margin: 0;
  min-height: 100vh;
  background: transparent !important;
  background-image: none !important;
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

html:has(body.admin-desktop-app) {
  overflow-x: clip;
}

body.admin-desktop-app ::selection {
  background: rgba(79, 70, 229, 0.18);
  color: var(--text);
}

body.admin-desktop-app::before {
  display: none !important;
}


body.admin-desktop-app .primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  min-height: 48px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  border: 1px solid rgba(79, 70, 229, 0.45);
  background: linear-gradient(165deg, #6366f1 0%, #4f46e5 42%, #4338ca 100%);
  color: #ffffff;
  border-radius: 14px;
  box-shadow: var(--shadow-primary), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: border-color 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

body.admin-desktop-app .primary-btn:hover {
  border-color: #a5b4fc;
  filter: brightness(1.03);
  box-shadow: var(--shadow-primary-hover), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}


body.admin-desktop-app .primary-btn:hover:active,
body.admin-desktop-app .primary-btn:active {
  filter: brightness(0.96);
  box-shadow: none;
}

body.admin-desktop-app .mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 10px 14px;
  min-height: 40px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

body.admin-desktop-app .mini-btn:hover {
  border-color: rgba(79, 70, 229, 0.22);
  background: var(--accent-soft);
}

body.admin-desktop-app .mini-btn.danger-outline {
  border: 1px solid rgba(220, 38, 38, 0.35);
  color: #b91c1c;
  background: rgba(254, 242, 242, 0.9);
  box-shadow: var(--shadow-sm);
}

body.admin-desktop-app .mini-btn.danger-outline:hover {
  background: #fee2e2;
  border-color: rgba(220, 38, 38, 0.5);
}

body.admin-desktop-app .limit-input,
body.admin-desktop-app select.limit-input,
body.admin-desktop-app textarea.limit-input {
  box-sizing: border-box;
  width: 100%;
  border-radius: 10px;
  padding: 10px 12px;
  min-height: 40px;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

body.admin-desktop-app .limit-input:focus,
body.admin-desktop-app select.limit-input:focus,
body.admin-desktop-app textarea.limit-input:focus {
  outline: none;
  border-color: rgba(79, 70, 229, 0.45);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.11);
}


body.admin-desktop-app input.limit-input[type="date"],
body.admin-desktop-app input.limit-input[type="datetime-local"],
body.admin-desktop-app input.limit-input[type="time"] {
  min-width: min(100%, 12.75rem);
  flex-shrink: 0;
  box-sizing: border-box;
  padding-inline: 12px;
}

body.admin-desktop-app input.limit-input[type="datetime-local"] {
  min-width: min(100%, 22rem);
}


body.admin-desktop-app .kv-row > .row-inline:has(input[type="date"]),
body.admin-desktop-app .kv-row > .row-inline:has(input[type="datetime-local"]) {
  justify-content: flex-start;
}

body.admin-desktop-app .subtle {
  color: var(--muted);
}

body.admin-desktop-app .hidden {
  display: none !important;
}

body.admin-desktop-app .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.2px;
  font-variant-numeric: tabular-nums;
}

body.admin-desktop-app .admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

body.admin-desktop-app .admin-actions .mini-btn,
body.admin-desktop-app .admin-actions .primary-btn {
  flex: 0 1 auto;
  min-width: min(100%, 140px);
  align-self: flex-start;
}

body.admin-desktop-app .row-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  min-height: 44px;
  border-top: 1px solid var(--line);
}

body.admin-desktop-app .row-inline:first-child {
  border-top: 0;
}

body.admin-desktop-app .row-inline .subtle {
  margin: 0;
}

body.admin-desktop-app .kv-list {
  display: grid;
  gap: 10px;
}

body.admin-desktop-app .kv-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  line-height: 1.25;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

body.admin-desktop-app .kv-key {
  color: var(--muted);
  font-size: 12px;
  min-width: 180px;
}

body.admin-desktop-app .kv-dots {
  flex: 1 1 0;
  min-width: 4px;
  align-self: stretch;
  pointer-events: none;
}

body.admin-desktop-app .kv-val {
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

body.admin-desktop-app .list {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.admin-desktop-app .list::before {
  background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.12), transparent);
  opacity: 1;
}

body.admin-desktop-app .list h2 {
  color: var(--text);
}

body.admin-desktop-app .inline-link {
  color: var(--accent-dim);
}

body.admin-desktop-app .inline-link:hover {
  color: var(--accent-dim);
  background: var(--accent-soft);
  border-bottom-color: rgba(79, 70, 229, 0.35);
}

body.admin-desktop-app .toast {
  background: linear-gradient(180deg, #ffffff, #fafbff);
  border: 1px solid var(--line-strong);
  color: var(--text);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(79, 70, 229, 0.08);
  bottom: 32px;
  border-radius: 20px;
  
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.admin-desktop-app .modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-bottom));
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
}

body.admin-desktop-app .modal-overlay.hidden {
  display: none !important;
}

body.admin-desktop-app .inventory-modal-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 20px 22px 22px;
  border-radius: var(--radius-card);
  max-height: min(88vh, 920px);
  overflow: auto;
  box-sizing: border-box;
}

body.admin-desktop-app .modal-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 2px;
}

body.admin-desktop-app .modal-head-row .sheet-title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

body.admin-desktop-app .inventory-row {
  background: var(--panel-2);
  border: 1px solid var(--line);
}

body.admin-desktop-app .inventory-row:hover {
  border-color: rgba(79, 70, 229, 0.22);
  background: #ffffff;
}


body.admin-desktop-app .inventory-modal-search-wrap {
  margin: 10px 0 12px;
}

body.admin-desktop-app .inventory-modal-search-input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

body.admin-desktop-app .inventory-modal-body .admin-mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  margin-bottom: 8px;
  background: var(--panel-2);
  box-sizing: border-box;
}

body.admin-desktop-app .filter-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

body.admin-desktop-app .filter-pill {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  box-shadow: var(--shadow-sm);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}

body.admin-desktop-app .filter-pill:hover {
  color: var(--text);
  border-color: rgba(79, 70, 229, 0.22);
}

body.admin-desktop-app .filter-pill:active {
  transform: scale(0.98);
}

body.admin-desktop-app .filter-pill.active {
  color: var(--accent-dim);
  border-color: rgba(79, 70, 229, 0.32);
  background: linear-gradient(180deg, rgba(79, 70, 229, 0.1), rgba(99, 102, 241, 0.06));
  box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.1);
}

body.admin-desktop-app .admin-list-placeholder {
  background: var(--panel-2);
  border: 1px solid var(--line);
}

body.admin-desktop-app .cards-controls {
  background: var(--panel-2);
  border: 1px solid var(--line);
}

body.admin-desktop-app .admin-segment .mini-btn.active {
  border-color: rgba(79, 70, 229, 0.32);
  background: var(--accent-soft);
  color: var(--accent-dim);
}

body.admin-desktop-app .sheet-title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

body.admin-desktop-app .admin-subhead {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

body.admin-desktop-app .slim-input {
  width: auto;
  min-width: 72px;
  max-width: 140px;
  flex: 0 1 auto;
}

body.admin-desktop-app .slim-select {
  width: auto;
  min-width: 72px;
  max-width: 96px;
  flex: 0 0 auto;
  background: #ffffff;
  color: var(--text);
  border-color: var(--line);
}

body.admin-desktop-app .client-inline-select,
body.admin-desktop-app .client-inline-input {
  min-height: 36px;
  padding: 8px 10px;
  font-size: 12px;
  width: auto;
  flex: 0 1 auto;
}

body.admin-desktop-app .ghost-btn {
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

body.admin-desktop-app .ghost-btn:hover {
  border-color: rgba(79, 70, 229, 0.22);
  background: var(--accent-soft);
}

body.admin-desktop-app .mini-btn:focus-visible,
body.admin-desktop-app .primary-btn:focus-visible,
body.admin-desktop-app .ghost-btn:focus-visible {
  outline: 2px solid rgba(79, 70, 229, 0.5);
  outline-offset: 2px;
}


.admin-shell {
  display: block;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 100%;
  position: relative;
  z-index: 1;
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
  box-sizing: border-box;
  padding: 26px 18px 24px 20px;
  border-right: 1px solid var(--line);
  background: var(--admin-sidebar-tint);
  box-shadow: 6px 0 40px rgba(15, 23, 42, 0.045);
  
  position: fixed;
  top: 0;
  left: 0;
  z-index: 6;
  width: 260px;
  height: 100vh;
  max-height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

.admin-sidebar::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #6366f1 0%, #4f46e5 35%, #0ea5e9 100%);
  border-radius: 0 4px 4px 0;
  opacity: 0.92;
}

.admin-sidebar-brand {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 4px;
  flex-shrink: 0;
}

.admin-sidebar-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.045em;
  color: var(--text);
  background: linear-gradient(125deg, #1e1b4b 0%, #4338ca 42%, #2563eb 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@supports not (background-clip: text) {
  .admin-sidebar-title {
    color: var(--text);
    background: none;
  }
}

.admin-sidebar-badge {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 6px 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.14), rgba(14, 165, 233, 0.08));
  color: var(--accent-dim);
  border: 1px solid rgba(79, 70, 229, 0.18);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset;
}

.admin-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.admin-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  width: 100%;
  padding: 11px 14px 11px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  position: relative;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}

.admin-nav-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
  color: currentColor;
  opacity: 0.82;
}

.admin-nav-icon svg {
  width: 16px;
  height: 16px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-nav-text {
  min-width: 0;
}

.admin-nav-btn:hover {
  background: rgba(79, 70, 229, 0.06);
  color: var(--text);
}

.admin-nav-btn.active {
  padding-left: 22px;
  border-color: rgba(79, 70, 229, 0.14);
  background: linear-gradient(105deg, rgba(79, 70, 229, 0.11), rgba(14, 165, 233, 0.05));
  color: var(--accent-dim);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
}

.admin-nav-btn.active .admin-nav-icon {
  opacity: 1;
}

.admin-nav-btn.active::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 62%;
  max-height: 24px;
  border-radius: 99px;
  background: linear-gradient(180deg, #6366f1, #0ea5e9);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.45);
}

.admin-nav-ctx-menu {
  position: fixed;
  z-index: 10000;
  min-width: 188px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  box-shadow: var(--shadow-lg);
}

.admin-nav-ctx-menu.hidden {
  display: none;
}

.admin-nav-ctx-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.admin-nav-ctx-item:hover {
  background: rgba(79, 70, 229, 0.08);
  color: var(--accent-dim);
}

.admin-sidebar-foot {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.admin-session-clock-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 8px 12px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(241, 245, 255, 0.88) 100%);
  border: 1px solid rgba(99, 102, 241, 0.18);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.admin-session-clock-wrap.hidden {
  display: none;
}

.admin-session-clock-wrap--warning {
  border-color: rgba(245, 158, 11, 0.45);
  background: linear-gradient(145deg, rgba(255, 251, 235, 0.98) 0%, rgba(254, 243, 199, 0.35) 100%);
}

.admin-session-clock-wrap--critical {
  border-color: rgba(248, 113, 113, 0.5);
  
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.2), 0 4px 18px rgba(239, 68, 68, 0.14);
}

.admin-session-clock-ring {
  position: relative;
  width: 64px;
  height: 64px;
}

.admin-session-clock-svg {
  width: 64px;
  height: 64px;
  display: block;
}

.admin-session-clock-track {
  stroke: rgba(148, 163, 184, 0.35);
  stroke-width: 2.6;
}

.admin-session-clock-progress {
  fill: none;
  stroke: url(#adminSessionRingGrad);
  stroke-width: 2.6;
  stroke-linecap: round;
  
  transition: stroke-dashoffset 0.2s linear;
}

.admin-session-clock-digital {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.admin-session-clock-digital .mono {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
}

.admin-session-extend-btn {
  width: 100%;
  justify-content: center;
  font-size: 11px;
}

.admin-link-out {
  color: var(--accent-dim);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.admin-link-out:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.admin-sidebar-hint {
  font-size: 11px;
  line-height: 1.45;
  margin: 0;
  color: var(--muted);
}

.admin-workspace {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: calc(100% - 260px);
  max-width: calc(100% - 260px);
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  margin-left: 260px;
}

.admin-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
  padding: 24px 34px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  position: sticky;
  top: 0;
  z-index: 5;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.95) inset, 0 8px 32px rgba(15, 23, 42, 0.04);
}

.admin-page-title {
  font-family: var(--font-display);
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1.15;
}

.admin-status-line {
  margin: 0;
  font-size: 12px;
  max-width: min(760px, 100%);
  word-break: break-word;
  color: var(--muted);
  line-height: 1.45;
}

body.admin-desktop-app .admin-instant-wrap {
  white-space: pre-line;
  line-height: 1.4;
}

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

.admin-toolbar-left {
  min-width: 0;
  flex: 1 1 auto;
}

.admin-quick-search {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #fafbff);
  min-width: min(440px, 100%);
  max-width: 100%;
  box-sizing: border-box;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-quick-search:focus-within {
  border-color: rgba(79, 70, 229, 0.28);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.08), var(--shadow-sm);
}

.admin-quick-search input {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--text);
  font: inherit;
  outline: none;
  font-size: 13px;
}

.admin-quick-search input::placeholder {
  color: rgba(100, 116, 139, 0.75);
}

.admin-quick-search-icon {
  opacity: 0.55;
  font-size: 13px;
}

.admin-main-scroll {
  flex: 1;
  min-width: 0;
  overflow: auto;
  padding: 16px 34px 64px;
  scroll-behavior: smooth;
}

.admin-main-scroll > .admin-panels {
  min-width: 0;
  max-width: 100%;
}

body.admin-desktop-app .admin-panels-stage > .admin-pane {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}


body.admin-desktop-app *::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

body.admin-desktop-app *::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.04);
  border-radius: 99px;
}

body.admin-desktop-app *::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(100, 116, 139, 0.45), rgba(71, 85, 105, 0.5));
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

body.admin-desktop-app *::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(79, 70, 229, 0.45), rgba(67, 56, 202, 0.55));
  background-clip: padding-box;
}

.admin-panels .list {
  max-width: none;
  padding: 0;
  margin: 0;
}

.admin-panels .list h2 {
  display: none;
}

.admin-panels .admin-segment {
  display: none;
}


.admin-dashboard-pane {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.admin-dashboard-pane > .admin-actions {
  grid-column: 1 / -1;
}


.admin-dashboard-pane .admin-block:not(:has(#dashOpSessionsBody)) > .row-inline,
.admin-dashboard-pane .admin-block:not(:has(#dashOpSessionsBody)) .admin-collapsible-body > .row-inline {
  border-top: none;
  padding: 10px 10px;
  border-radius: 8px;
  min-height: 0;
  margin-top: 4px;
}

.admin-dashboard-pane .admin-block:not(:has(#dashOpSessionsBody)) > .row-inline:first-of-type,
.admin-dashboard-pane .admin-block:not(:has(#dashOpSessionsBody)) .admin-collapsible-body > .row-inline:first-of-type {
  margin-top: 0;
}

.admin-dashboard-pane .admin-block:not(:has(#dashOpSessionsBody)) > .row-inline:nth-child(even),
.admin-dashboard-pane .admin-block:not(:has(#dashOpSessionsBody)) .admin-collapsible-body > .row-inline:nth-child(even) {
  background: rgba(30, 41, 59, 0.055);
}

.admin-dashboard-pane .admin-block:not(:has(#dashOpSessionsBody)) > .row-inline:nth-child(odd):not(:first-child),
.admin-dashboard-pane .admin-block:not(:has(#dashOpSessionsBody)) .admin-collapsible-body > .row-inline:nth-child(odd):not(:first-child) {
  background: rgba(30, 41, 59, 0.032);
}

.admin-dashboard-pane .admin-block:not(:has(#dashOpSessionsBody)) > .row-inline:nth-child(even):hover,
.admin-dashboard-pane .admin-block:not(:has(#dashOpSessionsBody)) .admin-collapsible-body > .row-inline:nth-child(even):hover {
  background: rgba(99, 102, 241, 0.12);
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.18);
}

.admin-dashboard-pane .admin-block:not(:has(#dashOpSessionsBody)) > .row-inline:nth-child(odd):not(:first-child):hover,
.admin-dashboard-pane .admin-block:not(:has(#dashOpSessionsBody)) .admin-collapsible-body > .row-inline:nth-child(odd):not(:first-child):hover {
  background: rgba(99, 102, 241, 0.1);
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.14);
}

.admin-panels .admin-block {
  margin: 0;
  padding: 22px 24px;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, #ffffff 0%, #fcfcff 55%, #fafbff 100%);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.admin-panels .admin-block::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6 40%, #0ea5e9);
  opacity: 0.85;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}

.admin-panels .admin-block:hover {
  border-color: rgba(79, 70, 229, 0.22);
}

.admin-panels .admin-block > p.subtle:first-child,
.admin-panels .admin-block .admin-collapsible-head > p.subtle {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--muted);
  margin-bottom: 16px;
  margin-top: 2px;
  opacity: 0.92;
}


.admin-collapsible-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  cursor: pointer;
  user-select: none;
}

.admin-collapsible-head > p.subtle,
.admin-collapsible-head > h3.admin-subhead,
.admin-collapsible-head > .admin-collapsible-title {
  flex: 1;
  min-width: 0;
  margin: 0 !important;
}

.admin-collapsible-toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-top: -4px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.2s ease;
}

.admin-collapsible-toggle:hover {
  border-color: rgba(79, 70, 229, 0.28);
  color: var(--accent-dim);
}

.admin-collapsible-chevron {
  display: inline-flex;
  line-height: 0;
  transition: transform 0.2s ease;
}

.admin-collapsible--collapsed .admin-collapsible-chevron {
  transform: rotate(-90deg);
}

.admin-collapsible--collapsed .admin-collapsible-body {
  display: none;
}

.admin-collapsible--collapsed .admin-collapsible-head {
  margin-bottom: 0;
}

body.admin-desktop-app .client-admin .admin-field-group .admin-collapsible-head .admin-subhead {
  margin: 0;
  padding: 0;
  border: 0;
}

.admin-welcome-card {
  border: 1px solid var(--line);
  background: linear-gradient(125deg, #ffffff 0%, #f8f7ff 45%, #f0f4ff 100%);
  border-radius: var(--radius-card);
  padding: 22px 24px;
  margin: 10px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.admin-welcome-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #a78bfa, #0ea5e9);
  opacity: 0.9;
}

.admin-welcome-card h2 {
  font-family: var(--font-display);
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.admin-welcome-card p {
  margin: 0;
  color: var(--muted);
}

.admin-welcome-actions {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-search-match {
  outline: 2px solid rgba(79, 70, 229, 0.35);
  outline-offset: 2px;
  background: var(--accent-soft);
  border-radius: 8px;
}

.admin-search-dim {
  opacity: 0.42;
}

.admin-help-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: min(420px, calc(100vw - 40px));
  z-index: 20;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.admin-help-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
}

.admin-help-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.admin-help-body {
  padding: 14px 16px 16px;
  max-height: none;
  overflow: visible;
  font-size: 13px;
  color: var(--muted);
}

.admin-help-body ul,
.admin-help-body ol {
  margin: 8px 0 0;
  padding-left: 18px;
}

[data-help] {
  position: relative;
}


[data-help]:hover::after,
[data-help]:focus::after {
  content: none !important;
  display: none !important;
}

.admin-panels .client-admin {
  max-width: 1100px;
}


body.admin-desktop-app .client-admin {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

body.admin-desktop-app .client-admin > .admin-field-group {
  margin-bottom: 20px;
}

body.admin-desktop-app .client-admin > .admin-field-group:last-child {
  margin-bottom: 0;
}

body.admin-desktop-app .client-admin .admin-field-group {
  position: relative;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-left: 4px solid #6366f1;
  border-radius: 14px;
  background: linear-gradient(170deg, #ffffff 0%, #f4f4ff 38%, #f1f5f9 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.88) inset,
    0 6px 16px rgba(15, 23, 42, 0.06),
    0 18px 44px rgba(15, 23, 42, 0.07);
  padding: 18px 20px 18px 20px;
  box-sizing: border-box;
}

body.admin-desktop-app .client-admin .admin-field-group--profile {
  padding: 12px 16px;
  background: #ffffff;
  border-left-color: #94a3b8;
  box-shadow: var(--shadow-md);
}

body.admin-desktop-app .client-admin .admin-client-hero {
  background: linear-gradient(128deg, #ffffff 0%, #ede9fe 32%, #e0e7ff 65%, #dbeafe 100%);
  border: 1px solid rgba(79, 70, 229, 0.3);
  border-left: 4px solid #4f46e5;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 8px 20px rgba(79, 70, 229, 0.12),
    0 22px 50px rgba(15, 23, 42, 0.08);
}

body.admin-desktop-app .client-admin .admin-field-group .client-head {
  padding: 0;
}


body.admin-desktop-app .client-status-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}


body.admin-desktop-app .client-status-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

body.admin-desktop-app .client-status-badge--active {
  background: #dcfce7;
  color: #166534;
  border-color: #bbf7d0;
}

body.admin-desktop-app .client-status-badge--paused {
  background: #fef9c3;
  color: #854d0e;
  border-color: #fde68a;
}

body.admin-desktop-app .client-status-badge--blocked {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
}


body.admin-desktop-app .client-status-btn {
  padding: 4px 12px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, opacity 0.15s;
}

body.admin-desktop-app .client-status-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

body.admin-desktop-app .client-status-btn--pause {
  background: #fef9c3;
  color: #92400e;
  border-color: #fde68a;
}

body.admin-desktop-app .client-status-btn--pause:hover:not(:disabled) {
  background: #fde68a;
}

body.admin-desktop-app .client-status-btn--block {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
}

body.admin-desktop-app .client-status-btn--block:hover:not(:disabled) {
  background: #fca5a5;
}

body.admin-desktop-app .client-status-btn--unblock {
  background: #dcfce7;
  color: #166534;
  border-color: #bbf7d0;
}

body.admin-desktop-app .client-status-btn--unblock:hover:not(:disabled) {
  background: #bbf7d0;
}

body.admin-desktop-app .client-admin .admin-field-group .admin-subhead {
  margin: 0 0 14px;
  padding: 0 0 10px 4px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #0f172a;
  border-left: 0;
  border-bottom: 2px solid rgba(79, 70, 229, 0.22);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

body.admin-desktop-app .client-admin .admin-field-group .admin-subhead + p.subtle,
body.admin-desktop-app .client-admin .admin-field-group .admin-subhead + p.subtle.mono {
  margin: -4px 0 10px;
  line-height: 1.45;
}

body.admin-desktop-app .client-admin .admin-field-group .kv-list {
  gap: 0;
  margin: 0;
}

body.admin-desktop-app .client-admin .admin-field-group .kv-row {
  margin: 0;
  padding: 8px 6px 8px 8px;
  border-radius: 8px;
  min-height: 0;
  transition: background 0.15s ease;
}

body.admin-desktop-app .client-admin .admin-field-group .kv-list .kv-row:nth-child(odd) {
  background: rgba(30, 41, 59, 0.055);
}

body.admin-desktop-app .client-admin .admin-field-group .kv-list .kv-row:hover {
  background: rgba(99, 102, 241, 0.12);
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.18);
}


body.admin-desktop-app #adminSupportPane.client-admin .admin-field-group .kv-list > .kv-row {
  background: transparent;
}

body.admin-desktop-app #adminSupportPane.client-admin .admin-field-group .kv-list > .kv-row:nth-child(odd of .kv-row) {
  background: rgba(30, 41, 59, 0.055);
}

body.admin-desktop-app #adminSupportPane.client-admin .admin-field-group .kv-list > .kv-row:hover {
  background: rgba(99, 102, 241, 0.12);
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.18);
}

body.admin-desktop-app .client-admin .admin-field-group .kv-dots {
  min-width: 2px;
}

/* Строки с инпутами/кнопками — без огромного зазора через kv-dots */
body.admin-desktop-app .client-admin .admin-field-group .kv-row:has(> div) {
  align-items: center;
  gap: 12px;
}

body.admin-desktop-app .client-admin .admin-field-group .kv-row:has(> div) .kv-dots {
  flex: 1 1 12px;
  max-width: 32px;
  min-width: 8px;
}

body.admin-desktop-app .client-admin .admin-field-group .kv-row > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: auto;
  justify-content: flex-end;
  min-width: 0;
}

body.admin-desktop-app .client-admin .admin-field-group .kv-row .limit-input,
body.admin-desktop-app .client-admin .admin-field-group .kv-row select.limit-input {
  width: auto;
  min-width: 0;
  flex: 0 1 auto;
}

body.admin-desktop-app .client-admin .admin-field-group .kv-row .primary-btn {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 10px;
  flex-shrink: 0;
}

body.admin-desktop-app .client-admin .admin-field-group .kv-row .mini-btn {
  flex-shrink: 0;
}

body.admin-desktop-app .client-admin .admin-field-group .filter-pill-row {
  justify-content: flex-end;
}

body.admin-desktop-app .client-admin .admin-field-group .filter-pill-row .admin-client-pending-topup-wrap {
  flex: 1 1 100%;
  min-width: min(100%, 320px);
}

body.admin-desktop-app .client-admin .admin-field-group .filter-pill-row .dash-topup-req-item--inline {
  width: 100%;
}

body.admin-desktop-app .client-admin .admin-topup-submit-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: none;
  box-shadow: none;
  pointer-events: none;
}

.admin-topup-operations-table {
  width: 100%;
  font-size: 12px;
}

.admin-topup-operations-table th,
.admin-topup-operations-table td {
  padding: 4px 6px;
  vertical-align: top;
  text-align: left;
}

.admin-topup-op-comment {
  max-width: 280px;
  line-height: 1.35;
}

.admin-topup-op-row--failed td {
  color: #b42318;
}

body.admin-desktop-app .client-admin .admin-field-group .dash-topup-req-menu__actions .primary-btn {
  min-height: 36px;
  padding: 6px 14px;
  font-size: 13px;
}

body.admin-desktop-app .client-admin .admin-field-group .dash-topup-req-menu__actions .mini-btn {
  min-height: 36px;
  padding: 6px 12px;
}

body.admin-desktop-app .client-admin .admin-field-group .admin-list-placeholder {
  margin-top: 4px;
}

body.admin-desktop-app .client-admin .admin-field-group h3 + .admin-list-placeholder,
body.admin-desktop-app .client-admin .admin-field-group .admin-subhead + .admin-list-placeholder {
  margin-top: 6px;
}

body.admin-desktop-app .client-admin .admin-field-group .admin-actions {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 2px solid rgba(79, 70, 229, 0.18);
}

body.admin-desktop-app .client-admin .admin-field-group .admin-period-head-row {
  margin-bottom: 8px;
}


body.admin-desktop-app .client-admin .admin-field-group .admin-period-head-row .admin-period-head-title.admin-subhead {
  margin: 0;
  padding: 0;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--text);
  border: 0;
}

body.admin-desktop-app .client-admin .client-pane-profile-row {
  margin-bottom: 0;
}


body.admin-desktop-app .client-admin .admin-field-group .kv-key {
  color: #334155;
  font-weight: 600;
  font-size: 12px;
}

body.admin-desktop-app .client-admin .admin-field-group .kv-val {
  color: #0f172a;
  font-weight: 600;
}


body.admin-desktop-app #adminTariffsPane {
  width: 100%;
  max-width: 100%;
}

body.admin-desktop-app #adminTariffsPane .admin-block,
body.admin-desktop-app #adminTariffsPane .admin-tariff-details {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

body.admin-desktop-app #adminTariffsPane .kv-list {
  width: 100%;
  max-width: 100% !important;
}


.admin-webusers-row {
  cursor: pointer;
  transition: background 0.15s ease;
}

body.admin-desktop-app #adminWebUsersBody .admin-webusers-table tbody tr.admin-webusers-row:nth-child(odd) {
  background: rgba(30, 41, 59, 0.055);
}

body.admin-desktop-app #adminWebUsersBody .admin-webusers-table tbody tr.admin-webusers-row:hover {
  background: rgba(99, 102, 241, 0.12);
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.14);
}

body.admin-desktop-app #adminWebUsersPane,
body.admin-desktop-app #adminGlobalTxPane.admin-global-tx-pane {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  min-height: calc(100vh - 176px);
}


body.admin-desktop-app #adminGlobalTxPane.admin-global-tx-pane {
  min-height: 0;
}

body.admin-desktop-app #adminWebUsersBody.admin-list-placeholder {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  max-height: none !important;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}

body.admin-desktop-app #adminGlobalTxBody.admin-list-placeholder {
  flex: 0 0 auto;
  min-height: 0;
  min-width: 0;
  max-height: none !important;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible !important;
  -webkit-overflow-scrolling: touch;
}


body.admin-desktop-app #adminBannersPane {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  min-height: calc(100vh - 176px);
}

body.admin-desktop-app #adminBannersBody.admin-list-placeholder {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  max-height: none !important;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}

body.admin-desktop-app #adminBannersBody .admin-banner-table .js-banner-link {
  max-width: none !important;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

body.admin-desktop-app #adminTariffsPane .admin-plan-kv-list .kv-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

body.admin-desktop-app #adminTariffsPane .admin-plan-kv-list .kv-row > .slim-input,
body.admin-desktop-app #adminTariffsPane .admin-plan-kv-list .kv-row > .limit-input,
body.admin-desktop-app #adminTariffsPane .admin-plan-kv-list .kv-row > textarea.limit-input,
body.admin-desktop-app #adminTariffsPane .kv-list .kv-row > .slim-input,
body.admin-desktop-app #adminTariffsPane .kv-list .kv-row > .limit-input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

body.admin-desktop-app #adminTariffsBody.admin-list-placeholder {
  max-height: none;
  overflow: visible;
  padding: 0;
  border: 0;
  background: transparent;
}

.admin-panels .admin-mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  margin-bottom: 8px;
  background: var(--panel-2);
}

.admin-panels .admin-mini-row.admin-mini-row--topup {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

.admin-panels .admin-list-placeholder {
  font-size: 12px;
  line-height: 1.55;
  max-height: none;
  overflow: visible;
  padding: 6px 0;
}

.admin-panels #clientCardsList,
.admin-panels #clientTransactionsList {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-panels #clientTransactionsList {
  max-height: none;
}

.admin-desktop-app .inventory-modal-panel:not(.admin-treasury-modal-panel) {
  width: min(920px, calc(100vw - 48px));
  max-height: none;
  overflow: visible;
}

body.admin-desktop-app .admin-treasury-modal-panel {
  width: min(520px, calc(100vw - 32px));
  max-width: 520px;
}

body.admin-desktop-app .admin-treasury-modal-title {
  font-size: 18px;
  line-height: 1.25;
}

body.admin-desktop-app .admin-treasury-modal-intro {
  margin: 10px 0 16px;
  font-size: 13px;
  line-height: 1.5;
}

body.admin-desktop-app .admin-treasury-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

body.admin-desktop-app .admin-treasury-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

body.admin-desktop-app .admin-treasury-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

body.admin-desktop-app #adminTreasuryModal .slim-input {
  width: 100%;
  min-width: 0;
  max-width: none;
  flex: 1 1 auto;
}

body.admin-desktop-app #adminTreasuryModal .admin-treasury-field .limit-input,
body.admin-desktop-app #adminTreasuryModal .admin-treasury-field select.limit-input,
body.admin-desktop-app #adminTreasuryModal .admin-treasury-field textarea.limit-input {
  width: 100%;
  min-width: 0;
  max-width: none;
  box-sizing: border-box;
}

body.admin-desktop-app #adminTreasuryModal .admin-treasury-note {
  min-height: 84px;
  resize: vertical;
  line-height: 1.45;
}

body.admin-desktop-app #adminTreasuryModal .admin-treasury-recipient-wrap {
  position: relative;
  width: 100%;
  min-width: 0;
}

body.admin-desktop-app .admin-treasury-modal-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

body.admin-desktop-app .admin-treasury-modal-msg {
  margin: 10px 0 0;
  min-height: 1.2em;
  font-size: 12px;
}

@media (max-width: 520px) {
  body.admin-desktop-app .admin-treasury-modal-panel {
    width: min(100vw - 24px, 520px);
  }
}

body.admin-desktop-app .admin-treasury-recipient-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 80;
  max-height: 220px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

body.admin-desktop-app .admin-treasury-recipient-suggest.hidden {
  display: none;
}

body.admin-desktop-app .admin-treasury-recipient-suggest__item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  line-height: 1.35;
  color: var(--text);
  box-shadow: none;
}

body.admin-desktop-app .admin-treasury-recipient-suggest__item:last-child {
  border-bottom: none;
}

body.admin-desktop-app .admin-treasury-recipient-suggest__item:hover {
  background: rgba(99, 102, 241, 0.09);
}


body.admin-desktop-app .admin-finance-breakdown-totals {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.45;
}

body.admin-desktop-app .admin-finance-breakdown-totals-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 14px;
  padding: 5px 0;
}

body.admin-desktop-app .admin-finance-breakdown-totals-label {
  font-weight: 600;
  color: var(--text);
  font-size: 12px;
}

body.admin-desktop-app .admin-finance-breakdown-totals-val {
  font-size: 12px;
  text-align: right;
  flex: 1;
  min-width: 0;
  font-variant-numeric: tabular-nums;
}

body.admin-desktop-app .admin-finance-breakdown-body {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: auto;
  max-height: 50vh;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

body.admin-desktop-app .admin-finance-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px 16px;
  padding: 9px 12px;
  font-size: 12px;
  line-height: 1.4;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

body.admin-desktop-app .admin-finance-breakdown-row:last-child {
  border-bottom: none;
}

body.admin-desktop-app .admin-finance-breakdown-row:nth-child(odd) {
  background: rgba(30, 41, 59, 0.055);
}

body.admin-desktop-app .admin-finance-breakdown-row:nth-child(even) {
  background: rgba(30, 41, 59, 0.025);
}

body.admin-desktop-app .admin-finance-breakdown-row:not(.admin-finance-breakdown-row--plain):hover {
  background: rgba(99, 102, 241, 0.1);
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.14);
}

body.admin-desktop-app .admin-finance-breakdown-row--plain {
  justify-content: flex-start;
  font-family: var(--font, "Plus Jakarta Sans", system-ui, sans-serif);
}

body.admin-desktop-app .admin-finance-breakdown-kind {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

body.admin-desktop-app .admin-finance-breakdown-amounts {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}

body.admin-desktop-app .admin-finance-breakdown-row--footer {
  font-weight: 600;
  border-top: 1px solid var(--line);
  background: rgba(30, 41, 59, 0.04);
}

body.admin-desktop-app .admin-finance-breakdown-row--footer .admin-finance-breakdown-kind {
  font-weight: 600;
}

body.admin-desktop-app .admin-treasury-fee-totals {
  width: 100%;
}

body.admin-desktop-app .admin-treasury-fee-kinds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

body.admin-desktop-app .admin-treasury-fee-kind-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

body.admin-desktop-app .admin-treasury-fee-kind-card__kind {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.admin-desktop-app .admin-treasury-fee-kind-card__amt {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.35;
}

body.admin-desktop-app .admin-treasury-fee-kind-card--total {
  grid-column: 1 / -1;
  background: rgba(30, 41, 59, 0.06);
  border-color: rgba(148, 163, 184, 0.45);
}

body.admin-desktop-app .admin-treasury-fee-kind-card--total .admin-treasury-fee-kind-card__kind {
  color: var(--text);
}

body.admin-desktop-app .admin-treasury-fee-kind-card--total .admin-treasury-fee-kind-card__amt {
  font-weight: 600;
  color: var(--text);
}

body.admin-desktop-app .admin-clearing-note-modal-panel {
  max-width: min(640px, 92vw);
}

body.admin-desktop-app .admin-clearing-note-body {
  max-height: 60vh;
  overflow: auto;
  margin: 12px 0 0;
  outline: none;
}

body.admin-desktop-app .admin-clearing-block {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line, rgba(148, 163, 184, 0.35));
}

body.admin-desktop-app .admin-clearing-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

body.admin-desktop-app .admin-clearing-block__title {
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text, #0f172a);
  word-break: break-word;
  line-height: 1.35;
}

body.admin-desktop-app .admin-clearing-block__pre {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  max-width: 100%;
  line-height: 1.45;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(30, 41, 59, 0.035);
}

body.admin-desktop-app .admin-clearing-block__empty {
  margin: 0;
  font-style: italic;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px dashed var(--line);
  background: rgba(30, 41, 59, 0.02);
}


body.admin-desktop-app .admin-clearing-kv {
  display: flex;
  flex-direction: column;
  gap: 0;
  font-size: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(15, 23, 42, 0.06));
}

body.admin-desktop-app .admin-clearing-kv__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding: 8px 10px;
  line-height: 1.45;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

body.admin-desktop-app .admin-clearing-kv__row:last-child {
  border-bottom: none;
}

body.admin-desktop-app .admin-clearing-kv__row:nth-child(odd) {
  background: rgba(30, 41, 59, 0.055);
}

body.admin-desktop-app .admin-clearing-kv__row:nth-child(even) {
  background: rgba(30, 41, 59, 0.025);
}

body.admin-desktop-app .admin-clearing-kv__row:hover {
  background: rgba(99, 102, 241, 0.1);
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.14);
}

body.admin-desktop-app .admin-clearing-kv__k {
  flex: 0 0 min(11rem, 38%);
  min-width: 8rem;
  color: var(--muted, #64748b);
  word-break: break-word;
}

body.admin-desktop-app .admin-clearing-kv__v {
  flex: 1 1 12rem;
  min-width: 0;
  color: var(--text, #0f172a);
  word-break: break-word;
}

body.admin-desktop-app tr.admin-treasury-clearing-row--clickable {
  cursor: pointer;
}

body.admin-desktop-app tr.admin-treasury-clearing-row--clickable:hover {
  background: rgba(99, 102, 241, 0.08);
}

.admin-desktop-app .inventory-modal-body {
  max-height: none !important;
  overflow: visible !important;
  flex: none;
}

.admin-desktop-app .admin-mini-table {
  border-collapse: collapse;
  width: 100%;
}

.admin-desktop-app .admin-mini-table th,
.admin-desktop-app .admin-mini-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}

.admin-desktop-app .admin-mini-table th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
}


#dashOpSessionsBody.admin-list-placeholder {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: visible;
}

body.admin-desktop-app .admin-op-sessions-table {
  table-layout: auto;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  font-size: 12px;
  border-collapse: separate;
  border-spacing: 0;
}

body.admin-desktop-app .admin-op-sessions-table thead {
  display: none;
}

body.admin-desktop-app .admin-op-sessions-table tbody {
  display: block;
}

body.admin-desktop-app .admin-op-sessions-table th,
body.admin-desktop-app .admin-op-sessions-table td {
  vertical-align: top;
}

body.admin-desktop-app .admin-op-sessions-table tbody tr {
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
  background: #fff;
  box-sizing: border-box;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

body.admin-desktop-app .admin-op-sessions-table tbody tr:nth-child(odd) {
  background: rgba(30, 41, 59, 0.055);
}

body.admin-desktop-app .admin-op-sessions-table tbody tr:hover {
  background: rgba(99, 102, 241, 0.12);
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.18);
}

body.admin-desktop-app .admin-op-sessions-table tbody tr:last-child {
  margin-bottom: 0;
}

body.admin-desktop-app .admin-op-sessions-table td {
  display: grid;
  grid-template-columns: 6.25rem minmax(0, 1fr);
  gap: 6px 12px;
  align-items: start;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  padding: 8px 0;
  border: none;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

body.admin-desktop-app .admin-op-sessions-table td:last-child {
  border-bottom: none;
  padding-top: 12px;
  display: flex;
  justify-content: flex-end;
}

body.admin-desktop-app .admin-op-sessions-table td::before {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding-top: 2px;
}

body.admin-desktop-app .admin-op-sessions-table td:nth-child(1)::before {
  content: "User";
}

body.admin-desktop-app .admin-op-sessions-table td:nth-child(2)::before {
  content: "Last seen";
}

body.admin-desktop-app .admin-op-sessions-table td:nth-child(3)::before {
  content: "IP";
}

body.admin-desktop-app .admin-op-sessions-table td:nth-child(4)::before {
  content: "UA";
}

body.admin-desktop-app .admin-op-sessions-table td:nth-child(3) {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  word-break: normal;
  overflow-wrap: anywhere;
}

body.admin-desktop-app .admin-op-sessions-table td:nth-child(4).admin-op-sessions-ua {
  display: block;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-width: 100%;
  font-size: 11px;
  line-height: 1.35;
}

body.admin-desktop-app .admin-op-sessions-table td:nth-child(4).admin-op-sessions-ua::before {
  display: block;
  margin-bottom: 6px;
}

body.admin-desktop-app .admin-op-sessions-table td:nth-child(5)::before {
  content: none;
}

body.admin-desktop-app .admin-op-sessions-table .mini-btn {
  box-sizing: border-box;
  padding-left: 8px;
  padding-right: 8px;
}

body.admin-desktop-app .admin-op-sessions-table td:nth-child(5) .mini-btn {
  max-width: 100%;
  width: auto;
  min-width: 6.5rem;
}

@media (max-width: 900px) {
  .admin-shell {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-workspace {
    margin-left: 0;
    width: 100%;
    max-width: 100%;
  }

  .admin-sidebar {
    position: relative;
    left: auto;
    top: auto;
    z-index: auto;
    width: 100%;
    height: auto;
    max-height: none;
    min-height: 0;
    overflow: visible;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    box-shadow: none;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .admin-sidebar-nav {
    flex: none;
    min-height: 0;
    max-height: none;
    overflow: visible;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }

  .admin-nav-btn {
    flex: 1 1 120px;
    text-align: center;
  }

  .admin-sidebar-foot {
    width: 100%;
    margin-top: 0;
    border-top: none;
    padding-top: 0;
  }

  .admin-quick-search {
    min-width: 0;
    flex: 1 1 auto;
  }
}

@media (max-width: 680px) {
  .admin-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 18px 16px 14px;
  }

  .admin-toolbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .admin-page-title {
    font-size: 22px;
  }

  .admin-main-scroll {
    padding: 12px 16px 48px;
  }

  .admin-finance-pane .admin-finance-toolbar {
    flex-wrap: wrap;
    overflow-x: visible;
    align-items: flex-start;
  }

  .admin-finance-pane .admin-finance-toolbar label.subtle {
    flex-wrap: wrap;
    white-space: normal;
    flex-shrink: 1;
  }

  .admin-finance-pane .admin-finance-pdf-row.row-inline {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  body.admin-desktop-app .admin-global-tx-pager.row-inline,
  body.admin-desktop-app .admin-finance-ledger-pager.row-inline {
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    overflow-x: visible;
  }

  .admin-period-controls.row-inline {
    flex-wrap: wrap !important;
    overflow-x: visible;
  }

  .admin-finance-label-cell {
    max-width: none;
  }

  .liq-profiles-table .liq-col-profile {
    max-width: none;
  }

  .admin-global-tx-table th {
    white-space: normal;
  }

  body.admin-desktop-app #adminTariffsPane .admin-plan-kv-list .kv-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .admin-welcome-card {
    padding: 16px;
  }

  .admin-help-panel {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 12px;
  }
}

@media (max-width: 560px) {
  .admin-toolbar-actions {
    width: 100%;
  }

  .admin-quick-search {
    width: 100%;
    min-width: 0;
  }
}

.admin-auth-only-page #adminShell {
  display: none !important;
}


body.admin-auth-unknown #adminShell {
  display: none !important;
}
body.admin-auth-unknown #adminAuthOverlay {
  display: none !important;
}
body:not(.admin-auth-unknown) .admin-auth-boot {
  display: none !important;
}
.admin-auth-boot {
  position: fixed;
  inset: 0;
  z-index: 1998;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(244, 246, 252, 0.92);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
}
.admin-auth-boot-inner {
  font-size: 15px;
  letter-spacing: 0.02em;
}


.admin-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(244, 246, 252, 0.88);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}

.admin-auth-overlay::before,
.admin-auth-overlay::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.55;
}

.admin-auth-overlay::before {
  width: min(480px, 90vw);
  height: min(480px, 90vw);
  top: -12%;
  right: -8%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.35), transparent 70%);
}

.admin-auth-overlay::after {
  width: min(400px, 80vw);
  height: min(400px, 80vw);
  bottom: -10%;
  left: -6%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.28), transparent 70%);
}

.admin-auth-overlay.hidden {
  display: none;
}

#adminAuthOverlay:not(.hidden) ~ #adminShell {
  display: none !important;
}

.admin-auth-card {
  position: relative;
  z-index: 1;
  width: min(440px, 92vw);
  padding: 36px 32px;
  border-radius: calc(var(--radius-card) + 2px);
  border: 1px solid var(--line-strong);
  background: linear-gradient(165deg, #ffffff 0%, #fafbff 100%);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.8) inset, 0 40px 80px rgba(79, 70, 229, 0.1);
}

.admin-auth-title {
  font-family: var(--font-display);
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  background: linear-gradient(120deg, #1e1b4b, #4338ca 50%, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@supports not (background-clip: text) {
  .admin-auth-title {
    color: var(--text);
    background: none;
  }
}

.admin-auth-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 12px 0 6px;
  color: var(--muted);
}

.admin-auth-step.hidden {
  display: none;
}

.admin-auth-qr-wrap {
  display: flex;
  justify-content: center;
  margin: 14px 0;
}

.admin-auth-qr {
  border-radius: 12px;
  background: #ffffff;
  padding: 10px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.admin-auth-error {
  color: #b91c1c;
  font-size: 13px;
  margin-top: 14px;
  font-weight: 600;
}

.admin-auth-error.hidden {
  display: none;
}

.admin-operator-plaque {
  margin-bottom: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, rgba(241, 245, 255, 0.9) 100%);
  border: 1px solid rgba(99, 102, 241, 0.14);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.admin-operator-plaque-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.admin-operator-plaque-avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #fff;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.22);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.admin-operator-plaque-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.admin-operator-plaque-login {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-operator-plaque-role {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-plan-kv-list .kv-row > .limit-input:not(.kv-val),
.admin-plan-kv-list .kv-row > textarea.limit-input {
  flex: 1 1 0;
  min-width: 0;
}

.admin-pct-input-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.admin-pct-input-suffix {
  color: var(--muted);
  font-size: 13px;
}

.admin-plan-kv-list .kv-row > .admin-pct-input-wrap {
  flex: 1 1 0;
  min-width: 0;
}

.admin-plan-kv-list .kv-row > .admin-pct-input-wrap > .limit-input {
  flex: 1 1 0;
  min-width: 0;
}

.admin-plan-kv-list .admin-plan-kv-row--bullets > textarea.limit-input {
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: normal;
}

@media (max-width: 520px) {
  .admin-plan-kv-list .kv-row > .limit-input:not(.kv-val),
  .admin-plan-kv-list .kv-row > textarea.limit-input {
    flex: 1 1 100%;
    width: 100%;
  }
}

.admin-audit-presets {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  margin: 0 0 8px 0;
  box-sizing: border-box;
}

.admin-audit-presets-label {
  font-size: 12px;
  margin-right: 2px;
  color: var(--muted, #64748b);
}

.admin-audit-table {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 12px;
  box-sizing: border-box;
}

.admin-audit-table th,
.admin-audit-table td {
  border-bottom: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.admin-audit-table th:nth-child(1),
.admin-audit-table td:nth-child(1) {
  width: 6.75rem;
}

.admin-audit-table th:nth-child(2),
.admin-audit-table td:nth-child(2) {
  width: 18%;
}

.admin-audit-table th:nth-child(3),
.admin-audit-table td:nth-child(3) {
  width: 11%;
}

.admin-audit-table th:nth-child(4),
.admin-audit-table td:nth-child(4) {
  width: 8.5rem;
}

.admin-audit-table th:nth-child(5),
.admin-audit-table td:nth-child(5) {
  width: 22%;
}

.admin-audit-table th:nth-child(6),
.admin-audit-table td:nth-child(6) {
  width: auto;
}

.admin-audit-payload-cell {
  white-space: pre-wrap;
  max-width: 100%;
}

.admin-audit-table th {
  color: var(--muted);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dash-decline-reasons {
  font-size: 12px;
  line-height: 1.5;
  margin-top: 8px;
  color: var(--muted);
}


@media (prefers-reduced-motion: reduce) {
  .admin-main-scroll {
    scroll-behavior: auto;
  }
}


.admin-panels-stage {
  position: relative;
  display: block;
  min-height: min(50vh, 520px);
  min-width: 0;
  max-width: 100%;
}

body.admin-desktop-app .admin-panels-stage > .admin-pane.hidden {
  display: block !important;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  max-width: 100%;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  overflow: hidden !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: none;
  transition: none;
  z-index: 0;
}

body.admin-desktop-app .admin-panels-stage > .admin-pane:not(.hidden) {
  position: relative;
  z-index: 1;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  height: auto !important;
  min-height: 0;
  overflow: visible;
  transition: none;
}


body.admin-desktop-app .admin-pane:not(.hidden) .admin-dashboard-pane > * {
  animation: none;
}


body.admin-desktop-app .modal-overlay:not(.hidden) {
  overflow-y: auto;
  align-items: flex-start;
  justify-content: center;
  padding: max(24px, env(safe-area-inset-top, 0px)) 16px max(32px, env(safe-area-inset-bottom, 0px));
}


.admin-global-tx-filter-form {
  margin: 0 0 12px;
  padding: 14px 16px;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  background: var(--panel-2);
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
}

.admin-global-tx-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
  gap: 12px 16px;
  align-items: end;
}

@media (min-width: 1100px) {
  .admin-global-tx-filter-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .admin-global-tx-filter-grid {
    grid-template-columns: 1fr;
  }
}

.admin-global-tx-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.admin-global-tx-field .limit-input,
.admin-global-tx-field select.limit-input {
  width: 100%;
  box-sizing: border-box;
}

.admin-global-tx-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.admin-global-tx-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  align-items: center;
}

.admin-global-tx-table {
  width: 100%;
  
  min-width: 1680px;
  table-layout: auto;
  border-collapse: collapse;
}

.admin-global-tx-table th {
  text-align: left;
  padding: 8px 10px;
  white-space: nowrap;
  overflow: visible;
}

.admin-global-tx-table td {
  padding: 8px 10px;
  vertical-align: top;
  white-space: normal;
  word-break: break-word;
  overflow: visible;
  hyphens: auto;
}


.admin-global-tx-table th:nth-child(1),
.admin-global-tx-table td:nth-child(1) {
  min-width: 220px;
  max-width: none;
}

.admin-global-tx-table td.admin-instant-wrap {
  white-space: pre-line !important;
  overflow: visible;
  word-break: normal;
}


.admin-global-tx-table th:nth-child(2),
.admin-global-tx-table td:nth-child(2),
.admin-global-tx-tx-id-cell {
  min-width: 280px;
  max-width: none;
  white-space: normal;
  word-break: break-all;
  overflow: visible;
  text-overflow: clip;
}


.admin-global-tx-table th:nth-child(3),
.admin-global-tx-table td:nth-child(3) {
  min-width: 140px;
  max-width: none;
}


.admin-global-tx-table th:nth-child(4),
.admin-global-tx-table td:nth-child(4) {
  min-width: 240px;
  max-width: none;
}


.admin-global-tx-table th:nth-child(5),
.admin-global-tx-table td:nth-child(5) {
  min-width: 200px;
  max-width: none;
}


.admin-global-tx-table th:nth-child(6),
.admin-global-tx-table td:nth-child(6) {
  min-width: 7.5rem;
  max-width: 11rem;
  white-space: nowrap;
  word-break: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  hyphens: none;
}


.admin-global-tx-table th:nth-child(7),
.admin-global-tx-table td:nth-child(7),
.admin-global-tx-table th:nth-child(8),
.admin-global-tx-table td:nth-child(8),
.admin-global-tx-table th:nth-child(9),
.admin-global-tx-table td:nth-child(9) {
  white-space: nowrap;
  word-break: normal;
  min-width: 4.75rem;
  text-align: right;
  hyphens: none;
}


.admin-global-tx-table th:nth-child(10),
.admin-global-tx-table td:nth-child(10) {
  min-width: 5.75rem;
  white-space: nowrap;
  word-break: normal;
  hyphens: none;
}


.admin-global-tx-table th:nth-child(11),
.admin-global-tx-table td:nth-child(11) {
  min-width: 140px;
  max-width: none;
  white-space: normal;
  word-break: break-word;
}

.admin-global-tx-table th:nth-child(12),
.admin-global-tx-table td:nth-child(12) {
  min-width: 17rem;
  width: 17rem;
  max-width: 24rem;
  white-space: nowrap;
  word-break: normal;
  hyphens: none;
}

.admin-global-tx-table th:nth-child(13),
.admin-global-tx-table td:nth-child(13) {
  width: 3rem;
  min-width: 3rem;
  max-width: 4rem;
  white-space: nowrap;
  text-align: center;
}

.admin-global-tx-table th:nth-child(14),
.admin-global-tx-table td:nth-child(14) {
  min-width: 5rem;
  width: 5.5rem;
  max-width: 10rem;
  white-space: nowrap;
  word-break: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}


tr.admin-global-tx-row--linked td {
  background: transparent;
  box-shadow: none;
}

tr.admin-global-tx-row--linked-first td {
  border-top: none;
  padding-top: 8px;
}

tr.admin-global-tx-row--linked-last td {
  border-bottom: none;
  padding-bottom: 8px;
}

tr.admin-global-tx-row--linked:hover td {
  background: transparent;
}

.admin-mini-row.admin-global-tx-row--linked {
  margin-top: 0;
  padding-top: 6px;
  padding-bottom: 6px;
  border-left: 2px solid rgba(255, 140, 60, 0.35);
  padding-left: 10px;
}

.admin-mini-row.admin-global-tx-row--linked-first {
  padding-top: 10px;
}

.admin-mini-row.admin-global-tx-row--linked-last {
  padding-bottom: 10px;
  margin-bottom: 8px;
}


.admin-panels .admin-mini-row.admin-client-activity-row {
  display: grid;
  grid-template-columns: minmax(9.5rem, 12rem) minmax(7rem, 1fr) minmax(8rem, 1.35fr) minmax(5.5rem, 7rem);
  align-items: center;
  justify-content: stretch;
  gap: 6px 14px;
}

.admin-client-activity-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.admin-client-activity-id {
  font-size: 11px;
  line-height: 1.2;
  word-break: break-all;
}

.admin-client-activity-title {
  min-width: 0;
  line-height: 1.35;
}

.admin-client-activity-detail {
  min-width: 0;
  line-height: 1.35;
  font-size: 12px;
}

.admin-client-activity-amt {
  text-align: right;
  white-space: nowrap;
  justify-self: end;
}

@media (max-width: 760px) {
  .admin-panels .admin-mini-row.admin-client-activity-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "meta amt"
      "title title"
      "detail detail";
  }

  .admin-client-activity-meta {
    grid-area: meta;
  }

  .admin-client-activity-title {
    grid-area: title;
  }

  .admin-client-activity-detail {
    grid-area: detail;
  }

  .admin-client-activity-amt {
    grid-area: amt;
  }
}


@media (max-width: 760px) {
  body.admin-desktop-app .admin-global-tx-table {
    display: block;
    width: 100%;
  }

  body.admin-desktop-app .admin-global-tx-table thead {
    display: none;
  }

  body.admin-desktop-app .admin-global-tx-table tbody {
    display: block;
  }

  body.admin-desktop-app .admin-global-tx-table tr.admin-global-tx-group-row {
    display: block;
  }

  body.admin-desktop-app .admin-global-tx-table tr.admin-global-tx-group-row td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  body.admin-desktop-app .admin-global-tx-table tr.admin-global-tx-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 4px 10px;
    padding: 12px 6px;
    border-bottom: 1px solid var(--line);
    box-sizing: border-box;
  }

  body.admin-desktop-app .admin-global-tx-table tr.admin-global-tx-row td {
    display: block;
    min-width: 0;
    border-bottom: none;
    padding: 6px 8px;
    box-sizing: border-box;
  }

  
  body.admin-desktop-app .admin-global-tx-table tr.admin-global-tx-row td:nth-child(1) {
    order: 10;
    flex: 1 1 calc(50% - 8px);
  }

  body.admin-desktop-app .admin-global-tx-table tr.admin-global-tx-row td:nth-child(2) {
    order: 18;
    flex: 1 1 100%;
    white-space: nowrap;
    overflow-x: auto;
  }

  body.admin-desktop-app .admin-global-tx-table tr.admin-global-tx-row td:nth-child(3) {
    order: 20;
    flex: 1 1 calc(50% - 8px);
  }

  
  body.admin-desktop-app .admin-global-tx-table tr.admin-global-tx-row td:nth-child(4) {
    order: 30;
    flex: 1 1 100%;
  }

  body.admin-desktop-app .admin-global-tx-table tr.admin-global-tx-row td:nth-child(5) {
    order: 40;
    flex: 1 1 100%;
  }

  
  body.admin-desktop-app .admin-global-tx-table tr.admin-global-tx-row td:nth-child(6) {
    order: 50;
    flex: 1 1 30%;
  }

  body.admin-desktop-app .admin-global-tx-table tr.admin-global-tx-row td:nth-child(7) {
    order: 60;
    flex: 1 1 30%;
  }

  body.admin-desktop-app .admin-global-tx-table tr.admin-global-tx-row td:nth-child(8) {
    order: 70;
    flex: 1 1 30%;
  }

  body.admin-desktop-app .admin-global-tx-table tr.admin-global-tx-row td:nth-child(9) {
    order: 80;
    flex: 1 1 30%;
  }

  body.admin-desktop-app .admin-global-tx-table tr.admin-global-tx-row td:nth-child(10) {
    order: 90;
    flex: 1 1 45%;
  }

  body.admin-desktop-app .admin-global-tx-table tr.admin-global-tx-row td:nth-child(11) {
    order: 95;
    flex: 1 1 100%;
  }

  body.admin-desktop-app .admin-global-tx-table tr.admin-global-tx-row td:nth-child(12) {
    order: 100;
    flex: 1 1 45%;
  }

  body.admin-desktop-app .admin-global-tx-table tr.admin-global-tx-row td:nth-child(13) {
    order: 110;
    flex: 1 1 100%;
  }

  body.admin-desktop-app .admin-global-tx-table tr.admin-global-tx-row td:nth-child(14) {
    order: 115;
    flex: 1 1 100%;
    white-space: nowrap;
    overflow-x: auto;
    max-width: 100%;
  }
}

.admin-global-tx-group-row td {
  padding: 8px 8px 6px;
}

.admin-global-tx-group-cell {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #475569;
  background: rgba(148, 163, 184, 0.12);
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
}

.admin-global-tx-pill {
  display: inline-block;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-global-tx-pill--card_auth {
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(14, 165, 233, 0.35);
  color: #0369a1;
}

.admin-global-tx-pill--card_purchase {
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(14, 165, 233, 0.35);
  color: #0369a1;
}

.admin-global-tx-pill--holymint_net {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #047857;
}

.admin-global-tx-pill--card_wallet {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.32);
  color: #4338ca;
}

.admin-global-tx-pill--fee {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: #b45309;
}

.admin-global-tx-pill--billing {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.32);
  color: #047857;
}

.admin-global-tx-pill--system {
  background: rgba(100, 116, 139, 0.1);
  border-color: rgba(100, 116, 139, 0.28);
  color: #475569;
}


.admin-global-tx-type-cell {
  vertical-align: top;
}

.admin-global-tx-type-cell-inner {
  display: flex;
  flex-flow: row wrap;
  align-items: flex-start;
  gap: 6px 8px;
  min-width: 0;
  max-width: 100%;
}


.admin-global-tx-bundle-pill {
  display: inline-block;
  flex-shrink: 0;
  margin-right: 0;
  vertical-align: middle;
  padding: 2px 7px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #475569;
  background: rgba(148, 163, 184, 0.22);
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.admin-global-tx-type-cell-inner > .admin-global-tx-pill {
  flex-shrink: 0;
}

.admin-global-tx-type-cell-inner > .admin-global-tx-type-stack {
  flex: 1 1 auto;
  min-width: 0;
}

.admin-global-tx-ledger-detail {
  margin-top: 6px;
  white-space: pre-wrap;
  line-height: 1.4;
  font-size: 12px;
}

.admin-global-tx-status {
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
}

.admin-global-tx-status--approved {
  color: #0f766e;
}

.admin-global-tx-status--declined {
  color: #b91c1c;
}

.admin-global-tx-status--pending {
  color: #64748b;
}

.admin-global-tx-plan-cell {
  max-width: 11rem;
}

.admin-global-tx-status-fee {
  font-size: 11px;
  font-weight: 500;
  margin-top: 4px;
  line-height: 1.25;
}

.admin-global-tx-type-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.admin-global-tx-type-wallet {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.25;
}

.admin-client-activity-amt .admin-global-tx-amount-stack {
  align-items: flex-end;
  text-align: right;
}

.admin-client-activity-amt .admin-global-tx-amount-stack--inline {
  justify-content: flex-end;
}

.admin-global-tx-amount-cell {
  min-width: 11rem;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-global-tx-amount-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.3;
  min-width: 0;
}

.admin-global-tx-amount-stack--inline {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
  line-height: 1.35;
  max-width: 100%;
}

.admin-global-tx-amount-stack--inline > div {
  white-space: nowrap;
}

.admin-global-tx-amount-stack--inline > div:not(:first-child)::before {
  content: "·";
  margin: 0 8px;
  color: #94a3b8;
  font-weight: 400;
}

.admin-global-tx-amount-stack > div {
  white-space: nowrap;
}

.admin-global-tx-amount-total {
  font-weight: 600;
  margin-top: 2px;
  color: #0f172a;
}

tr.admin-global-tx-row--admin-withdraw {
  cursor: pointer;
}

tr.admin-global-tx-row--admin-withdraw:hover {
  background: rgba(99, 102, 241, 0.07);
}

tr.admin-global-tx-row--admin-withdraw:focus-visible {
  outline: 2px solid rgba(79, 70, 229, 0.45);
  outline-offset: -2px;
}


tr.admin-global-tx-row--no-web-profile {
  box-shadow: inset 3px 0 0 0 rgba(217, 119, 6, 0.75);
}

tr.admin-global-tx-row--no-web-profile:hover td {
  background: rgba(251, 191, 36, 0.06);
}


.admin-global-tx-email-cell {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-global-tx-email-cell button.admin-finance-ledger-user-link {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-global-tx-email-cell .admin-global-tx-orphan-client {
  display: inline-block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #b45309;
  background: rgba(251, 191, 36, 0.2);
  border: 1px solid rgba(217, 119, 6, 0.35);
  border-radius: 4px;
  padding: 2px 6px;
}


.admin-global-tx-decline-cell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 120px;
}

.admin-global-withdraw-reason-modal-panel {
  max-width: min(480px, 96vw);
  width: 100%;
}

.admin-global-withdraw-reason-modal-text {
  margin: 12px 0 4px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(248, 250, 252, 0.95);
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  color: #0f172a;
  min-height: 2.5rem;
}


.admin-global-tx-card-cell {
  font-size: 11px;
  min-width: 0;
  max-width: min(22rem, 40vw);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
  word-break: normal;
}

.admin-global-tx-card-cell .admin-global-tx-card-link {
  display: inline-block;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: inherit;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
}

.admin-global-tx-card-cell .admin-global-tx-card-link:hover,
.admin-global-tx-card-cell .admin-global-tx-card-link:focus-visible {
  text-decoration: underline;
  outline: none;
}


.admin-dashboard-pane .admin-block {
  overflow: visible;
}

.admin-dashboard-pane {
  overflow: visible;
}

.admin-dashboard-pane .row-inline {
  position: relative;
}

.admin-dashboard-pane .dash-hint[data-hint] {
  position: relative;
  z-index: 0;
  cursor: inherit;
  text-decoration: none;
  border-radius: 2px;
}


.admin-dashboard-pane .dash-hint[data-hint]:hover,
.admin-dashboard-pane .dash-hint[data-hint]:focus-visible {
  z-index: 400;
}

.admin-dashboard-pane .dash-hint[data-hint]:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.35);
}

.admin-dashboard-pane .dash-hint[data-hint]::after {
  content: none !important;
  display: none !important;
}

.admin-dashboard-pane .admin-block > p.subtle.dash-hint[data-hint]:first-child::after {
  content: none !important;
  display: none !important;
}

.admin-dashboard-pane .row-inline:has(.dash-hint[data-hint]:hover),
.admin-dashboard-pane .row-inline:has(.dash-hint[data-hint]:focus-visible) {
  z-index: 400;
}

.admin-notify-settings {
  padding: 14px 16px;
  border: 1px solid rgba(99, 102, 241, 0.22);
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.9);
}

.admin-notify-toggles {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-notify-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}

.admin-notify-toggle input {
  width: 17px;
  height: 17px;
  cursor: pointer;
}

.admin-notify-toggle--sub {
  margin-left: 18px;
  font-size: 13px;
  color: #64748b;
}

.admin-block--topup-requests {
  border: 2px solid rgba(99, 102, 241, 0.45);
  background: rgba(99, 102, 241, 0.1);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 4px;
}

.admin-dashboard-pane .admin-block--topup-requests > .row-inline p strong {
  font-size: 14px;
  color: #3730a3;
}

.dash-topup-req-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.dash-topup-req-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.dash-topup-req-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  font-weight: 600;
}

.dash-topup-req-pill.active {
  border-color: rgba(99, 102, 241, 0.55);
  background: rgba(99, 102, 241, 0.14);
}

.dash-topup-req-pill__amt {
  font-size: 13px;
}

.dash-topup-req-menu {
  width: 100%;
  max-width: 420px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: var(--panel, #fff);
}

.dash-topup-req-menu__lead {
  margin: 0 0 4px;
}

.dash-topup-req-menu__sum {
  margin: 0 0 10px;
  font-size: 13px;
}

.dash-topup-req-menu__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.dash-topup-req-item--inline .dash-topup-req-menu--inline {
  max-width: 100%;
}

.admin-client-pending-topup-wrap:not(.hidden) {
  display: inline-flex;
}

.admin-invite-table-link {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  max-width: 420px;
}

.admin-invite-table-link__input {
  flex: 1 1 200px;
  min-width: 120px;
  max-width: 340px;
  padding: 4px 6px;
  font-family: ui-monospace, monospace;
  font-size: 11px;
}

.admin-invite-req-table a.mini-btn {
  display: inline-block;
  text-decoration: none;
}


.admin-finance-pane .admin-finance-toolbar {
  flex-wrap: nowrap;
  gap: 10px;
  margin: 12px 0;
  align-items: flex-end;
  justify-content: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.admin-finance-pane .admin-finance-toolbar label.subtle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.admin-finance-pane .admin-finance-toolbar label.subtle .limit-input {
  flex-shrink: 0;
}

body.admin-desktop-app .admin-finance-toolbar input.limit-input[type="date"] {
  min-width: min(9.25rem, 42vw);
}

.admin-finance-pane .admin-finance-pdf-row.row-inline {
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

body.admin-desktop-app .admin-global-tx-pager.row-inline,
body.admin-desktop-app .admin-finance-ledger-pager.row-inline {
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}


body.admin-desktop-app .admin-audit-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 12px 16px;
  margin-bottom: 10px;
  padding: 0;
  border-top: none;
  min-height: 0;
}

body.admin-desktop-app .admin-audit-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  flex: 0 1 auto;
  min-width: 0;
}

body.admin-desktop-app .admin-audit-field-label {
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

body.admin-desktop-app .admin-audit-field .limit-input {
  flex-shrink: 0;
  min-width: min(100%, 12.75rem);
  max-width: 100%;
}

body.admin-desktop-app .admin-audit-field input[type="text"].limit-input {
  min-width: min(100%, 22rem);
}

body.admin-desktop-app .admin-audit-toolbar-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.admin-finance-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 10px 0 6px;
}

.admin-finance-kpi {
  border-radius: 14px;
  padding: 14px 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92) 0%, rgba(241, 245, 249, 0.88) 100%);
  border: 1px solid rgba(99, 102, 241, 0.18);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.admin-finance-kpi-accent {
  border-color: rgba(34, 197, 94, 0.28);
  background: linear-gradient(160deg, rgba(236, 253, 245, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.admin-finance-kpi-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(71, 85, 105, 0.95);
  margin-bottom: 6px;
}

.admin-finance-kpi-value {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}

.admin-finance-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.admin-finance-table-wrap {
  overflow-x: auto;
  overflow-y: visible;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  max-height: none;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.65);
}

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

.admin-finance-table th,
.admin-finance-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.admin-finance-table th {
  position: sticky;
  top: 0;
  background: rgba(248, 250, 252, 0.98);
  font-weight: 600;
  color: #475569;
  z-index: 1;
}


body.admin-desktop-app .admin-finance-table {
  display: table !important;
  width: 100%;
  min-width: 0;
  table-layout: auto;
  border-collapse: collapse;
  border-spacing: 0;
}

body.admin-desktop-app .admin-finance-table thead {
  display: table-header-group !important;
}

body.admin-desktop-app .admin-finance-table tbody {
  display: table-row-group !important;
}

body.admin-desktop-app .admin-finance-table tfoot {
  display: table-footer-group !important;
}

body.admin-desktop-app .admin-finance-table tr {
  display: table-row !important;
}

body.admin-desktop-app .admin-finance-table th,
body.admin-desktop-app .admin-finance-table td {
  display: table-cell !important;
  vertical-align: middle;
  box-sizing: border-box;
}

body.admin-desktop-app .admin-finance-pane .admin-finance-table tbody tr:nth-child(odd) {
  background: rgba(30, 41, 59, 0.055);
}

body.admin-desktop-app .admin-finance-pane .admin-finance-table tbody tr:hover {
  background: rgba(99, 102, 241, 0.1);
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.15);
}

body.admin-desktop-app .admin-finance-pane .admin-period-metrics-host .admin-period-metrics-table tbody tr:nth-child(odd) {
  background: rgba(15, 23, 42, 0.035);
}

body.admin-desktop-app .admin-finance-pane .admin-period-metrics-host .admin-period-metrics-table tbody tr:hover {
  background: rgba(99, 102, 241, 0.07);
}

.admin-finance-table td.admin-finance-amount-cell {
  vertical-align: top;
  min-width: 9.5rem;
  line-height: 1.35;
}

.admin-finance-label-cell {
  vertical-align: top;
  max-width: min(420px, 36vw);
  text-align: center;
}

.admin-finance-table th.admin-finance-th-label,
.admin-finance-table td.admin-finance-label-cell {
  text-align: center;
}

.admin-finance-label-readable {
  font-size: 12px;
  font-weight: 500;
  color: #334155;
  line-height: 1.4;
  margin-bottom: 4px;
  font-family: var(--font, "Plus Jakarta Sans", system-ui, sans-serif);
}

.admin-finance-label-raw {
  font-size: 11px;
  line-height: 1.35;
  word-break: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  margin: 0 auto;
}

tr.admin-finance-ledger-tr {
  cursor: pointer;
}

tr.admin-finance-ledger-tr:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.55);
  outline-offset: -2px;
}

button.admin-finance-ledger-user-link {
  display: inline;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  color: var(--accent-dim, #4338ca);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  text-align: inherit;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

button.admin-finance-ledger-user-link:hover {
  color: var(--accent, #4f46e5);
}

.admin-finance-ledger-row-body {
  max-height: min(70vh, 640px);
  overflow: auto;
  padding: 2px 0 6px;
}

.admin-finance-ledger-row-modal-panel {
  max-width: min(720px, 96vw);
  width: 100%;
}

.admin-finance-ledger-detail-snake {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
  max-width: 680px;
  margin: 0 auto;
  padding: 4px 0 8px;
  align-items: start;
}

@media (max-width: 560px) {
  .admin-finance-ledger-detail-snake {
    grid-template-columns: 1fr;
  }
  .admin-finance-ledger-detail-block:nth-child(odd) {
    justify-self: stretch !important;
    text-align: left !important;
  }
  .admin-finance-ledger-detail-block:nth-child(even) {
    justify-self: stretch !important;
  }
}

.admin-finance-ledger-detail-block {
  max-width: min(100%, 300px);
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.92) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.admin-finance-ledger-detail-block:nth-child(odd) {
  justify-self: end;
  text-align: right;
}

.admin-finance-ledger-detail-block:nth-child(even) {
  justify-self: start;
  text-align: left;
}

.admin-finance-ledger-detail-k {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 6px;
  font-weight: 600;
}

.admin-finance-ledger-detail-v {
  font-size: 12px;
  color: #0f172a;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-finance-reports {
  padding: 8px 0;
  line-height: 1.5;
}


.liq-profiles-table-wrap {
  overflow-x: auto;
  overflow-y: visible;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  max-height: none;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(252, 253, 255, 0.98) 100%);
  box-shadow: var(--shadow-sm);
}

.liq-profiles-table {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 12px;
  
  display: table;
}

.liq-profiles-table thead {
  display: table-header-group;
}

.liq-profiles-table tbody {
  display: table-row-group;
}

.liq-profiles-table tr {
  display: table-row;
}

.liq-profiles-table col.liq-col-profile {
  width: 30%;
}

.liq-profiles-table th,
.liq-profiles-table td {
  display: table-cell;
  padding: 8px 8px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

.liq-profiles-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: linear-gradient(180deg, #f1f5f9 0%, #e8edf5 100%);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #475569;
  white-space: normal;
  line-height: 1.25;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  box-shadow: 0 1px 0 rgba(148, 163, 184, 0.2);
}

.liq-profiles-table th.liq-col-num {
  text-align: right;
}

.liq-profiles-table tbody tr:nth-child(even):not(.liq-profiles-empty-row) td {
  background: rgba(248, 250, 252, 0.65);
}

.liq-profiles-table tbody tr:hover:not(.liq-profiles-empty-row) td {
  background: rgba(99, 102, 241, 0.06);
}

.liq-profiles-table .liq-col-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: #1e293b;
}

.liq-profiles-table .liq-col-profile {
  max-width: none;
  min-width: 0;
  vertical-align: top;
}

.liq-profiles-table .liq-profile-cell {
  min-width: 0;
  max-width: 100%;
}

button.admin-liq-profile-link {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

button.admin-liq-profile-link:hover .liq-profile-line--main {
  color: var(--accent, #4f46e5);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.liq-profiles-table .liq-profile-line--main {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.3;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.liq-profiles-table .liq-profile-line--main.liq-profile-line--solo {
  font-weight: 500;
  font-size: 11px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: #334155;
}

.liq-profiles-table .liq-profile-line--sub {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  color: #64748b;
  line-height: 1.2;
  word-break: break-all;
}

.liq-profiles-toolbar {
  margin-top: 2px;
}

.liq-profiles-table .liq-col-cards {
  text-align: right;
}

.liq-profiles-table .liq-profiles-empty-row td {
  text-align: center;
  padding: 20px 12px;
  font-style: normal;
}


body.admin-desktop-app #adminLiquidityPane .kv-key {
  min-width: 0;
  flex: 0 1 auto;
  max-width: min(100%, 22rem);
  overflow-wrap: break-word;
  word-break: break-word;
}

@media (max-width: 760px) {
  body.admin-desktop-app #adminLiquidityPane .kv-row {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 6px 10px;
  }

  body.admin-desktop-app #adminLiquidityPane .kv-dots {
    display: none;
  }

  body.admin-desktop-app #adminLiquidityPane .kv-val {
    flex: 1 1 100%;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-align: right;
  }
}


.admin-period-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  margin-bottom: 8px;
}

.admin-period-head-row .admin-period-controls {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}


.admin-period-controls.row-inline {
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  align-items: center;
  gap: 6px 8px;
  padding-top: 0;
  padding-bottom: 0;
  border-top: none;
  min-height: 0;
}

.admin-period-controls.row-inline .filter-pill,
.admin-period-controls.row-inline .mini-btn {
  flex-shrink: 0;
}


.admin-finance-pane .admin-field-group[aria-label="Report period"] .admin-period-controls.row-inline {
  flex-wrap: wrap !important;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.admin-finance-pane .admin-field-group[aria-label="Report period"] #adminFinanceRefreshBtn {
  white-space: nowrap;
}

body.admin-desktop-app .admin-period-controls input.limit-input[type="date"] {
  min-width: min(9.25rem, 42vw);
  flex-shrink: 0;
}

.admin-period-head-row .admin-period-head-title {
  margin: 0;
  flex: 1 1 200px;
  text-align: right;
  align-self: center;
}

@media (max-width: 720px) {
  .admin-period-head-row .admin-period-head-title {
    flex: 1 1 100%;
    text-align: left;
  }
}


.admin-period-metrics-host {
  white-space: normal;
  font-size: 12px;
  color: var(--text);
}

.admin-period-metrics {
  max-width: 100%;
}

.admin-period-metrics__scope {
  margin: 0 0 10px;
  font-size: 12px;
}

.admin-period-metrics__subhead {
  margin: 14px 0 8px;
  padding-left: 11px;
  padding-right: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #334155;
  
  box-sizing: border-box;
}

.admin-period-metrics__hint,
.admin-period-metrics__warn,
.admin-period-metrics__foot {
  margin: 0 0 10px;
  font-size: 11px;
  line-height: 1.45;
}

.admin-period-metrics__warn {
  color: #b45309;
}

.admin-period-metrics-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 14px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 10px;
  overflow: hidden;
}

.admin-period-metrics-table th,
.admin-period-metrics-table td {
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

.admin-period-metrics-table thead th {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  background: rgba(248, 250, 252, 0.98);
}

.admin-period-metrics-table tbody th[scope="row"] {
  font-weight: 600;
  color: #334155;
  max-width: 44%;
}

.admin-period-metrics-table--kv tbody th {
  width: 42%;
}

.admin-period-metrics-table .mono {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

.admin-period-metrics-table tbody tr:last-child th,
.admin-period-metrics-table tbody tr:last-child td {
  border-bottom: none;
}


.admin-period-metrics-table:not(.admin-period-metrics-table--kv) tbody tr:last-child th,
.admin-period-metrics-table:not(.admin-period-metrics-table--kv) tbody tr:last-child td {
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

.admin-period-metrics-table tfoot th,
.admin-period-metrics-table tfoot td {
  border-top: 2px solid rgba(148, 163, 184, 0.35);
  font-weight: 700;
  background: rgba(248, 250, 252, 0.96);
  color: #334155;
}

.admin-period-metrics-table:not(.admin-period-metrics-table--kv) tfoot td {
  text-align: right;
}


.admin-period-metrics-table:not(.admin-period-metrics-table--kv) thead th:first-child,
.admin-period-metrics-table:not(.admin-period-metrics-table--kv) tbody th[scope="row"] {
  text-align: left;
}

.admin-period-metrics-table:not(.admin-period-metrics-table--kv) thead th:nth-child(n + 2) {
  text-align: right;
}

.admin-period-metrics-table:not(.admin-period-metrics-table--kv) tbody td {
  text-align: right;
}


input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}


.admin-ledger-txid-cell {
  max-width: none;
  overflow: visible;
  white-space: normal;
  word-break: break-all;
  text-overflow: clip;
}


body.admin-desktop-app #adminClientActivityPane {
  color-scheme: light;
}


body.admin-desktop-app #adminClientActivityPane .ca-field-label {
  font-size: 11px;
  font-weight: 700;
  color: #0f172a !important;
  letter-spacing: 0.04em;
}

body.admin-desktop-app #adminClientActivityPane .ca-filter-panel .limit-input,
body.admin-desktop-app #adminClientActivityPane .ca-filter-panel select.limit-input {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.22) !important;
  color: #0f172a !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05) !important;
}

body.admin-desktop-app #adminClientActivityPane .ca-filter-panel .limit-input::placeholder,
body.admin-desktop-app #adminClientActivityPane .ca-filter-panel .limit-input::-webkit-input-placeholder {
  color: #475569 !important;
  opacity: 1 !important;
}

body.admin-desktop-app #adminClientActivityPane .ca-summary {
  margin-top: 6px;
  color: #334155 !important;
  font-weight: 600;
  font-size: 12px;
}

body.admin-desktop-app #adminClientActivityPane .ca-filter-row--actions {
  border-top-color: rgba(15, 23, 42, 0.1);
}

body.admin-desktop-app #adminClientActivityPane .ca-toggle-text {
  color: #0f172a !important;
}

body.admin-desktop-app #adminClientActivityPane .admin-ca-table th {
  color: #475569 !important;
  background: #f1f5f9 !important;
}

body.admin-desktop-app #adminClientActivityPane .admin-ca-table td {
  border-bottom-color: rgba(15, 23, 42, 0.08);
}


.ca-filter-panel {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 12px;
  padding: 14px 16px 12px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.ca-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}


.ca-filter-row--top {
  gap: 10px;
}


.ca-search-shell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 260px;
  min-width: min(100%, 220px);
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-sizing: border-box;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ca-search-shell:focus-within {
  border-color: rgba(79, 70, 229, 0.45);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12), 0 1px 2px rgba(15, 23, 42, 0.06);
}

.ca-search-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: #334155;
}

.ca-search-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0 !important;
  border-radius: 0;
  font-size: 13px;
  line-height: 1.35;
  font-family: inherit;
  background: transparent !important;
  color: #0f172a !important;
  outline: none;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
}

.ca-search-input::placeholder {
  color: #475569 !important;
  opacity: 1;
}

.ca-search-input::-webkit-input-placeholder {
  color: #475569 !important;
}

.ca-search-input:focus {
  outline: none;
  box-shadow: none !important;
}


.ca-date-presets {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.ca-preset-btn {
  padding: 5px 11px;
  border: 1px solid #64748b;
  border-radius: 20px;
  background: var(--bg, #fff);
  color: #1e293b;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
  white-space: nowrap;
}

.ca-preset-btn:hover {
  border-color: #2563eb;
  color: #1d4ed8;
  background: #eff6ff;
}

.ca-preset-btn--active {
  background: #1d4ed8;
  border-color: #1e40af;
  color: #fff;
}


.ca-filter-row--fields {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
}

.ca-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 140px;
  flex: 1 1 140px;
}

.ca-field--narrow {
  flex: 0 0 110px;
  min-width: 90px;
}

.ca-field-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #334155;
}

.ca-date-input {
  font-size: 12px !important;
}

.ca-select {
  font-size: 12px !important;
  padding: 7px 8px !important;
}


.ca-filter-panel .limit-input {
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

.ca-filter-panel .limit-input::placeholder {
  color: #475569 !important;
  opacity: 1 !important;
}

.ca-filter-panel .limit-input::-webkit-input-placeholder {
  color: #475569 !important;
}


.ca-filter-row--actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid var(--line, #e5e7eb);
  margin-top: 2px;
}

.ca-toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.ca-toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.ca-toggle-box {
  width: 36px;
  height: 20px;
  background: var(--line, #d1d5db);
  border-radius: 10px;
  position: relative;
  transition: background 0.15s;
  flex-shrink: 0;
}

.ca-toggle-box::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
  transition: transform 0.15s;
}

.ca-toggle-input:checked + .ca-toggle-box {
  background: #f87171;
}

.ca-toggle-input:checked + .ca-toggle-box::after {
  transform: translateX(16px);
}

.ca-toggle-text {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
}

.ca-action-btns {
  display: flex;
  gap: 6px;
  align-items: center;
}

.ca-apply-btn {
  font-size: 13px !important;
  padding: 7px 18px !important;
  border-radius: 7px !important;
}

.ca-summary {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}


.admin-ca-table {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 12px;
  box-sizing: border-box;
}

.admin-ca-table th,
.admin-ca-table td {
  border-bottom: 1px solid var(--line, #e5e7eb);
  padding: 7px 10px;
  text-align: left;
  vertical-align: top;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}


.ca-td-account  { width: 18%; }
.ca-td-action   { width: 46%; }
.ca-td-status   { width: 6%; text-align: center; font-weight: 700; }
.ca-td-time     { width: 11rem; }

.ca-audit-action-title { font-weight: 600; font-size: 14px; display: block; }
.ca-audit-tech { font-size: 11px; color: var(--muted); margin-top: 2px; display: block; }
.ca-audit-summary { font-size: 12px; color: var(--muted); margin-left: 6px; }
.ca-audit-hint { font-size: 12px; margin: 8px 0 4px; }

.admin-ca-table th {
  color: var(--muted, #9ca3af);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--bg2, #f8f9fb);
  position: sticky;
  top: 0;
  z-index: 1;
}

.admin-ca-row:hover {
  background: var(--hover-bg, rgba(0,0,0,.04));
}


.admin-ca-row--suspicious {
  background: rgba(248,113,113,.06);
  border-left: 3px solid #f87171;
}

.admin-ca-row--suspicious:hover {
  background: rgba(248,113,113,.12);
}


.admin-ca-row--err4 { background: rgba(251,191,36,.06); border-left: 3px solid #fbbf24; }
.admin-ca-row--err5 { background: rgba(239,68,68,.08); border-left: 3px solid #ef4444; }
.admin-ca-row--err4:hover { background: rgba(251,191,36,.12); }
.admin-ca-row--err5:hover { background: rgba(239,68,68,.13); }


.ca-method--get    { color: #10b981; }
.ca-method--post   { color: #3b82f6; }
.ca-method--patch  { color: #f59e0b; }
.ca-method--put    { color: #8b5cf6; }
.ca-method--delete { color: #ef4444; }


.ca-status--ok   { color: #10b981; }
.ca-status--err4 { color: #f59e0b; font-weight: 700; }
.ca-status--err5 { color: #ef4444; font-weight: 700; }


.ca-action-path {
  font-size: 10px;
  display: block;
  margin-top: 2px;
  opacity: 0.75;
}


.ca-suspicious-badge {
  display: inline-block;
  margin-right: 4px;
  font-size: 11px;
  color: #f87171;
}


.admin-ca-ip-warn {
  color: #dc2626;
  font-weight: 700;
}


.admin-ca-profile-link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--accent, #3b82f6);
  font-size: inherit;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
}

.admin-ca-profile-link:hover {
  opacity: 0.75;
}


.admin-ca-modal-panel {
  max-width: 640px;
  width: 100%;
}

.admin-ca-modal-body {
  max-height: 60vh;
  overflow-y: auto;
}

/* AF-558: card detail modal — centered layout, scrollable body, wrapped kv/tx */
body.admin-desktop-app #adminInventoryModal.admin-inv-modal--detail {
  align-items: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
}

body.admin-desktop-app .admin-inv-card-modal-panel {
  width: min(680px, calc(100vw - 32px));
  max-height: min(85vh, 820px);
}

body.admin-desktop-app #adminInventoryModal.admin-inv-modal--detail .inventory-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  max-height: min(62vh, 560px);
  overflow-y: auto !important;
  overflow-x: hidden;
}

.admin-inv-card-detail {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.admin-inv-card-detail .admin-inv-back-btn {
  margin-bottom: 8px;
}

.admin-inv-card-detail .inv-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 10px 0 8px;
}

.admin-inv-card-detail .admin-inv-close-card-btn {
  border-color: rgba(220, 80, 80, 0.55);
  color: #e88888;
}

.admin-inv-card-detail .admin-inv-closed-note {
  margin: 8px 0;
}

.admin-inv-card-detail .admin-inv-card-kv {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  min-width: 0;
}

.admin-inv-card-detail .kv-row {
  display: grid;
  grid-template-columns: minmax(7.5rem, 32%) minmax(0, 1fr);
  gap: 4px 12px;
  padding: 8px 10px;
  border-radius: 8px;
  align-items: start;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.admin-inv-card-detail .kv-row:nth-child(odd) {
  background: rgba(30, 41, 59, 0.04);
}

.admin-inv-card-detail .kv-dots {
  display: none;
}

.admin-inv-card-detail .kv-key {
  min-width: 0;
  font-weight: 600;
}

.admin-inv-card-detail .kv-val {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  flex-shrink: 1;
  min-width: 0;
  text-align: left;
}

.admin-inv-card-detail .kv-val.admin-instant-wrap {
  white-space: pre-line;
}

.admin-inv-card-detail .inv-detail-block {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.admin-inv-card-detail .inv-detail-block__title {
  margin: 0 0 8px;
}

.admin-inv-card-detail .admin-inv-tx-list {
  max-height: 240px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
}

.admin-inv-card-detail .inv-tx-line {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.admin-inv-card-detail .inv-tx-line:last-child {
  border-bottom: none;
}

.admin-client-activity-detail-pre {
  margin: 12px 0 0;
  padding: 10px 12px;
  background: var(--bg2, #f4f4f5);
  border-radius: 6px;
  font-size: 11px;
  font-family: monospace;
  white-space: pre-wrap;
  word-break: break-all;
  overflow-wrap: anywhere;
}


.logs-subtabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--border, #e4e4e7);
  padding-bottom: 0;
}

.logs-subtab {
  padding: 6px 18px;
  font-size: 13px;
  font-weight: 500;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  color: var(--text2, #71717a);
  border-radius: 4px 4px 0 0;
  transition: color 0.15s, border-color 0.15s;
}

.logs-subtab:hover {
  color: var(--text, #18181b);
  background: var(--bg2, #f4f4f5);
}

.logs-subtab.active {
  color: var(--accent, #6366f1);
  border-bottom-color: var(--accent, #6366f1);
}

.logs-subpane { }
.logs-subpane.hidden { display: none; }


.admin-managers-toolbar {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  margin-bottom: 14px;
  gap: 12px 14px;
}

.admin-managers-new-btn {
  flex-shrink: 0;
  align-self: center;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.admin-managers-search {
  flex: 1 1 220px;
  min-width: 180px;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}

.admin-managers-search__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.admin-managers-search__input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px 10px 40px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' d='M11 19a8 8 0 1 1 0-16 8 8 0 0 1 0 16Zm9 2-4.35-4.35'/%3E%3C/svg%3E")
    12px 50% no-repeat,
    linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary, #0f172a);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.admin-managers-search__input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.admin-managers-search__input:hover {
  border-color: rgba(99, 102, 241, 0.35);
}

.admin-managers-search__input:focus {
  border-color: rgba(99, 102, 241, 0.65);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
  background-color: #fff;
}

.admin-managers-toolbar-msg {
  flex: 0 0 auto;
  align-self: center;
  margin-left: auto;
  min-height: 1.2em;
}

.admin-managers-search-empty {
  margin: 0 0 12px;
  padding: 14px 16px;
  text-align: center;
  font-size: 13px;
  border-radius: 12px;
  border: 1px dashed rgba(148, 163, 184, 0.55);
  background: rgba(248, 250, 252, 0.85);
  color: var(--text-secondary, #64748b);
}

.admin-managers-search-empty.hidden {
  display: none !important;
}

#adminManagersTableWrap:has(> .admin-mgr-sheet) {
  border: none;
  box-shadow: none;
  background: transparent;
}

.admin-managers-table-wrap {
  overflow: auto;
  max-height: min(560px, 72vh);
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 8px 28px rgba(15, 23, 42, 0.07),
    0 2px 8px rgba(79, 70, 229, 0.06);
}

.admin-managers-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-managers-row {
  cursor: pointer;
  transition: background 0.12s, box-shadow 0.12s;
}

.admin-managers-row:hover td {
  background: rgba(99, 102, 241, 0.04);
}


.admin-managers-editor-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.admin-managers-editor-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary, #1a1d2e);
}

.admin-back-btn {
  background: none;
  border: none;
  color: var(--accent, #6366f1);
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  font-weight: 600;
}

.admin-back-btn:hover { text-decoration: underline; }

.admin-managers-section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-secondary, #6b7280);
  margin: 0 0 10px;
}


.mgr-status-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
}

.mgr-status--active {
  background: rgba(34, 197, 94, 0.14);
  color: #16a34a;
}

.mgr-status--paused {
  background: rgba(234, 179, 8, 0.14);
  color: #b45309;
}

.mgr-status--terminated {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}


#adminManagersPane .admin-mgr-sheet {
  overflow-x: auto;
  overflow-y: visible;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.92) inset;
}

#adminManagersPane .admin-mgr-detail-table-host {
  margin-bottom: 12px;
  max-width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  overflow: visible;
}

#adminManagersPane .admin-mgr-v2-table {
  display: table !important;
  width: 100%;
  min-width: 0;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  font-size: 13px;
  background: #fff;
  table-layout: auto;
}

#adminManagersPane .admin-mgr-v2-table thead {
  display: table-header-group !important;
}

#adminManagersPane .admin-mgr-v2-table tbody {
  display: table-row-group !important;
}

#adminManagersPane .admin-mgr-v2-table tfoot {
  display: table-footer-group !important;
}

#adminManagersPane .admin-mgr-v2-table tr {
  display: table-row !important;
}

#adminManagersPane .admin-mgr-v2-table th,
#adminManagersPane .admin-mgr-v2-table td {
  display: table-cell !important;
  box-sizing: border-box;
  vertical-align: middle;
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

#adminManagersPane .admin-mgr-v2-table thead th {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #64748b;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
  white-space: nowrap;
}

#adminManagersPane .admin-mgr-v2-table tbody tr:last-child td {
  border-bottom: none;
}

#adminManagersPane .admin-mgr-v2-table--registry {
  min-width: 760px;
}

#adminManagersTableWrap .admin-mgr-sheet .admin-mgr-v2-table--registry thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(180deg, #eef2ff 0%, #e8edff 45%, #f1f5f9 100%);
  border-bottom: 1px solid rgba(99, 102, 241, 0.22);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset;
}

#adminManagersPane .admin-mgr-v2-table--payout {
  min-width: 960px;
}

#adminManagersPane .admin-mgr-v2-table--ledger {
  min-width: 720px;
}

#adminManagersPane .admin-mgr-v2-table--ledger th,
#adminManagersPane .admin-mgr-v2-table--ledger td {
  vertical-align: top;
}

#adminManagersPane .admin-mgr-v2-table tbody tr:nth-child(odd) td {
  background: rgba(248, 250, 252, 0.55);
}

#adminManagersPane .admin-mgr-v2-table tbody tr:hover td {
  background: rgba(99, 102, 241, 0.08) !important;
}

#adminManagersTableWrap .admin-managers-registry.admin-mgr-v2-table tbody tr:nth-child(even) td {
  background: rgba(248, 250, 252, 0.92);
}

#adminManagersTableWrap .admin-managers-registry.admin-mgr-v2-table tbody tr:hover td {
  background: rgba(99, 102, 241, 0.1) !important;
}

#adminManagersTableWrap .admin-managers-row.admin-managers-row--hidden {
  display: none !important;
}

#adminManagersPane .admin-mgr-name {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--text-primary, #1a1d2e);
}

#adminManagersPane .admin-mgr-col-tg {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#adminManagersPane .admin-mgr-col-id {
  width: 48px;
}

#adminManagersPane .admin-mgr-col-ref {
  min-width: 88px;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}

#adminManagersPane .admin-mgr-col-num {
  width: 80px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#adminManagersPane .admin-mgr-col-bal {
  width: 108px;
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
}

#adminManagersPane .admin-mgr-col-act {
  width: 112px;
  min-width: 112px;
  text-align: right;
  white-space: nowrap;
}

#adminManagersPane .admin-mgr-open-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent, #6366f1);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.1);
  transition: background 0.15s, color 0.15s;
}

#adminManagersPane .admin-mgr-ref-actions {
  white-space: nowrap;
  text-align: right;
  vertical-align: middle;
}

#adminManagersPane .admin-mgr-ref-row-btn {
  margin-left: 6px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid rgba(99, 102, 241, 0.35);
  background: #fff;
  color: #4338ca;
  cursor: pointer;
}

#adminManagersPane .admin-mgr-ref-row-btn:first-child {
  margin-left: 0;
}

#adminManagersPane .admin-mgr-ref-row-btn:hover:not(:disabled) {
  background: rgba(99, 102, 241, 0.08);
}

#adminManagersPane .admin-mgr-ref-row-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

#adminManagersPane .admin-mgr-ref-row-btn--danger {
  border-color: rgba(225, 29, 72, 0.4);
  color: #be123c;
}

#adminManagersPane .admin-mgr-ref-row-btn--danger:hover:not(:disabled) {
  background: rgba(254, 226, 226, 0.55);
}

#adminManagersTableWrap .admin-managers-row:hover .admin-mgr-open-hint {
  background: rgba(99, 102, 241, 0.2);
  color: #4338ca;
}

#adminManagersPane .admin-managers-row:focus {
  outline: 2px solid rgba(99, 102, 241, 0.35);
  outline-offset: -2px;
}


.admin-mgr-panel-title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary, #64748b);
}

.admin-mgr-snapshot-host {
  margin-bottom: 20px;
}

.admin-mgr-snapshot-intro {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.45;
}

.admin-mgr-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 12px;
}

.admin-mgr-snapshot-grid--dense {
  margin-top: 4px;
}

.admin-mgr-stat {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 72px;
  box-sizing: border-box;
}

.admin-mgr-stat--wide {
  grid-column: 1 / -1;
}

.admin-mgr-stat__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted, #64748b);
  margin-bottom: 6px;
}

.admin-mgr-stat__val {
  font-size: 14px;
  line-height: 1.35;
  color: var(--text-primary, #0f172a);
  word-break: break-word;
}


.admin-email-val {
  font-family: var(--font, "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-variant-numeric: normal;
  letter-spacing: normal;
  text-transform: none;
  font-size: 14px;
}

.admin-webusers-table td.admin-email-val,
.admin-global-tx-email-cell .admin-finance-ledger-user-link {
  font-family: var(--font, "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  text-transform: none;
}

.admin-mgr-stat__url {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  word-break: break-all;
}

body.admin-desktop-app .client-admin .admin-mgr-settings-kv {
  margin-top: 4px;
}


#adminManagersPane .admin-mgr-settings-kv .kv-row > select.client-inline-input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  flex: 1 1 auto;
  padding: 8px 2.5rem 8px 10px;
  border-radius: 10px;
  appearance: auto;
}

#adminManagersPane .admin-mgr-mode-cell {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
  max-width: 100%;
}

#adminManagersPane .admin-mgr-mode-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.1);
  gap: 2px;
  flex-shrink: 0;
}

#adminManagersPane .admin-mgr-mode-switch__btn {
  border: none;
  background: transparent;
  color: var(--text-secondary, #64748b);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

#adminManagersPane .admin-mgr-mode-switch__btn:hover {
  color: var(--text-primary, #0f172a);
  background: rgba(255, 255, 255, 0.55);
}

#adminManagersPane .admin-mgr-mode-switch__btn--active {
  background: linear-gradient(180deg, #fff 0%, #eef2ff 100%);
  color: #4338ca;
  box-shadow: 0 1px 3px rgba(79, 70, 229, 0.2);
}


#adminManagersPane .admin-mgr-mode-sync-select {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.admin-mgr-detail-lede {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.45;
}

#adminManagersPane .admin-mgr-cell-clip {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#adminManagersPane .admin-mgr-referred-row {
  cursor: pointer;
}

#adminManagersPane .admin-mgr-referred-row:hover td {
  background: rgba(99, 102, 241, 0.06);
}

#adminManagersPane .admin-mgr-link-client-btn {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.1);
  color: #4338ca;
  cursor: pointer;
}

#adminManagersPane .admin-mgr-link-client-btn:hover {
  background: rgba(99, 102, 241, 0.2);
}

#adminManagersPane .admin-mgr-ref-url-cell a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
}

.admin-mgr-autosave-hint {
  margin: -2px 0 14px;
  font-size: 12px;
  line-height: 1.45;
  max-width: 52rem;
}

.admin-mgr-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  margin-bottom: 4px;
}

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

.admin-mgr-autosave-status {
  font-size: 12px;
  font-weight: 600;
  min-height: 18px;
}


#adminManagersPane .admin-action-btn {
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: var(--text-primary, #1e293b);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: border-color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}

#adminManagersPane .admin-action-btn:hover {
  border-color: rgba(99, 102, 241, 0.45);
  background: #fff;
}

#adminManagersPane .admin-action-btn--danger {
  border-color: rgba(220, 38, 38, 0.25);
  color: #b91c1c;
}

#adminManagersPane .admin-action-btn--danger:hover {
  border-color: rgba(220, 38, 38, 0.55);
  background: #fef2f2;
}

.admin-mgr-payout-empty {
  padding: 22px 16px;
  text-align: center;
  font-size: 13px;
  border: 1px dashed rgba(148, 163, 184, 0.45);
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.6);
}


.admin-export-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.admin-export-modal.hidden {
  display: none;
}

.admin-export-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.admin-export-modal__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  border-radius: 14px;
  padding: 20px 22px 16px;
  background: var(--admin-surface, #fff);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.admin-export-modal__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.admin-export-modal__hint {
  margin: 0 0 16px;
  line-height: 1.45;
}

.admin-export-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.admin-export-modal__footer {
  display: flex;
  justify-content: flex-end;
}

/* AF-477: sub-accounts + revenue tables */
.admin-data-table-hint {
  margin: 0 0 12px;
  line-height: 1.45;
}

.admin-data-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.admin-data-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-data-table th,
.admin-data-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.admin-data-table thead th {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted, #64748b);
  background: rgba(248, 250, 252, 0.92);
  white-space: nowrap;
}

.admin-data-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-data-table tbody tr:hover {
  background: rgba(99, 102, 241, 0.04);
}

.admin-data-table__empty-row td {
  padding: 18px 14px;
  color: var(--muted, #64748b);
  text-align: center;
  font-size: 13px;
}

.admin-data-table__empty {
  color: var(--muted, #64748b);
  font-size: 12px;
}

.admin-data-table__empty--pill {
  font-style: italic;
}

.admin-data-table-msg {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.45;
}

.admin-data-table-msg--warn {
  color: #b45309;
}

.admin-cur-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.admin-cur-badge--usd {
  color: #1d4ed8;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.18);
}

.admin-cur-badge--eur {
  color: #6d28d9;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.18);
}

.admin-id-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}

.admin-id-chip__text {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.06);
  word-break: break-all;
}

.admin-id-chip__copy {
  flex-shrink: 0;
  padding: 4px 8px;
  font-size: 11px;
}

.admin-money-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary, #0f172a);
  white-space: nowrap;
}

.admin-money-val--muted {
  color: var(--muted, #64748b);
  font-weight: 500;
}

.admin-money-val--warn {
  color: #b45309;
}

.admin-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #1e40af;
  background: rgba(59, 130, 246, 0.12);
}

.admin-count-badge--zero {
  color: var(--muted, #64748b);
  background: rgba(15, 23, 42, 0.05);
  font-weight: 600;
}

.admin-subaccounts-row--sync-warn {
  background: rgba(245, 158, 11, 0.06);
}

.admin-subaccounts-row--sync-warn:hover {
  background: rgba(245, 158, 11, 0.1);
}

.admin-product-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary, #0f172a);
}

.admin-product-meta {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.35;
}

.admin-data-table__time-cell {
  font-size: 12px;
  color: var(--muted, #64748b);
  white-space: nowrap;
}

.admin-revenue-row--legacy {
  background: rgba(148, 163, 184, 0.08);
}

.admin-revenue-row--idle td {
  opacity: 0.72;
}

.admin-revenue-totals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.admin-revenue-stat {
  border-radius: 14px;
  padding: 14px 16px;
  min-height: 78px;
  box-sizing: border-box;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.admin-revenue-stat--eur {
  border-left: 3px solid #8b5cf6;
}

.admin-revenue-stat--usd {
  border-left: 3px solid #3b82f6;
}

.admin-revenue-stat__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted, #64748b);
  margin-bottom: 8px;
}

.admin-revenue-stat__val {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary, #0f172a);
}
