@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap');
:root{font-family:Vazirmatn,Tahoma,sans-serif;color:#213938;background:#f5f7f3;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit}.hidden{display:none!important}.muted{color:#84928f}.eyebrow{font-size:11px;letter-spacing:.15em;color:#618781;font-weight:800}.eyebrow.light{color:#d6e2b8}.required,.form-error{color:#bb6055}.form-error{min-height:20px;font-size:12px}.gateway{min-height:100vh;display:grid;grid-template-columns:1.04fr .96fr}.gateway-art{position:relative;background:#193437;color:#f5f8ef;min-height:100vh;overflow:hidden;padding:42px clamp(36px,5vw,86px);display:flex;flex-direction:column;justify-content:space-between}.brand{display:flex;align-items:center;gap:12px;font-weight:800;font-size:23px;position:relative;z-index:2;line-height:1.2}.brand small{display:block;font-size:10px;color:#b2c8bd;font-weight:500;margin-top:4px}.brand-mark{background:#c9dca4;color:#183337;width:40px;height:40px;border-radius:12px;display:grid;place-items:center;font-size:26px;box-shadow:0 8px 25px #0c242555}.art-middle{position:relative;z-index:1}.art-middle h1{font-size:clamp(55px,6vw,104px);line-height:1.24;letter-spacing:-.07em;margin:18px 0 20px}.art-middle em{color:#c8dfa4;font-style:normal}.art-middle p{color:#b8c9c2;font-size:16px;max-width:380px;line-height:2}.art-footer{position:relative;z-index:1;color:#c2d5ca;display:flex;justify-content:space-between;font-size:11px;letter-spacing:.08em}.drawing{position:absolute;border:1px solid #ffffff18;transform:rotate(-28deg);border-radius:10px;pointer-events:none}.drawing-a{width:490px;height:490px;bottom:8%;left:-20%}.drawing-b{width:370px;height:370px;bottom:19%;left:-6%;border-color:#c9dca436}.drawing-c{width:250px;height:250px;bottom:29%;left:8%;border-color:#c9dca450}.gateway-panel{display:grid;place-items:center;background:#fafbf8;padding:40px 24px}.panel-inner{width:min(440px,100%)}.panel-inner h2{font-size:clamp(31px,3vw,45px);line-height:1.45;letter-spacing:-.045em;margin:14px 0 8px}.panel-inner>p{line-height:2;font-size:14px}.stack-form{display:grid;gap:18px;margin-top:34px}.stack-form label,.form-grid label{display:grid;gap:8px;font-weight:700;font-size:12px;color:#4b6460}input,select,textarea{outline:none;border:1px solid #dce5de;border-radius:11px;background:#fff;color:#213938;padding:13px 14px;width:100%;transition:.2s}input:focus,select:focus,textarea:focus{border-color:#6ca39a;box-shadow:0 0 0 3px #b9d9ce66}textarea{resize:vertical;min-height:92px}input::placeholder{color:#aebeb8}input[type=checkbox]{width:auto;accent-color:#315e56}.btn{display:inline-flex;justify-content:center;align-items:center;gap:12px;border:1px solid transparent;border-radius:11px;padding:11px 18px;font-weight:700;font-size:12px;white-space:nowrap;min-height:44px;transition:transform .2s,box-shadow .2s}.btn:hover{transform:translateY(-2px)}.btn.primary{background:#244e48;color:#fff;box-shadow:0 10px 24px #244e482c}.btn.primary:hover{background:#193f39}.btn.secondary{background:#fff;color:#365952;border-color:#dce6df}.btn.wide{width:100%;font-size:14px;min-height:52px;justify-content:space-between;padding:0 20px}.btn:disabled{opacity:.55;cursor:not-allowed}.panel-note{border-top:1px solid #e8ede9;margin-top:42px;padding-top:21px;display:flex;align-items:center;gap:10px;color:#82948c;font-size:11px;line-height:1.7}.pulse{width:8px;height:8px;border-radius:50%;background:#b6d789;box-shadow:0 0 0 4px #b6d7892b;flex:none}.workspace{min-height:100vh;display:grid;grid-template-columns:252px minmax(0,1fr)}.sidebar{background:#193437;color:#e9f4e8;padding:28px 18px;display:flex;flex-direction:column;min-height:100vh;position:sticky;top:0;height:100vh}.sidebar .brand{padding:0 11px 33px;font-size:20px}.side-caption{color:#77918b;font-size:10px;font-weight:800;letter-spacing:.15em;padding:12px 19px}nav{display:grid;gap:5px}nav button{color:#a9bfba;border:0;background:transparent;padding:12px 16px;display:flex;align-items:center;gap:14px;text-align:right;border-radius:11px;width:100%;font-weight:600;font-size:12px}nav button:hover{background:#ffffff0d;color:#fff}nav button.active{background:#d0dfaf;color:#1b3535;box-shadow:0 9px 22px #0d28284b;font-weight:800}nav .ico{width:21px;font-family:Tahoma;font-size:20px;text-align:center}.sidebar-bottom{margin-top:auto}.side-server{border-top:1px solid #ffffff20;padding:22px 12px;display:flex;gap:14px;align-items:center;font-size:12px;line-height:1.7}.side-server small{font-size:10px;display:block;color:#a1bab1;overflow:hidden;text-overflow:ellipsis;max-width:185px}.logout{background:transparent;color:#bdd0c8;border:0;width:100%;display:flex;justify-content:space-between;padding:10px 14px;font-size:12px}.main{min-width:0}.topbar{height:80px;background:#fff;border-bottom:1px solid #e8eee9;padding:0 clamp(24px,3vw,52px);display:flex;align-items:center;justify-content:space-between}.top-start,.top-actions{display:flex;align-items:center;gap:24px}.crumb{font-size:12px;color:#a0b1aa}.crumb b{padding:0 8px;color:#d2dfd4}.crumb strong{color:#31534d}.date-label{font-size:11px;color:#8c9b95}.user-chip{display:flex;gap:10px;align-items:center;border-right:1px solid #e7ede8;padding-right:18px}.user-chip strong,.user-chip small{display:block;font-size:11px}.user-chip small{color:#9aac9f;margin-top:3px}.avatar{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;background:#e9f1e4;color:#2b6151;font-weight:800}.content{padding:36px clamp(24px,3vw,52px) 70px;max-width:1680px;margin:auto}.page-heading{display:flex;justify-content:space-between;gap:24px;align-items:end;margin-bottom:30px}.page-heading h1{font-size:29px;line-height:1.4;letter-spacing:-.045em;margin:7px 0}.page-heading p{font-size:12px;margin:0}.heading-actions{display:flex;gap:10px;align-items:center}.heading-actions select{min-width:205px;padding:10px 12px;font-size:12px}.grid{display:grid;gap:17px}.metrics{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:18px}.card{background:#fff;border:1px solid #e8eee8;border-radius:17px;box-shadow:0 5px 20px #1c3e3210}.metric{padding:22px 23px;min-height:140px;position:relative;overflow:hidden}.metric .glyph{position:absolute;left:20px;top:21px;color:#a1b8ab;background:#f2f6ed;border-radius:10px;padding:6px 11px;font-size:20px}.metric label{color:#899d95;font-size:11px;font-weight:700}.metric strong{display:block;font-size:30px;font-weight:800;margin:18px 0 0;direction:ltr;text-align:right;font-variant-numeric:tabular-nums}.metric small{color:#a0b2a8;font-size:11px}.metric.accent{background:#224e48;color:#fff;border:0}.metric.accent label,.metric.accent small{color:#bcd3ca}.metric.accent .glyph{background:#ffffff1d;color:#d1e2b0}.split{grid-template-columns:minmax(0,1.65fr) minmax(270px,.9fr)}.card-head{display:flex;justify-content:space-between;align-items:center;padding:21px 23px 12px;gap:12px}.card-head h2{font-size:15px;margin:0}.card-head span{color:#a2b1aa;font-size:11px}.card-body{padding:6px 23px 23px}.project-row,.list-row{border-top:1px solid #eef2ed;padding:16px 0;display:flex;align-items:center;gap:14px}.project-row:first-child,.list-row:first-child{border-top:0}.project-icon{width:44px;height:44px;border-radius:12px;background:#eaf0dc;display:grid;place-items:center;color:#496854;font-size:20px;flex:none}.row-main{min-width:0;flex:1}.row-main strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}.row-main small{color:#97a79c;font-size:11px;display:block;margin-top:5px}.badge{border-radius:50px;background:#eef3e9;color:#4e7863;padding:5px 10px;font-size:10px;font-weight:700;white-space:nowrap}.badge.warn{background:#fbefe6;color:#b7794d}.progress-track{height:7px;background:#edf3e8;border-radius:10px;overflow:hidden}.progress-track>span{height:100%;display:block;background:#87b4a0;border-radius:10px}.section-title{display:flex;align-items:center;justify-content:space-between;margin:28px 0 14px;gap:12px}.section-title h2{font-size:18px;margin:0}.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse;text-align:right;min-width:660px}.table th{background:#f9fbf8;color:#91a39a;font-size:10px;font-weight:800;padding:14px 19px;white-space:nowrap}.table td{border-top:1px solid #f0f3f0;padding:16px 19px;font-size:11px;color:#516960;white-space:nowrap}.table td:first-child{font-weight:700;color:#2d4640}.table tr:hover td{background:#fbfdf9}.empty{padding:48px 25px;text-align:center;color:#8ca49a;font-size:12px;line-height:2}.empty .empty-icon{display:block;font-size:30px;color:#9ab9a1}.notice{background:#f4f7ed;border:1px solid #e3ead9;border-radius:12px;padding:14px 17px;color:#5c7967;font-size:12px;line-height:2;margin-bottom:18px}.notice.error{background:#fff5f1;border-color:#f0d7cd;color:#a05e4e}.quick-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.quick-actions button{border:1px solid #e8efe8;background:#f8faf7;border-radius:12px;text-align:right;padding:18px;color:#31534c;font-weight:700;font-size:12px}.quick-actions button:hover{border-color:#88ada2}.quick-actions small{display:block;color:#9cac9f;margin-top:5px;font-weight:400}.chart{height:220px;position:relative;display:flex;gap:6px;align-items:end;padding:15px 0 26px;background:repeating-linear-gradient(to top,#e8eee8 0 1px,transparent 1px 49px);border-bottom:1px solid #cbdad0}.chart-col{flex:1;height:100%;display:flex;gap:3px;align-items:end;max-width:48px}.chart-bar{flex:1;border-radius:5px 5px 0 0;min-height:2px;background:#bdd4c8}.chart-bar.actual{background:#426f63}.chart-labels{display:flex;justify-content:space-between;color:#9bac9d;font-size:10px;margin-top:10px}.legend{color:#8b9c91;font-size:10px;display:flex;align-items:center;gap:8px}.legend i{width:8px;height:8px;background:#426f63;border-radius:2px;display:inline-block}.legend i.plan{background:#bdd4c8;margin-right:10px}.pill-tabs{display:flex;gap:5px;padding:4px;border:1px solid #e7ede7;border-radius:12px;background:#fff;width:max-content;max-width:100%;overflow:auto}.pill-tabs button{background:none;border:0;border-radius:9px;padding:8px 15px;color:#8b9e92;font-size:11px;white-space:nowrap}.pill-tabs button.active{background:#224e48;color:#fff}.code{font-family:Consolas,monospace;direction:ltr;unicode-bidi:plaintext}.inline-actions{display:flex;gap:7px;align-items:center}.tiny{background:#f4f7f2;border:1px solid #e4ede5;color:#3b6a58;border-radius:8px;padding:6px 10px;font-size:10px;white-space:nowrap}.tiny:hover{background:#e4f0e5}dialog{border:0;border-radius:18px;padding:0;width:min(680px,calc(100% - 26px));max-height:min(92vh,850px);box-shadow:0 30px 90px #142e3366}dialog::backdrop{background:#101f24a1;backdrop-filter:blur(3px)}#entity-form{max-height:90vh;overflow-y:auto;padding:26px}.modal-head{display:flex;justify-content:space-between;align-items:start;margin-bottom:18px}.modal-head h2{font-size:22px;margin:5px 0}.icon-btn{border:0;background:#f1f5f0;width:34px;height:34px;border-radius:9px;color:#47665b;font-size:20px;display:grid;place-items:center}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.form-grid label.full{grid-column:1/-1}.form-grid .check-label{display:flex;align-items:center;gap:9px;border:1px solid #e7eee8;padding:12px;border-radius:10px}.form-grid input,.form-grid select,.form-grid textarea{font-size:12px;padding:10px 12px}.modal-actions{border-top:1px solid #edf1ed;display:flex;justify-content:flex-end;gap:9px;padding-top:18px}.toast{position:fixed;z-index:100;bottom:24px;left:24px;padding:13px 20px;border-radius:12px;background:#1d4039;color:#fff;font-size:12px;box-shadow:0 14px 30px #0b292955;opacity:0;transform:translateY(10px);transition:.25s;pointer-events:none;max-width:380px}.toast.show{opacity:1;transform:translateY(0)}.toast.error{background:#a95243}.mobile-only{display:none}@media(max-width:1100px){.metrics{grid-template-columns:repeat(2,1fr)}.split{grid-template-columns:1fr}.sidebar{width:220px}.workspace{grid-template-columns:220px minmax(0,1fr)}}@media(max-width:760px){.gateway{grid-template-columns:1fr}.gateway-art{min-height:260px;padding:25px}.art-middle h1{font-size:42px;margin:12px 0 0}.art-middle p,.art-footer{display:none}.gateway-panel{padding:48px 25px}.workspace{display:block}.sidebar{position:fixed;right:0;top:0;bottom:0;z-index:20;transform:translateX(110%);transition:.25s;width:270px}.sidebar.open{transform:none}.mobile-only{display:grid}.topbar{height:66px;padding:0 20px}.date-label,.crumb{display:none}.content{padding:25px 17px 55px}.page-heading{display:block}.page-heading h1{font-size:24px}.heading-actions{margin-top:20px}.heading-actions select{flex:1;min-width:0}.metrics{gap:9px}.metric{min-height:120px;padding:17px}.metric strong{font-size:23px}.form-grid{grid-template-columns:1fr}.form-grid label.full{grid-column:auto}.section-title{align-items:start;flex-direction:column}.pill-tabs{width:100%}}

/* Reference dashboard visual system */
.workspace{direction:ltr;background:#f3f7fb}.workspace .sidebar{direction:rtl;background:linear-gradient(180deg,#062d54 0%,#073b6d 52%,#082e56 100%);box-shadow:8px 0 32px #082c5217}.workspace .main{direction:rtl;background:#f4f8fc}.sidebar .brand{color:#fff}.sidebar .brand-mark{background:#e3f2ff;color:#1165c6;box-shadow:none}.side-caption{color:#9bbbd5}nav button{color:#e5f0f8;border-radius:0;padding:14px 18px;min-height:50px;font-size:13px}nav button:hover{background:#ffffff14;color:#fff}nav button.active{background:#1468c5;color:#fff;border-radius:0 24px 24px 0;box-shadow:0 10px 22px #03284d66}nav button .ico{font-size:19px;color:#d3e8fa}nav button.active .ico{color:#fff}.sidebar-bottom{border-top:1px solid #ffffff20}.side-server{border-top:0}.logout{color:#cae0ed}.topbar{height:76px;background:#fff;padding:0 clamp(24px,3vw,52px);box-shadow:0 1px 0 #dae7f0;direction:rtl}.top-start{flex:1;gap:28px}.top-actions{gap:18px}.global-search{display:flex;align-items:center;gap:8px;width:min(470px,46vw);background:#f5f8fc;border-radius:12px;padding:0 14px;color:#9badbd}.global-search span{font-size:21px;line-height:1}.global-search input{border:0;background:transparent;box-shadow:none;padding:11px 0;font-size:12px}.global-search input:focus{box-shadow:none}.top-icon{position:relative;border:0;background:transparent;color:#40566d;width:32px;height:32px;border-radius:50%;font-size:18px}.top-icon:hover{background:#eef4fa}.top-icon b{position:absolute;top:-2px;right:-2px;background:#e85a5d;color:#fff;border-radius:50%;min-width:16px;height:16px;font:10px Tahoma;display:grid;place-items:center}.user-chip{border-right:0;border-left:1px solid #e3ebf1;padding-right:0;padding-left:18px}.avatar{background:#e7f0fb;color:#1861af}.content{max-width:1700px;padding:29px clamp(24px,3vw,52px) 70px}.page-heading{margin-bottom:24px}.page-heading h1{color:#102f50}.page-heading p{color:#758da4}.heading-actions select{background:#fff;border-color:#dce7ef}.dashboard-hero{position:relative;overflow:hidden;display:flex;align-items:flex-start;justify-content:space-between;gap:24px;min-height:150px;padding:31px 34px;margin-bottom:24px;border-radius:0;background:linear-gradient(105deg,#f7fbff 0%,#eff7fd 57%,#d6ecfa 100%);border-bottom:1px solid #e1edf5}.dashboard-hero-copy>span{color:#7590a7;font-size:13px}.dashboard-hero h2{font-size:34px;line-height:1.2;margin:7px 0;color:#10385e}.dashboard-hero p{color:#70879b;margin:0;font-size:13px}.dashboard-hero-date{display:grid;gap:6px;color:#71889b;font-size:12px;text-align:right;z-index:1}.dashboard-hero-date strong{font-size:16px;color:#214b73}.dashboard-hero:after{content:'⌁';position:absolute;left:20%;bottom:-65px;color:#a7cce4;font-size:190px;line-height:1;opacity:.55;transform:rotate(-12deg)}.dashboard-section-heading{display:flex;align-items:center;gap:12px;margin:24px 0 14px}.dashboard-section-heading h2{margin:0 0 4px;font-size:20px;color:#112f50}.dashboard-section-heading p{margin:0;color:#7890a5;font-size:12px}.dashboard-heading-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;color:#195e9d;font-size:22px}.dashboard-module-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.dashboard-module{position:relative;min-height:235px;padding:20px;border:1px solid #dde8f1;border-radius:14px;background:#fff;box-shadow:0 7px 20px #1b4a6b0a;display:flex;flex-direction:column;transition:.2s}.dashboard-module:hover{transform:translateY(-2px);box-shadow:0 15px 32px #1b4a6b14}.dashboard-module-head{display:flex;align-items:flex-start;gap:11px}.dashboard-module-head>div{flex:1;min-width:0}.dashboard-module-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:11px;font-size:22px;flex:none}.dashboard-module h3{margin:2px 0 4px;color:#12365c;font-size:16px}.dashboard-module p{font-size:11px;color:#7b91a5;line-height:1.8;margin:0}.dashboard-module-arrow{border:0;background:none;color:#7b9ab8;font-size:25px;padding:0;line-height:1}.dashboard-module.blue .dashboard-module-icon{background:#deedff;color:#2374da}.dashboard-module.green .dashboard-module-icon{background:#dff6ed;color:#128873}.dashboard-module.purple .dashboard-module-icon{background:#ebe5ff;color:#6444c4}.dashboard-module.cyan .dashboard-module-icon{background:#d9f5fb;color:#1689a1}.dashboard-module-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;border-bottom:1px solid #edf2f6;padding:24px 0 16px;margin-bottom:12px}.dashboard-module-stats div{display:grid;gap:4px}.dashboard-module-stats strong{font-size:20px;color:#1670d1}.dashboard-module.green .dashboard-module-stats strong{color:#168875}.dashboard-module.purple .dashboard-module-stats strong{color:#6850c4}.dashboard-module.cyan .dashboard-module-stats strong{color:#168aa4}.dashboard-module-stats small{font-size:9px;color:#8aa0b2;line-height:1.4}.dashboard-module-link,.dashboard-module-count+button{border:0;background:none;color:#1167c7;text-align:right;padding:0;font-size:11px;margin-top:auto;cursor:pointer}.dashboard-module-count{display:grid;gap:3px;margin:24px 0 15px}.dashboard-module-count strong{font-size:28px;color:#176fcf}.dashboard-module-count small{font-size:10px;color:#8aa0b2}.dashboard-pick-project{margin-top:18px}.dashboard-flow,.dashboard-data-card{background:#fff;border:1px solid #dfe9f1;border-radius:15px;box-shadow:0 8px 22px #1b4a6b0a;padding:0 22px;margin-top:26px}.dashboard-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;padding:17px 0 30px}.dashboard-step{position:relative;text-align:center;display:grid;justify-items:center;gap:7px;padding:0 10px}.dashboard-step:not(:last-child):after{content:'→';position:absolute;left:-9%;top:22px;color:#b5c8da;font-size:24px}.dashboard-step-icon{border:0;background:none;padding:0;position:relative;color:#194d79}.dashboard-step-icon:before{content:'';display:block;width:62px;height:62px;border-radius:50%;background:#e5eef8;border:5px solid #eff5fa}.dashboard-step.has-data .dashboard-step-icon:before{background:#d5f3eb}.dashboard-step-icon{font-size:0}.dashboard-step-icon::after{content:'▣';position:absolute;inset:0;display:grid;place-items:center;font-size:25px}.dashboard-step:nth-child(2) .dashboard-step-icon:after{content:'🛒'}.dashboard-step:nth-child(3) .dashboard-step-icon:after{content:'▣'}.dashboard-step:nth-child(4) .dashboard-step-icon:after{content:'▤'}.dashboard-step:nth-child(5) .dashboard-step-icon:after{content:'▰'}.dashboard-step-icon i{position:absolute;bottom:-10px;right:0;width:20px;height:20px;border-radius:50%;background:#6c91b4;color:#fff;font:11px Tahoma;display:grid;place-items:center;font-style:normal}.dashboard-step strong{font-size:12px;color:#183b60}.dashboard-step small{font-size:10px;color:#7f95a8;line-height:1.7;max-width:145px}.dashboard-step-state{font-size:10px;font-style:normal;padding:4px 12px;border-radius:999px;background:#edf3f8;color:#6c8499}.dashboard-step.has-data .dashboard-step-state{background:#d7f3eb;color:#258572}.dashboard-lower{display:grid;grid-template-columns:1.4fr .9fr;gap:18px}.dashboard-lower .dashboard-data-card{margin-top:18px}.dashboard-progress{display:flex;justify-content:space-between;gap:10px;color:#71889b;font-size:11px;padding:4px 0 12px}.dashboard-progress strong{color:#1a6dc1;margin-right:4px}.dashboard-chart .chart{margin-top:7px}.dashboard-task{display:flex;align-items:center;gap:11px;border-top:1px solid #eef3f6;padding:12px 0}.dashboard-task:first-of-type{border-top:0}.dashboard-task div{flex:1;min-width:0}.dashboard-task strong,.dashboard-task small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dashboard-task strong{font-size:11px;color:#34536f}.dashboard-task small{font-size:10px;color:#97a9b8;margin-top:3px}.dashboard-task>span{font-size:11px;color:#4985bb}@media(max-width:1150px){.dashboard-module-grid{grid-template-columns:repeat(2,1fr)}.dashboard-lower{grid-template-columns:1fr}}@media(max-width:760px){.global-search{display:none}.top-actions{gap:8px}.date-label{display:none}.dashboard-hero{padding:24px;min-height:130px}.dashboard-hero h2{font-size:26px}.dashboard-hero-date{display:none}.dashboard-module-grid{grid-template-columns:1fr}.dashboard-steps{grid-template-columns:1fr;gap:18px}.dashboard-step:not(:last-child):after{content:'↓';left:50%;top:auto;bottom:-22px;font-size:18px}.dashboard-flow,.dashboard-data-card{padding:0 15px}}

.top-start{position:relative}.search-results{position:absolute;top:48px;right:128px;width:min(470px,46vw);z-index:30;background:#fff;border:1px solid #dfe9f1;border-radius:12px;box-shadow:0 14px 30px #17466b1c;padding:6px}.search-results button{display:flex;align-items:center;gap:10px;width:100%;border:0;background:#fff;color:#315672;border-radius:8px;padding:10px 12px;text-align:right;font-size:12px}.search-results button:hover{background:#eef6fd}.search-results .empty{padding:10px;font-size:11px}@media(max-width:760px){.search-results{right:12px;width:calc(100vw - 40px)}}
.lang-en .workspace .main{direction:ltr}.lang-en .topbar{direction:ltr}.lang-en .crumb{text-align:left}.lang-en .page-heading,.lang-en .section-title{direction:ltr}.lang-en .section-title h2,.lang-en .card-head{text-align:left}.lang-en .table{text-align:left}.lang-en .toolbar{direction:ltr}.lang-en .global-search input{text-align:left}.lang-en .dashboard-section-heading,.lang-en .dashboard-module-head,.lang-en .dashboard-data-card,.lang-en .dashboard-flow{text-align:left}

.gateway-language select{width:100%;margin-top:8px;min-height:48px;border:1px solid #d8e6f0;border-radius:11px;background:#fff;color:#163a58;padding:8px 12px}.gateway-language select:focus-visible{outline:3px solid #a9d0ff;outline-offset:2px}.lang-en .gateway-panel{text-align:left}.lang-en .gateway-language select{text-align:left}

/* Language-aware sidebar placement: Persian and Arabic on the right, English on the left. */
.workspace{direction:rtl}
.workspace .sidebar{direction:rtl}
.workspace .main{direction:rtl}
nav button{text-align:right}
nav button.active{border-radius:24px 0 0 24px}

body.lang-en .workspace{direction:ltr}
body.lang-en .workspace .sidebar{direction:ltr}
body.lang-en .workspace .main{direction:ltr}
body.lang-en nav button{text-align:left}
body.lang-en nav button.active{border-radius:0 24px 24px 0}

@media(max-width:760px){
  .workspace{display:block}
  .sidebar{right:0;left:auto;transform:translateX(110%)}
  .sidebar.open{transform:none}
  body.lang-en .sidebar{left:0;right:auto;transform:translateX(-110%)}
  body.lang-en .sidebar.open{transform:none}
}

/* Project lifecycle path */
.project-lifecycle{padding:22px 24px;margin:18px 0;overflow:hidden}
.project-lifecycle-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;flex-wrap:wrap}
.project-lifecycle-head h2{margin:6px 0 4px;color:#12365c;font-size:18px}
.project-lifecycle-head p{margin:0;font-size:11px}
.lifecycle-status{margin-top:8px}
.lifecycle-track{position:relative;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:24px 0 18px;padding:0 5px}
.lifecycle-track:before{content:'';position:absolute;top:22px;right:9%;left:9%;height:3px;border-radius:4px;background:#dbe8f2}
.lifecycle-stage{position:relative;z-index:1;display:grid;justify-items:center;gap:8px;text-align:center;min-width:0;padding:0 7px;color:#7a91a4}
.lifecycle-node{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;border:4px solid #eef4f9;background:#e3edf6;color:#6e8aa3;font:700 13px Tahoma;box-shadow:0 3px 10px #1c4b6b12}
.lifecycle-stage strong{font-size:11px;color:#5b7389;line-height:1.5}
.lifecycle-stage small{font-size:10px;line-height:1.6;max-width:145px;color:#91a3b2}
.lifecycle-stage.done .lifecycle-node{background:#d7f1e8;border-color:#d7f1e8;color:#258572}
.lifecycle-stage.done strong{color:#377562}
.lifecycle-stage.current .lifecycle-node{background:#1468c5;border-color:#d8eaff;color:#fff;box-shadow:0 0 0 5px #1468c51c,0 8px 18px #1468c53b}
.lifecycle-stage.current strong{color:#1468c5;font-weight:800}
.lifecycle-stage.paused .lifecycle-node{background:#d98b57;border-color:#f8e6d9;color:#fff}
.lifecycle-stage.paused strong{color:#b86c38}
.project-lifecycle-meta{display:flex;gap:18px;flex-wrap:wrap;border-top:1px solid #edf2f6;padding-top:14px;color:#7890a4;font-size:10px}
.project-lifecycle-meta b{color:#526d83}
@media(max-width:760px){.project-lifecycle{padding:18px}.lifecycle-track{grid-template-columns:1fr;gap:14px;padding:0 0 0 8px;margin-top:20px}.lifecycle-track:before{top:10px;bottom:10px;left:29px;right:auto;width:3px;height:auto}.lifecycle-stage{grid-template-columns:46px 1fr;grid-template-rows:auto auto;justify-items:start;text-align:right;column-gap:12px;padding:0}.lifecycle-node{grid-row:1 / span 2}.lifecycle-stage strong,.lifecycle-stage small{max-width:none}.project-lifecycle-meta{display:grid;gap:7px}}

/* Blue organization theme */
:root{--brand-blue:#176fcf;--brand-blue-dark:#0b3b69;--brand-blue-deep:#092f55;--brand-blue-soft:#eaf4fd;--brand-blue-line:#d5e6f5;--brand-blue-text:#173b60}
body{background:#f3f7fb;color:var(--brand-blue-text)}
.gateway-art{background:linear-gradient(145deg,#092f55 0%,#0c477a 58%,#1166ad 100%)}
.brand-mark{background:#dceeff;color:#1265bd;box-shadow:0 8px 25px #062b5055}
.brand small,.art-footer{color:#b8d5ee}
.art-middle em{color:#9fd0ff}
.art-middle p{color:#c1d8ec}
.btn.primary{background:var(--brand-blue)!important;box-shadow:0 10px 24px #176fcf2c}
.btn.primary:hover{background:#0d57a5!important}
.btn.secondary{color:#145ca5;border-color:#cfe1f1}
input:focus,select:focus,textarea:focus{border-color:#5c9cdb;box-shadow:0 0 0 3px #9fcbef66}
.pulse{background:#72b3ed;box-shadow:0 0 0 4px #72b3ed2b}
.metric.accent{background:#0f4f8d}
.metric.accent label,.metric.accent small{color:#c8e2f7}
.metric.accent .glyph{color:#d7edff}
.metric .glyph{color:#4d83b8;background:#edf6fd}
.project-icon{background:#e5f1fb;color:#1d67a8}
.badge{background:#e8f2fb;color:#1d65a8}
.notice{background:#eef6fd;border-color:#d6e7f5;color:#35678f}
.quick-actions button{border-color:#d9e8f5;background:#f6faff;color:#1b609d}
.quick-actions button:hover{border-color:#82b5e4}
.progress-track{background:#e5f0f9}
.progress-track>span{background:#5d9bd4}
.chart-bar.actual,.legend i{background:#2878c5}
.chart-bar{background:#bfdcf3}
.legend i.plan{background:#bfdcf3}
.pill-tabs button.active{background:var(--brand-blue)}
.tiny{background:#f0f7fd;border-color:#d3e5f5;color:#2069a8}
.tiny:hover{background:#e3f1fc}
.toast{background:#0f4f8d}
.dashboard-module.green .dashboard-module-icon{background:#e1effd;color:#176fcf}
.dashboard-module.green .dashboard-module-stats strong{color:#176fcf}
.dashboard-step.has-data .dashboard-step-icon:before{background:#dceeff}
.dashboard-step.has-data .dashboard-step-state{background:#e1f0fd;color:#176fcf}
.lifecycle-stage.done .lifecycle-node{background:#dceeff;border-color:#dceeff;color:#176fcf}
.lifecycle-stage.done strong{color:#286ca6}

/* RFQ and purchase order forms */
.procurement-dialog{width:min(760px,calc(100% - 24px));border-radius:24px;background:#fff;border:1px solid #d9e8f5;box-shadow:0 28px 90px #173f6228}
.procurement-dialog #entity-form,.rfq-dialog #entity-form{padding:30px 32px}
.rfq-dialog{width:min(820px,calc(100% - 24px));border-radius:26px;background:#f8fbfe;border:1px solid #d8e8f6;box-shadow:0 30px 100px #173f6233}
.rfq-dialog #entity-form{padding:0;overflow:hidden}
.rfq-dialog .modal-head{padding:25px 30px 18px;margin:0;background:#fff;border-bottom:1px solid #e4eef6}
.rfq-dialog .modal-head .eyebrow{color:#176fcf}
.rfq-dialog .modal-head h2{font-size:23px;color:#123b60}
.rfq-dialog #form-fields{display:block;padding:0 30px;max-height:calc(90vh - 175px);overflow:auto}
.rfq-dialog .form-error{margin:0 30px}
.rfq-dialog .modal-actions{padding:18px 30px 26px;background:#fff;border-top:1px solid #e4eef6}
.rfq-shell,.order-shell{display:grid;gap:18px;padding:4px 0 20px}
.rfq-hero,.order-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:20px 22px;border:1px solid #d6e7f5;border-radius:18px;background:linear-gradient(135deg,#edf7ff,#fff)}
.rfq-hero h3,.order-hero h3{margin:7px 0 5px;color:#123b60;font-size:20px}.rfq-hero h3 small{font-size:12px;color:#6e8798;font-weight:500}.rfq-hero p,.order-hero p{margin:0;color:#6b8495;font-size:11px;line-height:1.9}.rfq-progress{min-width:100px;padding:11px 13px;border-radius:14px;background:#176fcf;color:#fff;text-align:center}.rfq-progress b{display:block;font-size:19px}.rfq-progress span{font-size:9px;opacity:.9}.rfq-checklist{display:flex;align-items:center;justify-content:center;gap:10px;color:#8aa0af;font-size:11px}.rfq-checklist span{display:flex;align-items:center;gap:6px;padding:9px 12px;border-radius:12px;background:#eef3f7}.rfq-checklist span.done{background:#e3f5ec;color:#16724f}.rfq-checklist span b{font-weight:700}.rfq-checklist i{font-style:normal;color:#abc0cb}.rfq-quote-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.rfq-quote-card{display:grid;gap:12px;padding:15px;border:1px solid #dfeaf2;border-radius:15px;background:#fff;transition:.2s}.rfq-quote-card.selected{border-color:#4caf87;box-shadow:0 8px 22px #2a95631c}.rfq-quote-top{display:flex;align-items:center;gap:10px}.rfq-rank{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#eaf4fd;color:#176fcf;font-weight:800}.rfq-quote-top strong{display:block;color:#214b6d;font-size:12px}.rfq-quote-top small{display:block;color:#8ba0ad;font-size:10px;margin-top:3px}.rfq-selected-badge{margin-right:auto;padding:4px 8px;border-radius:8px;background:#e3f5ec;color:#16724f;font-size:9px;font-weight:800}.rfq-quote-meta{display:flex;align-items:center;justify-content:space-between;padding-top:10px;border-top:1px solid #edf2f5;color:#7e95a4;font-size:10px}.rfq-quote-meta b{color:#1d557f;font-size:13px}.rfq-select-btn{min-height:36px;padding:7px 12px;color:#176fcf;background:#f3f8fd;border-color:#c9e0f2;font-size:10px}.rfq-add-card{padding:18px;border:1px dashed #b9d7ea;border-radius:17px;background:#f5faff}.rfq-add-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}.rfq-add-head strong{display:block;color:#204c6c;font-size:13px}.rfq-add-head small{display:block;color:#8ca0ae;font-size:10px;margin-top:4px}.rfq-add-head>span{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:#dceeff;color:#176fcf;font-size:21px}.rfq-add-grid,.order-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.rfq-add-grid label,.order-grid label{display:grid;gap:7px;color:#4b6a7d;font-size:11px;font-weight:700}.rfq-add-grid label.full,.order-grid label.full{grid-column:1/-1}.rfq-add-grid input,.order-grid input,.order-grid select,.order-grid textarea{background:#fff;border-color:#d4e4ee}.rfq-empty{display:grid;justify-items:center;gap:5px;padding:27px;border:1px dashed #c8dce8;border-radius:15px;background:#fff;color:#7190a4;text-align:center}.rfq-empty span{font-size:27px;color:#7db4dc}.rfq-empty strong{font-size:12px;color:#456b83}.rfq-empty small{font-size:10px}.rfq-mini{display:inline-flex;padding:5px 8px;border-radius:8px;font-size:9px;font-weight:700;white-space:nowrap}.rfq-mini.ready{background:#e5f6ed;color:#197552}.rfq-mini.pending{background:#fff4df;color:#a36a1a}.order-lock{padding:8px 11px;border-radius:10px;background:#e3f5ec;color:#16724f;font-size:10px;font-weight:800;white-space:nowrap}.rfq-selected-card{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;border-radius:16px;background:#edf8f1;border:1px solid #c7e6d3}.rfq-selected-card span,.rfq-selected-card small{display:block;color:#6f9780;font-size:10px}.rfq-selected-card strong{display:block;color:#196044;font-size:14px;margin:5px 0}.rfq-selected-card>b{color:#176b4b;font-size:16px;white-space:nowrap}
@media(max-width:680px){.rfq-dialog #form-fields{padding:0 17px}.rfq-dialog .modal-head{padding:20px 17px 15px}.rfq-dialog .modal-actions{padding:15px 17px 20px}.rfq-dialog .form-error{margin:0 17px}.rfq-hero,.order-hero{display:grid}.rfq-quote-list,.rfq-add-grid,.order-grid{grid-template-columns:1fr}.rfq-add-grid label.full,.order-grid label.full{grid-column:auto}.rfq-checklist{align-items:stretch;flex-direction:column}.rfq-checklist i{transform:rotate(-90deg)}.rfq-selected-card{align-items:flex-start;flex-direction:column}.rfq-selected-card>b{font-size:14px}}
.rfq-file-field{padding:11px 12px;border:1px solid #d4e4ee;border-radius:12px;background:#fff}.rfq-file-field small{font-size:9px;color:#86a0af;font-weight:500}.rfq-file-field input[type=file]{padding:9px;border:1px dashed #b8d2e5;background:#f8fbfe}.rfq-attachment-btn{justify-self:start;max-width:100%;overflow:hidden;text-overflow:ellipsis}.rfq-no-attachment{color:#a4b4bd;font-size:10px}


/* Lifecycle dialog visual refinement */
.lifecycle-dialog{width:min(980px,calc(100% - 28px));max-width:980px;padding:0;border-radius:28px;background:#f5f9fd;border:1px solid #d9e8f5;box-shadow:0 32px 100px #173f6238;overflow:hidden}
.lifecycle-dialog #entity-form{display:flex;flex-direction:column;max-height:90vh;padding:0;overflow:hidden}
.lifecycle-dialog .modal-head{flex:none;padding:27px 34px 22px;margin:0;background:linear-gradient(135deg,#fafdff,#eef6fd);border-bottom:1px solid #dceaf5}
.lifecycle-dialog .modal-head h2{margin:6px 0 0;color:#123b60;font-size:24px;letter-spacing:-.02em}
.lifecycle-dialog .modal-head .eyebrow{color:#176fcf}
.lifecycle-dialog #form-fields{display:block!important;flex:1;min-height:0;max-height:none;overflow:auto;padding:30px 34px 34px!important;background:#f5f9fd}
.lifecycle-dialog #form-error{flex:none;margin:0 34px;min-height:0}
.lifecycle-dialog .modal-actions{flex:none;justify-content:flex-start;padding:16px 34px 24px;background:#fff;border-top:1px solid #dceaf5}
.lifecycle-dialog .modal-actions #submit-dialog{display:none!important}
.procurement-lifecycle-card{width:100%;padding:30px 32px 24px;border:1px solid #d5e5f1;border-radius:23px;background:#fff;box-shadow:0 16px 38px #1d557f12;position:relative;overflow:hidden}
.procurement-lifecycle-card:before{content:'';position:absolute;inset:0 0 auto;height:5px;background:linear-gradient(90deg,#176fcf,#62b2e8)}
.procurement-lifecycle-card.po-card:before{background:linear-gradient(90deg,#287f72,#87c6a4)}
.procurement-lifecycle-head{display:flex;align-items:flex-start;justify-content:space-between;gap:22px;padding-bottom:18px;border-bottom:1px solid #edf3f7}
.procurement-lifecycle-head>div{min-width:0}
.procurement-lifecycle-head .eyebrow{display:block;color:#6f8fa7;letter-spacing:.08em}
.procurement-lifecycle-head h3{margin:8px 0 6px;color:#183f60;font-size:22px;line-height:1.5;overflow-wrap:anywhere}
.procurement-lifecycle-head .code{display:inline-flex;max-width:100%;padding:4px 8px;border-radius:7px;background:#f0f6fb;color:#66849a;font-size:10px;overflow:hidden;text-overflow:ellipsis}
.procurement-state{flex:none;padding:8px 13px;border-radius:999px;background:#e9f2fa;color:#176fcf;font-size:11px;font-weight:800;white-space:nowrap}
.procurement-state.approved,.procurement-state.delivered,.procurement-state.ordered{background:#e4f5ec;color:#18704f}
.procurement-state.rejected,.procurement-state.cancelled{background:#fbe9e7;color:#ae5148}
.procurement-state.submitted{background:#fff3dc;color:#a46a1a}
.procurement-lifecycle-subtitle{margin:18px 0 25px;color:#71899b;font-size:12px;line-height:1.9}
.procurement-stepper{display:flex;align-items:flex-start;width:100%;margin:0 0 27px;direction:rtl}
.procurement-step{display:grid;justify-items:center;gap:10px;flex:1;min-width:0;text-align:center;position:relative}
.procurement-step-node{display:grid;place-items:center;width:38px;height:38px;border:2px solid #bed2e1;border-radius:50%;background:#fff;color:#7892a5;font:bold 13px Tahoma;box-shadow:0 5px 12px #204e6e0b;position:relative;z-index:1}
.procurement-step strong{color:#7a91a2;font-size:11px;line-height:1.6;white-space:normal}
.procurement-step-line{flex:1 1 62px;min-width:16px;height:2px;margin-top:18px;background:#dce8ef}
.procurement-step.done .procurement-step-node{border-color:#4ea589;background:#e2f5ed;color:#1b785a}
.procurement-step.done strong{color:#28745f}
.procurement-step.current .procurement-step-node{border-color:#176fcf;background:#e7f2fc;color:#176fcf;box-shadow:0 0 0 5px #176fcf18}
.procurement-step.current strong{color:#176fcf;font-weight:800}
.procurement-step.rejected .procurement-step-node{border-color:#d4746c;background:#fbe9e7;color:#b8544b}
.procurement-step.rejected strong{color:#b8544b}
.procurement-lifecycle-foot{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding-top:21px;border-top:1px solid #edf3f7}
.procurement-lifecycle-foot>span{display:flex;align-items:center;min-height:48px;padding:10px 14px;border-radius:13px;background:#f5f9fc;color:#56758a;font-size:11px;line-height:1.7}
.procurement-lifecycle-foot>span+span{background:#f2f8f4;color:#4f806d}
@media(max-width:680px){.lifecycle-dialog{width:calc(100% - 18px);border-radius:20px}.lifecycle-dialog .modal-head{padding:21px 18px 17px}.lifecycle-dialog .modal-head h2{font-size:20px}.lifecycle-dialog #form-fields{padding:18px!important}.lifecycle-dialog #form-error{margin:0 18px}.lifecycle-dialog .modal-actions{padding:14px 18px 18px}.procurement-lifecycle-card{padding:25px 18px 18px;border-radius:18px}.procurement-lifecycle-head{gap:12px}.procurement-lifecycle-head h3{font-size:18px}.procurement-state{padding:7px 10px;font-size:10px}.procurement-lifecycle-subtitle{margin:15px 0 20px}.procurement-stepper{display:grid;grid-template-columns:1fr;gap:0;margin-bottom:21px}.procurement-step{display:grid;grid-template-columns:38px 1fr;justify-items:start;align-items:center;gap:12px;text-align:right;min-height:49px}.procurement-step strong{font-size:11px}.procurement-step-line{width:2px;min-width:2px;height:18px;margin:0 18px 0 0}.procurement-lifecycle-foot{grid-template-columns:1fr;gap:8px}}


/* Inventory workspace */
.inventory-shell{display:grid;gap:20px;padding:4px 0 28px}
.inventory-hero{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:26px 28px;border:1px solid #d6e8f4;border-radius:22px;background:linear-gradient(135deg,#edf8ff 0%,#fff 72%);box-shadow:0 12px 30px #1d557f0d}
.inventory-hero h2{margin:7px 0 6px;color:#173f60;font-size:25px;letter-spacing:-.03em}.inventory-hero p{margin:0;color:#6b879a;font-size:11px;line-height:1.9;max-width:570px}.inventory-hero-actions{display:flex;align-items:center;gap:9px;flex:none}
.inventory-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.inventory-overview>div{padding:19px 20px;border:1px solid #e1ebf1;border-radius:17px;background:#fff;box-shadow:0 8px 22px #1d557f08}.inventory-overview>div:first-child{background:linear-gradient(135deg,#e9f7f1,#fff);border-color:#cce8da}.inventory-overview>div:nth-child(2){background:linear-gradient(135deg,#fff6e5,#fff);border-color:#f1dfbb}.inventory-overview small,.inventory-overview span{display:block;color:#7791a1;font-size:10px}.inventory-overview strong{display:block;margin:6px 0 3px;color:#1c557a;font-size:25px}.inventory-overview>div:first-child strong{color:#217359}.inventory-overview>div:nth-child(2) strong{color:#a16d1f}
.inventory-location-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.inventory-location-card{padding:21px;border:1px solid #dbe8ef;border-radius:21px;background:#fff;box-shadow:0 13px 30px #1d557f0d;min-width:0;position:relative;overflow:hidden}.inventory-location-card:before{content:'';position:absolute;inset:0 0 auto;height:4px;background:linear-gradient(90deg,#3a91c8,#9ed4ed)}.inventory-location-card.covered-stock:before{background:linear-gradient(90deg,#328a76,#a2d5b8)}.inventory-location-head{display:grid;grid-template-columns:42px 1fr auto;align-items:start;gap:12px}.inventory-location-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#e7f3fb;color:#2779ae;font-size:22px}.covered-stock .inventory-location-icon{background:#e5f5ed;color:#28795e}.inventory-location-head h3{margin:5px 0 3px;color:#1a4a6c;font-size:17px}.inventory-location-head p{margin:0;color:#8197a4;font-size:10px;line-height:1.7}.inventory-visible-count{display:grid;place-items:center;min-width:34px;height:28px;padding:0 8px;border-radius:999px;background:#edf5fa;color:#21709f;font-size:11px;font-weight:800}.covered-stock .inventory-visible-count{background:#ebf7f0;color:#26785e}
.inventory-location-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:18px 0 13px}.inventory-location-metrics>div{padding:10px 12px;border-radius:12px;background:#f5f9fc}.covered-stock .inventory-location-metrics>div{background:#f2f8f4}.inventory-location-metrics small{display:block;color:#7b94a3;font-size:9px}.inventory-location-metrics strong{display:block;margin-top:4px;color:#205c80;font-size:17px}.covered-stock .inventory-location-metrics strong{color:#28765d}
.inventory-search{display:flex;align-items:center;gap:8px;padding:4px 10px;border:1px solid #d7e6ee;border-radius:11px;background:#fafdff;color:#7e9aaa;transition:.2s}.inventory-search:focus-within{border-color:#6ca7c6;box-shadow:0 0 0 3px #b9d9e866;background:#fff}.inventory-search>span{font-size:19px;line-height:1}.inventory-search input{border:0!important;box-shadow:none!important;background:transparent;padding:8px 2px;color:#234c66;font-size:11px}.inventory-search input::placeholder{color:#9aacb6}.inventory-table-wrap{margin-top:14px;overflow:auto;border:1px solid #e7eef3;border-radius:14px;background:#fff}.inventory-table{min-width:530px;margin:0}.inventory-table th{background:#f6fafc;color:#718b9d;font-size:10px}.inventory-table td{font-size:10px;color:#4e6f81;vertical-align:middle}.inventory-table td strong,.inventory-table td small{display:block}.inventory-table td strong{color:#285773;font-size:11px}.inventory-table td small{margin-top:3px;color:#95a7b1;font-size:9px}.inventory-table td>b{color:#1b607f;font-size:13px}.inventory-stock-state{display:inline-flex;padding:4px 8px;border-radius:999px;font-size:9px;font-weight:800}.inventory-stock-state.in{background:#e3f5ec;color:#237454}.inventory-stock-state.empty{background:#f1f4f6;color:#8799a3}.inventory-table tbody tr.is-filtered{display:none}.inventory-no-results{padding:20px;text-align:center;color:#8ba0ac;font-size:10px}.inventory-inline-empty{padding:18px;text-align:center;color:#8ba0ac;font-size:10px}.inventory-materials-panel{padding:23px;border:1px solid #dbe8ef;border-radius:22px;background:#fff;box-shadow:0 13px 30px #1d557f0d}.inventory-panel-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:15px}.inventory-panel-head h2{margin:6px 0 4px;color:#1b4866;font-size:19px}.inventory-panel-head p{margin:0;color:#879ba6;font-size:10px}.inventory-material-search{width:min(310px,100%)}.inventory-material-table{min-width:680px}
@media(max-width:900px){.inventory-location-grid{grid-template-columns:1fr}.inventory-hero{align-items:flex-start;flex-direction:column}.inventory-hero-actions{width:100%}.inventory-hero-actions .btn{width:100%}}
@media(max-width:680px){.inventory-shell{gap:14px}.inventory-hero{padding:21px 18px;border-radius:18px}.inventory-hero h2{font-size:21px}.inventory-overview{grid-template-columns:1fr;gap:9px}.inventory-overview>div{padding:15px 17px}.inventory-overview strong{font-size:22px}.inventory-location-card,.inventory-materials-panel{padding:17px;border-radius:18px}.inventory-panel-head{align-items:stretch;flex-direction:column}.inventory-material-search{width:100%}.inventory-location-head h3{font-size:15px}.inventory-table{min-width:470px}}


/* Procurement tables */
.procurement-table-card{padding:15px 18px 18px;border:1px solid #dbe8f1;border-radius:20px;background:#fff;box-shadow:0 12px 30px #1d557f0b;margin-bottom:22px}.procurement-filterbar{display:grid;grid-template-columns:minmax(240px,1.6fr) minmax(150px,.7fr) minmax(150px,.7fr) auto;align-items:end;gap:10px;padding:4px 2px 16px}.procurement-filterbar label{display:grid;gap:6px;color:#6e8797;font-size:10px;font-weight:800}.procurement-filterbar select{min-height:40px;padding:9px 11px;border-color:#d9e7ef;background:#fafdff;color:#315a72;font-size:11px}.procurement-search{display:flex!important;align-items:center;gap:8px;min-height:40px;padding:3px 11px;border:1px solid #d7e6ee;border-radius:11px;background:#fafdff;color:#7e9aaa;transition:.2s}.procurement-search:focus-within{border-color:#5d9fc4;box-shadow:0 0 0 3px #b9d9e866;background:#fff}.procurement-search>span{font-size:19px;line-height:1}.procurement-search input{border:0!important;box-shadow:none!important;background:transparent;padding:8px 2px;color:#234c66;font-size:11px}.procurement-search input::placeholder{color:#9aacb6}.procurement-filter-count{align-self:center;justify-self:end;padding:8px 11px;border-radius:999px;background:#eef6fb;color:#27709a;font-size:10px;font-weight:800;white-space:nowrap}.procurement-table-scroll{overflow:auto;border:1px solid #e6eef3;border-radius:14px}.procurement-table{min-width:980px;margin:0}.procurement-table thead th{background:linear-gradient(180deg,#f8fbfd,#f1f7fa);color:#6d8796;font-size:10px;white-space:nowrap}.procurement-table tbody tr{transition:.18s}.procurement-table tbody tr:hover{background:#f7fbfd}.procurement-table tbody tr.is-filtered{display:none}.procurement-table td{font-size:10px;color:#4b6c7c;vertical-align:middle}.procurement-table td:first-child{font-weight:800;color:#254f69}.procurement-table td .tiny{margin:2px 0}.procurement-table .badge{display:inline-flex;align-items:center;padding:5px 8px;border-radius:999px;background:#e6f5ed;color:#267557;font-size:9px;font-weight:800;white-space:nowrap}.procurement-no-results,.procurement-empty{padding:24px;text-align:center;color:#8ba0ac;font-size:10px}.procurement-table-card+.section-title{margin-top:26px}
@media(max-width:850px){.procurement-filterbar{grid-template-columns:1fr 1fr}.procurement-search{grid-column:1/-1}.procurement-filter-count{justify-self:start}}
@media(max-width:600px){.procurement-table-card{padding:13px;border-radius:17px}.procurement-filterbar{grid-template-columns:1fr}.procurement-filter-count{justify-self:start}.procurement-table{min-width:900px}}

/* Physical security */
.security-shell{display:grid;gap:18px}.security-hero{padding:28px 32px;border-radius:24px;color:#ecf8fc;background:linear-gradient(120deg,#173d55,#17627b 70%,#258e97);box-shadow:0 18px 40px #14496027}.security-hero>span{font-size:12px;opacity:.76}.security-hero h2{color:white;font-size:25px;margin:9px 0}.security-hero p{color:#d3edf1;margin:0}.security-stats{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}.security-stats span{padding:8px 13px;border:1px solid #ffffff44;border-radius:11px;background:#ffffff17;font-weight:700;font-size:12px}.security-tabs{display:flex;gap:8px;overflow:auto;padding-bottom:4px}.security-tabs button{border:1px solid #dce8ee;background:#fff;border-radius:11px;padding:10px 16px;color:#517385;font:inherit;font-size:12px;white-space:nowrap;cursor:pointer}.security-tabs button.active{border-color:#187a8a;background:#e6f5f4;color:#116479;font-weight:800}.security-toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:12px;padding:17px;border:1px solid #e0ebef;border-radius:17px;background:#fff}.security-toolbar label{display:grid;gap:5px;min-width:190px;color:#678191;font-size:11px;font-weight:700}.security-toolbar input,.security-toolbar select{min-height:40px;border:1px solid #d7e5eb;border-radius:9px;padding:8px 11px;background:#fafdfe;color:#305a6e;font:inherit}.security-queue{margin-inline-start:auto;padding:10px;border-radius:10px;background:#f0f6f9;color:#476e80;font-size:11px}.security-content{padding:18px;border:1px solid #e1ebef;border-radius:18px;background:white;box-shadow:0 13px 32px #1b557c0b}.security-table-scroll{overflow:auto;border:1px solid #e7eff3;border-radius:13px;margin-top:15px}.security-table{min-width:740px;width:100%;margin:0}.security-table th{background:#f3f8fa;color:#5d7c8b;font-size:11px}.security-table td{font-size:11px;color:#35586a;vertical-align:middle;line-height:1.8}.security-table tr.is-filtered{display:none}.security-content .toolbar{display:flex;gap:7px;flex-wrap:wrap}@media(max-width:700px){.security-hero{padding:22px}.security-toolbar{display:grid}.security-queue{margin:0}.security-content{padding:12px}}


.security-dialog{width:min(680px,calc(100vw - 28px))}.security-dialog .modal-head{border-radius:15px;background:linear-gradient(120deg,#e9f5f7,#f4fbfc);padding:18px}.security-dialog .form-grid{gap:15px;padding:8px 1px}.security-dialog .form-grid label{font-size:12px;color:#345f72}.security-dialog .form-grid input,.security-dialog .form-grid select{min-height:43px;border-radius:10px;border-color:#cbdfe8}.security-dialog .form-grid input:focus,.security-dialog .form-grid select:focus{border-color:#21839a;box-shadow:0 0 0 3px #21839a20}.security-items{grid-column:1/-1;border:1px solid #dbe9ed;border-radius:13px;padding:14px;max-height:280px;overflow:auto}.security-items legend{font-weight:800;color:#315a70;padding:0 7px}.security-items label{display:flex!important;align-items:center;gap:10px;padding:9px;border-radius:9px;background:#f6fafb;margin:6px 0}.security-items label[hidden]{display:none!important}.security-items label>span{flex:1}.security-items input[type=checkbox]{min-height:auto!important;width:18px;height:18px}.security-items input[type=number]{width:80px;min-height:36px!important}

.rfq-flow-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:15px 18px;border:1px solid #d6e7f5;border-radius:16px;background:#fff}
.rfq-flow-actions .badge{padding:8px 12px;border-radius:10px;background:#e9f2fc;color:#175b9a;font-size:11px;font-weight:800}
.rfq-flow-actions .notice{flex-basis:100%;margin:0}
.rfq-flow-actions .btn{min-height:38px}
.rfq-dialog .rfq-file-field:focus-within{border-color:#3284ce;box-shadow:0 0 0 3px #3284ce20}

.rfq-dialog{width:min(900px,calc(100% - 28px));max-height:94vh;background:#f7fbff}
.rfq-dialog #form-fields{padding:0 36px 28px}
.rfq-shell{gap:22px}
.rfq-hero{padding:26px 28px;border-radius:24px;background:linear-gradient(120deg,#eef8ff,#ffffff 65%);box-shadow:0 10px 30px #2374b10c}
.rfq-hero-copy h3{font-size:25px;margin:9px 0 4px;color:#0e4677}
.rfq-hero-copy p{font-size:12px;color:#6d8497}
.rfq-progress{min-width:135px;padding:16px 18px;border-radius:18px;background:linear-gradient(145deg,#1673d1,#2b8be0);box-shadow:0 10px 18px #176fcf28}
.rfq-progress.complete{background:linear-gradient(145deg,#188b61,#35b77e)}
.rfq-progress b{font-size:24px;letter-spacing:.5px}
.rfq-section-head{display:flex;align-items:end;justify-content:space-between;gap:16px;padding:0 4px}
.rfq-section-head h4{margin:5px 0 0;font-size:17px;color:#214b6d}.rfq-section-head h4 small{font-size:11px;color:#8aa0ae;font-weight:600}.rfq-section-head>span{font-size:10px;color:#8ba0ad}
.rfq-quote-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.rfq-quote-list.single{grid-template-columns:minmax(0,1fr)}
.rfq-quote-card{gap:14px;padding:18px;border-radius:20px;box-shadow:0 8px 22px #1e52740b}.rfq-quote-card.selected{background:linear-gradient(150deg,#f4fff9,#fff)}
.rfq-quote-title strong{font-size:14px}.rfq-quote-title small{font-size:10px}.rfq-quote-detail{display:flex;justify-content:space-between;align-items:center;padding:13px 0;border-top:1px solid #edf2f6;border-bottom:1px solid #edf2f6}.rfq-quote-detail small{display:block;color:#8399a7;font-size:10px}.rfq-quote-detail strong{display:block;color:#17537d;font-size:17px;margin-top:5px}.rfq-quote-detail em{font-size:10px;font-style:normal;color:#6e8797;font-weight:600}.rfq-file-status{padding:6px 9px;border-radius:9px;font-size:10px;font-weight:800}.rfq-file-status.valid{background:#e7f8ef;color:#15714d}.rfq-file-status.missing{background:#fff3df;color:#a66a13}.rfq-card-actions{display:flex;flex-wrap:wrap;gap:7px}.rfq-card-actions .btn{min-height:34px}.rfq-edit-btn{color:#7251a3;background:#f5efff;border-color:#dfcff7}.rfq-flow-actions{padding:18px 20px;border-radius:19px;background:linear-gradient(120deg,#f0f8ff,#fff);border:1px solid #d6e7f5}.rfq-flow-copy{display:grid;gap:4px;margin-left:auto}.rfq-flow-copy small{font-size:10px;color:#829aaa}.rfq-flow-copy strong{font-size:15px;color:#1a527b}.rfq-flow-actions .btn{margin-top:5px}.rfq-add-card{padding:23px;border-radius:22px;background:linear-gradient(140deg,#f1f9ff,#fff);border:1px dashed #99c8e9}.rfq-add-head{margin-bottom:18px}.rfq-add-head strong{font-size:16px}.rfq-add-head small{font-size:10px}.rfq-edit-shell{display:grid;gap:18px;padding:24px 0}.rfq-edit-intro{padding:19px 22px;border-radius:18px;background:linear-gradient(120deg,#f1f7ff,#fff);border:1px solid #d6e7f5}.rfq-edit-intro h3{margin:7px 0;color:#174f78}.rfq-edit-intro p{margin:0;color:#718a9a;font-size:11px}.rfq-existing-file{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:13px 15px;border-radius:13px;font-size:11px}.rfq-existing-file.valid{background:#e9f8f0;color:#176b4b}.rfq-existing-file.missing{background:#fff4e1;color:#9c6418}.rfq-existing-file small{font-size:10px;opacity:.8}
@media(max-width:680px){.rfq-dialog #form-fields{padding:0 18px 22px}.rfq-section-head{align-items:flex-start;flex-direction:column}.rfq-quote-list{grid-template-columns:1fr}.rfq-existing-file{align-items:flex-start;flex-direction:column}}

/* Dedicated quote edit dialog */
.rfq-edit-dialog{width:min(860px,calc(100% - 28px));max-width:860px;padding:0;border:1px solid #d7e8f5;border-radius:28px;background:#f7fbff;box-shadow:0 30px 90px #123f6328;overflow:hidden;direction:rtl}
.rfq-edit-dialog #entity-form{display:flex;flex-direction:column;max-height:90vh;padding:0;overflow:hidden}
.rfq-edit-dialog .modal-head{padding:24px 32px 20px;background:linear-gradient(135deg,#ffffff,#f2f8fd);border-bottom:1px solid #e0edf5}
.rfq-edit-dialog .modal-head .eyebrow{color:#2472a8;font-size:11px;letter-spacing:.04em}
.rfq-edit-dialog .modal-head h2{margin:6px 0 0;color:#123e64;font-size:25px;font-weight:800}
.rfq-edit-dialog #form-fields{display:block;width:100%;max-height:calc(90vh - 170px);padding:24px 32px 28px;overflow:auto;box-sizing:border-box}
.rfq-edit-dialog .form-error{margin:0 32px 10px}
.rfq-edit-dialog .modal-actions{display:flex;justify-content:flex-start;gap:12px;padding:18px 32px 24px;background:#fff;border-top:1px solid #e0edf5}
.rfq-edit-dialog .modal-actions .btn{min-width:132px;min-height:46px;border-radius:14px;font-size:12px;font-weight:800}
.rfq-edit-dialog .modal-actions .btn.primary{box-shadow:0 9px 18px #176fcf26}
.rfq-edit-shell{width:100%;max-width:760px;margin:0 auto;display:grid;gap:18px;padding:0}
.rfq-edit-intro{position:relative;padding:22px 24px 20px;border-radius:20px;background:linear-gradient(135deg,#eaf6ff,#ffffff 72%);border:1px solid #cfe4f3;overflow:hidden}
.rfq-edit-intro:after{content:'✎';position:absolute;left:22px;top:18px;display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#dceeff;color:#176fcf;font-size:20px}
.rfq-edit-intro h3{margin:8px 0 7px;color:#124b76;font-size:22px}
.rfq-edit-intro p{max-width:560px;margin:0;color:#6c8496;font-size:11px;line-height:2}
.rfq-edit-shell .rfq-add-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:20px;border-radius:20px;background:#fff;border:1px solid #dbeaf4;box-shadow:0 8px 24px #1c5b800b}
.rfq-edit-shell .rfq-add-grid label{gap:8px;color:#42657d;font-size:11px;font-weight:800}
.rfq-edit-shell .rfq-add-grid input{min-height:48px;padding:0 14px;border-radius:13px;border:1px solid #cfe1ec;background:#fbfdff;color:#174b70;font-size:13px;box-sizing:border-box}
.rfq-edit-shell .rfq-add-grid input:focus{border-color:#3589c8;box-shadow:0 0 0 4px #3589c81c;outline:none}
.rfq-edit-shell .rfq-file-field{padding:14px;border-radius:14px;background:#f5faff;border:1px dashed #a6cbe5}
.rfq-edit-shell .rfq-file-field input[type=file]{height:auto;min-height:44px;padding:8px;border:1px dashed #b9d5e7;background:#fff;font-size:11px}
.rfq-edit-shell .rfq-file-field span{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.rfq-edit-shell .rfq-file-field small{color:#8098a7;font-size:10px;font-weight:600}
.rfq-existing-file{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 18px;border-radius:15px;font-size:11px;line-height:1.8}
.rfq-existing-file.valid{background:#e7f8ef;border:1px solid #bee7d0;color:#176c4b}
.rfq-existing-file.missing{background:#fff4df;border:1px solid #f1d6a2;color:#9a6418}
.rfq-existing-file small{font-size:10px;color:inherit;opacity:.8}
@media(max-width:680px){.rfq-edit-dialog{width:calc(100% - 14px);border-radius:20px}.rfq-edit-dialog .modal-head{padding:20px 18px 16px}.rfq-edit-dialog .modal-head h2{font-size:21px}.rfq-edit-dialog #form-fields{padding:18px 16px}.rfq-edit-dialog .form-error{margin:0 16px 8px}.rfq-edit-dialog .modal-actions{padding:14px 16px 18px}.rfq-edit-shell .rfq-add-grid{grid-template-columns:1fr;padding:15px}.rfq-edit-shell .rfq-add-grid label.full{grid-column:auto}.rfq-existing-file{align-items:flex-start;flex-direction:column}.rfq-edit-shell .rfq-file-field span{align-items:flex-start;flex-direction:column}}

/* Persistent account action in the sidebar */
.sidebar{overflow:hidden}
.sidebar nav{flex:1;min-height:0;overflow:auto;align-content:start;grid-auto-rows:max-content;padding-bottom:12px;scrollbar-width:thin;scrollbar-color:#ffffff35 transparent}
.sidebar-bottom{position:relative;z-index:3;flex:none;margin:0 -18px -28px;padding:0 18px 20px;background:linear-gradient(180deg,#193437 0%,#193437 78%,#163033 100%);box-shadow:0 -12px 25px #10262838}
.side-server{padding:17px 12px 13px}
.logout{align-items:center;justify-content:flex-start;gap:10px;margin-top:4px;padding:12px 14px;border:1px solid #ffffff20;border-radius:13px;background:#ffffff0d;color:#e6f2e9;font-weight:800;transition:.2s}
.logout:hover{background:#d0dfaf;color:#193437;border-color:#d0dfaf;transform:translateY(-1px);box-shadow:0 8px 18px #0b252833}
.logout-icon{display:grid;place-items:center;width:25px;height:25px;border-radius:8px;background:#d0dfaf;color:#193437;font-size:17px;font-weight:900;line-height:1}
.logout-arrow{margin-right:auto;font-size:16px;opacity:.75}
@media(max-width:760px){.sidebar-bottom{margin-bottom:-18px;padding-bottom:14px}.logout{min-height:44px}}

/* RFQ decision form */
.rfq-decision-dialog{width:min(820px,calc(100% - 28px));max-width:820px;padding:0;border:1px solid #d6e7f4;border-radius:28px;background:#f7fbff;box-shadow:0 30px 100px #123f632b;overflow:hidden;direction:rtl}
.rfq-decision-dialog #entity-form{display:flex;flex-direction:column;max-height:90vh;padding:0;overflow:hidden}
.rfq-decision-dialog .modal-head{padding:24px 32px 20px;background:linear-gradient(135deg,#fff,#f1f8fd);border-bottom:1px solid #dfedf5}
.rfq-decision-dialog .modal-head h2{margin:6px 0 0;color:#123e64;font-size:24px;font-weight:900}
.rfq-decision-dialog #form-fields{display:block;width:100%;max-height:calc(90vh - 168px);padding:24px 32px 28px;overflow:auto;box-sizing:border-box}
.rfq-decision-dialog .form-error{margin:0 32px 10px;padding:11px 14px;border:1px solid #f1b9b1;border-radius:12px;background:#fff1ef;color:#b84c42;font-size:12px;line-height:1.9}
.rfq-decision-dialog .modal-actions{display:flex;justify-content:flex-start;gap:12px;padding:18px 32px 24px;background:#fff;border-top:1px solid #dfedf5}
.rfq-decision-dialog .modal-actions .btn{min-width:132px;min-height:46px;border-radius:14px;font-weight:800}
.rfq-decision-shell{width:100%;max-width:760px;margin:0 auto;display:grid;gap:17px}
.rfq-decision-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:21px 23px;border:1px solid #cfe3f2;border-radius:20px;background:linear-gradient(135deg,#eaf6ff,#fff)}
.rfq-decision-hero h3{margin:7px 0 6px;color:#134d78;font-size:21px}.rfq-decision-hero p{margin:0;color:#6c8596;font-size:11px;line-height:1.9}.rfq-decision-status{flex:none;padding:9px 13px;border-radius:11px;font-size:10px;font-weight:900}.rfq-decision-status.ready{background:#e5f7ee;color:#176d4b}.rfq-decision-status.pending{background:#fff2dc;color:#a26816}
.rfq-decision-checks{display:grid;grid-template-columns:1fr 1fr;gap:12px}.rfq-decision-checks>div{display:flex;align-items:center;justify-content:space-between;padding:13px 16px;border:1px solid #d9e8f2;border-radius:14px;background:#fff}.rfq-decision-checks b{color:#16587f;font-size:16px}.rfq-decision-checks span{color:#7d94a2;font-size:10px}.rfq-decision-checks .ok{border-color:#bde5d0;background:#f1fbf5}.rfq-decision-checks .ok b{color:#17704c}
.rfq-decision-panel{padding:17px 18px;border:1px solid #dbeaf3;border-radius:18px;background:#fff}.rfq-decision-panel-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:12px}.rfq-decision-panel-head strong{color:#245473;font-size:13px}.rfq-decision-panel-head small{color:#859aa7;font-size:10px}.rfq-decision-quotes{display:grid;gap:8px}.rfq-decision-quote{display:flex;align-items:center;gap:10px;padding:10px 11px;border:1px solid #edf2f5;border-radius:12px;background:#fbfdff}.rfq-decision-quote.selected{border-color:#a9dbbf;background:#f1fbf5}.rfq-decision-index{display:grid;place-items:center;width:25px;height:25px;border-radius:8px;background:#e7f2fb;color:#1b70af;font-size:11px;font-weight:900}.rfq-decision-quote div{flex:1;min-width:0}.rfq-decision-quote strong,.rfq-decision-quote small{display:block}.rfq-decision-quote strong{color:#245473;font-size:11px}.rfq-decision-quote small{margin-top:3px;color:#8aa0ad;font-size:9px}.rfq-decision-file{padding:5px 8px;border-radius:8px;font-size:9px;font-weight:800}.rfq-decision-file.valid{background:#e5f7ee;color:#16714e}.rfq-decision-file.missing{background:#fff1dc;color:#a26817}.rfq-decision-selected{padding:5px 8px;border-radius:8px;background:#d9f2e4;color:#17704d;font-size:9px}.rfq-decision-empty{padding:16px;text-align:center;color:#a16b1b;background:#fff5e4;border-radius:11px;font-size:11px}
.rfq-decision-form{display:grid;grid-template-columns:1fr 1fr;gap:15px;padding:19px;border:1px solid #dbeaf3;border-radius:18px;background:#fff}.rfq-decision-form label{display:grid;gap:8px;color:#41647a;font-size:11px;font-weight:800}.rfq-decision-form label.full{grid-column:1/-1}.rfq-decision-form label small{font-size:9px;color:#8aa0ad;font-weight:500}.rfq-decision-form select,.rfq-decision-form textarea{border-color:#ccdfeb;background:#fbfdff;border-radius:13px}.rfq-decision-form textarea{min-height:108px;line-height:1.9}.rfq-decision-warning{padding:13px 16px;border:1px solid #f1d6a5;border-radius:13px;background:#fff4df;color:#996318;font-size:11px;line-height:1.9}
@media(max-width:680px){.rfq-decision-dialog{width:calc(100% - 14px);border-radius:20px}.rfq-decision-dialog .modal-head{padding:20px 18px 16px}.rfq-decision-dialog #form-fields{padding:18px 16px}.rfq-decision-dialog .form-error{margin:0 16px 8px}.rfq-decision-dialog .modal-actions{padding:14px 16px 18px}.rfq-decision-hero{display:grid}.rfq-decision-checks,.rfq-decision-form{grid-template-columns:1fr}.rfq-decision-form label.full{grid-column:auto}.rfq-decision-panel-head{align-items:flex-start;flex-direction:column}.rfq-decision-quote{align-items:flex-start;flex-wrap:wrap}.rfq-decision-quote div{min-width:120px}}

/* Project petty cash module */
.petty-hero{display:flex;justify-content:space-between;gap:22px;padding:26px 28px;margin-bottom:18px;border:1px solid #d5e7f2;border-radius:24px;background:linear-gradient(135deg,#edf8ff,#fff);box-shadow:0 12px 28px #1d668b0b}.petty-hero h2{margin:8px 0 6px;color:#164d73;font-size:22px}.petty-hero p{margin:0;color:#6d8695;font-size:11px;line-height:2}.petty-hero-metrics{display:flex;gap:10px;align-items:center}.petty-hero-metrics span{display:grid;gap:4px;padding:12px 15px;border-radius:14px;background:#fff;border:1px solid #dcebf3;color:#8096a2;font-size:10px;text-align:center}.petty-hero-metrics b{color:#176eb1;font-size:16px}.petty-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:13px 15px;margin-bottom:14px;border:1px solid #dbe9f1;border-radius:16px;background:#fff}.petty-toolbar select,.petty-search{min-height:40px;border:1px solid #d6e6ef;border-radius:11px;background:#fbfdff}.petty-search{display:flex;align-items:center;gap:8px;padding:0 11px;flex:1;min-width:230px;color:#7e9aaa}.petty-search input{border:0;background:transparent;padding:8px;box-shadow:none}.petty-table-wrap{overflow:auto;border:1px solid #dceaf2;border-radius:18px;background:#fff}.petty-table{min-width:760px}.petty-table tbody tr.is-filtered{display:none}.petty-no-results{padding:20px;text-align:center;color:#8a9eaa}.petty-no-results.hidden{display:none}
/* Petty cash dialogs: shared RTL layout for entry, review, detail and reports. */
:is(.petty-dialog,.petty-decision-dialog,.petty-detail-dialog,.petty-report-dialog){
  --petty-ink:#183e5b;--petty-muted:#617b8b;--petty-line:#dce7ef;--petty-accent:#156cc1;
  width:min(1120px,calc(100vw - 32px));max-width:1120px;max-height:94dvh;padding:0;
  border:1px solid #d9e5ef;border-radius:22px;background:#f4f7fb;direction:rtl;overflow:hidden;
  box-shadow:0 30px 100px #12364b42;color:var(--petty-ink)
}
:is(.petty-dialog,.petty-decision-dialog,.petty-detail-dialog,.petty-report-dialog) #entity-form{display:flex;flex-direction:column;max-height:94dvh;padding:0;overflow:hidden}
:is(.petty-dialog,.petty-decision-dialog,.petty-detail-dialog,.petty-report-dialog) .modal-head{flex:none;align-items:center;padding:18px 26px;margin:0;background:#fff;border-bottom:1px solid var(--petty-line)}
:is(.petty-dialog,.petty-decision-dialog,.petty-detail-dialog,.petty-report-dialog) .modal-head h2{margin:3px 0 0;font-size:21px;color:var(--petty-ink);letter-spacing:0}
:is(.petty-dialog,.petty-decision-dialog,.petty-detail-dialog,.petty-report-dialog) .eyebrow{font-size:10px;letter-spacing:0;color:#527993}
:is(.petty-dialog,.petty-decision-dialog,.petty-detail-dialog,.petty-report-dialog) #form-fields{display:block;flex:1;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:22px 26px}
:is(.petty-dialog,.petty-decision-dialog,.petty-detail-dialog,.petty-report-dialog) .modal-actions{flex:none;display:flex;gap:10px;align-items:center;padding:15px 26px;margin:0;background:#fff;border-top:1px solid var(--petty-line);box-shadow:0 -4px 20px #133f5a05}
:is(.petty-dialog,.petty-decision-dialog,.petty-detail-dialog,.petty-report-dialog) .form-error{flex:none;margin:0;padding:0 26px 10px;min-height:0;font-size:12px}
:is(.petty-dialog,.petty-decision-dialog,.petty-detail-dialog,.petty-report-dialog) .form-error:empty{display:none}
:is(.petty-dialog,.petty-decision-dialog,.petty-detail-dialog,.petty-report-dialog) label{min-width:0;display:grid;gap:7px;font-size:12px;font-weight:700;color:#3d5e73}
:is(.petty-dialog,.petty-decision-dialog,.petty-report-dialog) :is(input:not([type=radio]):not([type=file]),select,textarea){width:100%;min-width:0;min-height:43px;padding:10px 12px;border:1px solid #ccdce7;border-radius:9px;background:#fff;color:#244258;font:inherit;font-size:12px;font-weight:400}
:is(.petty-dialog,.petty-decision-dialog,.petty-report-dialog) :is(input,select,textarea):focus{border-color:#4a91ce;box-shadow:0 0 0 3px #2689d518;outline:none}
:is(.petty-dialog,.petty-decision-dialog,.petty-report-dialog) input:is([type=date],[type=number]){direction:ltr;text-align:right;font-variant-numeric:tabular-nums}
:is(.petty-dialog,.petty-decision-dialog) input[type=number]{appearance:textfield;-moz-appearance:textfield}
:is(.petty-dialog,.petty-decision-dialog) input[type=number]::-webkit-inner-spin-button{appearance:none}
:is(.petty-dialog,.petty-decision-dialog,.petty-report-dialog) textarea{min-height:80px;line-height:1.9}
:is(.petty-dialog,.petty-decision-dialog,.petty-detail-dialog,.petty-report-dialog) button:focus-visible,.petty-optional summary:focus-visible{outline:3px solid #77b7e9;outline-offset:3px}
.petty-form-shell,.petty-decision-shell,.petty-detail-shell,.petty-report-shell{display:grid;gap:18px;min-width:0}
.petty-form-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:23px 25px;border:1px solid #d0e2ef;border-radius:17px;background:linear-gradient(115deg,#eaf4fc,#fff 75%)}
.petty-form-intro{min-width:0}.petty-form-hero h3{margin:6px 0 8px;font-size:23px;color:#163e61;overflow-wrap:anywhere}
.petty-form-hero p{margin:0;color:#607d90;font-size:12px;line-height:1.9}
.petty-draft-tag{display:inline-flex;align-items:center;gap:7px;margin-top:13px;padding:5px 10px;border-radius:7px;background:#e8f1fa;color:#366b97;font-size:11px;font-weight:700}
.petty-draft-tag::before{content:'';width:6px;height:6px;border-radius:50%;background:#609bc7}
.petty-total-card{flex:0 0 auto;display:grid;align-content:center;gap:7px;min-width:245px;max-width:48%;padding:20px 24px;border:1px solid #164d78;border-radius:14px;background:linear-gradient(135deg,#163f63,#1c6090);color:#fff;box-shadow:0 8px 20px #214f7717}
.petty-total-card small,.petty-total-card>span{font-size:11px;color:#c6dfef}.petty-total-card strong{font-size:23px;line-height:1.7;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.petty-flow{padding:15px 20px 18px;border:1px solid var(--petty-line);border-radius:15px;background:#fff}
.petty-flow-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.petty-flow-heading>div{display:flex;align-items:center;gap:10px}.petty-flow-heading h4{margin:0;font-size:12px;color:#47677d}
.petty-flow-status,.petty-count{flex:none;padding:5px 10px;border-radius:7px;background:#edf4fc;color:#376b96;font-size:11px;font-weight:700}
.petty-flow-status.is-rejected{background:#fff0ec;color:#a94338}.petty-count{margin-inline-start:auto}
.petty-flow-track{position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0;padding:0;list-style:none}
.petty-flow-track::before{content:'';position:absolute;top:16px;inset-inline:12%;height:2px;background:#e0eaf2}
.petty-flow-step{position:relative;display:grid;justify-items:center;align-content:start;gap:5px;text-align:center;color:#718797}
.petty-flow-number{display:grid;place-items:center;width:34px;height:34px;margin-bottom:2px;border:1px solid #d6e3ed;border-radius:50%;background:#f7fafc;color:#718b9f;font-size:12px;font-weight:800}
.petty-flow-step strong{font-size:11px}.petty-flow-step small{font-size:10px;color:#6c8292}
.petty-flow-step.is-current{color:#145e9b}.petty-flow-step.is-current .petty-flow-number{border-color:#1b79c3;background:#1b79c3;color:#fff;box-shadow:0 0 0 4px #e8f3fd}
.petty-flow-step.is-done{color:#287561}.petty-flow-step.is-done .petty-flow-number{background:#e9f6f0;border-color:#bfded1;color:#26745e}
.petty-section{min-width:0;margin:0;padding:20px;border:1px solid var(--petty-line);border-radius:16px;background:#fff}
.petty-section-head{display:flex;align-items:center;gap:11px;margin-bottom:18px;padding-bottom:14px;border-bottom:1px solid #e8eef3}
.petty-section-number{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:10px;background:#eaf3fc;color:#3177ab;font-size:14px;font-weight:800}
.petty-section-head h4{margin:0;color:#224e6b;font-size:14px}.petty-section-head p{margin:4px 0 0;color:#687f90;font-size:11px;line-height:1.8}
.petty-section-head h4 small{display:inline-block;margin-inline-start:6px;padding:2px 7px;border-radius:6px;background:#eff4f8;color:#638196;font-size:10px;font-weight:500}
.petty-header-grid,.petty-optional-grid,.petty-report-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.petty-header-grid .full,.petty-line-grid .full{grid-column:1/-1}
.petty-lines-head .btn{margin-inline-start:auto;flex:none}.petty-lines{display:grid;gap:18px}
.petty-line{min-width:0;display:grid;gap:16px;padding:17px 18px;border:1px solid #d9e5ee;border-radius:13px;background:#fcfdff;scroll-margin:16px}
.petty-line:focus-within{border-color:#9fc1de}
.petty-line-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:12px;border-bottom:1px solid #e5edf4}
.petty-line-index{display:inline-flex;align-items:center;gap:9px;color:#365b76;font-size:12px;font-weight:700}
.petty-line-index b{display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:8px;background:#e5f0fb;color:#3179b5;font-size:12px}
.petty-remove-line{flex:none;min-height:34px;padding:6px 10px;border:1px solid #f0d9d6;border-radius:8px;background:#fff8f6;color:#b05348;font-size:11px}
.petty-remove-line:hover{background:#ffede9}
.petty-line-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}
.petty-vendor-field,.petty-description-field,.petty-money-field{grid-column:span 2}
.petty-money-field small{color:#3a759d;font-size:11px;font-weight:500;overflow-wrap:anywhere}
.petty-dialog .petty-money-field input{font-weight:700;background:#f5faff;border-color:#b7d2e8}
.petty-optional{padding:0;border:1px solid #e0e8f0;border-radius:9px;background:#f5f8fc}
.petty-optional summary{padding:11px 13px;cursor:pointer;color:#537089;font-size:11px;font-weight:700}
.petty-optional summary span{margin-inline-start:8px;color:#718597;font-weight:400}.petty-optional[open] summary{border-bottom:1px solid #e0e8f0}
.petty-optional-grid{padding:14px}
.petty-file-upload{position:relative;display:flex;align-items:center;gap:12px;min-height:70px;padding:11px 14px;border:1px dashed #9bbcd6;border-radius:11px;background:#f6fafe;cursor:pointer}
.petty-file-upload:hover,.petty-file-upload:focus-within{background:#edf6fc;border-color:#377fb4}.petty-file-upload.has-file{background:#eff9f5;border-color:#80b5a1}
.petty-file-upload input[type=file]{position:absolute;inset:0;width:100%;height:100%;padding:0;opacity:0;cursor:pointer}
.petty-file-symbol{display:grid;place-items:center;flex:none;width:35px;height:35px;border-radius:9px;background:#e3f0fa;color:#377fac;font-size:22px}
.petty-file-copy{display:grid;gap:5px;min-width:0}.petty-file-copy strong{color:#345c78;font-size:11px;overflow-wrap:anywhere}.petty-file-copy small{color:#6c8395;font-size:10px;font-weight:400}
.petty-file-button{flex:none;margin-inline-start:auto;padding:8px 10px;border:1px solid #c7dce9;border-radius:7px;background:#fff;color:#316e9a;font-size:10px}
.petty-line-attachment{display:grid;gap:9px;font-size:11px;color:#5c798d}.petty-line-attachment>div,.petty-review-files{display:flex;flex-wrap:wrap;gap:7px;min-width:0}
.petty-file-link{max-width:100%;min-height:34px;padding:6px 11px;border:1px solid #d4e4f0;border-radius:7px;background:#f0f7fd;color:#256a9d;font-size:11px;text-align:right;overflow-wrap:anywhere}
.petty-file-link:hover{background:#e4f1fc;border-color:#92b7d7}
.petty-amount-words{display:flex;align-items:center;gap:12px;padding:15px 18px;border:1px solid #cddfea;border-radius:12px;background:#eaf3fa;color:#58768b;font-size:11px}
.petty-amount-words strong{display:block;margin-top:4px;color:#214f70;font-size:13px;line-height:1.9}
.petty-words-icon{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:9px;background:#d9eaf7;color:#4683ac;font-size:23px}
.petty-form-hint{margin:0;color:#637c90;font-size:11px;line-height:1.9}
.petty-rejection{margin:0;padding:13px 16px;border:1px solid #edccc5;border-radius:10px;background:#fff3ee;color:#9b493b;font-size:12px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}
.petty-rejection strong{display:block;margin-bottom:4px}
.petty-document-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:0;border:1px solid var(--petty-line);border-radius:12px;background:#fff}
.petty-document-meta>div{min-width:0;padding:15px 18px}.petty-document-meta>div+div{border-inline-start:1px solid #e3ebf2}
.petty-document-meta dt{margin-bottom:7px;font-size:11px;color:#687f90}.petty-document-meta dd{margin:0;color:#264c67;font-size:12px;font-weight:700;overflow-wrap:anywhere}
.petty-document-note{padding:0 4px;color:#577289;font-size:12px;line-height:1.9}.petty-document-note strong{color:#365f7c}.petty-document-note p{margin:5px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.petty-review-lines{display:grid;gap:12px}.petty-review-line{min-width:0;padding:16px;border:1px solid #dde7ef;border-radius:12px;background:#fbfdff}
.petty-review-main{display:flex;gap:12px;align-items:flex-start}.petty-review-main>div{flex:1;min-width:0}.petty-review-main h5{margin:2px 0 6px;font-size:13px;color:#284f6a}.petty-review-main p{margin:0;font-size:12px;color:#5a768b;line-height:1.9;overflow-wrap:anywhere}
.petty-review-amount{flex:none;max-width:40%;color:#1e659d;font-size:15px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.petty-review-amount small{font-size:10px;font-weight:500}
.petty-review-meta{display:flex;flex-wrap:wrap;gap:7px 14px;margin:12px 0;color:#647d8f;font-size:11px}.petty-review-meta>span+span{border-inline-start:1px solid #dce7ef;padding-inline-start:14px}
.petty-review-files{padding-top:11px;border-top:1px solid #e5edf4}.petty-file-missing{color:#926635;font-size:11px}
.petty-decision-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:0;margin:0 0 17px;border:0}
.petty-decision-options legend{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.petty-decision-dialog .petty-choice{display:flex;align-items:center;gap:11px;padding:15px;border:1px solid #d8e5ef;border-radius:11px;background:#fafcff;cursor:pointer}
.petty-choice>span{display:grid;gap:7px}.petty-choice strong{font-size:12px;color:#385e77}.petty-choice small{font-size:10px;color:#6a8292;font-weight:400;line-height:1.8}
.petty-decision-dialog .petty-choice input{flex:none;width:17px;height:17px;margin:0;accent-color:#2378b8}
.petty-choice:has(input:checked){border-color:#6eacd9;background:#edf6ff;box-shadow:0 0 0 1px #8cb8d929}
.petty-choice-reject:has(input:checked){border-color:#d9a295;background:#fff5ef}.petty-choice-reject:has(input:checked) strong{color:#a34938}.petty-choice-reject input{accent-color:#b85f49!important}
.petty-decision-dialog:has([name=approve][value=false]:checked) #submit-dialog{background:#ae5545!important;box-shadow:0 6px 18px #ae55451f}
.petty-finance-fields{border-color:#c8e1d9;background:#f5fbf8}.petty-finance-fields[hidden]{display:none}
.petty-finance-fields legend{padding:0 9px;color:#316e59;font-size:13px;font-weight:700}.petty-finance-fields>p{margin:0 0 16px;color:#577b6d;font-size:11px}
.petty-finance-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.petty-funding-receipt{border-color:#cde4d9;background:#f9fdfa}.petty-funding-receipt .petty-document-meta{grid-template-columns:repeat(4,minmax(0,1fr));border:0;background:transparent}
.petty-approvals{display:grid;gap:12px;list-style:none;margin:0;padding:0}
.petty-approvals li{padding:13px 16px;border-inline-start:3px solid #afc4d5;border-radius:7px;background:#f6f9fc}
.petty-approvals li.is-approved{border-color:#58a48c;background:#f1f9f5}.petty-approvals li.is-rejected{border-color:#d38c7f;background:#fff5f1}
.petty-approvals li>div{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.petty-approvals strong{font-size:12px;color:#3a5d74}.petty-approvals span,.petty-approvals time{font-size:11px;color:#657f8f}.petty-approvals time{margin-inline-start:auto}
.petty-approvals p{margin:9px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;color:#5a7588;line-height:1.9}
.petty-report-intro{display:flex;align-items:center;gap:17px;padding:8px 3px}.petty-report-icon{flex:none;display:grid;place-items:center;width:56px;height:56px;border:1px solid #c9deef;border-radius:15px;background:#e6f0fa;color:#3c7dab;font-size:32px}
.petty-report-intro h3{margin:5px 0;font-size:21px;color:#204b6c}.petty-report-intro p{margin:0;color:#607d90;font-size:11px;line-height:1.9}
.petty-report-filters{align-items:end}.petty-report-preview{min-width:0;display:grid;gap:15px}
.petty-report-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 21px;border:1px solid #d0e2ef;border-radius:13px;background:#e9f3fb}
.petty-report-summary>div{display:grid;gap:7px}.petty-report-summary span{color:#557993;font-size:11px}.petty-report-summary strong{color:#1d608f;font-size:21px}.petty-report-summary strong small{font-size:11px;font-weight:500}
.petty-report-preview .table-wrap{max-height:390px;border:1px solid #dce7f0;border-radius:12px;background:#fff;overflow:auto}.petty-report-preview .table{min-width:730px}
.petty-report-preview th{position:sticky;top:0;z-index:1;background:#eaf2f9;color:#496f8b}.petty-report-preview :is(th,td){padding:13px 15px;font-size:11px}.petty-report-preview td:nth-child(4){white-space:normal;min-width:180px;max-width:320px;overflow-wrap:anywhere;line-height:1.9}
.petty-empty{margin:0;padding:35px 20px;border:1px dashed #cadde9;border-radius:13px;background:#fafcfe;color:#617e92;text-align:center;font-size:12px;line-height:1.9}.petty-empty strong{display:block;color:#426b87;font-size:13px}.petty-empty p{margin:8px 0 0}
@media(max-width:760px){
  :is(.petty-dialog,.petty-decision-dialog,.petty-detail-dialog,.petty-report-dialog){width:calc(100vw - 14px);max-height:97dvh;border-radius:16px}
  :is(.petty-dialog,.petty-decision-dialog,.petty-detail-dialog,.petty-report-dialog) #entity-form{max-height:97dvh}
  :is(.petty-dialog,.petty-decision-dialog,.petty-detail-dialog,.petty-report-dialog) .modal-head{padding:14px 16px}
  :is(.petty-dialog,.petty-decision-dialog,.petty-detail-dialog,.petty-report-dialog) .modal-head h2{font-size:18px}
  :is(.petty-dialog,.petty-decision-dialog,.petty-detail-dialog,.petty-report-dialog) #form-fields{padding:14px}
  :is(.petty-dialog,.petty-decision-dialog,.petty-detail-dialog,.petty-report-dialog) .modal-actions{padding:12px 15px;flex-wrap:wrap}
  :is(.petty-dialog,.petty-decision-dialog,.petty-detail-dialog,.petty-report-dialog) .form-error{padding:0 15px 10px}
  .petty-form-hero{align-items:stretch;flex-direction:column;padding:18px;gap:16px}.petty-form-hero h3{font-size:20px}
  .petty-total-card{min-width:0;max-width:none;padding:15px 19px}.petty-total-card strong{font-size:22px}
  .petty-section{padding:16px}.petty-section-head{gap:9px}.petty-section-head h4{font-size:13px}.petty-section-head p{font-size:10px}
  .petty-line-grid,.petty-header-grid,.petty-report-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
  .petty-optional-grid{grid-template-columns:1fr}.petty-flow{padding:13px 10px}.petty-flow-heading .eyebrow{display:none}
  .petty-flow-track{gap:3px}.petty-flow-step strong{font-size:10px}.petty-flow-step small{display:none}
  .petty-flow-number{width:30px;height:30px}.petty-flow-track::before{top:14px}
  .petty-lines-head{flex-wrap:wrap}.petty-lines-head .btn{width:100%;margin:0}
  .petty-document-meta,.petty-funding-receipt .petty-document-meta{grid-template-columns:repeat(2,minmax(0,1fr))}
  .petty-document-meta>div{padding:12px}.petty-document-meta>div+div{border:0}
  .petty-decision-options{grid-template-columns:1fr}.petty-review-main{flex-wrap:wrap;gap:9px}
  .petty-review-amount{max-width:100%;margin-inline-start:auto;font-size:14px}
  .petty-file-upload{flex-wrap:wrap;gap:8px}.petty-file-copy{flex:1;min-width:130px}.petty-file-button{margin-inline-start:auto}
  .petty-hero{display:grid}.petty-hero-metrics{flex-wrap:wrap}
}
@media(max-width:460px){
  .petty-line-grid,.petty-header-grid,.petty-finance-grid,.petty-report-filters{grid-template-columns:1fr}
  .petty-line-grid>*{grid-column:1/-1}.petty-line{padding:13px}.petty-form-shell,.petty-decision-shell,.petty-detail-shell{gap:13px}
  .petty-report-icon{width:42px;height:42px;font-size:26px}.petty-report-intro{align-items:start;gap:10px}.petty-report-intro h3{font-size:17px}
  .petty-report-summary{padding:15px;flex-wrap:wrap}.petty-report-summary strong{font-size:19px}.petty-flow-status{font-size:10px}
}

/* Finance invoice attachment form */
.finance-dialog{width:min(780px,calc(100% - 24px));max-width:780px;border-radius:22px;direction:rtl}
.finance-dialog #form-fields{max-height:calc(90vh - 160px);overflow:auto;display:block;padding:20px 26px}
.invoice-upload-intro{padding:18px 20px;border:1px solid #d9e9e3;border-radius:16px;background:#f2f9f5;margin-bottom:18px;color:#234d46}
.invoice-upload-intro strong{font-size:17px}.invoice-upload-intro p{font-size:12px;line-height:1.9;margin:6px 0 0;color:#607a70}
.invoice-upload-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.invoice-upload-grid label{display:block;min-width:0;color:#34534c;font-size:12px;font-weight:700}
.invoice-upload-grid label input,.invoice-upload-grid label select,.invoice-upload-grid label textarea{display:block;margin-top:7px}
.invoice-upload-grid label.full{grid-column:1/-1}
.invoice-upload-grid input,.invoice-upload-grid select,.invoice-upload-grid textarea{min-width:0}
.invoice-upload-grid input[type=file]{padding:10px;background:#f8fbf9}
.invoice-upload-grid small{font-size:10px;color:#688279;font-weight:500}
@media(max-width:650px){.finance-dialog #form-fields{padding:16px}.invoice-upload-grid{grid-template-columns:1fr}}

/* Finance planning, PO payment queue, and accounting */
.finance-shortcut{display:flex;justify-content:flex-start;margin:0 0 16px}
.finance-flow-hero{padding:26px 30px;margin:18px 0 24px;border:1px solid #d6e6f1;border-radius:22px;color:#153f61;background:linear-gradient(115deg,#f7fcff,#e8f4fc);box-shadow:0 10px 32px #194a7110}
.finance-flow-hero span{font-size:11px;font-weight:800;color:#3d8db8}
.finance-flow-hero h2{margin:5px 0 9px;font-size:24px}
.finance-flow-hero p{margin:0;color:#557b91;font-size:12px;line-height:2}
.finance-form-note{padding:14px 17px;margin-bottom:17px;border:1px solid #d8e8f1;border-radius:13px;background:#f2f8fc;color:#315b74;font-size:12px;line-height:1.9}
.finance-dialog #form-fields>label{display:block;margin:0 0 16px;color:#31566b;font-size:12px;font-weight:700}
.finance-dialog #form-fields>label>input,.finance-dialog #form-fields>label>select,.finance-dialog #form-fields>label>textarea{display:block;margin-top:7px}
.finance-month-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-bottom:16px}
.finance-month-row{display:grid;grid-template-columns:minmax(78px,1fr) minmax(100px,1.2fr) auto;align-items:center;gap:8px;padding:9px 12px;border:1px solid #e0eaf0;border-radius:12px;background:#fff;font-size:12px}
.finance-month-row input{padding:8px 10px;direction:ltr;text-align:left;min-width:0}
.finance-month-row small{color:#7692a3}
.finance-form-total{display:block;margin:12px 0 16px;color:#145078;font-size:14px}
.finance-journal-head,.finance-journal-line{display:grid;grid-template-columns:2fr 1fr 1fr 30px;gap:8px;align-items:center;margin:7px 0}
.finance-journal-head{color:#698699;font-size:11px;font-weight:800}
.finance-journal-line input{direction:ltr;text-align:left;min-width:0}
.finance-journal-line button{height:35px;border:0;border-radius:8px;background:#fff0ef;color:#a34a47;font-size:20px}
@media(max-width:760px){.finance-flow-hero{padding:19px}.finance-flow-hero h2{font-size:20px}.finance-month-list{grid-template-columns:1fr}.finance-journal-line{grid-template-columns:1fr 1fr 1fr 28px;gap:4px}.finance-journal-line select,.finance-journal-line input{padding:8px 5px;font-size:10px}}
.finance-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 22px}.finance-summary>div{padding:15px 18px;border:1px solid #e0eaf0;border-radius:15px;background:#fff;box-shadow:0 8px 20px #194a710d}.finance-summary span,.finance-summary strong{display:block}.finance-summary span{font-size:11px;color:#718b9a}.finance-summary strong{margin-top:5px;color:#214f6e;font-size:16px}@media(max-width:760px){.finance-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}

.finance-bulk-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.finance-bulk-actions span{padding:8px 13px;border-radius:10px;background:#ecf5fb;color:#236087;font-size:12px;font-weight:800}.finance-bulk-actions .btn:disabled{opacity:.5;cursor:not-allowed}.finance-bulk-actions .btn{min-height:38px}.table [data-finance-order]{width:18px;height:18px;accent-color:#1975b2;cursor:pointer}@media(max-width:650px){.finance-bulk-actions{width:100%}.finance-bulk-actions .btn{flex:1}}

/* Role-aware action inbox in the header. */
.work-bell-wrap{position:relative;flex:none}.work-bell{position:relative;display:grid;place-items:center;transition:background .2s,color .2s,box-shadow .2s}.work-bell svg{width:22px;height:22px}.work-bell.has-work{color:#b45309;background:#fff1dc;box-shadow:0 0 0 1px #f7d49c}.work-bell.has-work:hover{background:#ffe3b2}.work-bell #notification-badge{position:absolute;top:-7px;right:-7px;min-width:19px;height:19px;border-radius:999px;background:#e25838;color:#fff;display:grid;place-items:center;padding:0 4px;font-size:10px;line-height:1;box-shadow:0 2px 7px #bb4c3645}.work-inbox{position:absolute;left:0;top:calc(100% + 15px);z-index:80;width:min(405px,calc(100vw - 25px));max-height:min(620px,calc(100dvh - 90px));overflow:auto;border:1px solid #dce9e3;border-radius:19px;background:#fff;box-shadow:0 20px 55px #163c3940;text-align:right}.work-inbox-head{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;padding:17px 18px;background:#f3f9f6;border-bottom:1px solid #e0ebe5}.work-inbox-head small{font-size:10px;color:#6d8880}.work-inbox-head h3{margin:3px 0 0;font-size:15px;color:#214c42}.work-inbox-head>strong{background:#dcefe4;color:#17644d;border-radius:11px;min-width:32px;text-align:center;padding:4px 7px}.work-inbox-group{padding:10px 14px;border-bottom:1px solid #edf1ef}.work-inbox-group:last-child{border:0}.work-inbox-group-title,.work-inbox-item{display:flex;align-items:center;width:100%;border:0;text-align:right;cursor:pointer}.work-inbox-group-title{gap:10px;justify-content:space-between;background:transparent;color:#245b50;font-size:12px;font-weight:800;padding:7px 4px}.work-inbox-group-title b{display:grid;place-items:center;min-width:24px;padding:2px 6px;border-radius:8px;background:#e2f1eb;color:#166b4c}.work-inbox-item{justify-content:space-between;gap:10px;margin:2px 0;padding:8px 10px;border-radius:10px;background:#f8faf8;color:#334f49;font-size:11px}.work-inbox-item span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.work-inbox-item small{flex:none;max-width:38%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#81948d;font-size:10px}.work-inbox-item:hover,.work-inbox-group-title:hover{background:#eaf5ee}.work-inbox-more,.work-inbox-empty{display:block;padding:9px 13px;color:#748b82;font-size:11px}.work-inbox-empty{padding:22px;text-align:center}@media(max-width:600px){.work-inbox{position:fixed;top:68px;left:12px;width:calc(100vw - 24px);max-height:calc(100dvh - 85px)}}

.work-group-project{display:block;color:#80978d;font-size:10px;font-weight:500;margin-top:2px}

/* HSE project workbench */
.safety-shell{direction:rtl}.safety-hero{display:flex;gap:21px;align-items:center;padding:25px 29px;margin:13px 0 21px;border-radius:23px;border:1px solid #c8e4da;background:radial-gradient(circle at 8% 100%,#d7f4df,transparent 36%),linear-gradient(115deg,#effaf4,#eaf5ff);box-shadow:0 13px 36px #245e4c12}.safety-hero-emblem{width:68px;height:68px;display:grid;place-items:center;flex:none;border-radius:19px;background:#166b54;color:white;font-size:39px;box-shadow:0 13px 25px #15604c36}.safety-hero div>span{font-size:11px;font-weight:800;color:#34967a}.safety-hero h2{font-size:24px;color:#164c40;margin:4px 0}.safety-hero p{font-size:12px;color:#567b72;margin:0;line-height:1.9}.safety-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin:19px 0}.safety-metrics>div{padding:18px 19px;background:#fff;border:1px solid #e0ece6;border-radius:17px;box-shadow:0 6px 18px #2258490b}.safety-metrics span,.safety-metrics small{display:block;color:#6e8b80;font-size:11px}.safety-metrics strong{display:block;color:#176b50;font-size:26px;margin:5px 0}.safety-flow{display:flex;align-items:center;justify-content:space-between;gap:7px;flex-wrap:wrap;padding:15px 20px;border-radius:16px;background:#f1f9f4;color:#38725c;font-size:11px;font-weight:800;margin:16px 0 26px}.safety-flow b{color:#91bda7}.safety-filter{display:flex;gap:10px;max-width:570px;margin:6px 0 18px}.safety-filter input{flex:2}.safety-filter select{flex:1}.safety-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin:12px 0 25px}.safety-grid>.empty{grid-column:1/-1}.safety-card{display:flex;flex-direction:column;gap:11px;padding:19px;border:1px solid #dcebe3;border-radius:17px;background:#fff;box-shadow:0 7px 20px #194a3a0b;min-width:0}.safety-card-head{display:flex;align-items:flex-start;gap:12px}.safety-card-head>div{flex:1;min-width:0}.safety-card-head small{color:#82998c;font-size:10px}.safety-card-head h3{font-size:15px;color:#1d4f42;margin:4px 0;overflow:hidden;text-overflow:ellipsis}.safety-card-icon{display:grid;place-items:center;flex:none;width:39px;height:39px;border-radius:12px;background:#e2f4e9;color:#16815f;font-size:21px}.safety-card p{margin:0;color:#536d62;font-size:11px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}.safety-card-meta{display:flex;gap:9px;flex-wrap:wrap}.safety-card-meta span{background:#f3f8f5;border-radius:8px;padding:5px 9px;color:#5e7868;font-size:10px}.safety-card-meta .safety-overdue{color:#a94239;background:#fff0ed}.safety-card-foot{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;border-top:1px solid #edf3ee;padding-top:12px;margin-top:auto;flex-wrap:wrap}.safety-files,.safety-card-controls{display:flex;gap:7px;flex-wrap:wrap}.safety-file{border:0;background:#edf7f1;color:#277156;padding:5px 8px;border-radius:8px;font-size:10px;max-width:200px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.safety-check-summary{display:flex;flex-wrap:wrap;gap:5px}.safety-check-summary span{font-size:10px;color:#36836b;background:#eaf8f1;padding:5px 8px;border-radius:7px}.safety-check-summary .failed{color:#b04e40;background:#fff0ec}.safety-tag{display:inline-flex;align-items:center;justify-content:center;flex:none;min-height:24px;padding:3px 9px;border-radius:999px;font-size:10px;font-weight:800;background:#e8f5ee;color:#27765a}.safety-tag-critical,.safety-tag-high,.safety-tag-returned,.safety-tag-overdue{background:#ffede9;color:#ad4438}.safety-tag-medium,.safety-tag-ready,.safety-tag-submitted{background:#fff1d8;color:#966b1d}.safety-tag-approved,.safety-tag-closed{background:#dff5e8;color:#197850}.safety-dialog,.safety-report-dialog{width:min(850px,calc(100% - 18px));max-width:850px;border-radius:21px;direction:rtl}.safety-dialog #form-fields,.safety-report-dialog #form-fields{padding:22px 25px;max-height:calc(90dvh - 165px);overflow:auto}.safety-form-intro{grid-column:1/-1;padding:14px 17px;border:1px solid #cce6d6;border-radius:13px;background:#f0faf4;color:#376953;font-size:11px;line-height:1.9}.safety-form-block{grid-column:1/-1;display:grid;gap:12px;padding:16px;border:1px solid #e0ede4;background:#fcfffd;border-radius:13px}.safety-form-block>strong{font-size:12px;color:#246950}.safety-check-row{display:grid;grid-template-columns:1.7fr .8fr 1.2fr 30px;gap:7px;align-items:center;margin:7px 0}.safety-check-row input,.safety-check-row select{min-width:0;padding:9px}.safety-check-remove{border:0;background:#ffe9e6;color:#ad4d42;border-radius:9px;height:36px;font-size:19px}.safety-form-extra{display:grid;grid-template-columns:1fr 1fr;gap:12px}.safety-report-preview{grid-column:1/-1;padding:10px 5px;line-height:2;color:#244d42}.safety-report-preview p{white-space:pre-wrap}.safety-print-header{border-bottom:2px solid #227257;padding-bottom:14px}.safety-print-header small{color:#448c6e}.safety-print-header h2{margin:5px 0;color:#1b5942}.safety-print-header p{font-size:11px;color:#60796c}.safety-print-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:18px 0}.safety-print-kpis div{padding:12px;border-radius:10px;background:#f2f8f3;border:1px solid #d9e9db}.safety-print-kpis span,.safety-print-kpis strong{display:block}.safety-print-kpis span{font-size:10px;color:#6c8674}.safety-print-kpis strong{font-size:19px;color:#1b6847}.safety-print-state{padding:10px;border-radius:9px;background:#f1f6f0;color:#295c46}.safety-signatures{display:flex;justify-content:space-around;gap:15px;margin-top:55px;text-align:center;color:#456a53}.safety-print-sheet{display:none}@media(max-width:900px){.safety-metrics{grid-template-columns:repeat(2,1fr)}.safety-grid{grid-template-columns:1fr}}@media(max-width:600px){.safety-hero{padding:19px;gap:13px}.safety-hero-emblem{width:49px;height:49px;font-size:28px}.safety-hero h2{font-size:19px}.safety-flow{display:grid;grid-template-columns:1fr 20px 1fr}.safety-filter{flex-wrap:wrap}.safety-filter input{flex-basis:100%}.safety-dialog #form-fields,.safety-report-dialog #form-fields{padding:15px}.safety-check-row{grid-template-columns:1fr 1fr 28px}.safety-check-row input[name=check_label]{grid-column:1/-1}}@media print{body.safety-printing>*:not(.safety-print-sheet){display:none!important}body.safety-printing .safety-print-sheet{display:block!important;direction:rtl;font:12pt Tahoma,serif;line-height:1.8;background:#fff;color:#122e21;margin:1cm}.safety-print-kpis{grid-template-columns:repeat(3,1fr)}.safety-print-kpis div{break-inside:avoid}}

/* Contract editor and contract price list */
dialog.contract-dialog{width:min(1060px,calc(100vw - 26px));max-width:1060px;max-height:94dvh;border:1px solid #d8e6df;border-radius:24px;overflow:hidden;box-shadow:0 30px 90px #143a3333;direction:rtl}
.contract-dialog #entity-form{display:flex;flex-direction:column;max-height:94dvh;min-height:0;background:#fbfdfb;overflow:hidden;padding:0}
.contract-dialog .modal-head{flex:none;padding:18px 27px;border-bottom:1px solid #e4eee8;background:#fff}
.contract-dialog #form-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 20px;padding:21px 27px 26px;overflow:auto;min-height:0;align-items:start}
.contract-dialog #form-fields>.full{grid-column:1/-1}
.contract-dialog #form-fields label{display:block;color:#315448;font-size:12px;font-weight:750;min-width:0;margin:0}
.contract-dialog #form-fields label small{display:block;margin-top:5px;font-size:10px;color:#7b9185;font-weight:400}
.contract-dialog #form-fields input:not([type=checkbox]),.contract-dialog #form-fields select,.contract-dialog #form-fields textarea{width:100%;min-width:0;min-height:42px;padding:10px 12px;border:1px solid #d4e5da;border-radius:10px;background:#fff;color:#1d3c32;font:inherit;font-size:12px;outline:none;transition:border-color .15s,box-shadow .15s}
.contract-dialog #form-fields label>input:not([type=checkbox]),.contract-dialog #form-fields label>select,.contract-dialog #form-fields label>textarea{display:block;margin-top:7px}
.contract-dialog #form-fields input:focus,.contract-dialog #form-fields select:focus,.contract-dialog #form-fields textarea:focus{border-color:#42a27a;box-shadow:0 0 0 3px #35a67920}
.contract-dialog #form-fields input[readonly]{background:#edf8f0;color:#156342;font-weight:850}
.contract-dialog #form-fields input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.contract-dialog #form-fields input[type=number]{appearance:textfield;-moz-appearance:textfield}
.contract-dialog .form-error{flex:none;margin:0;padding:0 27px;color:#b8473e}
.contract-dialog .modal-actions{flex:none;padding:14px 27px;border-top:1px solid #e2ece5;background:#fff}
.contract-form-banner{display:flex;align-items:center;gap:16px;padding:19px 21px;border-radius:17px;background:linear-gradient(120deg,#164f42,#277b62);color:#fff}
.contract-form-emblem{display:grid;place-items:center;flex:none;width:51px;height:51px;border-radius:13px;background:#ffffff25;font-size:28px}
.contract-form-banner small{color:#bfe7cf;font-size:10px}.contract-form-banner h3{margin:3px 0;font-size:19px;color:#fff}.contract-form-banner p{margin:0;color:#dbf3e3;font-size:11px}
.contract-section{display:flex;gap:12px;align-items:center;margin-top:5px;padding-bottom:11px;border-bottom:1px solid #dcece1}
.contract-section>span{display:grid;place-items:center;width:31px;height:31px;border-radius:9px;background:#e3f3e8;color:#227555;font-size:11px;font-weight:850}
.contract-section strong,.contract-section small{display:block}.contract-section strong{font-size:13px;color:#205b43}.contract-section small{font-size:10px;color:#72897d;margin-top:2px}
.contract-date-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px;min-width:0}
.contract-deductions{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;gap:10px;align-items:end;padding:15px;border:1px solid #dcebe0;background:#f4faf5;border-radius:13px}
.contract-dialog #form-fields .contract-toggle{flex-direction:row;align-items:center;min-height:42px;padding:8px 11px;border:1px solid #dbe8dd;border-radius:10px;background:#fff;cursor:pointer}
.contract-toggle input{accent-color:#237956;inline-size:17px;block-size:17px;margin:0;flex:none}.contract-toggle span{line-height:1.5}.contract-toggle small{display:block}.contract-dialog #form-fields .contract-net{grid-column:1/-1;min-height:37px}
.contract-terms{border:1px solid #dcebe0;border-radius:15px;background:#fff;overflow:hidden}
.contract-terms-top{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:11px 14px;background:#f4faf6;border-bottom:1px solid #e5eee7;color:#47745e;font-size:11px;font-weight:750}
.contract-terms-top .btn{padding:7px 11px;font-size:11px}.contract-terms-scroll{overflow-x:auto;max-width:100%}
.contract-terms table{width:100%;min-width:805px;border-collapse:collapse;text-align:right}.contract-terms th{white-space:nowrap;background:#fbfdfb;padding:9px 8px;color:#627a6b;font-size:10px;border-bottom:1px solid #e8efe9}.contract-terms td{padding:8px 5px;border-bottom:1px solid #eef3ee;vertical-align:middle}.contract-terms td:first-child{text-align:center;color:#447860;font-weight:800;width:36px}.contract-terms td:nth-child(2){width:92px}.contract-terms td:nth-child(3){min-width:200px}.contract-terms td:nth-child(4){width:76px}.contract-terms td:nth-child(5){width:100px}.contract-terms td:nth-child(6){width:133px}.contract-terms td:nth-child(7){width:115px}
.contract-dialog #form-fields .contract-terms td input{min-height:35px;padding:6px 7px;font-size:11px}.contract-line-total{font-size:11px;font-weight:850;color:#206747;text-align:left}.contract-remove-term{border:0;border-radius:8px;background:#feefec;color:#aa5144;width:31px;height:32px;font-size:20px;cursor:pointer}.contract-remove-term:hover{background:#f8ded8}
.contract-terms-empty{margin:0;padding:21px;text-align:center;color:#80978a;font-size:11px}.contract-terms-total{display:flex;align-items:center;justify-content:flex-end;gap:9px;padding:12px 16px;background:#eaf6ee;color:#1a6146;font-size:11px}.contract-terms-total strong{font-size:17px}.contract-dialog .contract-description textarea{resize:vertical;min-height:78px}
@media(max-width:700px){.contract-dialog #form-fields{grid-template-columns:1fr;padding:16px;gap:14px}.contract-dialog #form-fields>*{grid-column:1/-1}.contract-dialog .modal-head,.contract-dialog .modal-actions{padding-inline:17px}.contract-deductions{grid-template-columns:1fr 1fr}.contract-form-banner{padding:15px}.contract-form-banner h3{font-size:16px}}
@media(max-width:440px){.contract-date-pair,.contract-deductions{grid-template-columns:1fr}.contract-form-emblem{display:none}}

/* Technical office EDMS and MDL */
.edms-hero{display:flex;justify-content:space-between;align-items:center;gap:22px;background:linear-gradient(115deg,#173e4d,#286a69);padding:24px 28px;border-radius:19px;color:#fff;margin:18px 0}
.edms-hero span{font:700 10px Arial,sans-serif;letter-spacing:.12em;color:#b9e8df}.edms-hero h2{font-size:21px;margin:6px 0}.edms-hero p{font-size:11px;color:#dcf0ee;margin:0}.edms-hero .btn{background:#e2f4dc;color:#194a3f}
.edms-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin:13px 0}.edms-stats>div{padding:17px 20px;background:#fff;border:1px solid #e2eee9;border-radius:14px;font-size:11px;color:#648278}.edms-stats strong{display:block;font-size:22px;color:#205d53;margin-top:3px}
.edms-flow{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:11px;padding:14px;border:1px solid #dcebe5;border-radius:13px;background:#f4faf7;color:#2f705e;margin:12px 0 18px;font-size:11px;font-weight:750}.edms-flow span{padding:7px 10px;border-radius:8px;background:#fff}.edms-flow b{color:#83ac9e}
.edms-panel{background:#fff;border:1px solid #e3ede8;border-radius:16px;padding:18px;margin:15px 0;overflow:hidden}.edms-panel h3{margin:0;color:#265548;font-size:15px}.edms-panel small{color:#789186;font-size:10px}.edms-panel-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:14px}.edms-filters{display:flex;gap:8px;align-items:center}.edms-filters input{min-width:230px}.edms-filters select{min-width:145px}.edms-filters input,.edms-filters select{padding:8px 10px;font-size:11px;min-height:36px}
.edms-table-wrap{overflow:auto}.edms-table-wrap table{min-width:930px}.edms-table-wrap .table td{vertical-align:middle}.edms-table-wrap td:first-child{white-space:nowrap;color:#1d5c59}.edms-note{display:block;color:#ad5b44!important;margin-top:4px}.edms-actions{display:flex;flex-wrap:wrap;gap:5px;min-width:230px}.edms-actions button{font-size:10px;padding:6px 8px;white-space:nowrap}.edms-state{display:inline-flex;white-space:nowrap;padding:5px 9px;border-radius:999px;background:#ebf3ef;color:#3e7564;font-size:10px;font-weight:800}.edms-submitted{background:#fff0d7;color:#a36d24}.edms-returned{background:#feebe8;color:#ad4b3e}.edms-afc{background:#dff5e8;color:#187850}.edms-empty{text-align:center;padding:17px;color:#778f85;font-size:11px}
.edms-history{display:grid;gap:7px;margin-top:12px}.edms-history>div{display:flex;gap:14px;align-items:center;flex-wrap:wrap;border-bottom:1px solid #edf2ee;padding:9px 5px;font-size:11px}.edms-history strong{color:#216752}.edms-history small{color:#ae6957}
.edms-dialog{direction:rtl;width:min(780px,calc(100vw - 22px));max-width:780px;border-radius:20px}.edms-dialog #form-fields{padding:12px;gap:16px}.edms-form-intro{grid-column:1/-1;padding:14px;background:#edf8f4;border:1px solid #d1e7da;border-radius:11px;color:#3a695c;font-size:11px;line-height:1.9}.edms-sketch-dialog{width:min(1120px,calc(100vw - 22px));max-width:1120px}.edms-tools{grid-column:1/-1;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.edms-tools button{border:1px solid #c9dfd6;background:#fff;border-radius:8px;padding:7px 11px;font-size:11px}.edms-tools button.active{background:#2c8064;color:white}.edms-tools label{display:flex;align-items:center;gap:6px;font-size:11px}.edms-tools input[type=color]{width:40px;height:34px;padding:2px}.edms-tools input[type=range]{width:90px}.edms-canvas-wrap{grid-column:1/-1;overflow:auto;background:#e9f1ed;border-radius:12px;padding:12px}.edms-canvas-wrap canvas{display:block;max-width:100%;height:auto;margin:auto;background:#fff;border:1px solid #b9cfc6;touch-action:none;cursor:crosshair;box-shadow:0 3px 13px #183e3020}
@media(max-width:750px){.edms-hero,.edms-panel-head{flex-direction:column;align-items:stretch}.edms-stats{grid-template-columns:1fr 1fr}.edms-filters{flex-wrap:wrap}.edms-filters input{min-width:0;flex:1 1 180px}.edms-filters select{flex:1 1 125px}}

/* Organization onboarding */
.setup-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:22px}.setup-step{display:flex;align-items:center;gap:10px;text-align:right;background:#fff;border:1px solid #d9e3df;border-radius:16px;padding:14px;color:#41615b;cursor:pointer;font:inherit}.setup-step b{display:grid;place-items:center;width:32px;height:32px;flex:none;border-radius:50%;background:#edf5f0;color:#1c614b}.setup-step.active{border-color:#14825b;box-shadow:0 6px 22px #14825b20;color:#174d3e}.setup-step.active b{background:#14825b;color:#fff}.setup-step.locked{opacity:.5;cursor:not-allowed}.setup-card{max-width:1000px;margin:auto;padding:30px}.setup-card-head{border-bottom:1px solid #e2ebe6;margin-bottom:24px;padding-bottom:20px}.setup-card-head h2{margin:6px 0 8px}.setup-card-head p{color:#60766d;margin:0;line-height:1.9}.setup-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}.setup-form label{display:flex;flex-direction:column;gap:9px;color:#2b5044;font-weight:600}.setup-form input,.setup-form select{width:100%;border:1px solid #ccdad2;border-radius:12px;padding:11px 14px;background:#fff;color:#163e30;font:inherit}.setup-form input:focus,.setup-form select:focus{outline:2px solid #8dd0ab;border-color:#14825b}.setup-form small{font-weight:400;color:#6a7f75}.setup-form .form-error{grid-column:1/-1}.setup-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:12px;margin-top:8px}.setup-logo-preview{width:94px;height:94px;object-fit:contain;border-radius:14px;border:1px solid #d8e5db;background:white;padding:7px}.setup-projects,.setup-users{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin:20px 0}.setup-project,.setup-users>div{border:1px solid #dae6de;border-radius:14px;background:#fff;padding:15px;text-align:right;color:#244c3d;font:inherit}.setup-project{cursor:pointer}.setup-project.chosen{border-color:#14825b;background:#f1faf3}.setup-project strong,.setup-project small,.setup-users strong,.setup-users small{display:block}.setup-project small,.setup-users small{margin-top:5px;color:#75887d}.setup-users>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.setup-users em{color:#20805c;font-size:.8rem}.sidebar .brand-mark img{display:block;width:100%;height:100%;object-fit:contain;border-radius:8px}.sidebar .brand strong{display:block;font:inherit;font-weight:800}@media(max-width:700px){.setup-steps{grid-template-columns:repeat(2,1fr)}.setup-card{padding:18px}.setup-form{grid-template-columns:1fr}}

/* Daily report: compact RTL sections with a persistent action bar. */
#dialog.daily-dialog{width:min(920px,calc(100vw - 28px));max-width:920px;max-height:94dvh;border:1px solid #d8e5df;border-radius:22px;direction:rtl;color:#233e36;background:#f6f9f7}
.daily-dialog #entity-form{display:flex;flex-direction:column;max-height:94dvh;min-height:0;overflow:hidden;padding:0}
.daily-dialog .modal-head{flex:none;align-items:center;margin:0;padding:16px 24px;background:#fff;border-bottom:1px solid #e0eae4}
.daily-dialog .modal-head h2{margin:3px 0 0;font-size:21px;color:#164e3d}
.daily-dialog .modal-head .eyebrow{font-size:10px;letter-spacing:0;color:#728f81}
.daily-dialog #form-fields{display:flex;flex:1 1 auto;flex-direction:column;gap:14px;min-height:0;overflow:auto;overscroll-behavior:contain;padding:20px 24px}
.daily-banner{display:flex;align-items:center;gap:14px;padding:19px 21px;border:1px solid #cce1d5;border-radius:16px;background:linear-gradient(120deg,#e5f4e9,#f7fcf8);color:#204f3e}
.daily-banner-icon{display:grid;place-items:center;flex:none;width:48px;height:52px;border-radius:14px;background:#236b50;color:#e4f3c2;box-shadow:0 5px 13px #236b5022}
.daily-banner-icon svg{width:29px;height:29px}.daily-eyebrow{font-size:10px;font-weight:800;color:#5c816c}
.daily-banner h3{font-size:17px;margin:4px 0 5px;line-height:1.6}.daily-banner p{margin:0;font-size:11px;line-height:1.9;color:#63816f}
.daily-meta{display:flex;align-items:center;flex-wrap:wrap;gap:12px 22px;padding:0 3px}
.daily-meta>span:not(.daily-access-tag){flex:1;min-width:130px;overflow-wrap:anywhere}
.daily-meta small{display:block;font-size:10px;color:#839187;margin-bottom:4px}
.daily-meta strong{display:block;font-size:12px;color:#3e594b}
.daily-access-tag{font-size:10px;font-weight:700;color:#286345;background:#e5f1e8;border:1px solid #cee2d3;border-radius:99px;padding:7px 11px}
.daily-section{padding:17px 18px 18px;border:1px solid #e0e9e2;border-radius:15px;background:#fff}
.daily-section-title{display:flex;align-items:center;gap:10px;margin-bottom:15px}
.daily-section-title>b{display:grid;place-items:center;flex:none;width:33px;height:33px;border:1px solid #dbe7dd;border-radius:10px;background:#eff6f0;color:#548067;font-size:12px}
.daily-section-title h3{margin:0 0 3px;font-size:13px;font-weight:800;color:#315542}
.daily-section-title p{margin:0;color:#849185;font-size:10px;line-height:1.8}
.daily-day-grid{display:grid;grid-template-columns:1.2fr 1.2fr 1fr 1fr;gap:14px}
.daily-notes-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.daily-dialog #form-fields label{display:block;min-width:0;margin:0;color:#476453;font-size:11px;font-weight:700}
.daily-dialog #form-fields input,.daily-dialog #form-fields select,.daily-dialog #form-fields textarea{display:block;width:100%;min-width:0;min-height:43px;margin-top:8px;padding:10px 11px;border:1px solid #d7e3da;border-radius:10px;background:#fcfefc;color:#243d31;font-family:inherit;font-size:12px;font-weight:400;outline:none;transition:border-color .15s,box-shadow .15s}
.daily-dialog #form-fields textarea{height:95px;min-height:80px;resize:vertical;line-height:1.9}
.daily-dialog #form-fields input:focus,.daily-dialog #form-fields select:focus,.daily-dialog #form-fields textarea:focus{border-color:#5aa580;background:#fff;box-shadow:0 0 0 3px #50a7781b}
.daily-dialog #form-fields input::placeholder,.daily-dialog #form-fields textarea::placeholder{color:#97a79b;font-size:11px;font-weight:400}
.daily-dialog #form-fields input[type=number],.daily-dialog #form-fields input[type=date]{direction:ltr;text-align:center;font-variant-numeric:tabular-nums}
.daily-dialog #form-fields input[type=number]{appearance:textfield;-moz-appearance:textfield}
.daily-dialog #form-fields input[type=number]::-webkit-inner-spin-button{appearance:none}
.daily-unit{float:left;font-size:10px;font-weight:500;color:#8b9b91}
.daily-date small{display:block;margin-top:6px;color:#779b85;font-size:10px;font-weight:400}
.daily-followup .daily-section-title>b{background:#fbf6e9;color:#9d8042;border-color:#efe4c9}
.daily-form-note{margin:0;color:#7a8d80;font-size:10px;line-height:1.9;text-align:center}
.daily-dialog .form-error{flex:none;margin:0;padding:8px 24px;color:#aa4941;line-height:1.8}
.daily-dialog .form-error:empty{display:none}
.daily-dialog .modal-actions{flex:none;align-items:center;margin:0;padding:14px 24px;border-top:1px solid #dee8e0;background:#fff;box-shadow:0 -4px 14px #234b3505}
.daily-dialog .modal-actions .primary{background:#216e50;border-color:#216e50;min-width:170px}
.daily-dialog .modal-actions .primary:hover{background:#17563d}
@media(max-width:720px){.daily-day-grid{grid-template-columns:1fr 1fr}.daily-dialog #form-fields{padding:15px;gap:12px}.daily-dialog .modal-head,.daily-dialog .modal-actions{padding:14px 17px}.daily-banner{padding:15px}.daily-banner h3{font-size:15px}.daily-section{padding:14px}.daily-notes-grid{gap:12px}}
@media(max-width:480px){#dialog.daily-dialog{width:calc(100vw - 16px);border-radius:17px}.daily-notes-grid{grid-template-columns:1fr}.daily-banner{align-items:flex-start;gap:10px}.daily-banner-icon{width:39px;height:43px}.daily-meta{gap:10px}.daily-access-tag{width:100%;text-align:center}.daily-dialog .modal-actions .btn{flex:1;min-width:0}.daily-dialog .modal-head h2{font-size:19px}}
@media(prefers-reduced-motion:reduce){.daily-dialog #form-fields input,.daily-dialog #form-fields select,.daily-dialog #form-fields textarea{transition:none}}

/* Purchase lists: separate registers, compact filters and bounded table scrolling. */
.purchase-flow{margin:0 0 17px;padding:12px 17px;border:1px solid #dbe8f3;border-radius:13px;background:#f1f7fd;color:#547894;font-size:11px}
.purchase-flow summary{cursor:pointer;font-weight:700}.purchase-flow p{margin:10px 0 2px;line-height:2}
.purchase-list-tabs{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:15px}
.purchase-list-tab{display:flex;align-items:center;gap:13px;min-width:0;padding:16px 18px;border:1px solid #dce7f0;border-radius:17px;background:#fff;text-align:right;color:#607d94;transition:background .15s,border-color .15s}
.purchase-list-tab.active{border-color:#83b9e9;background:linear-gradient(130deg,#eaf4ff,#f7fbff);box-shadow:0 6px 17px #176eb00b;color:#195f98}
.purchase-tab-code{display:grid;place-items:center;flex:none;width:42px;height:43px;border:1px solid #dde8f2;border-radius:12px;background:#f4f8fc;color:#8399ac;font-size:12px;font-weight:800}
.purchase-list-tab.active .purchase-tab-code{background:#2376bd;border-color:#2376bd;color:#fff;box-shadow:0 4px 10px #2376bd25}
.purchase-list-tab strong{display:block;font-size:13px;line-height:1.8}.purchase-list-tab small{display:block;margin-top:3px;color:#879bac;font-size:10px;font-weight:400}
.purchase-tab-count{margin-inline-start:auto;padding:6px 11px;border-radius:10px;background:#eff4f8;color:#6a8296;font-size:14px;min-width:36px;text-align:center}
.purchase-list-tab.active .purchase-tab-count{background:#fff;color:#2476b7}
.purchase-workspace .procurement-table-card{margin-bottom:0;padding:17px 18px 0;overflow:hidden}
.purchase-workspace .procurement-filterbar{grid-template-columns:minmax(220px,1.8fr) minmax(150px,.8fr) minmax(150px,.9fr) auto}
.purchase-filter-actions{display:flex;align-items:center;gap:9px;align-self:center;flex-wrap:wrap}
.purchase-workspace .procurement-filter-count{font-size:10px;padding:7px 9px}
.purchase-reset{border:0;background:transparent;color:#6e8da5;font-size:10px;padding:7px 2px;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
.purchase-reset:hover{color:#175e9a}
.purchase-workspace .procurement-table-scroll{max-height:min(58vh,620px);scrollbar-width:thin;scrollbar-color:#b5cada #f3f7fa}
.purchase-workspace .procurement-table{min-width:1100px}
.purchase-workspace .procurement-table th{position:sticky;top:0;z-index:2;padding:13px 12px;background:#f2f7fb;border-bottom:1px solid #dce8f1}
.purchase-workspace .procurement-table td{padding:12px;font-size:11px;line-height:1.8}
.purchase-workspace .procurement-table th:last-child,.purchase-workspace .procurement-table td:last-child{position:sticky;left:0;min-width:210px;width:235px;border-right:1px solid #e6eef4;background:#fff}
.purchase-workspace .procurement-table th:last-child{background:#f2f7fb;z-index:3}
.purchase-workspace .procurement-table td:last-child .tiny{font-size:10px;margin:3px 0;padding:6px 9px}
.purchase-workspace .procurement-table tbody tr:hover td{background:#f8fbfe}
.purchase-workspace .procurement-table .rfq-mini{font-size:9px;line-height:1.6}
.purchase-note{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;max-width:220px;min-width:115px;white-space:normal;line-height:1.9}
.purchase-request-link{padding:5px 8px;border:1px solid #dbeaf5;border-radius:8px;background:#f3f8fd;color:#246ea6;font-size:11px;white-space:nowrap}
.purchase-related{color:#176b59!important;background:#edf8f2!important;border-color:#cde6da!important}
.procurement-pagination{display:flex;align-items:center;gap:16px;flex-wrap:wrap;justify-content:space-between;padding:15px 1px;color:#7590a4;font-size:10px}
.purchase-range strong{color:#346585;font-weight:700}
.purchase-page-size{display:flex;align-items:center;gap:8px;font-size:10px;color:#69879d;white-space:nowrap}
.purchase-page-size select{width:66px;min-height:32px;padding:5px 9px;border:1px solid #d8e5ef;border-radius:8px;background:#fff;font-size:11px;color:#335b78}
.purchase-pages{display:flex;align-items:center;gap:6px}
.purchase-pages button{min-width:35px;min-height:32px;padding:5px 9px;border:1px solid #d6e5ef;border-radius:8px;background:#f7fbff;color:#2d6b9a;font-size:10px}
.purchase-pages button:hover:not(:disabled){background:#e9f3fd;border-color:#90bce0}
.purchase-pages button:disabled{opacity:.4;cursor:default}.purchase-pages span{padding:0 6px;white-space:nowrap;font-size:10px}.purchase-pages b{color:#286d9f}
.purchase-list-tab:focus-visible,.purchase-workspace button:focus-visible,.purchase-workspace .procurement-table-scroll:focus-visible{outline:3px solid #84bde8;outline-offset:2px}
@media(max-width:1100px){.purchase-workspace .procurement-filterbar{grid-template-columns:1fr 1fr}.purchase-workspace .procurement-search{grid-column:1/-1}.purchase-filter-actions{grid-column:1/-1;justify-content:space-between}.purchase-pages{margin-inline-start:auto}}
@media(max-width:600px){.purchase-list-tabs{gap:8px}.purchase-list-tab{padding:12px 10px;gap:8px;flex-wrap:wrap;border-radius:13px}.purchase-tab-code{width:32px;height:34px;font-size:10px}.purchase-list-tab strong{font-size:11px}.purchase-list-tab small{display:none}.purchase-tab-count{padding:4px 8px;font-size:12px;min-width:30px}.purchase-workspace .procurement-table-card{padding:12px 11px 0}.purchase-workspace .procurement-table th:last-child,.purchase-workspace .procurement-table td:last-child{position:static;min-width:200px}.procurement-pagination{gap:12px}.purchase-pages{width:100%;justify-content:space-between;margin:0}.purchase-pages button{min-height:36px;padding:5px 7px}.purchase-workspace .procurement-table-scroll{max-height:55vh}}
@media(prefers-reduced-motion:reduce){.purchase-list-tab{transition:none}}

/* Monthly budget proposal, automation approval and published plan */
.monthly-budget-page{display:grid;gap:18px}.monthly-budget-page .section-title{margin:8px 0 0}
.monthly-budget-hero{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:25px 28px;margin-top:18px;border:1px solid #d3e3f1;border-radius:19px;background:linear-gradient(120deg,#edf6ff,#fff);color:#1c4e73}
.monthly-budget-hero h2{margin:6px 0 8px;font-size:24px}.monthly-budget-hero p{margin:0;color:#617d94;font-size:12px;line-height:1.9}
.monthly-budget-controls{display:flex;flex-wrap:wrap;gap:9px;justify-content:flex-end}
.monthly-budget-flow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0;padding:0;list-style:none}
.monthly-budget-flow li{position:relative;display:flex;align-items:center;gap:11px;min-width:0;padding:15px;border:1px solid #dce7ee;border-radius:13px;background:#fff;color:#748b9c}
.monthly-budget-flow li>b{flex:none;display:grid;place-items:center;width:32px;height:32px;border:1px solid #d8e5ef;border-radius:50%;background:#f2f7fb;font-size:13px}
.monthly-budget-flow span{display:grid;gap:5px}.monthly-budget-flow strong{font-size:12px}.monthly-budget-flow small{font-size:10px;line-height:1.8}
.monthly-budget-flow .current{border-color:#9cc6e6;background:#edf6fe;color:#28648f}.monthly-budget-flow .current>b{background:#237bc0;color:#fff;border-color:#237bc0}
.monthly-budget-flow .done{color:#307565}.monthly-budget-flow .done>b{background:#e4f5ed;border-color:#c6e7d9;color:#21765d}
.monthly-budget-pending{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:21px 24px;border:1px solid #e8d6b4;border-radius:16px;background:#fffaf0}
.monthly-budget-pending .eyebrow{color:#987333;letter-spacing:0}.monthly-budget-pending h3{margin:9px 0;color:#725528;font-size:23px}
.monthly-budget-pending p{margin:4px 0;color:#8b7858;font-size:12px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}
.monthly-budget-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.monthly-budget-metrics>div{display:grid;gap:12px;padding:20px;border:1px solid #dae7f0;border-radius:15px;background:#fff}
.monthly-budget-metrics span{font-size:11px;color:#6c8598}.monthly-budget-metrics strong{font-size:19px;color:#235b83;overflow-wrap:anywhere}
.monthly-budget-register{min-width:0}.monthly-budget-register .table-wrap{max-height:480px;border-color:#dbe7f0;overflow:auto}
.monthly-budget-register th{position:sticky;top:0;z-index:1;background:#eef5fb;color:#567b98}.monthly-budget-register td{font-size:12px}
.monthly-budget-subtext{display:block;margin-top:7px;color:#7b91a1;font-size:10px}.monthly-budget-ref{font-size:12px}
.monthly-budget-hint{margin:0;color:#688197;font-size:12px;line-height:1.9}
.monthly-budget-dialog{width:min(1070px,calc(100vw - 28px));max-width:1070px;max-height:94dvh;padding:0;border:1px solid #d4e3ef;border-radius:21px;background:#f4f8fc;direction:rtl;overflow:hidden}
.monthly-budget-dialog #entity-form{display:flex;flex-direction:column;max-height:94dvh;padding:0;overflow:hidden}
.monthly-budget-dialog .modal-head{flex:none;align-items:center;padding:18px 26px;margin:0;background:#fff;border-bottom:1px solid #dce7f0}
.monthly-budget-dialog .modal-head h2{margin:5px 0 0;color:#1d4767;font-size:21px}
.monthly-budget-dialog #form-fields{flex:1;min-height:0;max-height:none;display:block;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:22px 26px}
.monthly-budget-dialog .modal-actions{flex:none;gap:12px;margin:0;padding:15px 26px;background:#fff;border-top:1px solid #dce7f0}
.monthly-budget-dialog .form-error{margin:0;padding:0 26px 12px;min-height:0;line-height:1.8}.monthly-budget-dialog .form-error:empty{display:none}
.monthly-budget-shell{display:grid;gap:18px;min-width:0}
.monthly-budget-form-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px;border:1px solid #d2e3f1;border-radius:16px;background:#edf5fc}
.monthly-budget-form-hero h3{margin:7px 0;font-size:22px;color:#1e4f73}.monthly-budget-form-hero p{margin:0;color:#607e95;font-size:11px;line-height:1.9}
.monthly-budget-form-hero>div:last-child{display:grid;gap:8px;min-width:180px;max-width:45%;padding:15px 19px;border-radius:12px;background:#245675;color:#fff}
.monthly-budget-form-hero small{font-size:10px;color:#d1e3ef}.monthly-budget-form-hero strong{font-size:20px;overflow-wrap:anywhere}
.monthly-budget-document-info{display:flex;flex-wrap:wrap;gap:16px;padding:14px 17px;border:1px solid #dce6ee;border-radius:12px;background:#fff;color:#637d90;font-size:11px}.monthly-budget-document-info b{margin-inline-start:7px;color:#375c77}
.monthly-budget-note{padding:13px 17px;border-inline-start:3px solid #8eb7d7;border-radius:8px;background:#eef5fb;color:#516f85;font-size:12px;line-height:1.9}
.monthly-budget-note p{margin:6px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.monthly-budget-amounts{min-width:0;margin:0;padding:0;border:0}.monthly-budget-amounts>legend{padding:0 0 13px;color:#3a607b;font-size:13px;font-weight:700}
.monthly-budget-table-scroll{overflow:auto;max-height:460px;border:1px solid #d7e5ef;border-radius:13px;background:#fff}
.monthly-budget-table{width:100%;border-collapse:collapse;min-width:630px;color:#3a5f7a;text-align:right;font-size:12px}
.monthly-budget-table th{padding:13px 16px;background:#edf4fa;color:#567a94;font-size:11px;white-space:nowrap}
.monthly-budget-table thead th{position:sticky;top:0;z-index:1}.monthly-budget-table tbody th{background:#fafcfe;font-size:12px;color:#395f7b}
.monthly-budget-table td,.monthly-budget-table tbody th{padding:12px 16px;border-top:1px solid #e6eef5}
.monthly-budget-table td:last-child{width:31%;min-width:190px}
.monthly-budget-dialog .monthly-budget-amount{display:grid;gap:6px}.monthly-budget-amount small{font-size:10px;color:#5b839f;font-weight:400}
.monthly-budget-dialog input[type=number]{width:100%;min-width:0;padding:10px 12px;border:1px solid #bcd6e8;border-radius:8px;background:#f7fbff;color:#285b80;font:inherit;font-size:13px;direction:ltr;text-align:right;font-variant-numeric:tabular-nums;appearance:textfield}
.monthly-budget-dialog input[type=number]::-webkit-inner-spin-button{appearance:none}.monthly-budget-dialog input:focus{outline:none;border-color:#438ac1;box-shadow:0 0 0 3px #438ac11c}
.monthly-budget-live-total{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:17px 20px;border:1px solid #cce0ee;border-radius:13px;background:#eaf4fc;color:#4d7896;font-size:12px}
.monthly-budget-live-total strong{display:block;margin-top:6px;color:#195d8b;font-size:22px;overflow-wrap:anywhere}
.monthly-budget-live-total p{flex-basis:100%;margin:0;padding-top:10px;border-top:1px solid #d3e6f4;color:#406d8d;font-size:12px;line-height:1.9}
.monthly-budget-dialog .monthly-budget-decision-label{display:grid;gap:9px;color:#3e6783;font-size:12px}
.monthly-budget-decision-label textarea,.monthly-budget-decision-label select{border-color:#cbdfeD;font-size:12px;line-height:1.8;background:#fff}
.monthly-budget-dialog:has([name=decision] option[value=reject]:checked) #submit-dialog{background:#b25846!important}
.monthly-budget-amounts[hidden],.monthly-budget-live-total[hidden]{display:none}
.monthly-budget-sr{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:760px){
 .monthly-budget-hero,.monthly-budget-pending,.monthly-budget-form-hero{flex-direction:column;align-items:stretch;padding:19px}
 .monthly-budget-controls{justify-content:flex-start}.monthly-budget-flow{grid-template-columns:1fr;gap:8px}.monthly-budget-flow li{padding:11px 14px}
 .monthly-budget-flow span{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
 .monthly-budget-metrics{grid-template-columns:1fr;gap:9px}.monthly-budget-metrics>div{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;padding:15px}.monthly-budget-metrics strong{font-size:16px}
 .monthly-budget-dialog{width:calc(100vw - 12px);border-radius:15px}.monthly-budget-dialog #form-fields{padding:14px}.monthly-budget-dialog .modal-head{padding:15px 17px}.monthly-budget-dialog .modal-head h2{font-size:18px}.monthly-budget-dialog .modal-actions{padding:12px 16px;flex-wrap:wrap}
 .monthly-budget-form-hero>div:last-child{min-width:0;max-width:none}.monthly-budget-form-hero h3{font-size:19px}
 .monthly-budget-document-info{gap:12px}.monthly-budget-table-scroll{max-height:400px}.monthly-budget-live-total strong{font-size:20px}
}

/* Petty cash: finance-only document details and project cashier assignment. */
.org-cashier-role{margin-block:18px}.org-cashier-fields{display:flex;flex-wrap:wrap;align-items:end;gap:14px}.org-cashier-fields label{display:grid;gap:7px;flex:1 1 260px;font-size:13px;color:#375d76}.org-cashier-fields select{width:100%;min-height:42px;border:1px solid #cadde9;border-radius:9px;background:#fff;padding:8px 12px;color:#1e4563}.org-cashier-fields .btn{min-height:42px}.petty-finance-preview{background:#f5f9fd;border-style:dashed}.petty-finance-preview :is(input,textarea):disabled{background:#ebf1f6;border-color:#d8e4ed;color:#60788c;opacity:1;cursor:not-allowed}.petty-finance-preview .petty-section-number{background:#e3ecf5;color:#4f7190}.petty-finance-fields .petty-header-grid{margin-block:18px}.petty-finance-fields .petty-header-grid textarea{min-height:68px}

/* Organization onboarding: five clear steps in the application's blue palette. */
.setup-steps{grid-template-columns:repeat(5,minmax(0,1fr))}
.setup-step{border-color:#cfdaea;color:#365475}
.setup-step b{background:#e8f1fc;color:#255b9b}
.setup-step.active{border-color:#2971c7;box-shadow:0 6px 22px #2971c722;color:#174777}
.setup-step.active b{background:#2971c7;color:white}
.setup-card-head{border-color:#d9e5f3}
.setup-card-head p,.setup-form small{color:#627b99}
.setup-form label,.setup-project,.setup-users>div{color:#244766}
.setup-form input,.setup-form select,.setup-users>div,.setup-project{border-color:#d6e3f2}
.setup-form input:focus,.setup-form select:focus{outline-color:#9bc5f5;border-color:#2971c7}
.setup-project.chosen{border-color:#2971c7;background:#eef6ff}
@media(max-width:900px){.setup-steps{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.setup-steps{grid-template-columns:repeat(2,minmax(0,1fr))}}

.sidebar nav .setup-subitem{margin:2px 22px 8px 8px;padding:9px 14px;border:1px solid #d6e5f4;border-radius:11px;background:#eef5fd;color:#28598b;font:inherit;text-align:start;cursor:pointer}
.sidebar nav .setup-subitem.active{background:#d9eafb;border-color:#7caee4;color:#143e70;font-weight:700}

/* Organization user creation and completion of the user setup step. */
.setup-user-card{border:1px solid #dbe8f6;box-shadow:0 16px 44px #163f6510}
.setup-user-count{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#173f69;font-size:13px}
.setup-user-count span{padding:7px 12px;border-radius:999px;background:#eaf3ff;color:#2464aa;font-size:11px;font-weight:750}
.setup-user-card .setup-users>div{min-height:86px;border-radius:16px;background:#fdfefe}
.setup-user-name{min-width:0;flex:1}.setup-user-name strong,.setup-user-name small{overflow-wrap:anywhere}
.setup-user-hint{font-size:12px;color:#7188a0;margin:14px 0 0}
.setup-user-confirm{display:flex;gap:22px;align-items:flex-start;max-width:1000px;margin:18px auto 0;padding:24px 28px;border:1px solid #b9d6f3;border-radius:22px;background:linear-gradient(120deg,#f4f9ff,#fff);box-shadow:0 15px 36px #17477513}
.setup-confirm-icon{flex:none;width:50px;height:50px;display:grid;place-items:center;border-radius:16px;background:#dfedff;color:#176fcf;font-size:24px;font-weight:850}
.setup-user-confirm h3{font-size:19px;color:#123f6e;margin:6px 0 6px}.setup-user-confirm p{margin:0;color:#6a8098;font-size:12px;line-height:1.9}
.setup-confirm-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
#dialog.user-onboarding-dialog{width:min(790px,calc(100vw - 24px));max-width:790px;max-height:92dvh;padding:0;border:1px solid #d9e7f5;border-radius:25px;background:#f4f8fc;box-shadow:0 30px 90px #123e6833;color:#193e63;overflow:hidden}
.user-onboarding-dialog #entity-form{display:flex;flex-direction:column;max-height:92dvh;min-height:0;padding:0;overflow:hidden}
.user-onboarding-dialog .modal-head{flex:none;display:flex;align-items:center;justify-content:space-between;padding:23px 30px;margin:0;background:linear-gradient(110deg,#eef6ff,#fff);border-bottom:1px solid #dbe8f5}
.user-onboarding-dialog .modal-head .eyebrow{color:#3772b3}.user-onboarding-dialog .modal-head h2{color:#113d69;margin:5px 0 0;font-size:22px}
.user-onboarding-dialog #form-fields{display:block;flex:1;min-height:0;max-height:none;overflow:auto;padding:23px 30px 26px}
.user-form-intro{display:flex;align-items:center;gap:14px;margin-bottom:18px;padding:17px 19px;border:1px solid #c9def3;border-radius:16px;background:#eaf4ff}
.user-form-emblem{flex:none;display:grid;place-items:center;width:45px;height:45px;border-radius:14px;background:#fff;color:#176fcf;font-size:24px}
.user-form-intro strong{font-size:14px;color:#124979}.user-form-intro p{font-size:11px;color:#567996;line-height:1.8;margin:4px 0 0}
.user-form-section{padding:18px 20px 20px;margin:0 0 14px;background:#fff;border:1px solid #dce7f2;border-radius:18px}
.user-form-section-title{display:flex;align-items:center;gap:12px;margin-bottom:17px}
.user-form-section-title>span{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#eaf3ff;color:#176fcf;font-weight:800;font-size:12px}
.user-form-section-title h3{font-size:14px;color:#173f68;margin:0}.user-form-section-title p{color:#8499ad;font-size:10px;margin:3px 0 0}
.user-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.user-form-grid label{display:flex;flex-direction:column;gap:8px;min-width:0;color:#345b7c;font-size:11px;font-weight:750}
.user-form-grid label.full{grid-column:1/-1}.user-form-grid label small{font-size:10px;font-weight:500;color:#94a6b5}
.user-form-grid input{min-height:46px;border-color:#d5e3f1;background:#fbfdff;border-radius:11px;color:#183e60}
.user-form-grid input:focus{border-color:#3179c9;box-shadow:0 0 0 3px #3179c92b}
.user-password-wrap{position:relative;display:block}.user-password-wrap input{padding-inline-end:76px}
.user-password-wrap button{position:absolute;inset-inline-end:7px;top:50%;transform:translateY(-50%);border:0;border-radius:8px;padding:7px 10px;background:#eaf4fe;color:#2167ad;font-size:10px;font-weight:800}
.user-form-footnote{margin:2px 0 0;padding:12px 15px;border:1px dashed #b9d3ed;border-radius:12px;background:#f7fbff;color:#537794;font-size:11px}
.user-onboarding-dialog #form-error{margin:0 30px 10px;flex:none}
.user-onboarding-dialog .modal-actions{flex:none;display:flex;justify-content:flex-start;gap:10px;margin:0;padding:16px 30px 20px;background:#fff;border-top:1px solid #dbe8f5}
@media(max-width:650px){.setup-user-confirm{padding:18px;gap:12px}.setup-confirm-icon{width:40px;height:40px}.setup-confirm-actions .btn{flex:1;white-space:normal}.user-onboarding-dialog .modal-head{padding:18px}.user-onboarding-dialog #form-fields{padding:17px}.user-onboarding-dialog .modal-actions{padding:14px 17px 18px}.user-onboarding-dialog #form-error{margin:0 17px 10px}.user-form-section{padding:16px}.user-form-grid{grid-template-columns:1fr}.user-form-grid label.full{grid-column:auto}}

/* Issued credentials and first login */
.auth-dialog{max-width:min(92vw,680px);width:100%;border:0;border-radius:20px;padding:28px;box-shadow:0 24px 80px #102c4860;color:#18324a;background:#fff;direction:rtl}
.auth-dialog::backdrop{background:#0c203dbd}.auth-dialog form{display:grid;gap:14px}.auth-dialog label{display:grid;gap:7px;font-weight:600}.auth-dialog input{width:100%;min-height:44px;border:1px solid #b7c9dc;border-radius:10px;padding:10px;direction:ltr}.auth-dialog p{line-height:1.7}.credential-dialog{max-width:min(96vw,900px)}.credential-table-wrap{overflow:auto}.credential-dialog table{width:100%;border-collapse:collapse;min-width:560px}.credential-dialog th,.credential-dialog td{padding:12px;border-bottom:1px solid #dce8f3;text-align:right}.credential-dialog th{background:#ebf3fb}.credential-dialog td[dir=ltr]{text-align:left}.user-automatic-login{padding:12px 16px;background:#ebf3fb;border-radius:12px;grid-column:1/-1}

/* Cascading warehouse coding catalog */
.material-coding-toolbar{display:flex;align-items:center;gap:10px;min-width:min(390px,100%)}
.material-coding-total{display:grid;place-items:center;min-width:38px;height:38px;padding:0 10px;border-radius:12px;background:#eaf4ff;color:#176fcf;font-size:13px;font-weight:850}
.material-coding-tree{display:grid;gap:12px;margin-top:16px}
.material-coding-group{overflow:hidden;border:1px solid #d7e6f3;border-radius:19px;background:linear-gradient(135deg,#fbfdff,#f3f8fd);box-shadow:0 10px 24px #1d557f0a}
.material-coding-group>summary,.material-coding-subgroup>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:12px}
.material-coding-group>summary::-webkit-details-marker,.material-coding-subgroup>summary::-webkit-details-marker{display:none}
.material-coding-group>summary{padding:16px 18px;background:linear-gradient(105deg,#eff7ff,#fff);color:#1d4f74}
.material-coding-group>summary:hover{background:#e9f4ff}
.material-coding-group-code{display:grid;place-items:center;width:44px;height:40px;border-radius:13px;background:#176fcf;color:#fff;font-weight:900;font-size:14px;box-shadow:0 6px 14px #176fcf38}
.material-coding-group>summary strong{display:block;font-size:13px;color:#164a71}.material-coding-group>summary small{display:block;margin-top:3px;color:#7592a8;font-size:10px}.material-coding-chevron{margin-inline-start:auto;color:#4f89b7;font-size:19px;transition:transform .2s}.material-coding-group[open]>summary .material-coding-chevron,.material-coding-subgroup[open]>summary .material-coding-chevron{transform:rotate(180deg)}
.material-coding-subgroups{display:grid;gap:9px;padding:11px 12px 13px;border-top:1px solid #e0ecf5}
.material-coding-subgroup{overflow:hidden;border:1px solid #e2edf5;border-radius:14px;background:#fff}
.material-coding-subgroup>summary{padding:11px 13px;color:#315e7f}.material-coding-subgroup>summary:hover{background:#f4f9fd}.material-tree-connector{flex:none;min-width:58px;color:#176fcf;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px;font-weight:850;direction:ltr}.material-coding-subgroup-title{font-size:11px;font-weight:750}.material-coding-count{margin-inline-start:auto;white-space:nowrap;padding:4px 8px;border-radius:999px;background:#eef6fd;color:#5981a0;font-size:9px;font-weight:800}
.material-coding-items{display:grid;gap:8px;padding:10px;border-top:1px solid #eaf1f6;background:#fbfdff}.material-coding-item{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 13px;border:1px solid #e0ebf3;border-radius:13px;background:#fff;transition:transform .18s,box-shadow .18s,border-color .18s}.material-coding-item:hover{transform:translateY(-1px);border-color:#aacbe6;box-shadow:0 8px 20px #1a6da514}.material-coding-item.is-filtered{display:none}.material-coding-item-main{display:flex;align-items:center;gap:11px;min-width:0}.material-coding-item-main>div{min-width:0}.material-coding-item h4{margin:0;color:#1b4f72;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.material-coding-item p{margin:4px 0 0;color:#8498a7;font-size:9px}.material-code-badge{display:inline-flex;align-items:center;justify-content:center;min-width:98px;padding:7px 9px;border-radius:9px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:10px;font-weight:900;direction:ltr}.material-code-badge.issued{background:#e9f6ee;color:#17734e}.material-code-badge.pending{background:#fff4df;color:#a96b13}.material-coding-item-meta{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:6px;flex:none}.material-coding-chip{padding:5px 8px;border-radius:999px;background:#edf5fb;color:#527994;font-size:9px;font-weight:750}.material-coding-item-meta .tiny{padding:5px 8px}
.material-coding-legend{display:flex;align-items:center;flex-wrap:wrap;gap:14px;padding:10px 12px;border:1px dashed #c9deef;border-radius:12px;background:#f8fbfe;color:#6c889c;font-size:10px}.material-coding-legend span{display:inline-flex;align-items:center;gap:6px}.material-legend-dot{width:9px;height:9px;border-radius:50%;display:inline-block}.material-legend-dot.issued{background:#3eae76}.material-legend-dot.pending{background:#e4a73b}.material-coding-format{margin-inline-start:auto}.material-coding-empty{padding:16px;text-align:center;color:#91a4b2;font-size:10px}.material-coding-uncoded{border-color:#f0d6a6;background:#fffdf8}.material-coding-uncoded>summary{background:linear-gradient(105deg,#fff8e9,#fff)}.material-coding-uncoded .material-coding-group-code{background:#d99022}
@media(max-width:680px){.material-coding-toolbar{width:100%;min-width:0}.material-coding-total{flex:none}.material-coding-item{align-items:stretch;flex-direction:column;gap:10px}.material-coding-item-main{width:100%}.material-coding-item h4{white-space:normal}.material-coding-item-meta{justify-content:flex-start}.material-coding-format{margin-inline-start:0}.material-coding-group>summary{padding:14px}.material-coding-subgroups{padding:9px}.material-coding-subgroup>summary{align-items:flex-start;flex-wrap:wrap}.material-coding-count{margin-inline-start:auto}}

.material-edit-hero{padding:15px 17px;border:1px solid #c9dff1;border-radius:15px;background:linear-gradient(110deg,#eef7ff,#fff)}.material-edit-hero strong{display:block;margin-top:4px;color:#174c73;font-size:16px}.material-edit-hero p{margin:7px 0 0;color:#6d879b;font-size:11px;line-height:1.8}.material-edit-coding-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.material-edit-coding-grid label{display:flex;flex-direction:column;gap:7px}.material-edit-coding-grid label.hidden{display:none}
@media(max-width:650px){.material-edit-coding-grid{grid-template-columns:1fr}}
.material-coding-services{border-color:#d9d2f1;background:#fbfaff}.material-coding-services>summary{background:linear-gradient(105deg,#f5f1ff,#fff)}.material-coding-services .material-coding-group-code{background:#7659b7}

/* PlusEPC identity */
.brand-logo{flex:none;width:42px;height:42px;display:block;object-fit:cover;border-radius:12px;background:#fff;padding:3px;box-shadow:0 8px 25px #0c242555}.gateway-art .brand-logo{width:56px;height:56px;border-radius:16px;padding:4px}.sidebar .brand-logo{width:42px;height:42px;border-radius:12px;padding:3px}.brand span{min-width:0}

/* Purchase request source selector */
.purchase-request-dialog .form-grid{align-items:stretch;gap:18px}
.purchase-request-intro{display:flex;align-items:center;gap:14px;padding:18px 20px;border:1px solid #d6e5f4;border-radius:18px;background:linear-gradient(135deg,#f4f9ff,#edf6ff);color:#184a78}
.purchase-request-intro strong{font-size:1.05rem}.purchase-request-intro p{margin:5px 0 0;color:#5a7894;line-height:1.8}
.purchase-request-emblem{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:#1669b2;color:white;font-weight:800;letter-spacing:.04em}
.purchase-request-mode{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0;padding:16px;border:1px solid #d7e4f0;border-radius:18px;background:#fff}
.purchase-request-mode legend{grid-column:1/-1;padding:0 8px;color:#1b4e7d;font-weight:800}.purchase-mode-option{display:flex;align-items:center;gap:12px;min-height:72px;padding:14px 16px;border:1px solid #cbddec;border-radius:14px;background:#f9fcff;cursor:pointer;transition:.2s ease}.purchase-mode-option:has(input:checked){border-color:#1874bd;background:#eef7ff;box-shadow:0 0 0 3px #ddecfb}.purchase-mode-option input{accent-color:#146db2}.purchase-mode-option b,.purchase-mode-option small{display:block}.purchase-mode-option small{margin-top:5px;color:#66839d;font-weight:500}
.purchase-source-card{padding:18px 20px;border:1px solid #d9e6ef;border-radius:18px;background:#fff}.purchase-source-head{display:flex;align-items:flex-start;gap:12px;margin-bottom:14px}.purchase-source-number{display:grid;place-items:center;flex:0 0 32px;height:32px;border-radius:10px;background:#e8f3fd;color:#1264a6;font-weight:800}.purchase-source-head h3{margin:0;color:#184a78}.purchase-source-head p{margin:4px 0 0;color:#6a849a}.purchase-source-card label{display:block}.purchase-nonmto-toggle{display:flex;gap:18px;margin:8px 0 14px;color:#1e4e77}.purchase-nonmto-toggle label{display:flex;align-items:center;gap:7px}.purchase-linked-info,.purchase-request-summary{margin-top:12px;padding:11px 14px;border-radius:12px;background:#f4f9fd;color:#4d6f8b;line-height:1.8}.purchase-request-summary{border:1px dashed #b9d5ec;color:#1b5c91;font-weight:700}.purchase-request-dialog select,.purchase-request-dialog input,.purchase-request-dialog textarea{border-color:#cbddec;background:#fbfdff}.purchase-request-dialog .hidden{display:none!important}
@media (max-width:700px){.purchase-request-mode{grid-template-columns:1fr}.purchase-mode-option{min-height:62px}.purchase-request-intro{align-items:flex-start}}

.purchase-catalog-missing{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:12px;padding:13px 15px;border:1px dashed #c4d8e9;border-radius:14px;background:#f8fbfe;color:#315f83}.purchase-catalog-missing>div{display:grid;gap:4px}.purchase-catalog-missing strong{color:#174d7b}.purchase-catalog-missing span{font-size:.88rem;line-height:1.8;color:#66839a}.purchase-catalog-missing .btn{white-space:nowrap}@media(max-width:700px){.purchase-catalog-missing{align-items:stretch;flex-direction:column}}

/* Purchase request dialog refinement */
#dialog.purchase-request-dialog{width:min(1100px,calc(100vw - 24px));max-width:1100px;max-height:94dvh;padding:0;border-radius:28px;background:#f6faff;border:1px solid #d6e6f3;overflow:hidden;box-shadow:0 30px 100px #153f632e}
.purchase-request-dialog #entity-form{display:flex;flex-direction:column;max-height:94dvh;min-height:0;padding:0;overflow:hidden}
.purchase-request-dialog .modal-head{flex:none;display:flex;align-items:center;padding:24px 32px 20px;margin:0;background:linear-gradient(135deg,#ffffff 0%,#eef7ff 100%);border-bottom:1px solid #dceaf5}
.purchase-request-dialog .modal-head h2{margin:5px 0 0;color:#123e68;font-size:25px;letter-spacing:-.025em}
.purchase-request-dialog .modal-head .eyebrow{color:#2774ba;letter-spacing:.06em}
.purchase-request-dialog #form-fields{flex:1;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:24px 32px 28px}
.purchase-request-dialog #form-error{flex:none;margin:0;padding:0 32px 10px;min-height:0;line-height:1.8}
.purchase-request-dialog #form-error:empty{display:none}
.purchase-request-dialog .modal-actions{flex:none;margin:0;padding:16px 32px 22px;background:#fff;border-top:1px solid #dceaf5}
.purchase-request-dialog .modal-actions #submit-dialog{min-width:190px;background:#176fcf;box-shadow:0 10px 22px #176fcf28}.purchase-request-dialog .modal-actions #submit-dialog:hover{background:#105ba7}
.purchase-request-dialog .purchase-request-mode{background:linear-gradient(135deg,#ffffff,#f8fbff);box-shadow:0 10px 25px #2a6ea312}
.purchase-request-dialog .purchase-source-card{box-shadow:0 10px 25px #2a6ea30d}
.purchase-request-dialog select{min-height:48px;font-size:13px;color:#17466e}
@media(max-width:700px){#dialog.purchase-request-dialog{width:calc(100vw - 12px);max-height:96dvh;border-radius:19px}.purchase-request-dialog #entity-form{max-height:96dvh}.purchase-request-dialog .modal-head{padding:18px 18px 15px}.purchase-request-dialog .modal-head h2{font-size:20px}.purchase-request-dialog #form-fields{padding:16px 17px 20px}.purchase-request-dialog #form-error{padding:0 17px 8px}.purchase-request-dialog .modal-actions{padding:13px 17px 17px}.purchase-request-dialog .modal-actions .btn{flex:1;min-width:0}}

/* Colorful purchase request theme */
#dialog.purchase-request-dialog{background:linear-gradient(145deg,#eef7ff 0%,#f7f4ff 54%,#eefcf9 100%);border-color:#c5dcf4}
.purchase-request-dialog .modal-head{background:linear-gradient(110deg,#e9f5ff 0%,#f5efff 53%,#e9fbf8 100%);border-bottom-color:#c9dff2}
.purchase-request-dialog .modal-head h2{color:#123d70}.purchase-request-dialog .modal-head .eyebrow{color:#246fc2}
.purchase-request-dialog .purchase-request-intro{background:linear-gradient(120deg,#dceeff 0%,#edf1ff 50%,#ddfaf3 100%);border-color:#afd2ef;box-shadow:0 12px 30px #2e79b21c}.purchase-request-dialog .purchase-request-emblem{background:linear-gradient(145deg,#126fc3,#6847c7);box-shadow:0 8px 18px #3f62bd40}
.purchase-request-dialog .purchase-request-mode{background:linear-gradient(135deg,#ffffffb8,#edf6ff);border-color:#bad6ee;box-shadow:0 12px 28px #447ab51a}.purchase-request-dialog .purchase-request-mode legend{color:#18578d}
.purchase-request-dialog .purchase-mode-option{background:linear-gradient(145deg,#ffffff,#edf7ff);border-color:#bdd7ee}.purchase-request-dialog .purchase-mode-option:nth-of-type(2){background:linear-gradient(145deg,#fff,#f4efff);border-color:#d2c6ef}.purchase-request-dialog .purchase-mode-option:has(input:checked){background:linear-gradient(145deg,#d9efff,#e7e0ff);border-color:#227bd1;box-shadow:0 0 0 3px #9bc8f655,0 12px 22px #3c78b522}.purchase-request-dialog .purchase-mode-option b{color:#174e80}.purchase-request-dialog .purchase-mode-option small{color:#5a7596}
.purchase-request-dialog .purchase-source-card{background:linear-gradient(145deg,#ffffff,#f1f8ff);border-color:#bad8ef;box-shadow:0 14px 30px #3b79ad17}.purchase-request-dialog .purchase-source-card[data-request-source=MTO]{background:linear-gradient(145deg,#f1f7ff,#f6f0ff);border-color:#bfd0ef}.purchase-request-dialog .purchase-source-card[data-request-source=NON_MTO]{background:linear-gradient(145deg,#ffffff,#eefbf8);border-color:#b9e2d8}.purchase-request-dialog .purchase-source-number{background:linear-gradient(145deg,#cce8ff,#dcd2ff);color:#2459a1;box-shadow:0 6px 12px #5579b526}.purchase-request-dialog .purchase-source-head h3{color:#185589}.purchase-request-dialog .purchase-source-head p{color:#6685a6}
.purchase-request-dialog .purchase-task-field{padding:16px 17px;border:1px solid #b9d8ef;border-radius:16px;background:linear-gradient(145deg,#e5f4ff,#f0edff);box-shadow:0 10px 22px #4b7fb21a}.purchase-request-dialog .purchase-task-field select{background:#fff;border-color:#8fc3e9}
.purchase-request-dialog select,.purchase-request-dialog input,.purchase-request-dialog textarea{background:#ffffffd9;border-color:#b8d4ec}.purchase-request-dialog select:focus,.purchase-request-dialog input:focus,.purchase-request-dialog textarea:focus{border-color:#257dcc;box-shadow:0 0 0 4px #6eb2ed35}
.purchase-request-dialog .purchase-linked-info{background:linear-gradient(110deg,#e5f3ff,#edf4ff);border:1px solid #c3dcf2;color:#326389}.purchase-request-dialog .purchase-request-summary{background:linear-gradient(110deg,#e9f7ff,#f0edff);border-color:#b8d4ee;color:#235b8e}.purchase-request-dialog .purchase-catalog-missing{background:linear-gradient(110deg,#fff6df,#fff0ed);border-color:#efc88d;color:#825d32}.purchase-request-dialog .purchase-catalog-missing strong{color:#92501b}.purchase-request-dialog .purchase-catalog-missing span{color:#8b6d4a}
.purchase-request-dialog .modal-actions{background:#ffffffd9;border-top-color:#c9deef}.purchase-request-dialog .modal-actions #submit-dialog{background:linear-gradient(120deg,#126fc8,#6545c5);box-shadow:0 12px 24px #315fb536}.purchase-request-dialog .modal-actions #submit-dialog:hover{background:linear-gradient(120deg,#0b5ba9,#5033ae)}.purchase-request-dialog .modal-actions #cancel-dialog{background:#fff4f5;border-color:#f0cfd5;color:#a34e5b}

.purchase-request-dialog .purchase-material-search{display:grid;gap:8px;padding:12px 14px;border:1px solid #a7cce9;border-radius:14px;background:linear-gradient(110deg,#eff8ff,#f5f0ff);color:#245a88}.purchase-request-dialog .purchase-material-search input{min-height:44px;background:#fff;border-color:#a9cce9}.purchase-request-dialog .purchase-material-search input::placeholder{color:#88a4ba}.purchase-request-dialog .purchase-material-search:focus-within{border-color:#287fd0;box-shadow:0 0 0 4px #70b4ed2b}.purchase-request-dialog [name=material_id]{font-weight:650}.purchase-request-dialog [name=material_id] option{padding:8px}
