*{box-sizing:border-box}body{margin:0;font-family:Arial,Helvetica,sans-serif;color:#06133a;background:#f6f8fb;font-size:14px}.app{display:flex;min-height:100vh}.sidebar{width:250px;background:linear-gradient(180deg,#0d1b3d,#071225);color:white;padding:18px 14px;position:fixed;top:0;bottom:0}.brand{display:flex;gap:12px;align-items:center;margin:0 0 28px}.brand .logo{width:36px;height:36px;border:2px solid #8fa2ff;border-radius:10px;display:grid;place-items:center}.brand span{display:block;color:#9ca9c8;font-size:12px}.sidebar a{display:block;color:#e9efff;text-decoration:none;padding:12px 14px;border-radius:8px;margin:4px 0}.sidebar a.active,.sidebar a:hover{background:#5664f5;color:white}.submenu{margin-left:12px;border-left:1px solid rgba(255,255,255,.08)}.submenu a{font-size:13px;padding:9px 14px;color:#d2dcf9}.main{margin-left:250px;width:calc(100% - 250px)}.topbar{height:68px;background:#fff;border-bottom:1px solid #e5e9f1;display:flex;align-items:center;gap:20px;padding:0 24px;position:sticky;top:0;z-index:3}.search{margin-left:auto;width:360px;border:1px solid #e0e5ee;border-radius:10px;padding:12px 14px}.user{font-weight:bold}.content{padding:18px}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:18px}.card,.panel{background:#fff;border:1px solid #e6e9ef;border-radius:10px;box-shadow:0 6px 18px rgba(15,30,60,.05)}.card{padding:20px}.card span{color:#6b7280}.card b{display:block;font-size:24px;margin-top:10px}.panel{padding:18px}.table{width:100%;border-collapse:collapse}.table th,.table td{border-bottom:1px solid #e1e5eb;padding:10px;text-align:left}.table th{background:#f2f4f8}.badge{display:inline-block;padding:5px 9px;border-radius:4px;color:#fff;font-weight:bold;font-size:12px}.green{background:#1aa782}.orange{background:#ff7a00;color:white}.btn{display:inline-block;padding:10px 16px;text-decoration:none;border-radius:4px;border:0;font-weight:bold}.btn.light{background:#fff;border:1px solid #c9ced8;color:#8b919b}.btn.muted{background:#f0f2f6;color:#344054}.login-page{background:#0d1b3d;display:grid;place-items:center;height:100vh}.login-card{width:360px;background:#fff;border-radius:16px;padding:30px;box-shadow:0 20px 60px rgba(0,0,0,.25)}.login-card input,.login-card button{width:100%;padding:13px;margin:8px 0;border:1px solid #d5dae5;border-radius:8px}.login-card button{background:#5664f5;color:white;font-weight:bold}.alert{background:#fff0f0;color:#b42318;padding:10px;border-radius:8px}.product-list-toolbar{display:flex;align-items:center;justify-content:space-between;background:#fff;border-top:2px solid #0808aa;padding:18px 16px 14px}.product-list-toolbar .count{display:flex;gap:60px;color:#6b7280}.pager{display:flex;align-items:center;gap:18px}.pager select{border:0;border-bottom:1px solid #d0d5dd;padding:6px}.round{background:#06139f;color:white;text-decoration:none;border-radius:50%;width:24px;height:24px;display:grid;place-items:center;font-weight:bold}.dol-table-wrap{background:#fff;overflow:auto;border-top:1px solid #d9dde5}.dol-table{width:100%;border-collapse:collapse;font-size:12px}.dol-table th,.dol-table td{border-bottom:1px solid #d5d9e1;padding:6px 8px;white-space:nowrap}.dol-table thead th{background:#e6e8ee;color:#1b2a61;text-align:left;font-weight:500}.dol-table .filters th{background:#e6e8ee}.dol-table input,.dol-table select{height:24px;border:1px solid #d8dce4;border-radius:3px;max-width:120px;background:white}.dol-table tbody tr:nth-child(odd){background:#fafafa}.dol-table tbody tr:hover{background:#eef6ff}.ref{color:#001a8f;text-decoration:none;font-weight:bold}.price{color:#00708a}.num{text-align:right}.product-form{border-radius:0;box-shadow:none}.form-grid{display:grid;grid-template-columns:220px 1fr;gap:10px 16px;align-items:center}.form-grid label{color:#230039;font-weight:bold;font-size:13px}.form-grid input,.form-grid select,.form-grid textarea{border:0;border-bottom:1px solid #cdd2da;padding:8px;min-height:34px;background:#fff}.form-grid textarea{border:1px solid #cdd2da;min-height:80px}.triple{display:flex;gap:8px;align-items:center}.triple input{width:75px}.form-actions{text-align:center;margin-top:24px}.tabs{display:flex;border-top:2px solid #0808aa;border-bottom:1px solid #bfc5ce;background:#fff}.tabs a{padding:13px 18px;text-decoration:none;color:#00135f;border-right:1px solid #e3e6ec;font-size:12px;font-weight:bold}.tabs a.active{background:#fff;border-left:1px solid #bfc5ce;border-right:1px solid #bfc5ce;border-bottom:2px solid white;transform:translateY(1px)}.clean-dol{background:#fff;padding-bottom:10px}.show-head{display:flex;align-items:flex-start;gap:28px;padding:16px 12px 18px}.photo{width:72px;height:72px;border:1px solid #e1e1e1;box-shadow:0 2px 8px rgba(0,0,0,.1);display:grid;place-items:center;font-size:38px;color:#ccc}.show-head h1{font-size:14px;color:#b5bac3;margin:26px 0 4px;font-weight:500}.muted-text{color:#98a2b3}.head-actions{margin-left:auto;text-align:right;display:flex;gap:16px;align-items:flex-start;color:#00135f;font-weight:bold}.head-actions div{margin-left:12px}.details-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;padding:0 12px}.lines div{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid #d9dde4;min-height:27px;align-items:center}.lines div:last-child{border-bottom:1px solid #d9dde4}.lines span{font-size:12px;color:#25304a}.lines b{font-size:12px;color:#000}.show-buttons{text-align:right;padding:18px 0 60px}.bottom-panels{display:grid;grid-template-columns:1fr 1fr;gap:22px;padding:0 12px}.mini-panel h4{background:#e4e7ed;margin:0;padding:10px 12px;color:#25304a;font-weight:500;font-size:12px}.mini-panel h4 span{margin-left:55px}.mini-panel p{border-bottom:1px solid #d9dde4;margin:0;padding:12px;color:#98a2b3;font-size:12px}.tab-panel{margin:18px 12px}footer{padding:16px 24px;color:#778197;font-size:12px}@media(max-width:900px){.sidebar{position:static;width:100%}.app{display:block}.main{margin-left:0;width:100%}.cards,.details-grid,.bottom-panels{grid-template-columns:1fr}.search{display:none}.form-grid{grid-template-columns:1fr}}
/* v6 Dolibarr-like product tabs */
.clean-dol .show-head{border-bottom:1px solid #cfcfcf;margin-bottom:0;padding:14px 0 18px;display:flex;align-items:center;gap:28px}
.clean-dol .show-head .photo{width:70px;height:70px;border:1px solid #ddd;background:#fff;box-shadow:0 1px 5px #ddd;display:flex;align-items:center;justify-content:center;font-size:34px;filter:grayscale(1);opacity:.55}
.clean-dol .show-head h1{font-size:14px;color:#aaa;font-weight:500;margin:0}.clean-dol .head-actions{margin-left:auto;text-align:right;color:#000080}.clean-dol .head-actions a{font-weight:700;color:#000080;text-decoration:none}.badge.green{background:#129b73;color:#fff;border-radius:4px;padding:7px 10px;font-weight:700;display:inline-block;margin-top:16px}
.dol-section{padding:0 0 24px}.dol-section.two-cols{display:grid;grid-template-columns:1fr 1fr;gap:22px}.dol-lines{font-size:12px;color:#00164d}.dol-lines div{min-height:25px;border-bottom:1px solid #d7d7d7;display:grid;grid-template-columns:230px 1fr;align-items:center}.dol-lines.full div{grid-template-columns:285px 1fr}.dol-lines span{color:#1b2b55}.dol-lines b{font-weight:700;color:#000}.dol-lines small{font-weight:400;color:#6f7280}.dol-lines em{font-style:normal;color:#c1c6cc}.dol-lines a{color:#000080;font-weight:700;text-decoration:none;margin-left:8px}.right-actions{text-align:right;margin:16px 0 28px}.orange{background:#ff7900;color:white;border:0;border-radius:3px;padding:11px 14px;font-weight:700;margin-left:8px;cursor:pointer}.dol-icon-line{height:34px;display:flex;align-items:center;gap:180px;color:#8790a0;margin-top:10px}.small-icon.money{background:#a7b94a;color:white;padding:2px 5px;border-radius:1px;font-weight:700}.page-size{margin-left:auto;color:#000}.dol-table{width:100%;border-collapse:collapse;font-size:12px;color:#00015a;margin-top:0}.dol-table th{background:#e5e7eb;color:#00015a;padding:9px 8px;text-align:left;font-weight:500;border-bottom:1px solid #d1d5db}.dol-table td{padding:8px;border-bottom:1px solid #ddd}.dol-table tbody tr:nth-child(even){background:#fafafa}.dol-table td:nth-child(n+3),.dol-table th:nth-child(n+3){text-align:right}.dol-table .total td{font-weight:500;background:#fff}.objects-main td:nth-child(n+2),.objects-main th:nth-child(n+2){text-align:right}.filter-bar{background:#e5e7eb;padding:10px 7px;font-size:12px;color:#00015a}.filter-bar input{width:58px;height:22px;border:1px solid #ddd}.filter-bar select{height:24px;border:1px solid #ddd}.dev-mode{min-height:350px;display:flex;align-items:center;justify-content:center}.dev-card{text-align:center;background:#fff;border:1px dashed #b8bec8;border-radius:10px;padding:42px 70px;box-shadow:0 6px 20px rgba(0,0,0,.04)}.dev-icon{font-size:46px}.dev-card h2{margin:12px 0;color:#0b1b4d}.dev-card p{font-size:18px;font-weight:700;color:#ff7900}.dev-card small{color:#6b7280}
@media(max-width:900px){.dol-section.two-cols{grid-template-columns:1fr}.dol-lines div,.dol-lines.full div{grid-template-columns:1fr}.dol-table{display:block;overflow-x:auto}.clean-dol .show-head{align-items:flex-start}.clean-dol .head-actions{font-size:12px}}

/* v7 dashboard empty charts */
.dashboard-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:18px}.dash-card{background:#fff;border:1px solid #e6e9ef;border-radius:14px;padding:18px;box-shadow:0 8px 22px rgba(15,30,60,.06);display:flex;gap:14px;align-items:center}.dash-icon{width:46px;height:46px;border-radius:14px;background:#eef2ff;display:grid;place-items:center;font-size:22px}.dash-card span{display:block;color:#667085;font-size:13px}.dash-card b{display:block;font-size:28px;margin:4px 0;color:#071225}.dash-card small{color:#98a2b3}.charts-layout{display:grid;grid-template-columns:1.3fr .9fr;gap:18px;margin-bottom:18px}.chart-panel{background:#fff;border:1px solid #e6e9ef;border-radius:14px;padding:18px;box-shadow:0 8px 22px rgba(15,30,60,.06)}.chart-panel.wide{grid-column:1/-1}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.panel-head h3{margin:0;font-size:16px;color:#0b1b4d}.panel-head span{color:#667085;font-size:12px}.bar-chart{display:grid;gap:13px}.bar-row{display:grid;grid-template-columns:140px 1fr 34px;gap:10px;align-items:center}.bar-row label{font-size:13px;color:#344054}.bar-row b{font-size:13px;text-align:right;color:#06133a}.bar-track{height:12px;background:#edf0f5;border-radius:999px;overflow:hidden}.bar-fill{height:100%;background:linear-gradient(90deg,#5664f5,#1aa782);border-radius:999px;min-width:0}.pie-wrap{display:flex;align-items:center;gap:24px;min-height:210px}.pie-empty{width:170px;height:170px;border-radius:50%;background:conic-gradient(#edf0f5 0 360deg);display:grid;place-items:center;position:relative}.pie-empty:after{content:"";width:96px;height:96px;border-radius:50%;background:#fff;position:absolute}.pie-empty span{position:relative;z-index:1;font-size:30px;font-weight:800;color:#98a2b3}.legend-list{flex:1;display:grid;gap:11px}.legend-list div{display:flex;align-items:center;gap:8px;color:#344054;font-size:13px}.legend-list i{width:10px;height:10px;border-radius:50%;background:#cbd5e1}.legend-list b{margin-left:auto;color:#071225}.muted-badge{background:#eef2f6;color:#667085}.empty-dashboard-panel{border-radius:14px}.commercial-bars .bar-row{grid-template-columns:190px 1fr 34px}@media(max-width:1000px){.dashboard-grid{grid-template-columns:repeat(2,1fr)}.charts-layout{grid-template-columns:1fr}.bar-row,.commercial-bars .bar-row{grid-template-columns:1fr}.pie-wrap{flex-direction:column;align-items:flex-start}}@media(max-width:600px){.dashboard-grid{grid-template-columns:1fr}}

/* v8 product price modal/forms */
.crm-modal{display:none;position:fixed;inset:0;background:rgba(0,0,0,.28);z-index:50;align-items:flex-start;justify-content:center;padding:70px 18px;overflow:auto}.crm-modal.open{display:flex}.crm-modal-box{background:#fff;border:1px solid #bfc5ce;box-shadow:0 14px 44px rgba(0,0,0,.24);width:min(1140px,100%);padding:0 10px 10px}.small-form-modal{width:min(1160px,100%)}.large-form-modal{width:min(1160px,100%)}.modal-title-line{height:42px;border-bottom:1px solid #aaa;display:flex;align-items:center;justify-content:space-between}.doc-icon{font-size:24px;color:#aab0bb}.modal-x{border:0;background:transparent;font-size:26px;line-height:1;color:#777;cursor:pointer}.dol-edit-form{padding:14px 0 0}.edit-grid{display:grid;grid-template-columns:285px 1fr;gap:8px 0;align-items:center;font-size:12px}.edit-grid label{color:#240039;font-weight:700;min-height:24px;display:flex;align-items:center}.edit-grid label em{font-style:normal;color:#aab0bb;margin-left:4px}.edit-grid input,.edit-grid select{height:28px;border:0;border-bottom:1px solid #d1d5db;background:white;padding:4px 6px;max-width:190px;color:#000}.edit-grid select{cursor:pointer}.inline-field{display:flex;gap:8px;align-items:center}.inline-field input{max-width:90px}.inline-field select{max-width:80px}.select-with-icon{display:flex;gap:10px;align-items:center}.select-with-icon select{min-width:230px;color:#9ca3af}.buy-form-grid input,.buy-form-grid select{max-width:230px}.modal-actions{text-align:center;border-top:1px solid #aaa;margin-top:22px;padding-top:14px}.modal-actions .orange{padding:10px 18px}.crm-modal .orange{border-radius:3px;background:#ff7900;color:#fff;border:0;font-weight:700}body.modal-lock{overflow:hidden}
@media(max-width:760px){.edit-grid{grid-template-columns:1fr}.edit-grid input,.edit-grid select{max-width:100%;width:100%}.inline-field{align-items:stretch}.crm-modal{padding:30px 8px}}

/* v9 stock list inside Products section */
.stock-list-page{background:#fff;border-top:2px solid #0808aa;min-height:calc(100vh - 110px)}
.stock-toolbar{height:50px;display:flex;align-items:center;justify-content:space-between;padding:0 18px;border-bottom:1px solid #cfd3dc;background:#fff;color:#00005a;font-size:13px}
.stock-count{display:flex;align-items:center;gap:78px;color:#6f7280}.stock-count .cube{font-size:18px;color:#b1a83a}
.stock-pager{display:flex;align-items:center;gap:18px;color:#00005a;font-size:14px}.stock-pager select{border:0;border-bottom:1px solid #c7ccd6;background:#fff;padding:5px;outline:0}.stock-pager a{color:#00005a;text-decoration:none}.stock-pager a.active{font-weight:700}.stock-pager b{font-size:24px;line-height:1;color:#00005a}
.stock-table-wrap{overflow:auto;background:#fff}.stock-list-table{width:100%;border-collapse:collapse;font-size:12px;color:#000;min-width:1120px}.stock-list-table th,.stock-list-table td{border-bottom:1px solid #d6d9df;padding:6px 8px;white-space:nowrap;height:30px}.stock-list-table thead th{background:#e5e7ec;color:#1d2b62;font-weight:500;text-align:left}.stock-list-table thead em{font-style:normal;color:#b7bdc8}.stock-list-table tbody tr:nth-child(odd){background:#fafafa}.stock-list-table tbody tr:hover{background:#eef6ff}.stock-filter-top th{height:28px;padding:5px 8px;background:#e5e7ec!important}.stock-insufficient{color:#1d2b62;font-weight:500}.stock-insufficient input{vertical-align:middle}.stock-filters th{height:34px;padding:4px 8px;background:#e5e7ec!important}.stock-filters input{width:80px;height:24px;border:1px solid #d9dde6;border-radius:3px;background:#fff}.stock-filters th:nth-child(2) input{width:110px}.stock-filters th:nth-child(5) input{width:64px}.stock-search{font-size:18px;color:#000}.stock-close{font-size:18px;color:#7b8390;margin-left:10px}.stock-ref{color:#001a8f;text-decoration:none;font-weight:700}.move-link{color:#000080;text-decoration:none;font-weight:700}.stock-list-table .num{text-align:right}.stock-list-table th:nth-child(3),.stock-list-table th:nth-child(4),.stock-list-table th:nth-child(5),.stock-list-table th:nth-child(6),.stock-list-table td:nth-child(3),.stock-list-table td:nth-child(4),.stock-list-table td:nth-child(5),.stock-list-table td:nth-child(6){text-align:right}.stock-list-table .badge.green{padding:4px 8px;margin:0;border-radius:4px;font-size:11px;background:#11a77d;color:#fff}
@media(max-width:900px){.stock-toolbar{align-items:flex-start;height:auto;padding:12px;gap:12px;flex-direction:column}.stock-count{gap:24px}.stock-pager{gap:12px;flex-wrap:wrap}.stock-list-table{min-width:980px}}
/* v10 real product module */
.product-form-top{display:flex;gap:24px;align-items:flex-start}.flex-grow{flex:1}.image-uploader{width:170px;text-align:center}.image-uploader img{width:132px;height:132px;object-fit:cover;border:1px solid #d9dde4;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.08)}.image-uploader input[type=file]{display:none}.upload-btn{margin-top:10px;cursor:pointer}.image-uploader small{display:block;color:#667085;margin-top:6px;word-break:break-all}.table-product-img{width:34px;height:34px;border:1px solid #ddd;object-fit:cover;background:#fff}.product-real-list td:first-child,.product-real-list th:first-child{text-align:center}.empty-row{text-align:center!important;color:#667085;padding:28px!important}.mini-action{font-weight:700;color:#001a8f;text-decoration:none;margin-right:8px}.mini-action.danger{color:#b42318}.product-photo-real{overflow:hidden;background:#fff}.product-photo-real img{width:100%;height:100%;object-fit:cover}.tiny-img{width:32px;height:32px;object-fit:cover;border:1px solid #ddd;background:#fff}.dashboard-two-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}@media(max-width:900px){.product-form-top{flex-direction:column}.image-uploader{width:100%}.dashboard-two-columns{grid-template-columns:1fr}}

/* Devis module */
.menu-group .submenu{display:none}.menu-group.open .submenu{display:block}.menu-group>a{display:flex!important;align-items:center;gap:9px}.menu-arrow{margin-left:auto;font-size:11px;transition:.18s}.menu-group.open .menu-arrow{transform:rotate(180deg)}.devis-submenu a{font-weight:700;color:#fff}.text-green{color:#5b8f42}.text-blue{color:#3446a0}.text-cyan{color:#41869c}.dol-page{background:#fff;border-radius:0;box-shadow:none;padding:0 22px 22px}.dol-title-icon{height:48px;border-bottom:1px solid #aaa;display:flex;align-items:center;color:#579557;font-size:25px}.devis-form{padding-top:14px}.devis-grid{display:grid;grid-template-columns:225px minmax(300px,815px);gap:8px 0;align-items:center;font-size:12px}.devis-grid label{font-weight:700;color:#26003a;min-height:22px}.dol-input,.dol-select{border:0;border-bottom:1px solid #d1d5db;height:28px;background:#fff;padding:4px 6px;max-width:210px;outline:0}.dol-select.wide{min-width:410px;max-width:410px;color:#9ca3af}.dol-textarea{width:100%;min-height:45px;border:1px solid #cfd4dc;resize:vertical}.field-with-icons{display:flex;align-items:center;gap:9px}.tiny-plus{display:inline-grid;place-items:center;width:17px;height:17px;border-radius:50%;background:#00188f;color:white!important;text-decoration:none;font-weight:700}.inline-help{display:flex;align-items:center;gap:7px}.inline-help small{color:#4e5fae}.dol-input.small{width:85px}.dol-input.xs{width:50px}.devis-actions{text-align:center;border-top:1px solid #aaa;margin-top:22px;padding-top:14px}.quote-toolbar{border-top:2px solid #0808aa}.quote-list .empty-row{text-align:center!important;color:#8b93a3;padding:28px}.quote-photo{color:#579557;background:#f7fbf5}.quote-show .bottom-panels{margin-top:22px}@media(max-width:760px){.devis-grid{grid-template-columns:1fr}.dol-select.wide{min-width:0;width:100%;max-width:100%}.dol-input,.dol-select{width:100%;max-width:100%}}

/* v12 Devis list like Dolibarr with bulk actions */
.quote-list-page{background:#fff;border-top:2px solid #0808aa;min-height:calc(100vh - 110px)}
.quote-topline{height:54px;display:grid;grid-template-columns:220px 1fr auto;align-items:center;gap:14px;padding:0 18px;border-bottom:1px solid #cfd3dc;background:#fff;color:#00005a;font-size:13px}
.quote-count{display:flex;align-items:center;gap:76px;color:#6f7280}.quote-count i{font-size:22px}.quote-bulkbar{display:none;align-items:center;gap:8px;justify-self:start}.quote-bulkbar.show{display:flex}.quote-bulkbar .action-select{width:170px;height:26px;border:0;border-bottom:1px solid #c7ccd6;background:#fff;font-size:12px}.bulk-confirm{background:#ffb777;color:white;border:0;border-radius:3px;height:24px;padding:0 11px;font-weight:700;font-size:11px}.quote-pager{display:flex;align-items:center;gap:16px;color:#00005a;font-size:14px}.quote-pager select{border:0;border-bottom:1px solid #c7ccd6;background:#fff;padding:5px;outline:0}.quote-pager .round{margin-left:12px}.page-arrow{color:#00005a;text-decoration:none;font-size:17px}.quote-filters-panel{height:40px;background:#e5e7ec;display:flex;align-items:center;gap:18px;padding:0 12px}.q-filter{display:flex;align-items:center;gap:7px}.q-filter i{color:#765c2d}.q-filter select{height:24px;width:155px;border:1px solid #d9dde6;border-radius:3px;color:#a5aab5;background:#fff;font-size:12px}.quote-table-wrap{overflow:auto;background:#fff}.quote-dol-list{width:100%;border-collapse:collapse;font-size:12px;color:#000;min-width:1120px}.quote-dol-list th,.quote-dol-list td{border-bottom:1px solid #d6d9df;padding:6px 8px;white-space:nowrap;height:30px}.quote-dol-list thead th{background:#e5e7ec;color:#1d2b62;font-weight:500;text-align:left}.quote-dol-list tbody tr:nth-child(odd){background:#fafafa}.quote-dol-list tbody tr:hover,.quote-dol-list tbody tr.selected{background:#eaf3fb}.quote-filters-row th{height:36px;padding:4px 8px;background:#e5e7ec!important}.quote-filters-row input,.quote-filters-row select{width:90px;height:24px;border:1px solid #d9dde6;border-radius:3px;background:#fff}.quote-filters-row th:nth-child(2) input{width:116px}.quote-filters-row th:nth-child(7) select{width:92px}.date-pair{display:flex;flex-direction:column;gap:3px;max-width:80px}.date-pair input{width:68px;height:22px}.search-cell{font-size:17px;text-align:right!important;color:#000}.search-cell i{margin-left:9px}.quote-dol-list .num{text-align:right}.quote-ref-cell .fa-download{margin-left:5px}.text-gray{color:#9aa2ad}.text-purple{color:#6554a6}.author-icon{color:#b88b6e;margin-right:3px}.quote-status{display:inline-block;min-width:54px;text-align:center;padding:4px 7px;border-radius:4px;color:white;font-weight:700;font-size:11px}.quote-status.green{background:#13a57c}.quote-status.gold{background:#c39409}.quote-status.gray{background:#98a2b3}.quote-status.red{background:#d84a3a}.quote-status.muted{background:#a4abae}.check-cell{text-align:center}.check-cell input,#quoteCheckAll{width:13px;height:13px}.quote-dol-list th:last-child,.quote-dol-list td:last-child{text-align:center}.quote-dol-list .empty-row{text-align:center!important;color:#667085;padding:30px!important}.quote-list-page .ref{color:#001a8f;text-decoration:none;font-weight:700}
@media(max-width:900px){.quote-topline{grid-template-columns:1fr;align-items:flex-start;height:auto;padding:12px;gap:12px}.quote-count{gap:24px}.quote-filters-panel{height:auto;padding:10px;flex-wrap:wrap}.quote-pager{gap:12px;flex-wrap:wrap}.quote-bulkbar.show{flex-wrap:wrap}.quote-dol-list{min-width:980px}}

/* Quote detail page - Dolibarr-like view */
.quote-detail-page{background:#fff;border-top:2px solid #0808aa;min-height:calc(100vh - 110px);padding:0 26px 26px;color:#000;font-size:12px}
.quote-detail-head{display:flex;justify-content:space-between;gap:20px;border-bottom:1px solid #cfd3dc;padding:13px 0 15px}
.quote-detail-identity{display:flex;align-items:center;gap:22px}.quote-big-icon{width:68px;height:68px;border:1px solid #e0e0e0;box-shadow:0 2px 7px rgba(0,0,0,.12);display:grid;place-items:center;color:#579557;font-size:34px;background:#fff}.quote-title-block{padding-top:4px;line-height:1.5}.quote-title-line{font-size:13px;color:#25304a}.quote-client{color:#001a8f;text-decoration:none;font-weight:700}.quote-client span{font-weight:500}.muted-pencil{color:#b7bcc4}.quote-detail-nav{text-align:right;color:#00135f;font-weight:700}.quote-detail-nav a{color:#00135f;text-decoration:none;margin-right:12px}.quote-detail-nav i{margin:0 7px}.quote-detail-nav .disabled{color:#d5d9df}.quote-state-badge{display:inline-block;background:#c39409;color:#fff;padding:7px 10px;border-radius:4px;font-size:12px;margin-top:18px}
.quote-detail-main{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:0}.quote-left-lines,.quote-right-summary{padding-top:0}.quote-line,.quote-money-row{display:grid;grid-template-columns:190px 1fr;align-items:center;min-height:26px;border-bottom:1px solid #d6d9df}.quote-line:first-child,.quote-money-row:first-child{border-top:0}.quote-line span,.quote-money-row span{color:#25304a}.quote-line b,.quote-money-row b{font-weight:700;color:#000}.muted-info{color:#8f97a7!important;font-weight:500!important}.warn{color:#d39a00}.info{color:#c5cad2}.quote-money-row{grid-template-columns:1fr 170px}.quote-money-row b{text-align:right}.quote-margin-table{width:100%;border-collapse:collapse;margin-top:6px}.quote-margin-table th,.quote-margin-table td{border-bottom:1px solid #d6d9df;padding:7px 8px;text-align:right}.quote-margin-table th{background:#e5e7ec;color:#24305f;font-weight:500}.quote-margin-table th:first-child,.quote-margin-table td:first-child{text-align:left}.quote-lines-wrap{margin-top:22px;overflow:auto}.quote-lines-table{width:100%;border-collapse:collapse;min-width:960px}.quote-lines-table th,.quote-lines-table td{border-bottom:1px solid #d6d9df;padding:9px 7px;text-align:right;vertical-align:top}.quote-lines-table th{background:#e5e7ec;color:#24305f;font-weight:500}.quote-lines-table th:first-child,.quote-lines-table td:first-child{text-align:left}.quote-desc{min-width:360px;font-weight:500}.text-olive{color:#a59b3a}.quote-detail-actions{text-align:right;margin-top:31px}.orange-btn,.gray-btn{display:inline-block;text-decoration:none;border:0;border-radius:4px;padding:10px 13px;font-weight:700;font-size:12px;margin-left:7px}.orange-btn{background:#ff7800;color:white}.gray-btn{background:#e8e3e3;color:#6b3434}@media(max-width:900px){.quote-detail-main{grid-template-columns:1fr}.quote-detail-head{display:block}.quote-detail-nav{text-align:left;margin-top:12px}.quote-line,.quote-money-row{grid-template-columns:1fr}.quote-money-row b{text-align:left}.quote-detail-actions{text-align:left}.orange-btn,.gray-btn{margin:5px 5px 0 0}}
/* v14 quote email page */
.flash-success{background:#e9f8ef;border:1px solid #b6e5c5;color:#176b35;padding:10px 14px;margin:10px 20px;border-radius:6px;font-weight:700}
.quote-email-page{padding:8px 18px 30px;background:#fff;color:#000;font-size:14px}
.quote-email-icon{font-size:24px;color:#5b8f4b;border-bottom:1px solid #bbb;padding:0 0 14px 12px;margin-bottom:12px}
.email-form{max-width:1050px}
.email-form .form-row{display:grid;grid-template-columns:170px 1fr;gap:12px;align-items:center;margin:6px 0}
.email-form label{font-weight:700;color:#000}
.email-form input,.email-form select,.email-form textarea{border:1px solid #cfcfcf;border-radius:4px;padding:7px 8px;font-size:14px;background:#fff;width:100%}
.email-form select{max-width:360px;height:32px}
.email-form .small-row input{max-width:180px}.email-form .subject-row input{max-width:690px}
.email-form .checkbox-row{align-items:start}.inline-check{font-weight:400!important}.inline-check input{width:auto;margin-right:8px}.muted-help{color:#888;margin:4px 0 0;max-width:760px;line-height:1.35}.message-row{align-items:start}.message-row textarea{max-width:980px;min-height:125px}.centered{text-align:center;margin-top:14px}.purple-btn{background:#6e57b1;color:white;border:0;border-radius:4px;padding:9px 18px;font-weight:800;text-decoration:none;display:inline-block}.purple-btn.light{background:#7763aa}.purple-btn:hover{filter:brightness(.95)}
.quote-pdf-module{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:86px 0 20px 0}.pdf-panel-left,.pdf-panel-right{border-top:1px solid #d4d4d4}.pdf-toolbar{background:#e6e8ec;padding:7px 10px;display:flex;align-items:center;gap:10px;color:#19194f;font-size:12px}.pdf-toolbar label{margin-left:auto}.dol-select.xs{height:24px;min-width:75px}.small-gray-btn{background:#e7e7e7;border:1px solid #bfc1c6;color:#555;text-decoration:none;padding:5px 10px;font-weight:bold;font-size:12px}.pdf-doc-table{width:100%;border-collapse:collapse;font-size:12px}.pdf-doc-table th{background:#e1e3e8;color:#19194f;text-align:left;font-weight:normal;padding:8px}.pdf-doc-table td{border-bottom:1px solid #d7d7d7;padding:7px 6px}.pdf-doc-table a{color:#001a7a;text-decoration:none}.text-blue{color:#0b4aa2}@media(max-width:900px){.quote-pdf-module{grid-template-columns:1fr}}

/* v16 Factures clients module */
.facture-submenu a{font-size:13px}.invoice-form-page{background:#fff;border-top:2px solid #0808aa;padding:0 12px 24px;color:#000}.dol-page-icon{height:50px;border-bottom:1px solid #aaa;display:flex;align-items:center;padding-left:22px;color:#5b984a;font-size:25px}.invoice-new-grid{grid-template-columns:260px minmax(320px,790px);padding:16px 0 0}.radio-stack{display:flex;flex-direction:column;gap:9px}.radio-stack label{font-weight:600}.radio-stack input{margin-right:5px}.disabled-option{color:#9ca3af}.wide-area{max-width:790px;min-height:40px}.invoice-list-page .quote-count i{color:#579557}.invoice-dol-list{min-width:1120px}.invoice-dol-list th,.invoice-dol-list td{font-size:12px}.invoice-dol-list .quote-status{margin-left:10px}.invoice-filters-row .date-pair label{font-size:11px;color:#000;display:flex;align-items:center;gap:4px}.invoice-detail-page .quote-big-icon{color:#579557}.mini-pill{display:inline-block;background:#eef0f4;color:#6b7280;border:1px solid #cfd3dc;border-radius:8px;padding:1px 8px;font-size:11px}.invoice-payment-table{margin-bottom:6px}.invoice-payment-table th,.invoice-payment-table td{font-size:12px}.rest-pay{font-size:18px!important;font-weight:900!important;color:#009400!important}.invoice-pdf-module{margin-top:82px}.invoice-email-page .quote-email-icon{color:#579557}.invoice-topline .round{background:#00106d;color:white}.text-green{color:#579557}.text-purple{color:#6554a6}.price{color:#007083;font-weight:600}
@media(max-width:900px){.invoice-new-grid{grid-template-columns:1fr}.invoice-dol-list{min-width:1000px}}


/* v17 Responsive practical UI reset */
:root{
  --bg:#f5f7fb;
  --surface:#ffffff;
  --surface-2:#f1f4f8;
  --line:#d9dee8;
  --text:#101828;
  --muted:#667085;
  --primary:#253b80;
  --primary-2:#304fba;
  --success:#169b76;
  --warning:#f79009;
  --danger:#b42318;
  --sidebar:#0f172a;
  --sidebar-soft:#18233d;
  --radius:8px;
  --shadow:0 1px 2px rgba(16,24,40,.06);
}
html{font-size:16px;-webkit-text-size-adjust:100%}
body{font-family:Inter,Segoe UI,Roboto,Arial,sans-serif;background:var(--bg);color:var(--text);font-size:14px;line-height:1.45}
body.modal-lock{overflow:hidden}
a{color:#12368f}a:hover{text-decoration:none}.app{min-height:100vh}.sidebar{background:var(--sidebar);box-shadow:none;z-index:50;overflow-y:auto}.brand{margin-bottom:20px}.brand .logo{background:#1d2b4d;border:1px solid rgba(255,255,255,.18);border-radius:8px}.sidebar nav a,.menu-group>a{display:flex;align-items:center;gap:10px;color:#e8eefc;border-radius:7px;padding:10px 12px;margin:2px 0;font-weight:600}.sidebar nav a i{width:18px;text-align:center;color:#aab7d8}.sidebar a.active,.sidebar a:hover,.menu-group.open>a{background:var(--sidebar-soft);color:#fff}.menu-arrow{margin-left:auto;font-size:11px;transition:.15s}.menu-group.open .menu-arrow{transform:rotate(180deg)}.submenu{display:none;margin:4px 0 8px 19px;border-left:1px solid rgba(255,255,255,.14)}.menu-group.open .submenu{display:block}.submenu a{font-size:13px;font-weight:500;padding:8px 12px;color:#cbd5e1}.topbar{height:64px;border-bottom:1px solid var(--line);box-shadow:var(--shadow);gap:14px}.page-title b{font-size:18px}.search{border-radius:8px;border:1px solid var(--line);height:40px;max-width:440px}.content{padding:18px;max-width:100%;overflow:hidden}.card,.panel,.dash-card,.chart-panel{border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.btn,.orange,.orange-btn,.gray-btn,.purple-btn,.small-gray-btn{border-radius:5px;box-shadow:none;line-height:1.2}.orange,.orange-btn{background:#f97316}.badge,.quote-status,.mini-pill{border-radius:5px}.mobile-menu-btn{display:none;background:#fff;border:1px solid var(--line);width:40px;height:40px;border-radius:7px;align-items:center;justify-content:center;color:var(--primary);font-size:18px}.mobile-overlay{display:none}.table-responsive,.dol-table-wrap,.quote-lines-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;width:100%}.table,.dol-table,.quote-lines-table,.invoice-dol-list{min-width:760px}.dol-table th,.dol-table td,.table th,.table td{padding:8px 10px}.product-list-toolbar,.quote-list-toolbar,.invoice-list-toolbar{gap:12px;flex-wrap:wrap}.pager,.quote-list-toolbar .pager,.invoice-topline .pager{flex-wrap:wrap}.form-grid input,.form-grid select,.form-grid textarea,.email-form input,.email-form select,.email-form textarea{font-family:inherit;font-size:14px;border-color:var(--line);outline:none}.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus,.email-form input:focus,.email-form select:focus,.email-form textarea:focus{border-color:#8aa2ff;box-shadow:0 0 0 3px rgba(48,79,186,.12)}.show-head,.quote-detail-head,.clean-dol .show-head{gap:16px}.photo,.quote-big-icon{flex:0 0 auto}.dashboard-grid,.cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.charts-layout{grid-template-columns:1.1fr .9fr;gap:14px}.dash-card{min-width:0}.dash-card b{font-size:26px}.dash-icon{flex:0 0 46px}.modal,.crm-modal{max-width:100%}.quote-pdf-module,.invoice-pdf-module{margin-top:32px}
@media(max-width:1200px){.dashboard-grid,.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.charts-layout{grid-template-columns:1fr}.details-grid,.dol-section.two-cols,.quote-detail-main{grid-template-columns:1fr}.bottom-panels{grid-template-columns:1fr}.search{width:300px}.content{padding:16px}.main{min-width:0}}
@media(max-width:900px){.mobile-menu-btn{display:inline-flex}.mobile-overlay.show{display:block;position:fixed;inset:0;background:rgba(15,23,42,.45);z-index:40}.sidebar{position:fixed;left:0;top:0;bottom:0;width:280px;max-width:86vw;transform:translateX(-105%);transition:transform .18s ease;padding:14px;z-index:60}.sidebar.open{transform:translateX(0)}.app{display:block}.main{margin-left:0;width:100%}.topbar{position:sticky;top:0;padding:0 12px;height:58px}.page-title b{font-size:16px}.search{display:none}.user{font-size:13px;margin-left:auto}.content{padding:12px}.dashboard-grid,.cards{grid-template-columns:1fr}.dash-card{padding:14px}.charts-layout{grid-template-columns:1fr}.product-list-toolbar,.quote-list-toolbar,.invoice-list-toolbar{align-items:flex-start}.product-list-toolbar .count{gap:18px;flex-wrap:wrap}.form-grid,.invoice-new-grid{grid-template-columns:1fr!important;gap:6px}.form-grid label{margin-top:7px}.triple{flex-wrap:wrap}.tabs{overflow-x:auto;white-space:nowrap}.tabs a{padding:11px 13px}.show-head,.quote-detail-head,.clean-dol .show-head{align-items:flex-start}.head-actions,.clean-dol .head-actions,.quote-detail-nav{margin-left:0;text-align:left;flex-wrap:wrap}.show-buttons,.quote-detail-actions,.right-actions{text-align:left}.bottom-panels,.details-grid{gap:12px;padding:0}.tab-panel{margin:12px 0}.dol-lines div,.dol-lines.full div,.quote-line,.quote-money-row{grid-template-columns:1fr;gap:2px;padding:6px 0}.quote-money-row b{text-align:left}.email-form .form-row{grid-template-columns:1fr}.email-form select,.email-form .subject-row input,.email-form .small-row input,.message-row textarea{max-width:100%}.quote-pdf-module,.invoice-pdf-module{grid-template-columns:1fr;margin-top:22px}.pdf-toolbar{flex-wrap:wrap}.orange-btn,.gray-btn,.orange,.btn{margin:4px 4px 4px 0}.dev-card{padding:28px 20px}.login-card{width:min(92vw,380px)}}
@media(max-width:520px){body{font-size:13px}.content{padding:10px}.topbar{gap:8px}.mobile-menu-btn{width:36px;height:36px}.page-title b{font-size:15px}.dash-card{align-items:flex-start}.dash-card b{font-size:23px}.dash-icon{width:40px;height:40px;font-size:18px}.panel,.chart-panel{padding:12px;border-radius:7px}.dol-table th,.dol-table td,.table th,.table td{padding:7px 8px}.tabs a{font-size:11px;padding:10px 12px}.photo{width:58px;height:58px}.show-head h1{margin-top:8px}.quote-big-icon{width:58px;height:58px}.email-form{font-size:13px}.login-page{padding:14px}.login-card{padding:22px}.footer,footer{padding:12px}}
@media(print){.sidebar,.topbar,.mobile-menu-btn,.mobile-overlay,.show-buttons,.quote-detail-actions,.right-actions,.submenu{display:none!important}.main{margin:0!important;width:100%!important}.content{padding:0;background:#fff}.card,.panel,.chart-panel{box-shadow:none}}
/* v18 full invoice module */
.invoice-lines-editor{margin:24px 0 0;border-top:1px solid var(--line);padding-top:16px}.section-title{font-weight:800;color:#0f225a;margin-bottom:10px}.editable-lines{width:100%;border-collapse:collapse;min-width:900px}.editable-lines th{background:#e5e7eb;color:#172554;font-size:12px;text-align:left;padding:8px}.editable-lines td{border-bottom:1px solid #ddd;padding:6px;vertical-align:top}.editable-lines textarea{width:100%;min-height:48px;border:1px solid #cfd5df;border-radius:4px;padding:6px;font-family:inherit}.editable-lines input{width:90px;border:1px solid #cfd5df;border-radius:4px;padding:6px;font-family:inherit}.invoice-mini-form{margin-top:12px;padding:10px;border:1px solid var(--line);background:#fafafa}.invoice-mini-form .mini-grid{display:grid;grid-template-columns:repeat(5,1fr) auto;gap:8px;align-items:end}.invoice-mini-form label{font-size:12px;color:#334155;font-weight:700}.invoice-mini-form input,.invoice-mini-form select{width:100%;padding:7px;border:1px solid #cfd5df;border-radius:4px}.invoice-flash{background:#E0F7FF;border:1px solid #7DD3FC;color:#075985;padding:8px 10px;border-radius:6px;margin-bottom:10px}.invoice-detail-actions .green-btn{background:#38BDF8;color:#fff;padding:10px 14px;border-radius:5px;font-weight:800;text-decoration:none;display:inline-block}@media(max-width:900px){.invoice-mini-form .mini-grid{grid-template-columns:1fr}.editable-lines{min-width:760px}}
/* v19 comm/product refinements */
.section-title{font-size:15px;color:#1f2b55;margin:16px 0 10px;display:flex;gap:8px;align-items:center}.responsive-table{width:100%;overflow-x:auto}.edit-lines-table{width:100%;border-collapse:collapse;font-size:13px}.edit-lines-table th{background:#e7e9ed;color:#1f2b55;text-align:left;padding:8px;border-bottom:1px solid #d6d9df}.edit-lines-table td{padding:6px;border-bottom:1px solid #e1e3e8;vertical-align:top}.edit-lines-table input,.edit-lines-table textarea{width:100%;border:1px solid #d4d8df;border-radius:3px;padding:7px;background:#fff}.edit-lines-table textarea{min-height:44px;resize:vertical}.small-gray-btn{display:inline-flex;align-items:center;gap:6px;background:#edf0f4;border:1px solid #ccd2dc;color:#1f2b55;text-decoration:none;padding:7px 11px;border-radius:4px;font-weight:700;cursor:pointer}.small-gray-btn:hover{background:#e2e6ec}.green-btn{display:inline-block;background:#1aa179;color:#fff;text-decoration:none;border-radius:4px;padding:10px 13px;font-weight:700}.cards{display:grid;grid-template-columns:repeat(4,minmax(160px,1fr));gap:14px;margin-bottom:16px}.card{background:#fff;border:1px solid #e2e6ee;border-radius:10px;padding:16px;display:grid;grid-template-columns:42px 1fr;gap:4px 12px;align-items:center}.card i{grid-row:1/3;font-size:22px;color:#335cff;background:#eef2ff;border-radius:12px;padding:10px;text-align:center}.card span{color:#53617c}.card b{font-size:28px;color:#081634}@media(max-width:900px){.cards{grid-template-columns:repeat(2,1fr)}.edit-lines-table{min-width:850px}}@media(max-width:560px){.cards{grid-template-columns:1fr}.quote-detail-actions{display:flex;flex-wrap:wrap;gap:8px}.quote-detail-actions a{flex:1 1 auto;text-align:center}}

/* v20 Tiers module inspired by professional third-party ERP screens */
.submenu-heading{font-size:13px;font-weight:800;color:#fff;padding:8px 12px 4px;margin-top:4px}.tiers-submenu a{padding-left:20px}.module-icon{width:58px;height:58px;border:1px solid #e1e5ee;background:#fff;border-radius:6px;display:grid;place-items:center;color:#579557;font-size:26px;box-shadow:var(--shadow)}.module-icon.big{width:68px;height:68px;font-size:30px}.tiers-head,.tier-detail-head{display:flex;align-items:center;gap:16px;margin-bottom:16px}.tiers-head h1,.tier-detail-head h1{margin:0;color:#0f225a;font-size:22px}.tiers-head p,.tier-detail-head p{margin:4px 0 0;color:#667085}.tiers-head .orange-btn{margin-left:auto}.tiers-head.compact{border-bottom:1px solid var(--line);padding-bottom:14px}.tiers-cards{display:grid;grid-template-columns:repeat(3,minmax(170px,1fr));gap:12px;margin-bottom:16px}.tier-card{background:#fff;border:1px solid var(--line);border-radius:8px;padding:14px;text-decoration:none;display:grid;grid-template-columns:44px 1fr;gap:4px 12px;color:#0f225a;box-shadow:var(--shadow)}.tier-card i{grid-row:1/3;width:44px;height:44px;border-radius:10px;background:#eef2ff;display:grid;place-items:center;font-size:20px;color:#304fba}.tier-card span{color:#667085}.tier-card b{font-size:26px}.dol-list-panel{background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow);overflow:hidden}.dol-list-top{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:1px solid var(--line)}.dol-list-top .count{color:#667085;display:flex;gap:12px;align-items:center}.pager{display:flex;gap:12px;align-items:center}.round-plus{width:32px;height:32px;border-radius:50%;background:#00106d;color:#fff!important;display:grid;place-items:center;text-decoration:none}.filters{display:flex;gap:10px;align-items:center;background:#e8eaee;padding:10px 12px;flex-wrap:wrap}.filters input,.filters select{height:31px;border:1px solid #d4d8df;border-radius:4px;padding:5px 8px;background:white}.filters button{border:0;background:transparent;color:#000b5c;font-size:18px;cursor:pointer}.tiers-table td,.tiers-table th{font-size:13px}.type-badge{display:inline-block;border-radius:5px;padding:4px 8px;color:white;font-weight:800;font-size:12px}.badge-blue{background:#4866d6}.badge-green{background:#169b76}.badge-orange{background:#b98900}.badge-gray{background:#667085}.muted{color:#8a94a6}.small{font-size:12px}.actions{text-align:right;white-space:nowrap}.actions a{display:inline-block;margin-left:8px;color:#667085}.tier-form{padding:18px}.form-section-title{font-weight:800;color:#0f225a;border-bottom:1px solid var(--line);padding:12px 0 8px;margin:4px 0 12px}.tiers-form-grid{grid-template-columns:210px minmax(260px,520px);align-items:center}.tiers-form-grid label{font-weight:700;color:#200039}.tiers-form-grid input,.tiers-form-grid select,.tiers-form-grid textarea{width:100%;border:1px solid #d4d8df;border-radius:4px;padding:8px;background:white}.tiers-form-grid textarea{min-height:76px}.inline-two{display:grid;grid-template-columns:1fr 1fr;gap:8px}.form-actions{border-top:1px solid var(--line);padding-top:16px;margin-top:18px;text-align:center}.head-actions{margin-left:auto;display:flex;gap:10px;align-items:center;flex-wrap:wrap}.link{font-weight:800;text-decoration:none;color:#00106d}.tier-detail-head{background:#fff;border:1px solid var(--line);border-radius:8px;padding:16px;box-shadow:var(--shadow)}
@media(max-width:900px){.tiers-cards{grid-template-columns:1fr}.tiers-head,.tier-detail-head{align-items:flex-start;flex-wrap:wrap}.tiers-head .orange-btn,.head-actions{margin-left:0}.tiers-form-grid{grid-template-columns:1fr}.filters input,.filters select{width:100%}.dol-list-top{align-items:flex-start;gap:10px;flex-direction:column}.tier-card{grid-template-columns:40px 1fr}}

/* v21 Tiers full Dolibarr-like company module */
.plain-page{background:#fff;border-top:1px solid #bfc5ce;padding:12px 24px 0;min-height:calc(100vh - 110px)}
.soc-form-icon{font-size:26px;color:#78818d;margin:0 0 10px 0}
.societe-form{font-size:12px;color:#000}.soc-grid{display:grid;grid-template-columns:210px 320px 200px 320px;gap:8px 14px;align-items:center;border-top:1px solid #c9c9c9;padding:18px 0}.soc-grid label{font-weight:700;color:#240039}.soc-grid input,.soc-grid select{height:27px;border:1px solid #d1d5db;border-radius:4px;padding:3px 7px;background:white;font-size:12px;max-width:100%}.soc-grid textarea{width:100%;min-height:36px;border:1px solid #d1d5db;border-radius:4px;padding:6px;font-size:12px}.wide-input{width:320px}.light-placeholder{margin-top:7px;color:#9aa3b2}.span-3{grid-column:span 3}.short-wide input{width:430px}.right-label{padding-left:20px}.nature-checks{display:flex;gap:9px;align-items:center}.pill-check{background:#f3f4f6;border-radius:4px;padding:5px 7px!important;color:#000!important;font-weight:700!important;display:inline-flex;gap:8px;align-items:center}.pill-check input{width:auto;height:auto}.info-dot{display:inline-grid;place-items:center;width:12px;height:12px;border-radius:50%;background:#c8cdd4;color:white;font-size:9px;font-weight:800;margin-left:4px}.soc-more-title{border-top:1px solid #c9c9c9;padding:18px 0 4px;color:#00135f;font-weight:700}.soc-more-title span{background:#9da4b3;color:white;border-radius:4px;padding:1px 6px;margin-left:6px}.more-grid{border-top:0;padding-top:8px}.soc-form-actions{text-align:center;border-top:1px solid #c9c9c9;padding:16px 0;margin-top:8px}.purple-btn{display:inline-block;background:#6d57af;color:#fff;text-decoration:none;border:0;border-radius:4px;padding:9px 15px;font-weight:800;font-size:12px;margin:0 4px;cursor:pointer}.purple-btn.secondary{background:#6d57af}.soft-btn{display:inline-block;background:#ede7e3;color:#5f2020;text-decoration:none;border-radius:4px;padding:9px 13px;font-weight:800;font-size:12px;margin:0 4px}.soc-list-page{background:#fff;padding:10px 12px 0}.soc-list-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.soc-list-title{display:flex;align-items:center;gap:10px;color:#6b7280}.soc-list-title span{color:#4b5563}.soc-list-title em{font-style:normal;color:#8a93a3}.soc-list-actions{display:flex;align-items:center;gap:10px}.soc-list-actions select{border:0;border-bottom:1px solid #d0d5dd;padding:5px;background:white}.view-btn{border:1px solid #ccd2dc;background:white;border-radius:3px;width:56px;height:32px;color:#8b93a1;font-size:16px}.view-btn.active{background:#fff;border-color:#b8bec9;color:#6b7280}.soc-table-card{border:1px solid #d3d8e1;border-radius:8px;overflow:hidden}.soc-filters{background:#e7e9ee;display:grid;grid-template-columns:230px 40px 160px 100px 100px 80px 120px 110px 120px 90px;gap:10px 12px;align-items:center;padding:8px}.soc-filters input,.soc-filters select{height:25px;border:1px solid #d6dbe4;border-radius:3px;background:#fff;padding:3px 7px;font-size:12px}.commercial-filter{display:flex;align-items:center;gap:6px}.commercial-filter input{width:100%}.filter-icons{display:flex;gap:8px;align-items:center}.filter-icons button{border:0;background:transparent;color:#000;font-size:15px;cursor:pointer}.filter-icons a{color:#000}.soc-table{width:100%;border-collapse:collapse;font-size:12px;min-width:1000px}.soc-table th,.soc-table td{border-bottom:1px solid #d9dde4;padding:8px 9px;white-space:nowrap;text-align:left}.soc-table th{background:#e7e9ee;color:#1b2a61;font-weight:500}.soc-table tbody tr:nth-child(even){background:#fafafa}.soc-table tbody tr:hover{background:#edf6ff}.text-purple{color:#6d57af}.text-olive{color:#808533}.mini-nature{display:inline-grid;place-items:center;width:16px;height:16px;border-radius:4px;color:#fff;font-weight:800;font-size:11px}.mini-nature.p{background:#9bc59d}.mini-nature.c{background:#38a169}.mini-nature.f{background:#b98900}.soc-show-page{background:#fff;padding:12px 18px}.soc-show-head{display:flex;gap:20px;align-items:flex-start;margin-bottom:30px}.soc-logo-box{width:62px;height:62px;border:1px solid #e1e5ee;box-shadow:0 2px 8px rgba(0,0,0,.12);display:grid;place-items:center;color:#6d57af;font-size:31px;background:#fff}.soc-logo-box img{max-width:100%;max-height:100%;object-fit:contain}.soc-head-info h1{font-size:13px;color:#0084aa;margin:0 0 4px}.soc-head-info div{font-size:12px;line-height:1.45}.soc-head-info i{color:#6d57af;width:15px}.soc-nav{margin-left:auto;text-align:right;color:#00135f;font-weight:800;line-height:2}.soc-nav span{margin-left:13px}.soc-details-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin-bottom:24px}.soc-lines div{display:grid;grid-template-columns:1fr 1.1fr;align-items:center;min-height:26px;border-top:1px solid #d9dde4;font-size:12px}.soc-lines div:last-child{border-bottom:1px solid #d9dde4}.soc-lines span{color:#3b465f}.soc-lines b{font-weight:700;color:#000}.soc-detail-buttons{text-align:right;margin:12px 0 50px}.soc-bottom-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin-top:18px}.soc-bottom-grid .mini-panel{border:1px solid #d9dde4;border-radius:8px;overflow:hidden;background:#fff}.soc-bottom-grid .mini-panel h4{background:#e4e7ed;margin:0;padding:10px 12px;color:#25304a;font-weight:500;font-size:12px}.soc-bottom-grid .mini-panel p{border-bottom:1px solid #d9dde4;margin:0;padding:12px;color:#98a2b3;font-size:12px}.email-form{max-width:1050px;margin:0 auto}.email-form .form-row{display:grid;grid-template-columns:160px 1fr;gap:14px;align-items:center;margin:8px 0}.email-form .form-row input,.email-form .form-row select,.email-form textarea{border:1px solid #d1d5db;border-radius:4px;padding:7px;width:100%}.email-form textarea{min-height:130px}
@media(max-width:1050px){.soc-grid{grid-template-columns:1fr 1fr}.span-3{grid-column:span 1}.right-label{padding-left:0}.soc-filters{grid-template-columns:1fr 40px 1fr 1fr}.soc-details-grid,.soc-bottom-grid{grid-template-columns:1fr}.soc-detail-buttons{text-align:left}}
@media(max-width:650px){.plain-page,.soc-show-page,.soc-list-page{padding:10px}.soc-grid{grid-template-columns:1fr}.wide-input,.short-wide input{width:100%}.soc-show-head{flex-wrap:wrap}.soc-nav{margin-left:0;text-align:left}.soc-lines div{grid-template-columns:1fr}.soc-filters{grid-template-columns:1fr}.soc-list-top{align-items:flex-start;flex-direction:column;gap:8px}.soc-detail-buttons a{display:block;text-align:center;margin:6px 0}.email-form .form-row{grid-template-columns:1fr}}

/* v23 clean login page */
.auth-page{
    min-height:100vh;
    margin:0;
    color:#0b1533;
    font-family:Inter,Segoe UI,Roboto,Arial,sans-serif;
    background:linear-gradient(rgba(255,255,255,.72),rgba(255,255,255,.72)),url("https://res.cloudinary.com/dfamlzfp7/image/upload/v1781831671/ChatGPT_Image_Jun_18_2026_06_13_52_PM_glrg91.png");
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
    background-attachment:fixed;
}
.auth-shell{
    min-height:100vh;
    display:grid;
    grid-template-columns:1.05fr .95fr;
    align-items:center;
    gap:48px;
    max-width:1120px;
    margin:0 auto;
    padding:40px 32px;
}
.auth-hero{padding:20px 0 20px 20px}.auth-brand{display:flex;align-items:center;gap:12px;margin-bottom:46px}.auth-logo{width:44px;height:44px;border-radius:12px;background:#5d5b9b;color:#fff;display:grid;place-items:center;font-weight:900;font-size:22px;box-shadow:0 10px 25px rgba(93,91,155,.22)}.auth-brand strong{display:block;font-size:18px}.auth-brand span{display:block;color:#667085;font-size:13px;margin-top:2px}.auth-hero h1{max-width:590px;font-size:50px;line-height:.98;letter-spacing:-1.8px;margin:0 0 20px;font-weight:900;color:#071225}.auth-hero p{max-width:510px;color:#556173;font-size:17px;line-height:1.55;margin:0}.auth-card-wrap{position:relative;display:flex;justify-content:center}.auth-card-wrap:before{content:"";position:absolute;width:360px;height:470px;right:10px;top:18px;background:#66659f;border-radius:24px;transform:rotate(-7deg);z-index:0}.auth-card{position:relative;z-index:1;width:100%;max-width:360px;background:rgba(255,255,255,.90);border:1px solid rgba(255,255,255,.45);border-radius:22px;padding:28px 28px 30px;box-shadow:0 20px 45px rgba(15,23,42,.13);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}.auth-card h2{margin:0 0 6px;font-size:24px;color:#071225}.auth-subtitle{margin:0 0 22px;color:#667085;font-size:14px}.auth-card label{display:block;margin:14px 0 7px;color:#111827;font-size:13px;font-weight:600}.auth-card label span{color:#f04438}.auth-card input[type=email],.auth-card input[type=password]{width:100%;height:40px;border:1px solid #cfd6e3;border-radius:6px;background:#fff;padding:8px 10px;font-size:14px;outline:none;transition:border-color .15s,box-shadow .15s}.auth-card input:focus{border-color:#5d5b9b;box-shadow:0 0 0 3px rgba(93,91,155,.12)}.auth-options{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 20px}.auth-options .remember{display:flex;align-items:center;gap:8px;margin:0;color:#344054;font-weight:500}.auth-options input[type=checkbox]{width:14px;height:14px;margin:0}.auth-options a{color:#5d5b9b;text-decoration:none;font-size:13px}.auth-options a:hover{text-decoration:underline}.auth-submit{width:100%;height:42px;border:0;border-radius:7px;background:#5d5b9b;color:#fff;font-weight:800;cursor:pointer;font-size:14px}.auth-submit:hover{background:#514f8f}.auth-alert{background:#fff1f0;border:1px solid #fecdca;color:#b42318;border-radius:8px;padding:10px 12px;margin-bottom:14px;font-size:13px}
@media(max-width:900px){.auth-shell{grid-template-columns:1fr;gap:26px;padding:28px 18px}.auth-hero{padding:0;text-align:left}.auth-brand{margin-bottom:24px}.auth-hero h1{font-size:38px}.auth-card-wrap{justify-content:flex-start}.auth-card-wrap:before{display:none}.auth-card{max-width:100%}}
@media(max-width:480px){.auth-shell{padding:22px 14px}.auth-hero h1{font-size:32px}.auth-hero p{font-size:15px}.auth-card{padding:22px 18px;border-radius:16px}.auth-options{align-items:flex-start;flex-direction:column}.auth-brand{margin-bottom:18px}}
/* v24 utilisateurs */
.module-icon{font-size:26px;color:#6b64a6;margin:8px 0 18px 8px}.dol-page{background:#fff}.dol-form{font-size:13px;color:#111}.dol-section{border-top:1px solid #cfcfd5;padding:14px 10px}.form-grid{display:grid;grid-template-columns:220px minmax(260px,1fr) 220px minmax(260px,1fr);gap:9px 14px;align-items:center}.form-grid label{font-weight:600;color:#210028}.form-grid .required{color:#4b0038}.form-grid input,.form-grid select,.form-grid textarea{border:1px solid #d2d4dc;border-radius:4px;padding:7px 8px;min-height:31px;background:#fff;width:min(100%,360px)}.form-grid textarea{width:min(100%,820px)}.form-grid .wide{grid-column:span 3}.form-actions{border-top:1px solid #cfcfd5;text-align:center;padding:15px}.btn-orange,.btn-secondary,.btn-small,.mini-btn{border:0;border-radius:4px;padding:9px 14px;font-weight:700;text-decoration:none;display:inline-block;cursor:pointer}.btn-orange,.btn-small{background:#ff7900;color:#fff}.btn-secondary{background:#7662ad;color:#fff}.mini-btn{background:#f2f2f5;color:#111;margin-left:8px}.info-dot{display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;border-radius:50%;background:#c7c9d1;color:#fff;font-size:10px}.dol-list-page{padding:8px}.list-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.round-add{display:inline-flex;width:35px;height:35px;align-items:center;justify-content:center;background:#07166d;color:#fff;border-radius:50%;text-decoration:none}.bulkbar{display:none;gap:10px;align-items:center;margin-bottom:8px;justify-content:center}.dol-table-wrap{overflow:auto;border:1px solid #d9dbe2;border-radius:8px}.dol-table{width:100%;border-collapse:collapse;background:#fff;font-size:13px}.dol-table th{background:#e6e7eb;color:#1b2864;text-align:left;padding:9px;border-bottom:1px solid #d5d7de}.dol-table td{padding:8px;border-bottom:1px solid #e2e3e8}.dol-table.compact td{padding:7px}.dol-table .filters input,.dol-table .filters select{width:100%;max-width:180px;padding:6px;border:1px solid #d5d7de;border-radius:4px}.empty{text-align:center;color:#888}.badge-green,.badge-gray{border-radius:4px;padding:3px 7px;font-weight:700;font-size:12px}.badge-green{background:#18a878;color:#fff}.badge-gray{background:#c9cdd3;color:#fff}.dol-detail-page{font-size:13px}.detail-head{display:flex;gap:18px;align-items:flex-start;border-bottom:1px solid #cfd1d7;padding:14px 8px}.avatar-box{width:76px;height:76px;box-shadow:0 2px 8px #0001;background:#fff;display:flex;align-items:center;justify-content:center;color:#6d63aa;font-size:32px}.detail-head h2{margin:0 0 5px;color:#0070b8;font-size:17px}.detail-head p{margin:4px 0;color:#495065}.detail-status{margin-left:auto;display:flex;flex-direction:column;gap:12px;align-items:flex-end}.detail-grid.two{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin:26px 8px}.info-table>div{display:grid;grid-template-columns:220px 1fr;border-bottom:1px solid #ddd;padding:7px 4px}.info-table span{color:#555}.info-table b{font-weight:600}.detail-actions{text-align:right;margin:20px 8px}.dev-box{margin:25px 8px;padding:20px;border:1px dashed #c8cbd3;border-radius:8px;color:#777;background:#fafafa}.hierarchy-tree{display:grid;gap:10px}.hierarchy-node{border:1px solid #ddd;border-radius:8px;padding:12px;background:#fff}.hierarchy-node span{margin-left:10px;color:#777}.auth-card input{box-sizing:border-box}.auth-page{display:block!important}.auth-shell{min-height:100vh}
@media(max-width:900px){.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}.form-grid input,.form-grid select,.form-grid textarea{width:100%;max-width:none}.detail-grid.two{grid-template-columns:1fr}.detail-head{flex-wrap:wrap}.detail-status{margin-left:0;align-items:flex-start}.info-table>div{grid-template-columns:1fr}}
/* v25 users list, profile and permissions */
.auth-card input[type=text],.auth-card input[type=email],.auth-card input[type=password]{width:100%;height:40px;border:1px solid #cfd6e3;border-radius:6px;background:#fff;padding:8px 10px;font-size:14px;outline:none;transition:border-color .15s,box-shadow .15s}
.user-list-page{background:#fff;padding:4px 10px 18px;font-size:12px;color:#00164d}.user-list-top{display:flex;align-items:center;justify-content:space-between;padding:0 0 10px}.user-module-title{display:flex;align-items:center;gap:88px;font-size:16px;color:#8a765a}.user-module-title .muted{color:#8b8fa0;font-size:13px}.user-list-tools{display:flex;align-items:center;gap:14px}.user-list-tools select{border:0;border-bottom:1px solid #d6d8de;height:30px;background:#fff}.view-btn{border:1px solid transparent;background:#f7f7f9;color:#9a9ca5;width:66px;height:35px;border-radius:3px;font-size:18px}.view-btn.active{border-color:#cfd2d9;background:#fff;color:#94969e}.user-table-wrap{overflow:auto;border-top:1px solid #dadde4}.user-table{width:100%;border-collapse:collapse;min-width:1040px;background:#fff}.user-table th{background:#e5e7ec;color:#24305f;font-weight:500;text-align:left;padding:8px 7px;border-bottom:1px solid #d2d6dd}.user-table td{padding:7px;border-bottom:1px solid #dfe2e7;white-space:nowrap}.user-table tbody tr:nth-child(even){background:#fafafa}.user-table tbody tr:hover{background:#edf6ff}.user-table .filters th{background:#e5e7ec}.user-table .filters input,.user-table .filters select{width:100%;max-width:124px;height:24px;border:1px solid #d6d9e0;border-radius:3px;background:#fff}.user-mini{color:#bc8d55}.star{color:#b79b34}.user-show-page{background:#fff;padding:0 14px 18px;font-size:12px;color:#101828}.user-tabs{display:flex;gap:0;border-top:1px solid #bfc4ce;border-bottom:1px solid #bfc4ce;margin:0 -10px 16px;overflow:auto}.user-tabs a{padding:9px 14px;color:#00135f;text-decoration:none;border-right:1px solid #e3e6ec;white-space:nowrap}.user-tabs a.active{background:#fff;border-top:2px solid #0715a8;margin-top:-1px;font-weight:700}.pill{background:#cfd3e8;border-radius:3px;padding:1px 5px;margin-left:3px;color:#5b63a3}.user-head{display:flex;align-items:flex-start;gap:20px;padding:4px 0 24px}.user-head.compact{padding-bottom:10px}.avatar-card{width:70px;height:70px;background:#fff;border:1px solid #e0e3eb;box-shadow:0 2px 9px rgba(0,0,0,.14);display:grid;place-items:center;font-size:42px;color:#c89b5d}.user-head-info h2{font-size:13px;color:#0070b0;margin:2px 0 8px}.user-head-info p{margin:0;color:#8a8e99}.gender-symbol{color:#adb4bf;margin-left:80px}.user-nav{margin-left:auto;text-align:right;font-weight:700;color:#00135f;line-height:2}.user-nav a{color:#00135f;text-decoration:none}.user-nav span{margin-left:12px}.user-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.user-lines>div{display:grid;grid-template-columns:245px 1fr;min-height:27px;align-items:center;border-bottom:1px solid #d9dde4}.user-lines span{color:#3b465f}.user-lines b{font-weight:600;color:#000}.user-lines h4{margin:22px 0 0;background:#e5e7ec;padding:9px 10px;color:#3b465f;font-weight:500}.gray-pill{background:#e5e7ec;color:#555;border-radius:8px;padding:2px 7px}.btn-light{background:#f1ecec;color:#7a4740;border:0;border-radius:4px;padding:9px 14px;font-weight:700;text-decoration:none;display:inline-block}.user-actions{text-align:right;margin:52px 0 0}.user-actions a{margin-left:8px}.permissions-table{width:100%;border-collapse:collapse;font-size:12px}.permissions-table th{background:#e5e7ec;color:#24305f;text-align:left;font-weight:500;padding:8px;border-bottom:1px solid #d6d9df}.permissions-table td{padding:7px 8px;border-bottom:1px solid #dfe2e7}.permissions-table .right{text-align:right}.perm-group td{background:#fff;color:#24305f;font-weight:700}.perm-group span{margin-left:220px;font-weight:500}.switch input{display:none}.switch span{display:inline-block;width:31px;height:16px;border-radius:18px;background:#a8adb7;position:relative;vertical-align:middle}.switch span:before{content:"";position:absolute;width:12px;height:12px;border-radius:50%;background:#fff;top:2px;left:2px;transition:.15s}.switch input:checked+span{background:#19a87a}.switch input:checked+span:before{left:17px}@media(max-width:950px){.user-info-grid{grid-template-columns:1fr}.user-lines>div{grid-template-columns:1fr}.user-head{flex-wrap:wrap}.user-nav{margin-left:0;text-align:left}.user-actions{text-align:left}.user-actions a{margin:5px 5px 5px 0}.user-list-top{align-items:flex-start;gap:10px;flex-direction:column}}

/* v26 fixed clean list tables for users and products */
.clean-list-page{background:#fff;border-top:2px solid #0715a8;padding:10px 12px 18px;min-height:420px;color:#07133f;font-size:12px}
.clean-list-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:10px}
.clean-title{display:flex;align-items:center;gap:75px;color:#7e725b;font-size:18px;min-height:34px}
.clean-title span{font-size:13px;color:#83899a}.clean-tools{display:flex;align-items:center;gap:14px}.clean-select{height:30px;border:0;border-bottom:1px solid #cfd4dc;background:#fff;padding:0 6px}.clean-view{height:34px;width:62px;border:1px solid transparent;background:#f8f9fb;color:#98a0ad;border-radius:3px;font-size:17px}.clean-view.active{border-color:#ccd1db;background:#fff;color:#7b8392}.clean-add{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:#06117e;color:#fff;text-decoration:none}.clean-page,.clean-next{color:#00135f;font-weight:700}.clean-actionbar{display:none;align-items:center;justify-content:center;gap:8px;margin:6px 0 10px}.clean-actionbar select{height:27px;border:0;border-bottom:1px solid #cbd0da;background:#fff;min-width:190px}.clean-table-box{width:100%;overflow-x:auto;border:1px solid #d9dde5;border-radius:8px;background:#fff}.clean-table{width:100%;border-collapse:collapse;table-layout:auto;min-width:1080px;background:#fff}.clean-table th,.clean-table td{border-bottom:1px solid #dfe3ea;padding:7px 8px;white-space:nowrap;vertical-align:middle;text-align:left}.clean-table thead tr:not(.clean-filters) th{background:#e5e8ee;color:#25305d;font-weight:500}.clean-filters th{background:#e5e8ee!important;padding:7px 8px}.clean-filters input,.clean-filters select{width:100%;height:25px;border:1px solid #d5dae3;border-radius:3px;background:#fff;padding:2px 7px;font-size:12px;max-width:150px}.clean-row-tools{white-space:nowrap;text-align:right!important}.clean-row-tools button{border:0;background:transparent;color:#111b35;cursor:pointer;font-size:15px;margin-left:6px}.clean-table tbody tr:nth-child(even){background:#fafafa}.clean-table tbody tr:hover{background:#eef6ff}.clean-table .empty-row{text-align:center;color:#8b92a0;padding:18px}.clean-table .muted{color:#8c93a2}.clean-table .num{text-align:right}.table-product-img{width:28px;height:28px;object-fit:cover;border:1px solid #e0e4ec;border-radius:3px;background:#fff}.product-cube{color:#a29334}.product-label{max-width:260px;overflow:hidden;text-overflow:ellipsis}.actions-cell{display:flex;gap:10px}.mini-action{color:#001a8f;text-decoration:none;font-weight:700}.mini-action.danger{color:#b42318}.badge.green,.badge-green{background:#16a679;color:#fff;border-radius:4px;padding:4px 8px;font-weight:700}.badge-gray{background:#c9cdd3;color:#fff;border-radius:4px;padding:4px 8px;font-weight:700}
@media(max-width:900px){.clean-list-page{padding:8px}.clean-list-head{align-items:flex-start;flex-direction:column}.clean-tools{flex-wrap:wrap}.clean-table{min-width:980px}.clean-title{gap:40px}}

/* v27 permissions / branding cleanup */
.user-tabs .pill{display:none!important}
.permissions-table .mini-link{border:0;background:transparent;color:#1a4aa0;cursor:pointer;font-size:12px;margin-left:10px;text-decoration:underline}
.access-denied{max-width:720px;margin:30px auto;padding:28px;border-left:4px solid #ff7900}
.access-denied h2{margin-top:0;color:#1b2559}

/* Header user profile - professional Font Awesome avatar */
.header-user-menu{position:relative;margin-left:4px;flex:0 0 auto}.header-user-btn{display:flex;align-items:center;gap:10px;border:0;background:transparent;padding:6px 8px;border-radius:10px;cursor:pointer;color:#0f172a;font-family:inherit}.header-user-btn:hover{background:#f1f5f9}.header-avatar{width:38px;height:38px;border-radius:50%;background:#29476b;display:grid;place-items:center;box-shadow:inset 0 0 0 1px rgba(255,255,255,.15)}.header-avatar i{font-size:25px;color:#fff}.header-user-text{display:flex;flex-direction:column;align-items:flex-start;line-height:1.15;min-width:90px}.header-user-text strong{font-size:13px;font-weight:700;color:#0f172a;max-width:160px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.header-user-text small{font-size:11px;color:#64748b;margin-top:2px}.header-user-arrow{font-size:11px;color:#64748b}.header-user-dropdown{display:none;position:absolute;right:0;top:calc(100% + 8px);min-width:185px;background:#fff;border:1px solid #e2e8f0;border-radius:10px;box-shadow:0 14px 34px rgba(15,23,42,.14);padding:6px;z-index:80}.header-user-dropdown.show{display:block}.header-user-dropdown a{display:flex;align-items:center;gap:9px;padding:9px 10px;border-radius:8px;color:#0f172a;text-decoration:none;font-size:13px}.header-user-dropdown a:hover{background:#f1f5f9}.header-user-dropdown i{width:16px;color:#29476b}.topbar>.user{display:none!important}
@media(max-width:900px){.header-user-text{display:none}.header-user-btn{padding:4px}.header-avatar{width:34px;height:34px}.header-avatar i{font-size:22px}.header-user-menu{margin-left:auto}.header-user-dropdown{right:0}}

/* v29 dashboard: practical Dolibarr-like widgets and professional icons */
.dashboard-kpi-strip{display:grid;grid-template-columns:repeat(6,minmax(130px,1fr));gap:10px;margin-bottom:14px}
.mini-kpi-card{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #d9dde6;border-radius:6px;padding:9px 10px;text-decoration:none;color:#18233d;min-height:58px;box-shadow:0 1px 3px rgba(15,23,42,.04)}
.mini-kpi-card:hover{background:#f8fafc;text-decoration:none}.mini-kpi-icon{width:34px;height:34px;border-radius:4px;display:grid;place-items:center;background:#eef2f7;font-size:17px}.mini-kpi-icon.brown{color:#8a6d3b}.mini-kpi-icon.purple{color:#6b5ca5}.mini-kpi-icon.blue{color:#4472a8}.mini-kpi-icon.gold{color:#b1972f}.mini-kpi-icon.green{color:#2e9d66}.mini-kpi-icon.teal{color:#348a95}.mini-kpi-text b{display:block;font-size:11px;font-weight:500;color:#475467;line-height:1.1}.mini-kpi-text strong{display:block;font-size:18px;line-height:1.1;color:#06133a}.erp-dashboard-layout{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:14px}.erp-widget{background:#fff;border:1px solid #d3d7df;border-radius:6px;overflow:hidden}.erp-widget.wide-left{grid-row:span 4}.widget-head{display:flex;align-items:center;justify-content:space-between;background:#e5e7ec;color:#344054;font-size:12px;padding:7px 9px;border-bottom:1px solid #d3d7df}.widget-head i{color:#8b93a3;margin-left:7px;font-size:11px}.donut-grid{display:grid;gap:18px;padding:20px 24px}.donut-grid.three{grid-template-columns:repeat(2,1fr)}.donut-grid.three .donut-box:nth-child(3){grid-column:1/-1;justify-self:center;min-width:220px}.donut-box{text-align:center}.donut-title{font-size:11px;margin-bottom:8px;color:#344054}.donut-empty{width:95px;height:95px;border-radius:50%;background:conic-gradient(#d8d8d8 0 360deg);margin:0 auto;position:relative}.donut-empty:after{content:"";position:absolute;inset:28px;background:#fff;border-radius:50%}.donut-legend{font-size:11px;color:#98a2b3;margin-top:8px}.donut-legend i{display:inline-block;width:9px;height:9px;background:#d8d8d8;margin-right:5px}.empty-widget-line{font-size:12px;color:#98a2b3;text-align:center;padding:18px}.empty-widget-line i{color:#07158d}.month-charts{display:grid;grid-template-columns:1fr 1fr;gap:24px;padding:18px 24px;min-height:150px;text-align:center}.month-charts span{font-size:11px;color:#344054}.tiny-bars{height:100px;margin-top:8px;background:linear-gradient(#e8ebf0 1px,transparent 1px),linear-gradient(90deg,#e8ebf0 1px,transparent 1px);background-size:20px 20px;border-left:1px solid #d8dde6;border-bottom:1px solid #d8dde6;position:relative}.tiny-bars:after{content:"J F M A M J J A S O N D";position:absolute;bottom:-18px;left:0;right:0;font-size:9px;color:#9aa2b1;letter-spacing:5px}.tiny-table{width:100%;border-collapse:collapse;font-size:12px}.tiny-table td{border-bottom:1px solid #dbe0e7;padding:7px 9px}.tiny-table a{color:#001a8f;text-decoration:none;font-weight:600}.tiny-table .num{text-align:right}.ok-dot:after{content:"";display:inline-block;width:10px;height:10px;border-radius:50%;background:#26a982}.bottom-dashboard{grid-template-columns:1fr 1fr}.sidebar nav a i,.menu-group>a i:first-child{font-size:16px;color:#b8c7e6}.sidebar a.active i,.sidebar a:hover i,.menu-group.open>a i:first-child{color:#fff}@media(max-width:1200px){.dashboard-kpi-strip{grid-template-columns:repeat(4,1fr)}.donut-grid.three{grid-template-columns:1fr}.donut-grid.three .donut-box:nth-child(3){grid-column:auto}}@media(max-width:900px){.dashboard-kpi-strip{grid-template-columns:repeat(2,1fr)}.erp-dashboard-layout,.bottom-dashboard{grid-template-columns:1fr}.erp-widget.wide-left{grid-row:auto}.month-charts{grid-template-columns:1fr}}@media(max-width:520px){.dashboard-kpi-strip{grid-template-columns:1fr}.mini-kpi-card{min-height:54px}}

/* v30 Entrepôts section */
.text-gold{color:#b0a13a}.text-teal{color:#008b9a}.text-olive{color:#8a7a25}.dol-page,.dol-show-page{background:#fff;border-top:2px solid #0715a8;padding:12px 16px 22px;color:#060f32;font-size:12px}.dol-icon-title{font-size:24px;color:#b0a13a;margin:4px 0 20px}.dol-form{max-width:1120px}.dol-line{display:grid;grid-template-columns:210px minmax(220px,1fr);gap:8px 10px;align-items:center;margin:7px 0}.dol-line.two{grid-template-columns:210px 170px 80px 170px}.dol-line label{font-weight:700;color:#2b003c}.dol-line input,.dol-line select,.dol-line textarea{border:0;border-bottom:1px solid #cfd4dc;background:#fff;min-height:27px;padding:3px 6px;font-size:12px}.dol-line textarea{border:1px solid #cfd4dc;resize:vertical}.dol-line textarea[name=description],.dol-line textarea[name=address]{max-width:795px}.field-icon{display:flex;align-items:center;gap:8px}.field-icon input,.field-icon select{min-width:220px}.dol-actions{border-top:1px solid #cfd4dc;margin-top:18px;padding-top:16px;text-align:center}.btn.danger-light{background:#eee5e2;color:#6a1d12}.warehouse-list-page .clean-title{gap:88px}.warehouse-table{min-width:940px}.warehouse-table-box{border-radius:0}.warehouse-table th,.warehouse-table td{font-size:12px}.total-row td{font-weight:500;color:#7a8290}.warehouse-card-head{display:flex;align-items:center;gap:22px;border-bottom:1px solid #d6dae2;padding:14px 8px 16px;margin-bottom:12px;position:relative}.entity-avatar.box{width:72px;height:72px;background:#fff;border:1px solid #e3e6ec;box-shadow:0 3px 10px rgba(15,23,42,.12);display:grid;place-items:center}.entity-avatar.box i{font-size:34px;color:#b0a13a}.warehouse-card-head h3{font-size:14px;font-weight:500;margin:0 0 8px}.warehouse-card-head p{margin:0;color:#4b5563}.status-right{position:absolute;right:0;top:42px}.show-topbar{text-align:right;padding:4px 0}.back-link{font-weight:700;color:#00106e;text-decoration:none}.nav-arrow{font-size:24px;color:#07135e;text-decoration:none;margin-left:15px}.dol-tabs{display:flex;border-bottom:1px solid #cbd0d8;margin:-12px -16px 12px}.dol-tabs a{padding:12px 16px;color:#00135f;text-decoration:none;border-right:1px solid #d0d5de}.dol-tabs a.active{background:#fff;border-top:2px solid #0715a8}.two-col-lines{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:8px 0 16px}.info-lines>div{display:grid;grid-template-columns:260px 1fr;border-bottom:1px solid #d6dae2;padding:7px 0}.info-lines span{color:#4b5563}.info-lines b{font-weight:600}.right-actions{text-align:right;margin:18px 0 58px}.warehouse-stock-box{border-radius:0}.warehouse-stock-table{min-width:1180px}.warehouse-stock-table th{background:#e5e8ee!important;color:#25305d;font-weight:500}.warehouse-stock-table td{font-size:12px}.warehouse-moves-page .clean-table{min-width:900px}
@media(max-width:900px){.dol-line,.dol-line.two{grid-template-columns:1fr}.two-col-lines{grid-template-columns:1fr}.info-lines>div{grid-template-columns:1fr}.right-actions{text-align:left;margin-bottom:20px}.dol-tabs{overflow-x:auto}.warehouse-card-head{flex-wrap:wrap}.status-right{position:static;margin-left:auto}}
/* v31 logistics modules */
.text-green{color:#159957}.text-blue{color:#2d7dd2}.text-purple{color:#6b5ca5}
.mini-bars{display:grid;gap:10px;margin-top:12px}.mini-bars>div{position:relative;background:#f4f5f8;border:1px solid #e1e4ea;border-radius:8px;padding:10px 12px;overflow:hidden}.mini-bars span,.mini-bars b{position:relative;z-index:1}.mini-bars b{float:right}.mini-bars em{position:absolute;left:0;top:0;bottom:0;background:rgba(85,102,180,.16);display:block;z-index:0}
.shipment-page .panel-head{background:#e6e8ee;color:#1f2d4d;padding:9px 12px;font-weight:600;border-bottom:1px solid #d5d9e2}
.shipment-page .clean-table select,.shipment-page .clean-table input{width:100%;max-width:none}
@media(max-width:768px){.shipment-page .clean-table-box{overflow-x:auto}.shipment-page .dol-line.two{grid-template-columns:1fr}}
.bulk-actions{align-items:center;gap:8px;margin-left:auto;margin-right:16px}.bulk-actions select{height:30px;border:1px solid #d2d7df;border-radius:4px;background:#fff}.btn.small{padding:6px 10px;font-size:12px}.docbar{display:flex;align-items:center;gap:8px;padding:8px;background:#eef0f4;border-bottom:1px solid #d6dae1}.lower-panels{margin-top:22px}.text-green{color:#239b56}.text-blue{color:#2f80c9}.text-gold{color:#b5a642}.badge.blue{background:#2f80c9;color:white}.badge.orange{background:#d99217;color:white}.badge.red{background:#b93a35;color:white}.badge.gray{background:#9aa1aa;color:white}.badge.green{background:#16a06d;color:white}
@media(max-width:760px){.bulk-actions{width:100%;margin:10px 0;flex-wrap:wrap}.docbar{flex-wrap:wrap}.right-actions{display:flex;flex-wrap:wrap;gap:8px}.two-cols.lower-panels{grid-template-columns:1fr}}
/* v33 expedition list/detail Dolibarr-like */
.text-green{color:#5a9d3a}.text-purple{color:#5b4ea3}.text-gold{color:#a89d3a}.muted{color:#9aa0a6}.small-icon{font-size:11px}.dol-list-top{display:flex;align-items:center;gap:16px;background:#fff;border-top:2px solid #0600a8;padding:12px 14px 10px}.dol-list-icon{font-size:22px;color:#669d3f}.count-spacer{margin-left:38px}.dol-pager{margin-left:auto;display:flex;align-items:center;gap:14px;color:#000}.dol-pager select{border:0;border-bottom:1px solid #bbb;padding:5px;background:#fff}.dol-pager .round,.round{width:28px;height:28px;border-radius:50%;display:inline-grid;place-items:center;background:#001a8f;color:#fff;text-decoration:none}.dol-table-card{background:#fff;border:1px solid #d7dce5;border-top:0;overflow:auto}.dol-erp-table{width:100%;border-collapse:collapse;font-size:12px;background:#fff}.dol-erp-table th,.dol-erp-table td{border-bottom:1px solid #d5d9e0;padding:7px 8px;text-align:left;white-space:nowrap}.dol-erp-table thead th{background:#e6e8ee;color:#1c2761;font-weight:500}.dol-erp-table .filter-line th{background:#e6e8ee}.dol-erp-table input,.dol-erp-table select{height:25px;border:1px solid #d7dce4;border-radius:3px;background:#fff;max-width:170px}.dol-erp-table tbody tr:hover{background:#eef6ff}.top-filter select{color:#9aa0a6}.icon-btn{display:inline-flex;align-items:center;justify-content:center;border:0;background:transparent;color:#06133a;margin-left:6px;cursor:pointer}.field-icon{display:inline-flex;align-items:center;gap:7px}.expedition-table th:nth-child(1){min-width:130px}.expedition-table th:nth-child(3){min-width:190px}.bulk-actions{align-items:center;gap:8px}.bulk-actions select{height:28px;border:1px solid #cfd5df}.clean-hero{border-top:2px solid #0600a8;background:#fff;padding:16px 12px 18px}.clean-hero .detail-icon{width:70px;height:70px;background:#fff;border:1px solid #e0e0e0;box-shadow:0 2px 8px rgba(0,0,0,.12);display:grid;place-items:center;font-size:34px}.clean-hero h2{font-size:12px;margin:0 0 3px;color:#344054;font-weight:500}.clean-hero p{margin:0}.detail-right{margin-left:auto;text-align:right}.compact-info{width:100%;border-collapse:collapse;font-size:12px;background:#fff}.compact-info td{border-bottom:1px solid #d8dce2;padding:6px 8px}.compact-info td:first-child{color:#4a5568;width:45%}.shipment-info-grid{gap:24px;margin:0 12px 14px}.shipment-products-box{margin:12px}.shipment-products-table th{background:#e6e8ee;color:#1c2761;font-weight:500}.shipment-actions{padding:18px 12px 54px;text-align:right}.shipment-actions .btn{margin-left:6px}.shipment-docs-panels{margin:0 12px 10px}.shipment-docs-panels .panel{border-radius:0;box-shadow:none}.docbar{background:#e6e8ee;padding:7px 9px;display:flex;align-items:center;justify-content:flex-end;gap:8px;font-size:12px}.docbar select{height:24px;border:1px solid #cfd4dd}.link-to{text-align:right;padding:12px;color:#001a8f;font-size:12px}.linked-object-panel{margin:16px 12px;border-radius:0;box-shadow:none}.panel-head span{margin-left:70px}.dot{display:inline-block;width:8px;height:8px;border-radius:50%}.green-dot{background:#1aa782}.badge.blue{background:#0b76d1}.badge.gray{background:#9aa0a6}.badge.red{background:#d92d20}
@media(max-width:900px){.dol-list-top,.dol-pager,.bulk-actions{flex-wrap:wrap}.shipment-info-grid,.shipment-docs-panels{grid-template-columns:1fr}.dol-erp-table input,.dol-erp-table select{max-width:120px}.shipment-actions{text-align:left}.shipment-actions .btn{margin:4px 4px 4px 0}}

/* Universal PDF viewer */
.pdf-viewer-page{background:#fff;border:1px solid #d8dce3;border-radius:8px;overflow:hidden;min-height:calc(100vh - 120px)}
.pdf-viewer-top{height:48px;background:#f3f4f7;border-bottom:1px solid #d8dce3;display:flex;align-items:center;justify-content:space-between;padding:0 14px;color:#111827}
.pdf-viewer-actions{display:flex;gap:8px}.pdf-frame{width:100%;height:calc(100vh - 170px);border:0;background:#fff;display:block}
@media(max-width:768px){.pdf-frame{height:70vh}.pdf-viewer-top{height:auto;padding:10px;gap:8px;align-items:flex-start;flex-direction:column}}

/* v35 professional visual refresh - appearance only, no feature/function changes */
:root{
  --pro-bg:#f3f6fb;--pro-surface:#ffffff;--pro-border:#dbe3ef;--pro-line:#e8edf5;--pro-text:#0f172a;--pro-muted:#64748b;--pro-primary:#304ffe;--pro-primary-dark:#1e2aa7;--pro-accent:#ff8a00;--pro-success:#12a77a;--pro-shadow:0 18px 45px rgba(15,23,42,.08);--pro-soft-shadow:0 8px 25px rgba(15,23,42,.06);--pro-radius:16px;
}
html{scroll-behavior:smooth}
body{font-family:Inter,Segoe UI,Roboto,Arial,sans-serif;background:radial-gradient(circle at top left,rgba(48,79,254,.08),transparent 34%),linear-gradient(180deg,#f7f9fc 0%,#eef3f9 100%);color:var(--pro-text)}
.sidebar{background:linear-gradient(180deg,#0b1225 0%,#121a33 58%,#07101f 100%);box-shadow:18px 0 45px rgba(2,8,23,.18);border-right:1px solid rgba(255,255,255,.06)}
.brand{padding:12px;border-radius:18px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08)}
.brand .logo{border:0;background:linear-gradient(135deg,#6375ff,#16c7a2);box-shadow:0 10px 25px rgba(48,79,254,.35);color:#fff}.brand strong{font-size:16px;letter-spacing:.3px}.brand span{color:#b7c4de}
.sidebar a{border:1px solid transparent;border-radius:13px;margin:5px 0;transition:.18s ease;background:transparent}.sidebar a:hover,.sidebar a.active,.menu-group.open>a{background:linear-gradient(135deg,rgba(86,100,245,.95),rgba(46,125,246,.72));border-color:rgba(255,255,255,.1);transform:translateX(3px);box-shadow:0 10px 24px rgba(48,79,254,.25)}
.submenu{border-left:1px solid rgba(255,255,255,.12);margin:7px 0 10px 18px}.submenu a{padding:9px 12px;border-radius:11px;color:#dbe6ff}
.topbar{height:74px;background:rgba(255,255,255,.88);backdrop-filter:blur(16px);border-bottom:1px solid rgba(219,227,239,.8);box-shadow:0 8px 22px rgba(15,23,42,.04)}
.search{border-radius:16px;border:1px solid var(--pro-border);background:#f8fafc;box-shadow:inset 0 1px 0 rgba(255,255,255,.8)}.search:focus{outline:0;border-color:#9aa7ff;box-shadow:0 0 0 4px rgba(48,79,254,.12)}
.content{padding:26px}.card,.panel,.chart-panel,.dash-card,.erp-widget,.dol-table-card,.clean-table-box,.dol-table-wrap,.product-form,.dol-page,.dol-show-page,.clean-dol,.plain-page{border-radius:var(--pro-radius)!important;border:1px solid var(--pro-border)!important;box-shadow:var(--pro-soft-shadow)!important;background:var(--pro-surface)!important;overflow:hidden}
.dol-page,.dol-show-page,.clean-hero,.dol-list-top,.product-list-toolbar{border-top:0!important;position:relative}.dol-page:before,.dol-show-page:before,.clean-hero:before,.dol-list-top:before,.product-list-toolbar:before,.tabs:before{content:"";position:absolute;left:0;right:0;top:0;height:4px;background:linear-gradient(90deg,var(--pro-primary),#16c7a2,var(--pro-accent))}
.btn,.purple-btn,.orange{border-radius:12px!important;padding:10px 16px!important;box-shadow:0 8px 18px rgba(15,23,42,.08);transition:.16s ease;text-decoration:none!important}.btn:hover,.purple-btn:hover,.orange:hover{transform:translateY(-1px);filter:brightness(1.02)}.orange,.purple-btn{background:linear-gradient(135deg,var(--pro-accent),#ff6b00)!important;color:#fff!important;border:0!important}.purple-btn.secondary,.btn.muted{background:#eef2f7!important;color:#334155!important;border:1px solid #d9e2ef!important}.btn.light{border-color:#d9e2ef!important;border-radius:12px!important;color:#334155!important}
.badge{border-radius:999px!important;padding:6px 11px!important;letter-spacing:.1px}.badge.green,.green{background:linear-gradient(135deg,#10b981,#059669)!important;color:#fff}.badge.orange{background:linear-gradient(135deg,#fb923c,#ea580c)!important}.badge.blue{background:linear-gradient(135deg,#3b82f6,#1d4ed8)!important}
/* Product and client/supplier forms */
.product-form,.societe-form,.dol-form{max-width:1180px;margin:0 auto}.product-form{padding:26px!important}.product-form h2,.dol-icon-title{font-size:20px!important;margin:0 0 20px!important;color:#0f172a!important;font-weight:800!important}.form-grid,.soc-grid,.dol-form{background:linear-gradient(180deg,#fff,#fbfdff);border:1px solid var(--pro-border);border-radius:18px;padding:20px;margin-bottom:18px;box-shadow:0 10px 24px rgba(15,23,42,.04)}
.form-grid{grid-template-columns:240px minmax(0,1fr);gap:14px 18px}.form-grid label,.soc-grid>label,.dol-line label{color:#24324a!important;font-size:12px!important;font-weight:800!important;text-transform:uppercase;letter-spacing:.03em}.form-grid input,.form-grid select,.form-grid textarea,.soc-grid input,.soc-grid select,.soc-grid textarea,.dol-line input,.dol-line select,.dol-line textarea{width:100%;min-height:40px;border:1px solid #d9e2ef!important;border-radius:12px!important;background:#fff!important;padding:9px 12px!important;color:#0f172a;transition:.15s ease}.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus,.soc-grid input:focus,.soc-grid select:focus,.soc-grid textarea:focus,.dol-line input:focus,.dol-line select:focus,.dol-line textarea:focus{outline:0;border-color:#91a1ff!important;box-shadow:0 0 0 4px rgba(48,79,254,.1)}.form-grid textarea,.soc-grid textarea,.dol-line textarea{min-height:92px;resize:vertical}.form-actions,.soc-form-actions,.dol-actions{background:#f8fafc;border-top:1px solid var(--pro-line);margin:18px -26px -26px!important;padding:18px!important;text-align:right!important}.triple{gap:10px}.triple input{width:100%}.pill-check{background:#f8fafc;border:1px solid var(--pro-border);border-radius:999px;padding:8px 12px!important;display:inline-flex;align-items:center;gap:8px}.soc-form-icon{width:58px;height:58px;border-radius:18px;background:linear-gradient(135deg,#eef2ff,#e0f7f2);color:var(--pro-primary);display:grid;place-items:center;font-size:28px;margin:0 0 16px;box-shadow:var(--pro-soft-shadow)}.soc-more-title{background:#f8fafc;border:1px solid var(--pro-border);border-radius:14px;padding:12px 16px;margin:16px 0;color:#24324a;font-weight:800}
/* Lists and tables */
.product-list-toolbar,.dol-list-top{padding:18px 20px!important;background:#fff!important;border-radius:var(--pro-radius) var(--pro-radius) 0 0!important;border:1px solid var(--pro-border)!important;border-bottom:0!important;box-shadow:var(--pro-soft-shadow)}.product-list-toolbar .count,.dol-list-top{color:#475569}.round,.dol-pager .round{background:linear-gradient(135deg,var(--pro-primary),#1826a8)!important;width:30px!important;height:30px!important;box-shadow:0 8px 16px rgba(48,79,254,.22)}
.dol-table-wrap,.dol-table-card,.clean-table-box{border-radius:0 0 var(--pro-radius) var(--pro-radius)!important}.dol-table,.dol-erp-table,.clean-table{font-size:12.5px!important}.dol-table th,.dol-erp-table th,.clean-table th{background:#f1f5f9!important;color:#334155!important;font-weight:800!important;text-transform:uppercase;letter-spacing:.025em;border-bottom:1px solid #dce4ef!important}.dol-table td,.dol-erp-table td,.clean-table td{border-bottom:1px solid #edf1f6!important;color:#172033!important;padding:10px 9px!important}.dol-table tbody tr,.dol-erp-table tbody tr,.clean-table tbody tr{transition:.14s ease}.dol-table tbody tr:hover,.dol-erp-table tbody tr:hover,.clean-table tbody tr:hover{background:#f0f7ff!important;box-shadow:inset 3px 0 0 var(--pro-primary)}.dol-table input,.dol-table select,.dol-erp-table input,.dol-erp-table select,.clean-table input,.clean-table select{border:1px solid #d9e2ef!important;border-radius:9px!important;height:30px!important;background:#fff!important}.ref,.dol-lines a,.back-link{color:#1d4ed8!important;font-weight:800!important}.price{color:#008b84!important;font-weight:700}.filter-bar,.docbar,.panel-head,.mini-panel h4{background:#f1f5f9!important;color:#334155!important;border-color:#dce4ef!important}
/* Detail pages / tabs */
.tabs,.dol-tabs{border:1px solid var(--pro-border)!important;border-radius:16px 16px 0 0!important;overflow:auto;background:#fff!important;position:relative;padding-top:4px}.tabs a,.dol-tabs a{border-right:1px solid #edf1f6!important;color:#334155!important;font-weight:800!important;transition:.15s ease}.tabs a:hover,.dol-tabs a:hover{background:#f8fafc!important;color:var(--pro-primary)!important}.tabs a.active,.dol-tabs a.active{background:#eef2ff!important;color:var(--pro-primary)!important;border-bottom:0!important}.clean-dol .show-head,.warehouse-card-head,.clean-hero{padding:22px!important;border-bottom:1px solid var(--pro-line)!important}.photo,.entity-avatar.box,.clean-hero .detail-icon{border-radius:18px!important;border:1px solid var(--pro-border)!important;box-shadow:0 10px 24px rgba(15,23,42,.08)!important;background:linear-gradient(180deg,#fff,#f8fafc)!important}.details-grid,.bottom-panels,.two-col-lines,.shipment-info-grid{gap:24px!important}.lines div,.dol-lines div,.info-lines>div{border-bottom:1px solid #edf1f6!important;min-height:34px!important}.lines span,.dol-lines span,.info-lines span{color:#64748b!important}.lines b,.dol-lines b,.info-lines b{color:#0f172a!important}
/* Dashboard polish */
.dash-card,.mini-kpi-card,.chart-panel,.erp-widget{border-radius:18px!important}.dash-icon{background:linear-gradient(135deg,#eef2ff,#e0f7f2)!important;color:#304ffe}.dash-card b,.mini-kpi-card b{color:#0f172a!important}.progress-bar,.bar-fill{border-radius:999px!important}
/* Login polish */
.login-page{background:radial-gradient(circle at 20% 20%,rgba(99,117,255,.35),transparent 26%),linear-gradient(135deg,#071225,#121a33 60%,#0b1225)!important}.login-card{border:1px solid rgba(255,255,255,.18);box-shadow:0 30px 80px rgba(0,0,0,.35);border-radius:24px}.login-card input{border-radius:14px!important}.login-card button{border-radius:14px!important;background:linear-gradient(135deg,#5664f5,#16a6b8)!important;border:0!important}
@media(max-width:900px){.content{padding:16px}.form-grid,.soc-grid{grid-template-columns:1fr!important;padding:15px}.form-actions,.soc-form-actions,.dol-actions{text-align:left!important;margin-left:-15px!important;margin-right:-15px!important}.topbar{padding:0 16px}.product-list-toolbar,.dol-list-top{flex-wrap:wrap;gap:10px}.sidebar a:hover,.sidebar a.active{transform:none}}

/* v25 clean Excel-like UI + Chart.js dashboard */
:root{--xl-bg:#f6f7f9;--xl-sheet:#ffffff;--xl-grid:#d9e0e8;--xl-head:#eef2f5;--xl-text:#1f2937;--xl-muted:#6b7280;--xl-green:#38BDF8;--xl-blue:#2563eb;--xl-orange:#c56a00;--xl-radius:6px;--xl-shadow:0 1px 2px rgba(15,23,42,.06)}
html{scroll-behavior:auto}body{font-family:Arial,Helvetica,sans-serif!important;background:var(--xl-bg)!important;color:var(--xl-text)!important;font-size:13px!important}.content{padding:16px!important}.topbar{height:58px!important;background:#fff!important;backdrop-filter:none!important;border-bottom:1px solid var(--xl-grid)!important;box-shadow:none!important}.page-title b{font-size:16px!important;color:#111827!important}.search{height:34px!important;border-radius:3px!important;background:#fff!important;border:1px solid #cbd5e1!important;box-shadow:none!important;padding:7px 10px!important}.search:focus{border-color:var(--xl-green)!important;box-shadow:0 0 0 1px var(--xl-green)!important}.sidebar{background:#ffffff!important;color:#1f2937!important;border-right:1px solid var(--xl-grid)!important;box-shadow:none!important}.brand{background:#f8fafc!important;border:1px solid var(--xl-grid)!important;border-radius:6px!important;padding:10px!important}.brand strong,.brand span{color:#1f2937!important}.brand .logo{background:var(--xl-green)!important;border-radius:4px!important;box-shadow:none!important;color:#fff!important}.sidebar a{color:#1f2937!important;border-radius:4px!important;padding:9px 10px!important;margin:2px 0!important;transition:none!important}.sidebar a:hover,.sidebar a.active,.menu-group.open>a{background:#E0F7FF!important;color:#0f5132!important;border-color:#b7d7c5!important;transform:none!important;box-shadow:none!important}.submenu{border-left:2px solid #d1d5db!important;margin:3px 0 6px 13px!important}.submenu a{color:#374151!important;padding:7px 10px!important;border-radius:3px!important}.card,.panel,.chart-panel,.dash-card,.erp-widget,.excel-panel,.dol-table-card,.clean-table-box,.dol-table-wrap,.product-form,.dol-page,.dol-show-page,.clean-dol,.plain-page,.dol-list-panel,.tier-detail-head{border-radius:var(--xl-radius)!important;border:1px solid var(--xl-grid)!important;box-shadow:var(--xl-shadow)!important;background:var(--xl-sheet)!important}.dol-page:before,.dol-show-page:before,.clean-hero:before,.dol-list-top:before,.product-list-toolbar:before,.tabs:before{display:none!important}.btn,.purple-btn,.orange,.orange-btn,.gray-btn,.green-btn,.small-gray-btn{border-radius:3px!important;box-shadow:none!important;transform:none!important;font-weight:600!important;padding:8px 12px!important}.btn:hover,.purple-btn:hover,.orange:hover,.orange-btn:hover,.gray-btn:hover,.green-btn:hover{transform:none!important;filter:none!important}.orange,.orange-btn,.purple-btn{background:var(--xl-green)!important;color:white!important;border:1px solid #0284C7!important}.btn.light,.btn.muted,.gray-btn,.small-gray-btn{background:#f8fafc!important;color:#374151!important;border:1px solid #cbd5e1!important}.badge,.type-badge{border-radius:3px!important;padding:4px 7px!important;font-size:11px!important}.product-form,.societe-form,.dol-form{max-width:1220px!important}.product-form{padding:16px!important}.form-grid,.soc-grid,.dol-form,.tier-form{background:#fff!important;border:1px solid var(--xl-grid)!important;border-radius:4px!important;box-shadow:none!important;padding:14px!important;margin-bottom:12px!important}.form-grid{grid-template-columns:210px minmax(0,1fr)!important;gap:8px 12px!important}.form-grid label,.soc-grid>label,.dol-line label,.tiers-form-grid label{color:#374151!important;font-size:12px!important;text-transform:none!important;letter-spacing:0!important;font-weight:600!important}.form-grid input,.form-grid select,.form-grid textarea,.soc-grid input,.soc-grid select,.soc-grid textarea,.dol-line input,.dol-line select,.dol-line textarea,.tiers-form-grid input,.tiers-form-grid select,.tiers-form-grid textarea{border:1px solid #cbd5e1!important;border-radius:2px!important;min-height:32px!important;padding:6px 8px!important;background:#fff!important;box-shadow:none!important}.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus,.soc-grid input:focus,.soc-grid select:focus,.soc-grid textarea:focus,.dol-line input:focus,.dol-line select:focus,.dol-line textarea:focus,.tiers-form-grid input:focus,.tiers-form-grid select:focus,.tiers-form-grid textarea:focus{outline:2px solid #a7d7bb!important;border-color:var(--xl-green)!important;box-shadow:none!important}.form-actions,.soc-form-actions,.dol-actions{background:#f8fafc!important;border-top:1px solid var(--xl-grid)!important;margin:12px -16px -16px!important;padding:12px 16px!important;text-align:right!important}.product-list-toolbar,.dol-list-top{padding:10px 12px!important;background:#fff!important;border-radius:4px 4px 0 0!important;border:1px solid var(--xl-grid)!important;border-bottom:0!important;box-shadow:none!important}.round,.round-plus,.dol-pager .round{background:var(--xl-green)!important;width:26px!important;height:26px!important;box-shadow:none!important}.filters,.filter-bar,.docbar,.panel-head,.mini-panel h4{background:var(--xl-head)!important;border-color:var(--xl-grid)!important;color:#374151!important}.dol-table,.dol-erp-table,.clean-table,.table,.editable-lines,.edit-lines-table,.tiers-table{font-size:12px!important;border-collapse:collapse!important;background:#fff!important}.dol-table th,.dol-erp-table th,.clean-table th,.table th,.editable-lines th,.edit-lines-table th,.tiers-table th{background:var(--xl-head)!important;color:#111827!important;font-weight:600!important;text-transform:none!important;letter-spacing:0!important;border:1px solid var(--xl-grid)!important;padding:7px 8px!important}.dol-table td,.dol-erp-table td,.clean-table td,.table td,.editable-lines td,.edit-lines-table td,.tiers-table td{border:1px solid var(--xl-grid)!important;color:#1f2937!important;padding:6px 8px!important}.dol-table tbody tr:nth-child(even),.dol-erp-table tbody tr:nth-child(even),.clean-table tbody tr:nth-child(even),.table tbody tr:nth-child(even){background:#fbfcfd!important}.dol-table tbody tr:hover,.dol-erp-table tbody tr:hover,.clean-table tbody tr:hover,.table tbody tr:hover{background:#E0F7FF!important;box-shadow:none!important}.dol-table input,.dol-table select,.dol-erp-table input,.dol-erp-table select,.clean-table input,.clean-table select,.filters input,.filters select{border:1px solid #cbd5e1!important;border-radius:2px!important;height:28px!important;background:#fff!important}.ref,.dol-lines a,.back-link,.excel-mini-table a{color:#1155cc!important;font-weight:600!important}.price{color:#0f766e!important;font-weight:600!important}.tabs,.dol-tabs{border:1px solid var(--xl-grid)!important;border-radius:4px 4px 0 0!important;background:#f8fafc!important;padding-top:0!important}.tabs a,.dol-tabs a{padding:9px 12px!important;color:#374151!important;font-weight:600!important;border-right:1px solid var(--xl-grid)!important}.tabs a.active,.dol-tabs a.active{background:#fff!important;color:var(--xl-green)!important;border-top:2px solid var(--xl-green)!important}.clean-dol .show-head,.warehouse-card-head,.clean-hero{padding:14px!important;border-bottom:1px solid var(--xl-grid)!important}.photo,.entity-avatar.box,.clean-hero .detail-icon,.module-icon{border-radius:4px!important;border:1px solid var(--xl-grid)!important;box-shadow:none!important;background:#fff!important}.lines div,.dol-lines div,.info-lines>div{border-bottom:1px solid var(--xl-grid)!important;min-height:30px!important}.lines span,.dol-lines span,.info-lines span{color:#4b5563!important}.lines b,.dol-lines b,.info-lines b{color:#111827!important}.dashboard-kpi-strip{display:grid;grid-template-columns:repeat(6,minmax(130px,1fr));gap:8px;margin-bottom:12px}.mini-kpi-card{background:#fff!important;border:1px solid var(--xl-grid)!important;border-radius:4px!important;box-shadow:none!important;padding:10px!important;color:#1f2937!important;text-decoration:none!important}.mini-kpi-card:hover{background:#f8fafc!important}.mini-kpi-icon{border-radius:3px!important;background:#E0F7FF!important;color:var(--xl-green)!important}.mini-kpi-text b{font-size:12px!important;color:#374151!important}.mini-kpi-text strong{font-size:20px!important;color:#111827!important}.excel-dashboard{display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px}.excel-panel{padding:12px!important}.excel-panel-wide{grid-column:1 / 3}.excel-panel-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;border-bottom:1px solid var(--xl-grid);padding-bottom:8px;margin-bottom:10px}.excel-panel-head b{display:block;font-size:14px;color:#111827}.excel-panel-head span,.excel-panel-head small{display:block;color:var(--xl-muted);font-size:12px;margin-top:2px}.excel-chart-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.excel-chart-box{height:260px;position:relative}.excel-chart-box.small{height:230px}.excel-mini-table{width:100%;border-collapse:collapse;font-size:12px}.excel-mini-table td{border:1px solid var(--xl-grid);padding:7px 8px;background:#fff}.excel-mini-table tr:nth-child(even) td{background:#fbfcfd}.excel-mini-table small{display:block;color:var(--xl-muted);font-size:11px;margin-top:2px}.num{text-align:right}.login-page{background:#f3f4f6!important}.login-card{border:1px solid var(--xl-grid)!important;box-shadow:var(--xl-shadow)!important;border-radius:6px!important}.login-card input,.login-card button{border-radius:3px!important}.login-card button{background:var(--xl-green)!important;border:1px solid #0284C7!important}footer{border-top:1px solid var(--xl-grid);background:#fff;color:#6b7280!important;padding:10px 16px!important}@media(max-width:1100px){.dashboard-kpi-strip{grid-template-columns:repeat(3,1fr)}.excel-dashboard{grid-template-columns:1fr}.excel-panel-wide{grid-column:auto}.excel-chart-row{grid-template-columns:1fr}}@media(max-width:900px){.form-grid,.soc-grid,.tiers-form-grid{grid-template-columns:1fr!important}.dashboard-kpi-strip{grid-template-columns:repeat(2,1fr)}.excel-chart-box{height:240px}.sidebar{background:#fff!important}.content{padding:12px!important}}@media(max-width:560px){.dashboard-kpi-strip{grid-template-columns:1fr}.excel-chart-box{height:220px}}

/* v24 readable icons + responsive clean layout */
:root{--side-w:270px;--side-w-mobile:86vw;--xl-green:#38BDF8;--xl-grid:#d7dde5;--xl-text:#172033;--xl-muted:#667085;--xl-hover:#E0F7FF;--xl-active:#BAE6FD}
html,body{max-width:100%;overflow-x:hidden}
.app{min-width:0;width:100%}.main{min-width:0;overflow-x:hidden;margin-left:var(--side-w)!important;width:calc(100% - var(--side-w))!important}.content{min-width:0;overflow-x:auto;-webkit-overflow-scrolling:touch}.sidebar{width:var(--side-w)!important;min-width:var(--side-w)!important;padding:12px 10px!important;overflow-y:auto;overflow-x:hidden;z-index:50}.sidebar::-webkit-scrollbar{width:8px}.sidebar::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:10px}.brand{margin-bottom:10px!important;gap:10px!important}.brand b{font-size:16px!important;line-height:1.15!important}.brand span{font-size:11px!important;color:#64748b!important}.brand .logo{width:32px!important;height:32px!important;min-width:32px!important}
.sidebar nav{display:block;padding-bottom:16px}.sidebar a,.menu-group>a{display:flex!important;align-items:center!important;gap:10px!important;width:100%!important;min-height:38px!important;line-height:1.25!important;font-size:13px!important;font-weight:600!important;white-space:normal!important;word-break:normal!important;overflow-wrap:anywhere!important;border:1px solid transparent!important}.sidebar a i:first-child,.menu-group>a i:first-child{width:22px!important;min-width:22px!important;height:22px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;font-size:15px!important;color:#38BDF8!important;background:#E0F7FF!important;border:1px solid #BAE6FD!important;border-radius:5px!important}.sidebar a.active i:first-child,.sidebar a:hover i:first-child,.menu-group.open>a i:first-child{background:#38BDF8!important;color:#fff!important;border-color:#38BDF8!important}.menu-arrow{margin-left:auto!important;min-width:14px!important;color:#94a3b8!important;transition:transform .15s ease}.menu-group.open .menu-arrow{transform:rotate(180deg);color:#38BDF8!important}.submenu{display:none!important;margin:4px 0 8px 16px!important;padding-left:10px!important;border-left:2px solid #d8dee8!important}.menu-group.open>.submenu{display:block!important}.submenu a{display:flex!important;align-items:center!important;min-height:34px!important;padding:8px 9px!important;font-size:13px!important;font-weight:600!important;color:#111827!important;white-space:normal!important;line-height:1.25!important}.submenu a:before{content:"";width:5px;height:5px;border-radius:50%;background:#94a3b8;margin-right:8px;flex:0 0 auto}.submenu a:hover:before,.submenu a.active:before{background:#38BDF8}.submenu-heading{font-size:11px!important;text-transform:uppercase;letter-spacing:.04em;color:#64748b!important;font-weight:700!important;padding:10px 9px 4px 22px!important}
.topbar{left:var(--side-w);min-width:0}.page-title{min-width:0}.page-title b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.header-user-menu{flex:0 0 auto}.header-user-btn{max-width:220px}.header-user-text{min-width:0}.header-user-text strong,.header-user-text small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.search{min-width:180px;max-width:360px;width:30vw!important}.mobile-menu-btn{display:none!important;background:#fff;border:1px solid var(--xl-grid);border-radius:4px;width:36px;height:34px;color:#38BDF8}.mobile-overlay{display:none;position:fixed;inset:0;background:rgba(15,23,42,.36);z-index:45}
.dol-table-wrap,.table-wrap,.clean-table-box,.dol-list-panel,.panel,.excel-panel{max-width:100%;overflow-x:auto!important;-webkit-overflow-scrolling:touch}.dol-table,.dol-erp-table,.clean-table,.table,.editable-lines,.edit-lines-table,.tiers-table{min-width:760px}.tabs,.dol-tabs{overflow-x:auto!important;white-space:nowrap;-webkit-overflow-scrolling:touch}.tabs a,.dol-tabs a{flex:0 0 auto}.form-grid,.soc-grid,.tiers-form-grid,.dol-form{max-width:100%;min-width:0}.form-grid input,.form-grid select,.form-grid textarea,.soc-grid input,.soc-grid select,.soc-grid textarea,.tiers-form-grid input,.tiers-form-grid select,.tiers-form-grid textarea{max-width:100%;width:100%}.triple{flex-wrap:wrap}.triple input{min-width:70px;flex:1}.product-list-toolbar,.dol-list-top{gap:10px;flex-wrap:wrap}.product-list-toolbar .count{gap:16px!important;flex-wrap:wrap}.pager,.dol-pager{flex-wrap:wrap}.show-head,.clean-dol .show-head,.tier-detail-head,.clean-hero{flex-wrap:wrap}.head-actions{margin-left:0!important;flex-wrap:wrap;text-align:left!important}.details-grid,.bottom-panels,.dol-section.two-cols{min-width:0}.excel-dashboard,.charts-layout,.dashboard-grid,.cards{min-width:0}
@media(max-width:1100px){:root{--side-w:245px}.sidebar a,.menu-group>a{font-size:12.5px!important}.submenu a{font-size:12.5px!important}.search{width:240px!important}.dashboard-grid,.cards{grid-template-columns:repeat(2,1fr)!important}}
@media(max-width:900px){html,body{overflow-x:hidden}.app{display:block!important}.main{margin-left:0!important;width:100%!important}.topbar{left:0;height:56px!important;padding:0 10px!important;gap:8px!important}.mobile-menu-btn{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 auto}.mobile-overlay.show{display:block}.sidebar{position:fixed!important;top:0!important;bottom:0!important;left:0!important;width:min(var(--side-w-mobile),330px)!important;min-width:0!important;transform:translateX(-105%);transition:transform .2s ease;background:#fff!important;box-shadow:0 18px 50px rgba(15,23,42,.22)!important}.sidebar.open{transform:translateX(0)}.search{display:none!important}.header-user-btn{max-width:160px}.content{padding:10px!important;overflow-x:auto!important}.sidebar a,.menu-group>a{min-height:40px!important;font-size:13px!important}.submenu a{font-size:13px!important}.form-grid,.soc-grid,.tiers-form-grid,.dol-form{grid-template-columns:1fr!important;padding:10px!important}.dashboard-grid,.cards,.dashboard-kpi-strip{grid-template-columns:1fr 1fr!important}.excel-dashboard,.charts-layout,.excel-chart-row,.details-grid,.bottom-panels,.dol-section.two-cols{grid-template-columns:1fr!important}.product-list-toolbar,.dol-list-top{display:flex!important;align-items:flex-start!important}.dol-table,.dol-erp-table,.clean-table,.table,.editable-lines,.edit-lines-table,.tiers-table{min-width:820px}.tabs,.dol-tabs{display:flex!important}.show-buttons,.right-actions,.form-actions,.soc-form-actions,.dol-actions{text-align:left!important}.login-card{width:min(94vw,380px)!important}}
@media(max-width:560px){.dashboard-grid,.cards,.dashboard-kpi-strip{grid-template-columns:1fr!important}.topbar{gap:6px!important}.page-title b{font-size:14px!important}.header-user-text small{display:none}.header-user-btn{max-width:120px;padding:6px!important}.header-avatar{display:none!important}.content{padding:8px!important}.sidebar{width:92vw!important}.brand b{font-size:15px!important}.product-list-toolbar .count{width:100%;display:grid!important;grid-template-columns:1fr 1fr}.pager{width:100%;justify-content:space-between}.btn,.purple-btn,.orange,.orange-btn,.gray-btn,.green-btn,.small-gray-btn{width:auto;max-width:100%;white-space:normal}.excel-chart-box{height:220px!important}}

/* v25 login background update - requested Cloudinary image */
.auth-page{
    min-height:100vh!important;
    display:block!important;
    background-image:linear-gradient(90deg, rgba(247,249,252,.92) 0%, rgba(247,249,252,.72) 42%, rgba(247,249,252,.18) 100%), url('https://res.cloudinary.com/dfamlzfp7/image/upload/v1781831671/ChatGPT_Image_Jun_18_2026_06_13_52_PM_glrg91.png')!important;
    background-size:cover!important;
    background-position:center!important;
    background-repeat:no-repeat!important;
    background-attachment:fixed!important;
    font-family:'Segoe UI', Arial, Helvetica, sans-serif!important;
}
.auth-shell{
    min-height:100vh!important;
    display:grid!important;
    grid-template-columns:minmax(280px,1.1fr) minmax(320px,.75fr)!important;
    gap:38px!important;
    align-items:center!important;
    max-width:1180px!important;
    margin:0 auto!important;
    padding:36px 22px!important;
}
.auth-card-wrap:before{display:none!important}
.auth-card{
    max-width:390px!important;
    border-radius:8px!important;
    background:rgba(255,255,255,.94)!important;
    border:1px solid rgba(215,221,229,.9)!important;
    box-shadow:0 18px 46px rgba(15,23,42,.18)!important;
    backdrop-filter:blur(8px)!important;
}
.auth-logo{background:#38BDF8!important;border-radius:6px!important;box-shadow:none!important}
.auth-brand strong,.auth-card h2,.auth-hero h1{color:#111827!important}
.auth-brand span,.auth-hero p,.auth-subtitle{color:#475467!important}
.auth-hero h1{font-size:46px!important;line-height:1.05!important;letter-spacing:-1.2px!important}
.auth-card input[type=text],.auth-card input[type=email],.auth-card input[type=password]{
    border-radius:3px!important;
    border:1px solid #cfd6e3!important;
    height:42px!important;
    background:#fff!important;
}
.auth-card input:focus{border-color:#38BDF8!important;box-shadow:0 0 0 3px rgba(56,189,248,.16)!important}
.auth-submit{background:#38BDF8!important;border-radius:3px!important;border:1px solid #0284C7!important;height:42px!important}
.auth-submit:hover{background:#0284C7!important}
.auth-options a{color:#38BDF8!important}
@media(max-width:900px){
    .auth-page{background-image:linear-gradient(180deg, rgba(247,249,252,.92), rgba(247,249,252,.78)), url('https://res.cloudinary.com/dfamlzfp7/image/upload/v1781831671/ChatGPT_Image_Jun_18_2026_06_13_52_PM_glrg91.png')!important;background-attachment:scroll!important}
    .auth-shell{grid-template-columns:1fr!important;gap:22px!important;padding:24px 16px!important}
    .auth-hero h1{font-size:34px!important}
    .auth-card-wrap{justify-content:center!important}
}
@media(max-width:480px){
    .auth-shell{padding:18px 12px!important}
    .auth-hero h1{font-size:28px!important}
    .auth-card{padding:22px 18px!important;max-width:100%!important}
}

/* v26 login: same screenshot structure, cleaner background visibility */
body.auth-page{
    min-height:100vh!important;
    height:100vh!important;
    overflow:hidden!important;
    background-image:linear-gradient(90deg, rgba(246,248,251,.88) 0%, rgba(246,248,251,.70) 38%, rgba(246,248,251,.18) 72%, rgba(246,248,251,.05) 100%), url('https://res.cloudinary.com/dfamlzfp7/image/upload/v1781831671/ChatGPT_Image_Jun_18_2026_06_13_52_PM_glrg91.png')!important;
    background-size:cover!important;
    background-position:center center!important;
    background-repeat:no-repeat!important;
    background-attachment:fixed!important;
}
.auth-shell{
    min-height:100vh!important;
    max-width:1120px!important;
    padding:38px 32px!important;
    display:grid!important;
    grid-template-columns:1.08fr .92fr!important;
    align-items:center!important;
    gap:70px!important;
}
.auth-hero{padding:0!important}.auth-brand{margin-bottom:52px!important}.auth-logo{background:#38BDF8!important;width:44px!important;height:44px!important;border-radius:10px!important;color:#fff!important;box-shadow:0 12px 26px rgba(56,189,248,.25)!important}.auth-brand strong{font-size:20px!important}.auth-brand span{font-size:13px!important}.auth-hero h1{max-width:540px!important;font-size:50px!important;line-height:1!important;letter-spacing:-1.6px!important;font-weight:900!important;margin-bottom:22px!important}.auth-hero p{max-width:520px!important;font-size:16px!important;line-height:1.55!important;color:#334155!important}.auth-card-wrap{justify-content:flex-start!important;position:relative!important;min-height:430px!important;align-items:center!important}.auth-card-wrap:before{content:""!important;display:block!important;position:absolute!important;width:360px!important;height:455px!important;right:12px!important;top:28px!important;background:#38BDF8!important;opacity:.86!important;border-radius:24px!important;transform:rotate(-7deg)!important;z-index:0!important;box-shadow:0 28px 60px rgba(15,23,42,.13)!important}.auth-card{position:relative!important;z-index:1!important;width:100%!important;max-width:360px!important;padding:30px 28px!important;border-radius:20px!important;background:rgba(255,255,255,.96)!important;border:1px solid rgba(255,255,255,.85)!important;box-shadow:0 22px 55px rgba(15,23,42,.14)!important;backdrop-filter:blur(8px)!important}.auth-card h2{font-size:24px!important;margin-bottom:8px!important}.auth-subtitle{font-size:14px!important;margin-bottom:22px!important}.auth-card label{font-size:13px!important;font-weight:700!important;color:#111827!important;margin:14px 0 7px!important}.auth-card input[type=text],.auth-card input[type=email],.auth-card input[type=password]{height:40px!important;border-radius:6px!important;border:1px solid #cbd5e1!important;background:#fff!important}.auth-submit{height:42px!important;border-radius:7px!important;background:#38BDF8!important;border:0!important;color:#fff!important}.auth-submit:hover{background:#0369A1!important}.auth-options a{color:#38BDF8!important}.auth-options .remember span{color:#38BDF8!important}
@media(max-width:900px){body.auth-page{height:auto!important;min-height:100vh!important;overflow:auto!important;background-image:linear-gradient(180deg, rgba(246,248,251,.86), rgba(246,248,251,.64)), url('https://res.cloudinary.com/dfamlzfp7/image/upload/v1781831671/ChatGPT_Image_Jun_18_2026_06_13_52_PM_glrg91.png')!important;background-attachment:scroll!important}.auth-shell{grid-template-columns:1fr!important;gap:24px!important;padding:30px 18px!important}.auth-brand{margin-bottom:24px!important}.auth-hero h1{font-size:36px!important}.auth-card-wrap{min-height:auto!important;justify-content:center!important}.auth-card-wrap:before{display:none!important}.auth-card{max-width:420px!important}}
@media(max-width:480px){.auth-shell{padding:22px 14px!important}.auth-hero h1{font-size:30px!important}.auth-hero p{font-size:15px!important}.auth-card{padding:24px 18px!important;border-radius:16px!important}.auth-options{flex-direction:column!important;align-items:flex-start!important}}

/* v27 GLOBAL ENERGIE EVENTS branding update - name/logo only, features unchanged */
:root{--xl-green:#38BDF8;--pro-primary:#38BDF8;--pro-primary-dark:#0369A1;--sidebar-soft:#E0F7FF}
.brand{gap:10px!important;align-items:center!important;background:#f8fafc!important;border:1px solid #d0d7de!important;color:#06133a!important;padding:10px!important;border-radius:5px!important;box-shadow:none!important}
.brand .brand-icon-img{width:34px!important;height:34px!important;object-fit:contain!important;border-radius:7px!important;filter:drop-shadow(0 3px 5px rgba(15,23,42,.16))}
.brand b{font-size:16px!important;color:#06133a!important;font-weight:800!important;line-height:1.1!important}
.brand span{font-size:11px!important;color:#334155!important;margin-top:2px!important}
.sidebar a:hover,.sidebar a.active,.menu-group.open>a{background:#E0F7FF!important;color:#075985!important;border-color:#7DD3FC!important;box-shadow:none!important;transform:none!important}
.sidebar a:hover i,.sidebar a.active i,.menu-group.open>a i{color:#38BDF8!important}.sidebar .submenu a:hover{background:#F0FAFF!important}
.auth-brand{display:flex!important;align-items:center!important;margin-bottom:45px!important}
.auth-logo-img{width:min(460px,90vw)!important;max-height:150px!important;object-fit:contain!important;object-position:left center!important;filter:drop-shadow(0 18px 28px rgba(33,115,70,.24))!important}
.auth-hero h1{color:#06133a!important}.auth-card-wrap:before{background:#38BDF8!important}.auth-submit{background:#38BDF8!important}.auth-submit:hover{background:#0369A1!important}.auth-card input:focus{border-color:#38BDF8!important;box-shadow:0 0 0 3px rgba(56,189,248,.16)!important}
@media(max-width:900px){.auth-logo-img{max-height:110px!important}.auth-brand{justify-content:center!important;margin-bottom:22px!important}.auth-hero{text-align:center!important}.auth-logo-img{object-position:center!important}.brand{margin:8px!important}}


/* v28 logo-only brand update - remove sidebar text/card, smaller login logo */
.sidebar .brand.brand-logo-only{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    margin:0 0 14px 0!important;
    padding:8px 4px!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    border-radius:0!important;
    min-height:auto!important;
}
.sidebar .brand.brand-logo-only .brand-logo-img{
    display:block!important;
    width:150px!important;
    max-width:92%!important;
    height:auto!important;
    object-fit:contain!important;
    object-position:center!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    filter:drop-shadow(0 4px 8px rgba(15,23,42,.10))!important;
}
.sidebar .brand.brand-logo-only b,
.sidebar .brand.brand-logo-only span,
.sidebar .brand.brand-logo-only div{display:none!important;}
.auth-logo-img{
    width:min(360px,78vw)!important;
    max-height:105px!important;
}
@media(max-width:900px){
    .auth-logo-img{width:min(290px,72vw)!important;max-height:82px!important;}
    .sidebar .brand.brand-logo-only .brand-logo-img{width:128px!important;}
}
@media(max-width:560px){
    .auth-logo-img{width:min(240px,68vw)!important;max-height:70px!important;}
}

/* v27 desktop collapsible icon-only sidebar */
@media (min-width:901px){
  :root{--side-w-collapsed:54px;}
  .mobile-menu-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;}
  body.sidebar-collapsed .sidebar{
    width:var(--side-w-collapsed)!important;
    min-width:var(--side-w-collapsed)!important;
    padding:8px 6px!important;
    overflow-x:hidden!important;
  }
  body.sidebar-collapsed .main{
    margin-left:var(--side-w-collapsed)!important;
    width:calc(100% - var(--side-w-collapsed))!important;
  }
  body.sidebar-collapsed .topbar{left:var(--side-w-collapsed)!important;}
  body.sidebar-collapsed .brand,
  body.sidebar-collapsed .brand-logo-only{
    display:none!important;
  }
  body.sidebar-collapsed .sidebar nav{padding-top:4px!important;}
  body.sidebar-collapsed .sidebar a,
  body.sidebar-collapsed .menu-group>a{
    width:38px!important;
    height:38px!important;
    min-height:38px!important;
    padding:0!important;
    margin:6px auto!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:0!important;
    font-size:0!important;
    overflow:hidden!important;
    white-space:nowrap!important;
    border-radius:7px!important;
    background:transparent!important;
    border:0!important;
  }
  body.sidebar-collapsed .sidebar a i:first-child,
  body.sidebar-collapsed .menu-group>a i:first-child{
    width:30px!important;
    min-width:30px!important;
    height:30px!important;
    font-size:15px!important;
    margin:0!important;
    background:#E0F7FF!important;
    color:#38BDF8!important;
    border:1px solid #bfe2cf!important;
    border-radius:6px!important;
  }
  body.sidebar-collapsed .sidebar a:hover i:first-child,
  body.sidebar-collapsed .sidebar a.active i:first-child,
  body.sidebar-collapsed .menu-group.open>a i:first-child,
  body.sidebar-collapsed .menu-group>a:hover i:first-child{
    background:#38BDF8!important;
    color:#fff!important;
    border-color:#38BDF8!important;
  }
  body.sidebar-collapsed .menu-arrow,
  body.sidebar-collapsed .submenu,
  body.sidebar-collapsed .submenu-heading{
    display:none!important;
  }
  body.sidebar-collapsed .page-title{max-width:240px;}
}


/* v29 collapsed sidebar logo icon: show GLOBAL ENERGIE EVENTS pin when menu is closed */
.sidebar .brand.brand-logo-only .brand-logo-mini{
    display:none!important;
    width:36px!important;
    height:42px!important;
    object-fit:contain!important;
    object-position:center!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
    filter:drop-shadow(0 3px 5px rgba(15,23,42,.18))!important;
}
@media (min-width:901px){
  body.sidebar-collapsed .brand,
  body.sidebar-collapsed .brand-logo-only,
  body.sidebar-collapsed .sidebar .brand.brand-logo-only{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    min-height:52px!important;
    padding:5px 0 8px!important;
    margin:0 0 8px 0!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
  }
  body.sidebar-collapsed .sidebar .brand.brand-logo-only .brand-logo-full,
  body.sidebar-collapsed .sidebar .brand.brand-logo-only .brand-logo-img:not(.brand-logo-mini){
    display:none!important;
  }
  body.sidebar-collapsed .sidebar .brand.brand-logo-only .brand-logo-mini{
    display:block!important;
    width:34px!important;
    height:40px!important;
    max-width:34px!important;
  }
  body.sidebar-collapsed .sidebar nav{
    padding-top:2px!important;
  }
}
@media(max-width:900px){
  .sidebar .brand.brand-logo-only .brand-logo-mini{display:none!important;}
}

/* Commandes module - Dolibarr inspired clean pages */
.commandes-menu > a i:first-child,
.order-create-page .dol-title-icon i,
.orders-list-page .quote-count i,
.order-detail-page .quote-big-icon i{color:#238057!important}
.commandes-submenu a{font-weight:600}
.order-grid label{color:#2d0032;font-weight:600}
.order-create-page .dol-title-icon{margin-bottom:14px}
.order-dol-list td,.order-dol-list th{white-space:nowrap}
.order-dol-list .center{text-align:center}
.order-detail-page .quote-state-badge{background:#21a66f;color:#fff;border-radius:5px;padding:4px 10px;font-weight:700}
@media (max-width: 900px){
  .order-grid,.devis-grid{grid-template-columns:1fr!important;gap:8px!important}
  .order-grid label,.devis-grid label{padding-top:10px}
  .quote-topline{align-items:flex-start;gap:10px;flex-wrap:wrap}
  .quote-pager{margin-left:0!important}
  .quote-table-wrap,.responsive-table{overflow-x:auto;-webkit-overflow-scrolling:touch}
  .quote-dol-list,.edit-lines-table{min-width:980px}
}

/* GLOBAL ENERGIE EVENTS update: order detail page + global green/red action buttons */
:root{--hak-green:#38BDF8;--hak-green-dark:#0284C7;--hak-green-soft:#eaf7f0;--hak-red:#dc2626;--hak-red-dark:#b91c1c;--hak-line:#d9dde5;--hak-head:#e6e8ee;}
.orange,.btn.orange,.orange-btn,.purple-btn,.green-btn,.small-green-btn{background:var(--hak-green)!important;color:#fff!important;border:1px solid var(--hak-green-dark)!important;box-shadow:none!important;}
.orange:hover,.btn.orange:hover,.orange-btn:hover,.purple-btn:hover,.green-btn:hover,.small-green-btn:hover{background:var(--hak-green-dark)!important;color:#fff!important;}
.gray-btn,.red-btn,.btn.danger-light{background:var(--hak-red)!important;color:#fff!important;border:1px solid var(--hak-red-dark)!important;box-shadow:none!important;}
.gray-btn:hover,.red-btn:hover,.btn.danger-light:hover{background:var(--hak-red-dark)!important;color:#fff!important;}
.small-gray-btn{background:#f8fafc!important;color:#374151!important;border:1px solid #cbd5e1!important;}
.order-show-page{background:#fff;border:1px solid var(--hak-line);border-radius:4px;padding:0 10px 18px;color:#05003d;font-size:12px;overflow-x:auto;}
.order-topbar{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;border-bottom:1px solid #cfd3dc;padding:12px 0 14px;min-width:980px;}
.order-identity{display:flex;align-items:center;gap:24px;}
.order-doc-icon{width:42px;height:42px;border:1px solid #e4e4e4;box-shadow:0 2px 8px rgba(0,0,0,.12);display:grid;place-items:center;background:#fff;color:var(--hak-green);font-size:24px;}
.order-ref-line{color:#344054;margin-bottom:3px;}.order-client-link{color:#001a8f;text-decoration:none;font-weight:700;display:block;margin-bottom:2px}.order-client-link i{color:#293aa4}.order-identity small{color:#5b667a}.muted-pencil{color:#c1c7d0}.order-nav-actions{text-align:right;color:#00135f;font-weight:700;line-height:1.9}.order-nav-actions a{color:#00135f;text-decoration:none}.nav-chev{color:#d5d9df;margin-left:12px}.order-summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:0;min-width:980px;}.order-info-lines>div,.money-line{display:grid;grid-template-columns:240px 1fr;align-items:center;min-height:24px;border-bottom:1px solid var(--hak-line);}.order-info-lines>div span,.money-line span{color:#475467}.order-info-lines>div b,.money-line b{color:#111;font-weight:600}.order-info-lines small{font-weight:500;color:#98a2b3}.money-line{grid-template-columns:1fr 150px}.money-line b{text-align:right}.money-line.strong{font-weight:800}.margin-mini-table{width:100%;border-collapse:collapse;margin-top:6px;font-size:12px}.margin-mini-table th,.margin-mini-table td{border-bottom:1px solid var(--hak-line);padding:7px 8px;text-align:right}.margin-mini-table th{background:var(--hak-head);color:#333c65;font-weight:500}.margin-mini-table th:first-child,.margin-mini-table td:first-child{text-align:left}.order-lines-wrap{margin-top:20px;min-width:980px;overflow-x:auto}.order-detail-lines{width:100%;border-collapse:collapse;font-size:12px}.order-detail-lines th,.order-detail-lines td{border-bottom:1px solid var(--hak-line);padding:8px 7px;text-align:right;white-space:nowrap}.order-detail-lines th{background:var(--hak-head);color:#333c65;font-weight:500}.order-detail-lines th:first-child,.order-detail-lines td:first-child{text-align:left}.order-detail-lines .desc{min-width:360px}.order-detail-actions{text-align:right;margin:26px 0 56px;min-width:980px}.green-btn,.red-btn,.small-green-btn{display:inline-block;text-decoration:none;border-radius:3px;padding:8px 11px;font-weight:700;font-size:11px;margin-left:6px;text-transform:uppercase}.small-green-btn{padding:5px 9px;margin-left:4px}.text-red{color:var(--hak-red)}.text-green{color:var(--hak-green)}.order-lower-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;min-width:980px;margin-top:0}.order-doc-panel{border-top:1px solid var(--hak-line)}.order-panel-head{background:var(--hak-head);padding:7px 9px;display:flex;align-items:center;gap:10px;color:#475467}.order-panel-head select{height:24px;border:1px solid #cbd5e1;border-radius:2px;background:#fff}.order-doc-panel table,.order-shipment-panel table{width:100%;border-collapse:collapse}.order-doc-panel td,.order-shipment-panel td,.order-shipment-panel th{border-bottom:1px solid var(--hak-line);padding:7px 6px;text-align:left}.order-doc-panel a,.order-shipment-panel a{color:#001a8f;text-decoration:none}.bind-link{text-align:right;padding:8px;color:#001a8f;font-size:11px}.empty-small{margin:0;padding:12px 6px;border-bottom:1px solid var(--hak-line);color:#98a2b3}.order-shipment-panel{width:50%;min-width:480px;margin-top:20px}.order-shipment-panel th{background:var(--hak-head);color:#333c65;font-weight:500}.status-dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:var(--hak-green)}.quote-status.red,.badge.red,.red{background:var(--hak-red)!important;color:#fff!important}.quote-status.green,.badge.green,.green{background:var(--hak-green)!important;color:#fff!important}.quote-status.orange,.badge.orange{background:var(--hak-green)!important;color:#fff!important}
@media(max-width:900px){.order-show-page{padding:0 8px 14px}.order-topbar,.order-summary-grid,.order-lines-wrap,.order-detail-actions,.order-lower-grid{min-width:760px}.order-summary-grid,.order-lower-grid{grid-template-columns:1fr}.order-detail-actions{text-align:left}.green-btn,.red-btn{margin:4px 4px 0 0}.order-shipment-panel{width:100%;min-width:760px}}

/* v36 Universal Nouveau/Add form style - based on Nouveau fournisseur, responsive and zoom-safe */
:root{
  --form-bg:#ffffff;
  --form-page:#f6f8fb;
  --form-border:#cfd8e3;
  --form-border-soft:#e5eaf1;
  --form-label:#15002e;
  --form-text:#071331;
  --form-muted:#748094;
  --form-green:#38BDF8;
  --form-green-dark:#0284C7;
  --form-red:#dc2626;
  --form-red-dark:#b91c1c;
  --form-focus:#38BDF8;
}
.content{
  overflow:auto!important;
  background:var(--form-page)!important;
}
.plain-page,
.dol-page,
.panel:has(form),
form.societe-form,
form.dol-form,
form.product-form,
form.devis-form,
form.email-form,
form.invoice-mini-form,
form.form-grid{
  max-width:100%!important;
  overflow-x:auto!important;
  -webkit-overflow-scrolling:touch!important;
  box-sizing:border-box!important;
}
.plain-page,
.dol-page,
.panel:has(form){
  background:var(--form-bg)!important;
  border:1px solid var(--form-border)!important;
  border-radius:7px!important;
  padding:14px!important;
  color:var(--form-text)!important;
  box-shadow:0 1px 2px rgba(15,23,42,.04)!important;
}
form.societe-form,
form.dol-form,
form.product-form,
form.devis-form,
form.email-form,
form.invoice-mini-form{
  width:100%!important;
  min-width:0!important;
  background:transparent!important;
  color:var(--form-text)!important;
  font-family:"Segoe UI",Arial,sans-serif!important;
  font-size:12px!important;
}
.soc-grid,
.more-grid,
.top-soc-grid,
.devis-grid,
.order-grid,
.form-grid,
.product-form .form-grid{
  display:grid!important;
  grid-template-columns:minmax(130px,180px) minmax(180px,1fr) minmax(130px,180px) minmax(180px,1fr)!important;
  gap:8px 14px!important;
  align-items:center!important;
  width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
.dol-form .dol-line,
.dol-form .dol-line.two{
  display:grid!important;
  grid-template-columns:minmax(130px,180px) minmax(180px,1fr) minmax(130px,180px) minmax(180px,1fr)!important;
  gap:8px 14px!important;
  align-items:center!important;
  margin:8px 0!important;
}
.dol-form .dol-line:not(.two){
  grid-template-columns:minmax(130px,180px) minmax(180px,1fr)!important;
}
.soc-grid label,
.devis-grid label,
.order-grid label,
.form-grid label,
.product-form label,
.dol-form label,
.dol-line label{
  color:var(--form-label)!important;
  font-weight:700!important;
  font-size:12px!important;
  line-height:1.25!important;
  margin:0!important;
  white-space:normal!important;
}
.soc-grid input,
.soc-grid select,
.soc-grid textarea,
.more-grid input,
.more-grid select,
.more-grid textarea,
.devis-grid input,
.devis-grid select,
.devis-grid textarea,
.order-grid input,
.order-grid select,
.order-grid textarea,
.form-grid input,
.form-grid select,
.form-grid textarea,
.product-form input,
.product-form select,
.product-form textarea,
.dol-form input,
.dol-form select,
.dol-form textarea,
.email-form input,
.email-form select,
.email-form textarea,
.invoice-mini-form input,
.invoice-mini-form select,
.invoice-mini-form textarea{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:28px!important;
  height:auto!important;
  padding:5px 7px!important;
  border:1px solid var(--form-border)!important;
  border-radius:2px!important;
  background:#fff!important;
  color:#061333!important;
  font-family:"Segoe UI",Arial,sans-serif!important;
  font-size:12px!important;
  line-height:1.25!important;
  outline:none!important;
  box-shadow:none!important;
  box-sizing:border-box!important;
}
.soc-grid textarea,
.more-grid textarea,
.devis-grid textarea,
.order-grid textarea,
.form-grid textarea,
.product-form textarea,
.dol-form textarea,
.email-form textarea{
  min-height:54px!important;
  resize:vertical!important;
}
.soc-grid input:focus,
.soc-grid select:focus,
.soc-grid textarea:focus,
.devis-grid input:focus,
.devis-grid select:focus,
.devis-grid textarea:focus,
.order-grid input:focus,
.order-grid select:focus,
.order-grid textarea:focus,
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus,
.product-form input:focus,
.product-form select:focus,
.product-form textarea:focus,
.dol-form input:focus,
.dol-form select:focus,
.dol-form textarea:focus{
  border-color:var(--form-focus)!important;
  box-shadow:0 0 0 2px rgba(29,127,78,.12)!important;
}
.span-3,
.short-wide,
.product-form .flex-grow{
  grid-column:span 3!important;
  min-width:0!important;
}
.soc-more-title,
.panel-head,
.product-form hr{
  border:1px solid var(--form-border)!important;
  background:#f8fafc!important;
  border-radius:7px!important;
  color:#071331!important;
  font-weight:700!important;
  margin:14px 0!important;
  padding:7px 10px!important;
}
.soc-more-title span{color:#64748b!important}
.nature-checks{
  display:flex!important;
  justify-content:flex-end!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  min-width:0!important;
}
.pill-check{
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  padding:7px 12px!important;
  border:1px solid var(--form-border)!important;
  border-radius:999px!important;
  background:#f8fafc!important;
  font-size:11px!important;
  color:#061333!important;
  font-weight:700!important;
  white-space:nowrap!important;
}
.pill-check input{width:auto!important;min-height:auto!important;margin:0!important;accent-color:var(--form-green)!important}
.info-dot{
  display:inline-flex!important;
  width:12px!important;
  height:12px!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:50%!important;
  background:#e8eef6!important;
  color:#64748b!important;
  font-size:9px!important;
  font-weight:700!important;
  vertical-align:middle!important;
}
.soc-form-icon,
.dol-icon-title,
.order-create-page .dol-title-icon{
  width:34px!important;
  height:34px!important;
  display:grid!important;
  place-items:center!important;
  margin:0 0 14px!important;
  color:var(--form-green)!important;
  font-size:22px!important;
}
.product-form-top{
  display:grid!important;
  grid-template-columns:minmax(130px,190px) minmax(0,1fr)!important;
  gap:16px!important;
  align-items:start!important;
}
.image-uploader{
  border:1px solid var(--form-border)!important;
  border-radius:6px!important;
  background:#f8fafc!important;
  padding:10px!important;
  text-align:center!important;
  min-width:0!important;
}
.image-uploader img{
  max-width:100%!important;
  height:auto!important;
  max-height:140px!important;
  object-fit:contain!important;
}
.soc-form-actions,
.dol-actions,
.form-actions,
.order-actions,
.devis-actions{
  display:flex!important;
  justify-content:flex-end!important;
  align-items:center!important;
  gap:8px!important;
  flex-wrap:wrap!important;
  margin-top:16px!important;
  padding-top:12px!important;
  border-top:1px solid var(--form-border)!important;
  text-align:right!important;
}
button,
.btn,
.purple-btn,
.orange-btn,
.green-btn,
.small-green-btn,
input[type="submit"]{
  min-height:31px!important;
  border-radius:4px!important;
  font-weight:800!important;
  letter-spacing:.01em!important;
}
.purple-btn.secondary,
.btn.secondary,
a.secondary{
  background:#f8fafc!important;
  color:#334155!important;
  border:1px solid #cbd5e1!important;
}
.purple-btn.secondary:hover,
.btn.secondary:hover,
a.secondary:hover{
  background:#eef2f7!important;
  color:#0f172a!important;
}
.clean-table-box,
.quote-table-wrap,
.responsive-table,
.table-responsive,
.panel:has(table){
  overflow-x:auto!important;
  -webkit-overflow-scrolling:touch!important;
}
.clean-table,
.quote-dol-list,
.order-dol-list,
.edit-lines-table,
.warehouse-table,
.warehouse-stock-table{
  min-width:980px!important;
}
@media (max-width:1200px), (min-resolution:1.35dppx){
  .soc-grid,
  .more-grid,
  .top-soc-grid,
  .devis-grid,
  .order-grid,
  .form-grid,
  .product-form .form-grid,
  .dol-form .dol-line,
  .dol-form .dol-line.two{
    grid-template-columns:minmax(120px,165px) minmax(170px,1fr) minmax(120px,165px) minmax(170px,1fr)!important;
    gap:7px 12px!important;
  }
  .plain-page,.dol-page,.panel:has(form){padding:12px!important}
}
@media (max-width:860px){
  .soc-grid,
  .more-grid,
  .top-soc-grid,
  .devis-grid,
  .order-grid,
  .form-grid,
  .product-form .form-grid,
  .dol-form .dol-line,
  .dol-form .dol-line.two,
  .dol-form .dol-line:not(.two){
    grid-template-columns:1fr!important;
    gap:5px!important;
  }
  .span-3,
  .short-wide,
  .product-form .flex-grow{grid-column:auto!important}
  .right-label{text-align:left!important}
  .nature-checks{justify-content:flex-start!important}
  .product-form-top{grid-template-columns:1fr!important}
  .soc-form-actions,.dol-actions,.form-actions,.order-actions,.devis-actions{justify-content:flex-start!important}
  .soc-grid label,.devis-grid label,.order-grid label,.form-grid label,.product-form label,.dol-form label,.dol-line label{margin-top:6px!important}
}
@media (max-width:480px){
  .plain-page,.dol-page,.panel:has(form){padding:10px!important;border-radius:5px!important}
  .pill-check{width:100%!important;justify-content:space-between!important}
  .soc-form-actions .btn,.soc-form-actions .purple-btn,.dol-actions .btn,.dol-actions .purple-btn{width:100%!important;justify-content:center!important;text-align:center!important}
}

/* GLOBAL ENERGIE EVENTS expedition status icon colors */
.text-red,.expedition-missing{color:#dc2626!important;}
.text-green,.expedition-ready{color:#38BDF8!important;}

/* v32 searchable selection boxes + symmetrical forms */
:root{
  --hp-green:#38BDF8;
  --hp-green-dark:#0284C7;
  --hp-line:#cfd7e3;
  --hp-line-soft:#e6ebf2;
  --hp-field:#ffffff;
  --hp-text:#06133a;
  --hp-muted:#667085;
}

/* Make all normal form boxes equal and organized */
input[type="text"],input[type="email"],input[type="number"],input[type="date"],input[type="password"],input[type="tel"],input[type="url"],select,textarea,
.form-control,.input,.field-input{
  min-height:32px!important;
  height:32px;
  border:1px solid var(--hp-line)!important;
  border-radius:3px!important;
  background:var(--hp-field)!important;
  color:var(--hp-text)!important;
  padding:5px 8px!important;
  font-family:'Segoe UI',Arial,Helvetica,sans-serif!important;
  font-size:12px!important;
  line-height:20px!important;
  outline:none!important;
  box-shadow:none!important;
  max-width:100%!important;
}
textarea{height:auto!important;min-height:72px!important;resize:vertical!important;line-height:1.45!important;}
input:focus,select:focus,textarea:focus,.hp-combo-input:focus{
  border-color:var(--hp-green)!important;
  box-shadow:0 0 0 2px rgba(22,136,87,.12)!important;
}
label,.form-label,.dol-label,.soc-label{font-size:12px!important;font-weight:700!important;color:#170033!important;line-height:1.25!important;}
.form-row,.dol-row,.soc-row,.tiers-row{align-items:center!important;gap:12px!important;}
.form-grid,.soc-grid,.tiers-form-grid,.dol-form,.clean-form-grid{
  gap:9px 18px!important;
  align-items:start!important;
}
.form-actions,.soc-form-actions,.dol-actions,.actions-row{
  display:flex!important;
  justify-content:flex-end!important;
  align-items:center!important;
  gap:8px!important;
  flex-wrap:wrap!important;
}

/* Hide original select but keep it active for PHP form submit */
select.hp-original-select{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  min-height:1px!important;
  opacity:0!important;
  pointer-events:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
}

.hp-select-combo{
  position:relative!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  display:block!important;
  font-family:'Segoe UI',Arial,Helvetica,sans-serif!important;
}
.hp-combo-control{
  display:grid!important;
  grid-template-columns:1fr 30px!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  height:32px!important;
  background:#fff!important;
  border:1px solid var(--hp-line)!important;
  border-radius:3px!important;
  overflow:hidden!important;
}
.hp-select-combo.is-open .hp-combo-control,
.hp-select-combo:focus-within .hp-combo-control{
  border-color:var(--hp-green)!important;
  box-shadow:0 0 0 2px rgba(22,136,87,.12)!important;
}
.hp-combo-input{
  width:100%!important;
  min-width:0!important;
  height:30px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  padding:5px 8px!important;
  font-size:12px!important;
  color:var(--hp-text)!important;
  line-height:20px!important;
  box-shadow:none!important;
}
.hp-combo-input::placeholder{color:#98a2b3!important;}
.hp-combo-btn{
  width:30px!important;
  height:30px!important;
  border:0!important;
  border-left:1px solid var(--hp-line-soft)!important;
  background:#f8fafc!important;
  color:var(--hp-green)!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  cursor:pointer!important;
  padding:0!important;
}
.hp-combo-btn:hover{background:#E0F7FF!important;}
.hp-combo-list{
  position:absolute!important;
  z-index:9999!important;
  top:calc(100% + 3px)!important;
  left:0!important;
  right:0!important;
  max-height:220px!important;
  overflow:auto!important;
  background:#fff!important;
  border:1px solid var(--hp-green)!important;
  border-radius:4px!important;
  box-shadow:0 12px 28px rgba(15,23,42,.18)!important;
  display:none!important;
  padding:3px!important;
}
.hp-select-combo.is-open .hp-combo-list{display:block!important;}
.hp-combo-option{
  min-height:28px!important;
  padding:6px 8px!important;
  font-size:12px!important;
  line-height:16px!important;
  color:var(--hp-text)!important;
  cursor:pointer!important;
  border-radius:3px!important;
  white-space:normal!important;
  word-break:break-word!important;
}
.hp-combo-option:hover,.hp-combo-option.is-active{
  background:#E0F7FF!important;
  color:#063f29!important;
}
.hp-combo-option.is-selected{
  background:#BAE6FD!important;
  color:#063f29!important;
  font-weight:700!important;
}
.hp-combo-empty{
  padding:8px!important;
  color:var(--hp-muted)!important;
  font-size:12px!important;
  text-align:center!important;
}

/* Consistent widths inside old Dolibarr-like forms */
.dol-form select:not(.hp-original-select),.soc-grid select:not(.hp-original-select),.tiers-form-grid select:not(.hp-original-select),
.dol-form .hp-select-combo,.soc-grid .hp-select-combo,.tiers-form-grid .hp-select-combo,
.form-grid .hp-select-combo,.clean-form-grid .hp-select-combo{width:100%!important;}

@media(max-width:900px){
  input[type="text"],input[type="email"],input[type="number"],input[type="date"],input[type="password"],input[type="tel"],input[type="url"],select,textarea,
  .form-control,.input,.field-input,.hp-combo-control{height:36px!important;min-height:36px!important;font-size:13px!important;}
  .hp-combo-input{height:34px!important;font-size:13px!important;}
  .hp-combo-btn{height:34px!important;width:34px!important;}
  .hp-combo-control{grid-template-columns:1fr 34px!important;}
  .hp-combo-list{max-height:260px!important;}
  .form-actions,.soc-form-actions,.dol-actions,.actions-row{justify-content:flex-start!important;}
}
@media(max-width:560px){
  .form-grid,.soc-grid,.tiers-form-grid,.dol-form,.clean-form-grid{gap:8px!important;}
  .hp-combo-list{position:fixed!important;left:10px!important;right:10px!important;top:auto!important;bottom:12px!important;max-height:45vh!important;}
}

/* v33 tiers identity/contact block: symmetrical alignment */
.soc-grid .full-row-field{
  grid-column:span 3!important;
  width:100%!important;
}
.soc-grid .checkbox-field{
  min-height:28px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  padding:0!important;
}
.soc-grid .checkbox-field input[type="checkbox"]{
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  min-height:18px!important;
  margin:0!important;
  accent-color:var(--form-green,#38BDF8)!important;
}
.soc-grid > label.right-label{
  padding-left:0!important;
}
.soc-grid > div{
  min-width:0!important;
}
.soc-grid > div > input,
.soc-grid > div > textarea,
.soc-grid > div > .hp-select-combo{
  width:100%!important;
}
@media(max-width:860px){
  .soc-grid .full-row-field{grid-column:auto!important;}
}

/* v36 stylish dashboard: Chart.js for every project section */
.hp-dashboard-pro{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:12px;align-items:stretch}.hp-chart-card{background:linear-gradient(180deg,#fff,#fbfcfd)!important;border:1px solid #d9dde5!important;border-radius:8px!important;box-shadow:0 8px 20px rgba(15,23,42,.05)!important;padding:14px!important;min-width:0;overflow:hidden}.hp-chart-card.hp-wide{grid-column:span 2}.hp-chart-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;border-bottom:1px solid #e5e7eb;padding-bottom:10px;margin-bottom:12px}.hp-chart-head b{display:block;font-size:15px;color:#0b1220;font-weight:800}.hp-chart-head span,.hp-chart-head small{display:block;font-size:12px;color:#64748b;margin-top:3px}.hp-chart-canvas{height:255px;position:relative;min-width:0}.hp-chart-canvas.hp-tall{height:310px}.hp-table-card{min-height:260px}.hp-table-card .excel-mini-table{margin-top:4px}.dashboard-kpi-strip{margin-top:0}.mini-kpi-card{transition:.15s ease!important}.mini-kpi-card:hover{transform:translateY(-1px)!important;box-shadow:0 6px 16px rgba(15,23,42,.06)!important}@media(max-width:1200px){.hp-dashboard-pro{grid-template-columns:repeat(2,minmax(0,1fr))}.hp-chart-card.hp-wide{grid-column:span 2}}@media(max-width:760px){.hp-dashboard-pro{grid-template-columns:1fr}.hp-chart-card.hp-wide{grid-column:auto}.hp-chart-canvas,.hp-chart-canvas.hp-tall{height:260px}.hp-chart-card{padding:12px!important}.hp-chart-head{flex-direction:column;gap:4px}}

/* v37 compact symmetrical dashboard charts */
.hp-dashboard-pro{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(230px,1fr))!important;
  gap:12px!important;
  align-items:stretch!important;
  margin-top:12px!important;
}
.hp-chart-card,
.hp-chart-card.hp-wide,
.hp-chart-card.hp-table-card{
  grid-column:auto!important;
  min-height:286px!important;
  max-height:286px!important;
  padding:10px!important;
  border-radius:6px!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
  box-shadow:0 3px 10px rgba(15,23,42,.045)!important;
}
.hp-chart-head{
  min-height:48px!important;
  padding-bottom:7px!important;
  margin-bottom:8px!important;
  gap:6px!important;
}
.hp-chart-head b{font-size:13px!important;line-height:1.2!important}
.hp-chart-head span,.hp-chart-head small{font-size:10.5px!important;line-height:1.25!important;margin-top:2px!important}
.hp-chart-canvas,
.hp-chart-canvas.hp-tall{
  height:205px!important;
  max-height:205px!important;
  min-height:0!important;
  flex:1 1 auto!important;
  position:relative!important;
}
.hp-chart-canvas canvas{width:100%!important;height:100%!important;display:block!important}
.hp-table-card .excel-mini-table{
  display:block!important;
  max-height:205px!important;
  overflow:auto!important;
  font-size:11px!important;
}
.hp-table-card .excel-mini-table tr{display:table-row!important;width:100%!important}
.hp-table-card .excel-mini-table td{padding:5px 6px!important}
@media(max-width:1400px){.hp-dashboard-pro{grid-template-columns:repeat(3,minmax(230px,1fr))!important}}
@media(max-width:1050px){.hp-dashboard-pro{grid-template-columns:repeat(2,minmax(220px,1fr))!important}.hp-chart-card,.hp-chart-card.hp-wide,.hp-chart-card.hp-table-card{min-height:275px!important;max-height:275px!important}.hp-chart-canvas,.hp-chart-canvas.hp-tall{height:196px!important;max-height:196px!important}}
@media(max-width:620px){.hp-dashboard-pro{grid-template-columns:1fr!important}.hp-chart-card,.hp-chart-card.hp-wide,.hp-chart-card.hp-table-card{min-height:265px!important;max-height:none!important}.hp-chart-canvas,.hp-chart-canvas.hp-tall{height:190px!important;max-height:190px!important}}


/* v38 ultra compact dashboard charts - small, symmetrical, ERP style */
.hp-dashboard-pro{
  grid-template-columns:repeat(5,minmax(180px,1fr))!important;
  gap:10px!important;
  margin-top:10px!important;
}
.hp-chart-card,
.hp-chart-card.hp-wide,
.hp-chart-card.hp-table-card{
  grid-column:auto!important;
  min-height:178px!important;
  max-height:178px!important;
  height:178px!important;
  padding:8px!important;
  border-radius:7px!important;
}
.hp-chart-head{
  min-height:36px!important;
  padding-bottom:5px!important;
  margin-bottom:6px!important;
  border-bottom:1px solid #edf0f4!important;
}
.hp-chart-head b{font-size:12px!important;line-height:1.1!important}
.hp-chart-head span,.hp-chart-head small{font-size:9.5px!important;line-height:1.15!important;margin-top:1px!important}
.hp-chart-canvas,
.hp-chart-canvas.hp-tall{
  height:118px!important;
  max-height:118px!important;
  min-height:118px!important;
  flex:0 0 118px!important;
}
.hp-table-card .excel-mini-table{
  max-height:118px!important;
  font-size:10px!important;
}
.hp-table-card .excel-mini-table td{padding:4px 5px!important}
@media(max-width:1500px){.hp-dashboard-pro{grid-template-columns:repeat(4,minmax(180px,1fr))!important}}
@media(max-width:1120px){.hp-dashboard-pro{grid-template-columns:repeat(3,minmax(175px,1fr))!important}.hp-chart-card,.hp-chart-card.hp-wide,.hp-chart-card.hp-table-card{height:176px!important;min-height:176px!important;max-height:176px!important}.hp-chart-canvas,.hp-chart-canvas.hp-tall{height:116px!important;max-height:116px!important;min-height:116px!important;flex-basis:116px!important}}
@media(max-width:760px){.hp-dashboard-pro{grid-template-columns:repeat(2,minmax(150px,1fr))!important}.hp-chart-card,.hp-chart-card.hp-wide,.hp-chart-card.hp-table-card{height:170px!important;min-height:170px!important;max-height:170px!important}.hp-chart-canvas,.hp-chart-canvas.hp-tall{height:112px!important;max-height:112px!important;min-height:112px!important;flex-basis:112px!important}}
@media(max-width:460px){.hp-dashboard-pro{grid-template-columns:1fr!important}.hp-chart-card,.hp-chart-card.hp-wide,.hp-chart-card.hp-table-card{height:180px!important;min-height:180px!important;max-height:180px!important}.hp-chart-canvas,.hp-chart-canvas.hp-tall{height:120px!important;max-height:120px!important;min-height:120px!important;flex-basis:120px!important}}

/* v39 GLOBAL ENERGIE EVENTS rebrand - ice blue theme */
:root{
  --primary:#38bdf8!important;
  --primary-2:#0ea5e9!important;
  --primary-dark:#0284c7!important;
  --primary-soft:#e0f2fe!important;
  --success:#0ea5e9!important;
  --sidebar:#06172e!important;
  --sidebar-soft:#0b3159!important;
}
body{background:#f5fbff!important;color:#06133a!important;}
a,.ref,.order-doc-panel a,.order-shipment-panel a,.quote-detail-nav a,.pdf-doc-table a{color:#0369a1!important;}
.sidebar{background:linear-gradient(180deg,#06213f,#03111f)!important;}
.sidebar a.active,.sidebar a:hover,.menu-group.open>a{background:#0ea5e9!important;color:#fff!important;}
.sidebar nav a i,.menu-group>a i:first-child{color:#7dd3fc!important;}
.topbar{border-bottom:1px solid #d7eefb!important;}
.mobile-menu-btn,.sidebar-toggle,.round-add,.round,.tiny-plus{background:#0ea5e9!important;color:#fff!important;border-color:#0284c7!important;}
.btn-orange,.btn-small,.orange,.orange-btn,.purple-btn,.green-btn,.small-green-btn,.auth-submit,.btn-primary,
button[type=submit],input[type=submit]{background:#0ea5e9!important;border-color:#0284c7!important;color:#fff!important;}
.btn-orange:hover,.btn-small:hover,.orange-btn:hover,.purple-btn:hover,.green-btn:hover,.small-green-btn:hover,.auth-submit:hover,
button[type=submit]:hover,input[type=submit]:hover{background:#0284c7!important;color:#fff!important;}
.btn-secondary,.gray-btn,.small-gray-btn{background:#eef9ff!important;border:1px solid #bae6fd!important;color:#075985!important;}
.red-btn,.btn-danger,.badge-danger{background:#dc2626!important;border-color:#b91c1c!important;color:#fff!important;}
.badge.green,.badge-green,.quote-status.valid,.quote-status.en-cours,.status-dot,.text-green,.text-success,.module-icon,.dol-page-icon,.dol-title-icon,.quote-big-icon{color:#0ea5e9!important;}
.badge.green,.badge-green,.status-dot{background:#0ea5e9!important;color:#fff!important;}
.price{color:#0369a1!important;}
.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus,.email-form input:focus,.email-form select:focus,.email-form textarea:focus,
.auth-card input:focus,.searchable-select-input:focus{border-color:#38bdf8!important;box-shadow:0 0 0 3px rgba(56,189,248,.18)!important;}
.dol-table tbody tr:hover,.stock-list-table tbody tr:hover{background:#e0f2fe!important;}
.dol-table thead th,.stock-list-table thead th,.quote-lines-table th,.margin-mini-table th,.order-detail-lines th,.order-panel-head{background:#eaf7ff!important;color:#075985!important;}
.card,.panel,.dash-card,.chart-panel,.hp-chart-card,.auth-card,.dol-table-wrap,.order-show-page{border-color:#d7eefb!important;box-shadow:0 3px 12px rgba(14,165,233,.08)!important;}
.auth-card-wrap:before{background:#38bdf8!important;box-shadow:0 26px 60px rgba(14,165,233,.18)!important;}
.auth-options a,.auth-options .remember span{color:#0284c7!important;}
.auth-logo-img{filter:drop-shadow(0 14px 24px rgba(14,165,233,.20))!important;width:min(430px,86vw)!important;max-height:118px!important;}
.sidebar .brand.brand-logo-only{background:transparent!important;border:0!important;box-shadow:none!important;padding:10px 8px!important;}
.sidebar .brand.brand-logo-only .brand-logo-img{width:178px!important;max-height:58px!important;object-fit:contain!important;}
.sidebar .brand.brand-logo-only .brand-logo-mini{width:32px!important;height:32px!important;object-fit:contain!important;}
body.sidebar-collapsed .sidebar .brand.brand-logo-only .brand-logo-mini{width:34px!important;height:34px!important;}
.hp-chart-card canvas{max-height:128px!important;}
@media(max-width:900px){.auth-logo-img{width:min(330px,80vw)!important;max-height:90px!important}.sidebar .brand.brand-logo-only .brand-logo-img{width:150px!important;max-height:48px!important}}


/* GLOBAL ENERGIE EVENTS - Ice Blue Theme Override */
:root{
  --ice-primary:#38BDF8!important;
  --ice-primary-dark:#0284C7!important;
  --ice-primary-soft:#E0F7FF!important;
  --ice-primary-softer:#F0FAFF!important;
  --xl-green:#38BDF8!important;
  --pro-primary:#38BDF8!important;
  --pro-primary-dark:#0284C7!important;
  --sidebar-soft:#E0F7FF!important;
  --hak-green:#38BDF8!important;
  --hak-green-dark:#0284C7!important;
  --hak-green-soft:#E0F7FF!important;
  --hp-green:#38BDF8!important;
  --hp-green-dark:#0284C7!important;
  --form-green:#38BDF8!important;
  --form-green-dark:#0284C7!important;
  --form-focus:#38BDF8!important;
}
.sidebar a i:first-child,.menu-group>a i:first-child{color:#0284C7!important;background:#E0F7FF!important;border-color:#BAE6FD!important;}
.sidebar a.active i:first-child,.sidebar a:hover i:first-child,.menu-group.open>a i:first-child{background:#38BDF8!important;color:#fff!important;border-color:#38BDF8!important;}
.sidebar a:hover,.sidebar a.active,.menu-group.open>a{background:#E0F7FF!important;color:#075985!important;border-color:#BAE6FD!important;}
.menu-group.open .menu-arrow,.submenu a:hover:before,.submenu a.active:before{color:#0284C7!important;background:#0284C7!important;}
.mobile-menu-btn,.sidebar-toggle{color:#0284C7!important;border-color:#BAE6FD!important;background:#fff!important;}
.auth-card-wrap:before,.auth-logo,.auth-submit,.btn-primary,.green-btn,.small-green-btn,.invoice-detail-actions .green-btn{background:#38BDF8!important;border-color:#0284C7!important;color:#fff!important;}
.auth-submit:hover,.btn-primary:hover,.green-btn:hover,.small-green-btn:hover{background:#0284C7!important;color:#fff!important;}
.auth-card input:focus,.form-control:focus,input:focus,select:focus,textarea:focus{border-color:#38BDF8!important;box-shadow:0 0 0 3px rgba(56,189,248,.16)!important;}
.auth-options a,.auth-options .remember span,a,.text-green,.expedition-ready{color:#0284C7!important;}
.status-dot,.quote-status.Validée,.quote-status.En-cours,.status-valid,.status-open,.badge-success{background:#38BDF8!important;color:#fff!important;}
.card-icon,.stat-icon,.dashboard-card .icon{background:#E0F7FF!important;color:#0284C7!important;}
button:not(.red-btn):not(.btn-danger),.btn:not(.btn-danger):not(.red-btn){border-color:#0284C7;}

/* v40 requested update: white menu, blue icons, smaller login logo, correct collapsed logo */
:root{
  --side-w:270px!important;
  --side-w-collapsed:72px!important;
  --menu-blue:#0057d9!important;
  --menu-blue-soft:#eaf7ff!important;
  --menu-text:#1f2937!important;
}
.sidebar,
@media(max-width:900px){.sidebar{background:#fff!important;}}
.sidebar{
  background:#ffffff!important;
  color:var(--menu-text)!important;
  border-right:1px solid #dbeafe!important;
  box-shadow:0 8px 28px rgba(2,132,199,.08)!important;
}
.sidebar nav a,
.sidebar a,
.menu-group>a{
  color:var(--menu-text)!important;
  background:transparent!important;
}
.sidebar nav a i:first-child,
.sidebar a i:first-child,
.menu-group>a i:first-child{
  color:var(--menu-blue)!important;
  background:#eef9ff!important;
  border:1px solid #bae6fd!important;
}
.sidebar a.active,
.sidebar a:hover,
.menu-group.open>a{
  background:#dff4ff!important;
  color:#075985!important;
  border-color:#bae6fd!important;
}
.sidebar a.active i:first-child,
.sidebar a:hover i:first-child,
.menu-group.open>a i:first-child{
  background:#ffffff!important;
  color:var(--menu-blue)!important;
  border-color:#7dd3fc!important;
}
.menu-arrow{
  color:#0ea5e9!important;
  background:transparent!important;
}
.submenu{
  border-left:1px solid #dbeafe!important;
  background:#ffffff!important;
}
.submenu a{
  color:#334155!important;
  background:#ffffff!important;
}
.submenu a:hover{
  background:#f0faff!important;
  color:#075985!important;
}
.sidebar .brand.brand-logo-only{
  background:#ffffff!important;
  padding:10px 4px 18px!important;
  justify-content:center!important;
}
.sidebar .brand.brand-logo-only .brand-logo-full,
.sidebar .brand.brand-logo-only .brand-logo-img:not(.brand-logo-mini){
  width:185px!important;
  max-height:70px!important;
  object-fit:contain!important;
}
.auth-logo-img{
  width:min(300px,72vw)!important;
  max-height:88px!important;
  object-fit:contain!important;
}
body.sidebar-collapsed .sidebar{
  background:#ffffff!important;
  border-right:1px solid #dbeafe!important;
}
body.sidebar-collapsed .sidebar .brand.brand-logo-only{
  height:78px!important;
  min-height:78px!important;
  padding:8px 0 10px!important;
  margin:0 0 10px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
body.sidebar-collapsed .sidebar .brand.brand-logo-only .brand-logo-full,
body.sidebar-collapsed .sidebar .brand.brand-logo-only .brand-logo-img:not(.brand-logo-mini){
  display:none!important;
}
body.sidebar-collapsed .sidebar .brand.brand-logo-only .brand-logo-mini{
  display:block!important;
  width:52px!important;
  height:52px!important;
  max-width:52px!important;
  max-height:52px!important;
  object-fit:contain!important;
  border-radius:0!important;
}
body.sidebar-collapsed .sidebar a,
body.sidebar-collapsed .menu-group>a{
  background:transparent!important;
}
body.sidebar-collapsed .sidebar a.active,
body.sidebar-collapsed .sidebar a:hover,
body.sidebar-collapsed .menu-group.open>a{
  background:#dff4ff!important;
}
@media(max-width:900px){
  .auth-logo-img{width:min(230px,68vw)!important;max-height:72px!important;}
  .sidebar .brand.brand-logo-only .brand-logo-full,
  .sidebar .brand.brand-logo-only .brand-logo-img:not(.brand-logo-mini){width:165px!important;max-height:62px!important;}
}

/* v30 fix collapsed menu open click: no blue square, keep icons clean */
.menu-arrow,
.menu-group.open .menu-arrow{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  color:#38BDF8!important;
}
.menu-group>a:focus,
.menu-group>a:active,
.sidebar a:focus,
.sidebar a:active{
  outline:none!important;
  box-shadow:none!important;
}
@media (min-width:901px){
  body.sidebar-collapsed .sidebar a i:first-child,
  body.sidebar-collapsed .menu-group>a i:first-child,
  body.sidebar-collapsed .sidebar a:hover i:first-child,
  body.sidebar-collapsed .sidebar a.active i:first-child,
  body.sidebar-collapsed .menu-group.open>a i:first-child,
  body.sidebar-collapsed .menu-group>a:hover i:first-child{
    background:#E0F7FF!important;
    color:#38BDF8!important;
    border-color:#BDEBFF!important;
    box-shadow:none!important;
  }
  body.sidebar-collapsed .menu-arrow,
  body.sidebar-collapsed .menu-group.open .menu-arrow{
    display:none!important;
    width:0!important;
    height:0!important;
    opacity:0!important;
    background:transparent!important;
  }
  body.sidebar-collapsed .menu-group.open>a,
  body.sidebar-collapsed .sidebar a.active,
  body.sidebar-collapsed .sidebar a:hover{
    background:transparent!important;
    box-shadow:none!important;
  }
}

/* Brand / product type combo with logos */
.brand-combo{position:relative;width:100%;max-width:100%;font-family:'Segoe UI',Arial,Helvetica,sans-serif;}
.brand-combo-control{display:grid;grid-template-columns:1fr 34px;align-items:center;width:100%;height:38px;background:#fff;border:1px solid #cbd5e1;border-radius:6px;overflow:hidden;transition:.15s;}
.brand-combo.is-open .brand-combo-control,.brand-combo:focus-within .brand-combo-control{border-color:#0284C7;box-shadow:0 0 0 3px rgba(2,132,199,.12);}
.brand-combo-input{width:100%!important;height:36px!important;min-height:36px!important;border:0!important;border-radius:0!important;background:#fff!important;padding:7px 10px!important;font-size:13px!important;color:#0f172a!important;box-shadow:none!important;}
.brand-combo-btn{height:36px;width:34px;border:0;border-left:1px solid #e2e8f0;background:#f8fafc;color:#0284C7;display:flex;align-items:center;justify-content:center;cursor:pointer;}
.brand-combo-btn:hover{background:#E0F7FF;}
.brand-combo-list{display:none;position:absolute;z-index:10000;top:calc(100% + 5px);left:0;right:0;background:#fff;border:1px solid #0284C7;border-radius:8px;box-shadow:0 14px 30px rgba(15,23,42,.18);padding:6px;max-height:260px;overflow:auto;}
.brand-combo.is-open .brand-combo-list{display:block;}
.brand-combo-option{width:100%;min-height:46px;display:flex;align-items:center;gap:12px;border:0;background:#fff;border-radius:6px;padding:8px 10px;text-align:left;cursor:pointer;color:#0f172a;font-weight:700;}
.brand-combo-option:hover,.brand-combo-option.is-selected{background:#E0F7FF;color:#075985;}
.brand-combo-option img{width:72px;height:28px;object-fit:contain;object-position:left center;flex:0 0 72px;background:transparent;}
.brand-combo-option span{font-size:13px;line-height:1.2;}
.brand-combo-option.is-hidden{display:none!important;}
.brand-combo-empty{padding:10px;color:#64748b;font-size:12px;text-align:center;}
@media(max-width:560px){.brand-combo-list{position:fixed;left:10px;right:10px;top:auto;bottom:12px;max-height:45vh}.brand-combo-option img{width:64px;}}

/* v42 FIX: compact brand logos dropdown/list */
.form-grid .brand-combo{
  position:relative!important;
  width:100%!important;
  max-width:560px!important;
  min-width:0!important;
  align-self:start!important;
}
.form-grid .brand-combo-control{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 38px!important;
  height:40px!important;
  min-height:40px!important;
  overflow:hidden!important;
  border:1px solid #b9dff1!important;
  border-radius:7px!important;
  background:#fff!important;
}
.form-grid .brand-combo-input{
  width:100%!important;
  max-width:100%!important;
  height:38px!important;
  min-height:38px!important;
  border:0!important;
  border-radius:0!important;
  background:#fff!important;
  box-shadow:none!important;
  padding:8px 11px!important;
}
.form-grid .brand-combo-btn{
  width:38px!important;
  height:38px!important;
  min-width:38px!important;
  border:0!important;
  border-left:1px solid #dbeafe!important;
  background:#f8fbff!important;
  padding:0!important;
  margin:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  color:#0EA5E9!important;
}
.form-grid .brand-combo-list{
  display:none!important;
  position:absolute!important;
  left:0!important;
  right:auto!important;
  top:calc(100% + 6px)!important;
  width:min(100%,560px)!important;
  max-height:245px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  z-index:99999!important;
  padding:6px!important;
  background:#fff!important;
  border:1px solid #0EA5E9!important;
  border-radius:10px!important;
  box-shadow:0 16px 36px rgba(15,23,42,.16)!important;
}
.form-grid .brand-combo.is-open .brand-combo-list{display:block!important;}
.form-grid .brand-combo-option{
  width:100%!important;
  height:50px!important;
  min-height:50px!important;
  max-height:50px!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:12px!important;
  overflow:hidden!important;
  border:0!important;
  border-radius:8px!important;
  background:#fff!important;
  padding:6px 10px!important;
  margin:0 0 3px 0!important;
  text-align:left!important;
  line-height:1!important;
  cursor:pointer!important;
}
.form-grid .brand-combo-option:hover,
.form-grid .brand-combo-option.is-selected{background:#E0F7FF!important;color:#0369A1!important;}
.form-grid .brand-combo-option img{
  display:block!important;
  width:76px!important;
  max-width:76px!important;
  min-width:76px!important;
  height:34px!important;
  max-height:34px!important;
  object-fit:contain!important;
  object-position:center!important;
  flex:0 0 76px!important;
  border:0!important;
  outline:0!important;
  background:transparent!important;
  box-shadow:none!important;
  padding:0!important;
  margin:0!important;
}
.form-grid .brand-combo-option span{
  display:block!important;
  font-size:14px!important;
  font-weight:700!important;
  color:#0f172a!important;
  line-height:1.2!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.form-grid .brand-combo-option.is-hidden{display:none!important;}
@media(max-width:900px){
  .form-grid .brand-combo{max-width:100%!important;}
  .form-grid .brand-combo-list{width:100%!important;}
}

/* v43 FIX: allow Marque / Type de produit dropdown to show outside the form panel */
.product-form.panel.real-product-form,
.real-product-form,
.panel.real-product-form{
  overflow:visible!important;
}
.form-grid{
  overflow:visible!important;
}
.form-grid .brand-combo{
  z-index:100000!important;
}
.form-grid .brand-combo.is-open{
  z-index:100001!important;
}
.form-grid .brand-combo-list{
  display:none!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
}
.form-grid .brand-combo.is-open .brand-combo-list{
  display:block!important;
}

/* v44 FIX: products list badges/actions aligned on one line */
.products-table th:nth-child(9), .products-table th:nth-child(10), .products-table th:nth-child(11),
.products-table td:nth-child(9), .products-table td:nth-child(10), .products-table td:nth-child(11){
  white-space:nowrap!important;
  vertical-align:middle!important;
}
.products-table .actions-cell{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:10px!important;
  flex-wrap:nowrap!important;
  min-width:150px!important;
  white-space:nowrap!important;
}
.products-table .actions-cell .mini-action{margin:0!important;display:inline-flex!important;align-items:center!important;line-height:1!important;}
.products-table .badge.green{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:24px!important;line-height:1!important;white-space:nowrap!important;}
.warehouse-stock-table .mini-action{display:inline-flex!important;align-items:center!important;gap:6px!important;white-space:nowrap!important;margin:0!important;}
.warehouse-stock-table td{vertical-align:middle!important;}
.email-status{margin:12px 0;padding:10px 12px;border-radius:8px;font-weight:700}.email-status.ok{background:#dcfce7;color:#166534}.email-status.err{background:#fee2e2;color:#991b1b}

/* Email attachments */
.email-form .attachment-row{align-items:start!important;}
.email-form .attachment-box{display:flex;flex-direction:column;gap:6px;max-width:860px;}
.email-form input[type="file"]{height:auto;padding:9px;background:#fff;border:1px dashed #9bd7ff;border-radius:6px;cursor:pointer;}
.email-form .attachment-box small{color:#6b7280;font-size:12px;line-height:1.35;}
.email-form input[type="file"]::file-selector-button{border:0;background:#12a8e8;color:#fff;border-radius:5px;padding:7px 12px;font-weight:700;margin-right:10px;cursor:pointer;}

/* Location form: up to four image previews */
.location-product-form .product-form-top{
  grid-template-columns:minmax(280px,340px) minmax(0,1fr)!important;
}
.location-image-uploader{width:100%!important;}
.location-image-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  min-height:126px;
}
.location-image-grid img{
  width:100%!important;
  height:118px!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:cover!important;
  border:1px solid #d9e4ee!important;
  border-radius:6px;
  box-shadow:none!important;
}
.location-image-grid .location-image-placeholder{grid-column:1/-1;object-fit:contain!important;}
.location-image-uploader .upload-btn{display:flex!important;justify-content:center;margin-top:10px!important;}
.location-image-uploader small{line-height:1.35;word-break:normal!important;}
.location-image-uploader .location-images-error{color:#b42318!important;font-weight:700;min-height:16px;}
.location-brand-logo-field{display:grid;grid-template-columns:96px minmax(0,1fr);align-items:center;gap:8px 10px;}
.location-brand-logo-preview{display:flex;align-items:center;justify-content:center;width:96px;height:52px;grid-row:span 2;border:1px solid #d9e4ee;border-radius:7px;color:#94a3b8;background:#f8fafc;font-size:10px;font-weight:700;text-align:center;overflow:hidden;}
.location-brand-logo-preview img{width:100%;height:100%;padding:5px;object-fit:contain;background:#fff;}
.location-brand-logo-upload{display:inline-flex!important;justify-content:center;margin:0!important;}
.location-brand-logo-upload input{display:none;}
.location-brand-logo-field small{color:#64748b;font-size:11px;line-height:1.35;}
.location-form-error{margin:0 0 12px;padding:11px 13px;border:1px solid #fecaca;border-radius:6px;background:#fef2f2;color:#991b1b;font-weight:700;}
.location-show-gallery{
  width:96px!important;
  height:96px!important;
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:2px;
  padding:2px;
  filter:none!important;
  opacity:1!important;
}
.location-show-gallery img{width:100%!important;height:100%!important;min-height:0;object-fit:cover!important;}
.location-show-gallery img:only-child{grid-column:1/-1;}
@media(max-width:900px){
  .location-product-form .product-form-top{grid-template-columns:1fr!important;}
  .location-image-uploader{max-width:420px;}
}

/* Settings / Parameters */
.settings-page{max-width:1180px;margin:0 auto}.settings-hero{background:linear-gradient(135deg,#f8fbff,#eaf7ff);border:1px solid #ccecff;border-radius:18px;padding:22px;margin-bottom:18px;display:flex;justify-content:space-between;align-items:center}.settings-hero h2{margin:0;color:#002b80;font-size:24px}.settings-hero p{margin:6px 0 0;color:#64748b}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.settings-card{padding:20px!important;border-radius:16px!important}.settings-card h3{margin:0 0 16px;color:#002b80;display:flex;align-items:center;gap:10px}.settings-card.wide{grid-column:1/-1}.settings-form{display:grid;gap:10px}.settings-form label{font-weight:800;color:#11003d}.settings-form input,.settings-form select,.settings-form textarea{height:42px;border:1px solid #cbdced;border-radius:10px;padding:0 12px;background:#fff}.settings-form .btn{justify-self:start;margin-top:8px}.switch-row{display:flex!important;align-items:center;justify-content:space-between;gap:14px;background:#f8fafc;border:1px solid #e4eef8;border-radius:12px;padding:12px!important}.switch-row input{width:22px;height:22px}.audit-preview{margin-top:16px;max-height:360px;overflow:auto;border:1px solid #e4eef8;border-radius:12px}.audit-preview .clean-table{min-width:900px}.primary{background:#0ea5e9;color:#fff;border:0;border-radius:8px;padding:10px 15px;font-weight:900;text-decoration:none;display:inline-flex;align-items:center;gap:8px}html[dir="rtl"] body{direction:rtl}html[dir="rtl"] .sidebar{right:0;left:auto}html[dir="rtl"] .main{margin-left:0;margin-right:var(--side-w)}html[dir="rtl"] .menu-arrow{margin-left:0;margin-right:auto}@media(max-width:900px){.settings-grid{grid-template-columns:1fr}.settings-hero{display:block}html[dir="rtl"] .main{margin-right:0}.settings-card.wide{grid-column:auto}}
.twofa-setup{margin-top:12px;border:1px solid #cfe8f7;background:#f7fcff;border-radius:14px;padding:14px}.twofa-box{display:flex;align-items:center;justify-content:space-between;gap:18px}.twofa-box p{margin:6px 0}.twofa-box small,.muted{color:#64748b}.twofa-qr{width:210px;height:210px;object-fit:contain;background:#fff;border:1px solid #dbeafe;border-radius:12px;padding:8px}@media(max-width:700px){.twofa-box{flex-direction:column;align-items:flex-start}.twofa-qr{width:180px;height:180px}}
.auth-alert.success{background:#e7f9ef;border-color:#a7e7c3;color:#076b38}
.auth-options.only-link{justify-content:center;margin-top:14px}
.auth-link-button{display:block;text-align:center;text-decoration:none;line-height:1.2}

/* Professional settings + profile + multilingual polish */
.pro-settings .pro-hero{
  background: linear-gradient(135deg,#ffffff 0%,#eef9ff 55%,#dff4ff 100%);
  border:1px solid #b9e8ff;
  border-radius:22px;
  padding:24px;
  box-shadow:0 18px 45px rgba(0,147,221,.12);
  display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px;
}
.settings-hero-left{display:flex;align-items:center;gap:16px;min-width:0}
.settings-avatar-preview,.profile-big-avatar{display:flex;align-items:center;justify-content:center;background:#eaf8ff;border:3px solid #12aeea;color:#0099d8;overflow:hidden;box-shadow:0 8px 24px rgba(0,147,221,.16)}
.settings-avatar-preview{width:72px;height:72px;border-radius:22px;font-size:32px;flex:0 0 auto}.settings-avatar-preview img,.profile-big-avatar img,.header-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.settings-hero-badge{padding:10px 14px;border-radius:999px;background:#fff;color:#0077b6;border:1px solid #c7efff;font-weight:800;white-space:nowrap}
.pro-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start}.pro-settings-grid .wide{grid-column:1/-1}.settings-card{border:1px solid #d7edf8;border-radius:20px;background:#fff;box-shadow:0 12px 34px rgba(0,72,115,.08);padding:20px}.settings-card-title{display:flex;align-items:center;gap:12px;margin-bottom:18px}.settings-card-title>span{width:44px;height:44px;border-radius:14px;display:flex;align-items:center;justify-content:center;background:#eaf8ff;color:#0099d8;font-size:20px}.settings-card-title h3{margin:0;color:#061c33;font-size:20px}.settings-card-title p{margin:4px 0 0;color:#6b7b8b;font-size:13px}.settings-form label{font-weight:800;color:#071b32;margin-bottom:7px;display:block}.settings-form input,.settings-form select,.settings-form textarea{width:100%;min-height:44px;border:1px solid #c9dcec;border-radius:12px;padding:10px 12px;background:#fff;outline:none}.settings-form input:focus,.settings-form select:focus,.settings-form textarea:focus{border-color:#18b8f2;box-shadow:0 0 0 4px rgba(24,184,242,.12)}.profile-upload-box{display:flex;gap:16px;align-items:center}.profile-big-avatar{width:104px;height:104px;border-radius:28px;font-size:46px;flex:0 0 auto}.profile-upload-box small,.settings-form small{display:block;margin-top:7px;color:#6b7b8b}.settings-two-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px}.twofa-box.professional{background:linear-gradient(135deg,#f8fdff,#eef9ff);border:1px solid #c7efff;border-radius:18px;padding:16px;display:flex;gap:20px;align-items:center;justify-content:space-between;margin:18px 0}.twofa-copy{flex:1;min-width:240px}.qr-frame{background:#fff;border-radius:18px;padding:12px;box-shadow:0 10px 24px rgba(0,94,145,.12);border:1px solid #d7edf8}.twofa-qr{width:190px;height:190px;display:block}.header-avatar{overflow:hidden}.header-avatar img{border-radius:50%}html[dir="rtl"] body{direction:rtl;text-align:right}html[dir="rtl"] .sidebar,html[dir="rtl"] .main{direction:rtl}html[dir="rtl"] .menu-arrow{margin-right:auto;margin-left:0}html[dir="rtl"] .settings-hero-left,html[dir="rtl"] .settings-card-title,html[dir="rtl"] .profile-upload-box{flex-direction:row-reverse}html[dir="rtl"] input,html[dir="rtl"] textarea{direction:rtl}@media(max-width:850px){.pro-settings .pro-hero,.twofa-box.professional,.profile-upload-box{flex-direction:column;align-items:stretch}.pro-settings-grid,.settings-two-cols{grid-template-columns:1fr}.settings-hero-badge{width:max-content}.profile-big-avatar,.settings-avatar-preview{margin:auto}.qr-frame{width:max-content;max-width:100%;margin:auto}}

/* Final settings polish: no top banner, bigger language selector, removable avatar */
.pro-settings .settings-hero,
.pro-settings .pro-hero{display:none!important;}
.pro-settings{padding-top:4px;}
.profile-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:8px;}
.btn.danger{background:#ef4444;color:#fff;border:0;border-radius:8px;padding:10px 15px;font-weight:900;text-decoration:none;display:inline-flex;align-items:center;gap:8px;cursor:pointer;}
.btn.danger.ghost{background:#fff;color:#dc2626;border:1px solid #fecaca;}
.btn.danger.ghost:hover{background:#fff1f2;border-color:#fca5a5;}
.language-card .settings-form{gap:14px;}
.language-card .language-select-big{min-height:138px!important;height:138px!important;font-size:16px;line-height:1.35;padding:12px 14px!important;overflow:auto;background:#fff!important;}
.language-card .language-select-big option{padding:11px 12px;border-radius:8px;margin:2px 0;}
.language-card .language-select-big option:checked{background:#dff5ff;color:#004e8a;font-weight:900;}
.profile-upload-box input[type=file]{height:auto!important;min-height:48px;padding:11px 12px!important;}
@media(max-width:850px){.profile-actions{justify-content:center}.language-card .language-select-big{min-height:150px!important;height:150px!important;}}

/* v51 Arabic RTL layout fix: prevent double side margins and squeezed dashboard */
html[dir="rtl"] .sidebar{
  right:0!important;
  left:auto!important;
}
html[dir="rtl"] .main{
  margin-left:0!important;
  margin-right:var(--side-w)!important;
  width:calc(100% - var(--side-w))!important;
}
html[dir="rtl"] .topbar{
  left:0!important;
  right:var(--side-w)!important;
  width:calc(100% - var(--side-w))!important;
  direction:rtl!important;
}
html[dir="rtl"] .search{
  margin-left:0!important;
  margin-right:auto!important;
  text-align:right!important;
}
html[dir="rtl"] .page-title,
html[dir="rtl"] .header-user-text,
html[dir="rtl"] .hp-chart-head,
html[dir="rtl"] .mini-kpi-text,
html[dir="rtl"] .excel-mini-table{
  text-align:right!important;
}
html[dir="rtl"] .header-user-dropdown{
  right:auto!important;
  left:0!important;
  text-align:right!important;
}
html[dir="rtl"] .header-user-dropdown a,
html[dir="rtl"] .sidebar a,
html[dir="rtl"] .menu-group>a{
  flex-direction:row!important;
}
html[dir="rtl"] .submenu{
  margin-right:16px!important;
  margin-left:0!important;
  padding-right:10px!important;
  padding-left:0!important;
  border-right:2px solid #d8dee8!important;
  border-left:0!important;
}
html[dir="rtl"] .submenu a:before{
  margin-right:0!important;
  margin-left:8px!important;
}
html[dir="rtl"] .hp-dashboard-pro,
html[dir="rtl"] .dashboard-kpi-strip,
html[dir="rtl"] .excel-dashboard{
  direction:rtl!important;
}
html[dir="rtl"] .hp-chart-card{
  min-width:0!important;
}
html[dir="rtl"] .hp-chart-head{
  align-items:flex-start!important;
}
html[dir="rtl"] .hp-chart-head b,
html[dir="rtl"] .hp-chart-head span,
html[dir="rtl"] .hp-chart-head small{
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  line-height:1.25!important;
}
html[dir="rtl"] .hp-chart-canvas{
  direction:ltr!important;
}
html[dir="rtl"] canvas{
  direction:ltr!important;
}
@media(max-width:900px){
  html[dir="rtl"] .main{
    margin-right:0!important;
    margin-left:0!important;
    width:100%!important;
  }
  html[dir="rtl"] .topbar{
    right:0!important;
    left:0!important;
    width:100%!important;
  }
  html[dir="rtl"] .sidebar{
    right:0!important;
    left:auto!important;
    transform:translateX(105%)!important;
  }
  html[dir="rtl"] .sidebar.open{
    transform:translateX(0)!important;
  }
}

/* === GLOBAL ENERGIE: RESPONSIVE WIDE TABLE FIX === */
.content,
.main,
.dol-list-page,
.clean-list-page,
.shipment-list-page{
  min-width:0!important;
  max-width:100%!important;
}
.dol-table-card,
.clean-table-box,
.quote-table-wrap,
.responsive-table,
.table-responsive,
.stock-table-wrap,
.panel:has(table){
  width:100%!important;
  max-width:100%!important;
  overflow-x:auto!important;
  overflow-y:visible!important;
  -webkit-overflow-scrolling:touch!important;
  overscroll-behavior-inline:contain!important;
}
.dol-table-card::-webkit-scrollbar,
.clean-table-box::-webkit-scrollbar,
.quote-table-wrap::-webkit-scrollbar,
.responsive-table::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar,
.stock-table-wrap::-webkit-scrollbar{
  height:11px!important;
}
.dol-table-card::-webkit-scrollbar-track,
.clean-table-box::-webkit-scrollbar-track,
.quote-table-wrap::-webkit-scrollbar-track,
.responsive-table::-webkit-scrollbar-track,
.table-responsive::-webkit-scrollbar-track,
.stock-table-wrap::-webkit-scrollbar-track{
  background:#eef7ff!important;
  border-radius:999px!important;
}
.dol-table-card::-webkit-scrollbar-thumb,
.clean-table-box::-webkit-scrollbar-thumb,
.quote-table-wrap::-webkit-scrollbar-thumb,
.responsive-table::-webkit-scrollbar-thumb,
.table-responsive::-webkit-scrollbar-thumb,
.stock-table-wrap::-webkit-scrollbar-thumb{
  background:#39bdf8!important;
  border-radius:999px!important;
}
.dol-table-card table,
.clean-table-box table,
.quote-table-wrap table,
.responsive-table table,
.table-responsive table,
.stock-table-wrap table,
.panel:has(table) table{
  width:max-content!important;
  min-width:100%!important;
  table-layout:auto!important;
}
.dol-erp-table,
.expedition-table,
.reception-table,
.order-dol-list,
.quote-dol-list,
.clean-table,
.tiers-table,
.edit-lines-table,
.editable-lines,
.stock-list-table,
.warehouse-table,
.warehouse-stock-table{
  min-width:1180px!important;
}
.expedition-table,
.reception-table{
  min-width:1450px!important;
}
.dol-erp-table th,
.dol-erp-table td,
.expedition-table th,
.expedition-table td,
.reception-table th,
.reception-table td{
  white-space:nowrap!important;
}
.expedition-table .filter-line input,
.expedition-table .filter-line select,
.reception-table .filter-line input,
.reception-table .filter-line select{
  min-width:115px!important;
  max-width:none!important;
}
.expedition-table .filter-line th:nth-child(6) input,
.reception-table .filter-line th:nth-child(6) input{
  width:125px!important;
}
html[dir="rtl"] .dol-table-card,
html[dir="rtl"] .clean-table-box,
html[dir="rtl"] .quote-table-wrap,
html[dir="rtl"] .responsive-table,
html[dir="rtl"] .table-responsive,
html[dir="rtl"] .stock-table-wrap{
  direction:rtl!important;
}
html[dir="rtl"] .dol-table-card table,
html[dir="rtl"] .clean-table-box table,
html[dir="rtl"] .quote-table-wrap table,
html[dir="rtl"] .responsive-table table,
html[dir="rtl"] .table-responsive table,
html[dir="rtl"] .stock-table-wrap table{
  direction:rtl!important;
}
@media(max-width:1200px){
  .content{overflow-x:hidden!important;}
  .dol-table-card,
  .clean-table-box,
  .quote-table-wrap,
  .responsive-table,
  .table-responsive,
  .stock-table-wrap{display:block!important;}
}

/* v35 Simple static style: keep the same layout/format, remove animated/glossy effects */
:root{
  --simple-blue:#0284c7;
  --simple-blue-dark:#0369a1;
  --simple-blue-soft:#e0f2fe;
  --simple-border:#d7e3ec;
  --simple-bg:#f6f8fb;
  --simple-text:#0f172a;
}

*, *::before, *::after{
  animation:none!important;
  transition:none!important;
  scroll-behavior:auto!important;
}

html, body{
  background:var(--simple-bg)!important;
  color:var(--simple-text)!important;
}

a, button, .btn, .orange, .green-btn, .red-btn, .small-green-btn,
.sidebar a, .menu-group>a, .dash-card, .card, .panel, .chart-panel,
.hp-chart-card, .mini-kpi-card, .auth-card, .hp-combo-control,
.dol-table-wrap, .excel-table-shell, .settings-card, .param-card{
  transform:none!important;
  filter:none!important;
  text-shadow:none!important;
  box-shadow:none!important;
}

.sidebar,
body.auth-page,
.login-page,
.auth-submit,
.btn.primary,
.btn.blue,
.orange,
.green-btn,
.small-green-btn,
.red-btn,
.hp-chart-card,
.card,
.panel,
.dash-card,
.chart-panel,
.auth-card,
.settings-hero,
.settings-card,
.param-card{
  background-image:none!important;
}

.sidebar{
  background:#ffffff!important;
  border-right:1px solid var(--simple-border)!important;
  color:var(--simple-text)!important;
}
.sidebar .brand,
.sidebar .brand.brand-logo-only{
  background:#ffffff!important;
  border:0!important;
  padding:10px 8px!important;
}
.sidebar a,
.menu-group>a{
  background:#ffffff!important;
  color:#0f172a!important;
  border:1px solid transparent!important;
  border-radius:6px!important;
}
.sidebar a:hover,
.sidebar a.active,
.menu-group.open>a{
  background:var(--simple-blue-soft)!important;
  color:#075985!important;
  border-color:#bae6fd!important;
}
.sidebar i,
.sidebar .fa-solid,
.sidebar .chev,
.menu-group .menu-arrow{
  color:var(--simple-blue)!important;
}

.topbar{
  background:#ffffff!important;
  border-bottom:1px solid var(--simple-border)!important;
  box-shadow:none!important;
}

.card,.panel,.dash-card,.chart-panel,.hp-chart-card,.auth-card,
.dol-table-wrap,.order-show-page,.settings-card,.param-card,
.excel-table-shell,.mini-kpi-card{
  background:#ffffff!important;
  border:1px solid var(--simple-border)!important;
  border-radius:6px!important;
}

.dashboard-grid,.hp-dashboard-pro,.cards{
  gap:12px!important;
}
.dash-card,.card,.panel,.chart-panel,.hp-chart-card{
  padding:14px!important;
}
.dash-icon,.stat-icon,.mini-kpi-icon{
  background:var(--simple-blue-soft)!important;
  color:var(--simple-blue)!important;
  border-radius:6px!important;
}

button,.btn,input,select,textarea,.form-control,
.hp-combo-control,.hp-combo-input,.hp-combo-btn{
  border-radius:4px!important;
  box-shadow:none!important;
}
input:focus,select:focus,textarea:focus,.form-control:focus,.auth-card input:focus,.searchable-select-input:focus,.hp-combo-input:focus{
  border-color:var(--simple-blue)!important;
  outline:1px solid var(--simple-blue)!important;
  box-shadow:none!important;
}

.btn,.orange,.green-btn,.small-green-btn,.auth-submit,.btn.primary,.btn.blue{
  background:var(--simple-blue)!important;
  border:1px solid var(--simple-blue-dark)!important;
  color:#ffffff!important;
  border-radius:4px!important;
}
.btn:hover,.orange:hover,.green-btn:hover,.small-green-btn:hover,.auth-submit:hover,.btn.primary:hover,.btn.blue:hover{
  background:var(--simple-blue-dark)!important;
}
.btn.light,.btn.muted,.gray-btn{
  background:#ffffff!important;
  color:#334155!important;
  border:1px solid #cbd5e1!important;
}
.red-btn,.btn.danger,.btn.danger-light,.badge.red,.red{
  background:#dc2626!important;
  border-color:#b91c1c!important;
  color:#ffffff!important;
}
.badge,.quote-status{
  border-radius:4px!important;
  box-shadow:none!important;
}

.dol-table th,.excel-table th,.table th{
  background:#eef5fa!important;
  color:#0f172a!important;
  border-color:var(--simple-border)!important;
}
.dol-table td,.excel-table td,.table td{
  border-color:var(--simple-border)!important;
}
.dol-table tbody tr:hover,.excel-table tbody tr:hover,.table tbody tr:hover{
  background:#f8fafc!important;
}

.crm-modal,.crm-modal-card,.modal,.modal-content{
  transition:none!important;
  animation:none!important;
  box-shadow:none!important;
  border-radius:6px!important;
}

.auth-shell,.auth-card-wrap,.login-card{
  background:#ffffff!important;
  box-shadow:none!important;
}
.auth-card-wrap:before,
.auth-hero:before,
.auth-hero:after{
  display:none!important;
}
.auth-logo,.brand img,.profile-avatar,img{
  filter:none!important;
}

.hp-combo-list,.dropdown-menu,.select-options{
  box-shadow:none!important;
  border:1px solid var(--simple-border)!important;
  border-radius:4px!important;
}

@media(max-width:900px){
  .sidebar{box-shadow:none!important;}
}

/* v30 exact login page style from requested screenshot */
body.auth-page{
    margin:0!important;
    min-height:100vh!important;
    height:auto!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    background-image:linear-gradient(90deg, rgba(248,250,255,.95) 0%, rgba(248,250,255,.86) 42%, rgba(238,242,255,.45) 72%, rgba(238,242,255,.20) 100%), url('https://res.cloudinary.com/dfamlzfp7/image/upload/v1781831671/ChatGPT_Image_Jun_18_2026_06_13_52_PM_glrg91.png')!important;
    background-size:cover!important;
    background-position:center center!important;
    background-repeat:no-repeat!important;
    background-attachment:fixed!important;
    font-family:'Segoe UI', Tahoma, Arial, sans-serif!important;
}
body.auth-page:before{
    content:""!important;
    position:fixed!important;
    inset:0!important;
    pointer-events:none!important;
    background:
      radial-gradient(circle at 91% 8%, rgba(139,92,246,.16) 0 16%, transparent 33%),
      radial-gradient(circle at 93% 48%, transparent 0 120px, rgba(139,92,246,.18) 122px 125px, transparent 128px),
      radial-gradient(circle at 5% 19%, rgba(186,230,253,.25) 0 1px, transparent 2px);
    background-size:auto, auto, 18px 18px!important;
    z-index:0!important;
}
.auth-shell{
    position:relative!important;
    z-index:1!important;
    min-height:100vh!important;
    width:min(1055px, calc(100% - 56px))!important;
    max-width:none!important;
    margin:0 auto!important;
    padding:34px 0!important;
    display:grid!important;
    grid-template-columns:1.22fr .86fr!important;
    align-items:center!important;
    gap:64px!important;
}
.auth-hero{
    padding:0!important;
    text-align:left!important;
}
.auth-brand{
    margin:0 0 45px 0!important;
    display:flex!important;
    justify-content:flex-start!important;
}
.auth-logo-img{
    width:300px!important;
    max-width:82vw!important;
    height:auto!important;
    max-height:100px!important;
    object-fit:contain!important;
    object-position:left center!important;
    filter:drop-shadow(0 17px 28px rgba(15,23,42,.12))!important;
}
.auth-hero h1{
    max-width:590px!important;
    margin:0 0 24px!important;
    color:#07143a!important;
    font-size:50px!important;
    line-height:1!important;
    letter-spacing:-1.8px!important;
    font-weight:900!important;
}
.auth-hero p{
    max-width:555px!important;
    color:#1f2b52!important;
    font-size:16px!important;
    line-height:1.55!important;
    margin:0!important;
}
.auth-card-wrap{
    position:relative!important;
    min-height:490px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
}
.auth-card-wrap:before{
    content:""!important;
    display:block!important;
    position:absolute!important;
    width:365px!important;
    height:455px!important;
    right:-6px!important;
    top:30px!important;
    border-radius:24px!important;
    background:#38BDF8!important;
    opacity:.86!important;
    transform:rotate(-7deg)!important;
    z-index:0!important;
    box-shadow:0 25px 60px rgba(56,189,248,.22)!important;
}
.auth-card{
    position:relative!important;
    z-index:1!important;
    width:100%!important;
    max-width:360px!important;
    padding:32px 28px 30px!important;
    background:rgba(255,255,255,.95)!important;
    border:1px solid rgba(186,230,253,.85)!important;
    border-radius:18px!important;
    box-shadow:0 22px 55px rgba(15,23,42,.14)!important;
    backdrop-filter:blur(8px)!important;
}
.auth-card h2{
    margin:0 0 10px!important;
    color:#111827!important;
    font-size:24px!important;
    font-weight:800!important;
}
.auth-subtitle{
    margin:0 0 24px!important;
    color:#526173!important;
    font-size:14px!important;
}
.auth-card label{
    display:block!important;
    margin:14px 0 7px!important;
    color:#111827!important;
    font-size:13px!important;
    font-weight:800!important;
}
.auth-card input[type=text],.auth-card input[type=email],.auth-card input[type=password]{
    width:100%!important;
    height:40px!important;
    border:1px solid #cbd5e1!important;
    border-radius:6px!important;
    background:#fff!important;
    padding:8px 10px!important;
    font-size:13px!important;
    color:#0f172a!important;
    box-sizing:border-box!important;
}
.auth-card input:focus{border-color:#38BDF8!important;box-shadow:0 0 0 3px rgba(56,189,248,.16)!important;outline:none!important}
.auth-options{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin:20px 0 28px!important}
.auth-options .remember{display:flex!important;align-items:center!important;gap:8px!important;margin:0!important;font-size:13px!important;font-weight:700!important;color:#0284c7!important}
.auth-options .remember span{color:#0284c7!important}.auth-options a{font-size:13px!important;color:#0284c7!important;text-decoration:none!important}
.auth-submit{width:100%!important;height:42px!important;border:0!important;border-radius:7px!important;background:#19A8E4!important;color:#fff!important;font-size:14px!important;font-weight:800!important;cursor:pointer!important}.auth-submit:hover{background:#0284C7!important}
@media(max-width:900px){
    body.auth-page{background-image:linear-gradient(180deg, rgba(248,250,255,.93), rgba(248,250,255,.78)), url('https://res.cloudinary.com/dfamlzfp7/image/upload/v1781831671/ChatGPT_Image_Jun_18_2026_06_13_52_PM_glrg91.png')!important;background-attachment:scroll!important}
    .auth-shell{width:min(100% - 32px, 520px)!important;grid-template-columns:1fr!important;gap:26px!important;padding:28px 0!important}
    .auth-brand{justify-content:center!important;margin-bottom:22px!important}.auth-logo-img{width:270px!important;object-position:center!important}.auth-hero{text-align:center!important}.auth-hero h1{font-size:36px!important;margin-inline:auto!important}.auth-hero p{margin-inline:auto!important}.auth-card-wrap{min-height:auto!important;justify-content:center!important}.auth-card-wrap:before{display:none!important}.auth-card{max-width:420px!important}
}
@media(max-width:480px){.auth-shell{width:min(100% - 24px, 420px)!important}.auth-logo-img{width:230px!important}.auth-hero h1{font-size:30px!important}.auth-hero p{font-size:14px!important}.auth-card{padding:24px 18px!important;border-radius:16px!important}.auth-options{flex-direction:column!important;align-items:flex-start!important;margin-bottom:22px!important}}

/* v31 auth background image only - no white page overlay */
body.auth-page{
    margin:0!important;
    min-height:100vh!important;
    height:auto!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    background-image:url('https://res.cloudinary.com/dfamlzfp7/image/upload/v1781831671/ChatGPT_Image_Jun_18_2026_06_13_52_PM_glrg91.png')!important;
    background-size:cover!important;
    background-position:center center!important;
    background-repeat:no-repeat!important;
    background-attachment:fixed!important;
}
body.auth-page:before{
    display:none!important;
    content:none!important;
}
.auth-shell,
.auth-card-wrap,
.auth-hero,
.login-wrapper,
.login-page,
.main-container,
.left-panel{
    background:transparent!important;
    box-shadow:none!important;
}
.auth-hero h1{
    color:#07143a!important;
    text-shadow:0 2px 12px rgba(255,255,255,.55)!important;
}
.auth-hero p{
    color:#15234d!important;
    text-shadow:0 1px 9px rgba(255,255,255,.62)!important;
}
.auth-logo-img{
    filter:drop-shadow(0 16px 28px rgba(15,23,42,.20))!important;
}
.auth-card-wrap:before{
    display:block!important;
    background:#38BDF8!important;
    opacity:.90!important;
    box-shadow:0 30px 70px rgba(56,189,248,.30)!important;
}
.auth-card{
    background:rgba(255,255,255,.88)!important;
    border:1px solid rgba(255,255,255,.72)!important;
    box-shadow:0 24px 65px rgba(15,23,42,.18)!important;
    backdrop-filter:blur(14px) saturate(125%)!important;
    -webkit-backdrop-filter:blur(14px) saturate(125%)!important;
}
@media(max-width:900px){
    body.auth-page{
        background-image:url('https://res.cloudinary.com/dfamlzfp7/image/upload/v1781831671/ChatGPT_Image_Jun_18_2026_06_13_52_PM_glrg91.png')!important;
        background-size:cover!important;
        background-position:center center!important;
        background-attachment:scroll!important;
    }
    .auth-card-wrap:before{display:none!important;}
}

.invoice-source-order-alert{grid-column:1 / -1;background:#e0f2fe;border:1px solid #7dd3fc;color:#075985;border-radius:10px;padding:12px 14px;margin:0 0 14px;font-weight:700;display:flex;align-items:center;gap:8px}.invoice-source-order-alert a{color:#0369a1;text-decoration:none;font-weight:900}.invoice-source-order-alert a:hover{text-decoration:underline}

.top-search-form{display:block;flex:1;max-width:420px}.top-search-form .search{width:100%}.search-page .dol-form{max-width:900px}.search-results-group h3{margin-bottom:12px}.invoice-source-order-alert{margin:10px 0;padding:10px 12px;border:1px solid #bae6fd;background:#eff6ff;color:#075985;border-radius:6px;font-size:13px}.invoice-source-order-alert a{font-weight:700;color:#0369a1}

/* v31 professional permissions page */
.permissions-modern-page{background:#f6fbff!important;padding:0 14px 24px;color:#0f172a;font-size:13px}.perm-hero{display:flex;gap:16px;justify-content:space-between;align-items:stretch;margin:8px 0 14px}.perm-user-card,.perm-summary,.perm-toolbar,.perm-card,.perm-note,.perm-bottom-actions{background:#fff;border:1px solid #dbeafe;box-shadow:0 10px 26px rgba(14,116,144,.08);border-radius:18px}.perm-user-card{display:flex;align-items:center;gap:14px;padding:18px;flex:1}.perm-avatar{width:58px;height:58px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(135deg,#e0f7ff,#f8fdff);color:#0284c7;font-size:27px;border:1px solid #bae6fd}.perm-eyebrow{text-transform:uppercase;letter-spacing:.08em;font-size:11px;color:#0284c7;font-weight:800;margin-bottom:4px}.perm-user-card h2{margin:0 0 5px;font-size:20px;color:#0f172a}.perm-user-card p{margin:0;color:#64748b}.perm-summary{display:grid;grid-template-columns:repeat(3,92px);align-items:center;padding:13px 10px;text-align:center}.perm-summary div{padding:6px 8px;border-right:1px solid #e0f2fe}.perm-summary div:last-child{border-right:0}.perm-summary b{display:block;font-size:24px;color:#0369a1}.perm-summary span{display:block;color:#64748b;font-size:11px;text-transform:uppercase;font-weight:800}.perm-note{padding:12px 14px;margin-bottom:14px;color:#075985;background:#eef9ff;display:flex;gap:10px;align-items:center}.perm-toolbar{position:sticky;top:0;z-index:5;display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px;margin-bottom:16px}.perm-search-wrap{display:flex;align-items:center;gap:9px;min-width:260px;flex:1;background:#f8fafc;border:1px solid #dbeafe;border-radius:14px;padding:0 12px;color:#0284c7}.perm-search-wrap input{width:100%;height:42px;border:0;background:transparent;outline:0;color:#0f172a}.perm-toolbar-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.perm-toolbar-actions .btn-secondary,.perm-toolbar-actions .btn-orange,.perm-bottom-actions .btn-secondary,.perm-bottom-actions .btn-orange{border-radius:12px;padding:11px 14px}.perm-grid{display:grid;grid-template-columns:repeat(2,minmax(280px,1fr));gap:16px}.perm-card{overflow:hidden}.perm-card-head{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:15px 16px;background:linear-gradient(135deg,#f0fbff,#ffffff);border-bottom:1px solid #e0f2fe}.perm-card-title{display:flex;align-items:center;gap:12px}.perm-card-title>span{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:#e0f2fe;color:#0284c7;font-size:18px}.perm-card h3{margin:0;font-size:15px;color:#0f172a}.perm-card small{color:#64748b}.perm-card-actions{display:flex;gap:6px}.perm-card-actions button{border:1px solid #bae6fd;background:#fff;color:#075985;border-radius:10px;padding:7px 9px;font-weight:800;cursor:pointer}.perm-items{display:grid;padding:8px 0}.perm-item{display:grid;grid-template-columns:44px 44px 1fr;align-items:center;gap:0;padding:10px 14px;border-bottom:1px solid #f1f5f9;cursor:pointer}.perm-item:last-child{border-bottom:0}.perm-item:hover{background:#f8fbff}.perm-item input{position:absolute;opacity:0;pointer-events:none}.modern-switch{width:38px;height:21px;border-radius:999px;background:#cbd5e1;position:relative;display:inline-block;transition:.15s;box-shadow:inset 0 1px 2px rgba(15,23,42,.15)}.modern-switch:before{content:"";position:absolute;width:17px;height:17px;top:2px;left:2px;border-radius:50%;background:#fff;box-shadow:0 2px 6px rgba(15,23,42,.22);transition:.15s}.perm-item input:checked+.modern-switch{background:#0ea5e9}.perm-item input:checked+.modern-switch:before{transform:translateX(17px)}.perm-copy b{display:block;color:#0f172a;font-size:12px;margin-bottom:2px}.perm-copy small{display:block;color:#64748b;line-height:1.35}.perm-bottom-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px;padding:13px}.permissions-modern-page .user-tabs{background:#fff;border-radius:14px;border:1px solid #dbeafe;margin:0 0 12px;overflow:hidden}.permissions-modern-page .user-tabs a.active{background:#e0f2fe;color:#075985;border-top:0;margin-top:0}.permissions-modern-page .user-tabs a{border-right:1px solid #dbeafe}.permissions-modern-page .btn-orange{background:#0284c7!important;border:1px solid #0284c7!important;color:#fff!important}.permissions-modern-page .btn-secondary{background:#fff!important;border:1px solid #bae6fd!important;color:#075985!important}.permissions-modern-page .btn-orange:hover,.permissions-modern-page .btn-secondary:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(14,116,144,.14)}@media(max-width:1050px){.perm-hero{flex-direction:column}.perm-summary{grid-template-columns:repeat(3,1fr)}.perm-grid{grid-template-columns:1fr}.perm-toolbar{position:static;flex-direction:column;align-items:stretch}.perm-toolbar-actions{justify-content:flex-start}.perm-item{grid-template-columns:0 44px 1fr}.perm-item:before{display:none}}@media(max-width:560px){.perm-user-card{align-items:flex-start;flex-direction:column}.perm-summary{grid-template-columns:1fr}.perm-summary div{border-right:0;border-bottom:1px solid #e0f2fe}.perm-summary div:last-child{border-bottom:0}.perm-toolbar-actions .btn-secondary,.perm-toolbar-actions .btn-orange,.perm-bottom-actions .btn-secondary,.perm-bottom-actions .btn-orange{width:100%;text-align:center}.perm-bottom-actions{flex-direction:column}.perm-card-head{align-items:flex-start;flex-direction:column}.perm-card-actions{width:100%}.perm-card-actions button{flex:1}}

/* v31 sidebar icons بدون خلفية مربعة */
.sidebar nav a i:first-child,
.sidebar a i:first-child,
.menu-group>a i:first-child,
.sidebar a.active i:first-child,
.sidebar a:hover i:first-child,
.menu-group.open>a i:first-child,
body.sidebar-collapsed .sidebar a i:first-child,
body.sidebar-collapsed .menu-group>a i:first-child,
body.sidebar-collapsed .sidebar a:hover i:first-child,
body.sidebar-collapsed .sidebar a.active i:first-child,
body.sidebar-collapsed .menu-group.open>a i:first-child,
body.sidebar-collapsed .menu-group>a:hover i:first-child{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  border-radius:0!important;
  width:18px!important;
  min-width:18px!important;
  height:auto!important;
  padding:0!important;
  color:#0284C7!important;
}

.sidebar a,
.menu-group>a{
  gap:12px!important;
}

body.sidebar-collapsed .sidebar a,
body.sidebar-collapsed .menu-group>a{
  justify-content:center!important;
}


/* v46 requested update: icons without square backgrounds */
.sidebar a i:first-child,
.menu-group>a i:first-child{
  background:transparent!important;
  border:0!important;
  border-color:transparent!important;
  box-shadow:none!important;
  border-radius:0!important;
  color:#0284C7!important;
}
.sidebar a.active i:first-child,
.sidebar a:hover i:first-child,
.menu-group.open>a i:first-child{
  background:transparent!important;
  border:0!important;
  border-color:transparent!important;
  box-shadow:none!important;
  color:#0284C7!important;
}
.header-avatar,
.module-icon,
.dol-page-icon,
.dol-title-icon,
.quote-big-icon,
.detail-icon,
.entity-avatar.box,
.card-icon,
.stat-icon,
.dash-icon,
.mini-kpi-icon,
.tier-card i,
.perm-card-title>span,
.settings-card-title>span{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  border-radius:0!important;
}
.header-avatar i,
.module-icon i,
.dol-page-icon i,
.dol-title-icon i,
.quote-big-icon i,
.detail-icon i,
.entity-avatar.box i,
.card-icon i,
.stat-icon i,
.dash-icon i,
.mini-kpi-icon i,
.tier-card i,
.perm-card-title>span i,
.settings-card-title>span i{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  color:#0284C7!important;
}
.sidebar a:hover,
.sidebar a.active,
.menu-group.open>a{
  box-shadow:none!important;
}

/* v47 API documentation section */
.api-page{padding:0 14px 28px;background:#f6fbff;color:#0f172a;font-size:13px}.api-hero{display:grid;grid-template-columns:1.4fr .6fr;gap:18px;align-items:stretch;margin:8px 0 18px}.api-hero-copy,.api-status-card,.api-panel,.api-kpi,.api-alert{background:#fff;border:1px solid #dbeafe;border-radius:20px;box-shadow:0 12px 30px rgba(14,116,144,.08)}.api-hero-copy{padding:28px}.api-eyebrow{display:inline-flex;align-items:center;gap:8px;color:#0284c7;font-weight:900;letter-spacing:.08em;text-transform:uppercase;font-size:11px;margin-bottom:10px}.api-hero h1{margin:0 0 8px;font-size:30px;letter-spacing:-.8px;color:#0f172a}.api-hero p{margin:0;color:#64748b;max-width:720px;line-height:1.55}.api-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.api-status-card{position:relative;padding:22px;display:flex;flex-direction:column;gap:8px;overflow:hidden}.api-status-card:after{content:"";position:absolute;right:-40px;top:-45px;width:130px;height:130px;border-radius:50%;background:#e0f2fe}.api-status-card b{font-size:20px;color:#0f172a;z-index:1}.api-status-card small{color:#64748b;font-weight:800;text-transform:uppercase;font-size:10px;z-index:1}.api-status-card code{display:block;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:9px 10px;color:#075985;word-break:break-all;z-index:1}.api-dot{width:13px;height:13px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 6px rgba(34,197,94,.12);z-index:1}.api-status-card.is-off .api-dot{background:#ef4444;box-shadow:0 0 0 6px rgba(239,68,68,.12)}.api-grid-main{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:18px}.api-panel{padding:18px;margin-bottom:18px}.api-panel-head{display:flex;align-items:flex-start;gap:12px;margin-bottom:16px}.api-panel-head>span{width:42px;height:42px;display:grid;place-items:center;color:#0284c7;font-size:19px}.api-panel h2{margin:0 0 3px;font-size:18px;color:#0f172a}.api-panel p{margin:0;color:#64748b;line-height:1.5}.api-key-box{display:flex;gap:8px;align-items:center;background:#f8fafc;border:1px solid #dbeafe;border-radius:15px;padding:10px;margin-bottom:12px}.api-key-box code{flex:1;word-break:break-all;color:#075985;font-weight:800}.api-key-box button,.api-endpoints button,.api-code-wrap button{border:1px solid #bae6fd;background:#fff;color:#075985;border-radius:11px;padding:9px 12px;font-weight:900;cursor:pointer;white-space:nowrap}.api-form-row{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:12px}.api-origin-form{border-top:1px solid #e0f2fe;margin-top:12px;padding-top:12px}.api-origin-form label{font-weight:900;color:#0f172a;display:block;margin-bottom:6px}.api-origin-form div{display:flex;gap:8px}.api-origin-form input{flex:1;border:1px solid #dbeafe;border-radius:12px;padding:10px}.api-origin-form small{display:block;color:#64748b;margin-top:6px}.api-output,.api-code-wrap pre,.api-json-doc pre{background:#0f172a;color:#e0f2fe;border-radius:16px;padding:16px;min-height:130px;overflow:auto;white-space:pre-wrap;word-break:break-word}.api-kpis{display:grid;grid-template-columns:repeat(9,1fr);gap:10px;margin-bottom:18px}.api-kpi{padding:14px;text-align:center}.api-kpi small{display:block;color:#64748b;text-transform:uppercase;font-size:10px;font-weight:900;margin-bottom:4px}.api-kpi b{display:block;color:#0369a1;font-size:24px}.api-doc-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.api-doc-grid article{background:#f8fbff;border:1px solid #e0f2fe;border-radius:16px;padding:14px}.api-doc-grid h3{margin:0 0 6px;font-size:14px;color:#075985}.api-doc-grid p{font-size:13px}.api-endpoints{display:grid;gap:10px}.api-endpoints>div{display:grid;grid-template-columns:180px 1fr auto;align-items:center;gap:10px;background:#f8fafc;border:1px solid #e0f2fe;border-radius:14px;padding:10px}.api-endpoints b{color:#0f172a}.api-endpoints code{color:#075985;word-break:break-all}.api-code-wrap{position:relative}.api-code-wrap button{margin-top:10px}.api-alert{display:flex;align-items:center;gap:10px;padding:12px 14px;margin:8px 0 14px}.api-alert.ok{border-color:#bbf7d0;background:#f0fdf4;color:#166534}.api-alert.err{border-color:#fecaca;background:#fef2f2;color:#991b1b}.api-page .btn{border-radius:12px;padding:11px 14px;border:1px solid transparent;display:inline-flex;align-items:center;gap:8px;text-decoration:none;font-weight:900;cursor:pointer}.api-page .btn.primary{background:#0284c7;color:#fff;border-color:#0284c7}.api-page .btn.secondary{background:#fff;color:#075985;border-color:#bae6fd}.api-page .btn.warning{background:#fff7ed;color:#9a3412;border-color:#fed7aa}.api-page .btn.success{background:#f0fdf4;color:#166534;border-color:#bbf7d0}.api-page .btn.danger{background:#fef2f2;color:#991b1b;border-color:#fecaca}.api-page .btn.ghost{background:#fff}.api-page button:hover,.api-page .btn:hover{transform:translateY(-1px);box-shadow:0 10px 20px rgba(14,116,144,.12)}@media(max-width:1150px){.api-kpis{grid-template-columns:repeat(3,1fr)}.api-doc-grid{grid-template-columns:1fr 1fr}}@media(max-width:850px){.api-hero,.api-grid-main{grid-template-columns:1fr}.api-endpoints>div{grid-template-columns:1fr}.api-origin-form div,.api-key-box{flex-direction:column;align-items:stretch}.api-doc-grid{grid-template-columns:1fr}.api-hero h1{font-size:24px}}@media(max-width:560px){.api-kpis{grid-template-columns:1fr 1fr}.api-hero-copy{padding:18px}.api-actions .btn,.api-form-row .btn,.api-origin-form .btn{width:100%;justify-content:center}.api-panel{padding:14px}}

/* v47 messages/api/reports sidebar + pages */
.ge-simple-section{display:grid;gap:16px}.ge-section-hero{background:linear-gradient(135deg,#f0fbff,#ffffff);border:1px solid #dbeafe;border-radius:18px;padding:22px;display:flex;justify-content:space-between;align-items:center;gap:18px;box-shadow:0 12px 30px rgba(14,116,144,.08)}.ge-section-hero h1{margin:4px 0 8px;font-size:28px;color:#0f172a}.ge-section-hero p{margin:0;color:#64748b;max-width:760px;line-height:1.55}.ge-eyebrow{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#0284c7;font-weight:900}.ge-hero-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.ge-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(160px,1fr));gap:14px}.ge-stat-card{background:#fff;border:1px solid #dbeafe;border-radius:16px;padding:16px;display:grid;gap:8px;color:#0f172a;text-decoration:none;box-shadow:0 10px 24px rgba(14,116,144,.06)}.ge-stat-card:hover{transform:translateY(-1px);box-shadow:0 14px 30px rgba(14,116,144,.10)}.ge-stat-card i{font-size:20px;color:#0284c7}.ge-stat-card span{color:#64748b;font-size:12px;font-weight:800;text-transform:uppercase}.ge-stat-card strong{font-size:24px;color:#0f172a}.ge-panel-clean{border-radius:16px!important;border:1px solid #dbeafe!important;box-shadow:0 10px 26px rgba(14,116,144,.06)!important}.ge-panel-title{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px}.ge-panel-title h2{margin:0 0 4px;color:#0f172a}.ge-panel-title p{margin:0;color:#64748b}.ge-list-table .btn.small{padding:7px 10px!important;border-radius:8px!important}.ge-list-table .btn.primary{background:#0284c7!important;color:#fff!important}.ge-two-cols{display:grid;grid-template-columns:1fr 1fr;gap:16px}.ge-quick-list{display:grid;grid-template-columns:repeat(2,minmax(160px,1fr));gap:10px;margin-top:10px}.ge-quick-list a{display:flex;gap:10px;align-items:center;text-decoration:none;color:#0f172a;background:#f8fcff;border:1px solid #dbeafe;border-radius:12px;padding:12px;font-weight:800}.ge-quick-list a i{color:#0284c7}.ge-status-row{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:9px 0;border-bottom:1px solid #e2e8f0}.ge-status-row:last-child{border-bottom:0}.ge-status-row span{color:#475569}.ge-status-row b{background:#e0f2fe;color:#075985;border-radius:999px;padding:4px 10px}@media(max-width:1050px){.ge-section-hero{flex-direction:column;align-items:flex-start}.ge-hero-actions{justify-content:flex-start}.ge-stat-grid{grid-template-columns:repeat(2,1fr)}.ge-two-cols{grid-template-columns:1fr}}@media(max-width:560px){.ge-stat-grid,.ge-quick-list{grid-template-columns:1fr}.ge-section-hero h1{font-size:22px}}


/* v49 admin icon fixed on the left side of the admin name */
.header-user-btn,
html[dir="rtl"] .header-user-btn{
  direction:ltr!important;
  flex-direction:row!important;
}
.header-avatar{
  order:0!important;
  flex:0 0 38px!important;
}
.header-user-text,
html[dir="rtl"] .header-user-text{
  order:1!important;
  align-items:flex-start!important;
  text-align:left!important;
  direction:ltr!important;
}
.header-user-arrow{
  order:2!important;
}
@media(max-width:560px){
  .header-avatar{display:grid!important;flex-basis:34px!important;}
}

/* v57 header cleanup: user icon right, remove messages, add stock notifications */
.topbar-actions{
  margin-left:auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:12px!important;
  min-width:0!important;
}
html[dir="rtl"] .topbar-actions{
  margin-left:0!important;
  margin-right:auto!important;
}
.header-user-menu,
.header-notif-menu{
  position:relative!important;
  flex:0 0 auto!important;
}
.header-icon-btn,
.header-user-btn{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  background:#fff!important;
  border:1px solid #d7eefb!important;
  border-radius:12px!important;
  min-height:44px!important;
  cursor:pointer!important;
  transition:background .18s ease,border-color .18s ease,box-shadow .18s ease!important;
}
.header-icon-btn:hover,
.header-user-btn:hover,
.header-icon-btn[aria-expanded="true"],
.header-user-btn[aria-expanded="true"]{
  background:#f8fcff!important;
  border-color:#7dd3fc!important;
  box-shadow:0 10px 24px rgba(2,132,199,.10)!important;
}
.header-icon-btn{
  position:relative!important;
  justify-content:center!important;
  width:44px!important;
  padding:0!important;
}
.header-icon-btn>i{
  color:#0284C7!important;
  font-size:18px!important;
}
.notif-badge{
  position:absolute!important;
  top:-6px!important;
  right:-6px!important;
  min-width:20px!important;
  height:20px!important;
  padding:0 5px!important;
  border-radius:999px!important;
  background:#dc2626!important;
  color:#fff!important;
  border:2px solid #fff!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  font-size:11px!important;
  font-weight:800!important;
  line-height:1!important;
}
.header-user-btn,
html[dir="rtl"] .header-user-btn{
  direction:ltr!important;
  flex-direction:row!important;
  padding:7px 12px!important;
  max-width:none!important;
}
.header-user-text,
html[dir="rtl"] .header-user-text{
  order:0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-end!important;
  text-align:right!important;
  min-width:0!important;
  direction:ltr!important;
}
.header-avatar{
  order:1!important;
  width:38px!important;
  height:38px!important;
  flex:0 0 38px!important;
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
}
.header-avatar i{
  font-size:28px!important;
  color:#0284C7!important;
}
.header-user-arrow{
  order:2!important;
  color:#64748b!important;
  font-size:13px!important;
}
.header-user-dropdown,
.header-notif-dropdown{
  position:absolute!important;
  top:calc(100% + 10px)!important;
  right:0!important;
  background:#fff!important;
  border:1px solid #d7eefb!important;
  border-radius:14px!important;
  box-shadow:0 18px 38px rgba(15,23,42,.14)!important;
  display:none!important;
  z-index:90!important;
  overflow:hidden!important;
}
html[dir="rtl"] .header-user-dropdown,
html[dir="rtl"] .header-notif-dropdown{
  right:auto!important;
  left:0!important;
}
.header-user-dropdown.show,
.header-notif-dropdown.show{
  display:block!important;
}
.header-user-dropdown{
  width:240px!important;
}
.header-user-dropdown a{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  padding:11px 14px!important;
  color:#0f172a!important;
  text-decoration:none!important;
  border-bottom:1px solid #edf6fb!important;
}
.header-user-dropdown a:last-child{
  border-bottom:0!important;
}
.header-user-dropdown a:hover{
  background:#f8fcff!important;
  color:#0369a1!important;
}
.header-user-dropdown a i{
  width:18px!important;
  color:#0284C7!important;
}
.header-notif-dropdown{
  width:min(360px,92vw)!important;
}
.header-dropdown-title{
  padding:14px 16px!important;
  border-bottom:1px solid #edf6fb!important;
  background:#fbfeff!important;
}
.header-dropdown-title strong{
  display:block!important;
  color:#0f172a!important;
  font-size:14px!important;
}
.header-dropdown-title small{
  display:block!important;
  margin-top:4px!important;
  color:#64748b!important;
  font-size:12px!important;
}
.notif-empty{
  padding:18px 16px!important;
  color:#64748b!important;
  font-size:13px!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
}
.notif-empty i{
  color:#16a34a!important;
}
.notif-item{
  display:flex!important;
  align-items:flex-start!important;
  gap:12px!important;
  padding:12px 16px!important;
  text-decoration:none!important;
  border-bottom:1px solid #edf6fb!important;
  color:#0f172a!important;
}
.notif-item:hover{
  background:#f8fcff!important;
}
.notif-item:last-of-type{
  border-bottom:0!important;
}
.notif-item-icon{
  width:34px!important;
  height:34px!important;
  border-radius:10px!important;
  background:#fff7ed!important;
  color:#ea580c!important;
  display:grid!important;
  place-items:center!important;
  flex:0 0 34px!important;
  margin-top:1px!important;
}
.notif-item-text{
  min-width:0!important;
}
.notif-item-text strong,
.notif-item-text small{
  display:block!important;
  white-space:normal!important;
}
.notif-item-text strong{
  color:#0f172a!important;
  font-size:13px!important;
  line-height:1.35!important;
}
.notif-item-text small{
  margin-top:4px!important;
  color:#64748b!important;
  font-size:12px!important;
}
.header-dropdown-footer{
  padding:12px 16px!important;
  border-top:1px solid #edf6fb!important;
  background:#fbfeff!important;
}
.header-dropdown-footer a{
  color:#0284C7!important;
  text-decoration:none!important;
  font-weight:700!important;
}
.header-dropdown-footer a:hover{
  text-decoration:underline!important;
}
@media(max-width:900px){
  .topbar-actions{gap:8px!important;}
  .header-user-btn{padding:7px 10px!important;}
  .header-user-dropdown{right:0!important;left:auto!important;}
}
@media(max-width:560px){
  .topbar-actions{margin-left:auto!important;}
  .header-user-text strong{font-size:13px!important;}
  .header-icon-btn{width:40px!important;min-height:40px!important;}
  .header-avatar{display:grid!important;width:34px!important;height:34px!important;flex-basis:34px!important;}
  .header-notif-dropdown,.header-user-dropdown{width:min(92vw,320px)!important;right:0!important;left:auto!important;}
}

.clean-input{min-height:38px;border:1px solid #c9dcec;border-radius:10px;padding:8px 10px;background:#fff}
.email-status{border-radius:12px;padding:10px 14px;margin:10px 0}.email-status.ok{background:#ecfdf5;border:1px solid #bbf7d0;color:#166534}.email-status.err{background:#fef2f2;border:1px solid #fecaca;color:#991b1b}

/* Enterprise simple unified style */
.erp-page{max-width:1480px;margin:0 auto;color:#172033}.erp-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.erp-head h2{margin:0;font-size:20px;font-weight:800;color:#111827;display:flex;align-items:center;gap:8px}.erp-head p{margin:4px 0 0;color:#667085;font-size:13px}.erp-card{border:1px solid var(--xl-grid,#d7dde5)!important;border-radius:6px!important;background:#fff!important;box-shadow:none!important;margin-bottom:12px!important;padding:12px!important}.erp-card h3{margin:0 0 10px;font-size:15px;color:#111827}.erp-form{display:grid;grid-template-columns:170px minmax(180px,1fr) 170px minmax(180px,1fr);gap:10px 12px;align-items:center}.erp-form.small{grid-template-columns:150px 1fr}.erp-form label{font-weight:700;font-size:12px;color:#344054}.erp-form input,.erp-form select,.erp-form textarea{width:100%;border:1px solid #cfd6df;border-radius:4px;padding:8px 9px;background:#fff;color:#111827;font-size:13px}.erp-form textarea{min-height:70px}.erp-actions{grid-column:1/-1;display:flex;gap:8px;justify-content:flex-end;align-items:center;margin-top:4px}.erp-table{width:100%;font-size:13px}.erp-table th{background:#f3f6f9!important;color:#111827!important;font-weight:800}.erp-table td,.erp-table th{padding:8px 10px!important;border:1px solid #d7dde5!important}.erp-two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.erp-three{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.nowrap{white-space:nowrap}.module-grid{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:10px}.module-tile{display:flex;gap:10px;align-items:center;border:1px solid #d7dde5;background:#fff;border-radius:6px;padding:12px;cursor:pointer}.module-tile:hover{background:#f8fafc}.module-tile input{width:18px;height:18px}.module-tile b{display:block;color:#111827}.module-tile small{display:block;color:#667085;margin-top:2px}.workflow-grid{display:grid;grid-template-columns:repeat(2,minmax(260px,1fr));gap:12px}.workflow-card{border:1px solid #d7dde5;border-radius:6px;padding:12px;background:#fff}.workflow-card h3{margin:0 0 8px;text-transform:uppercase;font-size:12px;color:#475467}.workflow-steps{display:flex;flex-wrap:wrap;gap:6px}.workflow-steps span{display:inline-flex;align-items:center;border:1px solid #bae6fd;background:#f0f9ff;color:#0369a1;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:700}.btn.primary{background:#38BDF8!important;border:1px solid #0284C7!important;color:#fff!important}.btn.light{background:#fff!important;border:1px solid #cfd6df!important;color:#111827!important}.mini-action{border:1px solid #cfd6df;background:#fff;border-radius:4px;padding:5px 8px;text-decoration:none;color:#111827;font-size:12px;font-weight:700}.mini-action.danger{color:#b42318;border-color:#fda29b;background:#fff5f5}.email-status.ok{border:1px solid #bbf7d0;background:#f0fdf4;color:#166534;padding:10px;border-radius:5px;margin-bottom:12px}.email-status.err{border:1px solid #fecaca;background:#fef2f2;color:#991b1b;padding:10px;border-radius:5px;margin-bottom:12px}@media(max-width:1100px){.erp-form{grid-template-columns:150px 1fr}.module-grid{grid-template-columns:repeat(2,1fr)}.erp-three{grid-template-columns:1fr}.workflow-grid{grid-template-columns:1fr}}@media(max-width:720px){.erp-form,.erp-form.small{grid-template-columns:1fr}.erp-actions{justify-content:flex-start}.erp-two{grid-template-columns:1fr}.module-grid{grid-template-columns:1fr}.erp-head{display:block}}



/* v60 clean polish: better fonts, lighter layout, responsive ERP tables */
:root{--ge-primary:#0284c7;--ge-primary-dark:#0369a1;--ge-soft:#f8fafc;--ge-line:#e5e7eb;--ge-text:#111827;--ge-muted:#64748b;--ge-danger:#dc2626;--ge-ok:#16a34a;}
html,body{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,"Noto Sans",sans-serif!important;color:var(--ge-text)!important;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;}
body{font-size:14px;line-height:1.45;background:#f7f9fc!important;}
.sidebar{box-shadow:0 0 0 1px rgba(15,23,42,.06);}
.sidebar a{font-size:13px!important;letter-spacing:.01em;}
.submenu a{font-size:12.5px!important;}
.topbar{backdrop-filter:saturate(140%) blur(8px);}
.card,.panel,.clean-table-box,.hp-chart-card,.ge-panel-clean,.erp-card{border-color:var(--ge-line)!important;box-shadow:0 8px 22px rgba(15,23,42,.045)!important;border-radius:8px!important;}
.btn{border-radius:5px!important;box-shadow:none!important;line-height:1.15;}
.btn.primary{background:var(--ge-primary)!important;border-color:var(--ge-primary)!important;color:#fff!important;}
.btn.primary:hover{background:var(--ge-primary-dark)!important;}
.btn.danger,.btn.red{background:var(--ge-danger)!important;border-color:var(--ge-danger)!important;color:#fff!important;}
.btn.secondary,.btn.light{background:#fff!important;border:1px solid #d1d5db!important;color:#374151!important;}
.clean-table,.dol-table,.excel-report-table{font-size:12.5px!important;background:#fff;}
.clean-table th,.dol-table th,.excel-report-table th{background:#f1f5f9!important;color:#0f172a!important;font-weight:700!important;border:1px solid #d9e2ec!important;}
.clean-table td,.dol-table td,.excel-report-table td{border:1px solid #e5e7eb!important;vertical-align:top;}
.excel-report-table tbody tr:nth-child(even) td{background:#fbfdff!important;}
.excel-report-table tbody tr:hover td{background:#eff6ff!important;}
.reports-page .ge-stat-grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))!important;gap:10px!important;}
.reports-page .ge-stat-card{min-height:82px!important;border-radius:7px!important;}
.report-excel-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;flex-wrap:wrap}.report-excel-toolbar input{max-width:280px}.report-excel-note{font-size:12px;color:var(--ge-muted)}
.backup-restore-panel{margin-bottom:14px}.backup-restore-form{display:grid;grid-template-columns:minmax(220px,1fr) 150px auto;gap:10px;align-items:end}.backup-restore-form select,.backup-restore-form input,.inline-restore-form input{height:36px;border:1px solid #d1d5db;border-radius:5px;padding:7px 9px;background:#fff}.inline-restore-form{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.inline-restore-form input{width:92px;height:30px;font-size:12px}.backup-note{margin-top:14px;color:#475569}.analytics-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.analytics-grid .hp-wide{grid-column:auto}.hp-dashboard-pro{gap:12px!important}.hp-chart-card{min-width:0!important}.hp-chart-canvas{height:250px!important}.hp-chart-canvas.hp-tall{height:285px!important}.hp-chart-head b{font-size:13px!important}.hp-chart-head span,.hp-chart-head small{font-size:11.5px!important;color:var(--ge-muted)!important}.dashboard-kpi-strip{grid-template-columns:repeat(auto-fit,minmax(145px,1fr))!important}.mini-kpi-card{min-height:72px!important}.mini-kpi-text strong{font-variant-numeric:tabular-nums;}
select.hp-original-select{position:absolute!important;opacity:0!important;pointer-events:none!important;width:1px!important;height:1px!important;}
.hp-select-combo{width:100%;position:relative}.hp-combo-control{height:38px!important}.hp-combo-input{font-size:13px!important}.hp-combo-list{max-height:260px!important;box-shadow:0 14px 28px rgba(15,23,42,.12)!important;border-color:#dbe3ee!important}.hp-combo-option{font-size:13px!important;min-height:32px;display:flex;align-items:center}.hp-combo-option:hover,.hp-combo-option.is-active{background:#e0f2fe!important;color:#0c4a6e!important}.hp-combo-option.is-selected{background:#eff6ff!important;color:#1d4ed8!important;font-weight:700}
@media(max-width:1100px){.analytics-grid{grid-template-columns:1fr}.backup-restore-form{grid-template-columns:1fr}.hp-chart-canvas,.hp-chart-canvas.hp-tall{height:240px!important}}
@media(max-width:720px){body{font-size:13.5px}.content{padding:10px!important}.clean-list-head,.ge-section-hero{align-items:flex-start!important}.top-search-form{display:none!important}.hp-chart-canvas,.hp-chart-canvas.hp-tall{height:220px!important}.inline-restore-form{min-width:220px}.sidebar a{font-size:13px!important}}


/* v60 purchase lines clearer + better selection dropdowns + stock alert sound toast */
.download-pdf-icon{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:5px;text-decoration:none;margin-left:6px;color:#64748b!important;vertical-align:middle}.download-pdf-icon:hover{background:#e0f2fe;color:#0284c7!important}.download-pdf-icon .text-gray{color:inherit!important}
.purchase-lines-wrap{overflow:visible!important;background:#fff;border:1px solid #d9e2ec;border-radius:8px;padding:8px;position:relative;z-index:5}.purchase-lines-table{min-width:900px!important;border-collapse:separate!important;border-spacing:0 7px!important;background:transparent!important}.purchase-lines-table thead th{background:#eaf3fb!important;border:0!important;color:#0f172a!important;font-size:12px!important;padding:9px 10px!important}.purchase-lines-table tbody tr{background:#fff!important;box-shadow:0 0 0 1px #dbe3ee!important;border-radius:7px!important}.purchase-lines-table tbody tr:hover{box-shadow:0 0 0 2px #38bdf8!important;background:#f8fcff!important}.purchase-lines-table td{border-top:1px solid #e5edf5!important;border-bottom:1px solid #e5edf5!important;padding:8px 8px!important;vertical-align:top!important}.purchase-lines-table td:first-child{border-left:1px solid #e5edf5!important;border-radius:7px 0 0 7px!important;min-width:210px}.purchase-lines-table td:nth-child(2){min-width:230px}.purchase-lines-table td:nth-child(3){min-width:170px}.purchase-lines-table td:nth-child(4),.purchase-lines-table td:nth-child(5),.purchase-lines-table td:nth-child(6){min-width:105px}.purchase-lines-table td:last-child{border-right:1px solid #e5edf5!important;border-radius:0 7px 7px 0!important}.purchase-lines-table input,.purchase-lines-table textarea,.purchase-lines-table .hp-combo-control{height:36px!important;min-height:36px!important;border-radius:6px!important;font-size:13px!important}.purchase-lines-table textarea{min-height:64px!important}.purchase-lines-table .hp-select-combo{z-index:40}.purchase-lines-table .hp-select-combo.is-open{z-index:60000}.purchase-lines-table .hp-combo-list{z-index:60001!important;max-height:320px!important;min-width:260px!important}.purchase-lines-table .hp-combo-option{min-height:34px!important;font-size:13px!important;border-bottom:1px solid #f1f5f9!important}.purchase-lines-table td:first-child .hp-combo-list{min-width:340px!important}
.stock-alert-toast{position:fixed;right:18px;top:78px;z-index:100000;display:flex;align-items:center;gap:12px;max-width:min(360px,calc(100vw - 28px));padding:12px 14px;border:1px solid #fecaca;border-left:5px solid #ef4444;border-radius:10px;background:#fff7f7;color:#7f1d1d;box-shadow:0 18px 40px rgba(15,23,42,.18);transform:translateY(-12px);opacity:0;pointer-events:auto;transition:.2s ease}.stock-alert-toast.show{transform:translateY(0);opacity:1}.stock-alert-toast>i{font-size:20px;color:#dc2626}.stock-alert-toast b{display:block;font-size:13px}.stock-alert-toast span{display:block;font-size:12px;color:#991b1b}.stock-alert-toast button{margin-left:auto;border:0;background:transparent;color:#991b1b;font-size:20px;line-height:1;cursor:pointer;padding:0 4px}
@media(max-width:900px){.purchase-lines-wrap{overflow-x:auto!important;overflow-y:visible!important;padding:6px}.purchase-lines-table{min-width:760px!important}.purchase-lines-table td{padding:7px!important}.stock-alert-toast{left:10px;right:10px;top:62px;max-width:none}.download-pdf-icon{width:30px;height:30px}}
@media(max-width:560px){.purchase-lines-table{min-width:720px!important}.purchase-lines-table .hp-combo-list{position:fixed!important;left:10px!important;right:10px!important;top:auto!important;bottom:12px!important;max-height:50vh!important;min-width:0!important}.purchase-lines-table td:first-child .hp-combo-list{min-width:0!important}}

/* v72 list pagination and separated Achats/Validation sections */
.ge-pager{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin:12px 0;flex-wrap:wrap;font-size:13px;color:#475569}
.ge-pager .btn.disabled,.ge-pager .btn:disabled{opacity:.45;pointer-events:none;cursor:not-allowed}
.clean-title em{font-style:normal;font-size:13px;color:#64748b;margin-left:6px}
.clean-table caption .btn{margin-top:-4px}
@media(max-width:720px){.ge-pager{justify-content:center}.clean-table caption .btn{float:none!important;display:inline-flex;margin:8px 0 0}}

/* v73 rectangular UI + compact professional permissions list */
.card,.panel,.dash-card,.chart-panel,.hp-chart-card,.auth-card,.login-card,
.settings-card,.param-card,.erp-card,.ge-panel-clean,.ge-section-hero,.ge-stat-card,
.api-hero-copy,.api-status-card,.api-panel,.api-kpi,.api-alert,.workflow-card,
.module-tile,.dol-table-wrap,.dol-table-card,.excel-table-shell,.clean-table-box,
.perm-user-card,.perm-summary,.perm-toolbar,.perm-card,.perm-note,.perm-bottom-actions,
.purchase-lines-wrap,.stock-alert-toast,.backup-restore-panel{
  border-radius:2px!important;
}
.card,.panel,.dash-card,.chart-panel,.hp-chart-card,.settings-card,.param-card,.erp-card,
.ge-panel-clean,.ge-section-hero,.ge-stat-card,.api-panel,.workflow-card,.module-tile,
.perm-user-card,.perm-summary,.perm-toolbar,.perm-card,.perm-note,.perm-bottom-actions{
  box-shadow:0 2px 8px rgba(15,23,42,.045)!important;
}
.card:hover,.dash-card:hover,.ge-stat-card:hover,.module-tile:hover,.api-page button:hover,.api-page .btn:hover,
.permissions-modern-page .btn-orange:hover,.permissions-modern-page .btn-secondary:hover{
  transform:none!important;
}
.dashboard-card,.mini-kpi-card,.hp-kpi-card,.report-card,.finance-card,.accounting-card,
.documents-card,.project-card,.pos-card,.manufacturing-card{
  border-radius:2px!important;
}
.card-icon,.stat-icon,.dash-icon,.mini-kpi-icon,.settings-card-title>span,.perm-avatar,
.profile-big-avatar,.settings-avatar-preview,.twofa-qr,.qr-frame{
  border-radius:2px!important;
}

.permissions-modern-page{
  background:#fff!important;
  padding:0 8px 18px!important;
  font-size:12.5px!important;
}
.permissions-modern-page .user-tabs{
  border-radius:2px!important;
  border:1px solid #d8dee8!important;
  margin:0 0 8px!important;
}
.permissions-modern-page .user-tabs a{
  padding:7px 11px!important;
  font-size:12.5px!important;
}
.permissions-modern-page .user-tabs a.active{
  background:#f1f5f9!important;
  color:#0f172a!important;
}
.perm-hero{
  display:grid!important;
  grid-template-columns:minmax(260px,1fr) auto!important;
  gap:8px!important;
  margin:6px 0 8px!important;
}
.perm-user-card{
  padding:10px 12px!important;
  gap:10px!important;
  border-color:#d8dee8!important;
}
.perm-avatar{
  width:36px!important;
  height:36px!important;
  font-size:17px!important;
  background:#f1f5f9!important;
  border:1px solid #d8dee8!important;
  color:#0369a1!important;
}
.perm-eyebrow{
  font-size:9.5px!important;
  letter-spacing:.05em!important;
  color:#64748b!important;
}
.perm-user-card h2{
  font-size:15px!important;
  margin:0 0 2px!important;
}
.perm-user-card p{
  font-size:12px!important;
}
.perm-summary{
  grid-template-columns:repeat(3,72px)!important;
  padding:6px!important;
  border-color:#d8dee8!important;
}
.perm-summary div{
  padding:4px 6px!important;
}
.perm-summary b{
  font-size:16px!important;
}
.perm-summary span{
  font-size:9.5px!important;
}
.perm-note{
  padding:8px 10px!important;
  margin-bottom:8px!important;
  border-color:#d8dee8!important;
  background:#f8fafc!important;
  color:#334155!important;
}
.perm-toolbar{
  position:static!important;
  padding:8px!important;
  margin-bottom:8px!important;
  border-color:#d8dee8!important;
  gap:8px!important;
}
.perm-search-wrap{
  min-width:220px!important;
  border-radius:2px!important;
  padding:0 9px!important;
  border-color:#d1d8e3!important;
  background:#fff!important;
}
.perm-search-wrap input{
  height:32px!important;
  font-size:12.5px!important;
}
.perm-toolbar-actions{
  gap:6px!important;
}
.perm-toolbar-actions .btn-secondary,
.perm-toolbar-actions .btn-orange,
.perm-bottom-actions .btn-secondary,
.perm-bottom-actions .btn-orange{
  border-radius:2px!important;
  padding:7px 10px!important;
  font-size:12px!important;
}
.perm-grid{
  display:block!important;
}
.perm-card{
  border-color:#d8dee8!important;
  margin-bottom:8px!important;
  overflow:hidden!important;
}
.perm-card-head{
  padding:8px 10px!important;
  background:#f8fafc!important;
  border-bottom:1px solid #d8dee8!important;
}
.perm-card-title{
  gap:8px!important;
}
.perm-card-title>span{
  width:24px!important;
  height:24px!important;
  font-size:13px!important;
  border:1px solid #d8dee8!important;
  background:#fff!important;
  color:#0369a1!important;
}
.perm-card h3{
  font-size:13px!important;
  margin:0!important;
}
.perm-card small{
  font-size:11px!important;
}
.perm-card-actions button{
  border-radius:2px!important;
  padding:4px 7px!important;
  font-size:11.5px!important;
  font-weight:700!important;
  border-color:#d1d8e3!important;
  color:#334155!important;
}
.perm-items{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr))!important;
  gap:0!important;
  padding:0!important;
}
.perm-item{
  grid-template-columns:30px minmax(0,1fr)!important;
  gap:8px!important;
  padding:7px 9px!important;
  min-height:42px!important;
  border-right:1px solid #eef2f7!important;
  border-bottom:1px solid #eef2f7!important;
}
.perm-item:hover{
  background:#f8fbff!important;
}
.modern-switch{
  width:26px!important;
  height:15px!important;
  border-radius:2px!important;
  align-self:center!important;
}
.modern-switch:before{
  width:11px!important;
  height:11px!important;
  top:2px!important;
  left:2px!important;
  border-radius:2px!important;
}
.perm-item input:checked+.modern-switch:before{
  transform:translateX(11px)!important;
}
.perm-copy b{
  font-size:11px!important;
  line-height:1.2!important;
  color:#0f172a!important;
}
.perm-copy small{
  font-size:11px!important;
  line-height:1.25!important;
  color:#64748b!important;
}
.perm-bottom-actions{
  padding:8px!important;
  margin-top:8px!important;
  border-color:#d8dee8!important;
}
@media(max-width:1050px){
  .perm-hero{grid-template-columns:1fr!important;}
  .perm-summary{grid-template-columns:repeat(3,1fr)!important;}
  .perm-toolbar{flex-direction:column!important;align-items:stretch!important;}
}
@media(max-width:560px){
  .permissions-modern-page{padding:0 2px 12px!important;}
  .perm-user-card{align-items:flex-start!important;}
  .perm-summary{grid-template-columns:repeat(3,1fr)!important;}
  .perm-summary div{border-bottom:0!important;border-right:1px solid #e0e7ef!important;}
  .perm-summary div:last-child{border-right:0!important;}
  .perm-items{grid-template-columns:1fr!important;}
  .perm-card-head{flex-direction:row!important;align-items:center!important;}
  .perm-card-actions{width:auto!important;}
  .perm-card-actions button{flex:none!important;}
  .perm-toolbar-actions .btn-secondary,.perm-toolbar-actions .btn-orange,
  .perm-bottom-actions .btn-secondary,.perm-bottom-actions .btn-orange{width:auto!important;}
}

/* v30 connected modules polish */
.erp-page .erp-card,.panel,.mini-kpi-card{border-radius:4px!important;box-shadow:none!important;border:1px solid #d7dde5!important;background:#fff!important}
.cards-rect{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin-bottom:12px}.mini-kpi-card{text-decoration:none;color:#172033!important;min-height:74px;display:flex;align-items:center}.mini-kpi-card small{display:block;color:#667085;font-size:11px;margin-top:3px}.compact-grid{display:grid!important;grid-template-columns:repeat(4,minmax(160px,1fr));gap:10px 12px!important;align-items:end}.compact-grid label{font-size:12px;font-weight:700;color:#374151;margin:0}.compact-grid textarea{min-height:68px}.erp-form.compact-grid .erp-actions,.erp-form.compact-grid button[type="submit"],.compact-grid .btn{align-self:end}.smart-select,select.smart-select{min-height:36px!important;border-radius:3px!important;background:#fff!important;border:1px solid #cfd7e3!important;color:#172033!important;font-size:13px!important;padding:7px 30px 7px 9px!important;width:100%!important;max-width:100%!important}.smart-select:focus,select.smart-select:focus,input:focus,textarea:focus{outline:2px solid rgba(56,189,248,.18)!important;border-color:#38BDF8!important}.strong-lines{border-collapse:separate!important;border-spacing:0!important}.strong-lines th{background:#f3f6f9!important;border-bottom:1px solid #c9d3df!important;color:#111827!important;font-size:12px!important;text-transform:uppercase;letter-spacing:.02em}.strong-lines td{border-bottom:1px solid #dbe2ea!important;vertical-align:middle!important;background:#fff!important}.strong-lines tr:nth-child(even) td{background:#fbfdff!important}.strong-lines tr:hover td{background:#f0f9ff!important}.num{text-align:right!important;white-space:nowrap}.badge-ok{display:inline-block;border:1px solid #bbf7d0;background:#f0fdf4;color:#166534;border-radius:3px;padding:3px 7px;font-weight:700;font-size:12px}.mini-action.success{border-color:#bbf7d0!important;background:#f0fdf4!important;color:#166534!important}.inline-filter{display:flex;gap:8px;align-items:center}.inline-filter select{min-width:180px}.inline-form{display:inline}.checkline{display:flex!important;align-items:center;gap:8px;font-weight:700!important;color:#374151}.checkline input{width:auto!important}.small-note{font-size:12px;color:#667085;margin:8px 0 0}.line-chip{display:inline-block;margin:2px;padding:3px 7px;background:#eef6ff;border:1px solid #d7ecff;border-radius:3px;font-size:12px}.inventory-lines select{min-width:240px}.inventory-lines input{min-width:110px}.documents-page td small{display:block;color:#667085;font-size:11px;margin-top:2px}.finance-summary .mini-kpi-card strong{font-size:18px!important}.accounting-page .dashboard-kpi-strip{grid-template-columns:repeat(5,minmax(140px,1fr))!important}
@media(max-width:1100px){.compact-grid{grid-template-columns:repeat(2,minmax(150px,1fr))}.accounting-page .dashboard-kpi-strip{grid-template-columns:repeat(2,minmax(140px,1fr))!important}}
@media(max-width:640px){.compact-grid{grid-template-columns:1fr!important}.erp-page .erp-head{gap:8px}.inline-filter{width:100%}.inline-filter select{width:100%;min-width:0}.inventory-lines{min-width:720px}.strong-lines{font-size:12px}.cards-rect{grid-template-columns:1fr}.accounting-page .dashboard-kpi-strip{grid-template-columns:1fr!important}}

/* v74 universal Excel export buttons */
.ge-export-excel-btn{
  display:inline-flex!important;align-items:center;justify-content:center;gap:7px;
  height:34px!important;padding:0 12px!important;border:1px solid #bbf7d0!important;
  background:#f0fdf4!important;color:#166534!important;border-radius:2px!important;
  font-size:12.5px!important;font-weight:700!important;text-decoration:none!important;white-space:nowrap!important;
}
.ge-export-excel-btn:hover{background:#dcfce7!important;color:#14532d!important;box-shadow:0 2px 8px rgba(22,101,52,.12)!important}
.ge-table-export-mini{display:flex;justify-content:flex-end;gap:8px;margin:0 0 8px 0;position:relative;z-index:2}
.ge-table-export-mini .btn{height:30px!important;font-size:12px!important;padding:0 9px!important;border-color:#d9e2ec!important;background:#fff!important;color:#166534!important}
.clean-tools .ge-export-excel-btn,.soc-list-actions .ge-export-excel-btn{margin-right:6px}
.erp-head .ge-export-excel-btn,.excel-panel-head .ge-export-excel-btn{margin-left:auto}
@media(max-width:760px){
  .ge-export-excel-btn{width:100%;max-width:220px;height:36px!important;margin:6px 0!important}
  .clean-tools .ge-export-excel-btn,.soc-list-actions .ge-export-excel-btn{order:-5;margin-right:0!important}
  .erp-head .ge-export-excel-btn,.excel-panel-head .ge-export-excel-btn{margin-left:0;width:100%}
  .ge-table-export-mini{justify-content:flex-start}.ge-table-export-mini .btn{width:100%}
}

/* Finance professional detail views */
.finance-detail-page .object-head{align-items:flex-start;gap:14px;border:1px solid var(--line,#e5e7eb);background:#fff;border-radius:6px;padding:14px 16px;margin-bottom:14px;box-shadow:0 1px 3px rgba(15,23,42,.06)}
.finance-detail-page .object-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.finance-status-panel .status-action-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.finance-status-panel .status-action-row .btn{padding:7px 10px;border-radius:4px;min-height:32px}
.detail-grid.two-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}
.detail-table{width:100%;border-collapse:collapse;font-size:13px;background:#fff}
.detail-table th,.detail-table td{padding:8px 9px;border-bottom:1px solid #e6eaf0;text-align:left;vertical-align:top}
.detail-table th{width:190px;color:#475467;background:#f8fafc;font-weight:700}
.detail-table td{color:#111827}
.finance-page .actions-cell{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:240px}
.finance-page .inline-form{display:inline-flex;margin:0}
.finance-page .mini-action{border:0;background:transparent;padding:2px 3px;cursor:pointer;font-size:12px;color:#075985;text-decoration:none;font-weight:700}
.finance-page .mini-action.success{color:#047857}
.finance-page .mini-action.danger{color:#b42318}
.badge-red{background:#dc2626;color:#fff;border-radius:4px;padding:4px 8px;font-weight:700;font-size:12px;display:inline-block}
.badge-blue{background:#0ea5e9;color:#fff;border-radius:4px;padding:4px 8px;font-weight:700;font-size:12px;display:inline-block}
.finance-summary.cards-rect{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px;margin:12px 0 14px}
.finance-summary .mini-kpi-card{border-radius:6px;min-height:86px}
@media (max-width: 760px){
  .detail-grid.two-cols{grid-template-columns:1fr}
  .finance-detail-page .object-head{display:block}
  .finance-detail-page .object-actions{justify-content:flex-start;margin-top:10px}
  .detail-table th{width:130px}
  .finance-page .actions-cell{min-width:210px}
}


/* Signature module */
.signatures-page .signature-head{align-items:stretch;gap:16px;}
.signature-kpis{display:flex;gap:12px;flex-wrap:wrap;align-items:stretch;}
.signature-kpis span{min-width:110px;background:linear-gradient(135deg,#f0fbff,#ffffff);border:1px solid rgba(97,199,232,.35);border-radius:18px;padding:14px 18px;text-align:center;box-shadow:0 10px 24px rgba(20,80,110,.08);}
.signature-kpis b{display:block;font-size:24px;color:#0793bd;line-height:1;}
.signature-kpis small{display:block;margin-top:6px;color:#64748b;font-weight:700;}
.signature-tabs{margin:14px 0 18px;display:flex;gap:10px;flex-wrap:wrap;}
.signature-tabs a{border:1px solid rgba(97,199,232,.35);background:#fff;border-radius:999px;padding:10px 14px;text-decoration:none;color:#334155;font-weight:800;box-shadow:0 8px 18px rgba(15,23,42,.05);}
.signature-tabs a.active{background:#e9f9ff;color:#036b8d;border-color:#61c7e8;}
.signature-send-card h3{display:flex;align-items:center;gap:10px;margin-top:0;}
.signature-form-grid{display:grid;grid-template-columns:180px minmax(0,1fr);gap:14px 18px;align-items:start;}
.signature-form-grid label{font-weight:800;color:#334155;padding-top:10px;}
.signature-form-grid input,.signature-form-grid select,.signature-form-grid textarea,.signature-link-input{width:100%;border:1px solid rgba(97,199,232,.35);border-radius:12px;background:#fff;padding:11px 12px;outline:none;}
.signature-form-grid textarea{min-height:160px;resize:vertical;}
.signature-table td small{display:block;color:#64748b;margin-top:4px;max-width:360px;white-space:normal;}
.signature-status{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:6px 10px;font-weight:800;font-size:12px;}
.signature-status.success{background:#dcfce7;color:#166534;}
.signature-status.info{background:#e0f2fe;color:#075985;}
.signature-status.warning{background:#fef3c7;color:#92400e;}
.signature-status.danger{background:#fee2e2;color:#991b1b;}
.signature-preview{display:block;max-width:160px;max-height:64px;background:#fff;border:1px solid rgba(97,199,232,.35);border-radius:10px;padding:4px;}
.signature-link-input{min-width:260px;font-size:12px;color:#0f172a;background:#f8fdff;}
.danger-text{color:#b91c1c!important;}
.empty-state{border:1px dashed rgba(97,199,232,.6);border-radius:18px;background:#f7fcff;padding:24px;text-align:center;color:#475569;}
.empty-state i{font-size:38px;color:#0793bd;margin-bottom:10px;display:block;}
@media(max-width:760px){.signature-form-grid{grid-template-columns:1fr}.signature-form-grid label{padding-top:0}.signature-kpis{width:100%}.signature-kpis span{flex:1}.signature-link-input{min-width:180px}}


/* v65 login default credentials helper + Cloudinary background fallback */
.auth-default-creds{
  margin:12px 0 2px!important;
  padding:10px 12px!important;
  border-radius:10px!important;
  background:#f0f9ff!important;
  border:1px solid #bae6fd!important;
  color:#075985!important;
  font-size:13px!important;
  font-weight:700!important;
}
body.auth-page{
  background-image:linear-gradient(90deg, rgba(246,248,251,.88) 0%, rgba(246,248,251,.70) 38%, rgba(246,248,251,.18) 72%, rgba(246,248,251,.05) 100%), url('https://res.cloudinary.com/dfamlzfp7/image/upload/v1781831671/ChatGPT_Image_Jun_18_2026_06_13_52_PM_glrg91.png')!important;
  background-size:cover!important;
  background-position:center center!important;
  background-repeat:no-repeat!important;
}


/* v78 signatures layout fixed + stock toast login-only */
.signatures-page .signature-send-card{padding:20px!important;overflow:visible!important;}
.signatures-page .signature-send-card h3{margin:0 0 16px!important;color:#0f172a!important;}
.signatures-page .signature-form{display:block!important;width:100%!important;max-width:980px!important;margin:0!important;}
.signatures-page .signature-form-grid{display:grid!important;grid-template-columns:190px minmax(320px,1fr)!important;gap:14px 18px!important;align-items:start!important;width:100%!important;max-width:100%!important;}
.signatures-page .signature-form-grid>*{min-width:0!important;}
.signatures-page .signature-form-grid label{font-weight:800!important;color:#0f172a!important;font-size:13px!important;padding-top:11px!important;margin:0!important;}
.signatures-page .signature-form-grid input,.signatures-page .signature-form-grid select,.signatures-page .signature-form-grid textarea,.signatures-page .signature-form-grid .hp-select-combo{width:100%!important;max-width:none!important;min-width:0!important;}
.signatures-page .signature-form-grid input,.signatures-page .signature-form-grid select,.signatures-page .signature-form-grid textarea{min-height:42px!important;border:1px solid #bae6fd!important;border-radius:10px!important;background:#fff!important;padding:10px 12px!important;font-size:13px!important;color:#0f172a!important;box-shadow:0 1px 0 rgba(15,23,42,.02)!important;}
.signatures-page .signature-form-grid textarea{min-height:150px!important;resize:vertical!important;line-height:1.5!important;}
.signatures-page .signature-form-grid .hp-combo-control{height:42px!important;border:1px solid #bae6fd!important;border-radius:10px!important;background:#fff!important;}
.signatures-page .signature-form-grid .hp-combo-input{height:40px!important;font-size:13px!important;}
.signatures-page .signature-form-grid .hp-combo-list{z-index:90000!important;}
.signatures-page .muted-help{margin:10px 0 0 208px!important;color:#64748b!important;line-height:1.45!important;}
.signatures-page .signature-form .erp-actions{display:flex!important;justify-content:flex-end!important;align-items:center!important;margin-top:14px!important;width:100%!important;}
.signatures-page .signature-form .btn-orange{border-radius:10px!important;background:#0ea5e9!important;color:#fff!important;border:0!important;padding:11px 16px!important;font-weight:900!important;cursor:pointer!important;}
@media(max-width:780px){.signatures-page .signature-form{max-width:none!important}.signatures-page .signature-form-grid{grid-template-columns:1fr!important;gap:7px 0!important}.signatures-page .signature-form-grid label{padding-top:8px!important}.signatures-page .muted-help{margin-left:0!important}.signatures-page .signature-form .erp-actions{justify-content:stretch!important}.signatures-page .signature-form .btn-orange{width:100%!important;justify-content:center!important}}


.signatures-page .signature-pdf-picker{display:flex!important;flex-direction:column!important;gap:9px!important;width:100%!important;min-width:0!important;}
.signatures-page .signature-upload-line{display:flex!important;align-items:center!important;gap:10px!important;flex-wrap:wrap!important;color:#64748b!important;font-size:13px!important;}
.signatures-page .signature-upload-btn{display:inline-flex!important;align-items:center!important;gap:8px!important;padding:9px 12px!important;border:1px dashed #38bdf8!important;border-radius:10px!important;background:#f0f9ff!important;color:#0369a1!important;font-weight:900!important;cursor:pointer!important;margin:0!important;}
.signatures-page .signature-upload-btn input{display:none!important;}
.signatures-page .signature-upload-name{color:#475569!important;font-weight:700!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
.signatures-page .empty-state.compact{margin-bottom:14px!important;padding:12px 14px!important;}

/* Reusable signature profiles + PDF placement editor */
.signatures-page [hidden]{display:none!important}
.signatures-page .signature-profile-manager,.signatures-page .signature-pdf-editor-card{padding:0!important;overflow:hidden!important;border:1px solid #d9eef8!important;border-radius:16px!important;background:#fff!important;box-shadow:0 12px 30px rgba(15,23,42,.06)!important}
.signatures-page .signature-pdf-editor-card{margin-top:18px!important}
.signature-section-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 22px;border-bottom:1px solid #e2edf3;background:linear-gradient(135deg,#f7fcff 0%,#fff 64%)}
.signature-section-heading>div:first-child{display:flex;align-items:center;gap:14px;min-width:0}
.signature-section-heading h2{font-size:18px;line-height:1.2;color:#0f172a;margin:0 0 5px}
.signature-section-heading p{font-size:13px;line-height:1.45;color:#64748b;margin:0}
.signature-step{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:12px;background:#0ea5e9;color:#fff;font-size:17px;font-weight:900;box-shadow:0 7px 16px rgba(14,165,233,.22)}
.signature-profile-count,.signature-editor-badge{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;padding:8px 11px;border-radius:999px;background:#eaf9ff;border:1px solid #b6e8f8;color:#036b8d;font-size:12px;font-weight:800}
.signature-profile-grid{display:grid;grid-template-columns:minmax(300px,390px) minmax(420px,1fr);gap:18px;padding:20px 22px;background:#f8fbfd}
.signature-profile-create,.signature-profile-library{min-width:0;padding:18px;border:1px solid #dcecf4;border-radius:14px;background:#fff;box-shadow:0 5px 18px rgba(15,23,42,.04)}
.signature-card-title{display:flex;align-items:center;gap:11px;margin-bottom:16px;color:#0f172a}
.signature-card-title>i{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#e7f8ff;color:#0284c7}
.signature-card-title b,.signature-card-title small{display:block}.signature-card-title b{font-size:14px}.signature-card-title small{margin-top:2px;color:#64748b;font-size:11px;font-weight:500}
.signature-field-label{display:block;margin-bottom:6px;color:#334155;font-size:12px;font-weight:800}
.signature-profile-create>input[type=text],.signature-profile-create>input:not([type]){width:100%;height:42px;border:1px solid #c8e5f2;border-radius:10px;padding:0 12px;color:#0f172a;background:#fff;outline:none}
.signature-profile-create>input:focus{border-color:#38bdf8;box-shadow:0 0 0 3px rgba(56,189,248,.13)}
.signature-image-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:154px;margin-top:14px;padding:18px;border:1.5px dashed #7dd3fc;border-radius:13px;background:#f4fbff;color:#334155;text-align:center;cursor:pointer;transition:border-color .2s,background .2s,transform .2s}
.signature-image-drop:hover,.signature-image-drop.is-dragover{border-color:#0284c7;background:#eaf8ff;transform:translateY(-1px)}
.signature-image-drop>i{font-size:28px;color:#0ea5e9;margin-bottom:8px}.signature-image-drop b{font-size:13px}.signature-image-drop span{font-size:12px;color:#64748b;margin-top:4px}.signature-image-drop small{font-size:10px;color:#94a3b8;margin-top:5px}
.signature-cleanup-panel{display:grid;grid-template-columns:minmax(130px,1fr) 155px;gap:13px;align-items:center;margin-top:14px;padding:12px;border:1px solid #cdebf7;border-radius:12px;background:#f8fcff}
.signature-cleanup-preview{display:flex;align-items:center;justify-content:center;min-height:102px;border:1px solid #d6e7ee;border-radius:9px;overflow:hidden;background-color:#fff;background-image:linear-gradient(45deg,#edf2f5 25%,transparent 25%),linear-gradient(-45deg,#edf2f5 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#edf2f5 75%),linear-gradient(-45deg,transparent 75%,#edf2f5 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0}
.signature-cleanup-preview canvas{display:block;max-width:100%;max-height:112px;width:auto;height:auto}
.signature-cleanup-controls b,.signature-cleanup-controls small{display:block}.signature-cleanup-controls b{font-size:11px;color:#047857}.signature-cleanup-controls small{font-size:10px;color:#64748b;margin:3px 0 10px}.signature-cleanup-controls label{display:flex;justify-content:space-between;font-size:10px;font-weight:800;color:#475569}.signature-cleanup-controls input{width:100%;accent-color:#0ea5e9}
.signature-inline-error{margin:10px 0 0;padding:9px 10px;border-radius:8px;background:#fef2f2;color:#b91c1c;font-size:11px;font-weight:700}
.signature-save-profile{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;width:100%!important;margin-top:14px!important;border-radius:10px!important}.signature-save-profile:disabled{opacity:.5;cursor:not-allowed}
.signature-profile-list{display:flex;flex-direction:column;gap:10px;max-height:420px;overflow:auto;padding-right:3px}
.signature-profile-item{display:grid;grid-template-columns:145px minmax(180px,1fr) 34px;gap:12px;align-items:center;padding:11px;border:1px solid #dcecf4;border-radius:12px;background:#fbfdff}
.signature-profile-image{display:flex;align-items:center;justify-content:center;height:70px;padding:8px;border:1px solid #e2e8f0;border-radius:9px;background-color:#fff;background-image:linear-gradient(45deg,#f1f5f9 25%,transparent 25%),linear-gradient(-45deg,#f1f5f9 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#f1f5f9 75%),linear-gradient(-45deg,transparent 75%,#f1f5f9 75%);background-size:12px 12px;background-position:0 0,0 6px,6px -6px,-6px 0}
.signature-profile-image img{display:block;max-width:100%;max-height:52px;object-fit:contain}
.signature-profile-details{min-width:0}.signature-profile-details label{display:block;margin-bottom:4px;color:#64748b;font-size:10px;font-weight:800}.signature-profile-details>small{display:block;margin-top:5px;color:#94a3b8;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.signature-profile-rename>div{display:flex}.signature-profile-rename input{min-width:0;width:100%;height:36px;border:1px solid #cbdfe9;border-right:0;border-radius:8px 0 0 8px;padding:0 9px;font-size:12px;color:#0f172a;outline:none}.signature-profile-rename button{display:inline-flex;align-items:center;justify-content:center;gap:5px;width:36px;border:0;border-radius:0 8px 8px 0;background:#e0f2fe;color:#0369a1;cursor:pointer}.signature-profile-rename button span{display:none}.signature-profile-delete button{display:grid;place-items:center;width:32px;height:32px;border:0;border-radius:8px;background:#fff1f2;color:#be123c;cursor:pointer}.signature-profile-delete button:hover{background:#ffe4e6}
.signature-empty-profiles{display:flex;min-height:236px;flex-direction:column;align-items:center;justify-content:center;border:1px dashed #b9ddec;border-radius:12px;color:#64748b;text-align:center;background:#f8fcff}.signature-empty-profiles i{font-size:30px;color:#38bdf8;margin-bottom:10px}.signature-empty-profiles b{font-size:13px;color:#334155}.signature-empty-profiles span{font-size:11px;margin-top:5px}
.signature-pdf-import{padding:22px;background:#f8fbfd}.signature-pdf-import>label{display:flex;align-items:center;gap:14px;min-height:102px;padding:18px 20px;border:1.5px dashed #7dd3fc;border-radius:14px;background:#fff;cursor:pointer;transition:border-color .2s,box-shadow .2s}.signature-pdf-import>label:hover,.signature-pdf-import.is-dragover>label{border-color:#0284c7;box-shadow:0 8px 20px rgba(14,165,233,.09)}.signature-pdf-import label>i{display:grid;place-items:center;width:48px;height:48px;border-radius:12px;background:#fee2e2;color:#dc2626;font-size:24px}.signature-pdf-import label>div{min-width:0;flex:1}.signature-pdf-import label b,.signature-pdf-import label span{display:block}.signature-pdf-import label b{font-size:14px;color:#0f172a}.signature-pdf-import label span{font-size:12px;color:#64748b;margin-top:4px}.signature-pdf-import label em{padding:9px 13px;border-radius:9px;background:#e7f8ff;color:#036b8d;font-size:11px;font-style:normal;font-weight:900}
.signature-editor-workspace{background:#eef3f6}.signature-editor-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-top:1px solid #dbe8ee;border-bottom:1px solid #dbe8ee;background:#fff}.signature-document-info{display:flex;align-items:center;gap:10px;min-width:0}.signature-document-info>i{color:#dc2626;font-size:23px}.signature-document-info>div{min-width:0}.signature-document-info b,.signature-document-info span{display:block;max-width:380px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.signature-document-info b{font-size:12px;color:#0f172a}.signature-document-info span{font-size:10px;color:#64748b;margin-top:2px}.signature-editor-tools{display:flex;gap:7px}.signature-editor-tools button,.signature-secondary-action{display:inline-flex;align-items:center;gap:6px;border:1px solid #cfe3ed;border-radius:8px;background:#fff;padding:8px 10px;color:#475569;font-size:11px;font-weight:800;cursor:pointer}.signature-editor-tools button:hover,.signature-secondary-action:hover{background:#f0f9ff;color:#0369a1}.signature-editor-tools button:disabled,.signature-secondary-action:disabled{opacity:.45;cursor:not-allowed}
.signature-editor-notice{display:flex;align-items:center;gap:9px;padding:10px 16px;border-bottom:1px solid #cfe4ed;background:#eaf8ff;color:#075985;font-size:11px}.signature-editor-notice>span{flex:1}.signature-editor-notice>b{white-space:nowrap;padding:5px 8px;border-radius:999px;background:#fff;border:1px solid #b9e3f3;font-size:10px}.signature-editor-status{padding:40px 20px;color:#475569;text-align:center;font-size:12px;font-weight:700}.signature-editor-status.is-error{color:#b91c1c;background:#fff1f2}.signature-pages{display:flex;flex-direction:column;align-items:center;gap:22px;max-height:72vh;min-height:300px;overflow:auto;padding:24px;background:#dfe7eb}.signature-pdf-page{position:relative;flex:0 0 auto;background:#fff;box-shadow:0 7px 26px rgba(15,23,42,.18);user-select:none}.signature-pdf-page canvas{display:block;width:100%;height:100%;pointer-events:none}.signature-page-overlay{position:absolute;inset:0;z-index:2;cursor:crosshair;touch-action:none}.signature-page-number{position:absolute;z-index:5;right:8px;bottom:7px;padding:4px 7px;border-radius:999px;background:rgba(15,23,42,.72);color:#fff;font-size:9px;pointer-events:none}
.signature-field-placeholder{position:absolute;z-index:1;display:flex;align-items:center;justify-content:center;min-width:70px;min-height:28px;border:1.5px dashed #0ea5e9;background:rgba(224,242,254,.38);color:#0369a1;font-size:9px;font-weight:900;cursor:pointer;overflow:hidden}.signature-field-placeholder:hover{background:rgba(186,230,253,.58)}
.signature-placement{position:absolute;z-index:4;display:flex;align-items:center;justify-content:center;min-width:52px;min-height:28px;border:1.5px dashed transparent;border-radius:4px;cursor:move;touch-action:none;outline:none}.signature-placement:hover,.signature-placement.is-selected{border-color:#0284c7;background:rgba(240,249,255,.28)}.signature-placement img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}.signature-placement-remove{position:absolute;top:-10px;right:-10px;display:none!important;place-items:center;width:20px;height:20px;border:0;border-radius:50%;background:#e11d48;color:#fff;font-size:9px;cursor:pointer;box-shadow:0 2px 6px rgba(15,23,42,.25)}.signature-placement-resize{position:absolute;right:-5px;bottom:-5px;display:none;width:12px;height:12px;border:2px solid #fff;border-radius:3px;background:#0284c7;cursor:nwse-resize;box-shadow:0 1px 4px rgba(15,23,42,.25)}.signature-placement:hover .signature-placement-remove,.signature-placement.is-selected .signature-placement-remove{display:grid!important}.signature-placement:hover .signature-placement-resize,.signature-placement.is-selected .signature-placement-resize{display:block}
.signature-editor-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;border-top:1px solid #dbe8ee;background:#fff}.signature-editor-footer>div:last-child{display:flex;gap:8px;margin-left:auto}.signature-editor-footer .btn-orange{display:inline-flex!important;align-items:center!important;gap:7px!important;border-radius:9px!important;padding:9px 13px!important}.signature-editor-footer .btn-orange:disabled{opacity:.45;cursor:not-allowed}.signature-saved-result{font-size:11px;color:#047857}.signature-saved-result a{color:#0369a1;font-weight:900;text-decoration:none}.signature-saved-result.is-error{color:#b91c1c}
.signature-picker-modal{position:fixed;inset:0;z-index:100000;display:grid;place-items:center;padding:18px}.signature-modal-backdrop{position:absolute;inset:0;width:100%;height:100%;border:0;background:rgba(15,23,42,.48);backdrop-filter:blur(2px);cursor:default}.signature-picker-dialog{position:relative;z-index:1;width:min(520px,100%);max-height:min(650px,88vh);overflow:hidden;border-radius:16px;background:#fff;box-shadow:0 24px 70px rgba(15,23,42,.28)}.signature-picker-head{display:flex;align-items:center;justify-content:space-between;padding:17px 18px;border-bottom:1px solid #e2e8f0}.signature-picker-head small{display:block;margin-bottom:3px;color:#0284c7;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.07em}.signature-picker-head h3{margin:0;color:#0f172a;font-size:17px}.signature-picker-head>button{display:grid;place-items:center;width:32px;height:32px;border:0;border-radius:9px;background:#f1f5f9;color:#475569;cursor:pointer}.signature-picker-list{display:grid;grid-template-columns:1fr 1fr;gap:10px;max-height:500px;overflow:auto;padding:15px}.signature-picker-option{display:grid;grid-template-columns:110px minmax(0,1fr) 24px;align-items:center;gap:10px;min-height:82px;padding:9px;border:1px solid #dbe9f0;border-radius:12px;background:#fff;text-align:left;cursor:pointer}.signature-picker-option:hover{border-color:#38bdf8;background:#f4fbff}.signature-picker-option>span{display:flex;align-items:center;justify-content:center;height:60px;padding:6px;border-radius:8px;background:#f8fafc}.signature-picker-option img{display:block;max-width:100%;max-height:48px}.signature-picker-option b{min-width:0;overflow:hidden;text-overflow:ellipsis;color:#0f172a;font-size:12px}.signature-picker-option>i{color:#0284c7}.signature-picker-empty{display:flex;flex-direction:column;align-items:center;padding:34px 24px;text-align:center;color:#64748b}.signature-picker-empty>i{font-size:36px;color:#38bdf8}.signature-picker-empty b{margin-top:11px;color:#0f172a}.signature-picker-empty p{font-size:12px;line-height:1.5}.signature-picker-empty button{border:0;border-radius:9px;background:#0ea5e9;color:#fff;padding:9px 12px;font-weight:900;cursor:pointer}
body.signature-modal-open{overflow:hidden}
@media(max-width:1050px){.signature-profile-grid{grid-template-columns:1fr}.signature-profile-list{max-height:none}.signature-profile-item{grid-template-columns:160px minmax(180px,1fr) 34px}}
@media(max-width:720px){.signature-section-heading{align-items:flex-start;padding:16px}.signature-profile-count,.signature-editor-badge{display:none}.signature-profile-grid{padding:14px;grid-template-columns:minmax(0,1fr)}.signature-profile-create,.signature-profile-library{padding:14px}.signature-cleanup-panel{grid-template-columns:1fr}.signature-profile-item{grid-template-columns:100px minmax(0,1fr) 30px;gap:8px}.signature-profile-image{height:62px}.signature-pdf-import{padding:14px}.signature-pdf-import>label{align-items:flex-start;padding:14px}.signature-pdf-import label em{display:none}.signature-editor-toolbar,.signature-editor-footer{align-items:flex-start;flex-direction:column}.signature-editor-tools{width:100%;flex-wrap:wrap}.signature-editor-footer>div:last-child{width:100%;margin:0}.signature-editor-footer>div:last-child button{flex:1;justify-content:center}.signature-pages{padding:14px 8px}.signature-editor-notice{align-items:flex-start}.signature-editor-notice>b{display:none}.signature-picker-list{grid-template-columns:1fr}.signature-picker-option{grid-template-columns:100px minmax(0,1fr) 22px}}

/* v90 dashboard polish: clean stock/doc cards + balanced stylish charts */
.views-dashboard .hp-dashboard-pro,
.hp-dashboard-pro{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(260px,1fr))!important;
  gap:14px!important;
  align-items:stretch!important;
}
.hp-dashboard-pro .hp-chart-card,
.hp-dashboard-pro .hp-chart-card.hp-wide,
.hp-dashboard-pro .hp-chart-card.hp-table-card{
  min-height:300px!important;
  height:auto!important;
  max-height:none!important;
  overflow:hidden!important;
  border:1px solid #d7eefb!important;
  border-radius:14px!important;
  background:linear-gradient(180deg,#ffffff 0%,#f8fcff 100%)!important;
  box-shadow:0 10px 28px rgba(14,165,233,.08)!important;
  padding:14px!important;
}
.hp-dashboard-pro .hp-chart-card.hp-wide{grid-column:span 2!important;}
.hp-dashboard-pro .hp-chart-head{
  min-height:42px!important;
  padding-bottom:10px!important;
  margin-bottom:12px!important;
  border-bottom:1px solid #e6f4fb!important;
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:10px!important;
}
.hp-dashboard-pro .hp-chart-head b{
  font-size:14px!important;
  line-height:1.25!important;
  color:#0f172a!important;
  font-weight:900!important;
}
.hp-dashboard-pro .hp-chart-head span,
.hp-dashboard-pro .hp-chart-head small{
  font-size:11.5px!important;
  line-height:1.35!important;
  color:#64748b!important;
  font-weight:600!important;
}
.hp-dashboard-pro .hp-chart-canvas,
.hp-dashboard-pro .hp-chart-canvas.hp-tall{
  height:230px!important;
  min-height:230px!important;
  max-height:230px!important;
  flex:0 0 230px!important;
  position:relative!important;
}
.hp-dashboard-pro .hp-chart-canvas canvas{
  width:100%!important;
  height:100%!important;
  max-height:none!important;
  display:block!important;
}
.hp-dashboard-list-card{
  display:flex!important;
  flex-direction:column!important;
  gap:0!important;
}
.hp-clean-list{
  display:flex!important;
  flex-direction:column!important;
  gap:8px!important;
  overflow:auto!important;
  padding-right:3px!important;
  max-height:230px!important;
}
.hp-clean-list::-webkit-scrollbar{width:6px!important;height:6px!important;}
.hp-clean-list::-webkit-scrollbar-thumb{background:#bae6fd!important;border-radius:999px!important;}
.hp-clean-list::-webkit-scrollbar-track{background:#f8fafc!important;}
.hp-clean-row,
.hp-clean-empty{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:10px!important;
  min-height:48px!important;
  padding:10px 11px!important;
  border:1px solid #e6f4fb!important;
  border-radius:12px!important;
  background:#fff!important;
  text-decoration:none!important;
  color:#0f172a!important;
  box-shadow:0 2px 8px rgba(15,23,42,.035)!important;
}
.hp-clean-row:hover{border-color:#7dd3fc!important;box-shadow:0 5px 14px rgba(14,165,233,.12)!important;}
.hp-row-main{display:block!important;min-width:0!important;}
.hp-row-main b{
  display:block!important;
  font-size:12.5px!important;
  line-height:1.3!important;
  font-weight:900!important;
  color:#0f172a!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  max-width:100%!important;
}
.hp-row-main small{
  display:block!important;
  margin-top:3px!important;
  font-size:11px!important;
  line-height:1.25!important;
  color:#64748b!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.hp-row-badge{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:72px!important;
  height:28px!important;
  padding:0 8px!important;
  border-radius:999px!important;
  background:#eff6ff!important;
  color:#0369a1!important;
  border:1px solid #bfdbfe!important;
  font-size:11.5px!important;
  font-weight:900!important;
  white-space:nowrap!important;
  font-variant-numeric:tabular-nums!important;
}
.hp-row-badge.danger{background:#fff1f2!important;color:#be123c!important;border-color:#fecdd3!important;}
.hp-clean-empty{
  grid-template-columns:auto 1fr auto!important;
  color:#475569!important;
}
.hp-clean-empty i{color:#0ea5e9!important;font-size:16px!important;}
.hp-clean-empty span{font-size:12.5px!important;font-weight:800!important;}
.hp-clean-empty b{font-size:12px!important;color:#0369a1!important;}
footer{
  color:#64748b!important;
  font-weight:800!important;
  letter-spacing:.02em!important;
  text-transform:none!important;
}
@media(max-width:1180px){
  .hp-dashboard-pro{grid-template-columns:repeat(2,minmax(240px,1fr))!important;}
  .hp-dashboard-pro .hp-chart-card.hp-wide{grid-column:span 2!important;}
}
@media(max-width:720px){
  .hp-dashboard-pro{grid-template-columns:1fr!important;gap:12px!important;}
  .hp-dashboard-pro .hp-chart-card.hp-wide{grid-column:auto!important;}
  .hp-dashboard-pro .hp-chart-card,
  .hp-dashboard-pro .hp-chart-card.hp-wide,
  .hp-dashboard-pro .hp-chart-card.hp-table-card{min-height:280px!important;padding:12px!important;}
  .hp-dashboard-pro .hp-chart-canvas,
  .hp-dashboard-pro .hp-chart-canvas.hp-tall{height:210px!important;min-height:210px!important;max-height:210px!important;flex-basis:210px!important;}
  .hp-clean-list{max-height:215px!important;}
}


/* v73 header clean + scrollable notifications + stronger select dropdowns */
.header-icon-btn,
.header-user-btn{
  background:transparent!important;
  border-color:transparent!important;
  box-shadow:none!important;
  border-radius:999px!important;
}
.header-icon-btn:hover,
.header-user-btn:hover,
.header-icon-btn[aria-expanded="true"],
.header-user-btn[aria-expanded="true"]{
  background:transparent!important;
  border-color:transparent!important;
  box-shadow:none!important;
}
.header-user-btn{
  padding:4px 6px!important;
  min-height:44px!important;
}
.header-user-text,
html[dir="rtl"] .header-user-text{
  align-items:flex-start!important;
  text-align:left!important;
}
.header-notif-dropdown{
  max-height:min(520px,78vh)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain!important;
  scrollbar-width:thin!important;
}
.header-notif-dropdown::-webkit-scrollbar{width:8px!important;}
.header-notif-dropdown::-webkit-scrollbar-thumb{background:#bae6fd!important;border-radius:999px!important;}
.header-dropdown-title{
  position:sticky!important;
  top:0!important;
  z-index:2!important;
}
.header-dropdown-footer{
  position:sticky!important;
  bottom:0!important;
  z-index:2!important;
}
.notif-item{
  min-height:58px!important;
}
.hp-select-combo{
  width:100%!important;
  min-width:0!important;
  overflow:visible!important;
}
.hp-select-combo.is-open{
  z-index:100000!important;
}
.hp-combo-control{
  width:100%!important;
  min-width:0!important;
  border-radius:10px!important;
  border:1px solid #cfe3ef!important;
  background:#fff!important;
}
.hp-combo-list{
  overflow-y:auto!important;
  overflow-x:hidden!important;
  max-height:420px!important;
  min-width:min(280px, calc(100vw - 20px))!important;
  border-radius:12px!important;
  border:1px solid #bae6fd!important;
  box-shadow:0 18px 42px rgba(15,23,42,.18)!important;
  padding:6px!important;
  background:#fff!important;
  z-index:100000!important;
  overscroll-behavior:contain!important;
  scrollbar-width:thin!important;
}
.hp-combo-list::-webkit-scrollbar{width:8px!important;}
.hp-combo-list::-webkit-scrollbar-thumb{background:#bae6fd!important;border-radius:999px!important;}
.hp-combo-option{
  min-height:36px!important;
  padding:8px 10px!important;
  border-radius:8px!important;
  line-height:1.35!important;
  white-space:normal!important;
  word-break:break-word!important;
}
.hp-combo-empty{
  min-height:36px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.clean-table-box,
.table-wrap,
.dol-table-wrap,
.panel,
.erp-card{
  overflow-x:auto!important;
}
.clean-table-box .hp-combo-list,
.table-wrap .hp-combo-list,
.dol-table-wrap .hp-combo-list,
.panel .hp-combo-list,
.erp-card .hp-combo-list{
  z-index:100000!important;
}
@media(max-width:560px){
  .header-user-btn{padding:4px!important;}
  .header-notif-dropdown,.header-user-dropdown{width:min(94vw,340px)!important;}
  .hp-combo-list{left:10px!important;right:10px!important;width:auto!important;max-height:55vh!important;}
}


/* v58 header search removed + improved combo dropdown placement */
.top-search-form{display:none!important;}
.topbar .page-title{flex:0 1 auto!important;}
.topbar-actions{margin-left:auto!important;}
.hp-combo-list{
  min-width:260px!important;
  overscroll-behavior:contain!important;
  scrollbar-width:thin!important;
}
.hp-combo-list::-webkit-scrollbar{width:8px!important;}
.hp-combo-list::-webkit-scrollbar-thumb{background:#bae6fd!important;border-radius:999px!important;}
.hp-combo-list::-webkit-scrollbar-track{background:#f8fafc!important;}
select[data-combo-position="up"] + .hp-select-combo .hp-combo-list,
.hp-select-combo:has(select[data-combo-position="up"]) .hp-combo-list{
  max-height:360px!important;
  box-shadow:0 -14px 28px rgba(15,23,42,.16)!important;
}

/* v59 Parameters page: each settings block is now its own clean dropdown section */
.pro-settings .settings-accordion-grid{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:14px!important;
  align-items:stretch!important;
  overflow:visible!important;
}
.pro-settings .settings-accordion-card,
.pro-settings .settings-accordion-card.panel{
  padding:0!important;
  overflow:visible!important;
  min-width:0!important;
  border:1px solid #d7edf8!important;
  border-radius:18px!important;
  background:#fff!important;
  box-shadow:0 12px 34px rgba(0,72,115,.08)!important;
}
.pro-settings .settings-accordion-card summary::-webkit-details-marker{display:none!important;}
.pro-settings .settings-accordion-summary{
  list-style:none!important;
  cursor:pointer!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:14px!important;
  width:100%!important;
  padding:18px 20px!important;
  border-radius:18px!important;
  background:linear-gradient(135deg,#ffffff 0%,#f4fbff 100%)!important;
  user-select:none!important;
}
.pro-settings .settings-accordion-summary:hover{
  background:linear-gradient(135deg,#ffffff 0%,#eaf8ff 100%)!important;
}
.pro-settings .settings-accordion-summary .settings-card-title{
  margin:0!important;
  min-width:0!important;
  flex:1!important;
}
.pro-settings .settings-accordion-summary .settings-card-title h3{
  margin:0!important;
  font-size:19px!important;
  color:#061c33!important;
}
.pro-settings .settings-accordion-summary .settings-card-title p{
  margin:4px 0 0!important;
  color:#64748b!important;
}
.pro-settings .settings-accordion-chevron{
  flex:0 0 auto!important;
  width:34px!important;
  height:34px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:999px!important;
  color:#0284c7!important;
  background:#eaf8ff!important;
  transition:transform .18s ease, background .18s ease!important;
}
.pro-settings .settings-accordion-card[open] .settings-accordion-chevron{
  transform:rotate(180deg)!important;
  background:#dff5ff!important;
}
.pro-settings .settings-card-body{
  padding:0 20px 20px!important;
  border-top:1px solid #eef7fc!important;
  overflow:visible!important;
}
.pro-settings .settings-card-body .settings-form{
  padding-top:18px!important;
}
.pro-settings .settings-links-row{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:10px!important;
  align-items:center!important;
}
.pro-settings .settings-select,
.pro-settings .settings-form select{
  min-height:46px!important;
  height:46px!important;
}
.pro-settings .language-card .settings-form{
  max-width:520px!important;
}
.pro-settings .language-card .hp-select-combo,
.pro-settings .security-card .hp-select-combo{
  max-width:520px!important;
}
.pro-settings .hp-combo-list{
  z-index:100000!important;
  max-height:360px!important;
}
.pro-settings .profile-upload-box{
  max-width:760px!important;
}
@media(max-width:850px){
  .pro-settings .settings-accordion-summary{padding:15px!important;align-items:flex-start!important;}
  .pro-settings .settings-card-body{padding:0 15px 16px!important;}
  .pro-settings .settings-accordion-chevron{width:30px!important;height:30px!important;}
  .pro-settings .settings-links-row{display:grid!important;grid-template-columns:1fr!important;}
  .pro-settings .settings-links-row .btn{justify-content:center!important;width:100%!important;}
}

/* SECUTRICK footer branding */
footer.secutrick-footer{
  min-height:38px!important;
  margin:0!important;
  padding:5px 12px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:#fff!important;
  border:0!important;
  color:#000!important;
  font-family:"Segoe UI",Arial,Helvetica,sans-serif!important;
  text-transform:none!important;
  letter-spacing:0!important;
}
.secutrick-powered{
  min-width:211px;
  height:28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  color:#000;
  white-space:nowrap;
}
.secutrick-powered-label{
  font-size:12px;
  line-height:1;
  font-weight:500;
}
.secutrick-powered-divider{
  width:1px;
  height:18px;
  flex:0 0 1px;
  background:rgba(0,0,0,.75);
}
.secutrick-powered-logo{
  width:21px;
  height:22px;
  display:block;
  flex:0 0 auto;
  object-fit:contain;
}
.secutrick-powered strong{
  font-size:13px;
  line-height:1;
  font-weight:800;
  letter-spacing:.02em;
  color:#000;
}
@media(max-width:520px){
  footer.secutrick-footer{min-height:36px!important;padding:4px 8px!important;}
  .secutrick-powered{min-width:0;height:28px;}
}

/* Global header AI modal */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.header-ai-logo-btn{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;border:0;border-radius:0;background:transparent;cursor:pointer;box-shadow:none;transition:transform .18s,opacity .18s}
.header-ai-logo-btn:hover{transform:scale(1.06);opacity:.88}.header-ai-logo-btn:focus-visible{outline:2px solid #60a5fa;outline-offset:2px;border-radius:50%}
.header-ai-logo-btn img{display:block;width:31px;height:31px;object-fit:contain}
.ge-ai-modal[hidden]{display:none!important}.ge-ai-modal{position:fixed;inset:0;z-index:100500;display:grid;place-items:center;padding:18px}.ge-ai-backdrop{position:absolute;inset:0;width:100%;height:100%;border:0;background:rgba(2,8,23,.54);backdrop-filter:blur(4px)}
.ge-ai-dialog{position:relative;display:grid;grid-template-rows:auto auto minmax(220px,1fr) auto auto auto;width:min(520px,calc(100vw - 28px));height:min(720px,calc(100vh - 36px));overflow:hidden;border:1px solid rgba(148,163,184,.3);border-radius:20px;background:#fff;box-shadow:0 30px 90px rgba(2,8,23,.34)}
.ge-ai-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 17px;border-bottom:1px solid #e8eef5;background:linear-gradient(135deg,#f8fbff,#fff)}.ge-ai-brand{display:flex;align-items:center;gap:11px;min-width:0}.ge-ai-brand>img{width:42px;height:42px;padding:0;border:0;border-radius:0;object-fit:contain;background:transparent;box-shadow:none}.ge-ai-brand strong,.ge-ai-brand small{display:block}.ge-ai-brand strong{color:#0f172a;font-size:15px}.ge-ai-brand small{margin-top:3px;color:#64748b;font-size:11px}.ge-ai-online{display:inline-block;width:7px;height:7px;margin-right:5px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 3px rgba(34,197,94,.14)}.ge-ai-head-actions{display:flex;gap:9px}.ge-ai-head-actions button{display:grid;place-items:center;width:28px;height:32px;padding:0;border:0;border-radius:0;background:transparent;color:#475569;cursor:pointer;box-shadow:none;transition:color .16s,transform .16s}.ge-ai-head-actions button:hover{background:transparent;color:#1d4ed8;transform:scale(1.1)}.ge-ai-head-actions button:focus-visible{outline:2px solid #60a5fa;outline-offset:2px;border-radius:50%}
.ge-ai-context{display:flex;align-items:center;gap:8px;padding:8px 17px;border-bottom:1px solid #eaf0f5;background:#f8fafc;color:#64748b;font-size:10px}.ge-ai-context i{color:#2563eb}
.ge-ai-chat{display:flex;flex-direction:column;gap:13px;overflow:auto;padding:18px 17px;background:linear-gradient(180deg,#f8fafc 0,#f4f7fb 100%);scroll-behavior:smooth}.ge-ai-bubble{display:flex;align-items:flex-end;gap:8px;max-width:92%}.ge-ai-bubble.is-user{align-self:flex-end;flex-direction:row-reverse}.ge-ai-bubble.is-assistant{align-self:flex-start}.ge-ai-avatar{display:grid;place-items:center;flex:0 0 29px;width:29px;height:29px;border:0;border-radius:0;background:transparent;color:#2563eb;box-shadow:none}.ge-ai-avatar img{width:26px;height:26px;object-fit:contain}.ge-ai-message{min-width:0;padding:10px 12px;border:1px solid #dde7f0;border-radius:14px 14px 14px 4px;background:#fff;color:#1e293b;box-shadow:0 4px 14px rgba(15,23,42,.05)}.ge-ai-bubble.is-user .ge-ai-message{border-color:#2563eb;border-radius:14px 14px 4px 14px;background:#2563eb;color:#fff}.ge-ai-message p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12.5px;line-height:1.58}.ge-ai-links{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}.ge-ai-links a{display:inline-flex;padding:6px 9px;border-radius:8px;background:#eff6ff;color:#1d4ed8;font-size:10px;font-weight:800;text-decoration:none}.ge-ai-bubble.is-user .ge-ai-links a{background:rgba(255,255,255,.15);color:#fff}
.ge-ai-typing .ge-ai-message{display:flex;align-items:center;gap:4px;padding:13px}.ge-ai-typing .ge-ai-message span{width:6px;height:6px;border-radius:50%;background:#60a5fa;animation:geAiTyping 1.1s infinite ease-in-out}.ge-ai-typing .ge-ai-message span:nth-child(2){animation-delay:.14s}.ge-ai-typing .ge-ai-message span:nth-child(3){animation-delay:.28s}@keyframes geAiTyping{0%,70%,100%{transform:translateY(0);opacity:.35}35%{transform:translateY(-4px);opacity:1}}
.ge-ai-quick{display:flex;gap:7px;overflow-x:auto;padding:10px 14px;border-top:1px solid #e5edf4;background:#fff}.ge-ai-quick button{flex:0 0 auto;border:1px solid #dbe7f0;border-radius:999px;background:#f8fafc;padding:7px 10px;color:#334155;font-size:10px;font-weight:750;cursor:pointer}.ge-ai-quick button:hover{border-color:#93c5fd;background:#eff6ff;color:#1d4ed8}
.ge-ai-form{display:flex;align-items:flex-end;gap:9px;padding:11px 14px;border-top:1px solid #e6edf4;background:#fff}.ge-ai-form textarea{flex:1;min-height:42px;max-height:120px;resize:none;border:1px solid #d6e2ec;border-radius:12px;padding:11px 12px;background:#f8fafc;color:#0f172a;font:inherit;font-size:12px;line-height:1.45;outline:0}.ge-ai-form textarea:focus{border-color:#60a5fa;box-shadow:0 0 0 3px rgba(59,130,246,.12)}.ge-ai-form>button{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border:0;border-radius:12px;background:#2563eb;color:#fff;cursor:pointer;box-shadow:0 7px 16px rgba(37,99,235,.24)}.ge-ai-form>button:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}.ge-ai-disclaimer{margin:0;padding:0 14px 10px;background:#fff;color:#94a3b8;font-size:9px;text-align:center}.ge-ai-modal-open{overflow:hidden}
body.dark-mode .ge-ai-dialog,[data-theme="dark"] .ge-ai-dialog{background:#0f172a;border-color:#334155}body.dark-mode .ge-ai-head,[data-theme="dark"] .ge-ai-head{background:#111c31;border-color:#334155}body.dark-mode .ge-ai-brand strong,[data-theme="dark"] .ge-ai-brand strong{color:#f8fafc}body.dark-mode .ge-ai-context,[data-theme="dark"] .ge-ai-context{background:#111827;border-color:#334155;color:#94a3b8}body.dark-mode .ge-ai-chat,[data-theme="dark"] .ge-ai-chat{background:#0b1220}body.dark-mode .ge-ai-message,[data-theme="dark"] .ge-ai-message{background:#172033;border-color:#334155;color:#e2e8f0}body.dark-mode .ge-ai-quick,body.dark-mode .ge-ai-form,body.dark-mode .ge-ai-disclaimer,[data-theme="dark"] .ge-ai-quick,[data-theme="dark"] .ge-ai-form,[data-theme="dark"] .ge-ai-disclaimer{background:#0f172a;border-color:#334155}body.dark-mode .ge-ai-form textarea,[data-theme="dark"] .ge-ai-form textarea{background:#111827;border-color:#475569;color:#f8fafc}
@media(max-width:700px){.header-ai-logo-btn{width:34px;height:34px;padding:0}.header-ai-logo-btn img{width:29px;object-fit:contain}.ge-ai-modal{padding:0;align-items:end}.ge-ai-dialog{width:100%;height:min(88vh,760px);max-height:none;border-radius:20px 20px 0 0}.ge-ai-quick{padding-bottom:8px}}
@media(prefers-reduced-motion:reduce){.ge-ai-chat{scroll-behavior:auto}.ge-ai-typing .ge-ai-message span{animation:none}.header-ai-logo-btn{transition:none}}

/* SecuTrick AI icons stay unboxed on both modal and legacy assistant layouts. */
.assistant-robot-mini,.assistant-avatar{border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}.assistant-robot-mini img,.assistant-avatar img{display:block;max-width:42px;max-height:42px;object-fit:contain}
