:root{color-scheme:light;font-family:Segoe UI,Noto Sans,Arial,sans-serif;color:#111827;background:#f7f7fb}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at top left,#f9fafb,#f3f4f6 40%,#eef2f7)}a{color:inherit;text-decoration:none}.platform-shell{display:grid;grid-template-columns:180px 1fr;min-height:100vh;background:#eef2f5}.platform-content{padding:8px}.platform-main{margin-top:6px}.section-meta-row{margin-top:4px;margin-bottom:6px}.side{background:#12302c;color:#f2f4e9;padding:12px 10px}.brand{margin-bottom:10px}.logo{border-radius:12px;height:55px}.nav-item{display:flex;align-items:center;gap:6px;padding:8px 7px;border-radius:8px;margin-bottom:4px;color:#f2f4e9;font-size:14px}.nav-item.active{background:#e6d690;color:#1f2937}.nav-group{margin-top:8px}.nav-sub{margin:4px 0 8px 10px;border-left:2px solid rgba(230,214,144,.45);padding-left:8px;display:grid;gap:6px}.nav-sub-nested{margin:2px 0 2px 8px;border-left-color:#e6d6904d;padding-left:7px}.nav-sub-item{display:flex;align-items:center;gap:6px;padding:6px 7px;border-radius:8px;color:#f2f4e9;font-size:12px;opacity:.92}.nav-icon{width:16px;min-width:16px;height:16px;text-align:center;display:inline-flex;align-items:center;justify-content:center;opacity:.95}.app-icon{width:16px;height:16px;color:currentColor}.nav-sub-item.active{background:#e6d69059;color:#fff;opacity:1}.top{display:flex;justify-content:space-between;align-items:center;border:1px solid #e5e7eb;border-radius:8px;background:#fff;padding:6px 8px}.user{font-weight:600;font-size:13px;line-height:1.2}.top .row{gap:6px}.top .ghost-link,.top button.ghost,.top .notif-btn{min-height:32px;padding:5px 10px;font-size:13px;line-height:1;display:inline-flex;align-items:center;gap:6px}.card{background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:12px;box-shadow:none}.toolbar{display:flex;gap:8px;align-items:center;justify-content:space-between;margin-bottom:8px}.toolbar h2{margin:0;font-size:20px;line-height:1.2}.page-header{align-items:center}.page-title{margin:0;font-size:20px;line-height:1.2;font-weight:700}.tabs{display:flex;gap:8px;margin:10px 0 4px;flex-wrap:wrap}.tab{border:1px solid #e5e7eb;background:#f9fafb;color:#111827;padding:6px 10px;border-radius:8px;cursor:pointer;font-size:13px}.tab.active{background:#111827;color:#fff;border-color:#111827}.hint{font-size:12px;color:#6b7280;margin-top:6px}.link{background:none;border:none;padding:0;color:#111827;cursor:pointer;text-align:left;font:inherit}.section-title{font-size:16px;margin:0 0 8px}.doc-header-compact{display:grid;grid-template-columns:140px 170px 170px 120px;gap:6px;align-items:end}.number-inline{display:flex;gap:6px;align-items:center}.number-inline input{max-width:120px}.doc-warehouse-row{display:grid;grid-template-columns:180px 180px 180px;gap:6px;align-items:end}.field-half input,.field-half select{max-width:280px}.compact-form input,.compact-form select,.compact-form textarea{padding:6px 8px;font-size:13px}.compact-form label{margin-bottom:3px;font-size:11px;line-height:1.1}.grid{display:grid;gap:16px}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.pill{display:inline-flex;align-items:center;padding:2px 8px;border-radius:999px;background:#f3f4f6;border:1px solid #e5e7eb;font-size:12px}label{font-size:12px;color:#374151;display:block;margin-bottom:6px}input,select,textarea,button{font:inherit}input,select,textarea{width:100%;padding:8px 10px;border:1px solid #d1d5db;border-radius:6px;background:#fff}button{padding:8px 12px;border:1px solid #111827;background:#111827;color:#fff;border-radius:8px;cursor:pointer}button.secondary{background:#fff;color:#111827}button.ghost,.ghost-link{background:transparent;border:1px solid #d1d5db;color:#111827;padding:8px 12px;border-radius:8px}button.danger{background:#b42318;border-color:#b42318;color:#fff}.table{width:100%;border-collapse:collapse}.table th,.table td{border-bottom:1px solid #e5e7eb;padding:7px;text-align:left;font-size:13px}.compact-table th,.compact-table td{padding:5px;font-size:12px;vertical-align:top}.workspace-page{border-color:#dfe4ea;background:#fff}.workspace-page .toolbar{margin-bottom:6px}.workspace-page .table th{background:#fafbfd;position:sticky;top:0;z-index:1}.workspace-page .table th,.workspace-page .table td{padding:6px;font-size:12px}.ui-std{--control-height: 34px;--control-height-compact: 30px;--control-padding-x: 10px;--control-font-size: 13px}.ui-std input:not(.line-text-input):not(.line-date-input):not(.new-line-input):not(.new-line-date-input):not(.dyn-qty-input):not(.line-uom-select),.ui-std select:not(.line-uom-select),.ui-std textarea{min-height:var(--control-height);padding:6px var(--control-padding-x);font-size:var(--control-font-size)}.ui-std textarea{min-height:70px}.ui-std button:not(.line-op-btn):not(.col-del-btn):not(.line-name-del-btn):not(.line-drag-handle):not(.line-delete-btn){min-height:var(--control-height);padding:0 12px;font-size:var(--control-font-size);line-height:1;display:inline-flex;align-items:center;justify-content:center}.ui-std .compact-btn{min-height:var(--control-height-compact)!important;padding:0 10px!important;font-size:12px!important}.ui-std .table.compact-table th,.ui-std .table.compact-table td{padding:5px;font-size:12px}.doc-lines-table th.col-qty,.doc-lines-table td.col-qty{width:84px!important;min-width:84px!important;max-width:84px!important;padding-left:4px;padding-right:4px}.doc-lines-table th.col-uom,.doc-lines-table td.col-uom{width:74px!important;min-width:74px!important;max-width:74px!important;padding-left:4px;padding-right:4px}.doc-lines-table th.col-actions,.doc-lines-table td.col-actions{text-align:center!important}.doc-lines-table td.col-actions .row{justify-content:center!important}.products-table{table-layout:fixed;width:auto}.products-table th:nth-child(1),.products-table td:nth-child(1){width:28px;max-width:28px;text-align:center}.products-table th:nth-child(2),.products-table td:nth-child(2){width:700px;max-width:700px}.products-table th:nth-child(3),.products-table td:nth-child(3){width:140px;max-width:140px}.products-table th:nth-child(4),.products-table td:nth-child(4){width:50px;max-width:50px;white-space:nowrap}.products-table th:nth-child(5),.products-table td:nth-child(5){width:80px;max-width:80px;white-space:nowrap}.products-table th:nth-child(6),.products-table td:nth-child(6){width:300px;max-width:300px}.products-table th:nth-child(7),.products-table td:nth-child(7){width:36px;max-width:36px;text-align:center}.products-table th:last-child,.products-table td:last-child{width:72px;max-width:72px;white-space:nowrap;text-align:center}.product-name-cell{vertical-align:top}.product-name-ellipsis{display:-webkit-box;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-height:1.2;max-height:2.4em;word-break:break-word}.diff-cell-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:0}.products-row-clickable{cursor:pointer}.products-row-clickable:hover{background:#f9fafb}.product-actions-row{gap:4px;justify-content:flex-end;flex-wrap:nowrap}.products-filter-row{display:grid;gap:8px;grid-template-columns:minmax(220px,1.6fr) minmax(140px,.8fr) minmax(150px,.9fr) minmax(160px,.9fr) 110px;align-items:end}.search-submit-btn{width:100%;min-height:34px;padding:0 10px;font-size:13px}.small{font-size:12px;color:#6b7280}.required-label:after{content:" *";color:#b91c1c}.required-input{border-color:#ef4444!important;box-shadow:0 0 0 1px #ef444429}.settings-link{display:inline-flex;align-items:center;justify-content:center;min-height:42px;border:1px solid #d1d5db;border-radius:8px;background:#fff;color:#111827;font-weight:600}.toast{position:fixed;right:16px;top:16px;z-index:1000;display:flex;flex-direction:column;gap:8px}.toast-item{background:#111827;color:#fff;padding:10px 12px;border-radius:8px;min-width:240px;box-shadow:0 10px 24px #0003;font-size:12px}.toast-error{background:#dc2626}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a73;z-index:1100;display:flex;align-items:center;justify-content:center;padding:16px}.modal{width:100%;max-width:520px;background:#fff;border:1px solid #e5e7eb;border-radius:12px;box-shadow:0 20px 40px #0f172a33;padding:16px}.modal.success{border-color:#bbf7d0}.modal.error{border-color:#fecaca}.modal-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.modal-title{font-size:16px;font-weight:700}.modal-body{font-size:14px;color:#111827;margin-bottom:12px}.modal-message{margin-bottom:8px}.modal-footer{display:flex;justify-content:flex-end;gap:8px}.login-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(120deg,#efe8d8,#e7f2ec)}.login-card{width:360px;display:grid;gap:8px}.error{color:#b91c1c}@media(max-width:900px){.platform-shell,.grid-2,.grid-3,.dashboard-grid,.dashboard-sections,.doc-header-compact,.doc-warehouse-row{grid-template-columns:1fr}}.section-card{margin-bottom:12px}.toolbar-main{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.toolbar-left{flex:1 1 auto}.toolbar-actions{margin-left:auto;justify-content:flex-end}.flow-compact{display:inline-flex;align-items:center;gap:2px;flex-wrap:wrap}.flow-step{font-size:12px;color:#64748b}.flow-step[data-active=true]{color:#16a34a;font-weight:700}.flow-sep{color:#94a3b8;margin:0 2px}.audit-box{border:1px solid #e5e7eb;border-radius:8px;padding:8px 10px;margin-bottom:10px;background:#f8fafc}.audit-title{font-weight:600;font-size:12px;margin-bottom:6px}.audit-row{font-size:12px;line-height:1.3}.audit-time{color:#64748b;margin-right:6px}.plain-fieldset{border:0;padding:0;margin:0;min-width:0}.create-grid{display:grid;grid-template-columns:repeat(8,minmax(120px,1fr));gap:6px 8px;align-items:end;margin-top:6px}.create-grid label{display:block;margin-bottom:2px;font-size:11px;line-height:1.1;color:#475569}.create-grid input,.create-grid select{height:30px;padding:4px 6px;font-size:12px}.create-toolbar h3{margin:0;font-size:16px}.lzk-table-wrap{overflow-x:auto;overflow-y:visible;border:1px solid #e5e7eb;border-radius:8px}.lzk-table-compact{min-width:1100px;margin:0}.lzk-table-compact th,.lzk-table-compact td{padding:2px 3px;font-size:10.5px;line-height:1.1;white-space:nowrap}.lzk-table-compact input,.lzk-table-compact select{min-height:20px!important;height:20px;padding-top:0;padding-bottom:0;line-height:1.05}.lzk-table-compact .compact-btn{min-height:20px!important;height:20px;padding:0 6px!important;font-size:10.5px!important;border-radius:5px}.line-no-cell{position:relative;display:inline-flex;align-items:center;padding-right:12px}.line-drag-handle{position:absolute;top:50%;right:0;width:11px;height:11px;min-height:11px;border:1px solid #d1d5db;border-radius:3px;background:#fff;color:#64748b;font-size:8px;line-height:8px;padding:0;transform:translateY(-50%);opacity:0;pointer-events:none;transition:opacity .12s ease;cursor:grab}.line-no-cell:hover .line-drag-handle,.line-no-cell:focus-within .line-drag-handle{opacity:.85;pointer-events:auto}.lzk-row-dragging .line-drag-handle{opacity:.5;pointer-events:auto}.line-drag-handle:active{cursor:grabbing}.lzk-row-drop-target td{background:#f8fafc}.lzk-row-dragging{opacity:.38}.lzk-table-compact th{background:#f8fafc;font-weight:600}.line-text-input,.line-date-input,.new-line-input,.new-line-date-input{width:100%;min-width:105px;padding:1px 4px;border:1px solid #d1d5db;border-radius:4px;font-size:10.5px;min-height:20px}.line-name-cell{position:relative}.line-name-cell .line-text-input{padding-right:16px}.line-text-row-input{text-align:center;color:#b91c1c;font-weight:700}.line-text-row-input::placeholder{color:#ef4444;opacity:.9}.line-name-del-btn{position:absolute;top:1px;right:1px;width:11px;height:11px;min-height:11px;border:1px solid #d1d5db;border-radius:3px;background:#f8fafc;color:#64748b;font-size:9px;line-height:9px;padding:0;cursor:pointer}.line-name-del-btn:hover{border-color:#ef4444;color:#b91c1c;background:#fff1f2}.line-text-input.input-not-found{border-color:#ef4444;box-shadow:0 0 0 1px #ef44442e inset}.line-uom-select,.new-line-uom{width:46px;padding:1px 3px;border:1px solid #d1d5db;border-radius:4px;font-size:10.5px;min-height:20px}.uom-col{width:50px;min-width:50px}.add-col-cell{width:18px;min-width:18px;text-align:center}.line-op-btn{width:14px;height:14px;min-height:14px;border:1px solid #d1d5db;border-radius:4px;background:#f8fafc;color:#64748b;padding:0;font-size:10px;line-height:12px;box-sizing:border-box}.line-op-btn:hover{border-color:#94a3b8;color:#334155;background:#f1f5f9}.dyn-col-head{position:relative;padding-right:10px}.col-del-btn{position:absolute;top:-2px;right:-2px;width:11px;height:11px;border:1px solid #e5e7eb;border-radius:50%;background:#fff;color:#94a3b8;font-size:8px;line-height:9px;padding:0}.col-del-btn:hover{border-color:#cbd5e1;color:#475569}.line-name-cell{min-width:210px}.line-nomenclature{margin-top:2px;font-size:10px;color:#64748b}.dyn-qty-input{width:52px;padding:1px 2px;border:1px solid #d1d5db;border-radius:4px;font-size:10.5px;min-height:20px}.action-cell{display:flex;align-items:center;gap:4px;flex-wrap:wrap}.compact-btn{padding:2px 6px;font-size:11px;min-height:24px}.th-2line{display:inline-block;text-align:center;line-height:1.05}.line-delete-btn{border:1px solid #dc2626;background:#fff;color:#dc2626;border-radius:4px;padding:2px 6px;min-height:22px;font-size:12px}.new-line-row td{background:#fcfcfd}.lzk-remarks{margin-bottom:6px;border:1px solid #fecaca;background:#fff7f7;border-radius:6px;padding:4px 5px}.lzk-remarks-head{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:3px}.lzk-remarks-title{font-size:11px;font-weight:600;color:#7f1d1d;margin-bottom:0}.lzk-remarks-list{display:grid;gap:2px}.lzk-remark{border:1px solid #f1f5f9;background:#fff;border-radius:5px;padding:3px 5px}.lzk-remark.not_found_1c{border-color:#fecaca}.lzk-remark.supply_proposal{border-color:#fde68a}.lzk-remark.replacement_decision{border-color:#bfdbfe}.lzk-remark.not_found_decision{border-color:#bbf7d0}.lzk-remark-head{display:flex;justify-content:space-between;gap:6px;align-items:center;margin-bottom:1px}.lzk-remark-head strong{font-size:11px;line-height:1.15}.lzk-remark .small{font-size:10px;line-height:1.2}.lzk-remark-text{margin:0}.lzk-remark-meta{margin-top:1px}.lzk-remark-actions{gap:4px;margin-top:2px}.lzk-remarks .compact-btn{min-height:20px;padding:1px 5px;font-size:10px;border-radius:6px}.lzk-list-table th,.lzk-list-table td{padding:4px 5px;font-size:12px}.top-right-toast{position:fixed;top:14px;right:14px;z-index:1300;background:#16a34a;color:#fff;border-radius:8px;padding:9px 14px;font-size:14px;font-weight:600;box-shadow:0 8px 24px #00000029}.dashboard-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.dashboard-kpi{border:1px solid #e5e7eb;border-radius:8px;padding:8px;background:#fff}.dashboard-kpi-value{font-size:22px;line-height:1.1;font-weight:700;margin:4px 0}.dashboard-sections{display:grid;grid-template-columns:1.5fr 1fr;gap:8px}.dashboard-section{border:1px solid #e5e7eb;border-radius:8px;padding:8px;background:#fff}.dashboard-bars{display:grid;gap:6px}.dashboard-bar-row{display:flex;align-items:center;gap:8px}.dashboard-bar-track{flex:1;height:8px;border-radius:999px;background:#eef2f7;overflow:hidden}.dashboard-bar-fill{height:100%;border-radius:999px;background:#0f766e}.dashboard-focus-list{display:grid;gap:6px}.notif-wrap{position:relative}.notif-btn{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:5px 10px;white-space:nowrap}.notif-icon{width:16px;height:16px;display:inline-flex;align-items:center;justify-content:center}.notif-label{font-size:13px}.notif-count{min-width:18px;height:18px;padding:0 6px;border-radius:999px;background:#f3f4f6;color:#374151;border:1px solid #e5e7eb;font-size:10px;line-height:16px;text-align:center;font-weight:700}.notif-count.has-unread{background:#dc2626;color:#fff;border-color:#dc2626}.notif-dropdown{position:absolute;top:calc(100% + 6px);right:0;width:360px;max-width:min(360px,calc(100vw - 24px));border:1px solid #e5e7eb;border-radius:8px;background:#fff;box-shadow:0 14px 34px #0f172a29;z-index:1200;overflow:hidden}.notif-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px;border-bottom:1px solid #f1f5f9}.notif-list{max-height:360px;overflow:auto;padding:6px;display:grid;gap:6px}.notif-item{width:100%;border:1px solid #e5e7eb;border-radius:8px;background:#fff;padding:7px;text-align:left;color:#111827}.notif-item.unread{border-color:#93c5fd;background:#eff6ff}.notif-message{font-size:12px;line-height:1.25;margin-bottom:3px}@media(max-width:1280px){.create-grid{grid-template-columns:repeat(4,minmax(120px,1fr))}}@media(max-width:900px){.create-grid{grid-template-columns:repeat(2,minmax(120px,1fr))}}@media(max-width:640px){.create-grid{grid-template-columns:1fr}}.loading-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#ffffff8c;backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;z-index:9999;pointer-events:all}.loading-overlay .loading-ring{width:64px;height:64px;border:6px solid rgba(30,41,59,.12);border-top-color:#2563eb;border-radius:50%;animation:loading-ring-spin .9s linear infinite}@keyframes loading-ring-spin{to{transform:rotate(360deg)}}.loading-overlay .loading-label{font-size:14px;font-weight:500;color:#1e293b;letter-spacing:.2px;padding:6px 14px;background:#ffffffe6;border-radius:999px;box-shadow:0 2px 8px #00000014}.spinner{width:36px;height:36px;border:4px solid rgba(30,41,59,.12);border-top-color:#2563eb;border-radius:50%;animation:loading-ring-spin .9s linear infinite}@keyframes fade-in{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}.products-list-card{animation:fade-in .3s ease-out}.currency-select-btn{width:100%;display:flex;align-items:center;gap:8px;padding:6px 10px;border:1px solid #d1d5db;border-radius:6px;background:#fff;color:#111827;cursor:pointer;font-size:14px;min-height:36px;justify-content:space-between}.currency-select-btn:hover{border-color:#9ca3af}@media print{.side,.top,.no-print{display:none!important}.platform-shell{display:block;background:#fff}.platform-content{padding:0}.platform-main{margin-top:0}body{background:#fff}.card{box-shadow:none;border:none}}
