/* One permanent stylesheet for the ERP shell and the reference screens. */
@font-face{font-family:Inter;src:url('/assets/fonts/inter/Inter-Regular.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:Inter;src:url('/assets/fonts/inter/Inter-Medium.woff2') format('woff2');font-weight:500;font-display:swap}
@font-face{font-family:Inter;src:url('/assets/fonts/inter/Inter-SemiBold.woff2') format('woff2');font-weight:600;font-display:swap}
@font-face{font-family:Inter;src:url('/assets/fonts/inter/Inter-Bold.woff2') format('woff2');font-weight:700;font-display:swap}
@font-face{font-family:'IBM Plex Mono';src:url('/assets/fonts/ibm-plex-mono/IBM-Plex-Mono-400-cyrillic.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap;unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'IBM Plex Mono';src:url('/assets/fonts/ibm-plex-mono/IBM-Plex-Mono-400-latin.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'IBM Plex Mono';src:url('/assets/fonts/ibm-plex-mono/IBM-Plex-Mono-500-cyrillic.woff2') format('woff2');font-weight:500;font-style:normal;font-display:swap;unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'IBM Plex Mono';src:url('/assets/fonts/ibm-plex-mono/IBM-Plex-Mono-500-latin.woff2') format('woff2');font-weight:500;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'IBM Plex Mono';src:url('/assets/fonts/ibm-plex-mono/IBM-Plex-Mono-600-cyrillic.woff2') format('woff2');font-weight:600;font-style:normal;font-display:swap;unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'IBM Plex Mono';src:url('/assets/fonts/ibm-plex-mono/IBM-Plex-Mono-600-latin.woff2') format('woff2');font-weight:600;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root{--navy:#11243e;--blue:#2865e8;--soft:#edf4ff;--canvas:#f6f8fc;--card:#fff;--line:#dfe7f0;--text:#102348;--muted:#607594;--green:#0ca66b;--green-soft:#e8f8ef;--orange:#de8d13;--orange-soft:#fff5e7;--red:#d74957;--red-soft:#ffebee;--purple:#8158df;--shadow:0 2px 9px rgba(20,51,91,.055);--icon-font-size:17px}

:root{--erp-shell:#10243e;--erp-shell-end:#142d4a;--erp-accent:#2865e8;--erp-border:#dfe7f0;--erp-surface:#fff;--erp-canvas:#f6f8fc;--erp-ink:#102348;--erp-muted:#607594;--erp-radius:8px;--erp-focus:#8fb5fb}
body.erp-shell{font-family:Inter,Arial,sans-serif;font-size:13px;background:var(--erp-canvas);color:var(--erp-ink)}
/* The shell rules are isolated from the three embedded reference screens. */
@scope (body.erp-shell) {
    *{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,Arial,sans-serif;color:var(--text);background:var(--canvas)}body{font-size:13px}button,input,select,textarea{font:inherit}button{cursor:pointer}.ui-icon{display:inline-block;width:1em;height:1em;flex:0 0 1em;background-color:currentColor;-webkit-mask:var(--ui-icon-url) center/contain no-repeat;mask:var(--ui-icon-url) center/contain no-repeat;vertical-align:-.14em}
    .app{min-height:100vh;display:grid;grid-template-columns:224px minmax(0,1fr);grid-template-rows:64px 1fr}.topbar{grid-column:2;grid-row:1;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:22px;padding:0 26px;position:sticky;top:0;z-index:20}.brand-mobile{display:none}.company-switch{font-weight:700;white-space:nowrap}.company-switch small{color:var(--muted);font-weight:500;margin-left:8px}.top-search{height:38px;flex:1;max-width:620px;margin:auto;position:relative}.top-search input{width:100%;height:100%;border:0;background:#f4f7fb;border-radius:8px;padding:0 44px 0 40px;outline:0}.top-search input:focus{box-shadow:0 0 0 3px var(--soft)}.top-search i{position:absolute;left:15px;top:10px;color:#8c9bb5;font-size:17px}.top-actions{display:flex;align-items:center;gap:14px;margin-left:auto}.top-icon{border:0;background:transparent;color:#7d8ba6;font-size:21px;position:relative}.top-icon .dot{position:absolute;right:-5px;top:-6px;background:var(--red);color:#fff;border-radius:20px;font-size:9px;min-width:16px;padding:2px 4px}.user-chip{display:flex;gap:9px;align-items:center;border:0;background:transparent;color:var(--text);text-align:left}.avatar{width:34px;height:34px;border-radius:50%;background:#dce9ff;color:var(--blue);display:grid;place-items:center;font-weight:700}.user-chip small{display:block;color:var(--muted);font-size:11px;margin-top:2px}
    .sidebar{grid-column:1;grid-row:1 / span 2;background:linear-gradient(180deg,var(--navy),#09203b);color:#fff;padding:20px 12px;display:flex;flex-direction:column;gap:18px;min-height:100vh;position:sticky;top:0;height:100vh;overflow:auto}.brand{font-weight:800;font-size:22px;letter-spacing:-.04em;padding:0 12px 12px;display:flex;align-items:center;gap:7px}.brand-mark{width:28px;height:28px;border:4px solid #fff;border-right-color:transparent;border-radius:8px}.nav-group{padding-top:4px}.nav-label{color:rgba(255,255,255,.48);font-size:10px;text-transform:uppercase;letter-spacing:.09em;padding:0 13px 7px}.nav{display:grid;gap:3px}.nav a{color:rgba(255,255,255,.86);text-decoration:none;border-radius:6px;padding:10px 12px;display:flex;align-items:center;gap:11px;font-weight:600;white-space:nowrap}.nav a:hover{background:rgba(255,255,255,.1)}.nav a.active{background:linear-gradient(90deg,#1d62bd,#2f74d3);color:#fff}.nav a i{width:17px;text-align:center;font-size:17px;color:#b8cff1}.nav a.active i{color:#fff}.sidebar-foot{margin-top:auto;border-top:1px solid rgba(255,255,255,.12);padding:14px 12px 0;color:rgba(255,255,255,.55);font-size:11px}
    main{grid-column:2;grid-row:2;min-width:0;padding:25px 26px 44px}.breadcrumbs{display:flex;gap:9px;color:var(--muted);font-size:12px;margin-bottom:9px}.breadcrumbs a{color:var(--muted);text-decoration:none}.page-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:19px}.page-head h1{font-size:27px;line-height:1.1;letter-spacing:-.035em;margin:0 0 5px}.page-head p{margin:0;color:var(--muted)}.head-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
    .btn{border:1px solid var(--line);background:#fff;color:var(--text);border-radius:7px;padding:9px 13px;display:inline-flex;align-items:center;gap:7px;font-weight:600;white-space:nowrap;text-decoration:none}.btn:hover{border-color:#a8c4f5;background:#f8fbff}.btn-primary{background:var(--blue);border-color:var(--blue);color:#fff}.btn-primary:hover{background:#075bd6;color:#fff}.btn-danger{color:var(--red);border-color:#ffc4c8}.btn-ghost{border:0;background:transparent;color:var(--blue);padding:7px}.btn-sm{padding:6px 9px;font-size:12px}.btn:disabled{opacity:.48;cursor:not-allowed}
    .card{background:var(--card);border:1px solid var(--line);border-radius:9px;box-shadow:var(--shadow)}.card-head{padding:17px 18px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.card-head h2,.card-head h3{margin:0;font-size:15px}.card-head p{margin:5px 0 0;color:var(--muted);font-size:12px}.card-body{padding:18px}.stack{display:grid;gap:16px}.muted{color:var(--muted)}.empty{padding:30px 20px;text-align:center;color:var(--muted)}.empty i{font-size:30px;display:block;margin-bottom:8px;color:#aebbd0}.error,.notice,.warning,.success{padding:12px 14px;border-radius:7px}.error{background:var(--red-soft);color:#a52d38;border:1px solid #ffc9cd}.notice{background:var(--soft);color:#275ca5}.warning{background:var(--orange-soft);color:#98620b}.success{background:var(--green-soft);color:#16734f}
    .kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:11px;margin-bottom:16px}.kpi{background:#fff;border:1px solid var(--line);border-radius:8px;padding:14px 15px;min-width:0}.kpi-top{display:flex;justify-content:space-between;gap:7px;color:var(--muted);font-size:11px}.kpi-icon{width:28px;height:28px;border-radius:7px;background:var(--soft);color:var(--blue);display:grid;place-items:center;font-size:16px}.kpi strong{display:block;margin-top:10px;font-size:20px;letter-spacing:-.04em}.kpi small{display:block;color:var(--muted);margin-top:4px;font-size:10px}.kpi.good .kpi-icon{background:var(--green-soft);color:var(--green)}.kpi.warn .kpi-icon{background:var(--orange-soft);color:var(--orange)}.kpi.danger .kpi-icon{background:var(--red-soft);color:var(--red)}
    .grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.grid-4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.split{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.75fr);gap:16px}.channel-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
    .toolbar{padding:13px 15px;border-bottom:1px solid var(--line);display:flex;gap:8px;align-items:center;flex-wrap:wrap}.toolbar input,.toolbar select,.field input,.field select,.field textarea{border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--text);padding:9px 10px;outline:0}.toolbar input:focus,.toolbar select:focus,.field input:focus,.field select:focus,.field textarea:focus{border-color:#91b5ee;box-shadow:0 0 0 3px var(--soft)}.toolbar input{min-width:230px}.toolbar select{min-width:140px}.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse;min-width:720px}.table th{text-align:left;color:#7a89a6;font-size:10px;font-weight:700;text-transform:uppercase;white-space:nowrap}.table th,.table td{padding:12px 14px;border-bottom:1px solid #edf1f6;vertical-align:middle}.table tbody tr:hover{background:#fafcff}.table td{font-size:12px}.table .primary{font-weight:700;color:var(--blue)}.table .nowrap{white-space:nowrap}.table .right{text-align:right}.row-sub{display:block;color:var(--muted);font-size:10px;margin-top:3px}.badge{border-radius:5px;padding:4px 7px;display:inline-flex;align-items:center;gap:4px;font-size:10px;font-weight:700;white-space:nowrap}.badge:before{content:"";width:5px;height:5px;background:currentColor;border-radius:50%}.badge-blue{color:#2c67be;background:#e8f1ff}.badge-green{color:#16855b;background:var(--green-soft)}.badge-orange{color:#ad710b;background:var(--orange-soft)}.badge-red{color:#b23843;background:var(--red-soft)}.badge-gray{color:#6d7b95;background:#edf1f6}.badge-purple{color:#7143bd;background:#f1eaff}
    .chart{min-height:190px;display:flex;align-items:flex-end;gap:9px;padding:17px 6px 4px}.chart-col{flex:1;display:flex;align-items:center;flex-direction:column;gap:7px;height:175px;justify-content:flex-end}.chart-bars{height:145px;display:flex;align-items:flex-end;width:100%;justify-content:center}.bar{width:16px;background:linear-gradient(180deg,#4e9aff,var(--blue));border-radius:3px 3px 0 0;min-height:3px}.chart-label{color:var(--muted);font-size:10px}.funnel{display:grid;gap:5px;padding:8px 0}.funnel-row{display:flex;align-items:center;gap:10px}.funnel-bar{height:20px;background:#4a91ed;border-radius:4px;color:#fff;padding:3px 8px;font-size:10px;min-width:52px}.funnel-row:nth-child(2) .funnel-bar{background:#7c58df}.funnel-row:nth-child(3) .funnel-bar{background:#dc5b80}.funnel-row:nth-child(4) .funnel-bar{background:#ef9f25}.funnel-row span{color:var(--muted);font-size:11px}.quick-actions{display:flex;gap:8px;flex-wrap:wrap;padding:12px 14px;align-items:center;margin-bottom:16px}.quick-actions strong{margin-right:8px}.alerts{display:grid}.alert-row{display:flex;gap:10px;padding:12px 0;border-bottom:1px solid var(--line);align-items:flex-start}.alert-row:last-child{border-bottom:0}.alert-row i{font-size:18px;color:var(--orange)}.alert-row strong{font-size:12px}.alert-row small{display:block;color:var(--muted);margin-top:3px}
    .detail{position:sticky;top:82px;align-self:start}.detail-hero{display:flex;gap:12px;align-items:center}.product-thumb{width:40px;height:40px;border-radius:8px;background:#eef3f9;display:inline-grid;place-items:center;color:var(--blue);font-size:18px}.detail h2{margin:0;font-size:16px}.detail-tabs{display:flex;gap:0;overflow:auto;border-bottom:1px solid var(--line);padding:0 14px}.detail-tabs button{background:transparent;border:0;border-bottom:2px solid transparent;padding:12px 9px;color:var(--muted);white-space:nowrap;font-size:11px}.detail-tabs button.active{color:var(--blue);border-color:var(--blue)}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.detail-item label{display:block;color:var(--muted);font-size:10px;margin-bottom:3px}.detail-item strong{font-size:12px}
    .module-card{padding:17px;border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:var(--shadow);text-decoration:none;color:var(--text);display:block}.module-card:hover{border-color:#9cbdf2}.module-icon{width:32px;height:32px;border-radius:8px;background:var(--soft);display:grid;place-items:center;color:var(--blue);font-size:18px;margin-bottom:13px}.module-card h3{font-size:14px;margin:0 0 5px}.module-card p{font-size:11px;color:var(--muted);line-height:1.5;margin:0}.module-meta{display:flex;justify-content:space-between;color:var(--muted);font-size:10px;margin-top:13px}.tabs{display:flex;gap:5px;overflow:auto;border-bottom:1px solid var(--line);margin-bottom:15px}.tabs button{border:0;border-bottom:2px solid transparent;background:transparent;color:var(--muted);padding:10px 12px;white-space:nowrap}.tabs button.active{color:var(--blue);border-color:var(--blue);font-weight:700}.formula{display:flex;align-items:center;gap:7px;flex-wrap:wrap;background:#f7faff;border:1px solid #dce9fb;padding:14px;border-radius:7px;color:#3f6090;margin-bottom:16px}.formula strong{color:var(--text)}.formula em{font-style:normal;color:var(--blue);font-size:18px}.status-list{display:grid;gap:9px}.status-list div{display:flex;justify-content:space-between;gap:10px;padding-bottom:9px;border-bottom:1px solid var(--line)}.status-list div:last-child{border-bottom:0;padding-bottom:0}.status-list span{color:var(--muted)}
    .channel-card{padding:14px;border:1px solid var(--line);background:#fff;border-radius:8px;box-shadow:var(--shadow)}.channel-head{display:flex;align-items:center;gap:8px;justify-content:space-between}.channel-title{display:flex;gap:8px;align-items:center;font-size:15px;font-weight:800}.channel-logo{width:29px;height:29px;border-radius:7px;display:grid;place-items:center;color:#fff;font-weight:800;font-size:11px}.channel-logo-image{width:29px;height:29px;flex:0 0 29px;border-radius:7px;object-fit:cover;display:block}.ozon{background:#276af0}.wb{background:#c21ccf}.ym{background:#f0ae0c}.mm{background:#8a57df}.channel-metrics{display:grid;grid-template-columns:repeat(3,1fr);margin-top:15px}.channel-metrics div{padding:7px 5px;border-top:1px solid var(--line)}.channel-metrics label{display:block;color:var(--muted);font-size:10px}.channel-metrics strong{display:block;margin-top:4px;font-size:13px}.channel-foot{display:flex;gap:6px;align-items:center;justify-content:space-between;margin-top:12px}.network-off{background:#fff8eb;border:1px solid #f6dfaf;color:#8e651e;padding:12px;border-radius:7px;margin-bottom:16px}
    .form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.form-grid .wide{grid-column:span 2}.field label{display:block;font-size:11px;font-weight:700;margin-bottom:5px}.field input,.field select,.field textarea{width:100%}.field textarea{min-height:86px}.form-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:16px}.modal{position:fixed;inset:0;background:rgba(5,20,42,.45);display:grid;place-items:center;padding:18px;z-index:50}.modal[hidden]{display:none}.modal-dialog{background:#fff;border-radius:10px;box-shadow:0 25px 75px rgba(5,20,42,.25);width:min(720px,100%);max-height:calc(100vh - 36px);overflow:auto}.modal-head{padding:17px 20px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between}.modal-head h2{margin:0;font-size:17px}.modal-body{padding:20px}.modal-body.confirm-body{padding:18px 20px 8px}.confirm-message{margin:0;color:var(--text);line-height:1.55}.modal-close{border:0;background:transparent;font-size:22px;color:var(--muted)}.modal-foot{padding:14px 20px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:8px}.loading{display:grid;gap:10px}.skeleton{height:15px;background:linear-gradient(90deg,#edf2f8,#f8fafc,#edf2f8);background-size:200% 100%;animation:shimmer 1.2s infinite;border-radius:5px}@keyframes shimmer{to{background-position:-200% 0}}.permission{min-height:260px;display:grid;place-items:center;text-align:center}.permission i{font-size:42px;color:#a9b7cc}
    @media(max-width:1280px){.kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.channel-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.app{grid-template-columns:210px minmax(0,1fr)}}@media(max-width:900px){.app{display:block}.sidebar{position:fixed;z-index:40;left:-270px;top:0;width:250px;transition:left .2s}.sidebar.open{left:0}.brand-mobile{display:block;font-weight:800}.company-switch{display:none}.topbar{position:sticky;top:0;padding:12px 16px;min-height:64px;flex-wrap:wrap;gap:10px}.top-search{order:3;flex-basis:100%;max-width:none}.top-actions{margin-left:auto}main{padding:20px 16px 36px}.split{grid-template-columns:1fr}.detail{position:static}.grid-3,.grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.kpis,.channel-grid,.grid-2,.grid-3,.grid-4,.form-grid{grid-template-columns:1fr}.page-head{display:block}.head-actions{justify-content:flex-start;margin-top:12px}.page-head h1{font-size:23px}.quick-actions strong{width:100%}.toolbar input{min-width:100%}.toolbar select{flex:1;min-width:120px}.card-body{padding:14px}.table th,.table td{padding:10px}}

html,body{font-family:Inter,Arial,sans-serif;background:var(--canvas);color:var(--text)}
body{font-size:13px}
button,input,select,textarea{font-family:inherit}
a,button,input,select,textarea{transition:border-color .14s,background-color .14s,color .14s,box-shadow .14s}
:focus-visible{outline:3px solid #8fb5fb;outline-offset:2px}
.app{grid-template-columns:252px minmax(0,1fr);grid-template-rows:64px minmax(0,1fr)}
.sidebar{padding:0 10px 12px;background:linear-gradient(180deg,#10223b,#142d4a);gap:0;box-shadow:2px 0 16px #10223b14;scrollbar-width:thin;scrollbar-color:#54708d transparent}
.brand{font-size:0;padding:16px 10px 17px;border-bottom:1px solid #ffffff19;margin:0 -10px 12px;gap:10px;min-height:74px}
.brand-mark{border:0;width:36px;height:36px;flex:0 0 36px;border-radius:10px;background:#3379f2;display:grid;place-items:center;color:white;font-size:18px;letter-spacing:0;box-shadow:0 5px 12px #0002}
.brand-mark::before{content:'E'}
.brand-copy{min-width:0}
.brand-copy strong{font-size:15px;display:block;letter-spacing:-.025em;white-space:nowrap}
.brand-copy small{font-size:10px;font-weight:500;color:#b8cbe1;display:block;margin-top:4px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:175px}
.nav-group{padding-top:9px}
.nav-label{color:#8ea9c8;font-weight:700;font-size:10px;letter-spacing:.09em;padding:8px 12px 7px}
.nav{gap:2px}
.nav a{font-size:12px;font-weight:600;min-height:36px;padding:8px 12px;border-radius:7px;color:#c7d6e9;gap:10px}
.nav a:hover{background:#ffffff19;color:#fff}
.nav a.active{background:#2866c7;color:#fff;box-shadow:none}
.nav a i{font-size:16px;color:#b4c9e1}
.sidebar-foot{font-size:10px;color:#9fb5cb;line-height:1.5;padding:14px 11px 4px}
.topbar{padding:0 22px;gap:13px;border-bottom:1px solid var(--line);box-shadow:0 1px 6px #173c7410}
.company-switch{height:36px;min-width:170px;max-width:245px;border:1px solid var(--line);border-radius:9px;display:flex;align-items:center;padding:0 11px;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;box-shadow:0 1px 1px #00000008}
.company-switch{cursor:pointer;background:#fff}.company-switch span{overflow:hidden;text-overflow:ellipsis}.company-menu{position:fixed;z-index:120;display:flex;flex-direction:column;width:min(460px,calc(100vw - 16px));max-height:50vh;overflow:hidden;background:#fff;border:1px solid #dfe7f2;border-radius:9px;padding:6px;box-shadow:0 12px 32px #19365b24}.company-menu[hidden]{display:none}.company-search{display:block;flex:none;padding:5px 6px 9px;color:var(--muted);font-size:11px}.company-search input{display:block;width:100%;height:34px;margin-top:5px;padding:0 9px;border:1px solid var(--line);border-radius:6px;font:12px Inter,Arial}.company-options{min-height:0;overflow-y:auto;overscroll-behavior:contain}.company-menu button{display:flex;justify-content:space-between;gap:18px;width:100%;border:0;background:#fff;text-align:left;padding:9px 10px;border-radius:6px;color:var(--text);font:12px Inter,Arial;cursor:pointer}.company-menu button[hidden]{display:none}.company-menu button:hover,.company-menu button[aria-current="true"]{background:#eff5ff;color:var(--blue)}.company-menu button small{color:var(--muted);font-size:10px}.company-no-results{margin:0;padding:12px;color:var(--muted);font-size:12px}
.profile-section{margin:24px 0 12px;padding:10px 12px;border:1px solid #dfe7f2;border-radius:8px;background:#f7faff;color:#12325f}.profile-subcard{margin:22px 0 0;border:0;border-top:1px solid #dfe7f2;border-radius:0;box-shadow:none}.profile-subcard .card-head{background:#f7faff;padding:12px 0}.profile-subcard .card-body{padding:12px 0 0}
.company-switch small{font-size:14px;margin-left:auto;color:var(--muted)}
.top-search{max-width:440px;margin:0;flex:1}
.top-search input{background:#f6f8fb;border:1px solid var(--line);border-radius:9px;color:var(--text);padding-left:38px}
.top-search i{left:13px;top:11px}
.top-search input:focus{background:white;box-shadow:0 0 0 3px #e6f0ff;border-color:#a8c6f5}
.top-actions{gap:9px}
.top-icon{height:35px;min-width:35px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:9px;color:var(--muted);font-size:18px}
.top-icon:hover{background:var(--soft);border-color:#bad0f2;color:var(--blue)}
.top-create{background:var(--blue);border-color:var(--blue);color:white;font-size:12px;font-weight:700;gap:7px;padding:0 12px}
.top-create:hover{background:#1e58d6;color:white;border-color:#1e58d6}
.top-create i{font-size:15px}
.user-chip{padding:3px 5px 3px 9px;gap:8px;border-radius:9px}
.user-chip:hover{background:#f5f8fc}
.user-chip strong{font-size:11px;max-width:125px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}
.user-chip small{font-size:10px;margin-top:2px}
.avatar{width:32px;height:32px;flex:0 0 32px;background:#dbeaff;color:#2563dc}
#main-content{padding:25px 22px 48px}
.breadcrumbs{font-size:11px;margin-bottom:10px}
.page-head{margin-bottom:18px;align-items:center}
.page-head h1{font-size:27px;font-weight:700;letter-spacing:-.035em;color:#0d2446}
.page-head p{color:#607594;font-size:12px;line-height:1.45}
.btn{min-height:34px;border-radius:8px;font-size:12px;font-weight:600;box-shadow:0 1px 2px #12345a08}
.btn-primary{background:var(--blue);border-color:var(--blue)}
.btn-primary:hover{background:#1e58d6;border-color:#1e58d6}
.card,.kpi,.module-card,.channel-card{border-color:var(--line);border-radius:11px;box-shadow:var(--shadow)}
.card-head{padding:16px 17px}
.card-head h2,.card-head h3{font-size:15px;color:#0e2548}
.card-body{padding:17px}
.kpis{gap:12px}
.kpi{padding:15px;min-height:130px}
.kpi-top{font-size:11px;color:#315273;line-height:1.35}
.kpi-icon{width:33px;height:33px;border-radius:9px;font-size:17px}
.kpi strong{font-size:23px;color:#0a2142;margin-top:14px;font-weight:700}
.kpi small{font-size:10px;line-height:1.45}
.table th{font-size:10px;letter-spacing:.04em;background:#fafcff;color:#4f6380}
.table td{font-size:12px}
.table th,.table td{padding:12px 13px}
.table tbody tr:hover{background:#f5f9ff}
.toolbar{padding:13px 15px}
.toolbar input,.toolbar select,.field input,.field select,.field textarea{border-color:#d8e2ef;border-radius:8px}
.badge{border-radius:6px;font-size:10px}
.quick-actions{margin-bottom:15px}
.detail{top:82px}
.detail.card{min-height:390px;background:#fff}
.tabs button.active,.detail-tabs button.active{color:var(--blue);border-color:var(--blue)}
.form-grid{gap:12px}
.field label{font-size:11px}
.modal-dialog{border-radius:14px}
.loading{padding:8px 0}
.page-loading{min-height:320px}
.page-loading .loading{gap:14px}
.page-loading .skeleton{height:42px}
.skeleton{background:linear-gradient(90deg,#e8eef7,#f9fbfe,#e8eef7);background-size:200% 100%}
.mobile-menu{display:none;border:1px solid var(--line);background:white;border-radius:8px;width:36px;height:36px;color:var(--text)}
.app-notice{border:1px solid #c8d8ef;background:#eff6ff;color:#215080;border-radius:9px;padding:11px 14px;margin:0 0 14px}
.global-popover{position:fixed;z-index:100;background:white;border:1px solid var(--line);border-radius:11px;min-width:190px;padding:6px;box-shadow:0 14px 35px #142d4a2e}
.global-popover button{display:block;border:0;background:transparent;width:100%;text-align:left;padding:9px 11px;border-radius:7px;color:var(--text);font-size:12px;cursor:pointer}
.global-popover button:hover{background:var(--soft);color:var(--blue)}
@media(max-width:1280px){.app{grid-template-columns:226px minmax(0,1fr)}.sidebar{padding-left:8px;padding-right:8px}.topbar{padding:0 16px}.company-switch{min-width:145px;max-width:170px}.kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.app{display:block}.sidebar{position:fixed;left:-280px;top:0;width:260px;height:100vh;z-index:80;transition:left .2s}.sidebar.open{left:0}.topbar{min-height:64px;flex-wrap:nowrap;position:sticky;top:0;z-index:70;padding:0 12px}.mobile-menu{display:grid;place-items:center;flex:0 0 36px}.company-switch{display:none}.top-search{max-width:none;order:initial;min-width:0}.top-actions{margin-left:0}.top-create span,.user-chip>span:not(.avatar),.user-chip>.ui-icon-caret-down{display:none}.top-create{width:36px;padding:0}.user-chip{padding:2px}.top-search input{font-size:11px}.page-head{align-items:flex-start}main{padding:20px 15px 40px}}
@media(max-width:600px){.app{min-width:0}.topbar{gap:7px}.top-search{flex:1}.top-actions{gap:5px}.top-actions .user-chip{display:none}.page-head h1{font-size:22px}.kpis,.channel-grid,.grid-2,.grid-3,.grid-4{grid-template-columns:1fr}.card-body{padding:14px}.table-wrap{max-width:100%;overflow-x:auto}.toolbar input{min-width:100%}}


}
/* Shared structure for every section rendered inside the document. */
body.erp-shell.reference-page #main-content{padding:0;overflow:visible}
body.erp-shell.reference-page #page{min-width:0}
#reference-content{min-height:calc(100vh - 64px);background:var(--erp-canvas);color:var(--erp-ink);font:13px Inter,Arial,sans-serif}
#reference-content *{box-sizing:border-box}
#reference-content :is(button,input,select,textarea){font-family:Inter,Arial,sans-serif}
#reference-content :is(button,a,input,select,textarea):focus-visible{outline:3px solid var(--erp-focus);outline-offset:2px}
#reference-content :is(.btn,.circle-btn,.icon-button,.outline,.more,.period button,.panel header button){border-radius:var(--erp-radius)}
#reference-content :is(.panel,.table-card,.toolbar-card,.channel,.kv-card,.market-card){background:var(--erp-surface);border-color:var(--erp-border);border-radius:var(--erp-radius)}
#reference-content table thead th{background:#fafcff;color:#526985}
/* Keep scrollbar space stable so page content never jumps when the thumb appears. */
html,body.erp-shell *{scrollbar-width:thin;scrollbar-color:transparent transparent}
html{scrollbar-gutter:stable}
html::-webkit-scrollbar,body.erp-shell *::-webkit-scrollbar{width:7px;height:7px}
html::-webkit-scrollbar-thumb,body.erp-shell *::-webkit-scrollbar-thumb{background:transparent;border-radius:8px}
html.is-scrolling,body.erp-shell .is-scrolling{scrollbar-color:#8ca7c6 transparent}
html.is-scrolling::-webkit-scrollbar-thumb,body.erp-shell .is-scrolling::-webkit-scrollbar-thumb{background:#8ca7c6}

/* Responsive Grid for every cabinet route. */
body.erp-shell{margin:0;min-width:0}
body.erp-shell .app{width:100%;min-width:0;grid-template-columns:clamp(224px,18vw,268px) minmax(0,1fr)}
body.erp-shell #main-content,body.erp-shell #page{min-width:0}
body.erp-shell .sidebar-backdrop[hidden]{display:none}
body.erp-shell #sidebar a[hidden]{display:none!important}
body.erp-shell #sidebar .nav-group[hidden]{display:none!important}
body.erp-shell .sidebar-backdrop{display:none}
body.erp-shell:not(.reference-page) .kpis{grid-template-columns:repeat(auto-fit,minmax(min(100%,155px),1fr))}
body.erp-shell:not(.reference-page) :is(.grid-2,.grid-3,.grid-4){grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr))}
body.erp-shell:not(.reference-page) .channel-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr))}
body.erp-shell:not(.reference-page) .form-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr))}
body.erp-shell:not(.reference-page) :is(.grid-2,.grid-3,.grid-4,.channel-grid,.form-grid) > *{min-width:0}
body.erp-shell:not(.reference-page) .table-wrap{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
body.erp-shell:not(.reference-page) .split{grid-template-columns:minmax(0,1.45fr) minmax(280px,.75fr)}
@media(max-width:1200px){
  body.erp-shell:not(.reference-page) .split{grid-template-columns:minmax(0,1fr)}
  body.erp-shell .topbar{gap:10px}
}
@media(max-width:1024px){
  body.erp-shell .app{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}
  body.erp-shell .topbar{grid-column:1;grid-row:1;min-height:64px;padding:10px 16px;gap:10px;flex-wrap:nowrap}
  body.erp-shell #main-content{grid-column:1;grid-row:2;padding:20px 18px 40px}
  body.erp-shell.reference-page #main-content{padding:0}
  body.erp-shell .sidebar{position:fixed;inset:0 auto 0 0;width:min(300px,86vw);height:100dvh;min-height:0;z-index:90;transform:translateX(-105%);left:0;transition:transform .2s ease;visibility:hidden}
  body.erp-shell .sidebar.open{transform:translateX(0);visibility:visible}
  body.erp-shell .sidebar-backdrop:not([hidden]){display:block;position:fixed;inset:0;z-index:80;border:0;padding:0;background:rgba(7,22,42,.48);width:100%;height:100dvh}
  body.erp-shell.nav-open{overflow:hidden}
  body.erp-shell .mobile-menu{display:grid;place-items:center;flex:0 0 40px;height:40px}
  body.erp-shell .company-switch{display:none}
  body.erp-shell .top-search{flex:1;min-width:0;max-width:none;margin:0}
  body.erp-shell .top-actions{margin-left:0}
}
@media(max-width:700px){
  body.erp-shell .topbar{padding:8px 12px;gap:8px}
  body.erp-shell #main-content{padding:16px 12px 32px}
  body.erp-shell.reference-page #main-content{padding:0}
  body.erp-shell:not(.reference-page) .page-head{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
  body.erp-shell:not(.reference-page) .head-actions{justify-content:flex-start;margin:0}
  body.erp-shell:not(.reference-page) .head-actions .btn{min-height:40px}
  body.erp-shell:not(.reference-page) .form-grid .wide{grid-column:1/-1}
  body.erp-shell:not(.reference-page) .detail-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr))}
}
@media(max-width:480px){
  body.erp-shell .topbar{gap:5px}
  body.erp-shell .top-search input{font-size:13px;padding-left:32px;padding-right:8px}
  body.erp-shell .top-search i{left:10px}
  body.erp-shell .top-actions{gap:3px}
  body.erp-shell .top-icon,body.erp-shell .user-chip{min-width:36px;min-height:40px}
  body.erp-shell .top-create span,body.erp-shell .user-chip>span:not(.avatar),body.erp-shell .user-chip>.ui-icon-caret-down{display:none}
  body.erp-shell .top-actions .user-chip{display:flex}
  body.erp-shell:not(.reference-page) .kpis{grid-template-columns:repeat(auto-fit,minmax(min(100%,155px),1fr))}
  body.erp-shell:not(.reference-page) :is(.grid-2,.grid-3,.grid-4,.channel-grid,.form-grid){grid-template-columns:minmax(0,1fr)}
  body.erp-shell:not(.reference-page) .toolbar{display:grid;grid-template-columns:minmax(0,1fr)}
  body.erp-shell:not(.reference-page) .toolbar :is(input,select,button){width:100%;min-width:0}
  body.erp-shell .modal{padding:8px}
  body.erp-shell .modal-dialog{max-height:calc(100dvh - 16px)}
}
@media(prefers-reduced-motion:reduce){
  body.erp-shell .sidebar{transition:none}
  body.erp-shell .skeleton{animation:none;background:#edf2f8}
  body.erp-shell a,body.erp-shell button,body.erp-shell input,body.erp-shell select,body.erp-shell textarea{transition:none}
}

/* Cabinet layout tokens from the 1440 / 1024 / 768 / 390 design frames. */
body.erp-shell{--shell-sidebar:240px;--page-gutter:32px;--content-gap:20px;--layout-columns:12}
body.erp-shell{overflow-x:hidden}
body.erp-shell .app{display:grid;width:100%;max-width:100%;grid-template-columns:var(--shell-sidebar) minmax(0,1fr);grid-template-rows:64px minmax(0,1fr)}
body.erp-shell #main-content{padding:var(--page-gutter);min-width:0}
body.erp-shell.reference-page #main-content,body.erp-shell:has(.refdash) #main-content{padding:0}
body.erp-shell:not(.reference-page) :is(.kpis,.grid-2,.grid-3,.grid-4,.channel-grid,.form-grid){
  display:grid;grid-template-columns:repeat(var(--layout-columns),minmax(0,1fr));gap:var(--content-gap)
}
body.erp-shell:not(.reference-page) :is(.kpis,.grid-2,.grid-3,.grid-4,.channel-grid,.form-grid)>*{min-width:0}
body.erp-shell:not(.reference-page) .kpis>*{grid-column:span 3}
body.erp-shell:not(.reference-page) .grid-2>*{grid-column:span 6}
body.erp-shell:not(.reference-page) .grid-3>*{grid-column:span 4}
body.erp-shell:not(.reference-page) :is(.grid-4,.channel-grid)>*{grid-column:span 3}
body.erp-shell:not(.reference-page) .form-grid>*{grid-column:span 4}
body.erp-shell:not(.reference-page) .form-grid>.wide{grid-column:span 8}
@media(min-width:1600px){
  body.erp-shell{--shell-sidebar:256px;--page-gutter:32px;--content-gap:24px}
}
@media(min-width:1280px) and (max-width:1599px){
  body.erp-shell{--shell-sidebar:240px;--page-gutter:clamp(24px,2.2vw,32px);--content-gap:20px}
}
@media(min-width:1024px) and (max-width:1279px){
  body.erp-shell{--shell-sidebar:240px;--page-gutter:24px;--content-gap:16px;--layout-columns:8}
  body.erp-shell .app{display:grid;grid-template-columns:var(--shell-sidebar) minmax(0,1fr);grid-template-rows:64px minmax(0,1fr)}
  body.erp-shell .sidebar{grid-column:1;grid-row:1/span 2;position:sticky;inset:auto;top:0;left:0;width:var(--shell-sidebar);height:100vh;min-height:0;transform:none;visibility:visible;z-index:30}
  body.erp-shell .topbar{grid-column:2;grid-row:1;min-height:64px;padding:0 20px}
  body.erp-shell #main-content{grid-column:2;grid-row:2;padding:var(--page-gutter)}
  body.erp-shell.reference-page #main-content,body.erp-shell:has(.refdash) #main-content{padding:0}
  body.erp-shell .mobile-menu{display:none}
  body.erp-shell .company-switch{display:flex}
  body.erp-shell .sidebar-backdrop{display:none!important}
  body.erp-shell:not(.reference-page) .kpis>*{grid-column:span 4}
  body.erp-shell:not(.reference-page) :is(.grid-2,.grid-3,.grid-4,.channel-grid,.form-grid)>*{grid-column:span 4}
  body.erp-shell:not(.reference-page) .form-grid>.wide{grid-column:span 8}
}
@media(min-width:768px) and (max-width:1023px){
  body.erp-shell{--page-gutter:24px;--content-gap:16px;--layout-columns:8}
  body.erp-shell .app{grid-template-columns:minmax(0,1fr)}
  body.erp-shell #main-content{padding:var(--page-gutter)}
  body.erp-shell.reference-page #main-content,body.erp-shell:has(.refdash) #main-content{padding:0}
  body.erp-shell:not(.reference-page) .kpis>*{grid-column:span 4}
  body.erp-shell:not(.reference-page) :is(.grid-2,.grid-3,.grid-4,.channel-grid,.form-grid)>*{grid-column:span 4}
  body.erp-shell:not(.reference-page) .form-grid>.wide{grid-column:span 8}
}
@media(max-width:767px){
  body.erp-shell{--page-gutter:16px;--content-gap:16px;--layout-columns:4}
  body.erp-shell .app{grid-template-columns:minmax(0,1fr)}
  body.erp-shell #main-content{padding:var(--page-gutter)}
  body.erp-shell.reference-page #main-content,body.erp-shell:has(.refdash) #main-content{padding:0}
  body.erp-shell:not(.reference-page) .kpis>*{grid-column:span 2}
  body.erp-shell:not(.reference-page) .kpis>*:first-child{grid-column:span 4}
  body.erp-shell:not(.reference-page) :is(.grid-2,.grid-3,.grid-4,.channel-grid,.form-grid)>*{grid-column:span 4}
  body.erp-shell:not(.reference-page) .form-grid>.wide{grid-column:span 4}
  body.erp-shell:not(.reference-page) :is(.card,.kpi,.channel-card){min-width:0}
}
.profile-cards{margin-bottom:20px;padding:0 16px 16px}.profile-cards .card-head{margin:0 -16px 16px;padding:16px}.profile-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.profile-card{display:flex;flex-direction:column;gap:10px;padding:16px;border:1px solid var(--line,#d9e2ef);border-radius:12px;background:#fff}.profile-card span{color:#64748b;font-size:13px}.profile-card.is-active{border-color:#2563eb;box-shadow:0 0 0 2px rgba(37,99,235,.12)}
.api-load-error{margin:12px 16px;padding:12px 16px;border:1px solid #f1b9b9;border-radius:8px;background:#fff0f0;color:#9b1c1c;font-size:13px}
.api-load-error button{margin-left:12px;padding:5px 10px;border:1px solid #db8989;border-radius:6px;background:#fff;color:#9b1c1c;cursor:pointer}
body.erp-shell .ui-icon{display:inline-block;width:1em;height:1em;flex:0 0 1em;background-color:currentColor;-webkit-mask:var(--ui-icon-url) center/contain no-repeat;mask:var(--ui-icon-url) center/contain no-repeat;vertical-align:-.14em}
body.erp-shell .top-search>.ui-icon{position:absolute;left:13px;top:11px;color:#8c9bb5;font-size:17px}
body.erp-shell .top-search .global-search-settings{position:absolute;right:7px;top:4px;width:30px;height:30px;display:grid;place-items:center;padding:0;line-height:0;border:0;border-radius:6px;background:transparent;color:#6d82a7;cursor:pointer}.global-search-settings>.ui-icon{position:absolute;left:50%;top:50%;margin:0;transform:translate(-50%,-50%);vertical-align:initial}.global-search-settings:hover{background:#edf4ff;color:#1769f7}.global-search-settings:focus-visible{outline:2px solid #8eb6fb;outline-offset:1px}
.notification-inbox-list{display:grid;gap:8px;list-style:none;margin:0;padding:0;max-height:min(65vh,680px);overflow:auto}.notification-inbox-item{border:1px solid #e3eaf4;border-radius:10px;padding:12px 14px;background:#fff}.notification-inbox-item strong{display:block;color:#18345f;font-size:14px}.notification-inbox-item p{margin:5px 0;color:#526a8e;white-space:pre-wrap;overflow-wrap:anywhere}.notification-inbox-item small{color:#7b8daa;font-size:11px}
body.erp-shell .top-search input{padding-right:42px}
.search-scope-note{margin:0 0 14px;color:#64779b;font-size:11px;line-height:1.45}.search-scope-groups{display:grid;gap:10px}.search-scope-group{border:1px solid #e3ebf7;border-radius:7px;background:#f9fbff;overflow:hidden}.search-scope-group h3{margin:0;padding:9px 11px;border-bottom:1px solid #e8eef8;color:#234b8f;font-size:12px}.search-scope-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;padding:7px}.search-scope-item{display:flex;align-items:center;gap:7px;min-height:30px;padding:5px 7px;border-radius:5px;color:#35568d;font-size:11px;cursor:pointer}.search-scope-item:hover{background:#eef5ff}.search-scope-item input{width:15px;height:15px;margin:0;accent-color:var(--blue)}
body.erp-shell .nav a .ui-icon{width:17px;text-align:center;font-size:16px;color:#b4c9e1}
body.erp-shell .nav a.active .ui-icon{color:#fff}
body.erp-shell .top-create .ui-icon{font-size:15px}
body.erp-shell .empty .ui-icon{font-size:30px;display:block;margin:0 auto 8px;color:#aebbd0}
body.erp-shell .alert-row .ui-icon{font-size:18px;color:var(--orange)}
body.erp-shell .permission .ui-icon{font-size:42px;color:#a9b7cc}
body.erp-shell .user-chip>.ui-icon-caret-down{font-size:14px}
body.erp-shell .top-create .ui-icon{display:inline-block!important}
body.erp-shell .user-chip>.ui-icon-caret-down{display:inline-block!important}

/* Reference pages provide their own inner gutters. Do not apply the shell main
   spacing to their nested semantic <main> containers as well. */
body.erp-shell.reference-page #reference-content .catalog-layout > main.main,
body.erp-shell.reference-page #reference-content .app-shell > .workspace > main.main{
  grid-column:auto;
  grid-row:auto;
  padding:0;
}

body.erp-shell .mono,body.erp-shell .row-sub{font-family:'IBM Plex Mono',Inter,monospace;font-variant-numeric:tabular-nums;letter-spacing:-.01em}
body.erp-shell .table td{font-variant-numeric:tabular-nums}

/* Global shell controls: sidebar mode and one period for every data surface. */
body.erp-shell .sidebar-collapse{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;padding:0;border:1px solid #dbe5f3;border-radius:9px;background:#fff;color:#31547f;cursor:pointer}
body.erp-shell .sidebar-collapse:hover{background:#f4f8ff;border-color:#a9c7ef;color:#1269ef}
body.erp-shell .sidebar-collapse .ui-icon{font-size:17px}
body.erp-shell .topbar-handle{position:absolute;left:50%;bottom:-24px;z-index:65;transform:translateX(-50%);display:grid;place-items:center;width:48px;height:24px;padding:0;border:1px solid #d9e4f1;border-top:0;border-radius:0 0 12px 12px;background:#fff;color:#71819a;font:700 12px/1 Arial,sans-serif;letter-spacing:2px;box-shadow:0 3px 8px #16365b1c;cursor:pointer;transition:top .24s ease,bottom .24s ease,box-shadow .24s ease}
body.erp-shell .topbar-handle:hover{color:#1769f7;background:#fff;border-color:#b9cfe9}
body.erp-shell .topbar-handle:focus-visible{outline:3px solid #a9c8f5;outline-offset:1px}
body.erp-shell .topbar-timeline{position:absolute;left:50%;top:64px;z-index:60;width:min(850px,calc(100vw - 32px));height:108px;box-sizing:border-box;padding:10px 22px 8px;transform:translateX(-50%) translateY(-16px);opacity:0;visibility:hidden;pointer-events:none;border:1px solid #dce6f2;border-top:0;border-radius:0 0 12px 12px;background:#fff;box-shadow:0 14px 34px #18395b2e;color:#182f56;transition:transform .24s ease,opacity .24s ease,visibility 0s linear .24s}
body.erp-shell .topbar-timeline[hidden]{display:none}
body.erp-shell .topbar-timeline.is-open{transform:translateX(-50%) translateY(0);opacity:1;visibility:visible;pointer-events:auto;transition:transform .24s ease,opacity .24s ease,visibility 0s linear 0s}
body.erp-shell .timeline-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;font-size:12px}
body.erp-shell .timeline-head button{width:26px;height:26px;border:0;border-radius:7px;background:#f3f7fc;color:#6680a6;font-size:20px;line-height:1;cursor:pointer}
body.erp-shell .timeline-head button:hover{background:#eaf2ff;color:#1769f7}
body.erp-shell .timeline-scale{position:relative;display:grid;grid-template-columns:repeat(var(--timeline-points,12),minmax(0,1fr));gap:2px;padding:2px 0 0;cursor:grab;touch-action:none;user-select:none}
body.erp-shell .timeline-scale.timeline-daily{grid-template-columns:repeat(var(--timeline-points),minmax(24px,1fr))}
body.erp-shell .timeline-scale:active{cursor:grabbing}
body.erp-shell .timeline-scale::before{content:"";position:absolute;left:18px;right:18px;top:32px;height:4px;border-radius:3px;background:#d1d5db}
body.erp-shell .timeline-month{position:relative;z-index:1;display:grid;justify-items:center;gap:13px;min-width:0;padding:0;border:0;background:transparent;color:#6e7480;font:700 11px/1 Inter,Arial,sans-serif;cursor:pointer}
body.erp-shell .timeline-month span{white-space:nowrap}
body.erp-shell .timeline-month i{display:block;width:16px;height:16px;border:2px solid #fff;border-radius:50%;background:var(--timeline-color);box-shadow:0 0 0 1px #cad2dc,0 2px 4px #253b5d22}
body.erp-shell .timeline-month:hover span,body.erp-shell .timeline-month.active span{color:#1769f7}
body.erp-shell .timeline-month.active i{box-shadow:0 0 0 3px #1769f733,0 0 0 1px #1769f7}
body.erp-shell .timeline-month.outside-range{color:#b7bec8}
body.erp-shell .timeline-month.outside-range span{color:#aeb7c3}
body.erp-shell .timeline-month.outside-range i{filter:grayscale(1);opacity:.42;box-shadow:0 0 0 1px #cfd5dc}
body.erp-shell .timeline-foot{margin-top:12px;padding-top:10px;border-top:1px solid #edf1f6;color:#7183a1;font-size:10px;text-align:center}
body.erp-shell .global-periods{display:flex;align-items:center;gap:4px;flex:0 1 auto;max-width:100%;overflow-x:auto;scrollbar-width:thin;padding:3px;border:1px solid #e0e8f3;border-radius:9px;background:#f7f9fc}
body.erp-shell .global-periods button{height:30px;min-width:34px;padding:0 7px;border:1px solid transparent;border-radius:6px;background:transparent;color:#64789a;font:700 11px Inter,Arial,sans-serif;cursor:pointer}
body.erp-shell .global-periods button:hover{background:#fff;color:#1269ef}
body.erp-shell .global-periods button.active{background:#1769f7;border-color:#1769f7;color:#fff;box-shadow:0 2px 6px #1769f733}
body.erp-shell .global-periods-toggle{display:none}
body.erp-shell.sidebar-collapsed{--shell-sidebar:72px}
body.erp-shell.sidebar-collapsed .app{grid-template-columns:72px minmax(0,1fr)}
@media(min-width:1024px){
  body.erp-shell.sidebar-collapsed .sidebar{width:72px;padding-left:8px;padding-right:8px}
  body.erp-shell.sidebar-collapsed .sidebar .brand{justify-content:center;padding:4px 0 14px}
  body.erp-shell.sidebar-collapsed .sidebar .brand-copy,
  body.erp-shell.sidebar-collapsed .sidebar .nav-label,
  body.erp-shell.sidebar-collapsed .sidebar .nav a span,
  body.erp-shell.sidebar-collapsed .sidebar .sidebar-foot{display:none}
  body.erp-shell.sidebar-collapsed .sidebar .nav-group{border-top:1px solid #ffffff24;padding-top:8px;margin-top:8px}
  body.erp-shell.sidebar-collapsed .sidebar .nav{gap:4px}
  body.erp-shell.sidebar-collapsed .sidebar .nav a{display:grid;place-items:center;width:48px;min-height:46px;margin:auto;padding:0}
  body.erp-shell.sidebar-collapsed .sidebar .nav a i{width:auto;font-size:20px}
}
@media(max-width:1023px){
  body.erp-shell .topbar-handle{bottom:-24px}
  body.erp-shell .sidebar-collapse{display:none}
  body.erp-shell.sidebar-collapsed .app{grid-template-columns:minmax(0,1fr)}
  body.erp-shell .topbar{min-height:64px;flex-wrap:nowrap;align-content:center;row-gap:0}
  body.erp-shell .mobile-menu{order:1}
  body.erp-shell .top-search{order:2;flex:1 1 180px;min-width:120px;max-width:none}
  body.erp-shell .global-periods{order:3;flex:0 0 auto;width:max-content;max-width:none;min-width:0;justify-content:flex-start;overflow:visible}
  body.erp-shell .top-actions{order:4;flex:0 0 auto}
  body.erp-shell .topbar-timeline{top:100%}
  body.erp-shell .global-periods button{flex:0 0 auto}
}
@media(max-width:700px){
  body.erp-shell .topbar{min-height:64px;flex-wrap:nowrap;gap:5px;row-gap:0}
  body.erp-shell .mobile-menu{order:1}
  body.erp-shell .top-search{order:2;flex:1 1 140px;width:auto;min-width:110px;max-width:none}
  body.erp-shell .global-periods{order:3;flex:0 0 auto;width:max-content;max-width:none;min-width:0;align-self:center;overflow:visible}
  body.erp-shell .top-actions{order:4;margin-left:0;flex:0 0 auto}
  body.erp-shell .topbar-timeline{width:calc(100vw - 20px);padding:10px 10px 8px;overflow-x:auto}
  body.erp-shell .timeline-scale{min-width:690px}
  body.erp-shell .global-periods{gap:2px}
  body.erp-shell .global-periods button{min-width:0;padding:0 5px;font-size:10px}
}
@media(max-width:560px){
  body.erp-shell .topbar{flex-wrap:wrap;min-height:64px;row-gap:6px}
  body.erp-shell .global-periods{order:3;flex:0 0 auto;width:max-content;max-width:100%;min-width:0;flex-direction:column;align-items:stretch;gap:3px;overflow:visible;padding:4px}
  body.erp-shell .top-actions{order:4}
  body.erp-shell .top-actions .top-create,body.erp-shell .top-actions .top-icon,body.erp-shell .top-actions .user-chip{display:grid;place-items:center;flex:0 0 36px;width:36px;min-width:36px;height:40px;padding:0}
  body.erp-shell .top-actions .user-chip{display:flex}
  body.erp-shell .top-actions .user-chip .avatar{width:30px;height:30px}
  body.erp-shell .global-periods.is-expanded{flex:1 0 100%!important;width:calc(100vw - 24px);max-width:none;align-self:stretch;box-sizing:border-box}
  body.erp-shell .global-periods-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;height:30px;min-width:54px;padding:0 9px;border:1px solid #b9d2ff;border-radius:6px;background:#edf4ff;color:#1769f7;font:700 11px Inter,Arial,sans-serif;cursor:pointer}
  body.erp-shell .global-periods-toggle .ui-icon{font-size:12px;transition:transform .18s ease}
  body.erp-shell .global-periods.is-expanded .global-periods-toggle .ui-icon{transform:rotate(180deg)}
  body.erp-shell .global-periods:not(.is-expanded) [data-global-period]{display:none}
  body.erp-shell .global-periods.is-expanded [data-global-period]{display:flex;flex:0 0 28px;align-items:center;width:100%;box-sizing:border-box;text-align:left}
  body.erp-shell .global-periods.is-expanded [data-global-period]:hover{background:#fff;color:#1769f7}
  body.erp-shell .global-periods button{width:100%;height:28px;min-width:0;padding:0 10px;text-align:left;font-size:11px}
  body.erp-shell .topbar-timeline{top:100%}
}

/* Unified local Phosphor icon layer. Legacy mask-based PNG icons are intentionally disabled. */
.ui-icon{width:auto!important;height:auto!important;display:inline-block!important;flex:0 0 auto!important;background:none!important;-webkit-mask:none!important;mask:none!important;color:inherit;line-height:1;font-size:1em}
.impersonation-return{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:6px;border:1px solid #f0c36d;border-radius:7px;background:#fff8e8;color:#9b5b00;font:600 11px Inter,Arial,sans-serif;white-space:nowrap;cursor:pointer}
.impersonation-return[hidden]{display:none}
.impersonation-return span{display:none}
.impersonation-return:hover{background:#fff0c8;border-color:#dc9e36}
.impersonation-return .ui-icon{font-size:15px}
.us-row-actions{display:flex;align-items:center;gap:4px;min-width:150px}
.us-row-switch{display:inline-flex;align-items:center;gap:4px;border:1px solid #b9d2ff;border-radius:4px;background:#f4f8ff;color:#075bfa;padding:4px 6px;font:600 10px Inter,Arial,sans-serif;white-space:nowrap;cursor:pointer}
.us-row-switch:hover{background:#e8f1ff;border-color:#075bfa}
.us-row-switch .ui-icon{font-size:13px}

/* Shared responsive card columns for every cabinet route. */
body.erp-shell .kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:var(--content-gap,16px)}
body.erp-shell [class*="-kpis"]{display:grid;gap:var(--content-gap,16px)}
body.erp-shell .kpis>*,body.erp-shell [class*="-kpis"]>*{min-width:0}
@media (min-width:600px) and (max-width:1199px) and (orientation:landscape){
  body.erp-shell .kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (min-width:600px) and (max-width:1199px) and (orientation:portrait){
  body.erp-shell .kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:599px){
  body.erp-shell .kpis{grid-template-columns:minmax(0,1fr)}
}
@media(min-width:901px){body.erp-shell .split{grid-template-columns:minmax(0,1fr) 380px}}
@media(max-width:900px){body.erp-shell .split{grid-template-columns:1fr}}
.has-global-table-columns{position:relative}.global-table-columns{position:relative;display:inline-block;margin:8px 10px 0 auto;float:right;z-index:6}.global-table-columns summary{list-style:none;cursor:pointer}.global-table-columns summary::-webkit-details-marker{display:none}.global-table-columns-menu{position:absolute;right:0;top:34px;width:190px;max-height:280px;overflow:auto;padding:7px;background:#fff;border:1px solid var(--line);border-radius:7px;box-shadow:0 8px 24px rgba(18,51,104,.18)}.global-table-columns-menu label{display:flex;align-items:center;gap:7px;padding:5px 6px;color:var(--muted);font-size:11px;white-space:nowrap}.global-table-columns-menu input{accent-color:var(--blue);margin:0}.global-table-columns~table{clear:both}.global-table-columns[open]{margin-bottom:8px}
.global-table-filter-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.global-table-filter-bar .global-table-columns{float:none;margin:0 0 0 auto}.global-table-filter-bar .global-table-columns summary{display:inline-flex;align-items:center;gap:5px;min-height:31px;padding:6px 10px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--blue);font:600 11px/1.2 Inter,Arial,sans-serif;white-space:nowrap}.global-table-search{display:flex;align-items:center;min-width:180px;flex:1}.global-table-search input{width:100%;min-height:31px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--text);padding:6px 9px;outline:0}.global-table-filter-reset{border:0;background:transparent;color:var(--blue);cursor:pointer;padding:7px 4px;white-space:nowrap}.global-table-columns-menu{z-index:20}
.wh-widgets>.wh-card .global-table-filter-bar{flex-wrap:nowrap;gap:4px;min-width:0}.wh-widgets>.wh-card .global-table-search{min-width:0}.wh-widgets>.wh-card .global-table-search input{min-width:0;padding-left:6px;padding-right:6px;font-size:10px}.wh-widgets>.wh-card .global-table-filter-reset{padding-left:2px;padding-right:2px}.wh-widgets>.wh-card .global-table-filter-bar .global-table-columns summary{padding-left:7px;padding-right:7px}
/* Unified pagination footer for every data table. Keep the range on the left,
   the page-size control centered, and page navigation on the right. */
.table-footer,
.au-pagination,
.by-pager,
.us-pagination,
.st-pager,
.os-pager,
.pr-pager,
.pf-pager,
.sf-pager,
.im-pager,
.mc-pager,
.wh-pager{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}

.table-footer > .rows-select,
.table-footer > .catalog-page-size-wrap,
.au-pagination > label,
.by-pager label,
.us-pagination label,
.st-pager label,
.os-pager label,
.pr-pager label,
.pf-pager label,
.sf-pager label,
.im-pager label,
.mc-pager label,
.wh-pager label{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  white-space:nowrap;
}

  .table-footer > .pagination,
  .table-footer > .pager,
.by-pager > div,
.us-pagination > div,
.st-pager > div,
.os-pager > div,
.pr-pager > div,
.pf-pager > div,
.sf-pager > div,
.im-pager > div,
.mc-pager > div,
.wh-pager > div{
  display:flex;
  align-items:center;
  gap:5px;
}

  .table-footer > .pagination,
  .table-footer > .pager,
.by-pager > div,
.us-pagination > div,
.st-pager > div,
.os-pager > div,
.pr-pager > div,
.pf-pager > div,
.sf-pager > div,
.im-pager > div,
.mc-pager > div,
.wh-pager > div{
  margin-left:auto;
}

@media (max-width:650px){
  .table-footer,
  .au-pagination,
  .by-pager,
  .us-pagination,
  .st-pager,
  .os-pager,
  .pr-pager,
  .pf-pager,
  .sf-pager,
  .im-pager,
  .mc-pager,
  .wh-pager{
    min-height:42px;
    height:auto;
    flex-wrap:wrap;
    padding-top:8px;
    padding-bottom:8px;
  }
  .table-footer > .rows-select,
  .table-footer > .catalog-page-size-wrap,
  .au-pagination > label,
  .by-pager label,
  .us-pagination label,
  .st-pager label,
  .os-pager label,
  .pr-pager label,
  .pf-pager label,
  .sf-pager label,
  .im-pager label,
  .mc-pager label,
  .wh-pager label{
    position:static;
    transform:none;
    order:2;
    margin-left:auto;
  }
}

.au-pagination #au-prev{margin-left:auto}
.au-pagination #au-page,
.au-pagination #au-next{flex:0 0 auto}

/* Page bundles are loaded after this shared sheet; keep the footer contract
   stable when a page has its own legacy alignment rule. */
body.erp-shell #reference-content :is(.table-footer,.au-pagination,.by-pager,.us-pagination,.st-pager,.os-pager,.pr-pager,.pf-pager,.sf-pager,.im-pager,.mc-pager,.wh-pager){
  justify-content:space-between!important;
}
body.erp-shell #reference-content :is(.by-pager,.us-pagination,.st-pager,.os-pager,.pr-pager,.pf-pager,.sf-pager,.im-pager,.mc-pager,.wh-pager)>div,
body.erp-shell #reference-content .table-footer>:is(.pagination,.pager){
  margin-left:auto!important;
}

/* Consistent period control inside every table filter row. */
body.erp-shell #reference-content .global-table-period,
body.erp-shell #reference-content .global-table-filter-bar{display:flex;align-items:center;gap:5px;min-width:0}
body.erp-shell #reference-content .global-table-period{height:31px;flex:0 1 auto;padding:0 7px;border:1px solid #dce8f8;border-radius:4px;background:#fff;color:#5873a9;white-space:nowrap}
body.erp-shell #reference-content .global-table-period-label{font-size:10px;color:#5873a9}
body.erp-shell #reference-content .global-table-period-separator{color:#7187b5}
body.erp-shell #reference-content .global-table-period input{width:112px;min-width:0;height:25px;border:0;background:transparent;color:#173d7b;font:10px Inter,Arial,sans-serif;outline:0;padding:0 2px}
body.erp-shell #reference-content .global-table-period.has-error{border-color:#d00010;background:#fff8f8;flex-wrap:wrap;height:auto;min-height:31px}
body.erp-shell #reference-content .global-table-period input[aria-invalid="true"]{color:#a4000d}
body.erp-shell #reference-content .global-table-period-error{flex-basis:100%;color:#a4000d;font-size:10px;line-height:1.25;padding:2px 0 1px}
body.erp-shell #reference-content .global-table-filter-bar{padding:8px 10px;background:#fff;border-bottom:1px solid #e8eef8}
body.erp-shell #reference-content .global-table-filter-bar .global-table-period{width:max-content}
body.erp-shell #reference-content :is(.pf-period,.mc-period){margin:0;padding:0;background:transparent;border:0;box-shadow:none}
@media(max-width:900px){body.erp-shell #reference-content .global-table-period{flex:1 1 250px}body.erp-shell #reference-content .global-table-period input{width:calc(50% - 28px)}}
@media(max-width:560px){body.erp-shell #reference-content .global-table-period{width:100%;flex-basis:100%}}
.category-picker { position:relative; }
.form-hint { margin:0; color:#60749c; font-size:11px; line-height:1.4; }
.category-picker-trigger { width:100%; min-height:38px; padding:8px 34px 8px 11px; border:1px solid #cddbea; border-radius:7px; background:#fff; color:#183153; text-align:left; font:inherit; cursor:pointer; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; position:relative; }
.category-picker-trigger::after { content:'⌄'; position:absolute; right:11px; top:50%; transform:translateY(-50%); color:#6d8199; }
.category-picker-trigger[aria-expanded="true"] { border-color:#1464e8; box-shadow:0 0 0 3px rgba(20,100,232,.12); }
.category-picker-popover { position:absolute; z-index:30; top:calc(100% + 6px); left:0; right:0; padding:9px; border:1px solid #cddbea; border-radius:9px; background:#fff; box-shadow:0 14px 30px rgba(17,44,78,.18); }
.category-picker-search { width:100%; margin-bottom:8px; padding:8px 10px; border:1px solid #d6e1ed; border-radius:6px; color:#183153; font:inherit; box-sizing:border-box; }
.category-tree { max-height:300px; overflow:auto; padding:2px 2px 3px; color:#183153; }
.category-tree-root, .category-tree-option { display:flex; align-items:center; gap:7px; width:100%; min-height:31px; padding:4px 7px; border:0; background:transparent; color:#28527f; text-align:left; font:inherit; font-size:12px; cursor:pointer; border-radius:5px; }
.category-tree-root:hover, .category-tree-option:hover { background:#edf4ff; }
.category-tree-root.is-selected, .category-tree-option.is-selected { background:#e7f0ff; color:#0b5cff; font-weight:700; }
.category-tree-line { display:flex; align-items:center; min-height:31px; padding-left:calc(var(--tree-depth) * 20px); position:relative; }
.category-tree-line::before { content:''; position:absolute; left:calc(var(--tree-depth) * 20px + 8px); top:0; bottom:0; border-left:1px solid #c8d5e3; }
.category-tree-line::after { content:''; position:absolute; left:calc(var(--tree-depth) * 20px + 8px); top:50%; width:11px; border-top:1px solid #c8d5e3; }
.category-tree-node:first-child > .category-tree-line::before { top:50%; }
.category-tree-node:last-child > .category-tree-line::before { bottom:50%; }
.category-tree-toggle { z-index:1; width:18px; height:22px; padding:0; border:0; background:#fff; color:#52708f; font-weight:700; cursor:pointer; }
.category-tree-toggle:disabled { cursor:default; }
.category-tree-option { flex:1; position:relative; z-index:1; }
.category-tree-dot { width:10px; height:10px; flex:0 0 10px; border:1px solid #5c9cce; border-radius:50%; background:#9cc7e8; }
.category-tree-check { margin-left:auto; color:#0b5cff; font-weight:800; }
.category-tree-children { margin:0; }

/* Keep stacked form labels visually separated from their controls. */
body.erp-shell :is(.field,.by-detail,.by-dialog,.catalog-name-dialog,.catalog-image-preview,.im-dialog,.os-modal,.pr-dialog,.st-dialog-body,.us-modal-body,.us-permission-editor,.us-profile-form,.mc-period) label > :is(input,select,textarea):not([type="checkbox"]):not([type="radio"]){margin-top:8px!important}
body.erp-shell #modal-form :is(select[name="source_warehouse_id"],select[name="destination_warehouse_id"]){display:block;width:100%;min-width:0;max-width:100%}
body.erp-shell .cp-field{gap:8px!important}

/* One visual contract for every live data table; page bundles keep only domain-specific details. */
body.erp-shell #reference-content :is(.table-card,.au-table-card,.by-recs,.mc-table-card,.os-orders,.pf-ledger,.pr-table-card,.sf-table-card,.st-list-card,.im-list,.us-list-card,.ad-activity){
  background:#fff;
  border:1px solid #e4edff;
  border-radius:6px;
  box-shadow:0 1px 5px rgba(22,60,123,.04);
  min-width:0;
  overflow:hidden;
}
body.erp-shell #reference-content :is(.table-wrap,.au-table-wrap,.by-table-wrap,.mc-table-wrap,.os-table-wrap,.pf-table-wrap,.pr-table-wrap,.sf-table-wrap,.st-table-wrap,.im-table-wrap,.us-table-wrap,.ad-table-wrap){
  max-width:100%;
  overflow:auto;
}
body.erp-shell #reference-content table:not(.us-matrix){
  border-collapse:collapse;
  min-width:100%;
  color:#173b7a;
}
body.erp-shell #reference-content table:not(.us-matrix) thead{background:#f6f9ff;color:#6179ad}
body.erp-shell #reference-content table:not(.us-matrix) th{
  padding:8px 9px;
  border-bottom:1px solid #e4edff;
  font-weight:600;
  line-height:1.25;
  text-align:left;
  white-space:nowrap;
}
body.erp-shell #reference-content table:not(.us-matrix) td{
  padding:8px 9px;
  border-top:1px solid #e9eef9;
  line-height:1.35;
}
body.erp-shell #reference-content table:not(.us-matrix) tbody tr[data-user],
body.erp-shell #reference-content table:not(.us-matrix) tbody tr[data-product-id],
body.erp-shell #reference-content table:not(.us-matrix) tbody tr[data-au-row],
body.erp-shell #reference-content table:not(.us-matrix) tbody tr[data-event-row],
body.erp-shell #reference-content table:not(.us-matrix) tbody tr[data-by-row],
body.erp-shell #reference-content table:not(.us-matrix) tbody tr[data-mc-select],
body.erp-shell #reference-content table:not(.us-matrix) tbody tr[data-im-row],
body.erp-shell #reference-content table:not(.us-matrix) tbody tr[data-os-row],
body.erp-shell #reference-content table:not(.us-matrix) tbody tr[data-pf-row],
body.erp-shell #reference-content table:not(.us-matrix) tbody tr[data-pr-order],
body.erp-shell #reference-content table:not(.us-matrix) tbody tr[data-sf-row],
body.erp-shell #reference-content table:not(.us-matrix) tbody tr[data-st-warehouse],
body.erp-shell #reference-content table:not(.us-matrix) tbody tr[data-wh-row]{cursor:pointer}
body.erp-shell #reference-content table:not(.us-matrix) tbody tr[data-user]:hover,
body.erp-shell #reference-content table:not(.us-matrix) tbody tr[data-product-id]:hover,
body.erp-shell #reference-content table:not(.us-matrix) tbody tr[data-au-row]:hover,
body.erp-shell #reference-content table:not(.us-matrix) tbody tr[data-event-row]:hover,
body.erp-shell #reference-content table:not(.us-matrix) tbody tr[data-by-row]:hover,
body.erp-shell #reference-content table:not(.us-matrix) tbody tr[data-mc-select]:hover,
body.erp-shell #reference-content table:not(.us-matrix) tbody tr[data-im-row]:hover,
body.erp-shell #reference-content table:not(.us-matrix) tbody tr[data-os-row]:hover,
body.erp-shell #reference-content table:not(.us-matrix) tbody tr[data-pf-row]:hover,
body.erp-shell #reference-content table:not(.us-matrix) tbody tr[data-pr-order]:hover,
body.erp-shell #reference-content table:not(.us-matrix) tbody tr[data-sf-row]:hover,
body.erp-shell #reference-content table:not(.us-matrix) tbody tr[data-st-warehouse]:hover,
body.erp-shell #reference-content table:not(.us-matrix) tbody tr[data-wh-row]:hover{background:#f2f7ff}
body.erp-shell #reference-content :is(.au-pagination,.by-pager,.us-pagination,.st-pager,.os-pager,.pr-pager,.pf-pager,.sf-pager,.im-pager,.mc-pager,.wh-pager,.table-footer){
  gap:8px;
  padding-left:10px;
  padding-right:10px;
}
body.erp-shell #reference-content :is(.au-pagination,.by-pager,.us-pagination,.st-pager,.os-pager,.pr-pager,.pf-pager,.sf-pager,.im-pager,.mc-pager,.wh-pager,.table-footer)>div{gap:6px}
body.erp-shell #reference-content :is(.au-pagination,.by-pager,.us-pagination,.st-pager,.os-pager,.pr-pager,.pf-pager,.sf-pager,.im-pager,.mc-pager,.wh-pager,.table-footer) button{
  min-width:28px;
  min-height:28px;
}
body.erp-shell #reference-content :is(.au-pagination,.by-pager,.us-pagination,.st-pager,.os-pager,.pr-pager,.pf-pager,.sf-pager,.im-pager,.mc-pager,.wh-pager,.table-footer) button:focus-visible,
body.erp-shell #reference-content table:not(.us-matrix) tbody tr:focus-visible{outline:2px solid #075cf0;outline-offset:-2px}
@media(max-width:900px){
  body.erp-shell #reference-content :is(.table-card,.au-table-card,.by-recs,.mc-table-card,.os-orders,.pf-ledger,.pr-table-card,.sf-table-card,.st-list-card,.im-list,.us-list-card,.ad-activity){border-radius:5px}
  body.erp-shell #reference-content table:not(.us-matrix) th,
  body.erp-shell #reference-content table:not(.us-matrix) td{padding-left:8px;padding-right:8px}
}
.erp-checkbox-switch{display:inline-flex;position:relative;align-items:center;vertical-align:middle;width:48px;height:22px;min-width:48px;margin:0 4px 0 0;flex:0 0 48px}
.erp-checkbox-switch input[type=checkbox]{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;margin:0!important;padding:0!important;opacity:0!important;appearance:none!important;cursor:pointer;z-index:2}
.erp-checkbox-switch-label{display:block;position:relative;width:100%;height:100%;border-radius:999px;background:#c7c9cc;color:#fff;font:600 9px/22px Inter,Arial,sans-serif;text-align:right;padding:0 6px;box-sizing:border-box;transition:background .15s ease}
.erp-checkbox-switch-label::before{content:'OFF';position:relative;z-index:1}
.erp-checkbox-switch-label::after{content:'';position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 2px #20344b2b;transition:left .15s ease,right .15s ease}
.erp-checkbox-switch input[type=checkbox]:checked + .erp-checkbox-switch-label{background:#42cf4b;text-align:left;padding-left:6px;padding-right:0}
.erp-checkbox-switch input[type=checkbox]:checked + .erp-checkbox-switch-label::before{content:'ON'}
.erp-checkbox-switch input[type=checkbox]:checked + .erp-checkbox-switch-label::after{left:auto;right:3px}
.erp-checkbox-switch input[type=checkbox]:disabled + .erp-checkbox-switch-label{opacity:.55;cursor:not-allowed}
.erp-checkbox-switch input[type=checkbox]:focus-visible + .erp-checkbox-switch-label{outline:2px solid #075bfa;outline-offset:2px}
body.erp-shell #reference-content table input[type=checkbox]{appearance:auto!important;position:static!important;inset:auto!important;width:13px!important;height:13px!important;margin:0!important;padding:0!important;opacity:1!important;accent-color:#0963f8;cursor:pointer}

/* Company registry: the detail card participates in layout so the table keeps
   its full height and moves left instead of being covered by an overlay. */
body.erp-shell .companies-page{min-width:0}
body.erp-shell .companies-page.has-company-detail{display:grid;grid-template-columns:minmax(0,1fr) 550px;gap:16px;align-items:stretch;min-height:calc(100vh - 64px)}
body.erp-shell .companies-main{min-width:0}
body.erp-shell .companies-detail{position:sticky;top:0;height:calc(100vh - 64px);min-width:0;overflow:auto;padding:18px 16px;background:#fff;border:1px solid #dfe7f0;border-radius:10px;box-shadow:0 2px 9px rgba(20,51,91,.055)}
body.erp-shell .companies-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:14px;border-bottom:1px solid #e4ebf5}
body.erp-shell .companies-detail-head h2{margin:4px 0 0;color:#0d2446;font-size:18px}
body.erp-shell .companies-detail .icon-button{display:grid;place-items:center;width:30px;height:30px;padding:0;border:1px solid #d8e4f2;border-radius:7px;background:#fff;color:#526985;font-size:18px;line-height:1}
body.erp-shell .company-detail-meta{display:grid;gap:8px;padding:14px 0;color:#607594;font-size:11px}
body.erp-shell .companies-module-matrix{border-top:1px solid #e4ebf5;padding-top:14px}
body.erp-shell .companies-module-matrix h3{margin:0 0 5px;color:#15345f;font-size:14px}
body.erp-shell .companies-module-matrix>p{margin:0 0 12px;color:#607594;font-size:11px;line-height:1.45}
body.erp-shell .companies-module-group{margin-top:14px}
body.erp-shell .companies-module-group h4{margin:0;padding:8px 0 5px;color:#607594;border-bottom:1px solid #dfe7f0;font-size:10px;text-transform:uppercase;letter-spacing:.06em}
body.erp-shell .tenant-module-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid #edf1f7}
body.erp-shell .tenant-module-row>div{min-width:0}
body.erp-shell .tenant-module-row strong,body.erp-shell .tenant-module-row small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.erp-shell .tenant-module-row strong{color:#173b7a;font-size:12px}
body.erp-shell .tenant-module-row small{margin-top:3px;color:#8495ad;font:10px 'IBM Plex Mono',monospace}
body.erp-shell .tenant-module-switch{position:relative;display:inline-flex;align-items:center;justify-content:flex-start;width:36px;height:16px;min-width:36px;flex:0 0 36px;padding:0 5px;border:0;border-radius:999px;color:#fff;font:500 7px/1 Inter,Arial,sans-serif;cursor:pointer;transition:background .15s ease,box-shadow .15s ease}
body.erp-shell .tenant-module-switch::after{content:"";position:absolute;top:2px;left:2px;width:12px;height:12px;border-radius:50%;background:#fff;box-shadow:0 1px 2px #20344b2b;transition:left .15s ease,right .15s ease}
body.erp-shell .tenant-module-switch.is-on{background:#42cf4b;justify-content:flex-start}
body.erp-shell .tenant-module-switch.is-on::after{left:auto;right:2px}
body.erp-shell .tenant-module-switch.is-off{background:#c7c9cc;justify-content:flex-end}
body.erp-shell .tenant-module-switch:not(:disabled):hover{filter:brightness(.96);box-shadow:0 0 0 2px #b9d4ff}
body.erp-shell .tenant-module-switch:focus-visible{outline:2px solid #075bfa;outline-offset:2px}
body.erp-shell .company-row-link{padding:0;border:0;background:transparent;color:#1769f7;font:inherit;font-weight:600;text-align:left;cursor:pointer}
body.erp-shell .company-row-link:hover{text-decoration:underline}
body.erp-shell .company-row-actions{display:flex;gap:6px}
body.erp-shell .company-row-icon{display:grid;place-items:center;width:32px;min-width:32px;height:32px;padding:0;color:#1769f7}
body.erp-shell .company-row-icon.btn-danger{color:#d74957}
body.erp-shell .company-row-icon .ui-icon{font-size:15px}
body.erp-shell .companies-page.has-company-detail .companies-main .table{table-layout:fixed}
body.erp-shell .companies-page.has-company-detail .companies-main .table th,
body.erp-shell .companies-page.has-company-detail .companies-main .table td{overflow:hidden;text-overflow:ellipsis}
body.erp-shell .companies-page.has-company-detail .companies-main .table th:nth-child(1){width:17%}
body.erp-shell .companies-page.has-company-detail .companies-main .table th:nth-child(2){width:12%}
body.erp-shell .companies-page.has-company-detail .companies-main .table th:nth-child(3){width:9%}
body.erp-shell .companies-page.has-company-detail .companies-main .table th:nth-child(4){width:8%}
body.erp-shell .companies-page.has-company-detail .companies-main .table th:nth-child(5){width:14%}
body.erp-shell .companies-page.has-company-detail .companies-main .table th:nth-child(6){width:7%}
body.erp-shell .companies-page.has-company-detail .companies-main .table th:nth-child(7){width:9%}
body.erp-shell .companies-page.has-company-detail .companies-main .table th:nth-child(8){width:14%}
body.erp-shell .companies-page.has-company-detail .companies-main .table th:nth-child(9){width:10%}
body.erp-shell .companies-page.has-company-detail .company-row-actions{display:flex;gap:4px;white-space:nowrap}
body.erp-shell .companies-page.has-company-detail .company-row-link{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:1200px){body.erp-shell .companies-page.has-company-detail{grid-template-columns:minmax(0,1fr) minmax(420px,550px)}}
@media(max-width:900px){body.erp-shell .companies-page.has-company-detail{display:block}.companies-detail{position:fixed!important;right:0;top:64px!important;z-index:75;width:min(550px,100vw);height:calc(100vh - 64px)!important;border-radius:10px 0 0 10px!important;box-shadow:-8px 0 24px rgba(20,51,91,.16)!important}}
body.erp-shell .modal{z-index:100}
@media(max-width:700px){body.erp-shell .topbar-handle{bottom:-12px;height:18px;width:44px}}

.rate-delta{white-space:nowrap;font-size:11px;font-weight:700}.rate-delta-up{color:var(--green)}.rate-delta-down{color:var(--red)}.rate-delta-flat{color:var(--muted)}

body.erp-shell #page h1{margin:0 0 5px;font-size:27px;font-weight:700;line-height:1.1;letter-spacing:-.035em;color:#0d2446}
@media(max-width:600px){body.erp-shell #page h1{font-size:22px}}
