:root{font-family:system-ui,"Segoe UI",Tahoma,sans-serif;color:#ecf2fb;background:#081426;font-size:16px}*{box-sizing:border-box}body{margin:0;min-height:100vh}header{display:flex;align-items:center;justify-content:space-between;padding:12px clamp(16px,4vw,60px);border-bottom:1px solid #40516b;background:#0d1b32}.brand{display:flex;gap:14px;align-items:center}.brand img{width:50px;height:50px;object-fit:contain;border-radius:12px}.brand strong{display:block;color:#e9bc61;font-size:1.3rem;letter-spacing:.12em}.brand small{color:#a9b9d2;letter-spacing:.12em}.notice{padding:12px 22px;background:#48361b;border-bottom:1px solid #b78d49;text-align:center;color:#ffe2a2}main{max-width:1280px;margin:auto;padding:24px clamp(14px,3vw,38px)}h1{font-size:clamp(1.4rem,3vw,2rem);margin:0 0 12px}h2{font-size:1.2rem;color:#f0c36a;margin:0 0 18px}h3{font-size:1rem;color:#e6b967}.muted{color:#a8bad4;line-height:1.7}.auth-grid,.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.card{border:1px solid #344766;border-radius:18px;background:#10213b;padding:22px;box-shadow:0 10px 30px #0003}.wide{grid-column:1/-1}.workspace-head,.actions{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.workspace-head{margin-bottom:18px}form{display:grid;gap:14px}label{display:grid;gap:6px;color:#d6e0ef}input,select,textarea{width:100%;background:#0a172b;border:1px solid #52617c;color:#f4f7fb;border-radius:10px;padding:11px 12px;font:inherit;min-height:46px}textarea{min-height:84px;resize:vertical}input:focus,select:focus,textarea:focus,button:focus-visible{outline:2px solid #efc573;outline-offset:2px}button{background:#1e3557;border:1px solid #60708e;color:#fff;padding:10px 17px;border-radius:10px;font:inherit;cursor:pointer;min-height:44px}button.gold{color:#172238;background:#eac16e;border-color:#eac16e;font-weight:700}button:hover{filter:brightness(1.1)}button:disabled{opacity:.5;cursor:not-allowed}.records{display:grid;gap:10px}.records.compact{margin-top:14px}.record{display:flex;justify-content:space-between;align-items:center;gap:12px;border:1px solid #344664;border-radius:12px;padding:12px;background:#0c1b31}.record span{line-height:1.6}.record small{display:block;color:#abc0d9}.record button{white-space:nowrap}#message{min-height:2em;margin:18px 0;color:#eec470}#message.error{color:#ff9c9c}footer{text-align:center;color:#8ba0bc;padding:24px;border-top:1px solid #293c59}@media(max-width:800px){.auth-grid,.grid{grid-template-columns:1fr}.wide{grid-column:auto}.record{align-items:flex-start;flex-direction:column}}
.record{flex-wrap:wrap}.record .inline-form{width:100%;border-top:1px solid #344664;padding-top:14px}.inline-form label:has(input[type=checkbox]){display:flex;align-items:center;gap:8px}.inline-form input[type=checkbox]{width:auto;min-height:auto}
#marketing-campaigns .record small{white-space:pre-line}
#marketing-campaign-form{grid-template-columns:repeat(3,minmax(0,1fr));align-items:end}#marketing-campaign-form button{align-self:end}@media(max-width:900px){#marketing-campaign-form{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){#marketing-campaign-form{grid-template-columns:1fr}}
.goal-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.goal-subsection{border-top:1px solid #dce3ed;padding-top:20px}.goal-subsection h4{margin:0;color:#1a2b49}.goal-expenses,.goal-products{display:grid;gap:12px;margin:12px 0}.goal-expense-row{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:12px;align-items:center;padding:10px 14px;border:1px solid #dce3ed;border-radius:12px;background:#f8fafc}.goal-expense-row .check{margin:0}.goal-product-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:16px;border:1px solid #dce3ed;border-radius:14px;background:#f8fafc}.goal-product-hint{grid-column:1/-1;line-height:1.6;color:#5e6e86}.goal-actions{display:flex;align-items:end;gap:8px;flex-wrap:wrap}.goal-actions button{flex:1 1 auto}.goal-detail{width:100%;border-top:1px solid #dce3ed;padding-top:10px}.goal-detail summary{cursor:pointer;font-weight:700}.goal-detail .record{margin-top:8px}.goal-progress{margin-top:16px;padding:16px;border:1px solid #dce3ed;border-radius:14px;background:#f8fafc}.goal-progress h4{margin:0 0 12px}.goal-progress .record{margin-top:8px}#sales-goals .record small{white-space:pre-line}@media(max-width:950px){.goal-form-grid,.goal-product-row{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.goal-form-grid,.goal-product-row,.goal-expense-row{grid-template-columns:1fr}}
[hidden]{display:none!important}.invite-code{margin:16px 0;padding:14px;border:1px solid #c49a50;border-radius:12px;background:#312b22;overflow-wrap:anywhere}.invite-code strong,.invite-code code{display:block}.invite-code code{margin-top:8px;direction:ltr;text-align:left;font-size:1rem;user-select:all}
.store-record{display:grid;gap:10px;align-items:start}.store-record strong,.store-record small{display:block}.store-webhook-line{display:flex;gap:8px;width:100%;min-width:0}.store-webhook-line input{flex:1;min-width:0;direction:ltr;text-align:left}.store-actions{display:flex;gap:12px;align-items:start;flex-wrap:wrap}.store-actions details{min-width:260px}.store-actions summary,.store-record summary{cursor:pointer;color:#8e682c;font-weight:700}.store-actions form{margin-top:8px}.store-import-form{width:100%;margin-top:12px;padding-top:14px;border-top:1px solid #dce3ed}.store-line-map{display:grid;grid-template-columns:minmax(0,1fr) minmax(160px,1fr) minmax(130px,.6fr);gap:10px;align-items:center}.store-line-map span{line-height:1.5}@media(max-width:750px){.store-webhook-line,.store-line-map{display:grid;grid-template-columns:1fr}.store-webhook-line input{width:100%}}
.task-page-hidden{display:none!important}.task-launcher{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:22px 0}.task-launcher-button{display:grid;grid-template-columns:1fr auto;gap:8px 16px;text-align:right;align-content:start;min-height:140px;padding:22px!important;border-radius:18px!important;box-shadow:0 8px 24px #182f5010}.task-launcher-button strong{font-size:1.06rem;color:#172e51}.task-launcher-button small{grid-column:1/-1;line-height:1.6;color:#718198;font-size:.82rem}.task-launcher-button span{grid-column:2;grid-row:1;color:#b98739;font-size:1.3rem}.hr-document-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.hr-document-grid input[type=file]{padding:9px}.hr-onboarding-documents{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.hr-onboarding-documents button{font-size:.8rem;min-height:36px;padding:6px 10px}@media(max-width:1050px){.task-launcher{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.task-launcher,.hr-document-grid{grid-template-columns:1fr}.task-launcher-button{min-height:118px}}
.hr-missing-documents{flex-basis:100%;margin:0;color:#9a5b22;font-weight:700;font-size:.85rem}.hr-doc-upload{flex-basis:100%;border-top:1px solid #e0e7ef;padding-top:10px}.hr-doc-upload summary{cursor:pointer;color:#9a6b2b;font-weight:700}.hr-doc-upload form{margin-top:12px;grid-template-columns:repeat(2,minmax(0,1fr)) auto;align-items:end}@media(max-width:700px){.hr-doc-upload form{grid-template-columns:1fr}}
body.app-active .app-view .card,body.app-active .record>span,.hr-doc-upload{min-width:0;overflow-wrap:anywhere}body.app-active .app-view{overflow-x:clip}
.module-section{margin-top:30px;padding-top:24px;border-top:1px solid #415675}.component-list{display:grid;gap:10px;margin:10px 0}.component-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(110px,150px) auto;gap:8px;align-items:center}.component-row button{padding-inline:12px}.delivery-line,.receipt-line{grid-template-columns:minmax(0,1fr) 140px}.delivery-line span,.receipt-line span{line-height:1.6}.delivery-line input,.receipt-line input{direction:ltr;text-align:center;min-width:0}@media(max-width:620px){.component-row{grid-template-columns:1fr 1fr}.component-row select{grid-column:1/-1}.delivery-line,.receipt-line{grid-template-columns:1fr}.delivery-line input,.receipt-line input{width:100%}}
.purchase-line{grid-template-columns:minmax(0,1fr) minmax(90px,120px) minmax(100px,140px) auto}@media(max-width:700px){.purchase-line{grid-template-columns:1fr 1fr}.purchase-line select{grid-column:1/-1}}
.check{display:flex;align-items:flex-start;gap:10px}.check input{width:auto;min-height:auto;margin-top:5px}
#run-form{grid-template-columns:repeat(2,minmax(0,1fr))}#run-form .actions,#run-form .production-materials-field,#run-form .production-variance-field{grid-column:1/-1}#run-form .actions{justify-content:flex-start}.production-material{display:grid;grid-template-columns:minmax(0,1fr) minmax(130px,180px);align-items:center;gap:12px;padding:10px 14px;border:1px solid #dce2ec;border-radius:12px;background:#f8fafc}.production-material small{display:block;color:#63718a}.production-material input{direction:ltr;text-align:center}@media(max-width:620px){#run-form{grid-template-columns:1fr}.production-material{grid-template-columns:1fr}}
.logo-form{margin-top:18px;padding-top:18px;border-top:1px solid #344766}.logo-form img{max-width:180px;max-height:100px;object-fit:contain;background:#fff;border-radius:8px;padding:6px}.invoice-preview{position:fixed;inset:0;z-index:100;overflow:auto;background:#061325f2;padding:20px}.preview-actions{max-width:850px;margin:0 auto 12px;display:flex;justify-content:flex-end;gap:12px}.preview-paper{position:relative;overflow:hidden;max-width:850px;min-height:900px;margin:auto;padding:48px;background:#fff;color:#14243d;box-shadow:0 24px 70px #0009}.preview-paper h1{color:#1c3154;text-align:center;margin:25px 0}.preview-brand{display:flex;align-items:center;gap:20px;border-bottom:3px solid #ba8a3a;padding-bottom:22px}.preview-brand img{width:120px;height:100px;object-fit:contain}.preview-brand h2{color:#183052;margin:0 0 8px}.preview-brand p{white-space:pre-line;margin:0;line-height:1.6}.preview-warning{position:relative;z-index:1;border:2px solid #bd423b;color:#8f2924;background:#fff1ef;padding:12px;text-align:center;font-weight:700;line-height:1.7}.preview-meta{display:grid;grid-template-columns:1fr 1fr;gap:0 16px;margin:20px 0}.preview-paper table{width:100%;border-collapse:collapse;margin:20px 0}.preview-paper th,.preview-paper td{border:1px solid #b9c2d0;padding:12px;text-align:right}.preview-paper th{background:#eaf0f8}.preview-totals{max-width:360px;margin-right:auto;padding:12px 18px;border:1px solid #b9c2d0;background:#f7f9fc}.preview-totals p{display:flex;justify-content:space-between;gap:14px}.preview-watermark{position:absolute;top:43%;right:8%;transform:rotate(-25deg);font-size:clamp(2rem,8vw,5rem);font-weight:900;color:#a63b3529;white-space:nowrap;pointer-events:none}@media(max-width:650px){.preview-paper{padding:20px}.preview-meta{grid-template-columns:1fr}.preview-brand img{width:80px}}
@media print{@page{size:A4;margin:12mm}body *{visibility:hidden!important}body.print-invoice #invoice-preview,body.print-invoice #invoice-preview *,body.print-hr #hr-print-preview,body.print-hr #hr-print-preview *{visibility:visible!important}body.print-invoice #invoice-preview,body.print-hr #hr-print-preview{display:block!important;position:absolute;inset:0;overflow:visible;background:#fff;padding:0}.preview-actions{display:none!important}.preview-paper{box-shadow:none;max-width:none;min-height:0;margin:0;padding:0;print-color-adjust:exact;-webkit-print-color-adjust:exact}.preview-watermark{color:#a63b3530!important}.preview-warning{break-inside:avoid}}
.card a,footer a{color:#f0c36a;text-underline-offset:3px}
footer p{margin:0 0 10px}footer nav{display:flex;justify-content:center;gap:14px 24px;flex-wrap:wrap;margin-bottom:12px}footer small{display:block;line-height:1.8;color:#8ba0bc}

/* Public account journey */
body:not(.app-active){background:#f5f7fa;color:#192a44}
body:not(.app-active)>.site-header{background:#fff;border-bottom:1px solid #e5e9ef;padding-block:13px}
.site-header .brand{text-decoration:none}
body:not(.app-active) .site-header .brand strong{color:#152a49}
body:not(.app-active) .site-header .brand small{color:#75869d}
.home-link{color:#294568;text-decoration:none;border:1px solid #d9e2ec;border-radius:999px;padding:10px 16px;font-weight:700;font-size:.85rem}
.home-link:hover{background:#f4f7fa;border-color:#aebed2}
body:not(.app-active)>.notice{display:none}
body:not(.app-active) main{max-width:1320px;padding:clamp(26px,4vw,52px) clamp(18px,4vw,52px) 30px}
.auth-shell{display:grid;grid-template-columns:minmax(0,1fr) minmax(390px,480px);align-items:start;gap:clamp(28px,6vw,90px)}
.auth-story{padding:clamp(14px,3vw,46px) 0 0;max-width:660px}
.auth-kicker{display:block;color:#af813e;font-size:.76rem;font-weight:800;letter-spacing:.13em;margin-bottom:18px}
.auth-story h1{color:#142a49;font-size:clamp(2.6rem,5vw,4.6rem);line-height:1.24;letter-spacing:-.04em;margin:0 0 20px}
.auth-story h1 em{color:#bd904b;font-style:normal}
.auth-story>p:not(.story-note){color:#5f718a;font-size:1.08rem;line-height:1.9;max-width:600px;margin:0 0 35px}
.auth-benefits{display:grid;gap:0;border-top:1px solid #e1e7ef;max-width:530px}
.auth-benefits>div{display:grid;grid-template-columns:45px 1fr;gap:3px 15px;padding:16px 0;border-bottom:1px solid #e1e7ef}
.auth-benefits span{grid-row:span 2;color:#b98845;font-size:.83rem;font-weight:800;padding-top:3px}
.auth-benefits strong{color:#1b3151;font-size:.95rem}.auth-benefits small{color:#75869b;font-size:.84rem}
.story-note{color:#a47736;font-size:.9rem;font-weight:700;line-height:1.8;margin:26px 0 0}
.auth-panel{background:#fff;border:1px solid #e3e8ef;border-radius:22px;padding:clamp(24px,3vw,36px);box-shadow:0 25px 70px #1b375014}
.auth-panel .auth-kicker{margin-bottom:10px}
.auth-panel h2{color:#172b48;font-size:1.75rem;margin:0 0 7px}
.auth-panel-top>p{margin:0 0 23px;color:#77879b;font-size:.9rem;line-height:1.7}
.auth-tabs{display:flex;gap:7px;overflow-x:auto;border-bottom:1px solid #e4e9f0;margin-bottom:24px;padding-bottom:8px}
.auth-tabs button{background:transparent;border:0;border-radius:9px;color:#687b94;padding:8px 10px;min-height:38px;white-space:nowrap;font-size:.84rem;font-weight:700}
.auth-tabs button.active{background:#f3eadb;color:#906526}
.auth-panel form{gap:16px}.auth-panel label{color:#2b3c56;font-size:.86rem;font-weight:700;gap:7px}
.auth-panel input{background:#fbfcfe;color:#192a44;border:1px solid #cdd7e4;border-radius:10px;padding:12px 14px;min-height:48px}
.auth-panel input::placeholder{color:#a5b2c1}.auth-panel input:focus{border-color:#b78740;outline:2px solid #e5c99b;outline-offset:1px}
.auth-panel button.gold{background:#d5a95e;border-color:#d5a95e;color:#132947;min-height:50px;margin-top:2px}
.auth-panel .check{display:flex;align-items:start;gap:9px;color:#596d86;font-size:.78rem;font-weight:500;line-height:1.7}
.auth-panel .check input{width:17px;height:17px;min-height:17px;flex:none;margin:3px 0 0}
.auth-legal,.auth-hint{color:#76879a;font-size:.78rem;line-height:1.75;margin:0}
.auth-legal a{color:#966928;text-underline-offset:3px}
.auth-hint{font-size:.88rem;margin-bottom:18px}
.auth-panel-foot{display:flex;align-items:start;gap:8px;color:#72859b;background:#f7f9fc;border-radius:10px;padding:11px 13px;margin-top:24px;font-size:.77rem;line-height:1.6}
.auth-panel-foot span{color:#b3884b}
body:not(.app-active) #message{color:#975e2d;text-align:center;min-height:0;margin:15px 0}
body:not(.app-active) #message.error{color:#b43838}
body:not(.app-active) footer{border-color:#e2e8ef;background:#f5f7fa;color:#7889a0;font-size:.82rem}
body:not(.app-active) footer a{color:#906629}
@media(max-width:900px){.auth-shell{grid-template-columns:1fr;gap:25px;max-width:650px;margin:auto}.auth-panel{order:-1}.auth-story{padding:0;max-width:none}.auth-story h1{font-size:clamp(2.2rem,6vw,3.4rem)}.auth-story>p:not(.story-note){margin-bottom:15px}.auth-benefits,.story-note{display:none}}
@media(max-width:520px){body:not(.app-active)>.site-header{padding:10px 16px}.site-header .brand img{width:40px;height:40px}.site-header .brand strong{font-size:1.02rem}.site-header .brand small{font-size:.67rem}.home-link{padding:8px 10px;font-size:.72rem}body:not(.app-active) main{padding:25px 14px}.auth-story h1{font-size:2.15rem}.auth-story>p:not(.story-note){font-size:.94rem}.auth-panel{padding:23px 18px}.auth-tabs button{font-size:.76rem;padding-inline:7px}}

/* Authenticated ERP workspace */
body.app-active{background:#f3f5f9;color:#1a2942}
body.app-active>header{display:none}
body.app-active>.notice{padding:8px 16px;font-size:.82rem;background:#fff5df;color:#785a23;border-color:#efdfbc}
body.app-active main{max-width:none;margin:0;padding:0}
.app-shell{display:grid;grid-template-columns:252px minmax(0,1fr);min-height:calc(100vh - 48px);direction:rtl}
.app-sidebar{position:sticky;top:0;align-self:start;min-height:100vh;padding:27px 16px 22px;background:linear-gradient(180deg,#111f39,#0b172b);color:#edf2fa;display:flex;flex-direction:column;gap:24px}
@media(min-width:761px){.app-sidebar{height:100vh;min-height:0;overflow-y:auto;overscroll-behavior:contain}}
.sidebar-brand{display:flex;align-items:center;gap:12px;padding:0 8px 16px;border-bottom:1px solid #ffffff24}
.sidebar-brand img{width:50px;height:50px;object-fit:contain;border-radius:12px}
.sidebar-brand strong{display:block;font-size:1.25rem;letter-spacing:.12em;color:#e7bc6b}
.sidebar-brand small{display:block;margin-top:3px;color:#a9b8d2;font-size:.72rem}
.sidebar-caption{padding:0 13px;color:#758ba9;font-size:.74rem;letter-spacing:.04em}
.app-nav{display:grid;gap:5px}
.app-nav button{width:100%;display:flex;align-items:center;gap:12px;text-align:right;background:transparent;border:1px solid transparent;color:#b9c8de;font-size:.91rem;font-weight:600;padding:12px 14px;border-radius:12px}
.app-nav button span{display:inline-grid;place-items:center;width:23px;font-size:1.1rem;color:#91a6c4}
.app-nav button:hover,.app-nav button.active{background:#203452;color:#fff;border-color:#ffffff16;filter:none}
.app-nav button.active{box-shadow:inset -3px 0 #ddb468}
.app-nav button.active span{color:#e9bd70}
.sidebar-foot{margin-top:auto;padding:18px 12px;border-top:1px solid #ffffff23;display:grid;gap:5px;color:#c8d3e3;font-size:.8rem}
.sidebar-foot strong{color:#e9bc6a}.sidebar-foot small{color:#8fa5c2}
.app-main{min-width:0;padding:32px clamp(20px,3vw,52px) 64px;max-width:1700px;width:100%;margin-inline:auto}
.workspace-head{padding-bottom:23px;border-bottom:1px solid #e3e7ee;margin-bottom:19px}
body.app-active .workspace-head h1{font-size:clamp(1.55rem,2.3vw,2.25rem);margin:4px 0 4px;color:#15243e}
body.app-active #view-title:focus{outline:none}
body.app-active .workspace-head .muted{margin:0;font-size:.88rem;color:#78859a}
.eyebrow{color:#a7782b;letter-spacing:.13em;font-size:.7rem;font-weight:800;margin:0}
.head-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.demo-badge{border:1px solid #e5c480;background:#fff4dc;color:#835d1f;border-radius:999px;padding:8px 13px;font-size:.82rem;font-weight:800}
.company-toolbar{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:24px}
.company-toolbar label{display:grid;gap:5px;min-width:240px;font-size:.78rem;font-weight:700;color:#63738b}
.company-toolbar select{min-width:240px}
body.app-active button{background:#fff;border:1px solid #d6dfea;color:#203454}
body.app-active .app-nav button{background:transparent;border-color:transparent;color:#b9c8de}
body.app-active .app-nav button:hover,body.app-active .app-nav button.active{background:#203452;border-color:#ffffff16;color:#fff}
body.app-active button.gold{background:#dcb269;color:#1b2b44;border-color:#dcb269}
body.app-active button:hover{filter:brightness(.96)}
body.app-active .card{background:#fff;border:1px solid #e0e6ee;box-shadow:0 8px 26px #182f5010;color:#253650;border-radius:17px}
body.app-active .card h2,body.app-active .card h3,body.app-active .section-intro h2{color:#1d3151}
body.app-active .muted{color:#738198}
body.app-active label{color:#344763}
body.app-active input,body.app-active select,body.app-active textarea{background:#fbfcfe;border:1px solid #cbd5e2;color:#1b2c48}
body.app-active .record{background:#f8fafd;border:1px solid #e2e8f0;color:#243752}
body.app-active .record small{color:#6f7f95}
.visit-location-details{flex-basis:100%;width:100%;padding:10px 14px;border:1px solid #d9e2ef;border-radius:10px;background:#f0f5fb;color:#243752;direction:rtl}.visit-location-details p{margin:4px 0;line-height:1.6}
body.app-active .module-section{margin:0;padding:0;border:0}
body.app-active .module-section>h2,body.app-active .module-section>p{display:none}
.app-view{min-width:0}
body.app-active [data-panel="overview"]{display:flex;flex-direction:column}
body.app-active [data-panel="overview"] #demo-guidance{order:0}
body.app-active [data-panel="overview"] .module-launcher-heading{order:1;margin-top:4px}
body.app-active [data-panel="overview"] .module-launcher{order:2}
body.app-active [data-panel="overview"] .welcome-panel{order:3;min-height:160px;padding:24px 30px}
body.app-active [data-panel="overview"] .metric-grid{order:4}
body.app-active [data-panel="overview"] .overview-status{order:5}
.section-intro{margin:4px 0 22px}.section-intro h2{font-size:1.32rem;margin:0 0 5px}.section-intro p{margin:0;color:#718098}
.welcome-panel{position:relative;overflow:hidden;display:flex;justify-content:space-between;min-height:230px;background:linear-gradient(108deg,#102440,#203a60);color:#fff;border-radius:22px;padding:32px 38px;margin-bottom:17px}
.welcome-panel:after{content:"";position:absolute;width:290px;height:290px;border:1px solid #ffffff16;border-radius:50%;left:11%;top:-75%}
.welcome-kicker{display:block;color:#e6c17c;font-size:.8rem;font-weight:800;letter-spacing:.05em;margin-bottom:12px}
.welcome-panel h2{font-size:clamp(1.5rem,2.4vw,2.1rem);color:#fff;margin:0 0 10px}.welcome-panel p{max-width:620px;color:#c7d4e7;line-height:1.8;margin:0 0 20px}
.welcome-mark{align-self:center;font-weight:900;font-family:Georgia,serif;font-size:9rem;line-height:1;color:#d9b46a;opacity:.72;padding-left:5vw}
.demo-guidance{border:1px solid #e8d5a9;background:#fff9ea;color:#715624;border-radius:12px;padding:11px 17px;margin:0 0 17px;font-size:.9rem}
.trial-guidance{display:flex;gap:12px;align-items:center;flex-wrap:wrap;border:1px solid #d9e3ef;background:#f7f9fc;color:#50627c;border-radius:12px;padding:11px 17px;margin:0 0 17px;font-size:.9rem}
.trial-guidance strong{color:#183150}
.module-launcher-heading{margin:26px 0 16px}.module-launcher-heading h2{color:#1d3151;font-size:1.5rem;margin:4px 0}.module-launcher-heading p:last-child{color:#718098;margin:0}
.module-launcher{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:28px}
body.app-active .module-launcher button{display:grid;grid-template-columns:48px minmax(0,1fr) 18px;grid-template-rows:auto auto;align-items:center;gap:3px 13px;min-height:122px;padding:19px;text-align:right;background:#fff;border:1px solid #dce4ef;border-radius:17px;box-shadow:0 7px 22px #182f500d;transition:transform .18s,border-color .18s,box-shadow .18s}
body.app-active .module-launcher button:hover{transform:translateY(-3px);border-color:#d5ae68;box-shadow:0 13px 28px #182f501a;filter:none}
.module-launcher-icon{grid-row:1/3;display:grid;place-items:center;width:48px;height:48px;background:#142b4c;color:#e8bd70;border-radius:13px;font-size:1.35rem}.module-launcher strong{grid-column:2;color:#172b48;font-size:.98rem}.module-launcher small{grid-column:2;color:#76859a;line-height:1.5;font-size:.78rem}.module-launcher-arrow{grid-column:3;grid-row:1/3;color:#b1864d;font-size:1.2rem}
.overview-status{margin-top:4px}.overview-status-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}.overview-status .muted{margin-bottom:0}
.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:18px}
.metric{display:grid;gap:5px;padding:21px;border:1px solid #e1e7ef;background:#fff;border-radius:16px;box-shadow:0 5px 20px #182f500c}
.metric span{color:#65758e;font-size:.88rem;font-weight:700}.metric strong{font-size:2rem;color:#1a2e4d;line-height:1.15}.metric small{color:#9aa7b8}
.overview-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr);gap:16px}
.quick-actions{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-top:18px}
body.app-active .quick-actions button{display:grid;grid-template-columns:32px 1fr;align-items:center;gap:2px 11px;text-align:right;padding:13px;background:#f8fafd;border-color:#e3e9f1}
.quick-actions button span{grid-row:span 2;color:#bf9251;font-size:.82rem;font-weight:800}.quick-actions button strong{font-size:.9rem}.quick-actions button small{font-size:.75rem;color:#8592a5}
.status-row{display:flex;justify-content:space-between;gap:12px;padding:13px 0;border-bottom:1px solid #edf0f5}.status-row strong{font-size:.82rem;color:#27805e}.status-row strong.status-pending{color:#9b6a28}
body.app-active #message:not(:empty){position:fixed;z-index:150;bottom:18px;left:22px;max-width:min(480px,calc(100vw - 40px));margin:0;padding:12px 18px;border-radius:12px;background:#142a48;color:#fff;box-shadow:0 18px 35px #142a4840}
body.app-active #message.error{background:#8d2f36}
body.app-active footer{background:#f3f5f9;color:#8190a4;border-color:#e0e5eb;font-size:.8rem}
body.app-active footer a{color:#9b743a}
@media(max-width:1100px){.app-shell{grid-template-columns:210px minmax(0,1fr)}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.overview-grid{grid-template-columns:1fr}.module-launcher{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.app-shell{display:block}.app-sidebar{position:static;min-height:0;gap:12px;padding:12px 14px}.sidebar-brand{padding-bottom:8px}.sidebar-brand img{width:38px;height:38px}.sidebar-brand strong{font-size:1rem}.sidebar-caption,.sidebar-foot{display:none}.app-nav{display:flex;overflow-x:auto;gap:6px;padding-bottom:3px;scrollbar-width:thin}.app-nav button{width:auto;flex:none;white-space:nowrap;padding:9px 11px;font-size:.8rem}.app-nav button span{width:auto}.app-main{padding:22px 14px 42px}.workspace-head{align-items:start}.company-toolbar{align-items:stretch}.welcome-panel{padding:23px;min-height:0}.welcome-mark{display:none}.quick-actions{grid-template-columns:1fr}}
@media(max-width:620px){.module-launcher{grid-template-columns:1fr}.overview-status-grid{grid-template-columns:1fr}body.app-active .module-launcher button{min-height:100px}}
@media(max-width:520px){.metric-grid{grid-template-columns:1fr 1fr;gap:9px}.metric{padding:15px}.metric strong{font-size:1.55rem}.company-toolbar{flex-direction:column}.company-toolbar label,.company-toolbar select,.company-toolbar button{width:100%;min-width:0}.head-actions{width:100%}}
.ledger-form{grid-template-columns:minmax(180px,2fr) repeat(2,minmax(145px,1fr)) auto;align-items:end}.ledger-form button{white-space:nowrap}.ledger-summary{margin:18px 0 10px;color:#405574;font-weight:700}.ledger-scroll{overflow-x:auto;border:1px solid #dce3ec;border-radius:12px}.ledger-table{width:100%;min-width:760px;border-collapse:collapse;text-align:right;font-variant-numeric:tabular-nums}.ledger-table th,.ledger-table td{padding:11px 12px;border-bottom:1px solid #e1e7ef;vertical-align:top}.ledger-table th{background:#eef3f9;color:#1d3151;white-space:nowrap}.ledger-table td:nth-child(4),.ledger-table td:nth-child(5),.ledger-table td:nth-child(6){white-space:nowrap;direction:ltr;text-align:right}.ledger-table tbody tr:last-child td{border-bottom:0}@media(max-width:900px){.ledger-form{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.ledger-form{grid-template-columns:1fr}}
.readiness-status{padding:13px 16px;border-radius:11px;background:#fff4df;border:1px solid #ecd6ac;color:#76531e;margin:18px 0 10px}.readiness-metrics{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.readiness-metrics span{border:1px solid #dce5ef;background:#f5f8fc;border-radius:999px;padding:6px 12px;color:#39516f;font-size:.82rem;font-weight:700}.readiness-record{align-items:flex-start;line-height:1.7}.readiness-record>span{flex:1 1 290px}.readiness-record label{flex:1 1 230px}.readiness-shortage{border-color:#efc1ad!important;background:#fff9f4!important}.readiness-warning{padding:12px 15px;border-right:3px solid #d99b3c;background:#fff7e8;border-radius:7px;color:#725323}
#procurement-section .grid{grid-auto-flow:row dense;align-items:start}
body.app-active #procurement-readiness{display:block;margin:0 0 18px}
#purchase-convert-card{grid-column:1/-1}
.convert-line{grid-template-columns:minmax(0,1fr) minmax(150px,210px)}
.requisition-detail{flex-basis:100%;width:100%;line-height:1.7}
@media(max-width:620px){.convert-line{grid-template-columns:1fr}}
#purchase-receipt-card{grid-column:1/-1}
.receipt-line{grid-template-columns:minmax(0,1fr) 140px minmax(180px,220px)}
@media(max-width:620px){.receipt-line{grid-template-columns:1fr}}
#purchase-receipt-form{grid-template-columns:repeat(2,minmax(0,1fr))}
#purchase-receipt-form>div,#purchase-receipt-form>label:first-child,#purchase-receipt-form>.check,#purchase-receipt-form>button{grid-column:1/-1}
#purchase-receipt-form>label{min-width:0}
@media(max-width:620px){#purchase-receipt-form{grid-template-columns:1fr}}

.reservation-line{grid-template-columns:minmax(0,1fr) 140px}.reservation-line span{line-height:1.6}.reservation-line input{direction:ltr;text-align:center;min-width:0}@media(max-width:620px){.reservation-line{grid-template-columns:1fr}.reservation-line input{width:100%}}
#bank-import-card code{overflow-wrap:anywhere;word-break:break-word;unicode-bidi:isolate;font-size:.88em}#bank-import-form .actions button{flex:1 1 170px}#bank-import-preview{max-height:360px;overflow:auto}#bank-import-preview .record{min-width:0}
.manual-journal-head{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.manual-journal-lines{display:grid;gap:10px;margin:10px 0}.manual-journal-line{display:grid;grid-template-columns:minmax(180px,2fr) minmax(110px,1fr) minmax(130px,1fr) auto;gap:10px;align-items:end;padding:12px;border:1px solid #dce3ec;border-radius:12px;background:#f8fafc}.manual-journal-line input{direction:ltr;text-align:right}.manual-journal-line button{white-space:nowrap}.journal-unbalanced{color:#a65326!important}@media(max-width:760px){.manual-journal-line{grid-template-columns:repeat(2,minmax(0,1fr))}.manual-journal-line label:first-child{grid-column:1/-1}}@media(max-width:520px){.manual-journal-head,.manual-journal-line{grid-template-columns:1fr}.manual-journal-line label:first-child{grid-column:auto}}
.sales-rep-form{grid-template-columns:minmax(240px,1fr) minmax(170px,220px) auto;align-items:end}.sales-rep-form button{white-space:nowrap}#sales-rep-list{margin-bottom:14px}#sales-rep-code button{margin-top:12px}@media(max-width:760px){.sales-rep-form{grid-template-columns:1fr}.sales-rep-form button{white-space:normal}}
.sales-visit-reassign-form{margin-top:16px;padding:18px;border:1px solid #d6e0eb;border-radius:14px;background:#f7faff}.sales-visit-reassign-form .actions{justify-content:flex-start}.sales-visit-reassign-form .actions button{min-width:110px}
.weekly-route-controls form{align-items:end;margin:16px 0}.weekly-route-document{margin-top:20px;padding:24px;border:1px solid #d9e2ed;border-radius:14px;background:#fff;color:#1b2e4b;direction:rtl}.weekly-route-heading{display:flex;align-items:center;gap:20px;border-bottom:3px solid #c69a4d;padding-bottom:14px}.weekly-route-heading img{width:90px;height:80px;object-fit:contain}.weekly-route-heading h2,.weekly-route-heading h3{margin:0 0 7px;color:#19365d!important}.weekly-route-heading p{margin:0}.weekly-route-scroll{overflow-x:auto}.weekly-route-table{width:100%;border-collapse:collapse;margin:18px 0;table-layout:fixed}.weekly-route-table th,.weekly-route-table td{border:1px solid #c6d1df;padding:10px;text-align:right;vertical-align:top;white-space:pre-line;overflow-wrap:anywhere}.weekly-route-table th{background:#eaf0f8;color:#19365d}.weekly-route-table tr{break-inside:avoid}.weekly-route-table td:nth-child(1){width:15%}.weekly-route-table td:nth-child(2){width:8%}.weekly-route-footnote{font-size:.85rem;color:#586b83}.weekly-route-print-actions{justify-content:flex-start}
.chat-unread:not([hidden]){display:inline-flex;align-items:center;justify-content:center;min-width:1.5em;padding:.1em .35em;border-radius:999px;background:#d9a94f;color:#101e34;font-size:.8em;font-weight:800;line-height:1.4}
.module-launcher button[data-open-view="chat"]{position:relative}
.ai-card{max-width:900px}.ai-heading{display:flex;align-items:center;gap:18px;margin-bottom:16px}.ai-heading h2{margin:0 0 4px}.ai-heading p{margin:0}.ai-mark{display:grid;place-items:center;flex:none;width:58px;height:58px;border-radius:16px;background:#142b4c;color:#e8bd70;font-size:2rem}.ai-card form{gap:18px}.ai-card textarea{min-height:130px}.ai-consent{border:1px solid #d9e3ef;border-radius:12px;padding:14px;background:#f7f9fc;line-height:1.7;color:#334b69}.ai-answer{margin-top:22px;padding:20px;border:1px solid #d8e3ee;border-radius:14px;background:#f8fafd}.ai-answer strong{color:#172e51}.ai-answer p{white-space:pre-wrap;line-height:1.9;color:#213956}.ai-answer small{color:#6c7d93}
#chat-launcher-unread:not([hidden]){position:absolute;inset-inline-start:12px;top:12px}
@page sales-route{size:A4 landscape;margin:12mm}
@media print{body.print-route *{visibility:hidden!important}body.print-route #sales-weekly-route-card,body.print-route #sales-weekly-route-card *{visibility:visible!important}body.print-route #sales-weekly-route-card{page:sales-route;display:block!important;position:absolute;inset:0;width:100%!important;max-width:none!important;margin:0;padding:0;border:0;border-radius:0;box-shadow:none;background:#fff;color:#17263d;overflow:visible}body.print-route .weekly-route-controls,body.print-route .weekly-route-print-actions{display:none!important}body.print-route .weekly-route-document{display:block!important;margin:0;padding:0;border:0;border-radius:0}body.print-route .weekly-route-scroll{overflow:visible}body.print-route .weekly-route-table{font-size:9pt}body.print-route .weekly-route-table th,body.print-route .weekly-route-table td{padding:6px}body.print-route .weekly-route-footnote{font-size:8pt}}
.review-details{width:100%;display:grid;grid-template-columns:minmax(120px,180px) minmax(0,1fr);gap:8px 16px;margin:8px 0 0;padding:16px;border:1px solid #dbe3ed;border-radius:12px;background:#f7f9fc;overflow-wrap:anywhere}.review-details dt{font-weight:700;color:#344763}.review-details dd{margin:0;color:#172c4b}@media(max-width:550px){.review-details{grid-template-columns:1fr}.review-details dt:not(:first-child){margin-top:8px}}
.recipe-component-row{grid-template-columns:minmax(120px,.9fr) minmax(180px,1.5fr) minmax(120px,.9fr);gap:12px;padding:15px;border:1px solid #dce3ed;border-radius:13px;background:#f8fafc;align-items:end}.recipe-component-row label{min-width:0}.recipe-component-row .component-remove{justify-self:start}.product-card-result{display:grid;gap:18px;margin-top:22px}.product-card-heading{padding:18px 22px;border-radius:14px;background:#172b4a;color:#fff}.product-card-heading h4{margin:0 0 8px;color:#f1c371;font-size:1.3rem}.product-card-heading p{margin:0}.product-card-section{display:grid;gap:10px;padding:18px;border:1px solid #dce3ed;border-radius:14px;background:#f8fafc}.product-card-section h4{margin:0;color:#1e3355}.product-card-section .record{background:#fff}.product-cost-total{margin:10px 0 0;padding:14px;border-radius:10px;background:#f8edcf;color:#4b3512;font-weight:700}.product-cost-summary .record{justify-content:space-between}@media(max-width:760px){.recipe-component-row{grid-template-columns:repeat(2,minmax(0,1fr))}.recipe-component-row select{grid-column:auto}}@media(max-width:520px){.recipe-component-row{grid-template-columns:1fr}.recipe-component-row select{grid-column:auto}}
.chat-layout{display:grid;grid-template-columns:minmax(220px,280px) minmax(0,1fr);min-height:580px;border:1px solid #dce4ef;border-radius:16px;overflow:hidden;background:#fff}.chat-contacts{padding:18px;border-left:1px solid #dce4ef;background:#f7f9fc}.chat-contacts label{font-weight:700;font-size:.86rem}.chat-people{display:grid;align-content:start;gap:7px;margin-top:16px;max-height:535px;overflow-y:auto}.chat-person{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;padding:12px;border:1px solid transparent;border-radius:12px;background:#fff;color:#243b5a;text-align:right;overflow-wrap:anywhere}.chat-person.active{border-color:#d7aa62;background:#fff7e7}.chat-person small{display:block;color:#71849c;font-size:.75rem}.chat-person b{display:grid;place-items:center;min-width:24px;height:24px;border-radius:50%;background:#d7a754;color:#132947;font-size:.76rem}.chat-conversation{display:flex;flex-direction:column;min-width:0}.chat-heading{display:grid;gap:4px;padding:17px 22px;border-bottom:1px solid #dce4ef}.chat-heading strong{color:#162b4a}.chat-heading small{color:#71849c}.chat-messages{display:flex;flex-direction:column;gap:12px;flex:1;min-height:350px;max-height:470px;overflow-y:auto;padding:20px;background:#fbfcfe}.chat-message{align-self:flex-end;max-width:min(78%,600px);padding:11px 15px;border:1px solid #e1e7f0;border-radius:15px;background:#eef2f7;color:#1c304f}.chat-message.own{align-self:flex-start;border-color:#1b3456;background:#1b3456;color:#fff}.chat-message p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}.chat-message small{display:block;margin-top:5px;font-size:.72rem;opacity:.76}.chat-compose{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px;padding:15px 20px;border-top:1px solid #dce4ef}.chat-compose label{min-width:0}.chat-compose textarea{min-height:72px;resize:vertical}.chat-compose button{min-width:95px}.chat-compose button:disabled{opacity:.55}#chat-load-older{align-self:center;margin:10px 0 0}@media(max-width:720px){.chat-layout{grid-template-columns:1fr}.chat-contacts{border-left:0;border-bottom:1px solid #dce4ef}.chat-people{display:flex;max-height:130px;overflow-x:auto;overflow-y:auto}.chat-person{min-width:170px}.chat-messages{min-height:300px}.chat-compose{grid-template-columns:1fr}.chat-compose button{width:100%}}
.hr-date-field{margin:0;padding:0;border:0;min-width:0}.hr-date-field legend{padding:0 0 6px;color:#344763}.hr-date-parts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.hr-date-parts label{min-width:0;font-size:.88rem}.hr-date-parts input,.hr-date-parts select{text-align:center;min-width:0}
.hr-expiry-dates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}.hr-expiry-dates small{grid-column:1/-1;color:#62758f}.hr-expiry-edit{flex-basis:100%;width:100%;display:flex;gap:10px;align-items:end;margin-top:10px}.hr-expiry-edit label{flex:1}.hr-expiry-expired{border-inline-start:4px solid #b34343}.hr-expiry-soon{border-inline-start:4px solid #cf9e45}#overview-hr-expiry{border:1px solid #e5ba6a;background:#fff8e8}#overview-hr-expiry p{color:#69471b}@media(max-width:620px){.hr-expiry-dates{grid-template-columns:1fr}.hr-expiry-edit{flex-direction:column;align-items:stretch}}
.audit-tools{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:18px 0}.audit-tools label{min-width:min(100%,280px);display:grid;gap:6px}.audit-events{display:grid;gap:10px}.audit-event{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 18px;padding:16px;border:1px solid #dce4ef;border-radius:12px;background:#f8fafc;overflow-wrap:anywhere}.audit-event strong{color:#1a3151}.audit-event span{color:#5e718d;font-size:.87rem}.audit-event small{grid-column:1/-1;color:#8897aa;direction:ltr;text-align:right}#audit-more{margin-top:16px}@media(max-width:650px){.audit-event{grid-template-columns:1fr}}
.goal-approval-form{display:grid;gap:12px;margin:14px 0}.goal-approval-form label:has(input[type=checkbox]){display:flex;align-items:center;gap:10px}.goal-approval-form input[type=checkbox]{width:auto;min-width:18px}

/* Printed HR forms use the same company branding as the invoice preview. */
.hr-custody-action{width:100%;border-top:1px solid #dce2ec;padding-top:8px}.hr-custody-action summary{cursor:pointer;color:#9b6b1d;font-weight:700}.hr-custody-action .inline-form{margin-top:12px}.hr-custody-confirm{display:flex;gap:10px;align-items:flex-start}.hr-custody-confirm input{width:auto;min-height:auto;margin-top:6px}
.hr-print-paper{font-size:17px;line-height:1.8;direction:rtl}.hr-print-paper h1{margin:30px 0 10px}.hr-print-subtitle{text-align:center;color:#56657b;border-bottom:1px solid #cbd5e1;padding-bottom:20px}.hr-print-field{display:flex;gap:18px;padding:8px 4px;border-bottom:1px solid #e1e7ef;break-inside:avoid}.hr-print-field strong{width:220px;flex-shrink:0;color:#183052}.hr-print-photo{display:block;width:115px;height:145px;object-fit:cover;border:1px solid #cbd5e1;border-radius:6px;margin:18px auto}.hr-print-notice{background:#f5f7fa;border-right:4px solid #ba8a3a;padding:16px;margin:28px 0}.hr-print-signatures{display:grid;grid-template-columns:1fr 1fr;gap:30px;margin-top:55px;break-inside:avoid}.hr-print-signatures>div{border-top:2px solid #ba8a3a;padding-top:14px}.hr-print-signatures p{margin:8px 0}@media(max-width:650px){.hr-print-field{display:block}.hr-print-field strong{display:block;width:auto}.hr-print-signatures{grid-template-columns:1fr}}@media print{.hr-print-paper{font-size:12pt}.hr-print-signatures{margin-top:35px}.hr-print-photo{width:85px;height:110px}}
.merch-photo-gallery{flex-basis:100%;width:100%;display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-top:12px}.merch-photo-gallery figure{margin:0;padding:10px;border:1px solid #dce4ef;border-radius:12px;background:#f8fafc}.merch-photo-gallery img{display:block;width:100%;height:200px;object-fit:contain;border-radius:7px;background:#fff}.merch-photo-gallery figcaption{padding-top:8px;color:#5b6d85;font-size:.82rem;overflow-wrap:anywhere}
.merch-followups{flex-basis:100%;width:100%;padding:14px;border:1px solid #dce4ef;border-radius:12px;background:#f8fafc}.merch-followups>.record{margin-top:10px;background:#fff}.merch-followups form{margin-top:12px}.merch-followups textarea{width:100%;min-height:90px}
