/* v0.8.56 — Gulfline visual workspace. Print/document templates stay independent. */
:root{--navy:#082448;--blue:#087cff;--blue2:#005bd9;--pale:#f0f7ff;--line:#dce7f3;--ink:#142f50;--muted:#627d9c;--bg:#f4f8fd;--good:#127958;--bad:#ba2539;--warn:#925706;--shadow:0 5px 22px #173a6310}
body{font-family:"Segoe UI",Arial,sans-serif;font-size:14px;line-height:1.5;color:var(--ink);background:var(--bg)}
[hidden]{display:none!important}button,input,select,textarea{font-family:inherit}button{border-radius:8px;min-height:38px;padding:8px 13px;font-size:13px;transition:background-color .15s,border-color .15s,box-shadow .15s}button:hover{background:#eff6ff;border-color:#94bdf8}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #5eaeff;outline-offset:3px}button.primary{background:linear-gradient(110deg,#0a83ff,#0863df);border-color:#0876f7;box-shadow:0 3px 9px #087cff20}button.primary:hover{background:linear-gradient(110deg,#0874ed,#064fc0)}button.danger{background:#fff2f4;border-color:#f0c2ca;color:#a61f33}button:disabled{opacity:.55;transform:none;box-shadow:none;cursor:not-allowed}input,select,textarea{border:1px solid #cbdced;border-radius:8px;padding:10px 12px;font-size:13px;color:#153455;background:#fff}input:not([type=checkbox]):not([type=radio]),select{min-height:41px}input[type=checkbox],input[type=radio]{accent-color:#087cff;min-height:initial;width:auto}input:focus,select:focus,textarea:focus{outline:3px solid #087cff1e;border-color:#479aff}input:disabled,select:disabled,textarea:disabled{background:#f3f6fa;color:#66809a}label{font-size:12px;color:#456586;font-weight:600}.ui-icon{display:inline-block;flex:0 0 auto;width:21px;height:21px;vertical-align:middle}.skip-link{position:fixed;left:15px;top:-100px;z-index:20000;background:#fff;padding:12px;border:2px solid #087cff}.skip-link:focus{top:12px}
/* Layout, fixed rail and compact top bar */
.modern-app{--rail:240px;display:grid;grid-template-columns:var(--rail) minmax(0,1fr);min-height:100dvh;transition:grid-template-columns .15s}.modern-app>.side{position:sticky;top:0;height:100dvh;overflow:auto;background:linear-gradient(155deg,#0b294d 0%,#082039 88%);padding:22px 12px 15px;scrollbar-width:thin;scrollbar-color:#45617d transparent;box-shadow:3px 0 15px #0c284712;z-index:60}.side .brand{flex-direction:column;align-items:flex-start;gap:2px;padding:0 12px 18px;margin-bottom:14px;border-bottom:1px solid #b6d5f522;flex-wrap:nowrap}.side .brand-mark,.side .brand-mark:has(.sidebar-company-logo){display:flex;width:100%;min-width:0;height:56px;padding:0;background:transparent!important;border-radius:0}.brand-wordmark{font-family:"Segoe UI",Arial,sans-serif;font-weight:800;font-size:39px;letter-spacing:-1.3px;color:#168aff;line-height:1.12;background:linear-gradient(180deg,#2098ff,#0070ef);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.sidebar-company-logo{width:100%;max-height:57px;object-fit:contain;object-position:left center;display:block}.side .brand-sub{font-size:9px;letter-spacing:2.4px;color:#9fbddf;padding-top:4px}.nav{display:flex;flex-direction:column;gap:5px}.nav button{display:flex;align-items:center;gap:11px;min-height:42px;border-radius:8px;padding:10px 11px;color:#dfefff;font-size:12.5px;line-height:1.25;border:0}.nav button>.ui-icon:first-child{width:20px;height:20px;color:#c2d9f3}.nav button>span{flex:1}.nav button>.ui-icon:last-child{width:12px;height:12px;opacity:.7}.nav button.active,.nav button.active:hover{background:linear-gradient(100deg,#0a85ff,#0759c8);color:#fff;box-shadow:0 4px 13px #0003}.nav button.active>.ui-icon{color:white}.nav button:hover{background:#123b60}.side-foot{padding:22px 13px 0;font-size:10px;color:#8eaccb}.side-version{display:block;color:#bed7ef;font-weight:600}.side-role{display:block;margin-top:4px}.sidebar-copyright{font-size:9px;line-height:1.7;border-top:1px solid #b6d5f522;padding-top:13px;margin-top:15px;color:#92afca}.top{position:sticky;top:0;z-index:25;min-height:72px;background:#ffffffee;backdrop-filter:blur(12px);padding:12px 24px;border-bottom:1px solid #dce7f3;gap:17px;display:flex}.top-heading{min-width:115px;max-width:310px}.top-heading h1{font-size:17px;font-weight:700;line-height:1.25;letter-spacing:-.3px}.top-heading>span{display:block;font-size:10px;color:#6b86a5;margin-top:3px}.top-icon{display:inline-flex;align-items:center;justify-content:center;background:transparent;border:0;min-height:36px;width:36px;padding:7px;color:#087cff;position:relative}.top-icon[data-action=back-page] .ui-icon{transform:rotate(180deg)}.home-top-search{display:flex;align-items:center;gap:10px;flex:1;max-width:510px;min-width:80px;padding:9px 12px;border:1px solid #e0ebf7;border-radius:9px;background:#eff5fc;font-size:12px;color:#5a7699;height:38px}.home-top-search .ui-icon{width:18px;height:18px;color:#0d3671}.home-top-search span{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.home-top-search kbd{font:10px inherit;border:1px solid #ccdced;background:#ffffffa8;padding:1px 5px;border-radius:4px;color:#8aa0b8}.top-right{margin-left:auto;min-width:0;gap:10px;display:flex}.top-notification i{position:absolute;right:0;top:0;min-width:16px;height:16px;border-radius:9px;background:#d82942;color:#fff;font:10px/16px Arial,sans-serif;text-align:center;font-style:normal;padding:0 3px}.profile-menu{position:relative;margin:0}.profile-menu>summary{list-style:none;display:flex;align-items:center;gap:10px;cursor:pointer;padding:0;color:#102d55}.profile-menu>summary::-webkit-details-marker{display:none}.profile-menu>summary>.ui-icon{width:13px;height:13px;transform:rotate(90deg);margin-left:8px}.user-avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#092a51;color:#fff;font-size:13px;font-weight:600}.user-identity{display:grid;line-height:1.25;max-width:185px}.user-identity strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-identity small{font-size:10px;color:#7285a1;margin-top:3px}.profile-popover{position:absolute;right:0;top:48px;width:250px;background:#fff;border:1px solid #d4e3f4;border-radius:12px;box-shadow:0 15px 35px #07244922;padding:16px;z-index:70;display:grid;gap:9px}.profile-popover small{font-size:11px;overflow-wrap:anywhere;color:#6884a2}.profile-popover button{display:flex;align-items:center;gap:10px;text-align:left}.sidebar-scrim{display:none}.side-collapsed{--rail:76px}.side-collapsed .side{padding-left:10px;padding-right:10px}.side-collapsed .side .brand{padding:0 0 17px;overflow:hidden}.side-collapsed .side .brand-mark{height:40px}.side-collapsed .side .brand-wordmark{font-size:18px;letter-spacing:-.7px}.side-collapsed .side .brand-sub,.side-collapsed .side-foot,.side-collapsed .nav button>span,.side-collapsed .nav button>.ui-icon:last-child{display:none}.side-collapsed .nav button{justify-content:center;padding:13px 10px}.side-collapsed .sidebar-company-logo{width:54px;object-position:center}.page{padding:24px;max-width:1900px;margin:0 auto;width:100%;min-width:0}.panel{border:1px solid #dfe9f4;border-radius:13px;padding:21px;margin-bottom:20px;background:#fff;box-shadow:0 3px 18px #1c416105}.panel h2{font-size:18px;font-weight:700;letter-spacing:-.3px;margin-bottom:15px}.panel h3{font-size:14px}.badge{border-radius:6px;font-size:10.5px;padding:4px 8px}.notice{background:#f0f7ff;border-left:3px solid #0a83ff;border-radius:8px;padding:14px 16px;font-size:13px;color:#345578}.error{font-size:12px;color:#bb2337;line-height:1.6}.cards .card{border-radius:12px;border-color:#deebf5}.cards .card .n{color:#087cff}
/* Module navigation becomes compact expandable groups instead of a wall of buttons. */
.hr-menu{padding:16px 20px}.hr-menu-title{display:flex;justify-content:space-between;align-items:center;padding-bottom:13px;margin-bottom:4px;border-bottom:1px solid #e5edf5}.hr-menu-title>span{font-weight:700;color:#12345a;display:flex;align-items:center;gap:9px}.hr-menu-title small{font-size:10.5px;color:#7a90a9}.hr-menu .hr-menu-group{margin:0;border-bottom:1px solid #edf2f7}.hr-menu .hr-menu-group:last-child{border:0}.hr-menu-group>summary{font-size:12px;padding:11px 0;color:#537297;list-style-position:inside}.hr-menu-group>summary>span{font-size:10px;color:#8399af;background:#f0f5fb;padding:1px 7px;border-radius:8px;margin-left:8px}.hr-menu-group[open]>summary{color:#086cde;font-weight:700}.hr-menu .actions{gap:7px;padding:0 0 11px;margin:0}.hr-menu .actions button{display:inline-flex;align-items:center;gap:7px;font-size:11.5px;padding:7px 10px;min-height:34px;border-color:#dce7f3}.hr-menu .actions button .ui-icon{width:16px;height:16px}.hr-menu .actions .primary{border-color:#087cff}.admin-grid{gap:14px}.admin-card{border-radius:12px;padding:20px;min-height:115px;background:linear-gradient(140deg,#fff,#f5f9ff);border-color:#dce7f5}.admin-card:hover{box-shadow:0 7px 18px #155f9420}
/* Forms, data tables and dialogs, including HR and purchasing. */
.table-wrap,.tablewrap{overflow:auto;border:1px solid #e1eaf3;border-radius:10px;scrollbar-width:thin}.hr-embedded .tablewrap{border:1px solid #e1eaf3}.table-wrap table,.tablewrap table{margin:0;min-width:740px}.tablewrap td,.table-wrap td,.hr-embedded td{font-size:12px;line-height:1.6;padding:14px 11px;border-color:#e4edf6}.tablewrap th,.table-wrap th,.hr-embedded th{font-size:10.5px;padding:12px 11px;letter-spacing:.15px;background:#edf5ff;color:#375778;border-bottom:1px solid #d7e5f2}.tablewrap tr:hover td,.table-wrap tr:hover td{background:#f7faff}.tablewrap tr.att-excess td{background:#fff1df}.tablewrap td:last-child{white-space:nowrap}.tablewrap td button,.table-wrap td button{min-height:33px;padding:7px 10px;font-size:11px;margin:2px 2px 2px 0}.hr-embedded input,.hr-embedded select{border-color:#ccdced;border-radius:8px}.hr-embedded .actions{gap:9px}.hr-embedded>.actions:first-child{justify-content:flex-end;margin:0 0 12px}.hr-embedded>.actions:first-child button{min-height:30px;padding:4px 10px;color:#7188a1;border-color:transparent;font-size:11px}.form-section{border-radius:12px;background:#f7faff;padding:22px}.modal-back{background:#071d3899;backdrop-filter:blur(3px);z-index:100}.modal{border:1px solid #d3e2f3;box-shadow:0 25px 80px #05244544;max-height:92dvh;border-radius:17px}.modal h2{font-size:21px}#hrDialog{width:min(1040px,94vw);max-height:91dvh;border-color:#cfdff0;box-shadow:0 24px 85px #06223a44;border-radius:16px;padding:24px}#hrDialog::backdrop{background:#08224091;backdrop-filter:blur(3px)}#hrDialog .modalhead{position:sticky;top:-24px;background:#fff;z-index:2;margin:-24px -24px 20px;padding:20px 24px 16px;border-bottom:1px solid #e4edf6}#hrDialog .modalhead h2{font-size:21px;margin:0;letter-spacing:-.3px}#hrDialog .formgrid{gap:18px 20px}#hrDialog input,#hrDialog select,#hrDialog textarea{border-color:#c6d8ec;border-radius:8px;font-size:13px}#hrDialog #hrForm>.actions{position:sticky;bottom:-24px;margin:20px -24px -24px;padding:15px 24px;background:#fff;border-top:1px solid #e4edf6;z-index:2}#hrDialog #hrForm>.actions button{min-width:100px}#hrDialog .check{align-items:center}.form-actions{z-index:4}.toast,#hrToast{border-radius:10px!important;box-shadow:0 8px 24px #0623442b!important}#adminIssuePanel,#submissionIssuePanel{border-radius:14px!important;border-color:#cfdeee!important;box-shadow:0 12px 42px #04204222!important}#adminIssueBadge{border-radius:10px!important;font-size:11px!important}#chatToggle{background:linear-gradient(135deg,#168dff,#0865df);color:white;border:0;border-radius:50%;box-shadow:0 5px 22px #0866d845}#chatPanel{border-color:#c8ddf1;border-radius:17px;box-shadow:0 15px 60px #06234430}#chatSend{background:#087cff}.chatMine{background:#e0eeff}
/* Approval progress: state and user's own action are deliberately distinct. */
.workflow-banner{border:1px solid #d3e4f7;background:linear-gradient(120deg,#f5f9ff,#ffffff);border-radius:13px;margin:8px 0 22px;padding:20px}.workflow-heading{display:flex;justify-content:space-between;gap:15px;align-items:center}.ui-eyebrow{font-size:10px;letter-spacing:1.6px;font-weight:700;color:#6886a8}.workflow-heading h3{font-size:18px!important;color:#123761;margin:5px 0 0!important}.workflow-chip{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;border-radius:20px;padding:6px 10px;font-size:10px;background:#e6effc;color:#31629e}.workflow-chip .ui-icon{width:16px;height:16px}.workflow-chip.requires-action{background:#e1f3eb;color:#147a56}.workflow-track{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));list-style:none;margin:22px 0;padding:0;gap:14px}.workflow-track>li{display:flex;align-items:center;gap:9px;position:relative;min-width:0}.workflow-step-icon{width:30px;height:30px;min-width:30px;border:1px solid #d2deed;border-radius:50%;background:#f5f8fc;display:flex;align-items:center;justify-content:center;color:#8da0b8;font-size:11px}.workflow-step-icon .ui-icon{width:17px;height:17px}.workflow-track strong{font-size:11px;display:block;color:#7088a3}.workflow-track small{font-size:10px;display:block;color:#8b9db3;overflow-wrap:anywhere}.workflow-track .complete .workflow-step-icon{background:#e1f5ed;border-color:#9bd8bf;color:#12845a}.workflow-track .complete strong{color:#287953}.workflow-track .current .workflow-step-icon{color:white;background:#087cff;border-color:#087cff;box-shadow:0 0 0 4px #087cff15}.workflow-track .current strong{color:#0874eb}.workflow-track .current small{color:#45678c}.workflow-personal{border-top:1px solid #dde9f5;padding-top:12px;display:flex;gap:8px 20px;flex-wrap:wrap;font-size:11px;color:#385b81}.workflow-personal small{font-size:10px;color:#7791ad}.workflow-readonly{color:#758ba2;margin-left:auto}.pay-rebuild-warning{background:#fff9ec;border:1px solid #f1d69d;border-radius:10px;padding:10px 15px;margin-bottom:17px}.pay-rebuild-warning summary{color:#91690e}#payApprove{padding:10px 18px;min-width:160px}#payReturn{color:#876016;border-color:#e8d4a8;background:#fffaf0}#payReject{color:#a82538;border-color:#eec3cc;background:#fff3f5}#payDetail>.panel>.actions{padding:14px;background:#f6faff;border:1px solid #e3edf7;border-radius:11px;margin:18px 0}
/* Login matching the supplied split-panel industrial-blue design. */
.login-modern{min-height:100dvh;background:radial-gradient(ellipse at 65% 5%,#fff 5%,#e8f1fb 55%,#c3d4e8 100%);padding:30px;display:grid;place-items:center}.login-stage{width:min(1450px,100%);min-height:660px;display:grid;grid-template-columns:1fr 1fr;background:#f8fbff;box-shadow:0 24px 65px #113d6d25;border:1px solid #bfd0e4;border-radius:20px;overflow:hidden;position:relative}.login-art{position:relative;overflow:hidden;min-height:660px;padding:44px 46px 140px;background:radial-gradient(ellipse at 80% 35%,#235680,#062748 70%);color:#fff}.login-brand{position:relative;z-index:3;max-width:360px;min-height:62px;display:flex;align-items:center}.login-brand .brand-wordmark{font-size:59px;letter-spacing:-2px}.login-brand img{display:block;width:auto;max-width:100%;height:auto;max-height:93px;object-fit:contain;object-position:left}.login-motto{position:relative;z-index:3;font-size:11px;letter-spacing:4px;line-height:1.8;font-weight:400;color:#d3e5f5;margin:19px 0}.login-motto:before{content:"";display:block;width:206px;border-top:1px solid #198cff;margin-bottom:17px}.login-photo{position:absolute;left:0;right:0;top:215px;bottom:99px;background:linear-gradient(0deg,#062541ee,transparent 46%,#08284955),url('/static/theme_assets/steel-workshop.jpg') center center/cover no-repeat;filter:saturate(.75);opacity:.98}.login-photo:before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#163d6055,transparent 25%,#08274133)}.login-art-edge{position:absolute;right:-68px;top:-55px;width:210px;height:850px;transform:rotate(-24deg);background:linear-gradient(90deg,#0b70d440,#599ddc66,#eef6fc77);clip-path:polygon(26% 0,100% 0,70% 100%,0 100%);pointer-events:none}.login-values{position:absolute;bottom:35px;left:40px;right:48px;display:grid;grid-template-columns:repeat(4,1fr);gap:10px;z-index:3}.login-values>div{display:flex;flex-direction:column;align-items:center;text-align:center;gap:5px}.login-values .ui-icon{width:28px;height:28px;margin-bottom:3px;color:#e7f1fb}.login-values b{font-size:10px;letter-spacing:.15px}.login-values span{font-size:10px;color:#c3d6e9}.login-form-panel{position:relative;display:flex;align-items:center;justify-content:center;padding:68px 35px 78px;background:linear-gradient(130deg,#fff,#f8fbff 56%,#e8f1fa);isolation:isolate}.login-card{border:0;background:transparent;box-shadow:none;padding:0;width:min(355px,100%);position:relative;z-index:3}.login-card h1{font-size:45px;font-weight:800;letter-spacing:-1.8px;line-height:1.12;margin:4px 0 4px;color:#082648}.login-card h1 em{font-style:normal;color:#087cff}.login-welcome{font-size:18px;font-weight:600;color:#547092}.login-subtitle{font-size:13px;color:#28476c;margin:9px 0 24px}.login-version{position:absolute;right:30px;top:22px;color:#087cff;font-size:11px}.login-card .field{margin:15px 0}.login-card .field>label{font-size:10px;letter-spacing:.3px;margin-bottom:5px;font-weight:600;color:#5a7393}.login-input{position:relative;display:flex;align-items:center;border:1px solid #d5e3f3;border-radius:9px;background:#ffffffcf;padding:0 13px;gap:10px;height:47px}.login-input:focus-within{border-color:#3d98fb;box-shadow:0 0 0 3px #087cff16}.login-input>.ui-icon{width:18px;height:18px;color:#087cff}.login-input input{border:0!important;box-shadow:none!important;outline:0!important;background:transparent;padding:10px 0;height:45px;min-width:0;color:#1c416b;font-size:12px}.login-input input::placeholder{color:#8b9fb9}.login-input button{padding:4px;min-height:28px;border:0;background:transparent;color:#087cff}.login-input button .ui-icon{width:18px;height:18px}.login-options{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0 0}.login-options label{display:flex;align-items:center;gap:6px;font-size:10.5px;font-weight:400;color:#3c5c80}.login-options input{margin:0}.login-options button{border:0;background:transparent;color:#087cff;padding:0;font-size:11px;min-height:26px}.login-help{font-size:11px;line-height:1.5;padding:10px;background:#ecf5ff;border-radius:8px;color:#4b6b8e}.login-card .error{margin:4px 0;min-height:17px;font-size:11px}.login-submit{width:100%;position:relative;margin-top:5px;height:49px;border-radius:24px;padding:10px 17px;color:#fff;display:flex;align-items:center;justify-content:center;font-size:17px;font-weight:700;background:linear-gradient(110deg,#128bff,#0068eb,#064cae)!important;box-shadow:0 5px 12px #0475ef24!important}.login-arrow{background:#fff;color:#0a77ed;border-radius:50%;width:27px;height:27px;display:flex;align-items:center;justify-content:center;position:absolute;right:18px}.login-arrow .ui-icon{width:17px;height:17px}.login-secure{display:flex;align-items:center;justify-content:center;gap:6px;font-size:10px;color:#7d91ab;margin-top:18px}.login-secure .ui-icon{width:13px;height:13px}.login-refinery{position:absolute;right:0;bottom:0;width:55%;height:175px;background:url('/static/theme_assets/refinery.jpg') right bottom/contain no-repeat;opacity:.35;mix-blend-mode:multiply;z-index:0}.login-signature{position:absolute;right:30px;top:195px;color:#0f3966;font:italic 23px/1.15 "Segoe Print","Comic Sans MS",cursive;transform:rotate(-13deg);z-index:0}.login-signature>span{margin-left:22px}.login-signature:after{content:"";display:block;height:2px;width:93px;background:linear-gradient(90deg,#0b7ee9,transparent);margin-top:8px}.login-copyright{position:absolute;bottom:25px;left:30px;right:30px;font-size:10px;text-align:center;color:#4b6684;z-index:2}
/* Dashboard: dense but readable live cards, workflow chart, activity, shortcuts. */
.home-dashboard{color:#183655}.home-welcome{margin:0 0 20px;gap:20px;align-items:center}.home-welcome h2{font-size:26px;letter-spacing:-.7px;font-weight:700;line-height:1.25;margin:2px 0 6px}.home-welcome p{font-size:12px;margin:4px 0}.home-eyebrow{font-size:9px!important;letter-spacing:2px;margin-bottom:5px!important}.home-date{font-size:11px;color:#50739c;display:flex;align-items:center;gap:10px;text-align:right}.home-date>span{display:block}.home-date small{font-size:9px;margin-top:3px;color:#8599b1}.home-date button{margin:0;padding:8px;min-width:35px;color:#087cff;border-color:#dbe8f7;background:#eaf4ff;min-height:35px}.home-date button .ui-icon{width:18px;height:18px}.home-dashboard .home-search{padding:12px 15px!important;margin-bottom:16px;background:#ffffffb0}.home-search label{font-size:10px}.home-search-fields{grid-template-columns:minmax(170px,1fr) 200px auto;gap:9px;margin-top:5px}.home-search-fields input,.home-search-fields select,.home-search-fields button{min-height:35px;font-size:11px;padding:7px 10px}.home-metrics{gap:12px;margin-bottom:17px;grid-template-columns:repeat(6,minmax(0,1fr))}.home-metric{display:grid;grid-template-columns:38px minmax(0,1fr);grid-template-rows:auto auto auto;gap:1px 10px;min-height:110px;padding:16px 13px;border-radius:11px;border:1px solid #d9eafa;background:linear-gradient(130deg,#e9f5ff,#dcf0ff);align-content:center;box-shadow:none}.home-metric>.home-symbol{grid-column:1;grid-row:1/4;width:38px;min-width:38px;height:43px;align-self:start;border-radius:8px;color:#087cff;background:#087cff12}.home-symbol .ui-icon{width:26px;height:26px}.home-metric strong{font-size:25px;line-height:1.18;grid-column:2}.home-metric>.metric-label{font-size:10px;font-weight:500;color:#284365;grid-column:2;margin-top:5px;line-height:1.3}.home-metric small{font-size:9px;color:#1677d5;grid-column:2;display:flex;align-items:center;justify-content:flex-start;gap:8px;margin-top:8px}.home-metric small .ui-icon{width:12px;height:12px}.home-metric.green{background:linear-gradient(130deg,#e2f9f0,#daf5ed);border-color:#daf0e7}.home-metric.green .home-symbol{color:#00aa7c;background:#00b88c14}.home-metric.amber{background:linear-gradient(130deg,#fff7e6,#fff0d5);border-color:#f4e9d3}.home-metric.amber .home-symbol{color:#e89400;background:#f4a51614}.home-metric.pink{background:linear-gradient(130deg,#fff0f4,#ffe3eb);border-color:#f2dfe6}.home-metric.pink .home-symbol{color:#e73e77;background:#e83e7712}.home-metric.purple{background:linear-gradient(130deg,#f3ecff,#eadefc);border-color:#e9def8}.home-metric.purple .home-symbol{color:#8947da;background:#8947da12}.home-main-grid{display:grid;grid-template-columns:1.18fr 1fr 1fr;gap:15px;margin-bottom:17px}.home-dashboard .panel{padding:18px;border-radius:11px;box-shadow:none}.home-panel-title{margin-bottom:14px;align-items:center;gap:8px}.home-panel-title h3,.home-shortcuts h3{font-size:12px;font-weight:700;color:#142f55;margin:0}.home-panel-title>span,.home-panel-title small{font-size:9px;color:#8295ab}.home-panel-title button{border:0;background:transparent;padding:2px;min-height:20px;font-size:9px;color:#087cff}.home-vertical-chart{display:flex;align-items:flex-end;justify-content:space-around;height:183px;padding-top:12px;gap:11px;border-bottom:1px solid #dfe9f5;background:repeating-linear-gradient(to top,transparent 0,transparent 39px,#edf3fa 40px,#edf3fa 41px);margin:6px 0 30px}.home-vertical-chart>div{flex:1;display:flex;position:relative;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;min-width:0}.home-vertical-chart i{display:block;width:100%;max-width:31px;min-height:3px;background:linear-gradient(180deg,#1388ff,#0869ec);border-radius:4px 4px 0 0;box-shadow:2px 0 6px #087aff18}.home-vertical-chart>div:nth-child(3n+2) i{background:linear-gradient(180deg,#6ebfff,#4698de)}.home-vertical-chart>div:nth-child(3n) i{background:linear-gradient(180deg,#38cba5,#13a781)}.home-vertical-chart b{font-size:10px;color:#507295;font-weight:600;margin-bottom:4px}.home-vertical-chart small{position:absolute;top:calc(100% + 8px);font-size:8px;text-align:center;line-height:1.25;color:#7089a9;width:calc(100% + 7px)}.chart-legend{font-size:9px;color:#7991ac;margin-top:12px;line-height:1.5}.home-activity-list .home-list-row{min-height:45px;padding:8px 0;gap:8px}.home-row-icon{display:flex;align-items:center;justify-content:center;width:29px;height:29px;min-width:29px;background:#eaf4ff;border-radius:6px;color:#087cff}.home-row-icon .ui-icon{width:17px;height:17px}.home-activity-list .home-list-row:nth-child(3n+2) .home-row-icon{background:#e1f8ef;color:#00a576}.home-activity-list .home-list-row:nth-child(3n) .home-row-icon{background:#f0e8ff;color:#9862db}.home-activity-text{flex:1;min-width:0}.home-list-row b{font-size:10px;line-height:1.35;font-weight:600;display:block}.home-list-row small{font-size:9px;line-height:1.35;margin-top:3px;color:#7c93ae}.home-activity-list time{font-size:8px;color:#8398b1;text-align:right;min-width:40px}.home-activity-list .home-list-row .badge{font-size:8px;padding:3px 5px;border-radius:4px;max-width:105px;white-space:normal}.home-bottom-grid{display:grid;grid-template-columns:2fr 1fr;gap:15px;margin-bottom:18px}.home-shortcuts{margin:0}.home-shortcuts>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:8px;margin-top:16px}.home-shortcuts button{border:0;flex-direction:column;gap:8px;padding:4px 7px 8px;font-size:9px;text-align:center;background:transparent;min-height:84px;justify-content:flex-start}.home-shortcuts .home-symbol{height:39px;min-width:37px;color:#087cff;background:#e5f3ff;border-radius:8px}.home-shortcuts button:nth-child(3n+2) .home-symbol{color:#01a176;background:#e1f8ef}.home-shortcuts button:nth-child(3n) .home-symbol{color:#8b51d4;background:#f1eaff}.commitment-icons{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:22px}.commitment-icons>div{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px}.commitment-icons .ui-icon{width:29px;height:29px;color:#087cff}.commitment-icons>div:last-child .ui-icon{color:#07ad85}.commitment-icons b{font-size:10px;color:#2e4c72}.commitment-icons small{font-size:9px;color:#7b91ad}.home-lower{gap:15px}.home-lower .home-list-row{min-height:42px}.home-empty{font-size:11px;line-height:1.7;color:#8a9bb0;padding:20px 0}.home-count-badge{background:#d62b46!important;color:white!important;border-radius:50%;padding:3px 5px!important;font-size:9px!important}.home-results>button{font-size:12px}.home-footer-note{margin:20px 0 0;font-size:10px;color:#8497ae;text-align:center}
@media(min-width:1800px){.modern-app{--rail:254px}.home-metric{min-height:120px}.page{padding:28px 32px}.home-list-row b{font-size:12px}.home-list-row small{font-size:10px}.home-main-grid{gap:20px}.home-vertical-chart{height:216px}}
@media(max-width:1350px){.top-heading{max-width:230px}.home-top-search{max-width:330px}.login-signature{right:15px;top:125px;font-size:20px}.login-art{padding:37px 33px 135px}.login-values{left:24px;right:35px}.login-brand .brand-wordmark{font-size:51px}.home-main-grid{grid-template-columns:1.1fr 1fr}.home-main-grid>section:last-child{grid-column:1/-1}.home-main-grid>section:last-child .home-activity-list{display:grid;grid-template-columns:1fr 1fr;gap:0 25px}.home-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.home-metric{min-height:104px}.home-bottom-grid{grid-template-columns:1.5fr 1fr}}
@media(max-width:1050px){.modern-app{--rail:208px}.page{padding:18px}.side .brand-wordmark{font-size:34px}.top{padding:12px 17px;gap:10px}.top-heading{max-width:180px}.top h1{font-size:15px}.top .home-top-search{max-width:180px}.home-top-search kbd{display:none}.user-identity{display:none}.login-modern{padding:20px}.login-stage{min-height:620px}.login-art{min-height:620px;padding:36px 25px 135px}.login-brand .brand-wordmark{font-size:46px}.login-values b{font-size:8px}.login-values span{font-size:8px}.login-motto{letter-spacing:2.5px;font-size:10px}.login-signature{display:none}.login-form-panel{padding:62px 27px 74px}.login-card h1{font-size:39px}.hr-menu-title small{display:none}.workflow-track{gap:8px}.workflow-track strong{font-size:10px}.workflow-personal{font-size:10px}.side-collapsed{--rail:76px}}
@media(max-width:800px){.modern-app{display:block;--rail:240px}.modern-app>.side{position:fixed;left:0;top:0;width:240px;height:100dvh;transform:translateX(-100%);transition:transform .15s;z-index:100}.modern-app.mobile-nav-open>.side{transform:translateX(0)}.modern-app.mobile-nav-open>.sidebar-scrim{display:block;position:fixed;inset:0;z-index:90;background:#041e4580;border:0;border-radius:0;width:100%;height:100%}.top{min-height:64px;position:sticky;display:flex;gap:8px;padding:10px 13px}.top-right{margin-top:0;gap:3px}.top-heading{flex:1;max-width:none;min-width:80px}.top .home-top-search{flex:0 0 33px;width:33px;min-width:33px;border:0;padding:7px;background:transparent}.home-top-search span,.home-top-search kbd{display:none}.top .home-top-search .ui-icon{width:20px;height:20px}.profile-menu summary{gap:0}.profile-menu summary>.ui-icon{display:none}.side-collapsed .side .brand-sub,.side-collapsed .side-foot,.side-collapsed .nav button>span,.side-collapsed .nav button>.ui-icon:last-child{display:initial}.side-collapsed .side .brand-wordmark{font-size:39px;letter-spacing:-1.3px}.side-collapsed .side .brand-mark{height:56px}.side-collapsed .nav button{justify-content:initial}.side-collapsed .side .brand{padding:0 12px 18px}.home-welcome{display:flex}.home-welcome h2{font-size:23px}.home-date{min-width:0;font-size:10px}.home-search-fields{grid-template-columns:1fr auto}.home-search-fields select{grid-column:1/-1;grid-row:2}.home-main-grid,.home-bottom-grid,.home-lower{grid-template-columns:1fr}.home-main-grid>section:last-child .home-activity-list{display:block}.home-main-grid>section:last-child{grid-column:auto}.home-shortcuts>div{grid-template-columns:repeat(4,1fr)}.login-stage{grid-template-columns:1fr;max-width:560px;min-height:0}.login-art{min-height:220px;padding:26px 30px 40px}.login-brand .brand-wordmark{font-size:45px}.login-motto{font-size:8px;margin-top:10px}.login-motto:before{margin-bottom:9px;width:150px}.login-values{display:none}.login-photo{top:0;bottom:0;left:180px;opacity:.48}.login-art-edge{height:400px;top:-100px;right:-40px}.login-form-panel{padding:51px 35px 80px;min-height:490px}.login-card{width:100%;max-width:355px}.login-card h1{font-size:41px}.login-version{top:17px;font-size:10px}.login-copyright{bottom:20px}.login-refinery{height:100px}.workflow-heading{align-items:flex-start}.workflow-heading h3{font-size:16px!important}.workflow-track{grid-template-columns:1fr 1fr;row-gap:17px}.workflow-readonly{margin-left:0}.ui-eyebrow{font-size:8px}.workflow-chip{font-size:9px}}
@media(max-width:480px){.page{padding:14px 10px}.top .top-icon[data-action=back-page]{display:none}.top-heading h1{font-size:13px}.top-heading>span{font-size:9px}.top-icon{width:30px;min-height:32px}.user-avatar{width:31px;height:31px;font-size:11px}.profile-popover{width:220px}.home-welcome{display:block;margin-bottom:14px}.home-date{justify-content:flex-start;margin-top:12px;text-align:left}.home-date small{display:block;margin:0}.home-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.home-metric{padding:13px 10px;grid-template-columns:32px 1fr;gap:1px 7px}.home-metric>.home-symbol{min-width:32px;width:32px;height:36px}.home-symbol .ui-icon{width:23px;height:23px}.home-metric strong{font-size:22px}.home-shortcuts>div{grid-template-columns:repeat(3,1fr)}.hr-menu{padding:12px 14px}.hr-menu .actions button{flex:1 1 120px;font-size:10.5px;justify-content:flex-start}.hr-menu-title>span{font-size:12px}.login-modern{padding:12px}.login-stage{border-radius:14px}.login-art{min-height:185px;padding:24px}.login-brand .brand-wordmark{font-size:42px}.login-form-panel{padding:44px 24px 70px;min-height:470px}.login-card h1{font-size:36px}.login-welcome{font-size:16px}.login-options label,.login-options button{font-size:10px}.login-values{display:none}#hrDialog{padding:19px;width:96vw}#hrDialog .modalhead{top:-19px;margin:-19px -19px 17px;padding:18px 19px}#hrDialog .modalhead h2{font-size:17px}#hrDialog #hrForm>.actions{margin:18px -19px -19px;padding:13px 19px;bottom:-19px}.workflow-banner{padding:15px}.workflow-chip{display:none}.workflow-personal{display:grid}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
@media print{.side,.top,.sidebar-scrim,.skip-link,#chatToggle,#adminIssueBadge{display:none!important}.modern-app{display:block}.page{padding:0;max-width:none}.panel{box-shadow:none}.workflow-banner{break-inside:avoid}}
/* Photographic art blends into the branded panels without a rectangular seam. */
@media(min-width:801px){.login-photo{top:140px;bottom:42px;mask-image:linear-gradient(180deg,transparent 0,#000 24%,#000 76%,transparent 100%);background-position:center center}.login-refinery{mask-image:linear-gradient(180deg,transparent,#000 45%)}.login-brand,.login-motto{position:relative;z-index:2}}

.home-activity-text small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.side .brand-wordmark{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.login-card h1{overflow-wrap:anywhere}.login-brand .brand-wordmark{overflow-wrap:anywhere;line-height:1.1}

/* v0.8.60: server-calculated estimate split; readable without cramped totals. */
.gc-negotiation-split{display:grid!important;grid-template-columns:minmax(180px,0.8fr) minmax(0,2fr);gap:24px;align-items:start}
.gc-final-price{min-width:0;border:1px solid #c9dcf2;border-radius:12px;background:#fff;padding:18px}
.gc-price-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}.gc-price-head h3{margin:0}
.gc-price-state{font-size:.85em;border-radius:6px;background:#eff5ff;padding:5px 8px;color:#355777}
.gc-price-table td{vertical-align:top;padding:10px 8px}.gc-price-table small{display:block;color:#526b83;margin-top:3px}
.gc-price-amount{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.gc-price-subtotal{background:#f4f7fb}.gc-price-final{background:#e4f1ff;font-size:1.13em;font-weight:800}
@media(max-width:1000px){.gc-negotiation-split{grid-template-columns:minmax(0,1fr)}}

.uom-input{min-width:90px;max-width:100%;font-weight:600}.uom-add{margin-top:5px;font-size:.86em}
.uom-overlay{position:fixed;inset:0;z-index:6000;background:#10284377;display:flex;align-items:center;justify-content:center;padding:20px}
.uom-dialog{background:white;border-radius:16px;padding:24px;width:min(820px,100%);max-height:90vh;overflow:auto;box-shadow:0 12px 50px #15345844}
.uom-dialog form{display:grid;gap:16px}.uom-dialog label{display:grid;gap:6px}.uom-dialog input[type=checkbox]{width:auto}

/* Final price stays prominent while detailed bases scroll in constrained screens. */
.gc-price-grand-total{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#eaf4ff;border:1px solid #b6d6ff;border-radius:10px;padding:12px 14px;margin:8px 0 12px;font-weight:750;color:#0b3873}
.gc-price-grand-total small{display:block;font-size:.78em;font-weight:400;margin-top:3px}
.gc-price-grand-total strong{font-size:1.45em;text-align:right}
.gc-price-scroll{max-height:490px;overflow:auto}.gc-price-table td,.gc-price-table th{padding:9px 11px}
.gc-price-table thead th{position:sticky;top:0;background:#edf5ff;z-index:1}
@media(max-width:600px){.gc-price-grand-total{flex-wrap:wrap}.gc-price-grand-total strong{font-size:1.25em}}

/* v019: the mobile backdrop stays below the drawer, with a keyboard escape. */
.modern-app{isolation:isolate}.modern-app>.sidebar-scrim{backdrop-filter:none;touch-action:manipulation}.modern-app>.side{pointer-events:auto}
@media(max-width:800px){.modern-app.mobile-nav-open>.side{z-index:102;max-height:100dvh;transform:translateX(0);visibility:visible}.modern-app.mobile-nav-open>.sidebar-scrim{z-index:101}.modern-app>.side .nav{display:flex;flex-direction:column}.modern-app>.side{max-height:100dvh}}
@media(min-width:801px){.modern-app>.sidebar-scrim{display:none!important}}
.stock-workspace .stock-main-actions button{min-height:44px}.stock-workspace .stock-manage{margin:10px 0 18px}.stock-receive-row{border:1px solid #d7e5f0;border-radius:10px;padding:16px;margin:14px 0}.stock-receive-row legend{font-weight:700;padding:0 6px;color:#153d65}.stock-receive-row [hidden],#stockRequest label[hidden]{display:none!important}.stock-receive-row [data-new-item]{margin-top:12px;background:#f4f8fc;padding:12px;border-radius:8px}.stock-workspace .section-head{flex-wrap:wrap}

/* Optional stock item details, v020. */
.item-details-editor {margin:12px 0;padding:12px;border:1px solid #d8e4ef;border-radius:8px;grid-column:1/-1;}
.item-details-editor>summary {cursor:pointer;font-weight:600;}
.item-details-editor>.grid {margin-top:12px;}
.item-extra-row {display:grid;grid-template-columns:1fr 1.5fr auto;gap:10px;align-items:end;margin:10px 0;}
.item-specification {display:block;color:#52677c;margin-top:4px;}
.item-extra-view {font-size:12px;max-width:360px;overflow-wrap:anywhere;margin-top:4px;}
.item-extra-view summary {cursor:pointer;}
@media(max-width:600px){.item-extra-row{grid-template-columns:1fr;}.item-extra-row button{justify-self:start;}}
