:root{--bg:#f2f6f8;--panel:#fff;--line:#cfdbe5;--text:#1f2937;--muted:#667085;--blue:#0b67d1;--green:#16a34a;--red:#dc2626;--orange:#f59e0b;--dark:#344258;--yellow:#ffe98a}
*{box-sizing:border-box}html,body{margin:0;padding:0;width:100%;min-height:100%}body{font-family:"Segoe UI",Tahoma,Arial,sans-serif;font-size:13px;color:var(--text);background:var(--bg);overflow:hidden}a{color:#075bb5;text-decoration:none}a:hover{text-decoration:none;color:#003f86}button,input,select,textarea{font:inherit}.nav-ico{width:17px;height:17px;display:inline-flex;align-items:center;justify-content:center}.nav-ico svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.app-shell-v50{height:100vh;display:grid;grid-template-rows:31px 33px 1fr 28px;overflow:hidden;background:var(--bg)}.top-system-bar-v50{height:31px;background:linear-gradient(#fff7bf,#ffe98a);border-bottom:1px solid #c7aa3a;display:flex;align-items:center;padding:0 6px;gap:8px;white-space:nowrap;overflow:hidden;color:#222}.hamburger-v50{width:24px;height:24px;border:0;background:transparent;display:grid;place-items:center;cursor:pointer;color:#222}.app-logo-v50{font-size:20px;font-weight:950;color:#d21f13;letter-spacing:-1px;width:42px;text-align:center}.system-title-v50{font-weight:700;color:#222;max-width:340px;overflow:hidden;text-overflow:ellipsis}.env-pill-v50{height:22px;display:inline-flex;align-items:center;border:1px solid rgba(0,0,0,.12);border-radius:3px;background:rgba(255,255,255,.48);padding:0 8px;font-size:12px;color:#333}.top-search-wrap-v50{margin-left:auto;width:320px;height:24px;position:relative}.top-search-wrap-v50:before{content:"⌕";position:absolute;left:7px;top:2px;color:#777}.top-search-v50{width:100%;height:24px;border:1px solid #c8b15c;background:#fffdf2;padding:3px 24px 3px 25px;outline:none}.top-right-v50{display:flex;align-items:center;gap:6px;flex:0 0 auto}.top-icon-v50,.top-logout-v50{width:24px;height:24px;display:grid;place-items:center;border-radius:2px;color:#222;position:relative}.top-icon-v50:hover,.top-logout-v50:hover,.hamburger-v50:hover{background:rgba(0,0,0,.08)}.top-icon-v50 sup{position:absolute;right:-4px;top:-4px;min-width:15px;height:15px;border-radius:10px;background:#e00000;color:white;font-size:10px;display:grid;place-items:center}.top-user-v50{height:24px;display:flex;align-items:center;gap:5px;color:#222;padding:0 5px;border-radius:2px;max-width:250px}.top-user-v50:hover{background:rgba(0,0,0,.08);color:#222}.top-user-v50 strong{font-size:12px;overflow:hidden;text-overflow:ellipsis}.top-user-v50 small{font-size:11px;color:#555}.lang-form select{height:24px;border:1px solid #c8b15c;background:#fffdf2;border-radius:2px;padding:0 5px;font-weight:700}.main-tabbar-v50{height:33px;background:linear-gradient(#f8fbff,#e9f2fb);border-bottom:1px solid #b9c9d8;display:flex;align-items:end;gap:2px;padding:0 8px;overflow:auto}.main-tabbar-v50 a{height:28px;display:flex;align-items:center;gap:6px;padding:0 12px;border:1px solid transparent;border-bottom:0;color:#25364d;font-weight:700;border-radius:4px 4px 0 0}.main-tabbar-v50 a:hover{background:#fff;color:#003f86}.main-tabbar-v50 a.active{background:#fff;border-color:#b9c9d8;color:#0057a8;position:relative;top:1px}.content-shell-v50{min-height:0;display:grid;grid-template-columns:238px minmax(0,1fr);overflow:hidden}.sidebar-v50{background:#f7fafc;border-right:1px solid #c9d7e2;overflow:auto;padding:8px 7px 44px}.sidebar-section-title-v50{font-size:11px;text-transform:uppercase;color:#667085;font-weight:800;margin:10px 8px 5px}.sidebar-v50>a{height:31px;display:flex;align-items:center;gap:8px;color:#25364d;border:1px solid transparent;border-radius:3px;padding:0 8px;font-weight:650}.sidebar-v50>a:hover{background:#fff;border-color:#d8e3ec}.sidebar-v50>a.active{background:linear-gradient(#e9f5ff,#d8ebff);border-color:#a8c7e6;color:#004a9b}.pm-link-card-v50{margin:14px 6px;border:1px solid #d8e3ec;background:#fff;border-radius:4px;padding:10px;display:grid;gap:5px}.pm-page-v50{min-width:0;overflow:auto;padding:12px 14px 60px;background:#eef3f6}.footer-v50{height:28px;background:#f7fafc;border-top:1px solid #c9d7e2;display:flex;align-items:center;justify-content:space-between;padding:0 12px;color:#667085;font-size:12px}.version-v50{border:1px solid #c9d7e2;background:#fff;border-radius:12px;padding:2px 9px;font-weight:700;color:#25364d}.page-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px}.page-head h1{font-size:22px;margin:0;font-weight:800;color:#1f2937}.card,.panel-modern,.stf-main-card,.dashboard-card,.settings-panel-v48,.admin-panel-v48{background:#fff;border:1px solid #cbd9e4;border-radius:4px;box-shadow:none;margin-bottom:10px;overflow:hidden}.card-header{min-height:34px;padding:7px 10px;background:linear-gradient(#fbfdff,#edf5fa);border-bottom:1px solid #cbd9e4;display:flex;align-items:center;justify-content:space-between}.card-body{padding:10px}.grid,.kpi-grid,.stat-grid-modern,.dash-grid-main,.dash-grid-bottom{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.grid-2,.stf-two,.profile-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.kpi,.stat-card,.admin-stat-v48{background:#fff;border:1px solid #cbd9e4;border-radius:4px;padding:12px;box-shadow:none}.kpi b,.stat-card b{font-size:24px;display:block}.muted,.kpi span,.stat-card span{color:#667085}.btn{height:30px;border:1px solid #99b5ce;border-radius:3px;background:linear-gradient(#fff,#e9f3fb);color:#25364d;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0 10px;font-weight:700}.btn:hover{background:#fff;color:#003f86}.btn.green{background:linear-gradient(#26d26f,#16a34a);border-color:#0f8d3d;color:#fff}.btn.gray{background:linear-gradient(#6b7b91,#344258);border-color:#344258;color:#fff}.btn.red{background:linear-gradient(#ff6b6b,#dc2626);border-color:#dc2626;color:#fff}.btn.orange{background:linear-gradient(#fbbf24,#f59e0b);border-color:#d97706;color:#fff}.btn.light,.btn.mini{background:linear-gradient(#fff,#f1f6fa);color:#25364d;border-color:#cbd9e4}.btn.mini{height:24px;font-size:12px;padding:0 7px}.badge{display:inline-flex;border-radius:3px;padding:2px 7px;font-size:11px;font-weight:800;background:#d9e3ec;color:#25364d}.badge-green{background:#75c943;color:#fff}.badge-red{background:#f3b3b3;color:#8b0000}.badge-blue{background:#9dccff;color:#003f86}.badge-gray{background:#b6bec8;color:#fff}.badge-purple{background:#b69cff;color:#fff}.field label{display:block;font-weight:700;margin-bottom:4px;color:#344258}.field input,.field select,.field textarea,input,select,textarea{border:1px solid #b9c9d8;border-radius:3px;background:#fff;padding:5px 7px;outline:none}.field input:focus,.field select:focus,.field textarea:focus,input:focus,select:focus,textarea:focus{border-color:#4a90d9;box-shadow:0 0 0 2px rgba(0,87,168,.12)}.form-row,.profile-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:10px}.table-wrap,.modern-table-wrap,.sheet-table-wrap{overflow:auto;border:1px solid #cbd9e4;background:#fff;border-radius:0}.registry,.modern-table,.sheet-table{width:100%;border-collapse:collapse;min-width:980px}.registry th,.modern-table th,.sheet-table th{height:30px;background:#edf4f8;border-bottom:1px solid #cbd9e4;border-right:1px solid #dbe5ec;text-align:left;padding:5px 7px;font-size:12px;font-weight:800;color:#111827;white-space:nowrap}.registry td,.modern-table td,.sheet-table td{border-bottom:1px solid #dbe5ec;border-right:1px solid #dbe5ec;padding:5px 7px;vertical-align:top;background:#fff}.registry tr:hover td,.modern-table tr:hover td{background:#f8fcff}.empty,.empty-state{text-align:center;color:#667085;padding:25px!important}.notice,.success,.error{padding:8px 10px;border-radius:3px;border:1px solid #cbd9e4;background:#fff;margin-bottom:10px}.success{background:#ecfdf5;border-color:#bbf7d0;color:#166534}.error{background:#fef2f2;border-color:#fecaca;color:#991b1b}.v41-procurement-registry{background:#eef3f6;border-top:2px solid #0b67d1}.v41-searchbar{height:58px;background:#fff;border-bottom:1px solid #cbd9e4;display:flex;align-items:center;justify-content:center;gap:18px}.v41-create-btn{height:34px;min-width:150px;background:linear-gradient(#2bd878,#16a34a);border:1px solid #0f8d3d;color:#fff;border-radius:3px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-weight:800}.v41-search-form{display:flex}.v41-search-form select,.v41-search-form input,.v41-search-form button{height:34px;border-radius:0}.v41-quick-filters{height:34px;background:#fff;border-bottom:1px solid #cbd9e4;display:flex}.v41-quick-filters a{padding:0 18px;border-right:1px solid #cbd9e4;display:flex;align-items:center;font-weight:700;color:#506175}.v41-actions{display:flex;gap:4px;padding:10px 12px}.registry-grid-wrap{margin:0 12px 32px;border:1px solid #0b67d1;background:#fff;overflow:auto}.registry-main{width:100%;border-collapse:collapse;table-layout:fixed;min-width:1680px}.registry-main th{height:32px;background:#edf4f8;border-right:1px solid #cbd9e4;border-bottom:1px solid #cbd9e4;font-size:12px;padding:4px 6px;text-align:left;vertical-align:bottom}.registry-main td{border-right:1px solid #cbd9e4;border-bottom:1px solid #cbd9e4;padding:6px;vertical-align:top}.registry-main .status-bar{width:18px;height:72px;border-radius:4px;display:inline-flex;align-items:flex-start;justify-content:center;font-weight:800;padding-top:4px}.status-green{background:#75c943}.status-gray{background:#665f59;color:#fff}.status-yellow{background:#ffc247}.status-light{background:#dfe7ef}.positions-inner-table{width:100%;border-collapse:collapse;table-layout:fixed}.positions-inner-table th{height:28px;background:#edf4f8;border:1px solid #cbd9e4;font-size:12px}.positions-inner-table td{border:1px solid #dbe5ec;background:#fff;height:42px}.pm-info-note{margin:8px 0;padding:8px 10px;border:1px solid #b9d9b9;background:#f0fff0;border-radius:3px;color:#166534;font-weight:700}.wh-stock-hint{display:block;font-size:11px;color:#9a3412;margin-top:2px}.wh-stock-hint.ok{color:#166534}.login-page{display:grid;place-items:center;min-height:100vh;background:#eef3f6}.login-shell{width:min(960px,96vw);display:grid;grid-template-columns:1fr 360px;gap:0;border:1px solid #cbd9e4;background:#fff}.login-hero{padding:34px;background:linear-gradient(135deg,#fff7bf,#e7f2ff)}.login-card{padding:30px}.login-logo{font-size:24px;font-weight:950;color:#d21f13}.login-card input{width:100%;height:34px}.login-submit{width:100%;margin-top:8px}.admin-pro-shell,.admin-pro-body{background:#eef3f6}.admin-pro-topbar,.admin-pro-sidebar,.admin-pro-content{font-family:"Segoe UI",Tahoma,Arial,sans-serif}.admin-pro-topbar{height:40px!important;background:linear-gradient(#fff7bf,#ffe98a)!important;border-bottom:1px solid #c7aa3a!important}.admin-pro-layout{grid-template-columns:238px minmax(0,1fr)!important}.admin-pro-sidebar{background:#f7fafc!important;border-right:1px solid #c9d7e2!important}.admin-menu-block a{border-radius:3px!important;min-height:31px!important}.admin-menu-block a.active{background:linear-gradient(#e9f5ff,#d8ebff)!important;border:1px solid #a8c7e6!important;color:#004a9b!important;box-shadow:none!important}.admin-pro-content{background:#eef3f6!important}.admin-stat-row-v48{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.admin-grid-v48{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:10px}.admin-panel-v48{border-radius:4px!important;box-shadow:none!important}.panel-title-v48{background:linear-gradient(#fbfdff,#edf5fa)!important;border-bottom:1px solid #cbd9e4!important;min-height:34px!important;padding:7px 10px!important}.admin-table-v48{width:100%;border-collapse:collapse}.admin-table-v48 th,.admin-table-v48 td{border:1px solid #dbe5ec;padding:6px;text-align:left}.admin-table-v48 th{background:#edf4f8}.footer{display:none!important}@media(max-width:1100px){body{overflow:auto}.app-shell-v50{height:auto;min-height:100vh;display:block}.top-search-wrap-v50{display:none}.content-shell-v50{display:block}.sidebar-v50{display:none}.pm-page-v50{overflow:visible}.grid,.kpi-grid,.stat-grid-modern,.dash-grid-main,.dash-grid-bottom,.admin-stat-row-v48,.admin-grid-v48{grid-template-columns:1fr}.login-shell{grid-template-columns:1fr}.login-hero{display:none}.main-tabbar-v50{overflow:auto}.footer-v50{position:fixed;left:0;right:0;bottom:0}}


/* V52 — strict enterprise registry geometry for PM orders.  This block intentionally
   overrides older V41/V46 fragments so the nested position table aligns with the main table. */
body.pm-style-shell .pm-page-v50{padding:0 0 60px;background:#eef3f6;}
.v41-procurement-registry{min-width:0;width:100%;background:#eef3f6;border-top:2px solid #0b67d1;}
.v41-top-strip{display:none;}
.v41-searchbar{height:58px;background:#fff;border-bottom:1px solid #cbd9e4;display:flex;align-items:center;justify-content:center;gap:16px;padding:10px 14px;}
.v41-create-btn{height:34px;min-width:154px;background:linear-gradient(#2bd878,#16a34a);border:1px solid #0f8d3d;color:#fff;border-radius:3px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-weight:800;box-shadow:inset 0 1px 0 rgba(255,255,255,.25);}
.v41-create-btn:hover{background:linear-gradient(#36e083,#128b3d);color:#fff;}
.v41-search-form{display:flex;align-items:center;gap:0;min-width:520px;}
.v41-search-form select{height:34px;width:150px;border:1px solid #aabbd0;border-right:0;border-radius:3px 0 0 3px;background:#fff;padding:0 10px;font-weight:650;color:#26384f;}
.v41-search-form input{height:34px;width:260px;border:1px solid #aabbd0;border-radius:0;background:#fff;padding:0 10px;}
.v41-search-form button,.v41-find-btn,.v41-advanced-btn{height:34px;border-radius:0;border:1px solid #4f657b;background:#fff;color:#111827;font-weight:700;padding:0 12px;display:inline-flex;align-items:center;gap:5px;}
.v41-find-btn{border-left:0;}
.v41-advanced-btn{margin-left:4px;border-radius:2px;}
.v41-reset-main{height:34px;display:inline-flex;align-items:center;padding:0 10px;font-weight:700;}
.v41-quick-filter-line{height:33px;background:#fff;border-bottom:1px solid #cbd9e4;display:grid;grid-template-columns:210px 300px 360px 1fr 80px;align-items:center;}
.v41-quick-filter-line a{height:33px;display:flex;align-items:center;padding:0 12px;border-right:1px solid #cbd9e4;color:#075bb5;font-weight:650;white-space:nowrap;}
.v41-quick-filter-line .v41-quick-reset{grid-column:5;justify-content:center;border-left:1px solid #cbd9e4;border-right:0;}
.v41-advanced-panel{margin:10px 12px;background:#fff;border:1px solid #cbd9e4;border-radius:3px;padding:10px;}
.pro-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;}
.filter-field label{display:block;font-size:12px;font-weight:800;color:#344258;margin-bottom:4px;}
.filter-field input,.filter-field select{width:100%;height:30px;}
.date-range span{display:grid;grid-template-columns:1fr 1fr;gap:5px;}
.filter-actions{display:flex;align-items:end;gap:6px;}
.v41-actionbar{display:flex;gap:4px;padding:10px 12px 7px;background:#eef3f6;}
.v41-tb-btn{height:28px;border:1px solid #9cc3df;background:linear-gradient(#d5eefc,#9bd3f4);color:#2b5b77;border-radius:2px;padding:0 10px;font-weight:800;display:inline-flex;align-items:center;gap:6px;}
.v41-tb-btn:disabled{opacity:.55;cursor:not-allowed;}
.v41-count-line{padding:12px 12px 10px;font-size:13px;}
.v41-table-wrap{margin:0 12px 34px;border:1px solid #0b67d1;background:#fff;overflow:auto;max-width:calc(100vw - 270px);}
body:not(.sidebar-collapsed) .v41-table-wrap{max-width:calc(100vw - 270px);}
.v41-registry-table{width:100%;min-width:1680px;border-collapse:collapse;table-layout:fixed;font-size:12px;color:#142033;}
.v41-registry-table col.v41-c-id{width:62px;}
.v41-registry-table col.v41-c-title{width:310px;}
.v41-registry-table col.v41-c-project{width:250px;}
.v41-registry-table col.v41-c-requester{width:120px;}
.v41-registry-table col.v41-c-performer{width:120px;}
.v41-registry-table col.v41-c-acceptors{width:125px;}
.v41-registry-table col.v41-c-deadline{width:145px;}
.v41-registry-table col.v41-c-notes{width:135px;}
.v41-registry-table col.v41-c-ind{width:37px;}
.v41-registry-table col.v41-c-events{width:160px;}
.v41-registry-table col.v41-c-menu{width:44px;}
.v41-registry-table th{height:78px;background:#edf4f8;border-right:1px solid #cbd9e4;border-bottom:1px solid #cbd9e4;text-align:left;vertical-align:bottom;padding:4px 6px;font-size:12px;font-weight:900;color:#111827;position:relative;white-space:normal;overflow:hidden;}
.v41-registry-table th:after{content:'≡';position:absolute;right:5px;bottom:6px;color:#b4c0ca;font-size:11px;font-weight:400;}
.v41-registry-table td{border-right:1px solid #cbd9e4;border-bottom:1px solid #cbd9e4;vertical-align:top;padding:7px 7px;background:#fff;overflow:hidden;word-break:break-word;}
.v41-registry-table .v41-order-row td{height:94px;background:#f7fff8;}
.v41-registry-table .v41-order-row:nth-of-type(4n+1) td{background:#fff;}
.v41-registry-table .order-deleted td{background:#f2f3f5!important;color:#6b7280;}
.v41-registry-table .order-completed td{background:#f7fff8!important;}
.v41-id-cell{text-align:center;color:#075bb5;line-height:1.45;}
.v41-id-cell a{display:block;font-weight:800;}
.v41-id-cell label{display:block;margin:3px 0;}
.v41-id-cell small{display:block;font-size:11px;color:#075bb5;}
.v41-refresh{display:block;color:#10b981;font-size:18px;font-weight:900;margin-top:5px;}
.v41-title-cell a{font-weight:900;color:#075bb5;}
.v41-title-cell em{font-style:italic;color:#697589;margin-left:4px;}
.v41-pos-toggle{display:block;margin-top:26px;margin-left:auto;margin-right:auto;border:0;background:transparent;color:#075bb5;font-size:12px;font-weight:900;cursor:pointer;padding:0;}
.v41-project-cell a{display:block;margin-bottom:7px;color:#075bb5;}
.stamp{display:inline-flex;align-items:center;justify-content:center;transform:rotate(-6deg);border:4px solid currentColor;border-radius:4px;background:transparent;opacity:.22;font-size:26px;font-weight:950;letter-spacing:1px;padding:5px 18px;text-transform:uppercase;}
.deleted-stamp{color:#ef4444}.completed-stamp{color:#22c55e}
.v41-budget-tag{display:inline-flex;margin-top:5px;background:#9aa4af;color:#fff;border-radius:3px;padding:2px 7px;font-weight:800;font-size:11px;}
.v41-user-cell{font-weight:750;color:#4a5c75;}
.v41-chat-dot{color:#0074d9;font-size:21px;text-align:center;margin-top:9px;}
.v41-acceptors span{display:inline-block;background:#75c943;color:#fff;border-radius:3px;padding:3px 7px;font-weight:900;font-size:11px;}
.v41-date-cell{font-size:12px;line-height:1.35;}
.v41-date-cell b{font-weight:900;}
.v41-notes-cell{color:#667085;}
.v41-vertical-head{height:78px!important;text-align:center!important;vertical-align:middle!important;padding:0!important;writing-mode:vertical-rl;transform:rotate(180deg);white-space:nowrap;font-size:11px!important;line-height:1.1;background:#e9eef2!important;}
.v41-vertical-head:before{content:'';position:absolute;top:7px;left:50%;transform:translateX(-50%);width:13px;height:10px;border:3px solid #fff;border-top:0;clip-path:polygon(0 0,100% 0,50% 100%);box-shadow:0 0 0 2px #d6dce4;}
.v41-ind-cell,.v46-pos-ind{text-align:center!important;padding:6px 4px!important;background:#f5f8fa!important;}
.v41-led{width:20px;height:64px;border-radius:5px;display:inline-flex;align-items:flex-start;justify-content:center;padding-top:6px;font-size:12px;font-weight:900;color:#fff;}
.v41-led.green{background:#75c943}.v41-led.dark{background:#665f59}.v41-led.yellow{background:#ffc247;color:#111}.v41-led.gray{background:#dfe7ef;color:#334155}.v41-led:empty:before{content:'';}
.v41-event-cell{background:#fff!important;overflow:visible!important;}
.event-icons{display:flex;align-items:center;gap:6px;min-height:26px;position:relative;}
.event-empty{color:#64748b;font-size:18px;}
.event-quote-icon{width:28px;height:28px;border:1px solid #b9c9d8;border-radius:3px;background:#fff;display:inline-grid;place-items:center;position:relative;color:#1f4f84;overflow:visible;}
.event-quote-icon .event-dot{position:absolute;right:-3px;top:-4px;width:7px;height:7px;border-radius:50%;background:#ef4444;}
.quote-popover{display:none;position:absolute;right:100%;top:0;width:260px;background:#fff;border:1px solid #9bb5ce;box-shadow:0 6px 20px rgba(0,0,0,.18);padding:10px;z-index:40;color:#142033;text-align:left;line-height:1.4;}
.event-quote-icon:hover .quote-popover{display:grid;gap:3px;}
.row-menu-cell{text-align:center;overflow:visible!important;background:#fff!important;}
.row-menu-btn{width:28px;height:28px;border:0;background:transparent;color:#075bb5;cursor:pointer;display:inline-grid;place-items:center;}
.row-menu{display:none;position:absolute;right:20px;min-width:190px;background:#fff;border:1px solid #9bb5ce;box-shadow:0 8px 22px rgba(0,0,0,.18);z-index:50;text-align:left;padding:6px;}
.row-menu.open{display:block;}
.row-menu-title{font-weight:900;color:#334155;padding:5px 7px;border-bottom:1px solid #dbe5ec;margin-bottom:4px;}
.row-menu a,.row-menu button{width:100%;min-height:27px;border:0;background:transparent;display:flex;align-items:center;gap:6px;color:#075bb5;text-align:left;padding:5px 7px;font-weight:650;cursor:pointer;}
.row-menu a:hover,.row-menu button:hover{background:#edf4f8;}
.positions-row td.v46-positions-host{padding:0!important;background:#fff!important;border-top:2px solid #0b67d1!important;}
.v46-position-table{width:100%;min-width:1680px;border-collapse:collapse;table-layout:fixed;font-size:12px;color:#142033;}
.v46-position-table col.v46-c-id{width:62px;}
.v46-position-table col.v46-c-name{width:310px;}
.v46-position-table col.v46-c-category{width:250px;}
.v46-position-table col.v46-c-unit{width:120px;}
.v46-position-table col.v46-c-qty{width:120px;}
.v46-position-table col.v46-c-delivery{width:125px;}
.v46-position-table col.v46-c-note{width:145px;}
.v46-position-table col.v46-c-note2{width:135px;}
.v46-position-table col.v46-c-ind{width:37px;}
.v46-position-table col.v46-c-events{width:160px;}
.v46-position-table col.v46-c-menu{width:44px;}
.v46-position-table th{height:30px!important;background:#edf4f8!important;border-right:1px solid #cbd9e4!important;border-bottom:1px solid #cbd9e4!important;text-align:left!important;vertical-align:middle!important;padding:5px 7px!important;font-size:12px!important;font-weight:900!important;color:#111827!important;white-space:nowrap!important;overflow:hidden;}
.v46-position-table th:after{content:'≡';float:right;color:#b4c0ca;font-weight:400;}
.v46-position-table td{height:45px!important;background:#fff!important;border-right:1px solid #dbe5ec!important;border-bottom:1px solid #dbe5ec!important;padding:6px 7px!important;vertical-align:top!important;overflow:hidden;word-break:break-word;}
.v46-pos-id{text-align:center;color:#075bb5;line-height:1.45;}
.v46-pos-id span{display:block}.v46-pos-id small{display:block;color:#777;font-size:11px}.v46-pos-name b{display:inline;color:#142033}.v46-pos-name em{color:#697589;margin-left:4px;font-style:italic}.v46-pos-category{line-height:1.35}.v46-pos-qty b{font-weight:900}.v46-pos-delivery{color:#334155}.v46-pos-note{color:#64748b}.v46-pos-ind-head{font-size:11px!important;text-align:center!important;}
@media(max-width:1100px){.v41-searchbar{justify-content:flex-start;overflow:auto}.v41-search-form{min-width:620px}.v41-quick-filter-line{display:flex;overflow:auto}.v41-table-wrap{max-width:100vw;margin:0 0 34px;border-left:0;border-right:0}.v41-registry-table,.v46-position-table{min-width:1500px}.pro-filter-grid{grid-template-columns:1fr}}

/* V53 ADMIN PANEL HARD RESET - keeps PM public pages untouched */
body.admin-pro-shell{height:100vh;overflow:hidden;background:#eef3f8;color:#172033;display:grid;grid-template-rows:52px minmax(0,1fr) 30px;font-family:'Segoe UI',Tahoma,Arial,sans-serif;font-size:13px;}
body.admin-pro-shell .admin-pro-topbar{height:52px;background:#fff;border-bottom:1px solid #cbd9e4;box-shadow:0 1px 4px rgba(16,24,40,.05);display:grid;grid-template-columns:40px 260px minmax(240px,1fr) auto;align-items:center;gap:12px;padding:0 14px;z-index:10;}
body.admin-pro-shell .admin-pro-menu{width:32px;height:32px;border:1px solid #cbd9e4;border-radius:8px;background:#fff;color:#26364d;display:grid;place-items:center;cursor:pointer;}
body.admin-pro-shell .admin-pro-brand{height:40px;display:flex;align-items:center;gap:9px;color:#0b1b34;text-decoration:none;white-space:nowrap;overflow:hidden;}
body.admin-pro-shell .admin-pro-brand strong{font-size:24px;line-height:1;font-weight:950;color:#0b67d1;letter-spacing:-1px;}
body.admin-pro-shell .admin-pro-brand span{font-size:13px;font-weight:800;color:#132033;}
body.admin-pro-shell .admin-pro-brand em{font-style:normal;font-size:11px;font-weight:800;color:#0b67d1;background:#eaf3ff;border:1px solid #cfe2ff;border-radius:6px;padding:3px 6px;}
body.admin-pro-shell .admin-pro-search{height:34px;border:1px solid #d5e1ec;border-radius:9px;background:#fbfdff;display:flex;align-items:center;gap:8px;padding:0 10px;max-width:640px;}
body.admin-pro-shell .admin-pro-search span{display:flex;color:#708096;}
body.admin-pro-shell .admin-pro-search input{border:0!important;box-shadow:none!important;background:transparent!important;outline:none!important;width:100%;height:30px;padding:0!important;}
body.admin-pro-shell .admin-pro-search kbd{font-size:10px;color:#718096;background:#f1f5f9;border:1px solid #d9e3ee;border-radius:5px;padding:2px 6px;}
body.admin-pro-shell .admin-pro-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;white-space:nowrap;}
body.admin-pro-shell .admin-circle{width:34px;height:34px;border:1px solid #d5e1ec;border-radius:10px;background:#fff;display:grid;place-items:center;color:#344258;position:relative;text-decoration:none;}
body.admin-pro-shell .admin-circle.primary{background:#0b67d1;color:#fff;border-color:#0b67d1;box-shadow:0 6px 16px rgba(11,103,209,.24);}
body.admin-pro-shell .admin-circle small{position:absolute;top:-6px;right:-6px;background:#ef4444;color:#fff;border-radius:10px;min-width:17px;height:17px;font-size:10px;display:grid;place-items:center;border:2px solid #fff;}
body.admin-pro-shell .lang-form select{height:34px;border:1px solid #d5e1ec;background:#fff;border-radius:9px;padding:0 10px;font-weight:800;color:#111827;}
body.admin-pro-shell .admin-pro-user{height:40px;display:flex;align-items:center;gap:8px;padding:0 8px;border-left:1px solid #e5edf5;}
body.admin-pro-shell .admin-avatar{width:34px;height:34px;border-radius:50%;background:#eaf3ff;border:1px solid #cfe2ff;display:grid;place-items:center;color:#0b67d1;font-weight:950;}
body.admin-pro-shell .admin-pro-user b{display:block;font-size:12px;line-height:1.1;color:#111827;max-width:170px;overflow:hidden;text-overflow:ellipsis;}
body.admin-pro-shell .admin-pro-user small{display:block;font-size:11px;color:#667085;line-height:1.1;}
body.admin-pro-shell .admin-logout{height:34px;border:1px solid #d5e1ec;border-radius:9px;background:#fff;color:#344258;padding:0 10px;display:flex;align-items:center;gap:6px;text-decoration:none;}
body.admin-pro-shell .admin-pro-layout{min-height:0;display:grid;grid-template-columns:252px minmax(0,1fr);overflow:hidden;}
body.admin-pro-shell .admin-pro-sidebar{min-width:0;background:#fff;border-right:1px solid #d5e1ec;padding:12px 10px;overflow:auto;box-shadow:1px 0 6px rgba(16,24,40,.03);}
body.admin-pro-shell .admin-menu-block{display:flex;flex-direction:column;gap:4px;}
body.admin-pro-shell .admin-menu-block a{height:36px;border:1px solid transparent;border-radius:8px;display:flex;align-items:center;gap:10px;padding:0 10px;color:#344258;text-decoration:none;font-weight:750;}
body.admin-pro-shell .admin-menu-block a:hover{background:#f3f8ff;border-color:#dbeafe;color:#0b67d1;}
body.admin-pro-shell .admin-menu-block a.active{background:linear-gradient(180deg,#1677ff,#0b67d1);border-color:#0b67d1;color:#fff;box-shadow:0 6px 16px rgba(11,103,209,.18);}
body.admin-pro-shell .admin-menu-block .nav-ico{flex:0 0 auto;}
body.admin-pro-shell .admin-storage-card{margin:14px 4px 10px;border:1px solid #d5e1ec;border-radius:10px;background:#f8fbff;padding:12px;color:#344258;display:grid;gap:5px;}
body.admin-pro-shell .admin-storage-card span{font-size:12px;color:#667085;font-weight:750;}
body.admin-pro-shell .admin-storage-card b{font-size:13px;}
body.admin-pro-shell .admin-storage-card div{height:6px;background:#e5edf5;border-radius:99px;overflow:hidden;}
body.admin-pro-shell .admin-storage-card i{display:block;height:100%;background:#0b67d1;border-radius:99px;}
body.admin-pro-shell .admin-storage-card small{font-size:11px;color:#667085;text-align:right;}
body.admin-pro-shell .admin-help-card{height:42px;margin:8px 4px;border:1px solid #d5e1ec;border-radius:10px;background:#fff;display:flex;align-items:center;justify-content:center;gap:8px;color:#344258;text-decoration:none;font-weight:800;}
body.admin-pro-shell .admin-pro-content{min-width:0;overflow:auto;padding:18px 20px 26px;background:#eef3f8;}
body.admin-pro-shell .footer{height:30px!important;display:flex!important;align-items:center;justify-content:space-between;padding:0 16px;border-top:1px solid #d5e1ec;background:#fff;color:#667085;font-size:12px;}
body.admin-pro-shell .version{border:1px solid #d5e1ec;background:#f8fbff;border-radius:12px;padding:2px 9px;font-weight:850;color:#344258;}
body.admin-pro-shell .admin-dashboard-v48{max-width:1740px;margin:0 auto;}
body.admin-pro-shell .admin-hero-v48{background:#fff;border:1px solid #d5e1ec;border-radius:14px;padding:20px;display:flex;align-items:center;justify-content:space-between;gap:16px;box-shadow:0 8px 30px rgba(16,24,40,.05);margin-bottom:14px;}
body.admin-pro-shell .admin-hero-v48 .eyebrow{font-size:12px;font-weight:900;color:#0b67d1;text-transform:uppercase;letter-spacing:.04em;}
body.admin-pro-shell .admin-hero-v48 h1{font-size:26px;line-height:1.15;margin:4px 0 8px;color:#111827;}
body.admin-pro-shell .admin-hero-v48 p{margin:0;color:#667085;}
body.admin-pro-shell .hero-actions-v48{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;}
body.admin-pro-shell .btn.primary{background:#0b67d1!important;border-color:#0b67d1!important;color:#fff!important;border-radius:9px;height:36px;padding:0 12px;}
body.admin-pro-shell .btn.light{background:#fff!important;border-color:#d5e1ec!important;border-radius:9px;height:36px;padding:0 12px;}
body.admin-pro-shell .admin-stat-row-v48{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:14px;}
body.admin-pro-shell .admin-stat-v48{background:#fff;border:1px solid #d5e1ec;border-radius:14px;padding:16px;min-height:106px;box-shadow:0 8px 30px rgba(16,24,40,.04);display:grid;grid-template-columns:42px 1fr;grid-template-rows:auto auto auto;column-gap:12px;align-items:center;}
body.admin-pro-shell .admin-stat-v48 i{grid-row:1 / span 3;width:42px;height:42px;border-radius:14px;background:#eef6ff;color:#0b67d1;display:grid;place-items:center;}
body.admin-pro-shell .admin-stat-v48 span{font-size:12px;color:#667085;font-weight:800;}
body.admin-pro-shell .admin-stat-v48 b{font-size:22px;line-height:1.15;color:#111827;display:block;}
body.admin-pro-shell .admin-stat-v48 small{font-size:11px;color:#667085;}
body.admin-pro-shell .admin-grid-v48{display:grid;grid-template-columns:1.35fr .9fr .9fr;gap:14px;align-items:start;}
body.admin-pro-shell .admin-panel-v48{background:#fff;border:1px solid #d5e1ec;border-radius:14px;box-shadow:0 8px 30px rgba(16,24,40,.04);overflow:hidden;margin:0;}
body.admin-pro-shell .admin-panel-v48.big{grid-column:span 1;}
body.admin-pro-shell .panel-title-v48{min-height:48px;padding:13px 16px;border-bottom:1px solid #e5edf5;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:12px;}
body.admin-pro-shell .panel-title-v48 h2{font-size:17px;margin:0;color:#111827;}
body.admin-pro-shell .panel-title-v48 a{font-size:12px;font-weight:850;color:#0b67d1;text-decoration:none;}
body.admin-pro-shell .admin-table-wrap-v48{overflow:auto;}
body.admin-pro-shell .admin-table-v48{width:100%;border-collapse:collapse;min-width:720px;}
body.admin-pro-shell .admin-table-v48 th{height:34px;background:#f8fbff;border-bottom:1px solid #d5e1ec;color:#344258;text-align:left;padding:7px 10px;font-size:12px;}
body.admin-pro-shell .admin-table-v48 td{border-bottom:1px solid #eef3f8;padding:9px 10px;background:#fff;vertical-align:middle;}
body.admin-pro-shell .role-donut-v48{height:150px;display:grid;place-items:center;margin:10px auto 0;}
body.admin-pro-shell .role-donut-v48:before{content:'';width:120px;height:120px;border-radius:50%;background:conic-gradient(#0b67d1 0 70%,#10b981 70% 84%,#f59e0b 84% 92%,#e5edf5 92% 100%);position:absolute;}
body.admin-pro-shell .role-donut-v48 div{position:relative;width:78px;height:78px;border-radius:50%;background:#fff;display:grid;place-items:center;text-align:center;align-content:center;box-shadow:inset 0 0 0 1px #e5edf5;}
body.admin-pro-shell .role-donut-v48 b{font-size:20px;line-height:1;}
body.admin-pro-shell .role-donut-v48 span{font-size:11px;color:#667085;}
body.admin-pro-shell .role-list-v48{padding:10px 16px 14px;display:grid;gap:8px;}
body.admin-pro-shell .role-list-v48 div,.settings-list-v48 div{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#344258;}
body.admin-pro-shell .role-list-v48 span,.settings-list-v48 span{color:#667085;font-weight:750;}
body.admin-pro-shell .role-list-v48 b,.settings-list-v48 b{font-weight:900;color:#111827;}
body.admin-pro-shell .role-list-v48 small{color:#667085;}
body.admin-pro-shell .admin-wide-btn{margin:0 16px 16px;height:36px;border:1px solid #cfe2ff;border-radius:9px;background:#f3f8ff;color:#0b67d1;display:flex;align-items:center;justify-content:center;gap:7px;text-decoration:none;font-weight:850;}
body.admin-pro-shell .approval-bars-v48{padding:16px;display:grid;gap:13px;}
body.admin-pro-shell .approval-bars-v48 div{display:grid;grid-template-columns:30px 120px 1fr 55px;align-items:center;gap:10px;}
body.admin-pro-shell .approval-bars-v48 strong{width:28px;height:28px;border-radius:50%;background:#0b67d1;color:#fff;display:grid;place-items:center;}
body.admin-pro-shell .approval-bars-v48 span{font-weight:800;color:#344258;}
body.admin-pro-shell .approval-bars-v48 em{height:7px;background:#e5edf5;border-radius:999px;overflow:hidden;}
body.admin-pro-shell .approval-bars-v48 i{height:100%;background:#16a34a;display:block;border-radius:999px;}
body.admin-pro-shell .approval-bars-v48 b{font-size:12px;color:#667085;text-align:right;}
body.admin-pro-shell .side-tools{padding-bottom:10px;}
body.admin-pro-shell .side-tools>a{display:flex;align-items:center;gap:10px;margin:8px 12px;padding:10px;border:1px solid #e5edf5;border-radius:10px;color:#344258;text-decoration:none;background:#fff;}
body.admin-pro-shell .side-tools>a:hover{border-color:#cfe2ff;background:#f8fbff;color:#0b67d1;}
body.admin-pro-shell .side-tools span{display:grid;gap:2px;font-weight:850;}
body.admin-pro-shell .side-tools small{font-size:11px;color:#667085;font-weight:500;}
body.admin-pro-shell .shortcut-grid-v48,.quick-links-v48>div:last-child{padding:16px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
body.admin-pro-shell .shortcut-grid-v48 a,.quick-links-v48>div:last-child a{min-height:54px;border:1px solid #e5edf5;border-radius:10px;background:#fff;color:#344258;text-decoration:none;display:flex;align-items:center;gap:8px;padding:10px;font-weight:850;}
body.admin-pro-shell .settings-list-v48{padding:16px;display:grid;gap:12px;}.settings-list-v48 .ok{color:#16a34a!important;}
body.admin-pro-shell .activity-list-v48{padding:12px 16px;display:grid;gap:10px;}
body.admin-pro-shell .activity-list-v48 div{display:flex;gap:10px;align-items:flex-start;}.activity-list-v48 svg{color:#0b67d1;}.activity-list-v48 span{display:grid;gap:2px;}.activity-list-v48 small{font-size:11px;color:#667085;}
body.admin-pro-shell .badge-red{background:#fee2e2;color:#b91c1c;border-radius:6px;padding:3px 7px;font-weight:850;}
body.admin-pro-shell .badge-green{background:#dcfce7;color:#166534;border-radius:6px;padding:3px 7px;font-weight:850;}
body.admin-pro-shell .badge-gray{background:#e5edf5;color:#344258;border-radius:6px;padding:3px 7px;font-weight:850;}
@media(max-width:1400px){body.admin-pro-shell .admin-stat-row-v48{grid-template-columns:repeat(3,1fr)}body.admin-pro-shell .admin-grid-v48{grid-template-columns:1fr 1fr}.admin-panel-v48.big{grid-column:span 2!important}}
@media(max-width:900px){body.admin-pro-shell{height:auto;min-height:100vh;display:block;overflow:auto}body.admin-pro-shell .admin-pro-topbar{grid-template-columns:40px 1fr auto}.admin-pro-search{display:none!important}.admin-pro-layout{display:block!important}.admin-pro-sidebar{display:none!important}.admin-pro-content{overflow:visible!important}.admin-stat-row-v48,.admin-grid-v48{grid-template-columns:1fr!important}.admin-panel-v48.big{grid-column:span 1!important}.footer{position:static!important}}



/* =========================================================
   V54 HARD UI UNIFY FIX
   - fixes huge verified/checkbox logo icons
   - fixes avatar/image overflow
   - rebuilds admin shell geometry
   - normalizes tables/forms/cards across admin + PM pages
   ========================================================= */

html, body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
}
body {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  color: #132033 !important;
  background: #eef3f6 !important;
}
body:not(.admin-pro-shell) {
  overflow: hidden !important;
}
a { color: #075bb5; text-decoration: none; }
a:hover { color: #003f86; text-decoration: none; }

svg {
  max-width: 24px;
  max-height: 24px;
  vertical-align: middle;
}
.nav-ico,
.nav-ico svg,
button svg,
.btn svg,
a svg,
.top-icon-v50 svg,
.top-logout-v50 svg,
.hamburger-v50 svg,
.admin-circle svg,
.admin-pro-menu svg,
.admin-menu-block svg,
.sidebar-v50 svg {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  flex: 0 0 16px !important;
}

/* Verified badge must never become a giant image */
.verified-badge {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  min-height: 18px !important;
  max-height: 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  background: #0ea5e9 !important;
  color: #fff !important;
  margin-left: 4px !important;
  vertical-align: -3px !important;
  overflow: hidden !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.42) !important;
}
.verified-badge svg {
  width: 13px !important;
  height: 13px !important;
  min-width: 13px !important;
  min-height: 13px !important;
  max-width: 13px !important;
  max-height: 13px !important;
  display: block !important;
  fill: #fff !important;
  stroke: none !important;
}
.verified-badge svg path { fill: #fff !important; }

/* General image safety */
img {
  max-width: 100%;
  height: auto;
}
.avatar-upload,
.profile-avatar,
.user-avatar-card {
  width: 96px !important;
  height: 96px !important;
  max-width: 96px !important;
  max-height: 96px !important;
  border-radius: 12px !important;
  border: 1px solid #cbd9e4 !important;
  background: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  position: relative !important;
}
.avatar-upload img,
.profile-avatar img,
.user-avatar-card img {
  width: 96px !important;
  height: 96px !important;
  max-width: 96px !important;
  max-height: 96px !important;
  object-fit: cover !important;
  display: block !important;
}
.avatar-upload span,
.profile-avatar span {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 34px;
  font-weight: 900;
  color: #0b67d1;
  background: #eaf3ff;
}
.avatar-upload input[type=file] {
  position: absolute !important;
  inset: 0 !important;
  opacity: 0 !important;
  cursor: pointer !important;
}

/* PM / system shell */
.app-shell-v50 {
  height: 100vh !important;
  width: 100vw !important;
  display: grid !important;
  grid-template-rows: 31px 33px minmax(0,1fr) 28px !important;
  overflow: hidden !important;
  background: #eef3f6 !important;
}
.top-system-bar-v50 {
  height: 31px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 8px !important;
  overflow: hidden !important;
  background: linear-gradient(#fff8c9,#ffe98a) !important;
  border-bottom: 1px solid #c7aa3a !important;
  white-space: nowrap !important;
}
.app-logo-v50 {
  width: 42px !important;
  min-width: 42px !important;
  font-size: 20px !important;
  font-weight: 950 !important;
  color: #d21f13 !important;
  letter-spacing: -.7px !important;
}
.system-title-v50 {
  font-weight: 800 !important;
  color: #101828 !important;
}
.env-pill-v50 {
  height: 22px !important;
  border: 1px solid rgba(0,0,0,.15) !important;
  background: rgba(255,255,255,.55) !important;
  border-radius: 3px !important;
  padding: 2px 8px !important;
}
.top-search-wrap-v50 {
  margin-left: auto !important;
  width: min(420px, 28vw) !important;
  height: 24px !important;
  display: block !important;
}
.top-search-v50 {
  width: 100% !important;
  height: 24px !important;
  padding: 3px 8px 3px 25px !important;
  border: 1px solid #c8b15c !important;
  background: #fffdf2 !important;
  border-radius: 2px !important;
}
.top-right-v50 {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex: 0 0 auto !important;
}
.top-icon-v50,
.top-logout-v50,
.hamburger-v50 {
  width: 24px !important;
  height: 24px !important;
  display: inline-grid !important;
  place-items: center !important;
  color: #222 !important;
  border: 0 !important;
  background: transparent !important;
  border-radius: 2px !important;
}
.top-icon-v50:hover,
.top-logout-v50:hover,
.hamburger-v50:hover {
  background: rgba(0,0,0,.08) !important;
}
.top-user-v50 {
  height: 24px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 0 5px !important;
  color: #222 !important;
  max-width: 260px !important;
  overflow: hidden !important;
}
.top-user-v50 strong,
.top-user-v50 small {
  display: inline !important;
  font-size: 12px !important;
  white-space: nowrap !important;
}
.lang-form select {
  height: 24px !important;
  min-width: 54px !important;
  padding: 0 5px !important;
  border: 1px solid #c8b15c !important;
  background: #fffdf2 !important;
  border-radius: 2px !important;
  font-weight: 800 !important;
}
.main-tabbar-v50 {
  height: 33px !important;
  display: flex !important;
  align-items: end !important;
  gap: 2px !important;
  padding: 0 8px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  background: linear-gradient(#f8fbff,#e9f2fb) !important;
  border-bottom: 1px solid #b9c9d8 !important;
}
.main-tabbar-v50 a {
  height: 28px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 0 12px !important;
  border: 1px solid transparent !important;
  border-bottom: 0 !important;
  border-radius: 4px 4px 0 0 !important;
  color: #25364d !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}
.main-tabbar-v50 a.active {
  background: #fff !important;
  border-color: #b9c9d8 !important;
  color: #0057a8 !important;
}
.content-shell-v50 {
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: 238px minmax(0,1fr) !important;
  overflow: hidden !important;
}
.sidebar-v50 {
  min-height: 0 !important;
  overflow: auto !important;
  background: #f7fafc !important;
  border-right: 1px solid #c9d7e2 !important;
  padding: 8px 7px 44px !important;
}
.sidebar-section-title-v50 {
  font-size: 11px !important;
  text-transform: uppercase !important;
  color: #667085 !important;
  font-weight: 900 !important;
  margin: 10px 8px 5px !important;
}
.sidebar-v50 > a {
  height: 31px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: #25364d !important;
  border: 1px solid transparent !important;
  border-radius: 3px !important;
  padding: 0 8px !important;
  font-weight: 750 !important;
}
.sidebar-v50 > a.active {
  background: linear-gradient(#e9f5ff,#d8ebff) !important;
  border-color: #a8c7e6 !important;
  color: #004a9b !important;
}
.pm-page-v50 {
  min-width: 0 !important;
  min-height: 0 !important;
  overflow: auto !important;
  padding: 12px 14px 64px !important;
  background: #eef3f6 !important;
}
.footer-v50 {
  height: 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 12px !important;
  background: #f7fafc !important;
  border-top: 1px solid #c9d7e2 !important;
  color: #667085 !important;
  font-size: 12px !important;
}

/* Shared page components */
.page-head, .admin-page-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin: 0 0 12px !important;
}
.page-head h1,
.admin-page-head h1 {
  margin: 0 !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  color: #101828 !important;
}
.card,
.panel-modern,
.stf-main-card,
.dashboard-card,
.settings-panel-v48,
.admin-panel-v48 {
  background: #fff !important;
  border: 1px solid #cbd9e4 !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  margin-bottom: 10px !important;
  overflow: hidden !important;
}
.card-header,
.panel-title-v48 {
  min-height: 36px !important;
  padding: 8px 10px !important;
  background: linear-gradient(#fbfdff,#edf5fa) !important;
  border-bottom: 1px solid #cbd9e4 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
}
.card-header h2,
.card-header h3,
.panel-title-v48 h2,
.panel-title-v48 h3 {
  margin: 0 !important;
  font-size: 18px !important;
  font-weight: 900 !important;
}
.card-body { padding: 10px !important; }

.grid,
.kpi-grid,
.stat-grid-modern,
.dash-grid-main,
.dash-grid-bottom,
.admin-stat-row-v48 {
  display: grid !important;
  grid-template-columns: repeat(4,minmax(0,1fr)) !important;
  gap: 10px !important;
}
.admin-stat-row-v48 { grid-template-columns: repeat(6,minmax(0,1fr)) !important; }
.grid-2,
.stf-two,
.profile-two,
.profile-main-grid {
  display: grid !important;
  grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  gap: 10px !important;
}
.admin-grid-v48 {
  display: grid !important;
  grid-template-columns: 1.4fr 1fr 1fr !important;
  gap: 10px !important;
}
.kpi,
.stat-card,
.admin-stat-v48 {
  background: #fff !important;
  border: 1px solid #cbd9e4 !important;
  border-radius: 4px !important;
  padding: 12px !important;
  min-height: 76px !important;
}
.kpi b,
.stat-card b,
.admin-stat-v48 b {
  font-size: 22px !important;
  display: block !important;
  line-height: 1.15 !important;
}
.muted, small { color: #667085; }

.btn,
button,
input[type=submit] {
  min-height: 30px;
}
.btn {
  height: 30px !important;
  border: 1px solid #99b5ce !important;
  border-radius: 3px !important;
  background: linear-gradient(#fff,#e9f3fb) !important;
  color: #25364d !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 0 10px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}
.btn.green, .btn.primary {
  background: linear-gradient(#26d26f,#16a34a) !important;
  border-color: #0f8d3d !important;
  color: #fff !important;
}
.btn.gray {
  background: linear-gradient(#6b7b91,#344258) !important;
  border-color: #344258 !important;
  color: #fff !important;
}
.btn.red {
  background: linear-gradient(#ff6b6b,#dc2626) !important;
  border-color: #dc2626 !important;
  color: #fff !important;
}
.badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 18px !important;
  border-radius: 3px !important;
  padding: 2px 7px !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  background: #d9e3ec !important;
  color: #25364d !important;
}
.badge-green { background: #75c943 !important; color: #fff !important; }
.badge-red { background: #f3b3b3 !important; color: #8b0000 !important; }
.badge-blue { background: #9dccff !important; color: #003f86 !important; }
.badge-gray { background: #b6bec8 !important; color: #fff !important; }
.badge-purple { background: #b69cff !important; color: #fff !important; }

.field label {
  display: block !important;
  margin-bottom: 4px !important;
  font-weight: 800 !important;
  color: #344258 !important;
}
.field input,
.field select,
.field textarea,
input,
select,
textarea {
  border: 1px solid #b9c9d8 !important;
  border-radius: 3px !important;
  background: #fff !important;
  padding: 5px 7px !important;
  outline: none !important;
  max-width: 100% !important;
}
.field input:focus,
.field select:focus,
.field textarea:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: #4a90d9 !important;
  box-shadow: 0 0 0 2px rgba(0,87,168,.12) !important;
}
.form-row,
.profile-fields {
  display: grid !important;
  grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  gap: 10px !important;
  margin-bottom: 10px !important;
}

/* Tables */
.table-wrap,
.modern-table-wrap,
.sheet-table-wrap,
.admin-table-wrap-v48 {
  overflow: auto !important;
  border: 1px solid #cbd9e4 !important;
  background: #fff !important;
  border-radius: 0 !important;
}
.registry,
.modern-table,
.sheet-table,
.admin-table-v48 {
  width: 100% !important;
  border-collapse: collapse !important;
  min-width: 900px !important;
}
.registry th,
.modern-table th,
.sheet-table th,
.admin-table-v48 th {
  height: 30px !important;
  background: #edf4f8 !important;
  border: 1px solid #dbe5ec !important;
  text-align: left !important;
  padding: 5px 7px !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  color: #111827 !important;
  white-space: nowrap !important;
}
.registry td,
.modern-table td,
.sheet-table td,
.admin-table-v48 td {
  border: 1px solid #dbe5ec !important;
  padding: 6px 7px !important;
  vertical-align: top !important;
  background: #fff !important;
}
.registry tr:hover td,
.modern-table tr:hover td,
.admin-table-v48 tr:hover td {
  background: #f8fcff !important;
}
.owner-row td { background: #fbfdff !important; }

/* Order registry */
.v41-procurement-registry {
  background: #eef3f6 !important;
  border-top: 2px solid #0b67d1 !important;
}
.v41-searchbar {
  min-height: 58px !important;
  background: #fff !important;
  border-bottom: 1px solid #cbd9e4 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 18px !important;
  padding: 8px 12px !important;
}
.v41-create-btn {
  height: 34px !important;
  min-width: 150px !important;
  background: linear-gradient(#2bd878,#16a34a) !important;
  border: 1px solid #0f8d3d !important;
  color: #fff !important;
  border-radius: 3px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  font-weight: 900 !important;
}
.v41-search-form {
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
}
.v41-search-form select,
.v41-search-form input,
.v41-search-form button {
  height: 34px !important;
  border-radius: 0 !important;
}
.registry-grid-wrap {
  margin: 0 12px 32px !important;
  border: 1px solid #0b67d1 !important;
  background: #fff !important;
  overflow: auto !important;
}
.registry-main {
  width: 100% !important;
  border-collapse: collapse !important;
  table-layout: fixed !important;
  min-width: 1680px !important;
}
.registry-main th {
  height: 34px !important;
  background: #edf4f8 !important;
  border: 1px solid #cbd9e4 !important;
  font-size: 12px !important;
  padding: 4px 6px !important;
  text-align: left !important;
  vertical-align: bottom !important;
}
.registry-main td {
  border: 1px solid #cbd9e4 !important;
  padding: 6px !important;
  vertical-align: top !important;
  background: #fff !important;
}
.positions-inner-table {
  width: 100% !important;
  border-collapse: collapse !important;
  table-layout: fixed !important;
}
.positions-inner-table th {
  height: 28px !important;
  background: #edf4f8 !important;
  border: 1px solid #cbd9e4 !important;
  font-size: 12px !important;
}
.positions-inner-table td {
  border: 1px solid #dbe5ec !important;
  background: #fff !important;
  height: 42px !important;
}
.status-bar {
  width: 18px !important;
  height: 72px !important;
  max-width: 18px !important;
  border-radius: 4px !important;
  display: inline-flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  font-weight: 900 !important;
  padding-top: 4px !important;
  overflow: hidden !important;
}

/* Profile page normalization */
.profile-page,
.profile-wrap,
.profile-card {
  max-width: 1180px !important;
}
.profile-tabs {
  display: flex !important;
  gap: 6px !important;
  margin-bottom: 10px !important;
}
.profile-tabs a {
  height: 30px !important;
  display: inline-flex !important;
  align-items: center !important;
  padding: 0 12px !important;
  border: 1px solid #cbd9e4 !important;
  background: #fff !important;
  border-radius: 3px !important;
  font-weight: 800 !important;
}
.profile-tabs a.active {
  background: #e9f5ff !important;
  border-color: #a8c7e6 !important;
  color: #004a9b !important;
}

/* Admin shell hard rebuild */
body.admin-pro-shell {
  height: 100vh !important;
  overflow: hidden !important;
  display: grid !important;
  grid-template-rows: 44px minmax(0,1fr) !important;
  background: #eef3f6 !important;
}
body.admin-pro-shell .admin-pro-topbar {
  height: 44px !important;
  min-height: 44px !important;
  display: grid !important;
  grid-template-columns: 34px auto minmax(260px,1fr) auto !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 0 10px !important;
  background: #fff !important;
  border-bottom: 1px solid #cbd9e4 !important;
  box-shadow: 0 1px 0 rgba(16,24,40,.03) !important;
  overflow: hidden !important;
}
body.admin-pro-shell .admin-pro-menu {
  width: 30px !important;
  height: 30px !important;
  border: 1px solid #cbd9e4 !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: #26364d !important;
  display: grid !important;
  place-items: center !important;
  cursor: pointer !important;
}
body.admin-pro-shell .admin-pro-brand {
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  color: #0b1b34 !important;
  white-space: nowrap !important;
  min-width: 240px !important;
}
body.admin-pro-shell .admin-pro-brand strong {
  font-size: 24px !important;
  line-height: 1 !important;
  font-weight: 950 !important;
  color: #0b67d1 !important;
  letter-spacing: -1px !important;
}
body.admin-pro-shell .admin-pro-brand span {
  font-size: 13px !important;
  font-weight: 900 !important;
  color: #132033 !important;
}
body.admin-pro-shell .admin-pro-brand em {
  font-style: normal !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  color: #0b67d1 !important;
  background: #eaf3ff !important;
  border: 1px solid #cfe2ff !important;
  border-radius: 6px !important;
  padding: 3px 6px !important;
}
body.admin-pro-shell .admin-pro-search {
  height: 34px !important;
  max-width: 720px !important;
  border: 1px solid #d5e1ec !important;
  border-radius: 9px !important;
  background: #fbfdff !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 10px !important;
}
body.admin-pro-shell .admin-pro-search input {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  width: 100% !important;
  height: 30px !important;
  padding: 0 !important;
}
body.admin-pro-shell .admin-pro-search kbd {
  font-size: 10px !important;
  color: #718096 !important;
  background: #f1f5f9 !important;
  border: 1px solid #d9e3ee !important;
  border-radius: 5px !important;
  padding: 2px 6px !important;
}
body.admin-pro-shell .admin-pro-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  white-space: nowrap !important;
}
body.admin-pro-shell .admin-circle {
  width: 30px !important;
  height: 30px !important;
  border: 1px solid #d5e1ec !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #344258 !important;
  display: inline-grid !important;
  place-items: center !important;
  position: relative !important;
}
body.admin-pro-shell .admin-circle.primary {
  background: #0b67d1 !important;
  border-color: #0b67d1 !important;
  color: #fff !important;
}
body.admin-pro-shell .admin-circle small {
  position: absolute !important;
  right: -5px !important;
  top: -5px !important;
  min-width: 16px !important;
  height: 16px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 9px !important;
  background: #ef4444 !important;
  color: #fff !important;
  font-size: 10px !important;
  line-height: 1 !important;
}
body.admin-pro-shell .admin-pro-user {
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 8px !important;
  border-left: 1px solid #e5edf5 !important;
}
body.admin-pro-shell .admin-avatar {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  border-radius: 50% !important;
  background: #eaf3ff !important;
  border: 1px solid #cfe2ff !important;
  display: grid !important;
  place-items: center !important;
  color: #0b67d1 !important;
  font-weight: 950 !important;
}
body.admin-pro-shell .admin-pro-user b {
  display: block !important;
  font-size: 12px !important;
  line-height: 1.1 !important;
  color: #111827 !important;
  max-width: 170px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
body.admin-pro-shell .admin-pro-user small {
  display: block !important;
  font-size: 11px !important;
  color: #667085 !important;
  line-height: 1.1 !important;
}
body.admin-pro-shell .admin-logout {
  height: 30px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  border: 1px solid #d5e1ec !important;
  border-radius: 8px !important;
  padding: 0 9px !important;
  color: #344258 !important;
  background: #fff !important;
  font-weight: 800 !important;
}
body.admin-pro-shell .admin-pro-layout {
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: 252px minmax(0,1fr) !important;
  overflow: hidden !important;
}
body.admin-pro-shell .admin-pro-sidebar {
  min-height: 0 !important;
  overflow: auto !important;
  background: #f7fafc !important;
  border-right: 1px solid #c9d7e2 !important;
  padding: 10px 8px 55px !important;
}
body.admin-pro-shell .admin-menu-block {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}
body.admin-pro-shell .admin-menu-block a {
  min-height: 34px !important;
  height: 34px !important;
  border: 1px solid transparent !important;
  border-radius: 7px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 0 10px !important;
  color: #344258 !important;
  font-weight: 800 !important;
  overflow: hidden !important;
}
body.admin-pro-shell .admin-menu-block a span {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
body.admin-pro-shell .admin-menu-block a:hover {
  background: #f3f8ff !important;
  border-color: #dbeafe !important;
  color: #0b67d1 !important;
}
body.admin-pro-shell .admin-menu-block a.active {
  background: linear-gradient(#e9f5ff,#d8ebff) !important;
  border-color: #a8c7e6 !important;
  color: #004a9b !important;
  box-shadow: none !important;
}
body.admin-pro-shell .admin-storage-card {
  margin: 14px 4px 10px !important;
  border: 1px solid #d5e1ec !important;
  border-radius: 8px !important;
  background: #fff !important;
  padding: 12px !important;
  color: #344258 !important;
  display: grid !important;
  gap: 5px !important;
}
body.admin-pro-shell .admin-help-card {
  height: 38px !important;
  margin: 8px 4px !important;
  border: 1px solid #d5e1ec !important;
  border-radius: 8px !important;
  background: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  color: #344258 !important;
  font-weight: 800 !important;
}
body.admin-pro-shell .admin-pro-content {
  min-width: 0 !important;
  min-height: 0 !important;
  overflow: auto !important;
  padding: 14px 16px 70px !important;
  background: #eef3f6 !important;
}

/* Admin managed pages */
.admin-manage-page {
  max-width: 100% !important;
}
.admin-panel-v48.big { grid-column: span 2; }
.activity-list-v48 {
  display: grid !important;
  gap: 8px !important;
}
.activity-list-v48 div {
  display: flex !important;
  gap: 8px !important;
  align-items: flex-start !important;
}
.activity-list-v48 svg {
  width: 16px !important;
  height: 16px !important;
  color: #0b67d1 !important;
}

/* Create order sheet */
.sheet-table input,
.sheet-table select,
.sheet-table textarea {
  width: 100% !important;
  min-width: 80px !important;
}
.sheet-table th,
.sheet-table td {
  white-space: nowrap !important;
}
.pm-info-note {
  margin: 8px 0 !important;
  padding: 8px 10px !important;
  border: 1px solid #b9d9b9 !important;
  background: #f0fff0 !important;
  border-radius: 3px !important;
  color: #166534 !important;
  font-weight: 800 !important;
}

/* Responsive */
@media (max-width: 1200px) {
  .grid,
  .kpi-grid,
  .stat-grid-modern,
  .dash-grid-main,
  .dash-grid-bottom,
  .admin-stat-row-v48 {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  }
  .admin-grid-v48 { grid-template-columns: 1fr !important; }
  body.admin-pro-shell .admin-pro-topbar {
    grid-template-columns: 34px auto 1fr auto !important;
  }
  body.admin-pro-shell .admin-pro-brand span,
  body.admin-pro-shell .admin-pro-brand em {
    display: none !important;
  }
  body.admin-pro-shell .admin-pro-brand { min-width: 60px !important; }
}
@media (max-width: 900px) {
  body:not(.admin-pro-shell) { overflow: auto !important; }
  .app-shell-v50 { height: auto !important; min-height: 100vh !important; display: block !important; }
  .top-search-wrap-v50 { display: none !important; }
  .content-shell-v50 { display: block !important; }
  .sidebar-v50 { display: none !important; }
  .pm-page-v50 { overflow: visible !important; }
  .grid,
  .kpi-grid,
  .stat-grid-modern,
  .dash-grid-main,
  .dash-grid-bottom,
  .admin-stat-row-v48,
  .grid-2,
  .stf-two,
  .profile-two,
  .profile-main-grid,
  .form-row,
  .profile-fields {
    grid-template-columns: 1fr !important;
  }
  body.admin-pro-shell {
    height: auto !important;
    min-height: 100vh !important;
    display: block !important;
    overflow: auto !important;
  }
  body.admin-pro-shell .admin-pro-topbar {
    grid-template-columns: 34px 1fr auto !important;
  }
  body.admin-pro-shell .admin-pro-search,
  body.admin-pro-shell .admin-pro-user {
    display: none !important;
  }
  body.admin-pro-shell .admin-pro-layout {
    display: block !important;
  }
  body.admin-pro-shell .admin-pro-sidebar {
    display: none !important;
  }
  body.admin-pro-shell .admin-pro-content {
    overflow: visible !important;
    padding: 12px !important;
  }
}


/* =========================================================
   V55 CUSTOMER SIDEBAR CLEAN + DASHBOARD/QUOTE UI RESTORE
   ========================================================= */
.sidebar-v50 .pm-link-card-v50 { display:none !important; }
.modern-dashboard.stf-dashboard-v55 { display:grid !important; gap:12px !important; }
.stat-grid-modern { display:grid !important; grid-template-columns:repeat(4,minmax(0,1fr)) !important; gap:12px !important; }
.stat-card { display:flex !important; align-items:center !important; gap:14px !important; background:#fff !important; border:1px solid #cbd9e4 !important; border-radius:4px !important; padding:14px !important; min-height:92px !important; }
.stat-icon { width:42px !important; height:42px !important; border-radius:12px !important; display:grid !important; place-items:center !important; flex:0 0 42px !important; }
.stat-icon svg { width:20px !important; height:20px !important; }
.stat-icon.blue{background:#eaf3ff;color:#0b67d1}.stat-icon.orange{background:#fff3df;color:#d97706}.stat-icon.green{background:#eafaf1;color:#16a34a}.stat-icon.purple{background:#f3eafd;color:#7c3aed}
.stat-card span{display:block;color:#667085;font-size:12px;font-weight:800}.stat-card b{display:block;color:#101828;font-size:24px;font-weight:950;line-height:1.1;margin-top:3px}.stat-card small{display:block;color:#667085;margin-top:4px}
.dash-grid-main{display:grid !important;grid-template-columns:1.55fr 1fr !important;gap:12px !important}.dash-grid-bottom{display:grid !important;grid-template-columns:1fr 1fr 1fr !important;gap:12px !important}
.panel-modern{background:#fff !important;border:1px solid #cbd9e4 !important;border-radius:4px !important;overflow:hidden !important}
.panel-title{min-height:38px !important;background:linear-gradient(#fbfdff,#edf5fa) !important;border-bottom:1px solid #cbd9e4 !important;padding:8px 10px !important;display:flex !important;align-items:center !important;justify-content:space-between !important;gap:10px !important}
.panel-title h2{font-size:18px !important;margin:0 !important;font-weight:950 !important;color:#101828 !important}
.track-head{padding:10px;border-bottom:1px solid #dbe5ec;display:grid;gap:2px}.approval-timeline{display:grid;gap:8px;padding:10px}
.timeline-row{display:flex;gap:10px;align-items:center}.timeline-row>span{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#d9e3ec;color:#25364d;font-weight:900}
.timeline-row.done>span{background:#16a34a;color:#fff}.timeline-row.active>span{background:#f59e0b;color:#fff}
.quote-list-mini,.notification-mini-list{padding:10px;display:grid;gap:8px}.quote-list-mini a{display:grid;grid-template-columns:1fr auto auto;gap:8px;border-bottom:1px solid #eef2f6;padding-bottom:7px}
.notification-mini-list div{display:flex;gap:8px;align-items:flex-start;border-bottom:1px solid #eef2f6;padding-bottom:7px}.notification-mini-list svg{width:16px!important;height:16px!important;color:#0b67d1}
.purchase-visual{padding:14px}.purchase-visual>b{font-size:22px}.bars{height:115px;display:flex;align-items:end;gap:12px;margin-top:15px}.bars i{display:block;width:24px;background:#cfe2ff;border-radius:5px 5px 0 0}.bars i:nth-child(1){height:45%}.bars i:nth-child(2){height:55%}.bars i:nth-child(3){height:68%}.bars i:nth-child(4){height:80%}.bars i:nth-child(5){height:92%;background:#0b67d1}.bars i:nth-child(6){height:78%}
.dashboard-action-line{padding:2px 0 10px}
.compare-page.compare-v47{display:grid !important;gap:12px !important;max-width:100% !important}
.compare-hero{background:#fff !important;border:1px solid #cbd9e4 !important;border-radius:4px !important;padding:14px !important;display:flex !important;align-items:flex-start !important;justify-content:space-between !important;gap:12px !important}
.compare-hero h1{margin:6px 0 8px !important;font-size:24px !important;font-weight:950 !important;color:#101828 !important}.compare-hero p{margin:0;color:#475467}.crumb-line{display:flex;gap:7px;color:#667085;font-size:12px}
.compare-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.compare-summary-grid{display:grid !important;grid-template-columns:repeat(4,minmax(0,1fr)) !important;gap:12px !important}
.compare-stat{background:#fff;border:1px solid #cbd9e4;border-radius:4px;padding:12px;display:grid;gap:3px}.compare-stat span{color:#667085;font-size:12px;font-weight:800}.compare-stat b{font-size:22px;font-weight:950;color:#101828}.compare-stat small{color:#667085}.compare-stat.highlight{background:#f0fff0;border-color:#b9d9b9}
.compare-panel-grid{display:grid !important;grid-template-columns:1fr 1.4fr !important;gap:12px !important}.compare-card{background:#fff !important;border:1px solid #cbd9e4 !important;border-radius:4px !important;overflow:hidden !important}
.compare-card-head{min-height:38px;padding:8px 10px;background:linear-gradient(#fbfdff,#edf5fa);border-bottom:1px solid #cbd9e4;display:flex;align-items:center;justify-content:space-between}.compare-card-head h2{margin:0;font-size:17px;font-weight:950;color:#101828}
.info-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin:0;padding:10px}.info-list div{border-bottom:1px solid #eef2f6;padding:8px}.info-list dt{font-size:11px;color:#667085;font-weight:900}.info-list dd{margin:3px 0 0;font-weight:800}
.supplier-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px;padding:10px}.supplier-mini{border:1px solid #dbe5ec;border-radius:4px;padding:10px;background:#fbfdff}.supplier-mini.best{border-color:#16a34a;background:#f0fff0}.supplier-top{display:flex;justify-content:space-between;gap:8px}.supplier-top span{background:#16a34a;color:#fff;border-radius:3px;padding:2px 6px;font-size:11px;font-weight:900}.supplier-mini strong{display:block;margin-top:6px;font-size:18px}.supplier-mini small{display:block;margin-top:4px;color:#667085}
.compare-table-wrap{overflow:auto}.compare-matrix{width:100%;min-width:900px;border-collapse:collapse}.compare-matrix th,.compare-matrix td{border:1px solid #dbe5ec;padding:7px;text-align:left;vertical-align:top;background:#fff}.compare-matrix th{background:#edf4f8;font-weight:950}.quote-th span,.quote-th small{display:block}.m-id{width:54px}.item-name-cell small{display:block;color:#667085;margin-top:2px}
.price-cell b,.price-cell small{display:block}.price-cell .checkmark{display:inline-flex;width:18px;height:18px;border-radius:50%;background:#16a34a;color:#fff;align-items:center;justify-content:center;margin-top:4px;font-weight:900}.price-cell.missing{background:#fff7ed;color:#9a3412}.missing-text{font-weight:900}
.quote-detail-grid{display:grid !important;grid-template-columns:repeat(auto-fit,minmax(320px,1fr)) !important;gap:12px !important}.quote-detail-head{padding:10px;border-bottom:1px solid #dbe5ec;display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.quote-detail-head h3{margin:2px 0 0;font-size:18px}
.quote-kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:10px;border-bottom:1px solid #dbe5ec}.quote-kpis div{background:#f8fbff;border:1px solid #eef2f6;border-radius:4px;padding:8px}.quote-kpis span{display:block;color:#667085;font-size:11px;font-weight:900}.quote-kpis b{display:block;margin-top:3px}
.quote-line-list{display:grid;gap:8px;padding:10px}.quote-line-card{border:1px solid #dbe5ec;border-radius:4px;padding:8px;background:#fff}.quote-line-card.missing{background:#fff7ed}.line-title{display:flex;justify-content:space-between;gap:8px}.line-title span{font-weight:950;color:#16a34a}.quote-line-card.missing .line-title span{color:#9a3412}.line-values{display:flex;gap:12px;flex-wrap:wrap;margin-top:6px;color:#667085}.ok-text{color:#16a34a}.danger-text{color:#dc2626}
.pm-link-card-v50, .inventory-integration-debug, .integration-debug-note { display:none !important; }
@media(max-width:1200px){.stat-grid-modern,.compare-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important}.dash-grid-main,.dash-grid-bottom,.compare-panel-grid{grid-template-columns:1fr !important}}
@media(max-width:760px){.stat-grid-modern,.compare-summary-grid{grid-template-columns:1fr !important}.compare-hero{display:grid !important}}


/* =========================================================
   V56 DETAIL + QUOTE + DASHBOARD HARD LAYOUT FIX
   Fixes plain-text PM detail / compare quotes pages.
   ========================================================= */

.pm-page-v50 > .stf-shell,
.pm-page-v50 > .compare-page,
.pm-page-v50 > .modern-dashboard {
  max-width: none !important;
  width: 100% !important;
}

/* PM detail page */
.stf-shell {
  display: grid !important;
  grid-template-columns: 38px minmax(0,1fr) !important;
  gap: 10px !important;
  align-items: start !important;
}
.stf-side-tools {
  background: #fff !important;
  border: 1px solid #cbd9e4 !important;
  border-radius: 4px !important;
  display: grid !important;
  gap: 4px !important;
  padding: 5px !important;
  position: sticky !important;
  top: 6px !important;
}
.stf-side-tools a {
  width: 26px !important;
  height: 26px !important;
  border-radius: 3px !important;
  display: grid !important;
  place-items: center !important;
  color: #075bb5 !important;
}
.stf-side-tools a:hover { background: #e9f5ff !important; }
.stf-main-card {
  background: #fff !important;
  border: 1px solid #cbd9e4 !important;
  border-radius: 4px !important;
  overflow: hidden !important;
  box-shadow: none !important;
}
.stf-titlebar {
  min-height: 92px !important;
  background: linear-gradient(#fff,#f8fbff) !important;
  border-bottom: 1px solid #cbd9e4 !important;
  padding: 14px 16px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 14px !important;
}
.stf-id {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  color: #075bb5 !important;
  font-weight: 900 !important;
  margin-bottom: 6px !important;
}
.sync-dot {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: #16a34a !important;
  display: inline-block !important;
}
.stf-titlebar h1 {
  margin: 0 !important;
  font-size: 25px !important;
  line-height: 1.15 !important;
  color: #101828 !important;
  font-weight: 950 !important;
}
.stf-status { flex: 0 0 auto !important; }
.stf-block {
  margin: 10px !important;
  background: #fff !important;
  border: 1px solid #cbd9e4 !important;
  border-radius: 4px !important;
  overflow: hidden !important;
}
.stf-block-title,
.stf-block-title-row {
  min-height: 35px !important;
  background: linear-gradient(#fbfdff,#edf5fa) !important;
  border-bottom: 1px solid #cbd9e4 !important;
  padding: 8px 10px !important;
  font-size: 15px !important;
  font-weight: 950 !important;
  color: #101828 !important;
}
.stf-block-title-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
}
.stf-block-title-row .stf-block-title {
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
.info-table {
  display: grid !important;
  grid-template-columns: repeat(4,minmax(0,1fr)) !important;
  gap: 0 !important;
  padding: 0 !important;
}
.info-table div {
  border-right: 1px solid #dbe5ec !important;
  border-bottom: 1px solid #dbe5ec !important;
  padding: 9px 10px !important;
  min-height: 48px !important;
}
.info-table span {
  display: block !important;
  color: #667085 !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  text-transform: none !important;
}
.info-table b {
  display: block !important;
  margin-top: 3px !important;
  color: #101828 !important;
  font-weight: 850 !important;
}
.stf-position-list {
  display: grid !important;
}
.position-row {
  display: grid !important;
  grid-template-columns: 55px minmax(220px,2fr) 100px repeat(3,minmax(145px,1fr)) !important;
  border-bottom: 1px solid #dbe5ec !important;
  min-height: 66px !important;
}
.position-row:last-child { border-bottom: 0 !important; }
.position-row > div {
  border-right: 1px solid #dbe5ec !important;
  padding: 8px !important;
  min-width: 0 !important;
}
.position-check {
  display: grid !important;
  place-items: center !important;
  gap: 2px !important;
  color: #075bb5 !important;
  font-weight: 900 !important;
}
.position-check input {
  width: 14px !important;
  height: 14px !important;
  padding: 0 !important;
}
.position-name b,
.position-qty b,
.position-meta b {
  display: block !important;
  font-weight: 900 !important;
  color: #101828 !important;
}
.position-name small,
.position-qty span,
.position-meta span {
  display: block !important;
  color: #667085 !important;
  font-size: 11px !important;
  margin-top: 3px !important;
}
.position-qty b { font-size: 16px !important; }
.stf-two {
  display: grid !important;
  grid-template-columns: 1.15fr .85fr !important;
  gap: 10px !important;
  margin: 10px !important;
}
.stf-two > .stf-block { margin: 0 !important; }
.mini-form,
.delivery-inline,
.cancel-form,
.file-upload-inline,
.quote-actions {
  padding: 10px !important;
  border-top: 1px solid #dbe5ec !important;
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  flex-wrap: wrap !important;
}
.mini-action {
  height: 26px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid #b9c9d8 !important;
  background: #fff !important;
  border-radius: 3px !important;
  padding: 0 8px !important;
  color: #075bb5 !important;
  font-weight: 800 !important;
}
.approval-timeline-mini {
  display: grid !important;
  grid-template-columns: repeat(5,minmax(0,1fr)) !important;
  gap: 8px !important;
  padding: 10px !important;
}
.approval-step {
  border: 1px solid #dbe5ec !important;
  border-radius: 4px !important;
  background: #fbfdff !important;
  padding: 8px !important;
  display: grid !important;
  gap: 4px !important;
}
.approval-step > span {
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  display: grid !important;
  place-items: center !important;
  font-weight: 950 !important;
  background: #d9e3ec !important;
  color: #25364d !important;
}
.approval-step.done > span { background: #16a34a !important; color: #fff !important; }
.approval-step.current > span { background: #f59e0b !important; color: #fff !important; }
.approval-step b { font-size: 12px !important; }
.approval-step small { color: #667085 !important; }
.approval-popover {
  margin: 0 10px 10px !important;
  border: 1px solid #cbd9e4 !important;
  background: #fff !important;
  border-radius: 4px !important;
  overflow: hidden !important;
}
.approval-popover-head {
  padding: 8px 10px !important;
  border-bottom: 1px solid #dbe5ec !important;
  display: flex !important;
  justify-content: space-between !important;
}
.approval-route-table {
  width: 100% !important;
  border-collapse: collapse !important;
}
.approval-route-table th,
.approval-route-table td {
  border: 1px solid #dbe5ec !important;
  padding: 6px !important;
  text-align: left !important;
}
.quote-cards {
  display: grid !important;
  grid-template-columns: repeat(auto-fit,minmax(270px,1fr)) !important;
  gap: 10px !important;
  padding: 10px !important;
}
.quote-card {
  border: 1px solid #dbe5ec !important;
  border-radius: 4px !important;
  padding: 10px !important;
  background: #fbfdff !important;
  display: grid !important;
  gap: 6px !important;
}
.quote-card.selected {
  border-color: #16a34a !important;
  background: #f0fff0 !important;
}
.quote-card-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  padding-bottom: 6px !important;
  border-bottom: 1px solid #dbe5ec !important;
}
.file-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr)) !important;
  gap: 10px !important;
  padding: 10px !important;
}
.file-card {
  border: 1px solid #dbe5ec !important;
  border-radius: 4px !important;
  padding: 8px !important;
  display: grid !important;
  grid-template-columns: 28px 1fr auto auto !important;
  gap: 8px !important;
  align-items: center !important;
}
.file-icon {
  width: 28px !important;
  height: 28px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 4px !important;
  background: #eaf3ff !important;
  color: #0b67d1 !important;
}
.file-info b,
.file-info small {
  display: block !important;
}
.document-comments-tab {
  margin: 10px !important;
  height: 32px !important;
  border: 1px solid #b9c9d8 !important;
  background: #fff !important;
  border-radius: 3px !important;
  padding: 0 10px !important;
  font-weight: 900 !important;
}
.chat-drawer {
  margin: 10px !important;
  border: 1px solid #cbd9e4 !important;
  border-radius: 4px !important;
  background: #fff !important;
  display: block !important;
  overflow: hidden !important;
}
.chat-drawer[hidden] { display: none !important; }
.chat-drawer-head {
  height: 36px !important;
  background: linear-gradient(#fbfdff,#edf5fa) !important;
  border-bottom: 1px solid #dbe5ec !important;
  padding: 0 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}
.chat-participants {
  padding: 8px 10px !important;
  border-bottom: 1px solid #dbe5ec !important;
  display: flex !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
}
.chat-participants span {
  background: #eef4ff !important;
  border: 1px solid #dbeafe !important;
  border-radius: 12px !important;
  padding: 2px 8px !important;
  font-size: 12px !important;
}
.chat-box {
  padding: 10px !important;
  display: grid !important;
  gap: 8px !important;
  max-height: 320px !important;
  overflow: auto !important;
}
.chat-msg {
  border: 1px solid #dbe5ec !important;
  border-radius: 4px !important;
  padding: 8px !important;
  background: #fbfdff !important;
}
.chat-msg p { margin: 5px 0 0 !important; }
.chat-form {
  padding: 10px !important;
  border-top: 1px solid #dbe5ec !important;
  display: grid !important;
  grid-template-columns: minmax(240px,1fr) auto auto !important;
  gap: 8px !important;
  align-items: start !important;
}
.chat-form textarea {
  width: 100% !important;
  min-height: 58px !important;
}
.attach-line {
  height: 30px !important;
  display: inline-flex !important;
  align-items: center !important;
  border: 1px solid #b9c9d8 !important;
  border-radius: 3px !important;
  padding: 0 8px !important;
  background: #fff !important;
  cursor: pointer !important;
  font-weight: 800 !important;
}
.danger-zone {
  background: #fff7f7 !important;
  border-color: #fecaca !important;
}
.stf-history-block {
  padding: 0 !important;
}
.history-summary {
  cursor: pointer !important;
  list-style: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}
.history-count {
  background: #dbeafe !important;
  color: #075bb5 !important;
  border-radius: 10px !important;
  padding: 1px 7px !important;
}

/* Force compare page width and cards even if older CSS conflicts */
.compare-page.compare-v47 .compare-hero,
.compare-page.compare-v47 .compare-card,
.compare-page.compare-v47 .compare-stat,
.compare-page.compare-v47 .supplier-mini,
.compare-page.compare-v47 .quote-detail-card {
  box-sizing: border-box !important;
}
.compare-page.compare-v47 > * {
  min-width: 0 !important;
}

/* Dashboard raw-key cleanup layout */
.stf-dashboard-v55 .modern-table-wrap { max-height: 260px !important; }
.stf-dashboard-v55 .panel-modern { min-height: 180px !important; }

/* Small screens */
@media(max-width: 1180px) {
  .stf-shell { grid-template-columns: 1fr !important; }
  .stf-side-tools { position: static !important; display: flex !important; width: max-content !important; }
  .stf-two { grid-template-columns: 1fr !important; }
  .info-table { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  .position-row { grid-template-columns: 45px minmax(180px,1fr) 90px !important; }
  .position-row .position-meta { grid-column: span 1 !important; }
  .approval-timeline-mini { grid-template-columns: 1fr !important; }
}
@media(max-width: 760px) {
  .stf-titlebar { display: grid !important; }
  .info-table { grid-template-columns: 1fr !important; }
  .position-row { grid-template-columns: 1fr !important; }
  .chat-form { grid-template-columns: 1fr !important; }
}


/* =========================================================
   V57 NO CUSTOMER SIDEBAR + ORDER 3-DOT ACTION MENU RESTORE
   ========================================================= */

/* Customer/user side: top tabs only, no left sidebar */
body.pm-style-shell .content-shell-v50,
body.pm-style-shell .content-shell-v50.no-sidebar-v57 {
  display: block !important;
  grid-template-columns: 1fr !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
body.pm-style-shell .sidebar-v50 {
  display: none !important;
}
body.pm-style-shell .pm-page-v50 {
  width: 100% !important;
  max-width: none !important;
  min-height: calc(100vh - 92px) !important;
  overflow: auto !important;
  padding: 12px 14px 64px !important;
}
body.pm-style-shell .main-tabbar-v50 {
  padding-left: 8px !important;
}

/* Order list right action menu: always visible and styled */
.v41-table-wrap {
  overflow: auto !important;
  position: relative !important;
}
.v41-registry-table .row-menu-cell,
.cynteka-order-list .row-menu-cell {
  width: 46px !important;
  min-width: 46px !important;
  max-width: 46px !important;
  text-align: center !important;
  vertical-align: top !important;
  position: relative !important;
  overflow: visible !important;
}
.row-menu-btn {
  width: 28px !important;
  height: 28px !important;
  border: 1px solid #9db7cf !important;
  border-radius: 4px !important;
  background: #fff !important;
  color: #075bb5 !important;
  display: inline-grid !important;
  place-items: center !important;
  cursor: pointer !important;
  margin-top: 2px !important;
  padding: 0 !important;
}
.row-menu-btn:hover,
.row-menu-cell:hover .row-menu-btn {
  background: #e9f5ff !important;
  border-color: #0b67d1 !important;
}
.row-menu-btn .nav-ico,
.row-menu-btn svg {
  width: 17px !important;
  height: 17px !important;
  min-width: 17px !important;
  min-height: 17px !important;
  color: #075bb5 !important;
  stroke-width: 3 !important;
}
.row-menu {
  position: absolute !important;
  right: 6px !important;
  top: 34px !important;
  z-index: 80 !important;
  min-width: 215px !important;
  background: #fff !important;
  border: 1px solid #9db7cf !important;
  border-radius: 4px !important;
  box-shadow: 0 10px 24px rgba(16,24,40,.18) !important;
  padding: 5px !important;
  display: none !important;
  text-align: left !important;
}
.row-menu-cell:hover .row-menu,
.row-menu-cell:focus-within .row-menu,
.row-menu.open {
  display: grid !important;
  gap: 3px !important;
}
.row-menu-title {
  padding: 6px 8px !important;
  border-bottom: 1px solid #e5edf5 !important;
  color: #344258 !important;
  font-weight: 900 !important;
  font-size: 12px !important;
}
.row-menu a,
.row-menu button {
  width: 100% !important;
  min-height: 28px !important;
  border: 0 !important;
  border-radius: 3px !important;
  background: transparent !important;
  color: #25364d !important;
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 5px 8px !important;
  font-weight: 750 !important;
  text-align: left !important;
  cursor: pointer !important;
}
.row-menu a:hover,
.row-menu button:hover {
  background: #e9f5ff !important;
  color: #004a9b !important;
}
.row-menu-form {
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}
.row-menu-form button .nav-ico,
.row-menu a .nav-ico {
  width: 16px !important;
  height: 16px !important;
}

/* Make sure action column is visible at the right side */
.v41-registry-table col.v41-c-menu,
.cynteka-order-list col.v41-c-menu {
  width: 50px !important;
}

/* Messages page no-sidebar spacing */
.messages-page,
.message-shell,
.inbox-page {
  max-width: 100% !important;
}

/* Admin area still keeps its own admin sidebar */
body.admin-pro-shell .admin-pro-sidebar {
  display: block !important;
}


/* =========================================================
   V58 ORDER REGISTRY GEOMETRY + PER-ITEM QUOTES
   ========================================================= */
.v41-c-menu{width:48px!important;min-width:48px!important;max-width:48px!important;}
.v41-c-events{width:110px!important;min-width:110px!important;}
.row-menu-cell{width:48px!important;min-width:48px!important;max-width:48px!important;padding:8px 6px!important;}
.row-menu-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;}
.row-menu-dots{font-size:22px!important;line-height:1!important;font-weight:900!important;color:#0b67d1!important;display:block!important;margin-top:-2px!important;}
.v41-registry-table th,.v41-registry-table td{vertical-align:top!important;}
.v41-registry-table th,.v46-position-table th{text-align:center!important;}
.v41-notes-cell,.v46-pos-note,.v46-pos-category,.v46-pos-unit,.v46-pos-delivery,.v46-pos-qty,.v46-pos-name,.v46-pos-id,.v46-pos-invoices,.v46-pos-quotes{ text-align:center!important; }
.v46-pos-name b,.v46-pos-name em{display:block!important;text-align:center!important;}
.v46-position-table th,.v46-position-table td{vertical-align:middle!important;}
.v46-position-table .v46-c-name{width:220px!important;}
.v46-position-table .v46-c-category{width:180px!important;}
.v46-position-table .v46-c-unit{width:90px!important;}
.v46-position-table .v46-c-qty{width:120px!important;}
.v46-position-table .v46-c-delivery{width:120px!important;}
.v46-position-table .v46-c-note{width:150px!important;}
.v46-position-table .v46-c-note2{width:220px!important;}
.v46-center-head{text-align:center!important;}
.v46-pos-quotes{padding:8px!important;}
.v46-quote-list{display:flex!important;flex-direction:column!important;gap:6px!important;align-items:center!important;justify-content:center!important;min-width:160px!important;}
.v46-quote-chip{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:2px!important;min-width:120px!important;padding:5px 8px!important;border:1px solid #bcd0df!important;border-radius:4px!important;background:#f8fbff!important;color:#075bb5!important;font-weight:800!important;line-height:1.15!important;}
.v46-quote-chip b{font-size:12px!important;color:#111827!important;}
.v46-quote-chip.approved{border-color:#7cc96a!important;background:#f2fff0!important;}
.v46-quote-more{font-weight:800!important;color:#667085!important;}
.v46-quote-empty{color:#94a3b8!important;font-weight:700!important;}
.v46-quote-inline{display:flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;flex-wrap:wrap!important;}
.v46-pos-ind-head{ text-align:center!important; }
.event-icons{display:flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;flex-wrap:wrap!important;}
@media(max-width:1200px){
  .v46-quote-list{min-width:140px!important}
}


/* =========================================================
   V59 SHOT UI + ADDRESS BOOK + FULL-WIDTH REGISTRY
   ========================================================= */
body.pm-style-shell .pm-page-v50{padding:0 0 52px!important;background:#eef3f6!important;overflow:auto!important;}
body.pm-style-shell .main-tabbar-v50{padding-left:10px!important;padding-right:10px!important;}
body.pm-style-shell .main-tabbar-v50 a{min-width:auto!important}
body.pm-style-shell .top-system-bar-v50 .hamburger-v50{display:none!important;}
.orders-registry-v59{padding-bottom:28px!important;}
.orders-registry-v59 .v41-searchbar,
.orders-registry-v59 .v41-quick-filter-line,
.orders-registry-v59 .v41-actionbar,
.orders-registry-v59 .v41-count-line{padding-left:16px!important;padding-right:16px!important;}
.orders-registry-v59 .v41-table-wrap{margin:0!important;border-left:0!important;border-right:0!important;max-width:none!important;width:100%!important;min-height:calc(100vh - 250px)!important;overflow:auto!important;}
.orders-registry-v59 .v41-registry-table{width:100%!important;min-width:1720px!important;table-layout:fixed!important;}
.orders-registry-v59 .v41-registry-table th,
.orders-registry-v59 .v41-registry-table td{vertical-align:middle!important;}
.orders-registry-v59 .v41-registry-table th{text-align:center!important;}
.orders-registry-v59 .v41-title-cell, .orders-registry-v59 .v41-project-cell, .orders-registry-v59 .v41-user-cell, .orders-registry-v59 .v41-date-cell, .orders-registry-v59 .v41-notes-cell{text-align:left!important;}
.orders-registry-v59 .v41-c-events{width:88px!important;min-width:88px!important;}
.orders-registry-v59 .v41-c-menu{width:58px!important;min-width:58px!important;max-width:58px!important;}
.orders-registry-v59 .v41-event-cell{text-align:center!important;}
.orders-registry-v59 .event-icons{display:flex!important;justify-content:center!important;align-items:center!important;gap:6px!important;flex-wrap:wrap!important;}
.orders-registry-v59 .event-quote-icon{width:30px!important;height:30px!important;border:1px solid #a9bfd7!important;border-radius:4px!important;background:#fff!important;display:inline-grid!important;place-items:center!important;}
.orders-registry-v59 .event-quote-icon .nav-ico{width:16px!important;height:16px!important;}
.orders-registry-v59 .positions-row td{padding:0!important;}
.orders-registry-v59 .v46-positions-host{background:#fff!important;}
.orders-registry-v59 .v46-position-table{width:100%!important;table-layout:fixed!important;min-width:1450px!important;}
.orders-registry-v59 .v46-position-table th{background:#eef4f8!important;text-align:center!important;vertical-align:middle!important;white-space:nowrap!important;}
.orders-registry-v59 .v46-position-table td{text-align:center!important;vertical-align:middle!important;}
.orders-registry-v59 .v46-pos-name{text-align:left!important;}
.orders-registry-v59 .v46-pos-name b,.orders-registry-v59 .v46-pos-name em{display:block!important;text-align:left!important;}
.orders-registry-v59 .v46-quote-list{display:flex!important;flex-direction:column!important;gap:4px!important;align-items:center!important;}
.orders-registry-v59 .v46-quote-chip{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;padding:4px 6px!important;min-width:110px!important;background:#f7fbff!important;border:1px solid #bfd4e6!important;border-radius:4px!important;line-height:1.15!important;}
.orders-registry-v59 .v46-quote-chip b{font-size:12px!important;color:#111827!important;}
.orders-registry-v59 .v46-quote-inline{display:flex!important;justify-content:center!important;gap:6px!important;flex-wrap:wrap!important;}
.orders-registry-v59 .row-menu-cell{background:#fff!important;}

.shot-page-v59{padding:0 0 28px!important;background:#eef3f6!important;min-height:calc(100vh - 92px)!important;}
.shot-toolbar-v59{padding:24px 18px 14px!important;background:#fff!important;border-bottom:1px solid #dbe5ec!important;}
.shot-search-v59{display:flex!important;align-items:center!important;justify-content:center!important;gap:0!important;max-width:860px!important;margin:0 auto!important;}
.shot-search-v59 select,.shot-search-v59 input{height:36px!important;border:1px solid #c6d4e0!important;border-right:0!important;border-radius:0!important;background:#fff!important;}
.shot-search-v59 select{width:170px!important;padding:0 12px!important;}
.shot-search-v59 input{flex:1 1 auto!important;padding:0 12px!important;min-width:260px!important;}
.shot-search-v59 .btn.green{height:36px!important;border-radius:0 3px 3px 0!important;}
.shot-adv-toggle-v59{height:36px!important;border:0!important;background:transparent!important;color:#2f6ce5!important;font-weight:700!important;padding:0 14px!important;cursor:pointer!important;}
.shot-reset-v59{display:inline-flex!important;align-items:center!important;padding:0 6px!important;font-weight:700!important;color:#2f6ce5!important;}
.shot-advanced-v59{padding:16px 18px!important;background:#fff!important;border-bottom:1px solid #dbe5ec!important;}
.shot-advanced-grid-v59{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px 22px!important;max-width:980px!important;margin:0 auto!important;}
.shot-advanced-grid-v59 .filter-field input,.shot-advanced-grid-v59 .filter-field select{width:100%!important;height:30px!important;}
.shot-advanced-grid-v59 .range-row-v59{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;}
.shot-advanced-grid-v59 .filter-actions{display:flex!important;align-items:end!important;gap:8px!important;}
.shot-summary-v59{padding:14px 18px!important;display:flex!important;justify-content:space-between!important;align-items:flex-start!important;background:#eef3f6!important;}
.shot-summary-right-v59{display:flex!important;gap:26px!important;flex-wrap:wrap!important;justify-content:flex-end!important;}
.shot-table-wrap-v59{overflow:auto!important;background:#eef3f6!important;padding:0 12px 12px!important;}
.shot-table-v59{width:100%!important;min-width:1700px!important;border-collapse:collapse!important;table-layout:fixed!important;background:#fff!important;border:1px solid #cbd9e4!important;}
.shot-table-v59 th,.shot-table-v59 td{border-right:1px solid #dbe5ec!important;border-bottom:1px solid #dbe5ec!important;padding:8px 8px!important;vertical-align:top!important;}
.shot-table-v59 th{background:#edf4f8!important;font-size:12px!important;font-weight:800!important;color:#111827!important;white-space:nowrap!important;text-align:left!important;}
.shot-table-v59 td b{display:block!important;}
.shot-table-v59 td small{display:block!important;color:#667085!important;margin-top:2px!important;}
.shot-col-v59,.chat-col-v59{text-align:center!important;vertical-align:middle!important;}
.shot-pill-v59{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:28px!important;height:28px!important;border-radius:4px!important;background:#75c943!important;color:#fff!important;font-weight:900!important;}
.actions-col-v59{display:flex!important;flex-direction:column!important;gap:6px!important;}
.actions-col-v59 a{font-weight:700!important;color:#2f6ce5!important;}

.ab-page-v59{padding:16px!important;}
.ab-head-v59{display:flex!important;justify-content:space-between!important;align-items:flex-start!important;margin-bottom:12px!important;}
.ab-head-v59 h1{margin:0 0 4px!important;font-size:24px!important;}
.ab-grid-v59{display:grid!important;grid-template-columns:1fr 1fr!important;gap:12px!important;}
.ab-table-v59 td b{display:block!important;}
.ab-table-v59 td small{display:block!important;color:#667085!important;}

.shot-compare-v59{padding:16px!important;}
.shot-compare-top-v59{display:flex!important;justify-content:space-between!important;align-items:flex-start!important;gap:12px!important;margin-bottom:14px!important;}
.shot-compare-top-v59 h1{margin:0!important;font-size:28px!important;}
.shot-compare-actions-v59{display:flex!important;gap:8px!important;}
.shot-compare-scroll-v59{overflow:auto!important;border:1px solid #cad7e1!important;background:#dde4ea!important;}
.shot-compare-grid-v59{display:grid!important;align-items:start!important;gap:0!important;min-width:max-content!important;}
.shot-compare-summary-card-v59,.shot-quote-column-v59{background:#f4f7fa!important;min-height:100%!important;border-right:1px solid #cad7e1!important;}
.shot-compare-summary-card-v59{padding:10px!important;position:sticky!important;left:0!important;z-index:2!important;background:#eef3f6!important;}
.shot-compare-summary-card-v59 h2{margin:0 0 10px!important;font-size:22px!important;}
.summary-order-v59{margin-bottom:6px!important;font-size:13px!important;}
.summary-total-v59{margin:12px 0!important;padding:10px!important;border:1px solid #7dcf8d!important;background:#fff!important;text-align:center!important;}
.summary-items-v59{width:100%!important;border-collapse:collapse!important;margin-top:14px!important;}
.summary-items-v59 th,.summary-items-v59 td{border:1px solid #dbe5ec!important;padding:6px!important;vertical-align:top!important;font-size:12px!important;}
.summary-items-v59 th{background:#fff!important;}
.summary-items-v59 td b{display:block!important;}
.summary-items-v59 td small{display:block!important;color:#667085!important;}
.shot-quote-column-v59{width:250px!important;display:flex!important;flex-direction:column!important;}
.shot-quote-column-v59.approved{background:#f5fff6!important;}
.shot-quote-head-v59{padding:10px!important;border-bottom:2px solid #40b76e!important;background:#fff!important;position:sticky!important;top:0!important;z-index:1!important;}
.shot-quote-no-v59{font-size:26px!important;font-weight:800!important;color:#2f6ce5!important;}
.shot-quote-status-v59{display:inline-flex!important;margin:4px 0!important;padding:2px 8px!important;border-radius:3px!important;background:#111827!important;color:#fff!important;font-size:11px!important;font-weight:800!important;text-transform:uppercase!important;}
.shot-quote-status-v59.ok{background:#39b96d!important;}
.shot-quote-company-v59{margin-bottom:5px!important;}
.shot-quote-meta-v59{font-size:12px!important;margin-bottom:2px!important;}
.shot-quote-lines-v59{display:flex!important;flex-direction:column!important;}
.shot-line-v59{border-bottom:1px solid #dbe5ec!important;background:#fff!important;min-height:112px!important;}
.shot-line-v59.missing{background:#fff7f7!important;}
.shot-line-title-v59{display:flex!important;gap:8px!important;align-items:flex-start!important;padding:8px!important 8px 4px!important;font-size:12px!important;}
.shot-line-title-v59 span{width:18px!important;font-weight:800!important;color:#667085!important;}
.shot-line-title-v59 b{font-size:12px!important;line-height:1.25!important;}
.shot-line-grid-v59{display:grid!important;grid-template-columns:1fr 1fr!important;gap:0!important;border-top:1px solid #dbe5ec!important;}
.shot-line-grid-v59 span,.shot-line-grid-v59 b{padding:5px 8px!important;border-right:1px solid #dbe5ec!important;border-bottom:1px solid #dbe5ec!important;font-size:12px!important;}
.shot-line-grid-v59 span{background:#fbfcfd!important;color:#667085!important;}
.shot-line-grid-v59 b{background:#fff!important;}

@media(max-width:1100px){
  .shot-advanced-grid-v59{grid-template-columns:1fr!important;}
  .ab-grid-v59{grid-template-columns:1fr!important;}
  .shot-search-v59{justify-content:flex-start!important;overflow:auto!important;}
  .shot-summary-v59{display:block!important;}
  .shot-summary-right-v59{margin-top:8px!important;justify-content:flex-start!important;}
}


/* =========================================================
   V60 ORDER PAGE VERTICAL SCROLL FIX
   Fix: user could not see lower orders because outer shell was locked.
   ========================================================= */
html,
body.pm-style-shell {
  height: auto !important;
  min-height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}
body.pm-style-shell .app-shell-v50 {
  height: auto !important;
  min-height: 100vh !important;
  display: block !important;
  overflow: visible !important;
}
body.pm-style-shell .content-shell-v50,
body.pm-style-shell .content-shell-v50.no-sidebar-v57 {
  height: auto !important;
  min-height: 0 !important;
  display: block !important;
  overflow: visible !important;
}
body.pm-style-shell .pm-page-v50 {
  height: auto !important;
  min-height: calc(100vh - 92px) !important;
  max-height: none !important;
  overflow: visible !important;
  padding-bottom: 70px !important;
}
body.pm-style-shell .footer-v50 {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 100 !important;
}
.orders-registry-v59 {
  min-height: auto !important;
  overflow: visible !important;
}
.orders-registry-v59 .v41-table-wrap {
  min-height: 0 !important;
  max-height: none !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  padding-bottom: 18px !important;
}
.orders-registry-v59 .v41-registry-table {
  margin-bottom: 40px !important;
}
.v41-procurement-registry {
  padding-bottom: 70px !important;
}

/* Keep horizontal scrollbar visible and do not trap vertical scrolling in the table wrapper */
.v41-table-wrap::-webkit-scrollbar {
  height: 13px !important;
}
.v41-table-wrap::-webkit-scrollbar-thumb {
  background: #8d99a6 !important;
  border-radius: 8px !important;
}
.v41-table-wrap::-webkit-scrollbar-track {
  background: #dfe7ef !important;
}


/* =========================================================
   V62 ADMIN CRUD + SETTINGS/REPORTS POLISH
   ========================================================= */
body.admin-pro-shell .admin-pro-content {
  padding: 16px 18px 70px !important;
}
.ref-grid-v62 {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
}
.ref-panel-v62 {
  min-width: 0 !important;
}
.ref-add-v62 {
  padding: 10px !important;
  border-bottom: 1px solid #dbe5ec !important;
  background: #fbfdff !important;
}
.ref-add-form-v62 {
  display: grid !important;
  grid-template-columns: minmax(180px,1fr) 90px auto !important;
  gap: 8px !important;
  align-items: center !important;
}
.ref-add-form-v62 input {
  width: 100% !important;
  height: 32px !important;
}
.ref-table-wrap-v62 {
  max-height: 520px !important;
  overflow: auto !important;
}
.ref-table-v62 {
  min-width: 620px !important;
}
.ref-table-v62 td {
  vertical-align: middle !important;
}
.ref-table-v62 input[type="text"],
.ref-table-v62 input[name="name"] {
  width: 100% !important;
}
.ref-table-v62 input[type="number"] {
  width: 86px !important;
}
.ref-status-v62 {
  white-space: nowrap !important;
}
.ref-actions-v62 {
  display: flex !important;
  gap: 6px !important;
  align-items: center !important;
  justify-content: flex-start !important;
  white-space: nowrap !important;
}
.btn.red,
.btn.mini.red {
  background: linear-gradient(#ff6b6b,#dc2626) !important;
  border-color: #dc2626 !important;
  color: #fff !important;
}
.reports-grid-v62 {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
}
.reports-grid-v62 .admin-panel-v48:nth-child(3) {
  grid-column: span 2 !important;
}
.settings-v48 .settings-grid-v48,
.settings-v48 form {
  max-width: 1280px !important;
}
.settings-v48 .settings-panel-v48 {
  margin-bottom: 12px !important;
}
.settings-v48 .settings-form-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(180px, 1fr)) !important;
  gap: 10px 14px !important;
  padding: 12px !important;
}
.settings-v48 .field input,
.settings-v48 .field select {
  width: 100% !important;
  height: 32px !important;
}
.settings-v48 .panel-title-v48 h2 {
  font-size: 18px !important;
}
@media(max-width: 1200px){
  .ref-grid-v62,
  .reports-grid-v62 {
    grid-template-columns: 1fr !important;
  }
  .reports-grid-v62 .admin-panel-v48:nth-child(3) {
    grid-column: span 1 !important;
  }
  .settings-v48 .settings-form-grid {
    grid-template-columns: 1fr !important;
  }
}


/* =========================================================
   V65 CLEAN TOPBAR TECH INFO + QUOTE PAGE LANGUAGE FIX
   ========================================================= */
.env-pill-v50 {
  display: none !important;
}
.top-system-bar-v50 {
  gap: 10px !important;
}
.top-search-wrap-v50 {
  margin-left: auto !important;
}
.shot-compare-top-v59 p {
  color: #344258 !important;
  font-weight: 700 !important;
}
.shot-quote-meta-v59 {
  text-transform: none !important;
}

/* V66 admin post-action visibility hardening */
body.admin-pro-shell .admin-pro-content {
  display: block !important;
  min-height: calc(100vh - 44px) !important;
}
.admin-force-visible-v66,
body.admin-pro-shell .admin-manage-page,
body.admin-pro-shell .card,
body.admin-pro-shell .admin-panel-v48 {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
body.admin-pro-shell .notice {
  display: block !important;
}


/* V67 admin action pages visible and scrollable */
body.admin-pro-shell .admin-pro-content {
  display:block !important;
  overflow:auto !important;
  min-height:calc(100vh - 44px) !important;
}
body.admin-pro-shell .admin-manage-page,
body.admin-pro-shell .admin-panel-v48,
body.admin-pro-shell .card,
body.admin-pro-shell section {
  visibility:visible !important;
  opacity:1 !important;
}
body.admin-pro-shell .admin-table-wrap-v48,
body.admin-pro-shell .table-wrap {
  max-height:none !important;
  overflow:auto !important;
}


/* V68 admin header restore + order positions default closed + column alignment */
body.admin-pro-shell .admin-pro-topbar,
body.admin-pro-shell .admin-pro-layout,
body.admin-pro-shell .admin-pro-sidebar,
body.admin-pro-shell .admin-pro-content {
  display: grid;
}
body.admin-pro-shell .admin-pro-topbar { display:grid !important; }
body.admin-pro-shell .admin-pro-layout { display:grid !important; }
body.admin-pro-shell .admin-pro-sidebar { display:block !important; }
body.admin-pro-shell .admin-pro-content { display:block !important; }

.orders-registry-v59 .v41-table-wrap {
  width:100% !important;
  max-width:none !important;
  overflow-x:auto !important;
  overflow-y:visible !important;
}
.orders-registry-v59 .v41-registry-table,
.orders-registry-v59 .v46-position-table {
  table-layout:fixed !important;
}
.orders-registry-v59 .v41-ind-cell,
.orders-registry-v59 .v41-vertical-head,
.orders-registry-v59 .v46-pos-ind,
.orders-registry-v59 .v46-pos-ind-head,
.orders-registry-v59 .v41-event-cell,
.orders-registry-v59 .v46-pos-invoices,
.orders-registry-v59 .v46-pos-quotes {
  text-align:center !important;
  vertical-align:middle !important;
}
.orders-registry-v59 .v41-led {
  margin-left:auto !important;
  margin-right:auto !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}
.orders-registry-v59 .v46-position-row[hidden] {
  display:none !important;
}
.orders-registry-v59 .compact-pos-toggle {
  cursor:pointer !important;
  user-select:none !important;
}
.orders-registry-v59 .v46-position-table th {
  text-align:center !important;
}
.orders-registry-v59 .v46-c-ind,
.orders-registry-v59 .v41-c-ind {
  width:42px !important;
  min-width:42px !important;
  max-width:42px !important;
}
.orders-registry-v59 .v46-c-events,
.orders-registry-v59 .v41-c-events {
  width:98px !important;
  min-width:98px !important;
}
.orders-registry-v59 .v46-c-menu,
.orders-registry-v59 .v41-c-menu {
  width:54px !important;
  min-width:54px !important;
}


/* V69 Excel paste support on create order table */
.excel-paste-toolbar-v69 {
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  padding:8px 10px !important;
  border-top:1px solid #b9d9b9 !important;
  border-bottom:1px solid #cbd9e4 !important;
  background:#f7fbff !important;
}
.excel-paste-toolbar-v69 span {
  color:#344258 !important;
  font-size:12px !important;
  font-weight:700 !important;
}
.excel-paste-wrap-v69 {
  overflow:auto !important;
}
.excel-paste-table-v69 td,
.excel-paste-table-v69 th {
  vertical-align:middle !important;
}
.excel-paste-table-v69 input,
.excel-paste-table-v69 select {
  width:100% !important;
}
.excel-paste-table-v69 td:focus-within {
  outline:2px solid rgba(11,103,209,.25) !important;
  outline-offset:-2px !important;
  background:#f8fcff !important;
}


/* PM NOVEST compact adaptation over PM base */
:root{--pm-navy:#061426;--pm-navy2:#0b1c33;--pm-blue:#0d5bdb;--pm-line:#cfdbe7;--pm-bg:#eef3f8;}
body.pm-style-shell{background:var(--pm-bg)!important;color:#111827!important;}
body.pm-style-shell .app-shell-v50{grid-template-rows:34px 34px 1fr 28px!important;background:var(--pm-bg)!important;}
body.pm-style-shell .top-system-bar-v50{height:34px!important;background:linear-gradient(90deg,var(--pm-navy),var(--pm-navy2))!important;border-bottom:1px solid #1d334f!important;color:#fff!important;}
body.pm-style-shell .top-system-bar-v50 a,body.pm-style-shell .top-user-v50,body.pm-style-shell .top-user-v50 small{color:#fff!important;}
body.pm-style-shell .app-logo-v50.pm-logo{color:#fff!important;background:#0d5bdb!important;border-radius:4px;width:38px;height:24px;display:grid;place-items:center;font-size:16px;letter-spacing:.2px;}
body.pm-style-shell .system-title-v50{color:#fff!important;font-weight:900;}
body.pm-style-shell .top-search-v50{height:24px!important;background:#111f34!important;border:1px solid #30445f!important;color:#fff!important;}
body.pm-style-shell .top-search-wrap-v50:before{color:#b8c7dc!important;}
body.pm-style-shell .main-tabbar-v50{height:34px!important;background:#fff!important;border-bottom:1px solid var(--pm-line)!important;padding:0 10px!important;}
body.pm-style-shell .main-tabbar-v50 a{height:29px!important;border-radius:4px 4px 0 0!important;font-size:12px!important;color:#26364d!important;}
body.pm-style-shell .main-tabbar-v50 a.active{color:#0d5bdb!important;border-color:var(--pm-line)!important;border-top:2px solid #0d5bdb!important;}
body.pm-style-shell .pm-page-v50{padding:8px 10px 44px!important;background:var(--pm-bg)!important;}
body.pm-style-shell .card,body.pm-style-shell .panel-modern,body.pm-style-shell .stf-main-card,body.pm-style-shell .dashboard-card,body.pm-style-shell .settings-panel-v48,body.pm-style-shell .admin-panel-v48{border:1px solid var(--pm-line)!important;border-radius:4px!important;box-shadow:none!important;margin-bottom:8px!important;}
body.pm-style-shell .card-header,body.pm-style-shell .panel-title-v48{min-height:30px!important;padding:5px 8px!important;background:#f5f8fc!important;border-bottom:1px solid var(--pm-line)!important;}
body.pm-style-shell table th,body.pm-style-shell .registry th,body.pm-style-shell .admin-table-v48 th{height:28px!important;padding:4px 6px!important;background:#edf3fa!important;color:#1f2f46!important;font-size:11px!important;}
body.pm-style-shell table td,body.pm-style-shell .registry td,body.pm-style-shell .admin-table-v48 td{padding:4px 6px!important;font-size:12px!important;line-height:1.2!important;border-color:#dbe5ee!important;}
body.pm-style-shell .btn{height:27px!important;padding:0 8px!important;font-size:12px!important;border-radius:3px!important;}
body.pm-style-shell input,body.pm-style-shell select,body.pm-style-shell textarea{min-height:27px!important;font-size:12px!important;border-radius:3px!important;}
body.pm-style-shell .page-head{margin-bottom:7px!important;} body.pm-style-shell .page-head h1{font-size:19px!important;}
body.pm-style-shell .footer-v50{background:#fff!important;border-top:1px solid var(--pm-line)!important;}
body.admin-pro-shell .admin-pro-topbar{background:var(--pm-navy)!important;color:#fff!important;border-bottom:1px solid #1d334f!important;}
body.admin-pro-shell .admin-pro-brand span,body.admin-pro-shell .admin-pro-brand strong{color:#fff!important;}
body.admin-pro-shell .admin-pro-brand em{background:#0d5bdb!important;color:#fff!important;border-color:#0d5bdb!important;}


/* PM NOVEST MIX final: solid enterprise procurement base */
body.pm-style-shell .pm-page-v50{font-size:12px!important;}
body.pm-style-shell .v41-registry-table th{height:62px!important;font-size:11px!important;}
body.pm-style-shell .v41-registry-table td{padding:5px 6px!important;font-size:12px!important;line-height:1.18!important;}
body.pm-style-shell .v41-toolbar{height:34px!important;padding:4px 8px!important;}
body.pm-style-shell .v41-searchbar{padding:7px 10px!important;}
body.pm-style-shell .v41-count-line{padding:8px 10px!important;}
body.pm-style-shell .v41-table-wrap{margin:0 10px 28px!important;}
body.pm-style-shell .v41-tb-btn{height:26px!important;font-size:11.5px!important;}
body.pm-style-shell .login-logo{background:#0d5bdb!important;color:#fff!important;}
body.pm-style-shell .login-card{border-radius:10px!important;}
body.pm-style-shell .login-hero{background:linear-gradient(135deg,#061426,#0b2b55)!important;}
body.pm-style-shell .profile-two,.grid-2,.stf-two{gap:8px!important;}
body.pm-style-shell .field label{font-size:11px!important;margin-bottom:2px!important;}
body.pm-style-shell .form-row{gap:7px!important;margin-bottom:7px!important;}
body.pm-style-shell .page-head h1:after{content:' ';display:block;width:46px;height:2px;background:#0d5bdb;margin-top:4px;}

/* PM NOVEST production cleanup */
body.pm-style-shell .top-system-bar-v50{background:#061426!important;color:#fff!important;border-bottom:1px solid #17263a!important;height:34px!important;}
body.pm-style-shell .system-title-v50{color:#fff!important;font-weight:900!important;letter-spacing:.2px!important;}
body.pm-style-shell .app-logo-v50.pm-logo{background:#0d5bdb!important;color:#fff!important;border-radius:4px!important;height:24px!important;line-height:24px!important;width:38px!important;}
body.pm-style-shell .top-search-v50{background:#0e1d31!important;border:1px solid #2b3f5b!important;color:#fff!important;}
body.pm-style-shell .main-tabbar-v50{background:#fff!important;border-bottom:1px solid #cfdbe7!important;height:34px!important;align-items:end!important;}
body.pm-style-shell .main-tabbar-v50 a{color:#26364d!important;font-size:12px!important;font-weight:800!important;}
body.pm-style-shell .main-tabbar-v50 a.active{background:#fff!important;color:#0d5bdb!important;border-top:2px solid #0d5bdb!important;}
body.pm-style-shell .content-shell-v50,body.pm-style-shell .content-shell-v50.no-sidebar-v57{display:block!important;width:100%!important;overflow:auto!important;}
body.pm-style-shell .pm-page-v50{width:100%!important;max-width:none!important;min-height:calc(100vh - 96px)!important;padding:10px 12px 44px!important;overflow:auto!important;background:#eef3f8!important;}
body.pm-style-shell .modern-dashboard{width:100%!important;max-width:none!important;display:block!important;}
body.pm-style-shell .stat-grid-modern{display:grid!important;grid-template-columns:repeat(4,minmax(180px,1fr))!important;gap:8px!important;margin-bottom:8px!important;}
body.pm-style-shell .dash-grid-main{display:grid!important;grid-template-columns:minmax(0,2fr) minmax(260px,.75fr)!important;gap:8px!important;}
body.pm-style-shell .dash-grid-bottom{display:grid!important;grid-template-columns:repeat(3,minmax(220px,1fr))!important;gap:8px!important;}
body.pm-style-shell .stat-card,body.pm-style-shell .panel-modern,body.pm-style-shell .dashboard-card,body.pm-style-shell .card{border:1px solid #cfdbe7!important;border-radius:4px!important;box-shadow:none!important;background:#fff!important;overflow:hidden!important;}
body.pm-style-shell .stat-card{min-height:72px!important;padding:8px 10px!important;display:flex!important;align-items:center!important;gap:8px!important;}
body.pm-style-shell .stat-card b{font-size:20px!important;line-height:1.1!important;}
body.pm-style-shell .stat-card small,body.pm-style-shell .env-pill-v50,body.pm-style-shell .version-v50,body.pm-style-shell .admin-storage-card,body.pm-style-shell .admin-help-card{display:none!important;}
body.pm-style-shell .panel-title{height:30px!important;padding:5px 8px!important;border-bottom:1px solid #dbe5ee!important;background:#f6f9fc!important;}
body.pm-style-shell .modern-table th,body.pm-style-shell .registry th{height:27px!important;font-size:11px!important;padding:4px 6px!important;background:#edf3fa!important;}
body.pm-style-shell .modern-table td,body.pm-style-shell .registry td{font-size:12px!important;padding:4px 6px!important;}
body.pm-style-shell .footer-v50{height:24px!important;background:#fff!important;border-top:1px solid #cfdbe7!important;font-size:11px!important;}
body.admin-pro-shell .admin-storage-card,body.admin-pro-shell .admin-help-card{display:none!important;}
@media(max-width:1100px){body.pm-style-shell .stat-grid-modern,body.pm-style-shell .dash-grid-bottom{grid-template-columns:repeat(2,minmax(180px,1fr))!important;}body.pm-style-shell .dash-grid-main{grid-template-columns:1fr!important;}}

/* PM NOVEST package 9: invoice/payment compact modules */
.pm-compact-page{display:block;width:100%;}
.pm-page-head{height:32px;display:flex;align-items:center;justify-content:space-between;margin:0 0 8px;}
.pm-page-head h1{margin:0;font-size:20px;font-weight:900;color:#061426;}
.pm-action-bar{display:grid;grid-template-columns:repeat(10,minmax(90px,1fr));gap:6px;background:#fff;border:1px solid #cfdbe7;border-radius:4px;padding:7px;margin:0 0 8px;align-items:end;}
.pm-action-bar input,.pm-action-bar select{height:28px!important;min-height:28px!important;width:100%;font-size:12px!important;}
.pm-action-bar .btn{height:28px!important;width:100%;}
.pm-compact-table{min-width:1220px!important;}
.pm-compact-table small{color:#667085;display:block;margin-top:2px;}
@media(max-width:1300px){.pm-action-bar{grid-template-columns:repeat(5,minmax(120px,1fr));}}
@media(max-width:760px){.pm-action-bar{grid-template-columns:1fr;}.pm-page-head{height:auto;gap:8px;align-items:flex-start;}}

/* PM NOVEST package 11: document 360 workflow */
.pm-doc-flow{padding:0!important;background:#fff!important;}
.pm-doc-flow .stf-block-title-row{height:32px!important;padding:5px 8px!important;border-bottom:1px solid #dbe5ee!important;background:#f6f9fc!important;display:flex!important;align-items:center!important;justify-content:space-between!important;}
.pm-flow-actions{display:flex;gap:5px;align-items:center;}
.pm-flow-grid{display:grid;grid-template-columns:repeat(6,minmax(120px,1fr));gap:0;border-top:0;}
.pm-flow-grid>div{min-height:58px;padding:7px 9px;border-right:1px solid #e2e8f0;display:flex;flex-direction:column;justify-content:center;gap:2px;background:#fff;}
.pm-flow-grid>div:last-child{border-right:0;}
.pm-flow-grid span{font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.35px;color:#64748b;}
.pm-flow-grid b{font-size:14px;font-weight:900;color:#061426;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.pm-flow-grid small{font-size:11px;color:#475569;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
@media(max-width:1200px){.pm-flow-grid{grid-template-columns:repeat(3,minmax(120px,1fr));}.pm-flow-grid>div{border-bottom:1px solid #e2e8f0;}}
@media(max-width:700px){.pm-flow-grid{grid-template-columns:1fr;}.pm-flow-grid>div{border-right:0;}}


/* PM NOVEST package 12: 3-way compact control */
.pm-threeway-kpis{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:7px;margin:0 0 8px;}
.pm-kpi-chip{display:flex;align-items:center;justify-content:space-between;min-height:44px;background:#fff;border:1px solid #cfdbe7;border-left:3px solid #64748b;border-radius:4px;padding:7px 10px;text-decoration:none;color:#061426;}
.pm-kpi-chip span{font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.35px;color:#64748b;}
.pm-kpi-chip b{font-size:20px;line-height:1;font-weight:900;color:#061426;}
.pm-kpi-chip.ok{border-left-color:#16a34a}.pm-kpi-chip.warn{border-left-color:#f59e0b}.pm-kpi-chip.critical{border-left-color:#dc2626}
.pm-threeway-table{min-width:1320px!important;}
.pm-threeway-table .match-dot{display:inline-flex;align-items:center;justify-content:center;min-width:54px;height:20px;border-radius:999px;font-size:10px;font-weight:900;text-transform:uppercase;}
.pm-threeway-table .match-dot.ok{background:#dcfce7;color:#166534}.pm-threeway-table .match-dot.warn{background:#fef3c7;color:#92400e}.pm-threeway-table .match-dot.critical{background:#fee2e2;color:#991b1b}
.pm-threeway-table tr.match-critical td{background:#fff7f7;}
.pm-threeway-table tr.match-warn td{background:#fffdf4;}
.issue-list{display:flex;flex-wrap:wrap;gap:4px;}
.issue-list span{display:inline-flex;background:#eef2f7;border:1px solid #d7e0ea;border-radius:999px;padding:2px 6px;font-size:10.5px;font-weight:800;color:#334155;white-space:nowrap;}
.clean-cell{font-weight:900;color:#166534;font-size:12px;}
@media(max-width:900px){.pm-threeway-kpis{grid-template-columns:repeat(2,minmax(140px,1fr));}}

/* PM NOVEST package 13: budget control */
.pm-budget-bar{grid-template-columns:1.4fr 1fr 1fr .55fr .8fr .7fr 1.2fr .65fr;}
.pm-budget-table{min-width:1260px!important;}
.pm-budget-table tr.budget-critical td{background:#fff7f7;}
.pm-budget-table tr.budget-warn td{background:#fffdf4;}
.pm-budget-kpis .pm-kpi-chip{cursor:default;}
@media(max-width:1350px){.pm-budget-bar{grid-template-columns:repeat(4,minmax(130px,1fr));}}
@media(max-width:760px){.pm-budget-bar{grid-template-columns:1fr;}}

/* PM NOVEST package 14: contracts and supplier performance */
.pm-contract-bar{grid-template-columns:1.2fr .85fr 1.2fr .75fr .75fr .75fr .65fr .7fr 1fr .65fr;}
.pm-score-bar{grid-template-columns:1.2fr 1.2fr .7fr .7fr .7fr 1.3fr .65fr;}
.pm-contract-table{min-width:1120px!important;}
.pm-score-table{min-width:980px!important;}
.pm-contract-table tr.contract-critical td{background:#fff7f7;}
.pm-contract-table tr.contract-warn td{background:#fffdf4;}
.pm-contract-kpis .pm-kpi-chip{cursor:default;}
@media(max-width:1400px){.pm-contract-bar{grid-template-columns:repeat(5,minmax(120px,1fr));}.pm-score-bar{grid-template-columns:repeat(4,minmax(130px,1fr));}}
@media(max-width:760px){.pm-contract-bar,.pm-score-bar{grid-template-columns:1fr;}}

/* PM NOVEST package 15: risk center */
.pm-risk-table{min-width:1080px!important;}
.pm-risk-table tr.risk-critical td{background:#fff7f7;}
.pm-risk-table tr.risk-warn td{background:#fffdf4;}
.pm-risk-kpis .pm-kpi-chip{cursor:default;}
.pm-risk-page .empty{height:56px;text-align:center;color:#166534;font-weight:900;}

/* PM NOVEST package 16: document center */
.pm-document-upload{grid-template-columns:1.5fr .8fr 1.4fr .55fr;}
.pm-document-filter{grid-template-columns:1.5fr .8fr .55fr .55fr;}
.pm-documents-table{min-width:1240px!important;}
.pm-documents-table td b{font-weight:900;}
.pm-documents-table .mini-action{margin-right:4px;}
@media(max-width:1100px){.pm-document-upload,.pm-document-filter{grid-template-columns:1fr 1fr;}}
@media(max-width:760px){.pm-document-upload,.pm-document-filter{grid-template-columns:1fr;}}

/* PM NOVEST package 17: approval route engine */
.pm-route-simulator{grid-template-columns:.7fr .8fr 1fr 1fr .65fr;}
.pm-route-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:8px;margin-bottom:8px;}
.pm-route-card{min-height:220px;}
.route-empty{padding:24px;text-align:center;color:#64748b;font-weight:900;}
.route-levels{display:grid;grid-template-columns:repeat(5,minmax(120px,1fr));gap:6px;padding:8px;}
.route-level{border:1px solid #dbe5ee;border-radius:4px;background:#fff;overflow:hidden;}
.route-level-head{height:30px;display:flex;align-items:center;justify-content:space-between;padding:4px 7px;background:#edf3fa;border-bottom:1px solid #dbe5ee;}
.route-level-head b{font-size:13px;color:#061426;}.route-level-head span{font-size:10px;font-weight:900;color:#475569;}
.route-person{padding:6px 7px;border-bottom:1px solid #eef2f7;}.route-person:last-child{border-bottom:0;}
.route-person b{display:block;font-size:12px;color:#061426;}.route-person small{font-size:11px;color:#667085;}
.pm-rules-table{min-width:1180px!important;}
@media(max-width:1200px){.pm-route-grid{grid-template-columns:1fr}.route-levels{grid-template-columns:repeat(3,minmax(120px,1fr));}.pm-route-simulator{grid-template-columns:repeat(2,minmax(150px,1fr));}}
@media(max-width:760px){.route-levels,.pm-route-simulator{grid-template-columns:1fr;}}

/* PM NOVEST package 18: notification center */
.pm-head-actions{display:flex;gap:6px;align-items:center;margin:0;}
.pm-filter-tabs{display:flex;gap:4px;margin:0 0 8px;}
.pm-filter-tabs a{height:27px;display:inline-flex;align-items:center;padding:0 9px;border:1px solid #cfdbe7;background:#fff;border-radius:4px;font-size:12px;font-weight:900;color:#334155;text-decoration:none;}
.pm-filter-tabs a.active{border-color:#0d5bdb;color:#0d5bdb;background:#f0f6ff;}
.pm-notif-list{display:grid;gap:5px;}
.pm-notif-row{display:grid;grid-template-columns:12px 1fr auto;gap:8px;align-items:center;background:#fff;border:1px solid #dbe5ee;border-left:3px solid #94a3b8;border-radius:4px;padding:7px 9px;text-decoration:none;color:#061426;}
.pm-notif-row.unread{border-left-color:#0d5bdb;background:#f8fbff;}.pm-notif-row.pr-critical{border-left-color:#dc2626}.pm-notif-row.pr-high{border-left-color:#f59e0b}
.pm-notif-row b{font-size:13px;}.pm-notif-row p{margin:2px 0;font-size:12px;color:#475569;}.pm-notif-row small{font-size:11px;color:#64748b;}.pm-notif-row em{font-style:normal;font-size:10px;font-weight:900;text-transform:uppercase;color:#64748b;}
.notif-state{width:8px;height:8px;border-radius:999px;background:#94a3b8}.pm-notif-row.unread .notif-state{background:#0d5bdb}.pm-notif-row.pr-critical .notif-state{background:#dc2626}
.pm-admin-notif-form{display:grid;grid-template-columns:1fr 1fr 1.6fr .8fr .8fr 1fr .6fr;gap:6px;padding:8px;align-items:end;}
.pm-admin-notif-form input,.pm-admin-notif-form select{height:28px!important;min-height:28px!important;font-size:12px!important;}
@media(max-width:1200px){.pm-admin-notif-form{grid-template-columns:repeat(3,minmax(150px,1fr));}}
@media(max-width:760px){.pm-head-actions,.pm-filter-tabs{flex-wrap:wrap}.pm-admin-notif-form{grid-template-columns:1fr;}}

/* PM NOVEST package 19: reports full */
.pm-report-filter{grid-template-columns:.8fr .8fr .55fr .55fr;}
.pm-report-kpis{grid-template-columns:repeat(6,minmax(130px,1fr));}
.pm-report-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:8px;}
.pm-report-table{min-width:1000px!important;margin-bottom:8px;}
.pm-report-page .card{margin-bottom:8px!important;}
@media(max-width:1200px){.pm-report-kpis{grid-template-columns:repeat(3,minmax(130px,1fr));}.pm-report-grid{grid-template-columns:1fr;}}
@media(max-width:760px){.pm-report-filter,.pm-report-kpis{grid-template-columns:1fr;}}

/* PM NOVEST package 20: export center */
.pm-export-grid{display:grid;grid-template-columns:repeat(4,minmax(190px,1fr));gap:8px;}
.pm-export-card{min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:10px;background:#fff;border:1px solid #cfdbe7;border-radius:4px;padding:10px;}
.pm-export-card b{display:block;font-size:13px;color:#061426;}.pm-export-card small{display:block;margin-top:3px;font-size:11px;color:#64748b;}
@media(max-width:1200px){.pm-export-grid{grid-template-columns:repeat(2,minmax(190px,1fr));}}
@media(max-width:700px){.pm-export-grid{grid-template-columns:1fr;}}


/* Package 23: registry chat icon + side dialog */
.v41-user-chat-cell{position:relative;text-align:left!important;padding:6px 6px!important;}
.v41-user-name{font-weight:600;color:#123456;line-height:1.15;margin-bottom:4px;}
.v41-chat-btn{width:24px;height:20px;border:0;background:transparent;color:#0b76df;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;position:relative;border-radius:3px;padding:0;margin:2px 0 0 12px;vertical-align:top;}
.v41-chat-btn .v41-chat-ico{display:inline-flex!important;width:22px!important;height:18px!important;min-width:22px!important;min-height:18px!important;align-items:center;justify-content:center;background:transparent!important;color:inherit!important;position:static!important;padding:0!important;border-radius:0!important;line-height:1!important;}
.v41-chat-btn .v41-chat-ico svg{width:22px!important;height:18px!important;min-width:22px!important;min-height:18px!important;max-width:22px!important;max-height:18px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important;}
.v41-chat-btn:hover{background:transparent;color:#0059b9;}
.v41-chat-btn.has-messages{color:#0b76df;}
.v41-chat-btn.has-messages::after{display:none!important;content:none!important;}
.v41-chat-btn span:not(.v41-chat-ico),.v41-chat-btn .chat-count{display:none!important;}
.registry-chat-backdrop{display:none;position:fixed;inset:0;background:rgba(5,18,34,.22);z-index:980;}
body.registry-chat-open .registry-chat-backdrop{display:block;}
.registry-chat-drawer{position:fixed;top:0;right:0;width:360px;max-width:96vw;height:100vh;background:#fff;border-left:1px solid #c8d4e2;box-shadow:-10px 0 28px rgba(15,35,60,.18);z-index:990;display:flex;flex-direction:column;}
.registry-chat-drawer[hidden]{display:none!important;}
.registry-chat-head{background:#19a974;color:#fff;height:42px;display:flex;align-items:center;justify-content:space-between;padding:0 12px;border-bottom:1px solid rgba(0,0,0,.15);}
.registry-chat-head b{display:block;font-size:13px;line-height:1.1;}
.registry-chat-head span{display:block;font-size:11px;max-width:285px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;opacity:.95;}
.registry-chat-head button{border:0;background:rgba(255,255,255,.18);color:#fff;width:27px;height:27px;border-radius:3px;font-size:20px;line-height:24px;cursor:pointer;}
.registry-chat-participants{padding:9px 12px;border-bottom:1px solid #dde6ef;background:#f7fafc;display:flex;gap:6px;flex-wrap:wrap;align-items:center;}
.registry-chat-participants small{width:100%;color:#526276;font-size:11px;margin-bottom:1px;}
.registry-chat-participants span{background:#ef5b45;color:#fff;border-radius:3px;padding:3px 6px;font-size:11px;font-weight:700;line-height:1.1;}
.registry-chat-messages{flex:1;overflow:auto;background:#fff;padding:16px 12px;}
.registry-chat-msg{border:1px solid #dce6f0;background:#f8fbff;border-radius:5px;padding:7px 8px;margin:0 0 9px;max-width:96%;}
.registry-chat-msg.mine{margin-left:auto;background:#eaf6ff;border-color:#bcdcf8;}
.registry-chat-msg div:first-child{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:4px;}
.registry-chat-msg b{font-size:12px;color:#10243c;}
.registry-chat-msg small{font-size:10px;color:#66788e;white-space:nowrap;}
.registry-chat-msg p{margin:0;font-size:12px;line-height:1.4;color:#10243c;word-break:break-word;}
.registry-chat-form{border-top:1px solid #d5e0ec;background:#f6f9fc;padding:10px 12px;display:block;}
.registry-chat-form textarea{width:100%;height:62px;resize:vertical;border:1px solid #cbd8e6;border-radius:4px;padding:7px 8px;font-size:12px;background:#fff;}
.registry-chat-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px;}
.registry-chat-actions label{font-size:12px;color:#0b65c2;font-weight:700;cursor:pointer;}
.registry-chat-actions .btn{height:30px;padding:0 16px;font-size:12px;}
.empty-chat{color:#7b8795;text-align:center;padding:24px 8px;font-size:12px;}
body.registry-chat-open{overflow:hidden;}
@media(max-width:760px){.registry-chat-drawer{width:100vw}.registry-chat-head span{max-width:78vw}}

/* V72 order expanded positions: compact Cynteka-like child table */
.orders-registry-v59 .position-compact-v72{
  width:100%!important;
  min-width:1050px!important;
  table-layout:fixed!important;
  border-collapse:collapse!important;
  font-size:12px!important;
  background:#fff!important;
}
.orders-registry-v59 .position-compact-v72 col.v72-c-id{width:78px!important;}
.orders-registry-v59 .position-compact-v72 col.v72-c-name{width:310px!important;}
.orders-registry-v59 .position-compact-v72 col.v72-c-category{width:280px!important;}
.orders-registry-v59 .position-compact-v72 col.v72-c-unit{width:88px!important;}
.orders-registry-v59 .position-compact-v72 col.v72-c-qty{width:100px!important;}
.orders-registry-v59 .position-compact-v72 col.v72-c-delivery{width:150px!important;}
.orders-registry-v59 .position-compact-v72 col.v72-c-invoices{width:240px!important;}
.orders-registry-v59 .position-compact-v72 th{
  height:28px!important;
  padding:5px 7px!important;
  background:#f4f8fb!important;
  border-right:1px solid #cbd9e4!important;
  border-bottom:1px solid #cbd9e4!important;
  color:#0f172a!important;
  font-weight:900!important;
  text-align:left!important;
  vertical-align:middle!important;
  white-space:nowrap!important;
}
.orders-registry-v59 .position-compact-v72 th:after{content:'≡';float:right;color:#b8c4ce;font-weight:400;font-size:10px;}
.orders-registry-v59 .position-compact-v72 td{
  height:44px!important;
  padding:6px 7px!important;
  border-right:1px solid #dbe5ec!important;
  border-bottom:1px solid #dbe5ec!important;
  color:#172036!important;
  text-align:left!important;
  vertical-align:middle!important;
  background:#fff!important;
  overflow:hidden!important;
}
.orders-registry-v59 .position-compact-v72 .v72-pos-id{text-align:center!important;color:#0b63c7!important;}
.orders-registry-v59 .position-compact-v72 .v72-pos-id span{display:block;font-weight:800;line-height:16px;}
.orders-registry-v59 .position-compact-v72 .v72-pos-id small{display:block;color:#6b7280;font-size:11px;line-height:13px;}
.orders-registry-v59 .position-compact-v72 .v72-pos-name b{display:block;font-weight:800;color:#111827;line-height:16px;}
.orders-registry-v59 .position-compact-v72 .v72-pos-name em{display:block;margin-top:2px;color:#64748b;font-style:italic;font-size:11px;line-height:14px;}
.orders-registry-v59 .position-compact-v72 .v72-pos-name small{display:block;margin-top:2px;color:#64748b;font-size:11px;line-height:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.orders-registry-v59 .position-compact-v72 .v72-pos-unit,
.orders-registry-v59 .position-compact-v72 .v72-pos-qty,
.orders-registry-v59 .position-compact-v72 .v72-pos-delivery{text-align:center!important;}
.orders-registry-v59 .position-compact-v72 .v72-pos-qty b{font-weight:900;}
.orders-registry-v59 .position-compact-v72 .v72-quote-list{display:flex;align-items:center;gap:5px;flex-wrap:wrap;justify-content:flex-start;}
.orders-registry-v59 .position-compact-v72 .v72-quote-chip{display:inline-flex;align-items:center;gap:5px;min-height:20px;padding:2px 6px;border:1px solid #b7c8da;border-radius:4px;background:#eef6ff;color:#0759b8;text-decoration:none;font-size:11px;line-height:14px;}
.orders-registry-v59 .position-compact-v72 .v72-quote-chip.approved{background:#eefbf1;border-color:#bde5c7;color:#08792b;}
.orders-registry-v59 .position-compact-v72 .v72-quote-chip b{font-weight:800;color:inherit;}
.orders-registry-v59 .position-compact-v72 .v72-quote-list em{font-style:normal;color:#64748b;font-size:11px;}
.orders-registry-v59 .positions-row td.v46-positions-host{border-top:2px solid #1f7ae0!important;padding:0!important;background:#fff!important;}


/* v1.1.9 - focused fix: order position dropdown must be truly compact */
.orders-registry-v59 .positions-row td.v46-positions-host{
  padding:0!important;
  border-top:1px solid #1f7ae0!important;
  background:#fff!important;
}
.orders-registry-v59 .position-compact-v72{
  width:100%!important;
  min-width:1280px!important;
  table-layout:fixed!important;
  border-collapse:collapse!important;
  font-size:11px!important;
  line-height:1.15!important;
}
.orders-registry-v59 .position-compact-v72 th{
  height:26px!important;
  min-height:26px!important;
  padding:2px 6px!important;
  line-height:14px!important;
  vertical-align:middle!important;
  white-space:nowrap!important;
  font-size:11px!important;
  font-weight:800!important;
}
.orders-registry-v59 .position-compact-v72 td{
  height:30px!important;
  min-height:30px!important;
  padding:2px 6px!important;
  line-height:14px!important;
  vertical-align:middle!important;
  background:#fff!important;
}
.orders-registry-v59 .position-compact-v72 tr{
  height:30px!important;
  min-height:30px!important;
}
.orders-registry-v59 .position-compact-v72 col.v72-c-id{width:70px!important;}
.orders-registry-v59 .position-compact-v72 col.v72-c-name{width:330px!important;}
.orders-registry-v59 .position-compact-v72 col.v72-c-category{width:285px!important;}
.orders-registry-v59 .position-compact-v72 col.v72-c-unit{width:76px!important;}
.orders-registry-v59 .position-compact-v72 col.v72-c-qty{width:90px!important;}
.orders-registry-v59 .position-compact-v72 col.v72-c-delivery{width:145px!important;}
.orders-registry-v59 .position-compact-v72 col.v72-c-invoices{width:230px!important;}
.orders-registry-v59 .position-compact-v72 .v72-pos-id{
  padding:0 4px!important;
  text-align:center!important;
  white-space:nowrap!important;
}
.orders-registry-v59 .position-compact-v72 .v72-id-line{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  margin:0!important;
  padding:0!important;
  height:22px!important;
  line-height:14px!important;
}
.orders-registry-v59 .position-compact-v72 .v72-id-line span{
  display:inline!important;
  font-weight:800!important;
  color:#0b63c7!important;
  line-height:14px!important;
}
.orders-registry-v59 .position-compact-v72 .v72-id-line input{
  width:13px!important;
  height:13px!important;
  margin:0!important;
  padding:0!important;
}
.orders-registry-v59 .position-compact-v72 .v72-id-line small{
  display:inline!important;
  color:#64748b!important;
  font-size:10px!important;
  line-height:12px!important;
}
.orders-registry-v59 .position-compact-v72 .v72-pos-name b,
.orders-registry-v59 .position-compact-v72 .v72-pos-name em,
.orders-registry-v59 .position-compact-v72 .v72-pos-name small{
  display:inline!important;
  margin:0!important;
  line-height:14px!important;
  vertical-align:baseline!important;
}
.orders-registry-v59 .position-compact-v72 .v72-pos-name em:before,
.orders-registry-v59 .position-compact-v72 .v72-pos-name small:before{content:' · ';color:#94a3b8;}
.orders-registry-v59 .position-compact-v72 .v72-pos-category,
.orders-registry-v59 .position-compact-v72 .v72-pos-unit,
.orders-registry-v59 .position-compact-v72 .v72-pos-qty,
.orders-registry-v59 .position-compact-v72 .v72-pos-delivery,
.orders-registry-v59 .position-compact-v72 .v72-pos-invoices{
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.orders-registry-v59 .position-compact-v72 .v72-pos-delivery{text-align:center!important;}
.orders-registry-v59 .position-compact-v72 .v72-pos-qty b{font-weight:800!important;}
.orders-registry-v59 .position-compact-v72 .v72-quote-list{
  display:flex!important;
  align-items:center!important;
  gap:4px!important;
  flex-wrap:nowrap!important;
  overflow:hidden!important;
}
.orders-registry-v59 .position-compact-v72 .v72-quote-chip{
  min-height:16px!important;
  height:18px!important;
  padding:1px 5px!important;
  font-size:10px!important;
  line-height:12px!important;
  border-radius:3px!important;
}

/* v1.2.0 - strict compact height for expanded order positions only */
html body .v41-procurement-registry.orders-registry-v59 tr.positions-row > td.v46-positions-host{
  padding:0!important;
  margin:0!important;
  line-height:1!important;
  background:#fff!important;
  border-top:1px solid #1f7ae0!important;
}
html body .v41-procurement-registry.orders-registry-v59 table.v46-position-table.position-compact-v72{
  width:100%!important;
  border-collapse:collapse!important;
  border-spacing:0!important;
  table-layout:fixed!important;
  font-size:11px!important;
  line-height:1!important;
  margin:0!important;
}
html body .v41-procurement-registry.orders-registry-v59 table.v46-position-table.position-compact-v72 thead,
html body .v41-procurement-registry.orders-registry-v59 table.v46-position-table.position-compact-v72 thead tr{
  height:22px!important;
  min-height:22px!important;
  max-height:22px!important;
}
html body .v41-procurement-registry.orders-registry-v59 table.v46-position-table.position-compact-v72 thead th{
  height:22px!important;
  min-height:22px!important;
  max-height:22px!important;
  padding:0 5px!important;
  line-height:22px!important;
  vertical-align:middle!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  font-size:11px!important;
  font-weight:800!important;
  text-align:left!important;
  background:#edf4f8!important;
  border-right:1px solid #cbd9e4!important;
  border-bottom:1px solid #cbd9e4!important;
}
html body .v41-procurement-registry.orders-registry-v59 table.v46-position-table.position-compact-v72 thead th:after{
  content:''!important;
  display:none!important;
}
html body .v41-procurement-registry.orders-registry-v59 table.v46-position-table.position-compact-v72 tbody tr{
  height:24px!important;
  min-height:24px!important;
  max-height:24px!important;
}
html body .v41-procurement-registry.orders-registry-v59 table.v46-position-table.position-compact-v72 tbody td{
  height:24px!important;
  min-height:24px!important;
  max-height:24px!important;
  padding:1px 5px!important;
  line-height:20px!important;
  vertical-align:middle!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  font-size:11px!important;
  background:#fff!important;
  border-right:1px solid #dbe5ec!important;
  border-bottom:1px solid #dbe5ec!important;
}
html body .v41-procurement-registry.orders-registry-v59 table.v46-position-table.position-compact-v72 .v72-id-line{
  height:20px!important;
  min-height:20px!important;
  line-height:20px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:4px!important;
}
html body .v41-procurement-registry.orders-registry-v59 table.v46-position-table.position-compact-v72 .v72-pos-name b,
html body .v41-procurement-registry.orders-registry-v59 table.v46-position-table.position-compact-v72 .v72-pos-name em,
html body .v41-procurement-registry.orders-registry-v59 table.v46-position-table.position-compact-v72 .v72-pos-name small{
  display:inline!important;
  line-height:20px!important;
  margin:0!important;
  white-space:nowrap!important;
}


/* v1.2.1 - order registry header/filter/sort true compact, Cynteka-like geometry */
html body.pm-style-shell .v41-procurement-registry.orders-registry-v59{
  background:#eef3f6!important;
  border-top:2px solid #0b67d1!important;
}
html body.pm-style-shell .orders-registry-v59 .v41-searchbar{
  height:48px!important;
  min-height:48px!important;
  padding:6px 10px!important;
  border-bottom:1px solid #cbd9e4!important;
}
html body.pm-style-shell .orders-registry-v59 .v41-search-form select,
html body.pm-style-shell .orders-registry-v59 .v41-search-form input,
html body.pm-style-shell .orders-registry-v59 .v41-search-form button,
html body.pm-style-shell .orders-registry-v59 .v41-create-btn{
  height:28px!important;
  min-height:28px!important;
  font-size:11px!important;
  line-height:26px!important;
}
html body.pm-style-shell .orders-registry-v59 .v41-quick-filter-line{
  height:28px!important;
  min-height:28px!important;
  grid-template-columns:210px 300px 390px 1fr 80px!important;
  background:#fff!important;
}
html body.pm-style-shell .orders-registry-v59 .v41-quick-filter-line a{
  height:28px!important;
  min-height:28px!important;
  font-size:11px!important;
  padding:0 10px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
html body.pm-style-shell .orders-registry-v59 .v41-actionbar{
  height:38px!important;
  padding:6px 10px!important;
  align-items:center!important;
  background:#eef3f6!important;
}
html body.pm-style-shell .orders-registry-v59 .v41-tb-btn{
  height:24px!important;
  min-height:24px!important;
  padding:0 8px!important;
  font-size:11px!important;
  line-height:22px!important;
}
html body.pm-style-shell .orders-registry-v59 .v41-count-line{
  height:24px!important;
  min-height:24px!important;
  padding:4px 10px!important;
  font-size:12px!important;
  display:flex!important;
  align-items:center!important;
}
html body.pm-style-shell .orders-registry-v59 .v41-table-wrap{
  margin:0 10px 32px!important;
  border:1px solid #0b67d1!important;
  background:#fff!important;
  overflow:auto!important;
  max-width:calc(100vw - 22px)!important;
}
html body.pm-style-shell .orders-registry-v59 .v41-registry-table.cynteka-order-list{
  min-width:1660px!important;
  table-layout:fixed!important;
  border-collapse:collapse!important;
  font-size:11px!important;
  line-height:1.15!important;
}
html body.pm-style-shell .orders-registry-v59 .v41-registry-table col.v41-c-id{width:76px!important;}
html body.pm-style-shell .orders-registry-v59 .v41-registry-table col.v41-c-title{width:300px!important;}
html body.pm-style-shell .orders-registry-v59 .v41-registry-table col.v41-c-project{width:260px!important;}
html body.pm-style-shell .orders-registry-v59 .v41-registry-table col.v41-c-requester{width:126px!important;}
html body.pm-style-shell .orders-registry-v59 .v41-registry-table col.v41-c-performer{width:126px!important;}
html body.pm-style-shell .orders-registry-v59 .v41-registry-table col.v41-c-acceptors{width:130px!important;}
html body.pm-style-shell .orders-registry-v59 .v41-registry-table col.v41-c-deadline{width:150px!important;}
html body.pm-style-shell .orders-registry-v59 .v41-registry-table col.v41-c-notes{width:130px!important;}
html body.pm-style-shell .orders-registry-v59 .v41-registry-table col.v41-c-ind{width:34px!important;}
html body.pm-style-shell .orders-registry-v59 .v41-registry-table col.v41-c-events{width:145px!important;}
html body.pm-style-shell .orders-registry-v59 .v41-registry-table col.v41-c-menu{width:42px!important;}
html body.pm-style-shell .orders-registry-v59 .v41-registry-table thead th{
  position:relative!important;
  height:54px!important;
  min-height:54px!important;
  max-height:54px!important;
  padding:20px 16px 5px 6px!important;
  line-height:13px!important;
  vertical-align:bottom!important;
  background:#eaf2f9!important;
  border-right:1px solid #cbd9e4!important;
  border-bottom:1px solid #b8c9da!important;
  font-size:11px!important;
  font-weight:900!important;
  color:#0f172a!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  user-select:none!important;
}
html body.pm-style-shell .orders-registry-v59 .v41-registry-table thead th:after,
html body.pm-style-shell .orders-registry-v59 .v41-registry-table thead th:before{
  content:none!important;
  display:none!important;
}
html body.pm-style-shell .orders-registry-v59 .v41-registry-table thead th .v73-th-label{
  display:block!important;
  width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
html body.pm-style-shell .orders-registry-v59 .v41-registry-table thead th.v41-vertical-head{
  height:78px!important;
  min-height:78px!important;
  max-height:78px!important;
  padding:17px 0 5px!important;
  text-align:center!important;
  vertical-align:bottom!important;
  writing-mode:horizontal-tb!important;
  transform:none!important;
  background:#e5edf4!important;
  overflow:hidden!important;
}
html body.pm-style-shell .orders-registry-v59 .v41-registry-table thead th.v41-vertical-head .v73-th-label{
  position:absolute!important;
  left:50%!important;
  bottom:6px!important;
  width:18px!important;
  max-height:55px!important;
  transform:translateX(-50%) rotate(180deg)!important;
  writing-mode:vertical-rl!important;
  font-size:10.5px!important;
  line-height:1!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:clip!important;
  text-align:left!important;
}
html body.pm-style-shell .orders-registry-v59 .v73-filter-btn,
html body.pm-style-shell .orders-registry-v59 .v73-sort-btn{
  position:absolute!important;
  top:4px!important;
  width:15px!important;
  height:15px!important;
  min-height:15px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  color:#9aa8b7!important;
  display:grid!important;
  place-items:center!important;
  cursor:pointer!important;
  opacity:.95!important;
  line-height:1!important;
  z-index:5!important;
}
html body.pm-style-shell .orders-registry-v59 .v73-sort-btn{left:4px!important;}
html body.pm-style-shell .orders-registry-v59 .v73-filter-btn{right:3px!important;}
html body.pm-style-shell .orders-registry-v59 .v41-vertical-head .v73-sort-btn{left:50%!important;transform:translateX(-15px)!important;}
html body.pm-style-shell .orders-registry-v59 .v41-vertical-head .v73-filter-btn{right:50%!important;transform:translateX(16px)!important;}
html body.pm-style-shell .orders-registry-v59 .v73-filter-btn:hover,
html body.pm-style-shell .orders-registry-v59 .v73-sort-btn:hover,
html body.pm-style-shell .orders-registry-v59 th.v73-filtered .v73-filter-btn,
html body.pm-style-shell .orders-registry-v59 th.v73-sorted .v73-sort-btn{
  color:#0b67d1!important;
}
html body.pm-style-shell .orders-registry-v59 .v73-sort-btn:before{content:'↕';font-size:11px!important;line-height:1;}
html body.pm-style-shell .orders-registry-v59 th.v73-sort-asc .v73-sort-btn:before{content:'▲';font-size:9px!important;}
html body.pm-style-shell .orders-registry-v59 th.v73-sort-desc .v73-sort-btn:before{content:'▼';font-size:9px!important;}
html body.pm-style-shell .orders-registry-v59 .v73-filter-btn:before{
  content:'';
  width:11px;height:11px;display:block;
  background:currentColor;
  clip-path:polygon(0 0,100% 0,63% 45%,63% 100%,37% 100%,37% 45%);
}
html body.pm-style-shell .orders-registry-v59 .v73-filter-popover{
  position:fixed!important;
  z-index:9999!important;
  width:220px!important;
  background:#fff!important;
  border:1px solid #9bb5ce!important;
  box-shadow:0 8px 22px rgba(15,23,42,.18)!important;
  padding:7px!important;
  border-radius:3px!important;
}
html body.pm-style-shell .orders-registry-v59 .v73-filter-popover input{
  width:100%!important;
  height:26px!important;
  min-height:26px!important;
  font-size:11px!important;
  border:1px solid #b9c9d8!important;
  padding:3px 6px!important;
}
html body.pm-style-shell .orders-registry-v59 .v73-filter-popover .v73-pop-actions{
  display:flex!important;
  justify-content:flex-end!important;
  gap:5px!important;
  margin-top:6px!important;
}
html body.pm-style-shell .orders-registry-v59 .v73-filter-popover button{
  height:22px!important;
  min-height:22px!important;
  padding:0 7px!important;
  border:1px solid #b9c9d8!important;
  background:#f8fbff!important;
  border-radius:2px!important;
  font-size:11px!important;
  cursor:pointer!important;
}
html body.pm-style-shell .orders-registry-v59 .v41-registry-table tbody tr.v41-order-row td{
  height:82px!important;
  padding:5px 6px!important;
  font-size:11px!important;
  line-height:1.12!important;
  vertical-align:top!important;
  overflow:hidden!important;
}
html body.pm-style-shell .orders-registry-v59 .v41-id-cell{
  line-height:1.25!important;
  text-align:center!important;
}
html body.pm-style-shell .orders-registry-v59 .v41-refresh{font-size:15px!important;margin-top:3px!important;line-height:14px!important;}
html body.pm-style-shell .orders-registry-v59 .v41-title-cell a,
html body.pm-style-shell .orders-registry-v59 .v41-project-cell a{
  display:inline-block!important;
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  vertical-align:top!important;
}
html body.pm-style-shell .orders-registry-v59 .v41-title-cell em{font-size:10px!important;margin-left:4px!important;}
html body.pm-style-shell .orders-registry-v59 .v41-pos-toggle{
  margin-top:18px!important;
  font-size:11px!important;
  line-height:14px!important;
}
html body.pm-style-shell .orders-registry-v59 .stamp{
  font-size:22px!important;
  padding:2px 14px!important;
  border-width:3px!important;
}
html body.pm-style-shell .orders-registry-v59 .v41-budget-tag{font-size:10px!important;padding:1px 5px!important;line-height:14px!important;}
html body.pm-style-shell .orders-registry-v59 .v41-date-cell{font-size:11px!important;line-height:1.15!important;}
html body.pm-style-shell .orders-registry-v59 .v41-notes-cell{white-space:nowrap!important;text-overflow:ellipsis!important;}
html body.pm-style-shell .orders-registry-v59 .v41-led{
  width:18px!important;
  height:60px!important;
  border-radius:4px!important;
  padding-top:4px!important;
  font-size:11px!important;
}
html body.pm-style-shell .orders-registry-v59 .v41-ind-cell{padding:4px 2px!important;}
html body.pm-style-shell .orders-registry-v59 .row-menu-btn{width:24px!important;height:24px!important;}


/* v1.2.2 - fix order registry header filter popup and compact header geometry */
html body.pm-style-shell .orders-registry-v59 .v41-count-line{
  height:20px!important;min-height:20px!important;padding:2px 10px!important;font-size:11px!important;line-height:16px!important;
}
html body.pm-style-shell .orders-registry-v59 .v41-table-wrap{
  margin-top:0!important;background:#fff!important;overflow:auto!important;
}
html body.pm-style-shell .orders-registry-v59 .v41-registry-table.cynteka-order-list thead th{
  height:40px!important;min-height:40px!important;max-height:40px!important;
  padding:15px 17px 4px 6px!important;line-height:11px!important;
  vertical-align:bottom!important;background:#eaf2f9!important;
}
html body.pm-style-shell .orders-registry-v59 .v41-registry-table.cynteka-order-list thead th.v41-vertical-head{
  height:60px!important;min-height:60px!important;max-height:60px!important;
  padding:14px 0 4px!important;background:#e5edf4!important;
}
html body.pm-style-shell .orders-registry-v59 .v41-registry-table.cynteka-order-list thead th.v41-vertical-head .v73-th-label{
  bottom:4px!important;max-height:42px!important;font-size:10px!important;line-height:1!important;
}
html body.pm-style-shell .orders-registry-v59 .v73-sort-btn,
html body.pm-style-shell .orders-registry-v59 .v73-filter-btn{
  top:2px!important;width:13px!important;height:13px!important;min-height:13px!important;
}
html body.pm-style-shell .orders-registry-v59 .v73-sort-btn{left:3px!important;}
html body.pm-style-shell .orders-registry-v59 .v73-filter-btn{right:3px!important;}
html body.pm-style-shell .orders-registry-v59 .v73-filter-btn:before{width:9px!important;height:9px!important;}
html body.pm-style-shell .orders-registry-v59 .v73-sort-btn:before{font-size:9px!important;}
/* Popover is appended to body, so it MUST NOT be scoped under .orders-registry-v59 */
body.pm-style-shell .v73-filter-popover{
  position:fixed!important;z-index:2147483000!important;width:214px!important;background:#fff!important;
  border:1px solid #7da3c7!important;box-shadow:0 8px 20px rgba(15,23,42,.22)!important;
  padding:6px!important;border-radius:3px!important;display:block!important;
}
body.pm-style-shell .v73-filter-popover input{
  width:100%!important;height:24px!important;min-height:24px!important;box-sizing:border-box!important;
  font-size:11px!important;border:1px solid #9fb6cc!important;padding:2px 6px!important;background:#fff!important;color:#111827!important;
}
body.pm-style-shell .v73-filter-popover .v73-pop-actions{
  display:flex!important;justify-content:flex-end!important;gap:5px!important;margin-top:5px!important;
}
body.pm-style-shell .v73-filter-popover button{
  height:21px!important;min-height:21px!important;padding:0 7px!important;border:1px solid #b9c9d8!important;
  background:#f8fbff!important;border-radius:2px!important;font-size:11px!important;line-height:19px!important;cursor:pointer!important;color:#1f2937!important;
}
body.pm-style-shell .v73-filter-popover button:hover{background:#eaf2ff!important;border-color:#0b67d1!important;color:#0b67d1!important;}
html body.pm-style-shell .orders-registry-v59 .v41-registry-table.cynteka-order-list tbody tr.v41-order-row td{
  height:74px!important;padding:4px 5px!important;line-height:1.1!important;
}


/* v1.2.3 - registry width fix + remove nested position-table filters */
html, body{max-width:100%!important;overflow-x:hidden!important;}
body.pm-style-shell .app-shell,
body.pm-style-shell .main,
body.pm-style-shell .content,
body.pm-style-shell main{max-width:100vw!important;overflow-x:hidden!important;}
html body.pm-style-shell .orders-registry-v59{
  width:100%!important;
  max-width:100%!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
html body.pm-style-shell .orders-registry-v59 .v41-table-wrap{
  width:auto!important;
  max-width:100%!important;
  margin-left:10px!important;
  margin-right:10px!important;
  overflow-x:auto!important;
  overflow-y:visible!important;
  box-sizing:border-box!important;
}
html body.pm-style-shell .orders-registry-v59 .v41-registry-table.cynteka-order-list{
  width:max-content!important;
  min-width:1780px!important;
  max-width:none!important;
}
/* Nested material/position list must be plain: no filter/sort icons, no big header controls */
html body.pm-style-shell .orders-registry-v59 .position-compact-v72 thead th .v73-sort-btn,
html body.pm-style-shell .orders-registry-v59 .position-compact-v72 thead th .v73-filter-btn{
  display:none!important;
}
html body.pm-style-shell .orders-registry-v59 .position-compact-v72 thead th .v73-th-label{
  display:inline!important;
  width:auto!important;
  overflow:visible!important;
  white-space:nowrap!important;
}
html body.pm-style-shell .orders-registry-v59 .position-compact-v72 thead th{
  height:22px!important;
  min-height:22px!important;
  max-height:22px!important;
  padding:2px 6px!important;
  line-height:16px!important;
  background:#eef4f8!important;
  vertical-align:middle!important;
}
html body.pm-style-shell .orders-registry-v59 .position-compact-v72 thead th:before,
html body.pm-style-shell .orders-registry-v59 .position-compact-v72 thead th:after{
  content:none!important;
  display:none!important;
}
html body.pm-style-shell .orders-registry-v59 .position-compact-v72 tbody td{
  height:22px!important;
  min-height:22px!important;
  padding:2px 6px!important;
  line-height:16px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
html body.pm-style-shell .orders-registry-v59 .position-compact-v72 .v72-pos-name b,
html body.pm-style-shell .orders-registry-v59 .position-compact-v72 .v72-pos-name em,
html body.pm-style-shell .orders-registry-v59 .position-compact-v72 .v72-pos-name small{
  display:inline!important;
  line-height:16px!important;
  margin:0 4px 0 0!important;
}


/* v1.2.4 - fix order row action menu placement + stretch registry table to right border */
html body.pm-style-shell .orders-registry-v59 .v41-table-wrap{
  width:calc(100% - 20px)!important;
  max-width:calc(100% - 20px)!important;
  margin-left:10px!important;
  margin-right:10px!important;
  overflow:auto!important;
  background:#fff!important;
  box-sizing:border-box!important;
}
html body.pm-style-shell .orders-registry-v59 .v41-registry-table.cynteka-order-list{
  width:100%!important;
  min-width:1780px!important;
  max-width:none!important;
  table-layout:fixed!important;
}
html body.pm-style-shell .orders-registry-v59 .v41-registry-table col.v41-c-events{
  width:auto!important;
  min-width:130px!important;
}
html body.pm-style-shell .orders-registry-v59 .v41-registry-table col.v41-c-menu{
  width:44px!important;
  min-width:44px!important;
  max-width:44px!important;
}
/* menu must open as floating panel near the 3-dot button, never inside/under the table cell */
html body.pm-style-shell .orders-registry-v59 .row-menu-cell{
  position:relative!important;
  overflow:visible!important;
  width:44px!important;
  min-width:44px!important;
  max-width:44px!important;
  text-align:center!important;
  padding:3px!important;
}
html body.pm-style-shell .orders-registry-v59 .row-menu-btn{
  width:24px!important;
  height:24px!important;
  min-width:24px!important;
  min-height:24px!important;
  margin:0!important;
  position:relative!important;
  z-index:4!important;
}
html body.pm-style-shell .orders-registry-v59 .row-menu{
  position:fixed!important;
  right:auto!important;
  top:auto!important;
  left:auto;
  z-index:2147482500!important;
  min-width:224px!important;
  max-width:280px!important;
  display:none!important;
  background:#fff!important;
  border:1px solid #8aa8c5!important;
  box-shadow:0 12px 24px rgba(15,23,42,.22)!important;
  border-radius:3px!important;
  padding:5px!important;
  text-align:left!important;
}
html body.pm-style-shell .orders-registry-v59 .row-menu-cell:hover .row-menu,
html body.pm-style-shell .orders-registry-v59 .row-menu-cell:focus-within .row-menu{
  display:none!important;
}
html body.pm-style-shell .orders-registry-v59 .row-menu.open{
  display:grid!important;
  gap:3px!important;
}
html body.pm-style-shell .orders-registry-v59 .row-menu-title{
  font-size:11px!important;
  padding:5px 7px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
html body.pm-style-shell .orders-registry-v59 .row-menu a,
html body.pm-style-shell .orders-registry-v59 .row-menu button{
  min-height:25px!important;
  padding:4px 7px!important;
  font-size:11px!important;
  line-height:15px!important;
}


/* v1.2.5 - focused fix: 3-dot row menu click must open; no under-cell dropdown */
html body.pm-style-shell .orders-registry-v59 .row-menu-cell{
  position:relative!important;
  overflow:visible!important;
}
html body.pm-style-shell .orders-registry-v59 .row-menu{
  position:fixed!important;
  right:auto!important;
  bottom:auto!important;
  left:auto;
  top:auto;
  z-index:2147483000!important;
  min-width:224px!important;
  max-width:280px!important;
  display:none!important;
  background:#fff!important;
  border:1px solid #8aa8c5!important;
  box-shadow:0 12px 24px rgba(15,23,42,.22)!important;
  border-radius:3px!important;
  padding:5px!important;
  text-align:left!important;
}
html body.pm-style-shell .orders-registry-v59 .row-menu-cell:hover .row-menu,
html body.pm-style-shell .orders-registry-v59 .row-menu-cell:focus-within .row-menu{
  display:none!important;
}
html body.pm-style-shell .orders-registry-v59 .row-menu.open{
  display:grid!important;
  gap:3px!important;
}

/* v1.2.8: chat inline notice, no browser alert */
.registry-chat-notice{margin:4px 0 0;padding:6px 8px;border:1px solid #f2c2c2;background:#fff4f4;color:#a12626;font-size:12px;line-height:1.25;border-radius:4px;}
.registry-chat-notice[hidden]{display:none!important;}
.registry-chat-notice.ok{border-color:#b7e2c4;background:#f1fff5;color:#167235;}


/* v1.3.0 - chat upload warning stays inside drawer */
.registry-chat-notice.warning{display:block;background:#fff8e1;border:1px solid #f0c36d;color:#7a4b00;border-radius:3px;padding:6px 8px;margin:6px 0;font-size:12px;}


/* PM NOVEST HOTFIX: compact profile page, no image generation, no module logic change */
body.pm-style-shell .profile-wrap{
  width:100%!important;
  max-width:1180px!important;
  margin:0 auto!important;
  padding:4px 0 28px!important;
}
body.pm-style-shell .profile-tabs{
  height:31px!important;
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  margin:0 0 8px!important;
  border-bottom:1px solid #cbd9e4!important;
}
body.pm-style-shell .profile-tabs a{
  height:27px!important;
  padding:0 12px!important;
  border:1px solid #cbd9e4!important;
  border-bottom:0!important;
  border-radius:4px 4px 0 0!important;
  background:#f7fbff!important;
  color:#26364d!important;
  font-size:12px!important;
  font-weight:800!important;
  line-height:27px!important;
}
body.pm-style-shell .profile-tabs a.active{
  background:#fff!important;
  color:#0d5bdb!important;
  border-top:2px solid #0d5bdb!important;
}
body.pm-style-shell .profile-form{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(300px,.55fr)!important;
  gap:8px!important;
  align-items:start!important;
}
body.pm-style-shell .profile-form .profile-section:first-of-type{
  grid-column:1 / -1!important;
}
body.pm-style-shell .profile-section{
  background:#fff!important;
  border:1px solid #cbd9e4!important;
  border-radius:4px!important;
  padding:8px!important;
  margin:0!important;
  box-shadow:none!important;
  min-width:0!important;
}
body.pm-style-shell .profile-section-title{
  height:25px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
  padding:0 0 6px!important;
  margin:0 0 7px!important;
  border-bottom:1px solid #e0e8f0!important;
}
body.pm-style-shell .profile-section-title h2{
  margin:0!important;
  font-size:14px!important;
  line-height:1!important;
  font-weight:900!important;
  color:#0b1b34!important;
}
body.pm-style-shell .profile-section-title span{
  width:18px!important;
  height:18px!important;
  display:grid!important;
  place-items:center!important;
  color:#6b7b91!important;
  overflow:hidden!important;
}
body.pm-style-shell .profile-main-grid{
  display:grid!important;
  grid-template-columns:106px minmax(0,1fr)!important;
  gap:10px!important;
  align-items:start!important;
  margin:0!important;
}
body.pm-style-shell .profile-photo-box{
  display:grid!important;
  gap:5px!important;
  align-content:start!important;
  width:106px!important;
}
body.pm-style-shell .avatar-upload{
  width:82px!important;
  height:82px!important;
  border:1px solid #cbd9e4!important;
  border-radius:6px!important;
  background:#f7fbff!important;
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
  cursor:pointer!important;
}
body.pm-style-shell .avatar-upload img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  display:block!important;
}
body.pm-style-shell .avatar-upload span{
  font-size:22px!important;
  font-weight:900!important;
  color:#0d5bdb!important;
}
body.pm-style-shell .avatar-upload input{display:none!important;}
body.pm-style-shell .profile-photo-box small{
  font-size:10.5px!important;
  line-height:1.2!important;
  color:#506175!important;
}
body.pm-style-shell .profile-fields{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(140px,1fr))!important;
  gap:7px 8px!important;
  margin:0!important;
}
body.pm-style-shell .profile-two{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:7px 8px!important;
  margin:0!important;
}
body.pm-style-shell .profile-four{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(120px,1fr))!important;
  gap:7px 8px!important;
  margin:0!important;
}
body.pm-style-shell .email-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
body.pm-style-shell .field.compact{
  display:flex!important;
  flex-direction:column-reverse!important;
  gap:3px!important;
  min-width:0!important;
}
body.pm-style-shell .field.compact.full{
  grid-column:span 2!important;
}
body.pm-style-shell .field.compact small{
  display:block!important;
  margin:0!important;
  color:#52657b!important;
  font-size:10.5px!important;
  font-weight:700!important;
  line-height:1.1!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
body.pm-style-shell .field.compact input,
body.pm-style-shell .field.compact select,
body.pm-style-shell .field.compact textarea{
  width:100%!important;
  height:27px!important;
  min-height:27px!important;
  padding:3px 6px!important;
  border:1px solid #b9c9d8!important;
  border-radius:3px!important;
  background:#fff!important;
  color:#0b1b34!important;
  font-size:12px!important;
  box-sizing:border-box!important;
}
body.pm-style-shell .field.compact.locked input,
body.pm-style-shell .field.compact input:disabled{
  background:#edf4fb!important;
  color:#344258!important;
}
body.pm-style-shell .notice{
  min-height:28px!important;
  padding:6px 8px!important;
  margin:0 0 8px!important;
  font-size:12px!important;
}
body.pm-style-shell .profile-sticky-actions{
  grid-column:1 / -1!important;
  position:static!important;
  display:flex!important;
  justify-content:flex-end!important;
  gap:6px!important;
  padding:8px!important;
  margin:0!important;
  background:#fff!important;
  border:1px solid #cbd9e4!important;
  border-radius:4px!important;
}
body.pm-style-shell .security-form .profile-section{
  grid-column:1 / -1!important;
}
body.pm-style-shell .security-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(150px,1fr))!important;
  gap:8px!important;
  align-items:end!important;
}
body.pm-style-shell .security-grid .field input{
  width:100%!important;
  height:27px!important;
}
@media(max-width:1050px){
  body.pm-style-shell .profile-form{grid-template-columns:1fr!important;}
  body.pm-style-shell .profile-fields{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  body.pm-style-shell .profile-four,body.pm-style-shell .email-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:700px){
  body.pm-style-shell .profile-main-grid{grid-template-columns:1fr!important;}
  body.pm-style-shell .profile-photo-box{width:auto!important;}
  body.pm-style-shell .profile-fields,
  body.pm-style-shell .profile-two,
  body.pm-style-shell .profile-four,
  body.pm-style-shell .email-grid,
  body.pm-style-shell .security-grid{grid-template-columns:1fr!important;}
  body.pm-style-shell .field.compact.full{grid-column:auto!important;}
}

/* PM NOVEST HOTFIX: profile full-width dense enterprise layout (no image generation) */
body.pm-style-shell .profile-wrap{
  width:calc(100vw - 24px)!important;
  max-width:none!important;
  margin:8px 12px 18px!important;
  padding:0!important;
  box-sizing:border-box!important;
}
body.pm-style-shell .profile-tabs{
  margin:0 0 6px!important;
  padding:0!important;
}
body.pm-style-shell .profile-form{
  width:100%!important;
  max-width:none!important;
  display:grid!important;
  grid-template-columns:repeat(12,minmax(0,1fr))!important;
  gap:7px!important;
  align-items:start!important;
}
body.pm-style-shell .profile-form .profile-section{
  margin:0!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
body.pm-style-shell .profile-form .profile-section:nth-of-type(1){grid-column:1 / -1!important;}
body.pm-style-shell .profile-form .profile-section:nth-of-type(2){grid-column:1 / span 6!important;}
body.pm-style-shell .profile-form .profile-section:nth-of-type(3){grid-column:7 / span 6!important;}
body.pm-style-shell .profile-form .profile-section:nth-of-type(4){grid-column:1 / span 6!important;}
body.pm-style-shell .profile-form .profile-section:nth-of-type(5){grid-column:7 / span 6!important;}
body.pm-style-shell .profile-form .profile-section:nth-of-type(6){grid-column:1 / span 6!important;}
body.pm-style-shell .profile-form .profile-sticky-actions{
  grid-column:7 / span 6!important;
  align-self:end!important;
  min-height:53px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
}
body.pm-style-shell .profile-main-grid{
  grid-template-columns:96px minmax(0,1fr)!important;
  gap:8px!important;
}
body.pm-style-shell .profile-photo-box{width:96px!important;}
body.pm-style-shell .avatar-upload{width:74px!important;height:74px!important;}
body.pm-style-shell .profile-fields{
  grid-template-columns:repeat(6,minmax(120px,1fr))!important;
  gap:6px 7px!important;
}
body.pm-style-shell .profile-fields .field.compact.full{grid-column:span 3!important;}
body.pm-style-shell .profile-two{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;}
body.pm-style-shell .profile-four{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important;}
body.pm-style-shell .email-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
body.pm-style-shell .profile-section-title{height:22px!important;margin:0 0 5px!important;padding:0 0 4px!important;}
body.pm-style-shell .profile-section-title h2{font-size:13px!important;}
body.pm-style-shell .field.compact input,
body.pm-style-shell .field.compact select,
body.pm-style-shell .field.compact textarea{height:25px!important;min-height:25px!important;font-size:11.5px!important;}
body.pm-style-shell .field.compact small{font-size:10px!important;}
body.pm-style-shell .profile-sticky-actions .btn{height:27px!important;line-height:27px!important;padding:0 13px!important;}
@media(max-width:1250px){
  body.pm-style-shell .profile-fields{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
  body.pm-style-shell .profile-fields .field.compact.full{grid-column:span 3!important;}
  body.pm-style-shell .profile-form .profile-section:nth-of-type(n){grid-column:1 / -1!important;}
  body.pm-style-shell .profile-form .profile-sticky-actions{grid-column:1 / -1!important;}
}
@media(max-width:760px){
  body.pm-style-shell .profile-wrap{width:calc(100vw - 12px)!important;margin:6px!important;}
  body.pm-style-shell .profile-main-grid{grid-template-columns:1fr!important;}
  body.pm-style-shell .profile-photo-box{width:auto!important;}
  body.pm-style-shell .profile-fields,
  body.pm-style-shell .profile-two,
  body.pm-style-shell .profile-four,
  body.pm-style-shell .email-grid{grid-template-columns:1fr!important;}
  body.pm-style-shell .profile-fields .field.compact.full{grid-column:auto!important;}
}

/* v1.3.3 — order create sheet compact, 5+5 rows up to 40 */
.v133-order-create {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  min-width: 0 !important;
}
.v133-order-create .legacy-create-panel {
  background: #fff !important;
  border: 1px solid #cbd9e4 !important;
  border-radius: 4px !important;
  padding: 12px 34px 16px !important;
  margin: 0 0 6px !important;
  box-shadow: none !important;
}
.v133-order-create .legacy-create-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr 1fr !important;
  gap: 24px !important;
  align-items: end !important;
  margin: 0 !important;
}
.v133-order-create .legacy-create-row.second-row {
  grid-template-columns: 1fr 1fr 1fr 1fr !important;
  margin-top: 8px !important;
}
.v133-order-create .legacy-field {
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}
.v133-order-create .legacy-field label {
  font-size: 11px !important;
  line-height: 14px !important;
  font-weight: 700 !important;
  color: #5b6675 !important;
  margin: 0 !important;
}
.v133-order-create .legacy-field input,
.v133-order-create .legacy-field select {
  width: 100% !important;
  height: 34px !important;
  border: 1px solid #d6dde5 !important;
  border-radius: 3px !important;
  background: #fff !important;
  padding: 5px 10px !important;
  font-size: 13px !important;
  color: #334155 !important;
  box-shadow: inset 0 1px 1px rgba(0,0,0,.03) !important;
}
.v133-order-create .readonly-assigned input:disabled {
  background: #eeeeef !important;
  color: #8b95a1 !important;
  border-color: #e1e5ea !important;
}
.v133-order-create .readonly-assigned small {
  display: none !important;
}
.v133-order-create .sheet-table-wrap.legacy-table-wrap {
  border: 1px solid #b9c9d8 !important;
  background: #eef3f6 !important;
  border-radius: 0 !important;
  overflow: auto !important;
  width: 100% !important;
  max-width: 100% !important;
}
.v133-order-create .sheet-table.legacy-sheet-table {
  width: 100% !important;
  min-width: 1580px !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
  background: #fff !important;
}
.v133-order-create .sheet-table th {
  height: 28px !important;
  min-height: 28px !important;
  background: #dfeaf3 !important;
  border: 1px solid #c2ced8 !important;
  color: #263341 !important;
  font-size: 12px !important;
  line-height: 16px !important;
  font-weight: 800 !important;
  padding: 4px 8px !important;
  text-align: center !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
}
.v133-order-create .sheet-table td {
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 !important;
  border: 1px solid #cfd7df !important;
  background: #fff !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
}
.v133-order-create .sheet-table .rownum {
  width: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  text-align: center !important;
  background: #eaf2f8 !important;
  color: #233142 !important;
  font-weight: 700 !important;
}
.v133-order-create .sheet-table th:nth-child(2),
.v133-order-create .sheet-table td:nth-child(2) { width: 360px !important; }
.v133-order-create .sheet-table th:nth-child(3),
.v133-order-create .sheet-table td:nth-child(3) { width: 150px !important; }
.v133-order-create .sheet-table th:nth-child(4),
.v133-order-create .sheet-table td:nth-child(4) { width: 150px !important; }
.v133-order-create .sheet-table th:nth-child(5),
.v133-order-create .sheet-table td:nth-child(5) { width: 190px !important; }
.v133-order-create .sheet-table th:nth-child(6),
.v133-order-create .sheet-table td:nth-child(6) { width: 150px !important; }
.v133-order-create .sheet-table th:nth-child(7),
.v133-order-create .sheet-table td:nth-child(7) { width: 300px !important; }
.v133-order-create .sheet-table th:nth-child(8),
.v133-order-create .sheet-table td:nth-child(8) { width: 220px !important; }
.v133-order-create .sheet-table th:nth-child(9),
.v133-order-create .sheet-table td:nth-child(9) { width: 120px !important; }
.v133-order-create .sheet-table th:nth-child(10),
.v133-order-create .sheet-table td:nth-child(10) { width: 190px !important; }
.v133-order-create .sheet-table input,
.v133-order-create .sheet-table select {
  width: 100% !important;
  height: 27px !important;
  min-height: 27px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 3px 8px !important;
  font-size: 12px !important;
  line-height: 16px !important;
  color: #111827 !important;
}
.v133-order-create .sheet-table input:focus,
.v133-order-create .sheet-table select:focus {
  background: #fff !important;
  outline: 1px solid #2f80ed !important;
  outline-offset: -1px !important;
  box-shadow: none !important;
}
.v133-order-create .sheet-table select {
  cursor: pointer !important;
}
.v133-order-create .v133-sheet-hint,
.v133-order-create .sheet-hint.legacy-hint {
  min-height: 44px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 16px !important;
  background: #fff !important;
  border: 1px solid #d6dde5 !important;
  color: #243447 !important;
  font-size: 13px !important;
}
.v133-order-create .sheet-bottom.legacy-bottom {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 16px !important;
  background: #fff !important;
  border: 1px solid #d6dde5 !important;
  border-radius: 4px !important;
  padding: 10px 14px !important;
  margin: 0 !important;
}
.v133-order-create .file-box {
  min-width: 280px !important;
  display: grid !important;
  gap: 8px !important;
}
.v133-order-create .file-empty {
  width: 290px !important;
  height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f4f4f6 !important;
  color: #4b5563 !important;
  border-radius: 3px !important;
}
.v133-order-create .attach-line {
  color: #0b67d1 !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}
.v133-order-create .sheet-actions {
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
  justify-content: flex-end !important;
}
.v133-order-create .sheet-actions .btn {
  height: 34px !important;
  min-width: 140px !important;
}
@media (max-width: 1200px) {
  .v133-order-create .legacy-create-panel { padding: 10px !important; }
  .v133-order-create .legacy-create-row,
  .v133-order-create .legacy-create-row.second-row { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 10px !important; }
  .v133-order-create .sheet-bottom.legacy-bottom { align-items: stretch !important; flex-direction: column !important; }
  .v133-order-create .sheet-actions { justify-content: flex-start !important; }
}

/* =========================================================
   V137 MESSAGE CENTER CLEAN COMPACT UI
   ========================================================= */
.v137-message-page{
  width:100%;
  height:calc(100vh - 92px);
  padding:8px 10px 10px;
  overflow:hidden;
  background:#eef3f6;
}
.v137-message-panel{
  width:100%;
  height:100%;
  display:grid;
  grid-template-rows:32px 38px minmax(0,1fr);
  border:1px solid #b9c9d8;
  background:#fff;
  overflow:hidden;
}
.v137-message-tabs{
  height:32px;
  display:flex;
  align-items:flex-end;
  gap:2px;
  padding:0 8px;
  background:linear-gradient(#fbfdff,#edf4f8);
  border-bottom:1px solid #cbd9e4;
  overflow:auto;
  white-space:nowrap;
}
.v137-message-tabs a{
  height:27px;
  display:inline-flex;
  align-items:center;
  padding:0 12px;
  border:1px solid transparent;
  border-bottom:0;
  border-radius:4px 4px 0 0;
  color:#25364d;
  font-weight:800;
  font-size:12px;
}
.v137-message-tabs a:hover{background:#fff;color:#0b67d1;}
.v137-message-tabs a.active{
  background:#fff;
  border-color:#b9c9d8;
  color:#0b67d1;
  position:relative;
  top:1px;
}
.v137-message-search{
  height:38px;
  display:flex;
  align-items:center;
  gap:6px;
  padding:5px 8px;
  border-bottom:1px solid #cbd9e4;
  background:#fff;
}
.v137-message-search select,
.v137-message-search input{
  height:28px;
  border-radius:2px;
  border:1px solid #b9c9d8;
  padding:3px 8px;
  background:#fff;
}
.v137-message-search select{width:130px;}
.v137-message-search input{width:320px;max-width:40vw;}
.v137-message-search .btn{height:28px;}
.v137-message-count{
  margin-left:auto;
  color:#667085;
  font-size:12px;
  font-weight:800;
}
.v137-message-layout{
  min-height:0;
  display:grid;
  grid-template-columns:minmax(430px, 46%) minmax(0,1fr);
  background:#eef3f6;
  overflow:hidden;
}
.v137-message-list{
  min-width:0;
  overflow:auto;
  border-right:1px solid #cbd9e4;
  background:#fff;
}
.v137-message-item{
  display:block;
  min-height:74px;
  padding:8px 10px;
  border-bottom:1px solid #dbe5ec;
  color:#25364d;
  background:#fff;
}
.v137-message-item:hover,
.v137-message-item.active{
  background:#eef7ff;
  color:#003f86;
  text-decoration:none;
}
.v137-message-mainline{
  display:grid;
  grid-template-columns:minmax(0,1fr) 128px;
  gap:10px;
  align-items:center;
}
.v137-message-mainline b{
  min-width:0;
  font-size:12px;
  line-height:1.25;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#075bb5;
}
.v137-message-mainline time{
  font-size:11px;
  color:#667085;
  text-align:right;
  white-space:nowrap;
}
.v137-message-meta{
  margin-top:3px;
  font-size:11px;
  font-weight:800;
  color:#344258;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.v137-message-item p{
  margin:5px 0 0;
  font-size:12px;
  line-height:1.35;
  color:#1f2937;
  max-height:34px;
  overflow:hidden;
}
.v137-message-preview{
  min-width:0;
  overflow:auto;
  background:#f8fbff;
  padding:10px;
}
.v137-preview-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  padding:10px 12px;
  border:1px solid #cbd9e4;
  background:#fff;
}
.v137-preview-head h2{
  margin:0;
  font-size:18px;
  line-height:1.2;
  color:#111827;
}
.v137-preview-head p{
  margin:3px 0 0;
  color:#344258;
  font-weight:800;
}
.v137-preview-head span{
  font-size:12px;
  color:#667085;
  white-space:nowrap;
}
.v137-preview-author{
  min-height:30px;
  display:flex;
  align-items:center;
  margin-top:8px;
  padding:0 12px;
  border:1px solid #cbd9e4;
  background:#edf7ff;
  color:#075bb5;
  font-weight:900;
}
.v137-preview-text{
  min-height:190px;
  margin-top:8px;
  padding:12px;
  border:1px solid #cbd9e4;
  background:#fff;
  color:#111827;
  font-size:13px;
  line-height:1.45;
  white-space:normal;
}
.v137-preview-actions{
  display:flex;
  justify-content:flex-end;
  margin-top:8px;
  padding:8px;
  border:1px solid #cbd9e4;
  background:#fff;
}
.v137-message-empty{
  min-height:90px;
  display:grid;
  place-items:center;
  color:#667085;
  font-weight:800;
  text-align:center;
  padding:18px;
}
.v137-message-empty.big{height:100%;min-height:280px;background:#fff;border:1px solid #cbd9e4;}
@media(max-width:1100px){
  .v137-message-layout{grid-template-columns:1fr;}
  .v137-message-preview{display:none;}
  .v137-message-search input{max-width:none;width:100%;}
  .v137-message-search{grid-template-columns:120px 1fr auto;display:grid;height:auto;min-height:38px;}
  .v137-message-count{display:none;}
}
