/* =========================================================
   Merchant dashboard (.dx) - quiet financial workspace
   Navy sidebar, pale canvas, white panels, 12px radii.
   Scoped so it never leaks into the onboarding portal.
   ========================================================= */
@font-face { font-family: Inter; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/Inter-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Inter; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/Inter-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 500 800; font-display: swap; src: url(fonts/Manrope-latin.woff2) format('woff2'); }

.dx {
  --nav: #0E1B34; --nav-hi: #1A2B4D; --nav-line: rgba(255, 255, 255, .12); --nav-tx: #D5DDEC; --nav-mute: #9FADC8;
  --bg: #F4F6FA; --panel: #fff; --line: #DDE3EC; --line-2: #EBEEF4; --tx: #111C33; --tx2: #46546E; --tx3: #5B687E;
  --acc: #0A6C78; --acc-d: #07555F; --acc-bg: #E6F3F4;
  --ok: #0B7A55; --ok-bg: #E7F5EE; --warn: #7F5200; --warn-bg: #FFF3D6; --err: #B42318; --err-bg: #FDECEA; --info: #1D4F9F; --info-bg: #E8F0FC; --neu: #3F4C66; --neu-bg: #EDF0F5;
  --r: 12px; --r-sm: 8px; --sh: 0 1px 2px rgba(17, 28, 51, .05); --sh-pop: 0 8px 24px rgba(17, 28, 51, .14); --ease: .18s ease;
  --f-head: Manrope, Inter, system-ui, sans-serif;
  display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; background: var(--bg); color: var(--tx);
  font: 400 14px/1.5 Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased;
}
/* dialogs, drawers and popovers mount in #dx-layer on <body>; give them the same token scope without the page-grid layout */
#dx-layer.dx { display: block; min-height: 0; background: transparent; grid-template-columns: none; }
.dx *, .dx *::before, .dx *::after { box-sizing: border-box; }
.dx h1, .dx h2, .dx h3, .dx h4 { font-family: var(--f-head); color: var(--tx); letter-spacing: 0; margin: 0; }
.dx h1 { font-size: 20px; line-height: 28px; font-weight: 700; }
.dx h2 { font-size: 15px; line-height: 22px; font-weight: 700; }
.dx h3 { font-size: 14px; line-height: 20px; font-weight: 700; }
.dx h4 { font-size: 13px; line-height: 18px; font-weight: 700; }
.dx p { margin: 0; }
:where(.dx) a { color: var(--acc); }
.dx button { font: inherit; color: inherit; }
.dx :focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 6px; }
.dx-side :focus-visible { outline-color: #8FD3DB; }
.dx .num, .dx .money { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; }
.dx .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.dx .muted { color: var(--tx3); } .dx .xs { font-size: 12px; } .dx .sm { font-size: 13px; }
.dx .right { text-align: right; }
/* neutralise generic portal classes (style.css) that collide with dashboard markup */
.dx .lbl { display: inline; gap: 0; font: inherit; color: inherit; }
.dx .sub { border: 0; border-radius: 0; padding: 0; }
.dx .sub.ms { display: none; }
.dx-bell .badge { padding: 0 4px; }
.dx .row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .dx .between { justify-content: space-between; }
.dx .stack { display: flex; flex-direction: column; gap: 12px; }
.dx .sr-only, .dx-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dx-ic { width: 18px; height: 18px; flex: none; }
.dx-ic.sm { width: 15px; height: 15px; } .dx-ic.lg { width: 22px; height: 22px; }
.dx-skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--tx); padding: 8px 14px; border-radius: 8px; z-index: 300; border: 2px solid var(--acc); }
.dx-skip:focus { left: 8px; }

/* ---------- sidebar ---------- */
.dx-side { background: var(--nav); color: var(--nav-tx); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 14px; padding: 16px 12px; overflow-y: auto; z-index: 70; }
.dx-brand { display: flex; align-items: center; padding: 4px 8px 2px; }
.dx-brand img { height: 22px; width: auto; filter: brightness(0) invert(1); }
.dx-brand .dx-mini { display: none; color: #fff; font: 800 18px var(--f-head); }
.dx-biz { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 1px solid var(--nav-line); border-radius: 10px; background: var(--nav-hi); transition: border-color var(--ease), background var(--ease); }
.dx-biz:hover { border-color: rgba(255, 255, 255, .3); }
.dx-biz:focus-visible { outline: 2px solid #8FD3DB; outline-offset: 2px; }
.dx-av { width: 30px; height: 30px; border-radius: 8px; background: #DCEFF1; color: #07555F; display: grid; place-items: center; font: 700 12px var(--f-head); flex: none; }
.dx-biz .t { min-width: 0; flex: 1; line-height: 1.25; } .dx-biz .t b { display: block; color: #fff; font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .dx-biz .t span { font-size: 11.5px; color: var(--nav-mute); }
.dx-nav { display: flex; flex-direction: column; gap: 2px; margin-top: 2px; }
.dx-nav a, .dx-sidelink { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 8px; color: var(--nav-tx); text-decoration: none; font-weight: 500; font-size: 14px; border-left: 3px solid transparent; transition: background var(--ease), color var(--ease); cursor: pointer; background: none; border-top: 0; border-right: 0; border-bottom: 0; width: 100%; text-align: left; }
.dx-nav a:hover, .dx-sidelink:hover { background: var(--nav-hi); color: #fff; }
.dx-nav a.is-cur, .dx-sidelink.is-cur { background: var(--nav-hi); color: #fff; border-left-color: #6CC9D3; font-weight: 600; }
.dx-nav a .dx-ic { opacity: .9; }
.dx-nav .cnt { margin-left: auto; background: #F5C26B; color: #3A2600; font-size: 11px; font-weight: 700; border-radius: 99px; padding: 0 7px; min-width: 20px; text-align: center; }
.dx-side-bot { margin-top: auto; display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--nav-line); padding-top: 10px; }
.dx-acct { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; width: 100%; margin-top: 6px; }
.dx-acct:hover { background: var(--nav-hi); } .dx-acct:focus-visible { outline: 2px solid #8FD3DB; outline-offset: 2px; }
.dx-acct .t { min-width: 0; flex: 1; line-height: 1.25; } .dx-acct b { display: block; color: #fff; font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .dx-acct span { font-size: 11.5px; color: var(--nav-mute); }
.dx-acct .dx-av { background: #2A3D63; color: #fff; border-radius: 99px; }
.dx-scrim { position: fixed; inset: 0; background: rgba(14, 27, 52, .45); z-index: 65; opacity: 0; pointer-events: none; transition: opacity var(--ease); }
.dx-scrim.on { opacity: 1; pointer-events: auto; }

/* ---------- top bar ---------- */
.dx-main { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.dx-top { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; padding: 10px 28px; min-height: 64px; flex-wrap: wrap; }
.dx-top h1 { flex: none; margin-right: 6px; }
.dx .dx-menu-btn, .dx .dx-side-close { display: inline-flex; }  /* visible on every width; on desktop they collapse / expand the sidebar */
.dx-search { position: relative; flex: 1 1 260px; max-width: 420px; }
.dx-search input { width: 100%; height: 38px; padding: 0 12px 0 36px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font: inherit; color: var(--tx); transition: border-color var(--ease), background var(--ease); }
.dx-search input:hover { border-color: #C3CCDA; } .dx-search input:focus { background: #fff; border-color: var(--acc); outline: none; box-shadow: 0 0 0 3px rgba(10, 108, 120, .18); }
.dx-search > .dx-ic { position: absolute; left: 11px; top: 10px; color: var(--tx3); pointer-events: none; }
.dx-sres { position: absolute; left: 0; right: 0; top: 44px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-pop); padding: 6px; z-index: 80; max-height: 380px; overflow-y: auto; min-width: 320px; }
.dx-sres h4 { padding: 8px 10px 4px; color: var(--tx3); font-weight: 600; text-transform: none; font-size: 12px; }
.dx-sres button { all: unset; box-sizing: border-box; display: flex; width: 100%; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; align-items: center; }
.dx-sres button:hover, .dx-sres button:focus-visible { background: var(--bg); outline: 2px solid var(--acc); outline-offset: -2px; }
.dx-top-r { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dx-env { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border-radius: 99px; font-weight: 600; font-size: 13px; cursor: pointer; border: 1px solid; background: none; transition: background var(--ease); }
.dx-env .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.dx-env.sandbox { color: var(--warn); border-color: #E8C77A; background: var(--warn-bg); border-style: dashed; }
.dx-env.live { color: var(--ok); border-color: #8CCDB2; background: var(--ok-bg); }
.dx-env:hover { filter: brightness(.97); }
.dx-bell { position: relative; }
.dx-bell .badge { position: absolute; top: 2px; right: 2px; min-width: 17px; height: 17px; border-radius: 99px; background: var(--err); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }

/* ---------- page ---------- */
.dx-page { padding: 24px 28px 56px; width: 100%; max-width: 1380px; margin: 0 auto; flex: 1; }
.dx-page:focus { outline: none; }
.dx-banner { display: flex; gap: 10px; align-items: center; padding: 8px 28px; font-size: 13px; border-bottom: 1px solid; }
.dx-banner.k-sandbox { background: var(--warn-bg); color: var(--warn); border-color: #EBD299; }
.dx-banner.k-live { background: var(--ok-bg); color: var(--ok); border-color: #B5DDCB; }
.dx-banner b { font-weight: 700; }
.dx-foot { padding: 14px 28px 24px; color: var(--tx3); font-size: 12px; border-top: 1px solid var(--line-2); }
.g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: start; }
.c3 { grid-column: span 3; } .c4 { grid-column: span 4; } .c5 { grid-column: span 5; } .c6 { grid-column: span 6; } .c7 { grid-column: span 7; } .c8 { grid-column: span 8; } .c12 { grid-column: span 12; }
.gap-m { margin-top: 16px; } .gap-l { margin-top: 24px; }
.dx-phead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.dx-phead p { color: var(--tx2); max-width: 70ch; margin-top: 2px; }

/* ---------- panels ---------- */
.dx-panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); min-width: 0; }
.dx-ph { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px 0; flex-wrap: wrap; }
.dx-ph .sub { color: var(--tx3); font-size: 13px; font-weight: 400; margin-top: 1px; }
.dx-pb { padding: 16px 20px 20px; }
.dx-pb.flush { padding: 0; }
.dx-panel > .dx-tblwrap { margin-top: 12px; }
/* KPI cards stretch to the tallest card in the row; the per-currency breakdown sits at the bottom so dividers align */
.g12 > .dx-kpi-card { align-self: stretch; }
.dx-kpi { padding: 16px 18px 16px; display: flex; flex-direction: column; gap: 4px; height: 100%; }
.dx-kpi .lab { display: flex; align-items: center; gap: 6px; color: var(--tx2); font-weight: 500; font-size: 13px; }
.dx-kpi .val { font: 700 26px/1.2 Inter, sans-serif; letter-spacing: -.01em; font-variant-numeric: tabular-nums; margin-top: 4px; overflow-wrap: anywhere; }
.dx-kpi .cur { font-size: 12px; font-weight: 600; color: var(--tx2); background: var(--neu-bg); border-radius: 6px; padding: 1px 6px; letter-spacing: .02em; }
.dx-kpi .cmp { margin-bottom: 8px; display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--tx2); flex-wrap: wrap; }
.dx-kpi .also { border-top: 1px solid var(--line-2); margin-top: auto; padding-top: 8px; font-size: 12.5px; color: var(--tx2); display: grid; gap: 2px; }
.dx-kpi .also div { display: flex; justify-content: space-between; gap: 8px; font-variant-numeric: tabular-nums; }
.dlt { font-weight: 600; display: inline-flex; align-items: center; gap: 2px; } .dlt.up { color: var(--ok); } .dlt.down { color: var(--err); } .dlt.flat { color: var(--tx2); }

/* ---------- chips / alerts ---------- */
.dx-chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px 0 7px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--neu-bg); color: var(--neu); }
.dx-chip .dx-ic { width: 13px; height: 13px; }
.dx-chip.k-ok { background: var(--ok-bg); color: var(--ok); } .dx-chip.k-warn { background: var(--warn-bg); color: var(--warn); } .dx-chip.k-err { background: var(--err-bg); color: var(--err); } .dx-chip.k-info { background: var(--info-bg); color: var(--info); } .dx-chip.k-neutral { background: var(--neu-bg); color: var(--neu); }
.dx-chip.sim { background: #fff; border: 1px dashed #B8C2D3; color: var(--tx2); }
.dx-chip.is-spin .dx-ic { animation: dxspin 1.2s linear infinite; }
@keyframes dxspin { to { transform: rotate(360deg); } }
.dx-alert { display: flex; gap: 12px; padding: 12px 14px; border-radius: 10px; border: 1px solid; font-size: 13.5px; align-items: flex-start; }
.dx-alert .dx-ic { margin-top: 2px; } .dx-alert b { font-weight: 700; } .dx-alert .body { flex: 1; min-width: 0; } .dx-alert p + p { margin-top: 3px; }
.dx-alert.k-info { background: var(--info-bg); border-color: #C5D8F5; color: #17407F; } .dx-alert.k-warn { background: var(--warn-bg); border-color: #EBD299; color: #6A4400; } .dx-alert.k-err { background: var(--err-bg); border-color: #F3C4BF; color: #8E1B12; } .dx-alert.k-ok { background: var(--ok-bg); border-color: #B5DDCB; color: #095F42; } .dx-alert.k-neutral { background: var(--neu-bg); border-color: var(--line); color: var(--neu); }

/* ---------- buttons & form controls ---------- */
.dx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--tx); font-weight: 600; font-size: 13.5px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background var(--ease), border-color var(--ease), color var(--ease); }
.dx-btn:hover { background: var(--bg); border-color: #C3CCDA; }
.dx-btn-primary { background: var(--acc); border-color: var(--acc); color: #fff !important; } .dx-btn-primary:hover { background: var(--acc-d); border-color: var(--acc-d); }
.dx-btn-danger { color: var(--err); border-color: #E8B5B0; } .dx-btn-danger:hover { background: var(--err-bg); border-color: var(--err); }
.dx-btn-danger.solid { background: var(--err); border-color: var(--err); color: #fff; } .dx-btn-danger.solid:hover { background: #8E1B12; }
.dx-btn-ghost { border-color: transparent; background: none; color: var(--acc); } .dx-btn-ghost:hover { background: var(--acc-bg); border-color: transparent; }
.dx-btn-sm { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
.dx-btn-icon { width: 36px; padding: 0; }
.dx-btn-sm.dx-btn-icon { width: 30px; }
.dx-btn[disabled], .dx-btn[aria-disabled='true'] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.dx-btn.busy { pointer-events: none; opacity: .85; } .dx-btn.busy .dx-ic.spin { animation: dxspin 1s linear infinite; }
.dx-btn.copied { color: var(--ok); border-color: #8CCDB2; background: var(--ok-bg); }
.dx-link { all: unset; box-sizing: border-box; color: var(--acc); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: transparent; transition: text-decoration-color var(--ease); }
.dx-link:hover { text-decoration-color: currentColor; } .dx-link:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 4px; }
.dx-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.dx-field > label, .dx-lab { font-weight: 600; font-size: 13px; color: var(--tx); }
.dx-field .hint { color: var(--tx3); font-size: 12.5px; }
.dx-input, .dx-select, .dx-textarea { width: 100%; height: 38px; border: 1px solid #C9D1DE; border-radius: 9px; background: #fff; padding: 0 12px; font: inherit; color: var(--tx); transition: border-color var(--ease), box-shadow var(--ease); }
.dx-textarea { height: auto; padding: 9px 12px; min-height: 84px; resize: vertical; }
.dx-select { appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2346546E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.dx-input:hover, .dx-select:hover, .dx-textarea:hover { border-color: #A9B4C6; }
.dx-input:focus, .dx-select:focus, .dx-textarea:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px rgba(10, 108, 120, .2); }
.dx-input[aria-invalid='true'], .dx-textarea[aria-invalid='true'], .dx-select[aria-invalid='true'] { border-color: var(--err); box-shadow: 0 0 0 3px rgba(180, 35, 24, .12); }
.dx-input[readonly] { background: var(--bg); }
.dx-err { color: var(--err); font-size: 12.5px; display: none; align-items: flex-start; gap: 5px; font-weight: 500; } .dx-err.on { display: flex; }
.dx-prefix { position: relative; } .dx-prefix > span { position: absolute; left: 12px; top: 8px; color: var(--tx2); font-weight: 600; pointer-events: none; } .dx-prefix .dx-input { padding-left: 38px; }
.dx-check-l { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 13.5px; }
.dx-check-l input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--acc); flex: none; }
.dx-radio-card { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; transition: border-color var(--ease), background var(--ease); }
.dx-radio-card:has(input:checked) { border-color: var(--acc); background: var(--acc-bg); } .dx-radio-card:has(input:focus-visible) { outline: 2px solid var(--acc); outline-offset: 2px; }
.dx-radio-card input { margin: 3px 0 0; accent-color: var(--acc); width: 16px; height: 16px; }
.dx-form { display: grid; gap: 14px; }
.dx-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dx-toolbar { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; padding: 16px 20px 0; }
.dx-toolbar .dx-field { min-width: 140px; } .dx-toolbar .grow { flex: 1 1 220px; }
.dx-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); padding: 2px; gap: 2px; }
.dx-seg button { all: unset; box-sizing: border-box; cursor: pointer; padding: 5px 12px; border-radius: 7px; font-weight: 600; font-size: 13px; color: var(--tx2); transition: background var(--ease), color var(--ease); }
/* narrow screens: the segmented control scrolls inside its own box instead of widening the page */
ap-seg { display: block; min-width: 0; max-width: 100%; }
.dx-seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; } .dx-seg::-webkit-scrollbar { display: none; } .dx-seg button { white-space: nowrap; flex: 0 0 auto; }
.dx-seg button:hover { color: var(--tx); } .dx-seg button[aria-pressed='true'] { background: #fff; color: var(--tx); box-shadow: 0 1px 2px rgba(17, 28, 51, .12); } .dx-seg button:focus-visible { outline: 2px solid var(--acc); outline-offset: 1px; }
.dx-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 20px; overflow-x: auto; }
.dx-tabs button { all: unset; box-sizing: border-box; cursor: pointer; padding: 11px 12px; font-weight: 600; font-size: 13.5px; color: var(--tx2); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color var(--ease), border-color var(--ease); }
.dx-tabs button:hover { color: var(--tx); } .dx-tabs button[aria-selected='true'] { color: var(--acc); border-bottom-color: var(--acc); } .dx-tabs button:focus-visible { outline: 2px solid var(--acc); outline-offset: -2px; border-radius: 6px; }
.dx-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.dx-fchip { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px; border-radius: 99px; border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--tx2); background: #fff; transition: background var(--ease), border-color var(--ease), color var(--ease); }
.dx-fchip:hover { border-color: #B3BDCE; } .dx-fchip[aria-pressed='true'] { background: var(--acc-bg); border-color: var(--acc); color: var(--acc-d); } .dx-fchip:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

/* ---------- popovers & menus ---------- */
.dx-pop { position: absolute; z-index: 90; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-pop); padding: 8px; min-width: 240px; max-width: min(380px, calc(100vw - 24px)); animation: dxfade .15s ease; }
@keyframes dxfade { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
.dx-pop .hd { padding: 6px 8px 8px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dx-mi { all: unset; box-sizing: border-box; display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 13.5px; transition: background var(--ease); }
.dx-mi:hover { background: var(--bg); } .dx-mi:focus-visible { outline: 2px solid var(--acc); outline-offset: -2px; } .dx-mi[aria-checked='true'], .dx-mi[aria-current='true'] { background: var(--acc-bg); } .dx-mi[aria-disabled='true'] { opacity: .55; cursor: not-allowed; }
.dx-mi .t { flex: 1; min-width: 0; line-height: 1.3; } .dx-mi .t small { display: block; color: var(--tx3); font-size: 12px; }
.dx-sep { height: 1px; background: var(--line-2); margin: 6px 0; }
.dx-ntf { display: flex; gap: 10px; padding: 10px 8px; border-radius: 8px; align-items: flex-start; width: 100%; text-align: left; background: none; border: 0; cursor: pointer; }
.dx-ntf:hover { background: var(--bg); } .dx-ntf.unread .tt::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); margin-right: 6px; }
.dx-ntf .tt { font-weight: 600; font-size: 13px; } .dx-ntf small { display: block; color: var(--tx3); font-size: 12px; }
.dx-datepop { width: 330px; }
.dx-datepop .dx-2col { gap: 8px; }

/* ---------- tables ---------- */
.dx-tblwrap { overflow-x: auto; }
.dx-tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.dx-tbl th { text-align: left; font-weight: 600; color: var(--tx2); font-size: 12px; letter-spacing: .01em; padding: 9px 12px; border-bottom: 1px solid var(--line); background: #FAFBFD; white-space: nowrap; }
.dx-tbl th:first-child, .dx-tbl td:first-child { padding-left: 20px; } .dx-tbl th:last-child, .dx-tbl td:last-child { padding-right: 20px; }
.dx-tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.dx-tbl tbody tr:last-child td { border-bottom: 0; }
.dx-tbl tbody tr[data-open] { cursor: pointer; } .dx-tbl tbody tr[data-open]:hover td { background: #F8FAFD; }
.dx-tbl .r { text-align: right; } .dx-tbl .money { white-space: nowrap; font-weight: 500; }
.dx-tbl .sub { display: block; color: var(--tx3); font-size: 12px; }
.dx-tbl tfoot td { background: #FAFBFD; font-weight: 600; border-top: 1px solid var(--line); }
.dx-th-btn { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font: inherit; color: inherit; font-weight: 600; border-radius: 4px; }
.dx-th-btn:hover { color: var(--tx); } .dx-th-btn:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; } .dx-th-btn .dx-ic { width: 13px; height: 13px; opacity: .55; } th[aria-sort] .dx-th-btn .dx-ic { opacity: 1; color: var(--acc); }
.dx-pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line-2); flex-wrap: wrap; font-size: 13px; color: var(--tx2); }
.dx-pager .pg { display: flex; gap: 4px; align-items: center; }
.dx-pager .pg button { min-width: 32px; height: 32px; border-radius: 8px; border: 1px solid transparent; background: none; cursor: pointer; font-weight: 600; color: var(--tx2); transition: background var(--ease); }
.dx-pager .pg button:hover:not([disabled]) { background: var(--bg); } .dx-pager .pg button[aria-current='page'] { background: var(--acc-bg); color: var(--acc-d); border-color: var(--acc); } .dx-pager .pg button[disabled] { opacity: .4; cursor: not-allowed; }
.dx-deadline { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.dx-deadline.urgent { color: var(--err); } .dx-deadline.soon { color: var(--warn); }
.dx-deadline .tag { border: 1px solid currentColor; border-radius: 5px; font-size: 11px; padding: 0 5px; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- states ---------- */
.dx-empty { text-align: center; padding: 44px 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.dx-empty .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--neu-bg); color: var(--tx2); display: grid; place-items: center; margin-bottom: 6px; }
.dx-empty.err .ico { background: var(--err-bg); color: var(--err); }
.dx-empty h3 { font-size: 15px; } .dx-empty p { color: var(--tx2); max-width: 46ch; } .dx-empty .row { justify-content: center; margin-top: 10px; }
.sk { display: block; background: #E6EAF1; border-radius: 6px; animation: dxpulse 1.4s ease-in-out infinite; }
@keyframes dxpulse { 50% { opacity: .5; } }
.sk-row { display: flex; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--line-2); align-items: center; }

/* ---------- lists / timeline ---------- */
.dx-kv { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; margin: 0; }
.dx-kv dt, .dx-kv dd { padding: 8px 0; border-bottom: 1px solid var(--line-2); margin: 0; }
.dx-kv dt { color: var(--tx2); } .dx-kv dd { text-align: right; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.dx-kv .tot dt, .dx-kv .tot dd { font-weight: 700; color: var(--tx); border-bottom: 0; border-top: 1px solid var(--line); padding-top: 10px; }
.dx-kv dt.tot, .dx-kv dd.tot { font-weight: 700; color: var(--tx); border-bottom: 0; border-top: 1px solid var(--line); padding-top: 10px; }
.dx-tl { list-style: none; margin: 0; padding: 0; position: relative; }
.dx-tl li { display: flex; gap: 12px; padding-bottom: 14px; position: relative; }
.dx-tl li::before { content: ''; position: absolute; left: 11px; top: 24px; bottom: 0; width: 1px; background: var(--line); } .dx-tl li:last-child::before { display: none; } .dx-tl li:last-child { padding-bottom: 0; }
.dx-tl .d { width: 23px; height: 23px; border-radius: 50%; background: var(--neu-bg); color: var(--tx2); display: grid; place-items: center; flex: none; z-index: 1; } .dx-tl .d .dx-ic { width: 13px; height: 13px; }
.dx-tl .ok .d { background: var(--ok-bg); color: var(--ok); } .dx-tl .err .d { background: var(--err-bg); color: var(--err); } .dx-tl .warn .d { background: var(--warn-bg); color: var(--warn); } .dx-tl .info .d { background: var(--info-bg); color: var(--info); }
.dx-tl b { font-weight: 600; display: block; line-height: 1.35; } .dx-tl small { color: var(--tx3); font-size: 12px; }
.dx-sec { margin-top: 22px; } .dx-sec > h3 { margin-bottom: 8px; }

/* ---------- drawer & dialog ---------- */
.dx-drawer-wrap { position: fixed; inset: 0; z-index: 120; }
.dx-drawer-wrap .dx-scrim { position: absolute; z-index: 0; opacity: 1; pointer-events: auto; background: rgba(14, 27, 52, .4); animation: dxfade .18s ease; }
.dx-drawer { position: absolute; right: 0; top: 0; bottom: 0; width: min(580px, 100vw); background: #fff; display: flex; flex-direction: column; box-shadow: -8px 0 28px rgba(17, 28, 51, .14); animation: dxslide .2s ease; z-index: 1; }
@keyframes dxslide { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.dx-drawer header { padding: 18px 22px 14px; border-bottom: 1px solid var(--line); display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; }
.dx-drawer header h2 { font-size: 16px; } .dx-drawer .body { padding: 18px 22px 28px; overflow-y: auto; flex: 1; } .dx-drawer footer { padding: 12px 22px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; background: #FAFBFD; }
.dx-dlg-wrap { position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; padding: 16px; background: rgba(14, 27, 52, .45); animation: dxfade .15s ease; }
.dx-dlg { background: #fff; border-radius: var(--r); width: min(520px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: 0 16px 48px rgba(17, 28, 51, .25); }
.dx-dlg.wide { width: min(680px, 100%); }
.dx-dlg header { padding: 18px 22px 0; display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; } .dx-dlg header h2 { font-size: 17px; line-height: 24px; }
.dx-dlg .body { padding: 14px 22px 8px; overflow-y: auto; } .dx-dlg footer { padding: 14px 22px 20px; display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.dx-toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.dx-toast { pointer-events: auto; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--acc); border-radius: 10px; padding: 11px 12px; box-shadow: var(--sh-pop); display: flex; gap: 10px; align-items: flex-start; animation: dxfade .18s ease; font-size: 13.5px; }
.dx-toast.k-ok { border-left-color: var(--ok); } .dx-toast.k-err { border-left-color: var(--err); } .dx-toast.k-warn { border-left-color: #C98A00; } .dx-toast b { display: block; } .dx-toast span { color: var(--tx2); font-size: 13px; }
.dx-toast .dx-ic { margin-top: 2px; }

/* ---------- chart ---------- */
.dx-chart { position: relative; }
.dx-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.dx-chart .ax { font: 400 11px Inter, sans-serif; fill: var(--tx2); } .dx-chart .grid { stroke: var(--line-2); stroke-width: 1; } .dx-chart .bar { fill: var(--acc); transition: fill var(--ease); } .dx-chart .bar.act { fill: var(--acc-d); } .dx-chart .prev { fill: none; stroke: #6B7A94; stroke-width: 1.75; stroke-dasharray: 5 4; } .dx-chart .pdot { fill: #fff; stroke: #6B7A94; stroke-width: 1.5; }
.dx-chart .hit { fill: transparent; cursor: pointer; }
.dx-chart:focus-visible, .dx-chart-box:focus-visible { outline: 2px solid var(--acc); outline-offset: 4px; }
.dx-tip { position: absolute; pointer-events: none; background: var(--nav); color: #fff; border-radius: 8px; padding: 8px 10px; font-size: 12px; line-height: 1.45; z-index: 5; min-width: 150px; transform: translate(-50%, -100%); white-space: nowrap; box-shadow: var(--sh-pop); }
.dx-tip b { display: block; font-weight: 600; margin-bottom: 2px; } .dx-tip .l { display: flex; justify-content: space-between; gap: 14px; font-variant-numeric: tabular-nums; } .dx-tip .l span:first-child { color: #B9C5DB; }
.dx-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--tx2); }
.dx-legend span { display: inline-flex; align-items: center; gap: 7px; } .dx-legend i { display: inline-block; width: 14px; height: 10px; border-radius: 2px; background: var(--acc); } .dx-legend i.ln { height: 0; border-top: 2px dashed #6B7A94; background: none; border-radius: 0; }

/* ---------- misc ---------- */
.dx-emblem { width: 56px; height: 56px; flex: none; }
.dx-welcome { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border: 1px solid #B5DDCB; background: #F3FAF6; border-radius: var(--r); }
.dx-welcome h2 { font-size: 16px; } .dx-welcome p { color: var(--tx2); margin-top: 2px; max-width: 70ch; }
.dx-welcome .x { margin-left: auto; }
.dx-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.dx-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line-2); } .dx-steps li:last-child { border-bottom: 0; }
.dx-steps .n { width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 12px; background: var(--neu-bg); color: var(--neu); border: 1px solid transparent; } .dx-steps .done .n { background: var(--ok); color: #fff; } .dx-steps .done .n .dx-ic { width: 14px; height: 14px; } .dx-steps .cur .n { background: #fff; border-color: var(--acc); color: var(--acc); }
.dx-steps .t { flex: 1; min-width: 0; } .dx-steps .t b { display: block; font-weight: 600; } .dx-steps .t span { color: var(--tx2); font-size: 13px; }
.dx-prog { height: 6px; border-radius: 99px; background: var(--line-2); overflow: hidden; } .dx-prog > i { display: block; height: 100%; background: var(--acc); transition: width .2s ease; }
.dx-code { background: #0F1B33; color: #E3EAF7; border-radius: 10px; padding: 14px 16px; font: 12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-x: auto; white-space: pre; margin: 0; position: relative; }
.dx-code .k { color: #8FD3DB; } .dx-code .c { color: #9FB0CC; }
.dx-secret { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 6px 6px 6px 12px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; min-width: 0; }
.dx-secret code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dx-drop { border: 1.5px dashed #A9B4C6; border-radius: 10px; padding: 14px; text-align: center; background: #FAFBFD; transition: border-color var(--ease), background var(--ease); cursor: pointer; display: block; }
.dx-drop:hover, .dx-drop.over { border-color: var(--acc); background: var(--acc-bg); } .dx-drop:focus-within { outline: 2px solid var(--acc); outline-offset: 2px; }
.dx-file { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.dx-file .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.dx-evid { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: grid; gap: 10px; }
.dx-evid + .dx-evid { margin-top: 10px; }
.dx-sum { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 4px 14px; }
.dx-big { font: 700 22px/1.2 Inter, sans-serif; font-variant-numeric: tabular-nums; }
.dx-meter { font-size: 12px; color: var(--tx3); text-align: right; }
.dx-verify { max-width: 760px; margin: 0 auto; padding: 32px 20px 56px; }
.dx-vhead { display: flex; align-items: center; justify-content: space-between; padding: 16px 28px; background: #fff; border-bottom: 1px solid var(--line); }
.dx-vhead img { height: 24px; width: auto; }
.dx-lock { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.dx-lock div { border: 1px dashed #B8C2D3; border-radius: 10px; padding: 10px 12px; display: flex; gap: 8px; align-items: center; color: var(--tx2); font-size: 13px; }
.dx-printonly { display: none; }
.dx-hl { background: #FFF3C4; border-radius: 3px; }

/* ---------- desktop: collapsible sidebar (the menu / close buttons toggle .rail) ---------- */
.dx-side { transition: width .18s ease, padding .18s ease; }
.dx { transition: grid-template-columns .18s ease; }
@media (min-width: 1100px) {
  .dx.rail { grid-template-columns: 72px minmax(0, 1fr); }
  .dx.rail .dx-side { padding: 14px 10px; width: 72px; overflow-x: hidden; }
  .dx.rail .dx-side .lbl, .dx.rail .dx-biz .t, .dx.rail .dx-biz > .dx-ic:last-child, .dx.rail .dx-acct .t, .dx.rail .dx-brand img, .dx.rail .dx-nav .lk, .dx.rail .dx-side-close { display: none; }
  .dx.rail .dx-brand { justify-content: center; padding: 4px 0 2px; }
  .dx.rail .dx-brand .dx-mini { display: block !important; }
  .dx.rail .dx-nav a, .dx.rail .dx-sidelink { justify-content: center; padding: 10px 0; border-left: 0; position: relative; }
  .dx.rail .dx-nav a.is-cur, .dx.rail .dx-sidelink.is-cur { box-shadow: inset 3px 0 0 #6CC9D3; }
  .dx.rail .dx-nav .cnt { position: absolute; top: 2px; right: 6px; display: inline-block; min-width: 16px; font-size: 10px; padding: 0 4px; margin: 0; }
  .dx.rail .dx-biz, .dx.rail .dx-acct { justify-content: center; padding: 6px 0; } .dx.rail .dx-biz { border-color: transparent; background: none; }
  .dx.rail .adm-tag { justify-content: center; padding: 6px 0; border-color: transparent; background: none; } .dx.rail .adm-tag .t { display: none; }
}
@media (prefers-reduced-motion: reduce) { .dx, .dx-side { transition: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1099px) {
  .dx { grid-template-columns: 72px minmax(0, 1fr); }
  .dx-side { padding: 14px 10px; width: 72px; overflow-x: hidden; transition: width var(--ease), box-shadow var(--ease); }
  .dx-side .lbl, .dx-biz .t, .dx-biz > .dx-ic:last-child, .dx-acct .t, .dx-brand img, .dx-nav .cnt { display: none; }
  .dx-brand .dx-mini { display: block !important; padding-left: 6px; }
  .dx-nav a, .dx-sidelink { justify-content: center; padding: 10px 0; border-left: 0; } .dx-nav a.is-cur, .dx-sidelink.is-cur { box-shadow: inset 3px 0 0 #6CC9D3; }
  .dx-biz, .dx-acct { justify-content: center; padding: 6px 0; } .dx-biz { border-color: transparent; background: none; }
  .dx .dx-side-close { display: none; }
  .dx.nav-open .dx-side-close { display: inline-flex; }
  .dx.nav-open .dx-side { position: fixed; left: 0; top: 0; width: 264px; box-shadow: 8px 0 28px rgba(0, 0, 0, .3); overflow-y: auto; }
  .dx.nav-open .dx-side .lbl, .dx.nav-open .dx-biz .t, .dx.nav-open .dx-biz > .dx-ic:last-child, .dx.nav-open .dx-acct .t { display: block; }
  .dx.nav-open .dx-biz > .dx-ic:last-child { display: block; }
  .dx.nav-open .dx-brand img { display: block; } .dx.nav-open .dx-brand .dx-mini { display: none !important; } .dx.nav-open .dx-nav .cnt { display: inline-block; }
  .dx.nav-open .dx-nav a, .dx.nav-open .dx-sidelink { justify-content: flex-start; padding: 9px 12px; border-left: 3px solid transparent; } .dx.nav-open .dx-nav a.is-cur, .dx.nav-open .dx-sidelink.is-cur { box-shadow: none; border-left-color: #6CC9D3; }
  .dx.nav-open .dx-biz { justify-content: flex-start; padding: 8px 10px; border-color: var(--nav-line); background: var(--nav-hi); } .dx.nav-open .dx-acct { justify-content: flex-start; padding: 8px 10px; }
  .dx.nav-open .dx-scrim.nav { opacity: 1; pointer-events: auto; }
  .c3 { grid-column: span 6; } .c4, .c5 { grid-column: span 6; } .c6, .c7, .c8 { grid-column: span 12; }
  .dx-page { padding: 20px 20px 48px; } .dx-top { padding: 10px 20px; } .dx-banner { padding: 8px 20px; } .dx-foot { padding: 14px 20px 24px; }
}
@media (max-width: 720px) {
  .dx { grid-template-columns: minmax(0, 1fr); }
  .dx-side { position: fixed; left: 0; top: 0; width: 280px; transform: translateX(-102%); transition: transform .2s ease; box-shadow: none; padding: 16px 12px; overflow-y: auto; }
  .dx.nav-open .dx-side { transform: none; width: 280px; }
  .dx .dx-side-close { display: inline-flex; }
  .dx-side .lbl, .dx-biz .t, .dx-acct .t, .dx-brand img { display: block; } .dx-biz > .dx-ic:last-child { display: block; } .dx-brand .dx-mini { display: none !important; } .dx-nav .cnt { display: inline-block; }
  .dx-nav a, .dx-sidelink { justify-content: flex-start; padding: 11px 12px; border-left: 3px solid transparent; } .dx-nav a.is-cur, .dx-sidelink.is-cur { box-shadow: none; border-left-color: #6CC9D3; }
  .dx-biz { justify-content: flex-start; padding: 8px 10px; border-color: var(--nav-line); background: var(--nav-hi); } .dx-acct { justify-content: flex-start; padding: 8px 10px; }
  .dx-top { gap: 8px; padding: 8px 14px; } .dx-top h1 { font-size: 17px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dx-search { order: 5; flex: 1 1 100%; max-width: none; } .dx-top-r { margin-left: 0; gap: 6px; } .dx-datebtn .lbl-d { display: none; }
  .dx-env .lbl-e { display: none; } .dx-env { width: 36px; padding: 0; justify-content: center; }
  .dx-page { padding: 16px 14px 40px; } .dx-banner { padding: 8px 14px; } .dx-foot { padding: 12px 14px 20px; }
  .c3, .c4, .c5, .c6, .c7, .c8 { grid-column: span 12; } .g12 { gap: 12px; }
  .dx-2col { grid-template-columns: 1fr; }
  .hs { display: none !important; }
  .dx-tbl .sub.ms { display: block; }
  .dx-tbl th, .dx-tbl td { padding: 9px 8px; } .dx-tbl th:first-child, .dx-tbl td:first-child { padding-left: 14px; } .dx-tbl th:last-child, .dx-tbl td:last-child { padding-right: 14px; }
  .dx-drawer { width: 100vw; } .dx-dlg-wrap { padding: 0; place-items: end stretch; } .dx-dlg { width: 100%; max-height: 94vh; border-radius: 16px 16px 0 0; }
  .dx-toolbar { padding: 14px 14px 0; } .dx-toolbar .dx-field { flex: 1 1 140px; } .dx-tabs { padding: 0 8px; } .dx-pager { padding: 12px 14px; } .dx-ph { padding: 14px 14px 0; } .dx-pb { padding: 14px; }
  .dx-lock { grid-template-columns: 1fr; } .dx-kv { grid-template-columns: 1fr 1fr; }
  .dx-toasts { right: 12px; left: 12px; bottom: 12px; width: auto; }
}
@media (pointer: coarse) { .dx-btn { min-height: 44px; } .dx-btn-sm { min-height: 40px; } .dx-btn-icon { min-width: 44px; } .dx-mi { min-height: 44px; } .dx-fchip { height: 36px; } .dx-seg button { padding: 9px 14px; } .dx-pager .pg button { min-width: 40px; height: 40px; } .dx-tabs button { padding: 14px 12px; } .dx-input, .dx-select { height: 44px; } }
@media (prefers-reduced-motion: reduce) { .dx *, .dx *::before, .dx *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } .dx-drawer-wrap *, .dx-dlg-wrap, .dx-dlg-wrap * { animation: none !important; } }
@media print {
  .dx { display: block; background: #fff; } .dx-side, .dx-top, .dx-banner, .dx-foot, .dx-noprint, .dx-toasts, .dx-scrim, .dx-drawer-wrap, .dx-dlg-wrap, .dx-tabs { display: none !important; }
  .dx-page { padding: 0; max-width: none; } .dx-panel { box-shadow: none; break-inside: avoid; } .dx-printonly { display: block; margin-bottom: 12px; } .dx-tblwrap { overflow: visible; } .dx-tbl th { background: #fff; }
  body.dx-print-report .dx-rp-controls { display: none !important; }
}

/* compact settlement rows in dashboard summary */
.dx-minirow { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; column-gap: 10px; }
.dx-minirow .amt { white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; min-width: 0; }
.dx-minirow .dx-chip, .dx .dx-chip { white-space: nowrap; writing-mode: horizontal-tb; }

/* Dashboard rows: panels in one row share a height; content pins to the top, legends/footers to the bottom */
.g12.eq > .dx-panel { align-self: stretch; display: flex; flex-direction: column; }
.g12.eq > .dx-panel > .dx-pb { flex: 1 1 auto; display: flex; flex-direction: column; }
.g12.eq > .dx-panel > .dx-pb > .dx-chart { flex: 0 0 auto; }
.dx-legend-foot { margin-top: auto; padding-top: 10px; }
/* compact key/value list: labels stay on one line, amounts right-aligned */
.dx-kv.fit { grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; }
.dx-kv.fit dd { white-space: nowrap; }

/* dashboard alerts: action sits under the text so the message gets the full panel width */
.g12.eq .dx-alert { flex-wrap: wrap; row-gap: 8px; }
.g12.eq .dx-alert .body { flex: 1 1 calc(100% - 34px); }
.g12.eq .dx-alert > .dx-btn { margin-left: 32px; }

/* Settlements: balance notes, stacked and left-aligned */
.dx-notes-wrap { padding-top: 14px; border-top: 1px solid var(--line-2); }
.dx-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px 24px; margin: 0; }
.dx-notes dt { font-size: 12px; font-weight: 600; color: var(--tx); margin: 0 0 4px; }
.dx-notes dd { font-size: 13px; line-height: 1.5; color: var(--tx2); margin: 0; text-align: left; }

/* Keep visually-hidden text inside scrolling table wrappers (prevents page-level horizontal overflow) */
.dx-tblwrap { position: relative; }

/* Copyable IDs inside key/value lists: right-aligned, vertically centred with their label */
.dx-idcopy { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: nowrap; max-width: 100%; vertical-align: middle; }
.dx-idcopy .mono { overflow-wrap: anywhere; min-width: 0; }
.dx-kv dt { display: flex; align-items: center; }

/* Applications list */
.dx-apps { list-style: none; margin: 0; padding: 0; display: grid; }
.dx-app { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--line-2); }
.dx-app:first-child { border-top: 0; padding-top: 0; }
.dx-app .who { flex: 1 1 220px; min-width: 0; display: grid; }
.dx-app .who b { overflow-wrap: anywhere; }
