html.xr-ui2-runtime,
html.xr-ui2-runtime .xr-ui-v2 {
  --xr2-bg: #f4f3ef;
  --xr2-surface: #fffefa;
  --xr2-surface-soft: #eeede8;
  --xr2-surface-raised: #ffffff;
  --xr2-surface-muted: #eeede8;
  --xr2-surface-section: #f8f7f3;
  --xr2-border-subtle: #e5e3dc;
  --xr2-border-strong: #aca99f;
  --xr2-control-border: #858277;
  --xr2-ring: #687c2655;
  --xr2-border: #d8d5cd;
  --xr2-text: #282925;
  --xr2-muted: #62635e;
  --xr2-primary: #d4df87;
  --xr2-on-primary: #2a3021;
  --xr2-primary-hover: #e1eaa7;
  --xr2-brand: #566322;
  --xr2-brand-hover: #414d17;
  --xr2-brand-soft: #eef1d8;
  --xr2-text-soft: #62635e;
  --xr2-text-muted: var(--xr2-muted);
  --xr2-faint: #696a64;
  --xr2-success: #28683c;
  --xr2-success-soft: #e9f2e9;
  --xr2-warning: #805b13;
  --xr2-warning-soft: #f6eed9;
  --xr2-danger: #a23936;
  --xr2-danger-soft: #faebe8;
  --xr2-info: #486369;
  --xr2-info-soft: #e8eff0;
  --xr2-radius: 8px;
  --xr2-radius-sm: 6px;
  --xr2-radius-lg: 8px;
  --xr2-shadow: 0 2px 6px #20201b08;
  --xr2-motion: 160ms;
  color: var(--xr2-text);
  background: var(--xr2-bg);
  font-family: XRInter, Inter, Arial, sans-serif;
}
html.xr-ui2-runtime[data-ui3-theme="dark"],
html.xr-ui2-runtime[data-ui3-theme="dark"] .xr-ui-v2 {
  --xr2-bg: #141515;
  --xr2-surface: #1e2020;
  --xr2-surface-soft: #292b2b;
  --xr2-surface-raised: #303232;
  --xr2-surface-muted: #292b2b;
  --xr2-surface-section: #242626;
  --xr2-border-subtle: #343636;
  --xr2-border-strong: #686b67;
  --xr2-control-border: #777a74;
  --xr2-brand: #d4df87;
  --xr2-brand-hover: #e1eaa7;
  --xr2-brand-soft: #313726;
  --xr2-success-soft: #24392b;
  --xr2-warning-soft: #393223;
  --xr2-danger-soft: #3c2827;
  --xr2-info-soft: #283538;
  --xr2-border: #414341;
  --xr2-text: #f2f1eb;
  --xr2-muted: #b7b9b2;
  --xr2-text-soft: #b7b9b2;
  --xr2-faint: #a9ada4;
  --xr2-success: #9bd392;
  --xr2-warning: #e4c474;
  --xr2-danger: #f39b92;
  --xr2-info: #b2cdd0;
  color-scheme: dark;
}
.xr-ui2-runtime * { letter-spacing: 0; }
/* Clip horizontal spill without making the mobile shell a non-scrolling sticky ancestor. */
.xr-ui2-runtime .app-shell { overflow-x: clip; overflow-y: visible; }
.xr-ui2-runtime .xr2-btn--primary,
.xr-ui2-runtime .xr2-button-primary { background: var(--xr2-primary); border-color: var(--xr2-primary); color: #2a3021; }
.xr-ui2-runtime .xr2-btn--primary:hover { background: var(--xr2-primary-hover); border-color: var(--xr2-primary-hover); color: #2a3021; }
.xr-ui2-runtime .xr2-badge--brand { color: var(--xr2-brand); background: var(--xr2-brand-soft); border-color: var(--xr2-border); }
.xr-ui2-runtime .xr2-avatar { background: #313726; color: #d4df87; }
.xr-ui2-runtime .xr3-shell { grid-template-columns: 228px minmax(0, 1fr); }
.xr-ui2-runtime .xr2-sidebar { background: #222422; color: #ecede7; height: 100dvh; overflow: visible; padding: 16px; }
.xr-ui2-runtime .xr2-navigation { flex: 0 0 auto; overflow: visible; margin-top: 16px; padding: 0; }
.xr-ui2-runtime .xr2-nav-group { margin: 0; }
.xr-ui2-runtime .xr2-nav-button { min-height: 38px; padding: 8px 10px; font-size: 12px; }
.xr-ui2-runtime .xr2-navigation .xr2-nav-button { text-transform: uppercase; }
.xr-ui2-runtime .xr2-nav-button.active { background: #d4df87; color: #282e20; }
.xr-ui2-runtime .xr2-sidebar-footer { margin-top: auto; padding-top: 12px; border-color: #42463f; }
.xr-ui2-runtime .xr2-account-row { width: 100%; border: 0; background: transparent; color: inherit; text-align: left; padding: 10px 0; cursor: pointer; }
.xr-ui2-runtime .xr2-account-row > div { min-width: 0; }
.xr-ui2-runtime .xr2-account-row strong { white-space: normal; overflow-wrap: anywhere; font-size: 12px; }
.xr-ui2-runtime .xr2-sync-state { font-size: 11px; line-height: 1.3; }
.xr-ui2-runtime .xr2-sync-state > span:last-child { white-space: normal; }
.xr-ui2-runtime .xr2-brand { padding: 12px 0; }
.xr-ui2-runtime .xr2-brand-copy strong { font-size: 17px; white-space: nowrap; }
.xr-ui2-runtime .xr3-theme-controls { display: flex; gap: 4px; }
.xr-ui2-runtime .xr3-theme-controls button,
.xr-ui2-runtime .xr3-global-search-toggle,
.xr-ui2-runtime .xr3-sidebar-search button { display: inline-grid; place-items: center; width: 32px; height: 30px; padding: 6px; border: 0; border-radius: 4px; color: #b8beb1; background: transparent; cursor: pointer; }
.xr-ui2-runtime .xr3-theme-controls button[aria-pressed="true"] { color: #e7ecbc; background: #454b3b; }
.xr-ui2-runtime .xr3-theme-controls svg,
.xr-ui2-runtime .xr3-global-search-toggle svg,
.xr-ui2-runtime .xr3-sidebar-search svg { width: 18px; height: 18px; }
.xr-ui2-runtime .xr3-sidebar-search { display: flex; min-width: 0; gap: 4px; }
.xr-ui2-runtime .xr3-sidebar-search input { min-width: 0; width: 100%; border: 1px solid #666e5d; color: #eef0e8; background: #343a30; padding: 6px 8px; border-radius: 4px; }
.xr-ui2-runtime .xr3-sidebar-results { position: fixed; left: 228px; top: 100px; width: min(440px, calc(100vw - 244px)); max-height: calc(100dvh - 140px); overflow-y: auto; background: var(--xr2-surface); color: var(--xr2-text); border: 1px solid var(--xr2-border); box-shadow: 0 8px 30px #0002; padding: 8px; border-radius: 6px; z-index: 1100; }
.xr-ui2-runtime .xr3-sidebar-results .search-result { color: var(--xr2-text); background: transparent; grid-template-columns: 1fr; border-bottom: 1px solid var(--xr2-border); }
.xr-ui2-runtime .xr3-sidebar-results .search-result-main { min-width: 0; }
.xr-ui2-runtime .xr3-sidebar-results strong,
.xr-ui2-runtime .xr3-sidebar-results small { white-space: normal; overflow-wrap: anywhere; }
.xr-ui2-runtime .xr2-topbar { background: var(--xr2-bg); border-color: var(--xr2-border); }
.xr-ui2-runtime .xr2-topbar strong { color: var(--xr2-text); }
html.xr-ui2-runtime[data-ui3-theme="dark"] :is(.xr2-panel-head, .xr2-today-row, .xr2-finance-strip .xr2-metric, .xr2-calendar-weekday, .xr2-calendar-week-column > header, .xr2-calendar-list > section > header, .xr2-warehouse-order, .xr2-compact-empty) {
  background: var(--xr2-surface-section); color: var(--xr2-text); border-color: var(--xr2-border);
}
html.xr-ui2-runtime[data-ui3-theme="dark"] :is(.xr2-today-row strong, .xr2-calendar-event > strong, .xr2-warehouse-order-main strong) { color: var(--xr2-text); }
html.xr-ui2-runtime[data-ui3-theme="dark"] .xr2-calendar-cell.today { background: var(--xr2-brand-soft); box-shadow: inset 0 0 0 2px var(--xr2-brand); }
html.xr-ui2-runtime[data-ui3-theme="dark"] :is(.xr2-btn:hover, .xr2-table tbody tr:hover td) { background: var(--xr2-surface-soft); color: var(--xr2-text); }
html.xr-ui2-runtime[data-ui3-theme="dark"] :is(.modal, .modal > .panel-head, .modal input, .modal select, .modal textarea, .modal select option, .modal select optgroup) { background: var(--xr2-surface) !important; color-scheme: dark !important; }
.xr-ui2-runtime { --ui3-topbar-height: 52px; }
.xr-ui2-runtime .xr3-orders-sticky { top: var(--ui3-topbar-height); }
.xr-ui2-runtime .xr3-section-sticky { position: sticky; top: var(--ui3-topbar-height); z-index: 12; background: var(--xr2-bg); padding: 8px 0; border-bottom: 1px solid var(--xr2-border); margin-bottom: 16px; }
@media (max-width: 980px) {
  .xr-ui2-runtime { --ui3-topbar-height: 46px; }
}
.xr-ui2-runtime .xr3-section-sticky .xr2-page-header { margin: 0; }
.xr-ui2-runtime .xr3-section-sticky .xrcc-catalog-toolbar { margin: 12px 0 0; border: 0; padding: 0; box-shadow: none; background: transparent; }
.xr-ui2-runtime .xr3-section-sticky .xr2-toolbar-left { flex: 1 1 auto; }
.xr-ui2-runtime .xr3-section-sticky .xr2-toolbar-right { flex: 0 1 auto; }
.xr-ui2-runtime .xr3-local-search { display: flex; align-items: center; min-width: 0; max-width: 100%; gap: 6px; }
.xr-ui2-runtime .xr3-local-search input { width: 240px; min-width: 0; max-width: 100%; }
.xr-ui2-runtime .xr3-local-search svg { width: 18px; height: 18px; }
.xr-ui2-runtime .xr3-local-search button { width: 36px; height: 36px; flex: 0 0 36px; padding: 8px; }
@media (max-width: 600px) {
  .xr-ui2-runtime .xr3-section-sticky .xr2-page-actions { flex-wrap: wrap; }
  .xr-ui2-runtime .xr3-local-search:has(input) { width: 100%; }
  .xr-ui2-runtime .xr3-local-search input { flex: 1; width: 100%; }
}
.xr-ui2-runtime .xr3-deposit-completion,
.xr-ui2-runtime .xr3-unissued-removal { background: var(--xr2-surface); color: var(--xr2-text); }
.xr-ui2-runtime .xr3-sidebar-backdrop { display: none; }
.xr-ui2-runtime .xr3-compensation-summary dl { display: flex; gap: 16px; flex-wrap: wrap; }
.xr-ui2-runtime .xr3-compensation-summary { padding: 12px 0; border-block: 1px solid var(--xr2-border); }
.xr-ui2-runtime .xr3-compensation-summary h3 { margin: 0 0 12px; font-size: 14px; }
.xr-ui2-runtime .xr3-compensation-summary dl { margin: 0; }
.xr-ui2-runtime .xr3-compensation-summary dl > div { flex: 1 1 130px; min-width: 0; }
.xr-ui2-runtime .xr3-compensation-summary dt { color: var(--xr2-muted); font-size: 12px; }
.xr-ui2-runtime .xr3-compensation-summary dd { margin: 4px 0 0; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.xr-ui2-runtime .xr3-recurring-toolbar,
.xr-ui2-runtime .xr3-recurring-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.xr-ui2-runtime .xr3-recurring-toolbar { padding: 12px 0; gap: 16px; border-bottom: 1px solid var(--xr2-border); }
.xr-ui2-runtime .xr3-recurring-toolbar label { display: flex; align-items: center; gap: 8px; }
.xr-ui2-runtime .xr3-recurring-toolbar > button { margin-left: auto; }
.xr-ui2-runtime .xr3-recurring svg { width: 16px; height: 16px; flex-shrink: 0; }
.xr-ui2-runtime .xrf-tabs { background: transparent; border: 0; border-bottom: 1px solid var(--xr2-border); border-radius: 0; box-shadow: none; }
.xr-ui2-runtime .xrf-tab.is-active { background: #d7e28a; color: #293319; border-color: transparent; }
.xr-ui2-runtime .xr3-recurring-row .xr3-recurring-actions { flex-wrap: nowrap; }
.xr-ui2-runtime .xr3-recurring-row .xr2-btn { width: 36px; min-width: 36px; height: 36px; padding: 8px; }
.xr-ui2-runtime .xr3-recurring-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 180px) 128px; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--xr2-border); }
.xr-ui2-runtime .xr3-recurring-row strong { display: block; overflow-wrap: anywhere; }
.xr-ui2-runtime .xr3-recurring-row > div > span { color: var(--xr2-muted); font-size: 13px; }
.xr-ui2-runtime .xr3-recurring-amount { text-align: right; overflow-wrap: anywhere; }
.xr-ui2-runtime .xr3-recurring-form { padding: 20px 0; border-bottom: 1px solid var(--xr2-border); }
.xr-ui2-runtime .xr3-recurring-form h3 { font-size: 16px; margin: 0 0 14px; }
.xr-ui2-runtime .xr3-recurring-form fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; border: 0; padding: 0; margin: 0 0 16px; }
.xr-ui2-runtime .xr3-recurring-form label { display: grid; gap: 6px; min-width: 0; }
.xr-ui2-runtime .xr3-recurring-form input,
.xr-ui2-runtime .xr3-recurring-form select { width: 100%; min-width: 0; }
.xr-ui2-runtime .xr3-recurring-retro { border-left: 3px solid #bd7c29; padding-left: 14px; max-width: 760px; }
@media (max-width: 600px) {
  .xr-ui2-runtime .xrf-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .xr-ui2-runtime .xrf-tab { min-width: 0; white-space: normal; overflow-wrap: anywhere; padding: 8px; line-height: 1.3; font-size: 12px; }
  .xr-ui2-runtime .xr3-recurring-form fieldset { grid-template-columns: minmax(0, 1fr); }
  .xr-ui2-runtime .xr3-recurring-row { grid-template-columns: minmax(0, 1fr) 112px; gap: 10px; }
  .xr-ui2-runtime .xr3-recurring-row > .xr3-recurring-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .xr-ui2-runtime .xr3-recurring-toolbar > button { margin-left: 0; }
}
.xr-ui2-runtime .xr3-personal-settings { max-width: 560px; padding: 16px 0; }
.xr-ui2-runtime .xr3-personal-settings dl { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(0, 2fr); gap: 12px; }
.xr-ui2-runtime .xr3-personal-settings dd { margin: 0; overflow-wrap: anywhere; }
.xr-ui2-runtime #personalPasswordForm { display: grid; gap: 14px; margin-top: 24px; }
.xr-ui2-runtime #personalPasswordForm label { display: grid; gap: 6px; }
.xr-ui2-runtime #personalPasswordForm input { min-width: 0; width: 100%; }
.xr-ui2-runtime #personalPasswordForm button { justify-self: start; }
.xr-ui2-runtime .xr2-drawer-head { background: var(--xr2-surface); }
.xr-ui2-runtime .xr3-drawer-facts { display: grid; grid-template-columns: minmax(100px, 1fr) minmax(0, 2fr); gap: 12px; margin: 20px 0; }
.xr-ui2-runtime .xr3-drawer-facts dt { color: var(--xr2-muted); }
.xr-ui2-runtime .xr3-drawer-facts dd { margin: 0; overflow-wrap: anywhere; }
.xr-ui2-runtime .xr3-drawer-brief h3 { font-size: 14px; margin: 20px 0 8px; }
.xr-ui2-runtime .xr-order-next-step { min-width: 0; padding: 12px 0; border-top: 2px solid var(--xr2-brand); }
.xr-ui2-runtime .xr-order-next-step .xr2-order-side-title { font-size: 14px; line-height: 1.3; }
.xr-ui2-runtime .xr-order-next-step p { margin: 6px 0; color: var(--xr2-muted); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.xr-ui2-runtime .xr-order-next-step .xr2-order-side-actions { margin-top: 8px; }
.xr-ui2-runtime .xr-order-next-step .xr2-btn { width: 100%; white-space: normal; min-height: 44px; }
.xr-ui2-runtime .xr-order-workflow-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px; }
.xr-ui2-runtime .xr-order-workflow-head > span { color: var(--xr2-muted); font-size: 12px; }
.xr-ui2-runtime .xr-order-workflow-head > strong { color: var(--xr2-text); font-size: 17px; line-height: 1.25; }
.xr-ui2-runtime .xr-order-workflow-progress { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; margin: 8px 0; }
.xr-ui2-runtime .xr-order-workflow-overview > p { margin: 8px 0; font-size: 13px; }
.xr-ui2-runtime .xr-order-workflow-shortcuts[hidden] { display: none; }
.xr-ui2-runtime .xr-client-extra { margin: 12px 0; border-top: 1px solid var(--xr2-border); padding-top: 12px; }
.xr-ui2-runtime .xr-client-extra summary, .xr-ui2-runtime .warehouse-line-details summary { cursor: pointer; padding: 8px 0; }
.xr-ui2-runtime .xr-warehouse-quick { display: grid; gap: 10px; border-bottom: 1px solid var(--xr2-border); padding: 12px 0; }
.xr-ui2-runtime .xr-order-workflow-progress > span { height: 4px; background: var(--xr2-border); border-radius: 2px; }
.xr-ui2-runtime .xr-order-workflow-progress > .is-past { background: var(--xr2-muted); }
.xr-ui2-runtime .xr-order-workflow-progress > .is-current { background: var(--xr2-brand); }
.xr-ui2-runtime .xr-order-workflow-checks { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.xr-ui2-runtime .xr-order-workflow-checks > li { display: flex; gap: 8px; align-items: start; font-size: 13px; line-height: 1.4; color: var(--xr2-text); }
.xr-ui2-runtime .xr-order-workflow-checks svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--xr2-muted); }
.xr-order-workflow-checks .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.xr-ui2-runtime .xr-order-workflow-checks .is-done svg { color: var(--xr2-brand); }
.xr-ui2-runtime .xr-order-workflow-money { display: grid; gap: 9px; margin: 14px 0 10px; padding-top: 12px; border-top: 1px solid var(--xr2-border); font-size: 13px; }
.xr-ui2-runtime .xr-order-workflow-money > div { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.xr-ui2-runtime .xr-order-workflow-money dt { color: var(--xr2-muted); }
.xr-ui2-runtime .xr-order-workflow-money dd { margin: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.xr-ui2-runtime .xr-order-workflow-shortcuts { display: flex; gap: 8px; }
.xr-ui2-runtime .xr-order-workflow-shortcuts > .xr2-btn { flex: 1; min-width: 0; font-size: 13px; padding-inline: 8px; }
.xr-ui2-runtime :is(.xr-order-workflow-payment, .xr-order-workflow-overview)[hidden] { display: none; }
.xr-ui2-runtime .xr-order-workflow-payment { margin-top: 12px; border-top: 1px solid var(--xr2-border); }
.xr-ui2-runtime .xr-order-workflow-payment .xr3-payments { margin: 0; padding: 12px 0; }
.xr-ui2-runtime .xr-order-workflow-payment h2 { font-size: 16px; }
.xr-ui2-runtime .xr-order-workflow-details > summary { cursor: pointer; padding: 8px 0; font-size: 13px; color: var(--xr2-muted); }
.xr-ui2-runtime .modal-backdrop .xr-order-workflow-dialog { position: fixed; inset: 0 0 0 auto; width: min(720px, 100%); max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; overflow-y: auto; overscroll-behavior: contain; animation: xr-workflow-in 160ms ease-out; }
.xr-ui2-runtime .xr-order-workflow-dialog .toolbar { position: sticky; bottom: 0; padding: 12px 0; background: var(--xr2-surface); z-index: 2; border-top: 1px solid var(--xr2-border); }
.xr-ui2-runtime .xr-order-workflow-dialog .warehouse-order-summary { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 8px 0; margin: 8px 0; border-block: 1px solid var(--xr2-border); background: transparent; }
.xr-ui2-runtime .xr-order-workflow-dialog .warehouse-order-summary .fact { min-height: 24px; padding: 0; background: transparent; border: 0; }
.xr-ui2-runtime .xr-order-workflow-dialog .warehouse-check-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.xr-ui2-runtime .xr-order-workflow-dialog .warehouse-check-fields > .field { grid-column: auto; min-width: 0; }
.xr-ui2-runtime .xr-order-workflow-dialog .warehouse-check-fields > :is(.span-12, .span-5, .span-7, .xr3-storage-locations) { grid-column: 1 / -1; }
.xr-ui2-runtime .xr-order-workflow-dialog .warehouse-item-card { border-radius: 6px; padding: 12px; }
.xr-ui2-runtime .xr-order-workflow-dialog .warehouse-item-card h3 { font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
@keyframes xr-workflow-in { from { transform: translateX(20px); opacity: .6; } to { transform: translateX(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .xr-ui2-runtime .modal-backdrop .xr-order-workflow-dialog { animation: none; } }
.xr-ui2-runtime .xr3-drawer-equipment { list-style: none; padding: 0; margin: 0 0 20px; }
.xr-ui2-runtime .xr3-drawer-equipment li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--xr2-border); }
.xr-ui2-runtime .xr3-drawer-equipment span { overflow-wrap: anywhere; }
.xr-ui2-runtime .xr-orders-drawer-actions { flex-wrap: wrap; }
.xr-ui2-runtime .xr-orders-drawer-actions svg,
.xr-ui2-runtime .xr3-document-toolbar svg,
.xr-ui2-runtime .xr2-drawer-body > .xr2-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.xr-ui2-runtime .xr3-drawer-documents button { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; text-align: left; background: transparent; color: var(--xr2-text); border: 0; border-bottom: 1px solid var(--xr2-border); padding: 14px 0; cursor: pointer; }
.xr-ui2-runtime .xr3-drawer-documents strong { grid-column: 1 / -1; overflow-wrap: anywhere; }
.xr-ui2-runtime .xr3-drawer-documents span { min-width: 0; overflow-wrap: anywhere; }
.xr-ui2-runtime .xr3-drawer-documents time { color: var(--xr2-muted); }
.xr-ui2-runtime .xr2-drawer.xr3-document-fullscreen { inset: 0; width: 100%; max-width: none; height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; z-index: 1200; border: 0; }
.xr-ui2-runtime .modal-backdrop:has(> .xr3-document-fullscreen) { z-index: 12000; padding: 0; }
.xr-ui2-runtime .xr3-document-toolbar { padding: 12px 16px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--xr2-border); }
.xr-ui2-runtime .xr3-document-toolbar h2 { flex: 1; min-width: 0; margin: 0; font-size: 16px; overflow-wrap: anywhere; }
.xr-ui2-runtime .xr3-document-toolbar > div { display: flex; gap: 8px; }
.xr-ui2-runtime .xr3-document-fullscreen iframe { display: block; width: 100%; height: 100%; min-height: 0; border: 0; background: #fff; }
.xr-ui2-runtime .xr3-document-error:not([hidden]) { position: absolute; bottom: 16px; left: 16px; right: 16px; margin: 0; padding: 12px; background: var(--xr2-surface); color: var(--xr2-danger); }
@media (max-width: 600px) {
  .xr-ui2-runtime .xr3-document-toolbar { flex-wrap: wrap; padding: 8px; gap: 8px; }
  .xr-ui2-runtime .xr3-document-toolbar > div { width: 100%; justify-content: flex-end; }
  .xr-ui2-runtime .xr3-document-toolbar h2 { font-size: 14px; }
}
@media (max-height: 700px) {
  .xr-ui2-runtime .xr2-sidebar { padding: 8px 12px; }
  .xr-ui2-runtime .xr2-brand { padding: 6px 0; min-height: 36px; }
  .xr-ui2-runtime .xr2-navigation { margin-top: 6px; }
  .xr-ui2-runtime .xr2-nav-button { min-height: 28px; padding: 5px 8px; }
  .xr-ui2-runtime .xr2-sidebar-footer { padding-top: 4px; }
  .xr-ui2-runtime .xr2-account-row { padding: 4px 0; }
  .xr-ui2-runtime .xr2-footer-action { margin: 0; }
}
@media (max-width: 980px) {
  .xr-ui2-runtime .xr3-shell { grid-template-columns: minmax(0, 1fr); }
  .xr-ui2-runtime .xr3-shell .xr2-sidebar { display: none; }
  .xr-ui2-runtime .xr3-sidebar-open .xr2-sidebar { display: flex; position: fixed; inset: 0 auto 0 0; width: min(288px, calc(100vw - 40px)); z-index: 1001; }
  .xr-ui2-runtime .xr3-sidebar-backdrop { display: block; position: fixed; inset: 0; width: 100%; height: 100dvh; background: #0006; border: 0; z-index: 1000; }
  .xr-ui2-runtime .xr3-sidebar-results { top: 154px; left: 12px; width: calc(100vw - 24px); max-height: calc(100dvh - 180px); }
  .xr-ui2-runtime .xr2-mobile-nav { background: var(--xr2-surface); border-color: var(--xr2-border); }
  .xr-ui2-runtime .xr2-mobile-nav-button.active { color: #596530; background: #e7eccf; }
}
/* Physical stock is a single scanning surface, with its own narrow-screen scroll. */
.ui3-warehouse-stock { min-width: 0; padding: 16px 0; border-top: 1px solid var(--xr2-border, #d6d9dd); }
.ui3-warehouse-stock h2 { margin: 0 0 12px; font-size: 18px; }
.ui3-stock-scroll { max-height: 440px; overflow: auto; }
.ui3-stock-scroll table { width: 100%; min-width: 800px; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.ui3-stock-scroll th, .ui3-stock-scroll td { padding: 10px 12px; border-bottom: 1px solid var(--xr2-border, #d6d9dd); vertical-align: middle; }
.ui3-stock-scroll thead th { position: sticky; top: 0; z-index: 1; background: var(--xr2-surface, #fff); white-space: normal; }
.ui3-stock-scroll th:first-child { width: 30%; min-width: 190px; text-align: left; }
.ui3-stock-scroll td, .ui3-stock-scroll th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.ui3-stock-scroll tfoot { font-weight: 600; }
.ui3-stock-position { background: transparent; border: 0; padding: 2px 0; color: inherit; font: inherit; text-align: left; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; overflow-wrap: anywhere; }
.ui3-stock-warning { color: var(--danger, #b42318); font-size: 13px; }
.ui3-stock-scroll small { display: block; margin-top: 4px; font-weight: 400; }
.ui3-stock-shortage { color: var(--danger, #b42318); font-weight: 700; }
html.xr-ui2-runtime[data-ui3-theme="dark"] .xr2-warehouse-grid > .xr2-panel:nth-child(n) :is(.xr2-panel-head, .xr2-compact-empty) {
  background: var(--xr2-surface-section); color: var(--xr2-text); border-color: var(--xr2-border);
}
.xr-ui2-runtime .ui3-document-workspace { min-width: 0; padding: 0; }
.xr-ui2-runtime .ui3-document-workspace .document-money-guide { border: 0 !important; border-radius: 0; background: transparent !important; padding: 0; box-shadow: none !important; }
.xr-ui2-runtime .ui3-document-workspace .document-money-guide > .panel-head { padding: 12px 0; margin: 0; background: transparent; }
.xr-ui2-runtime .ui3-document-workspace .document-money-guide h3 { font-size: 17px; }
.xr-ui2-runtime .ui3-document-amounts { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; }
.xr-ui2-runtime .ui3-document-amounts th, .xr-ui2-runtime .ui3-document-amounts td { padding: 10px 8px; border-bottom: 1px solid var(--xr2-border); }
.xr-ui2-runtime .ui3-document-amounts th { width: 60%; text-align: left; font-weight: 400; overflow-wrap: anywhere; }
.xr-ui2-runtime .ui3-document-amounts td { text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.xr-ui2-runtime .ui3-document-amounts :is(.ui3-document-grand-total, .ui3-document-rental-total) > * { font-weight: 700; }
.xr-ui2-runtime .ui3-document-amounts .ui3-document-grand-total > * { border-top: 2px solid var(--xr2-border-strong); background: var(--xr2-surface-section); }
.xr-ui2-runtime .ui3-document-workspace .document-deposit-form { margin: 12px 0 0; padding: 12px 0; border: 0; border-radius: 0; background: transparent; }
.xr-ui2-runtime .ui3-document-workspace .document-money-guide :is(h3, th, td, label) { color: var(--xr2-text) !important; }
.xr-ui2-runtime .document-money-guide :is(p, small, .subtle) { color: var(--xr2-muted); }
.xr-ui2-runtime .document-money-guide p[role="status"] { color: var(--xr2-warning); }
.xr-ui2-runtime .ui3-document-workspace .xrad-more { background: var(--xr2-surface) !important; color: var(--xr2-text); }
.xr-ui2-runtime .ui3-document-workspace .xrad-more summary { color: var(--xr2-text) !important; background: var(--xr2-surface) !important; }
.xr-ui2-runtime .xrad-document-layout .ui3-document-paper { padding: 0; overflow: auto; }
.xr-ui2-runtime .ui3-document-paper iframe { display: block; width: 100%; min-width: 760px; height: 700px; border: 0; background: #fff; color-scheme: light; }
.xr-ui2-runtime .ui3-trash-dialog { width: min(520px, calc(100vw - 32px)); min-width: 0; max-height: calc(100dvh - 32px); overflow: auto; padding: 24px; border-radius: 8px; background: var(--xr2-surface); color: var(--xr2-text); }
.xr-ui2-runtime .ui3-trash-dialog h2 { font-size: 21px; line-height: 1.25; margin: 0 0 12px; }
.xr-ui2-runtime .ui3-trash-dialog p { overflow-wrap: anywhere; }
.xr-ui2-runtime .ui3-trash-dialog dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--xr2-border); }
.xr-ui2-runtime .ui3-trash-dialog dd { margin: 0; font-variant-numeric: tabular-nums; }
.xr-ui2-runtime .ui3-trash-dialog .toolbar { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.xr-ui2-runtime .ui3-trash-dialog button { max-width: 100%; white-space: normal; height: auto; min-height: 40px; overflow-wrap: anywhere; }
.xr-ui2-runtime .ui3-trash-error { color: var(--danger, #b42318); }
html.xr-ui2-runtime[data-ui3-theme="dark"] .ui3-trash-dialog .ghost-button { background: var(--xr2-surface-section) !important; color: var(--xr2-text) !important; border-color: var(--xr2-border-strong) !important; }
html.xr-ui2-runtime[data-ui3-theme="dark"] .ui3-trash-dialog .danger-button { background: #442b2b !important; color: #ffb4ab !important; border-color: #87504a !important; }
.xr-ui2-runtime .ui3-service-facts h2 { font-size: 18px; }
.xr-ui2-runtime .ui3-service-facts table { width: 100%; table-layout: fixed; border-collapse: collapse; margin-top: 12px; }
.xr-ui2-runtime .ui3-service-facts th, .xr-ui2-runtime .ui3-service-facts td { text-align: left; border-bottom: 1px solid var(--xr2-border); padding: 8px 4px; overflow-wrap: anywhere; }
.xr-ui2-runtime .ui3-service-facts td:last-child { text-align: right; }
.xr-ui2-runtime .ui3-service-facts button { white-space: normal; max-width: 100%; }
.xr-ui2-runtime .ui3-service-dialog { width: min(480px, calc(100vw - 32px)); min-width: 0; max-height: calc(100dvh - 32px); overflow: auto; padding: 24px; border-radius: 8px; background: var(--xr2-surface); color: var(--xr2-text); }
.xr-ui2-runtime .ui3-service-dialog h2 { font-size: 20px; }
.xr-ui2-runtime .ui3-service-dialog form { display: grid; grid-template-columns: minmax(0, 1fr) !important; gap: 16px; min-width: 0; }
.xr-ui2-runtime .ui3-service-dialog form > * { grid-column: 1 / -1; min-width: 0; }
.xr-ui2-runtime .ui3-service-dialog .toolbar button { width: auto; min-width: 96px; flex: 0 0 auto; white-space: nowrap; }
.xr-ui2-runtime .ui3-service-dialog :is(input, select) { width: 100%; min-width: 0; box-sizing: border-box; }
.xr-ui2-runtime .ui3-service-dialog [role="alert"] { color: var(--danger, #b42318); }
.xr-ui2-runtime .ui3-service-dialog .toolbar { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
html.xr-ui2-runtime[data-ui3-theme="dark"] .ui3-service-dialog :is(h2, label) { color: var(--xr2-text) !important; }
html.xr-ui2-runtime[data-ui3-theme="dark"] .ui3-service-dialog :is(input, select) { background: var(--xr2-surface-section) !important; color: var(--xr2-text) !important; border-color: var(--xr2-border-strong) !important; color-scheme: dark; }
.xr-ui2-runtime .ui3-direct-expenses { border-top: 1px solid var(--xr2-border); margin-top: 20px; padding-top: 16px; }
.xr-ui2-runtime :is(.ui3-direct-expenses, .ui3-period-expected) h3 { font-size: 16px; margin: 0; }
.xr-ui2-runtime .ui3-direct-expenses small { display: block; color: var(--xr2-text-muted); }
.xr-ui2-runtime .ui3-expense-warning { color: #8a420d; font-size: 13px; line-height: 1.4; }
.xr-ui2-runtime [data-service-charge-warning] { grid-column: 1 / -1; margin: 0; }
html.xr-ui2-runtime[data-ui3-theme="dark"] .ui3-expense-warning { color: #ffcd85; }
.xr-ui2-runtime .ui3-dashboard-warehouse { min-width: 0; max-width: 100%; color: var(--xr2-text); grid-area: warehouse; }
.xr-ui2-runtime .ui3-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.56fr) minmax(0, 1fr); grid-template-areas: 'kpis kpis' 'orders warehouse' 'finance quick'; gap: 12px; min-height: 0; }
.xr-ui2-runtime .ui3-dashboard-grid > section { min-width: 0; min-height: 0; padding-top: 10px; border-top: 1px solid var(--xr2-border); }
.xr-ui2-runtime .ui3-dashboard-orders { grid-area: orders; }
.xr-ui2-runtime .ui3-dashboard-finance { grid-area: finance; }
.xr-ui2-runtime .ui3-dashboard-quick { grid-area: quick; }
.xr-ui2-runtime :is(.ui3-dashboard-finance, .ui3-dashboard-orders) { display: flex; flex-direction: column; gap: 6px; }
.xr-ui2-runtime .ui3-dashboard-finance { gap: 4px; }
.xr-ui2-runtime :is(.ui3-dashboard-finance, .ui3-dashboard-orders) header { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.xr-ui2-runtime :is(.ui3-dashboard-finance, .ui3-dashboard-orders) h2 { font-size: 18px; margin: 0; }
.xr-ui2-runtime .ui3-dashboard-grid select { min-width: 0; max-width: 100%; width: auto; flex: 1 1 170px; height: 36px; padding: 4px 8px; }
.xr-ui2-runtime .ui3-dashboard-finance-total { display: flex; justify-content: space-between; gap: 8px; font-size: 18px; line-height: 1.35; font-weight: 600; }
.xr-ui2-runtime .ui3-dashboard-finance-total span { font-size: 13px; font-weight: 400; }
.xr-ui2-runtime .ui3-dashboard-finance > [role="status"] { font-size: 13px; line-height: 1.4; }
.xr-ui2-runtime .ui3-dashboard-table-scroll { overflow: auto; min-height: 32px; max-height: 80px; }
.xr-ui2-runtime .ui3-dashboard-table-scroll table { width: 100%; border-collapse: collapse; font-size: 13px; }
.xr-ui2-runtime .ui3-dashboard-table-scroll :is(th, td) { padding: 6px 8px; text-align: right; border-bottom: 1px solid var(--xr2-border); }
.xr-ui2-runtime .ui3-dashboard-table-scroll :is(th, td):first-child { text-align: left; overflow-wrap: anywhere; }
.xr-ui2-runtime .ui3-dashboard-causes { display: flex; flex-direction: column; max-height: 64px; overflow: auto; font-size: 12px; }
.xr-ui2-runtime .ui3-dashboard-employee { grid-template-areas: 'orders warehouse' 'quick quick'; }
.xr-ui2-runtime .ui3-dashboard-status { grid-area: kpis; }
.xr-ui2-runtime .ui3-dashboard-employee .ui3-dashboard-status { grid-area: orders; }
.xr-ui2-runtime .ui3-dashboard-kpis { grid-area: kpis; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.xr-ui2-runtime .ui3-dashboard-kpi { display: flex; flex-direction: column; text-align: left; gap: 7px; min-width: 0; min-height: 102px; padding: 12px; border: 1px solid var(--xr2-border); border-radius: 8px; color: var(--xr2-text); background: linear-gradient(125deg, var(--xr2-surface-raised), var(--xr2-surface)); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--xr2-text) 7%, transparent), var(--xr2-shadow); cursor: pointer; }
.xr-ui2-runtime .ui3-dashboard-kpi > span { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.xr-ui2-runtime .ui3-dashboard-kpi svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--xr2-brand); }
.xr-ui2-runtime .ui3-dashboard-kpi svg:last-child { margin-left: auto; }
.xr-ui2-runtime .ui3-dashboard-kpi > strong { font-size: 28px; line-height: 1.2; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.xr-ui2-runtime .ui3-dashboard-kpi small { color: var(--xr2-muted); font-size: 12px; margin-top: auto; }
.xr-ui2-runtime .ui3-dashboard-order-counts { display: flex; flex-wrap: wrap; gap: 6px; }
.xr-ui2-runtime .ui3-dashboard-order-counts button { display: grid; gap: 3px; flex: 1 1 80px; border: 1px solid var(--xr2-border); border-radius: 6px; background: var(--xr2-surface-soft); color: var(--xr2-text); padding: 6px; cursor: pointer; text-align: left; }
.xr-ui2-runtime .ui3-dashboard-order-counts button[aria-pressed='true'] { background: var(--xr2-brand-soft); border-color: var(--xr2-brand); }
.xr-ui2-runtime .ui3-dashboard-order-counts strong { font-size: 20px; }
.xr-ui2-runtime .ui3-dashboard-order-counts span { font-size: 12px; color: var(--xr2-muted); }
.xr-ui2-runtime .ui3-dashboard-quick h2 { font-size: 18px; margin: 0 0 12px; }
.xr-ui2-runtime .ui3-dashboard-quick > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.xr-ui2-runtime .ui3-dashboard-quick button { flex-direction: column; justify-content: center; align-items: center; gap: 6px; min-height: 68px; white-space: normal; text-align: center; }
.xr-ui2-runtime .ui3-dashboard-detail summary { padding: 6px 0; font-size: 13px; cursor: pointer; color: var(--xr2-brand); }
.xr-ui2-runtime .ui3-dashboard-empty { color: var(--xr2-muted); font-size: 13px; margin: 8px 0; }
.xr-ui2-runtime .ui3-dashboard-chart { display: flex; gap: 12px; overflow: auto; min-height: 100px; border-bottom: 1px solid var(--xr2-border); padding: 4px 0; }
.xr-ui2-runtime .ui3-dashboard-chart-day { flex: 1 0 46px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--xr2-muted); }
.xr-ui2-runtime .ui3-dashboard-chart-day > div { display: flex; align-items: flex-end; justify-content: center; gap: 4px; height: 60px; width: 100%; }
.xr-ui2-runtime .ui3-dashboard-bar { width: 18px; max-width: 40%; border-radius: 3px 3px 0 0; background: var(--xr2-brand); }
.xr-ui2-runtime .ui3-dashboard-bar.directExpenses { background: var(--xr2-muted); }
.xr-ui2-runtime .ui3-dashboard-chart-legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; color: var(--xr2-muted); }
.xr-ui2-runtime .ui3-dashboard-chart-legend span::before { content: ''; display: inline-block; width: 8px; height: 8px; background: var(--xr2-brand); margin-right: 6px; }
.xr-ui2-runtime .ui3-dashboard-chart-legend span:last-child::before { background: var(--xr2-muted); }
.xr-ui2-runtime .ui3-chart-values { font-size: 10px; max-width: 130px; text-align: center; }
html.xr-ui2-runtime[data-ui3-theme="dark"] .ui3-dashboard-grid select { background: var(--xr2-surface-section) !important; color: var(--xr2-text) !important; color-scheme: dark; }
@media (max-width: 900px) {
  .xr-ui2-runtime .ui3-dashboard-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'kpis' 'orders' 'warehouse' 'finance' 'quick'; }
  .xr-ui2-runtime .ui3-dashboard-employee { grid-template-areas: 'orders' 'warehouse' 'quick'; }
  .xr-ui2-runtime .ui3-dashboard-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xr-ui2-runtime .ui3-dashboard-kpi { padding: 12px; }
  .xr-ui2-runtime .ui3-dashboard-kpi > span { min-height: 32px; }
  .xr-ui2-runtime .ui3-dashboard-kpi > strong { font-size: 26px; }
  .xr-ui2-runtime .ui3-dashboard-quick > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xr-ui2-runtime .ui3-dashboard-table-scroll { max-height: 210px; flex: none; }
}
.xr-ui2-runtime .ui3-dashboard-warehouse header { display: flex; align-items: center; gap: 12px; }
.xr-ui2-runtime .ui3-dashboard-warehouse header { flex-wrap: wrap; }
.xr-ui2-runtime .ui3-dashboard-warehouse header select { width: auto; flex: 1 1 180px; max-width: 320px; min-width: 0; background: var(--xr2-surface); color: var(--xr2-text); border-color: var(--xr2-border); }
.xr-ui2-runtime .ui3-dashboard-warehouse .ui3-warehouse-comparison { min-width: 520px; }
.xr-ui2-runtime .ui3-warehouse-comparison th { white-space: normal; overflow-wrap: anywhere; }
.xr-ui2-runtime .ui3-warehouse-compare > div { display: flex; flex-wrap: wrap; gap: 12px; max-height: 120px; overflow: auto; padding: 8px 0; }
.xr-ui2-runtime .ui3-warehouse-compare label { display: flex; align-items: center; gap: 6px; overflow-wrap: anywhere; }
.xr-ui2-runtime .ui3-warehouse-compare input { width: 16px; height: 16px; flex: 0 0 16px; }
.xr-ui2-runtime :is(.ui3-warehouse-top, .ui3-warehouse-deficit-top) h3 { font-size: 15px; margin: 12px 0; }
.xr-ui2-runtime .ui3-warehouse-rank-scroll { max-height: 264px; overflow: auto; }
.xr-ui2-runtime .ui3-warehouse-rank-scroll table { width: 100%; min-width: 520px; border-collapse: collapse; }
.xr-ui2-runtime .ui3-warehouse-rank-scroll th, .xr-ui2-runtime .ui3-warehouse-rank-scroll td { text-align: right; padding: 8px; border-bottom: 1px solid var(--xr2-border); }
.xr-ui2-runtime .ui3-warehouse-rank-scroll th:first-child { text-align: left; max-width: 240px; overflow-wrap: anywhere; }
.xr-ui2-runtime .ui3-warehouse-deficit-top table { min-width: 0; table-layout: fixed; font-size: 13px; }
.xr-ui2-runtime .ui3-warehouse-deficit-top :is(th, td) { overflow-wrap: anywhere; }
.xr-ui2-runtime .ui3-warehouse-deficit-top th:first-child { width: 40%; }
.xr-ui2-runtime .ui3-warehouse-sources table { min-width: 760px; table-layout: fixed; }
.xr-ui2-runtime .ui3-warehouse-sources th:first-child { width: 150px; overflow-wrap: normal; }
.xr-ui2-runtime .ui3-dashboard-warehouse h2 { margin: 0; font-size: 18px; }
.xr-ui2-runtime .ui3-dashboard-warehouse header > span { color: var(--xr2-text-muted); font-size: 13px; }
.xr-ui2-runtime .ui3-warehouse-refresh { margin-left: auto; width: 40px; height: 40px; padding: 9px; flex: 0 0 40px; }
.xr-ui2-runtime .ui3-warehouse-refresh svg { width: 18px; height: 18px; }
.xr-ui2-runtime :is(.ui3-dashboard-month, .ui3-warehouse-position) { display: grid; gap: 4px; min-width: 0; max-width: 100%; font-size: 13px; }
.xr-ui2-runtime .ui3-warehouse-position { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; width: 100%; margin: 8px 0; }
.xr-ui2-runtime :is(.ui3-dashboard-month input, .ui3-warehouse-position select) { box-sizing: border-box; min-width: 0; max-width: 100%; width: 100%; height: 40px; border: 1px solid var(--xr2-border); border-radius: 6px; padding: 6px 10px; background: var(--xr2-surface); color: var(--xr2-text); }
.xr-ui2-runtime .ui3-warehouse-status { margin: 6px 0; font-size: 13px; line-height: 1.4; color: var(--xr2-text-muted); }
.xr-ui2-runtime .ui3-warehouse-totals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 8px 0; }
.xr-ui2-runtime .ui3-warehouse-totals dt { font-size: 12px; line-height: 1.4; color: var(--xr2-text-muted); }
.xr-ui2-runtime .ui3-warehouse-totals dd { margin: 4px 0; font-size: 20px; line-height: 1.3; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.xr-ui2-runtime .ui3-warehouse-totals dd:has(> span) { font-size: 14px; font-weight: 500; }
.xr-ui2-runtime .ui3-warehouse-totals small { display: block; font-size: 11px; line-height: 1.4; }
.xr-ui2-runtime .ui3-warehouse-sources > summary { padding: 6px 0; font-size: 13px; line-height: 1.4; cursor: pointer; color: var(--xr2-brand); }
.xr-ui2-runtime .ui3-warehouse-days-scroll { height: 264px; overflow: auto; width: 100%; min-width: 0; max-width: 100%; border-block: 1px solid var(--xr2-border); }
.xr-ui2-runtime .ui3-warehouse-days { width: 100%; min-width: 1040px; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 12px; }
.xr-ui2-runtime .ui3-warehouse-days :is(td, th) { padding: 9px 8px; border-bottom: 1px solid var(--xr2-border); text-align: right; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.xr-ui2-runtime .ui3-warehouse-days th:first-child { position: sticky; left: 0; z-index: 1; background: var(--xr2-surface); text-align: left; width: 60px; }
.xr-ui2-runtime .ui3-warehouse-days thead th { position: sticky; top: 0; z-index: 1; background: var(--xr2-surface-section); font-weight: 600; }
.xr-ui2-runtime .ui3-warehouse-days thead th:first-child { z-index: 2; background: var(--xr2-surface-section); }
html.xr-ui2-runtime[data-ui3-theme="dark"] :is(.ui3-dashboard-month input, .ui3-warehouse-position select, .ui3-dashboard-warehouse header select) { background: var(--xr2-surface-section) !important; color: var(--xr2-text) !important; color-scheme: dark; }
@media (max-width: 600px) {
  .xr-ui2-runtime .ui3-warehouse-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
  .xr-ui2-runtime .ui3-dashboard-month { width: 160px; }
}
.xr-ui2-runtime .ui3-finance-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 16px; padding: 12px 0; }
.xr-ui2-runtime :is(.xrf-finance-view, .xrf-finance-body, .ui3-main-finance) { min-width: 0; max-width: 100%; box-sizing: border-box; }
.xr-ui2-runtime .xrf-finance-body { grid-template-columns: minmax(0, 1fr); }
.xr-ui2-runtime .ui3-finance-toolbar label { display: grid; gap: 6px; min-width: 0; }
.xr-ui2-runtime .ui3-finance-toolbar :is(input, select) { min-height: 40px; max-width: 100%; min-width: 0; background: var(--xr2-surface); color: var(--xr2-text); border: 1px solid var(--xr2-border); border-radius: 6px; padding: 8px; }
.xr-ui2-runtime .ui3-finance-toolbar strong { padding-bottom: 10px; font-size: 14px; }
.xr-ui2-runtime .ui3-finance-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; gap: 0 24px; }
.xr-ui2-runtime .ui3-finance-totals > div { padding: 16px 0; border-bottom: 1px solid var(--xr2-border); }
.xr-ui2-runtime .ui3-finance-totals dt { color: var(--xr2-text-muted); font-size: 13px; overflow-wrap: anywhere; }
.xr-ui2-runtime .ui3-finance-totals dd { font-size: 24px; font-weight: 600; margin: 8px 0 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.xr-ui2-runtime .ui3-finance-totals [data-finance-metric="netProfit"] dd { color: var(--xr2-text); }
.xr-ui2-runtime .ui3-finance-preliminary { display: grid; gap: 8px; padding: 16px 0; color: var(--xr2-text); }
.xr-ui2-runtime .ui3-finance-preliminary button { background: none; border: 0; color: inherit; text-align: left; padding: 0; text-decoration: underline; text-underline-offset: 3px; white-space: normal; width: fit-content; max-width: 100%; cursor: pointer; }
.xr-ui2-runtime .ui3-finance-table-scroll { overflow: auto; width: 100%; min-width: 0; max-width: 100%; margin-top: 20px; }
.xr-ui2-runtime .ui3-finance-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 13px; }
.xr-ui2-runtime .ui3-finance-table :is(th, td) { padding: 12px 8px; border-bottom: 1px solid var(--xr2-border); text-align: right; font-variant-numeric: tabular-nums; }
.xr-ui2-runtime .ui3-finance-table :is(th, td):nth-child(-n+3) { text-align: left; }
.xr-ui2-runtime .ui3-finance-table small { display: block; margin-top: 4px; color: var(--xr2-text-muted); }
.xr-ui2-runtime .ui3-finance-table button.ui3-stock-position { border: 0; padding: 0; border-radius: 0; background: transparent; color: var(--xr2-text); box-shadow: none; text-decoration: underline; }
.xr-ui2-runtime .ui3-finance-issues { display: grid; gap: 16px; padding: 8px 0 24px; }
html.xr-ui2-runtime[data-ui3-theme="dark"] .ui3-finance-toolbar :is(input, select) { background: var(--xr2-surface-section) !important; color: var(--xr2-text) !important; border-color: var(--xr2-border-strong) !important; color-scheme: dark; }
@media (max-width: 600px) {
  .xr-ui2-runtime .ui3-finance-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  .xr-ui2-runtime .ui3-finance-totals dd { font-size: 20px; }
  .xr-ui2-runtime .ui3-finance-toolbar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xr-ui2-runtime .ui3-finance-toolbar label { width: 100%; }
  .xr-ui2-runtime .ui3-finance-toolbar strong { grid-column: 1 / -1; }
  .xr-ui2-runtime .xr3-compensation-summary dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
