@font-face{font-family:Geist;font-style:normal;font-weight:100 900;font-display:swap;src:url(geist.woff2) format("woff2")}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(inter-0.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(inter-1.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(inter-2.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(inter-3.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(inter-4.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(inter-5.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(inter-6.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;
}

/* Maia / Mauve — preset b3ZN6aElGK. Business status colors remain semantic. */
:root {
  --maia-background: oklch(1 0 0);
  --maia-foreground: oklch(.145 .008 326);
  --maia-primary: oklch(.212 .019 322.12);
  --maia-muted: oklch(.96 .003 325.6);
  --maia-muted-foreground: oklch(.542 .034 322.5);
  --maia-border: oklch(.922 .005 325.62);
  --maia-ring: oklch(.711 .019 323.02);
  --maia-font-body: Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
  --maia-font-heading: Geist,Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
}
html,body,#root {background:var(--maia-background);color:var(--maia-foreground)}
body,button,input,select,textarea {font-family:var(--maia-font-body)!important;-webkit-font-smoothing:antialiased}
body .app-shell,body .app-header,body .app-sidebar,body .app-main {font-family:var(--maia-font-body)!important;color:var(--maia-foreground)!important}
body .app-shell {background:var(--maia-background)!important}
body .app-main {background:var(--maia-muted)!important;padding:24px!important;border:1px solid var(--maia-border);border-right:0;border-bottom:0;border-radius:20px 0 0 0}
body .app-main>div {max-width:1560px!important}
body .app-header {min-height:68px;height:auto!important;padding:12px 24px!important;border:0!important;background:var(--maia-background)!important;gap:12px!important}
body .app-sidebar {background:var(--maia-background)!important;border-right:0!important;box-shadow:none!important}
body .app-sidebar .nav-item {min-height:40px;margin:2px 0;padding:10px 12px;border:0!important;border-radius:12px;color:var(--maia-muted-foreground);font-size:13px;font-weight:500;gap:10px}
body .app-sidebar .nav-item:hover {background:var(--maia-muted);color:var(--maia-foreground)}
body .app-sidebar .nav-item.active {background:var(--maia-muted)!important;color:var(--maia-foreground)!important;font-weight:600}
body .app-sidebar [style*="border-top"] {border-color:var(--maia-border)!important}
body .app-sidebar img {box-shadow:none!important}
body .app-shell h1,body .app-shell h2,body .app-shell h3,body .app-shell h4 {font-family:var(--maia-font-heading)!important;color:var(--maia-foreground);font-weight:600!important;letter-spacing:-.025em!important}
body .app-shell h2 {font-size:22px!important;line-height:1.3!important}
body .app-main p {line-height:1.6}
body .app-main .card,body .app-main .kpi-hero-card {background:var(--maia-background)!important;border:0!important;box-shadow:0 0 0 1px color-mix(in oklch,var(--maia-foreground) 10%,transparent)!important;border-radius:18px!important;transform:none!important}
body .app-main .card-lift:hover,body .app-main .kpi-hero-card:hover {transform:none!important;box-shadow:0 0 0 1px color-mix(in oklch,var(--maia-foreground) 20%,transparent)!important}
body .app-main .kpi-hero-card {padding:24px!important;min-height:164px!important}
body .app-main .kpi-hero-card>div[style*="position:absolute"] {display:none!important}
body .app-main .kpi-hero-card [style*="font-size:clamp"] {font-family:var(--maia-font-heading)!important;font-size:36px!important;line-height:1.05!important;font-weight:600!important;letter-spacing:-.035em!important;text-shadow:none!important}
body .app-main [style*="font-weight:800"],body .app-main [style*="font-weight:760"] {font-weight:600!important}
body .app-main .ops-summary {border:1px solid var(--maia-border)!important;border-radius:18px!important;background:var(--maia-background)!important;box-shadow:none!important}
body .app-main .ops-metric {padding:16px 20px!important;min-height:64px!important;border-color:var(--maia-border)!important}
body .app-main .ops-metric-label {font-size:12px!important;font-weight:500!important}
body .app-main .ops-metric-value {font-family:var(--maia-font-heading)!important;font-size:22px!important;font-weight:600!important}
body .app-shell .btn {border-radius:999px!important;min-height:36px;font-size:13px;font-weight:500!important;box-shadow:none!important;transition:background-color .15s,color .15s,border-color .15s,opacity .15s;transform:none!important}
body .app-shell .btn-primary {background:var(--maia-primary)!important;border-color:var(--maia-primary)!important;color:#fff!important}
body .app-shell .btn-primary:hover:not(:disabled) {background:color-mix(in oklch,var(--maia-primary) 88%,white)!important}
body .app-shell .btn-secondary {background:var(--maia-background)!important;border:1px solid var(--maia-border)!important;color:var(--maia-foreground)!important}
body .app-shell .btn-secondary:hover:not(:disabled),body .app-shell .btn-ghost:hover:not(:disabled) {background:var(--maia-muted)!important}
body .app-shell .btn-sm {min-height:32px;padding:0 12px!important}
body .app-shell .btn-xs {min-height:28px;padding:0 10px!important;font-size:12px!important}
body .app-shell button:disabled {opacity:.45;cursor:not-allowed}
body .app-shell button,body .app-shell a {touch-action:manipulation}
body .app-shell :is(button,a,input,textarea,select):focus-visible,.maia-select-trigger:focus-visible {outline:3px solid color-mix(in oklch,var(--maia-ring) 55%,transparent)!important;outline-offset:2px}
body .app-shell .input,body .app-shell .maia-select-trigger {min-height:36px;border-radius:14px!important;border:1px solid var(--maia-border)!important;background:color-mix(in oklch,var(--maia-border) 30%,transparent)!important;color:var(--maia-foreground)!important;font-size:13px!important;box-shadow:none!important;line-height:1.5}
body .app-shell .input {padding:8px 12px!important}
body .app-shell textarea.input {min-height:80px;border-radius:14px!important}
body .app-shell .input:focus {border-color:var(--maia-ring)!important;box-shadow:0 0 0 3px color-mix(in oklch,var(--maia-ring) 20%,transparent)!important}
body .app-shell .input::placeholder {color:var(--maia-muted-foreground);opacity:.8}
body .app-shell .form-label {font-size:13px!important;font-weight:500!important;text-transform:none!important;letter-spacing:0!important;color:var(--maia-foreground)!important}
body .app-shell .form-group {gap:8px}
body .app-shell .ops-toolbar {gap:12px!important;margin:20px 0 16px!important}
body .app-shell .ops-search {min-height:40px;height:40px!important;border:1px solid var(--maia-border)!important;border-radius:999px!important;background:var(--maia-background)!important;padding:0 14px!important;box-shadow:none!important}
body .app-shell .ops-search .input {border:0!important;background:transparent!important;min-height:36px;height:36px!important;padding:0!important;box-shadow:none!important}
body .app-shell .ops-filter {border-radius:999px!important}
body .app-shell .ops-table-shell {border:1px solid var(--maia-border)!important;border-radius:18px!important;background:var(--maia-background)!important;box-shadow:none!important}
body .app-shell table {font-size:13px;border-collapse:separate;border-spacing:0}
body .app-shell th {font-family:var(--maia-font-body)!important;font-size:12px!important;font-weight:500!important;letter-spacing:0!important;text-transform:none!important;color:var(--maia-muted-foreground)!important;background:var(--maia-muted)!important;padding:12px 10px!important;border-color:var(--maia-border)!important;box-shadow:none!important}
body .app-shell td {font-size:13px;line-height:1.45;padding:12px 10px!important;border-color:var(--maia-border)!important}
body .app-shell tbody tr:hover td {background:color-mix(in oklch,var(--maia-muted) 60%,transparent)!important}
body .app-shell .badge {padding:3px 8px;border-radius:999px!important;font-size:11px;font-weight:500!important}
body .app-shell .tab-bar {padding:4px;border-radius:999px;background:var(--maia-muted);gap:4px}
body .app-shell .tab {padding:7px 14px;border-radius:999px;font-size:13px;font-weight:500}
body .app-shell .tab.active {background:var(--maia-background);color:var(--maia-foreground);box-shadow:0 1px 2px #0000000a}
body .app-shell .ops-action-btn,body .app-shell .ops-note-control {border-radius:999px!important;box-shadow:none!important;font-weight:500!important}
body .app-shell .ops-note-control {border-style:solid!important}
body .app-shell .header-exchange-rates {border:0!important;box-shadow:none!important;padding:8px 12px!important;border-radius:999px!important;background:var(--maia-muted)!important;gap:8px!important}
body .app-shell .header-exchange-rates [style*="color:#2563EB"] {color:var(--maia-foreground)!important}
body .app-shell .app-header>a,body .app-shell .app-header button,body .app-shell .app-header .hide-mobile a {box-shadow:none!important;transform:none!important}
body .app-shell .store-picker {border:1px solid var(--maia-border)!important;background:var(--maia-muted)!important;box-shadow:none!important;border-radius:14px!important;min-height:42px!important}
body .app-shell .store-picker__icon {background:var(--maia-primary)!important;box-shadow:none!important;border-radius:10px!important}
body .app-shell .store-picker__name {color:var(--maia-foreground)!important;font-family:var(--maia-font-body)!important;font-weight:600!important}
body .app-shell .store-picker__label,body .app-shell .store-picker__switch {color:var(--maia-muted-foreground)!important}
.maia-language {display:inline-flex;align-items:center;gap:2px;padding:3px;border:1px solid var(--maia-border);background:var(--maia-muted);border-radius:999px;flex:0 0 auto;font-family:var(--maia-font-body)}
.maia-language button {border:0;border-radius:999px;background:transparent;color:var(--maia-muted-foreground);padding:4px 9px;min-width:32px;height:28px;font:500 12px var(--maia-font-body);cursor:pointer}
.maia-language button[aria-pressed="true"] {background:var(--maia-background);color:var(--maia-foreground);box-shadow:0 1px 2px #0000000d!important}
.maia-language button:disabled {opacity:.5}
.maia-language-error {position:fixed;right:20px;bottom:20px;max-width:360px;z-index:11000;padding:14px 18px;background:#fff;border:1px solid #f1b4b4;border-radius:14px;color:#b42318;box-shadow:0 8px 28px #0001;font:13px var(--maia-font-body)}
.maia-select {display:inline-flex;position:relative;min-width:0;vertical-align:middle;flex-shrink:0}
.maia-select-trigger {display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:7px 12px;cursor:pointer;text-align:left;font:500 13px var(--maia-font-body);white-space:nowrap}
.maia-select-trigger>span:first-child {overflow:hidden;text-overflow:ellipsis;min-width:0}
.maia-select-trigger svg {width:14px;height:14px;flex:none;color:var(--maia-muted-foreground)}
select[data-maia-native] {position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;margin:0!important;padding:0!important;opacity:0!important;pointer-events:none!important;border:0!important}
.maia-select-menu {position:fixed;z-index:12000;padding:6px;max-height:300px;overflow:auto;background:#fff;border:1px solid var(--maia-border);border-radius:14px;box-shadow:0 8px 30px #211b231a;font:13px var(--maia-font-body);animation:maia-pop .12s ease}
.maia-select-option {display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;border:0;border-radius:9px;background:transparent;text-align:left;color:var(--maia-foreground);padding:8px 10px;min-height:34px;cursor:pointer;font:inherit}
.maia-select-option[data-active="true"],.maia-select-option:hover {background:var(--maia-muted)}
.maia-select-option:disabled {opacity:.4;cursor:not-allowed}
.maia-select-option svg {width:14px;height:14px;flex-shrink:0}
.maia-select.store-picker__select {position:absolute!important;inset:0!important;width:100%!important;height:100%!important;opacity:1!important;padding:0!important;border:0!important}
.store-picker__select .maia-select-trigger {height:100%;opacity:0}
.store-picker:focus-within {outline:3px solid color-mix(in oklch,var(--maia-ring) 40%,transparent);outline-offset:2px}
.maia-confirm {border:1px solid var(--maia-border);border-radius:18px;background:#fff;color:var(--maia-foreground);padding:24px;width:min(460px,calc(100vw - 32px));box-shadow:0 20px 80px #17101930;font:14px/1.6 var(--maia-font-body)}
.maia-confirm::backdrop {background:#18131d66;backdrop-filter:blur(2px)}
.maia-confirm p {margin:0 0 24px;white-space:pre-wrap}
.maia-confirm footer {display:flex;gap:8px;justify-content:flex-end}
.maia-confirm button {height:36px;border:1px solid var(--maia-border);border-radius:999px;padding:0 16px;background:#fff;font:500 14px var(--maia-font-body);cursor:pointer}
.maia-confirm button[data-confirm] {background:var(--maia-primary);border-color:var(--maia-primary);color:#fff}
body .app-shell [role="dialog"] {border-radius:18px!important;border-color:var(--maia-border)!important;box-shadow:0 20px 70px #211b2326!important}
@keyframes maia-pop {from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1250px) {body .app-shell .header-utilities{flex-wrap:wrap;gap:8px!important}body .app-shell .app-header {padding:10px 16px!important}.header-exchange-rates{flex-wrap:wrap}.header-utilities>.hide-mobile {margin-left:0!important}}
@media(max-width:768px) {body .app-shell .app-header {padding:10px 12px!important;gap:8px!important;flex-wrap:wrap}body .app-shell .app-main{padding:16px 12px!important;border-radius:16px 16px 0 0}body .app-shell .ops-toolbar{grid-template-columns:1fr 1fr!important}body .app-shell .ops-search{grid-column:1/-1}body .app-shell .ops-metric{padding:12px!important}body .app-shell .ops-metric-value{font-size:18px!important}body .app-shell .maia-select-trigger,body .app-shell .btn,body .app-shell .input{min-height:40px}.maia-language{margin-left:auto}.maia-select-menu{max-width:calc(100vw - 24px)}}
@media(prefers-reduced-motion:reduce) {*,*::before,*::after {scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* The native input classes describe the select's footprint only. */
body .app-shell .maia-select.input {padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;min-height:0}
body .app-shell .maia-select.ops-filter .maia-select-trigger {border-radius:999px!important}
body .app-shell .kpi-hero-card>div[style*="position: absolute"],body .app-shell .trend-chart-card>div[style*="position: absolute"] {display:none!important}
body .app-shell .kpi-hero-card [style*="font-size: clamp"] {font-family:var(--maia-font-heading)!important;font-size:36px!important;line-height:1.15!important;font-weight:600!important;letter-spacing:-.035em!important;text-shadow:none!important}
body .app-shell .kpi-hero-card [style*="font-weight: 800"],body .app-shell .trend-chart-card [style*="font-weight: 800"] {font-weight:600!important}
body .app-shell .trend-chart-card {padding:24px!important}
body .app-shell .trend-chart-card [style*="font-size: 1.72rem"] {font-family:var(--maia-font-heading)!important;font-size:20px!important;font-weight:600!important}
body .app-shell .header-utilities {flex-wrap:wrap;gap:8px!important}
body .app-shell .header-exchange-rates [style*="color: rgb(37, 99, 235)"],body .app-shell .store-picker__action {color:var(--maia-foreground)!important}
body .app-sidebar nav a {border-left:0!important;color:var(--maia-muted-foreground)!important;padding-left:12px!important}
body .app-sidebar nav a[aria-current="page"] {background:var(--maia-muted)!important;color:var(--maia-foreground)!important}
body .app-sidebar nav a:hover {background:var(--maia-muted)!important;color:var(--maia-foreground)!important}
body .maia-pending col:nth-child(5) {width:20%!important}
body .maia-pending col:nth-child(9) {width:8.8%!important}
body .maia-pending col:nth-child(11) {width:8.7%!important}
html[lang="en"] .maia-pending table {min-width:1400px!important}
html[lang="en"] .maia-pending col:nth-child(5) {width:16%!important}
html[lang="en"] .maia-pending col:nth-child(6) {width:5.5%!important}
html[lang="en"] .maia-pending col:nth-child(8) {width:8.8%!important}
html[lang="en"] .maia-pending col:nth-child(9) {width:10.8%!important}
body .app-shell [style*="font-family: ui-monospace"] {font-family:var(--maia-font-body)!important;font-variant-numeric:tabular-nums}
body .app-shell .trend-chart-card svg path[stroke="#05070A"] {stroke:oklch(.546 .245 262.881);filter:none}
body .app-shell .trend-chart-card svg circle[fill="#05070A"] {fill:oklch(.546 .245 262.881)}
body .app-shell .trend-chart-card #trendTotalArea stop {stop-color:oklch(.546 .245 262.881)}
body .app-shell .trend-chart-card svg rect[fill="#D6DEEA"] {fill:oklch(.809 .105 251.813)}
body .app-shell .trend-chart-card [style*="box-shadow"] {box-shadow:none!important}
body .app-shell .trend-chart-card button,body .app-shell .trend-chart-card [style*="border-radius: 18px"] {border-color:var(--maia-border)!important}
.maia-confirm {position:fixed;inset:0;margin:auto;height:fit-content}
/* Shared component rhythm across every ERP page. */
body .app-shell .maia-page-header {gap:16px;align-items:flex-start!important;margin-bottom:24px!important;flex-wrap:wrap}
body .app-shell .maia-page-header>div:first-child {flex:1;min-width:0}
body .app-shell .maia-page-header p {margin-top:6px!important;font-size:13px!important;color:var(--maia-muted-foreground)!important;line-height:1.5}
body .app-shell .maia-page-header>div:last-child:not(:first-child) {display:flex;align-items:center;gap:8px}
body .app-shell .maia-search {display:flex;align-items:center;gap:10px!important;padding:0 14px!important;border-radius:999px!important;min-height:40px;margin-bottom:16px!important;box-shadow:none!important;border:1px solid var(--maia-border)!important}
body .app-shell .maia-search .input,body .app-shell .maia-search .maia-control {background:transparent!important;border:0!important;padding:0!important;box-shadow:none!important;min-height:38px!important;min-width:0}
body .app-shell .maia-button {font-family:var(--maia-font-body)!important;font-weight:500!important;letter-spacing:0!important;box-shadow:none!important}
body .app-shell .maia-button:not(.card):not(.tab):not(.ph-metric) {border-radius:999px!important}
body .app-shell .maia-control {font-family:var(--maia-font-body)!important;font-size:13px!important;line-height:1.5;border:1px solid var(--maia-border)!important;border-radius:14px!important;background:color-mix(in oklch,var(--maia-border) 30%,transparent)!important;color:var(--maia-foreground);box-shadow:none!important}
body .app-shell .maia-control:focus-visible {outline:3px solid color-mix(in oklch,var(--maia-ring) 40%,transparent)!important;outline-offset:2px}
body .app-shell .ops-search .maia-control,body .app-shell .ph-search .maia-control {border:0!important;background:transparent!important;box-shadow:none!important}
body .app-shell .card:has(>form) {padding:24px!important}
body .app-shell th {font-size:13px!important;line-height:1.5;vertical-align:middle}
body .app-shell td {line-height:1.5;font-variant-numeric:tabular-nums}
body .app-shell tr[aria-hidden="true"]>td {padding:0!important;border:0!important}
body .app-shell tbody :is([style*="font-weight: 760"],[style*="font-weight: 800"],[style*="font-weight: 850"],[style*="font-weight: 900"]) {font-weight:600!important}
body .app-shell .maia-dashboard-dialog {border:1px solid var(--maia-border)!important;border-radius:18px!important;background:var(--maia-background)!important;box-shadow:0 20px 60px #211b2326!important}
body .app-shell .maia-dashboard-dialog>div:first-child {padding:24px!important;border-color:var(--maia-border)!important}
body .app-shell .maia-price-drawer {background:var(--maia-muted)!important;border-color:var(--maia-border)!important;box-shadow:-12px 0 36px #211b231a!important}
body .app-shell .maia-price-drawer section {border-color:var(--maia-border)!important;border-radius:18px!important}
body .app-shell .price-history-board {--ph-border:var(--maia-border);--ph-muted:var(--maia-muted-foreground);--ph-soft:var(--maia-muted)}
body .app-shell .price-history-board :is(.ph-metrics,.ph-table-shell) {border-color:var(--maia-border)!important;border-radius:18px!important;background:var(--maia-background)!important}
body .app-shell .price-history-board .ph-metrics {margin-bottom:20px!important}
body .app-shell .price-history-board .ph-metric {padding:16px 20px!important;border-radius:0!important;background:var(--maia-background)!important;border-color:var(--maia-border)!important}
body .app-shell .price-history-board .ph-metric.active {background:var(--maia-muted)!important;box-shadow:inset 0 -2px 0 var(--maia-primary)!important}
body .app-shell .price-history-board .ph-toolbar {gap:12px!important;margin:16px 0!important}
body .app-shell .price-history-board .ph-search {height:40px!important;padding:0 14px!important;border-radius:999px!important;border-color:var(--maia-border)!important}
body .app-shell .price-history-board .maia-select.ph-control {padding:0!important;border:0!important;background:transparent!important;height:40px!important}
body .app-shell .price-history-board .ph-control .maia-select-trigger {min-height:40px;border-radius:999px!important}
body .app-shell .maia-messages {background:transparent!important;height:auto!important;overflow:visible!important}
body .app-shell .maia-messages .customer-message-grid {height:calc(100dvh - 152px)!important;min-height:540px;gap:16px!important;grid-template-columns:minmax(320px,380px) minmax(0,1fr)!important}
body .app-shell .maia-messages .customer-message-pane {background:var(--maia-background)!important;border:1px solid var(--maia-border)!important;border-radius:18px!important;box-shadow:none!important}
body .app-shell .maia-messages .customer-message-pane>div:first-child {flex-wrap:wrap;gap:12px!important;padding:20px!important}
body .app-shell .maia-messages .customer-message-pane>div:first-child>div:first-child {font-family:var(--maia-font-heading)!important;font-weight:600!important}
body .app-shell .maia-messages .maia-message-filter {min-height:32px!important;border:1px solid var(--maia-border)!important;background:var(--maia-background)!important;color:var(--maia-muted-foreground)!important}
body .app-shell .maia-messages .maia-message-filter[aria-pressed="true"] {background:var(--maia-muted)!important;color:var(--maia-foreground)!important;border-color:var(--maia-border)!important}
body .app-shell .maia-messages [data-chat-key] {border:1px solid transparent!important;border-radius:14px!important;margin:4px 10px!important;padding:12px!important}
body .app-shell .maia-messages [data-chat-key][data-selected="true"] {background:var(--maia-muted)!important;border-color:var(--maia-border)!important}
body .app-shell .maia-messages [data-chat-key]:hover {background:var(--maia-muted)!important}
body .app-shell .maia-messages .maia-message-primary {background:var(--maia-primary)!important;color:#fff!important}
body .app-shell .maia-messages textarea {min-width:0;resize:vertical}
body .app-shell .maia-messages .maia-control {border-width:1px!important}
body .app-shell .assistant-metric {border:1px solid var(--maia-border)!important;border-radius:18px!important;box-shadow:none!important;padding:20px!important}
body .app-shell .assistant-list-grid section {border:1px solid var(--maia-border)!important;border-radius:18px!important;padding:20px!important}
.maia-login {font-family:var(--maia-font-body);background:var(--maia-muted)!important}
.maia-login h1 {font-family:var(--maia-font-heading)!important;font-size:24px!important;font-weight:600!important;color:var(--maia-foreground)!important}
.maia-login .input {border:1px solid var(--maia-border)!important;border-radius:14px!important;background:var(--maia-muted)!important;min-height:40px;font-size:14px!important}
.maia-login .btn-primary {border-radius:999px!important;background:var(--maia-primary)!important;color:#fff!important;box-shadow:none!important;font-weight:500!important}
.maia-login .fade-up>div:has(>form) {border:1px solid var(--maia-border)!important;border-radius:18px!important;padding:24px!important;box-shadow:none!important}
@media(max-width:1250px) {
  body .app-shell .app-header {flex-wrap:wrap}
  body .app-shell .header-utilities {flex-basis:100%!important;justify-content:flex-start!important}
  body .app-shell .maia-messages .customer-message-grid {grid-template-columns:minmax(280px,320px) minmax(0,1fr)!important}
}
@media(max-width:920px) {
  body .app-shell .maia-messages .customer-message-grid {grid-template-columns:1fr!important;height:auto!important;min-height:0}
  body .app-shell .maia-messages .customer-message-pane {height:calc(100dvh - 160px)!important;min-height:520px!important}
  body .app-shell .maia-messages[data-conversation-open="true"] .customer-message-pane:first-child {display:none!important}
  body .app-shell .maia-messages[data-conversation-open="false"] .customer-message-pane:last-child {display:none!important}
}
@media(max-width:768px) {
  body .app-shell .maia-page-header {gap:12px}
  body .app-shell .maia-page-header>div:first-child {flex-basis:100%}
  body .app-shell .maia-page-header>div:last-child:not(:first-child) {margin-left:0!important;flex-wrap:wrap}
  body .app-shell .maia-product-detail>div[style*="grid-template-columns: 1fr 1fr"] {grid-template-columns:1fr!important}
  body .app-shell .maia-product-detail .card {min-width:0;overflow:auto}
  body .app-shell .maia-product-detail .card span {overflow-wrap:anywhere;min-width:0}
  body .app-shell .maia-sales [style*="padding: 0.28rem 0.35rem"] {flex-wrap:wrap}
  body .app-shell .maia-messages .customer-message-pane>div:first-child {padding:16px!important}
  body .app-shell .maia-messages .customer-message-pane>div:first-child>div {flex-wrap:wrap}
  body .app-shell .maia-control {min-height:40px}
  body .app-shell .maia-button.hamburger {width:36px;min-height:40px}
}

body .app-shell .maia-messages .maia-message-search {height:40px!important;border:1px solid var(--maia-border)!important;border-radius:999px!important;background:var(--maia-background)!important;padding:0 14px!important}
body .app-shell .maia-messages .maia-message-search .maia-control {border:0!important;background:transparent!important;min-height:36px!important;padding:0!important;border-radius:0!important;box-shadow:none!important}
body .app-shell .maia-messages .maia-button:not(.btn):not(.maia-message-primary) {color:var(--maia-muted-foreground)!important}

.maia-confirm .maia-dialog-input {display:block;width:100%;min-height:40px;margin:0 0 24px;border:1px solid var(--maia-border);border-radius:14px;background:var(--maia-muted);padding:8px 12px;font:14px/1.5 var(--maia-font-body);color:var(--maia-foreground)}
.maia-confirm .maia-dialog-input:focus-visible {outline:3px solid color-mix(in oklch,var(--maia-ring) 40%,transparent);outline-offset:2px}
body .app-shell th {white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:normal}
@media(min-width:769px) {
  html[lang="en"] .app-shell .maia-pending .ops-toolbar {grid-template-columns:minmax(240px,1fr) 160px 180px!important}
  html[lang="en"] .app-shell .maia-products .ops-toolbar {grid-template-columns:minmax(240px,1fr) 180px!important}
  html[lang="en"] .app-shell .maia-sales .maia-select {width:160px!important}
  html[lang="en"] .app-shell .price-history-board .ph-toolbar {grid-template-columns:minmax(240px,1fr) 160px 180px 190px!important}
}
@media(min-width:769px) and (max-width:1250px) {
  html[lang="en"] .app-shell .price-history-board .ph-toolbar {grid-template-columns:1fr 1fr!important}
  body .app-shell .price-history-board .ph-search {grid-column:1/-1}
}
.maia-login .fade-up>div:first-child>div {background:var(--maia-primary)!important;color:#fff!important;box-shadow:none!important}

body .app-shell .maia-purchases .card>div:has(>table) {max-width:100%;overflow-x:auto!important}
.maia-suggestions {border-color:var(--maia-border)!important;border-radius:14px!important;background:var(--maia-background)!important;box-shadow:0 8px 30px #211b231a!important}
.maia-suggestions>div {border-color:var(--maia-border)!important;border-radius:8px;padding:10px!important}
.maia-suggestions>div:hover {background:var(--maia-muted)!important}
body .app-shell .assistant-dashboard section {border-color:var(--maia-border)!important;border-radius:18px!important;padding:20px!important;box-shadow:none!important}

body .app-shell .trend-chart-card span[style*="width: 8px"][style*="background: rgb(15, 23, 42)"] {background:oklch(.546 .245 262.881)!important}

/* Numeric summaries follow beUI's inset audience cards. */
:root {--erp-stat-size:30px;--erp-stat-border:#e5e5e5;--erp-stat-group:#f5f5f5;--erp-stat-card:#fcfcfc}
body .app-shell .erp-metric-group {display:grid!important;gap:8px!important;padding:8px!important;border:1px solid var(--erp-stat-border)!important;border-radius:24px!important;background:var(--erp-stat-group)!important;box-shadow:none!important;overflow:visible!important;align-items:stretch!important;margin-bottom:20px!important}
body .app-shell .erp-hero-metrics {grid-template-columns:repeat(2,minmax(0,1fr))}
body .app-shell :is(.erp-trend-metrics,.assistant-metrics.erp-metric-group,.ops-summary.erp-metric-group) {grid-template-columns:repeat(3,minmax(0,1fr))}
body .app-shell .erp-month-metrics {grid-template-columns:repeat(2,minmax(0,1fr))}
body .app-shell .erp-return-metrics {grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
body .app-shell :is(.erp-stat-card,.assistant-metric,.erp-metric-group .ops-metric,.erp-metric-group .ph-metric) {min-width:0;border:1px solid var(--erp-stat-border)!important;border-radius:16px!important;background:var(--erp-stat-card)!important;box-shadow:none!important;padding:16px!important;transform:none!important;text-align:left}
body .app-shell .kpi-hero-card.erp-stat-card {display:flex;flex-direction:column;gap:8px;min-height:160px!important;color:#171717}
body .app-shell .erp-stat-card[role="button"] {cursor:pointer}
body .app-shell :is(.erp-stat-card[role="button"],.assistant-metric[role="button"],.ph-metric):hover {border-color:#c9c9c9!important;background:#fff!important;box-shadow:none!important}
body .app-shell .erp-stat-label {font-family:var(--maia-font-body);font-size:14px;font-weight:400;color:#737373;line-height:1.4}
body .app-shell .erp-stat-value {display:flex;align-items:baseline;flex-wrap:wrap;gap:4px;min-width:0;font-family:var(--maia-font-heading)!important;font-size:var(--erp-stat-size)!important;font-weight:600!important;line-height:1.15!important;letter-spacing:-.035em!important;font-variant-numeric:tabular-nums!important;text-shadow:none!important;overflow:visible!important;text-overflow:clip!important;white-space:normal!important}
body .app-shell .erp-stat-unit {font-family:var(--maia-font-body);font-size:13px;line-height:1.3;font-weight:500;color:#737373;letter-spacing:0}
body .app-shell .erp-stat-caption {font-size:10px;line-height:1.4;letter-spacing:.08em;color:#8a8a8a;font-weight:500}
body .app-shell .erp-stat-details {margin-top:auto;font-size:12px;line-height:1.5;color:#737373}
body .app-shell .erp-stat-details>div {gap:6px!important}
body .app-shell .erp-stat-details [style*="font-size"] {font-size:12px!important}
body .app-shell .erp-metric-group .ops-metric {display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start!important;gap:8px;min-height:104px!important}
body .app-shell .erp-metric-group .ops-metric-label {font-size:14px!important;line-height:1.4;color:#737373;font-weight:400!important;border-left:0!important;padding-left:0!important}
body .app-shell .erp-metric-group .ph-metric {border-right:1px solid var(--erp-stat-border)!important;min-height:112px}
body .app-shell .erp-metric-group .ph-metric.active {border-color:var(--maia-primary)!important;background:#fff!important;box-shadow:inset 0 -2px 0 var(--maia-primary)!important}
body .app-shell .erp-metric-group .ph-metric>div:first-child>span:first-child {font-size:13px!important;font-weight:400!important}
body .app-shell .erp-trend-metric {gap:12px!important;min-height:112px!important;align-items:flex-start!important}
body .app-shell .erp-trend-metric>div:first-child {width:28px!important;height:28px!important;border-radius:8px!important}
body .app-shell .erp-trend-metric>div:first-child svg {width:16px;height:16px}
body .app-shell .erp-trend-metric .erp-stat-value {margin-top:8px}
body .app-shell .erp-metric-group .assistant-metric {min-height:136px!important;gap:8px!important}
.erp-number {display:inline-block;font-variant-numeric:tabular-nums;white-space:nowrap}
.erp-number-accessible {position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(min-width:1200px) {body .app-shell .erp-hero-metrics {grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(min-width:1600px) {body .app-shell .erp-month-metrics {grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1100px) {body .app-shell .erp-trend-metrics {grid-template-columns:1fr}}
@media(max-width:720px) {body .app-shell :is(.erp-hero-metrics,.assistant-metrics.erp-metric-group) {grid-template-columns:1fr}}
@media(max-width:560px) {body .app-shell :is(.ops-summary.erp-metric-group,.erp-month-metrics) {grid-template-columns:1fr}body .app-shell .erp-metric-group {border-radius:20px!important}body .app-shell .erp-stat-card {min-height:136px!important}}
@media(prefers-reduced-motion:reduce) {.erp-stat-card {animation:none!important;transition:none!important}}
body .app-shell .erp-trend-metric>div:last-child>div:first-child,body .app-shell .erp-month-metric>div:first-child,body .app-shell .assistant-metric>div:first-child>div:first-child {font-size:14px!important;font-weight:400!important;color:#737373!important;line-height:1.4!important}
@media(max-width:720px) {body .app-shell .assistant-dashboard {min-width:0!important}}

/* Shared detail refinements, including narrow layouts and long content. */
body .app-sidebar .nav-item {min-width:0;min-height:40px;padding:8px 10px!important;gap:6px!important;font-size:13px!important}
body .app-sidebar .nav-label {flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body .app-sidebar .nav-count {display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:18px;height:18px;padding:0 4px;border:1px solid #fecaca;border-radius:999px;background:#fef2f2;color:#b91c1c;font:600 10.5px/1 var(--maia-font-body);font-variant-numeric:tabular-nums;white-space:nowrap}
body .app-sidebar.sidebar-mode-icons .nav-item {justify-content:center;padding:8px 0!important}
body .app-sidebar.sidebar-mode-icons .nav-count {position:absolute;right:2px;top:2px;min-width:16px;height:16px;padding:0 3px;font-size:9px}
body .app-shell .erp-feedback {align-items:flex-start!important;gap:10px!important;border-radius:14px!important}
body .app-shell .erp-feedback>span:first-child {margin-top:8px}
body .app-shell .erp-feedback-text {min-width:0;align-self:center;overflow-wrap:anywhere;line-height:1.5}
body .app-shell .erp-close {display:inline-flex;align-items:center;justify-content:center;flex:none;width:32px;min-width:32px;min-height:32px;padding:0!important;border:0;background:transparent;cursor:pointer}
body .app-shell .erp-close:hover {background:var(--maia-muted)!important}
body .app-shell .maia-page-header {flex-wrap:wrap;gap:12px 20px}
body .app-shell .maia-page-header>div:first-child {min-width:0}
body .app-shell .erp-page-actions {display:flex;align-items:center;flex-wrap:wrap;gap:8px;flex-shrink:0;max-width:100%}
body .app-shell .maia-search {min-width:0;max-width:100%;gap:10px!important;border:1px solid var(--maia-border)!important;box-shadow:none!important;border-radius:999px!important;padding:0 14px!important;min-height:40px}
body .app-shell .maia-search .input {min-width:0;min-height:36px;border:0!important;background:transparent!important;padding:6px 0!important;box-shadow:none!important}
body .app-shell .maia-search:focus-within {outline:3px solid color-mix(in oklch,var(--maia-ring) 35%,transparent);outline-offset:2px}
body .app-shell .erp-empty {padding:48px 24px!important;text-align:center;overflow-wrap:anywhere}
body .app-shell .maia-messages .erp-message-delete {display:inline-flex;align-items:center;justify-content:center;min-height:32px!important;padding:0 10px!important;color:var(--maia-muted-foreground)!important}
body .app-shell .maia-messages .erp-message-delete:hover {color:#b91c1c!important;background:#fef2f2!important}
body .app-shell .erp-settings-overview {grid-template-columns:repeat(2,minmax(0,1fr))!important}
body .app-shell .erp-settings-overview .card {min-width:0}
body .app-shell .erp-settings-overview .card span {min-width:0;overflow-wrap:anywhere}
body .app-shell .erp-settings-api-header {gap:12px;flex-wrap:wrap}
body .app-shell .erp-settings-api-header>div:first-child {flex:1;min-width:200px}
body .app-shell .erp-settings-api-header>div:last-child {flex-wrap:wrap;gap:12px!important}
body .app-shell .maia-product-detail>div:first-of-type {flex-wrap:wrap}
@media(max-width:768px) {
  body .app-shell .erp-settings-overview {grid-template-columns:1fr!important}
  body .app-shell .erp-empty {padding:36px 20px!important}
  body .app-shell .erp-close {width:40px;min-width:40px;min-height:40px}
  body .app-shell .maia-messages .erp-message-delete {min-height:40px!important}
}
body .app-shell .erp-return-platforms {grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr))!important}
body .app-shell .erp-return-platforms>.card {min-width:0}
body .app-shell .erp-conversation-title {min-width:0!important;max-width:100%!important;flex:1 1 180px}
@media(max-width:560px) {
  body .app-shell .erp-return-platform {grid-template-columns:minmax(0,1fr)!important}
  body .app-shell .erp-return-platform>div:first-child {justify-self:center}
}
body .app-shell .erp-return-reasons>div {flex-direction:column;align-items:flex-start!important;gap:4px!important}
body .app-shell .erp-return-reasons>div>span:first-child {white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.4}

/* Sales trend uses restrained chart chrome and dense, aligned readouts. */
body .app-shell .erp-trend-chart {margin-top:8px;padding:20px 16px 16px;border:1px solid var(--maia-border);border-radius:16px;background:var(--maia-background);min-width:0;color:var(--maia-foreground);font-variant-numeric:tabular-nums}
body .app-shell .erp-chart-heading {display:flex;justify-content:space-between;gap:16px;padding:0 4px 8px;font-size:12px;font-weight:500;color:var(--maia-muted-foreground)}
body .app-shell .erp-chart-plot {position:relative;min-width:0;touch-action:pan-y;border-radius:8px;outline-offset:4px}
body .app-shell .erp-chart-plot:focus-visible {outline:2px solid var(--maia-ring)}
body .app-shell .erp-chart-svg {display:block;width:100%;height:300px;overflow:visible;font-family:var(--maia-font-body)}
body .app-shell .erp-chart-grid {stroke:var(--maia-border);stroke-opacity:.65;stroke-width:1;vector-effect:non-scaling-stroke}
body .app-shell .erp-chart-tick {fill:var(--maia-muted-foreground);font:400 11px var(--maia-font-body);letter-spacing:0}
body .app-shell .erp-chart-date {font-size:11px}
body .app-shell .erp-chart-total-line {stroke-width:2.25;stroke-linecap:round;stroke-linejoin:round}
body .app-shell .erp-chart-platform-line {stroke-width:1.35;stroke-linecap:round;stroke-linejoin:round;opacity:.8}
body .app-shell .erp-chart-bar {transition:opacity .15s ease}
body .app-shell .erp-chart-cursor {fill:var(--maia-muted);fill-opacity:.65;pointer-events:none}
body .app-shell .erp-chart-guide {stroke:var(--maia-muted-foreground);stroke-width:1;stroke-opacity:.45;stroke-dasharray:3 4;vector-effect:non-scaling-stroke}
body .app-shell .erp-chart-legends {display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px 24px;padding:12px 4px 0;border-top:1px solid var(--maia-border)}
body .app-shell .erp-chart-legend {display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;min-width:0;font-size:11px;line-height:1.5;color:var(--maia-muted-foreground)}
body .app-shell .erp-chart-legend>span {display:inline-flex;align-items:center;gap:6px}
body .app-shell .erp-chart-legend-label {color:var(--maia-foreground);font-weight:500}
body .app-shell .erp-chart-key-bar {display:inline-block;flex:none;width:8px;height:8px;border-radius:2px}
body .app-shell .erp-chart-key-line {display:inline-block;flex:none;width:14px;height:2px;border-radius:1px}
body .app-shell .erp-chart-tooltip {position:absolute;left:var(--tooltip-left);top:4px;width:var(--tooltip-width);max-width:calc(100% - 16px);z-index:5;padding:12px;border:1px solid var(--maia-border);border-radius:12px;background:var(--maia-background);box-shadow:0 4px 20px #211b231a;pointer-events:none;font-size:11px;line-height:1.5}
body .app-shell .erp-chart-tip-title {display:flex;justify-content:space-between;gap:8px;margin-bottom:10px;font-size:12px;font-weight:600}
body .app-shell .erp-chart-tip-title>span {font-size:11px;font-weight:400;color:var(--maia-muted-foreground)}
body .app-shell :is(.erp-chart-tip-columns,.erp-chart-tip-row) {display:grid;grid-template-columns:minmax(0,1fr) minmax(76px,auto) 34px;align-items:center;gap:8px}
body .app-shell .erp-chart-tip-columns {padding-bottom:5px;color:var(--maia-muted-foreground);font-size:10px}
body .app-shell .erp-chart-tip-columns>span:not(:first-child) {text-align:right}
body .app-shell .erp-chart-tip-row {padding:4px 0}
body .app-shell .erp-chart-tip-row.is-total {padding:6px 0;margin-bottom:4px;border-bottom:1px solid var(--maia-border);font-weight:600}
body .app-shell .erp-chart-tip-name {display:flex;align-items:center;gap:7px;min-width:0;overflow-wrap:anywhere}
body .app-shell .erp-chart-tip-name>i {display:inline-block;flex:none;width:3px;height:12px;border-radius:2px}
body .app-shell .erp-chart-tip-money {text-align:right;font-weight:500;white-space:nowrap}
body .app-shell .erp-chart-tip-qty {text-align:right;color:var(--maia-muted-foreground);white-space:nowrap}
body .app-shell .erp-chart-tip-section {margin-top:6px;padding-top:7px;border-top:1px solid var(--maia-border);color:var(--maia-muted-foreground);font-size:10px}
body .app-shell .erp-trend-switch {background:var(--maia-muted)!important;border-color:var(--maia-border)!important;gap:2px!important}
body .app-shell .erp-trend-switch button {min-height:32px;padding:6px 12px!important;font-size:12px!important;font-weight:500!important;box-shadow:none!important;color:var(--maia-muted-foreground)!important;background:transparent!important}
body .app-shell .erp-trend-switch button[aria-pressed="true"] {color:var(--maia-foreground)!important;background:var(--maia-background)!important;box-shadow:0 1px 3px #211b2310!important}
@media(max-width:560px) {
  body .app-shell .trend-chart-card {padding:16px!important}
  body .app-shell .erp-trend-chart {padding:14px 8px 12px}
  body .app-shell .erp-chart-heading {font-size:11px}
  body .app-shell .erp-chart-tooltip {position:relative;left:auto;top:auto;max-width:100%;width:100%;margin:4px 0 12px;box-shadow:none}
  body .app-shell .erp-chart-legends {flex-direction:column;gap:10px}
}
body .app-shell .erp-trend-header {gap:16px!important;margin-bottom:20px!important}
body .app-shell .erp-trend-subtitle {font-size:13px!important;font-weight:400!important;color:var(--maia-muted-foreground)!important;line-height:1.6}
body .app-shell .erp-trend-breakdown {grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr))!important;gap:12px!important;margin-top:16px!important}
body .app-shell .erp-trend-breakdown>div {min-width:0;min-height:112px!important;gap:12px!important;padding:16px!important;border-radius:14px!important;background:var(--maia-background)!important;border-color:var(--maia-border)!important;box-shadow:none!important}
body .app-shell .erp-trend-breakdown>div>svg {width:48px;height:48px}
body .app-shell .erp-trend-breakdown>div>div:last-child>div:first-child {font-size:13px!important;font-weight:500!important;line-height:1.45;color:var(--maia-foreground)!important}
body .app-shell .erp-trend-breakdown>div>div:last-child>div:not(:first-child) {font-size:12px!important;font-weight:400!important;line-height:1.5;color:var(--maia-muted-foreground)!important}
@media(max-width:1100px) {
  body .app-shell .erp-metric-group.erp-trend-metrics {grid-template-columns:minmax(0,1fr)!important}
}
@media(max-width:560px) {
  body .app-shell .erp-trend-metrics .erp-stat-card {padding:12px!important}
}
@media(max-width:560px) {
  body .app-shell .erp-trend-metric {flex-direction:column}
  body .app-shell .erp-trend-metric>div:last-child {width:100%}
}

/* Focus belongs to the complete field, including a search icon or selector. */
:root {--erp-input-focus:var(--maia-muted-foreground)}
body .app-shell .erp-search-frame {min-width:0;border:1px solid var(--maia-border)!important;border-radius:14px;box-shadow:none!important}
body .app-shell .erp-sync-search {padding:0 10px;min-height:36px}
body .app-shell .erp-search-frame .maia-control {min-width:0;flex:1;border:0!important;background:transparent!important;box-shadow:none!important}
body .app-shell .maia-control:is(:focus,:focus-visible),
body .app-shell .maia-select-trigger:is(:focus,:focus-visible),
body .app-shell .maia-select:focus-within>.maia-select-trigger,
body .maia-login .input:is(:focus,:focus-visible),
body .maia-confirm .maia-dialog-input:is(:focus,:focus-visible) {
  border-color:var(--erp-input-focus)!important;
  border-style:solid!important;
  outline:none!important;
  box-shadow:none!important;
}
body .app-shell :is(.ops-search,.ph-search,.maia-search,.maia-message-search,.erp-search-frame,.store-picker):focus-within {
  border-color:var(--erp-input-focus)!important;
  outline:none!important;
  box-shadow:none!important;
}
body .app-shell :is(.ops-search,.ph-search,.maia-search,.maia-message-search,.erp-search-frame,.store-picker) :is(.maia-control,.maia-select-trigger):is(:focus,:focus-visible) {
  border:0!important;
  outline:none!important;
  box-shadow:none!important;
}

/* Pending orders use document scrolling and a single compact summary row. */
html:has(.erp-pending-document),body:has(.erp-pending-document),body:has(.erp-pending-document) #root {height:auto;min-height:100%}
body:has(.erp-pending-document) {overflow:auto}
body .erp-pending-document {height:auto!important;min-height:100dvh;overflow:visible!important;align-items:stretch}
body .erp-pending-document .app-main-col {overflow:visible!important;min-height:100dvh}
body .erp-pending-document .app-main {overflow:visible!important}
body .erp-pending-document .app-header {position:static!important}
body .erp-pending-document .maia-pending {animation:none!important;transform:none!important}
body .app-shell .maia-pending .erp-pending-summary {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px!important;margin:0 0 16px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important}
body .app-shell .maia-pending .erp-pending-summary .ops-metric {display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;min-width:0;min-height:80px!important;padding:12px 16px!important;border:1px solid var(--maia-border)!important;border-radius:14px;background:var(--maia-background)}
body .app-shell .maia-pending .erp-pending-summary .ops-metric-label {font-size:13px!important;font-weight:400!important;line-height:1.4;color:var(--maia-muted-foreground);border-left:0!important;padding-left:0!important}
body .app-shell .maia-pending .ops-toolbar {margin:0 0 16px!important}
body .app-shell .maia-pending .ops-table-shell {max-height:none!important;overflow:auto!important;overscroll-behavior:auto}
body .app-shell .maia-pending thead th {position:static!important}
body .app-shell .erp-pending-fixed-head {position:fixed;z-index:32;overflow:hidden;background:var(--maia-muted);box-shadow:0 1px 0 var(--maia-border),0 4px 12px #211b230a;pointer-events:none}
body .app-shell .erp-pending-fixed-head table {table-layout:fixed;border-collapse:separate;border-spacing:0;margin:0}
body .app-shell .erp-pending-fixed-head th {position:static!important}
body .app-shell .erp-pending-backtop {position:fixed;z-index:33;transform:translateX(-50%)!important;display:inline-flex;align-items:center;gap:5px;padding:0 12px!important;min-height:30px;font-size:12px!important;color:var(--maia-foreground)!important;background:var(--maia-background)!important;border:1px solid var(--maia-border)!important;box-shadow:0 2px 8px #211b2312!important}
body .app-shell .erp-pending-backtop-arrow {display:inline-flex;transform:rotate(180deg)}
body .app-shell :is(.erp-pending-fixed-head,.erp-pending-backtop)[hidden] {display:none!important}
@media(min-width:769px) {body .erp-pending-document .app-sidebar {position:sticky;top:0;height:100dvh;align-self:flex-start}}
@media(max-width:560px) {
  body .app-shell .maia-pending .erp-pending-summary {gap:8px!important}
  body .app-shell .maia-pending .erp-pending-summary .ops-metric {min-height:88px!important;padding:10px!important}
  body .app-shell .maia-pending .erp-pending-summary .ops-metric-label {font-size:12px!important;min-height:2.8em}
}
body .app-shell .maia-pending .ops-table-shell {scrollbar-width:none}
body .app-shell .maia-pending .ops-table-shell::-webkit-scrollbar {height:0}
body .app-shell .erp-pending-xscroll {position:fixed;bottom:0;z-index:34;height:12px;overflow-x:auto;overflow-y:hidden;background:var(--maia-background);border-top:1px solid var(--maia-border);scrollbar-width:thin}
body .app-shell .erp-pending-xscroll::-webkit-scrollbar {height:10px}
body .app-shell .erp-pending-xscroll-space {height:1px;pointer-events:none}
body .app-shell .erp-pending-xscroll[hidden] {display:none!important}
@media(max-width:560px) {body .app-shell .erp-pending-backtop {min-height:36px}}

@media(max-width:560px) {body .app-shell .erp-access-token-value {flex-basis:100%!important}}
