/* JARVIS unified product UI. Display only; existing components own state and actions. */
:root,:root[data-theme]{--j-ink:#10132d;--j-muted:#545967;--j-bg:#f4f5f7;--j-surface:#fff;--j-soft:#f2f4f6;--j-line:#e0e2e8;--j-green:#006e54;--j-green-soft:#e5f9f1;--j-purple:#6c5b9e;--j-purple-soft:#f1eef8;--j-warn:#93621e;--j-warn-soft:#fff6e7;--j-error:#b34249;--j-error-soft:#fff0f0;--j-mint:#39e5b1;--j-on-mint:#0b1026;--j-price:var(--j-green);--j-canvas:var(--j-bg);--j-radius:20px;--j-pad:28px;--j-rail:clamp(205px,17vw,252px);--j-font:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color-scheme:light}
:root[data-theme=dark]{--j-mint:#8be7bb;--j-on-mint:#103b2a;--j-ink:#eff1fa;--j-muted:#afb4c7;--j-bg:#151827;--j-surface:#202338;--j-soft:#292e43;--j-line:#374352;--j-green:#69e8c2;--j-green-soft:#1e3a34;--j-purple:#c7b6f5;--j-purple-soft:#322f46;--j-warn:#efc47c;--j-warn-soft:#3a3123;--j-error:#ffb0b6;--j-error-soft:#422b35;color-scheme:dark}
:root body:is(.j-workspace,.j-admin-legacy,.jarvis-v2,.jarvis-home,.j-retail,.j-public){font-family:var(--j-font)!important;background:var(--j-bg)!important;background-image:none!important;color:var(--j-ink)!important;-webkit-font-smoothing:antialiased}
:root body:is(.j-workspace,.j-admin-legacy,.j-account-legacy){--border:var(--j-line);--md-bg:var(--j-bg);--md-surface:var(--j-surface);--md-surface-2:var(--j-surface);--md-on-surface:var(--j-ink);--md-on-surface-med:var(--j-muted);--md-on-surface-dis:var(--j-muted);--md-divider:var(--j-line);--md-outline:var(--j-line);--md-primary:var(--j-green);--md-primary-container:var(--j-green-soft);--md-selected-overlay:var(--j-green-soft);--md-hover-overlay:var(--j-soft);--md-focus-ring:var(--j-green);color-scheme:inherit}
:root body :is(button,a,input,select,textarea,summary):focus-visible{outline:2px solid var(--j-green);outline-offset:3px}
:root body :is(button,input,select,textarea){touch-action:manipulation}
:root body :is(button:disabled,.btn:disabled){cursor:not-allowed;opacity:.52}
/* One frame across role workspaces and native account/administration pages. */
:root .j-shell.sidebar{width:var(--j-rail);padding:24px 12px 0;background:var(--j-surface);border-color:var(--j-line);color:var(--j-muted)}
:root .j-shell.sidebar .brand{gap:7px;padding:0 8px;margin:0 0 24px;font-size:18px;font-weight:750;letter-spacing:.8px;color:var(--j-ink)!important}
:root .j-shell.sidebar .brand img{width:30px;height:30px}
:root .j-shell.sidebar .brand span{font-size:9px;letter-spacing:0;line-height:1.4;color:var(--j-muted)}
:root .j-shell.sidebar .workspace-select{padding:0 0 16px;margin:0}
:root .j-shell.sidebar .workspace-select label{font-size:10px;margin:0 8px 7px;color:var(--j-muted);letter-spacing:0}
:root .j-shell.sidebar .workspace-select select{border:1px solid var(--j-line);border-radius:11px;background:var(--j-surface);color:var(--j-ink);font-size:12px;height:43px;min-height:43px;padding:10px}
:root .j-shell.sidebar .nav-group{margin-bottom:8px!important}
:root .j-shell.sidebar summary.nav-label{font-size:11px;letter-spacing:0;min-height:36px;padding:9px 9px;color:var(--j-muted);cursor:pointer}
:root .j-shell.sidebar summary.nav-label:after{content:'+';font-size:14px;transform:none}
:root .j-shell.sidebar details[open] summary.nav-label:after{content:'−'}
:root .j-shell.sidebar #navigation button{width:100%;font-size:12px;font-weight:450;min-height:37px;padding:9px;gap:8px;margin:2px 0;border-radius:8px;line-height:1.5;color:var(--j-muted)}
:root .j-shell.sidebar #navigation button .icon{width:15px;height:15px}
:root .j-shell.sidebar #navigation button.active{background:var(--j-green-soft);color:var(--j-green);font-weight:650}
:root .j-shell.sidebar #navigation button.active:before{display:none}
:root .j-shell.sidebar #navigation button:hover{background:var(--j-soft);color:var(--j-ink)}
:root .j-shell.sidebar .sidebar-footer{padding:16px 8px;border-color:var(--j-line);color:var(--j-muted)}
:root .j-shell.sidebar .sidebar-footer small{color:var(--j-muted)}
:root :is(.j-workspace,.j-admin-legacy,.j-account-legacy) #app-shell{margin-left:var(--j-rail);min-height:100dvh;min-width:0;display:flex;flex-direction:column;background:var(--j-bg)!important}
:root .j-shell.site-header{height:62px;min-height:62px;padding:0 var(--j-pad);background:var(--j-surface)!important;border-color:var(--j-line);gap:12px}
:root .j-shell :is(.breadcrumb,.header-actions){font-size:11px;gap:10px;color:var(--j-muted)}
:root .j-shell :is(.breadcrumb strong,.header-actions a){color:var(--j-ink);font-size:11px;font-weight:500}
:root .j-shell .header-actions{gap:18px;white-space:nowrap;flex-wrap:nowrap}
:root .j-shell #environment{background:var(--j-green-soft);color:var(--j-green);border:0;font-size:10px;padding:5px 8px;border-radius:6px}
:root .j-workspace main{display:flex;flex-direction:column;flex:1;width:100%;max-width:1440px;padding:28px var(--j-pad) 0;margin:0 auto}
:root .j-workspace #content{flex:1;min-width:0}
:root :is(.j-admin-legacy,.j-account-legacy) #pjax-container{flex:1;width:100%;max-width:1440px;padding:28px var(--j-pad);margin:0 auto;min-width:0;background:var(--j-bg)!important;box-sizing:border-box}
:root .j-workspace .heading,:root .j-account-legacy .jarvis-center-heading{align-items:flex-start;margin-bottom:24px;gap:16px}
:root .j-workspace .heading h1,:root[data-theme] #kt_body.j-admin-legacy #kt_toolbar h1,:root .j-account-legacy .jarvis-center-heading h1{font-family:var(--j-font)!important;font-size:27px!important;font-weight:650!important;letter-spacing:-.7px;line-height:1.3;color:var(--j-ink)!important;margin:4px 0 7px!important}
:root .j-workspace .heading p,:root .j-admin-legacy #kt_toolbar p,:root .j-account-legacy .jarvis-center-heading .j-page-description{display:block;font-size:12px;line-height:1.8;color:var(--j-muted);max-width:620px;margin:0}
:root .j-workspace .app-footer,:root .j-shell.app-footer{margin-top:28px;padding:19px 0;border-top:1px solid var(--j-line);color:var(--j-muted);font-size:11px;gap:12px;flex-wrap:wrap;max-width:none}
:root .j-admin-legacy .app-footer{padding:19px var(--j-pad);margin-top:0}
/* Hierarchy and reusable surfaces. Metrics stay factual and visually quiet. */
:root .j-workspace :is(button,.button-link){border-radius:11px;font-size:12px;border-color:var(--j-line);background:var(--j-surface);color:var(--j-ink);box-shadow:none}
:root .j-workspace :is(button.primary,.button-link.primary),:root .jarvis-v2 :is(.btn-primary,.btn-gradient,.shop-btn--primary),:root[data-theme] #kt_body.j-admin-legacy .btn-primary{background:var(--j-mint)!important;color:var(--j-on-mint)!important;border-color:transparent!important;border-radius:11px!important;box-shadow:none!important}
:root .j-workspace button:hover:not(:disabled){border-color:var(--j-green)}
:root .j-workspace :is(input,select,textarea){background:var(--j-surface);color:var(--j-ink);border:1px solid var(--j-line);border-radius:10px;font-size:13px}
:root .j-workspace :is(.muted,.reference,.snapshot-note,.coverage){color:var(--j-muted)}
:root .j-workspace :is(.panel,.table-wrap,.card,.order),:root[data-theme] #kt_body.j-admin-legacy .card,:root .jarvis-v2 :is(.panel,.uc-card){background:var(--j-surface)!important;border:1px solid var(--j-line)!important;border-radius:var(--j-radius)!important;box-shadow:none!important}
:root .j-workspace .panel{overflow:hidden;margin-bottom:18px}
:root .j-workspace .panel-head{padding:20px 22px;gap:14px;border-color:var(--j-line)}
:root .j-workspace .panel-head h2{font-size:16px;font-weight:650;letter-spacing:-.2px;color:var(--j-ink)}
:root .j-workspace .panel-head p{font-size:11px;color:var(--j-muted);line-height:1.75;margin-top:4px}
:root .j-workspace :is(.panel-body,.role-body,.vcc-body){padding:22px}
:root .j-workspace .dashboard-grid{gap:18px;grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr)}
:root .j-workspace .dashboard-grid.single-column{grid-template-columns:1fr}
:root .j-workspace :is(.flow-grid,.vcc-stats,.role-metrics){gap:0;border:1px solid var(--j-line);border-radius:var(--j-radius);background:var(--j-surface);padding:20px 0;margin-bottom:22px;overflow:hidden}
:root .j-workspace :is(.flow-metric,.vcc-stats article,.role-metric){border:0;border-radius:0;padding:0 20px;min-height:99px;box-shadow:none!important;gap:6px}
:root .j-workspace :is(.flow-metric,.vcc-stats article,.role-metric):not(:last-child){border-right:1px solid var(--j-line)}
:root .j-workspace .flow-metric:hover:not(:disabled){background:var(--j-soft)!important}
:root .j-workspace :is(.flow-metric strong,.vcc-stats strong,.role-metric strong){font-size:28px;font-weight:600;line-height:1.65;letter-spacing:-.7px;color:var(--j-ink);font-variant-numeric:tabular-nums}
:root .j-workspace :is(.flow-metric>span,.role-metric p,.vcc-stats small,.role-metric small,.flow-metric small){font-size:11px;color:var(--j-muted)}
:root .j-workspace .flow-metric>.icon{top:4px;right:16px;color:var(--j-muted);width:15px;height:15px}
:root .j-workspace :is(.queue-row,.service-row,.row-list){border-color:var(--j-line);background:var(--j-surface);color:var(--j-ink);font-size:12px;border-radius:0}
:root .j-workspace .queue-row{padding:13px 22px;min-height:46px}
:root .j-workspace .queue-row:hover:not(:disabled){background:var(--j-soft)}
:root .j-workspace .queue-row strong{color:var(--j-ink)}
:root .j-workspace .panel-foot{padding:13px 22px;background:var(--j-surface);border-color:var(--j-line)}
:root .j-workspace .panel-foot button{color:var(--j-muted);background:transparent}
:root .j-workspace .data-table th{font-size:11px;font-weight:500;padding:12px 15px;background:var(--j-soft);color:var(--j-muted);border-color:var(--j-line)}
:root .j-workspace .data-table td{padding:16px 15px;font-size:12px;line-height:1.6;border-color:var(--j-line);color:var(--j-ink)}
:root .j-workspace .data-table td strong{color:var(--j-ink);font-weight:600}
:root .j-workspace .data-table tbody tr:hover{background:var(--j-soft)}
:root .j-workspace .panel .table-wrap{border:0!important;border-radius:0!important;margin:0}
:root .j-workspace .data-table td button{font-size:11px;color:var(--j-green);padding:5px 9px;min-height:32px}
:root .j-workspace .empty-state{padding:42px 22px;min-height:210px}
:root .j-workspace .empty-state h3{font-size:16px;font-weight:600;color:var(--j-ink)}
:root .j-workspace .empty-state p{font-size:12px;color:var(--j-muted);max-width:360px;line-height:1.8}
:root .j-workspace .empty-state .empty-icon{background:var(--j-purple-soft);color:var(--j-purple)}
:root .j-workspace :is(.toolbar,.role-filters,.vcc-filters){padding:16px 18px;gap:10px;border-color:var(--j-line);background:var(--j-surface);border-radius:12px}
:root .j-workspace :is(.toolbar,.role-filters,.vcc-filters) input{min-width:0;max-width:380px}
:root .j-workspace .badge{font-size:11px;border-radius:6px;padding:4px 9px;background:var(--j-soft);color:var(--j-muted)}
:root .j-workspace .badge.good{background:var(--j-green-soft);color:var(--j-green)}
:root .j-workspace .badge.info{background:var(--j-purple-soft);color:var(--j-purple)}
:root .j-workspace :is(.badge.alert,.warning){background:var(--j-warn-soft);color:var(--j-warn)}
:root .j-workspace :is(.badge.bad,#notice.error){background:var(--j-error-soft);color:var(--j-error)}
:root .j-workspace #notice:not(.error),:root .j-workspace :is(.role-note,.security-note,.coverage[open]){background:var(--j-soft);color:var(--j-muted);border-color:var(--j-line);font-size:12px;line-height:1.8;border-radius:10px}
:root .j-workspace #notice.quiet{background:none;border:0}
:root .j-workspace :is(.role-code,.journey,.summary,.state,.metric){background:var(--j-soft);color:var(--j-ink);border-color:var(--j-line);border-radius:12px}
:root .j-workspace .role-code{white-space:pre-wrap;overflow-wrap:anywhere}
:root .j-workspace dialog{background:var(--j-surface);color:var(--j-ink);padding:28px;border:1px solid var(--j-line);border-radius:20px;max-height:calc(100dvh - 32px);overflow:auto}
:root .j-workspace dialog h2{font-size:22px;font-weight:600;letter-spacing:-.5px}
:root .j-workspace dialog::backdrop{background:#151b2e66;backdrop-filter:blur(3px)}
:root .j-workspace :is(.vcc-context,.settings-link,.template-price-control){background:var(--j-surface);border-color:var(--j-line);color:var(--j-ink)}
:root .j-workspace :is(.template-intro,.vcc-product-guide){background:linear-gradient(120deg,var(--j-green-soft),var(--j-surface) 50%,var(--j-purple-soft));border:1px solid var(--j-line);border-radius:20px;box-shadow:none}
:root .j-workspace .vcc-card-number{background:linear-gradient(130deg,var(--j-green-soft),var(--j-purple-soft));border-color:var(--j-line);color:var(--j-ink);border-radius:19px;padding:26px;line-height:1.8}
:root .j-workspace .vcc-product-guide{padding:24px}
:root .j-workspace :is(.product-template-grid,.vcc-issue-layout){gap:18px}
:root .j-workspace .product-template-card{padding:24px;background:var(--j-surface);border-color:var(--j-line);box-shadow:none}
:root .j-workspace :is(.template-intro h2,.product-template-card h2){color:var(--j-ink);font-size:22px;font-weight:600}
:root .j-workspace :is(.template-summary,.template-intro p,.template-details span,.template-help,.template-footnote,.template-state,.role-requirements,.role-details dt){color:var(--j-muted);font-size:12px}
:root .j-workspace :is(.template-details strong,.template-help strong){color:var(--j-ink)}
:root .j-workspace .template-logo{width:52px;height:52px;border-radius:13px}
:root .j-workspace .template-logo img{width:34px;height:34px}
:root .j-workspace .template-price-control input{border:0;border-radius:0;background:transparent;font-size:20px}
/* Native components keep their own markup, validation and controllers. */
:root[data-theme] #kt_body.j-admin-legacy :is(.card-header,.card-body){padding:22px!important}
:root[data-theme] #kt_body.j-admin-legacy :is(.form-control,.form-select),:root .jarvis-v2 :is(.form-control,.form-select){background:var(--j-surface)!important;color:var(--j-ink)!important;border:1px solid var(--j-line)!important;border-radius:10px!important;font-size:13px!important}
:root[data-theme] #kt_body.j-admin-legacy :is(.card-title h3,.form-label,.col-form-label),:root .jarvis-v2 :is(.panel-title,.uc-card__title){color:var(--j-ink)!important;font-weight:600!important}
:root[data-theme] #kt_body.j-admin-legacy .table thead th,:root .jarvis-v2 .table thead th{background:var(--j-soft)!important;color:var(--j-muted)!important;font-size:11px!important;font-weight:500!important}
:root[data-theme] #kt_body.j-admin-legacy .table td,:root .jarvis-v2 .table td{border-color:var(--j-line)!important;color:var(--j-ink)!important;font-size:12px!important;line-height:1.7}
:root[data-theme] #kt_body.j-admin-legacy .btn{border-radius:10px!important;min-height:34px;font-size:12px!important}
:root[data-theme] #kt_body.j-admin-legacy :is(.btn-outline-primary,.btn-light-primary,.layui-btn-primary){color:var(--j-green)!important;background:var(--j-green-soft)!important;border-color:var(--j-line)!important}
:root[data-theme] #kt_body.j-admin-legacy :is(.layui-layer,.layui-layer-title,.layui-layer-content,.layui-layer-btn){background:var(--j-surface)!important;color:var(--j-ink)!important;border-color:var(--j-line)!important}
:root[data-theme] #kt_body.j-admin-legacy .layui-layer{border-radius:20px!important;overflow:hidden}
:root .jarvis-v2 :is(.shop-nav,.uc-nav,.uc-topbar,.jarvis-auth-topbar,.uc-message-dropdown,.dropdown-menu){background:var(--j-surface)!important;border-color:var(--j-line)!important;color:var(--j-ink)!important}
:root .jarvis-v2 :is(.uc-stat,.jarvis-product-summary,.order-query-form){background:linear-gradient(120deg,var(--j-green-soft),var(--j-surface) 50%,var(--j-purple-soft))!important;box-shadow:none!important;border-color:var(--j-line)!important}
/* Storefront: the approved membership card motif without demo products or prices. */
:root .jarvis-home .uc-topbar{background:var(--j-surface);border-color:var(--j-line);padding:0 34px}
:root .jarvis-home .shop-nav{min-height:76px;gap:20px}
:root .jarvis-home .shop-brand img{width:37px;height:37px}
:root .jarvis-home .shop-brand__name{font-size:20px;letter-spacing:.8px;color:var(--j-ink)}
:root .jarvis-home .shop-nav__item{font-size:13px;color:var(--j-muted);padding:9px 12px}
:root .jarvis-home .shop-nav__item.active{background:var(--j-green-soft);color:var(--j-green)}
:root .jarvis-home .shop-btn--ghost{border-color:var(--j-line);color:var(--j-ink);font-size:12px}
:root .jarvis-home .shop-drawer{background:var(--j-surface);color:var(--j-ink)}
:root .jarvis-home .jarvis-home-page{width:min(1120px,calc(100% - 68px));max-width:1120px}
:root .jarvis-home .jarvis-hero{display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:32px;padding:48px 0 38px;min-height:390px;position:relative}
:root .jarvis-home .jarvis-hero-copy{padding:0;max-width:none}
:root .jarvis-home .jarvis-hero h1{font-size:46px;font-weight:650;line-height:1.22;letter-spacing:-1.7px;margin:18px 0;color:var(--j-ink)}
:root .jarvis-home .jarvis-hero h1 span{color:var(--j-green)}
:root .jarvis-home .jarvis-hero-badge{background:var(--j-green-soft);color:var(--j-green);border:0;font-size:11px;padding:5px 10px;border-radius:6px;letter-spacing:0}
:root .jarvis-home .jarvis-hero-lead{font-size:14px;line-height:1.85;color:var(--j-muted);max-width:390px}
.jarvis-member-art{position:relative;min-height:285px;display:grid;place-items:center;isolation:isolate}
.jarvis-member-art:before{content:'';position:absolute;width:280px;height:280px;background:radial-gradient(circle,var(--j-green-soft),transparent 70%);z-index:-1;border-radius:50%}
.jarvis-member-pass{width:310px;max-width:85%;min-height:205px;transform:rotate(-7deg);margin-right:25px;padding:24px;border:1px solid var(--j-line);border-radius:21px;background:linear-gradient(125deg,var(--j-green-soft),var(--j-surface) 47%,var(--j-purple-soft));box-shadow:0 18px 42px #28284912;position:relative;overflow:hidden;color:var(--j-ink)}
.jarvis-member-pass:after{content:'';position:absolute;inset:0;background:var(--j-pearl-image) center/cover;opacity:.2;pointer-events:none}
.jarvis-member-pass>*{position:relative;z-index:1}
.jarvis-member-pass>div{display:flex;justify-content:space-between;font-size:11px;font-weight:600;letter-spacing:1px}
.jarvis-member-pass strong{display:block;font-size:32px;line-height:1.2;font-weight:600;letter-spacing:-1px;margin:30px 0}
.jarvis-member-pass small{font-size:11px;color:var(--j-muted);letter-spacing:.8px}
.jarvis-member-art>img{position:absolute;width:150px;height:150px;object-fit:contain;right:2%;bottom:0;filter:drop-shadow(0 12px 16px #14263b18)}
.jarvis-hero-actions{display:flex;align-items:center;gap:18px;margin-top:26px;flex-wrap:wrap}
:root .jarvis-home .jarvis-hero-actions a{font-size:13px;font-weight:600;color:var(--j-green)}
:root .jarvis-home .jarvis-hero-actions .jarvis-catalog-cta{background:var(--j-mint);color:var(--j-on-mint);padding:12px 18px;border-radius:11px;min-height:43px}
.jarvis-catalog-heading{margin:18px 0 20px;display:flex;align-items:end;justify-content:space-between;gap:16px}
.jarvis-catalog-heading h2{font-size:23px;font-weight:650;letter-spacing:-.6px;margin:0}
.jarvis-catalog-heading p{font-size:12px;line-height:1.8;color:var(--j-muted);margin:6px 0 0}
:root .jarvis-home .jarvis-home-categories{gap:8px}
:root .jarvis-home .j-category{font-size:12px;border-radius:8px;min-height:36px;padding:7px 15px;background:var(--j-soft);color:var(--j-muted)}
:root .jarvis-home .j-category.is-primary{background:var(--j-green-soft);color:var(--j-green);border-color:var(--j-green)}
:root .jarvis-home .item-list.jarvis-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
:root .jarvis-home .j-product{background:var(--j-surface);border:1px solid var(--j-line);padding:24px!important;border-radius:20px;min-height:310px;box-shadow:none}
:root .jarvis-home .j-product:hover{box-shadow:0 8px 24px #211a4307;border-color:var(--j-green)}
:root .jarvis-home .jarvis-home-steps{background:none;border:0;border-top:1px solid var(--j-line);border-radius:0;gap:22px;padding:26px 0;margin-top:24px}
:root .jarvis-home .jarvis-guarantee-card{background:var(--j-surface);border-color:var(--j-line);box-shadow:none;border-radius:20px}
:root .jarvis-home :is(.jarvis-faq-item,.jarvis-home-notice,.jarvis-home-footer){border-color:var(--j-line);color:var(--j-muted)}
:root .jarvis-home .jarvis-section-header h2{font-size:26px;color:var(--j-ink);font-weight:650}
:root .jarvis-home .jarvis-catalog-state{grid-column:1/-1;background:var(--j-surface);border:1px dashed var(--j-line);border-radius:20px;padding:46px 24px;color:var(--j-muted)}
:root .j-retail main{background:var(--j-surface);border-color:var(--j-line);border-radius:20px;padding:28px;box-shadow:none}
:root .j-retail :is(h1,.brand){color:var(--j-ink)}
:root .j-retail :is(.order,.state,dialog){background:var(--j-surface);border-color:var(--j-line);color:var(--j-ink);border-radius:16px}
:root .j-retail :is(.next-step,.checkout-error){background:var(--j-green-soft);color:var(--j-green);border-color:var(--j-line);border-radius:16px}
:root .j-retail :is(button,.button-link){border-radius:11px}
/* Adapt existing authentication and public error/terms frames. */
:root body.jarvis-auth :is(.lk-card,.jarvis-auth-form,.panel),:root body.j-public :is(.container,.card,.main){background:var(--j-surface)!important;border:1px solid var(--j-line)!important;border-radius:20px!important;color:var(--j-ink)!important;box-shadow:none!important}
:root body.jarvis-auth :is(.jarvis-auth-topbar,.lk-topbar){background:var(--j-surface)!important;border-color:var(--j-line)!important}
:root body.jarvis-auth :is(input:not([type=checkbox]),select){background:var(--j-surface)!important;border-color:var(--j-line)!important;color:var(--j-ink)!important;border-radius:10px!important}
:root body.jarvis-auth :is(.lk-submit,.btn-primary){border-radius:11px!important}
@media(max-width:1100px){:root .j-workspace .dashboard-grid{grid-template-columns:minmax(0,1.35fr) minmax(230px,1fr)}:root .jarvis-home .jarvis-hero{gap:18px}:root .jarvis-home .jarvis-hero h1{font-size:40px}}
@media(max-width:900px){:root .j-workspace .dashboard-grid{grid-template-columns:1fr}:root .j-workspace .settings-layout{grid-template-columns:1fr}:root .j-workspace .vcc-issue-layout{grid-template-columns:1fr}}
@media(max-width:760px){
 :root,:root[data-theme]{--j-pad:18px}
 :root :is(.j-workspace,.j-admin-legacy,.j-account-legacy) #app-shell{margin-left:0}
 :root .j-shell.sidebar{width:260px;padding:24px 14px 0}
 :root .j-shell.sidebar #navigation button{font-size:13px;min-height:42px;padding:11px}
 :root .j-shell.site-header{height:58px;min-height:58px;padding:0 14px;gap:8px}
 :root .j-shell .breadcrumb>span{display:none}
 :root .j-shell .breadcrumb strong{max-width:none;overflow:visible;font-size:11px}
 :root .j-shell .header-actions{gap:10px;margin-left:auto;flex-shrink:0}
 :root .j-shell #nav-toggle{background:var(--j-surface);color:var(--j-ink);border-color:var(--j-line)}
 :root .j-shell .sidebar-close{color:var(--j-muted)}
 :root .j-workspace main,:root :is(.j-admin-legacy,.j-account-legacy) #pjax-container{padding-top:24px}
 :root .j-workspace .heading h1,:root[data-theme] #kt_body.j-admin-legacy #kt_toolbar h1,:root .j-account-legacy .jarvis-center-heading h1{font-size:24px!important}
 :root .j-workspace :is(.flow-grid,.vcc-stats,.role-metrics){grid-template-columns:repeat(2,minmax(0,1fr));padding:16px 0;row-gap:16px}
 :root .j-workspace :is(.flow-metric,.vcc-stats article,.role-metric){padding:0 16px;min-height:94px}
 :root .j-workspace :is(.flow-metric,.vcc-stats article,.role-metric):nth-child(2n){border-right:0}
 :root .j-workspace .vcc-stats strong{font-size:25px;overflow-wrap:anywhere}
 :root .j-workspace :is(.role-body,.vcc-body,.panel-body,.panel-head){padding:18px}
 :root .j-workspace :is(.vcc-filters,.toolbar){flex-wrap:wrap}
 :root .j-workspace :is(.vcc-filters,.role-filters,.toolbar) input{min-width:0;width:100%;flex:1 1 150px}
 :root .j-workspace :is(.role-form-grid,.vcc-form-grid){grid-template-columns:1fr}
 :root .j-workspace :is(.role-details,.role-steps){max-width:100%}
 :root .j-workspace :is(input,select,textarea),:root[data-theme] #kt_body.j-admin-legacy :is(.form-control,.form-select),:root .jarvis-v2 :is(.form-control,.form-select){font-size:16px!important;min-width:0;max-width:100%}
 :root .j-workspace dialog{width:calc(100% - 24px);padding:20px}
 :root .j-admin-legacy .fixed-table-container{max-width:100%;overflow-x:auto}
 :root[data-theme] #kt_body.j-admin-legacy :is(.card-header,.card-body){padding:16px!important}
 :root .jarvis-home .uc-topbar{padding:0 18px}
 :root .jarvis-home .jarvis-home-page{width:calc(100% - 36px)}
 :root .jarvis-home .jarvis-hero{grid-template-columns:1fr;gap:14px;padding:32px 0 24px;min-height:0}
 :root .jarvis-home .jarvis-hero h1{font-size:36px;letter-spacing:-1px;line-height:1.25}
 :root .jarvis-home .jarvis-hero-lead{font-size:13px}
 .jarvis-member-art{min-height:255px;max-width:390px;width:100%;margin:0 auto}
 .jarvis-member-pass{width:285px;min-height:185px;padding:22px}
 .jarvis-member-pass strong{font-size:29px;margin:26px 0}
 .jarvis-member-art>img{width:128px;height:128px;right:0}
 :root .jarvis-home .item-list.jarvis-products{grid-template-columns:1fr}
 :root .j-retail main{margin:16px 12px;padding:20px;max-width:calc(100% - 24px)}
}
@media(max-width:650px){
 :root .j-workspace .data-table,:root .j-workspace .data-table tbody,:root .j-workspace .data-table tr{display:block;width:100%}
 :root .j-workspace .data-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 :root .j-workspace .data-table tr{padding:14px 16px;border-bottom:1px solid var(--j-line)}
 :root .j-workspace .data-table tr:last-child{border-bottom:0}
 :root .j-workspace .data-table td{display:grid;grid-template-columns:minmax(82px,32%) minmax(0,1fr);gap:12px;border:0;padding:7px 0;width:100%!important;text-align:left}
 :root .j-workspace .data-table td:before{content:attr(data-label);font-size:11px;color:var(--j-muted);font-weight:400}
 :root .j-workspace .data-table td>*{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
 :root .j-workspace .data-table td button{justify-self:start}
 :root .jarvis-home .shop-nav{min-height:100px;display:grid;grid-template-columns:1fr auto;gap:0 8px;padding:12px 0}
 :root .jarvis-home .shop-nav__list{display:flex!important;grid-column:1/-1;grid-row:2;margin:8px 0 0!important;overflow-x:auto;max-width:100%;gap:8px}
 :root .jarvis-home .shop-nav__right{grid-column:2;grid-row:1;margin:0}
 :root .jarvis-home .shop-brand{min-width:0;gap:7px}
 :root .jarvis-home .shop-brand__name{font-size:18px;max-width:160px}
 :root .jarvis-home .shop-brand img{width:30px;height:30px}
 :root .jarvis-home .shop-auth{display:flex}
 :root .jarvis-home .shop-auth .shop-btn--ghost{min-width:0;font-size:11px;padding:0 12px;min-height:32px}
 :root .jarvis-home .shop-nav__item{font-size:12px;white-space:nowrap;padding:7px 9px}
}
@media(max-width:360px){:root,:root[data-theme]{--j-pad:14px}:root .j-shell.site-header{padding:0 10px}:root .j-shell .header-actions{gap:7px}:root .j-shell #environment{font-size:9px;padding:4px 5px}:root .j-workspace .heading{flex-wrap:wrap}:root .jarvis-home .shop-brand__name{max-width:120px}.jarvis-member-pass{max-width:84%;margin-right:18px}}
@media(prefers-reduced-motion:reduce){:root body:is(.j-workspace,.j-admin-legacy,.jarvis-v2,.jarvis-home) *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
/* Native floating headings/toolbars and compact dashboard refinements. */
:root .j-admin-legacy #kt_toolbar_container{width:100%!important;margin:0!important;text-align:left!important}
:root .j-admin-legacy #kt_toolbar{justify-content:flex-start!important;align-items:flex-start!important}
:root .j-workspace .flow-metric{border-radius:0!important}
:root .j-workspace .flow-metric:hover:not(:disabled){box-shadow:inset 0 0 0 1px var(--j-green)!important}
:root .j-workspace .panel-head button{color:var(--j-green);background:transparent;border-color:transparent}
:root .j-workspace .panel-head button.primary{background:var(--j-mint);color:var(--j-on-mint)}
:root .j-workspace .role-summary-panel{display:flex;align-items:center;gap:18px;background:linear-gradient(120deg,var(--j-green-soft),var(--j-surface) 50%,var(--j-purple-soft))!important}
:root .j-workspace .role-summary-panel .panel-head{flex:none;padding:22px;border:0}
:root .j-workspace .role-summary-panel .role-summary{flex:1;padding:22px 22px 22px 0;gap:12px}
:root .j-workspace .role-summary-panel .role-summary>div{font-size:11px;line-height:1.8}
:root .jarvis-home .shop-nav__item{box-shadow:none!important}
@media(max-width:900px){:root .j-workspace .role-summary-panel{display:block}:root .j-workspace .role-summary-panel .role-summary{padding:0 22px 22px}}
@media(max-width:760px){
 :root .j-admin-legacy .card-toolbar{max-width:100%;min-width:0;flex-wrap:wrap!important;gap:8px!important}
 :root .j-admin-legacy .card-toolbar>*{max-width:100%;margin-right:0!important;white-space:normal}
 :root .j-admin-legacy .form-check-inline{max-width:100%;margin-right:12px!important;white-space:normal;overflow-wrap:anywhere}
 :root .j-admin-legacy .form-check-inline input{flex-shrink:0}
}
:root[data-theme] body.lk{background:var(--j-bg)!important;color:var(--j-ink)!important;--lk-ink:var(--j-ink);--lk-muted:var(--j-muted);--lk-focus:var(--j-green)}
:root body.lk .lk-auth,:root body.jarvis-secondary-auth .auth-card{background:var(--j-surface)!important;color:var(--j-ink)!important;border:1px solid var(--j-line)!important;border-radius:20px!important;padding:30px!important;box-shadow:0 12px 32px #211a4305!important}
:root body.lk .lk-field{background:var(--j-surface)!important;border-color:var(--j-line)!important;border-radius:10px!important}
:root body.lk .lk-input{color:var(--j-ink)!important}
:root body.lk .lk-brand-title,:root body.jarvis-secondary-auth .auth-title{font-size:27px!important;font-weight:650!important;color:var(--j-ink)!important;letter-spacing:-.7px!important}
:root body.lk .lk-brand-sub,:root body.jarvis-secondary-auth :is(.auth-subtitle,.form-floating>label){color:var(--j-muted)!important}
:root body.lk .lk-submit{border-radius:11px!important;font-size:13px!important}
:root body.lk .lk-auth .lk-row--pair>.lk-passkey,:root body.lk .lk-auth .lk-row--pair>.lk-check,:root body.jarvis-secondary-auth :is(.btn-passkey,.btn-outline-primary){border-radius:10px!important;background:var(--j-surface)!important;color:var(--j-ink)!important;border-color:var(--j-line)!important}
:root :is(.j-auth-story,.j-auth-story h2,.j-auth-topbar .j-auth-brand){color:var(--j-ink)}
:root .j-auth-story h2{font-size:42px;font-weight:650;letter-spacing:-1px}
:root :is(.j-auth-story p,.j-auth-tags){color:var(--j-muted)}
:root .j-auth-stage{background:radial-gradient(ellipse,var(--j-green-soft),transparent 70%)}
:root .j-auth-caption{background:var(--j-purple-soft);color:var(--j-muted)}
:root .j-auth-topbar{border-color:var(--j-line)}
:root .j-auth-topbar>a:last-child{background:var(--j-surface);border-color:var(--j-line);color:var(--j-green);border-radius:11px}
@media(max-width:760px){:root .j-auth-story h2{font-size:30px}:root body.lk .lk-auth,:root body.jarvis-secondary-auth .auth-card{padding:22px!important}:root body.lk .lk-input{font-size:16px!important}}
@media(max-width:370px){:root .j-auth-story h2{font-size:27px}}
:root[data-theme]{background:var(--j-bg)}
:root[data-theme] #kt_body.j-admin-legacy :is(#kt_content_container,.md-settings){background:transparent!important}
:root[data-theme] #kt_body.j-admin-legacy .admin-mobile-settings-section-title{color:var(--j-ink)!important}
:root[data-theme] #kt_body.j-admin-legacy .select2-container--default .select2-selection--single,:root[data-theme] #kt_body.j-admin-legacy .select2-container--default .select2-selection--multiple{background:var(--j-surface)!important;color:var(--j-ink)!important;border-color:var(--j-line)!important;border-radius:10px!important}
:root[data-theme] #kt_body.j-admin-legacy .select2-selection__rendered{color:var(--j-ink)!important}
:root[data-theme] #kt_body.j-admin-legacy .select2-dropdown,:root[data-theme] #kt_body.j-admin-legacy .select2-search__field{background:var(--j-surface)!important;color:var(--j-ink)!important;border-color:var(--j-line)!important}
:root[data-theme] #kt_body.j-admin-legacy .select2-results__option--highlighted[aria-selected]{background:var(--j-green-soft)!important;color:var(--j-green)!important}
:root[data-theme] #kt_body.j-admin-legacy .app-footer{background:var(--j-surface);color:var(--j-muted)}
.jarvis-hero-kicker,.service-banner small{font-size:11px;letter-spacing:1.6px;font-weight:650;color:var(--j-green)}
.jarvis-hero-facts{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:20px 0 0;color:var(--j-muted);font-size:11px}
.jarvis-service-note{position:absolute;bottom:6px;left:4%;display:flex;gap:9px;align-items:center;background:var(--j-surface);border:1px solid var(--j-line);border-radius:11px;padding:9px 13px;box-shadow:0 8px 20px #211a4308}
.jarvis-service-note>span{color:var(--j-green);font-size:17px}.jarvis-service-note strong,.jarvis-service-note small{display:block;font-size:11px;color:var(--j-ink)}.jarvis-service-note small{color:var(--j-muted)}
.service-banner{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 22px;padding:25px;border-radius:20px;background:linear-gradient(120deg,var(--j-green-soft),var(--j-surface) 52%,var(--j-purple-soft))}
.service-banner h2{font-size:24px;letter-spacing:-.6px;color:var(--j-ink);margin:8px 0}.service-banner p{font-size:12px;color:var(--j-muted);line-height:1.8;margin:0 0 15px}.service-banner img{flex:none;object-fit:contain}
:root .jarvis-v2 .jarvis-product-layout{grid-template-columns:minmax(0,1.55fr) minmax(280px,1fr);gap:24px;align-items:start}
:root .jarvis-v2 .jarvis-product-summary{grid-column:2;grid-row:1;border:1px solid var(--j-line);border-radius:20px;padding:26px!important;min-height:0}
:root .jarvis-v2 .jarvis-product-summary:before{content:none}
:root .jarvis-v2 .jarvis-purchase-panel{grid-column:1;grid-row:1;padding:28px;border:1px solid var(--j-line);background:var(--j-surface);color:var(--j-ink);border-radius:20px}
:root .jarvis-v2 .jarvis-product-summary .price{font-size:34px;letter-spacing:-.8px;color:var(--j-green)}
:root .jarvis-v2 .jarvis-purchase-panel h2{font-size:22px;color:var(--j-ink)}
@media(max-width:760px){.jarvis-service-note{left:0;bottom:1px}.service-banner{padding:18px;gap:8px}.service-banner img{width:78px;height:78px}:root .jarvis-v2 .jarvis-product-layout{grid-template-columns:minmax(0,1fr);gap:16px}:root .jarvis-v2 :is(.jarvis-product-summary,.jarvis-purchase-panel){grid-column:auto;grid-row:auto;padding:20px!important}}
/* Keep label/value pairs together: the generic record-card layout would repeat their headers. */
@media(max-width:760px){
 :root .j-workspace .data-table.vcc-detail-table,:root .j-workspace .data-table.vcc-detail-table tbody{display:block!important;width:100%}
 :root .j-workspace .data-table.vcc-detail-table tr{display:grid!important;grid-template-columns:minmax(0,35fr) minmax(0,65fr);width:100%;padding:0}
 :root .j-workspace .data-table.vcc-detail-table tr>td{display:block!important;width:auto!important;min-width:0;padding:12px!important;white-space:normal;overflow-wrap:anywhere}
 :root .j-workspace .data-table.vcc-detail-table td:first-child{color:var(--j-muted);font-weight:500}
}
@media(max-width:650px){:root .jarvis-home .shop-auth .shop-btn--ghost{display:inline-flex!important;align-items:center;justify-content:center}}

:root .j-shell.sidebar{background:var(--j-soft)}
:root .j-shell.sidebar #navigation button{font-size:13px}
:root .j-shell.sidebar #navigation button.active{box-shadow:inset 3px 0 var(--j-green)}
.j-shell .menu-search{display:flex;align-items:center;gap:8px;padding:8px 10px;margin:0 2px 12px;border:1px solid var(--j-line);border-radius:9px;background:var(--j-surface);color:var(--j-muted)}
.j-shell .menu-search input{width:100%;min-width:0;height:26px;min-height:0;font:inherit;font-size:13px;background:none!important;border:0!important;padding:0!important;color:var(--j-ink)}
.j-shell .menu-search:focus-within{outline:2px solid var(--j-green)}.j-shell .menu-search input:focus-visible{outline:0}
:root .j-shell #navigation [hidden],:root .j-shell #menu-empty[hidden]{display:none!important}
.j-shell #menu-empty{font-size:12px;color:var(--j-muted);padding:5px 10px}
:root .j-workspace .heading h1{font-size:clamp(27px,2.6vw,39px);letter-spacing:-.045em}
:root .j-workspace .panel{border-radius:15px}
:root .j-workspace .service-banner{background:var(--j-green-soft);border-radius:17px;padding:26px 32px}
:root .j-workspace .service-banner small{letter-spacing:0;font-size:12px}
:root .j-workspace :is(.flow-grid,.vcc-stats,.role-metrics){display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;background:transparent;border:0;padding:0}
:root .j-workspace :is(.flow-metric,.vcc-stats>article,.role-metric){text-align:left;background:var(--j-surface);border:1px solid var(--j-line);border-top:3px solid #aac9bc;border-radius:12px;padding:17px 18px;min-width:0}
:root .j-workspace :is(.flow-metric,.vcc-stats>article,.role-metric) strong{font-variant-numeric:tabular-nums;line-height:1.25;overflow-wrap:anywhere}
.seller-summary-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:18px}
:root .j-workspace .vcc-card-number{background:linear-gradient(125deg,#d4ead9,#eff3de 48%,#e4dce9);color:#223e32;margin:0 0 14px;border:1px solid #c6d6ca;border-radius:16px}
.vcc-card-number>*{display:block}.vcc-card-number small{font-size:12px}.vcc-card-number strong{font-size:25px;margin:12px 0;letter-spacing:1px}
.pending-operation{border-left:3px solid #ae7a23;padding:12px 16px}.pending-operation small{display:block;overflow-wrap:anywhere}
:root .j-workspace .dashboard-grid>*{min-width:0}
@media(max-width:900px){.seller-summary-grid{grid-template-columns:1fr}}
@media(max-width:760px){
 :root .jarvis-home .jarvis-home-page{width:calc(100% - 28px)}
 :root .jarvis-home .jarvis-hero{grid-template-columns:1fr;margin:15px 0 20px;border-radius:17px;min-height:0}
 :root .jarvis-home .jarvis-hero-copy{padding:23px 21px}
 :root .jarvis-home .jarvis-hero h1{font-size:38px}
 :root .jarvis-home .jarvis-hero-lead{font-size:13px;margin-top:10px}
 :root .jarvis-home .jarvis-hero-actions{margin-top:15px;gap:10px}
 :root .jarvis-home .j-product{padding:18px!important;min-height:180px}
 .store-services{grid-template-columns:1fr}
 :root .j-workspace .service-banner{padding:18px}
 :root .j-workspace :is(.flow-grid,.vcc-stats,.role-metrics){grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 :root .j-workspace :is(.flow-metric,.vcc-stats>article,.role-metric){padding:12px}
}

/* Metrics use individual surfaces, including when an inner button has text styles. */
:root .j-workspace :is(.flow-grid,.vcc-stats,.role-metrics){overflow:visible}
:root .j-workspace :is(.flow-metric,.vcc-stats>article,.role-metric){background:var(--j-surface)!important;border-radius:12px!important}
:root .j-workspace .panel-head h2{font-size:18px}
:root .j-workspace .panel-head p{font-size:12px}
:root .j-shell.sidebar #navigation button:not(.active):not(:hover){background:transparent}
:root .j-workspace .heading h1,:root[data-theme] #kt_body.j-admin-legacy #kt_toolbar h1,:root .j-account-legacy .jarvis-center-heading h1{font-size:clamp(27px,2.6vw,39px)!important}
:root .jarvis-v2 .jarvis-query-page,:root .jarvis-v2 .jarvis-product-page{width:min(1232px,calc(100% - 8vw));max-width:1232px}
:root .jarvis-v2 .jarvis-query-page{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start}
:root .jarvis-v2 .jarvis-query-heading,:root .jarvis-v2 .jarvis-query-faq{grid-column:1/-1}
:root .jarvis-v2 .jarvis-query-heading h1{font-size:clamp(26px,2.6vw,39px)}
:root .jarvis-v2 .jarvis-query-page>.panel:first-of-type{grid-column:1}
:root .jarvis-v2 .jarvis-query-page>:is(.order-results,.no-results,.query-error,.loading-state){grid-column:2;min-width:0}
:root .jarvis-v2 .jarvis-query-page .order-query-form{background:var(--j-surface)!important;border:0;padding:0}
:root .jarvis-v2 .jarvis-query-page .order-item{background:var(--j-soft);border-color:var(--j-line);border-radius:14px}
:root .jarvis-v2 .jarvis-query-page .panel{margin-bottom:0}
:root .jarvis-v2 .jarvis-query-page .order-no-text{overflow-wrap:anywhere}
@media(max-width:760px){
 :root .jarvis-v2 .jarvis-query-page,:root .jarvis-v2 .jarvis-product-page{width:calc(100% - 28px)}
 :root .jarvis-v2 .jarvis-query-page{grid-template-columns:minmax(0,1fr);gap:14px}
 :root .jarvis-v2 .jarvis-query-page>:is(.order-results,.no-results,.query-error,.loading-state){grid-column:1}
}

:root .jarvis-v2 .jarvis-query-page .btn-primary{background:var(--j-green)!important;color:var(--j-surface)!important}
:root .jarvis-v2 .jarvis-query-page .order-results{margin-top:0}

/* JARVIS retail: the vivid feature surface is reserved for the brand illustration. */
:root { --za-feature:#0fc69a; --za-night:#10132d; --za-gutter:clamp(20px,6vw,96px); }
:root[data-theme=dark] { --za-feature:#159f80; }
:root body:is(.jarvis-v2,.jarvis-home) {
  --j-ink:inherit; --j-muted:inherit; --j-bg:inherit; --j-surface:inherit; --j-soft:inherit;
  --j-line:inherit; --j-mint:inherit; --j-green:inherit; --j-on-mint:inherit; --j-price:var(--j-green);
}
:root .jarvis-home .jarvis-home-page { width:100%; max-width:none; margin:0; padding:0; }
:root .jarvis-home .jarvis-hero {
  display:block; min-height:0; margin:0; padding:0; overflow:hidden;
  background:var(--za-feature); color:var(--za-night); border:0; border-radius:0;
}
.za-hero-inner, .jarvis-home-page > :is(.store-services,.jarvis-home-catalog,.za-help,.jarvis-home-notice,.za-store-footer) {
  width:min(1152px,calc(100% - 2 * var(--za-gutter))); margin-inline:auto;
}
.za-hero-inner { display:grid; grid-template-columns:1fr 1.08fr; align-items:center; min-height:432px; gap:28px; }
.za-hero-inner:has(.jarvis-hero-copy:only-child) { grid-template-columns:1fr; min-height:300px; }
:root .jarvis-home .jarvis-hero-copy { padding:40px 0; max-width:100%; text-align:left; }
:root .jarvis-home .jarvis-hero h1 {
  color:var(--za-night); font-size:clamp(44px,4.9vw,76px); font-weight:750;
  line-height:1.11; letter-spacing:-.055em; margin:0;
}
:root .jarvis-home .jarvis-hero-lead { color:#123d35; font-size:clamp(15px,1.4vw,20px); line-height:1.7; margin:20px 0 0; max-width:32em; }
:root .jarvis-home .jarvis-hero-actions { display:flex; align-items:center; gap:24px; margin-top:30px; }
:root .jarvis-home .jarvis-hero-actions .jarvis-catalog-cta {
  display:inline-flex; align-items:center; justify-content:space-between; gap:26px;
  min-height:50px; padding:0 26px; color:#fff; background:var(--za-night); border:0; border-radius:100px;
  font-size:16px; font-weight:650; text-decoration:none;
}
:root .jarvis-home .lookup-cta { padding:11px 0; color:var(--za-night); background:none; border:0; border-radius:0; text-decoration:underline; text-underline-offset:5px; font-size:15px; }
:root .jarvis-home .pass-studio { display:grid; place-content:center; position:relative; min-width:0; padding:18px 0; }
.za-object-stage { width:clamp(320px,36vw,500px); height:330px; position:relative; isolation:isolate; }
.za-object-stage img { position:absolute; height:auto; object-fit:contain; }
.za-robot { width:64%; right:12%; top:-3%; z-index:2; filter:drop-shadow(5px 13px 8px #003c3b25); }
.za-key { width:30%; left:6%; bottom:1%; z-index:3; transform:rotate(-13deg); filter:drop-shadow(3px 9px 4px #004f4938); }
.za-plinth {
  position:absolute; width:72%; height:58%; right:4%; bottom:-5%; border-radius:24%;
  transform:rotateX(66deg) rotateZ(-31deg); background:linear-gradient(115deg,#75ecc7,#3edab0 56%,#29c69a);
  box-shadow:0 3px 0 #30b18f,0 10px 0 #1ba981,0 19px 0 #159976, -12px 26px 22px #00694b46;
}
.za-featured-product { display:flex; justify-content:center; flex-wrap:wrap; gap:10px; align-items:center; margin-top:8px; }
.za-featured-product[hidden],.pass-switch[hidden],.ticket-brand img[hidden]{display:none}
.ticket-brand { display:flex; align-items:center; gap:8px; color:var(--za-night); max-width:100%; overflow-wrap:anywhere; }
.pass-switch { display:flex; gap:4px; flex-wrap:wrap; }
.pass-switch button { border:1px solid #123d3580; background:transparent; color:var(--za-night); border-radius:99px; padding:6px 12px; }
.pass-switch button[aria-pressed=true] { background:var(--za-night); color:white; }
:root .jarvis-home .shop-nav { max-width:1152px; margin-inline:auto; min-height:70px; }
:root .jarvis-home .shop-nav__item, :root .jarvis-v2 .shop-nav__item { font-weight:600; font-size:14px; }
:root .jarvis-home .shop-nav__item.active { background:transparent; border-radius:0; box-shadow:inset 0 -3px #00ae85!important; }
:root .jarvis-home .shop-auth .shop-btn--ghost { color:var(--za-night); background:#39e5b1; border:0; border-radius:999px; padding:10px 22px; }
.store-services { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; margin-block:32px 44px; }
.store-services a { display:grid; grid-template-columns:38px 1fr auto; align-items:center; gap:12px; min-height:100px; padding:18px 24px; background:var(--j-surface); color:var(--j-ink); border-radius:18px; text-decoration:none; }
.store-services a:hover { box-shadow:inset 0 0 0 1px var(--j-line); }
.store-services .material-icons-outlined { color:var(--j-green); font-size:30px; }
.store-services strong,.store-services small { display:block; } .store-services strong{font-size:17px} .store-services small{font-size:13px;color:var(--j-muted);margin-top:3px}
.store-services b { color:var(--j-muted);font-size:21px;font-weight:400; }
:root .jarvis-home .jarvis-catalog-heading { margin:0 0 18px; }
:root .jarvis-home .jarvis-catalog-heading h2,.za-help h2 { font-size:clamp(25px,2.5vw,36px); color:var(--j-ink); font-weight:700; line-height:1.2; letter-spacing:-.035em; }
:root .jarvis-home .item-list.jarvis-products { grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; }
:root .jarvis-home .j-product {
  background:var(--j-surface); border:1px solid var(--j-line); border-radius:20px; padding:22px!important;
  display:flex; flex-direction:column; align-items:flex-start; min-width:0; min-height:294px; gap:6px;
}
:root .jarvis-home .j-product:after { display:none; }
:root .jarvis-home .j-product-media { width:100%; height:70px; min-height:70px; display:flex; align-items:center; justify-content:space-between; background:none; }
:root .jarvis-home .j-product-cover { width:44px; height:44px; position:static; object-fit:contain; }
:root .jarvis-home .j-product-key { display:block; width:57px; height:57px; right:0;top:0;opacity:.88; }
:root .jarvis-home .j-product-title { font-size:21px; line-height:1.3; color:var(--j-ink); margin:0; overflow-wrap:anywhere; }
:root .jarvis-home .j-product-plan,:root .jarvis-home .j-product-stock { font-size:13px; color:var(--j-muted); margin:0; }
:root .jarvis-home .j-product-price { margin:10px 0 0; color:var(--j-green); font-size:29px; font-variant-numeric:tabular-nums; }
:root .jarvis-home .j-product-tags { margin:4px 0 12px; }
:root .jarvis-home .j-product-cta { margin-top:auto; min-height:42px; width:100%; border-radius:100px; color:var(--j-on-mint); background:var(--j-mint); border:0; }
:root .jarvis-home .jarvis-catalog-state { border:0; border-radius:18px; background:var(--j-surface); min-height:145px; padding:24px; }
:root .jarvis-home .jarvis-catalog-state h2 { font-size:19px; color:var(--j-ink); }
:root .jarvis-home .j-category { border-radius:100px; }
:root .jarvis-home .j-category.is-primary { background:var(--j-ink);border-color:var(--j-ink);color:var(--j-surface); }
.za-help { display:grid;grid-template-columns:1fr 2fr;gap:40px;align-items:start;padding:40px 0 28px; }
.za-help h2 { margin:2px 0; }
.za-help details { padding:0 2px;border-top:1px solid var(--j-line); }
.za-help details:last-child{border-bottom:1px solid var(--j-line)}
.za-help summary { cursor:pointer; list-style:none; font-size:16px;font-weight:600;padding:18px 28px 18px 0;position:relative; }
.za-help summary::-webkit-details-marker {display:none}
.za-help summary:after {content:'+';position:absolute;right:4px;font-size:19px;color:var(--j-green)}
.za-help details[open] summary:after{content:'−'}
.za-help details p {font-size:14px;line-height:1.8;color:var(--j-muted);margin:0 0 18px;}
.za-help a,.za-store-footer a{color:var(--j-green)}
.za-store-footer {display:flex;gap:22px;align-items:center;justify-content:flex-end;padding:24px 0 32px;border-top:1px solid var(--j-line);font-size:13px}
.za-store-footer>span {margin-right:auto;font-weight:650}

/* Operations and service areas use the same ink, action and state system with quieter surfaces. */
:root .j-shell.sidebar { background:var(--j-surface);border-right:1px solid var(--j-line); }
:root .j-shell.sidebar .brand { font-weight:750; color:var(--j-ink)!important; }
:root .j-shell.sidebar #navigation button.active { background:var(--j-green-soft);color:var(--j-ink);box-shadow:inset 3px 0 #00af83; }
:root .j-workspace .heading h1,:root .j-account-legacy .jarvis-center-heading h1 {font-weight:700!important}
:root .j-workspace #notice.quiet:empty{display:none}
:root .j-workspace main {padding-bottom:32px}
:root .j-workspace :is(.flow-grid,.vcc-stats,.role-metrics) {padding:6px 0;gap:0;background:var(--j-surface);border:1px solid var(--j-line);border-radius:16px;overflow:hidden}
:root .j-workspace :is(.flow-metric,.vcc-stats>article,.role-metric),:root .j-workspace .role-metric:nth-child(2) {border:0!important;background:transparent!important;border-radius:0!important;padding:16px 20px;box-shadow:none!important}
:root .j-workspace :is(.flow-metric,.vcc-stats>article,.role-metric):not(:last-child) {border-right:1px solid var(--j-line)!important}
:root .j-workspace :is(.flow-metric,.vcc-stats>article,.role-metric) strong {font-weight:650;font-size:clamp(24px,2.7vw,38px);color:var(--j-ink);line-height:1.2;font-variant-numeric:tabular-nums}
:root .j-workspace :is(.panel,.table-wrap),:root .jarvis-v2 .panel {border-radius:16px!important;box-shadow:none!important}
:root .j-workspace .panel-head {padding:18px 22px} :root .j-workspace .panel-head h2{font-size:18px}
:root .j-workspace .data-table td{font-size:13px}
:root .j-workspace :is(.role-summary-panel,.template-intro,.vcc-product-guide,.service-banner),
:root .jarvis-v2 :is(.jarvis-product-summary,.order-query-form,.uc-stat){background:var(--j-surface)!important;background-image:none!important}
:root .j-workspace .service-banner{border:1px solid var(--j-line);border-left:5px solid var(--j-mint)}
:root .j-workspace .vcc-card-number{background:#242645;color:#fff;border:0;box-shadow:inset 0 -4px 0 #39e5b1;letter-spacing:.06em}
:root .j-workspace .vcc-card-number small{color:#d1d4e5}
:root .j-workspace :is(button.primary,.button-link.primary),:root .jarvis-v2 :is(.btn-primary,.btn-gradient,.shop-btn--primary),:root .jarvis-v2 .jarvis-query-page .btn-primary,:root body.lk .lk-submit{color:var(--j-on-mint)!important;background:var(--j-mint)!important;border:0!important;border-radius:999px!important}
:root .j-workspace :is(button.primary,.button-link.primary):hover:not(:disabled),:root .jarvis-v2 .btn-primary:hover{filter:brightness(.94)}
:root body:is(.jarvis-secondary-auth,.lk) .j-auth-story { display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:12px;position:relative;padding:32px 38px;min-height:360px;background:var(--za-feature);border-radius:20px;overflow:hidden; }
:root body:is(.jarvis-secondary-auth,.lk) .j-auth-story h2 {font-size:clamp(34px,3.6vw,52px);margin:0;color:var(--za-night);font-weight:730}
:root body:is(.jarvis-secondary-auth,.lk) .j-auth-story p {font-size:15px;color:#153e36;margin:12px 0 0;line-height:1.7}
:root body:is(.jarvis-secondary-auth,.lk) .j-auth-stage {background:none;position:relative;width:164px;height:164px;top:auto;right:auto;align-self:flex-end}
:root body:is(.jarvis-secondary-auth,.lk) .j-auth-stage img {width:100%;height:100%;object-fit:contain}
:root :focus-visible {outline-offset:3px}
@media (max-width:980px){
  :root .jarvis-home .item-list.jarvis-products {grid-template-columns:repeat(2,minmax(0,1fr))}
  .za-object-stage{width:clamp(240px,36vw,355px);height:240px} .store-services{gap:10px}.store-services a{padding:14px}
}
@media (max-width:650px){
  :root {--za-gutter:18px}
  :root .jarvis-home .shop-nav {min-height:66px;padding:10px 0;display:flex;gap:8px}
  :root .jarvis-home .shop-nav__list{display:none!important}
  :root .jarvis-home .shop-nav__right{margin-left:auto}
  .za-hero-inner {display:flex; flex-direction:column;gap:0;padding:20px 0 32px;min-height:0}
  :root .jarvis-home .pass-studio{order:-1;padding:0}
  .za-object-stage{width:240px;height:163px}
  :root .jarvis-home .jarvis-hero-copy{padding:22px 0 0;text-align:center}
  :root .jarvis-home .jarvis-hero h1{font-size:clamp(35px,9vw,49px)}
  :root .jarvis-home .jarvis-hero-lead{font-size:15px;margin-top:10px}
  :root .jarvis-home .jarvis-hero-actions{justify-content:center;margin-top:18px;gap:18px}
  :root .jarvis-home .jarvis-hero-actions .jarvis-catalog-cta{min-height:45px;font-size:14px}
  .store-services{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-block:16px 28px}
  .store-services a{display:flex;flex-direction:column;justify-content:center;text-align:center;gap:5px;padding:9px 2px;min-height:78px;border-radius:12px}
  .store-services strong{font-size:14px}.store-services small,.store-services b{display:none}
  .store-services .material-icons-outlined{font-size:24px}
  .za-help{grid-template-columns:1fr;gap:14px;padding-top:26px}
  .za-help summary{font-size:15px}
  :root body:is(.jarvis-secondary-auth,.lk) .j-auth-story{display:none}
  :root .j-workspace :is(.flow-grid,.vcc-stats,.role-metrics){grid-template-columns:repeat(2,minmax(0,1fr))}
  :root .j-workspace :is(.flow-metric,.vcc-stats>article,.role-metric){padding:12px}
  :root .j-workspace :is(.flow-metric,.vcc-stats>article,.role-metric):nth-child(2){border-right:0!important}
}
@media (max-width:460px){:root .jarvis-home .item-list.jarvis-products{grid-template-columns:1fr}}

:root .jarvis-home .jarvis-hero .lookup-cta { color:var(--za-night); }
:root[data-theme=dark] .jarvis-home :is(.uc-topbar__inner,.shop-nav,.jarvis-catalog-search,.jarvis-catalog-search input) { background:var(--j-surface)!important; color:var(--j-ink); }
:root[data-theme=dark] .jarvis-home .jarvis-hero-lead,:root[data-theme=dark] .j-auth-story p { color:#071c22!important; }
:root .j-workspace .queue-secondary { padding:10px 22px; }
:root .j-workspace .queue-secondary summary { cursor:pointer; color:var(--j-green); font-size:13px; }
:root .j-workspace .queue-clear { padding:18px 22px 0; color:var(--j-muted); font-size:14px; }

:root[data-theme=dark] .jarvis-home .jarvis-catalog-search input{background:transparent!important}
:root[data-theme=dark] .jarvis-home .jarvis-catalog-search input::placeholder{color:var(--j-muted);opacity:1}

/* Unified legacy administration surface: KPI tiles, category tabs, three-tier toolbars, static filter labels, compact tables, switches, and modals. */
html[data-theme] body#kt_body.j-admin-legacy .md-stat-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(min(195px,100%),1fr))!important;
  gap:14px!important;
  margin-bottom:18px!important;
}
html[data-theme] body#kt_body.j-admin-legacy .md-stat{
  min-height:70px!important;
  padding:14px 18px!important;
  border-radius:16px!important;
  border:1px solid var(--j-line)!important;
  background:var(--j-surface)!important;
  background-image:none!important;
  box-shadow:none!important;
  transform:none!important;
  transition:border-color .15s ease!important;
}
html[data-theme] body#kt_body.j-admin-legacy .md-stat:hover{
  border-color:var(--j-green)!important;
  box-shadow:none!important;
  transform:none!important;
}
html[data-theme] body#kt_body.j-admin-legacy .md-stat__label{
  font-size:12px!important;
  font-weight:500!important;
  color:var(--j-muted)!important;
  margin-bottom:4px!important;
}
html[data-theme] body#kt_body.j-admin-legacy .md-stat__value{
  font-size:23px!important;
  font-weight:700!important;
  color:var(--j-ink)!important;
  font-variant-numeric:tabular-nums!important;
  line-height:1.15!important;
}
html[data-theme] body#kt_body.j-admin-legacy .md-stat__icon{
  width:38px!important;
  height:38px!important;
  border-radius:10px!important;
  border:0!important;
  box-shadow:none!important;
  font-size:15px!important;
}
html[data-theme] body#kt_body.j-admin-legacy :is(.md-stat--primary,.md-stat--success) .md-stat__icon{
  background:var(--j-green-soft)!important;
  color:var(--j-green)!important;
}
html[data-theme] body#kt_body.j-admin-legacy .md-stat--danger .md-stat__icon{
  background:var(--j-error-soft)!important;
  color:var(--j-error)!important;
}
html[data-theme] body#kt_body.j-admin-legacy .md-stat--info .md-stat__icon{
  background:var(--j-purple-soft)!important;
  color:var(--j-purple)!important;
}
html[data-theme] body#kt_body.j-admin-legacy .md-stat--secondary .md-stat__icon{
  background:var(--j-soft)!important;
  color:var(--j-muted)!important;
}

/* Horizontal category bar (Commodity) */
html[data-theme] body#kt_body.j-admin-legacy .md-cat-tabs-container{
  padding:8px 10px!important;
  border-radius:16px!important;
  background:var(--j-surface)!important;
  border:1px solid var(--j-line)!important;
  box-shadow:none!important;
}
html[data-theme] body#kt_body.j-admin-legacy .md-cat-tab-item{
  height:36px!important;
  padding:0 14px!important;
  border-radius:10px!important;
  background:var(--j-soft)!important;
  border:1px solid transparent!important;
  color:var(--j-muted)!important;
  font-size:13px!important;
  font-weight:550!important;
}
html[data-theme] body#kt_body.j-admin-legacy .md-cat-tab-item:hover{
  background:var(--j-surface)!important;
  border-color:var(--j-line)!important;
  color:var(--j-ink)!important;
}
html[data-theme] body#kt_body.j-admin-legacy .md-cat-tab-item.active{
  background:#10132d!important;
  border-color:#10132d!important;
  color:#fff!important;
  box-shadow:0 2px 6px rgba(16,19,45,.14)!important;
}
html[data-theme="dark"] body#kt_body.j-admin-legacy .md-cat-tab-item.active{
  background:var(--j-mint)!important;
  border-color:var(--j-mint)!important;
  color:var(--j-on-mint)!important;
  box-shadow:none!important;
}
html[data-theme] body#kt_body.j-admin-legacy .md-cat-tab-badge{
  background:var(--j-surface)!important;
  color:var(--j-muted)!important;
  padding:2px 7px!important;
  font-size:11px!important;
}
html[data-theme] body#kt_body.j-admin-legacy .md-cat-tab-item.active .md-cat-tab-badge{
  background:rgba(255,255,255,.2)!important;
  color:inherit!important;
}
html[data-theme="dark"] body#kt_body.j-admin-legacy .md-cat-tab-item.active .md-cat-tab-badge{
  background:rgba(16,59,42,.2)!important;
}
html[data-theme] body#kt_body.j-admin-legacy .md-cat-tabs-actions{
  border-left-color:var(--j-line)!important;
}
html[data-theme] body#kt_body.j-admin-legacy .md-cat-manage-btn{
  color:var(--j-muted)!important;
  border-radius:9px!important;
}
html[data-theme] body#kt_body.j-admin-legacy .md-cat-manage-btn:hover{
  background:var(--j-soft)!important;
  color:var(--j-ink)!important;
}

/* Cards & 3-tier toolbar button hierarchy */
html[data-theme] body#kt_body.j-admin-legacy .card{
  background:var(--j-surface)!important;
  border:1px solid var(--j-line)!important;
  border-radius:18px!important;
  box-shadow:none!important;
}
html[data-theme] body#kt_body.j-admin-legacy .card>.card-header{
  padding:16px 22px 12px!important;
  border-bottom:1px solid var(--j-line)!important;
  min-height:0!important;
}
html[data-theme] body#kt_body.j-admin-legacy .card>.card-body{
  padding:16px 22px 20px!important;
}
html[data-theme] body#kt_body.j-admin-legacy .card-toolbar{
  display:flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  margin:0!important;
}
html[data-theme] body#kt_body.j-admin-legacy .card-toolbar .btn{
  margin:0!important;
  min-height:36px!important;
  height:auto!important;
  padding:7px 15px!important;
  border-radius:999px!important;
  font-size:12.5px!important;
  font-weight:550!important;
  line-height:1.35!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  box-shadow:none!important;
  background-image:none!important;
  transition:background-color .15s ease,border-color .15s ease,color .15s ease,filter .15s ease!important;
}
html[data-theme] body#kt_body.j-admin-legacy .card-toolbar .btn>i{
  font-size:13.5px!important;
  line-height:1!important;
  color:currentColor!important;
}
html[data-theme] body#kt_body.j-admin-legacy .card-toolbar .btn:not(.btn-app-create):not(.btn-primary):not(.btn-app-del):not(.btn-light-danger){
  background:var(--j-surface)!important;
  border:1px solid var(--j-line)!important;
  color:var(--j-ink)!important;
}
html[data-theme] body#kt_body.j-admin-legacy .card-toolbar .btn:not(.btn-app-create):not(.btn-primary):not(.btn-app-del):not(.btn-light-danger):hover{
  background:var(--j-soft)!important;
  border-color:#cbd5e1!important;
  color:var(--j-ink)!important;
}
html[data-theme="dark"] body#kt_body.j-admin-legacy .card-toolbar .btn:not(.btn-app-create):not(.btn-primary):not(.btn-app-del):not(.btn-light-danger):hover{
  border-color:#4b5563!important;
}
html[data-theme] body#kt_body.j-admin-legacy .card-toolbar .btn.btn-product-templates>i{
  color:var(--j-green)!important;
}
html[data-theme] body#kt_body.j-admin-legacy .card-toolbar .btn:is(.btn-app-create,.btn-primary){
  background:var(--j-mint)!important;
  border:1px solid var(--j-mint)!important;
  color:var(--j-on-mint)!important;
  font-weight:650!important;
}
html[data-theme] body#kt_body.j-admin-legacy .card-toolbar .btn:is(.btn-app-create,.btn-primary):hover{
  background:var(--j-mint)!important;
  border-color:var(--j-mint)!important;
  color:var(--j-on-mint)!important;
  filter:brightness(.94)!important;
}
html[data-theme] body#kt_body.j-admin-legacy .card-toolbar .btn:is(.btn-app-del,.btn-light-danger){
  background:#fef2f2!important;
  border:1px solid #fecaca!important;
  color:#dc2626!important;
}
html[data-theme] body#kt_body.j-admin-legacy .card-toolbar .btn:is(.btn-app-del,.btn-light-danger):hover{
  background:#fee2e2!important;
  border-color:#f87171!important;
  color:#b91c1c!important;
}
html[data-theme="dark"] body#kt_body.j-admin-legacy .card-toolbar .btn:is(.btn-app-del,.btn-light-danger){
  background:var(--j-error-soft)!important;
  border-color:rgba(255,176,182,.35)!important;
  color:var(--j-error)!important;
}

/* Search filter bar: flush, clean surface with zero nested boxes */
html[data-theme] body#kt_body.j-admin-legacy .table-search{
  margin:4px 0 16px 0!important;
  padding:0!important;
  background:transparent!important;
  border:none!important;
  border-radius:0!important;
  box-sizing:border-box!important;
}

/* Inline layout for short search bars (<= 3 items, e.g. Category, Commodity, Store) */
html[data-theme] body#kt_body.j-admin-legacy .table-search.table-search--inline,
html[data-theme] body#kt_body.j-admin-legacy .table-search:not(.table-search--grid):not(:has(.mui-sf:not(.hide)~.mui-sf:not(.hide)~.mui-sf:not(.hide)~.mui-sf:not(.hide))){
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:flex-end!important;
  gap:12px 14px!important;
}
html[data-theme] body#kt_body.j-admin-legacy .table-search.table-search--inline .layui-input-inline.mui-sf,
html[data-theme] body#kt_body.j-admin-legacy .table-search:not(.table-search--grid):not(:has(.mui-sf:not(.hide)~.mui-sf:not(.hide)~.mui-sf:not(.hide)~.mui-sf:not(.hide))) .layui-input-inline.mui-sf{
  width:240px!important;
  min-width:180px!important;
  max-width:280px!important;
  flex:0 0 auto!important;
}
html[data-theme] body#kt_body.j-admin-legacy .table-search.table-search--inline .table-search__actions,
html[data-theme] body#kt_body.j-admin-legacy .table-search:not(.table-search--grid):not(:has(.mui-sf:not(.hide)~.mui-sf:not(.hide)~.mui-sf:not(.hide)~.mui-sf:not(.hide))) .table-search__actions{
  grid-column:auto!important;
  justify-self:auto!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:8px!important;
  width:auto!important;
  margin:0!important;
  flex:0 0 auto!important;
  padding-bottom:1px!important;
}

/* Grid layout for comprehensive multi-field search forms: expanded state OR legacy non-advanced */
html[data-theme] body#kt_body.j-admin-legacy .table-search.table-search--grid.is-expanded,
html[data-theme] body#kt_body.j-admin-legacy .table-search:not(.has-advanced):has(.mui-sf:not(.hide)~.mui-sf:not(.hide)~.mui-sf:not(.hide)~.mui-sf:not(.hide)){
  display:grid!important;
  grid-template-columns:repeat(4, minmax(0, 1fr))!important;
  gap:14px 16px!important;
  align-items:end!important;
}
html[data-theme] body#kt_body.j-admin-legacy .table-search.table-search--grid.is-expanded .table-search__actions,
html[data-theme] body#kt_body.j-admin-legacy .table-search:not(.has-advanced):has(.mui-sf:not(.hide)~.mui-sf:not(.hide)~.mui-sf:not(.hide)~.mui-sf:not(.hide)) .table-search__actions{
  grid-column:4!important;
  justify-self:end!important;
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  width:auto!important;
  margin:0!important;
}

html[data-theme] body#kt_body.j-admin-legacy .table-search .layui-input-inline.mui-sf:not(.hide),
html[data-theme] body#kt_body.j-admin-legacy .table-search .layui-input-inline:not(.text-center):not(.hide):not(.table-search__actions):not(:has(.query-button)){
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  gap:6px!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
  position:relative!important;
}

/* Collapsible advanced search filters: placed AFTER mui-sf to win cascade */
html[data-theme] body#kt_body.j-admin-legacy .table-search.has-advanced:not(.is-expanded) .layui-input-inline.mui-sf--advanced,
html[data-theme] body#kt_body.j-admin-legacy .table-search.has-advanced:not(.is-expanded) .mui-sf--advanced,
html[data-theme] body#kt_body.j-admin-legacy .table-search.has-advanced:not(.is-expanded) .table-search__range--advanced,
html[data-theme] body#kt_body.j-admin-legacy .table-search.has-advanced:not(.is-expanded) .layui-input-inline:not(.text-center):not(.hide):not(.table-search__actions):not(:has(.query-button)).mui-sf--advanced,
html[data-theme] body#kt_body.j-admin-legacy .table-search.has-advanced:not(.is-expanded) div.mui-sf--advanced {
  display:none!important;
}
html[data-theme] body#kt_body.j-admin-legacy .table-search.has-advanced:not(.is-expanded){
  display:inline-flex!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  gap:10px!important;
}
html[data-theme] body#kt_body.j-admin-legacy .table-search.has-advanced:not(.is-expanded) .layui-input-inline.mui-sf:not(.mui-sf--advanced){
  width:160px!important;
  min-width:130px!important;
  max-width:200px!important;
  flex:0 0 auto!important;
}
html[data-theme] body#kt_body.j-admin-legacy .table-search.has-advanced:not(.is-expanded) .table-search__actions{
  grid-column:auto!important;
  justify-self:auto!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:8px!important;
  width:auto!important;
  margin:0!important;
  flex:0 0 auto!important;
  padding-bottom:1px!important;
}
html[data-theme] body#kt_body.j-admin-legacy .table-search .table-search__toggle-btn{
  color:var(--j-muted)!important;
  border-color:var(--j-line)!important;
  background:var(--j-surface)!important;
  transition:all .2s ease!important;
}
html[data-theme] body#kt_body.j-admin-legacy .table-search .table-search__toggle-btn:hover,
html[data-theme] body#kt_body.j-admin-legacy .table-search.is-expanded .table-search__toggle-btn{
  color:var(--j-green)!important;
  border-color:var(--j-green)!important;
  background:var(--j-green-soft)!important;
}
html[data-theme] body#kt_body.j-admin-legacy .table-search .mui-sf__label{
  order:-1!important;
  position:static!important;
  top:auto!important;
  left:auto!important;
  transform:none!important;
  max-width:none!important;
  width:auto!important;
  height:18px!important;
  background:transparent!important;
  padding:0!important;
  margin:0!important;
  font-size:12px!important;
  font-weight:550!important;
  color:var(--j-muted)!important;
  line-height:18px!important;
  pointer-events:auto!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
html[data-theme] body#kt_body.j-admin-legacy .table-search .mui-sf:focus-within>.mui-sf__label{
  color:var(--j-green)!important;
  top:auto!important;
  transform:none!important;
}
html[data-theme] body#kt_body.j-admin-legacy .table-search .layui-form-select{
  position:relative!important;
  width:100%!important;
}
html[data-theme] body#kt_body.j-admin-legacy .table-search :is(.layui-input,.layui-form-select .layui-input,xm-select[size="mini"]){
  height:38px!important;
  min-height:38px!important;
  line-height:38px!important;
  width:100%!important;
  box-sizing:border-box!important;
  border-radius:8px!important;
  border:1px solid var(--j-line)!important;
  background:var(--j-surface)!important;
  color:var(--j-ink)!important;
  font-size:13px!important;
  padding:0 12px!important;
  box-shadow:none!important;
}
html[data-theme] body#kt_body.j-admin-legacy .table-search .layui-form-select .layui-input{
  padding-right:30px!important;
}
html[data-theme] body#kt_body.j-admin-legacy .table-search .layui-input:focus{
  border-color:var(--j-green)!important;
  box-shadow:0 0 0 3px rgba(0,110,84,.12)!important;
}
html[data-theme] body#kt_body.j-admin-legacy .table-search__range{
  grid-column:span 2!important;
  display:grid!important;
  grid-template-columns:1fr 18px 1fr!important;
  align-items:end!important;
  gap:6px!important;
  width:100%!important;
}
html[data-theme] body#kt_body.j-admin-legacy .table-search__range .mui-sf{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
}
html[data-theme] body#kt_body.j-admin-legacy .table-search__range .text-center{
  width:18px!important;
  height:38px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  line-height:1!important;
  margin:0!important;
  color:var(--j-muted)!important;
  font-size:14px!important;
}
html[data-theme] body#kt_body.j-admin-legacy .table-search .query-button,
html[data-theme] body#kt_body.j-admin-legacy .table-search .table-search__reset-btn{
  height:38px!important;
  min-height:38px!important;
  line-height:36px!important;
  margin:0!important;
  border-radius:8px!important;
  font-size:13px!important;
  font-weight:550!important;
  padding:0 16px!important;
  box-sizing:border-box!important;
  box-shadow:none!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  cursor:pointer!important;
  transition:all .2s ease!important;
}
html[data-theme] body#kt_body.j-admin-legacy .table-search .query-button{
  background:#10132d!important;
  border:1px solid #10132d!important;
  color:#fff!important;
}
html[data-theme] body#kt_body.j-admin-legacy .table-search .query-button:hover{
  background:var(--j-green)!important;
  border-color:var(--j-green)!important;
  color:#fff!important;
}
html[data-theme] body#kt_body.j-admin-legacy .table-search .table-search__reset-btn{
  background:var(--j-surface)!important;
  border:1px solid var(--j-line)!important;
  color:var(--j-muted)!important;
}
html[data-theme] body#kt_body.j-admin-legacy .table-search .table-search__reset-btn:hover{
  background:var(--j-soft)!important;
  color:var(--j-ink)!important;
  border-color:var(--j-muted)!important;
}
html[data-theme="dark"] body#kt_body.j-admin-legacy .table-search .query-button{
  background:var(--j-mint)!important;
  border-color:var(--j-mint)!important;
  color:var(--j-on-mint)!important;
}
html[data-theme="dark"] body#kt_body.j-admin-legacy .table-search .table-search__reset-btn{
  background:rgba(255,255,255,.06)!important;
  border-color:var(--j-line)!important;
  color:var(--j-muted)!important;
}
@media(max-width:1200px){
  html[data-theme] body#kt_body.j-admin-legacy .table-search.table-search--grid.is-expanded,
  html[data-theme] body#kt_body.j-admin-legacy .table-search:not(.has-advanced):has(.mui-sf:not(.hide)~.mui-sf:not(.hide)~.mui-sf:not(.hide)~.mui-sf:not(.hide)){
    grid-template-columns:repeat(2, minmax(0, 1fr))!important;
  }
  html[data-theme] body#kt_body.j-admin-legacy .table-search.table-search--grid.is-expanded .table-search__actions,
  html[data-theme] body#kt_body.j-admin-legacy .table-search:not(.has-advanced):has(.mui-sf:not(.hide)~.mui-sf:not(.hide)~.mui-sf:not(.hide)~.mui-sf:not(.hide)) .table-search__actions{
    grid-column:2!important;
  }
}
@media(max-width:640px){
  html[data-theme] body#kt_body.j-admin-legacy .table-search.table-search--grid.is-expanded,
  html[data-theme] body#kt_body.j-admin-legacy .table-search:not(.has-advanced):has(.mui-sf:not(.hide)~.mui-sf:not(.hide)~.mui-sf:not(.hide)~.mui-sf:not(.hide)){
    grid-template-columns:1fr!important;
  }
  html[data-theme] body#kt_body.j-admin-legacy .table-search__range,
  html[data-theme] body#kt_body.j-admin-legacy .table-search.table-search--grid.is-expanded .table-search__actions,
  html[data-theme] body#kt_body.j-admin-legacy .table-search:not(.has-advanced):has(.mui-sf:not(.hide)~.mui-sf:not(.hide)~.mui-sf:not(.hide)~.mui-sf:not(.hide)) .table-search__actions{
    grid-column:1!important;
    justify-self:stretch!important;
  }
}
html[data-theme] body#kt_body.j-admin-legacy .table-switch-state{
  display:inline-flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  gap:4px!important;
  margin:0 0 14px 0!important;
  padding:4px!important;
  background:var(--j-soft)!important;
  border:1px solid var(--j-line)!important;
  border-radius:12px!important;
}
html[data-theme] body#kt_body.j-admin-legacy .table-switch-state button{
  height:30px!important;
  min-height:30px!important;
  padding:0 14px!important;
  border-radius:8px!important;
  border:0!important;
  background:transparent!important;
  color:var(--j-muted)!important;
  font-size:12.5px!important;
  font-weight:550!important;
  box-shadow:none!important;
}
html[data-theme] body#kt_body.j-admin-legacy .table-switch-state button.active{
  background:var(--j-surface)!important;
  color:var(--j-ink)!important;
  font-weight:650!important;
  box-shadow:0 1px 2px rgba(16,19,45,.08)!important;
}

/* Tables, sticky action column, checkboxes, and capsule switches */
html[data-theme] body#kt_body.j-admin-legacy .bootstrap-table .fixed-table-container{
  border:1px solid var(--j-line)!important;
  border-radius:14px!important;
  overflow:hidden!important;
  background:var(--j-surface)!important;
}
html[data-theme] body#kt_body.j-admin-legacy .bootstrap-table .fixed-table-body{
  overflow-x:auto!important;
  scrollbar-width:thin!important;
}
html[data-theme] body#kt_body.j-admin-legacy .bootstrap-table .table thead th{
  background:var(--j-soft)!important;
  color:var(--j-muted)!important;
  border-bottom:1px solid var(--j-line)!important;
  padding:0!important;
}
html[data-theme] body#kt_body.j-admin-legacy .bootstrap-table .table thead th .th-inner{
  padding:10px 9px!important;
  font-size:11.5px!important;
  font-weight:600!important;
  white-space:nowrap!important;
  color:var(--j-muted)!important;
}
html[data-theme] body#kt_body.j-admin-legacy .bootstrap-table .table tbody td{
  padding:9px!important;
  font-size:12.5px!important;
  line-height:1.5!important;
  border-bottom:1px solid var(--j-line)!important;
  color:var(--j-ink)!important;
  background:var(--j-surface)!important;
  vertical-align:middle!important;
}
html[data-theme] body#kt_body.j-admin-legacy .bootstrap-table .table tbody tr:hover td{
  background:var(--j-soft)!important;
}
html[data-theme] body#kt_body.j-admin-legacy :is(#pay-table,#card-table) thead th .th-inner{
  padding:8px 5px!important;
  font-size:11px!important;
}
html[data-theme] body#kt_body.j-admin-legacy :is(#pay-table,#card-table) tbody td{
  padding:7px 5px!important;
  font-size:11.5px!important;
}
html[data-theme] body#kt_body.j-admin-legacy #card-table .md-commodity-cell--sm{
  min-width:112px!important;
  gap:6px!important;
}
html[data-theme] body#kt_body.j-admin-legacy #card-table .md-commodity-cell__cover{
  width:28px!important;
  height:28px!important;
  border-radius:7px!important;
}
html[data-theme] body#kt_body.j-admin-legacy .md-copyable-cell--clamp{
  display:inline-flex!important;
  align-items:center!important;
  gap:4px!important;
  max-width:100%!important;
}
html[data-theme] body#kt_body.j-admin-legacy .md-copyable-cell--clamp .md-copyable-cell__value{
  min-width:0!important;
  max-width:calc(100% - 36px)!important;
  flex:0 1 auto!important;
}
html[data-theme] body#kt_body.j-admin-legacy #card-table .md-copyable-cell--clamp{
  max-width:168px!important;
}
html[data-theme] body#kt_body.j-admin-legacy #card-table .md-copyable-cell--clamp .md-copyable-cell__value{
  min-width:0!important;
  max-width:138px!important;
}
html[data-theme] body#kt_body.j-admin-legacy #card-table .md-copyable-cell__copy{
  flex:0 0 24px!important;
  width:24px!important;
  height:24px!important;
}
html[data-theme] body#kt_body.j-admin-legacy #card-table .md-copyable-cell__copy i{
  font-size:14px!important;
}
html[data-theme] body#kt_body.j-admin-legacy #card-table .md-pair__row{
  gap:4px!important;
  font-size:11px!important;
}
html[data-theme] body#kt_body.j-admin-legacy #card-table td.action-col :is(a,.btn-icon){
  width:26px!important;
  min-width:26px!important;
  height:26px!important;
  margin:0 1px!important;
}
html[data-theme] body#kt_body.j-admin-legacy #card-table td.action-col a[data-btn-title]:not([data-btn-title=""]){
  width:auto!important;
  padding:0 6px!important;
  gap:3px!important;
  font-size:11px!important;
}
html[data-theme] body#kt_body.j-admin-legacy .md-commodity-cell--sm{
  min-width:128px!important;
}
html[data-theme] body#kt_body.j-admin-legacy .md-pair__row,
html[data-theme] body#kt_body.j-admin-legacy .md-pay__name{
  white-space:nowrap!important;
}
html[data-theme] body#kt_body.j-admin-legacy .table :is(th:last-child,td:last-child){
  background-color:var(--j-surface)!important;
  box-shadow:none!important;
}
html[data-theme] body#kt_body.j-admin-legacy .table thead th:last-child{
  background-color:var(--j-soft)!important;
}
html[data-theme] body#kt_body.j-admin-legacy .bootstrap-table .fixed-table-container .table :is(th.action-col,td.action-col){
  position:sticky!important;
  right:0!important;
  z-index:8!important;
  background-color:var(--j-surface)!important;
  background-image:none!important;
  box-shadow:-6px 0 12px rgba(16,19,45,.06)!important;
  white-space:nowrap!important;
}
html[data-theme] body#kt_body.j-admin-legacy .bootstrap-table .fixed-table-container .table thead th.action-col{
  z-index:9!important;
  background-color:var(--j-soft)!important;
}
html[data-theme] body#kt_body.j-admin-legacy .bootstrap-table .fixed-table-container .table tbody tr:hover td.action-col{
  background-color:var(--j-soft)!important;
}
html[data-theme="dark"] body#kt_body.j-admin-legacy .bootstrap-table .fixed-table-container .table :is(th.action-col,td.action-col){
  box-shadow:-6px 0 12px rgba(0,0,0,.35)!important;
}
@media(max-width:760px){
  html[data-theme] body#kt_body.j-admin-legacy .card>.card-header,
  html[data-theme] body#kt_body.j-admin-legacy .card>.card-body{padding:14px!important}
  html[data-theme] body#kt_body.j-admin-legacy .table-search .layui-input-inline.mui-sf:not(.hide){max-width:none!important;flex:1 1 100%!important}
}
html[data-theme] body#kt_body.j-admin-legacy .table td.action-col :is(a,.btn-icon){
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:30px!important;
  min-width:30px!important;
  height:30px!important;
  border-radius:8px!important;
  background:var(--j-soft)!important;
  border:1px solid var(--j-line)!important;
  box-shadow:none!important;
  margin:0 2px!important;
  padding:0!important;
  white-space:nowrap!important;
}
html[data-theme] body#kt_body.j-admin-legacy .table td.action-col a[data-btn-title=""] .btn-title{
  display:none!important;
}
html[data-theme] body#kt_body.j-admin-legacy .table td.action-col a[data-btn-title]:not([data-btn-title=""]){
  width:auto!important;
  padding:0 8px!important;
  gap:4px!important;
  font-size:11.5px!important;
  font-weight:550!important;
}
html[data-theme] body#kt_body.j-admin-legacy .bootstrap-table input[type="checkbox"]{
  width:16px!important;
  height:16px!important;
  border:1.5px solid var(--j-muted)!important;
  border-radius:5px!important;
  background:var(--j-surface)!important;
}
html[data-theme] body#kt_body.j-admin-legacy .bootstrap-table input[type="checkbox"]:hover{
  border-color:var(--j-green)!important;
}
html[data-theme] body#kt_body.j-admin-legacy .bootstrap-table input[type="checkbox"]:checked{
  background-color:var(--j-green)!important;
  border-color:var(--j-green)!important;
}
html[data-theme] body#kt_body.j-admin-legacy .bootstrap-table input[type="checkbox"]:checked::after{
  left:4.5px!important;
  top:1.5px!important;
  border-color:#fff!important;
}
html[data-theme="dark"] body#kt_body.j-admin-legacy .bootstrap-table input[type="checkbox"]:checked::after{
  border-color:var(--j-on-mint)!important;
}
html[data-theme] body#kt_body.j-admin-legacy .table .layui-form-switch{
  min-width:36px!important;
  width:36px!important;
  height:20px!important;
  border-radius:999px!important;
  background-color:#cbd5e1!important;
  margin:0!important;
}
html[data-theme="dark"] body#kt_body.j-admin-legacy .table .layui-form-switch{
  background-color:#3f475e!important;
}
html[data-theme] body#kt_body.j-admin-legacy .table .layui-form-switch i{
  width:16px!important;
  height:16px!important;
  left:2px!important;
  background-color:#fff!important;
  box-shadow:0 1px 2px rgba(0,0,0,.18)!important;
}
html[data-theme] body#kt_body.j-admin-legacy .table .layui-form-onswitch{
  background-color:var(--j-green)!important;
}
html[data-theme] body#kt_body.j-admin-legacy .table .layui-form-onswitch i{
  left:18px!important;
  background-color:#fff!important;
}
html[data-theme="dark"] body#kt_body.j-admin-legacy .table .layui-form-onswitch{
  background-color:var(--j-mint)!important;
}
html[data-theme="dark"] body#kt_body.j-admin-legacy .table .layui-form-onswitch i{
  background-color:var(--j-on-mint)!important;
}

/* Unified Level-3 Layer popups and modal buttons */
html[data-theme] body#kt_body.j-admin-legacy :is(.layui-layer.component-popup,.layui-layer.j-template-modal,.layui-layer-dialog){
  border-radius:18px!important;
  border:1px solid var(--j-line)!important;
  background:var(--j-surface)!important;
  box-shadow:0 24px 48px rgba(16,19,45,.18)!important;
  overflow:hidden!important;
}
html[data-theme] body#kt_body.j-admin-legacy .layui-layer.layui-layer-tab .layui-layer-title{
  background:var(--j-soft)!important;
  border-bottom:1px solid var(--j-line)!important;
  height:50px!important;
  line-height:50px!important;
  padding:6px 14px!important;
}
html[data-theme] body#kt_body.j-admin-legacy .layui-layer.layui-layer-tab .layui-layer-title span.layui-this{
  background:var(--j-surface)!important;
  color:var(--j-green)!important;
  box-shadow:0 1px 3px rgba(16,19,45,.08)!important;
}
html[data-theme] body#kt_body.j-admin-legacy .layui-layer .layui-layer-btn{
  background:var(--j-surface)!important;
  border-top:1px solid var(--j-line)!important;
  padding:12px 22px!important;
}
html[data-theme] body#kt_body.j-admin-legacy .layui-layer .layui-layer-btn .layui-layer-btn0{
  background:var(--j-mint)!important;
  border:1px solid var(--j-mint)!important;
  color:var(--j-on-mint)!important;
  border-radius:999px!important;
  font-weight:650!important;
  box-shadow:none!important;
  height:36px!important;
  line-height:34px!important;
  padding:0 20px!important;
}
html[data-theme] body#kt_body.j-admin-legacy .layui-layer .layui-layer-btn .layui-layer-btn1{
  background:var(--j-surface)!important;
  border:1px solid var(--j-line)!important;
  color:var(--j-ink)!important;
  border-radius:999px!important;
  font-weight:550!important;
  height:36px!important;
  line-height:34px!important;
  padding:0 18px!important;
}

/* Phase 2 unified UI polish: tokens, legacy mobile suppression, layer tips, button hovers, md-settings & mobile wrapping */
html[data-theme] body#kt_body.j-admin-legacy{
  --bs-body-color:var(--j-ink);
  --bs-body-bg:var(--j-surface);
  --bs-gray-800:var(--j-ink);
  --bs-gray-700:var(--j-ink);
  --bs-gray-600:var(--j-muted);
  --bs-gray-500:var(--j-muted);
  --bs-gray-400:var(--j-line);
  --bs-gray-300:var(--j-line);
  --bs-primary:var(--j-green);
  --bs-primary-rgb:0,110,84;
  --md-primary-rgb:0,110,84;
  --md-surface-2:var(--j-surface);
  --md-success:var(--j-green);
  --md-error:var(--j-error);
}
html[data-theme="dark"] body#kt_body.j-admin-legacy{
  --bs-primary-rgb:105,232,194;
  --md-primary-rgb:105,232,194;
  --md-surface-2:var(--j-soft);
}
html[data-theme] body#kt_body.j-admin-legacy :is(
  .admin-mobile-shell,
  .admin-mobile-appbar,
  .admin-mobile-context-tabs,
  .admin-mobile-bottom-nav,
  .admin-mobile-restore,
  .admin-mobile-card-list,
  .admin-mobile-only-section,
  .admin-mobile-settings-nav,
  .admin-mobile-settings-section-title,
  .admin-mobile-settings-help,
  .admin-mobile-settings-details,
  .admin-mobile-setting-label-mobile,
  .admin-mobile-setting-label-description,
  .admin-mobile-operation-only
){
  display:none!important;
}
html[data-theme] body#kt_body.j-admin-legacy .layui-layer.layui-layer-tips{
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  overflow:visible!important;
}
html[data-theme] body#kt_body.j-admin-legacy .layui-layer.layui-layer-tips .layui-layer-content{
  background:#10132d!important;
  color:#fff!important;
  border:0!important;
  border-radius:8px!important;
  padding:6px 10px!important;
  font-size:12px!important;
  line-height:1.45!important;
  box-shadow:0 8px 20px rgba(16,19,45,.22)!important;
}
html[data-theme="dark"] body#kt_body.j-admin-legacy .layui-layer.layui-layer-tips .layui-layer-content{
  background:#292e43!important;
  color:#eff1fa!important;
  border:1px solid var(--j-line)!important;
  box-shadow:0 10px 24px rgba(0,0,0,.45)!important;
}
html[data-theme] body#kt_body.j-admin-legacy .layui-layer.layui-layer-tips i[class*="layui-layer-Tips"]{
  display:none!important;
}
html[data-theme] body#kt_body.j-admin-legacy :is(.btn-outline-primary,.btn-light-primary,.layui-btn-primary){
  color:var(--j-green)!important;
  background:var(--j-green-soft)!important;
  border:1px solid rgba(0,110,84,.22)!important;
  border-radius:10px!important;
  font-weight:550!important;
}
html[data-theme] body#kt_body.j-admin-legacy :is(.btn-outline-primary,.btn-light-primary,.layui-btn-primary):hover{
  color:var(--j-green)!important;
  background:var(--j-green-soft)!important;
  border-color:var(--j-green)!important;
  filter:brightness(.97)!important;
}
html[data-theme] body#kt_body.j-admin-legacy .md-settings :is(.fv-row,.table,.md-device-sessions) :is(.btn-outline-primary,.btn-light-primary,.layui-btn-primary){
  background:var(--j-surface)!important;
  color:var(--j-ink)!important;
  border:1px solid var(--j-line)!important;
  border-radius:9px!important;
  padding:5px 12px!important;
}
html[data-theme] body#kt_body.j-admin-legacy .md-settings :is(.fv-row,.table,.md-device-sessions) :is(.btn-outline-primary,.btn-light-primary,.layui-btn-primary):hover{
  background:var(--j-soft)!important;
  color:var(--j-green)!important;
  border-color:var(--j-green)!important;
  filter:none!important;
}
html[data-theme] body#kt_body.j-admin-legacy :is(.btn-primary,.md-settings .card-footer .save-data){
  background:var(--j-mint)!important;
  border:1px solid var(--j-mint)!important;
  color:var(--j-on-mint)!important;
  border-radius:999px!important;
  font-weight:650!important;
  padding:8px 20px!important;
  box-shadow:none!important;
}
html[data-theme] body#kt_body.j-admin-legacy :is(.btn-primary,.md-settings .card-footer .save-data):hover{
  background:var(--j-mint)!important;
  border-color:var(--j-mint)!important;
  color:var(--j-on-mint)!important;
  filter:brightness(.94)!important;
}
html[data-theme] body#kt_body.j-admin-legacy :is(.btn-light-danger,.btn-danger){
  border-radius:10px!important;
  box-shadow:none!important;
}
html[data-theme] body#kt_body.j-admin-legacy .md-settings .card-footer .btn-light-danger{
  background:var(--j-error-soft)!important;
  border:1px solid rgba(179,66,73,.28)!important;
  color:var(--j-error)!important;
  border-radius:999px!important;
  padding:8px 18px!important;
}
html[data-theme] body#kt_body.j-admin-legacy .md-settings .card-footer .btn-success{
  background:var(--j-green-soft)!important;
  border:1px solid rgba(0,110,84,.25)!important;
  color:var(--j-green)!important;
  border-radius:999px!important;
  padding:8px 18px!important;
  box-shadow:none!important;
}
html[data-theme] body#kt_body.j-admin-legacy .md-settings :is(.security-heading,.text-gray-800,.text-gray-700,.text-dark){
  color:var(--j-ink)!important;
}
html[data-theme] body#kt_body.j-admin-legacy .md-settings .form-text:not(.text-danger):not(.text-success){
  color:var(--j-muted)!important;
}
html[data-theme] body#kt_body.j-admin-legacy .md-settings select.form-select:not(.select2-hidden-accessible){
  background-color:var(--j-surface)!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23545967' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;
  background-position:right 8px center!important;
  background-size:22px!important;
}
html[data-theme="dark"] body#kt_body.j-admin-legacy .md-settings select.form-select:not(.select2-hidden-accessible){
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23afb4c7' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E")!important;
}
@media(max-width:760px){
  html[data-theme] body#kt_body.j-admin-legacy .md-cat-tabs-container{
    flex-direction:column!important;
    align-items:stretch!important;
    gap:8px!important;
  }
  html[data-theme] body#kt_body.j-admin-legacy .md-cat-tabs-track{
    flex-wrap:wrap!important;
    overflow-x:visible!important;
    gap:6px!important;
  }
  html[data-theme] body#kt_body.j-admin-legacy .md-cat-tab-item{
    height:32px!important;
    padding:0 10px!important;
    font-size:12px!important;
  }
  html[data-theme] body#kt_body.j-admin-legacy .md-cat-tabs-actions{
    border-left:0!important;
    border-top:1px solid var(--j-line)!important;
    padding-left:0!important;
    padding-top:6px!important;
    justify-content:flex-start!important;
  }
}



/* Admin shell and the two operational lists: one hierarchy, one action row. */
:root .j-shell.site-header{position:sticky;top:0;z-index:90}
:root .j-shell.sidebar .workspace-select{padding:0 4px 8px!important;margin:0!important}
:root .j-shell.sidebar .workspace-select label{margin:0 4px 4px!important;font-size:11px!important;font-weight:600!important;letter-spacing:0!important;color:var(--j-muted)!important}
:root .j-shell.sidebar .workspace-select select{height:34px!important;min-height:34px!important;padding:6px 10px!important;border-radius:8px!important;background:transparent!important;color:var(--j-ink)!important}
:root .j-shell .menu-search{margin:0 4px 8px;padding:5px 8px;border-color:transparent;background:transparent}
:root .j-shell .menu-search:hover,:root .j-shell .menu-search:focus-within{border-color:var(--j-line);background:var(--j-surface)}
:root .j-shell.sidebar summary.nav-label{min-height:0!important;padding:12px 8px 2px!important;font-size:11px!important;font-weight:650!important;letter-spacing:.02em!important;color:var(--j-muted)!important}
:root .j-shell.sidebar summary.nav-label:after{font-size:12px!important;color:var(--j-muted)}
:root .j-shell.sidebar #navigation{padding:0 4px 16px 0}
:root .j-shell.sidebar #navigation button{width:calc(100% - 14px)!important;margin:1px 0 1px 14px!important;min-height:34px!important;padding:7px 10px!important;border-radius:8px!important}
:root .j-shell.sidebar #navigation button.active,:root .j-shell.sidebar .nav-group button.active{background:var(--j-green-soft)!important;color:var(--j-green)!important;box-shadow:none!important}
:root .j-shell.sidebar #navigation button.active:before,:root .j-shell.sidebar .nav-group button.active:before{content:none!important;display:none!important}
:root .j-shell.sidebar #navigation button:hover:not(.active){background:color-mix(in srgb,var(--j-surface) 72%,transparent)}

:root .j-workspace .panel-head{align-items:center}
:root .j-workspace .panel-head>button.primary,:root .j-workspace .panel-head>button.vcc-issue-link{position:static;width:auto;height:auto;flex:0 0 auto;margin:0 0 0 16px;padding:8px 16px!important;min-height:36px!important;border:0;border-radius:999px!important;background:var(--j-mint)!important;color:var(--j-on-mint)!important;font-size:13px!important;font-weight:650;line-height:1.2;white-space:nowrap}
:root .j-workspace .vcc-context{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:nowrap}
:root .j-workspace .vcc-context .vcc-env{min-width:0}
:root .j-workspace .vcc-context .field{display:flex;flex-direction:row;align-items:center;gap:10px;margin:0;min-width:240px}
:root .j-workspace .vcc-context .field>span{flex:none;font-size:12px;color:var(--j-muted);white-space:nowrap}
:root .j-workspace .vcc-context select{width:auto;min-width:168px;height:36px}
:root .j-workspace .vcc-panel .table-wrap{overflow-x:auto}
:root .j-workspace .vcc-filters{align-items:center}

html[data-theme] body#kt_body.j-admin-legacy #commodity-layout{min-width:0}
html[data-theme] body#kt_body.j-admin-legacy #commodity-layout .md-commodity-layout__main,:root body#kt_body.j-admin-legacy #commodity-layout .card{min-width:0}
html[data-theme] body#kt_body.j-admin-legacy .commodity-actions{width:100%;justify-content:space-between!important;align-items:center!important;gap:12px!important}
html[data-theme] body#kt_body.j-admin-legacy .commodity-actions__main,html[data-theme] body#kt_body.j-admin-legacy .commodity-actions__bulk{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
html[data-theme] body#kt_body.j-admin-legacy .commodity-actions__bulk{padding:3px;border:1px solid var(--j-line);border-radius:999px;background:var(--j-soft)}
html[data-theme] body#kt_body.j-admin-legacy .commodity-actions__bulk .btn{background:transparent!important;border-color:transparent!important;color:var(--j-ink)!important;min-height:32px!important}
html[data-theme] body#kt_body.j-admin-legacy .commodity-actions__bulk .btn-app-del{color:var(--j-error)!important;background:transparent!important;border-color:transparent!important}
html[data-theme] body#kt_body.j-admin-legacy .commodity-actions__bulk .btn:hover{background:var(--j-surface)!important}
html[data-theme] body#kt_body.j-admin-legacy #commodity-layout .card-body>div:has(>.table-search){display:flex;align-items:center;flex-wrap:wrap;gap:10px 12px;margin:0 0 14px}
html[data-theme] body#kt_body.j-admin-legacy #commodity-layout .table-search{flex:1 1 360px;align-items:center!important;margin:0!important;padding:8px 10px!important}
html[data-theme] body#kt_body.j-admin-legacy #commodity-layout .table-search .mui-sf:not(.hide){flex-direction:row!important;align-items:center!important;flex:1 1 220px!important;max-width:none!important;min-width:180px!important;gap:8px!important}
html[data-theme] body#kt_body.j-admin-legacy #commodity-layout .table-search .mui-sf__label{flex:none;white-space:nowrap}
html[data-theme] body#kt_body.j-admin-legacy #commodity-layout .table-switch-state{margin:0!important}
html[data-theme] body#kt_body.j-admin-legacy #commodity-layout .bootstrap-table,:root body#kt_body.j-admin-legacy #commodity-layout .fixed-table-container,:root body#kt_body.j-admin-legacy #commodity-layout .fixed-table-body{max-width:100%}
html[data-theme] body#kt_body.j-admin-legacy #commodity-layout .fixed-table-body{overflow-x:auto!important}
html[data-theme] body#kt_body.j-admin-legacy #commodity-layout .md-stat--secondary .md-stat__icon{background:var(--j-soft)!important;color:var(--j-muted)!important;border:0!important}

@media(max-width:760px){
 :root .j-shell.sidebar #navigation button{width:calc(100% - 10px)!important;margin-left:10px!important;min-height:42px!important}
 :root .j-workspace .vcc-context{flex-wrap:wrap;align-items:stretch}
 :root .j-workspace .vcc-context .field{width:100%;min-width:0}
 :root .j-workspace .panel-head{align-items:flex-start;flex-wrap:wrap}
 :root .j-workspace .panel-head>button.primary{margin:8px 0 0}
 html[data-theme] body#kt_body.j-admin-legacy .commodity-actions{align-items:stretch!important}
 html[data-theme] body#kt_body.j-admin-legacy .commodity-actions__bulk{border-radius:16px}
 html[data-theme] body#kt_body.j-admin-legacy #commodity-layout .table-search .mui-sf:not(.hide){min-width:0!important;width:100%!important}
}

/* List workspace: one metric strip, one surface for actions, filters, status and the table. */
html[data-theme] body#kt_body.j-admin-legacy .md-stat-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(148px,1fr))!important;
  gap:0!important;
  margin:0 0 16px!important;
  overflow:hidden;
  background:var(--j-surface)!important;
  border:1px solid var(--j-line)!important;
  border-radius:16px!important;
}
html[data-theme] body#kt_body.j-admin-legacy .md-stat-grid__item{min-width:0}
html[data-theme] body#kt_body.j-admin-legacy .md-stat-grid .md-stat{
  height:100%;
  min-height:76px!important;
  padding:14px 18px!important;
  border:0!important;
  border-radius:0!important;
  border-right:1px solid var(--j-line)!important;
  border-bottom:1px solid var(--j-line)!important;
  box-shadow:none!important;
}
html[data-theme] body#kt_body.j-admin-legacy .md-stat-grid .md-stat:hover{
  border-color:var(--j-line)!important;
  background:var(--j-soft)!important;
}
html[data-theme] body#kt_body.j-admin-legacy .md-stat__icon{
  width:28px!important;
  height:28px!important;
  border-radius:8px!important;
  background:transparent!important;
}
html[data-theme] body#kt_body.j-admin-legacy .md-stat__value{font-size:26px!important;font-weight:650!important;letter-spacing:-.4px}

html[data-theme] body#kt_body.j-admin-legacy .md-cat-tabs-container{
  margin:0 0 12px!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
html[data-theme] body#kt_body.j-admin-legacy .md-cat-tab-item{
  height:34px!important;
  background:transparent!important;
  border-color:transparent!important;
  box-shadow:none!important;
}
html[data-theme] body#kt_body.j-admin-legacy .md-cat-tab-item.active{
  background:var(--j-green-soft)!important;
  border-color:transparent!important;
  color:var(--j-green)!important;
  box-shadow:none!important;
}
html[data-theme] body#kt_body.j-admin-legacy .md-cat-tab-item.active .md-cat-tab-badge{
  background:transparent!important;
  color:var(--j-green)!important;
}

html[data-theme] body#kt_body.j-admin-legacy .card:has(.bootstrap-table){
  overflow:hidden;
}
html[data-theme] body#kt_body.j-admin-legacy .card:has(.bootstrap-table)>.card-header{
  border-bottom:0!important;
  padding:14px 18px 0!important;
}
html[data-theme] body#kt_body.j-admin-legacy .card:has(.bootstrap-table)>.card-body{
  padding:8px 18px 16px!important;
}
html[data-theme] body#kt_body.j-admin-legacy .j-list-actions{
  width:100%;
  justify-content:space-between!important;
  gap:12px!important;
}
html[data-theme] body#kt_body.j-admin-legacy .j-list-actions__main,
html[data-theme] body#kt_body.j-admin-legacy .j-list-actions__bulk{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
}
html[data-theme] body#kt_body.j-admin-legacy .j-list-actions__bulk{
  padding:3px;
  border:1px solid var(--j-line);
  border-radius:999px;
  background:var(--j-soft);
}
html[data-theme] body#kt_body.j-admin-legacy .j-list-actions__bulk .btn{
  min-height:32px!important;
  background:transparent!important;
  border-color:transparent!important;
  color:var(--j-ink)!important;
}
html[data-theme] body#kt_body.j-admin-legacy .j-list-actions__bulk .btn-app-del{
  color:var(--j-error)!important;
  background:transparent!important;
  border-color:transparent!important;
}
html[data-theme] body#kt_body.j-admin-legacy .j-list-actions__bulk .btn:hover{background:var(--j-surface)!important}

/* Hide redundant stat-grid on commodity page */
html[data-theme] body#kt_body.j-admin-legacy #kt_content_container:has(#commodity-layout) > .md-stat-grid{
  display:none!important;
}

/* Single-row query bar: status tabs on left, inline search on right on the EXACT same row */
html[data-theme] body#kt_body.j-admin-legacy .fixed-table-toolbar .bs-bars > div:has(>.table-switch-state):has(>.table-search.table-search--inline),
html[data-theme] body#kt_body.j-admin-legacy [class*="-query"]:has(>.table-switch-state):has(>.table-search.table-search--inline),
html[data-theme] body#kt_body.j-admin-legacy .fixed-table-toolbar .bs-bars > div:has(>.table-switch-state):has(>.table-search.has-advanced:not(.is-expanded)),
html[data-theme] body#kt_body.j-admin-legacy [class*="-query"]:has(>.table-switch-state):has(>.table-search.has-advanced:not(.is-expanded)){
  display:flex!important;
  flex-direction:row-reverse!important;
  justify-content:space-between!important;
  align-items:center!important;
  flex-wrap:nowrap!important;
  width:100%!important;
  margin-bottom:8px!important;
  gap:12px!important;
}
html[data-theme] body#kt_body.j-admin-legacy .fixed-table-toolbar .bs-bars > div:has(>.table-search.table-search--inline) .table-search,
html[data-theme] body#kt_body.j-admin-legacy [class*="-query"]:has(>.table-search.table-search--inline) .table-search,
html[data-theme] body#kt_body.j-admin-legacy .fixed-table-toolbar .bs-bars > div:has(>.table-search.has-advanced:not(.is-expanded)) .table-search,
html[data-theme] body#kt_body.j-admin-legacy [class*="-query"]:has(>.table-search.has-advanced:not(.is-expanded)) .table-search{
  width:auto!important;
  max-width:max-content!important;
  flex:0 0 auto!important;
  margin:0!important;
}
html[data-theme] body#kt_body.j-admin-legacy .fixed-table-toolbar .bs-bars > div:has(>.table-search.table-search--inline) .table-switch-state,
html[data-theme] body#kt_body.j-admin-legacy [class*="-query"]:has(>.table-search.table-search--inline) .table-switch-state,
html[data-theme] body#kt_body.j-admin-legacy .fixed-table-toolbar .bs-bars > div:has(>.table-search.has-advanced:not(.is-expanded)) .table-switch-state,
html[data-theme] body#kt_body.j-admin-legacy [class*="-query"]:has(>.table-search.has-advanced:not(.is-expanded)) .table-switch-state{
  margin:0!important;
  flex:0 0 auto!important;
}

html[data-theme] body#kt_body.j-admin-legacy .card-body>div:has(>.table-search){
  display:flex;
  flex-direction:column;
  gap:10px;
}
html[data-theme] body#kt_body.j-admin-legacy .table-switch-state{
  width:max-content;
  max-width:100%;
  margin:0 0 12px!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  gap:6px!important;
  display:flex!important;
  align-items:center!important;
}
html[data-theme] body#kt_body.j-admin-legacy .table-switch-state button{
  height:34px!important;
  padding:0 14px!important;
  border-radius:0!important;
  background:transparent!important;
  color:var(--j-muted)!important;
  font-size:13px!important;
  font-weight:550!important;
  box-shadow:inset 0 -2px transparent!important;
  border:none!important;
  cursor:pointer!important;
  transition:all .2s ease!important;
}
html[data-theme] body#kt_body.j-admin-legacy .table-switch-state button:hover{
  color:var(--j-ink)!important;
}
html[data-theme] body#kt_body.j-admin-legacy .table-switch-state button.active{
  background:transparent!important;
  color:var(--j-green)!important;
  box-shadow:inset 0 -2px var(--j-green)!important;
  font-weight:600!important;
}
html[data-theme] body#kt_body.j-admin-legacy .bootstrap-table .fixed-table-container{
  border:0!important;
  border-radius:0!important;
  border-top:1px solid var(--j-line)!important;
}

html[data-theme] body#kt_body.j-admin-legacy .md-ticket-list-head{
  display:block!important;
  min-height:0!important;
  padding:4px 8px 0!important;
}
html[data-theme] body#kt_body.j-admin-legacy .md-ticket-list-heading{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  overflow:hidden!important;
  clip:rect(0 0 0 0)!important;
}
html[data-theme] body#kt_body.j-admin-legacy .md-ticket-state-tabs{
  width:100%;
  justify-content:flex-start;
  gap:4px!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
}
html[data-theme] body#kt_body.j-admin-legacy .md-ticket-state-tabs button{
  height:40px!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:inset 0 -2px transparent!important;
}
html[data-theme] body#kt_body.j-admin-legacy .md-ticket-state-tabs button.active{
  color:var(--j-green)!important;
  background:transparent!important;
  box-shadow:inset 0 -2px var(--j-green)!important;
}

@media(max-width:760px){
  html[data-theme] body#kt_body.j-admin-legacy .md-stat-grid{grid-template-columns:1fr 1fr!important}
  html[data-theme] body#kt_body.j-admin-legacy .j-list-actions{align-items:stretch!important}
  html[data-theme] body#kt_body.j-admin-legacy .j-list-actions__bulk{border-radius:16px}
  html[data-theme] body#kt_body.j-admin-legacy .card-body>div:has(>.table-search):not(:has(.table-search .mui-sf:not(.hide)~.mui-sf:not(.hide))){flex-direction:column;align-items:stretch}
  html[data-theme] body#kt_body.j-admin-legacy .table-switch-state{width:100%}
  html[data-theme] body#kt_body.j-admin-legacy .md-ticket-state-tabs{overflow-x:auto}
}

/* Table column data alignment standard */
html[data-theme] body#kt_body.j-admin-legacy .bootstrap-table .table th[data-field*="money"],
html[data-theme] body#kt_body.j-admin-legacy .bootstrap-table .table td[data-field*="money"],
html[data-theme] body#kt_body.j-admin-legacy .bootstrap-table .table th[data-field*="amount"],
html[data-theme] body#kt_body.j-admin-legacy .bootstrap-table .table td[data-field*="amount"],
html[data-theme] body#kt_body.j-admin-legacy .bootstrap-table .table th[data-field*="cost"],
html[data-theme] body#kt_body.j-admin-legacy .bootstrap-table .table td[data-field*="cost"],
html[data-theme] body#kt_body.j-admin-legacy .bootstrap-table .table th[data-field*="price"],
html[data-theme] body#kt_body.j-admin-legacy .bootstrap-table .table td[data-field*="price"],
html[data-theme] body#kt_body.j-admin-legacy .bootstrap-table .table th[data-field*="life"],
html[data-theme] body#kt_body.j-admin-legacy .bootstrap-table .table td[data-field*="life"]{
  text-align:right!important;
}
html[data-theme] body#kt_body.j-admin-legacy .bootstrap-table .table th[data-field*="status"],
html[data-theme] body#kt_body.j-admin-legacy .bootstrap-table .table td[data-field*="status"],
html[data-theme] body#kt_body.j-admin-legacy .bootstrap-table .table th[data-field*="expire_time"],
html[data-theme] body#kt_body.j-admin-legacy .bootstrap-table .table td[data-field*="expire_time"],
html[data-theme] body#kt_body.j-admin-legacy .bootstrap-table .table th[data-field*="mode"],
html[data-theme] body#kt_body.j-admin-legacy .bootstrap-table .table td[data-field*="mode"]{
  text-align:center!important;
}
html[data-theme] body#kt_body.j-admin-legacy .bootstrap-table .table th[data-field="operation"],
html[data-theme] body#kt_body.j-admin-legacy .bootstrap-table .table td[data-field="operation"]{
  text-align:right!important;
}
