:root{--erp-blue:#0a6ed1;--erp-blue-deep:#0854a0;--erp-ink:#1d2d3e;--erp-line:#d9e2ec;--erp-bg:#f5f6f7;--erp-side:#fff;--erp-top:#354a5f;--erp-success:#107e3e;--erp-warning:#e9730c;--erp-radius:8px;--erp-top-h:58px;--erp-side-w:272px}
body.enterprise-shell{background:var(--erp-bg);color:var(--erp-ink);font-size:14px}
.erp-topbar{height:var(--erp-top-h);position:fixed;inset:0 0 auto 0;z-index:50;background:var(--erp-top);color:#fff;display:flex;align-items:center;gap:14px;padding:0 18px;box-shadow:0 2px 6px rgba(0,0,0,.22)}
.erp-menu-toggle{width:38px;height:38px;padding:9px;border:0;border-radius:4px;background:transparent;box-shadow:none;display:grid;align-content:center;gap:4px}.erp-menu-toggle:hover{background:rgba(255,255,255,.12);transform:none;box-shadow:none}.erp-menu-toggle span{display:block;height:2px;background:#fff;border-radius:2px}
.erp-brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:#fff;min-width:224px}.erp-brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:7px;background:linear-gradient(135deg,#fff 0 48%,#92c86e 49% 100%);color:#0a4d8c;font-weight:900;font-size:18px;box-shadow:0 2px 7px rgba(0,0,0,.2)}.erp-brand strong,.erp-brand small{display:block}.erp-brand strong{font-size:16px;line-height:1.1}.erp-brand small{font-size:10px;color:#d5e5f3;margin-top:2px;letter-spacing:.04em}
.erp-company{padding-left:16px;border-left:1px solid rgba(255,255,255,.22);min-width:170px}.erp-company small,.erp-company strong{display:block}.erp-company small{font-size:10px;color:#c9d8e6}.erp-company strong{font-size:13px;white-space:nowrap;max-width:210px;overflow:hidden;text-overflow:ellipsis}
.erp-search{height:34px;max-width:380px;flex:1;margin-left:auto;display:flex;align-items:center;background:#fff;border-radius:5px;color:#496b8a}.erp-search svg{width:18px;margin:0 8px;fill:none;stroke:currentColor;stroke-width:2}.erp-search input{height:34px;padding:0 8px 0 0;border:0;border-radius:0;background:transparent;box-shadow:none}.erp-search input:focus{box-shadow:none;outline:0}
.erp-user{display:flex;align-items:center;gap:9px}.erp-avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#e6f2ff;color:#0854a0;font-weight:800}.erp-user-copy strong,.erp-user-copy small{display:block}.erp-user-copy strong{font-size:12px}.erp-user-copy small{font-size:10px;color:#cbd9e5}.erp-logout{color:#fff;text-decoration:none;border-left:1px solid rgba(255,255,255,.2);padding:8px 0 8px 12px;font-size:12px}
.erp-layout{min-height:100vh;padding-top:var(--erp-top-h)}
.erp-sidebar{position:fixed;z-index:40;top:var(--erp-top-h);bottom:0;left:0;width:var(--erp-side-w);background:var(--erp-side);border-right:1px solid var(--erp-line);display:flex;flex-direction:column;transition:width .18s ease,transform .18s ease;box-shadow:1px 0 4px rgba(27,54,82,.05)}.erp-sidebar nav{padding:10px 9px 24px;overflow-y:auto;flex:1}.erp-nav-group{margin:0 0 12px}.erp-nav-group h2{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#6a7f91;margin:12px 11px 5px}.erp-nav-item{display:flex;align-items:center;gap:11px;min-height:47px;padding:6px 10px;border-left:3px solid transparent;border-radius:4px;text-decoration:none;color:#243b53;transition:background .13s ease,color .13s ease}.erp-nav-item:hover{background:#eef5fc;color:#074b87}.erp-nav-item.is-active{background:#e5f2ff;border-left-color:var(--erp-blue);color:#064f92}.erp-nav-icon{width:27px;display:grid;place-items:center;flex:0 0 27px}.erp-nav-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}.erp-nav-copy{min-width:0}.erp-nav-copy strong,.erp-nav-copy small{display:block}.erp-nav-copy strong{font-size:13px;line-height:1.15}.erp-nav-copy small{font-size:10px;color:#6a7f91;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.erp-sidebar-foot{border-top:1px solid var(--erp-line);padding:12px 15px;display:flex;align-items:center;gap:9px}.erp-sidebar-foot>span{width:30px;height:30px;border-radius:5px;display:grid;place-items:center;background:#e5f2ff;color:#0854a0;font-size:11px;font-weight:900}.erp-sidebar-foot p{margin:0}.erp-sidebar-foot strong,.erp-sidebar-foot small{display:block}.erp-sidebar-foot strong{font-size:11px}.erp-sidebar-foot small{font-size:9px;color:#718497}
.erp-workspace{margin-left:var(--erp-side-w);min-width:0;transition:margin-left .18s ease}.erp-pagehead{min-height:91px;background:#fff;border-bottom:1px solid var(--erp-line);padding:17px 26px;display:flex;align-items:center;justify-content:space-between}.erp-pagehead p{margin:0 0 4px;color:#607487;font-size:11px}.erp-pagehead h1{margin:0;font-size:24px;font-weight:500;color:#19354d}.erp-product-badge{border:1px solid #9db4c8;background:#f7fbff;color:#345b7e;border-radius:15px;padding:6px 11px;font-size:11px;font-weight:700}.erp-content{padding:22px 26px 42px;max-width:1500px;margin:0 auto}.erp-content>h1{display:none}
body.menu-collapsed .erp-sidebar{width:68px}body.menu-collapsed .erp-workspace{margin-left:68px}body.menu-collapsed .erp-nav-group h2,body.menu-collapsed .erp-nav-copy,body.menu-collapsed .erp-sidebar-foot p{display:none}body.menu-collapsed .erp-nav-item{justify-content:center;padding-inline:6px}body.menu-collapsed .erp-nav-group{margin-bottom:5px}body.menu-collapsed .erp-sidebar-foot{justify-content:center;padding-inline:4px}
.enterprise-shell .card{border-radius:var(--erp-radius);border-color:var(--erp-line);box-shadow:0 1px 3px rgba(27,54,82,.09);padding:18px}.enterprise-shell .grid{gap:14px}.enterprise-shell .metric{color:#163a59;font-size:26px}.enterprise-shell .muted{color:#64798c}.enterprise-shell .btn,.enterprise-shell button{border-radius:4px;box-shadow:none;padding:9px 14px;background:var(--erp-blue);font-size:12px}.enterprise-shell .btn:hover,.enterprise-shell button:hover{background:var(--erp-blue-deep);box-shadow:none;transform:none}.enterprise-shell .btn.green{background:var(--erp-success)}.enterprise-shell .btn.secondary{background:#fff;color:#0854a0;border:1px solid #7c9ab5}.enterprise-shell input,.enterprise-shell select,.enterprise-shell textarea{border-radius:4px;min-height:36px}.enterprise-shell table{border-radius:6px;border-color:var(--erp-line);box-shadow:0 1px 3px rgba(27,54,82,.08);font-size:12px}.enterprise-shell th{background:#edf3f8;color:#29465f;text-transform:uppercase;letter-spacing:.035em;font-size:10px;padding:10px 11px;border-color:#ccd9e4}.enterprise-shell td{padding:10px 11px}.enterprise-shell tbody tr:hover{background:#f3f8fc}.enterprise-shell .actions{align-items:center;border-bottom:1px solid var(--erp-line);padding-bottom:13px;margin-top:0}.enterprise-shell .actions h1{font-size:21px;font-weight:500;margin-block:0}.enterprise-shell .alert{border-radius:4px;box-shadow:none}.enterprise-shell label{display:inline-block;font-size:11px;color:#4e6579;font-weight:700;margin-bottom:5px}.enterprise-shell h2{font-weight:500;color:#29465f}
.erp-overlay{display:none}
.erp-welcome{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:16px;padding:2px 2px 5px}.erp-welcome h2{margin:2px 0 5px;font-size:22px}.erp-welcome p{margin:0;color:#607487}.erp-eyebrow,.erp-section-title p{font-size:9px!important;font-weight:800;letter-spacing:.1em;color:#6b8295!important}.erp-kpis{margin-bottom:16px}.erp-kpi{display:flex;align-items:center;gap:14px;text-decoration:none;color:inherit;min-height:105px}.erp-kpi:hover{border-color:#9ebbd4}.erp-kpi-icon{width:43px;height:43px;border-radius:7px;display:grid;place-items:center;flex:0 0 43px;font-size:11px;font-weight:900}.erp-kpi-icon.blue{background:#e3f2fd;color:#0868b8}.erp-kpi-icon.orange{background:#fff1df;color:#b95c00}.erp-kpi-icon.green{background:#e5f5e9;color:#107e3e}.erp-kpi-icon.navy{background:#e7edf3;color:#354a5f}.erp-kpi .metric{margin-top:2px;font-size:22px}.erp-kpi small{font-size:10px;color:#718497}.erp-dashboard-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,.8fr);gap:16px}.erp-section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}.erp-section-title p,.erp-section-title h2{margin:0}.erp-section-title h2{font-size:17px;margin-top:2px}.erp-section-title>a{color:var(--erp-blue-deep);font-size:11px;text-decoration:none}.status-pill{display:inline-flex;align-items:center;border-radius:12px;padding:4px 8px;font-size:10px;font-weight:800;background:#e8eef3;color:#465d70}.status-draft{background:#fff3df;color:#9b5100}.status-calculated{background:#e5f2ff;color:#075a9c}.status-approved{background:#e8f5e9;color:#107e3e}.status-closed{background:#dfece4;color:#256f3a}.status-cancelled{background:#ffebeb;color:#b00}.erp-process ol{list-style:none;padding:0;margin:0}.erp-process li{display:flex;gap:11px;padding:12px 0;border-bottom:1px solid #e4ebf1}.erp-process li:last-child{border:0}.erp-process li>span{width:25px;height:25px;border-radius:50%;display:grid;place-items:center;background:#e5f2ff;color:#075a9c;font-size:11px;font-weight:800}.erp-process strong,.erp-process small{display:block}.erp-process strong{font-size:12px}.erp-process small{font-size:10px;color:#718497;margin-top:3px}.erp-empty{text-align:center;padding:35px 15px;color:#607487}.erp-empty p{font-size:11px}.enterprise-shell a:not(.btn):not(.erp-brand):not(.erp-nav-item):not(.erp-logout){color:#075a9c;text-decoration:none}
@media(max-width:1100px){.erp-company{display:none}.erp-user-copy{display:none}.erp-brand{min-width:190px}}
@media(max-width:1150px){.erp-kpis{grid-template-columns:repeat(2,1fr)}.erp-dashboard-grid{grid-template-columns:1fr}}
@media(max-width:900px){:root{--erp-top-h:54px}.erp-topbar{padding:0 10px;gap:8px}.erp-brand{min-width:0}.erp-brand small,.erp-search{display:none}.erp-brand strong{font-size:14px}.erp-sidebar{transform:translateX(-101%);width:min(294px,86vw)}.erp-workspace{margin-left:0}.menu-open .erp-sidebar{transform:translateX(0)}.menu-open .erp-overlay{display:block;position:fixed;z-index:35;inset:var(--erp-top-h) 0 0;background:rgba(16,35,52,.45)}.erp-pagehead{min-height:78px;padding:13px 15px}.erp-pagehead h1{font-size:20px}.erp-content{padding:15px 12px 34px}.erp-logout{padding-left:8px}.erp-product-badge{display:none}}
@media(max-width:600px){.erp-brand-mark{width:30px;height:30px}.erp-user{margin-left:auto}.enterprise-shell .grid,.erp-kpis{grid-template-columns:1fr}.enterprise-shell .actions{align-items:stretch;flex-direction:column}.enterprise-shell .actions h1{width:100%}.enterprise-shell .actions .btn{width:100%;text-align:center}.erp-content{overflow:hidden}.erp-welcome{align-items:flex-start;flex-direction:column}.erp-welcome .btn{width:100%;text-align:center}}
@media print{.erp-topbar,.erp-sidebar,.erp-pagehead,.erp-overlay{display:none!important}.erp-layout{padding:0}.erp-workspace{margin:0!important}.erp-content{padding:0;max-width:none}}
.auth-shell{min-height:100vh;background:linear-gradient(135deg,#eaf2f8 0,#f7f9fb 46%,#dce8f2 100%);display:grid;place-items:center;padding:22px}.auth-shell:before{content:"";position:fixed;inset:0;background:linear-gradient(90deg,transparent 49.8%,rgba(10,110,209,.04) 50%,transparent 50.2%);background-size:70px 70px;pointer-events:none}.erp-login{position:relative;margin:0;width:min(440px,100%);border:1px solid #cedbe6;border-top:4px solid var(--erp-blue);border-radius:8px;box-shadow:0 18px 46px rgba(28,57,82,.18);padding:30px 34px}.erp-login-brand{display:flex;align-items:center;gap:11px;padding-bottom:18px;border-bottom:1px solid #dce5ed}.erp-login-brand>span{width:38px;height:38px;border-radius:7px;display:grid;place-items:center;background:linear-gradient(135deg,#075da8 0 54%,#8bc45f 55% 100%);color:#fff;font-size:19px;font-weight:900}.erp-login-brand strong,.erp-login-brand small{display:block}.erp-login-brand strong{color:#193b58;font-size:17px}.erp-login-brand small{font-size:10px;color:#687f92}.erp-login h1{font-size:21px;color:#25445f;margin:22px 0 5px}.erp-login label{font-size:11px;font-weight:700;color:#4d6579}.erp-login input{border-radius:4px;min-height:39px}.erp-login .btn{width:100%;border-radius:4px;background:var(--erp-blue);box-shadow:none}.erp-login footer{text-align:center;color:#718497;font-size:9px;margin-top:22px}
.report-filter{margin-bottom:16px}.report-filter form{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}.report-filter form>div:first-child{width:min(520px,100%)}.report-filter-meta{display:flex;align-items:center;gap:10px}.report-filter-meta strong{color:#224967}.report-filter-meta small{color:#6e8293}.report-catalog{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:16px}.report-card{background:#fff;border:1px solid var(--erp-line);border-radius:8px;box-shadow:0 1px 3px rgba(27,54,82,.08);padding:17px;display:flex;gap:13px;min-height:154px}.report-card>span{width:42px;height:42px;border-radius:7px;display:grid;place-items:center;flex:0 0 42px;background:#e5f2ff;color:#075a9c;font-size:11px;font-weight:900}.report-card>div{display:flex;flex:1;min-width:0;flex-direction:column}.report-card h2{font-size:15px;margin:2px 0 6px}.report-card p{color:#64798c;font-size:11px;line-height:1.45;margin:0 0 14px}.report-card>div>div{display:flex;gap:6px;margin-top:auto;flex-wrap:wrap}.report-card .btn{padding:7px 10px;font-size:10px}.report-quick,.report-history{margin-top:16px}.report-quick>p{color:#64798c}.report-history{overflow:hidden}
@media(max-width:1200px){.report-catalog{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.report-filter form{align-items:stretch;flex-direction:column}.report-filter-meta{justify-content:space-between}.report-catalog{grid-template-columns:1fr}.report-card{min-height:145px}.report-card .btn{flex:1;text-align:center}}
.module-tabs{display:flex;gap:4px;overflow-x:auto;border-bottom:1px solid var(--erp-line);margin-bottom:16px}.module-tabs a{padding:10px 13px;color:#45647e!important;white-space:nowrap;border-bottom:3px solid transparent}.module-tabs a.active{color:#075a9c!important;border-color:var(--erp-blue);font-weight:800}.accounting-notice{border-left:4px solid var(--erp-success);margin-bottom:12px}.accounting-kpis{margin-bottom:16px}.accounting-ready,.accounting-settings,.accounting-history{margin-top:16px}.accounting-split{display:grid;grid-template-columns:minmax(270px,.65fr) minmax(0,1.35fr);gap:16px}.accounting-totals{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:14px 0}.accounting-totals div{background:#f1f6fa;border:1px solid #d5e1eb;border-radius:6px;padding:12px;text-align:center}.accounting-totals small,.accounting-totals strong{display:block}.accounting-totals strong{font-size:19px;color:#254a68;margin-top:4px}.accounting-export-form{margin-top:16px;padding:15px;background:#eef7ef;border:1px solid #b8d8bc;border-radius:7px;display:flex;align-items:flex-end;gap:12px}.accounting-export-form>div{flex:1}.accounting-document table tfoot td{font-weight:800;background:#eaf2f8}.accounting-document .alert{margin-block:8px}
.accounting-start{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:16px;border-left:4px solid var(--erp-blue)}.accounting-start h2,.accounting-start p{margin:0}.accounting-start p{color:#64798c;margin-top:5px}
@media(max-width:800px){.accounting-split{grid-template-columns:1fr}.accounting-export-form{align-items:stretch;flex-direction:column}.accounting-export-form .btn{width:100%}}
.status-review{background:#efe8ff;color:#6941a5}.workflow-panel{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px}.workflow-steps{display:flex;align-items:center;gap:0;overflow-x:auto;padding:3px 0}.workflow-step{display:flex;align-items:center;white-space:nowrap;color:#718598;font-size:10px;font-weight:700}.workflow-step:after{content:"";width:25px;height:1px;background:#cbd8e2;margin:0 7px}.workflow-step:last-child:after{display:none}.workflow-step span{width:23px;height:23px;border:1px solid #b9c9d6;border-radius:50%;display:grid;place-items:center;margin-right:5px;background:#fff}.workflow-step.done,.workflow-step.current{color:#075a9c}.workflow-step.done span{background:#e6f4ea;border-color:#65a879;color:#18733d}.workflow-step.current span{background:#075a9c;border-color:#075a9c;color:#fff}.workflow-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.workflow-actions form{margin:0}.validation-list{display:grid;gap:7px;margin:13px 0}.validation-item{display:flex;align-items:flex-start;gap:8px;border-radius:5px;padding:9px 11px;font-size:10px}.validation-item.error{background:#fff0f0;color:#a6231c;border:1px solid #f1c4c1}.validation-item.warning{background:#fff8e8;color:#855900;border:1px solid #ead6a3}.validation-item span{font-weight:900}.reversal-box{margin-top:13px;padding-top:13px;border-top:1px solid #d9e3ea}.reversal-box summary{cursor:pointer;color:#9d2c24;font-size:10px;font-weight:800}.reversal-box form{display:flex;gap:8px;align-items:end;margin-top:10px}.reversal-box form>p{flex:1;margin:0}.payroll-frequency-badge{display:inline-flex;align-items:center;border:1px solid #bfd1df;background:#f0f6fa;color:#315a77;border-radius:12px;padding:4px 8px;font-size:9px;font-weight:800}.frequency-picker{display:grid;grid-template-columns:minmax(180px,320px);margin:12px 0 15px}
@media(max-width:850px){.workflow-panel{grid-template-columns:1fr}.workflow-actions{justify-content:flex-start}.workflow-steps{padding-bottom:8px}.reversal-box form{align-items:stretch;flex-direction:column}}
.novelty-summary{grid-template-columns:repeat(4,minmax(0,1fr))}.novelty-frequency{font-size:18px!important}.accounting-notice{border-left:4px solid #2b7a48!important;background:#edf8f1!important;color:#23633b!important;margin-bottom:13px}.report-table-wrap{overflow-x:auto}.report-table-wrap table{white-space:nowrap}
@media(max-width:900px){.novelty-summary{grid-template-columns:repeat(2,1fr)}}@media(max-width:520px){.novelty-summary{grid-template-columns:1fr}}
.receipt-config-grid{display:grid;grid-template-columns:minmax(330px,.8fr) minmax(0,1.2fr);gap:16px}.current-logo{display:flex;align-items:center;gap:14px;padding:10px;background:#f3f7fa;border-radius:7px}.current-logo img{width:70px;height:70px;object-fit:contain;background:#fff;border:1px solid #d6e0e8;border-radius:7px}.receipt-options{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px 0}.receipt-options label{padding:9px;background:#f3f6f8;border-radius:5px}.receipt-options input{width:auto;min-height:0}.receipt-config-head{margin-bottom:12px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}.receipt-config-head h2,.receipt-config-head p{margin:0}.receipt-config-head p{flex:1}.receipt-mini-preview{--preview-primary:#0a5ea8;--preview-accent:#79ab5a;background:#fff;border:1px solid #cfdbe5;border-top:7px solid var(--preview-primary);border-radius:10px;box-shadow:0 8px 24px rgba(31,58,82,.14);overflow:hidden}.receipt-mini-preview header{display:flex;align-items:center;gap:10px;padding:18px}.receipt-mini-preview header img,.receipt-mini-preview header>span{width:48px;height:48px;object-fit:contain;border-radius:7px}.receipt-mini-preview header>span{display:grid;place-items:center;background:var(--preview-primary);color:#fff;font-weight:900;font-size:20px}.receipt-mini-preview header strong,.receipt-mini-preview header small{display:block}.receipt-mini-preview header aside{margin-left:auto;text-align:right}.receipt-mini-preview header aside b{display:block;color:var(--preview-primary);margin-top:4px}.receipt-mini-preview>section{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:12px 18px;background:#f2f6f9}.receipt-mini-preview>section small,.receipt-mini-preview>section strong{display:block}.receipt-mini-preview main{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;padding:18px}.receipt-mini-preview main div{padding:12px;border:1px solid #d8e2e9;border-radius:7px}.receipt-mini-preview main div:last-child{background:var(--preview-primary);color:#fff;border-color:var(--preview-primary)}.receipt-mini-preview main small,.receipt-mini-preview main b{display:block}.receipt-mini-preview main b{margin-top:4px}.receipt-mini-preview footer{padding:10px 18px;border-left:5px solid var(--preview-accent);background:#f4f7f2;color:#657b8c;font-size:9px}
@media(max-width:980px){.receipt-config-grid{grid-template-columns:1fr}}@media(max-width:600px){.receipt-options,.receipt-mini-preview main{grid-template-columns:1fr}.receipt-mini-preview header{align-items:flex-start}.receipt-mini-preview header aside{display:none}}
