/* R11.81 Theme Center + holiday skins. Semantic danger/success/warning colors stay untouched. */
body.erp-tabler-shell{
  --r81-page:#f4f7fb;--r81-surface:#ffffff;--r81-surface-soft:#f7f9fc;--r81-sidebar:#132238;--r81-sidebar-hover:#1a2e48;--r81-primary:#245ca6;--r81-primary-soft:#eaf2ff;--r81-border:#dce3eb;--r81-text:#17263a;--r81-muted:#748399;--r81-glow:rgba(36,92,166,.10);
  background:var(--r81-page)!important;color:var(--r81-text)!important
}
body[data-theme="rice"]{--r81-page:#f7f2e9;--r81-surface:#fffdfa;--r81-surface-soft:#f8f3eb;--r81-sidebar:#3d352c;--r81-sidebar-hover:#554a3d;--r81-primary:#8a6a42;--r81-primary-soft:#f2e7d7;--r81-border:#e6dacb;--r81-text:#3d352c;--r81-muted:#817466;--r81-glow:rgba(138,106,66,.10)}
body[data-theme="mint"]{--r81-page:#f1faf6;--r81-surface:#fff;--r81-surface-soft:#f2f9f5;--r81-sidebar:#214d40;--r81-sidebar-hover:#2b6251;--r81-primary:#2f8f6b;--r81-primary-soft:#e4f5ed;--r81-border:#d5e8df;--r81-text:#214d40;--r81-muted:#6d8178;--r81-glow:rgba(47,143,107,.11)}
body[data-theme="new_year"]{--r81-page:#f4f7ff;--r81-surface:#fff;--r81-surface-soft:#f3f5ff;--r81-sidebar:#24305e;--r81-sidebar-hover:#32417a;--r81-primary:#5468d4;--r81-primary-soft:#e9edff;--r81-border:#dce2f5;--r81-text:#253158;--r81-muted:#7480a1;--r81-glow:rgba(84,104,212,.12)}
body[data-theme="spring_festival"]{--r81-page:#fff8ef;--r81-surface:#fffdf8;--r81-surface-soft:#fff5e9;--r81-sidebar:#641d24;--r81-sidebar-hover:#81252e;--r81-primary:#b4232f;--r81-primary-soft:#fde9e6;--r81-border:#ead8c6;--r81-text:#4d2823;--r81-muted:#8d7468;--r81-glow:rgba(180,35,47,.10)}
body[data-theme="lantern"]{--r81-page:#fff7ed;--r81-surface:#fffdfa;--r81-surface-soft:#fff3e5;--r81-sidebar:#693226;--r81-sidebar-hover:#844332;--r81-primary:#c94d2b;--r81-primary-soft:#ffeadf;--r81-border:#ecd9ca;--r81-text:#4f3128;--r81-muted:#8b776d;--r81-glow:rgba(201,77,43,.10)}
body[data-theme="qingming"]{--r81-page:#f4f8f4;--r81-surface:#fff;--r81-surface-soft:#f2f6f3;--r81-sidebar:#3e5548;--r81-sidebar-hover:#516c5d;--r81-primary:#5d7f69;--r81-primary-soft:#e7efe9;--r81-border:#d8e2da;--r81-text:#35483d;--r81-muted:#738078;--r81-glow:rgba(93,127,105,.10)}
body[data-theme="dragon_boat"]{--r81-page:#f3f8ef;--r81-surface:#fffefa;--r81-surface-soft:#f0f6ea;--r81-sidebar:#314f36;--r81-sidebar-hover:#416647;--r81-primary:#4e7c46;--r81-primary-soft:#e4f0df;--r81-border:#d8e4d2;--r81-text:#304434;--r81-muted:#718075;--r81-glow:rgba(78,124,70,.10)}
body[data-theme="mid_autumn"]{--r81-page:#f8f7f1;--r81-surface:#fff;--r81-surface-soft:#f5f4ed;--r81-sidebar:#263650;--r81-sidebar-hover:#34496c;--r81-primary:#37537f;--r81-primary-soft:#e9edf4;--r81-border:#e2dfd2;--r81-text:#27364e;--r81-muted:#78808b;--r81-glow:rgba(198,154,69,.12)}
body[data-theme="national_day"]{--r81-page:#fff8f5;--r81-surface:#fff;--r81-surface-soft:#fff3ef;--r81-sidebar:#671d22;--r81-sidebar-hover:#84262c;--r81-primary:#c52b32;--r81-primary-soft:#fbe9e8;--r81-border:#ead8d2;--r81-text:#4f2929;--r81-muted:#8b7471;--r81-glow:rgba(197,43,50,.10)}
body[data-theme="christmas"]{--r81-page:#f7faf8;--r81-surface:#fff;--r81-surface-soft:#f1f7f3;--r81-sidebar:#244b3a;--r81-sidebar-hover:#32644e;--r81-primary:#2f6b50;--r81-primary-soft:#e5f0e9;--r81-border:#d9e6dd;--r81-text:#294338;--r81-muted:#748179;--r81-glow:rgba(47,107,80,.10)}

/* Global shell only: status red/green/orange classes are deliberately not overridden. */
body.erp-tabler-shell .erp-page-wrapper,body.erp-tabler-shell .erp-page-body{background:var(--r81-page)!important}
body.erp-tabler-shell .erp-sidebar{background:var(--r81-sidebar)!important}
body.erp-tabler-shell .erp-sidebar .nav-link:hover{background:var(--r81-sidebar-hover)!important}
body.erp-tabler-shell .erp-sidebar .nav-link.active{background:var(--r81-primary)!important}
body.erp-tabler-shell .erp-brand-mark{color:var(--r81-sidebar)!important}
body.erp-tabler-shell .erp-page-header,body.erp-tabler-shell .erp-topbar{background:var(--r81-surface)!important;border-color:var(--r81-border)!important}
body.erp-tabler-shell .erp-page-header .page-title{color:var(--r81-text)!important}
body.erp-tabler-shell .erp-page-header .page-pretitle{color:var(--r81-muted)!important}
body.erp-tabler-shell .card,body.erp-tabler-shell .fin-panel,body.erp-tabler-shell .v137-warehouse-hero.rc4-hero,body.erp-tabler-shell .v137-action,body.erp-tabler-shell .v137-doc-row,body.erp-tabler-shell .rc4-record-toolbar{background:var(--r81-surface)!important;border-color:var(--r81-border)!important}
body.erp-tabler-shell .table thead th{background:var(--r81-surface-soft)!important}
body.erp-tabler-shell .btn-primary,body.erp-tabler-shell .btn.primary,body.erp-tabler-shell .r1180-ai-entry{background:var(--r81-primary)!important;border-color:var(--r81-primary)!important;color:#fff!important}
body.erp-tabler-shell .v137-action.primary,body.erp-tabler-shell .rc4-entry-card.primary{background:var(--r81-primary-soft)!important;border-color:color-mix(in srgb,var(--r81-primary) 32%,white)!important;color:var(--r81-primary)!important}

/* Holiday accent is intentionally tiny and decorative. */
body[data-theme="spring_festival"] .erp-brand-copy strong::after{content:" · 新春";color:#f1c36e;font-size:10px;font-weight:600}
body[data-theme="lantern"] .erp-brand-copy strong::after{content:" · 元宵";color:#ffd08a;font-size:10px;font-weight:600}
body[data-theme="qingming"] .erp-brand-copy strong::after{content:" · 清明";color:#bdd0c2;font-size:10px;font-weight:600}
body[data-theme="dragon_boat"] .erp-brand-copy strong::after{content:" · 端午";color:#c4ddb9;font-size:10px;font-weight:600}
body[data-theme="mid_autumn"] .erp-brand-copy strong::after{content:" · 中秋";color:#e9c77d;font-size:10px;font-weight:600}
body[data-theme="national_day"] .erp-brand-copy strong::after{content:" · 国庆";color:#f0ca70;font-size:10px;font-weight:600}
body[data-theme="christmas"] .erp-brand-copy strong::after{content:" · 圣诞";color:#d9eee0;font-size:10px;font-weight:600}
body[data-theme="new_year"] .erp-brand-copy strong::after{content:" · 新年";color:#dbe2ff;font-size:10px;font-weight:600}

.erp-sidebar-user-actions{display:flex;flex-direction:column;align-items:flex-end;gap:4px}.erp-sidebar-user-actions a{font-size:11px;color:#9fb3ca;text-decoration:none;white-space:nowrap}.erp-sidebar-user-actions a:hover{color:#fff}.r1181-sidebar-theme{display:inline-flex;align-items:center;gap:4px}

/* Theme Center */
.r1181-current{padding:18px 20px;display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:14px}.r1181-current small,.r1181-current p{color:#748399}.r1181-current h3{font-size:24px;margin:4px 0}.r1181-current p{margin:0}.r1181-current-badges{display:flex;gap:7px;flex-wrap:wrap}.r1181-current-badges span{border:1px solid var(--r81-border);background:var(--r81-surface-soft);border-radius:999px;padding:6px 10px;font-size:12px}.r1181-auto{padding:15px 18px;display:flex;justify-content:space-between;align-items:center;gap:14px}.r1181-auto>div{display:grid;gap:3px}.r1181-auto small{color:#748399}.r1181-switch input{position:absolute;opacity:0}.r1181-switch span{width:48px;height:27px;border-radius:999px;background:#cfd8e3;display:block;position:relative;cursor:pointer;transition:.18s}.r1181-switch span::after{content:"";position:absolute;width:21px;height:21px;left:3px;top:3px;border-radius:50%;background:#fff;box-shadow:0 1px 5px rgba(0,0,0,.15);transition:.18s}.r1181-switch input:checked+span{background:var(--r81-primary)}.r1181-switch input:checked+span::after{transform:translateX(21px)}.r1181-section-head{margin:20px 0 9px}.r1181-section-head h3{font-size:16px;margin:0}.r1181-section-head p{font-size:12px;color:#748399;margin:3px 0 0}.r1181-theme-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.r1181-theme-card{position:relative;border:1px solid var(--r81-border);border-radius:12px;background:var(--r81-surface);padding:12px;cursor:pointer;transition:.15s}.r1181-theme-card:hover{transform:translateY(-1px);box-shadow:0 8px 24px var(--r81-glow)}.r1181-theme-card.selected{border-color:var(--r81-primary);box-shadow:0 0 0 2px color-mix(in srgb,var(--r81-primary) 15%,transparent)}.r1181-theme-card>input{position:absolute;right:12px;top:12px;accent-color:var(--r81-primary)}.r1181-preview{height:110px;border-radius:9px;background:var(--pbg);position:relative;overflow:hidden;border:1px solid rgba(0,0,0,.05)}.r1181-preview-side{position:absolute;inset:0 auto 0 0;width:27%;background:var(--ptext)}.r1181-preview-top{position:absolute;left:27%;right:0;top:0;height:20%;background:var(--pcard)}.r1181-preview-card{position:absolute;top:31%;height:34%;background:var(--pcard);border-radius:5px;box-shadow:0 1px 3px rgba(0,0,0,.06)}.r1181-preview-card.one{left:34%;width:27%}.r1181-preview-card.two{left:65%;width:27%}.r1181-preview-button{position:absolute;left:34%;bottom:15%;width:29%;height:13%;border-radius:4px;background:var(--pprimary)}.r1181-theme-copy{padding:10px 2px 4px;display:grid;gap:4px}.r1181-theme-copy>div{display:flex;gap:7px;align-items:center}.r1181-theme-copy>div span{font-size:10px;background:var(--r81-primary-soft);color:var(--r81-primary);border-radius:999px;padding:2px 6px}.r1181-theme-copy small{color:#748399;line-height:1.55;min-height:38px}.r1181-swatches{display:flex;gap:5px;padding:3px 2px}.r1181-swatches i{width:17px;height:17px;border-radius:50%;border:1px solid rgba(0,0,0,.08)}.r1181-savebar{position:sticky;bottom:12px;margin-top:18px;background:rgba(255,255,255,.94);backdrop-filter:blur(10px);border:1px solid var(--r81-border);border-radius:12px;padding:11px 13px;display:flex;align-items:center;justify-content:space-between;gap:14px;box-shadow:0 10px 30px rgba(15,23,42,.09);z-index:15}.r1181-savebar>div{display:grid}.r1181-savebar small{color:#748399;margin-top:2px}
@media(max-width:1100px){.r1181-theme-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.r1181-current{align-items:flex-start;flex-direction:column}.r1181-theme-grid{grid-template-columns:1fr}.r1181-savebar{position:static;flex-direction:column;align-items:stretch}.r1181-savebar .btn{width:100%}.erp-sidebar-user-actions{flex-direction:row;gap:9px}}

/* R11.81.1 company brand */
.erp-brand-copy .erp-company-name{font-size:13px!important;line-height:17px!important;max-width:145px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap!important;letter-spacing:0!important}.erp-brand-copy #hardwareAiVersionLabel{display:flex!important;align-items:center!important;gap:5px!important;font-size:9px!important;line-height:12px!important;white-space:nowrap!important}.erp-brand-copy #hardwareAiVersionLabel .erp-build-no{opacity:.72;font-size:9px!important}
@media(max-width:991.98px){.erp-brand-copy .erp-company-name{max-width:220px;font-size:14px!important}}

/* R11.81.2 brand copy refinement */
.erp-brand-copy .erp-company-name{max-width:155px!important;font-size:12px!important;line-height:16px!important;white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important}.erp-brand-copy #hardwareAiVersionLabel{font-size:9px!important;line-height:12px!important;gap:3px!important}.erp-brand-copy #hardwareAiVersionLabel .erp-build-no{opacity:.78!important}

/* R11.81.4 · warehouse record filters must remain readable in every skin */
body.erp-tabler-shell .r116832-pills a,
body.erp-tabler-shell .r116832-pills button{color:#46566c!important;background:var(--r81-surface)!important;border-color:var(--r81-border)!important;transition:background .12s ease,border-color .12s ease,color .12s ease,transform .12s ease}
body.erp-tabler-shell .r116832-pills a:hover,
body.erp-tabler-shell .r116832-pills button:hover{color:var(--r81-primary)!important;background:var(--r81-primary-soft)!important;border-color:color-mix(in srgb,var(--r81-primary) 32%,var(--r81-border))!important}
body.erp-tabler-shell .r116832-pills a.active,
body.erp-tabler-shell .r116832-pills button.active{color:#fff!important;background:var(--r81-primary)!important;border-color:var(--r81-primary)!important;font-weight:700!important;box-shadow:0 2px 7px var(--r81-glow)!important}
body.erp-tabler-shell .r116832-pills a:active,
body.erp-tabler-shell .r116832-pills button:active{transform:translateY(1px)}
