:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:#0f172a;background:#f3f6f9;font-synthesis:none}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;padding-bottom:env(safe-area-inset-bottom)}
[hidden]{display:none!important}
button,input,select{font:inherit}
.loading{min-height:100vh;display:grid;place-content:center;text-align:center;font-size:24px;font-weight:900;color:#123b63}
.loading small{font-size:13px;color:#64748b}
.muted{color:#64748b}.small{font-size:12px}
.auth{min-height:100vh;display:grid;place-items:center;padding:20px}
.auth-card{width:min(440px,100%);background:#fff;border:1px solid #e2e8f0;border-radius:24px;padding:32px;box-shadow:0 24px 80px #0f172a1f}
.brand{display:flex;align-items:center;gap:12px;font-weight:900}
.logo{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;background:#123b63;color:#fff;font-size:22px}
.auth-brand{display:grid;gap:7px}.auth-brand img{display:block;width:270px;max-width:100%;height:auto}.auth-brand span{color:#64748b;font-size:13px;font-weight:800;letter-spacing:.04em}
.auth h1{margin:28px 0 8px;font-size:28px}
.form{display:grid;gap:14px;margin-top:24px}
.field{position:relative;display:grid;gap:6px}
.field label{font-size:13px;font-weight:700}
.field input,.field select,.filters input,.filters select,.catalog-filter input,.catalog-filter select{width:100%;height:44px;border:1px solid #cbd5e1;border-radius:11px;padding:0 12px;background:#fff;color:#0f172a}
.field input[type=file]{height:auto;min-height:44px;padding:9px}
.check-field{display:flex;align-items:center;gap:9px;padding:11px 12px;border:1px solid #dbe3ec;border-radius:11px;background:#f8fafc;font-weight:700;font-size:13px}
.check-field input{width:19px;height:19px;accent-color:#123b63}
.btn{border:0;border-radius:11px;height:42px;padding:0 16px;font-weight:800;cursor:pointer;background:#123b63;color:#fff;white-space:nowrap}
.btn.orange{background:#d96532}.btn.light{background:#eef2f6;color:#123b63}.btn.red{background:#fff1f2;color:#b91c1c;border:1px solid #fecdd3}.btn.green{background:#059669}.btn.compact{height:34px;padding:0 11px;font-size:12px}.btn:disabled{opacity:.5;cursor:not-allowed}
.top{position:sticky;top:0;z-index:10;background:#fff;border-bottom:1px solid #e2e8f0}
.top-inner{max-width:1780px;margin:auto;height:76px;padding:0 22px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.user{text-align:right;font-size:13px}.user button{border:0;background:none;color:#d96532;cursor:pointer}
.company-brand{min-width:0;display:flex;align-items:center;gap:14px;padding:5px 8px 5px 0;border:0;background:transparent;color:#0f172a;text-align:left;cursor:pointer}.company-brand:hover{opacity:.78}.company-brand img{display:block;width:230px;height:58px;object-fit:contain;object-position:left center}.company-brand span{display:grid;gap:2px;padding-left:14px;border-left:1px solid #dbe3ec}.company-brand b{font-size:12px;color:#123b63}.company-brand small{font-size:10px;color:#64748b;white-space:nowrap}
.wrap{max-width:1780px;margin:auto;padding:20px 22px}
.hero{position:relative;display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:14px;min-height:78px}.hero h1{margin:0;font-size:27px}.hero p{margin:3px 0 0}.hero-date{color:#d96532;font-weight:800}.hero .primary-action{position:absolute;left:50%;bottom:5px;transform:translateX(-50%);height:58px;min-width:238px;padding:0 30px;border-radius:15px;font-size:17px;box-shadow:0 8px 20px #d9653233}.hero .primary-action span{font-size:23px;vertical-align:-1px}
.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin-bottom:13px}
.metric{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:11px 14px}.metric b{display:block;font-size:22px;margin-top:1px}
.tabs{display:flex;gap:5px;overflow:auto;background:#fff;border:1px solid #e2e8f0;border-radius:15px;padding:6px;margin-bottom:14px}
.tab{white-space:nowrap;border:0;background:transparent;padding:9px 14px;border-radius:10px;font-weight:750;color:#64748b;cursor:pointer}.tab.active{background:#123b63;color:#fff}
.panel{background:#fff;border:1px solid #e2e8f0;border-radius:18px;overflow:hidden}
.panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:18px;border-bottom:1px solid #e2e8f0}.panel-head h2{font-size:17px;margin:0}
.filters{display:grid;grid-template-columns:2fr repeat(4,1fr);gap:10px;padding:14px;background:#f8fafc;border-bottom:1px solid #e2e8f0;align-items:start}
.billing-filters{grid-template-columns:2fr 1fr 1fr}.stock-filters{grid-template-columns:2fr 1fr 1fr}.project-filters{grid-template-columns:2fr 1fr 1fr 1fr 1fr}.supplier-filters{grid-template-columns:2fr 1fr 1fr 1fr}.filter-field{position:relative;min-width:0}.filter-field>input{width:100%}
.filter-suggestions,.smart-suggestions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:7px}.filter-suggestions span,.smart-suggestions span{font-size:11px;color:#64748b;font-weight:800}.filter-suggestions button,.smart-suggestions button{border:1px solid #bfd1e2;border-radius:999px;background:#fff;color:#123b63;padding:5px 9px;font-size:11px;font-weight:750;cursor:pointer}
.smart-suggestions{padding:8px;border:1px solid #dbe7f1;border-radius:10px;background:#eef5fb}.smart-suggestions:empty{display:none}
.product-suggestions{display:grid;gap:6px;margin-top:7px;padding:8px;border:1px solid #c9d9e7;border-radius:12px;background:#eef5fb}.product-suggestions:empty{display:none}.product-suggestions-title{padding:2px 3px 4px;color:#526b82;font-size:11px;font-weight:800}.product-suggestion-card{width:100%;display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:9px;padding:7px;border:1px solid #d8e3ec;border-radius:10px;background:#fff;color:#0f172a;text-align:left;cursor:pointer}.product-suggestion-card:hover{border-color:#6f9abd;background:#f8fbfe}.product-suggestion-card .product-thumb{width:44px;height:44px;flex-basis:44px}.product-suggestion-card span{min-width:0}.product-suggestion-card b,.product-suggestion-card small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.product-suggestion-card small{margin-top:3px;color:#64748b}.product-suggestion-card strong{color:#123b63;font-size:12px;white-space:nowrap}.modal-product-suggestions{position:relative;z-index:3;max-height:285px;overflow:auto}
.stock-summary{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:9px 14px;background:#eef5fb;border-bottom:1px solid #dbe7f1}
.project-summary{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:7px;padding:8px 12px;background:#eef5fb;border-bottom:1px solid #dbe7f1}.project-summary>div{padding:6px 9px;border:1px solid #cbdcea;border-radius:9px;background:#fff}.project-summary b{display:block;margin-top:1px;font-size:15px;color:#123b63}.project-table{min-width:1240px;table-layout:fixed}
.summary-chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:4px}.summary-chips span{padding:5px 9px;border:1px solid #cbdcea;border-radius:8px;background:#fff;font-size:12px}
.cost-summary{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 18px;background:#eef5fb;border-bottom:1px solid #dbe7f1}.cost-summary h3{margin:3px 0 0}.cost-total-list{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.cost-total{min-width:150px;padding:10px 14px;border:1px solid #cbdcea;border-radius:12px;background:#fff;text-align:right}.cost-total span{display:block;font-size:11px;font-weight:800;color:#64748b}.cost-total b{display:block;margin-top:2px;font-size:18px;color:#123b63}
.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;min-width:900px}.movement-table{min-width:1240px;table-layout:fixed}.stock-table{min-width:1180px}.billing-table{min-width:1450px}.supplier-table{min-width:1500px}.cost-history-table{min-width:1200px}.billing-table tfoot td,.supplier-table tfoot td{background:#eef5fb;border-top:2px solid #b8cfe1}
th,td{text-align:left;padding:13px 15px;border-bottom:1px solid #eef2f6;font-size:13px;vertical-align:middle}th{font-size:12px;color:#64748b;background:#f8fafc}.negative-stock{color:#b91c1c}
.movement-panel-head{padding:9px 13px}.movement-panel-head .btn{height:30px}.movement-panel .filters{padding:8px 10px;gap:7px}.movement-panel .filters input,.movement-panel .filters select{height:37px;padding:0 9px}.movement-table th,.movement-table td{padding:7px 6px;font-size:11px;overflow-wrap:anywhere}.movement-table th{font-size:10px;line-height:1.2}.movement-table .product-thumb{width:36px;height:36px;flex-basis:36px;border-radius:7px}.movement-table .product-cell{gap:6px}.movement-table .badge{padding:3px 6px;font-size:9px;white-space:normal;text-align:center}.movement-table .evidence-button{width:42px;height:35px}.movement-table .image-count{min-width:25px;height:25px;font-size:9px}.movement-table .btn.compact{height:27px;padding:0 6px;font-size:10px}.movement-table th:nth-child(1){width:11%}.movement-table th:nth-child(2){width:8%}.movement-table th:nth-child(3),.movement-table th:nth-child(4){width:5%}.movement-table th:nth-child(5){width:6%}.movement-table th:nth-child(6){width:7%}.movement-table th:nth-child(7){width:8%}.movement-table th:nth-child(8){width:7%}.movement-table th:nth-child(9){width:5%}.movement-table th:nth-child(10){width:7%}.movement-table th:nth-child(11){width:8%}.movement-table th:nth-child(12){width:6%}.movement-table th:nth-child(13){width:8%}.movement-table th:nth-child(14){width:7%}
.stock-panel-head{padding:11px 14px}.stock-panel-head .icon-button{height:36px;padding:0 12px;display:inline-flex;align-items:center;gap:7px}.download-icon{display:grid;place-items:center;width:21px;height:21px;border-radius:7px;background:#fff;color:#123b63;font-size:18px;line-height:1}.stock-panel .stock-filters{padding:9px 12px}.stock-panel .filters input,.stock-panel .filters select{height:38px}.stock-table th,.stock-table td{padding:8px 7px;font-size:12px}.stock-table th{font-size:11px}.stock-table .product-thumb{width:38px;height:38px;flex-basis:38px;border-radius:8px}.stock-table .product-cell{gap:7px}.stock-table .actions{display:grid;gap:4px;min-width:78px}.stock-table .btn.compact{height:28px;padding:0 7px;font-size:11px}.sku-compact{display:block;max-width:110px;white-space:normal;overflow-wrap:anywhere;font-weight:800;color:#334155;line-height:1.25}
.project-panel-head{padding:9px 13px}.project-panel-head .btn{height:31px}.project-panel .project-filters{padding:8px 10px;gap:7px}.project-panel .filters input,.project-panel .filters select{height:37px;padding:0 8px;font-size:12px}.project-table th,.project-table td{padding:7px 5px;font-size:10.5px;overflow-wrap:anywhere}.project-table th{font-size:9.5px;line-height:1.2}.project-table .badge{padding:3px 5px;font-size:9px;white-space:normal;text-align:center}.project-table .actions{display:grid;gap:4px}.project-table .btn.compact{height:auto;min-height:26px;padding:4px 5px;font-size:9.5px;line-height:1.15;white-space:normal}.project-table th:nth-child(1){width:7%}.project-table th:nth-child(2){width:9%}.project-table th:nth-child(3){width:8%}.project-table th:nth-child(4){width:7%}.project-table th:nth-child(5){width:9%}.project-table th:nth-child(6){width:5%}.project-table th:nth-child(7){width:8%}.project-table th:nth-child(8){width:6%}.project-table th:nth-child(9){width:8%}.project-table th:nth-child(10),.project-table th:nth-child(11),.project-table th:nth-child(12){width:7%}.project-table th:nth-child(13){width:12%}
.approval-panel-head{padding:10px 14px}.approval-table{min-width:1280px;table-layout:fixed}.approval-table th,.approval-table td{padding:7px 6px;font-size:10.5px;overflow-wrap:anywhere}.approval-table th{font-size:9.5px;line-height:1.2}.approval-table th:nth-child(1){width:14%}.approval-table th:nth-child(2){width:8%}.approval-table th:nth-child(3){width:9%}.approval-table th:nth-child(4){width:10%}.approval-table th:nth-child(5){width:9%}.approval-table th:nth-child(6){width:7%}.approval-table th:nth-child(7){width:8%}.approval-table th:nth-child(8){width:7%}.approval-table th:nth-child(9){width:13%}.approval-table th:nth-child(10){width:15%}.approval-table .product-thumb{width:36px;height:36px;flex-basis:36px;border-radius:7px}.approval-table .product-cell{gap:6px}.approval-table .product-cell span{min-width:0}.approval-table small{display:block;margin-top:2px;color:#64748b;font-size:9.5px;line-height:1.25}.approval-table .badge{padding:3px 5px;font-size:9px;white-space:normal;text-align:center}.approval-table .evidence-button{width:42px;height:35px}.approval-table .image-count{min-width:24px;height:24px;font-size:9px}.approval-actions{display:grid;grid-template-columns:1fr 1fr;gap:4px}.approval-actions .btn{height:27px;padding:0 6px;font-size:9.5px}.approval-actions .btn:first-child{grid-column:1/-1}.movement-edit-note{display:block;margin-top:4px;padding:3px 5px;border-radius:6px;background:#e0f2fe;color:#075985;font-size:8.5px;font-weight:800;line-height:1.25}.edit-warning{margin:0;padding:10px 12px;border:1px solid #f5c99e;border-radius:11px;background:#fff7ed;color:#9a3412;font-size:12px;line-height:1.4}
.badge{display:inline-flex;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:800;white-space:nowrap}.pending,.payment_pending{background:#fef3c7;color:#92400e}.approved,.active,.new-product{background:#d1fae5;color:#065f46}.rejected,.inactive,.closed,.voided{background:#fee2e2;color:#991b1b}.in{background:#dbeafe;color:#1e40af}.out{background:#ffedd5;color:#9a3412}.direct{background:#ede9fe;color:#5b21b6}.return{background:#ccfbf1;color:#115e59}.used{background:#e0e7ff;color:#3730a3}.voided-row{background:#fff7f7;color:#64748b}.void-detail{display:block;margin-top:5px;line-height:1.45}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;background:#f3f6f9}.card{background:#fff;border:1px solid #e2e8f0;border-radius:17px;padding:18px}.card h3{margin:0 0 4px}.card hr{border:0;border-top:1px solid #eef2f6}
.actions{display:flex;gap:7px;flex-wrap:wrap}.empty{padding:50px;text-align:center;color:#64748b}
.modal-back{position:fixed;inset:0;z-index:50;background:#0f172a80;display:grid;place-items:center;padding:18px}.modal{width:min(680px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:20px;padding:24px}.modal h2{margin:0}.modal .row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}
.movement-product-picker{display:grid;gap:5px}.movement-product-search-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px}.movement-product-search-row .field{min-width:0}.new-product-button{height:44px}.new-product-button span{font-size:19px}.selected-product{display:grid;grid-template-columns:46px minmax(0,1fr) auto;align-items:center;gap:9px;padding:8px;border:1px solid #9fc6df;border-radius:11px;background:#eef7fd}.selected-product .product-thumb{width:46px;height:46px;flex-basis:46px}.selected-product span,.selected-product b,.selected-product small{min-width:0}.selected-product b,.selected-product small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.selected-product small{margin-top:3px;color:#64748b}.new-product-form{display:grid;gap:14px;padding:14px;border:1px solid #c9d9e7;border-radius:14px;background:#f8fbfe}.new-product-form-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.new-product-form-head b,.new-product-form-head span{display:block}.new-product-form-head span{margin-top:2px;color:#64748b;font-size:11px}
.movement-project-picker{display:grid;gap:5px}.movement-project-search-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px}.movement-project-search-row .field{min-width:0}.new-project-button{height:44px}.new-project-button span{font-size:19px}.project-suggestions{display:grid;gap:6px;margin-top:7px;padding:8px;border:1px solid #c9d9e7;border-radius:12px;background:#eef5fb}.project-suggestions:empty{display:none}.modal-project-suggestions{position:relative;z-index:3;max-height:285px;overflow:auto}.project-suggestion-card{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:9px;padding:9px 11px;border:1px solid #d8e3ec;border-radius:10px;background:#fff;color:#0f172a;text-align:left;cursor:pointer}.project-suggestion-card:hover{border-color:#6f9abd;background:#f8fbfe}.project-suggestion-card b,.project-suggestion-card small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-suggestion-card small{margin-top:3px;color:#64748b}.project-suggestion-card strong{color:#123b63;font-size:12px}.selected-project{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:9px;padding:10px 12px;border:1px solid #9fc6df;border-radius:11px;background:#eef7fd}.selected-project b,.selected-project small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.selected-project small{margin-top:3px;color:#64748b}.new-project-form{display:grid;gap:14px;padding:14px;border:1px solid #c9d9e7;border-radius:14px;background:#f8fbfe}
.movement-supplier-picker{display:grid;gap:5px}.movement-supplier-search-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px}.movement-supplier-search-row .field{min-width:0}.new-supplier-button{height:44px}.new-supplier-button span{font-size:19px}.supplier-suggestions{display:grid;gap:6px;margin-top:7px;padding:8px;border:1px solid #c9d9e7;border-radius:12px;background:#eef5fb}.supplier-suggestions:empty{display:none}.modal-supplier-suggestions{position:relative;z-index:3;max-height:285px;overflow:auto}.supplier-suggestion-card{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:9px;padding:9px 11px;border:1px solid #d8e3ec;border-radius:10px;background:#fff;color:#0f172a;text-align:left;cursor:pointer}.supplier-suggestion-card:hover{border-color:#6f9abd;background:#f8fbfe}.supplier-suggestion-card b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.supplier-suggestion-card strong{color:#123b63;font-size:12px}.selected-supplier{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:9px;padding:10px 12px;border:1px solid #9fc6df;border-radius:11px;background:#eef7fd}.selected-supplier b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.new-supplier-form{display:grid;gap:14px;padding:14px;border:1px solid #c9d9e7;border-radius:14px;background:#f8fbfe}
.cost-history-modal{width:min(1250px,100%);padding:0}.cost-history-modal .panel-head{border-radius:20px 20px 0 0}.current-cost{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;background:#eef5fb;border-bottom:1px solid #dbe7f1}.current-cost b{font-size:20px;color:#123b63}
.company-modal{width:min(760px,100%)}.company-modal-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-bottom:16px;border-bottom:1px solid #e2e8f0}.company-modal-head img{width:270px;max-width:55%;height:auto}.company-modal-actions{display:flex;align-items:center;gap:7px}.company-modal h2{margin:20px 0 14px}.company-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.company-info-grid>div,.bank-info>div{padding:12px 14px;border:1px solid #dbe3ec;border-radius:11px;background:#f8fafc}.company-info-wide{grid-column:1/-1}.company-info-grid span,.bank-info span{display:block;margin-bottom:4px;color:#64748b;font-size:11px;font-weight:800}.company-info-grid b{font-size:13px;line-height:1.45}.bank-info{display:grid;gap:8px;margin-top:12px}.iban-row{display:grid;grid-template-columns:55px minmax(0,1fr) auto;align-items:center;gap:10px}.iban-row span{margin:0;color:#123b63;font-size:12px}.iban-row b{font-size:13px;overflow-wrap:anywhere}
#toast{position:fixed;top:18px;left:50%;transform:translateX(-50%);z-index:100;background:#0f172a;color:#fff;border-radius:10px;padding:11px 16px;opacity:0;pointer-events:none;transition:.2s}#toast.show{opacity:1}
.connection-status{position:fixed;z-index:120;top:0;left:0;right:0;padding:8px 14px;background:#991b1b;color:#fff;text-align:center;font-size:12px;font-weight:800}.is-offline .top{top:32px}
.install-banner{position:fixed;z-index:45;left:50%;bottom:calc(14px + env(safe-area-inset-bottom));transform:translateX(-50%);width:min(620px,calc(100% - 24px));display:grid;grid-template-columns:48px minmax(0,1fr) auto 28px;align-items:center;gap:10px;padding:10px;border:1px solid #b9cddd;border-radius:15px;background:#fff;box-shadow:0 15px 45px #0f172a33}.install-banner img{width:48px;height:48px;border-radius:11px}.install-banner b,.install-banner span{display:block}.install-banner b{font-size:13px}.install-banner span{margin-top:2px;color:#64748b;font-size:11px;line-height:1.3}.install-dismiss{height:28px;border:0;background:transparent;color:#64748b;font-size:24px;cursor:pointer}.install-help p{line-height:1.6;color:#475569}.offline-shell{min-height:100vh;display:grid;place-content:center;justify-items:center;gap:10px;padding:24px;text-align:center}.offline-shell img{width:92px;height:92px;border-radius:22px}.offline-shell h1,.offline-shell p{margin:0}.offline-shell p{max-width:460px;color:#64748b;line-height:1.55}
.editable-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:5px}.editable-image{position:relative;padding:7px;border:2px solid transparent;border-radius:13px;background:#f1f5f9}.editable-image.cover{border-color:#059669;background:#ecfdf5}.editable-image>img{display:block;width:100%;height:120px;object-fit:cover;border-radius:9px;background:#fff}.editable-image>div{display:flex;gap:5px;margin-top:7px}.editable-image .btn{flex:1;padding:0 7px}
.catalog{display:grid;grid-template-columns:1fr 1fr;gap:11px;background:#f3f6f9}.catalog .panel-head{padding:9px 11px}.catalog .panel-head .btn{height:32px;padding:0 11px;font-size:11px}.catalog-filter{padding:7px 10px;background:#f8fafc;border-bottom:1px solid #e2e8f0}.catalog-filter input,.catalog-filter select{height:36px;font-size:12px}.catalog-product-filter{display:grid;grid-template-columns:minmax(0,2fr) minmax(135px,1fr);gap:7px;align-items:start}.list-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 18px;border-bottom:1px solid #eef2f6}.list-row b{display:block}.list-row .small{display:block;margin-top:3px}.catalog .list-row{padding:7px 10px;gap:8px;min-height:48px}.catalog .list-row>div:not(.product-cell):first-child,.catalog .product-cell>div{min-width:0;display:flex;align-items:center;gap:7px 12px;flex:1;flex-wrap:wrap}.catalog .list-row .small{display:inline;margin:0;padding-right:10px;border-right:1px solid #e2e8f0;line-height:1.3}.catalog .list-row .small:last-child{padding-right:0;border-right:0}.catalog .product-thumb{width:38px;height:38px;flex-basis:38px;border-radius:8px}.catalog .product-cell{flex:1}.catalog .badge{font-size:9px;padding:3px 6px}.catalog-actions{display:flex;align-items:center;justify-content:flex-end;gap:5px;flex:0 0 auto}.catalog-actions .btn{height:28px;padding:0 7px;font-size:10px}.catalog-actions>b{white-space:nowrap;font-size:12px}
.catalog-shell{display:grid;gap:10px}.catalog-section-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:6px;border:1px solid #dbe3ec;border-radius:15px;background:#fff}.catalog-section-tab{display:flex;align-items:center;justify-content:center;gap:8px;height:42px;border:0;border-radius:10px;background:transparent;color:#526b82;font-weight:800;cursor:pointer}.catalog-section-tab b{display:grid;place-items:center;min-width:25px;height:25px;padding:0 7px;border-radius:999px;background:#eef2f6;color:#123b63;font-size:11px}.catalog-section-tab.active{background:#123b63;color:#fff}.catalog-section-tab.active b{background:#fff;color:#123b63}.catalog-single{display:block}.catalog-single>.panel{width:100%}.catalog-projects .list-row>div:first-child{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1.2fr);align-items:center;gap:8px}.catalog-projects .list-row>div:first-child>*{min-width:0;margin:0;padding:2px 10px 2px 0;border-right:1px solid #e2e8f0;white-space:normal;overflow-wrap:anywhere;line-height:1.25}.catalog-projects .list-row>div:first-child>*:last-child{border-right:0}.catalog-projects .list-row>button{width:90px}.catalog-suppliers .list-row{padding:10px 14px}
.catalog.catalog-single>.panel.catalog-projects .project-list-row{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1.2fr) 76px;align-items:stretch;gap:8px;padding:7px 10px}.catalog-projects .project-list-cell{min-width:0;display:flex!important;align-items:center;margin:0!important;padding:3px 10px 3px 0!important;border-right:1px solid #e2e8f0!important;white-space:normal;overflow-wrap:anywhere;line-height:1.25}.catalog-projects .project-list-cell>b{display:inline;margin-right:4px}.catalog-projects .project-name-cell>b{margin-right:0}.catalog-projects .project-list-row>button{align-self:center;width:76px}
.catalog-column-head{display:grid;align-items:center;gap:8px;padding:5px 10px;border-bottom:1px solid #dbe3ec;background:#eef3f7;color:#64748b;font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.03em}.product-column-head{grid-template-columns:38px minmax(0,.75fr) minmax(0,1.05fr) minmax(0,.9fr) minmax(0,1.3fr) minmax(225px,auto)}.project-column-head{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1.2fr) 76px}.catalog>.panel:first-child .list-row{display:grid;grid-template-columns:minmax(0,1fr) auto}.catalog>.panel:first-child .product-cell{width:100%;display:grid;grid-template-columns:38px minmax(0,.75fr) minmax(0,1.05fr) minmax(0,.9fr) minmax(0,1.3fr);align-items:center;gap:8px}.catalog>.panel:first-child .product-cell>div{display:contents}.catalog>.panel:nth-child(2) .list-row{display:grid;grid-template-columns:minmax(0,1fr) 76px}.catalog>.panel:nth-child(2) .list-row>div:first-child{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1.2fr);align-items:center;gap:8px}.catalog>.panel:nth-child(2) .list-row>button{width:76px}.catalog>.panel:first-child .product-cell>div>* ,.catalog>.panel:nth-child(2) .list-row>div:first-child>*{min-width:0;margin:0;padding:2px 7px 2px 0;border-right:1px solid #e2e8f0;white-space:normal;overflow-wrap:anywhere;line-height:1.25}.catalog>.panel:first-child .product-cell>div>*:last-child,.catalog>.panel:nth-child(2) .list-row>div:first-child>*:last-child{border-right:0}.fit-text{font-size:12px}.fit-medium{font-size:10.5px}.fit-tight{font-size:9px;letter-spacing:-.01em}.catalog .catalog-actions{min-width:225px;display:grid;grid-template-columns:minmax(48px,auto) 1fr auto;align-items:center;gap:5px}.catalog .catalog-actions .btn{white-space:normal;line-height:1.1}.catalog .catalog-actions .red{grid-column:3}
.product-cell{display:flex;align-items:center;gap:10px;min-width:0}.product-thumb{width:48px;height:48px;flex:0 0 48px;object-fit:cover;border:1px solid #dbe3ec;border-radius:10px;background:#fff}.product-placeholder{display:grid;place-items:center;background:#f1f5f9;color:#64748b;font-size:19px}
.evidence-gallery{display:flex;align-items:center;gap:5px}.evidence-button{display:block;width:58px;height:46px;padding:0;border:1px solid #cbd5e1;border-radius:9px;overflow:hidden;background:#fff;cursor:zoom-in}.evidence-thumb{display:block;width:100%;height:100%;object-fit:cover}.image-count{display:grid;place-items:center;min-width:32px;height:32px;border-radius:999px;background:#123b63;color:#fff;font-size:11px;font-weight:900}.approval-record{display:flex;align-items:center;gap:18px;min-width:0}.approval-evidence{display:grid;gap:6px;padding-left:16px;border-left:1px solid #e2e8f0}
.image-view{z-index:80}.image-view section{position:relative;width:min(1000px,100%);max-height:94vh;display:grid;gap:10px;padding:14px;background:#fff;border-radius:18px;overflow:auto}.image-view img{display:block;width:100%;max-height:76vh;object-fit:contain;border-radius:12px;background:#0f172a}.image-view-close{position:absolute;top:24px;right:24px;z-index:1;border:0;border-radius:10px;padding:9px 13px;background:#fff;color:#123b63;font-weight:800;cursor:pointer;box-shadow:0 3px 15px #0f172a33}.image-view-footer{display:flex;align-items:center;justify-content:space-between;gap:10px}.image-view-footer p{margin:0;color:#475569;text-align:center}
.user-card{padding:18px;border-bottom:1px solid #e2e8f0}.user-card-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.user-card-head b{display:block}.user-controls{display:flex;gap:8px}.user-controls select{height:40px;border:1px solid #cbd5e1;border-radius:10px;padding:0 10px;background:#fff}.password-reset-info{margin-top:4px}.permission-grid{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:9px;margin-top:15px}.permission-check{display:flex;align-items:center;gap:8px;padding:10px 11px;border:1px solid #dbe3ec;border-radius:10px;background:#f8fafc;font-size:13px;font-weight:650;cursor:pointer}.permission-check input{width:18px;height:18px;accent-color:#123b63}.permission-check.locked{opacity:.7;cursor:not-allowed}.permission-note{margin-top:9px}
.push-prompt{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:10px;padding:10px 13px;border:1px solid #9fc6df;border-radius:12px;background:#eaf6ff}.push-prompt b,.push-prompt span{display:block}.push-prompt b{color:#123b63}.push-prompt span{margin-top:2px;color:#526b82;font-size:12px}.notification-control{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:13px;padding:9px;border:1px solid #c8dceb;border-radius:12px;background:#eef7fd}.notification-control .permission-check{margin:0;background:#fff}.notification-control .btn{margin-left:auto}

@media(max-width:1000px){.company-brand span{display:none}.company-brand img{width:200px}.metrics{grid-template-columns:1fr 1fr}.filters,.billing-filters,.stock-filters,.project-filters,.supplier-filters{grid-template-columns:1fr 1fr}.stock-summary{grid-template-columns:1fr}.project-summary{grid-template-columns:1fr 1fr}.cost-summary{align-items:flex-start;flex-direction:column}.cost-total-list{justify-content:flex-start}.cards,.catalog{grid-template-columns:1fr}.permission-grid{grid-template-columns:repeat(2,minmax(140px,1fr))}}
@media(max-width:650px){.wrap{padding:14px 10px}.top-inner{height:68px;padding:0 12px}.company-brand img{width:175px;height:50px}.push-prompt{align-items:stretch;flex-direction:column}.push-prompt .btn{width:100%}.hero{align-items:stretch;flex-direction:column;min-height:0}.hero .primary-action{position:static;transform:none;width:100%}.metrics{gap:7px}.metric{padding:9px 11px}.metric b{font-size:20px}.filters,.billing-filters,.stock-filters,.project-filters,.supplier-filters,.catalog-product-filter{grid-template-columns:1fr}.stock-summary,.project-summary{grid-template-columns:1fr}.cost-total{min-width:135px}.modal .row,.company-info-grid{grid-template-columns:1fr}.company-info-wide{grid-column:auto}.iban-row{grid-template-columns:44px minmax(0,1fr)}.iban-row .btn{grid-column:2;width:max-content}.user{display:none}.editable-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.editable-image>img{height:105px}.approval-row{align-items:flex-start;flex-direction:column}.approval-record{align-items:flex-start;flex-direction:column}.approval-evidence{padding-left:0;border-left:0}.user-card-head{align-items:flex-start;flex-direction:column}.user-controls{width:100%}.user-controls select{width:50%}.notification-control .btn{width:100%;margin-left:0}.permission-grid{grid-template-columns:1fr}.list-row{align-items:flex-start}.image-view-footer .btn{padding:0 10px}.product-suggestion-card{grid-template-columns:42px minmax(0,1fr)}.product-suggestion-card strong{grid-column:2}.install-banner{grid-template-columns:42px minmax(0,1fr) auto 24px}.install-banner img{width:42px;height:42px}.install-banner .btn{height:36px;padding:0 10px}}
@media(max-width:650px){.catalog-column-head{display:none}.catalog>.panel:first-child .list-row{grid-template-columns:1fr}.catalog>.panel:first-child .product-cell{grid-template-columns:38px minmax(0,1fr)}.catalog>.panel:first-child .product-cell>div>*{grid-column:2;border-right:0;border-bottom:1px solid #eef2f6;padding:3px 0}.catalog>.panel:first-child .product-cell>div>*:last-child{border-bottom:0}.catalog .catalog-actions{width:100%;min-width:0;grid-template-columns:auto 1fr auto;padding-left:46px}.catalog>.panel:nth-child(2) .list-row>div:first-child{grid-template-columns:1fr 1fr}.catalog>.panel:nth-child(2) .list-row>div:first-child>*{border-right:0;border-bottom:1px solid #eef2f6}}
@media(max-width:650px){.catalog-section-tabs{grid-template-columns:1fr}.catalog-section-tab{height:38px}.catalog.catalog-single>.panel.catalog-projects .project-list-row{grid-template-columns:1fr 1fr;gap:0 12px;padding:8px 10px}.catalog-projects .project-list-cell{border-right:0!important;border-bottom:1px solid #eef2f6!important;padding:6px 0!important}.catalog-projects .project-list-row>button{grid-column:1/-1;width:100%;margin-top:7px}.catalog-suppliers .list-row{align-items:center}}
@media(max-width:650px){.top-inner{gap:6px}.company-brand{flex:0 1 142px}.company-brand img{width:138px;height:48px}.user{display:block;max-width:170px;min-width:0;font-size:10px;line-height:1.25}.user>b{display:block;max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user br{display:none}.user .muted{font-size:9px}.user button{padding:3px}.user-controls{flex-wrap:wrap}.user-controls select{width:calc(50% - 4px)}.user-controls .btn{width:100%}}
@media(max-width:650px){.movement-product-search-row{grid-template-columns:1fr}.new-product-button{width:100%}.selected-product{grid-template-columns:42px minmax(0,1fr)}.selected-product .btn{grid-column:2;width:max-content}.new-product-form-head{align-items:flex-start}.new-product-form-head .btn{padding:0 9px}}
@media(max-width:650px){.movement-project-search-row{grid-template-columns:1fr}.new-project-button{width:100%}.selected-project{grid-template-columns:1fr}.selected-project .btn{width:max-content}.project-suggestion-card{grid-template-columns:minmax(0,1fr) auto}}
@media(max-width:650px){.movement-supplier-search-row{grid-template-columns:1fr}.new-supplier-button{width:100%}.selected-supplier{grid-template-columns:1fr}.selected-supplier .btn{width:max-content}.supplier-suggestion-card{grid-template-columns:minmax(0,1fr) auto}}
