:root{--navy:#073763;--navy2:#0e5799;--sidebar:#2d2a66;--orange:#ff650f;--orange-dark:#e55708;--green:#168a36;--red:#e51f2f;--bg:#eef4fa;--line:#cad7e5;--field:#f6fbff;--text:#09223e}
*{box-sizing:border-box}
.hidden{display:none!important}
body{margin:0;background:var(--bg);font-family:"Segoe UI",Arial,sans-serif;font-size:12px;color:var(--text)}
.topbar{position:fixed;top:0;left:0;right:0;height:54px;background:#fff;border-bottom:1px solid #d5dfeb;display:flex;align-items:center;gap:16px;padding:6px 16px;z-index:20}
.logo{width:110px;display:flex;align-items:center}.logo img{height:40px;max-width:96px;object-fit:contain}.logo-fallback{font-size:18px;font-weight:900;color:#0c477a;line-height:1}.logo-fallback small{display:block;font-size:8px;color:#e02323}
.top-search{width:300px;margin:0 auto;position:relative}.top-search input{width:100%;height:31px;border:1px solid #bbcadb;background:#f8fbff;padding:0 10px;font-weight:700;color:#6b7b8d}
.history-search{width:280px;height:36px;border:1px solid #d0dbe8;background:#fff;padding:0 12px;font-weight:800;color:#48556a}
.profile{display:flex;align-items:center;gap:10px;border:1px solid #d8e2ee;background:#f4f8fc;border-radius:8px;padding:4px 8px;color:#003a70;font-weight:900}.profile small{display:block;font-size:10px}.avatar{width:34px;height:34px;border-radius:50%;background:#073763;color:#fff;display:flex;align-items:center;justify-content:center;font-size:18px}
.sidebar{position:fixed;top:54px;bottom:0;left:0;width:64px;background:var(--sidebar);z-index:15;box-shadow:3px 0 12px rgba(0,0,0,.16);display:flex;flex-direction:column}.side-icon{height:52px;border-bottom:1px solid rgba(255,255,255,.08);display:flex;align-items:center;justify-content:center;color:#fff;font-size:0;font-weight:900}.side-icon:before{content:"";display:block;width:18px;height:14px;border:2px solid #fff;border-radius:3px}.side-icon:nth-child(1):before{height:18px;border-radius:50%/28%;box-shadow:inset 0 -5px 0 rgba(255,255,255,.14),inset 0 5px 0 rgba(255,255,255,.08)}.side-icon:nth-child(2):before{width:19px;height:15px;border-radius:2px;transform:rotate(0deg);box-shadow:inset 0 5px 0 rgba(255,255,255,.18)}.side-icon:nth-child(3):before{height:12px;border-radius:2px;box-shadow:inset 0 -4px 0 rgba(255,255,255,.18)}.side-icon:nth-child(4):before{width:20px;height:18px;border:0;border-radius:0;background:linear-gradient(to top,#fff 0 78%,transparent 78%) 2px 8px/3px 10px no-repeat,linear-gradient(to top,#fff 0 58%,transparent 58%) 8px 4px/3px 14px no-repeat,linear-gradient(to top,#fff 0 88%,transparent 88%) 14px 1px/3px 17px no-repeat}.side-icon.active{background:#173f79;border-left:4px solid var(--orange)}
.workarea{margin-left:64px;padding:102px 12px 24px}
.screen-frame{background:#fff;border:1px solid #d5dfeb;box-shadow:0 3px 12px rgba(28,54,84,.1);min-height:428px}
.screen-ribbon{height:43px;background:var(--navy);display:flex;align-items:center;justify-content:space-between;padding:0 10px}.screen-title{font-size:15px;font-weight:900;text-transform:uppercase;color:#fff}.screen-ribbon .screen-title{color:#fff;text-shadow:none}.action-buttons{display:flex;gap:8px}.screen-btn{height:30px;border:0;border-radius:3px;color:#fff;padding:0 13px;font-weight:900;font-size:11px;cursor:pointer}.screen-btn.orange{background:var(--orange)}.screen-btn.orange:hover{background:var(--orange-dark)}.screen-btn.green{background:var(--green)}.screen-btn.red{background:var(--red)}.screen-btn.gray{background:#64748b}.screen-btn.hidden{display:none}
.bill-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:14px;padding:10px}.bill-form-card,.saved-card{border:1px solid var(--line);background:#fff}.bill-form-card{padding:12px}.saved-card{align-self:start;border-radius:6px;overflow:hidden}.saved-head{height:36px;background:#1359a6;color:#fff;display:flex;align-items:center;padding:0 12px;font-weight:900}.saved-body{padding:10px}.saved-body input{height:35px;width:100%;border:1px solid #c8d5e3;border-radius:4px;padding:0 9px}.saved-list{margin-top:12px;max-height:260px;overflow:auto;color:#5f7187}.saved-item{border:1px solid #d8e2ed;border-radius:4px;padding:7px 8px;margin-bottom:6px;cursor:pointer;background:#fff}.saved-item:hover,.saved-item.active{border-color:#1359a6;background:#eef6ff}.saved-item b{display:block;color:#0b3965}
.bill-stack{display:flex;flex-direction:column;gap:10px}.bill-row-top{display:grid;grid-template-columns:minmax(420px,1.05fr) minmax(390px,1fr) minmax(260px,.72fr);gap:12px}.bill-row-two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.bill-row-detail{display:grid;grid-template-columns:1fr 720px;gap:12px;align-items:start}.field{min-width:0}.field label{display:block;font-size:11px;font-weight:900;margin-bottom:7px}.field.required label::after{content:" *";color:red}.field input,.field select,.field textarea{width:100%;height:30px;border:1px solid #c5d3e2;background:var(--field);padding:4px 9px;color:#1c334d}.field textarea{height:56px;resize:none}.field input:disabled,.field select:disabled,.field textarea:disabled,.combo-disabled{background:#eef3f8;color:#718195}.small-row{display:grid;grid-template-columns:repeat(3,1fr);gap:12px 12px}.active-row{width:354px}
.vertical-combo{min-height:42px;border:1px solid #c5d3e2;background:#fff;position:relative;display:flex;align-items:center;padding:5px 34px 5px 10px;cursor:pointer;border-radius:6px}.vertical-combo:after{content:"v";position:absolute;right:10px;color:#687a8f}.vertical-combo>span{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0}.vertical-chip{display:inline-flex;align-items:center;gap:5px;min-height:25px;padding:3px 8px;border:1px solid #cbd8e6;border-radius:5px;background:#eaf2ff;color:#0b335f;font-style:normal;font-weight:700}.vertical-chip i{color:#94a3b8;font-style:normal;font-weight:700}.vertical-placeholder{font-style:normal;color:#64748b}.vertical-menu{display:none;position:absolute;left:0;right:0;top:calc(100% + 4px);border:1px solid #b6c7da;background:#fff;z-index:80;box-shadow:0 12px 24px rgba(15,35,70,.16);max-height:280px;overflow:auto}.vertical-combo.open .vertical-menu{display:block}.vertical-menu label{display:flex;gap:8px;padding:7px 9px;margin:0;font-weight:700}.vertical-menu label:hover{background:#edf6ff}.vertical-menu button{display:block;width:100%;min-height:36px;border:0;border-bottom:1px solid #edf2f7;background:#fff;color:#073763;text-align:left;padding:8px 10px;font-weight:700}.vertical-menu button:hover,.vertical-menu button.selected{background:#ff650f;color:#fff}.msg{position:fixed;right:18px;bottom:18px;background:#0b2743;color:#fff;border-top:3px solid var(--orange);padding:10px 14px;font-weight:900;display:none;z-index:60}
.search-modal{position:fixed;inset:0;background:rgba(10,26,44,.45);display:none;align-items:center;justify-content:center;z-index:50}.search-box{width:min(950px,94vw);max-height:78vh;background:#fff;border:1px solid #aebed0;display:flex;flex-direction:column}.search-head{height:38px;background:var(--navy);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 10px;font-weight:900}.search-body{padding:10px;overflow:auto}.search-row{display:grid;grid-template-columns:repeat(4,minmax(170px,1fr));gap:8px;min-width:760px}.results{margin-top:10px;max-height:360px;overflow:auto}.results table{width:100%;border-collapse:collapse;min-width:850px}.results th{background:var(--navy);color:#fff;text-align:left;padding:6px;border:1px solid #0a3155}.results td{border:1px solid #d5e1ee;padding:6px}.results tr{cursor:pointer}
.tariff-body{padding:10px}.tariff-card{border:1px solid var(--line);background:#fff;border-radius:4px;padding:18px 20px;margin-bottom:10px}.tariff-header-grid{display:grid;grid-template-columns:140px minmax(360px,1fr) 170px 140px minmax(360px,1fr);gap:9px 10px;align-items:center}.tariff-header-grid label{text-align:right;font-weight:800}.tariff-header-grid input,.tariff-header-grid select{height:31px;border:1px solid #c5d3e2;background:var(--field);padding:4px 8px}.date-pair{display:grid;grid-template-columns:1fr 28px 1fr;gap:6px;align-items:center}.tariff-heads{border:1px solid #cbd8e6;background:#fff}.tariff-heads-title{height:52px;background:#184d7e;color:#fff;border-bottom:4px solid var(--orange);display:flex;align-items:center;justify-content:space-between;padding:0 15px;font-size:14px;font-weight:900}.tariff-head-card{border:1px solid #d6e0eb;margin:0 0 12px;background:#fff}.tariff-head-top{height:55px;display:flex;align-items:center;gap:12px;padding:0 16px;border-bottom:1px solid #dfe8f1}.collapse-mark{font-size:22px;color:#754de8;font-weight:900}.tariff-head-name{width:400px;height:34px;border:1px solid #c5d3e2;border-radius:4px;padding:0 10px;font-weight:800}.remove-group{margin-left:auto;height:26px;background:#fff;border:1px solid #ff6b7b;color:#e21d35;border-radius:4px;padding:0 10px}.tariff-meta{margin:16px;border:1px dashed #cbd8e6;border-radius:5px;background:#f8fbff;padding:16px;display:grid;grid-template-columns:100px minmax(190px,1fr) 80px minmax(120px,1fr) 120px minmax(120px,1fr) 80px minmax(170px,1fr) 80px minmax(170px,1fr);gap:8px 10px;align-items:center}.tariff-meta label{text-align:right;font-weight:800}.tariff-meta input,.tariff-meta select{height:31px;border:1px solid #c5d3e2;background:#fff;padding:4px 8px}.rules-wrap{margin:0 16px 16px;border:1px solid #cbd8e6;border-left:4px solid var(--orange);border-radius:3px;overflow:auto}.rules-title{height:32px;background:var(--navy);color:#fff;font-weight:900;display:flex;align-items:center;padding:0 12px}.rules-table{width:100%;border-collapse:collapse;min-width:1430px}.rules-table th{background:var(--navy);color:#fff;text-align:left;border:1px solid #41698e;padding:6px}.rules-table td{border:1px solid #d5e1ee;padding:5px;background:#fff}.rules-table input,.rules-table select{width:100%;height:28px;border:1px solid #c5d3e2;background:var(--field);padding:3px 6px}.rules-actions{padding:10px;background:#f6f9fc}.tariff-disabled input,.tariff-disabled select,.tariff-disabled button.add-row,.tariff-disabled .remove-group,.tariff-disabled .tariff-head-name{disabled:true;background:#eef3f8;color:#718195}.mini-delete{height:24px;border:1px solid #333;background:#fff}.tariff-hidden{display:none}
.iso-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:12px;padding:10px}.iso-panel{border:1px solid var(--line);background:#fff;min-height:448px}.iso-toolbar{height:52px;background:#eee;border-bottom:1px solid #c9d4e2;display:flex;align-items:center;justify-content:space-between;padding:0 13px}.iso-title{font-size:22px;font-weight:800;color:#3f4854}.iso-actions{display:flex;gap:10px}.iso-actions .screen-btn{height:33px}.iso-form{width:420px;margin:18px auto 0}.iso-row{display:grid;grid-template-columns:150px 190px;align-items:center;margin-bottom:8px}.iso-row label{text-align:right;padding-right:8px;font-weight:900;color:#444}.iso-row.required label:before{content:"*";color:red}.iso-row input,.iso-row select{height:28px;border:1px solid #c5d3e2;background:var(--field);padding:4px 8px}.iso-row input[type=checkbox]{width:17px;height:17px}.iso-side{border:1px solid var(--line);background:#fff;min-height:220px}.iso-side-head{height:38px;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 10px;font-weight:900}.iso-side-body{padding:10px}.iso-side-body input{width:100%;height:32px;border:1px solid #c5d3e2;padding:0 9px;font-weight:800}.iso-list{margin-top:20px;max-height:320px;overflow:auto;text-align:center;color:#4e5c70;font-weight:700}.iso-item{text-align:left;border:1px solid #d6e1ec;border-radius:4px;margin-bottom:6px;padding:7px;cursor:pointer}.iso-item:hover,.iso-item.active{border-color:#0e5799;background:#eef6ff}.iso-item b{display:block;color:#073763}
.company-screen{background:#f3f6fa;border:1px solid #d7e0ea;padding:14px;box-shadow:0 2px 12px rgba(15,35,70,.08);overflow:hidden}.company-toolbar{height:52px;background:#0b3a66;color:#fff;display:flex;align-items:center;gap:10px;padding:0 12px;border-radius:8px 8px 0 0}.company-title{font-size:16px;font-weight:900;text-transform:uppercase;margin-right:auto}.company-badge{display:inline-flex;align-items:center;background:#fff7ed;color:#c2410c;border:1px solid #fed7aa;border-radius:16px;padding:5px 10px;font-size:11px;margin-left:8px;vertical-align:middle}.company-actions{display:flex;gap:9px}.company-btn{height:33px;border:0;border-radius:6px;color:#fff;padding:0 14px;font-size:12px;font-weight:900;cursor:pointer}.company-btn.add{background:#f97316}.company-btn.save{background:#16a34a}.company-btn.edit{background:#2563eb}.company-btn.delete{background:#dc2626}.company-btn.search{background:#64748b}.company-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:14px;background:#fff;border:1px solid #d7e0ea;border-top:0;border-radius:0 0 8px 8px;padding:14px}.company-form-card,.company-side-card{border:1px solid #d7e0ea;border-radius:8px;background:#fff;overflow:hidden}.company-section-head{height:38px;background:#eef4fb;color:#0b3a66;display:flex;align-items:center;padding:0 12px;font-size:14px;font-weight:900;text-transform:uppercase}.company-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:12px}.company-field{min-width:0}.company-field.span2{grid-column:span 2}.company-field.full{grid-column:1/-1}.company-field label{display:block;margin-bottom:4px;color:#172b4d;font-size:11px;font-weight:900;text-transform:uppercase}.company-field input,.company-field select{width:100%;height:34px;border:1px solid #c6d3e2;border-radius:4px;background:#fff;padding:7px 8px;color:#172033}.company-field input[type=color]{padding:3px;height:34px}.company-field input:disabled,.company-field select:disabled{background:#eef3f8;color:#667085;cursor:not-allowed}.company-asset{border-bottom:1px solid #d7e0ea}.company-asset-head{height:43px;background:#eef4fb;display:flex;align-items:center;justify-content:space-between;padding:0 10px;color:#0b3a66;font-weight:900}.company-asset-actions{display:flex;gap:6px}.asset-btn{width:28px;height:28px;border:1px solid #cbd5e1;background:#fff;color:#0b3a66;font-size:18px;line-height:1;cursor:pointer}.asset-btn.remove{color:#dc2626;border-color:#fecaca}.asset-preview{height:93px;display:flex;align-items:center;justify-content:center;background:#fbfdff;color:#344767;font-size:12px;text-align:center}.asset-preview img{max-width:100%;max-height:74px;object-fit:contain}.company-search-row{padding:10px;border-bottom:1px solid #e2e8f0;background:#fbfdff}.company-search-row input{width:100%;height:34px;border:1px solid #c6d3e2;border-radius:4px;padding:7px 8px}.company-list{max-height:380px;overflow:auto}.company-item{display:block;width:100%;border:0;border-bottom:1px solid #e2e8f0;background:#fff;text-align:left;padding:10px 12px;cursor:pointer}.company-item.active,.company-item:hover{background:#eef6ff}.company-item strong{display:block;color:#0b3a66;font-size:13px}.company-item span{display:block;color:#64748b;font-size:11px;margin-top:3px;line-height:1.35}.company-empty{padding:14px;text-align:center;color:#64748b;font-weight:700}
.grid-master-screen{background:#fff;border:1px solid #d5dfeb;box-shadow:0 3px 12px rgba(28,54,84,.1);min-height:802px;padding:10px}.grid-title-card{width:760px;height:72px;border:1px solid #cbd8e6;border-radius:6px;background:#fff;display:flex;align-items:center;padding:0 16px;margin-bottom:14px}.grid-title-card h1{font-size:19px;line-height:1;margin:0 0 8px;color:#073763;font-weight:900}.grid-title-card small{display:block;font-size:13px;color:#344767}.grid-title-spacer{flex:1}.grid-actions{display:flex;gap:9px}.grid-btn{height:30px;border:0;border-radius:4px;background:#ff650f;color:#fff;padding:0 13px;font-size:12px;font-weight:900;cursor:pointer}.grid-card{width:760px;border:1px solid #cbd8e6;background:#fff;padding:12px;margin-bottom:22px}.grid-table{width:100%;border-collapse:collapse;table-layout:fixed}.grid-table th{height:31px;background:#073763;color:#fff;border:1px solid #4e7498;text-align:left;padding:0 8px;font-size:12px;text-transform:uppercase}.grid-table th.sr,.grid-table td.sr{width:61px;text-align:center}.grid-table td{height:39px;border:1px solid #d6e1ec;background:#fff;padding:5px 6px;font-weight:900}.grid-table input{width:100%;height:29px;border:1px solid #c5d3e2;border-radius:3px;background:#fff;padding:4px 8px;font-weight:700;color:#223c5c}.grid-table input:disabled{background:#eaf0f6;color:#56708f}.grid-add-row{margin-top:0}
.blank-master-screen{background:#fff;border:1px solid #d5dfeb;box-shadow:0 3px 12px rgba(28,54,84,.1);min-height:100px;padding:10px}.blank-master-card{height:79px;border:1px solid #d5dfeb;background:#fff;padding:14px 12px}.blank-master-card h1{font-size:16px;margin:0;color:#073763;font-weight:900;text-transform:uppercase;border-bottom:1px solid #edf1f5;padding-bottom:13px}
@media(max-width:1200px){.bill-layout{grid-template-columns:1fr}.bill-row-top,.bill-row-two,.bill-row-detail{grid-template-columns:1fr 1fr}.small-row{grid-template-columns:1fr 1fr 1fr}.top-search{display:none}}
@media(max-width:760px){.history-search,.profile .profile-text{display:none}.workarea{padding:72px 8px 16px}.bill-row-top,.bill-row-two,.bill-row-detail,.small-row{grid-template-columns:1fr}.active-row{width:100%}}

.wms-menu-flyout{position:fixed;left:64px;top:54px;width:280px;max-height:calc(100vh - 70px);background:#fff;border:1px solid #b8c8da;box-shadow:8px 0 22px rgba(15,35,70,.2);z-index:45;display:none;overflow:hidden}
.wms-menu-flyout.open{display:block}
.wms-menu-flyout-head{height:40px;background:#073763;color:#fff;display:flex;align-items:center;padding:0 12px;font-weight:900}
.wms-menu-flyout-body{max-height:calc(100vh - 110px);overflow:auto;padding:6px}
.wms-menu-flyout a{display:block;text-decoration:none;color:#0a2444;padding:8px 10px;border-bottom:1px solid #edf2f7;font-weight:800}
.wms-menu-flyout a:hover{background:#eef6ff;color:#073763}
.wms-menu-search-panel{position:absolute;left:0;right:0;top:35px;background:#fff;border:1px solid #b8c8da;box-shadow:0 8px 20px rgba(15,35,70,.16);display:none;z-index:48;max-height:360px;overflow:auto}
.wms-menu-search-panel.open{display:block}
.wms-menu-search-panel a{display:block;text-decoration:none;padding:8px 10px;border-bottom:1px solid #edf2f7;color:#0a2444}
.wms-menu-search-panel b{display:block;color:#073763}.wms-menu-search-panel span{display:inline-block;color:#073763;font-size:11px;background:#edf2f7;border-radius:4px;padding:2px 8px;margin-top:5px;position:static!important}
.wms-history-panel{position:fixed;top:50px;right:146px;width:min(620px,calc(100vw - 170px));max-height:420px;overflow:auto;background:#fff;border:1px solid #b8c8da;box-shadow:0 12px 26px rgba(15,35,70,.18);z-index:49;display:none}
.wms-history-panel.open{display:block}
.wms-history-panel button{width:100%;border:0;border-bottom:1px solid #e5edf6;background:#fff;text-align:left;padding:9px 12px;cursor:pointer}
.wms-history-panel button:hover{background:#eef6ff}.wms-history-panel b{display:block;color:#073763}.wms-history-panel span,.wms-history-panel small{display:block;color:#475569;font-weight:700;margin-top:2px}
.wms-history-empty{padding:14px;text-align:center;color:#64748b;font-weight:800}
.profile{position:relative;cursor:pointer}.profile.open .wms-profile-menu{display:block}
.wms-profile-menu{position:absolute;right:0;top:46px;width:240px;background:#fff;border:1px solid #b8c8da;box-shadow:0 10px 22px rgba(15,35,70,.18);padding:10px;display:none;z-index:50}
.wms-profile-menu b,.wms-profile-menu span{display:block;color:#0a2444;margin-bottom:5px}.wms-profile-menu span{font-size:11px;color:#64748b}.wms-profile-menu button{width:100%;height:30px;background:#ff650f;color:#fff;border:0;border-radius:3px;font-weight:900;margin-top:7px}
.wms-login-overlay{position:fixed;inset:0;background:rgba(7,55,99,.94);z-index:100;display:flex;align-items:center;justify-content:center;padding:16px}
.wms-login-card{width:min(380px,96vw);background:#fff;border:1px solid #d5dfeb;box-shadow:0 18px 42px rgba(0,0,0,.32);padding:24px}
.wms-login-card img{height:54px;object-fit:contain;margin-bottom:12px}.wms-login-card h1{margin:0 0 18px;color:#073763;font-size:22px;font-weight:900}
.wms-login-card label{display:block;font-weight:900;color:#0a2444;margin:10px 0 5px}.wms-login-card input{width:100%;height:34px;border:1px solid #c5d3e2;background:#f6fbff;padding:6px 8px}
.wms-login-card button{width:100%;height:36px;background:#ff650f;color:#fff;border:0;border-radius:4px;font-weight:900;margin-top:16px}.wms-login-card p{margin:12px 0 0;color:#64748b;font-weight:700}
@media(max-width:760px){.wms-menu-flyout{left:52px;width:calc(100vw - 60px)}.wms-history-panel{right:8px;left:8px;width:auto;top:54px}}

.simple-screen{background:#fff;border:1px solid #d5dfeb;box-shadow:0 3px 12px rgba(28,54,84,.1);min-height:860px}
.simple-titlebar{height:43px;background:#073763;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 10px}
.simple-titlebar h1{margin:0;font-size:14px;font-weight:900;text-transform:uppercase}.simple-titlebar small{display:block;font-size:10px;color:#dbeafe}
.simple-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.simple-btn{height:30px;border:0;border-radius:3px;background:#ff650f;color:#fff;padding:0 12px;font-size:11px;font-weight:900;cursor:pointer}.simple-btn.red{background:#dc2626}
.simple-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:12px;padding:12px}.simple-card,.simple-side{border:1px solid #d5dfeb;background:#fff}.simple-card{padding:12px}
.simple-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.simple-field{min-width:0}.simple-field.span2{grid-column:span 2}.simple-field.span3{grid-column:span 3}.simple-field.full{grid-column:1/-1}
.simple-field label{display:block;font-size:11px;font-weight:900;color:#0a2444;margin-bottom:5px}.simple-field.required label:after{content:" *";color:red}
.simple-field input,.simple-field select,.simple-field textarea{width:100%;height:31px;border:1px solid #c5d3e2;background:#f6fbff;padding:4px 8px;color:#1c334d;font-size:12px;border-radius:3px}.simple-field textarea{height:58px;resize:vertical}
.simple-field input:disabled,.simple-field select:disabled,.simple-field textarea:disabled{background:#eaf0f6;color:#718195}.simple-check input{width:20px;height:20px}.simple-checks{border:1px solid #c5d3e2;background:#f6fbff;min-height:31px;padding:5px 8px;display:flex;gap:12px;flex-wrap:wrap}.simple-checks label{margin:0;font-weight:800}
.simple-multiselect{position:relative}.simple-multi-btn{width:100%;min-height:38px;border:1px solid #c5d3e2;background:#fff;border-radius:6px;padding:5px 32px 5px 8px;display:flex;align-items:center;justify-content:flex-start;color:#1c334d;font-size:12px;position:relative}.simple-multi-btn span{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0}.simple-multi-btn b{position:absolute;right:10px;top:50%;transform:translateY(-50%);font-weight:700;color:#64748b}.simple-multi-chip{display:inline-flex;align-items:center;gap:5px;min-height:25px;padding:3px 8px;border:1px solid #cbd8e6;border-radius:5px;background:#eaf2ff;color:#0b335f;font-style:normal;font-weight:700}.simple-multi-chip i{color:#94a3b8;font-style:normal;font-weight:700}.simple-multi-placeholder{font-style:normal;color:#64748b}.simple-multi-menu{display:none;position:absolute;left:0;right:0;top:calc(100% + 4px);max-height:280px;overflow:auto;background:#fff;border:1px solid #b8c8da;box-shadow:0 12px 24px rgba(15,35,70,.16);z-index:80}.simple-multiselect.open .simple-multi-menu{display:block}.simple-multi-menu button{width:100%;min-height:36px;border:0;border-bottom:1px solid #edf2f7;background:#fff;color:#073763;text-align:left;padding:8px 10px;font-weight:700}.simple-multi-menu button:hover,.simple-multi-menu button.selected{background:#ff650f;color:#fff}
.simple-band-head{height:36px;background:#eef4fb;border:1px solid #d5dfeb;border-bottom:0;display:flex;align-items:center;justify-content:space-between;padding:0 10px;color:#073763;font-weight:900;margin-top:12px}.simple-table-wrap{border:1px solid #d5dfeb;overflow:auto}.simple-table{width:100%;border-collapse:collapse;min-width:820px}.simple-table th{background:#073763;color:#fff;border:1px solid #315b84;text-align:left;padding:7px 6px;font-size:11px;text-transform:uppercase}.simple-table td{border:1px solid #d5e1ee;padding:4px;background:#fff}.simple-table input,.simple-table select{width:100%;height:28px;border:1px solid #c5d3e2;background:#fff;padding:3px 6px;font-size:12px}.simple-table .sr{width:48px;text-align:center}.simple-table .del{width:72px;text-align:center}
.simple-side-head{height:38px;background:#1359a6;color:#fff;display:flex;align-items:center;padding:0 10px;font-weight:900}.simple-side-body{padding:10px}.simple-side-body input{width:100%;height:32px;border:1px solid #c5d3e2;padding:0 8px}.simple-saved-item{display:block;width:100%;border:0;border-bottom:1px solid #e2e8f0;background:#fff;text-align:left;padding:8px 9px;cursor:pointer}.simple-saved-item:hover{background:#eef6ff}.simple-saved-item b{display:block;color:#073763}.simple-saved-item span{display:block;color:#64748b;font-size:11px}.simple-empty{padding:12px;color:#64748b;font-weight:800}
@media(max-width:1180px){.simple-layout{grid-template-columns:1fr}.simple-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.simple-grid{grid-template-columns:1fr}.simple-field.span2,.simple-field.span3{grid-column:1/-1}.simple-titlebar{height:auto;align-items:flex-start;gap:8px;flex-direction:column;padding:8px}}
.tariff-kind{display:inline-flex;align-items:center;height:26px;border:1px solid #cbd8e6;background:#eef4fb;color:#073763;padding:0 9px;font-weight:900;border-radius:3px;white-space:nowrap}

/* WMS shell rebuilt to match the original single-code navigation/dashboard */
.topbar{height:54px;padding:5px 14px;gap:14px;box-shadow:0 1px 5px rgba(15,35,70,.14)}
.logo{width:112px;height:44px}.logo img{height:42px;max-width:106px}
.top-search{width:520px;margin:0 auto}.top-search input{height:32px;background:#f8fbff;border:1px solid #aebed0;color:#41536a;font-weight:800}
.history-search{height:32px;width:300px;border:1px solid #c9d6e4;background:#fff;font-size:12px}
.profile{height:42px;border:1px solid #d5e1ee;border-radius:8px;background:#f6f9fd;gap:8px;padding:3px 8px}
.profile .avatar{order:2;width:34px;height:34px;background:#0b335f}
.profile .profile-text{order:1;text-align:right;min-width:120px;color:#0b335f;line-height:1.05}
.profile .profile-text small{text-transform:uppercase;color:#183d66;font-size:10px;font-weight:900}
.sidebar{top:54px;bottom:0;height:auto;width:64px;background:#1e1e2f;color:#fff;display:block;overflow-x:hidden;overflow-y:auto;transition:width .25s cubic-bezier(.4,0,.2,1);box-shadow:3px 0 10px rgba(0,0,0,.18);z-index:30}
.sidebar:hover{width:310px}
.menu-category{width:310px;min-height:42px;padding:12px 14px;background:#252538;border-bottom:1px solid #191925;color:#fff;display:flex;align-items:center;justify-content:space-between;cursor:pointer;font-size:12px;font-weight:900;text-transform:uppercase;white-space:nowrap}
.menu-category:hover,.menu-category.active{background:#2d2d42;color:#fff}
.category-title{display:flex;align-items:center;gap:11px}
.nav-glyph{width:18px;height:18px;display:inline-block;position:relative;flex:0 0 18px}
.nav-glyph.db{border:2px solid currentColor;border-radius:50%/28%}
.nav-glyph.db:before,.nav-glyph.db:after{content:"";position:absolute;left:-2px;right:-2px;height:7px;border:2px solid currentColor;border-top:0;border-radius:0 0 50% 50%}.nav-glyph.db:before{top:5px}.nav-glyph.db:after{top:10px}
.nav-glyph.box{border:2px solid currentColor;border-radius:3px}.nav-glyph.box:before{content:"";position:absolute;left:2px;right:2px;top:5px;border-top:2px solid currentColor}
.nav-glyph.cash{border:2px solid currentColor;border-radius:3px}.nav-glyph.cash:before{content:"";position:absolute;left:3px;right:3px;top:7px;border-top:2px solid currentColor}
.nav-glyph.chart{background:linear-gradient(to top,currentColor 0 75%,transparent 75%) 2px 7px/3px 11px no-repeat,linear-gradient(to top,currentColor 0 55%,transparent 55%) 8px 4px/3px 14px no-repeat,linear-gradient(to top,currentColor 0 90%,transparent 90%) 14px 1px/3px 17px no-repeat}
.arrow-icon{font-size:11px;color:#dbe7f5;padding-right:4px}
.menu-list{width:310px;list-style:none;margin:0;padding:0;background:#171724;display:none}
.menu-list.open{display:block}
.sidebar:not(:hover) .category-title span:not(.nav-glyph),.sidebar:not(:hover) .arrow-icon{opacity:0}
.sidebar:not(:hover) .menu-list{display:none!important}
.sidebar:hover .category-title span:not(.nav-glyph),.sidebar:hover .arrow-icon{opacity:1}
.sidebar:hover .menu-list.open{display:block!important}
.menu-list li{margin:0;padding:0}
.menu-item{display:block;text-decoration:none;color:#cbd5e1;border-left:3px solid transparent;padding:9px 14px 9px 48px;font-size:11px;font-weight:800;text-transform:uppercase;white-space:nowrap;cursor:pointer}
.menu-item:hover,.menu-item.highlighted{background:#2d2d3f;color:#fff;border-left-color:#ff650f}
.workarea{margin-left:64px;padding:74px 10px 22px;transition:margin-left .25s}
.wms-menu-flyout{display:none!important}
.wms-menu-search-panel{top:33px}
.wms-history-panel{top:46px;right:155px}
.wms-profile-menu label{display:block;margin:8px 0 4px;color:#0a2444;font-size:11px;font-weight:900}
.wms-profile-menu select{width:100%;height:31px;border:1px solid #c5d3e2;background:#f8fbff;padding:4px 7px;font-weight:800}
.wms-profile-menu a{display:block;text-decoration:none;color:#073763;font-weight:900;margin-top:8px}

.dashboard-home{background:#eef4fa;border:1px solid #d5dfeb;min-height:790px;padding:12px}
.dashboard-header{height:48px;background:#073763;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 14px;border-bottom:4px solid #ff650f}
.dashboard-header h1{margin:0;font-size:18px;font-weight:900;text-transform:uppercase}
.dashboard-header small{display:block;font-size:10px;color:#dbeafe;font-weight:800;text-transform:uppercase}
.dashboard-actions{display:flex;gap:8px}.dashboard-actions a{text-decoration:none}
.dashboard-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:12px 0}
.kpi-card{background:#fff;border:1px solid #d4e0ec;border-radius:6px;padding:14px 16px;min-height:92px;box-shadow:0 2px 7px rgba(15,35,70,.08)}
.kpi-title{font-size:11px;font-weight:900;text-transform:uppercase;color:#51657e;margin-bottom:8px;letter-spacing:0}
.kpi-value{font-size:25px;font-weight:900;color:#073763;line-height:1}
.kpi-sub{margin-top:8px;color:#64748b;font-weight:800;font-size:11px}
.dashboard-main{display:grid;grid-template-columns:minmax(0,2fr) minmax(360px,1fr);gap:12px}
.dashboard-panel{background:#fff;border:1px solid #d4e0ec;border-radius:6px;box-shadow:0 2px 7px rgba(15,35,70,.08);overflow:hidden}
.dashboard-panel-head{height:39px;background:#0b3a66;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 12px;font-weight:900;text-transform:uppercase}
.dashboard-panel-body{padding:12px}
.bar-chart-visual{height:228px;display:flex;align-items:flex-end;gap:12px;padding:18px 8px 4px}
.bar-group{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%}
.bar-pillar{width:68%;background:#2185d0;border-radius:4px 4px 0 0;min-height:16px;position:relative}
.bar-pillar.out{background:#ff650f}.bar-pillar.pending{background:#64748b}
.bar-value{position:absolute;top:-19px;left:50%;transform:translateX(-50%);font-size:10px;font-weight:900;color:#0f2743;white-space:nowrap}
.bar-label{font-size:11px;font-weight:900;color:#475569;margin-top:8px;text-align:center}
.list-row-item{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #edf2f7;padding:9px 0;font-size:12px}
.list-row-item b{display:block;color:#073763}.list-row-item span{display:block;color:#64748b;font-size:11px;font-weight:800}.list-row-item em{font-style:normal;color:#475569;font-weight:900;font-size:11px;white-space:nowrap}
.job-line{display:grid;grid-template-columns:130px minmax(0,1fr) 95px;text-decoration:none;color:#0a2444;border-bottom:1px solid #edf2f7;padding:8px 0;gap:8px;font-weight:800}
.job-line b{color:#073763}.job-line span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.job-line small{text-align:right;color:#64748b;font-weight:900}
.quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.quick-link{height:42px;border:1px solid #cbd8e6;background:#fff;text-decoration:none;color:#073763;display:flex;align-items:center;padding:0 12px;font-weight:900;text-transform:uppercase;border-left:4px solid #ff650f}
.quick-link:hover{background:#eef6ff}
.dashboard-empty{padding:14px;text-align:center;color:#64748b;font-weight:900}

.wms-login-overlay{background:#0a2747}
.wms-login-shell{width:min(920px,96vw);min-height:520px;background:#fff;display:grid;grid-template-columns:1.1fr .9fr;border:1px solid #c4d2e2;box-shadow:0 22px 55px rgba(0,0,0,.35)}
.wms-login-brand{background:#073763;color:#fff;padding:48px 44px;display:flex;flex-direction:column;justify-content:center;border-right:6px solid #ff650f}
.wms-login-brand img{width:170px;max-height:88px;object-fit:contain;background:#fff;padding:8px;margin-bottom:34px}
.wms-login-brand h1{margin:0;font-size:42px;font-weight:900;letter-spacing:0}
.wms-login-brand p{font-size:15px;font-weight:700;line-height:1.55;color:#dbeafe;max-width:410px;margin:14px 0 0}
.wms-login-card{width:auto;box-shadow:none;border:0;padding:48px 42px;display:flex;flex-direction:column;justify-content:center}
.wms-login-card h2{font-size:26px;color:#073763;font-weight:900;margin:0 0 18px;text-transform:uppercase}
.wms-login-card label{font-size:12px;text-transform:uppercase}
.wms-login-card input,.wms-login-card select{width:100%;height:38px;border:1px solid #c5d3e2;background:#f6fbff;padding:6px 9px;font-weight:800}
.wms-login-card button{height:39px}
.wms-login-card small{margin-top:10px;color:#64748b;font-weight:800}.login-error{min-height:17px;margin:8px 0 0!important;color:#dc2626!important;font-weight:900}
.login-page{min-height:100vh;background:#0a2747;display:flex;align-items:center;justify-content:center;padding:18px}
.login-shell{width:min(980px,96vw);min-height:560px;background:#fff;display:grid;grid-template-columns:1.1fr .9fr;border:1px solid #c4d2e2;box-shadow:0 22px 55px rgba(0,0,0,.35)}
.login-brand{background:#073763;color:#fff;padding:52px 46px;display:flex;flex-direction:column;justify-content:center;border-right:6px solid #ff650f}
.login-brand img{width:180px;max-height:92px;object-fit:contain;background:#fff;padding:8px;margin-bottom:36px}
.login-brand h1{margin:0;font-size:44px;font-weight:900}.login-brand p{font-size:15px;font-weight:700;line-height:1.55;color:#dbeafe;max-width:430px;margin:14px 0 0}
.login-form-panel{padding:52px 44px;display:flex;flex-direction:column;justify-content:center}
.login-form-panel h2{font-size:27px;color:#073763;font-weight:900;margin:0 0 18px;text-transform:uppercase}
.login-form-panel label{display:block;font-weight:900;color:#0a2444;margin:10px 0 5px;text-transform:uppercase;font-size:12px}
.login-form-panel input,.login-form-panel select{width:100%;height:38px;border:1px solid #c5d3e2;background:#f6fbff;padding:6px 9px;font-weight:800}
.login-form-panel button{width:100%;height:40px;background:#ff650f;color:#fff;border:0;border-radius:4px;font-weight:900;margin-top:18px}
.login-form-panel a{display:block;text-align:center;margin-top:12px;color:#073763;font-weight:900;text-decoration:none}
@media(max-width:1200px){.dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-main{grid-template-columns:1fr}.quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.topbar{gap:6px;padding:5px 8px}.logo{width:82px}.history-search{display:none}.profile .profile-text{display:none}.sidebar{width:52px}.sidebar:hover{width:280px}.menu-category,.menu-list{width:280px}.menu-item{padding-left:44px}.workarea{margin-left:52px;padding:66px 8px 16px}.dashboard-grid,.quick-grid{grid-template-columns:1fr}.dashboard-header{height:auto;align-items:flex-start;gap:8px;flex-direction:column;padding:9px 10px}.wms-login-shell,.login-shell{grid-template-columns:1fr}.wms-login-brand,.login-brand{display:none}}

.topbar>.history-search{display:none!important}
.top-search{width:620px!important;max-width:min(620px,calc(100vw - 520px))!important}
.top-search input{width:100%!important}
.wms-menu-search-panel .wms-history-search-action{min-height:42px!important;padding:9px 12px!important;display:grid!important;grid-template-columns:1fr auto!important;gap:10px!important;align-items:center!important;border:0!important;border-bottom:1px solid #edf2f7!important;background:#fff!important;color:var(--wms-blue-deep)!important;text-align:left!important}
.wms-menu-search-panel .wms-history-search-action:hover{background:var(--wms-orange)!important;color:#fff!important}
.wms-menu-search-panel .wms-history-search-action b{font-weight:500!important;color:inherit!important}
.wms-menu-search-panel .wms-history-search-action span{position:static!important;height:auto!important;background:#edf2f7!important;color:#244769!important;border-radius:4px!important;padding:2px 8px!important;font-size:11px!important}
.wms-menu-search-panel .wms-history-search-action:hover span{background:rgba(255,255,255,.25)!important;color:#fff!important}
.wms-history-panel{right:calc(50vw - 310px)!important}
@media(max-width:1200px){.top-search{max-width:420px!important}}
@media(max-width:760px){.top-search{display:none!important}.wms-history-panel{right:8px!important}}

/* Uniform header/ribbon treatment from the reference app */
.simple-titlebar,.fin-titlebar,.doc-titlebar,.expense-titlebar,.report-titlebar,.screen-ribbon{background:#073763!important;color:#fff!important}
.simple-titlebar .simple-btn,.fin-titlebar .fin-btn,.doc-titlebar .doc-btn,.expense-titlebar button,.report-titlebar button,.screen-ribbon button,.screen-ribbon .screen-btn{background:#ff650f!important;color:#fff!important;border:0!important}
.fin-titlebar .fin-btn.hidden,.simple-titlebar .simple-btn.hidden,.doc-titlebar .doc-btn.hidden{display:none!important}
.fin-field label,.fin-band-head{color:#073763!important}.fin-band-head{background:#eef4fb!important;border-color:#d5dfeb!important}
.fin-table th,.fin-screen .search-head{background:#073763!important;border-color:#315b84!important}

/* Reference UI polish layer: orange/blue/white controls, crisp forms, modern shell */
:root{
  --wms-blue:#0f3f6c;
  --wms-blue-deep:#0b335f;
  --wms-blue-soft:#eaf3ff;
  --wms-orange:#f97316;
  --wms-orange-dark:#ea580c;
  --wms-bg:#f1f5f9;
  --wms-text:#0f172a;
  --wms-muted:#64748b;
  --wms-line:#cbd5e1;
  --wms-input:#ffffff;
  --wms-focus:rgba(249,115,22,.25);
}
body{
  background:var(--wms-bg)!important;
  color:var(--wms-text)!important;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif!important;
  font-size:13px;
  font-weight:400;
}
.topbar{
  height:70px!important;
  padding:8px 28px!important;
  gap:22px!important;
  border-bottom:1px solid #d9e2ee!important;
  background:#fff!important;
  box-shadow:0 4px 20px rgba(15,35,70,.08)!important;
  z-index:40!important;
}
.logo{width:138px!important;height:54px!important}
.logo img{height:48px!important;max-width:132px!important;object-fit:contain!important}
.top-search{width:520px!important;margin:0 auto!important}
.top-search input,.history-search{
  height:42px!important;
  background:#fff!important;
  border:1px solid var(--wms-line)!important;
  color:#344767!important;
  font-size:14px!important;
  font-weight:500!important;
  box-shadow:0 1px 0 rgba(15,35,70,.03)!important;
}
.top-search input:focus,.history-search:focus{
  border-color:var(--wms-orange)!important;
  box-shadow:0 0 0 4px var(--wms-focus)!important;
  outline:none!important;
}
.topbar>.history-search{display:none!important}
.history-search{width:350px!important}
.profile{
  min-width:268px!important;
  height:56px!important;
  background:#f8fbff!important;
  border:1px solid #d5dfeb!important;
  border-radius:12px!important;
  box-shadow:0 7px 22px rgba(15,35,70,.08)!important;
  padding:6px 9px 6px 14px!important;
  color:var(--wms-blue-deep)!important;
  justify-content:flex-end!important;
}
.profile .profile-text{font-size:18px!important;font-weight:700!important;line-height:1.05!important;color:var(--wms-blue-deep)!important}
.profile .profile-text small{font-size:12px!important;font-weight:600!important;color:#344b6b!important;letter-spacing:0!important}
.profile .avatar{
  width:44px!important;
  height:44px!important;
  background:var(--wms-blue-deep)!important;
  color:#fff!important;
  font-size:24px!important;
  font-weight:700!important;
  overflow:hidden!important;
}
.profile .avatar img{width:100%;height:100%;object-fit:cover}
.profile:after{
  content:"";
  width:8px;
  height:8px;
  border-right:2px solid #46627f;
  border-bottom:2px solid #46627f;
  transform:rotate(45deg);
  margin-left:2px;
}
.profile.open:after{transform:rotate(225deg);margin-top:7px}
.wms-profile-menu{
  top:64px!important;
  right:0!important;
  width:268px!important;
  padding:16px 18px!important;
  background:#fff!important;
  border:1px solid #d5dfeb!important;
  border-radius:10px!important;
  box-shadow:0 22px 48px rgba(15,35,70,.18)!important;
}
.wms-profile-menu b,.wms-profile-menu span{display:none!important}
.wms-profile-menu label{
  margin:0 0 7px!important;
  color:#667085!important;
  font-size:12px!important;
  font-weight:700!important;
  letter-spacing:0!important;
}
.wms-profile-menu select{
  height:38px!important;
  background:#fff!important;
  border:1px solid var(--wms-line)!important;
  border-radius:6px!important;
  color:#1e293b!important;
  font-size:14px!important;
  font-weight:500!important;
}
.wms-profile-menu hr{border:0;border-top:1px solid #e5eaf1;margin:12px 0}
.wms-profile-menu a,.wms-profile-menu button.profile-link{
  display:block!important;
  width:100%!important;
  height:auto!important;
  padding:9px 4px!important;
  margin:0!important;
  border:0!important;
  background:#fff!important;
  color:#1e2f49!important;
  text-align:left!important;
  text-decoration:none!important;
  font-size:16px!important;
  font-weight:600!important;
}
.wms-profile-menu a.logout-link,.wms-profile-menu button.logout-link{color:#c2410c!important}
.sidebar{
  top:70px!important;
  width:80px!important;
  background:#1b2a47!important;
  box-shadow:4px 0 22px rgba(15,35,70,.22)!important;
}
.sidebar:hover{width:310px!important}
.sidebar:before{
  content:"";
  position:absolute;
  inset:0;
  opacity:.18;
  pointer-events:none;
  background-image:radial-gradient(circle at 20px 20px,rgba(249,115,22,.7) 1px,transparent 1px);
  background-size:22px 22px;
}
.menu-category{
  position:relative;
  z-index:1;
  background:transparent!important;
  min-height:64px!important;
  padding:0 18px!important;
  border-bottom:1px solid rgba(255,255,255,.08)!important;
  color:#eef6ff!important;
  font-size:12px!important;
  font-weight:600!important;
}
.menu-category:hover,.menu-category.active{background:#fff!important;color:var(--wms-blue-deep)!important}
.category-title{gap:16px!important}
.nav-glyph{width:24px!important;height:24px!important;flex-basis:24px!important}
.nav-glyph svg{display:block;width:24px;height:24px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.arrow-icon{font-size:14px!important;color:currentColor!important}
.menu-list{position:relative;z-index:1;background:#142038!important;width:310px!important}
.menu-item{
  padding:10px 16px 10px 58px!important;
  color:#d9e6f5!important;
  font-size:12px!important;
  font-weight:500!important;
  border-left:4px solid transparent!important;
}
.menu-item:hover,.menu-item.highlighted{
  background:var(--wms-orange)!important;
  color:#fff!important;
  border-left-color:#fff!important;
}
.workarea{margin-left:80px!important;padding:70px 18px 28px!important}
.screen-frame,.simple-screen,.grid-master-screen,.blank-master-screen,.company-screen,.cust-screen,.fin-screen,.doc-screen,.expense-screen,.report-screen{
  background:#fff!important;
  border:1px solid #d9e2ee!important;
  border-radius:8px!important;
  box-shadow:0 10px 28px rgba(15,35,70,.08)!important;
}
.screen-ribbon,.simple-titlebar,.fin-titlebar,.doc-titlebar,.expense-titlebar,.report-titlebar,.dashboard-header{
  min-height:52px!important;
  height:auto!important;
  background:var(--wms-blue-deep)!important;
  color:#fff!important;
  border-bottom:4px solid var(--wms-orange)!important;
  box-shadow:0 8px 20px rgba(15,35,70,.12)!important;
  padding:8px 14px!important;
}
.screen-title,.simple-titlebar h1,.fin-titlebar h1,.doc-titlebar h1,.expense-titlebar h1,.report-titlebar h1,.dashboard-header h1{
  color:#fff!important;
  font-size:16px!important;
  font-weight:700!important;
  letter-spacing:0!important;
}
.screen-btn,.simple-btn,.fin-btn,.doc-btn,.cust-btn,.company-btn,.grid-btn,.expense-titlebar button,.report-titlebar button,.dashboard-actions .screen-btn{
  height:34px!important;
  border:1px solid var(--wms-orange)!important;
  border-radius:5px!important;
  background:var(--wms-orange)!important;
  color:#fff!important;
  padding:0 14px!important;
  font-size:12px!important;
  font-weight:700!important;
  box-shadow:0 3px 9px rgba(249,115,22,.16)!important;
  transition:transform .14s ease,box-shadow .14s ease,background .14s ease,border-color .14s ease!important;
}
.screen-btn:hover,.simple-btn:hover,.fin-btn:hover,.doc-btn:hover,.cust-btn:hover,.company-btn:hover,.grid-btn:hover{
  background:var(--wms-orange-dark)!important;
  border-color:var(--wms-orange-dark)!important;
  transform:translateY(-1px);
  box-shadow:0 6px 15px rgba(249,115,22,.22)!important;
}
.screen-btn.gray,.screen-btn.green,.screen-btn.red,.simple-btn.red,.cust-btn.green,.cust-btn.gray,.cust-btn.red,.company-btn.save,.company-btn.edit,.company-btn.delete,.company-btn.search{
  background:var(--wms-orange)!important;
  border-color:var(--wms-orange)!important;
  color:#fff!important;
}
.screen-ribbon .screen-btn,.simple-titlebar .simple-btn,.fin-titlebar .fin-btn,.doc-titlebar .doc-btn,.expense-titlebar button,.report-titlebar button{
  background:var(--wms-orange)!important;
  color:#fff!important;
}
.field label,.simple-field label,.cust-field label,.fin-field label,.doc-field label,.expense-field label,.report-field label,.company-field label,.iso-row label,.tariff-header-grid label,.tariff-meta label{
  color:#172b4d!important;
  font-size:12px!important;
  font-weight:600!important;
  letter-spacing:0!important;
}
.field input,.field select,.field textarea,
.simple-field input,.simple-field select,.simple-field textarea,
.cust-field input,.cust-field select,.cust-field textarea,
.fin-field input,.fin-field select,.fin-field textarea,
.doc-field input,.doc-field select,.doc-field textarea,
.expense-field input,.expense-field select,.expense-field textarea,
.report-field input,.report-field select,.report-field textarea,
.company-field input,.company-field select,
.iso-row input,.iso-row select,
.tariff-header-grid input,.tariff-header-grid select,.tariff-meta input,.tariff-meta select,
.rules-table input,.rules-table select,.simple-table input,.simple-table select,.grid-table input,.grid-table select,.mini-table input,.mini-table textarea,
.bill-form-card input,.bill-form-card select,.bill-form-card textarea,.saved-body input,.simple-side-body input,.company-search-row input{
  min-height:36px!important;
  border:1px solid var(--wms-line)!important;
  border-radius:4px!important;
  background:#fff!important;
  color:#1e293b!important;
  font-size:13px!important;
  font-weight:400!important;
  box-shadow:inset 0 1px 0 rgba(15,35,70,.03)!important;
}
.field textarea,.simple-field textarea,.cust-field textarea,.fin-field textarea,.doc-field textarea,.expense-field textarea,.report-field textarea{min-height:48px!important}
input:focus,select:focus,textarea:focus,
.vertical-combo:focus,.vertical-combo.open,
.simple-multi-btn:focus,.simple-multiselect.open .simple-multi-btn,
.wms-smart-wrap:focus-within input.smart-dropdown{
  outline:none!important;
  border-color:var(--wms-orange)!important;
  box-shadow:0 0 0 4px var(--wms-focus),inset 0 1px 0 rgba(15,35,70,.03)!important;
}

/* Header-ribbon action hierarchy only: primary work stays orange; supporting
   actions stay blue. Buttons inside forms, grids, drawers and popups are not
   included in this colour balance. */
:is(.action-buttons,.tx-actions,.doc-actions,.exp-actions,.simple-actions,.rpt-actions,.igm-actions,
    .cfs-actions,.cust-actions,.fin-actions,.company-actions,.iso-actions,
    .bank-actions,.br-report-actions,.brk-actions,.cg-actions,.commodity-actions,.customs-actions,
    .dm-actions,.document-actions,.ego-actions,.eo-actions,.equipment-actions,.ewo-actions,
    .exb-actions,.fx-actions,.gate-actions,.gc-actions,.gst-actions,.gx-actions,.hold-actions,
    .invoice-head-actions,.invwms-actions,.inward-actions,.jex-actions,.ldd-actions,
    .local-port-actions,.mailer-actions,.mti-actions,.om-actions,.password-actions,
    .polpod-actions,.product-actions,.pum-actions,.role-actions,.scan-actions,.ssr-actions,
    .tally-actions,.tariff-actions,.trailer-actions,.trl-actions,.tu-actions,.unit-actions,
    .user-actions,.vessel-actions,.warehouse-actions,.wbm-actions,.wgh-live-actions)
  :is(button,a):not(.green):not(.red):not(.danger){
  background:var(--wms-orange)!important;
  border-color:var(--wms-orange)!important;
  color:#fff!important;
}
:is(.action-buttons,.tx-actions,.doc-actions,.exp-actions,.simple-actions,.rpt-actions,.igm-actions,
    .cfs-actions,.cust-actions,.fin-actions,.company-actions,.iso-actions,
    .bank-actions,.br-report-actions,.brk-actions,.cg-actions,.commodity-actions,.customs-actions,
    .dm-actions,.document-actions,.ego-actions,.eo-actions,.equipment-actions,.ewo-actions,
    .exb-actions,.fx-actions,.gate-actions,.gc-actions,.gst-actions,.gx-actions,.hold-actions,
    .invoice-head-actions,.invwms-actions,.inward-actions,.jex-actions,.ldd-actions,
    .local-port-actions,.mailer-actions,.mti-actions,.om-actions,.password-actions,
    .polpod-actions,.product-actions,.pum-actions,.role-actions,.scan-actions,.ssr-actions,
    .tally-actions,.tariff-actions,.trailer-actions,.trl-actions,.tu-actions,.unit-actions,
    .user-actions,.vessel-actions,.warehouse-actions,.wbm-actions,.wgh-live-actions) #btnSearch{
  background:var(--wms-orange)!important;
  border-color:var(--wms-orange)!important;
  color:#fff!important;
}
:is(.action-buttons,.tx-actions,.doc-actions,.exp-actions,.simple-actions,.rpt-actions,.igm-actions,
    .cfs-actions,.cust-actions,.fin-actions,.company-actions,.iso-actions,
    .bank-actions,.br-report-actions,.brk-actions,.cg-actions,.commodity-actions,.customs-actions,
    .dm-actions,.document-actions,.ego-actions,.eo-actions,.equipment-actions,.ewo-actions,
    .exb-actions,.fx-actions,.gate-actions,.gc-actions,.gst-actions,.gx-actions,.hold-actions,
    .invoice-head-actions,.invwms-actions,.inward-actions,.jex-actions,.ldd-actions,
    .local-port-actions,.mailer-actions,.mti-actions,.om-actions,.password-actions,
    .polpod-actions,.product-actions,.pum-actions,.role-actions,.scan-actions,.ssr-actions,
    .tally-actions,.tariff-actions,.trailer-actions,.trl-actions,.tu-actions,.unit-actions,
    .user-actions,.vessel-actions,.warehouse-actions,.wbm-actions,.wgh-live-actions) #btnSearch:hover{
  background:var(--wms-orange-dark)!important;
  border-color:var(--wms-orange-dark)!important;
}
:is(.action-buttons,.tx-actions,.doc-actions,.exp-actions,.simple-actions,.rpt-actions,.igm-actions,
    .cfs-actions,.cust-actions,.fin-actions,.company-actions,.iso-actions,.grid-actions,
    .bank-actions,.br-report-actions,.brk-actions,.cg-actions,.commodity-actions,.customs-actions,
    .dm-actions,.document-actions,.ego-actions,.eo-actions,.equipment-actions,.ewo-actions,
    .exb-actions,.fx-actions,.gate-actions,.gc-actions,.gst-actions,.gx-actions,.hold-actions,
    .invoice-head-actions,.invwms-actions,.inward-actions,.jex-actions,.ldd-actions,
    .local-port-actions,.mailer-actions,.mti-actions,.om-actions,.password-actions,
    .polpod-actions,.product-actions,.pum-actions,.role-actions,.scan-actions,.ssr-actions,
    .tally-actions,.tariff-actions,.trailer-actions,.trl-actions,.tu-actions,.unit-actions,
    .user-actions,.vessel-actions,.warehouse-actions,.wbm-actions,.wgh-live-actions)
  :is(.screen-btn.blue,.tx-btn.blue,.doc-btn.blue,.exp-btn.blue,.cfs-btn.blue,.simple-btn.blue,.rpt-btn.blue,
      #btnPrint,#btnExit,#btnCancel,#btnExcel,#btnPrintPdf){
  background:var(--wms-blue)!important;
  border-color:var(--wms-blue)!important;
  color:#fff!important;
}
input:disabled,select:disabled,textarea:disabled,input[readonly],select[readonly],textarea[readonly],.combo-disabled{
  background:#eaf1f8!important;
  color:#1c334d!important;
  opacity:1!important;
  border-color:#c7d3e0!important;
}
.simple-card,.simple-side,.bill-form-card,.saved-card,.tariff-card,.tariff-heads,.tariff-head-card,.cust-card,.company-form-card,.company-side-card,.dashboard-panel,.kpi-card{
  border:1px solid #d9e2ee!important;
  border-radius:8px!important;
  box-shadow:0 6px 18px rgba(15,35,70,.06)!important;
}
.simple-side-head,.saved-head,.dashboard-panel-head,.company-section-head,.cust-card-head{
  background:#f8fbff!important;
  color:var(--wms-blue-deep)!important;
  border-bottom:1px solid #e5edf6!important;
  font-weight:700!important;
}
.simple-table th,.rules-table th,.grid-table th,.mini-table th,.fin-table th{
  background:var(--wms-blue-deep)!important;
  color:#fff!important;
  font-weight:600!important;
}
.simple-table td,.grid-table td,.mini-table td,.rules-table td{font-weight:400!important}
.simple-band-head,.cust-section{
  background:#fff7df!important;
  border-left:4px solid var(--wms-orange)!important;
  color:var(--wms-blue-deep)!important;
  font-weight:700!important;
}
.simple-table [data-del-row],.mini-table [data-del-address],.mini-table [data-del-contact],.mini-delete,
[data-add-table],.asset-btn,.grid-add-row,.add-row{
  width:34px!important;
  min-width:34px!important;
  height:30px!important;
  padding:0!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:4px!important;
  border:1px solid var(--wms-orange)!important;
  background:#fff!important;
  color:var(--wms-orange)!important;
  font-size:0!important;
  box-shadow:none!important;
}
[data-add-table]::before,.asset-btn:not(.remove)::before,.grid-add-row::before,.add-row::before{content:"+";font-size:20px;font-weight:700;line-height:1}
.simple-table [data-del-row]::before,.mini-table [data-del-address]::before,.mini-table [data-del-contact]::before,.mini-delete::before,.asset-btn.remove::before{content:"x";font-size:16px;font-weight:700;line-height:1}
[data-add-table]:hover,.asset-btn:hover,.grid-add-row:hover,.add-row:hover,.simple-table [data-del-row]:hover,.mini-delete:hover{
  background:var(--wms-orange)!important;
  color:#fff!important;
  transform:translateY(-1px);
}
.remove-group{
  background:#fff!important;
  color:var(--wms-orange)!important;
  border:1px solid var(--wms-orange)!important;
  font-weight:600!important;
  box-shadow:none!important;
}
.remove-group:hover,.remove-group:focus{
  background:var(--wms-orange)!important;
  color:#fff!important;
  transform:translateY(-1px)!important;
  box-shadow:0 8px 18px rgba(255,101,15,.18)!important;
}
.msg{
  left:50%!important;
  right:auto!important;
  top:50%!important;
  bottom:auto!important;
  transform:translate(-50%,-50%)!important;
  min-width:340px!important;
  max-width:min(520px,90vw)!important;
  padding:22px 24px!important;
  background:#fff!important;
  color:var(--wms-text)!important;
  border:1px solid #d9e2ee!important;
  border-top:5px solid var(--wms-orange)!important;
  border-radius:10px!important;
  box-shadow:0 28px 70px rgba(15,35,70,.28)!important;
  text-align:center!important;
  font-size:15px!important;
  font-weight:600!important;
  z-index:5000!important;
}
.login-page{
  min-height:100vh!important;
  display:flex!important;
  align-items:stretch!important;
  justify-content:center!important;
  padding:0!important;
  background:#fff!important;
}
.login-shell{
  width:100%!important;
  min-height:100vh!important;
  border:0!important;
  box-shadow:none!important;
  display:grid!important;
  grid-template-columns:1.6fr .95fr!important;
}
.login-brand{
  position:relative;
  overflow:hidden;
  background:var(--wms-blue-deep)!important;
  border:0!important;
  border-right:6px solid var(--wms-orange)!important;
  padding:56px!important;
  align-items:center!important;
  text-align:center!important;
}
.login-brand:before,.login-brand:after{
  content:"";
  position:absolute;
  border-radius:50%;
  background:rgba(255,255,255,.04);
}
.login-brand:before{width:460px;height:460px;right:-120px;top:-70px}
.login-brand:after{width:380px;height:380px;left:-120px;bottom:-140px}
.login-brand img{
  position:relative;
  z-index:1;
  width:min(430px,60%)!important;
  max-height:210px!important;
  background:transparent!important;
  padding:0!important;
  margin:0 0 42px!important;
  filter:drop-shadow(0 18px 22px rgba(0,0,0,.12));
}
.login-brand h1{
  position:relative;
  z-index:1;
  color:#fff!important;
  font-size:29px!important;
  font-weight:600!important;
  letter-spacing:4px!important;
  text-transform:uppercase!important;
}
.login-brand p{
  position:relative;
  z-index:1;
  margin-top:18px!important;
  color:rgba(255,255,255,.52)!important;
  font-size:16px!important;
  font-weight:400!important;
}
.login-form-panel{
  padding:64px 72px!important;
  justify-content:center!important;
  background:#fff!important;
}
.login-form-panel h2{
  margin:0 0 26px!important;
  color:#111827!important;
  font-size:38px!important;
  font-weight:700!important;
  text-transform:none!important;
}
.login-form-panel .login-subtitle{display:none!important}
.login-form-panel label{
  margin:0 0 8px!important;
  color:#1e2f49!important;
  font-size:14px!important;
  font-weight:700!important;
}
.login-form-panel input,.login-form-panel select{
  height:48px!important;
  border:1px solid var(--wms-line)!important;
  border-radius:8px!important;
  background:#fff!important;
  padding:0 16px!important;
  font-size:16px!important;
  font-weight:400!important;
}
.login-form-panel .login-keep{
  display:flex!important;
  align-items:flex-start!important;
  gap:10px!important;
  margin:16px 0 0!important;
  cursor:pointer!important;
  text-transform:none!important;
}
.login-form-panel .login-keep input{
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  margin:2px 0 0!important;
  padding:0!important;
  accent-color:#2563eb!important;
}
.login-form-panel .login-keep span{display:flex!important;flex-direction:column!important;gap:3px!important}
.login-form-panel .login-keep b{color:#1e2f49!important;font-size:13px!important}
.login-form-panel .login-keep small{color:#64748b!important;font-size:11px!important;font-weight:500!important;line-height:1.35!important}
.login-form-panel button{
  height:50px!important;
  margin-top:24px!important;
  border:0!important;
  border-radius:8px!important;
  background:#2563eb!important;
  color:#fff!important;
  font-size:18px!important;
  font-weight:700!important;
  letter-spacing:1px!important;
}
.login-form-panel a,.login-form-panel .default-note{display:none!important}
.grid-title-card{
  width:100%!important;
  min-height:78px!important;
  height:auto!important;
  gap:12px!important;
  border-radius:8px!important;
  box-shadow:0 6px 18px rgba(15,35,70,.06)!important;
}
.grid-title-card h1{font-weight:700!important}
.grid-card{width:100%!important;border-radius:8px!important;box-shadow:0 6px 18px rgba(15,35,70,.06)!important}
.grid-search{width:280px!important;flex:0 0 280px!important}
.grid-table{min-width:860px!important}
.grid-table input:not([type=checkbox]),.grid-table select{width:100%!important}
.grid-table .simple-td-check,.simple-table .simple-td-check{text-align:center!important}
.grid-table input[type=checkbox],.simple-table input[type=checkbox],.mini-table input[type=checkbox]{width:18px!important;height:18px!important;min-height:18px!important}
.inline-active{
  height:36px;
  display:flex!important;
  align-items:center;
  gap:8px;
  border:1px solid var(--wms-line);
  border-radius:4px;
  background:#fff;
  padding:0 10px;
  color:#1e293b!important;
  font-weight:500!important;
}
.inline-active input{width:16px!important;height:16px!important;min-height:16px!important}
.cust-active-field{max-width:180px}
.fleet-row-del,.fleet-btn{
  border:1px solid var(--wms-orange)!important;
  background:#fff!important;
  color:var(--wms-orange)!important;
  border-radius:4px!important;
  font-weight:700!important;
}
.fleet-ribbon button,.fleet-actions button{
  background:var(--wms-orange)!important;
  border:1px solid var(--wms-orange)!important;
  color:#fff!important;
}
.fleet-row-del{
  width:34px!important;
  height:30px!important;
  font-size:0!important;
  padding:0!important;
}
.fleet-row-del:before{content:"x";font-size:16px}
.kpi-title,.kpi-sub,.dashboard-panel-head,.bar-value,.bar-label,.list-row-item b,.list-row-item span,.job-line,.quick-link{
  font-weight:600!important;
}
.kpi-value{font-weight:700!important}
.dashboard-panel-head,.quick-link{text-transform:uppercase!important}

/* 2026-06 submit-only history, compact header, strict field states */
.topbar{
  min-height:58px!important;
  gap:16px!important;
  box-shadow:0 6px 18px rgba(15,35,70,.10)!important;
}
.top-search{
  width:min(280px,22vw)!important;
  flex:0 0 min(280px,22vw)!important;
  height:38px!important;
  margin:0 8px 0 auto!important;
}
.top-search input{
  height:38px!important;
  padding:0 14px!important;
  font-size:13px!important;
}
.topbar>.history-search{
  display:block!important;
}
.history-search{
  width:260px!important;
  flex:0 0 260px!important;
  height:38px!important;
  padding:0 12px!important;
  font-size:13px!important;
}
.history-submit{
  height:38px;
  min-width:68px;
  border:1px solid var(--wms-orange);
  border-radius:4px;
  background:#fff;
  color:var(--wms-orange);
  font-size:12px;
  font-weight:600;
  margin-left:-10px;
}
.history-submit:hover{
  background:var(--wms-orange);
  color:#fff;
}
.wms-menu-search-panel{
  position:absolute!important;
  top:42px!important;
  left:0!important;
  right:0!important;
  transform:none!important;
  width:100%!important;
  border:1px solid #d5dfeb!important;
  border-top:2px solid var(--wms-orange)!important;
  box-shadow:0 18px 42px rgba(15,35,70,.18)!important;
  border-radius:0 0 6px 6px!important;
  max-height:min(420px,70vh)!important;
}
.wms-menu-search-panel a{
  min-height:42px!important;
  padding:9px 12px!important;
  display:grid!important;
  grid-template-columns:1fr auto!important;
  gap:10px!important;
  align-items:center!important;
  color:var(--wms-blue-deep)!important;
  font-weight:500!important;
}
.wms-menu-search-panel a b{
  font-weight:500!important;
  letter-spacing:0!important;
}
.wms-menu-search-panel a span{
  position:static!important;
  height:auto!important;
  background:#edf2f7!important;
  color:#244769!important;
  border-radius:4px!important;
  padding:2px 8px!important;
  font-size:11px!important;
}
.wms-menu-search-panel a:hover{
  background:var(--wms-orange)!important;
  color:#fff!important;
}
.wms-menu-search-panel a:hover span{
  background:rgba(255,255,255,.25)!important;
  color:#fff!important;
}
.wms-menu-empty{padding:12px;color:#64748b;font-size:13px}
.smart-dropdown{
  padding-right:30px!important;
  background-image:linear-gradient(45deg,transparent 50%,#607088 50%),linear-gradient(135deg,#607088 50%,transparent 50%)!important;
  background-position:calc(100% - 16px) 50%,calc(100% - 10px) 50%!important;
  background-size:6px 6px,6px 6px!important;
  background-repeat:no-repeat!important;
}
.wms-smart-wrap{position:relative!important}
.wms-smart-wrap input.smart-dropdown{width:100%!important}
.wms-smart-menu{
  position:absolute;
  left:0;
  right:0;
  top:calc(100% + 2px);
  z-index:7000;
  max-height:318px;
  overflow:auto;
  background:#fff;
  border:1px solid #c8d5e3;
  border-radius:3px;
  box-shadow:0 12px 24px rgba(15,35,70,.16);
  display:none;
}
.wms-smart-wrap.open .wms-smart-menu{display:block}
.wms-smart-item{
  display:block;
  width:100%;
  min-height:34px;
  border:0;
  border-bottom:1px solid #edf2f7;
  background:#fff;
  color:#111827;
  text-align:left;
  padding:8px 11px;
  font-size:13px;
  font-weight:500;
  line-height:1.25;
}
.wms-smart-item:hover,.wms-smart-item.active{background:#eef3f8;color:#073763}
.wms-smart-empty{padding:10px 11px;color:#64748b;font-size:13px}
.fleet-file-name{display:block;margin-top:4px;color:#334155;font-size:11px;font-weight:600}
.grid-card-with-side{
  display:grid!important;
  grid-template-columns:310px minmax(0,1fr)!important;
  gap:14px!important;
  align-items:start!important;
}
.grid-side-list{
  border:1px solid #cfd9e6;
  background:#fff;
  border-radius:4px;
  overflow:hidden;
}
.grid-side-head{
  height:38px;
  display:flex;
  align-items:center;
  padding:0 10px;
  background:#f8fbff;
  border-bottom:1px solid #d6e1ec;
  color:#073763;
  font-weight:700;
}
.grid-side-list-body{max-height:390px;overflow:auto}
.grid-side-item{
  display:block;
  width:100%;
  border:0;
  border-bottom:1px solid #e5edf6;
  background:#fff;
  color:#1d3350;
  text-align:left;
  padding:11px 12px;
  font-weight:600;
}
.grid-side-item:hover,.grid-side-item.active{background:#073763;color:#fff}
.grid-side-empty{padding:12px;color:#64748b}
.grid-main-wrap{min-width:0;overflow:auto}
.wms-readonly-field,input:disabled,select:disabled,textarea:disabled,input[readonly],select[readonly],textarea[readonly]{
  background:#eaf1f8!important;
  color:#1c334d!important;
  opacity:1!important;
}
input:not(:disabled):not([readonly]),select:not(:disabled),textarea:not(:disabled):not([readonly]){
  background:#fff!important;
}
.wms-approval-modal{
  position:fixed;
  inset:0;
  z-index:6200;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(15,23,42,.58);
}
.wms-history-modal{
  position:fixed;
  inset:0;
  z-index:6200;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(15,23,42,.32);
  padding:18px;
}
.wms-approval-box{
  width:min(94vw,1760px);
  max-height:82vh;
  background:#fff;
  border-radius:6px;
  border:1px solid #d6e1ec;
  box-shadow:0 28px 70px rgba(15,35,70,.34);
  display:flex;
  flex-direction:column;
}
.wms-history-box{
  width:min(96vw,1760px);
  min-width:720px;
  max-height:82vh;
  background:#fff;
  border-radius:6px;
  border:1px solid #d6e1ec;
  box-shadow:0 28px 70px rgba(15,35,70,.28);
  display:flex;
  flex-direction:column;
}
.wms-history-head,.wms-approval-head{
  min-height:54px;
  border-bottom:1px solid #d9e2ee;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 16px;
}
.wms-history-head h2,.wms-approval-head h2{
  margin:0;
  color:#4b5563;
  font-size:20px;
  font-weight:600;
}
.wms-history-head button,.wms-approval-head button{
  width:38px;
  height:34px;
  border:0;
  background:#df451d;
  color:#fff;
  border-radius:2px;
  font-size:18px;
  font-weight:700;
}
.wms-history-meta{
  padding:12px 16px;
  color:#64748b;
  font-size:14px;
  border-bottom:1px solid #edf2f7;
}
.wms-history-scroll,.wms-approval-body{
  overflow:auto;
  padding:12px 16px;
}
.wms-history-scroll table,.wms-approval-body table{
  width:100%;
  min-width:1180px;
  border-collapse:collapse;
}
.wms-history-scroll table{min-width:0;table-layout:fixed}
.wms-approval-body table{min-width:1600px}
.wms-history-scroll th,.wms-approval-body th{
  background:#eef2f6;
  color:#5b6470;
  border:1px solid #d6e1ec;
  padding:9px 8px;
  font-size:13px;
  text-align:left;
  font-weight:700;
}
.wms-history-scroll td,.wms-approval-body td{
  border:1px solid #d6e1ec;
  padding:9px 8px;
  color:#5d6b7a;
  font-size:13px;
  vertical-align:top;
}
.wms-history-scroll th,.wms-history-scroll td{
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
  overflow-wrap:anywhere;
  word-break:break-word;
  line-height:1.25;
}
.wms-history-scroll a{display:block;overflow-wrap:anywhere;word-break:break-word;white-space:normal}
.wms-history-scroll a,.wms-approval-body a{
  color:#064f9e;
  font-weight:700;
  text-decoration:underline;
}
.wms-history-foot,.wms-approval-foot{
  min-height:58px;
  border-top:1px solid #edf2f7;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#f8fafc;
}
.wms-history-foot button,.wms-approval-foot button,.wms-approval-body button{
  height:36px;
  border:1px solid #df451d;
  background:#df451d;
  color:#fff;
  border-radius:4px;
  padding:0 22px;
  font-weight:600;
}
.wms-approval-body button+button{margin-left:6px;background:#fff;color:#df451d}
.wms-approval-bell{
  position:relative;
  width:42px;
  height:42px;
  border:1px solid #d4deea;
  border-radius:50%;
  background:#fff;
  color:var(--wms-blue-deep);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
}
.wms-approval-bell .bell-icon{font-size:18px}
.wms-approval-bell .bell-icon svg{width:21px;height:21px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round;display:block}
.wms-approval-bell em{
  position:absolute;
  top:-6px;
  right:-4px;
  min-width:18px;
  height:18px;
  border-radius:18px;
  background:#ff650f;
  color:#fff;
  font-size:11px;
  font-style:normal;
  line-height:18px;
}
.wms-alert-menu{
  position:absolute;
  width:350px;
  max-width:calc(100vw - 24px);
  background:#fff;
  border:1px solid #c8d7e8;
  border-radius:6px;
  box-shadow:0 18px 38px rgba(15,35,70,.22);
  padding:14px;
  z-index:6500;
}
.wms-alert-menu h3{
  margin:0 0 12px;
  color:var(--wms-blue-deep);
  font-size:15px;
  font-weight:900;
}
.wms-alert-menu button{
  width:100%;
  min-height:40px;
  border:1px solid #d3e0ee;
  background:#fff;
  color:#082d57;
  border-radius:4px;
  text-align:left;
  padding:0 12px;
  font-weight:900;
  cursor:pointer;
}
.wms-alert-menu button+button{margin-top:10px}
.wms-alert-menu button:hover{
  border-color:#ff650f;
  box-shadow:inset 3px 0 0 #ff650f;
}
.wms-notification-box{
  width:min(1040px,94vw);
  max-height:88vh;
  overflow:hidden;
  background:#f4f8fc;
  border:1px solid #b9cce0;
  border-radius:12px;
  box-shadow:0 28px 78px rgba(5,31,61,.36);
  display:flex;
  flex-direction:column;
}
.wms-notification-head{
  min-height:72px;
  padding:13px 18px;
  background:linear-gradient(105deg,#073763 0%,#0b4f82 100%);
  border-bottom:4px solid #ff650f;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.wms-notification-title{display:flex;align-items:center;gap:12px;min-width:0}
.wms-notification-title-mark{
  width:40px;height:40px;flex:0 0 40px;border-radius:10px;
  display:grid;place-items:center;background:rgba(255,255,255,.13);
  border:1px solid rgba(255,255,255,.3);font-size:19px;font-weight:900;
}
.wms-notification-title h2{margin:0;color:#fff;font-size:20px;font-weight:900;line-height:1.1}
.wms-notification-title p{margin:5px 0 0;color:#dcecff;font-size:11px;font-weight:700}
.wms-notification-head-actions{display:flex;align-items:center;gap:10px}
.wms-notification-count{
  min-width:34px;height:30px;padding:0 10px;border-radius:18px;background:#fff;color:#073763;
  display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:900;
}
.wms-notification-close{
  width:38px;height:36px;border:0;border-radius:7px;background:#ff650f;color:#fff;
  font-size:20px;font-weight:900;line-height:1;cursor:pointer;
}
.wms-notification-body{padding:14px;overflow:auto;min-height:130px}
.wms-notification-list{display:grid;gap:11px}
.wms-notification-card{
  position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;
  padding:14px 15px 14px 19px;background:#fff;border:1px solid #c9d8e7;border-radius:9px;
  box-shadow:0 5px 16px rgba(10,48,85,.07);color:#0c3158;cursor:pointer;overflow:hidden;
  transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease;
}
.wms-notification-card:before{content:"";position:absolute;inset:0 auto 0 0;width:5px;background:#ff650f}
.wms-notification-card:hover{border-color:#ff9b60;box-shadow:0 8px 22px rgba(10,48,85,.13);transform:translateY(-1px)}
.wms-notification-card-main{min-width:0}
.wms-notification-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:11px}
.wms-notification-card-head h3{margin:0;color:#073763;font-size:16px;font-weight:900}
.wms-notification-eyebrow{display:block;margin-bottom:3px;color:#63788f;font-size:9px;font-weight:900;letter-spacing:.09em;text-transform:uppercase}
.wms-notification-status{
  flex:0 0 auto;min-height:26px;padding:0 9px;border:1px solid #a7d7bd;border-radius:14px;
  background:#ecfdf3;color:#08733b;display:inline-flex;align-items:center;font-size:9px;font-weight:900;text-transform:uppercase;
}
.wms-notification-meta{display:grid;grid-template-columns:repeat(5,minmax(90px,1fr));gap:8px}
.wms-notification-meta div{min-width:0;padding:7px 8px;background:#f4f8fc;border:1px solid #dce6f0;border-radius:6px}
.wms-notification-meta span{display:block;margin-bottom:3px;color:#6b7d90;font-size:9px;font-weight:900;text-transform:uppercase}
.wms-notification-meta strong{display:block;color:#123a62;font-size:11px;font-weight:900;white-space:normal;overflow-wrap:anywhere}
.wms-notification-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap;min-width:188px}
.wms-notification-actions button,.wms-notification-foot button{
  min-height:36px;border:1px solid #0b4f82;border-radius:5px;padding:0 14px;background:#fff;color:#0b4f82;
  font-size:11px;font-weight:900;cursor:pointer;
}
.wms-notification-actions button.primary{background:#ff650f;border-color:#ff650f;color:#fff}
.wms-notification-foot button.primary{background:#ff650f;border-color:#ff650f;color:#fff}
.wms-notification-actions button:hover,.wms-notification-foot button:hover{box-shadow:0 0 0 3px rgba(255,101,15,.14);border-color:#ff650f}
.wms-notification-empty{padding:34px 18px;text-align:center;background:#fff;border:1px dashed #b9cce0;border-radius:8px;color:#60768d;font-weight:800}
.wms-notification-empty b{display:block;margin-bottom:5px;color:#0b3f6e;font-size:15px}
.wms-notification-loading{padding:34px;text-align:center;color:#60768d;font-weight:900}
.wms-notification-sublist{display:grid;gap:8px;margin-top:10px}
.wms-notification-foot{min-height:58px;padding:10px 14px;border-top:1px solid #d6e2ee;background:#edf4fa;display:flex;justify-content:flex-end;gap:8px}
.wms-notification-foot button{min-width:88px;background:#0b4f82;color:#fff}
.wms-notification-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.wms-notification-detail-grid div{padding:10px;background:#fff;border:1px solid #d4e0ec;border-radius:6px}
.wms-notification-detail-grid span{display:block;color:#6b7d90;font-size:9px;font-weight:900;text-transform:uppercase}
.wms-notification-detail-grid strong{display:block;margin-top:4px;color:#0b3f6e;font-size:12px;overflow-wrap:anywhere}
@media(max-width:900px){
  .wms-notification-card{grid-template-columns:1fr}.wms-notification-actions{justify-content:flex-start;min-width:0}
  .wms-notification-meta{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:560px){
  .wms-notification-head{padding:11px}.wms-notification-title-mark{display:none}.wms-notification-title h2{font-size:17px}
  .wms-notification-meta,.wms-notification-detail-grid{grid-template-columns:1fr}.wms-notification-card-head{display:block}.wms-notification-status{margin-top:7px}
}
.wms-pr-box{width:min(96vw,1500px);max-height:88vh}
.wms-pr-body{padding:0!important}
.wms-pr-grid{display:grid;grid-template-columns:minmax(420px,.85fr) minmax(0,1.35fr);min-height:620px}
.wms-pr-list{border-right:1px solid #d6e1ec;background:#f8fbff;min-width:0}
.wms-pr-list-head{height:42px;display:flex;align-items:center;padding:0 12px;background:#073763;color:#fff;font-weight:900;text-transform:uppercase}
.wms-pr-list-scroll{height:578px;overflow:auto}
.wms-pr-list table{width:100%;min-width:640px!important;border-collapse:collapse}
.wms-pr-list th{background:#eef2f6;color:#334155;border:1px solid #d6e1ec;padding:8px;font-size:12px;text-align:left}
.wms-pr-list td{border:1px solid #d6e1ec;padding:8px;color:#0a2444;font-size:12px;font-weight:800;vertical-align:top;background:#fff}
.wms-pr-list tr{cursor:pointer}.wms-pr-list tr:hover td,.wms-pr-list tr.active td{background:#eef6ff}.wms-pr-list tr.active td:first-child{border-left:4px solid #ff650f}
.wms-pr-detail{min-width:0;display:flex;flex-direction:column}
.wms-pr-detail-head{min-height:64px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-bottom:1px solid #d6e1ec;background:#fff}
.wms-pr-detail-head h3{margin:0;color:#073763;font-size:17px;font-weight:900;text-transform:uppercase}
.wms-pr-detail-head small{display:block;margin-top:4px;color:#64748b;font-weight:800}
.wms-pr-status{display:inline-flex;align-items:center;min-height:28px;padding:0 10px;background:#eef4fb;border:1px solid #cbd8e6;border-radius:4px;color:#073763;font-weight:900}
.wms-pr-status.PENDING{background:#fff7ed;color:#c2410c;border-color:#fed7aa}.wms-pr-status.VERIFIED{background:#eff6ff;color:#1d4ed8;border-color:#bfdbfe}.wms-pr-status.APPROVED{background:#ecfdf5;color:#047857;border-color:#a7f3d0}.wms-pr-status.REJECTED{background:#fef2f2;color:#b91c1c;border-color:#fecaca}
.wms-pr-tabs{display:flex;gap:8px;padding:10px 12px;border-bottom:1px solid #d6e1ec;background:#f8fbff}
.wms-pr-tabs button{height:32px;border:1px solid #cbd8e6;background:#fff;color:#073763;border-radius:4px;padding:0 14px;font-weight:900;cursor:pointer}
.wms-pr-tabs button.active{background:#ff650f;border-color:#ff650f;color:#fff}
.wms-pr-page{padding:12px;overflow:auto;min-height:456px}
.wms-pr-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.wms-pr-field{display:block;min-width:0}.wms-pr-field.full{grid-column:1/-1}
.wms-pr-field span,.wms-pr-remarks span{display:block;margin-bottom:5px;color:#073763;font-size:11px;font-weight:900;text-transform:uppercase}
.wms-pr-field input,.wms-pr-field textarea,.wms-pr-remarks textarea{width:100%;border:1px solid #c5d3e2;background:#fff;color:#1c334d;padding:6px 8px;font-weight:800;border-radius:3px}
.wms-pr-field input{height:32px}.wms-pr-field textarea{height:74px;resize:vertical}.wms-pr-remarks{display:block;margin-top:12px}.wms-pr-remarks textarea{height:74px;resize:vertical}
.wms-pr-doc-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px}.wms-pr-doc-tabs button{border:1px solid #cbd8e6;background:#fff;color:#073763;border-radius:3px;min-height:30px;padding:4px 8px;font-weight:900;cursor:pointer}.wms-pr-doc-tabs button.active{background:#ff650f;border-color:#ff650f;color:#fff}
.wms-pr-doc-preview{height:452px;border:1px solid #d6e1ec;background:#fff;overflow:auto;padding:10px;color:#64748b;font-weight:800}.wms-pr-doc-preview iframe{width:100%;height:428px;border:0}.wms-pr-doc-preview img{max-width:100%;height:auto;display:block;margin:auto}.wms-pr-doc-preview pre{white-space:pre-wrap;word-break:break-word}
.wms-pr-doc-page{padding:8px!important}
.wms-pr-doc-combined{height:604px!important;padding:8px;background:#f8fbff}
.wms-pr-doc-item{margin:0 0 12px;border:1px solid #cbd8e6;background:#fff}
.wms-pr-doc-item.collapsed{margin-bottom:7px}
.wms-pr-doc-name{min-height:34px;padding:4px 6px 4px 8px;border-bottom:1px solid #d6e1ec;background:#eef4fb;color:#073763;font-size:12px;font-weight:900;text-transform:uppercase;display:flex;align-items:center;justify-content:space-between;gap:8px}
.wms-pr-doc-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wms-pr-doc-tools{display:inline-flex;align-items:center;justify-content:flex-end;gap:5px;flex:0 0 auto;color:#073763}
.wms-pr-doc-zoom{min-width:32px;color:#073763;font-size:11px;font-weight:900;text-align:right}
.wms-approval-body .wms-pr-doc-tools .wms-pr-doc-tool{width:18px!important;height:18px!important;min-width:18px!important;min-height:18px!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:#073763!important;display:inline-grid;place-items:center;cursor:pointer;box-shadow:none!important;outline:0!important}
.wms-approval-body .wms-pr-doc-tools .wms-pr-doc-tool:hover,.wms-approval-body .wms-pr-doc-tools .wms-pr-doc-tool:focus,.wms-approval-body .wms-pr-doc-tools .wms-pr-doc-tool:focus-visible{margin:0!important;border:0!important;background:transparent!important;color:#1359a6!important;box-shadow:none!important;outline:0!important}
.wms-approval-body .wms-pr-doc-tools .wms-pr-doc-tool svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.wms-pr-doc-body[hidden]{display:none!important}
.wms-pr-doc-item.collapsed .wms-pr-doc-name{border-bottom:0}
.wms-pr-doc-source{background:#fff}
.wms-pr-doc-source-active{outline:3px solid #ff650f;outline-offset:-3px;box-shadow:0 0 0 3px rgba(255,101,15,.18) inset}
.wms-pr-pdf-source{padding:8px;background:#eaf0f7;overflow:auto}
.wms-pr-pdf-pages{width:100%;display:flex;flex-direction:column;align-items:center;gap:16px}
.wms-pr-pdf-page-frame{max-width:100%;padding:0 8px 10px;background:#f7f9fc;border:1px solid #c9d6e4;box-shadow:0 2px 8px rgba(15,35,70,.12);scroll-margin:18px}
.wms-pr-pdf-page-frame.active{border-color:#ff650f;box-shadow:0 0 0 2px rgba(255,101,15,.16),0 3px 12px rgba(15,35,70,.16)}
.wms-pr-pdf-page-label{height:30px;display:flex;align-items:center;justify-content:center;color:#526477;font-size:11px;font-weight:900;text-transform:uppercase}
.wms-pr-pdf-page{position:relative;margin:0 auto;background:#fff;line-height:0;box-shadow:0 1px 6px rgba(15,35,70,.18);overflow:hidden}
.wms-pr-pdf-page canvas{display:block}
.wms-pr-doc-highlight{position:absolute;border:3px solid #ff650f;background:rgba(255,101,15,.24);box-shadow:0 0 0 2px rgba(255,255,255,.85),0 0 12px rgba(255,101,15,.45);pointer-events:none;z-index:4}
.wms-pr-doc-item iframe{height:560px}.wms-pr-doc-item .wms-pr-doc-image-wrap{padding:8px}.wms-pr-doc-item .wms-pr-ocr-note,.wms-pr-doc-item .wms-pr-ocr-text{margin:8px}
.wms-pr-empty{padding:18px;color:#64748b;font-weight:900}
.wms-pr-foot{gap:8px}.wms-pr-foot button[data-pr-action="approve"]{background:#168a36;border-color:#168a36;color:#fff}.wms-pr-foot button[data-pr-action="reject"]{background:#dc2626;border-color:#dc2626;color:#fff}.wms-pr-foot button[data-pr-action="verify"]{background:#1359a6;border-color:#1359a6;color:#fff}
.wms-pr-list-only{width:min(1180px,94vw);max-height:82vh}
.wms-pr-request-table{width:100%;min-width:0!important;border-collapse:collapse;table-layout:fixed}
.wms-pr-request-table th{background:#073763;color:#fff;border:1px solid #1b4d79;padding:10px 9px;font-size:12px;text-align:left;text-transform:uppercase}
.wms-pr-request-table td{border:1px solid #d6e1ec;padding:9px;color:#0a2444;font-size:13px;font-weight:800;background:#fff;vertical-align:middle;white-space:normal;word-break:break-word}
.wms-pr-request-table th:nth-child(1){width:16%}.wms-pr-request-table th:nth-child(2){width:34%}.wms-pr-request-table th:nth-child(3){width:22%}.wms-pr-request-table th:nth-child(4){width:14%}.wms-pr-request-table th:nth-child(5){width:14%}.wms-pr-request-table th:nth-child(6),.wms-pr-request-table td:nth-child(6){display:none}
.wms-pr-request-table tr{cursor:pointer}
.wms-pr-request-table tr:hover td{background:#eef6ff}
.wms-pr-review-box{width:min(1500px,96vw);max-height:90vh}
.wms-pr-review-grid{display:grid;grid-template-columns:minmax(420px,1fr) minmax(420px,1fr);min-height:620px}
.wms-pr-review-fields{border-right:1px solid #d6e1ec;min-width:0;background:#fff}
.wms-pr-review-docs{min-width:0;background:#f8fbff}
.wms-pr-review-box .wms-pr-page{height:548px;overflow:auto}
.wms-pr-review-box .wms-pr-doc-preview{height:500px}
.wms-pr-screen-replica{
  min-width:760px;
  background:#eaf2fb;
  border:1px solid #c8d8e8;
  box-shadow:0 4px 14px rgba(15,45,80,.08);
}
.wms-pr-screen-titlebar{
  min-height:48px;
  background:#073763;
  border-bottom:4px solid #ff650f;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:8px 10px;
}
.wms-pr-screen-titlebar strong{
  font-size:15px;
  font-weight:900;
}
.wms-pr-screen-titlebar div{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}
.wms-pr-screen-titlebar button{
  height:30px;
  border:0;
  border-radius:4px;
  background:#ff650f;
  color:#fff;
  padding:0 10px;
  font-weight:900;
  opacity:.9;
}
.wms-pr-screen-section{
  background:#fff;
  border-bottom:1px solid #cfddeb;
}
.wms-pr-screen-section h4{
  margin:0;
  height:36px;
  display:flex;
  align-items:center;
  padding:0 10px;
  color:#073763;
  font-size:14px;
  font-weight:900;
  border-bottom:1px solid #d6e1ec;
}
.wms-pr-screen-fields{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px 12px;
  padding:12px;
}
.wms-pr-screen-field{
  min-width:0;
  display:block;
}
.wms-pr-screen-field.wide{
  grid-column:span 2;
}
.wms-pr-screen-field span{
  display:block;
  margin-bottom:4px;
  color:#073763;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
}
.wms-pr-screen-field input,
.wms-pr-screen-field textarea{
  width:100%;
  min-height:34px;
  border:1px solid #bfcfe0;
  border-radius:4px;
  background:#fff;
  color:#102a44;
  padding:6px 8px;
  font-weight:900;
}
.wms-pr-screen-field textarea{
  height:64px;
  resize:vertical;
}
.wms-pr-screen-field input:focus,
.wms-pr-screen-field textarea:focus,
.wms-pr-screen-grid input:focus{
  outline:2px solid rgba(255,101,15,.35);
  border-color:#ff650f;
  background:#fffaf5!important;
}
.wms-pr-screen-grid-wrap{
  margin:0;
  padding:10px;
  overflow:auto;
}
.wms-pr-screen-grid{
  width:max-content!important;
  min-width:1120px!important;
  border-collapse:collapse;
  table-layout:fixed;
}
.wms-pr-screen-grid th{
  height:34px;
  background:#073763!important;
  color:#fff!important;
  border:1px solid #1b4d79!important;
  padding:6px 8px!important;
  font-size:11px!important;
  font-weight:900!important;
  text-transform:uppercase;
  white-space:nowrap;
}
.wms-pr-screen-grid td{
  border:1px solid #d6e1ec!important;
  background:#f9fbfd!important;
  padding:4px!important;
  min-width:92px;
}
.wms-pr-screen-grid td:first-child,
.wms-pr-screen-grid th:first-child{
  min-width:42px;
  width:42px;
  text-align:center;
}
.wms-pr-screen-grid input{
  width:100%;
  min-width:84px;
  height:30px;
  border:1px solid #c4d2e2;
  border-radius:3px;
  background:#fff;
  color:#102a44;
  padding:4px 6px;
  font-weight:800;
}
.wms-pr-screen-field input[readonly],
.wms-pr-screen-field textarea[readonly],
.wms-pr-screen-grid input[readonly]{
  background:#e9f1f8;
  color:#3f5875;
  cursor:default;
}
.wms-pr-doc-image-wrap{
  min-height:240px;
  display:flex;
  justify-content:center;
  align-items:flex-start;
  background:#f8fbff;
  border:1px solid #d6e1ec;
  margin-bottom:10px;
  overflow:auto;
}
.wms-pr-ocr-text{
  margin-top:10px;
  border:1px solid #d6e1ec;
  background:#fcfdff;
  color:#172033;
  padding:12px;
  white-space:pre-wrap;
  font:12px/1.55 Consolas,"Courier New",monospace;
}
.wms-pr-ocr-note{
  margin-top:10px;
  padding:12px;
  border:1px dashed #cbd8e6;
  color:#64748b;
  background:#fff;
  font-weight:800;
}
.wms-pr-ocr-hit{
  background:#ffec8a;
  color:#111827;
  outline:2px solid #ff650f;
  border-radius:2px;
  padding:0 1px;
}
@media(max-width:1100px){.wms-pr-grid{grid-template-columns:1fr}.wms-pr-list-scroll{height:260px}.wms-pr-fields{grid-template-columns:1fr}}
@media(max-width:1100px){.wms-pr-review-grid{grid-template-columns:1fr}.wms-pr-review-fields{border-right:0;border-bottom:1px solid #d6e1ec}.wms-pr-review-box .wms-pr-page{height:auto;max-height:52vh}.wms-pr-review-box .wms-pr-doc-preview{height:360px}.wms-pr-screen-fields{grid-template-columns:1fr}.wms-pr-screen-field.wide{grid-column:auto}}
.wms-profile-modal{
  position:fixed;
  inset:0;
  z-index:6250;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(15,23,42,.48);
  padding:18px;
}
.wms-profile-box{
  width:min(940px,96vw);
  background:#fff;
  border:1px solid #cfdbea;
  border-radius:10px;
  box-shadow:0 28px 70px rgba(15,35,70,.30);
  overflow:hidden;
}
.wms-profile-head{
  height:64px;
  background:#1359a6;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 20px;
}
.wms-profile-head h2{margin:0;font-size:20px;font-weight:700}
.wms-profile-head button{
  width:38px;
  height:34px;
  border:0;
  border-radius:6px;
  background:#df451d;
  color:#fff;
  font-weight:700;
  font-size:18px;
}
.wms-profile-body{padding:20px;background:#fff}
.wms-profile-photo-row{
  display:grid;
  grid-template-columns:86px minmax(0,1fr);
  gap:22px;
  align-items:center;
  margin-bottom:16px;
}
.wms-profile-avatar-preview{
  width:86px;
  height:86px;
  border-radius:50%;
  border:2px solid #0b5bb2;
  background:#eef6ff;
  color:#064f9e;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
  font-weight:700;
  overflow:hidden;
}
.wms-profile-avatar-preview img{width:100%;height:100%;object-fit:cover}
.wms-profile-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.wms-profile-field.full{grid-column:1/-1}
.wms-profile-field label{
  display:block;
  color:#1e2f49;
  font-weight:600;
  margin:0 0 6px;
  font-size:13px;
}
.wms-profile-field input{
  width:100%;
  height:44px;
  border:1px solid #c9d7e6;
  border-radius:5px;
  background:#fff;
  padding:0 12px;
  color:#1f2937;
  font-size:15px;
}
.wms-profile-field input:focus{
  border-color:var(--wms-orange);
  box-shadow:0 0 0 4px var(--wms-focus);
  outline:0;
}
.wms-profile-foot{
  min-height:72px;
  background:#f8fafc;
  border-top:1px solid #edf2f7;
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:10px;
  padding:0 20px;
}
.wms-profile-foot button{
  height:42px;
  border-radius:7px;
  border:0;
  padding:0 18px;
  color:#fff;
  font-weight:700;
}
.wms-profile-foot .secondary{background:#64748b}
.wms-profile-foot .primary{background:#0b5bb2}
.report-filter-toolbar{
  display:flex;
  flex-direction:column;
  gap:10px;
  width:100%;
}
.report-date-filter.excel-date{
  display:inline-grid;
  grid-template-columns:50px minmax(170px,310px) minmax(170px,310px);
  width:max-content;
  margin:0;
}
.report-filter-row{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  gap:4px;
  position:relative;
}
.report-filter-menu-wrap{position:relative}
#reportFilters.report-filter-ready,.simple-grid#reportFilters{
  display:block!important;
}
.report-excel-menu-btn{
  height:40px;
  min-width:120px;
  border:1px solid #168bff;
  background:#e8f4ff;
  color:#168bff;
  border-radius:4px;
  padding:0 12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-weight:500;
  font-size:14px;
}
.report-excel-menu-btn.active{
  background:#168bff;
  color:#fff;
}
.report-filter-dropdown{
  position:absolute;
  left:0;
  top:46px;
  width:360px;
  max-height:420px;
  overflow:hidden;
  background:#fff;
  border:1px solid #d5dfeb;
  box-shadow:0 18px 38px rgba(15,35,70,.22);
  z-index:120;
  display:none;
}
.report-filter-dropdown.open{display:block}
.report-filter-searchline{
  display:grid;
  grid-template-columns:52px 1fr;
  padding:10px 18px;
  border-bottom:1px solid #edf2f7;
}
.report-filter-searchline span{
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid #d9e2ee;
  border-right:0;
  color:#0f2743;
  font-size:22px;
}
.report-filter-searchline input{
  height:43px!important;
  border:1px solid #168bff!important;
  border-radius:0 4px 4px 0!important;
  background:#fff!important;
  font-size:15px!important;
}
.report-filter-options{
  max-height:315px;
  overflow:auto;
}
.report-filter-option{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:42px;
  border-bottom:1px solid #edf2f7;
  padding:8px 18px;
  color:#475569;
  font-size:15px;
}
.report-filter-option input{width:16px!important;height:16px!important;flex:0 0 16px}
.report-filter-option:hover{background:#f8fbff}
@media(max-width:900px){
  .wms-history-modal{padding:76px 8px 8px}
  .wms-history-box{width:100%;min-width:0}
  .wms-profile-grid{grid-template-columns:1fr}
}
.approval-remark-input{
  width:210px;
  height:31px;
  border:1px solid #cbd5e1;
  border-radius:3px;
  background:#fff;
  padding:4px 8px;
  color:#0f2743;
}
.expense-doc-tab{
  position:fixed;
  right:0;
  top:116px;
  z-index:3500;
  width:34px;
  min-height:92px;
  border:1px solid #1b456c;
  background:#062d52;
  color:#fff;
  writing-mode:vertical-rl;
  transform:rotate(180deg);
  font-size:10px;
  font-weight:700;
}
.expense-doc-panel{
  position:fixed;
  right:-620px;
  top:112px;
  width:min(620px,calc(100vw - 20px));
  height:calc(100vh - 126px);
  background:#fff;
  border:1px solid #b8c8da;
  box-shadow:-14px 0 26px rgba(15,35,70,.20);
  z-index:3600;
  transition:right .18s ease;
  display:flex;
  flex-direction:column;
}
.expense-doc-panel.open{right:0}
.expense-doc-head{
  height:44px;
  background:#073763;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 12px;
  font-weight:700;
}
.expense-doc-head button{
  width:34px;
  height:30px;
  border:0;
  background:#df451d;
  color:#fff;
  border-radius:3px;
  font-weight:700;
}
.expense-doc-body{padding:10px;overflow:auto}
.document-in-panel{margin-top:0!important}
.doc-side-tabs{gap:2px!important}
.doc-side-tab{
  width:30px!important;
  min-height:56px!important;
  margin:1px 0!important;
  font-size:9px!important;
  letter-spacing:0!important;
}
.ego-doc-tab{
  width:30px!important;
  min-height:66px!important;
  margin:1px 0!important;
  font-size:9px!important;
  letter-spacing:0!important;
}
.doc-field input[type=date],.doc-field input[type=datetime-local],.ldd-field input[type=date],.ldd-field input[type=datetime-local],.movement-field input[type=date],.movement-field input[type=datetime-local]{
  max-width:190px;
}
.doc-field input[type=number],.ldd-field input[type=number],.movement-field input[type=number],.wgh-row input[type=number]{
  max-width:180px;
}
.dash-dual-row{
  display:grid;
  grid-template-columns:76px 1fr 1fr 148px;
  gap:8px;
  align-items:center;
  min-height:34px;
  color:#334155;
}
.dash-dual-row b{font-weight:600}
.dash-dual-row span{
  height:10px;
  background:#edf2f7;
  border-radius:10px;
  overflow:hidden;
}
.dash-dual-row i{
  display:block;
  height:100%;
  background:#2563eb;
}
.dash-dual-row i.expense{background:#ff650f}
.dash-dual-row em{
  font-style:normal;
  font-size:12px;
  color:#64748b;
}
.dashboard-panel[draggable=true]{cursor:move}
.dashboard-main[data-dash-zone="main"]{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  align-items:stretch;
}
.dashboard-main[data-dash-zone="main"] .dashboard-panel[data-dash-card="sales-expenses"],
.dashboard-main[data-dash-zone="main"] .dashboard-panel[data-dash-card="inward-outward-monthly"]{
  min-height:342px;
  height:100%;
}
.dashboard-main[data-dash-zone="main"] .dashboard-panel[data-dash-card="sales-expenses"] .dashboard-panel-body,
.dashboard-main[data-dash-zone="main"] .dashboard-panel[data-dash-card="inward-outward-monthly"] .dashboard-panel-body{
  height:calc(100% - 39px);
}
.dashboard-main[data-dash-zone="main"] .dashboard-panel[data-dash-card="recent-movements"]{
  grid-column:1/-1;
}
.dashboard-main[data-dash-zone="main"] .dashboard-panel-body{
  min-height:0;
}
.dashboard-main[data-dash-zone="main"] #dashRecentMovements{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(360px,1fr));
  gap:0 18px;
}
.dash-compare-chart{display:grid;gap:8px}
.dash-compare-row{display:grid;grid-template-columns:72px minmax(0,1fr);gap:10px;align-items:center;border:1px solid #d6e1ec;border-radius:6px;background:#fff;padding:7px 10px;box-shadow:0 1px 4px rgba(15,35,70,.06)}
.dash-compare-row>b{color:#073763;font-size:13px;font-weight:800}
.dash-compare-row label{display:flex;justify-content:space-between;gap:10px;margin:0 0 3px;color:#334155;font-size:11px;font-weight:600}
.dash-compare-row label+ i{margin-bottom:6px}
.dash-compare-row label em{font-style:normal;color:#073763;font-weight:800}
.dash-compare-row i{display:block;height:10px;border-radius:10px;background:#edf4fb;overflow:hidden}
.dash-compare-row i u{display:block;height:100%;background:#1d6fb8;border-radius:10px;text-decoration:none}
.dash-compare-row i u.expense{background:#ff650f}
.dash-vertical-chart{display:grid;grid-template-columns:repeat(5,minmax(112px,1fr));gap:10px;min-height:254px;align-items:stretch}
.dash-vertical-month{display:grid;grid-template-rows:176px auto auto;justify-items:center;gap:5px;border:1px solid #d6e1ec;border-radius:6px;background:#fff;padding:10px 8px;box-shadow:0 1px 4px rgba(15,35,70,.06)}
.dash-vertical-bars{display:flex;align-items:flex-end;justify-content:center;gap:18px;width:100%;height:176px;border-bottom:1px solid #d6e1ec;background:linear-gradient(to top,rgba(7,55,99,.08) 1px,transparent 1px) 0 0/100% 44px}
.dash-vertical-bars span{display:flex;align-items:flex-end;width:28px;height:168px;border-radius:5px 5px 0 0;background:#eef4fb;overflow:hidden}
.dash-vertical-bars i{display:block;width:100%;background:#1d6fb8;border-radius:5px 5px 0 0}
.dash-vertical-bars i.expense{background:#ff650f}
.dash-vertical-month>b{color:#073763;font-size:12px;font-weight:800}.dash-vertical-month>em{font-style:normal;color:#334155;font-size:10px;font-weight:700;text-align:center}
.dash-pie-layout{display:grid;grid-template-columns:190px minmax(0,1fr);gap:18px;align-items:center}
.dash-pie{width:176px;height:176px;border-radius:50%;display:grid;place-items:center;box-shadow:inset 0 0 0 1px #d6e1ec,0 2px 8px rgba(15,35,70,.08)}
.dash-pie span{width:82px;height:82px;border-radius:50%;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#073763;font-weight:800;box-shadow:0 0 0 1px #d6e1ec}
.dash-pie span small{font-size:10px;color:#64748b}
.dash-pie-legend{display:grid;gap:7px}
.dash-pie-legend div{display:grid;grid-template-columns:12px minmax(0,1fr) auto;gap:8px;align-items:center;border-bottom:1px solid #edf2f7;padding-bottom:5px}
.dash-pie-legend i{width:12px;height:12px;border-radius:2px}
.dash-pie-legend b{font-size:12px;color:#334155;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dash-pie-legend em{font-style:normal;font-size:11px;color:#073763;font-weight:700;white-space:nowrap}
.dash-pie-summary{margin-top:10px;border-top:1px solid #edf2f7;padding-top:8px;color:#073763;font-size:12px;font-weight:700}
.dash-chart-legend{display:flex;justify-content:flex-end;gap:14px;margin-top:8px;color:#334155;font-size:11px;font-weight:700}.dash-chart-legend span{display:inline-flex;align-items:center;gap:5px}.dash-chart-legend i{width:10px;height:10px;border-radius:2px;background:#1d6fb8}.dash-chart-legend i.expense{background:#ff650f}
.report-date-filter{
  display:inline-grid;
  grid-template-columns:50px minmax(190px,260px) minmax(190px,260px);
  gap:0;
  align-items:center;
  margin:0 12px 10px 0;
  vertical-align:top;
}
.report-date-filter .report-filter-icon{
  height:42px;
  border:1px solid #168bff;
  background:#e8f4ff;
  color:#168bff;
  border-radius:4px 0 0 4px;
  font-size:0;
}
.report-date-filter .report-filter-icon:before{
  content:"";
  display:inline-block;
  width:16px;
  height:16px;
  border:2px solid #168bff;
  border-top:5px solid #168bff;
}
.report-date-filter input{
  height:42px!important;
  border-left:0!important;
  border-radius:0!important;
}
.report-date-filter input:last-child{border-radius:0 4px 4px 0!important}
.report-filter-chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}
.report-chip{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  border:1px solid #168bff;
  border-radius:4px;
  overflow:hidden;
  background:#fff;
}
.report-chip span{
  min-width:112px;
  height:40px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 12px;
  background:#f2f8ff;
  color:#168bff;
  font-size:13px;
  font-weight:500;
}
.report-chip input{
  width:150px!important;
  height:40px!important;
  border:0!important;
  border-left:1px solid #cfe3ff!important;
  border-radius:0!important;
  padding:0 10px!important;
}

/* Final shared behavior layer: messages and action colors must be uniform on every screen. */
.msg,.movement-msg,.cfs-msg,.tx-msg,.ewo-msg,.gst-msg{
  position:fixed!important;
  left:50%!important;
  top:50%!important;
  right:auto!important;
  bottom:auto!important;
  transform:translate(-50%,-50%)!important;
  min-width:min(420px,92vw)!important;
  max-width:min(560px,92vw)!important;
  background:#fff!important;
  color:#0f2743!important;
  border:1px solid #d5dfeb!important;
  border-top:4px solid var(--wms-orange)!important;
  border-radius:8px!important;
  box-shadow:0 22px 55px rgba(15,35,70,.24)!important;
  padding:18px 22px!important;
  text-align:center!important;
  font-size:14px!important;
  font-weight:700!important;
  z-index:9000!important;
}
button.green,.green.screen-btn,.green.doc-btn,.green.fin-btn,.green.inv-btn,.green.simple-btn,.green.mti-btn,.green.ego-btn,.green.inward-btn,.green.wgh-btn,.green.fx-btn,.green.exp-btn,.green.jex-btn,.green.gx-btn{
  background:var(--wms-orange)!important;
  color:#fff!important;
  border-color:var(--wms-orange)!important;
}
button.red,.red.screen-btn,.red.doc-btn,.red.fin-btn,.red.inv-btn,.red.simple-btn,.red.mti-btn,.red.ego-btn,.red.inward-btn,.red.wgh-btn,.red.fx-btn,.red.exp-btn,.red.jex-btn,.red.gx-btn{
  background:#fff!important;
  color:var(--wms-orange)!important;
  border:1px solid var(--wms-orange)!important;
}
button.blue,.blue.screen-btn,.blue.doc-btn,.blue.fin-btn,.secondary.inv-btn,.blue.simple-btn,.blue.mti-btn,.blue.ego-btn,.blue.inward-btn,.blue.wgh-btn,.blue.fx-btn,.blue.exp-btn,.blue.jex-btn,.blue.gx-btn{
  background:var(--wms-blue)!important;
  color:#fff!important;
  border-color:var(--wms-blue)!important;
}
.wms-center-dialog{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.46);
  z-index:9100;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
}
.wms-center-box{
  width:min(440px,94vw);
  background:#fff;
  border:1px solid #d5dfeb;
  border-top:4px solid var(--wms-orange);
  border-radius:8px;
  box-shadow:0 22px 55px rgba(15,35,70,.28);
  padding:18px;
}
.wms-center-box h3{
  margin:0 0 12px;
  color:#073763;
  font-size:16px;
  font-weight:700;
}
.wms-center-box textarea{
  width:100%;
  min-height:86px;
  border:1px solid #cbd5e1;
  border-radius:5px;
  background:#fff;
  padding:9px 10px;
  color:#0f2743;
  resize:vertical;
}
.wms-center-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:12px;
}
.wms-center-actions button{
  height:34px;
  border-radius:4px;
  padding:0 16px;
  font-weight:700;
  border:1px solid var(--wms-orange);
}
.wms-center-actions .primary{background:var(--wms-orange);color:#fff}
.wms-center-actions .secondary{background:#fff;color:var(--wms-orange)}
@media(max-width:900px){
  .topbar{padding:8px 12px!important;gap:10px!important}
  .top-search,.history-search{display:none!important}
  .profile{min-width:56px!important}
  .profile .profile-text{display:none!important}
  .sidebar{width:58px!important}
  .sidebar:hover{width:280px!important}
  .workarea{margin-left:58px!important;padding:70px 10px 20px!important}
  .login-shell{grid-template-columns:1fr!important}
  .login-brand{min-height:38vh!important;padding:42px 24px!important}
  .login-brand img{width:min(360px,72%)!important}
  .login-form-panel{padding:40px 28px!important}
}

/* Dashboard clickable KPI details and expiring-document modal */
.dashboard-home .kpi-card.is-clickable{cursor:pointer!important;transition:transform .14s ease,box-shadow .14s ease,border-color .14s ease;position:relative}
.dashboard-home .kpi-card.is-clickable:after{content:"View details";position:absolute;right:11px;bottom:8px;color:#1d6fb8;font-size:9px;font-weight:800;opacity:.78}
.dashboard-home .kpi-card.is-clickable:hover,.dashboard-home .kpi-card.is-clickable:focus{transform:translateY(-2px);box-shadow:0 8px 20px rgba(15,35,70,.14);border-color:#8fb7dd;outline:none}
.dashboard-home .kpi-card[data-dash-card="expiring-documents"] .kpi-value{color:#c2410c}
.dashboard-detail-modal{position:fixed;inset:0;background:rgba(7,30,54,.58);z-index:12000;display:none;align-items:center;justify-content:center;padding:18px}
.dashboard-detail-modal.open{display:flex}
.dashboard-detail-dialog{width:min(1120px,96vw);max-height:86vh;background:#fff;border:1px solid #9fb4ca;border-radius:8px;box-shadow:0 24px 60px rgba(5,25,48,.32);display:flex;flex-direction:column;overflow:hidden}
.dashboard-detail-head{min-height:50px;background:#073763;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:8px 13px;border-bottom:4px solid #ff650f}
.dashboard-detail-head>div{display:flex;flex-direction:column;gap:2px}.dashboard-detail-head b{font-size:14px}.dashboard-detail-head small{font-size:10px;opacity:.86}
.dashboard-detail-head button{width:36px;height:32px;border:0;border-radius:4px;background:#dc2626;color:#fff;font-size:22px;font-weight:800;line-height:1}
.dashboard-detail-toolbar{padding:10px;border-bottom:1px solid #d6e1ec;background:#f7fbff}
.dashboard-detail-toolbar input{width:100%;height:34px;border:1px solid #b9c9da;border-radius:4px;padding:5px 10px;font-size:12px}
.dashboard-detail-body{padding:10px;overflow:auto;display:grid;gap:8px}
.dashboard-detail-row{display:grid;grid-template-columns:minmax(200px,1.35fr) minmax(220px,1.65fr) minmax(170px,.9fr) 110px;gap:10px;align-items:center;min-height:58px;border:1px solid #d7e2ed;border-radius:6px;background:#fff;padding:9px 10px;color:#1e293b;text-decoration:none;box-shadow:0 1px 4px rgba(15,35,70,.05)}
.dashboard-detail-row:hover{background:#f2f8ff;border-color:#8fb7dd;color:#0b315f}.dashboard-detail-row>div{min-width:0}.dashboard-detail-row b{display:block;color:#073763;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dashboard-detail-row span{display:block;color:#64748b;font-size:10px;font-weight:700;margin-top:3px;white-space:normal}.dashboard-detail-row em{font-style:normal;color:#334155;font-size:11px;font-weight:800}.dashboard-detail-row strong{justify-self:end;border-radius:999px;background:#e8f3ff;color:#075eaa;padding:5px 9px;font-size:10px;white-space:nowrap}.dashboard-detail-row strong.danger{background:#fee2e2;color:#b91c1c}.dashboard-detail-row strong.warning{background:#ffedd5;color:#c2410c}.dashboard-detail-row strong.success{background:#dcfce7;color:#166534}.dashboard-detail-row strong.neutral{background:#e2e8f0;color:#334155}
.dashboard-detail-open{justify-self:end;color:#0d6ab8;font-weight:900;font-size:10px;text-transform:uppercase}.dashboard-detail-empty{padding:28px 12px;text-align:center;color:#64748b;font-weight:800}
@media(max-width:820px){.dashboard-detail-row{grid-template-columns:1fr}.dashboard-detail-row strong,.dashboard-detail-open{justify-self:start}.dashboard-detail-dialog{max-height:92vh}.dashboard-detail-modal{padding:7px}}

/* Dashboard fixed layout: 9 KPI cards + warehouse pie, charts + 4 operational cards. */
.dashboard-home [data-dash-card]{position:relative;min-width:0}
.dashboard-home .dash-size-controls{display:none!important}
.dashboard-home .kpi-card{margin:0;min-width:0;overflow:hidden;padding:13px 14px;min-height:100px}
.dashboard-home .kpi-title,.dashboard-home .kpi-sub{overflow-wrap:anywhere;line-height:1.25}
.dashboard-home .kpi-value{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dashboard-top-layout{display:grid;grid-template-columns:minmax(0,2.05fr) minmax(400px,.95fr);gap:12px;align-items:stretch;margin:12px 0}
.dashboard-kpi-nine{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-content:start}
.dashboard-kpi-nine .kpi-card{min-height:100px}
.dashboard-inventory-pie{min-width:0;height:100%}
.dashboard-inventory-pie .dashboard-panel-head{padding:0 12px}
.dashboard-inventory-pie .dashboard-panel-body{min-height:324px;padding:14px;display:block;overflow:hidden}
.dashboard-inventory-pie .dash-pie-layout{display:grid;width:100%;grid-template-columns:minmax(150px,196px) minmax(0,1fr);gap:18px;align-items:center}
.dashboard-inventory-pie .dash-pie{width:min(196px,100%);aspect-ratio:1/1;height:auto;margin:auto;position:relative;display:grid;place-items:center;border-radius:50%;box-shadow:inset 0 0 0 1px #d6e1ec,0 2px 8px rgba(15,35,70,.08)}
.dashboard-inventory-pie .dash-pie span{width:92px;height:92px;border-radius:50%;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#073763;font-size:15px;font-weight:900;line-height:1.05;text-align:center;box-shadow:0 0 0 1px #d6e1ec;position:relative;z-index:2;padding:5px}
.dashboard-inventory-pie .dash-pie span small{display:block;font-size:10px;color:#64748b;line-height:1;margin-top:5px}
.dashboard-inventory-pie .dash-pie-legend{display:grid;gap:7px;min-width:0;max-height:232px;overflow:auto;padding-right:3px;align-content:start}
.dashboard-inventory-pie .dash-pie-legend div{display:grid;grid-template-columns:12px minmax(0,1fr) auto;gap:8px;align-items:center;border-bottom:1px solid #edf2f7;padding:0 0 6px;min-width:0}
.dashboard-inventory-pie .dash-pie-legend i{width:12px;height:12px;border-radius:2px}
.dashboard-inventory-pie .dash-pie-legend b{min-width:0;font-size:12px;color:#334155;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dashboard-inventory-pie .dash-pie-legend em{font-style:normal;font-size:11px;color:#073763;font-weight:900;white-space:nowrap}
.dashboard-inventory-pie .dash-pie-summary{margin-top:12px;border-top:1px solid #edf2f7;padding-top:9px;color:#073763;font-size:12px;font-weight:900;overflow-wrap:anywhere}
.dashboard-second-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(230px,.58fr);gap:12px;align-items:stretch;margin-top:12px}
.dashboard-second-layout>.dashboard-panel{min-width:0}
.dashboard-second-layout>.dashboard-panel .dashboard-panel-body{min-height:340px;overflow:hidden}
.dashboard-second-layout .dash-compare-chart{min-width:0}
.dashboard-second-layout .dash-compare-row{grid-template-columns:62px minmax(0,1fr);gap:7px;padding:7px 8px}
.dashboard-second-layout .dash-compare-row label{min-width:0;gap:6px}
.dashboard-second-layout .dash-compare-row label span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dashboard-second-layout .dash-compare-row label em{white-space:nowrap}
.dashboard-second-layout .dash-vertical-chart{grid-template-columns:repeat(5,minmax(58px,1fr));gap:6px;min-height:274px;overflow:hidden}
.dashboard-second-layout .dash-vertical-month{grid-template-rows:188px auto auto;min-width:0;padding:8px 5px}
.dashboard-second-layout .dash-vertical-bars{gap:8px;height:188px}
.dashboard-second-layout .dash-vertical-bars span{width:min(22px,42%);height:180px}
.dashboard-second-layout .dash-vertical-month>b,.dashboard-second-layout .dash-vertical-month>em{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dashboard-pending-stack{display:grid;grid-template-columns:1fr;gap:8px;align-content:stretch}
.dashboard-pending-stack .kpi-card{min-height:79px;padding:10px 12px}
.dashboard-pending-stack .kpi-title{margin-bottom:5px}
.dashboard-pending-stack .kpi-value{font-size:23px}
.dashboard-pending-stack .kpi-sub{margin-top:5px;font-size:10px}
.dashboard-home .kpi-card[data-dash-card="bond-expired-jobs"] .kpi-value{color:#b91c1c}
.dashboard-lower-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:start;margin-top:12px}
.dashboard-lower-grid .dashboard-panel{min-width:0}
.dashboard-lower-grid .dashboard-panel-head{padding:0 10px;gap:8px;overflow:hidden}
.dashboard-lower-grid .dashboard-panel-head span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dashboard-lower-grid .dashboard-panel-body{min-height:220px;max-height:300px;overflow:auto}
.dashboard-recent-compact .dashboard-panel-body{min-height:0!important;max-height:235px!important;overflow:auto!important}
.dashboard-recent-compact .list-row-item{padding:7px 8px;min-height:45px}
.dashboard-lower-grid .list-row-item>div{min-width:0}.dashboard-lower-grid .list-row-item b,.dashboard-lower-grid .list-row-item span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:1450px){
  .dashboard-top-layout{grid-template-columns:minmax(0,1.8fr) minmax(380px,1fr)}
  .dashboard-lower-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:1180px){
  .dashboard-top-layout,.dashboard-second-layout{grid-template-columns:1fr}
  .dashboard-inventory-pie .dashboard-panel-body{min-height:270px}
  .dashboard-pending-stack{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:860px){
  .dashboard-kpi-nine{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dashboard-pending-stack{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dashboard-inventory-pie .dash-pie-layout{grid-template-columns:minmax(145px,180px) minmax(0,1fr)}
  .dashboard-second-layout .dash-vertical-chart{overflow:auto;grid-template-columns:repeat(5,minmax(86px,1fr))}
}
@media(max-width:590px){
  .dashboard-kpi-nine,.dashboard-pending-stack,.dashboard-lower-grid{grid-template-columns:1fr}
  .dashboard-top-layout{display:block}.dashboard-inventory-pie{margin-top:12px}
  .dashboard-inventory-pie .dash-pie-layout{grid-template-columns:1fr}
  .dashboard-inventory-pie .dash-pie-legend{max-height:190px}
}

/* Job Register style date filter used by targeted finance/expense reports. */
.simple-screen .rpt-date-ribbon{display:flex;align-items:center;gap:7px;flex-wrap:wrap;width:100%;margin-bottom:8px}
.simple-screen .rpt-date-icon{height:38px;width:44px;background:#1683ff;color:#fff;display:flex;align-items:center;justify-content:center;font-size:19px;border-radius:4px;flex:0 0 auto}
.simple-screen .rpt-date-ribbon input,.simple-screen .rpt-date-preset{height:38px;border:1px solid #c5d3e2;background:#fff;padding:5px 9px;color:#1c334d;font-size:13px;border-radius:3px}
.simple-screen .rpt-date-preset{min-width:190px}
.simple-balance-cards{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:10px;margin:12px}
.simple-balance-card{background:#fff7df;border:1px solid #f4d493;border-left:4px solid #ff650f;padding:11px 12px;text-align:right;box-shadow:0 2px 8px rgba(15,35,70,.05)}
.simple-balance-label{font-size:10px;font-weight:900;color:#0b315f;text-transform:uppercase}
.simple-balance-value{font-size:20px;font-weight:900;color:#073763;margin-top:4px}
@media(max-width:900px){.simple-balance-cards{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.simple-balance-cards{grid-template-columns:1fr}.simple-screen .rpt-date-preset,.simple-screen .rpt-date-ribbon input{width:100%;min-width:0}}

/* Dashboard performance/cursor/color correction 20260627 */
.dashboard-home #dashPartyStock a,
.dashboard-home #dashPartyStock .list-row-item,
.dashboard-home #dashJobList a,
.dashboard-home #dashJobList .job-line{cursor:pointer!important;display:grid;text-decoration:none;color:inherit;}
.dashboard-home #dashPartyStock a:hover,
.dashboard-home #dashJobList a:hover{background:#f2f8ff!important;color:#073763!important;}
.dashboard-home .kpi-card.is-clickable:after{content:none!important;}


/* Dashboard final speed/cursor/pie correction 20260627c */
.dashboard-home #dashPartyStock a,
.dashboard-home #dashPartyStock a *,
.dashboard-home #dashPartyStock .list-row-item,
.dashboard-home #dashPartyStock .list-row-item *,
.dashboard-home #dashJobList a,
.dashboard-home #dashJobList a *,
.dashboard-home #dashJobList .job-line,
.dashboard-home #dashJobList .job-line *{cursor:pointer!important;}
.dashboard-home #dashPartyStock a:hover,
.dashboard-home #dashJobList a:hover{background:#f2f8ff!important;color:#073763!important;}
.dashboard-home .dashboard-panel[data-dash-card="warehouse-inventory"],
.dashboard-home .dashboard-inventory-pie{cursor:default!important;}
.dashboard-home .dashboard-panel[data-dash-card="warehouse-inventory"] *,
.dashboard-home .dashboard-inventory-pie *{cursor:default!important;}


/* Dashboard visual/speed correction 20260627d */
.dashboard-home .dashboard-panel{overflow:hidden!important;}
.dashboard-home .dashboard-panel-body{overflow:auto;}
.dashboard-home .dashboard-lower-grid .dashboard-panel-body{min-height:220px;max-height:300px;overflow:auto!important;}
.dashboard-home #dashPartyStock,
.dashboard-home #dashJobList{max-height:260px;overflow:auto!important;}
.dashboard-home #dashPartyStock a,
.dashboard-home #dashPartyStock a *,
.dashboard-home #dashPartyStock .list-row-item,
.dashboard-home #dashPartyStock .list-row-item *,
.dashboard-home #dashJobList a,
.dashboard-home #dashJobList a *,
.dashboard-home #dashJobList .job-line,
.dashboard-home #dashJobList .job-line *{cursor:pointer!important;}
.dashboard-home .dashboard-inventory-pie .dashboard-panel-body{overflow:hidden!important;}
.dashboard-home .dashboard-inventory-pie .dash-pie-legend{max-height:232px;overflow:auto!important;}
.dashboard-home .dashboard-inventory-pie .dash-pie-legend b{color:#073763;font-weight:800;}

/* Dashboard final visual/speed correction 20260627e */
.dashboard-home .dashboard-panel{overflow:hidden!important;}
.dashboard-home .dashboard-panel-body{overflow:auto;}
.dashboard-home #dashPartyStock{max-height:260px;overflow:auto!important;}
.dashboard-home #dashJobList{max-height:260px;overflow:auto!important;}
.dashboard-home #dashPartyStock a.dash-party-stock-line,
.dashboard-home #dashPartyStock .dash-party-stock-line{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) max-content!important;
  align-items:center!important;
  column-gap:12px!important;
  row-gap:2px!important;
  padding:9px 8px!important;
  text-decoration:none!important;
  color:inherit!important;
}
.dashboard-home #dashPartyStock .dash-party-stock-line>div{min-width:0!important;}
.dashboard-home #dashPartyStock .dash-party-stock-line b,
.dashboard-home #dashPartyStock .dash-party-stock-line span{
  display:block!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.dashboard-home #dashPartyStock .dash-party-stock-line em{
  grid-column:2!important;
  grid-row:1 / span 2!important;
  align-self:center!important;
  justify-self:end!important;
  text-align:right!important;
  white-space:nowrap!important;
  font-weight:900!important;
}
.dashboard-home #dashPartyStock a.dash-party-stock-line,
.dashboard-home #dashPartyStock a.dash-party-stock-line *,
.dashboard-home #dashJobList a.job-line,
.dashboard-home #dashJobList a.job-line *{cursor:pointer!important;}
.dashboard-home #dashPartyStock a.dash-party-stock-line:hover,
.dashboard-home #dashJobList a.job-line:hover{background:#f2f8ff!important;color:#073763!important;}
.dashboard-home .dashboard-inventory-pie .dashboard-panel-body{overflow:hidden!important;}
.dashboard-home .dashboard-inventory-pie .dash-pie-legend{max-height:232px;overflow:auto!important;}

.dashboard-home .dashboard-inventory-pie .dash-pie-legend b{color:#073763;font-weight:800;}


/* Dashboard final repair 20260627f: speed, party two-column, pie swatches */
.dashboard-home #dashPartyStock a.dash-party-stock-line,
.dashboard-home #dashPartyStock .dash-party-stock-line{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) max-content!important;
  align-items:center!important;
  column-gap:14px!important;
  row-gap:2px!important;
  width:100%!important;
  box-sizing:border-box!important;
}
.dashboard-home #dashPartyStock .dash-party-stock-line>div{min-width:0!important;overflow:hidden!important;}
.dashboard-home #dashPartyStock .dash-party-stock-line b,
.dashboard-home #dashPartyStock .dash-party-stock-line span{display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
.dashboard-home #dashPartyStock .dash-party-stock-line em{grid-column:2!important;grid-row:1 / span 2!important;align-self:center!important;justify-self:end!important;text-align:right!important;white-space:nowrap!important;font-weight:900!important;}
.dashboard-home #dashPartyStock a.dash-party-stock-line,
.dashboard-home #dashPartyStock a.dash-party-stock-line *,
.dashboard-home #dashJobList a.job-line,
.dashboard-home #dashJobList a.job-line *{cursor:pointer!important;}
.dashboard-home .dashboard-inventory-pie .dash-pie-legend i{background-clip:padding-box!important;}


/* Dashboard final click/detail repair 20260627g */
.dashboard-home #dashPartyStock a.dash-party-stock-line{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:14px!important;
  width:100%!important;
  box-sizing:border-box!important;
  padding:9px 10px!important;
  border-bottom:1px solid #edf2f7!important;
  text-decoration:none!important;
  color:#0a2444!important;
  cursor:pointer!important;
}
.dashboard-home #dashPartyStock a.dash-party-stock-line *,
.dashboard-home #dashJobList a.dash-active-job-line,
.dashboard-home #dashJobList a.dash-active-job-line *{cursor:pointer!important;}
.dashboard-home #dashPartyStock .dash-party-stock-name{display:block!important;min-width:0!important;overflow:hidden!important;}
.dashboard-home #dashPartyStock .dash-party-stock-name b,
.dashboard-home #dashPartyStock .dash-party-stock-name small{display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
.dashboard-home #dashPartyStock .dash-party-stock-mt{display:block!important;flex:0 0 auto!important;text-align:right!important;white-space:nowrap!important;font-weight:900!important;color:#334155!important;}
.dashboard-home #dashPartyStock a.dash-party-stock-line:hover,
.dashboard-home #dashJobList a.dash-active-job-line:hover{background:#f2f8ff!important;color:#073763!important;}

/* CFS module selector and module-scoped navigation */
.module-selector-btn{
  flex:0 0 auto!important;
  height:44px!important;
  min-width:172px!important;
  border:1px solid #c8d6e5!important;
  border-radius:9px!important;
  background:#fff!important;
  color:#0b315f!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  padding:5px 12px!important;
  box-shadow:0 6px 18px rgba(15,35,70,.08)!important;
  font:inherit!important;
  cursor:pointer!important;
}
.module-selector-btn:hover,.module-selector-btn:focus{
  border-color:var(--wms-orange)!important;
  box-shadow:0 0 0 4px var(--wms-focus),0 8px 20px rgba(15,35,70,.12)!important;
  outline:none!important;
}
.module-selector-icon,.module-card-icon,.cfs-module-dash-icon{
  width:30px!important;
  height:30px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:8px!important;
  background:#eef6ff!important;
  color:#0b5bb2!important;
  flex:0 0 30px!important;
}
.module-selector-icon svg,.module-card-icon svg,.cfs-module-dash-icon svg{
  width:20px!important;
  height:20px!important;
  stroke:currentColor!important;
  fill:none!important;
  stroke-width:2!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}
.module-selector-btn b{
  display:block!important;
  font-size:13px!important;
  line-height:1.05!important;
  font-weight:800!important;
  color:#0b315f!important;
  white-space:nowrap!important;
}
.module-selector-btn small{
  display:block!important;
  margin-top:2px!important;
  color:#64748b!important;
  font-size:10px!important;
  font-weight:700!important;
  text-align:left!important;
}
.module-selector-overlay{
  position:fixed!important;
  inset:0!important;
  z-index:14000!important;
  display:none!important;
  align-items:flex-start!important;
  justify-content:center!important;
  padding:88px 24px 24px!important;
  background:rgba(7,30,54,.68)!important;
}
.module-selector-overlay.open{display:flex!important}
.module-selector-panel{
  width:min(1180px,96vw)!important;
  max-height:calc(100vh - 116px)!important;
  overflow:auto!important;
  background:#fff!important;
  border:1px solid #d8e3ee!important;
  border-radius:10px!important;
  box-shadow:0 30px 80px rgba(5,25,48,.38)!important;
}
.module-selector-head{
  min-height:70px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:18px!important;
  padding:16px 20px!important;
  background:#073763!important;
  color:#fff!important;
  border-bottom:4px solid var(--wms-orange)!important;
}
.module-selector-head h2{
  margin:0!important;
  font-size:22px!important;
  font-weight:800!important;
  letter-spacing:0!important;
}
.module-selector-head p{
  margin:4px 0 0!important;
  color:#dbeafe!important;
  font-size:12px!important;
  font-weight:700!important;
}
.module-selector-close{
  width:38px!important;
  height:34px!important;
  border:0!important;
  border-radius:5px!important;
  background:#dc2626!important;
  color:#fff!important;
  font-size:15px!important;
  font-weight:900!important;
}
.module-card-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:14px!important;
  padding:18px!important;
  background:#f4f8fc!important;
}
.module-card{
  min-height:148px!important;
  display:grid!important;
  grid-template-columns:42px minmax(0,1fr)!important;
  grid-template-rows:auto auto 1fr auto!important;
  align-items:start!important;
  gap:5px 12px!important;
  padding:16px!important;
  border:1px solid #d6e1ec!important;
  border-left:5px solid var(--module-accent,#0b5bb2)!important;
  border-radius:8px!important;
  background:#fff!important;
  color:#0f172a!important;
  text-decoration:none!important;
  box-shadow:0 7px 18px rgba(15,35,70,.07)!important;
}
.module-card:hover,.module-card.active{
  transform:translateY(-2px)!important;
  border-color:#9fb7d3!important;
  box-shadow:0 14px 32px rgba(15,35,70,.14)!important;
}
.module-card .module-card-icon{
  grid-row:1 / span 3!important;
  width:42px!important;
  height:42px!important;
  color:var(--module-accent,#0b5bb2)!important;
  background:#f1f7ff!important;
}
.module-card b{
  min-width:0!important;
  font-size:16px!important;
  font-weight:800!important;
  color:#0b315f!important;
  line-height:1.16!important;
  overflow-wrap:anywhere!important;
}
.module-card small{
  min-height:34px!important;
  color:#475569!important;
  font-size:12px!important;
  font-weight:600!important;
  line-height:1.35!important;
}
.module-card em{
  grid-column:2!important;
  align-self:end!important;
  font-style:normal!important;
  color:#0b315f!important;
  font-size:11px!important;
  font-weight:800!important;
  background:#eef6ff!important;
  border-radius:999px!important;
  padding:5px 9px!important;
  width:max-content!important;
  max-width:100%!important;
}
.sidebar-module-head{
  position:relative!important;
  z-index:1!important;
  min-height:78px!important;
  display:flex!important;
  align-items:center!important;
  gap:14px!important;
  padding:14px 18px!important;
  color:#fff!important;
  border-bottom:1px solid rgba(255,255,255,.1)!important;
}
.sidebar:not(:hover) .sidebar-module-head div{display:none!important}
.sidebar-module-head b{
  display:block!important;
  width:206px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:14px!important;
  font-weight:800!important;
}
.sidebar-module-head small{
  display:block!important;
  width:206px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  margin-top:3px!important;
  color:#cbd5e1!important;
  font-size:10px!important;
  font-weight:700!important;
}
.cfs-module-dashboard{
  margin:12px 0!important;
  border:1px solid #d6e1ec!important;
  border-radius:8px!important;
  background:#fff!important;
  box-shadow:0 8px 22px rgba(15,35,70,.08)!important;
  overflow:hidden!important;
}
.cfs-module-dash-head{
  display:flex!important;
  align-items:center!important;
  gap:14px!important;
  min-height:72px!important;
  padding:14px 16px!important;
  border-bottom:1px solid #dbe5ef!important;
  background:linear-gradient(90deg,#f7fbff,#fff)!important;
}
.cfs-module-dash-icon{
  width:44px!important;
  height:44px!important;
  color:var(--module-accent,#0b5bb2)!important;
}
.cfs-module-dash-head h2{
  margin:0!important;
  color:#0b315f!important;
  font-size:20px!important;
  font-weight:800!important;
}
.cfs-module-dash-head p{
  margin:4px 0 0!important;
  color:#64748b!important;
  font-size:12px!important;
  font-weight:700!important;
}
.cfs-module-dash-head a{
  margin-left:auto!important;
  height:34px!important;
  display:flex!important;
  align-items:center!important;
  padding:0 12px!important;
  border-radius:5px!important;
  background:var(--wms-orange)!important;
  color:#fff!important;
  text-decoration:none!important;
  font-size:12px!important;
  font-weight:800!important;
}
.cfs-module-kpis{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px!important;
  padding:12px 14px!important;
  background:#f4f8fc!important;
}
.cfs-module-kpis div{
  min-height:72px!important;
  border:1px solid #d9e4ef!important;
  border-radius:7px!important;
  background:#fff!important;
  padding:12px!important;
}
.cfs-module-kpis b{
  display:block!important;
  color:#0b315f!important;
  font-size:22px!important;
  font-weight:900!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.cfs-module-kpis span{
  display:block!important;
  margin-top:5px!important;
  color:#64748b!important;
  font-size:11px!important;
  font-weight:800!important;
  text-transform:uppercase!important;
}
.cfs-module-section-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:12px!important;
  padding:14px!important;
}
.cfs-module-section-grid article{
  min-width:0!important;
  border:1px solid #d9e4ef!important;
  border-radius:7px!important;
  background:#fff!important;
  overflow:hidden!important;
}
.cfs-module-section-grid h3{
  margin:0!important;
  min-height:38px!important;
  padding:10px 12px!important;
  background:#0b315f!important;
  color:#fff!important;
  font-size:12px!important;
  font-weight:800!important;
  text-transform:uppercase!important;
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  line-height:1.2!important;
}
.cfs-module-section-grid h3 .nav-glyph{
  width:18px!important;
  height:18px!important;
  flex:0 0 18px!important;
}
.cfs-module-section-grid h3 .nav-glyph svg{
  width:18px!important;
  height:18px!important;
}
.cfs-module-section-grid a{
  display:block!important;
  padding:9px 12px!important;
  border-top:1px solid #eef2f7!important;
  color:#163b65!important;
  text-decoration:none!important;
  font-size:12px!important;
  font-weight:700!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.cfs-module-section-grid a:hover{background:#fff7ed!important;color:#c2410c!important}
.cfs-module-section-grid small{
  display:block!important;
  padding:9px 12px!important;
  border-top:1px solid #eef2f7!important;
  color:#64748b!important;
  font-size:11px!important;
  font-weight:800!important;
}

/* Stronger shared styling for generated CFS starter screens */
.cfs-starter-screen{
  background:#fff!important;
  border:1px solid #d9e2ee!important;
  border-radius:8px!important;
  box-shadow:0 10px 28px rgba(15,35,70,.08)!important;
  overflow:hidden!important;
  padding:0!important;
}
.cfs-titlebar{
  margin:0!important;
  min-height:54px!important;
  border:0!important;
  border-radius:0!important;
  border-bottom:4px solid var(--wms-orange)!important;
  background:var(--wms-blue-deep)!important;
  color:#fff!important;
  padding:9px 14px!important;
}
.cfs-title{
  color:#fff!important;
  font-size:16px!important;
  font-weight:800!important;
  letter-spacing:0!important;
}
.cfs-actions{gap:7px!important}
.cfs-btn{
  height:34px!important;
  min-width:34px!important;
  border:1px solid var(--wms-orange)!important;
  border-radius:5px!important;
  background:var(--wms-orange)!important;
  color:#fff!important;
  padding:0 13px!important;
  font-size:12px!important;
  font-weight:800!important;
  box-shadow:0 3px 9px rgba(249,115,22,.16)!important;
}
.cfs-btn:hover{background:var(--wms-orange-dark)!important;border-color:var(--wms-orange-dark)!important}
.cfs-btn.green,.cfs-btn.blue,.cfs-btn.red{background:var(--wms-orange)!important;border-color:var(--wms-orange)!important;color:#fff!important}
.cfs-layout{
  grid-template-columns:minmax(0,1fr) 320px!important;
  gap:14px!important;
  padding:14px!important;
  background:#eef4fa!important;
}
.cfs-panel{
  border:1px solid #d8e3ee!important;
  border-radius:7px!important;
  background:#fff!important;
  box-shadow:0 4px 14px rgba(15,35,70,.06)!important;
}
.cfs-panel h2{
  margin:-12px -12px 12px!important;
  min-height:38px!important;
  display:flex!important;
  align-items:center!important;
  padding:0 12px!important;
  background:#f8fbff!important;
  border-bottom:1px solid #dbe5ef!important;
  color:#0b315f!important;
  font-size:13px!important;
  font-weight:800!important;
}
.cfs-grid{
  grid-template-columns:repeat(4,minmax(150px,1fr))!important;
  gap:10px 12px!important;
}
.cfs-field label{
  color:#172b4d!important;
  font-size:11px!important;
  font-weight:800!important;
  letter-spacing:0!important;
}
.cfs-field input,.cfs-field select,.cfs-field textarea{
  min-height:36px!important;
  border:1px solid #c9d7e6!important;
  border-radius:5px!important;
  background:#fff!important;
  color:#0f172a!important;
  font-size:13px!important;
  font-weight:600!important;
}
.cfs-field input:disabled,.cfs-field select:disabled,.cfs-field textarea:disabled{
  background:#eef3f8!important;
  color:#64748b!important;
}
.cfs-field input:focus,.cfs-field select:focus,.cfs-field textarea:focus{
  border-color:var(--wms-orange)!important;
  box-shadow:0 0 0 3px var(--wms-focus)!important;
  outline:none!important;
}
.cfs-saved-list{
  border-color:#dbe5ef!important;
  border-radius:5px!important;
  background:#fff!important;
}
.cfs-saved-row{
  min-height:48px!important;
  padding:9px 11px!important;
  border-bottom:1px solid #edf2f7!important;
}
.cfs-saved-row:hover{background:#fff7ed!important}
.cfs-saved-row b{
  color:#0b315f!important;
  font-size:12px!important;
  font-weight:800!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.cfs-saved-row span{
  color:#64748b!important;
  font-size:10px!important;
  font-weight:700!important;
}
@media(max-width:1250px){
  .module-card-grid,.cfs-module-section-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .top-search{width:360px!important}
}
@media(max-width:940px){
  .module-card-grid,.cfs-module-kpis,.cfs-module-section-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .module-selector-btn{min-width:48px!important;padding:5px 9px!important}
  .module-selector-btn span:last-child{display:none!important}
  .cfs-layout{grid-template-columns:1fr!important}
  .cfs-grid{grid-template-columns:repeat(2,minmax(140px,1fr))!important}
}
@media(max-width:640px){
  .module-card-grid,.cfs-module-kpis,.cfs-module-section-grid,.cfs-grid{grid-template-columns:1fr!important}
  .module-selector-overlay{padding:76px 8px 12px!important}
  .module-selector-panel{max-height:calc(100vh - 88px)!important}
}

/* CMS reference shell: module selector, section-only sidebar and clean starter layouts */
.module-selector-btn{
  height:38px!important;
  min-width:178px!important;
  max-width:205px!important;
  border-radius:0!important;
  border:1px solid #c8d8e8!important;
  box-shadow:none!important;
  justify-content:flex-start!important;
  padding:0 10px!important;
  gap:9px!important;
}
.module-selector-btn .module-selector-icon{
  width:19px!important;
  height:19px!important;
  background:transparent!important;
  color:#073763!important;
  flex-basis:19px!important;
}
.module-selector-btn .module-selector-icon svg{width:19px!important;height:19px!important}
.module-selector-btn b{
  font-size:13px!important;
  font-weight:900!important;
  color:#002d5c!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.module-selector-btn i{
  margin-left:auto!important;
  color:#073763!important;
  font-style:normal!important;
  font-size:14px!important;
  font-weight:900!important;
}
.module-selector-overlay{
  top:70px!important;
  left:80px!important;
  right:0!important;
  bottom:0!important;
  inset:70px 0 0 80px!important;
  align-items:flex-start!important;
  justify-content:stretch!important;
  padding:18px 30px 38px!important;
  background:#eaf2fa!important;
  z-index:28!important;
}
.module-selector-panel{
  width:92%!important;
  margin:0 auto!important;
  max-height:none!important;
  min-height:calc(80vh - 165px)!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  overflow:visible!important;
  position:relative!important;
}
.module-selector-head{display:none!important}
.module-selector-close{
  position:absolute!important;
  right:-8px!important;
  top:-39px!important;
  width:34px!important;
  height:34px!important;
  border-radius:6px!important;
  background:#ff650f!important;
  color:#fff!important;
  font-size:18px!important;
  font-weight:500!important;
}
.module-card-grid{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:16px!important;
  padding:0!important;
  background:transparent!important;
}
.module-card{
  min-height:175px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:flex-start!important;
  gap:18px!important;
  padding:24px 22px!important;
  border:1px solid #c9d8e8!important;
  border-left:1px solid #c9d8e8!important;
  border-radius:4px!important;
  background:#fff!important;
  box-shadow:0 1px 2px rgba(15,35,70,.04)!important;
  transform:none!important;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease!important;
}
.module-card.active{border-top:3px solid #ff650f!important}
.module-card:hover{
  border-color:#ff650f!important;
  background:#fffaf6!important;
  box-shadow:0 12px 26px rgba(15,35,70,.16)!important;
  transform:translateY(-4px)!important;
}
.module-card .module-card-icon{
  width:26px!important;
  height:26px!important;
  background:transparent!important;
  color:#ff650f!important;
  transition:transform .18s ease,color .18s ease!important;
}
.module-card:hover .module-card-icon{
  color:#e55708!important;
  transform:scale(1.08)!important;
}
.module-card .module-card-icon svg{width:24px!important;height:24px!important}
.module-card b{
  font-size:20px!important;
  color:#002d5c!important;
  font-weight:900!important;
  line-height:1.1!important;
}
.module-card small{
  min-height:0!important;
  color:#163f70!important;
  font-size:14px!important;
  line-height:1.5!important;
  font-weight:500!important;
}
.module-card em{display:none!important}
.sidebar{background:#14233f!important}
.sidebar .sidebar-module-head{display:none!important}
.menu-category{
  min-height:72px!important;
  background:#14233f!important;
  border-bottom:1px solid rgba(255,255,255,.06)!important;
  color:#fff!important;
  padding:0 28px!important;
}
.menu-category.active{
  background:#fff!important;
  color:#073763!important;
  border-left:4px solid #ff650f!important;
}
.menu-category:hover{background:#1c2d50!important;color:#fff!important}
.menu-category.active:hover{background:#fff!important;color:#073763!important}
.category-title{gap:20px!important}
.menu-list{background:#0f1c34!important}
.menu-item{
  padding:10px 16px 10px 76px!important;
  color:#dbeafe!important;
}
.cfs-layout.cfs-no-saved{
  grid-template-columns:minmax(0,1fr)!important;
}
.cfs-layout.cfs-no-saved .cfs-panel[hidden]{
  display:none!important;
}
.cfs-partial-loading .workarea{
  opacity:.72!important;
}
@media(max-width:940px){
  .module-selector-btn{
    min-width:142px!important;
    max-width:168px!important;
    height:36px!important;
  }
  .module-selector-overlay{
    inset:70px 0 0 58px!important;
    padding:14px 12px 18px!important;
  }
  .module-selector-panel{
    width:92%!important;
  }
}
@media(max-width:640px){
  .module-selector-overlay{
    inset:70px 0 0 52px!important;
    padding:12px 10px 14px!important;
  }
}


/* Dashboard Job/BE/SB final repair 20260627h */
.dashboard-home #dashJobList,
.dashboard-home #dashPartyStock{overflow:auto!important;}
.dashboard-home #dashJobList a,
.dashboard-home #dashJobList a *,
.dashboard-home #dashJobList .job-line,
.dashboard-home #dashJobList .job-line *,
.dashboard-home #dashJobList .dash-active-job-line,
.dashboard-home #dashJobList .dash-active-job-line *{cursor:pointer!important;}
.dashboard-home #dashJobList a.dash-active-job-line{
  display:grid!important;
  grid-template-columns:minmax(110px,.9fr) minmax(0,1.25fr) auto!important;
  gap:9px!important;
  align-items:center!important;
  padding:8px 10px!important;
  border-bottom:1px solid #edf2f7!important;
  text-decoration:none!important;
  color:#0a2444!important;
}
.dashboard-home #dashJobList a.dash-active-job-line:hover{background:#f2f8ff!important;color:#073763!important;}
.dashboard-home #dashJobList a.dash-active-job-line b,
.dashboard-home #dashJobList a.dash-active-job-line span,
.dashboard-home #dashJobList a.dash-active-job-line small{min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
.dashboard-home #dashPartyStock a.dash-party-stock-line{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 92px!important;
  gap:12px!important;
  align-items:center!important;
  width:100%!important;
  box-sizing:border-box!important;
  padding:9px 10px!important;
  border-bottom:1px solid #edf2f7!important;
  text-decoration:none!important;
  color:#0a2444!important;
  cursor:pointer!important;
}
.dashboard-home #dashPartyStock a.dash-party-stock-line *,
.dashboard-home #dashPartyStock a.dash-party-stock-line{cursor:pointer!important;}
.dashboard-home #dashPartyStock .dash-party-stock-name{min-width:0!important;overflow:hidden!important;}
.dashboard-home #dashPartyStock .dash-party-stock-name b,
.dashboard-home #dashPartyStock .dash-party-stock-name small{display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
.dashboard-home #dashPartyStock .dash-party-stock-mt{display:block!important;text-align:right!important;white-space:nowrap!important;font-weight:900!important;color:#334155!important;}
.dashboard-home .dashboard-inventory-pie{height:auto!important;align-self:start!important;}
.dashboard-home .dashboard-inventory-pie .dashboard-panel-body{min-height:0!important;height:auto!important;max-height:310px!important;padding:12px!important;overflow:hidden!important;}
.dashboard-home .dashboard-inventory-pie .dash-pie-layout{grid-template-columns:minmax(145px,176px) minmax(0,1fr)!important;gap:14px!important;align-items:center!important;}
.dashboard-home .dashboard-inventory-pie .dash-pie{width:172px!important;height:172px!important;max-width:172px!important;aspect-ratio:1/1!important;}
.dashboard-home .dashboard-inventory-pie .dash-pie span{width:82px!important;height:82px!important;}
.dashboard-home .dashboard-inventory-pie .dash-pie-legend{max-height:190px!important;overflow:auto!important;}
.dashboard-home .dashboard-inventory-pie .dash-pie-summary{margin-top:8px!important;padding-top:8px!important;}


/* Dashboard final correction 20260627i: fast first paint, no fixed pie height, two-column stock rows, visible active jobs */
.dashboard-home .dashboard-inventory-pie{height:auto!important;align-self:start!important;}
.dashboard-home .dashboard-inventory-pie .dashboard-panel-body{min-height:0!important;height:auto!important;max-height:none!important;padding:12px!important;overflow:hidden!important;}
.dashboard-home .dashboard-inventory-pie .dash-pie-layout{grid-template-columns:minmax(145px,176px) minmax(0,1fr)!important;gap:14px!important;align-items:center!important;}
.dashboard-home .dashboard-inventory-pie .dash-pie{width:172px!important;height:172px!important;max-width:172px!important;aspect-ratio:1/1!important;}
.dashboard-home .dashboard-inventory-pie .dash-pie span{width:82px!important;height:82px!important;}
.dashboard-home .dashboard-inventory-pie .dash-pie-legend{max-height:none!important;overflow:visible!important;}
.dashboard-home #dashPartyStock a.dash-party-stock-line{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;cursor:pointer!important;}
.dashboard-home #dashPartyStock .dash-party-stock-name{flex:1 1 auto!important;min-width:0!important;overflow:hidden!important;}
.dashboard-home #dashPartyStock .dash-party-stock-mt{flex:0 0 96px!important;margin-left:auto!important;text-align:right!important;white-space:nowrap!important;}
.dashboard-home .dashboard-panel[data-dash-card="job-list"] .dashboard-panel-body,
.dashboard-home #dashJobList{min-height:0!important;max-height:none!important;overflow:visible!important;cursor:pointer!important;}
.dashboard-home #dashJobList a.dash-active-job-line,
.dashboard-home #dashJobList a.dash-active-job-line *{cursor:pointer!important;}
.dashboard-home .dashboard-panel[data-dash-card="party-inventory"] .dashboard-panel-body{max-height:none!important;overflow:visible!important;}
.dashboard-home .dashboard-panel[data-dash-card="recent-movements"] .dashboard-panel-body{max-height:235px!important;overflow:auto!important;}


/* dashboard-final-stable-20260627j: compact/fixed dashboard layout and pointer repair */
.dashboard-home .dashboard-top-layout{align-items:stretch!important;}
.dashboard-home .dashboard-kpi-nine{align-content:stretch!important;}
.dashboard-home .dashboard-kpi-nine .kpi-card{min-height:100px!important;height:auto!important;}
.dashboard-home .dashboard-inventory-pie{height:100%!important;align-self:stretch!important;min-height:0!important;}
.dashboard-home .dashboard-inventory-pie .dashboard-panel-body{height:calc(100% - 42px)!important;min-height:0!important;max-height:none!important;padding:12px!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;justify-content:center!important;}
.dashboard-home .dashboard-inventory-pie .dash-pie-layout{display:grid!important;grid-template-columns:minmax(150px,190px) minmax(0,1fr)!important;gap:14px!important;align-items:center!important;min-height:0!important;}
.dashboard-home .dashboard-inventory-pie .dash-pie{width:174px!important;height:174px!important;max-width:174px!important;aspect-ratio:1/1!important;}
.dashboard-home .dashboard-inventory-pie .dash-pie span{width:82px!important;height:82px!important;}
.dashboard-home .dashboard-inventory-pie .dash-pie-legend{max-height:176px!important;overflow:auto!important;align-content:start!important;}
.dashboard-home .dashboard-inventory-pie .dash-pie-summary{margin-top:8px!important;padding-top:8px!important;}
.dashboard-home .dashboard-lower-grid{align-items:start!important;}
.dashboard-home .dashboard-lower-grid .dashboard-panel{height:260px!important;min-height:260px!important;max-height:260px!important;overflow:hidden!important;}
.dashboard-home .dashboard-lower-grid .dashboard-panel-body{height:calc(260px - 42px)!important;min-height:0!important;max-height:none!important;overflow:auto!important;padding:10px 12px!important;}
.dashboard-home #dashPartyStock a.dash-party-stock-line{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;width:100%!important;cursor:pointer!important;}
.dashboard-home #dashPartyStock a.dash-party-stock-line *,
.dashboard-home #dashPartyStock{cursor:pointer!important;}
.dashboard-home #dashPartyStock .dash-party-stock-name{flex:1 1 auto!important;min-width:0!important;overflow:hidden!important;}
.dashboard-home #dashPartyStock .dash-party-stock-mt{flex:0 0 100px!important;text-align:right!important;white-space:nowrap!important;}
.dashboard-home #dashJobList,
.dashboard-home #dashJobList *,
.dashboard-home #dashJobList a,
.dashboard-home #dashJobList a *{cursor:pointer!important;}
.dashboard-home #dashJobList a.dash-active-job-line{display:grid!important;grid-template-columns:minmax(112px,.9fr) minmax(0,1.25fr) auto!important;gap:9px!important;align-items:center!important;text-decoration:none!important;color:#0a2444!important;cursor:pointer!important;}
.dashboard-home #dashPartyStock a.dash-party-stock-line:hover,
.dashboard-home #dashJobList a.dash-active-job-line:hover{background:#f2f8ff!important;color:#073763!important;}

.company-copy-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 28, 45, .45);
}
.company-copy-box {
  width: min(880px, calc(100vw - 48px));
  max-height: calc(100vh - 64px);
  overflow: hidden;
  background: #fff;
  border: 1px solid #c9d8ea;
  box-shadow: 0 24px 70px rgba(5, 32, 61, .26);
}
.company-copy-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #0b3a66;
  color: #fff;
  border-bottom: 4px solid #ff6b13;
}
.company-copy-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 4px;
  background: #e9431f;
  color: #fff;
  font-size: 22px;
  line-height: 1;
}
.company-copy-body {
  padding: 16px 18px;
  overflow: auto;
  max-height: calc(100vh - 220px);
}
.company-copy-source {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  color: #12294a;
  font-weight: 600;
}
.company-copy-source select {
  height: 38px;
  border: 1px solid #b7cbe2;
  background: #fff;
  padding: 0 10px;
}
.company-copy-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.company-copy-option {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: start;
  margin: 0;
  padding: 12px;
  border: 1px solid #d0deef;
  background: #f8fbff;
}
.company-copy-option input {
  margin-top: 3px;
}
.company-copy-option strong {
  display: block;
  color: #082f57;
}
.company-copy-option small {
  display: block;
  color: #53677e;
  margin-top: 3px;
  line-height: 1.35;
}
.company-copy-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 18px 16px;
  border-top: 1px solid #dde8f4;
  background: #f7fbff;
}
.company-branch-toolbar {
  display: flex;
  justify-content: flex-end;
  padding: 10px 12px 0;
}

.company-branch-wrap {
  margin: 10px 12px 12px;
  border: 1px solid #d7e0ea;
  overflow: auto;
}

.company-branch-grid {
  width: 100%;
  min-width: 960px;
  border-collapse: collapse;
}

.company-branch-grid th {
  height: 34px;
  background: #0b3a66;
  color: #fff;
  border-right: 1px solid rgba(255,255,255,.2);
  padding: 0 8px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.company-branch-grid th.sr,
.company-branch-grid th.action {
  width: 58px;
  text-align: center;
}

.company-branch-grid td {
  border-right: 1px solid #d7e0ea;
  border-top: 1px solid #d7e0ea;
  padding: 5px;
  vertical-align: middle;
}

.company-branch-grid td.sr,
.company-branch-grid td.active,
.company-branch-grid td.action {
  text-align: center;
}

.company-branch-grid input,
.company-branch-grid select {
  width: 100%;
  height: 31px;
  border: 1px solid #c6d3e2;
  border-radius: 3px;
  background: #fff;
  padding: 5px 7px;
  color: #172033;
  font-size: 12px;
}

.company-branch-grid input[type=checkbox] {
  width: 15px;
  height: 15px;
  accent-color: #ff650f;
}

.company-branch-grid input:disabled,
.company-branch-grid select:disabled {
  background: #eef3f8;
  color: #667085;
}

.asset-file-name {
  color: #0b3a66;
  font-weight: 800;
}

/*
 * Shared grid field states
 * Keep editable table controls white and make system/read-only values
 * visibly different without making the grid look disabled or faded.
 */
html body .workarea table input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
html body .workarea table textarea,
html body .workarea table select {
  color: #1c334d !important;
}

html body .workarea table input[readonly]:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
html body .workarea table input:disabled:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
html body .workarea table textarea[readonly],
html body .workarea table textarea:disabled,
html body .workarea table select:disabled,
html body .workarea table [aria-readonly="true"] {
  background-color: #eaf1f8 !important;
  border-color: #c7d3e0 !important;
  color: #1c334d !important;
  opacity: 1 !important;
  cursor: default;
}
