/* Django admin widgets mapped to the Gentelella v4 design tokens. */
@view-transition { navigation: none; }
html:root, html[data-theme="light"], html[data-theme="dark"] {
  --primary: #268477; --primary-dk: #268477;
  --body-fg: var(--text); --body-bg: #f5f7fb; --body-quiet-color: var(--text-secondary);
  --body-loud-color: var(--text); --header-color: var(--text); --header-branding-color: var(--text);
  --link-fg: #268477; --link-hover-color: var(--primary-dk); --link-selected-fg: var(--primary-dk);
  --hairline-color: var(--border-color-light); --border-color: #e6e7eb;
  --darkened-bg: var(--bg-surface-secondary); --selected-bg: var(--primary-lt);
  --selected-row: var(--primary-lt); --button-bg: var(--primary-dk); --button-hover-bg: #268477;
  --default-button-bg: var(--primary-dk); --default-button-hover-bg: #268477;
  --close-button-bg: var(--text-secondary); --close-button-hover-bg: var(--text);
  --object-tools-bg: var(--primary-dk); --object-tools-hover-bg: #268477;
  --breadcrumbs-bg: transparent; --breadcrumbs-fg: var(--text-secondary); --breadcrumbs-link-fg: var(--link-fg);
}
html[data-theme="dark"] { --body-bg: #0f1623; --border-color: #303b4b; --link-fg: #268477; color-scheme: dark; }
html[data-theme="light"] { color-scheme: light; }
html[data-theme="dark"] .odinex table th, html[data-theme="dark"] .odinex table th a, html[data-theme="dark"] .odinex table th b, html[data-theme="dark"] .odinex table th strong,
html[data-theme="dark"] .odinex table td, html[data-theme="dark"] .odinex table td a, html[data-theme="dark"] .odinex table td b, html[data-theme="dark"] .odinex table td strong { color: var(--text-secondary) !important; }
* { box-sizing: border-box; }
body.odinex { display: block; margin: 0; background: var(--body-bg); color: var(--text); font: 14px/1.6 var(--font); }
.odinex #container { display: block; width: 100%; min-width: 0; }
.odinex #container > .main { display: block; min-width: 0; width: auto; }
.odinex #content { padding: 0; width: auto; min-width: 0; margin: 0; }
.odinex #content-main { float: none; width: 100%; }
.odinex h1, .odinex h2, .odinex h3 { color: var(--text); }
.odinex .page-title { font-size: 28px; font-weight: 650; margin: 5px 0 20px; letter-spacing: -.8px; }
.odinex .page-pretitle { color: var(--text-muted); letter-spacing: 1.4px; }
.page-description { margin-top: -10px; margin-bottom: 26px; color: var(--text-secondary); }
.odinex .sidebar a { color: var(--sidebar-text); }
.odinex .sidebar a.active, .odinex .sidebar a:hover { color: var(--sidebar-text-active); }
.odinex .sidebar-brand { text-decoration: none; height: 72px; }
.odinex .nav-icon { width: 18px; height: 18px; flex: 0 0 18px; margin-right: 10px; vertical-align: -3px; }
.odinex .nav-link { display: flex; align-items: center; }
.odinex .sidebar-nav .nav-section-label { display: none; }
.odinex .nav-link { margin: 3px 10px; border-radius: 6px; }
.odinex .sidebar-footer { padding: 0 0 16px; text-align: center;font-size: 11px;color: gray;}
@media (min-width: 769px) {
  .odinex.sidebar-rail .nav-section-label { display: none; }
  .odinex.sidebar-rail .sidebar-nav { overflow-x: hidden; }
  .odinex.sidebar-rail .nav-link[data-rail-label]::after { content: none; }
  .odinex.sidebar-rail .nav-link .nav-icon { margin-inline-end: 0; }
  .odinex.sidebar-rail .nav-link .nav-badge:not([hidden]) {
    position: absolute;
    inset-block-start: 0;
    inset-inline-end: 0;
    padding-inline: 4px;
    min-width: 16px;
    height: 16px;
    font-size: 9px;
  }
}
.odinex .topbar { height: 72px; }
.odinex .main { padding-top: 72px; }
.odinex .page-wrapper { padding: 15px 15px 0 15px;}
.odinex .topbar-right { gap: 12px; }
.odinex .topbar form { margin: 0; }
.odinex .operator-name { color: var(--text-secondary); }
.odinex .breadcrumbs { background: none; padding: 0 0 22px; color: var(--text-muted); font-size: 12px; }
.odinex .breadcrumbs a { color: var(--text-secondary); }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-bottom: 26px; }
.odinex .metric-card { padding: 24px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; border-top: 3px solid var(--primary); }
.metric-card .stat-value { color: var(--text); font-size: 34px; letter-spacing: -1px; }
.metric-caption { font-size: 11px; color: var(--text-muted); }
.overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: 24px; }
.odinex .card { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }
.odinex .card-header { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--border-color); }
.odinex .card-header h2 { font-size: 15px; margin: 0; font-weight: 600; }
.odinex .card-header a { font-size: 12px; }
.table-scroll { overflow-x: auto; }
.odinex table { width: 100%; border-color: var(--border-color); background: var(--bg-surface); }
.odinex td, .odinex th { padding: 13px 16px; border-color: var(--border-color-light); vertical-align: middle; color: var(--text); text-align: center !important; }
.odinex thead th { background: var(--bg-surface-secondary); color: var(--text-secondary); font-weight: 500; }
.odinex tr:nth-child(odd), .odinex tr:nth-child(even) { background: var(--bg-surface); }
.odinex table th, .odinex table th a, .odinex table th b, .odinex table th strong, .odinex table td, .odinex table td a, .odinex table td b, .odinex table td strong { font-weight: normal !important; color: dimgrey !important; }
.status-pill { display: inline-flex; border-radius: 20px; padding: 2px 10px; color: var(--text-muted); background: var(--bg-surface-secondary); font-size: 11px; }
.status-pill.is-active { background: var(--primary-lt); color: var(--link-fg); }
.odinex .member-adjustment-progress-status { display: inline-grid; grid-template-columns: minmax(72px, 1fr) auto; gap: 8px; align-items: center; min-width: 132px; }
.odinex .member-adjustment-progress { display: block; height: 7px; overflow: hidden; border-radius: 999px; background: var(--border-color-light); }
.odinex .member-adjustment-progress > i { display: block; height: 100%; border-radius: inherit; background: var(--primary); transition: width .2s ease; }
.odinex .member-adjustment-progress-status.is-pending .member-adjustment-progress > i { background: var(--text-muted); }
.odinex .member-adjustment-progress-status.is-complete .member-adjustment-progress > i { background: var(--green); }
.odinex .member-adjustment-progress-value { color: var(--text-secondary); font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.odinex .member-adjustment-progress-label { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 9px; border-radius: 999px; background: var(--bg-surface-secondary); color: var(--text-muted); font-size: 11px; }
.odinex .member-adjustment-progress-label.is-revoked { background: var(--red-lt); color: var(--red); }
.odinex .empty-state { text-align: center; color: var(--text-muted); padding: 46px 16px; }
.activity-list { list-style: none; margin: 0; padding: 12px 22px; }
.activity-list li { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--border-color-light); }
.activity-dot { width: 7px; height: 7px; background: var(--primary); border-radius: 50%; margin-top: 8px; flex-shrink: 0; }
.activity-list small { display: block; color: var(--text-muted); font-size: 11px; margin-top: 4px; }
.odinex .module { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 8px; margin-bottom: 22px; }
.odinex .module h2, .odinex .module caption { background: var(--bg-surface-secondary); color: var(--text); padding: 0 5px; }
.odinex .module caption a { color: var(--text); }
.odinex .management-card .module { margin: 0; border: 0; border-radius: 0; }
.odinex .management-card caption { text-align: left; font-size: 12px; }
.odinex .management-card td { white-space: nowrap; }
/* 회원조정 등록/수정 폼: "회원조정 대상"과 "목표 조정값" 두 fieldset을 한 행에
   나란히 배치하고, "해제"와 "감사 기록"은 그 아래 전체 너비로 배치한다. */
.odinex #memberadjustment_form > div { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.odinex #memberadjustment_form .module { margin-bottom: 0; }
.odinex #memberadjustment_form > div > fieldset:nth-of-type(1) { grid-column: 1; grid-row: 1; }
.odinex #memberadjustment_form > div > fieldset:nth-of-type(2) { grid-column: 2; grid-row: 1; }
.odinex #memberadjustment_form > div > fieldset:nth-of-type(3),
.odinex #memberadjustment_form > div > fieldset:nth-of-type(4) { grid-column: 1 / -1; }
@media (max-width: 900px) {
  .odinex #memberadjustment_form > div { grid-template-columns: 1fr; }
  .odinex #memberadjustment_form > div > fieldset { grid-column: 1; grid-row: auto; }
}
/* 회원조정 추가: 전체 화면 팝업(모달). 하나의 form(#memberadjustment_form) 안에
   모든 입력을 두고, 라벨을 입력 위에 둔 2열 레이아웃으로 표시한다. */
.odinex.member-adjustment-modal-page { overflow: hidden; }
.odinex.member-adjustment-modal-page .breadcrumbs,
.odinex.member-adjustment-modal-page .footer { display: none; }
.odinex .ma-modal-backdrop {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(15, 23, 42, .55);
}
.odinex .ma-modal {
  display: flex; flex-direction: column; width: min(1040px, 100%); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px);
  background: var(--bg-surface, #fff); color: var(--text, #1f2937);
  border: 1px solid var(--border-color); border-radius: 12px; box-shadow: 0 24px 64px rgba(15, 23, 42, .35);
  overflow: hidden;
}
.odinex .ma-modal-header {
  position: relative; display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
  padding: 16px 24px; border-bottom: 2px solid #f0b90b;
}
.odinex .ma-modal-header h1 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: .02em; }
.odinex .ma-modal-close { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); }
/* 본문(입력 영역)만 스크롤하고, 취소/지금 적용 버튼 줄은 항상 모달 하단에 고정해 내용이 잘리지 않게 한다. */
.odinex .ma-modal-body { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow: hidden; padding: 4px 24px 0; }
.odinex .ma-modal-body #content-main { float: none; display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; width: auto; margin: 0; }
.odinex .ma-modal #memberadjustment_form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; margin: 0; }
.odinex .ma-modal #memberadjustment_form > div { display: block; flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-bottom: 12px; }
.odinex .ma-modal #memberadjustment_form .errornote { flex: 0 0 auto; }
.odinex .ma-modal #memberadjustment_form .errorlist { margin: 0 0 6px; padding: 6px 10px; list-style: none; }
.odinex .ma-modal #memberadjustment_form .module {
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; align-items: start;
  margin: 0; padding: 8px 0; border: 0; border-bottom: 1px solid var(--border-color-light); border-radius: 0;
  background: transparent; box-shadow: none;
}
.odinex .ma-modal #memberadjustment_form .module > h2,
.odinex .ma-modal #memberadjustment_form .module > .description { grid-column: 1 / -1; }
.odinex .ma-modal #memberadjustment_form .module > h2 {
  margin: 0 0 4px; padding: 0; border: 0; background: transparent; font-size: 14px; font-weight: 700;
}
.odinex .ma-modal #memberadjustment_form .module > .description { margin: 0 0 6px; color: var(--text-secondary); font-size: 12px; }
.odinex .ma-modal #memberadjustment_form .form-row { margin: 0; padding: 10px 0; border: 0; min-width: 0; }
.odinex .ma-modal #memberadjustment_form .form-row[hidden] { display: none; }
.odinex .ma-modal #memberadjustment_form .field-adjustment_ends_at,
.odinex .ma-modal #memberadjustment_form .field-recovery_ends_at,
.odinex .ma-modal #memberadjustment_form .field-target_multiplier { display: none; }
.odinex .ma-modal #memberadjustment_form .form-row .flex-container { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.odinex .ma-modal #memberadjustment_form .form-row label { width: auto; margin: 0; padding: 0; font-size: 12px; color: var(--text-secondary); }
.odinex .ma-modal #memberadjustment_form .form-row input:not([type=checkbox]):not([type=radio]),
.odinex .ma-modal #memberadjustment_form .form-row select { width: 100%; max-width: none; box-sizing: border-box; min-height: 40px; }
/* 시작 시각: 하나의 입력창(날짜+시각) 옆에 오늘/현재 바로가기를 둔다. */
.odinex .ma-modal #memberadjustment_form .field-starts_at { grid-column: 1 / -1; }
.odinex .ma-modal #memberadjustment_form .ma-datetime { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; }
.odinex .ma-modal #memberadjustment_form .ma-datetime input:not([type=checkbox]):not([type=radio]) { width: 220px; flex: 0 0 auto; }
.odinex .ma-datetime-shortcut { font-size: 12px; white-space: nowrap; }
.odinex .ma-datetime-shortcut + .ma-datetime-shortcut { padding-left: 16px; border-left: 1px solid var(--border-color-light); }
.odinex .ma-modal #memberadjustment_form .related-widget-wrapper { display: block; width: 100%; }
.odinex .ma-modal #memberadjustment_form .related-widget-wrapper-link { display: none; }
.odinex .ma-modal #memberadjustment_form .select2-container { width: 100% !important; }
.odinex .ma-modal #memberadjustment_form .help { margin: 4px 0 0; padding: 0; font-size: 12px; color: var(--text-secondary); }
.odinex .ma-modal #memberadjustment_form .submit-row {
  flex: 0 0 auto; display: flex; justify-content: flex-end; align-items: center; gap: 10px;
  margin: 0 -24px; padding: 14px 24px; border: 0; border-top: 1px solid var(--border-color-light);
  background: var(--bg-surface, #fff);
}
.odinex .ma-modal #memberadjustment_form .submit-row .default { float: none; margin: 0; min-width: 120px; min-height: 40px; }
.odinex .ma-modal .errornote { margin: 12px 0 0; }
@media (max-width: 720px) {
  .odinex .ma-modal-backdrop { padding: 0; }
  .odinex .ma-modal { border-radius: 0; height: 100%; }
  .odinex .ma-modal #memberadjustment_form .module { grid-template-columns: 1fr; }
}
.odinex .object-tools { margin-top: -50px; }
.odinex .object-tools a { padding: 9px 16px; border-radius: 6px; color: white; }
.odinex #changelist { display: flex; gap: 22px; background: transparent; border: 0; align-items: flex-start; }
.odinex #changelist .changelist-form-container { min-width: 0; flex: 1; }
.odinex #changelist #toolbar { border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-surface); padding: 14px; margin-bottom: 16px; }
.odinex #changelist .results { border: 1px solid var(--border-color); border-radius: 8px; overflow-x: auto; }
.odinex #changelist .actions { padding: 12px 0; background: transparent; color: var(--text-secondary); }
.odinex #changelist-filter { position: static; flex: 0 0 220px; width: 220px; margin: 0; background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 8px; }
.odinex #changelist-filter h2 { background: var(--bg-surface-secondary); color: var(--text); padding: 14px; }
.odinex #changelist-filter h3 { font-size: 13px; }
.odinex #changelist-filter a { color: var(--text-secondary); }
.odinex #changelist-filter li.selected a { color: var(--link-fg); }
.odinex .paginator { padding: 16px; background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 8px; margin-top: 14px; color: var(--text-secondary); }
.odinex input, .odinex textarea, .odinex select { font-family: inherit; }
.odinex input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=hidden]), .odinex textarea, .odinex select { border: 1px solid var(--border-color); border-radius: 6px; padding: 9px 12px; background: var(--bg-surface); color: var(--text); max-width: 100%; }
.odinex input:focus, .odinex textarea:focus, .odinex select:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
/* Inline formsets use <tr class="form-row">. The theme's generic form-row
   grid must never override their native table layout. */
.odinex .form-row:not(tr) { display: block; padding: 17px 20px; border-color: var(--border-color-light); }
.odinex .inline-group .tabular tr.form-row { display: table-row; }
.odinex .inline-group .tabular tr.form-row > td { display: table-cell; }
/* The bank-account inline already exposes every editable value in columns. */
.odinex #bank_accounts-group .tabular td.original p { display: none; }
.odinex #bank_accounts-group .tabular tr.has_original > td { padding-top: 13px; }
.odinex select:not([multiple]) { height: auto; min-height: 38px; }
.odinex .form-row label { color: var(--text-secondary); }
.odinex .help, .odinex p.help { color: var(--text-muted); }
.odinex .submit-row { background: var(--bg-surface); padding: 18px; border: 1px solid var(--border-color); border-radius: 8px; }
.odinex .button, .odinex input[type=submit], .odinex input[type=button], .odinex .submit-row input { background: var(--primary-dk); color: white; border: 0; border-radius: 6px; padding: 10px 16px; height: auto; }
.odinex .deletelink, .odinex .submit-row a.deletelink { background-color: var(--red); color: white; border-radius: 6px; }
.odinex ul.messagelist { margin: 0 0 20px; padding: 0; }
.odinex ul.messagelist li { border-radius: 6px; border: 1px solid var(--border-color); background-color: var(--bg-surface); color: var(--text); }
.odinex .errornote, .odinex .errorlist { color: var(--red); background: var(--red-lt); border-color: var(--red); }
.odinex .selector { max-width: 100%; }
.odinex .selector h2 { color: var(--text); }
.odinex .footer { display: flex; justify-content: space-between; gap: 12px; margin: 0 32px; }
.odinex .auth-brand { padding: 32px 5vw; }
.odinex .auth-brand a { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: 2px; color: var(--text); }
.odinex .auth-brand small { color: var(--text-muted); font-size: 10px; font-weight: 400; }
.odinex.auth-page .main, .odinex.popup .main { margin: 0; padding-top: 0; }
body.odinex.login { margin: 0; padding: 0; background: #fff; }
.odinex.login #container { margin: 0; padding: 0; border: 0; background: transparent; max-width: none; width: 100%; }
.odinex.login #container > .main {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  margin: 0;
  padding: 0;
  background: #fff;
  color: #29263a;
  color-scheme: light;
}
.odinex.login .page-wrapper {
  flex: 1;
  width: 100%;
  max-width: none;
  padding: 0;
}
.odinex.login #content { min-width: 0; padding: 0; }
.login-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  min-height: calc(100svh - 52px);
  padding-block: clamp(24px, 5vh, 56px);
}
.login-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.login-illustration, .odinex .login-card { position: relative; }
.login-illustration { display: grid; justify-items: center; }
.login-illustration img { display: block; width: min(80%, 62svh, 40rem); height: auto; }
.login-brand { display: flex; align-items: center; justify-content: center; gap: var(--space-xs); margin-bottom: var(--space-xs); color: #5850ac; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; }
.odinex .login-card {
  min-width: 0;
  width: min(calc(100% - 48px), clamp(18rem, 54%, 30rem));
  justify-self: center;
}
.odinex .login-card h1 {
  margin: 0 0 var(--space-xl);
  color: #29263a;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.045em;
  text-align: center;
}
.odinex.login #login-form { display: grid; gap: var(--space-md); }
.odinex.login #login-form .form-row { width: 100%; margin: 0; padding: 0; border: 0; }
.odinex.login #login-form label { display: block; margin: 0 0 var(--space-xs); padding: 0; color: #363247; }
.odinex.login #login-form :is(input[type="text"], input[type="password"]) {
  width: 100%;
  min-height: 48px;
  padding: 0 var(--space-sm);
  border: 1px solid #a8a3b8;
  border-radius: 12px;
  background: #fff;
  color: #29263a;
}
.odinex.login #login-form :is(input, button):focus-visible { outline-color: #6c61cc; }
.odinex.login .login-card .errornote { background: #fff1f2; color: #9c243d; border-color: #efb6c2; }
.odinex.login .login-submit {
  justify-content: center;
  width: 100%;
  min-height: 50px;
  margin-top: var(--space-xs);
  border-color: transparent;
  border-radius: 12px;
  background: #6459c7;
  color: white;
  font-size: 1rem;
  font-weight: 700;
}
.odinex.login .login-submit:hover { background: #564ab7; }
.odinex.login .login-submit:active { background: #493e9f; }
.odinex.login .footer {
  position: relative;
  justify-content: center;
  margin: 0;
  border: 0;
  color: #635d76;
}
.odinex.logout #container { display: flex; flex-direction: column; min-height: 100vh; }
.odinex.logout #container > .main { display: flex; flex: 1; flex-direction: column; padding-top: 0; }
.odinex.logout .page-wrapper { display: flex; flex: 1; align-items: center; justify-content: center; padding: 45px 18px; }
.odinex.logout #content { width: min(420px, 100%); }
.odinex .logout-card { padding: 40px; text-align: center; }
.odinex .logout-status { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; margin-bottom: 18px; border-radius: 50%; background: var(--primary-lt); color: var(--primary-dk); font-size: 20px; font-weight: var(--font-weight-bold); }
.odinex .logout-card h1 { margin: 8px 0 10px; font-size: 24px; }
.odinex .logout-card p { margin: 0 0 26px; color: var(--text-secondary); }
.odinex .logout-login-link { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 0 20px; text-decoration: none; }
@media (max-width: 1100px) { .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .overview-grid { grid-template-columns: 1fr; } .operator-name { display: none; } }
@media (max-width: 768px) {
  .odinex .main { margin-inline-start: 0; }
  .odinex .page-wrapper { padding: 20px 14px; }
  .odinex .topbar-right { gap: 5px; }
  .workspace-label { display: none; }
  .odinex .topbar-right .btn { font-size: 11px; padding: 8px; }
  .odinex #changelist { flex-direction: column; }
  .odinex #changelist .changelist-form-container, .odinex #changelist-filter { width: 100%; flex: auto; }
  .odinex .object-tools { float: none; margin: 0 0 20px; display: flex; justify-content: flex-end; }
  .metric-grid { gap: 12px; }
  .odinex .metric-card { padding: 18px; }
  .login-layout { grid-template-columns: minmax(0, 1fr); align-content: center; gap: var(--space-lg); padding: var(--space-lg); }
  .login-illustration img { width: clamp(128px, 36vw, 224px); }
  .odinex .login-card { width: min(100%, 25rem); }
  .odinex .login-card h1 { margin-bottom: var(--space-lg); }
  .odinex .footer { margin: 0 14px; flex-wrap: wrap; }
}

/* Gentelella v4 data-table treatment for every stock Django changelist. */
.odinex.change-list #content-main { min-width: 0; }
.odinex.change-list .object-tools {
  float: none;
  display: flex;
  justify-content: flex-end;
  margin: -54px 0 22px;
  padding: 0;
}
.odinex.change-list .object-tools:not(:has(li)) { display: none; margin: 0; }
.odinex.change-list .object-tools li { margin: 10px; }
.odinex.change-list .object-tools a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  font-size: 12.5px;
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  box-shadow: 0 2px 6px rgb(38, 132, 119 / 20%);
  transition: background .12s, transform .12s;
}
.odinex.change-list .object-tools a:hover { background: var(--primary-dk); transform: translateY(-1px); }
.odinex .management-tabs { display: flex; gap: 8px; margin: -20px 0 22px; border-bottom: 1px solid var(--border-color); }
.odinex .management-tabs a { position: relative; display: inline-flex; align-items: center; padding: 7px 14px 10px; border-bottom: 2px solid transparent; color: var(--text-secondary); font-weight: var(--font-weight-medium); text-decoration: none; }
/* Keep the compact visual tab while extending its pointer target upward. */
.odinex .management-tabs a::before { position: absolute; z-index: 1; top: -22px; right: -10px; bottom: 0; left: -10px; content: ""; }
.odinex .management-tabs a:hover { color: var(--primary-dk); }
.odinex .management-tabs a.active { border-bottom-color: var(--primary); color: var(--primary-dk); font-weight: var(--font-weight-bold); }
.odinex .management-subtabs { display: flex; gap: 4px; margin: -10px 0 18px; padding: 0 0 8px; border-bottom: 1px solid var(--border-color-light); }
.odinex .management-subtabs a { padding: 6px 11px; border-radius: var(--radius-sm); color: var(--text-secondary); font-size: 12px; text-decoration: none; }
.odinex .management-subtabs a:hover { background: var(--bg-surface-secondary); color: var(--text); }
.odinex .management-subtabs a.active { background: var(--primary-lt); color: var(--primary-dk); font-weight: var(--font-weight-bold); }
.odinex .member-profit-table { min-width: 1260px !important; }
.odinex .pm-cell-profit { color: var(--green); }
.odinex .fee-settings-helper { margin: 0 0 16px; color: var(--text-secondary); font-size: 12px; }
.odinex .fee-settings-helper a { color: var(--primary-dk); font-weight: var(--font-weight-bold); }
.odinex .settlement-note { margin: 0 0 14px; padding: 10px 12px; border: 1px solid var(--border-color); border-radius: var(--radius); background: var(--bg-surface-secondary); color: var(--text-secondary); font-size: 12px; }
.odinex .settlement-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 15px; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); background: var(--bg-surface); overflow: hidden; }
.odinex .settlement-summary > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 14px 16px; }
.odinex .settlement-summary > div + div { border-inline-start: 1px solid var(--border-color-light); }
.odinex .settlement-summary span { color: var(--text-muted); font-size: 12px; }
.odinex .settlement-summary strong { overflow: hidden; color: var(--text); font-size: 13px; font-weight: var(--font-weight-normal); font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.odinex .settlement-summary strong { font-size: 30px; }
.odinex .settlement-summary strong span { font-size: 15px; font-weight: var(--font-weight-normal); }
.odinex .settlement-summary .settlement-usdt-value.is-loss,
.odinex .settlement-summary .settlement-usdt-value-i.is-loss { color: #b45468; font-weight: var(--font-weight-normal); }
.odinex .settlement-summary > div > span:not(:first-child) { overflow: hidden; color: var(--text); font-size: 25px; font-weight: var(--font-weight-normal); font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.odinex .settlement-summary > div > span:not(:first-child) > span { color: var(--text-muted); font-size: 11px; font-weight: var(--font-weight-normal); }
.odinex .settlement-summary .settlement-usdt-value.is-profit,
.odinex .settlement-summary .settlement-usdt-value-i.is-profit { color: var(--green) !important; }
.odinex .settlement-summary .settlement-usdt-value span,
.odinex .settlement-summary .settlement-usdt-value-i span { color: var(--text-muted); }
.odinex .settlement-krw-value { color: var(--text-secondary); font-size: 12px; font-variant-numeric: tabular-nums; }
.odinex .settlement-krw-value.is-unavailable { color: var(--text-muted); }
.odinex .settlement-banking-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: -10px 0 24px; border-bottom: 1px solid var(--border-color); background: var(--bg-surface); overflow: hidden; }
.odinex .settlement-banking-summary > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 14px 16px; }
.odinex .settlement-banking-summary > div + div { border-inline-start: 1px solid var(--border-color-light); }
.odinex .settlement-banking-summary span { color: var(--text-muted); font-size: 12px; }
.odinex .settlement-banking-summary > div > span:not(:first-child) { color: var(--text); font-size: 13px; font-weight: var(--font-weight-normal); font-variant-numeric: tabular-nums; }
.odinex .settlement-banking-summary > div > span:not(:first-child) > span { color: var(--text-muted); font-size: 15px; }
.odinex .settlement-banking-summary strong { overflow: hidden; color: var(--text); font-size: 25px; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.odinex .settlement-heading { margin: 22px 0 8px; font-size: 14px; }
.odinex .settlement-results { overflow-x: auto; }
.odinex .settlement-results table { min-width: 880px; }
.odinex .settlement-ledger { margin: 0 0 1px; border: 1px solid var(--border-color); border-radius: var(--radius); background: var(--bg-surface); overflow: hidden; }
.odinex .settlement-ledger-title { margin: 0; font-size: 13px; }
.odinex .settlement-accordion-trigger { display: grid; grid-template-columns: 18px minmax(260px, 1fr) minmax(120px, max-content) minmax(150px, max-content); align-items: center; width: 100%; min-height: 76px; gap: 14px; padding: 10px 14px; border: 0; background: transparent; color: var(--text); font: inherit; font-weight: var(--font-weight-normal); text-align: left; cursor: pointer; }
.odinex .settlement-accordion-trigger:hover { background: var(--bg-surface-secondary); }
.odinex .settlement-accordion-trigger:focus-visible { position: relative; z-index: 1; outline: 2px solid var(--primary); outline-offset: -2px; }
.odinex .settlement-accordion-icon { width: 8px; height: 8px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; color: var(--text-muted); transform: rotate(-45deg); transition: transform 180ms ease; }
.odinex .settlement-accordion.is-open .settlement-accordion-icon { transform: rotate(45deg); }
.odinex .settlement-group-summary { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; column-gap: 8px; min-width: 0; }
.odinex .settlement-group-label, .odinex .settlement-empty { color: var(--text-muted); font-size: 12px; }
.odinex .settlement-group-name { overflow: hidden; font-weight: var(--font-weight-bold); text-overflow: ellipsis; white-space: nowrap; }
.odinex .settlement-group-details { display: flex; grid-column: 1 / -1; flex-wrap: wrap; gap: 3px 0; margin-top: 5px; color: var(--text-muted); font-size: 12px; }
.odinex .settlement-group-details > span { white-space: nowrap; }
.odinex .settlement-group-details > span + span::before { margin: 0 8px; color: var(--border-color); content: "/"; }
.odinex .settlement-group-metric { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-left: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.odinex .settlement-group-metric-label, .odinex .settlement-group-metric small { color: var(--text-muted); font-size: 11px; font-weight: var(--font-weight-normal); }
.odinex .settlement-group-metric strong { color: var(--text); font-size: 15px; font-weight: var(--font-weight-normal); }
.odinex .settlement-group-final-value { color: var(--green) !important; }
.odinex .settlement-group-assets-value { color: var(--blue) !important; }
.odinex .settlement-group-metric .is-unavailable { color: var(--text-muted); font-size: 12px; font-weight: var(--font-weight-normal); }
.odinex .settlement-accordion-panel { height: 0; border-top: 1px solid var(--border-color-light); overflow: hidden; transition: height 220ms ease; }
.odinex .settlement-accordion-content { padding: 12px 14px 0; }
.odinex .settlement-hierarchy-guide { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 0; color: var(--text-secondary); font-size: 12px; }
.odinex .settlement-hierarchy-guide strong { color: var(--text); }
.odinex .settlement-hierarchy-guide i { color: var(--text-muted); font-style: normal; }
.odinex .settlement-empty { padding: 24px; border: 1px solid var(--border-color); border-radius: var(--radius); background: var(--bg-surface); text-align: center; }
.odinex .pm-ledger-table { border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
.odinex .pm-ledger-table th, .odinex .pm-ledger-table td { vertical-align: middle; white-space: nowrap; }
.odinex .pm-ledger-table th:first-child, .odinex .pm-ledger-table td:first-child { min-width: 185px; white-space: normal; }
.odinex .pm-ledger-table tfoot th, .odinex .pm-ledger-table tfoot td { border-top: 2px solid var(--border-color); background: var(--bg-surface-secondary); font-weight: var(--font-weight-bold); }
.odinex .pm-ledger-name { position: relative; display: flex; align-items: center; min-height: 34px; padding-left: calc(var(--depth) * 22px); }
.odinex .pm-ledger-corner { position: absolute; left: calc((var(--depth) - 1) * 22px + 4px); top: 0; width: 13px; height: 50%; border-bottom: 1px solid var(--border-color); border-left: 1px solid var(--border-color); }
.odinex .pm-ledger-name[data-depth] > div { min-width: 0; }
.odinex .pm-name { color: var(--text); font-weight: var(--font-weight-bold); text-decoration: none; }
.odinex .pm-name:hover { color: var(--primary-dk); text-decoration: underline; }
.odinex .pm-ledger-name small { display: block; margin-top: 2px; color: var(--text-muted); font-size: 11px; }
.odinex .pm-rate-display { min-width: 105px; }
.odinex .pm-rate-display b { display: block; font-size: 12px; }
.odinex .pm-nominal-track { display: block; height: 5px; margin: 5px 0 3px; border-radius: 999px; background: var(--border-color-light); overflow: hidden; }
.odinex .pm-nominal-track i { display: block; height: 100%; border-radius: inherit; background: var(--primary); }
.odinex .pm-rate-values, .odinex .pm-krw, .odinex .pm-usdt, .odinex .pm-krw-converted { display: block; margin-top: 2px; color: var(--text-muted); font-size: 10px; font-weight: var(--font-weight-regular); }
.odinex .pm-krw-converted { color: var(--text-secondary); }
.odinex .pm-cell-members { text-align: center; }
.odinex .pm-cell-deposits, .odinex .pm-cell-losses, .odinex .pm-cell-net, .odinex .pm-cell-direct, .odinex .pm-cell-downline, .odinex .pm-cell-earned { text-align: right; }
.odinex .pm-cell-earned { color: var(--primary-dk); font-weight: var(--font-weight-bold); }
.odinex .pm-ledger-table .is-negative { color: #b45468; }
@media (max-width: 900px) { .odinex .settlement-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }.odinex .settlement-summary > div:nth-child(odd) { border-inline-start: 0; }.odinex .settlement-summary > div:nth-child(n + 3) { border-top: 1px solid var(--border-color-light); } }
@media (max-width: 480px) { .odinex .settlement-summary, .odinex .settlement-banking-summary { grid-template-columns: 1fr; }.odinex .settlement-summary > div + div, .odinex .settlement-banking-summary > div + div { border-top: 1px solid var(--border-color-light); border-inline-start: 0; } }
@media (max-width: 640px) {
  .odinex .management-tabs { gap: 0; flex-wrap: wrap; }
  .odinex .management-tabs a { padding-inline: 12px; }
  .odinex .settlement-accordion-trigger { grid-template-columns: 18px minmax(0, 1fr); gap: 10px; }
  .odinex .settlement-group-metric { grid-column: 2; padding-top: 8px; padding-left: 0; border-top: 1px solid var(--border-color-light); border-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .odinex .settlement-accordion-icon, .odinex .settlement-accordion-panel { transition: none; } }
/* Group profit tabs: underline style shared by the 정산/회원손익/입출금/회원·자산 pages. */
.odinex .management-subtabs { gap: 20px; margin: -6px 0 22px; padding: 0; border-bottom: 1px solid var(--border-color-light); }
.odinex .management-subtabs a { position: relative; margin-bottom: -1px; padding: 10px 2px; border-bottom: 2px solid transparent; border-radius: 0; font-weight: var(--font-weight-medium); }
.odinex .management-subtabs a:hover { background: transparent; color: var(--primary-dk); }
.odinex .management-subtabs a.active { border-bottom-color: var(--primary); background: transparent; color: var(--primary-dk); }
/* Settlement page: filter bar, total head, summary columns and distribution bar. */
.odinex .settlement-filter { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin: 0 0 24px; }
.odinex .settlement-filter label { display: flex; flex: 0 1 200px; flex-direction: column; gap: var(--space-2xs); min-width: 0; margin: 0; }
.odinex .settlement-filter label > span { color: var(--text-secondary); font-size: 12px; font-weight: var(--font-weight-medium); }
.odinex .settlement-filter input[type="date"], .odinex .settlement-filter select { width: 100%; min-width: 0; height: 38px; padding: 0 12px; border: 1px solid var(--border-color); border-radius: var(--radius); background-color: var(--bg-surface); color: var(--text); font-size: 13px; }
.odinex .settlement-filter button, .odinex .settlement-filter a { display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 16px; border: 1px solid var(--border-color); border-radius: var(--radius); background: var(--bg-surface); color: var(--text-secondary); font: inherit; font-size: 12px; font-weight: var(--font-weight-medium); text-decoration: none; cursor: pointer; }
.odinex .settlement-filter button:hover, .odinex .settlement-filter a:hover { background: var(--bg-surface-secondary); color: var(--text); }
.odinex .settlement-total-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.odinex .settlement-total-head .settlement-heading { margin: 0; font-size: 15px; font-weight: var(--font-weight-bold); }
.odinex .settlement-total-range { color: var(--text-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.odinex .settlement-total-range small { margin-left: 10px; font-size: 11px; }
.odinex .settlement-summary { margin: 0 0 22px; border: 0; }
.odinex .settlement-summary > div { gap: 6px; padding: 4px 24px; }
.odinex .settlement-summary > div:first-child { padding-left: 24px; }
.odinex .settlement-summary > div > span:first-child { color: var(--text-secondary); font-size: 12px; }
.odinex .settlement-summary > div > span:not(:first-child) { font-size: 28px; font-weight: var(--font-weight-medium); line-height: 1.2; }
.odinex .settlement-summary > div > span:not(:first-child) > span { display: block; margin-top: 6px; font-size: 11px; line-height: 1; }
.odinex .settlement-summary .settlement-krw-value { font-size: 11px; color: var(--text-muted); }
.odinex .settlement-summary-quad { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 0; padding-bottom: 18px; border-bottom: 1px solid var(--border-color-light); }
.odinex .member-profit-chart { padding: 14px 0 6px; }
.odinex .member-profit-chart-canvas:has(.settlement-empty) + .member-profit-chart-legend { display: none; }
.odinex .member-profit-chart-canvas svg { display: block; max-width: 100%; overflow: visible; font-variant-numeric: tabular-nums; }
.odinex .member-profit-chart-canvas .grid { stroke: var(--border-color-light); stroke-dasharray: 3 3; }
.odinex .member-profit-chart-canvas .axis { fill: var(--text-muted); font-size: 10px; }
.odinex .member-profit-chart-canvas .line { fill: none; stroke-width: 2; }
.odinex .member-profit-chart-canvas .line.is-net, .odinex .member-profit-chart-legend .is-net i { stroke: #3f6397; background: #3f6397; }
.odinex .member-profit-chart-canvas .line.is-basis, .odinex .member-profit-chart-legend .is-basis i { stroke: #b45468; background: #b45468; }
.odinex .member-profit-chart-canvas .dot.is-net { fill: #3f6397; }
.odinex .member-profit-chart-canvas .dot.is-basis { fill: #b45468; }
.odinex .member-profit-chart-canvas .tag { fill: var(--bg-surface-secondary); }
.odinex .member-profit-chart-canvas .tag-text { font-size: 10px; }
.odinex .member-profit-chart-canvas .tag-text.is-net { fill: #3f6397; }
.odinex .member-profit-chart-canvas .tag-text.is-basis { fill: #b45468; }
.odinex .member-profit-chart-legend { display: flex; justify-content: center; gap: 16px; margin-top: 6px; color: var(--text-secondary); font-size: 10px; }
.odinex .member-profit-chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.odinex .member-profit-chart-legend i { display: inline-block; width: 16px; height: 2px; }
.odinex .settlement-toolbar { display: flex; justify-content: flex-end; margin: 18px 0 16px; padding-bottom: 14px; border-bottom: 2px solid var(--border-color); }
.odinex .settlement-toggle-all { height: 34px; padding: 0 16px; border: 1px solid var(--border-color); border-radius: var(--radius); background: var(--bg-surface); color: var(--text-secondary); font: inherit; font-size: 12px; font-weight: var(--font-weight-medium); cursor: pointer; }
.odinex .settlement-toggle-all:hover:not(:disabled) { background: var(--bg-surface-secondary); color: var(--text); }
.odinex .settlement-toggle-all:disabled { opacity: .5; cursor: default; }
.odinex .settlement-summary-quint { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 0; padding-bottom: 18px; border-bottom: 1px solid var(--border-color-light); }
.odinex .settlement-note-info { margin: 18px 0 14px; border: 0; border-left: 3px solid var(--primary-dk); border-radius: 0; }
.odinex .settlement-toolbar-count { align-items: center; justify-content: space-between; border-bottom: 0; }
.odinex .settlement-count { color: var(--text-muted); font-size: 11px; }
@media (max-width: 1100px) { .odinex .settlement-summary-quint { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .odinex .settlement-summary-quad { grid-template-columns: repeat(2, minmax(0, 1fr)); } .odinex .settlement-summary-quint { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .odinex .settlement-summary-quad, .odinex .settlement-summary-quint { grid-template-columns: 1fr; } }
.odinex .settlement-banking-summary { margin: 0 0 22px; border-top: 1px solid var(--border-color-light); border-bottom: 1px solid var(--border-color-light); }
.odinex .settlement-banking-summary > div { gap: 3px; padding: 14px 0; padding-left: 24px; }
.odinex .settlement-banking-summary > div + div { padding-left: 24px; border-inline-start: 0; }
.odinex .settlement-banking-summary > div > span:first-child { color: var(--text-secondary); font-size: 11px; }
.odinex .settlement-banking-summary > div > span:not(:first-child) { font-size: 13px; font-weight: var(--font-weight-bold); }
.odinex .settlement-banking-summary > div > span:not(:first-child) > span { margin-left: 4px; font-size: 10px; font-weight: var(--font-weight-normal); }
.odinex .settlement-banking-summary > div > span.is-bank { color: var(--primary-dk); }
.odinex .settlement-banking-summary > div > span.is-coin { color: #7c5cb0; }
.odinex .settlement-banking-summary .settlement-krw-value { font-size: 11px; color: var(--text-muted); }
.odinex .settlement-distribution { margin: 0 0 26px; }
.odinex .settlement-distribution-bar { display: flex; height: 20px; border-radius: var(--radius-sm); background: var(--border-color-light); overflow: hidden; }
.odinex .settlement-distribution-bar i { display: block; height: 100%; }
.odinex .settlement-distribution-bar i.is-staff, .odinex .settlement-distribution-legend .is-staff i { background: #64748b; }
.odinex .settlement-distribution-bar i.is-partner, .odinex .settlement-distribution-legend .is-partner i { background: var(--green); }
.odinex .settlement-distribution-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin-top: 10px; }
.odinex .settlement-distribution-legend > div { display: grid; grid-template-columns: 1fr auto; align-items: baseline; row-gap: 4px; font-variant-numeric: tabular-nums; }
.odinex .settlement-distribution-legend span { display: inline-flex; align-items: center; gap: 6px; color: var(--text-secondary); font-size: 11px; }
.odinex .settlement-distribution-legend span i { display: inline-block; width: 7px; height: 7px; border-radius: 1px; }
.odinex .settlement-distribution-legend em { color: var(--text-secondary); font-size: 11px; font-style: normal; }
.odinex .settlement-distribution-legend strong { color: var(--text); font-size: 16px; font-weight: var(--font-weight-normal); }
.odinex .settlement-distribution-legend small { color: var(--text-muted); font-size: 11px; text-align: right; }
@media (max-width: 640px) { .odinex .settlement-filter label { flex-basis: 100%; } .odinex .settlement-banking-summary > div + div { padding-left: 0; } .odinex .settlement-distribution-legend { grid-template-columns: 1fr; row-gap: var(--space-sm); } }
.odinex #changelist {
  /*display: grid;*/
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: var(--space-4);
  align-items: start;
}
.odinex #changelist .changelist-form-container { min-width: 0; }
.odinex #changelist #toolbar {
  display: flex;
  align-items: center;
  min-height: 58px;
  margin: 0 0 12px;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  box-shadow: var(--shadow);
}
.odinex #toolbar #changelist-search,
.odinex #toolbar #changelist-search > div {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
}
.odinex #toolbar label { display: inline-flex; flex: 0 0 auto; opacity: .55; }
.odinex #toolbar label img { width: 16px; height: 16px; }
.odinex #toolbar #searchbar {
  width: min(100%, 460px);
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: var(--bg-surface-secondary);
  color: var(--text);
}
.odinex #toolbar input[type="submit"] { min-height: 36px; padding: 0 13px; font-size: 12px; }
.odinex #changelist .actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 48px;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid var(--border-color);
  border-bottom: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 12px;
}
.odinex #changelist .actions select { min-height: 32px; padding: 5px 9px; font-size: 12px; }
.odinex #changelist .actions button { min-height: 32px; padding: 5px 10px; font-size: 12px; }
.odinex #changelist .actions .question { margin: 0; }
.odinex #changelist .results {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: var(--bg-surface);
  box-shadow: var(--shadow);
}
.odinex #result_list {
  width: 100%;
  min-width: 720px;
  margin: 0;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
}
.odinex #result_list thead th,
.odinex #result_list thead td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-surface-secondary);
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: var(--font-weight-bold);
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.odinex #result_list thead th a { color: inherit; }
.odinex #result_list tbody th,
.odinex #result_list tbody td {
  height: 54px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color-light);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 12.5px;
  vertical-align: middle;
}
.odinex #result_list tbody th { color: var(--text); font-weight: var(--font-weight-medium); }
.odinex #result_list tbody tr { transition: background .12s ease; }
.odinex #result_list tbody tr:hover th,
.odinex #result_list tbody tr:hover td { background: var(--primary-lt); }
.odinex #result_list tbody tr:last-child th,
.odinex #result_list tbody tr:last-child td { border-bottom: 0; }
.odinex #result_list a { font-weight: var(--font-weight-medium); text-decoration: none; }
.odinex #result_list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.odinex #result_list .action-checkbox { width: 38px; text-align: center; }
.odinex #result_list .column-id, .odinex #result_list .field-id { width: 140px; min-width: 0; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.odinex #result_list input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--primary); }
.odinex .paginator {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 12px 14px;
  margin-top: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 12px;
  box-shadow: var(--shadow);
}
.odinex .paginator a,
.odinex .paginator .this-page { display: inline-grid; min-width: 27px; min-height: 27px; place-items: center; border-radius: var(--radius-sm); text-decoration: none; }
.odinex .paginator a:hover { background: var(--primary-lt); }
.odinex .paginator .this-page { background: var(--primary); color: #fff; font-weight: var(--font-weight-bold); }
.odinex #changelist-filter {
  position: sticky;
  top: 88px;
  width: auto;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  box-shadow: var(--shadow);
}
.odinex #changelist-filter h2 { margin: 0; padding: 13px 14px; border-bottom: 1px solid var(--border-color); background: var(--bg-surface-secondary); color: var(--text); font-size: 12px; font-weight: var(--font-weight-bold); }
.odinex #changelist-filter h3 { margin: 0; padding: 12px 14px 3px; color: var(--text-muted); font-size: 10.5px; font-weight: var(--font-weight-bold); letter-spacing: .04em; text-transform: uppercase; }
.odinex #changelist-filter ul { margin: 0; padding: 4px 8px 10px; }
.odinex #changelist-filter li { margin: 1px 0; }
.odinex #changelist-filter li a { display: block; padding: 6px 7px; border-radius: var(--radius-sm); color: var(--text-secondary); font-size: 12px; text-decoration: none; }
.odinex #changelist-filter li a:hover { background: var(--bg-surface-secondary); color: var(--text); }
.odinex #changelist-filter li.selected a { background: var(--primary-lt); color: var(--primary-dk); font-weight: var(--font-weight-medium); }
.odinex .date-hierarchy { margin: 0 0 12px; padding: 10px 14px; border: 1px solid var(--border-color); border-radius: var(--radius); background: var(--bg-surface); color: var(--text-secondary); }

@media (max-width: 900px) {
  .odinex #changelist { grid-template-columns: 1fr; }
  .odinex #changelist-filter { position: static; order: -1; }
  .odinex #changelist-filter ul { display: flex; gap: 4px; overflow-x: auto; }
  .odinex #changelist-filter li { flex: 0 0 auto; }
}
@media (max-width: 640px) {
  .odinex.change-list .object-tools { justify-content: flex-start; margin: 0 0 16px; }
  .odinex #toolbar #changelist-search > div { flex-wrap: wrap; }
  .odinex #toolbar #searchbar { flex: 1 1 170px; }
  .odinex #changelist .actions { align-items: flex-start; }
}

/* Native Django <details> filters, composed as Gentelella v4 filter cards. */
.odinex #changelist-filter > h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-surface-secondary);
  color: var(--text);
  font-size: 12px;
  font-weight: var(--font-weight-bold);
}
.odinex #changelist-filter > h2::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  content: '';
}
.odinex #changelist-filter-extra-actions {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-color-light);
  background: var(--bg-surface);
}
.odinex #changelist-filter-extra-actions h3 { margin: 0; padding: 0; font-size: 11px; font-weight: var(--font-weight-normal); letter-spacing: 0; text-transform: none; }
.odinex #changelist-filter-extra-actions h3 + h3 { margin-inline-start: auto; }
.odinex #changelist-filter-extra-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 7px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-secondary);
  color: var(--text-secondary);
  text-decoration: none;
  transition: background .12s, color .12s;
}
.odinex #changelist-filter-extra-actions a:hover { background: var(--primary-lt); color: var(--primary-dk); }
.odinex #changelist-filter details {
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--border-color-light);
  background: var(--bg-surface);
}
.odinex #changelist-filter details:last-child { border-bottom: 0; }
.odinex #changelist-filter summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 14px;
  color: var(--text-secondary);
  cursor: pointer;
  list-style: none;
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  transition: background .12s, color .12s;
}
.odinex #changelist-filter summary::-webkit-details-marker { display: none; }
.odinex #changelist-filter summary::after {
  width: 6px;
  height: 6px;
  margin-inline-start: 10px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  color: var(--text-muted);
  content: '';
  transform: rotate(45deg) translateY(-2px);
  transition: transform .16s ease, color .12s;
}
.odinex #changelist-filter details[open] > summary { color: var(--text); background: var(--bg-surface-secondary); }
.odinex #changelist-filter details[open] > summary::after { color: var(--primary); transform: rotate(225deg) translate(-2px, -2px); }
.odinex #changelist-filter summary:hover { color: var(--primary-dk); background: var(--primary-lt); }
.odinex #changelist-filter details > ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 7px 8px 10px;
  background: var(--bg-surface);
}
.odinex #changelist-filter details > ul > li { margin: 0; list-style: none; }
.odinex #changelist-filter details > ul > li > a {
  display: flex;
  align-items: center;
  min-height: 29px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 12px;
  text-decoration: none;
  transition: background .12s, color .12s, padding .12s;
}
.odinex #changelist-filter details > ul > li > a:hover { padding-inline-start: 10px; background: var(--bg-surface-secondary); color: var(--text); }
.odinex #changelist-filter details > ul > li.selected > a {
  position: relative;
  background: var(--primary-lt);
  color: var(--primary-dk);
  font-weight: var(--font-weight-medium);
}
.odinex #changelist-filter details > ul > li.selected > a::before {
  width: 3px;
  height: 14px;
  margin-inline-start: -8px;
  margin-inline-end: 5px;
  border-radius: 0 2px 2px 0;
  background: var(--primary);
  content: '';
}
@media (max-width: 900px) {
  .odinex #changelist-filter details { flex: 0 0 190px; border: 1px solid var(--border-color-light); border-radius: var(--radius); }
  .odinex #changelist-filter details > ul { max-height: 160px; overflow-y: auto; }
}

/* The native filter nav is moved below #toolbar and rendered as compact selects. */
.odinex #changelist.filtered { display: block; }
.odinex #changelist .changelist-form-container > #changelist-filter {
  position: static;
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  width: 100%;
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  box-shadow: var(--shadow);
}
.odinex #changelist .changelist-form-container > #changelist-filter > h2 { display: none; }
.odinex #changelist .changelist-form-container > #changelist-filter > #changelist-filter-extra-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 8px 0 0;
  border: 0;
  background: transparent;
}
.odinex #changelist .changelist-form-container > #changelist-filter > #changelist-filter-extra-actions h3 { margin: 0; padding: 0; }
.odinex #changelist .changelist-form-container > #changelist-filter .filter-select-field {
  display: flex;
  flex: 0 1 auto;
  flex-direction: row;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 0;
  border: 0;
}
.odinex #changelist-filter .filter-select-field label { flex: 0 0 auto; color: var(--text-muted); font-size: 10.5px; font-weight: var(--font-weight-bold); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.odinex #changelist-filter .filter-select-field select {
  width: 118px;
  min-height: 30px;
  padding: 4px 23px 4px 8px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface-secondary);
  color: var(--text);
  font-size: 11.5px;
  cursor: pointer;
}
.odinex #changelist-filter .filter-select-field select:hover { border-color: var(--text-disabled); }
.odinex #changelist-filter .filter-select-field select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-lt); outline: 0; }
.odinex #changelist .changelist-form-container > #changelist-filter details { display: none; }
@media (max-width: 768px) {
  .odinex #changelist .changelist-form-container > #changelist-filter { align-items: stretch; }
  .odinex #changelist .changelist-form-container > #changelist-filter > #changelist-filter-extra-actions { width: 100%; }
  .odinex #changelist .changelist-form-container > #changelist-filter .filter-select-field { flex: 1 1 100%; }
  .odinex #changelist-filter .filter-select-field select { width: min(150px, 45vw); }
}

/* Six dashboard metrics fit on one desktop row. */
.odinex.dashboard .row.col-4 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.odinex.dashboard .row.col-4 .stat { min-width: 0; }
.odinex.dashboard .row.col-4 .stat-value { font-size: clamp(20px, 1.7vw, 20px); white-space: nowrap; }
@media (max-width: 1180px) { .odinex.dashboard .row.col-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .odinex.dashboard .row.col-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .odinex.dashboard .row.col-4 { grid-template-columns: 1fr; } }
.odinex.dashboard .dashboard-metrics { margin-bottom: 20px; }
.odinex.dashboard .partner-member-summary { display: flex; align-items: center; gap: 0; margin: -8px 0 20px; border: 1px solid var(--border-color); border-radius: var(--radius-lg); background: var(--bg-surface); overflow: hidden; }
.odinex.dashboard .partner-member-summary > div { display: flex; flex: 1 1 0; align-items: baseline; justify-content: space-between; gap: 12px; min-width: 0; padding: 13px 16px; }
.odinex.dashboard .partner-member-summary > div + div { border-inline-start: 1px solid var(--border-color-light); }
.odinex.dashboard .partner-member-summary span { overflow: hidden; color: var(--text-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.odinex.dashboard .partner-member-summary strong { color: var(--text); font-size: 15px; font-variant-numeric: tabular-nums; font-weight: var(--font-weight-bold); white-space: nowrap; }
@media (max-width: 640px) { .odinex.dashboard .partner-member-summary { align-items: stretch; flex-direction: column; }.odinex.dashboard .partner-member-summary > div + div { border-top: 1px solid var(--border-color-light); border-inline-start: 0; } }
.odinex.dashboard .stat-value small { margin-inline-start: 4px; color: var(--text-muted); font-size: 12px; font-weight: var(--font-weight-normal); }
.odinex.dashboard .monthly-trading-card { margin-bottom: 24px; }
.odinex.dashboard .monthly-trading-card .card-header { align-items: flex-start; }
.odinex.dashboard .monthly-trading-card .card-header h2 { margin-bottom: 3px; }
.odinex.dashboard .monthly-trading-card .card-header span { color: var(--text-muted); font-size: 11px; }
.odinex.dashboard .monthly-trading-card .card-header { gap: 12px; flex-wrap: wrap; }
.odinex.dashboard .chart-tabs { display: flex; gap: 4px; margin-inline-start: auto; }
.odinex.dashboard .chart-tabs button { min-height: 29px; padding: 0 9px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: var(--bg-surface); color: var(--text-secondary); cursor: pointer; font: 11px var(--font); transition: background .12s, color .12s, border-color .12s; }
.odinex.dashboard .chart-tabs button:hover { border-color: var(--primary); color: var(--primary-dk); }
.odinex.dashboard .chart-tabs button.active { border-color: var(--primary); background: var(--primary-lt); color: var(--primary-dk); font-weight: var(--font-weight-bold); }
.odinex.dashboard #monthly-trading-chart { position: relative; height: auto; padding: 4px 16px 12px; }
.odinex.dashboard #monthly-trading-chart svg { display: block; width: 100%; height: auto; overflow: visible; font-variant-numeric: tabular-nums; }
.odinex.dashboard .monthly-chart-legend { display: flex; gap: 14px; padding: 2px 4px 8px; color: var(--text-secondary); font-size: 11px; }
.odinex.dashboard .monthly-chart-legend span, .odinex.dashboard .monthly-chart-tooltip span { display: inline-flex; align-items: center; gap: 5px; }
.odinex.dashboard .monthly-chart-legend i, .odinex.dashboard .monthly-chart-tooltip i { width: 8px; height: 8px; border-radius: 50%; }
.odinex.dashboard .monthly-chart-grid { stroke: var(--border-color-light); stroke-width: 1; }
.odinex.dashboard .monthly-chart-zero { stroke: var(--border-color); stroke-width: 1; }
.odinex.dashboard .monthly-chart-axis { fill: var(--text-muted); font: 10px var(--font); }
.odinex.dashboard .monthly-chart-line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.odinex.dashboard .monthly-chart-area { opacity: .13; }
.odinex.dashboard .monthly-chart-tooltip { position: absolute; z-index: 2; pointer-events: none; display: flex; flex-direction: column; gap: 6px; min-width: 160px; padding: 8px 10px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: var(--bg-surface); box-shadow: 0 2px 8px rgb(30 38 51 / 12%); color: var(--text); font-size: 11px; opacity: 0; transform: translate(-50%, calc(-100% - 10px)); transition: opacity .12s; white-space: nowrap; }
.odinex.dashboard .monthly-chart-tooltip b { margin-inline-start: auto; font-weight: var(--font-weight-bold); }
@media (max-width: 600px) { .odinex.dashboard .chart-tabs { width: 100%; margin-inline-start: 0; }.odinex.dashboard .chart-tabs button { flex: 1; padding: 0 4px; } }
.odinex.dashboard .monthly-chart-tooltip.is-visible { opacity: 1; }

/* Coin allocation card, paired with the monthly-trading chart. */
.odinex.dashboard .dashboard-chart-row { align-items: stretch; margin-bottom: 24px; }
.odinex.dashboard .dashboard-chart-row > .card { margin-bottom: 0; }
.odinex.dashboard .coin-order-card .card-header { align-items: flex-start; }
.odinex.dashboard .coin-order-card .card-header h2 { margin-bottom: 3px; }
.odinex.dashboard .coin-order-card .card-header span { color: var(--text-muted); font-size: 11px; }
.odinex.dashboard .coin-order-card .card-body { padding: 18px; }
.odinex.dashboard .donut-block { display: flex; align-items: center; gap: 18px; min-height: 190px; }
.odinex.dashboard .donut-svg { position: relative; flex: 0 0 142px; width: 142px; height: 142px; }
.odinex.dashboard .donut-svg svg { display: block; width: 100%; height: 100%; overflow: visible; }
.odinex.dashboard .donut-svg path { fill: none; stroke-width: 18; transition: opacity .15s, stroke-width .15s; }
.odinex.dashboard .donut-svg path:not(.is-active) { opacity: .88; }
.odinex.dashboard .donut-svg path.is-active { stroke-width: 22; opacity: 1; }
.odinex.dashboard .donut-center-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; text-align: center; transform: none; }
.odinex.dashboard .donut-center-label strong { max-width: 82px; overflow: hidden; color: var(--text); font-size: 15px; font-weight: var(--font-weight-bold); line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.odinex.dashboard .donut-center-label span { margin-top: 2px; color: var(--text-muted); font-size: 10px; }
.odinex.dashboard .donut-legend { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; gap: 7px; }
.odinex.dashboard .donut-legend-item { display: grid; grid-template-columns: 8px minmax(36px, 1fr) auto auto; align-items: center; gap: 6px; min-height: 21px; color: var(--text-secondary); cursor: default; font-size: 11px; }
.odinex.dashboard .donut-legend-item i { width: 8px; height: 8px; border-radius: 50%; }
.odinex.dashboard .donut-legend-item .coin-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.odinex.dashboard .donut-legend-item b { color: var(--text); font-weight: var(--font-weight-medium); white-space: nowrap; }
.odinex.dashboard .donut-legend-item em { min-width: 34px; color: var(--text-muted); font-size: 10px; font-style: normal; text-align: right; }
.odinex.dashboard .donut-legend-item.is-active { color: var(--primary-dk); font-weight: var(--font-weight-bold); }
.odinex.dashboard .coin-order-tooltip { position: absolute; z-index: 3; min-width: max-content; max-width: 210px; padding: 6px 8px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: var(--bg-surface); box-shadow: var(--shadow); color: var(--text); font-size: 10.5px; opacity: 0; pointer-events: none; transform: translate(-50%, calc(-100% - 8px)); transition: opacity .12s; white-space: nowrap; }
.odinex.dashboard .coin-order-tooltip.is-visible { opacity: 1; }
.odinex.dashboard .coin-order-empty { display: grid; min-height: 190px; margin: 0; place-items: center; color: var(--text-muted); font-size: 12px; text-align: center; }
@media (max-width: 980px) { .odinex.dashboard .dashboard-chart-row { grid-template-columns: 1fr; }.odinex.dashboard .dashboard-chart-row > .card { margin-bottom: 0; } }
@media (max-width: 480px) { .odinex.dashboard .donut-block { align-items: flex-start; flex-direction: column; }.odinex.dashboard .donut-svg { align-self: center; }.odinex.dashboard .donut-legend { width: 100%; } }

/* Compact invoice-inspired bank settlement summary. */
.odinex.dashboard .settlement-summary-card { margin-bottom: 24px; }
.odinex.dashboard .bank-settlement-summary { display: block; overflow: hidden; }
.odinex.dashboard .bank-settlement-summary .invoice-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--border-color); }
.odinex.dashboard .bank-settlement-summary .invoice-header h2 { margin: 0 0 3px; color: var(--text); font-size: 15px; font-weight: var(--font-weight-bold); }
.odinex.dashboard .bank-settlement-summary .invoice-meta { color: var(--text-muted); font-size: 11px; }
.odinex.dashboard .settlement-unit { min-width: 45px; padding: 4px 8px; border-radius: var(--radius-sm); background: var(--bg-surface-secondary); color: var(--text-muted); font-size: 10px; font-weight: var(--font-weight-bold); letter-spacing: .06em; text-align: center; }
.odinex.dashboard .settlement-lines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.odinex.dashboard .settlement-line { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 16px; align-items: center; gap: 12px; min-height: 80px; padding: 14px 22px; color: var(--text); text-decoration: none; transition: background .12s; }
.odinex.dashboard .settlement-line + .settlement-line { border-inline-start: 1px solid var(--border-color-light); }
.odinex.dashboard .settlement-line:hover { background: var(--bg-surface-secondary); text-decoration: none; }
.odinex.dashboard .settlement-line-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--green-lt); color: var(--green); font-size: 18px; font-weight: var(--font-weight-bold); }
.odinex.dashboard .settlement-line.withdrawal .settlement-line-icon { background: var(--red-lt); color: var(--red); }
.odinex.dashboard .settlement-line-label { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.odinex.dashboard .settlement-line-label strong { font-size: 13px; font-weight: var(--font-weight-medium); }
.odinex.dashboard .settlement-line-label small { overflow: hidden; color: var(--text-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.odinex.dashboard .settlement-line-amount { font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.odinex.dashboard .settlement-line-arrow { color: var(--text-muted); font-size: 16px; }
@media (max-width: 700px) { .odinex.dashboard .settlement-lines { grid-template-columns: 1fr; }.odinex.dashboard .settlement-line + .settlement-line { border-top: 1px solid var(--border-color-light); border-inline-start: 0; } }

/* Monthly dashboard layout. */
.odinex.dashboard #dash-cash-chart {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 240px;
  padding: 12px 16px 6px;
}
.odinex.dashboard #dash-cash-chart svg { display: block; width: 100%; height: 100%; contain: size; overflow: visible; }
.odinex.dashboard .monthly-dashboard { display: flex; flex-direction: column; gap: 16px; }
.odinex.dashboard .dash-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.odinex.dashboard .dash-heading h1 { display: inline; margin: 0 10px 0 0; font-size: 20px; }
.odinex.dashboard .dash-asof { color: var(--text-muted); font-size: 12px; }
.odinex.dashboard .dash-month-controls, .odinex.dashboard .dash-month-form { display: flex; align-items: center; gap: 6px; }
.odinex.dashboard .dash-month-form input, .odinex.dashboard .dash-month-form button, .odinex.dashboard .dash-icon-button { min-height: 30px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: var(--bg-surface); color: var(--text-secondary); font: 12px var(--font); padding: 0 10px; cursor: pointer; }
.odinex.dashboard .dash-icon-button { display: inline-flex; align-items: center; justify-content: center; width: 30px; padding: 0; }
.odinex.dashboard .dash-icon-button[disabled] { opacity: .4; cursor: default; }
.odinex.dashboard .dash-icon-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.odinex.dashboard .dash-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.odinex.dashboard .dash-total-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: var(--bg-surface); }
.odinex.dashboard .dash-total { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; }
.odinex.dashboard .dash-total + .dash-total { border-inline-start: 1px solid var(--border-color-light); }
.odinex.dashboard .dash-total span, .odinex.dashboard .dash-total small, .odinex.dashboard .dash-cash-totals span, .odinex.dashboard .dash-activity-summary span, .odinex.dashboard .dash-section-heading > span { color: var(--text-muted); font-size: 11px; }
.odinex.dashboard .dash-total strong { font-size: 20px; }
.odinex.dashboard .dash-positive { color: var(--green, #268477); }
.odinex.dashboard .dash-negative { color: var(--red, #b45468); }
.odinex.dashboard .dash-main-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; }
.odinex.dashboard .dash-leaders-grid, .odinex.dashboard .dash-rank-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.odinex.dashboard .dash-panel { border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: var(--bg-surface); min-width: 0; }
.odinex.dashboard .dash-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border-color-light); }
.odinex.dashboard .dash-section-heading h2 { margin: 0; font-size: 14px; }
.odinex.dashboard .dash-segments, .odinex.dashboard .dash-rank-tabs { display: flex; gap: 4px; }
.odinex.dashboard .dash-segments button, .odinex.dashboard .dash-rank-tabs a { min-height: 28px; padding: 0 9px; display: inline-flex; align-items: center; border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: var(--bg-surface); color: var(--text-secondary); font: 11px var(--font); cursor: pointer; text-decoration: none; }
.odinex.dashboard .dash-segments button.is-current, .odinex.dashboard .dash-rank-tabs a.is-current { border-color: var(--primary); background: var(--primary-lt); color: var(--primary-dk); font-weight: var(--font-weight-bold); }
.odinex.dashboard .dash-rank-tabs { padding: 10px 16px 0; flex-wrap: wrap; }
.odinex.dashboard .dash-trend .dash-chart { position: relative; height: auto; padding: 4px 16px 12px; }
.odinex.dashboard .dash-trend .dash-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.odinex.dashboard .dash-trend .dash-section-heading { padding: 22px 20px 8px; border-bottom: 0; }
.odinex.dashboard .dash-trend .dash-section-heading h2 { font-size: 16px; font-weight: var(--font-weight-bold); }
.odinex.dashboard .dash-trend .dash-segments { gap: 2px; padding: 4px; border: 1px solid var(--border-color-light); border-radius: 10px; background: var(--bg-surface-secondary); }
.odinex.dashboard .dash-trend .dash-segments button { min-height: 32px; padding: 0 16px; border: 0; border-radius: 8px; background: transparent; color: var(--text-muted); font-size: 13px; font-weight: var(--font-weight-medium); }
.odinex.dashboard .dash-trend .dash-segments button:hover { color: var(--primary-dk); }
.odinex.dashboard .dash-trend .dash-segments button.is-current { background: var(--bg-surface); box-shadow: 0 1px 3px rgb(30 38 51 / 12%); color: var(--primary-dk); font-weight: var(--font-weight-bold); }
.odinex.dashboard .trend-grid { stroke: var(--border-color-light); stroke-width: 1; stroke-dasharray: 4 4; }
.odinex.dashboard .trend-axis { fill: var(--text-muted); font: 12px var(--font); }
.odinex.dashboard .trend-unit { fill: var(--text-muted); font: 11px var(--font); }
.odinex.dashboard .trend-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.odinex.dashboard .trend-area { opacity: .08; }
.odinex.dashboard .trend-cursor { stroke: var(--border-color); stroke-width: 1; stroke-dasharray: 3 3; }
.odinex.dashboard .trend-dot { fill: var(--bg-surface); stroke-width: 2.5; }
.odinex.dashboard .dash-donut { position: relative; padding: 12px 16px; }
.odinex.dashboard .dash-empty { margin: 0; padding: 16px; color: var(--text-muted); font-size: 12px; text-align: center; }
.odinex.dashboard .dash-cash-grid { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr); gap: 16px; padding: 14px 16px; }
.odinex.dashboard .dash-cash-totals { display: flex; flex-direction: column; gap: 28px; margin: 0; padding: 8px 0; }
.odinex.dashboard .dash-cash-totals > div:not(.dash-cash-value) { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: start; gap: 8px; }
.odinex.dashboard .dash-cash-totals > div > span { padding-top: 6px; font-size: 13px; }
.odinex.dashboard .dash-cash-value { display: flex; flex-direction: column; align-items: end; gap: 6px; text-align: center; }
.odinex.dashboard .dash-cash-value strong { font-size: 24px; line-height: 1.2; }
.odinex.dashboard .dash-cash-value small { font-size: 11px; }
.odinex.dashboard .funding-split { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; border-top: 1px solid var(--border-color-light); border-bottom: 1px solid var(--border-color-light); }
.odinex.dashboard .funding-split > div { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 16px; }
.odinex.dashboard .funding-split dt { min-width: 0; }
.odinex.dashboard .funding-split dd { font-size: 18px; }
.odinex.dashboard .funding-split dd.is-bank { color: var(--primary-dk); }
.odinex.dashboard .funding-split dd.is-coin { color: #7c4dbd; }
.odinex.dashboard .funding-split dd small { font-size: 11px; font-weight: normal; color: var(--text-muted); }
.odinex.dashboard .funding-krw { color: var(--text-muted); font-size: 11px; }
.odinex.dashboard .dash-cash-totals p { margin: 0; color: var(--text-muted); font-size: 11px; }
.odinex.dashboard .funding-split dt { color: var(--text-muted); font-size: 12px; }
.odinex.dashboard .funding-split dd { margin: 0; font-weight: var(--font-weight-bold); }
.odinex.dashboard .dash-krw { color: var(--text-muted); }
.odinex.dashboard .dash-context-strip { display: block; border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: var(--bg-surface); padding: 14px 16px; }
.odinex.dashboard .dash-activity-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.odinex.dashboard .dash-activity-value strong { font-size: 18px; }
.odinex.dashboard .dash-member-leaders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 16px; }
.odinex.dashboard .dash-member-leader { display: flex; align-items: center; gap: 12px; }
.odinex.dashboard .dash-leader-ring { display: flex; align-items: center; justify-content: center; flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--border-color); position: relative; }
.odinex.dashboard .dash-leader-ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--bg-surface); }
.odinex.dashboard .dash-leader-ring b { position: relative; font-size: 11px; }
.odinex.dashboard .dash-leader-copy { display: flex; flex-direction: column; min-width: 0; }
.odinex.dashboard .dash-leader-category, .odinex.dashboard .dash-leader-copy small { color: var(--text-muted); font-size: 11px; }
.odinex.dashboard .dash-leader-none { color: var(--text-muted); font-weight: var(--font-weight-normal); }
.odinex.dashboard .dash-table-scroll { overflow-x: auto; padding: 8px 16px 12px; }
.odinex.dashboard .dash-table-scroll table { width: 100%; border-collapse: collapse; font-size: 12px; }
.odinex.dashboard .dash-table-scroll th, .odinex.dashboard .dash-table-scroll td { padding: 8px 6px; border-bottom: 1px solid var(--border-color-light); text-align: end; }
.odinex.dashboard .dash-table-scroll th:first-child, .odinex.dashboard .dash-table-scroll td:first-child, .odinex.dashboard .dash-table-scroll th:nth-child(2), .odinex.dashboard .dash-table-scroll td:nth-child(2) { text-align: start; }
.odinex.dashboard .dash-table-scroll th small { display: block; color: var(--text-muted); font-weight: normal; }
@media (max-width: 960px) {
  .odinex.dashboard .dash-total-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .odinex.dashboard .dash-main-grid, .odinex.dashboard .dash-leaders-grid, .odinex.dashboard .dash-rank-grid, .odinex.dashboard .dash-cash-grid { grid-template-columns: 1fr; }
}
/* Member list workspace. */
.odinex .member-list-workspace { display: flex; flex-direction: column; gap: 14px; }
.odinex .member-status-tabs, .odinex .member-queue-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.odinex .member-status-tabs a, .odinex .member-queue-filters a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: var(--bg-surface); color: var(--text-secondary); font-size: 13px; text-decoration: none; }
.odinex .member-queue-filters a { min-height: 28px; padding: 0 10px; font-size: 12px; }
.odinex .member-status-tabs a.is-active, .odinex .member-queue-filters a.is-active { border-color: var(--primary); background: var(--primary-lt); color: var(--primary-dk); font-weight: var(--font-weight-bold); }
.odinex .member-list-workspace .ops-table-wrap { overflow-x: auto; border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: var(--bg-surface); }
.odinex .member-list-workspace .ops-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.odinex .member-list-workspace .ops-table th, .odinex .member-list-workspace .ops-table td { padding: 10px 12px; border-bottom: 1px solid var(--border-color-light); text-align: start; white-space: nowrap; }
.odinex .member-list-workspace .ops-table tbody tr[data-member-href] { cursor: pointer; }
.odinex .member-list-workspace .ops-table tbody tr[data-member-href]:hover { background: var(--bg-surface-secondary); }
.odinex .member-sort { color: inherit; text-decoration: none; }
.odinex .member-account-link { font-weight: var(--font-weight-bold); }
.odinex .member-empty { padding: 28px; color: var(--text-muted); text-align: center !important; }
.odinex .member-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.odinex .member-page-total { color: var(--text-muted); font-size: 12px; }
.odinex .member-pagination ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.odinex .member-pagination li a, .odinex .member-pagination li span { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 6px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: var(--bg-surface); color: var(--text-secondary); font-size: 12px; text-decoration: none; }
.odinex .member-pagination li .is-current { border-color: var(--primary); background: var(--primary-lt); color: var(--primary-dk); font-weight: var(--font-weight-bold); }
.odinex .member-pagination li .is-disabled { opacity: .4; }.odinex .member-list-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 14px 16px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: var(--bg-surface); }
.odinex .member-list-filters label { display: grid; gap: 4px; color: var(--text-muted); font-size: 12px; }
.odinex .member-list-filters input, .odinex .member-list-filters select { min-width: 150px; height: 34px; padding: 0 8px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: var(--bg-surface); color: var(--text-primary); font-size: 13px; }
.odinex .member-filter-actions { display: flex; gap: 6px; }
.odinex .member-filter-actions .ops-button { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 12px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: var(--bg-surface); color: var(--text-secondary); font-size: 13px; text-decoration: none; cursor: pointer; }
.odinex .member-filter-actions .ops-button-primary { border-color: var(--primary); background: var(--primary); color: #fff; }
.odinex .member-filter-actions .ops-button-primary:hover { background: var(--primary-dk); }
.odinex .member-filter-actions .ops-button-secondary:hover { background: var(--bg-surface-secondary); color: var(--text); }
.odinex .member-cash-totals { padding: 14px 16px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: var(--bg-surface); }
.odinex .member-cash-caption { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; font-weight: var(--font-weight-bold); }
.odinex .member-cash-caption span { color: var(--text-muted); font-size: 12px; font-weight: normal; }
.odinex .member-cash-totals dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 0; }
.odinex .member-cash-totals dt { color: var(--text-muted); font-size: 12px; font-weight: normal; }
.odinex .member-cash-totals dd { margin: 2px 0 0; }
.odinex .member-wallet-layout { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.odinex .member-wallet-layout dl { flex: 1; min-width: 320px; }
.odinex .member-wallet-chart { display: grid; gap: 8px; margin: 0; justify-items: center; }
.odinex .member-wallet-ring { position: relative; width: 120px; height: 120px; }
.odinex .member-wallet-ring svg { width: 100%; height: 100%; }
.odinex .member-wallet-ring circle { fill: none; stroke-width: 12; }
.odinex .wallet-ring-base { stroke: var(--border-color-light); }
.odinex .wallet-ring-frozen { stroke: #f59e0b; }
.odinex .wallet-ring-available { stroke: var(--primary); }
.odinex .wallet-ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: var(--text-muted); font-size: 11px; }
.odinex .wallet-ring-label strong { color: var(--text-primary); font-size: 13px; }
.odinex .member-wallet-chart figcaption { display: grid; gap: 2px; font-size: 12px; }
.odinex .member-wallet-chart i { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; }
.odinex .wallet-key-available { background: var(--primary); }
.odinex .wallet-key-frozen { background: #f59e0b; }
.odinex .member-total-value { font-size: 18px; font-weight: var(--font-weight-bold); font-variant-numeric: tabular-nums; }
.odinex .member-total-reserve { display: none; }
.odinex .member-cash-totals .ops-krw { display: block; color: var(--text-muted); font-size: 12px; }
.odinex .member-currency-amount { display: grid; gap: 2px; }
.odinex .member-currency-primary { font-weight: var(--font-weight-bold); }
.odinex .member-currency-secondary { color: var(--text-muted); font-size: 12px; }
.odinex .member-currency-description { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.odinex .member-flow-negative .member-currency-primary { color: var(--danger, #dc2626); }
.odinex [data-roster-number] { text-align: end !important; font-variant-numeric: tabular-nums; }
.odinex .member-pagination .page-gap { border: 0; background: transparent; }
/* Order management lists reuse the member list design. */
.odinex .order-list-workspace .ops-table tbody th { font-weight: var(--font-weight-bold); }
.odinex .order-list-workspace .ops-table tbody th a { color: inherit; }
.odinex .order-list-workspace .ops-table tbody tr:hover { background: var(--bg-surface-secondary); }
.odinex .order-list-workspace .ops-table .action-checkbox-column, .odinex .order-list-workspace .ops-table .action-checkbox { width: 1%; }
.odinex .order-list-workspace .ops-table img { vertical-align: middle; }
.odinex .order-list-workspace .actions { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.odinex .order-list-workspace .order-list-dates .xfull { margin: 0; padding: 10px 16px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: var(--bg-surface); font-size: 13px; }
.odinex .order-list-workspace .order-list-dates .toplinks { margin: 0; padding: 0; }

/* Queue filters use the boxed button tab design. */
.odinex .member-queue-filters { gap: 10px; border-bottom: 0; }
.odinex .member-queue-filters a { min-height: 36px; padding: 0 16px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: var(--bg-surface); color: var(--text-secondary); font-size: 14px; font-weight: var(--font-weight-medium); }
.odinex .member-queue-filters a:hover { border-color: var(--primary); color: var(--primary-dk); }
.odinex .member-queue-filters a.is-active { border-color: var(--primary); background: var(--primary-lt); color: var(--primary-dk); font-weight: var(--font-weight-bold); }


/* Deposit request list: filter row and centered, borderless table. */
.odinex .deposit-list-workspace .management-subtabs { margin-top: 0; }
.odinex .deposit-list-filter { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: 16px; margin: 0 0 22px; }
.odinex .deposit-list-filter label { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; }
.odinex .deposit-list-filter label > span { color: var(--text-muted); font-size: 11px; font-weight: var(--font-weight-normal); }
.odinex .deposit-list-filter input, .odinex .deposit-list-filter select { width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--border-color); border-radius: var(--radius); background-color: var(--bg-surface); color: var(--text); font-size: 13px; }
.odinex .deposit-list-submit { height: 38px; padding: 0 20px; border: 1px solid var(--primary-dk); border-radius: var(--radius); background: var(--primary-dk); color: #fff; font: inherit; font-size: 12px; font-weight: var(--font-weight-bold); cursor: pointer; }
.odinex .deposit-list-submit:hover { background: var(--primary); border-color: var(--primary); }
.odinex .deposit-list-total { margin: 0 0 14px; color: var(--text-secondary); font-size: 12px; }
.odinex .deposit-list-total strong { color: var(--text); }
.odinex .deposit-list-table-wrap { overflow-x: auto; border-top: 1px solid var(--border-color); }
.odinex .deposit-list-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.odinex .deposit-list-table th { padding: 16px 12px; border-bottom: 1px solid var(--border-color); background: var(--bg-surface-secondary); color: var(--text-secondary); font-size: 12px; font-weight: var(--font-weight-medium); text-align: center; white-space: nowrap; }
.odinex .deposit-list-table td { padding: 16px 12px; border-bottom: 1px solid var(--border-color-light); text-align: center; white-space: nowrap; }
.odinex .deposit-sort { color: inherit; text-decoration: none; }
.odinex .deposit-member-link, .odinex .deposit-amount-link { color: var(--primary-dk); font-weight: var(--font-weight-bold); text-decoration: none; }
.odinex .deposit-member-link:hover, .odinex .deposit-amount-link:hover { text-decoration: underline; }
.odinex .deposit-balance { display: block; font-weight: var(--font-weight-bold); }
.odinex .deposit-balance-krw { display: block; margin-top: 2px; color: var(--text-muted); font-size: 11px; }
.odinex .deposit-kind { color: var(--primary-dk); font-weight: var(--font-weight-bold); }
.odinex .deposit-list-empty { padding: 32px 12px !important; color: var(--text-muted); }
.odinex .deposit-list-workspace .member-pagination { margin-top: 16px; }
@media (max-width: 900px) { .odinex .deposit-list-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); } .odinex .deposit-list-submit { grid-column: 1 / -1; } }

/* Trading pair list: icon + name, price, ON/OFF switches and expandable rows. */
.odinex .pair-list-workspace .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.odinex .pair-list-filter { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr) auto auto; align-items: end; gap: 16px; margin: 0 0 22px; }
.odinex .pair-list-filter label { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; }
.odinex .pair-list-filter label > span { color: var(--text-muted); font-size: 11px; font-weight: var(--font-weight-normal); }
.odinex .pair-list-filter input, .odinex .pair-list-filter select { width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--border-color); border-radius: var(--radius); background-color: var(--bg-surface); color: var(--text); font-size: 13px; }
.odinex .pair-list-add { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border: 1px solid var(--border-color); border-radius: var(--radius); background: var(--bg-surface); color: var(--text-secondary); font-size: 12px; font-weight: var(--font-weight-bold); text-decoration: none; }
.odinex .pair-list-add:hover { border-color: var(--primary); color: var(--primary-dk); }
.odinex .pair-list-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.odinex .pair-list-table th { padding: 14px 12px; border-bottom: 1px solid var(--border-color); background: var(--bg-surface-secondary); color: var(--text-secondary); font-size: 12px; font-weight: var(--font-weight-medium); text-align: center; white-space: nowrap; }
.odinex .pair-list-table th.pair-col-1 { text-align: start; padding-inline-start: 20px; }
.odinex .pair-list-table td { padding: 14px 12px; border-bottom: 1px solid var(--border-color-light); text-align: center; white-space: nowrap; vertical-align: middle; }
.odinex .pair-list-table td.pair-col-1 { text-align: start; padding-inline-start: 20px; }
.odinex .pair-list-table .pair-col-expand { width: 48px; text-align: center; }
.odinex .pair-row:hover .pair-row-main { background: var(--bg-surface-secondary); }
.odinex .pair-identity { display: flex; align-items: center; gap: 12px; }
.odinex .pair-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; overflow: hidden; border-radius: var(--radius-sm); background: var(--bg-surface-secondary); color: var(--text-secondary); font-size: 13px; font-weight: var(--font-weight-bold); }
.odinex .pair-icon img { display: block; width: 100%; height: 100%; object-fit: cover; }
.odinex .pair-names { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.odinex .pair-names strong { color: var(--text); font-size: 13px; font-weight: var(--font-weight-bold); }
.odinex .pair-names small, .odinex .pair-unit { color: var(--text-muted); font-size: 10px; }
.odinex .pair-price { display: block; color: var(--text); font-size: 13px; font-weight: var(--font-weight-medium); }
.odinex .pair-price.is-empty { color: var(--text-muted); }
.odinex .pair-unit { display: block; margin-top: 4px; }
.odinex .pair-switch { display: inline-flex; align-items: center; gap: 8px; margin: 0; cursor: pointer; }
.odinex .pair-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.odinex .pair-switch-track { position: relative; width: 32px; height: 18px; border-radius: 9px; background: var(--border-color); transition: background .15s; }
.odinex .pair-switch-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; }
.odinex .pair-switch input:checked + .pair-switch-track { background: #3a5f87; }
.odinex .pair-switch input:checked + .pair-switch-track::after { transform: translateX(14px); }
.odinex .pair-switch input:focus-visible + .pair-switch-track { outline: 2px solid var(--primary); outline-offset: 2px; }
.odinex .pair-switch input:disabled + .pair-switch-track { opacity: .5; }
.odinex .pair-switch-text { min-width: 22px; color: var(--text-secondary); font-size: 10px; font-weight: var(--font-weight-bold); text-align: start; }
.odinex .pair-status { color: var(--text-secondary); font-size: 12px; }
.odinex .pair-expand { width: 28px; height: 28px; border: 0; background: transparent; color: var(--text-muted); font-size: 14px; line-height: 1; cursor: pointer; transition: transform .15s; }
.odinex .pair-row.is-open .pair-expand { transform: rotate(180deg); }
.odinex .pair-row-detail > td { padding: 18px 20px !important; background: var(--bg-surface-secondary); text-align: start !important; white-space: normal !important; }
.odinex .pair-detail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 20px; margin: 0; }
.odinex .pair-detail dt { color: var(--text-muted); font-size: 11px; font-weight: var(--font-weight-normal); }
.odinex .pair-detail dd { margin: 4px 0 0; color: var(--text); font-size: 13px; }
.odinex .pair-detail-actions { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.odinex .pair-detail-actions form { margin: 0; }
.odinex .pair-detail-link { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: var(--bg-surface); color: var(--text-secondary); font: inherit; font-size: 12px; text-decoration: none; cursor: pointer; }
.odinex .pair-detail-link:hover { border-color: var(--primary); color: var(--primary-dk); }
@media (max-width: 900px) { .odinex .pair-list-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); } .odinex .pair-detail { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Deposit / withdrawal request detail: info rows, processing panel and history. */
.odinex .request-detail-head { display: flex; align-items: center; gap: 16px; margin: 0 0 28px; }
.odinex .request-detail-head h1 { margin: 0; font-size: 18px; font-weight: var(--font-weight-bold); }
.odinex .request-detail-back { color: #3a5f87; font-size: 18px; line-height: 1; text-decoration: none; }
.odinex .request-detail-body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; gap: 40px; }
.odinex .request-detail-info { margin: 0; }
.odinex .request-detail-row { display: grid; grid-template-columns: 160px minmax(0, 1fr); align-items: center; min-height: 50px; border-bottom: 1px solid var(--border-color-light); font-size: 13px; }
.odinex .request-detail-row dt { color: var(--text-muted); font-weight: var(--font-weight-normal); }
.odinex .request-detail-row dd { margin: 0; color: var(--text); font-variant-numeric: tabular-nums; }
.odinex .request-detail-row dd a { color: #3a5f87; text-decoration: none; }
.odinex .request-detail-row dd a:hover { text-decoration: underline; }
.odinex .request-detail-row dd.is-amount { color: #3a5f87; }
.odinex .request-detail-panel { padding: 24px; border-radius: var(--radius-sm); background: var(--bg-surface-secondary); }
.odinex .request-detail-panel h2 { margin: 0 0 18px; font-size: 13px; font-weight: var(--font-weight-bold); }
.odinex .request-detail-panel h3 { margin: 0 0 22px; font-size: 13px; font-weight: var(--font-weight-bold); }
.odinex .request-detail-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0 0 14px; }
.odinex .request-detail-field > span { color: var(--text-muted); font-size: 11px; font-weight: var(--font-weight-normal); }
.odinex .request-detail-field textarea { width: 100%; border: 1px solid var(--border-color); border-radius: var(--radius); background-color: var(--bg-surface); color: var(--text); font: inherit; font-size: 12px; }
.odinex .request-detail-field textarea { min-height: 96px; padding: 10px 12px; resize: vertical; }
.odinex .request-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.odinex .request-detail-btn { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 16px; border: 1px solid var(--border-color); border-radius: var(--radius); background: var(--bg-surface); color: #3a5f87; font: inherit; font-size: 12px; font-weight: var(--font-weight-bold); text-decoration: none; cursor: pointer; }
.odinex .request-detail-btn:hover { border-color: #3a5f87; }
.odinex .request-detail-btn.is-primary { border-color: #3a5f87; background: #3a5f87; color: #fff; }
.odinex .request-detail-btn.is-primary:hover { background: #2f4f73; }
.odinex .request-detail-btn.is-danger { color: #d64550; }
.odinex .request-detail-btn.is-danger:hover { border-color: #d64550; }
.odinex .request-detail-hint { margin: 14px 0 0; color: var(--text-muted); font-size: 11px; line-height: 1.5; }
.odinex .request-detail-history { margin-top: 36px; }
.odinex .request-detail-history h2 { margin: 0 0 12px; font-size: 13px; font-weight: var(--font-weight-bold); }
.odinex .request-detail-history table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.odinex .request-detail-history th { padding: 16px 12px; border-top: 1px solid var(--border-color-light); border-bottom: 1px solid var(--border-color); background: var(--bg-surface-secondary); color: var(--text-secondary); font-size: 12px; font-weight: var(--font-weight-medium); text-align: center; }
.odinex .request-detail-history td { padding: 16px 12px; border-bottom: 1px solid var(--border-color-light); text-align: center; }
@media (max-width: 900px) { .odinex .request-detail-body { grid-template-columns: minmax(0, 1fr); gap: 24px; } .odinex .request-detail-row { grid-template-columns: 110px minmax(0, 1fr); } }

.odinex .nav-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; margin-left: auto; padding: 0 6px; border-radius: 10px; background: #d64550; color: #fff; font-size: 11px; font-weight: 700; line-height: 1; }
.odinex .nav-badge[hidden] { display: none; }
.odinex .nav-link.active .nav-badge { background: rgba(255, 255, 255, .24); }
.group-loss{color: var(--red, #b45468);}
.group-win{color: var(--green, #54b468);}
.group-total{color: var(--blue, #5468b4);}
.first-div-1{padding-left: 24px;}
