:root{color:#172033;background:#f4f7fb;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:13px}*{box-sizing:border-box}body{margin:0}main{max-width:1280px;margin:0 auto;padding:24px 16px}.admin-screen{width:100vw;max-width:none;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);padding:16px 20px}.topbar{justify-content:space-between;align-items:center;margin-bottom:16px;display:flex}.topbar>div{order:1}.topbar-restore-button{order:2;margin-left:auto;margin-right:8px}.topbar>.topbar-restore-group{flex-wrap:wrap;order:2;align-items:center;gap:10px;margin-left:auto;margin-right:8px;display:flex}.cloud-sql-schedule-note{color:#64748b;white-space:nowrap;font-size:11px}.login-schedule-note{color:#64748b;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;margin:14px 0 0;padding:10px 12px;font-size:12px;line-height:1.5}.topbar>button:not(.topbar-restore-button){order:3}.topbar h1{margin:0;font-size:20px;font-weight:700}.muted{color:#64748b}.card{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:14px;box-shadow:0 1px 3px #0000000d}.card form{gap:10px;display:grid}.notice{margin-bottom:12px}.toast{z-index:20;color:#fff;border-radius:6px;max-width:320px;padding:10px 14px;font-size:13px;position:fixed;top:16px;right:16px;box-shadow:0 4px 12px #0000001a}.toast-success{background:#16a34a}.toast-error{background:#dc2626}.form-grid{background:#fff;border:1px solid #e2e8f0;border-radius:8px;grid-template-columns:repeat(4,1fr);gap:10px;padding:14px;display:grid}.form-actions{align-items:end;gap:6px;display:flex}.partner-settings-heading{margin-left:auto}.settings-partners .section-title-row>.partner-settings-heading{order:1}.settings-partners .section-title-row>.production-filter-button{order:2;margin-left:8px}.partner-form .partner-form-settings{display:none}.partner-contract-settings-dropdown{background:#fff;border:1px solid #cbd5e1;border-radius:8px;gap:12px;margin:10px 0 12px;padding:12px;display:grid}.partner-contract-settings-grid{grid-template-columns:repeat(4,1fr);align-items:end;gap:10px;display:grid}.partner-contract-settings-grid label{color:#334155;gap:5px;font-size:12px;display:grid}.partner-setting-input-wrap{display:block;position:relative}.partner-setting-input-wrap input{width:100%;padding-right:48px}.partner-setting-input-wrap>span{color:#64748b;pointer-events:none;font-size:12px;position:absolute;top:50%;right:10px;transform:translateY(-50%)}.partner-contract-settings-grid input:not([type=checkbox]){min-height:32px}.partner-contract-auto-code{align-items:center;min-height:32px;gap:7px!important;display:flex!important}.partner-contract-settings-actions{justify-content:flex-end;gap:8px;display:flex}.full-width{grid-column:1/-1}.company-form{grid-template-columns:repeat(2,1fr)}.history-panel{margin-top:18px}.company-logo-field{gap:6px;display:grid}.company-logo-field>span{color:#475569;font-size:12px;font-weight:500}.company-logo-control{align-items:center;gap:10px;min-height:42px;display:flex}.company-logo-upload{color:#334155;cursor:pointer;background:#f8fafc;border:1px solid #cbd5e1;border-radius:6px;align-items:center;padding:7px 11px;font-size:12px;display:inline-flex;position:relative}.company-logo-upload:hover{background:#f1f5f9;border-color:#94a3b8}.company-logo-upload input{opacity:0;pointer-events:none;width:1px;height:1px;position:absolute}.company-logo-preview{object-fit:contain;background:#fff;border:1px solid #e2e8f0;border-radius:6px;width:42px;height:42px;padding:4px}.history-panel .section-title-row>div>.muted{display:none}.history-panel table{margin-top:10px}label{color:#475569;gap:4px;font-size:12px;font-weight:500;display:grid}input,button,select{font:inherit;border:1px solid #cbd5e1;border-radius:6px;padding:6px 10px;font-size:12px}button{cursor:pointer;color:#fff;background:#1e293b;border:0;font-weight:500}button:disabled{opacity:.6;cursor:wait}.section{margin-top:18px}.inventory-title-row{margin-bottom:12px}.inventory-title-row h2{margin:0;font-size:16px}.inventory-toggle{background:#1e293b;padding:6px 10px}.inventory-form-dropdown{opacity:0;max-height:0;transition:max-height .35s,opacity .2s,margin-bottom .35s;overflow:hidden}.inventory-form-dropdown>form{border-width:0;padding-top:0;padding-bottom:0;transition:padding .35s,border-width .35s}.inventory-form-dropdown.open{opacity:1;max-height:1000px;margin-bottom:18px}.inventory-form-dropdown.open>form{border-width:1px;padding-top:14px;padding-bottom:14px}table{border-collapse:collapse;background:#fff;border:1px solid #e2e8f0;border-radius:6px;width:100%;font-size:12px;overflow:hidden}th,td{text-align:left;border-bottom:1px solid #f1f5f9;padding:8px 12px}th{color:#475569;background:#f8fafc;border-bottom:1px solid #e2e8f0;font-weight:600}@media (max-width:800px){.form-grid,.contract-fieldset{grid-template-columns:1fr}.contract-fieldset legend{grid-column:auto}.company-bhxh-fieldset{grid-template-columns:1fr}}.admin-tabs{border-bottom:1px solid #e2e8f0;gap:4px;margin:0 0 16px;display:flex}.admin-tabs button{color:#64748b;background:0 0;border-bottom:2px solid #0000;border-radius:0;padding:8px 14px;font-size:13px;font-weight:500}.admin-tabs button.active{color:#0f172a;border-bottom-color:#0284c7;font-weight:600}.admin-tabs button:disabled{opacity:.45;cursor:not-allowed}.admin-tabs span{color:#475569;background:#f1f5f9;border-radius:10px;margin-left:4px;padding:1px 6px;font-size:11px}.accounting-panel{margin-top:18px}.accounting-toolbar{justify-content:space-between;align-items:end;gap:12px;margin-bottom:16px;display:flex}.accounting-eyebrow{color:#64748b;letter-spacing:.08em;margin:0 0 4px;font-size:11px;font-weight:700}.accounting-toolbar h2{margin:0;font-size:20px}.accounting-toolbar p{margin:4px 0 0;font-size:12px}.accounting-actions{align-items:center;gap:6px;display:flex}.accounting-actions button.secondary{color:#1e293b;background:#fff;border:1px solid #cbd5e1}.accounting-period{align-items:center;gap:6px;display:flex}.accounting-period label{color:#64748b;font-size:11px}.accounting-period select{color:#1e293b;background:#fff;border:1px solid #cbd5e1;border-radius:6px;padding:6px 10px;font-size:12px}.accounting-status{color:#166534;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:6px;align-items:center;gap:6px;margin-bottom:16px;padding:8px 12px;font-size:12px;display:flex}.accounting-status-dot{background:#16a34a;border-radius:50%;width:6px;height:6px}.accounting-metrics{grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:16px;display:grid}.accounting-metric{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:12px 14px;box-shadow:0 1px 2px #0000000d}.accounting-metric span{color:#64748b;font-size:11px}.accounting-metric strong{margin-top:4px;font-size:18px;font-weight:700;display:block}.accounting-metric small{color:#64748b;margin-top:4px;font-size:11px;display:block}.accounting-report{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:16px}.accounting-report-header{justify-content:space-between;align-items:start;gap:12px;margin-bottom:12px;display:flex}.accounting-report-header h3{margin:0;font-size:15px}.accounting-report-header p{color:#64748b;margin:3px 0 0;font-size:12px}.accounting-report-grid{grid-template-columns:1fr 1fr;gap:14px;display:grid}.accounting-column{min-width:0}.accounting-column h4{background:#f8fafc;border:1px solid #e2e8f0;border-bottom:0;border-radius:6px 6px 0 0;margin:0;padding:8px 12px;font-size:12px}.accounting-column table{border:1px solid #e2e8f0;border-radius:0 0 6px 6px}.accounting-column th,.accounting-column td{padding:8px 12px}.accounting-column th:last-child,.accounting-column td:last-child{text-align:right;white-space:nowrap}.accounting-column tbody tr:last-child td{border-bottom:0}.accounting-total td{background:#f8fafc;font-weight:700}.accounting-note{color:#64748b;margin:12px 0 0;font-size:12px}@media (max-width:800px){.accounting-toolbar,.accounting-report-header{flex-direction:column;align-items:stretch}.accounting-actions,.accounting-period{flex-wrap:wrap}.accounting-metrics,.accounting-report-grid{grid-template-columns:1fr}}.accounting-grid-panel{background:#fff;border:1px solid #e2e8f0;border-radius:8px;margin-top:16px;box-shadow:0 1px 3px #0000000d}main.accounting-screen{width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);padding:16px 20px;max-width:none!important}.accounting-grid-toolbar{border-bottom:1px solid #e2e8f0;align-items:center;gap:16px;min-height:48px;padding:8px 12px;font-size:12px;display:flex}.accounting-grid-toolbar>select{color:#334155;background:#fff;border:1px solid #cbd5e1;border-radius:4px;width:160px;padding:5px 8px;font-size:12px}.accounting-grid-field{color:#64748b;align-items:center;gap:6px;font-size:12px;display:flex}.accounting-grid-field .accounting-period-name{color:#334155;white-space:nowrap;margin-right:3px;font-weight:500}.accounting-grid-field select{color:#0f172a;appearance:auto;background:#fff;border:1px solid #cbd5e1;border-radius:7px;width:54px;height:30px;padding:0 18px 0 8px;font-size:12px}.accounting-grid-field select[id$=year]{width:78px}.accounting-grid-field input{text-align:center;border-color:#cbd5e1;border-radius:4px;width:54px;padding:4px 6px;font-size:12px}.accounting-grid-field input[type=number]::-webkit-inner-spin-button{opacity:1}.accounting-grid-tools{gap:4px;margin-left:auto;display:flex}.accounting-grid-tools button{color:#475569;background:#fff;border:1px solid #cbd5e1;border-radius:4px;place-items:center;min-width:28px;height:28px;padding:0;font-size:14px;display:inline-grid}.accounting-grid-tools button:hover{color:#0f172a;background:#f1f5f9}.accounting-settings-modal{background:#fff;border:1px solid #dbe4ee;border-radius:10px;width:min(480px,100%);overflow:hidden;box-shadow:0 16px 36px #0f172a33}.accounting-settings-header{border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:flex-start;gap:16px;padding:16px 18px;display:flex}.accounting-settings-header h2{color:#0f172a;margin:0;font-size:17px}.accounting-settings-header p{color:#64748b;margin:5px 0 0;font-size:12px}.accounting-settings-close{color:#475569;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:5px;width:28px;height:28px;font-size:20px;line-height:1}.accounting-settings-close:hover{background:#f1f5f9}.accounting-period-actions{background:#fff;gap:10px;padding:18px;display:grid}.accounting-period-action-buttons{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.accounting-period-locked{color:#b91c1c;font-size:12px;font-weight:600}.accounting-period-action-buttons button{color:#334155;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:5px;min-height:30px;padding:5px 10px;font-size:12px}.accounting-period-action-buttons button:hover:not(:disabled){background:#f1f5f9}.accounting-period-action-buttons button:disabled{cursor:not-allowed;opacity:.5}.accounting-period-action-buttons .accounting-lock-period-button{color:#b91c1c;border-color:#fca5a5}.accounting-opening-info{color:#475569;vertical-align:middle;cursor:help;border:1px solid #94a3b8;border-radius:50%;place-items:center;width:15px;height:15px;margin-left:5px;font-size:10px;font-weight:700;display:inline-grid;position:relative}.accounting-opening-tooltip{z-index:20;color:#64748b;text-align:left;background:#fff;border:1px solid #dbe3ec;border-radius:7px;width:270px;padding:9px 11px;font-size:11px;font-weight:400;display:none;position:absolute;top:calc(100% + 8px);left:0;box-shadow:0 5px 14px #0f172a14}.accounting-opening-tooltip strong,.accounting-opening-tooltip span{display:block}.accounting-opening-tooltip strong{color:#64748b;margin-bottom:5px;font-weight:400}.accounting-opening-info:hover .accounting-opening-tooltip,.accounting-opening-info:focus .accounting-opening-tooltip{display:block}.admin-tabs .accounting-opening-info{background:0 0;border:0;border-radius:0;width:16px;height:16px;margin-left:5px;padding:0;display:inline-grid}.admin-tabs .accounting-opening-info>img{opacity:.72;width:16px;height:16px;display:block}.admin-tabs .accounting-opening-tooltip{z-index:30;color:#334155;background:#fff;border:1px solid #dbe3ec;border-radius:7px;width:270px;height:auto;margin-left:0;padding:9px 11px;font-size:11px;font-weight:400;line-height:1.4;display:none;position:absolute;top:calc(100% + 8px);left:0;box-shadow:0 5px 14px #0f172a14}.admin-tabs .accounting-opening-tooltip strong,.admin-tabs .accounting-opening-tooltip span{color:#64748b;background:0 0;border:0;padding:0;font-weight:400}.admin-tabs .accounting-opening-tooltip strong{margin-bottom:5px}.admin-tabs .accounting-opening-info:hover .accounting-opening-tooltip,.admin-tabs .accounting-opening-info:focus .accounting-opening-tooltip{display:block}.accounting-toolbar-chevron{width:10px;height:10px;display:block;position:relative}.accounting-toolbar-chevron:before,.accounting-toolbar-chevron:after{content:"";border-bottom:1.5px solid;border-right:1.5px solid;width:5px;height:5px;position:absolute;left:50%;transform:translate(-50%)rotate(45deg)}.accounting-toolbar-chevron:before{top:0}.accounting-toolbar-chevron:after{top:4px}.accounting-toolbar-chevron.expanded:before,.accounting-toolbar-chevron.expanded:after{transform:translate(-50%,2px)rotate(225deg)}.accounting-grid-wrap{overflow-x:auto}main.accounting-screen .accounting-grid-table{table-layout:fixed;border:0;border-radius:0;width:100%;min-width:1120px;font-size:11.5px}.accounting-grid-table th,.accounting-grid-table td{white-space:nowrap;color:#334155;border-bottom:1px solid #f1f5f9;border-right:1px solid #f1f5f9;height:26px;padding:4px 8px}main.accounting-screen .accounting-grid-table td:first-child{word-break:normal;height:auto;line-height:1.3;white-space:normal!important;overflow-wrap:anywhere!important}.accounting-grid-table td:nth-child(2){white-space:nowrap;text-overflow:ellipsis;color:#64748b;overflow:hidden}.accounting-grid-table th{color:#475569;background:#f8fafc;border-bottom:1px solid #e2e8f0;height:30px;font-weight:600}.accounting-grid-table th:first-child,.accounting-grid-table td:first-child{width:34%}.accounting-grid-table th:nth-child(2),.accounting-grid-table td:nth-child(2){width:10%}.accounting-grid-table th:nth-child(n+3),.accounting-grid-table td:nth-child(n+3){text-align:right;font-variant-numeric:tabular-nums;width:14%}.accounting-grid-table tr:hover td{background:#f8fafc}.accounting-grid-table .accounting-balance-cell{white-space:nowrap}.accounting-grid-table .accounting-balance-unit{color:#64748b;margin-left:3px;font-size:10px;font-weight:400}.accounting-grid-table .accounting-grid-section td{color:#0f172a;text-transform:uppercase;font-size:12px;font-weight:600}.accounting-grid-table .level-1 td{color:#1e293b;font-weight:600}.accounting-grid-table .level-2 td{color:#334155;font-weight:500}.accounting-grid-table .level-3 td{color:#475569;font-weight:400}.accounting-grid-table .level-1 td:first-child{padding-left:20px}.accounting-grid-table .level-2 td:first-child{padding-left:36px}.accounting-grid-table .level-3 td:first-child{color:#64748b;padding-left:52px}.accounting-chevron,.accounting-chevron-spacer{vertical-align:middle;box-sizing:border-box;flex:0 0 18px;place-items:center;width:18px;min-width:18px;height:18px;margin:0 6px 0 0;padding:0;font-size:13px;line-height:1;display:inline-grid}.accounting-description-content{align-items:center;max-width:100%;display:inline-flex}.accounting-chevron{color:#64748b;background:#fff;border:1px solid #cbd5e1;border-radius:50%}.accounting-chevron-icon{border-bottom:1.5px solid;border-right:1.5px solid;width:5px;height:5px;display:block;transform:rotate(-45deg)}.accounting-chevron-icon.expanded{transform:rotate(45deg)translate(-1px,-1px)}.accounting-chevron-spacer{background:0 0;border:1px solid #0000}.accounting-chevron:hover{color:#0f172a;background:#f8fafc;border-color:#94a3b8}@media (max-width:900px){.accounting-grid-toolbar{flex-wrap:wrap;gap:8px}.accounting-grid-tools{margin-left:0}}.accounting-reports-panel{background:#fff;border:1px solid #e2e8f0;border-radius:8px;margin-top:16px;overflow:visible;box-shadow:0 1px 3px #0f172a0d}.accounting-report-heading{justify-content:space-between;align-items:flex-start;gap:20px;padding:18px 20px 14px;display:flex}.accounting-report-heading h2{color:#0f172a;margin:0;font-size:20px}.accounting-report-heading p{margin:4px 0 0;font-size:12px}.accounting-report-toolbar{background:#f8fafc;border-top:1px solid #f1f5f9;border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:flex-end;gap:14px;padding:10px 20px;display:flex;position:static}.accounting-report-toolbar-sticky{position:sticky;top:0;box-shadow:0 2px 5px #0f172a0f;z-index:10!important}.accounting-report-filters{flex-wrap:wrap;align-items:flex-end;gap:8px;display:flex}.accounting-report-filters label{color:#64748b;gap:4px;font-size:11px;font-weight:500;display:grid}.accounting-report-filters input,.accounting-report-filters select{color:#334155;background:#fff;border:1px solid #cbd5e1;border-radius:5px;min-height:30px;padding:5px 8px;font-size:12px}.accounting-report-filters select{min-width:170px}.accounting-report-search input{min-width:190px}.routing-form{background:#fff;border:1px solid #e2e8f0;border-radius:8px;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-bottom:10px;padding:10px;display:grid}.routing-form label{color:#334155;gap:3px;font-size:11px;display:grid}.routing-note-field{grid-column:span 2}.routing-operation-editor{grid-column:1/-1;gap:5px;display:grid}.routing-operation-heading{justify-content:space-between;align-items:center;display:flex}.routing-operation-heading button{padding:2px 4px}.routing-operation-row{grid-template-columns:44px 1.4fr 130px 100px 32px;gap:5px;display:grid}.routing-operation-row button{color:#b91c1c}.routing-sequence{color:#334155;background:#f8fafc;border:1px solid #cbd5e1;border-radius:4px;justify-content:center;align-items:center;min-width:34px;height:28px;font-size:11px;display:inline-flex}.routing-section input,.routing-section select{height:28px;min-height:28px;padding:4px 7px;font-size:11px}.routing-section button{box-shadow:none;background:0 0;border:0;font-size:11px}.routing-section button:hover{background:#f1f5f9}.routing-section .production-add-button{padding:3px 6px;font-weight:600}.routing-section .routing-table td:last-child button{font-weight:500;color:#2563eb!important;background:0 0!important;border:0!important;border-radius:0!important;padding:2px 4px!important}.routing-section .routing-table td:last-child button:last-child{color:#dc2626!important}.routing-section .routing-table td:last-child button:hover{text-decoration:underline;background:0 0!important}.routing-table{border-collapse:collapse;background:#fff;width:100%;font-size:11px}.routing-table th,.routing-table td{text-align:left;border:1px solid #e2e8f0;height:28px;padding:4px 8px;line-height:1.2}.routing-table th{color:#475569;background:#f8fafc}@media (max-width:900px){.routing-form{grid-template-columns:1fr 1fr}.routing-note-field{grid-column:span 2}.routing-operation-row{grid-template-columns:60px 1fr 1fr}}.sales-quote-production-warning{color:#92400e;background:#fffbeb;border:1px solid #f59e0b;border-radius:5px;margin:8px 0;padding:7px 10px;font-size:11px}.sales-quote-moq-warning{color:#b91c1c;background:#fef2f2;border:1px solid #fecaca;border-radius:5px;margin:8px 0;padding:7px 10px;font-size:11px}.accounting-report-filters>.accounting-ledger-toolbar-filter{gap:4px;display:grid;position:relative;width:150px!important;min-width:150px!important;max-width:150px!important}.accounting-account-select{width:150px;position:relative}.accounting-account-select summary{box-sizing:border-box;color:#334155;cursor:pointer;white-space:nowrap;text-overflow:ellipsis;background:#fff;border:1px solid #cbd5e1;border-radius:5px;width:150px;min-height:30px;padding:7px 28px 7px 10px;font-size:12px;list-style:none;overflow:hidden}.accounting-account-select summary::-webkit-details-marker{display:none}.accounting-account-select summary:after{content:"";border-bottom:2px solid #334155;border-right:2px solid #334155;width:6px;height:6px;position:absolute;top:11px;right:11px;transform:rotate(45deg)}.accounting-account-menu{z-index:50;box-sizing:border-box;background:#fff;border:1px solid #cbd5e1;border-radius:5px;width:max-content;min-width:100%;max-width:calc(100vw - 16px);max-height:220px;padding:4px 0;display:grid;position:absolute;top:calc(100% + 4px);left:0;overflow:hidden auto;box-shadow:0 8px 18px #0f172a29}.accounting-account-menu button{box-sizing:border-box;color:#334155;cursor:pointer;text-align:left;white-space:nowrap;background:#fff;border:0;border-radius:0;width:max-content;min-width:100%;padding:6px 10px;font-size:12px}.accounting-account-menu button:hover,.accounting-account-menu button.is-selected{background:#e2e8f0}.accounting-report-filters>.accounting-ledger-toolbar-filter select{width:150px!important;min-width:150px!important;max-width:150px!important}.accounting-report-summary{grid-template-columns:repeat(3,1fr);gap:10px;padding:14px 20px;display:grid}.accounting-report-summary article{background:#fff;border:1px solid #e2e8f0;border-radius:6px;gap:3px;padding:10px 12px;display:grid}.accounting-report-summary span,.accounting-report-summary small{color:#64748b;font-size:11px}.accounting-report-summary strong{color:#0f172a;font-variant-numeric:tabular-nums;font-size:17px}.accounting-report-table-wrap{overflow:visible}.accounting-report-table{border:0;border-radius:0;width:100%;min-width:1240px;font-size:11.5px}.accounting-report-table th,.accounting-report-table td{vertical-align:middle;white-space:nowrap;border-right:1px solid #f1f5f9;padding:8px 9px}.accounting-report-table th{color:#475569;background:#f1f5f9;font-size:11px}.accounting-report-table thead th{z-index:2;position:sticky;top:0}.accounting-report-table td{color:#334155}.accounting-report-table .journal-entry-line td{border-bottom-color:#e2e8f0}.accounting-report-table .journal-description-row td{color:#334155;background:#f1f5f9;border-bottom:1px solid #cbd5e1;font-style:italic}.accounting-report-table .journal-description-row .journal-description-cell{white-space:normal;overflow-wrap:anywhere;text-align:left;font-style:normal}.journal-entry-lines-count{margin-top:4px;font-style:italic;color:#94a3b8!important}.accounting-report-table .number{text-align:right;font-variant-numeric:tabular-nums}.accounting-report-table td small{color:#64748b;text-overflow:ellipsis;max-width:145px;font-size:10px;display:block;overflow:hidden}.accounting-report-table tfoot td{color:#0f172a;background:#f8fafc;border-top:2px solid #cbd5e1;font-weight:700}.accounting-report-table tfoot{z-index:1;position:sticky;bottom:0}.journal-table-wrap{padding-bottom:0}.accounting-journal-total-bar{z-index:10;color:#0f172a;background:#fff;border:1px solid #cbd5e1;border-bottom:0;border-radius:7px 7px 0 0;grid-template-columns:minmax(0,1fr) 180px 180px;align-items:center;gap:0;width:calc(100vw - 40px);min-width:0;min-height:44px;padding:0 12px;font-size:11.5px;display:grid;position:fixed;bottom:0;left:20px;right:20px;box-shadow:0 -4px 14px #0f172a1a}.accounting-journal-total-bar:before{content:"";background:#94a3b8;border-radius:7px 7px 0 0;height:2px;position:absolute;top:-1px;left:-1px;right:-1px}.accounting-journal-total-bar strong:first-child{color:#334155;letter-spacing:.01em;padding-left:0;font-size:12px}.accounting-journal-total-bar .number{text-align:right;font-variant-numeric:tabular-nums;padding-right:0;font-size:12px}.accounting-report-status{color:#166534;font-size:10px}.accounting-report-status.pending{color:#a16207}.accounting-report-status.pending:before{background:#eab308}.account-label{color:#334155;font-weight:600}.accounting-voucher-pill{color:#0369a1;background:#f0f9ff;border:1px solid #bae6fd;border-radius:999px;padding:3px 7px;font-size:11px;font-style:normal;font-weight:700}.accounting-voucher-pill:hover,.accounting-voucher-pill:focus-visible{color:#075985;background:#e0f2fe;border-color:#0284c7}.accounting-report-note{color:#64748b;margin:0;padding:10px 20px 14px;font-size:11px}.debt-tracking-panel{background:#fff;border:1px solid #e2e8f0;border-radius:8px;margin-top:16px;overflow:visible;box-shadow:0 1px 3px #0f172a0d}.debt-tracking-heading{padding:18px 20px 14px}.debt-tracking-heading h2{color:#0f172a;margin:0;font-size:20px}.debt-tracking-heading p{color:#64748b;margin:4px 0 0;font-size:12px}.debt-tracking-toolbar{background:#f8fafc;border-top:1px solid #f1f5f9;border-bottom:1px solid #e2e8f0;align-items:flex-end;gap:14px;padding:10px 20px;display:flex}.debt-tracking-toolbar label{color:#64748b;gap:4px;min-width:180px;font-size:11px;font-weight:500;display:grid}.debt-tracking-toolbar select,.debt-tracking-toolbar input{color:#334155;background:#fff;border:1px solid #cbd5e1;border-radius:5px;min-height:30px;padding:5px 8px;font-size:12px;border-right:1px solid #cbd5e1!important}.debt-tracking-search{flex:1}.debt-tracking-summary{grid-template-columns:repeat(4,1fr);gap:10px;padding:14px 20px;display:grid}.debt-tracking-summary div{background:#fff;border:1px solid #e2e8f0;border-radius:6px;gap:3px;padding:10px 12px;display:grid}.debt-tracking-summary span,.debt-tracking-summary small{color:#64748b;font-size:11px}.debt-tracking-summary strong{color:#0f172a;font-variant-numeric:tabular-nums;font-size:17px}.debt-tracking-table-wrap{overflow-x:auto}.debt-tracking-table{border:0;border-radius:0;width:100%;min-width:1050px;font-size:11.5px}.debt-tracking-table th,.debt-tracking-table td{vertical-align:middle;white-space:nowrap;border-bottom:1px solid #e2e8f0;border-right:1px solid #f1f5f9;padding:9px 10px}.debt-tracking-table th{color:#475569;text-align:left;background:#f1f5f9;font-size:11px;font-weight:600}.debt-tracking-table td{color:#334155}.debt-tracking-table td:first-child{min-width:190px}.debt-tracking-table td small{color:#94a3b8;margin-top:3px;font-size:10px;display:block}.debt-tracking-table .number{text-align:right;font-variant-numeric:tabular-nums}.debt-tracking-table .debt-amount-cell{display:table-cell}.debt-reference-pill,.admin-screen button.debt-reference-pill{text-align:center;cursor:pointer;margin:4px 0 0 auto;padding:3px 7px;font-size:10px;font-weight:600;line-height:1.1;display:block;color:#334155!important;background:#f8fafc!important;border:1px solid #cbd5e1!important;border-radius:999px!important}.debt-reference-pill:hover,.admin-screen button.debt-reference-pill:hover{color:#1d4ed8!important;background:#eff6ff!important;border-color:#60a5fa!important}.debt-tracking-table .emphasis{color:#0f172a;font-weight:700}.debt-tracking-table tfoot{z-index:1;position:sticky;bottom:0}.debt-tracking-table tfoot td{z-index:2;color:#0f172a;background:#f8fafc;border-top:2px solid #cbd5e1;border-bottom:0;font-weight:700;position:sticky;bottom:0}.debt-type-label.receivable{color:#2563eb}.debt-type-label.payable{color:#c2410c}.debt-tracking-empty{text-align:center;color:#64748b!important;padding:28px!important}.financial-reports-panel{background:#fff;border:1px solid #e2e8f0;border-radius:8px;margin-top:16px;box-shadow:0 1px 3px #0f172a0d}.financial-reports-heading{justify-content:space-between;align-items:flex-start;gap:16px;padding:18px 20px 14px;display:flex}.financial-reports-heading h2{color:#0f172a;margin:0;font-size:20px}.financial-reports-heading p{color:#64748b;margin:4px 0 0;font-size:12px}.financial-reports-actions button{color:#334155;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:5px;min-height:30px;padding:6px 12px;font-size:12px;font-weight:600}.financial-reports-toolbar{background:#f8fafc;border-top:1px solid #f1f5f9;border-bottom:1px solid #e2e8f0;align-items:flex-end;gap:14px;padding:10px 20px;display:flex}.financial-reports-toolbar label{color:#64748b;gap:4px;min-width:170px;font-size:11px;font-weight:500;display:grid}.financial-reports-toolbar select{color:#334155;background:#fff;border:1px solid #cbd5e1;border-radius:5px;min-height:30px;padding:5px 8px;font-size:12px}.financial-report-paper{padding:24px 20px 28px}.financial-report-title{text-align:center;gap:4px;padding-bottom:16px;display:grid}.financial-report-title strong{color:#0f172a;text-transform:uppercase;font-size:17px}.financial-report-title span,.financial-report-title small{color:#64748b;font-size:11px}.financial-report-table{border-collapse:collapse;width:100%;font-size:11.5px}.financial-report-table th,.financial-report-table td{border:1px solid #dbe3ec;padding:8px 10px}.financial-report-table th{color:#475569;text-align:left;background:#f1f5f9;font-size:11px;font-weight:600}.financial-report-table th:nth-child(2),.financial-report-table th:nth-child(3),.financial-report-table td:nth-child(2),.financial-report-table td:nth-child(3){text-align:center;width:90px}.financial-report-table td{color:#334155}.financial-report-table td.number{text-align:right;font-variant-numeric:tabular-nums;width:150px}.financial-report-table tr.section td{color:#1e3a5f;background:#f8fafc}.financial-report-table tr.bold td{font-weight:700}.financial-report-note{color:#64748b;margin:12px 0 0;font-size:10px}.financial-report-signatures{color:#475569;text-align:center;grid-template-columns:repeat(3,1fr);gap:16px;padding:56px 10px 0;font-size:11px;font-weight:600;display:grid}@media (max-width:800px){.financial-reports-toolbar{flex-wrap:wrap}.financial-reports-toolbar label{flex:180px}.financial-report-paper{overflow-x:auto}.financial-report-table{min-width:760px}}@media (max-width:900px){.debt-tracking-toolbar,.debt-tracking-summary{flex-wrap:wrap;grid-template-columns:1fr 1fr}.debt-tracking-toolbar label,.debt-tracking-search{flex:220px}}.accounting-ledger-groups{padding:12px 0 16px}.accounting-ledger-card{border:1px solid #e2e8f0;border-radius:6px;margin:0 20px 12px;overflow:hidden}.accounting-ledger-heading{background:#f8fafc;border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;display:flex}.accounting-ledger-heading h3{color:#0f172a;margin:0 0 0 7px;font-size:13px;font-weight:600;display:inline}.accounting-ledger-opening{color:#64748b;font-size:11px}.accounting-ledger-opening strong{color:#0f172a;font-variant-numeric:tabular-nums;margin-left:7px}.accounting-ledger-empty{font-style:italic;color:#94a3b8!important;text-align:center!important}.ledger-table{min-width:980px}.journal-table{min-width:900px}@media (max-width:900px){.accounting-report-heading,.accounting-report-toolbar{flex-direction:column;align-items:stretch}.accounting-report-summary{grid-template-columns:1fr}}.warehouse-tabs{gap:4px;margin:0 0 16px;display:flex}.warehouse-tabs button{color:#64748b;background:#fff;border:1px solid #cbd5e1;border-radius:6px;padding:6px 12px;font-size:12px}.warehouse-tabs button.active{color:#fff;background:#0284c7;border-color:#0284c7}.warehouse-tabs span{color:#475569;background:#f1f5f9;border-radius:10px;margin-left:4px;padding:1px 6px;font-size:11px}.inventory-subtabs{border-bottom:1px solid #e2e8f0;gap:8px;margin:0 0 14px;padding:0 0 2px;display:flex}.inventory-subtabs button{color:#64748b;cursor:pointer;background:0 0;border:0;border-bottom:2px solid #0000;border-radius:0;padding:8px 12px 9px;font-size:12px}.inventory-subtabs button.active{color:#0284c7;border-bottom-color:#0284c7;font-weight:600}.warehouse-transactions .inventory-subtabs{display:none}.warehouse-inventory.inventory-catalog-view>.section.inventory-section,.warehouse-inventory.inventory-catalog-view>.section.stock-history-section,.warehouse-inventory.inventory-stock-view .inventory-section tbody td:last-child button{display:none!important}.inventory-catalog-section .section-title-row{align-items:flex-start}.sku-composite-field{align-items:stretch;width:100%;display:flex}.sku-prefix{color:#475569;white-space:nowrap;background:#f8fafc;border:1px solid #cbd5e1;border-right:0;border-radius:6px 0 0 6px;align-items:center;padding:0 10px;font-weight:600;display:inline-flex}.sku-composite-field input{border-radius:0 6px 6px 0;flex:auto;width:100%;min-width:0}.inventory-catalog-table-wrap{overflow-x:auto}.inventory-catalog-table-wrap table{min-width:980px}.inventory-catalog-table-wrap tbody td:last-child{white-space:nowrap;vertical-align:middle;text-align:center}.inventory-catalog-table-wrap tbody td:last-child button{color:#64748b;vertical-align:middle;opacity:0;pointer-events:none;background:0 0;border-radius:5px;place-items:center;width:28px;height:28px;margin:0;padding:0;font-size:0;line-height:1;transition:opacity .15s,background .15s,color .15s;display:inline-grid}.inventory-catalog-table-wrap tbody tr:hover td:last-child button,.inventory-catalog-table-wrap tbody td:last-child button:focus-visible{opacity:1;pointer-events:auto}.inventory-catalog-table-wrap tbody td:last-child button:first-of-type:after{content:"✎";font-size:16px}.inventory-catalog-table-wrap tbody td:last-child button:last-of-type:after{content:"×";font-size:20px;line-height:1}.inventory-catalog-table-wrap tbody td:last-child button:hover,.inventory-catalog-table-wrap tbody td:last-child button:focus-visible{color:#0f172a;background:#f1f5f9}.inventory-catalog-table-wrap tbody td:last-child button:last-of-type:hover,.inventory-catalog-table-wrap tbody td:last-child button:last-of-type:focus-visible{color:#dc2626;background:#fef2f2}.inventory-history-panel{margin-top:24px}.inventory-history-panel table{min-width:980px}.warehouse-transactions>.section.inventory-section,.warehouse-transactions>.section.stock-history-section,.warehouse-inventory>.section.purchase-order-section,.warehouse-inventory>.section.purchase-order-history-section{display:none}.purchase-order-form-dropdown{opacity:0;max-height:0;transition:max-height .35s,opacity .2s,margin-bottom .35s;overflow:hidden}.purchase-order-form-dropdown>form{border-width:0;padding-top:0;padding-bottom:0;transition:padding .35s,border-width .35s}.purchase-order-form-dropdown.open{opacity:1;max-height:1000px;margin-bottom:18px}.purchase-order-form-dropdown.open>form{border-width:1px;padding-top:14px;padding-bottom:14px}.auto-order-code{color:#9ca3af;cursor:not-allowed;-webkit-user-select:none;user-select:none;background:#f3f4f6}.purchase-order-audit-panel{margin-top:18px;overflow-x:auto}.purchase-order-audit-panel table{min-width:980px}.purchase-order-audit-panel th{white-space:nowrap}.purchase-order-audit-panel table th:nth-child(3),.purchase-order-audit-panel table td:nth-child(3),.history-table th:nth-child(3),.history-table td:nth-child(3),.shipping-request-history-table th:nth-child(3),.shipping-request-history-table td:nth-child(3),.cash-flow-history-table th:nth-child(3),.cash-flow-history-table td:nth-child(3){white-space:nowrap;width:240px;min-width:240px}.purchase-order-audit-panel table,.history-table,.shipping-request-history-table,.cash-flow-history-table{min-width:1180px}.purchase-order-inline-form{grid-template-columns:repeat(5,minmax(130px,1fr));align-items:end;gap:10px;display:grid}.purchase-order-inline-form label{min-width:0}.purchase-order-inline-wide{grid-column:span 2}.purchase-order-inline-actions{align-items:end;gap:6px;display:flex}.purchase-order-inline-actions button{white-space:nowrap}.purchase-order-history-panel>.section-title-row,.purchase-order-audit-panel>.section-title-row p,.users-panel>.section-title-row p{display:none}.purchase-order-table-wrap{overflow-x:auto}.purchase-order-table-wrap table{table-layout:fixed;min-width:1240px}.debt-reference-modal-backdrop{z-index:30;background:#0f172a61;place-items:center;padding:24px;display:grid;position:fixed;inset:0}.debt-reference-modal{background:#fff;border:1px solid #dbe3ee;border-radius:10px;width:min(560px,100%);box-shadow:0 20px 55px #0f172a3d}.debt-reference-modal-heading{border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:flex-start;padding:18px 20px;display:flex}.debt-reference-modal-heading span,.debt-reference-modal-grid span{color:#64748b;font-size:11px;display:block}.debt-reference-modal-heading h3{color:#0f172a;margin:4px 0 0;font-size:18px}.debt-reference-modal-heading button{color:#334155;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:6px;width:30px;height:30px;font-size:20px;line-height:1}.debt-reference-modal-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 24px;padding:20px;display:grid}.debt-reference-modal-grid strong{color:#0f172a;margin-top:5px;font-size:14px;display:block}.purchase-order-table-wrap th:first-child{width:16%}.purchase-order-table-wrap th:nth-child(2){width:20%}.purchase-order-table-wrap th:nth-child(3),.purchase-order-table-wrap th:nth-child(4){width:16%}.purchase-order-table-wrap th:nth-child(5){width:14%}.purchase-order-table-wrap th:last-child{width:18%;min-width:220px}.purchase-order-table-wrap td{vertical-align:top}.purchase-order-table-wrap td strong,.purchase-order-table-wrap td small{line-height:1.4;display:block}.purchase-order-table-wrap td small strong{display:inline}.purchase-order-table-wrap td small{color:#64748b;margin-top:3px}.purchase-order-table-wrap td strong+small{margin-top:4px}.legacy-document-section{margin-top:0}.legacy-document-header{justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:18px;display:flex}.legacy-document-header h2{color:#0f172a;margin:0;font-size:22px}.admin-screen .legacy-document-header h2{color:#0f172a!important}.legacy-document-count{color:#64748b;font-size:12px}.legacy-document-actions button{background:#0284c7;padding:8px 12px}.legacy-document-actions button:hover{background:#0369a1}.legacy-document-table-wrap{overflow-x:auto}.legacy-document-table{table-layout:fixed;min-width:900px}.legacy-document-table th:first-child{width:18%}.legacy-document-table th:nth-child(2){width:20%}.legacy-document-table th:nth-child(3){width:16%}.legacy-document-table th:nth-child(4){width:18%}.legacy-document-table th:nth-child(5){width:16%}.legacy-document-table th:nth-child(6){width:12%}.legacy-document-table td{vertical-align:middle;padding:14px 12px}.legacy-document-table td strong,.legacy-document-table td small{line-height:1.45;display:block}.legacy-document-table td small{color:#64748b;margin-top:3px}.legacy-document-table tbody tr{cursor:default}.legacy-document-table tbody tr:hover,.legacy-document-table tbody tr.is-expanded:not(.legacy-document-detail-row){background:#f8fafc}.legacy-document-table tbody td:last-child{text-align:center;white-space:nowrap;vertical-align:middle;width:12%;min-width:88px;padding:14px 12px;line-height:1;overflow:visible}.legacy-document-table tbody td:last-child button{color:#64748b;opacity:1;pointer-events:auto;vertical-align:middle;background:0 0;border-radius:5px;place-items:center;width:28px;height:28px;margin:0 2px;padding:0;font-size:12px;transition:opacity .15s,background .15s,color .15s;display:inline-grid;border:0!important}.legacy-document-table tbody td:last-child button:hover,.legacy-document-table tbody td:last-child button:focus-visible{color:#0f172a;background:#f1f5f9}.legacy-document-table tbody td:last-child button:last-child:hover,.legacy-document-table tbody td:last-child button:last-child:focus-visible{color:#dc2626;background:#fef2f2}.legacy-document-code{color:#0f172a;font:inherit;border:0;border-radius:0;padding:0;font-size:13px;font-weight:700;display:inline-block;background:0 0!important}.production-legacy-document-code,.shipping-request-code{color:#0f2747;cursor:pointer;font:inherit;border:1px solid #60a5fa;border-radius:0;align-items:center;padding:0 10px;font-size:12px;font-weight:600;transition:border-color .15s,box-shadow .15s,color .15s;display:inline-flex;background:#fff!important}.production-legacy-document-code:hover,.production-legacy-document-code:focus-visible,.shipping-request-code:hover,.shipping-request-code:focus-visible{color:#0f2747;border-color:#2563eb;outline:none;box-shadow:0 0 0 1px #bfdbfe}.shipping-source-pill{font:inherit;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:5px;padding:4px 8px;font-weight:600;display:inline-block!important}.shipping-source-pill:hover,.shipping-source-pill:focus-visible{background:#eff6ff;border-color:#60a5fa;outline:none}.shipping-source-modal{width:min(420px,100%)}.shipping-source-modal-subtitle{color:#64748b;margin:4px 0 0;font-size:12px}.shipping-source-modal-code{color:#0f172a;letter-spacing:.02em;background:#f8fafc;border:1px solid #cbd5e1;border-radius:6px;padding:12px 14px;font-size:18px;font-weight:700}.shipping-source-modal-note{color:#64748b;margin:12px 0 0;font-size:12px;line-height:1.5}.legacy-document-detail-row{background:#f8fafc}.legacy-document-detail-row>td{border-bottom:1px solid #e2e8f0;padding:0!important}.legacy-document-detail{background:#fff;border:1px solid #e2e8f0;border-radius:10px;margin:14px 18px 18px;padding:16px 18px 18px;display:block;box-shadow:0 4px 12px #0f172a0a}.legacy-document-detail-meta{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:18px;display:grid}.legacy-document-detail-meta>div{background:#f8fafc;border:1px solid #e2e8f0;border-radius:7px;flex-direction:column;gap:4px;padding:11px 13px;display:flex}.legacy-document-detail-meta span,.legacy-document-items h3{color:#64748b;font-size:11px;font-weight:500}.legacy-document-detail-meta strong{color:#0f172a;font-size:12px;font-weight:600}.legacy-document-detail-meta strong small{color:#64748b;margin-top:3px;font-size:11px;font-weight:400;display:block}.legacy-document-items h3{color:#334155;justify-content:space-between;align-items:center;margin:0 0 8px;font-size:12px;display:flex}.legacy-document-items h3 span{color:#94a3b8;font-size:11px;font-weight:400}.legacy-document-items-list{background:#fff;border:1px solid #e2e8f0;border-radius:6px;overflow:hidden}.legacy-document-item{color:#334155;border-bottom:1px solid #f1f5f9;justify-content:space-between;align-items:center;gap:16px;padding:9px 12px;font-size:12px;display:flex}.legacy-document-item-heading{color:#64748b;background:#f8fafc;padding-top:7px;padding-bottom:7px;font-size:11px;font-weight:600}.legacy-document-item:last-child{border-bottom:0}.legacy-document-item strong{color:#0f172a;white-space:nowrap;font-weight:600}.legacy-document-status{align-items:center;gap:6px;font-weight:600;display:inline-flex}.legacy-document-status:before{content:"";background:currentColor;border-radius:50%;width:7px;height:7px}.legacy-document-status.approved{color:#15803d}.legacy-document-status.pending{color:#b45309}.legacy-document-actions{align-items:center;gap:10px;display:flex}.legacy-document-create-form{background:#fff;border:1px solid #cbd5e1;border-radius:7px;margin:0 0 16px;padding:14px;font-size:12px;display:block;box-shadow:0 2px 8px #0f172a0a}.legacy-document-create-form label{color:#334155;gap:5px;font-size:11px;font-weight:600;display:grid}.legacy-document-create-form input{color:#0f172a;min-width:0;height:36px;font:inherit;background:#fff;border:1px solid #cbd5e1;border-radius:5px;padding:7px 10px;font-size:12px}.legacy-document-create-form input[readonly]{color:#64748b;background:#f1f5f9}.legacy-document-form-meta{grid-template-columns:repeat(3,minmax(150px,1fr));gap:10px;margin-bottom:15px;display:grid}.legacy-document-line-items{background:#fff;border:1px solid #cbd5e1;border-radius:6px;min-width:0;padding:7px 12px 12px}.legacy-document-line-items legend{color:#1e3a5f;padding:0 6px;font-size:12px;font-weight:700}.legacy-document-line-items legend span{color:#64748b;margin-left:6px;font-size:10px;font-weight:400}.legacy-document-line{grid-template-columns:minmax(220px,1fr) 140px 120px 28px;gap:8px;margin-bottom:8px;display:grid}.legacy-document-line-columns{color:#64748b;grid-template-columns:minmax(220px,1fr) 140px 120px 28px;gap:8px;margin-bottom:5px;font-size:10px;font-weight:600;display:grid}.legacy-document-line select,.legacy-document-line input{color:#0f172a;min-width:0;height:36px;font:inherit;background:#fff;border:1px solid #cbd5e1;border-radius:5px;padding:7px 10px;font-size:12px}.legacy-document-line select{grid-column:1}.legacy-document-line input[placeholder=Số\ lượng]{grid-column:2}.legacy-document-line input[readonly]{color:#64748b;background:#f1f5f9;grid-column:3}.legacy-document-remove-line{color:#94a3b8;cursor:pointer;background:0 0;border:0;font-size:20px}.legacy-document-remove-line:hover{color:#dc2626}.legacy-document-add-line{color:#1e3a5f;cursor:pointer;background:#fff;border:1px dashed #94a3b8;border-radius:6px;width:auto;margin-top:2px;padding:9px 14px;font-weight:600}.legacy-document-add-line:hover{color:#2563eb;background:#eff6ff;border-color:#2563eb}.legacy-document-total{color:#475569;border-top:1px solid #e2e8f0;justify-content:flex-end;gap:16px;margin-top:10px;padding-top:11px;font-size:11px;display:flex}.legacy-document-total strong{color:#0f172a}.legacy-document-form-actions{justify-content:flex-end;margin-top:16px}.legacy-document-create-form .form-actions{align-items:end;gap:8px;display:flex}.legacy-document-create-form button{color:#334155;min-height:34px;font:inherit;cursor:pointer;white-space:nowrap;background:#fff;border:1px solid #cbd5e1;border-radius:5px;padding:7px 12px;font-size:12px;font-weight:600}.legacy-document-create-form button:hover{background:#f8fafc;border-color:#94a3b8}.legacy-document-create-form button[type=submit]{color:#1e3a5f;background:#fff;border-color:#94a3b8}@media (max-width:700px){.legacy-document-form-meta{grid-template-columns:1fr}.legacy-document-line,.legacy-document-line-columns{grid-template-columns:1fr 110px 90px 24px}}@media (max-width:800px){.legacy-document-header{flex-direction:column;align-items:stretch}.legacy-document-actions{justify-content:space-between}}.purchase-order-create-form{grid-template-columns:repeat(4,minmax(150px,1fr))}.legacy-document-table tbody td:last-child .legacy-document-publish-button{color:#1d4ed8;background:#eff6ff;border:1px solid #93c5fd!important}.legacy-document-table tbody td:last-child .legacy-document-delete-button{color:#dc2626;background:#fff;border:1px solid #fecaca!important}.purchase-order-create-form>.purchase-order-code-field{grid-area:2/1}.purchase-order-create-form>.purchase-order-vendor-field{grid-area:2/2}.purchase-order-create-form>.purchase-order-date-field{grid-area:2/3}.purchase-order-create-form>.purchase-order-source-field{grid-area:1/1}.purchase-order-create-form>.purchase-order-edd-field{grid-area:2/4}.purchase-order-create-form>.purchase-order-lines-fieldset{grid-area:3/1/auto/-1}.purchase-order-create-form>.purchase-deposit-field{grid-area:4/1}.purchase-order-form-wide{grid-column:span 2}.purchase-order-lines-fieldset{border:1px solid #e2e8f0;border-radius:6px;min-width:0;padding:12px}.purchase-order-lines-fieldset legend{color:#475569;padding:0 5px;font-size:12px;font-weight:600}.purchase-order-lines-header,.purchase-order-line{grid-template-columns:1.1fr 1.6fr .8fr .9fr 1fr 1.1fr 28px;align-items:center;gap:8px;display:grid}.purchase-order-lines-header{color:#64748b;margin-bottom:6px;font-size:11px;font-weight:600}.purchase-order-line{margin-bottom:8px}.purchase-order-line input,.purchase-order-line select{min-width:0}.purchase-order-add-line{color:#475569;background:#fff;border:1px dashed #94a3b8;border-radius:6px;margin-top:8px;padding:7px 12px;font-size:12px;font-weight:500}.purchase-order-add-line:hover{color:#0f172a;background:#f8fafc;border-color:#475569}.purchase-deposit-field{width:auto;min-width:0}.purchase-deposit-input-wrap{align-items:center;gap:6px;display:flex}.purchase-deposit-input-wrap input{flex:1;min-width:0}.purchase-deposit-input-wrap span{color:#475569;font-size:12px;font-weight:600}.purchase-deposit-field small{color:#64748b;margin-top:4px;font-size:10px;line-height:1.35;display:block}.purchase-deposit-label-row{align-items:baseline;gap:8px;display:flex}.purchase-deposit-label-row>small{margin-top:0;font-size:10px;font-weight:400;display:inline}.purchase-deposit-field input:disabled{color:#94a3b8;cursor:not-allowed;background:#f1f5f9}.purchase-deposit-input-wrap>span{white-space:nowrap}.purchase-deposit-input-wrap .deposit-percent-valid{color:#4d8b62}.purchase-deposit-input-wrap .deposit-percent-invalid{color:#c76b6b}.purchase-order-create-form>.form-actions{grid-column:1/-1;justify-content:flex-end;margin-top:4px}.purchase-order-remove-line{color:#dc2626;background:0 0;width:28px;height:32px;padding:0;font-size:18px}.purchase-order-total-row{border-top:1px solid #e2e8f0;justify-content:flex-end;gap:16px;margin-top:8px;padding-top:10px;display:flex}@media (max-width:900px){.purchase-order-create-form{grid-template-columns:repeat(2,minmax(150px,1fr))}.purchase-order-lines-fieldset{overflow-x:auto}.purchase-order-lines-header,.purchase-order-line{min-width:820px}}.purchase-order-link{cursor:pointer;pointer-events:auto}.purchase-order-link:hover,.purchase-order-link:focus-visible{text-decoration:none}.purchase-order-code-pill{line-height:normal;display:inline-block}.sales-order-code{color:#0f172a;background:#fff;border:1px solid #cbd5e1;border-radius:5px;padding:4px 8px;font-weight:600;display:inline-block!important}.sales-order-table td:first-child{vertical-align:middle}.sales-order-code:hover,.sales-order-code:focus-visible{background:#eff6ff;border-color:#60a5fa;outline:none}.legacy-document-link{cursor:pointer}.legacy-document-link:hover,.legacy-document-link:focus-visible{color:#0284c7;text-decoration:underline}.purchase-order-actions-heading{padding:0}.purchase-order-table-wrap tbody tr{cursor:default}.purchase-order-table-wrap tbody tr:hover,.purchase-order-table-wrap tbody tr.purchase-order-row-selected,.purchase-order-table-wrap tbody tr.purchase-order-row-selected:hover{background:#f8fafc}.purchase-order-table-wrap tbody td:last-child{text-align:right;white-space:nowrap;vertical-align:middle;width:88px;min-width:88px;padding-right:16px;line-height:1;overflow:visible}.purchase-order-table-wrap tbody td:last-child>button{vertical-align:middle;margin-top:0;margin-bottom:0}.purchase-order-table-wrap tbody td:last-child button{color:#64748b;opacity:0;pointer-events:none;background:0 0;border-radius:5px;place-items:center;width:28px;height:28px;margin-left:4px;padding:0;font-size:0;transition:opacity .15s,background .15s,color .15s;display:inline-grid}.purchase-order-table-wrap tbody tr:hover td:last-child button,.purchase-order-table-wrap tbody td:last-child button:focus-visible{opacity:1;pointer-events:auto}.purchase-order-inline-items{border-collapse:collapse;table-layout:fixed;background:#fff;width:100%;margin-top:8px}.purchase-order-inline-items th,.purchase-order-inline-items td{text-align:left;border:1px solid #e2e8f0;padding:8px 10px;font-size:12px}.purchase-order-inline-items th{color:#475569;background:#f8fafc;font-weight:600}.purchase-order-inline-items th:first-child,.purchase-order-inline-items td:first-child{width:32%}.purchase-order-inline-items th:nth-child(2),.purchase-order-inline-items td:nth-child(2),.purchase-order-inline-items th:nth-child(3),.purchase-order-inline-items td:nth-child(3){width:16%}.purchase-order-inline-items th:nth-child(4),.purchase-order-inline-items td:nth-child(4){width:18%}.purchase-order-inline-items th:nth-child(5),.purchase-order-inline-items td:nth-child(5){text-align:right;width:18%}.purchase-order-table-wrap tbody td:last-child button:first-child:after{content:"✎";font-size:16px}.purchase-order-table-wrap tbody td:last-child button:last-child:after{content:"×";font-size:20px;line-height:1}.purchase-order-table-wrap tbody td:last-child button:hover,.purchase-order-table-wrap tbody td:last-child button:focus-visible{color:#0f172a;background:#f1f5f9}.purchase-order-table-wrap tbody td:last-child button:last-child:hover,.purchase-order-table-wrap tbody td:last-child button:last-child:focus-visible{color:#dc2626;background:#fef2f2}.section-title-row{justify-content:space-between;align-items:center;margin-bottom:12px;display:flex}.section-title-row h2{color:#0f172a;margin:0;font-size:16px;font-weight:600}.user-count{color:#64748b;font-size:12px}.user-cards{grid-template-columns:repeat(3,1fr);gap:12px;display:grid}.user-card{background:#fff;border:1px solid #e2e8f0;border-radius:8px;align-items:flex-start;gap:10px;padding:14px;display:flex}.user-avatar{color:#1e293b;background:#f1f5f9;border-radius:50%;flex:0 0 36px;place-items:center;width:36px;height:36px;font-size:14px;font-weight:600;display:grid}.user-detail{flex:1;min-width:0}.user-detail h3{margin:0 0 2px;font-size:13px;font-weight:600}.user-detail p{color:#64748b;margin:0 0 8px;font-size:11px}.role-badge{color:#475569;background:#f1f5f9;border-radius:999px;padding:2px 6px;font-size:10px;display:inline-block}.role-admin{color:#991b1b;background:#fee2e2}.role-ceo{color:#92400e;background:#fef3c7}.role-manager{color:#166534;background:#dcfce7}.admin-screen .role-admin{color:#8f4a4a!important;background:#fde2e2!important;border-color:#f3b8b8!important}.admin-screen .role-ceo{color:#8a6a28!important;background:#fff3d6!important;border-color:#ead59a!important}.admin-screen .role-manager{color:#477255!important;background:#d9f5df!important;border-color:#a7e3b5!important}.user-meta{border-left:1px solid #f1f5f9;gap:2px;min-width:100px;padding-left:10px;display:grid}.user-meta small{color:#94a3b8;font-size:9px}.user-meta strong{margin-bottom:4px;font-size:11px}.partner-form{grid-template-columns:repeat(4,1fr)}.partner-form .partner-logo-field{color:#475569;grid-column:1/-1;gap:4px;min-width:0;font-size:12px;display:grid}.partner-form .partner-logo-field input[type=file]{width:100%;min-width:0;padding:5px;font-size:11px}:is(.partner-form>label:has(input[name=legal_representative]),.partner-form>label:has(input[name=bank_name])){grid-column:1}:is(.partner-form>label:has(input[name=representative_title]),.partner-form>label:has(input[name=bank_account_name])){grid-column:2}:is(.partner-form>label:has(input[name=representative_phone]),.partner-form>label:has(input[name=bank_account_number])){grid-column:3}:is(.partner-form>label:has(input[name=delivery_contact_name]),.partner-form>label:has(input[name=delivery_contact_phone])){display:none}.partner-form>label:has(input[name=address]){grid-area:2/1}.partner-form>label:has(input[name=delivery_address]){grid-area:2/2}.partner-form>label:has(input[name=email]){grid-area:2/3}.partner-form .partner-logo-field{grid-row:3}.partner-form>label:has(input[name=legal_representative]){grid-area:4/1}.partner-form>label:has(input[name=representative_title]){grid-area:4/2}.partner-form>label:has(input[name=representative_phone]){grid-area:4/3}.partner-form>label:has(input[name=bank_account_number]){grid-area:5/1}.partner-form>label:has(input[name=bank_account_name]){grid-area:5/2}.partner-form>label:has(input[name=bank_name]){grid-area:5/3}@media (max-width:800px){.partner-form .partner-logo-field{grid-area:auto}.partner-form>label:has(input[name=address]){grid-area:auto}.partner-form>label:has(input[name=delivery_address]){grid-area:auto}.partner-form>label:has(input[name=email]){grid-area:auto}.partner-form>label:has(input[name=legal_representative]){grid-area:auto}.partner-form>label:has(input[name=representative_title]){grid-area:auto}.partner-form>label:has(input[name=representative_phone]){grid-area:auto}.partner-form>label:has(input[name=bank_account_number]){grid-area:auto}.partner-form>label:has(input[name=bank_account_name]){grid-area:auto}.partner-form>label:has(input[name=bank_name]){grid-area:auto}}.partner-logo-control{align-items:center;gap:8px;min-width:0;display:flex}.partner-logo-preview{object-fit:contain;border:1px solid #e2e8f0;border-radius:4px;width:32px;height:32px}.contract-fieldset{border:1px solid #e2e8f0;border-radius:6px;grid-column:1/-1;grid-template-columns:repeat(4,1fr);gap:10px;padding:10px;display:grid}.contract-fieldset legend{color:#64748b;grid-column:1/-1;padding:0 4px;font-size:11px;font-weight:600}.contract-fieldset label{min-width:0}.credit-policy-toggle{align-items:center;gap:6px;display:flex}.credit-policy-toggle input{width:auto}.supply-fieldset{border:1px solid #e2e8f0;border-radius:6px;flex-wrap:wrap;gap:12px;padding:10px;display:flex}.supply-fieldset label{align-items:center;gap:4px;font-size:12px;font-weight:400;display:flex}.partners-view>.section:not(:first-of-type),.settings-partners>.section:not(:first-of-type):not(.partner-history-panel){display:none}.inline-partner-panel td input,.inline-partner-panel td select{width:100%;min-width:90px;margin-bottom:4px;padding:4px 6px;font-size:11px}.inline-partner-panel td button{margin:2px;padding:4px 8px;font-size:11px}.inline-check{white-space:nowrap;align-items:center;gap:4px;font-size:11px;font-weight:400;display:flex}.settings-partners .partner-form{opacity:0;border-width:0;max-height:0;margin-top:0;padding-top:0;padding-bottom:0;transition:max-height .25s,opacity .2s,margin-top .25s,padding .25s,border-width .25s;overflow:hidden}.settings-partners.partner-form-open .partner-form{opacity:1;border-width:1px;max-height:2400px;margin-top:12px;padding-top:14px;padding-bottom:14px}.settings-partners>.section:first-of-type:not(.inline-partner-panel)>.section-title-row{display:none}.partners-table{table-layout:fixed}.partners-table th:first-child{width:30%}.partners-table th:nth-child(2){width:13%}.partners-table th:nth-child(3){width:24%}.partners-table th:nth-child(4){width:28%}.partners-table th:nth-child(5){width:5%}.partners-table td{vertical-align:middle}.partner-name-cell{align-items:center;gap:9px;min-width:0;display:flex}.partner-logo-avatar{vertical-align:middle;object-fit:contain;background:#fff;border:1px solid #dbe4dc;border-radius:50%;flex:0 0 38px;width:38px;height:38px;margin-right:9px;padding:3px;display:inline-block;box-shadow:0 2px 6px #1f402b1f}.partners-table thead th:first-child{font-size:0}.partners-table thead th:first-child:after{content:"Tên đối tác";font-size:12px}.partners-table .partner-row td:first-child{grid-template-rows:auto auto;grid-template-columns:38px minmax(0,1fr);align-items:center;column-gap:9px;padding-left:12px;display:grid}.partners-table .partner-row td:first-child .partner-logo-avatar{grid-area:1/1/span 2;margin-right:0}.partners-table .partner-row td:first-child strong{grid-area:1/2}.partners-table .partner-row td:first-child small{grid-area:2/2;margin-top:2px}.partner-row{cursor:pointer;transition:background-color .15s}.partner-row:hover{background:#f8fafc}.partner-row:focus-visible{outline-offset:-2px;outline:2px solid #cbd5e1}.partner-row td:first-child{display:table-cell}.partner-row td:first-child small{color:#64748b;margin-top:2px;font-size:11px;display:block}.partner-actions-heading{padding:0}.partner-actions{padding:4px}.partner-row-actions{opacity:0;pointer-events:none;justify-content:flex-end;gap:2px;transition:opacity .15s;display:flex}.partner-row:hover .partner-row-actions{opacity:1;pointer-events:auto}.icon-button{color:#64748b;background:0 0;border-radius:5px;place-items:center;width:28px;height:28px;padding:0;font-size:15px;display:grid}.icon-button:hover,.icon-button:focus-visible{color:#0f172a;background:#f1f5f9}.icon-button.danger:hover,.icon-button.danger:focus-visible{color:#dc2626;background:#fef2f2}.icon-button.danger span{font-size:0}.icon-button.danger span:after{content:"×";font-size:18px;line-height:1}.inventory-section tbody td:last-child{text-align:right;white-space:nowrap;vertical-align:middle}.inventory-section tbody td:last-child button{color:#64748b;opacity:0;pointer-events:none;background:0 0;border-radius:5px;place-items:center;width:28px;height:28px;padding:0;font-size:0;transition:opacity .15s,background .15s,color .15s;display:inline-grid}.inventory-section tbody tr:hover td:last-child button,.inventory-section tbody td:last-child button:focus-visible{opacity:1;pointer-events:auto}.inventory-section tbody td:last-child button:first-of-type:after{content:"✎";font-size:16px}.inventory-section tbody td:last-child button:last-of-type:after{content:"×";font-size:20px;line-height:1}.inventory-warning-icon{color:#b45309;vertical-align:middle;border:1px solid #d97706;border-radius:50%;place-items:center;width:18px;height:18px;margin-right:4px;font-size:12px;font-weight:700;line-height:1;display:inline-grid}.inventory-section tbody td:last-child button:hover,.inventory-section tbody td:last-child button:focus-visible{color:#0f172a;background:#f1f5f9}.inventory-section tbody td:last-child button:last-child:hover,.inventory-section tbody td:last-child button:last-child:focus-visible{color:#dc2626;background:#fef2f2}.purchase-order-history-panel table tbody td:last-child{text-align:right;white-space:nowrap;vertical-align:middle}.sales-order-table thead tr{background:#f8fafc}.purchase-order-history-panel .sales-order-table{table-layout:auto}.purchase-order-history-panel .sales-order-table th:nth-last-child(2),.purchase-order-history-panel .sales-order-table td:nth-last-child(2){white-space:nowrap;text-align:left;width:120px;min-width:120px}.purchase-order-history-panel .sales-order-table td:nth-last-child(2){padding-left:14px}.sales-order-table .invoice-pill-locked{cursor:not-allowed;opacity:.65}.purchase-order-history-panel .sales-order-table tbody td:last-child{text-align:right;white-space:nowrap;vertical-align:middle;width:88px;min-width:88px;padding-right:16px}.sales-order-table tbody td:last-child{white-space:nowrap}.purchase-order-history-panel .sales-order-table th:last-child,.purchase-order-history-panel .sales-order-table tbody td:last-child{width:260px;min-width:260px}.purchase-order-history-panel .sales-order-table tbody td:last-child .sales-order-shipping-action{white-space:nowrap;opacity:1!important;pointer-events:auto!important;width:auto!important;min-width:0!important;height:auto!important;margin:0!important;padding:7px 10px!important;font-size:13px!important;line-height:1.2!important;display:inline-flex!important}.purchase-order-history-panel .sales-order-table tbody td:last-child .sales-order-shipping-action:after{content:none!important;display:none!important;-webkit-mask:none!important;mask:none!important}.purchase-order-history-panel .sales-order-table tbody td:last-child .sales-order-shipping-action:hover:not(:disabled){color:#15803d!important;background:#ecfdf5!important;border-color:#16a34a!important}.purchase-order-history-panel .sales-order-table tbody td:last-child .sales-order-delete-action{opacity:1!important;pointer-events:auto!important;width:auto!important;min-width:0!important;height:auto!important;margin:0 0 0 6px!important;padding:7px 10px!important;font-size:13px!important;line-height:1.2!important;display:inline-flex!important}.purchase-order-history-panel .sales-order-table tbody td:last-child .sales-order-delete-action:after{content:none!important;display:none!important;-webkit-mask:none!important;mask:none!important}.purchase-order-history-panel .sales-order-table th,.purchase-order-history-panel .sales-order-table td{text-align:left}.purchase-order-history-panel .sales-order-table tbody td:last-child{text-align:left!important}.purchase-order-history-panel .sales-order-table td small,.purchase-order-audit-panel table td small{text-align:left;display:block}.purchase-order-audit-panel table tbody td:last-child{text-align:left;white-space:normal;vertical-align:top}.purchase-order-history-panel table tbody td:last-child button{color:#64748b;opacity:0;pointer-events:none;background:0 0;border-radius:5px;place-items:center;width:28px;height:28px;margin-left:4px;padding:0;font-size:0;transition:opacity .15s,background .15s,color .15s;display:inline-grid}.purchase-order-history-panel table tbody tr:hover td:last-child button,.purchase-order-history-panel table tbody td:last-child button:focus-visible{opacity:1;pointer-events:auto}.purchase-order-history-panel table tbody td:last-child button:first-child:after{content:"✎";font-size:16px}.purchase-order-history-panel table tbody td:last-child button:last-child:after{content:"×";font-size:20px;line-height:1}.purchase-order-history-panel table tbody td:last-child button:hover,.purchase-order-history-panel table tbody td:last-child button:focus-visible{color:#0f172a;background:#f1f5f9}.purchase-order-history-panel table tbody td:last-child button:last-child:hover,.purchase-order-history-panel table tbody td:last-child button:last-child:focus-visible{color:#dc2626;background:#fef2f2}.inventory-section tbody tr,.purchase-order-history-panel>table:first-of-type tbody tr{cursor:pointer}.inventory-section tbody tr:hover,.purchase-order-history-panel>table:first-of-type tbody tr:hover,.inventory-section tbody tr.inventory-row-selected,.inventory-section tbody tr.inventory-row-selected:hover{background:#f8fafc}.inventory-section tbody td:last-child,.purchase-order-history-panel>table:first-of-type tbody td:last-child{vertical-align:middle;line-height:1}.inventory-section tbody td:last-child button,.purchase-order-history-panel>table:first-of-type tbody td:last-child button{vertical-align:middle;cursor:pointer;margin:0 0 0 4px;line-height:1}.inventory-detail-row,.purchase-order-detail-row{background:#f8fafc}.inventory-detail-row td,.purchase-order-detail-row td{vertical-align:middle;background:#f8fafc;border-bottom:1px solid #f1f5f9;padding:0}.inline-detail-grid{text-align:left;background:#f8fafc;border-top:1px solid #f1f5f9;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 18px;padding:12px 14px;display:grid}.inline-detail-grid>div{min-width:0}.inline-detail-grid span,.inline-detail-grid strong,.inline-detail-grid a{display:block}.inline-detail-grid span{color:#64748b;margin-bottom:2px;font-size:11px}.inline-detail-grid strong,.inline-detail-grid a{color:#475569;overflow-wrap:anywhere;font-size:12px;font-weight:400;line-height:1.4}.stock-history-section>table tbody tr.stock-voucher-row{cursor:default}.stock-history-section>table tbody tr.stock-voucher-row:hover,.stock-history-section>table tbody tr.stock-voucher-row:focus-visible{background:#f8fafc;outline:none}.warehouse-inventory .shipping-request-section .production-add-button{display:none!important}.stock-history-section>table thead th{color:#475569;background:#f8fafc;border-bottom:1px solid #e2e8f0;padding:8px 12px;font-size:11px;font-weight:600}.stock-transaction-actions-heading{width:76px;min-width:76px}.stock-transaction-actions{text-align:right;white-space:nowrap;width:1%}.stock-transaction-publish{color:#1d4ed8;cursor:pointer;background:#eff6ff;border:1px solid #bfdbfe;border-radius:6px;margin-right:6px;padding:5px 8px;font-size:11px}.stock-transaction-publish:hover{background:#dbeafe}.stock-transaction-delete{visibility:visible;opacity:1;pointer-events:auto;font:inherit;cursor:pointer;font-size:12px;transition:opacity .15s;display:inline-block;color:#0f172a!important;background:#fff!important;border:1px solid #cbd5e1!important;border-radius:5px!important;padding:4px 8px!important}@media (max-width:800px){.inline-detail-grid{grid-template-columns:1fr 1fr}}@media (max-width:560px){.inline-detail-grid{grid-template-columns:1fr}}.detail-backdrop{z-index:30;background:#0f172a66;place-items:center;padding:16px;display:grid;position:fixed;inset:0}.detail-card{background:#fff;border-radius:8px;width:min(620px,100%);max-height:min(720px,90vh);padding:16px;overflow:auto;box-shadow:0 10px 25px -5px #0000001a}.quote-settings-modal{border:1px solid #dbe4ee;border-radius:10px;width:min(520px,100%);padding:0;overflow:hidden;box-shadow:0 12px 28px #0f172a29}.quote-settings-modal .detail-card-header{background:#fff;border-bottom:1px solid #e2e8f0;align-items:flex-start;margin:0;padding:16px 20px}.quote-settings-modal .detail-card-header h2{color:#0f172a;margin:0;font-size:18px}.quote-settings-form{background:#fff;border:0;border-radius:0;gap:12px;margin:0;padding:18px 20px 20px;display:grid}.quote-settings-form label{gap:6px;font-size:12px}.quote-settings-form label>span{color:#1e293b;font-size:12px;font-weight:700}.quote-settings-form label small{color:#64748b;font-size:11px;font-weight:400}.quote-settings-toggle{color:#1e293b;background:#f5f6f7;border:1px solid #cbd5e1;border-radius:8px;justify-content:space-between;align-items:center;min-height:42px;padding:10px 12px;font-size:12px;position:relative;grid-template-columns:none!important;display:flex!important}.quote-settings-toggle input{opacity:0;position:absolute;border:0!important;width:1px!important;min-width:0!important;height:1px!important;padding:0!important}.quote-settings-toggle i{background:#cbd5e1;border-radius:999px;flex:none;width:36px;height:20px;transition:background .16s;position:relative}.quote-settings-toggle i:after{content:"";background:#fff;border-radius:50%;width:16px;height:16px;transition:transform .16s;position:absolute;top:2px;left:2px;box-shadow:0 1px 3px #0f172a40}.quote-settings-toggle input:checked+i{background:#4b5563}.quote-settings-toggle input:checked+i:after{transform:translate(16px)}.quote-settings-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.quote-settings-form input[type=number]{box-sizing:border-box;border-radius:4px;min-height:36px;margin-top:3px;padding:7px 10px;font-size:13px}.quote-settings-input{position:relative}.quote-settings-input input{padding-right:52px!important}.quote-settings-input em{color:#64748b;font-size:12px;font-style:normal;position:absolute;top:50%;right:12px;transform:translateY(-25%)}@media (max-width:560px){.quote-settings-grid{grid-template-columns:1fr}}.production-order-modal{border:1px solid #dbe4ee;flex-direction:column;width:min(800px,100%);padding:0;display:flex;overflow:hidden auto}.production-order-modal .detail-card-header{background:linear-gradient(135deg,#f8fbff 0%,#eef5fb 100%);border-bottom:1px solid #e2e8f0;align-items:flex-start;margin:0;padding:22px 24px 18px}.production-order-modal .detail-card-header h2{color:#0f172a;letter-spacing:-.02em;margin:0;font-size:25px}.production-order-modal .detail-close{margin-top:0}.production-order-modal-bom{color:#64748b;margin-top:7px;font-size:12px}.production-order-bom-code{color:#64748b;margin-top:4px;font-size:11px;line-height:1.2;display:block}.production-order-modal-product{color:#475569;margin-top:3px;font-size:12px;line-height:1.25;display:block}.production-order-modal>.production-order-modal-summary,.production-order-modal>.production-order-modal-meta,.production-order-modal>.production-order-modal-progress{margin-left:24px;margin-right:24px}.production-order-modal>.production-order-modal-summary{order:2;margin-top:20px}.production-order-modal>.production-order-modal-meta{order:3}.production-order-modal>.production-order-modal-progress{order:5}.production-order-modal-header-status{text-align:right;gap:2px;min-width:170px;margin-left:auto;margin-right:8px;display:grid}.production-order-modal-header-status span,.production-order-modal-header-status small{margin:0}.production-order-modal-header-status span{font-size:0!important}.production-order-modal-header-status span:after{content:"Trạng thái";font-size:11px!important}.production-order-modal-header-status strong{color:#0f766e;font-size:14px}.production-order-modal-header-status small{font-size:11px}.production-order-plan-actual{background:#fff;border:1px solid #dbe4ee;border-radius:8px;flex:none;min-width:0;margin:18px 24px;padding:20px 14px 14px;position:relative;order:3!important;display:block!important}.production-order-plan-actual legend{color:#64748b;background:#fff;margin:0 0 5px;padding:0 8px;font-size:11px;font-weight:700;position:absolute;top:-10px;left:12px}.production-order-quantity-table-wrap{min-height:1px;margin:0;overflow-x:auto;display:block!important}.production-order-quantity-table{border-collapse:collapse;width:100%;font-size:12px}.production-order-quantity-table th,.production-order-quantity-table td{text-align:left;vertical-align:middle;border-bottom:1px solid #e2e8f0;padding:10px 12px}.production-order-quantity-table th{color:#475569;background:#f8fafc;padding-top:12px;padding-bottom:12px;font-weight:600}.production-order-quantity-table td:nth-child(2),.production-order-quantity-table td:nth-child(3),.production-order-quantity-table th:nth-child(2),.production-order-quantity-table th:nth-child(3){white-space:nowrap;width:25%}.production-order-quantity-table tbody tr:last-child td{border-bottom:0}.production-order-quantity-table .production-cost-group,.production-order-quantity-table .production-cost-product{color:#0f172a;font-weight:600}.production-order-quantity-table .production-cost-child{color:#475569;padding-left:36px}.production-order-quantity-table .production-cost-level-2{padding-left:60px}.production-order-modal-summary,.production-order-modal-meta{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px;display:grid}.production-order-modal-meta{grid-template-columns:repeat(2,minmax(0,1fr))}.production-order-modal-summary>div,.production-order-modal-meta>div{background:#f8fafc;border:1px solid #e2e8f0;border-radius:6px;padding:12px}.production-order-modal span,.production-order-modal-meta span{color:#64748b;margin-bottom:5px;font-size:11px;display:block}.production-order-modal strong,.production-order-modal small{color:#0f172a;line-height:1.4;display:block}.production-order-modal small{color:#64748b;margin-top:3px;font-size:11px}.production-order-modal-progress{background:#fff;border:1px solid #dbe4ee;border-radius:8px;margin-bottom:18px;padding:20px 14px 14px;position:relative}.production-order-modal-progress>div:first-child{color:#475569;background:#fff;justify-content:space-between;margin:0 0 7px;padding:0 8px;font-size:12px;font-weight:700;display:flex;position:absolute;top:-10px;left:12px}.production-order-modal-progress .production-progress-track{min-width:0;height:8px;display:block;width:100%!important}.production-order-modal-progress .production-progress-track span{background:#64748b;min-width:28px;height:100%;display:block;position:relative}.production-order-modal-progress .production-progress-track span b{color:#fff;place-items:center;font-size:10px;font-weight:700;display:grid;position:absolute;inset:0}.production-progress-calendar{background:#f8fbff;border:1px solid #dbe4ee;border-radius:8px;margin-top:14px;padding:14px}.production-calendar-heading{color:#0f172a;text-align:center;grid-template-columns:32px 1fr 32px;align-items:center;gap:12px;margin-bottom:12px;font-size:13px;display:grid}.production-calendar-heading button{color:#0f172a;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:5px;width:32px;height:28px;padding:0;font-size:20px;line-height:1}.production-calendar-heading span{color:#64748b;font-size:11px}.production-schedule-subtitle{color:#64748b;margin:4px 0 0;font-size:12px}.production-schedule-layout{grid-template-columns:180px minmax(0,1fr);gap:8px;display:grid}.production-schedule-orders,.production-schedule-calendar{background:#fff;border:1px solid #dbe4ee;border-radius:8px;min-width:0;padding:8px}.production-schedule-orders h3{color:#0f172a;margin:0 0 6px;font-size:13px}.production-schedule-empty{color:#64748b;margin:0;font-size:12px}.production-schedule-order{text-align:left;cursor:pointer;border-radius:6px;flex-direction:column;gap:2px;width:100%;margin-bottom:4px;padding:5px 6px;display:flex;color:#334155!important;background:#eff6ff!important;border:1px solid #93c5fd!important}.production-completed-toggle{color:#475569;text-align:left;cursor:pointer;background:#f8fafc;border:1px solid #dbe4ee;border-radius:6px;justify-content:space-between;width:100%;margin-top:8px;padding:5px 6px;font-size:11px;display:flex}.production-completed-toggle.open{color:#0f172a;background:#eff6ff;border-color:#93c5fd;font-weight:600}.production-completed-orders{margin-top:6px}.production-schedule-order:hover,.production-schedule-order:focus-visible{outline-offset:1px;outline:2px solid #93c5fd;background:#dbeafe!important;border-color:#60a5fa!important}.production-schedule-order strong{font-size:11px;color:#334155!important}.production-schedule-order span,.production-schedule-order small{color:#475569;text-overflow:ellipsis;white-space:nowrap;font-size:10px;overflow:hidden}.production-schedule-order small{color:#64748b}.production-schedule-order.production-tone-1{background:#f0fdf4!important;border-color:#86efac!important}.production-schedule-order.production-tone-2{background:#fffbeb!important;border-color:#fcd34d!important}.production-schedule-order.production-tone-3{background:#fdf2f8!important;border-color:#f9a8d4!important}.production-schedule-order.production-tone-4{background:#f5f3ff!important;border-color:#c4b5fd!important}.production-schedule-order.production-completed-order{color:#475569!important;background:#e5e7eb!important;border-color:#cbd5e1!important}.production-schedule-order.production-completed-order strong,.production-schedule-order.production-completed-order span{color:#475569!important}.production-schedule-order.production-completed-order:hover,.production-schedule-order.production-completed-order:focus-visible{outline-color:#94a3b8;background:#d1d5db!important;border-color:#94a3b8!important}.production-schedule-day-order.production-tone-1{background:#bbf7d0!important;border:1px solid #86efac!important}.production-schedule-day-order.production-tone-2{background:#fde68a!important;border:1px solid #fcd34d!important}.production-schedule-day-order.production-tone-3{background:#fbcfe8!important;border:1px solid #f9a8d4!important}.production-schedule-day-order.production-tone-4{background:#ddd6fe!important;border:1px solid #c4b5fd!important}.production-schedule-calendar .production-calendar-heading{grid-template-columns:26px 1fr 26px;gap:6px;margin-bottom:6px}.production-schedule-calendar .production-calendar-heading button{width:26px;height:24px;font-size:16px}.production-schedule-calendar .production-calendar-weekdays,.production-schedule-calendar .production-calendar-grid{gap:3px}.production-schedule-calendar .production-calendar-weekdays{margin-bottom:3px;font-size:9px}.production-schedule-day{background:#fff;border:1px solid #dbe4ee;border-radius:6px;min-height:42px;padding:3px;position:relative;overflow:visible}.production-schedule-day.is-outside{opacity:.38}.production-schedule-day.is-today{border-color:#f59e0b;box-shadow:inset 0 0 0 1px #fcd34d}.production-schedule-day.has-orders{background:#f8fbff}.production-schedule-day>strong{color:#0f172a;font-size:11px;display:block}.production-schedule-day-orders{flex-direction:column;gap:2px;margin-top:3px;display:flex}.production-schedule-day-orders button{color:#1d4ed8;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;background:#dbeafe;border:0;border-radius:4px;padding:2px 3px;font-size:9px;overflow:hidden}.production-schedule-day-orders button:hover{filter:brightness(.96)}.production-schedule-day-order,.production-schedule-day-order:hover,.production-schedule-day-order:focus-visible{outline-offset:1px;justify-content:space-between;align-items:center;gap:6px;color:#334155!important;background:#eff6ff!important;border:1px solid #93c5fd!important;display:flex!important}.production-schedule-day-output,.production-schedule-day-progress{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.production-schedule-day-output{color:#15803d;font-weight:700}.production-schedule-day-progress{color:#475569;margin-left:auto;font-weight:600}.production-schedule-day-editor{z-index:30;background:#fff;border:1px solid #bfdbfe;border-radius:7px;align-items:center;gap:3px;width:max-content;min-width:142px;padding:6px;display:flex;position:absolute;top:28px;left:4px;box-shadow:0 8px 18px #0f172a29}.production-schedule-day-editor input{border:1px solid #93c5fd;border-radius:5px;width:62px;min-width:0;padding:5px 4px;font-size:10px}.production-schedule-day-editor button{color:#1d4ed8;cursor:pointer;background:#eff6ff;border:1px solid #93c5fd;border-radius:5px;padding:5px 7px;font-size:9px}@media (max-width:760px){.production-schedule-layout{grid-template-columns:1fr}.production-schedule-orders{max-height:240px;overflow-y:auto}}.production-calendar-weekdays,.production-calendar-grid{grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;display:grid}.production-calendar-weekdays{color:#64748b;text-align:center;margin-bottom:6px;font-size:10px;font-weight:700}.production-progress-day{background:#fff;border:1px solid #dbe4ee;border-radius:6px;flex-direction:column;min-height:64px;padding:6px;display:flex;position:relative}.production-progress-day.is-start{background:#f7fbff;border:1px solid #93c5fd;box-shadow:inset 0 0 0 1px #dbeafe}.production-progress-day.is-end{background:#f7fdf9;border:1px solid #86efac;box-shadow:inset 0 0 0 1px #dcfce7}.production-progress-day.is-today{background:#fffdf5;box-shadow:inset 0 0 0 1px #fcd34d}.production-progress-day.is-range{cursor:pointer;background:#dbeafe;border-color:#93c5fd}.production-progress-day.is-readonly{cursor:default}.production-progress-day.is-range strong{color:#1d4ed8}.production-progress-day.is-range .production-progress-day-output{color:#1e40af}.production-progress-day.is-selected{background:#f7fbff;border-color:#0284c7;box-shadow:0 0 0 2px #dbeafe}.production-progress-day.is-outside{opacity:.38}.production-progress-day-heading{justify-content:space-between;align-items:baseline;gap:6px;min-height:18px;display:flex}.production-progress-day strong{color:#0f172a;font-size:14px;line-height:1.15}.production-progress-day-meta{color:#64748b;justify-content:flex-end;align-items:center;min-height:14px;margin-top:auto;padding-top:3px;font-size:10px;line-height:1.2;display:flex}.production-progress-day small{min-width:0;margin:0;font-size:10px;line-height:1.2;display:block}.production-progress-day-note{text-align:right;text-overflow:ellipsis;white-space:nowrap;flex:auto;font-weight:600;overflow:hidden;color:#475569!important}.production-progress-day-output{color:#475569;text-align:right;white-space:nowrap;flex:none;margin:0;font-size:10px;font-weight:600;line-height:1.2}.production-progress-day label{color:#64748b;white-space:nowrap;align-items:center;gap:3px;margin-top:8px;font-size:10px;display:flex}.production-progress-day-editor{z-index:20;color:#64748b;background:#fff;border:1px solid #cbd5e1;border-radius:6px;align-items:center;gap:4px;min-width:132px;padding:6px;font-size:10px;display:flex;position:absolute;top:34px;left:6px;box-shadow:0 8px 18px #0f172a24}.production-progress-day-editor input{width:48px;padding:5px 4px}.production-progress-day-editor button{color:#0f172a;font:inherit;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:5px;padding:5px 7px;font-size:10px}.production-progress-day-editor button:hover{background:#eff6ff;border-color:#60a5fa}.production-progress-day input{color:#0f172a;width:68px;font:inherit;text-align:right;border:1px solid #cbd5e1;border-radius:5px;padding:6px 8px}.production-progress-day input:focus{border-color:#0284c7;outline:2px solid #bfdbfe}@media (max-width:640px){.production-order-modal-summary,.production-order-modal-meta{grid-template-columns:1fr}}.purchase-order-document-modal{width:min(900px,100%);max-height:min(900px,94vh);padding:12px}.purchase-order-paper{color:#0f172a;background:#fff;border:1px solid #e2e8f0;border-radius:6px;padding:24px 28px;position:relative}.sales-order-pdf-mode{padding:0!important;overflow:hidden!important}.sales-order-pdf-mode>:not(.document-print-actions):not(.sales-order-pdf-frame){display:none!important}.sales-order-pdf-frame{background:#fff;border:0;width:100%;height:100%;min-height:780px;display:block}.sales-order-pdf-mode .sales-order-pdf-frame{height:min(900px,94vh);min-height:0}.sales-order-pdf-loading{color:#64748b;place-items:center;min-height:780px;display:grid}.sales-order-pdf-loading>:not(.document-print-actions):not(.sales-order-pdf-loading-message){display:none!important}.sales-order-pdf-loading-message{padding:24px;font-size:14px}.purchase-order-paper>:not(.document-watermark):not(.document-print-actions):not(.document-company-logo){z-index:1;position:relative}.purchase-order-paper .document-watermark{z-index:0;object-fit:contain;opacity:.07;pointer-events:none;width:min(520px,72%);max-height:520px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.purchase-order-paper .document-company-logo{z-index:2;object-fit:contain;width:58px;height:58px;position:absolute;top:24px;left:28px}.purchase-order-paper h1{text-align:center;letter-spacing:.04em;margin:0 0 20px;font-size:22px;font-weight:700}.document-subtitle{text-align:center;color:#475569;margin:-14px 0 20px;font-size:13px;font-weight:500}.purchase-order-print{padding:5px 10px;font-size:11px;position:absolute;top:10px;right:50px}.stock-voucher-print-actions{z-index:4;align-items:center;gap:6px;display:flex;position:absolute!important;top:10px!important;left:auto!important;right:10px!important}.document-print-actions{z-index:4;align-items:center;gap:6px;display:flex;position:absolute;top:10px;right:10px}.purchase-order-paper>.document-print-actions{z-index:4;position:absolute;top:10px;right:10px}.document-print-actions .purchase-order-print{position:static}.company-bhxh-fieldset{border:1px solid #e2e8f0;border-radius:6px;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:0;margin:0;padding:10px;display:grid}.company-bhxh-fieldset legend{color:#64748b;padding:0 5px;font-size:11px;font-weight:600}.company-bhxh-fieldset label{min-width:0}.cash-flow-voucher-actions button[disabled]{display:none}.stock-voucher-print-actions .purchase-order-print{position:static}.purchase-order-document-grid,.purchase-order-document-meta,.purchase-order-document-footer{grid-template-columns:1fr 1fr;gap:14px 32px;margin-bottom:18px;display:grid}.purchase-order-document-meta{border-top:1px solid #e2e8f0;border-bottom:1px solid #e2e8f0;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:10px 0}.stock-voucher-meta{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 48px}.purchase-order-paper span,.purchase-order-paper strong,.purchase-order-paper small{display:block}.purchase-order-paper span{color:#64748b;text-transform:uppercase;letter-spacing:.04em;margin-bottom:4px;font-size:10px;font-weight:600}.purchase-order-paper strong{color:#0f172a;font-size:12px;line-height:1.4}.purchase-order-paper small{color:#64748b;font-size:11px;line-height:1.4}.purchase-order-document-table{border:1px solid #cbd5e1;border-radius:0;margin:0 0 18px;font-size:12px}.purchase-order-document-table th,.purchase-order-document-table td{border:1px solid #cbd5e1;padding:6px 10px}.purchase-order-document-table th{color:#475569;white-space:nowrap;background:#f8fafc;font-weight:600}.purchase-order-document-table thead th{background:#f4f8fc!important}.purchase-order-document-table tbody,.purchase-order-document-table tfoot,.purchase-order-document-table tfoot th{background:#fff!important}.purchase-order-document-table tfoot th{text-align:right;background:#f8fafc}.stock-voucher-items-table th:nth-child(8),.stock-voucher-items-table td:nth-child(8){text-align:right}.purchase-order-signatures{text-align:center;grid-template-columns:1fr 1fr;gap:36px;margin-top:36px;font-size:12px;display:grid}.stock-voucher-signatures{grid-template-columns:repeat(2,1fr);gap:20px;margin-top:32px}.voucher-footer.stock-voucher-summary{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:24px 48px;margin-top:24px}.stock-voucher-summary>div{min-width:0}.purchase-order-signatures strong{font-weight:600}@media (max-width:700px){.purchase-order-document-meta{grid-template-columns:1fr}.purchase-order-paper{padding:18px 14px}.purchase-order-paper .document-company-logo{width:46px;height:46px;top:18px;left:14px}}@media print{html,body{width:210mm!important;height:0!important;overflow:hidden!important}body{background:#fff!important;margin:0!important}body *{visibility:hidden!important}html.printing-cash-flow main>:has(.cash-flow-voucher-paper){width:100%!important;height:0!important;display:block!important;overflow:visible!important}.cash-flow-voucher-paper,.cash-flow-voucher-paper *,html.printing-sales-order .purchase-order-document-modal,html.printing-sales-order .purchase-order-document-modal *,html.printing-purchase-order .purchase-order-document-modal,html.printing-purchase-order .purchase-order-document-modal *,html.printing-stock-voucher .purchase-order-document-modal,html.printing-stock-voucher .purchase-order-document-modal *,html.printing-purchase-order .purchase-order-document-modal,html.printing-purchase-order .purchase-order-document-modal *{visibility:visible!important}main>:not(.detail-backdrop){display:none!important}main>.cash-flow-panel:not(.detail-backdrop){display:block!important}main>*{display:none!important}main>.cash-flow-panel,main>.detail-backdrop{display:block!important}main.admin-screen{width:auto!important;max-width:none!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important}main.admin-screen:has(.purchase-order-document-modal){height:auto!important;overflow:visible!important}.detail-backdrop{background:0 0!important;padding:0!important;display:block!important;position:static!important}.purchase-order-document-modal{width:100%;max-height:none;box-shadow:none;padding:0;overflow:visible;display:block!important;position:static!important}.purchase-order-document-modal .detail-card-header,.no-print{display:none!important}.purchase-order-paper{box-sizing:border-box;page-break-inside:avoid;border:1px solid #172033;height:245mm;min-height:245mm;max-height:245mm}.cash-flow-panel{height:0!important;box-shadow:none!important;border:0!important;margin:0!important;display:block!important;overflow:visible!important}.cash-flow-panel>:not(.cash-flow-modal-backdrop){display:none!important}.cash-flow-modal-backdrop{background:0 0!important;height:0!important;padding:0!important;display:block!important;position:static!important}html.printing-cash-flow .cash-flow-modal-backdrop{background:0 0!important;width:100%!important;height:0!important;padding:0!important;display:block!important;position:static!important}.cash-flow-voucher-paper{box-sizing:border-box;width:210mm;height:auto;min-height:148mm;max-height:none;box-shadow:none;page-break-inside:auto;margin:0!important;padding:8mm 10mm!important;position:static!important;top:0!important;left:0!important;overflow:visible!important}html.printing-cash-flow,html.printing-cash-flow body{height:auto!important;min-height:0!important;overflow:visible!important}.cash-flow-voucher-paper h1{margin-bottom:8px;font-size:18px}.cash-flow-voucher-meta,.cash-flow-voucher-parties{gap:7px 24px;margin-bottom:8px}.cash-flow-voucher-parties{margin-top:8px}.cash-flow-voucher-amount-line{gap:24px;margin-top:8px;padding:6px 0}html.printing-cash-flow .cash-flow-source-document{height:auto;min-height:0;margin-top:8px;padding:5px 8px;display:block!important;overflow:visible!important}html.printing-cash-flow .cash-flow-source-document>strong{margin-bottom:3px!important;display:block!important;position:static!important}html.printing-cash-flow .cash-flow-salary-lines{border-collapse:collapse;page-break-inside:auto;width:100%}html.printing-cash-flow .cash-flow-salary-lines thead{display:table-header-group}html.printing-cash-flow .cash-flow-salary-lines tr{page-break-inside:avoid}html.printing-cash-flow .cash-flow-salary-lines th,html.printing-cash-flow .cash-flow-salary-lines td{border:1px solid #cbd5e1;padding:2px 4px;font-size:8px;line-height:1.2}html.printing-cash-flow .cash-flow-salary-lines td:last-child,html.printing-cash-flow .cash-flow-salary-lines th:last-child{text-align:right}html.printing-cash-flow .cash-flow-salary-lines tfoot{page-break-inside:avoid;font-weight:700;display:table-row-group}html.printing-cash-flow .cash-flow-source-document{break-inside:auto}html.printing-cash-flow .cash-flow-source-row{height:auto!important;min-height:0!important;display:flex!important;overflow:visible!important}html.printing-cash-flow .cash-flow-source-thumb{aspect-ratio:auto!important;align-items:center!important;gap:4px!important;width:auto!important;min-width:0!important;height:auto!important;min-height:0!important;padding:0!important;display:flex!important;overflow:visible!important}html.printing-cash-flow .cash-flow-source-thumb span,html.printing-cash-flow .cash-flow-source-thumb small{white-space:nowrap!important;max-width:none!important;display:inline!important;overflow:visible!important}.cash-flow-voucher-signatures{break-inside:avoid;page-break-inside:avoid;gap:8px;min-height:0;padding-bottom:22mm;position:static;margin-top:10px!important;transform:translateY(0)!important}.cash-flow-voucher-signatures strong{font-size:9px}.cash-flow-voucher-signatures small{margin-top:2px;font-size:8px}.purchase-order-paper{page:purchase-order-page}.cash-flow-voucher-paper{page:cash-flow-page}@page purchase-order-page{size:A4 portrait;margin:0}@page cash-flow-page{size:A5 landscape;margin:0}@page stock-voucher-page{size:A5 landscape;margin:0}@page purchase-requisition-page{size:A4 portrait;margin:0}@page{size:A4 portrait;margin:0}html.printing-cash-flow{page:cash-flow-page!important}html.printing-stock-voucher{page:stock-voucher-page!important}html.printing-purchase-order{page:purchase-requisition-page!important}html.printing-sales-order,html.printing-purchase-order{page:purchase-order-page!important}html.printing-cash-flow .cash-flow-voucher-paper{page:cash-flow-page!important}html.printing-stock-voucher .stock-voucher-paper{page:stock-voucher-page!important}html.printing-purchase-order .purchase-order-paper{page:purchase-requisition-page!important}html.printing-stock-voucher main.admin-screen>.detail-backdrop:has(.purchase-order-document-modal) .stock-voucher-paper{height:148mm!important;min-height:148mm!important;max-height:148mm!important}html.printing-sales-order .purchase-order-paper,html.printing-purchase-order .purchase-order-paper{page:purchase-order-page!important}main.admin-screen>.detail-backdrop:has(.purchase-order-document-modal){visibility:visible!important;display:block!important}main.admin-screen>.detail-backdrop:has(.purchase-order-document-modal) .purchase-order-document-modal{visibility:visible!important;display:block!important}main.admin-screen>.detail-backdrop:has(.purchase-order-document-modal) .purchase-order-document-modal *{visibility:visible!important}main.admin-screen>.detail-backdrop:has(.purchase-order-document-modal){height:auto!important;min-height:0!important;position:static!important;overflow:visible!important}main.admin-screen>.detail-backdrop:has(.purchase-order-document-modal) .purchase-order-paper{width:100%!important;height:auto!important;min-height:245mm!important;max-height:none!important;position:static!important;overflow:visible!important}html.printing-sales-order body,html.printing-purchase-order body,html.printing-cash-flow body,html.printing-stock-voucher body,html.printing-purchase-order body{height:auto!important;overflow:visible!important}html.printing-sales-order body *,html.printing-purchase-order body *,html.printing-cash-flow body *,html.printing-stock-voucher body *,html.printing-purchase-order body *{visibility:visible!important}html.printing-sales-order main,html.printing-purchase-order main{height:auto!important;min-height:0!important;display:block!important;overflow:visible!important}html.printing-sales-order main>*,html.printing-purchase-order main>*{display:none!important}html.printing-sales-order main>.detail-backdrop,html.printing-purchase-order main>.detail-backdrop,html.printing-sales-order .purchase-order-document-modal,html.printing-purchase-order .purchase-order-document-modal{height:auto!important;max-height:none!important;display:block!important;position:static!important;overflow:visible!important}html.printing-sales-order .purchase-order-paper,html.printing-purchase-order .purchase-order-paper{visibility:visible!important;page:purchase-order-page!important;border-bottom:0!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;padding:14px 20px!important;display:block!important;position:static!important;overflow:visible!important}html.printing-sales-order .purchase-order-paper h1,html.printing-purchase-order .purchase-order-paper h1{margin-bottom:8px!important;font-size:20px!important}html.printing-sales-order .purchase-order-paper .document-company-logo,html.printing-purchase-order .purchase-order-paper .document-company-logo{width:48px!important;height:48px!important;top:14px!important;left:20px!important}html.printing-sales-order .purchase-order-document-grid,html.printing-purchase-order .purchase-order-document-grid,html.printing-sales-order .purchase-order-document-meta,html.printing-purchase-order .purchase-order-document-meta{gap:7px 22px!important;margin-bottom:9px!important;padding-top:6px!important;padding-bottom:6px!important}html.printing-sales-order .purchase-order-document-table,html.printing-purchase-order .purchase-order-document-table{break-inside:avoid-page!important;page-break-inside:avoid!important;border:0!important;margin-top:10px!important;margin-bottom:10px!important;font-size:10px!important}html.printing-purchase-order .purchase-requisition-meta-row{border-top:1px solid #e2e8f0!important;border-bottom:1px solid #e2e8f0!important;padding:8px 0!important}html.printing-sales-order .purchase-order-document-table tfoot,html.printing-purchase-order .purchase-order-document-table tfoot{break-inside:avoid-page!important;page-break-inside:avoid!important;display:table-row-group!important}html.printing-sales-order .purchase-order-document-table th,html.printing-sales-order .purchase-order-document-table td,html.printing-purchase-order .purchase-order-document-table th,html.printing-purchase-order .purchase-order-document-table td{padding:4px 7px!important}html.printing-sales-order .purchase-order-document-footer,html.printing-purchase-order .purchase-order-document-footer{break-inside:avoid-page!important;page-break-inside:avoid!important;gap:7px 22px!important;margin-bottom:6px!important}html.printing-sales-order .purchase-order-signatures,html.printing-purchase-order .purchase-order-signatures{break-inside:avoid-page!important;page-break-inside:avoid!important;gap:24px!important;margin-top:18px!important}html.printing-sales-order .purchase-order-document-modal .detail-card-header,html.printing-purchase-order .purchase-order-document-modal .detail-card-header,html.printing-sales-order .purchase-order-document-modal .no-print,html.printing-purchase-order .purchase-order-document-modal .no-print{display:none!important}html.printing-stock-voucher main{height:auto!important;min-height:0!important;display:block!important;overflow:visible!important}html.printing-stock-voucher main>*{display:none!important}html.printing-stock-voucher main>.detail-backdrop,html.printing-stock-voucher .purchase-order-document-modal{height:auto!important;max-height:none!important;display:block!important;position:static!important;overflow:visible!important}html.printing-stock-voucher .purchase-order-document-modal .detail-card-header,html.printing-stock-voucher .purchase-order-document-modal .no-print{display:none!important}html.printing-stock-voucher .stock-voucher-paper{visibility:visible!important;box-sizing:border-box!important;page:stock-voucher-page!important;border:1px solid #172033!important;width:210mm!important;height:148mm!important;min-height:148mm!important;max-height:148mm!important;margin:0!important;padding:8mm 10mm!important;display:block!important;position:static!important;overflow:hidden!important}html.printing-stock-voucher .stock-voucher-paper h1{margin-bottom:8px!important;font-size:18px!important}html.printing-stock-voucher .stock-voucher-meta,html.printing-stock-voucher .stock-voucher-parties{gap:7px 24px!important;margin-bottom:8px!important;padding-top:6px!important;padding-bottom:6px!important}html.printing-stock-voucher .stock-voucher-items-table{break-inside:avoid!important;page-break-inside:avoid!important;width:100%!important;margin-top:8px!important;margin-bottom:8px!important;font-size:9px!important}html.printing-stock-voucher .stock-voucher-items-table th,html.printing-stock-voucher .stock-voucher-items-table td{padding:3px 4px!important}html.printing-stock-voucher .stock-voucher-items-table tfoot,html.printing-stock-voucher .stock-voucher-summary,html.printing-stock-voucher .stock-voucher-signatures{break-inside:avoid!important;page-break-inside:avoid!important}html.printing-stock-voucher .stock-voucher-items-table tfoot{display:table-row-group!important}html.printing-stock-voucher .stock-voucher-summary{gap:7px 24px!important;margin:8px 0 0!important;position:static!important}html.printing-stock-voucher .stock-voucher-signatures{gap:8px!important;margin:18px 0 0!important;font-size:10px!important;position:static!important}html.printing-stock-voucher .stock-voucher-signatures small{margin-top:2px!important;font-size:8px!important}html.printing-purchase-order main{height:auto!important;min-height:0!important;display:block!important;overflow:visible!important}html.printing-purchase-order main>*{display:none!important}html.printing-purchase-order main>.detail-backdrop,html.printing-purchase-order .purchase-order-document-modal{height:auto!important;max-height:none!important;display:block!important;position:static!important;overflow:visible!important}html.printing-purchase-order .purchase-order-document-modal .detail-card-header,html.printing-purchase-order .purchase-order-document-modal .no-print{display:none!important}html.printing-purchase-order .purchase-order-paper{visibility:visible!important;box-sizing:border-box!important;page:purchase-requisition-page!important;break-inside:avoid!important;page-break-inside:avoid!important;border-bottom:0!important;width:100%!important;height:auto!important;min-height:245mm!important;max-height:none!important;padding:18mm 20mm!important;display:block!important;position:static!important;overflow:visible!important}html.printing-purchase-order .purchase-order-paper h1{margin-bottom:8px!important;font-size:22px!important}html.printing-purchase-order .document-subtitle{margin-bottom:18px!important;font-size:13px!important}html.printing-purchase-order .purchase-order-document-table{break-inside:auto!important;page-break-inside:auto!important;margin-top:18px!important;font-size:11px!important}html.printing-purchase-order .purchase-order-document-table th,html.printing-purchase-order .purchase-order-document-table td{padding:6px 8px!important}html.printing-purchase-order .purchase-order-document-table tfoot{display:table-row-group!important}html.printing-purchase-order .purchase-order-document-footer,html.printing-purchase-order .purchase-order-signatures{break-inside:auto!important;page-break-inside:auto!important;margin-top:14px!important}html.printing-cash-flow .cash-flow-voucher-paper{-webkit-box-decoration-break:clone;box-decoration-break:clone;visibility:visible!important;break-after:auto!important;page-break-after:auto!important;page:cash-flow-page!important;width:210mm!important;height:auto!important;min-height:148mm!important;max-height:none!important;display:block!important;position:static!important;overflow:visible!important}html.printing-cash-flow main{height:auto!important;min-height:0!important;display:block!important;overflow:visible!important}html.printing-cash-flow main>*{display:none!important}html.printing-cash-flow .cash-flow-panel,html.printing-cash-flow .cash-flow-modal-backdrop{background:0 0!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;padding:0!important;display:block!important;position:static!important;overflow:visible!important}html.printing-cash-flow main>:has(.cash-flow-voucher-paper){background:0 0!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;padding:0!important;display:block!important;position:static!important;overflow:visible!important}}.detail-card-header{justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;display:flex}.document-modal-header-hidden{display:none}.detail-card-header h2{margin:0;font-size:15px;font-weight:600}.detail-close{color:#64748b;background:0 0;border-radius:5px;place-items:center;width:28px;height:28px;padding:0;font-size:20px;line-height:1;display:grid}.detail-close:hover,.detail-close:focus-visible{color:#dc2626;background:#fef2f2}.detail-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.detail-grid>div{gap:4px;display:grid}.detail-grid span{color:#64748b;font-size:11px}.detail-grid strong,.detail-grid a{color:#0f172a;overflow-wrap:anywhere;font-size:12px;font-weight:400}.detail-wide{grid-column:1/-1}@media (max-width:600px){.detail-grid{grid-template-columns:1fr}.detail-wide{grid-column:auto}}.expand-icon{line-height:1;transition:transform .15s;display:inline-block;transform:translateY(-2px)}.expand-icon.expanded{transform:rotate(180deg)translateY(2px)}.partner-details-row td{background:#f8fafc;padding:0}.partner-details{border-top:1px solid #f1f5f9;grid-template-columns:repeat(3,1fr);gap:12px 18px;padding:12px 14px;display:grid}.partner-details span,.partner-details strong{display:block}.partner-details span{color:#64748b;margin-bottom:2px;font-size:11px}.partner-details strong{color:#475569;font-size:12px;font-weight:400;line-height:1.4}.partner-details>div:first-child{grid-area:1/1}.partner-details>div:nth-child(2){grid-area:2/1}.partner-details>div:nth-child(3){grid-area:1/2}.partner-details>div:nth-child(4){grid-area:1/3}.partner-details>div:nth-child(5){grid-area:3/3}.partner-details>div:nth-child(6){grid-area:3/2}.partner-details>div:nth-child(7){grid-area:3/1}.partner-details>div:nth-child(8),.partner-details>div:nth-child(9),.partner-details>div:nth-child(6){display:none}.partner-contract-details{border-top:1px solid #e2e8f0;grid-column:1/-1;padding-top:12px}.partner-contract-details h3{color:#64748b;margin:0 0 10px;font-size:12px;font-weight:600}.partner-details>.partner-detail-mst{grid-area:1/1}.partner-details>.partner-detail-address{grid-area:1/2}.partner-details>.partner-detail-delivery{grid-area:1/3}.partner-details>.partner-detail-representative{grid-area:2/1}.partner-details>.partner-detail-title{grid-area:2/2}.partner-details>.partner-detail-representative-phone{grid-area:2/3}.partner-details>.partner-detail-account-number{grid-area:3/1}.partner-details>.partner-detail-account-name{grid-area:3/2}.partner-details>.partner-detail-bank{grid-area:3/3}.partner-details>.partner-contract-details{grid-area:4/1/auto/-1}div.partner-details>div.partner-detail-mst{grid-area:1/1}div.partner-details>div.partner-detail-address{grid-area:1/2}div.partner-details>div.partner-detail-delivery{grid-area:1/3}div.partner-details>div.partner-detail-representative{grid-area:2/1}div.partner-details>div.partner-detail-title{grid-area:2/2}div.partner-details>div.partner-detail-representative-phone{grid-area:2/3}div.partner-details>div.partner-detail-account-number{grid-area:3/1}div.partner-details>div.partner-detail-account-name{grid-area:3/2;display:block}div.partner-details>div.partner-detail-bank{grid-area:3/3;display:block}div.partner-details>div.partner-contract-details{grid-area:4/1/auto/-1}.partner-details>.partner-detail-code{grid-area:1/1/auto/-1}.partner-details>.partner-detail-mst,.partner-details>.partner-detail-address,.partner-details>.partner-detail-delivery{grid-row:2}.partner-details>.partner-detail-representative,.partner-details>.partner-detail-title,.partner-details>.partner-detail-representative-phone{grid-row:3}.partner-details>.partner-detail-account-number,.partner-details>.partner-detail-account-name,.partner-details>.partner-detail-bank{grid-row:4}.partner-details>.partner-contract-details{grid-row:5}div.partner-details>div.partner-detail-code{grid-area:1/1/auto/-1}div.partner-details>div.partner-detail-mst,div.partner-details>div.partner-detail-address,div.partner-details>div.partner-detail-delivery{grid-row:2}div.partner-details>div.partner-detail-representative,div.partner-details>div.partner-detail-title,div.partner-details>div.partner-detail-representative-phone{grid-row:3}div.partner-details>div.partner-detail-account-number,div.partner-details>div.partner-detail-account-name,div.partner-details>div.partner-detail-bank{grid-row:4}div.partner-details>div.partner-detail-account-number{display:block}div.partner-details>div.partner-contract-details{grid-row:5}.unified-data-table{background:#fff;border:1px solid #e2e8f0;border-radius:6px;overflow:hidden}.warehouse-inventory .inventory-section.unified-data-table{background:0 0;border:0;border-radius:0;overflow:visible}.unified-data-table table{border-collapse:collapse;color:#334155;width:100%;font-size:12px}.unified-data-table thead th{color:#475569;text-align:left;white-space:nowrap;background:#f8fafc;border-bottom:1px solid #e2e8f0;padding:9px 12px;font-size:11px;font-weight:600}.unified-data-table tbody td{vertical-align:middle;border-bottom:1px solid #f1f5f9;padding:9px 12px}.unified-data-table tbody tr:not([class*=detail-row]):hover,.unified-data-table tbody tr[class*=detail-row]{background:#f8fafc}.unified-data-table tbody tr[class*=detail-row]>td{background:#f8fafc;padding:0}.unified-data-table tbody td:last-child{vertical-align:middle}.unified-data-table .icon-button{transition:background .15s,color .15s,opacity .15s}.unified-data-table .icon-button:hover,.unified-data-table .icon-button:focus-visible{color:#0f172a;background:#f1f5f9}.rfq-section{overflow:hidden}.rfq-count{color:#64748b;white-space:nowrap;font-size:12px}.rfq-tab-count{color:#64748b;margin-left:3px;font-size:12px;font-weight:400}.rfq-header-actions{align-items:center;gap:8px;display:flex}.rfq-settings-btn{cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:6px;justify-content:center;align-items:center;width:32px;height:32px;padding:6px;display:inline-flex}.rfq-settings-btn img{width:16px;height:16px}.rfq-settings-btn:hover,.rfq-settings-btn:focus-visible{background:#f8fafc;border-color:#0284c7}.rfq-settings-panel{box-sizing:border-box;background:#f8fafc;border:1px solid #cbd5e1;border-radius:6px;grid-template-columns:repeat(2,minmax(220px,1fr)) auto;align-items:end;gap:12px;width:50%;min-width:640px;max-width:100%;margin:-8px 0 12px auto;padding:12px;display:grid}.rfq-unit-input{width:100%;position:relative;display:block!important}.rfq-unit-input input{box-sizing:border-box;width:100%;padding-right:52px;display:block}.rfq-form-dropdown .rfq-unit-input>span,.rfq-settings-panel .rfq-unit-input>span{color:#64748b;pointer-events:none;font-size:12px;position:absolute;top:50%;right:14px;transform:translateY(-50%)}.rfq-items-fieldset{grid-area:1/1/span 3/span 2}.rfq-items-list{gap:8px;display:grid}.rfq-item-row{grid-template-columns:minmax(0,1fr) 180px auto;align-items:center;gap:8px;display:grid}.rfq-quantity-input{position:relative}.rfq-quantity-input input{padding-right:42px}.rfq-quantity-input>span{color:#64748b;pointer-events:none;font-size:12px;position:absolute;top:50%;right:12px;transform:translateY(-50%)}.rfq-remove-item-btn,.rfq-add-item-btn{white-space:nowrap}.rfq-remove-item-btn{width:34px;height:34px;padding:0}.rfq-settings-panel label{color:#475569;flex-direction:column;gap:5px;font-size:12px;display:flex}.rfq-form-dropdown>form>label{flex-direction:column;gap:5px;display:flex}.rfq-settings-panel input{color:#0f172a;background:#fff;border:1px solid #cbd5e1;border-radius:5px;min-height:32px;padding:6px 8px;font-size:12px}.rfq-settings-actions{gap:6px;display:flex}.rfq-settings-actions button{color:#334155;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:5px;min-height:32px;padding:6px 10px;font-size:12px}.rfq-settings-actions button:last-child{color:#fff;background:#334155}.rfq-create-btn{color:#1e293b;cursor:pointer;white-space:nowrap;background:#fff;border:1px solid #cbd5e1;border-radius:6px;padding:6px 10px;font-size:12px;font-weight:500}.rfq-create-btn:hover{background:#f8fafc;border-color:#94a3b8}.rfq-form-dropdown .rfq-form-heading{flex-direction:column;grid-column:1/-1;gap:3px;display:flex}.rfq-form-heading strong{color:#0f172a;font-size:13px}.rfq-form-heading small{color:#64748b;font-size:11px}.rfq-half-field{grid-column:span 2}.rfq-deadline-field{grid-column:span 1}.rfq-quote-deadline-field{grid-area:2/3}.rfq-delivery-deadline-field{grid-area:2/4}.rfq-source-field{grid-area:1/1/auto/span 2}.rfq-vendor-field{border:1px solid #e2e8f0;border-radius:6px;order:0;grid-area:3/3/auto/span 2;min-width:0;margin:0;padding:10px}.rfq-vendor-field legend{color:#475569;padding:0 4px;font-size:12px;font-weight:600}.rfq-vendor-field legend small{color:#94a3b8;font-size:10px;font-weight:500}.rfq-vendor-options{flex-wrap:wrap;gap:8px;display:flex}.rfq-vendor-option{color:#334155;cursor:pointer;background:#fff;border:1px solid #e2e8f0;border-radius:5px;align-items:center;gap:6px;padding:6px 8px;font-size:12px;font-weight:400;display:inline-flex}.rfq-vendor-option:has(input:checked){background:#f8fafc;border-color:#94a3b8}.rfq-vendor-option input{accent-color:#475569}.rfq-vendor-empty{color:#94a3b8;font-size:11px}.rfq-form-attempted input:invalid,.rfq-form-attempted select:invalid,.rfq-form-attempted textarea:invalid{border-color:#dc2626;box-shadow:0 0 0 1px #dc2626}.rfq-form-attempted input:invalid:focus,.rfq-form-attempted select:invalid:focus,.rfq-form-attempted textarea:invalid:focus{outline-color:#dc2626}@media (max-width:800px){.rfq-settings-panel{width:100%;min-width:0}.rfq-half-field{grid-column:auto}.rfq-items-fieldset,.rfq-deadline-field,.rfq-source-field,.rfq-vendor-field,.rfq-note-field,.rfq-form-dropdown .form-actions{grid-area:auto}}.rfq-note-field{order:0;grid-area:1/3/auto/span 2}.rfq-form-dropdown .form-actions{order:3;grid-area:4/1/auto/-1}.rfq-table-wrap{background:#fff;border:1px solid #e2e8f0;border-radius:8px;overflow-x:auto}.rfq-table{border-collapse:collapse;width:100%;min-width:820px;font-size:12px}.rfq-table th,.rfq-table td{text-align:left;vertical-align:middle;border-bottom:1px solid #eef2f7;padding:13px 14px}.rfq-table th{color:#475569;white-space:nowrap;background:#f8fafc;font-size:11px;font-weight:600}.rfq-table tbody tr:last-child td{border-bottom:0}.rfq-table tbody tr:hover{background:#f8fafc}.sales-rfq-intro{color:#64748b;margin:5px 0 0;font-size:12px}.sales-rfq-create-form{background:#fff;border:1px solid #cbd5e1;border-radius:8px;margin:0 0 18px;padding:16px}.sales-rfq-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.sales-rfq-create-form label{color:#334155;gap:5px;font-size:11px;font-weight:600;display:grid}.sales-rfq-create-form input,.sales-rfq-create-form select,.sales-rfq-create-form textarea{color:#0f172a;width:100%;min-width:0;font:inherit;background:#fff;border:1px solid #cbd5e1;border-radius:5px;padding:8px 10px;font-size:12px}.sales-rfq-create-form textarea{resize:vertical}.sales-rfq-full-field{grid-column:1/-1}.sales-rfq-create-form .form-actions{justify-content:flex-end;gap:8px;margin-top:14px;display:flex}.sales-rfq-create-form button,.sales-rfq-detail-actions button{color:#1e3a5f;font:inherit;cursor:pointer;background:#fff;border:1px solid #94a3b8;border-radius:5px;padding:8px 12px;font-size:12px;font-weight:600}.sales-rfq-create-form button[type=submit],.sales-rfq-detail-actions button:first-child{background:#eff6ff;border-color:#60a5fa}.sales-rfq-table{table-layout:fixed;min-width:0}.sales-rfq-table th:first-child,.sales-rfq-table td:first-child{width:14%}.sales-rfq-table th:nth-child(2),.sales-rfq-table td:nth-child(2){width:22%}.sales-rfq-table th:nth-child(3),.sales-rfq-table td:nth-child(3){width:25%}.sales-rfq-table th:nth-child(4),.sales-rfq-table td:nth-child(4){border-left:0;width:14%;padding-left:0}.sales-rfq-table th:nth-child(5),.sales-rfq-table td:nth-child(5){text-align:right;width:15%}.sales-rfq-table th:nth-child(6),.sales-rfq-table td:nth-child(6){text-align:right;width:10%}.sales-rfq-table tbody tr:not(.rfq-detail-row):hover{background:#f8fafc}.sales-rfq-table tbody tr{cursor:default}.sales-rfq-status-stack{flex-direction:column;align-items:flex-start;gap:3px;display:inline-flex}.sales-rfq-status-note{color:#64748b;font-size:11px;line-height:1.2}.sales-rfq-delete{color:#94a3b8;cursor:pointer;opacity:0;background:0 0;border:1px solid #cbd5e1;border-radius:4px;padding:5px 7px;font-size:11px}.sales-rfq-table tr:hover .sales-rfq-delete,.sales-rfq-delete:focus-visible{opacity:1}.sales-rfq-email-btn{color:#475569;cursor:pointer;white-space:nowrap;background:#fff;border:1px solid #cbd5e1;border-radius:4px;padding:5px 7px;font-size:11px}.sales-rfq-email-cell,.sales-rfq-delete-cell{white-space:nowrap}.sales-rfq-table tr:hover .sales-rfq-email-btn,.sales-rfq-email-btn:focus-visible{opacity:1}.sales-rfq-email-retry{white-space:nowrap;color:#475569;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:4px;padding:5px 7px;font-size:15px;line-height:1}.sales-rfq-email-retry:disabled{color:#94a3b8;cursor:not-allowed;opacity:1;background:#f1f5f9}.sales-rfq-email-btn:hover,.sales-rfq-email-btn:focus-visible{color:#0f172a;background:#f8fafc;border-color:#94a3b8}.sales-rfq-detail{background:#f8fafc;grid-template-columns:1.2fr 1fr auto;align-items:start;gap:20px;padding:16px 18px;display:grid}.sales-rfq-detail>div:not(.sales-rfq-detail-actions){gap:7px;display:grid}.sales-rfq-detail span{color:#64748b;font-size:11px;display:block}.sales-rfq-detail strong{color:#0f172a;gap:4px;font-size:12px;font-weight:500;display:grid}.sales-rfq-detail-actions{gap:7px;display:flex}@media (max-width:800px){.sales-rfq-form-grid,.sales-rfq-detail{grid-template-columns:1fr}.sales-rfq-full-field{grid-column:auto}}.rfq-table td strong,.rfq-table td small{display:block}.rfq-source-link{font:inherit;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:5px;padding:4px 8px;font-weight:600;display:inline-block}.rfq-source-link:hover,.rfq-source-link:focus-visible{background:#eff6ff;border-color:#60a5fa;outline:none}.rfq-table td strong{color:#0f172a;font-weight:600}.rfq-code-pill{color:#1e3a5f;font:inherit;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:5px;padding:4px 8px;font-size:11px;font-weight:600;display:inline-block}.rfq-code-pill:hover,.rfq-code-pill:focus-visible{background:#eff6ff;border-color:#60a5fa;outline:none}.rfq-detail-modal{width:min(720px,100vw - 32px);max-height:88vh;overflow-y:auto}.rfq-detail-eyebrow{color:#64748b;letter-spacing:.08em;font-size:10px}.rfq-detail-modal h2{color:#0f172a;margin:5px 0 0;font-size:20px}.rfq-detail-meta-grid{background:#f8fafc;border-bottom:1px solid #e2e8f0;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:16px;display:grid}.rfq-detail-meta-grid div{gap:4px;display:grid}.rfq-detail-meta-grid span,.rfq-detail-section h3{color:#64748b;font-size:11px;font-weight:500}.rfq-detail-meta-grid strong{color:#1e293b;font-size:12px;font-weight:600}.rfq-detail-section{padding:14px 16px 0}.rfq-detail-section-heading{justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px;display:flex}.rfq-detail-section-heading h3{margin-bottom:0}.rfq-mail-refresh{color:#475569;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:5px;padding:4px 8px;font-size:11px}.rfq-mail-refresh:hover{background:#f8fafc}.rfq-detail-section h3{color:#334155;margin:0 0 8px;font-weight:600}.rfq-detail-items{gap:6px;display:grid}.rfq-detail-item{color:#334155;background:#fff;border:1px solid #e2e8f0;border-radius:6px;justify-content:space-between;gap:12px;padding:9px 10px;font-size:12px;display:flex}.rfq-detail-item strong{font-weight:500}.rfq-detail-item span{color:#64748b;white-space:nowrap}.rfq-detail-vendors{flex-direction:column;gap:8px;display:flex}.rfq-detail-vendor-row{align-items:center;gap:8px;display:flex}.rfq-detail-vendors .unified-pill{padding:5px 8px;font-size:11px}.rfq-detail-vendor-row .unified-pill:first-child{min-width:150px}.rfq-send-email-pill{cursor:pointer;color:#1d4ed8!important;background:#eff6ff!important}.rfq-send-email-pill:disabled{cursor:default;pointer-events:none;opacity:1;color:#94a3b8!important;background:#f1f5f9!important;border-color:#cbd5e1!important}.rfq-send-email-action{align-items:center;gap:6px;display:inline-flex}.rfq-email-status{white-space:nowrap;font-size:10px}.rfq-email-status-sent,.rfq-email-status-replied{color:#15803d}.rfq-email-status-failed{color:#c2410c}.rfq-detail-note{color:#475569;white-space:pre-wrap;border:1px solid #e2e8f0;border-radius:6px;margin:0 0 16px;padding:10px;font-size:12px}@media (max-width:600px){.rfq-detail-meta-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rfq-detail-item{flex-direction:column;align-items:flex-start;gap:4px}}.rfq-table td small{color:#64748b;margin-top:4px;line-height:1.35}.rfq-table:not(.sales-rfq-table) th:first-child,.rfq-table:not(.sales-rfq-table) td:first-child{width:18%}.rfq-table:not(.sales-rfq-table) th:nth-child(2),.rfq-table:not(.sales-rfq-table) td:nth-child(2){width:22%}.rfq-table:not(.sales-rfq-table) th:nth-child(3),.rfq-table:not(.sales-rfq-table) td:nth-child(3){width:34%}.rfq-table:not(.sales-rfq-table) th:nth-child(4),.rfq-table:not(.sales-rfq-table) td:nth-child(4){width:16%}.rfq-table:not(.sales-rfq-table) th:nth-child(5),.rfq-table:not(.sales-rfq-table) td:nth-child(5){width:10%}.style-status{color:#475569;align-items:center;gap:6px;width:fit-content;font-size:11px;font-weight:600;display:inline-flex}.style-status:before{content:"";background:currentColor;border-radius:50%;width:7px;height:7px}.style-status-waiting,.sales-rfq-table .style-status-waiting{color:#c58a1f}.sales-rfq-table .style-status-consulting{color:#2563eb}.sales-rfq-table .style-status-replied{color:#15803d}.style-status-progress{color:#1d4ed8}.style-status-complete{color:#047857}.style-status-issued{color:#2563eb}.style-status-draft{color:#c58a1f}.style-status-cancelled,.style-status-failed,.style-status-overdue{color:#b91c1c}.style-status-sending,.style-status-in-progress,.style-status-processing{color:#2563eb}.style-status-success,.style-status-paid,.style-status-active{color:#15803d}.style-status-pending,.style-status-warning,.style-status-due-soon,.style-status-draft{color:#c58a1f}.style-status-tracking,.style-status-replied{color:#2563eb}.style-status-complete,.style-status-paid,.style-status-active,.style-status-success{color:#15803d}.style-status.status-draft{color:#c58a1f}.style-status.status-issued,.style-status.status-approved,.style-status.status-in_progress{color:#2563eb}.style-status.status-completed{color:#15803d}.style-status.status-cancelled{color:#b91c1c}.rfq-status-actions{gap:6px;margin-top:6px;display:flex}.rfq-status-actions button{color:#334155;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:4px;padding:3px 7px;font-size:11px}.rfq-status-actions button:hover{color:#0284c7;border-color:#0284c7}.partner-contract-grid{grid-template-columns:repeat(3,1fr);gap:12px 18px;display:grid}@media (max-width:800px){.partner-contract-grid{grid-template-columns:1fr}}.partner-details>.partner-detail-title-positioned{grid-area:4/1!important;display:block!important}.partner-details>.partner-detail-average-positioned{grid-area:2/3!important;display:block!important}.settings-tabs{gap:4px;margin:0 0 16px;display:flex}.settings-tabs button{color:#64748b;background:#fff;border:1px solid #cbd5e1;border-radius:6px;padding:6px 12px;font-size:12px}.settings-tabs button.active{color:#fff;background:#0f172a;border-color:#0f172a}.settings-tabs.partner-tabs{border-bottom:0;align-items:center;gap:0;margin-top:8px}.settings-tabs.partner-tabs button{color:#64748b;background:0 0;border:0;border-bottom:2px solid #0000;border-radius:0;padding:8px 14px;font-size:13px}.settings-tabs.partner-tabs button:first-child{color:#0f172a;border-bottom:0;padding:0;font-size:20px;font-weight:700;line-height:1.2}.settings-tabs.partner-tabs button.active{color:#0f172a;background:0 0;border-bottom-color:#0000;font-weight:600}.settings-tabs.partner-tabs button:nth-child(2){display:none}.settings-tabs.partner-tabs .partner-add-button{color:#fff;background:#0f172a;border:0;border-radius:6px;align-self:center;margin-left:auto;padding:6px 12px;font-size:12px}.settings-tabs.company-tabs{border-bottom:1px solid #e2e8f0;gap:0;margin-top:8px}.settings-tabs.company-tabs button{color:#64748b;background:0 0;border:0;border-bottom:2px solid #0000;border-radius:0;padding:8px 16px;font-size:12px}.settings-tabs.company-tabs button.active{color:#0f172a;background:0 0;border-bottom-color:#0f172a;font-weight:600}.settings-company>.section:first-of-type>.section-title-row{display:none}.company-history-panel{overflow-x:auto}.company-history-panel table{min-width:980px}.company-history-panel th{white-space:nowrap}.partner-history-panel{overflow-x:auto}.partner-history-panel .section-title-row button{display:none}.partner-history-panel table{table-layout:fixed;min-width:1120px}.partner-history-panel th{white-space:nowrap}.partner-history-panel th:first-child{width:180px}.partner-history-panel th:nth-child(2){width:140px}.partner-history-panel th:nth-child(3){width:180px}.partner-history-panel th:nth-child(4),.partner-history-panel th:nth-child(5){width:310px}@media (max-width:950px){.user-cards{grid-template-columns:repeat(2,1fr)}}@media (max-width:650px){.user-cards{grid-template-columns:1fr}.user-card{flex-wrap:wrap}.user-meta{border-top:1px solid #f1f5f9;border-left:0;grid-template-columns:1fr 1fr;width:100%;padding:12px 0 0}}.inventory-form-dropdown.open>.voucher-form{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:16px}.voucher-form{flex-direction:column;gap:14px;display:flex}.voucher-meta{grid-template-columns:repeat(3,1fr);gap:10px;display:grid}.voucher-info{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;display:grid}.voucher-info>label{min-width:0}.voucher-info select{width:100%;min-width:0}.voucher-table-wrap{overflow-x:auto}.voucher-items-table{table-layout:fixed;border-collapse:collapse;border:1px solid #e2e8f0;border-radius:6px;width:100%;min-width:1100px;font-size:12px}.voucher-items-table th,.voucher-items-table td{text-align:left;vertical-align:middle;border:1px solid #e2e8f0;padding:7px 10px}.voucher-items-table th{color:#475569;white-space:nowrap;background:#f8fafc;font-weight:600}.voucher-items-table th:first-child,.voucher-items-table td:first-child{text-align:center;width:48px}.voucher-items-table th:nth-child(2),.voucher-items-table td:nth-child(2){width:180px}.voucher-items-table th:nth-child(3),.voucher-items-table td:nth-child(3){white-space:normal;word-break:break-word;width:220px}.voucher-items-table th:nth-child(4),.voucher-items-table td:nth-child(4){text-align:center;width:60px}.voucher-items-table th:nth-child(5),.voucher-items-table td:nth-child(5),.voucher-items-table th:nth-child(6),.voucher-items-table td:nth-child(6){width:130px}.voucher-items-table th:nth-child(7),.voucher-items-table td:nth-child(7){width:120px}.voucher-items-table th:nth-child(8),.voucher-items-table td:nth-child(8){text-align:right;width:150px}.voucher-items-table th:nth-child(9),.voucher-items-table td:nth-child(9){text-align:center;width:52px}.voucher-items-table input{width:100%;padding:4px 6px;font-size:11px}.voucher-items-table select{width:100%;min-width:0;padding:4px 6px;font-size:11px}.voucher-items-table tfoot td{background:#f8fafc;font-weight:600}.voucher-items-table tfoot td.voucher-total{text-align:right}.voucher-stt{text-align:center;color:#64748b}.voucher-unit{text-align:center}.voucher-total{text-align:right;font-variant-numeric:tabular-nums}.voucher-row-actions button{color:#dc2626;background:0 0;border-radius:5px;width:26px;height:26px;padding:0;font-size:18px;line-height:1}.voucher-row-actions button:hover,.voucher-row-actions button:focus-visible{background:#fef2f2}.voucher-items-table tbody tr:first-child .voucher-row-actions{visibility:hidden;pointer-events:none}.voucher-footer{grid-template-columns:1fr auto;align-items:end;gap:10px;display:grid}.voucher-footer .full-width{grid-column:1/-1}.voucher-form>.form-actions{justify-content:flex-end}.voucher-add-row{color:#1e293b;background:#fff;border:1px dashed #cbd5e1;border-radius:6px;align-self:flex-start;margin-top:6px;padding:5px 12px;font-size:12px}.voucher-add-row:hover{background:#f1f5f9;border-color:#94a3b8}@media (max-width:900px){.voucher-meta{grid-template-columns:repeat(3,1fr)}.voucher-info{grid-template-columns:1fr}}.payroll-section{margin-top:24px}.payroll-section .section-title-row{justify-content:space-between;align-items:center;gap:24px;margin-bottom:0;display:flex}.payroll-section .section-title-row h2{margin:0;font-size:16px;font-weight:700}.payroll-header-buttons{align-items:flex-end;gap:0;margin-top:8px;display:flex}.payroll-attendance-btn{z-index:1;color:#64748b;cursor:pointer;background:#f8fafc;border:1px solid #cbd5e1;border-bottom-color:#e2e8f0;border-radius:8px 8px 0 0;outline:none;min-width:118px;padding:7px 14px;font-size:12px;font-weight:500;transition:background .15s,border-color .15s,color .15s,box-shadow .15s;display:block;position:relative}.payroll-attendance-btn:hover{color:#334155;background:#f1f5f9}.payroll-attendance-btn:focus-visible{box-shadow:0 0 0 2px #dbeafe}.payroll-attendance-btn.active{z-index:3;color:#0f172a;background:#fff;border-color:#1e293b #1e293b #fff;margin-bottom:-1px;font-weight:700}.payroll-attendance-btn:hover{background:#f8fafc;border-color:#94a3b8}.payroll-attendance-btn.active:hover{color:#0f172a;background:#f8fafc;border-color:#0f172a #0f172a #fff}.payroll-top-actions{align-items:center;gap:10px;display:flex}.payroll-attendance-actions{align-items:center;gap:8px;display:flex}.payroll-add-btn{color:#1e293b;cursor:pointer;white-space:nowrap;background:#fff;border:1px solid #cbd5e1;border-radius:6px;padding:6px 12px;font-size:12px;font-weight:500}.payroll-add-btn:hover{background:#f8fafc;border-color:#94a3b8}.payroll-close-btn{color:#fff;cursor:pointer;white-space:nowrap;background:#0f766e;border:1px solid #0f766e;border-radius:6px;padding:6px 12px;font-size:12px;font-weight:600}.payroll-close-btn:hover{background:#115e59;border-color:#115e59}.payroll-close-btn.is-closed,.payroll-close-btn:disabled{color:#047857;cursor:default;background:#ecfdf5;border-color:#a7f3d0}.payroll-advance-btn{color:#334155;cursor:pointer;white-space:nowrap;background:#fff;border:1px solid #cbd5e1;border-radius:6px;padding:6px 12px;font-size:12px;font-weight:600}.payroll-advance-btn:hover,.payroll-advance-btn.active{color:#0f172a;background:#f1f5f9;border-color:#64748b}.payroll-holiday-btn{color:#334155;cursor:pointer;white-space:nowrap;background:#fff;border:1px solid #cbd5e1;border-radius:6px;padding:6px 12px;font-size:12px;font-weight:600}.payroll-holiday-btn:hover,.payroll-holiday-btn.active{color:#0f172a;background:#f1f5f9;border-color:#64748b}.attendance-modal{width:min(1100px,100vw - 32px);padding:20px}.attendance-panel,.payroll-panel{box-sizing:border-box;background:#fff;border:1px solid #e2e8f0;border-radius:8px;width:100%;min-height:360px;margin-top:16px;padding:20px}.payroll-tab-shell{box-sizing:border-box;z-index:2;background:#fff;border:1px solid #1e293b;border-radius:8px;width:100%;margin-top:0;padding:20px;position:relative}.payroll-tab-shell .attendance-panel,.payroll-tab-shell .payroll-panel{background:0 0;border:0;min-height:360px;margin-top:16px;padding:0}.payroll-add-shell{min-height:360px}.payroll-add-shell,.payroll-add-shell .payroll-panel,.payroll-add-form,.payroll-add-form>form{overflow:visible}.payroll-add-form{z-index:10;width:100%;position:relative}.payroll-panel-with-form .payroll-table-wrap{visibility:visible;display:block}.payroll-panel .form-actions{justify-content:flex-end}.payroll-panel .form-actions button{height:34px}.payroll-field-label{align-items:center;gap:2px;display:inline-flex}.payroll-field-label .allowance-info-btn{margin-left:2px}.payroll-base-salary-info{color:#334155;margin:16px 0 2px;font-size:13px}.payroll-base-salary-info strong{color:#0f172a}.payroll-base-salary-modal-input{vertical-align:middle;margin-left:6px;display:inline-block;position:relative}.payroll-base-salary-modal-input input{width:190px;padding-right:110px}.payroll-base-salary-modal-input small{color:#64748b;pointer-events:none;white-space:nowrap;font-size:10px;position:absolute;top:50%;right:9px;transform:translateY(-50%)}.payroll-reset-btn{color:#475569;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:6px;width:34px;height:34px;padding:0;font-size:19px;line-height:1}.payroll-reset-btn:hover{color:#1e293b;background:#f8fafc;border-color:#94a3b8}.payroll-reset-btn:focus-visible{outline-offset:1px;outline:2px solid #bfdbfe}.payroll-base-salary-input{display:block;position:relative}.payroll-base-salary-input input{width:100%;min-width:0;padding-right:58px}.payroll-base-salary-input small{color:#64748b;white-space:nowrap;pointer-events:none;font-size:11px;font-weight:400;position:absolute;top:50%;right:10px;transform:translateY(-50%)}.payroll-month-unit-input{display:block;position:relative}.payroll-month-unit-input input{width:100%;padding-right:62px}.payroll-month-unit-input small{color:#64748b;white-space:nowrap;pointer-events:none;font-size:11px;font-weight:400;position:absolute;top:50%;right:10px;transform:translateY(-50%)}.payroll-coefficient-input{display:block;position:relative}.payroll-coefficient-input input{width:100%;padding-right:156px}.payroll-coefficient-input small{color:#64748b;white-space:nowrap;pointer-events:none;font-size:10px;font-weight:400;position:absolute;top:50%;right:10px;transform:translateY(-50%)}.payroll-allowance-picker{z-index:20;position:relative;overflow:visible}.payroll-allowance-trigger{color:#334155;text-align:left;background:#fff;border:1px solid #cbd5e1;border-radius:6px;justify-content:space-between;align-items:center;width:100%;min-height:34px;padding:6px 10px;font-size:12px;font-weight:400;display:flex}.payroll-allowance-trigger:hover,.payroll-allowance-trigger[aria-expanded=true]{background:#f8fbff;border-color:#93c5fd}.payroll-allowance-chevron{border-top:6px solid #0f172a;border-left:5px solid #0000;border-right:5px solid #0000;width:0;height:0;margin-left:10px;font-size:0;line-height:0}.payroll-allowance-menu{z-index:30;background:#fff;border:1px solid #cbd5e1;border-radius:7px;gap:2px;max-height:260px;padding:5px;display:grid;position:absolute;top:calc(100% + 4px);left:0;right:0;overflow-y:auto;box-shadow:0 8px 20px #0f172a1a}.payroll-allowance-option{cursor:pointer;border-radius:5px;align-items:center;gap:8px;min-height:32px;padding:6px 7px;font-weight:400;display:flex}.payroll-allowance-option:hover{background:#f8fafc}.payroll-allowance-option input{opacity:0;pointer-events:none;width:1px;height:1px;position:absolute}.payroll-allowance-checkmark{background:#fff;border:1px solid #cbd5e1;border-radius:4px;flex:0 0 15px;place-items:center;width:15px;height:15px;display:grid}.payroll-allowance-option input:checked+.payroll-allowance-checkmark{background:#60a5fa;border-color:#60a5fa}.payroll-allowance-option input:checked+.payroll-allowance-checkmark:after{content:"✓";color:#fff;font-size:11px;font-weight:700;line-height:1}.payroll-allowance-option-text{justify-content:space-between;align-items:center;gap:8px;width:100%;min-width:0;display:flex}.payroll-allowance-option-text strong{color:#334155;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:500;overflow:hidden}.payroll-allowance-option-text small{color:#64748b;flex:none;font-size:10px;font-weight:400}.payroll-field-hint{color:#94a3b8;font-size:10px;font-weight:400}.payroll-period-toolbar{justify-content:space-between;align-items:center;min-height:22px;margin-top:16px;display:flex}.payroll-period-toolbar .attendance-month-nav{width:auto;margin-top:0}.attendance-panel .detail-card-header,.payroll-panel .payroll-filter{display:none}.attendance-panel .detail-card-header{justify-content:space-between;align-items:flex-start;min-height:58px;margin-bottom:16px;display:none;position:relative}.attendance-panel h2{color:#0f172a;margin:0;font-size:20px}.attendance-panel .detail-card-header>div:first-child{flex:auto;min-width:0}.attendance-modal .detail-card-header{justify-content:space-between;align-items:flex-start;min-height:58px;margin-bottom:16px;display:flex;position:relative}.attendance-modal h2{color:#0f172a;margin:0;font-size:20px}.attendance-subtitle{color:#64748b;margin:5px 0 0;font-size:12px}.attendance-employee-picker{color:#475569;align-items:center;gap:10px;margin-bottom:16px;font-size:12px;font-weight:600;display:flex}.attendance-employee-picker select{color:#334155;min-width:220px;font:inherit;background:#fff;border:1px solid #cbd5e1;border-radius:6px;padding:7px 9px;font-weight:400}.attendance-calendar{grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;display:grid}.attendance-day{color:#475569;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:7px;min-height:58px;padding:7px 4px}.attendance-day:hover{background:#f8fafc;border-color:#94a3b8}.attendance-day strong,.attendance-day small{display:block}.attendance-day strong{font-size:15px}.attendance-day small{margin-top:3px;font-size:10px}.attendance-day.worked{color:#166534;background:#dcfce7;border-color:#86efac}.attendance-summary{color:#475569;margin:14px 0 0;font-size:12px}.attendance-matrix-wrap{border:1px solid #e2e8f0;border-radius:8px;max-height:65vh;overflow:auto}.attendance-matrix{border-collapse:collapse;width:100%;min-width:920px;font-size:11px}.attendance-matrix th,.attendance-matrix td{text-align:center;border-bottom:1px solid #e2e8f0;border-right:1px solid #e2e8f0;padding:5px 4px}.attendance-matrix th{z-index:1;color:#475569;background:#f8fafc;font-weight:600;position:sticky;top:0}.attendance-matrix th.today{color:#475569;background:#fffaf0}.attendance-matrix td.today-cell{background:#fffaf0}.attendance-matrix th:first-child,.attendance-matrix td:first-child{z-index:2;text-align:left;background:#fff;width:190px;min-width:190px;position:sticky;left:0}.attendance-matrix th:first-child{z-index:3;background:#f8fafc}.attendance-matrix td:first-child strong,.attendance-matrix td:first-child small{display:inline}.attendance-matrix td:first-child small{color:#64748b;margin-left:6px;font-size:10px;font-weight:400}.attendance-matrix td:first-child small:before{content:"·";color:#94a3b8;margin-right:6px}.attendance-modal .detail-card-header>div:first-child{flex:auto;min-width:0}.attendance-month-nav{color:#475569;align-items:center;gap:10px;width:100%;min-width:0;margin-top:7px;font-size:12px;display:flex}.attendance-month-nav strong{white-space:nowrap}.attendance-month-nav>button{color:#475569;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:4px;width:22px;height:22px;padding:0;font-size:17px;line-height:1}.attendance-month-nav>button:hover{background:#f8fafc;border-color:#94a3b8}.payroll-month-nav{width:auto;margin-top:0}.attendance-cell{cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:2px;width:14px;height:14px;margin:0 auto;padding:0;display:block}.attendance-cell:hover{background:#fff;border-color:#cbd5e1}.attendance-cell:disabled{cursor:default}.attendance-cell:disabled:hover{background:#fff;border-color:#cbd5e1}.attendance-cell.worked,.attendance-cell.worked:hover,.attendance-cell.worked:disabled:hover{background:#d9f5df;border-color:#a7e3b5}.attendance-cell.leave-approved,.attendance-cell.leave-approved:hover,.attendance-cell.leave-approved:disabled:hover{background:#dcecff;border-color:#b7d4f4}.attendance-cell.leave-unpaid,.attendance-cell.leave-unpaid:hover,.attendance-cell.leave-unpaid:disabled:hover{background:#fde2e2;border-color:#f3b8b8}.attendance-cell.day-off{background:#f1f4f8;border-color:#d7dee8}.attendance-cell.future{opacity:.65;background:#f8fafc;border-color:#e2e8f0}.payroll-salary-card .detail-card-header>button{display:none}.attendance-matrix th.day-off,.attendance-matrix td.weekend,.attendance-matrix th.weekend{background:#f1f4f8}.attendance-matrix td:has(.attendance-cell.day-off){background:#f1f4f8}.attendance-cell.day-off:hover,.attendance-cell.day-off:disabled:hover{background:#f1f4f8;border-color:#d7dee8}.attendance-holiday-mode .attendance-cell[data-holiday-selected=true]{box-shadow:none;background:#f1f4f8!important;border-color:#d7dee8!important}.attendance-holiday-mode .attendance-cell[data-holiday-selected=true]:hover{background:#f1f4f8!important;border-color:#d7dee8!important}.attendance-advance-mode{--attendance-advance-cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M6 1h4v5h5v4h-5v5H6v-5H1V6h5z' fill='%2392400e'/%3E%3C/svg%3E") 8 8, crosshair;cursor:var(--attendance-advance-cursor)}.attendance-advance-mode .attendance-cell,.attendance-advance-mode .attendance-matrix td{cursor:var(--attendance-advance-cursor)}.attendance-advance-mode .attendance-cell:hover{background:#fff;border-color:#cbd5e1}.attendance-advance-mode .attendance-cell.worked:hover{background:#d9f5df;border-color:#a7e3b5}.attendance-advance-mode .attendance-cell.leave-approved:hover{background:#dcecff;border-color:#b7d4f4}.attendance-advance-mode .attendance-cell.leave-unpaid:hover{background:#fde2e2;border-color:#f3b8b8}.attendance-advance-mode .attendance-cell.day-off:hover{background:#f1f4f8;border-color:#d7dee8}.attendance-advance-mode .attendance-matrix .attendance-hover-row td{background:#fffdf5!important}.attendance-advance-mode .attendance-matrix .attendance-hover-column{background:#fff8eb!important}.attendance-advance-mode .attendance-matrix .attendance-hover-row .attendance-hover-column{background:#ffefd6!important}.attendance-holiday-mode,.attendance-holiday-mode .attendance-matrix td,.attendance-holiday-mode .attendance-matrix th,.attendance-holiday-mode .attendance-cell{cursor:crosshair}.attendance-holiday-mode .attendance-holiday-unavailable,.attendance-holiday-mode .attendance-holiday-unavailable .attendance-cell,.attendance-holiday-mode .attendance-holiday-unavailable:hover{cursor:default!important}.attendance-holiday-mode .attendance-holiday-unavailable:hover{background:inherit!important}.attendance-holiday-mode .attendance-matrix th{-webkit-user-select:none;user-select:none}.attendance-holiday-mode .attendance-hover-column{background:#fff7ed!important}.attendance-holiday-mode .attendance-matrix .attendance-holiday-unavailable.attendance-hover-column,.attendance-holiday-mode .attendance-matrix th.attendance-holiday-unavailable.attendance-hover-column,.attendance-holiday-cell,.attendance-holiday-column{background:#f1f4f8!important}.attendance-cell.holiday{background:#f1f4f8;border-color:#d7dee8}.attendance-cell.holiday:hover{background:#e8edf3;border-color:#cbd5e1}.attendance-cell-content{justify-content:center;align-items:center;min-height:18px;display:flex;position:relative}.attendance-advance-marker{z-index:2;width:4px;height:4px;box-shadow:none;cursor:help;background:#f59e0b;border:0;border-radius:50%;position:absolute;top:-2px;right:1px}.attendance-advance-input{z-index:5;color:#334155;width:78px;height:25px;font:inherit;text-align:right;opacity:0;pointer-events:none;cursor:text;background:#fff;border:1px solid #94a3b8;border-radius:6px;padding:3px 6px;font-size:10px;transition:opacity .12s,box-shadow .12s;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.attendance-advance-selected .attendance-advance-input,.attendance-advance-input:focus{opacity:1;pointer-events:auto;outline:none;box-shadow:0 3px 10px #0f172a24}.attendance-legend{color:#475569;flex-wrap:wrap;align-items:center;gap:14px;margin-top:12px;font-size:11px;display:flex}.attendance-legend span{align-items:center;gap:5px;display:inline-flex}.attendance-legend-swatch{border:1px solid #cbd5e1;border-radius:2px;width:12px;height:12px;display:inline-block}.attendance-legend-swatch.worked{background:#d9f5df;border-color:#a7e3b5}.attendance-legend-swatch.leave-approved{background:#dcecff;border-color:#b7d4f4}.attendance-legend-swatch.leave-unpaid{background:#fde2e2;border-color:#f3b8b8}.attendance-legend-swatch.day-off{background:#f1f4f8;border-color:#d7dee8}.attendance-legend-swatch.advance{background:#f59e0b;border:0;border-radius:50%;width:8px;height:8px}.attendance-legend-swatch.holiday{background:#f1f4f8;border-color:#d7dee8}.employee-directory-panel{background:#fff;border:1px solid #e2e8f0;border-radius:8px;min-height:180px;padding:14px;visibility:visible!important;opacity:1!important;display:block!important}.employee-directory-header{justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;display:flex}.employee-directory-header h3{color:#0f172a;margin:0;font-size:14px}.employee-directory-header span{color:#64748b;margin-top:3px;font-size:11px;display:block}.payroll-add-employee-btn{color:#1e293b;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:6px;padding:7px 12px;font-size:12px;font-weight:600}.payroll-add-employee-btn:hover{background:#f8fafc;border-color:#64748b}.employee-directory-table-wrap{border:1px solid #e2e8f0;border-radius:6px;overflow-x:auto}.employee-directory-table{border-collapse:collapse;width:100%;font-size:12px}.employee-directory-table th,.employee-directory-table td{color:#475569;text-align:left;white-space:nowrap;border-bottom:1px solid #e2e8f0;padding:8px 10px}.employee-directory-table th{color:#334155;background:#f8fafc;font-weight:600}.employee-directory-table tbody tr:last-child td{border-bottom:0}.employee-directory-table td strong{color:#0f172a;font-weight:600}.employee-directory-empty{color:#64748b!important;text-align:center!important;padding:24px 10px!important}.payroll-add-shell .payroll-add-form{z-index:100;background:#fff;border:1px solid #cbd5e1;border-radius:12px;width:min(820px,100vw - 32px);max-height:calc(100vh - 40px);padding:0;position:fixed;top:50%;left:50%;overflow-y:auto;transform:translate(-50%,-50%);box-shadow:0 0 0 100vmax #0f172a52,0 18px 45px #0f172a38}.payroll-add-form-dropdown{width:100%!important;max-width:none!important;box-shadow:none!important;z-index:auto!important;margin:0 0 16px!important;position:relative!important;inset:auto!important;transform:none!important}.payroll-popup-header{background:#f8fafc;border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:center;gap:16px;padding:13px 18px;display:flex}.payroll-popup-header strong,.payroll-popup-header span{display:block}.payroll-popup-header strong{color:#0f172a;font-size:14px;font-weight:600}.payroll-popup-header span{color:#64748b;margin-top:3px;font-size:11px}.payroll-popup-close{color:#334155;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:6px;justify-content:center;align-items:center;width:28px;height:28px;padding:0;font-size:20px;line-height:1;display:inline-flex}.payroll-popup-close:hover{background:#f8fafc;border-color:#94a3b8}.payroll-add-shell .payroll-add-form>form{border:0;border-radius:0;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:16px 18px 14px;font-size:12px;display:grid}.payroll-add-shell .payroll-add-form>form>label{color:#475569;align-content:start;gap:5px;min-width:0;font-size:12px;font-weight:500;display:grid}.payroll-add-shell .payroll-add-form>form>label input,.payroll-add-shell .payroll-add-form>form>label select{box-sizing:border-box;width:100%}.payroll-add-shell .payroll-add-form>form>label:nth-child(5),.payroll-add-shell .payroll-add-form>form>label:nth-child(6){grid-column:span 1}.payroll-add-shell .payroll-add-form .payroll-field-label{color:#475569;font-size:12px;font-weight:500}.payroll-add-shell .payroll-add-form .form-actions{border-top:1px solid #e2e8f0;grid-column:1/-1;justify-content:flex-end;align-items:center;gap:7px;margin:3px 0 0;padding:12px 0 0;display:flex}.payroll-add-shell .payroll-add-form .form-actions button{border-radius:6px;min-width:0;height:32px;padding:6px 11px;font-size:12px;font-weight:500}.payroll-add-shell .payroll-add-form .form-actions button[type=submit]{color:#fff;background:#1e293b;border-color:#1e293b}.payroll-add-shell .payroll-add-form .form-actions button[type=submit]:hover{background:#334155}.payroll-add-shell .payroll-add-form .payroll-reset-btn{color:#334155;background:#fff;border:1px solid #cbd5e1}.payroll-add-shell .payroll-add-form .payroll-reset-btn:hover{background:#f8fafc}.payroll-popup-header>div{align-items:center;display:flex}.payroll-add-shell .payroll-add-form select,.payroll-add-shell .payroll-add-form .payroll-allowance-trigger{color:#1e293b;background-color:#fff;border:1px solid #cbd5e1;border-radius:6px;outline:none;height:34px;min-height:34px;padding:6px 10px;font-size:12px;line-height:20px;transition:border-color .15s,box-shadow .15s,background-color .15s}.payroll-add-shell .payroll-add-form select{appearance:none;background-image:linear-gradient(45deg,#0000 50%,#475569 50%),linear-gradient(135deg,#475569 50%,#0000 50%);background-position:calc(100% - 13px) 14px,calc(100% - 8px) 14px;background-repeat:no-repeat;background-size:5px 5px,5px 5px;padding-right:30px}.payroll-add-shell .payroll-add-form select:hover,.payroll-add-shell .payroll-add-form .payroll-allowance-trigger:hover,.payroll-add-shell .payroll-add-form select:focus,.payroll-add-shell .payroll-add-form .payroll-allowance-trigger[aria-expanded=true]{background-color:#f8fafc;border-color:#94a3b8;box-shadow:0 0 0 2px #94a3b824}.payroll-add-shell .payroll-add-form .payroll-allowance-trigger{height:auto;min-height:34px;line-height:18px}@media (max-width:720px){.employee-directory-header{flex-direction:column;align-items:flex-start}.payroll-add-shell .payroll-add-form{max-height:calc(100vh - 20px)}.payroll-add-shell .payroll-add-form>form{grid-template-columns:1fr}}.attendance-advance-hint{color:#92400e;cursor:var(--attendance-advance-cursor);background:#fff7ed;border:1px solid #f2c477;border-radius:6px;flex-basis:100%;align-items:center;gap:6px;margin-top:2px;padding:5px 8px;font-weight:600;display:flex!important}.attendance-table-wrap{border:1px solid #e2e8f0;border-radius:8px;overflow-x:auto}.attendance-table{border-collapse:collapse;width:100%;font-size:12px}.attendance-table th,.attendance-table td{text-align:left;border-bottom:1px solid #e2e8f0;padding:9px 12px}.attendance-table th{color:#475569;background:#f8fafc;font-weight:600}.attendance-table tr:last-child td{border-bottom:0}.attendance-table td:first-child{min-width:220px}.attendance-table td:first-child small{color:#64748b;margin-top:3px;font-size:11px;display:block}.attendance-table input{width:82px;font:inherit;border:1px solid #cbd5e1;border-radius:6px;padding:6px 8px}.attendance-close-row{align-items:center;gap:12px;margin:0 0 0 auto;display:flex;position:static}.payroll-filter{flex-direction:row;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;display:flex}.payroll-employee-count{color:#64748b;white-space:nowrap;margin:0;font-size:12px;font-weight:400}.payroll-filter label{color:#475569;white-space:nowrap;flex-direction:row;align-items:center;gap:6px;font-size:12px;font-weight:500;display:flex}.payroll-filter select{font:inherit;background:#fff;border:1px solid #cbd5e1;border-radius:6px;padding:4px 8px;font-size:12px}.payroll-date-control{align-items:center;display:inline-flex;position:relative}.payroll-date-icon{color:#64748b;pointer-events:none;font-size:14px;position:absolute;left:9px}.payroll-date-control input{color:#334155;width:150px;font:inherit;background:#fff;border:1px solid #cbd5e1;border-radius:7px;padding:7px 9px 7px 30px;font-size:12px}.payroll-date-control input:focus{outline-offset:1px;border-color:#94a3b8;outline:2px solid #cbd5e1}.payroll-table-wrap{border:1px solid #e2e8f0;border-radius:8px;overflow-x:auto}.payroll-table{table-layout:fixed;border-collapse:collapse;background:#fff;width:100%;min-width:0;font-size:10.5px}.payroll-table th,.payroll-table td{text-align:left;vertical-align:middle;white-space:nowrap;text-overflow:ellipsis;border:1px solid #e2e8f0;padding:6px;overflow:hidden}.payroll-table th{white-space:normal;word-break:break-word;line-height:1.2}.payroll-table td.payroll-allowance-cell{text-overflow:clip;overflow:visible}.payroll-allowance-cell{width:120px;max-width:120px;position:relative}.payroll-allowance-dropdown{display:inline-flex;position:relative}.payroll-allowance-summary{color:#334155;width:100%;min-width:0;height:25px;font:inherit;white-space:nowrap;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:7px;outline:none;justify-content:space-between;align-items:center;gap:5px;padding:3px 6px;font-size:10px;font-weight:500;line-height:1;transition:border-color .15s,background .15s,box-shadow .15s;display:inline-flex}.payroll-allowance-summary:hover,.payroll-allowance-summary[aria-expanded=true]{background:#f8fafc;border-color:#64748b;box-shadow:0 0 0 2px #f1f5f9}.payroll-allowance-summary:focus-visible{border-color:#64748b;outline:none;box-shadow:0 0 0 2px #e2e8f0}.payroll-allowance-summary-chevron{border-top:6px solid #334155;border-left:5px solid #0000;border-right:5px solid #0000;flex:none;width:0;height:0}.payroll-allowance-details{z-index:20;background:#fff;border:1px solid #dbe4ee;border-radius:10px;flex-direction:column;gap:5px;min-width:210px;padding:8px;display:flex;position:absolute;top:calc(100% + 6px);left:0;box-shadow:0 10px 24px #0f172a24}.payroll-allowance-detail-row{color:#475569;white-space:nowrap;background:#f8fafc;border:1px solid #e2e8f0;border-radius:999px;justify-content:space-between;align-items:center;gap:14px;min-height:24px;padding:4px 8px;font-size:10px;display:flex}.payroll-allowance-detail-row small{color:#64748b;font-variant-numeric:tabular-nums;font-size:10px}.payroll-allowance-cell+.payroll-money{width:76px}.payroll-allowance-list{white-space:normal;align-items:center;gap:4px;max-width:360px;display:inline-flex}.payroll-allowance-pill{color:#475569;white-space:nowrap;background:#f8fafc;border:1px solid #dbe4ee;border-radius:999px;align-items:center;min-height:22px;padding:3px 7px;font-size:10px;line-height:1.2;display:inline-flex}.payroll-allowance-empty{color:#94a3b8;font-size:11px}.payroll-table thead tr:first-child th{color:#334155;text-align:center;background:#f8fafc;font-size:11px;font-weight:600}.payroll-table thead tr:nth-child(2) th{color:#64748b;text-align:center;background:#f1f5f9;font-size:11px;font-weight:500}.payroll-table tbody tr:hover{background:#f8fafc}.payroll-stt{text-align:center;color:#94a3b8;width:36px;font-size:11px}.payroll-name{color:#0f172a;min-width:120px;font-weight:500}.payroll-num{text-align:center;font-variant-numeric:tabular-nums;color:#475569}.payroll-money{text-align:right;font-variant-numeric:tabular-nums;color:#334155}.payroll-col-total{color:#1e293b;border-left:2px solid #e2e8f0;font-weight:600}.payroll-col-net{color:#1e293b;border-left:2px solid #e2e8f0;font-weight:700}.payroll-summary td{border-top:2px solid #cbd5e1;background:#f8fafc!important}.payroll-summary .payroll-col-total,.payroll-summary .payroll-col-net{color:#0f172a}.allowance-info-btn{color:#475569;cursor:pointer;vertical-align:middle;background:#e2e8f0;border:none;border-radius:50%;justify-content:center;align-items:center;width:16px;height:16px;margin-left:6px;padding:0;font-size:11px;font-weight:700;line-height:1;transition:background .15s,color .15s;display:inline-flex}.allowance-info-btn:hover{color:#fff;background:#0f172a}.grade-modal-interactive .allowance-icon-btn.delete,.grade-modal-interactive .allowance-modal-footer{display:none}.allowance-modal{border-radius:8px;width:90%;max-width:480px;padding:16px 20px}.allowance-modal-body{margin-top:14px}.allowance-table{border-collapse:collapse;border:1px solid #e2e8f0;border-radius:6px;width:100%;font-size:12px;overflow:hidden}.allowance-table th,.allowance-table td{vertical-align:middle;border:1px solid #e2e8f0;padding:8px 12px}.allowance-table th{color:#475569;background:#f8fafc;font-weight:600}.allowance-table input{border:1px solid #cbd5e1;border-radius:4px;padding:4px 8px;font-size:12px}.allowance-amount-cell{text-align:right;position:relative;padding-right:64px!important}.allowance-amount-val{font-variant-numeric:tabular-nums}.allowance-edit-wrap{justify-content:flex-end;align-items:center;gap:6px;display:flex}.allowance-edit-wrap input{text-align:right;width:110px}.allowance-row-actions{opacity:0;visibility:hidden;align-items:center;gap:4px;transition:opacity .15s,visibility .15s;display:flex;position:absolute;top:50%;right:8px;transform:translateY(-50%)}.allowance-table tbody tr:hover .allowance-row-actions,.allowance-row-actions.editing{opacity:1;visibility:visible}.allowance-icon-btn{color:#64748b;cursor:pointer;background:0 0;border:none;border-radius:4px;justify-content:center;align-items:center;width:24px;height:24px;padding:0;transition:background .12s,color .12s;display:inline-flex}.allowance-icon-btn:hover{color:#0f172a;background:#f1f5f9}.allowance-icon-btn.delete:hover,.allowance-icon-btn.cancel:hover{color:#dc2626;background:#fef2f2}.allowance-icon-btn.save:hover{color:#16a34a;background:#f0fdf4}.grade-modal-interactive .allowance-table th:first-child,.grade-modal-interactive .allowance-table td:first-child{width:48%}.grade-modal-interactive .allowance-table th:nth-child(2){width:52%;text-align:center!important}.grade-modal-interactive .allowance-amount-cell{text-align:center;padding-right:72px!important}.grade-modal-interactive .allowance-amount-cell .allowance-edit-wrap{justify-content:center}.grade-modal-interactive .allowance-icon-btn.delete:before{content:"×";font-size:19px;font-weight:400;line-height:1}.allowance-modal-footer{justify-content:flex-start;margin-top:12px;display:flex}.payroll-add-row-btn{color:#1e293b;cursor:pointer;background:#fff;border:1px dashed #cbd5e1;border-radius:6px;padding:5px 12px;font-size:12px}.payroll-add-row-btn:hover{background:#f1f5f9;border-color:#94a3b8}.inventory-catalog-table-wrap tbody td:last-child button,.inventory-section tbody td:last-child button,.purchase-order-history-panel table tbody td:last-child button,.purchase-order-table-wrap tbody td:last-child button{line-height:0}.inventory-catalog-table-wrap tbody td:last-child button:after,.inventory-section tbody td:last-child button:after,.purchase-order-history-panel table tbody td:last-child button:after,.purchase-order-table-wrap tbody td:last-child button:after,.bom-row-actions .icon-button:before{content:"";background-color:currentColor;width:14px;height:14px;display:block}.inventory-catalog-table-wrap tbody td:last-child button:first-of-type:after,.inventory-section tbody td:last-child button:first-of-type:after,.purchase-order-history-panel table tbody td:last-child button:first-child:after,.purchase-order-table-wrap tbody td:last-child button:first-child:after,.bom-row-actions .icon-button:first-child:before{-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") 50%/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") 50%/contain no-repeat}.inventory-catalog-table-wrap tbody td:last-child button:last-of-type:after,.inventory-section tbody td:last-child button:last-of-type:after,.purchase-order-history-panel table tbody td:last-child button:last-child:after,.purchase-order-table-wrap tbody td:last-child button:last-child:after,.bom-row-actions .icon-button.danger:before{-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6L6 18' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round'/%3E%3C/svg%3E") 50%/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6L6 18' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round'/%3E%3C/svg%3E") 50%/contain no-repeat}.bom-row-actions .icon-button{font-size:0}.bom-row-actions .icon-button.danger span{display:none}.grade-modal-interactive .allowance-icon-btn.delete svg{display:block}.grade-modal-interactive .allowance-icon-btn.delete:before{content:none}.voucher-form.was-validated input:invalid,.voucher-form.was-validated select:invalid{border-color:#dc2626;box-shadow:0 0 0 1px #dc26261f}.inventory-catalog-table-wrap tbody td:last-child button:after,.inventory-section tbody td:last-child button:after,.purchase-order-history-panel table tbody td:last-child button:after,.purchase-order-table-wrap tbody td:last-child button:after,.bom-row-actions .icon-button:before{transform:translateY(-2px)}.bom-row-actions .icon-button:before{transform:none}.admin-screen .settings-workspace{flex-direction:column;align-items:stretch;display:flex}.admin-screen .settings-workspace:has(.system-guide-panel){width:100%;max-width:none}:is(.admin-screen .settings-workspace:has(.system-guide-panel) .production-subtabs,.admin-screen .settings-workspace:has(.system-guide-panel) .system-guide-panel){width:100%}.system-guide-panel{flex-direction:column;width:100%;min-width:0;height:calc(100vh - 160px);max-height:calc(100vh - 160px);margin-top:0;display:flex;overflow:hidden}.system-guide-loading{flex:none;margin:0;padding:8px}.system-guide-panel .mermaid-wrapper{overscroll-behavior:contain;-webkit-user-select:none;user-select:none;background:#fff;border:1px solid #e1e6eb;border-radius:12px;flex:auto;justify-content:center;align-items:flex-start;min-height:0;padding:12px;display:flex;position:relative;overflow:hidden}.system-guide-panel .mermaid-fullscreen-button{z-index:5;color:#1e293b;cursor:pointer;background:#fffffff0;border:1px solid #cbd5e1;border-radius:6px;width:34px;height:34px;padding:0;font-size:19px;line-height:1;position:absolute;top:10px;right:10px}.system-guide-panel .mermaid-fullscreen-button:hover{background:#eff6ff;border-color:#93c5fd}.system-guide-panel .mermaid-wrapper:fullscreen{background:#fff;border:0;border-radius:0;width:100vw;height:100vh;padding:24px}.system-guide-panel .mermaid-container{transform-origin:top;justify-content:center;align-items:flex-start;width:100%;min-width:0;height:100%;transition:transform .15s ease-out;display:flex}.system-guide-panel .mermaid-wrapper svg{min-height:100%;display:block;width:100%!important;max-width:none!important;height:auto!important}.admin-screen .settings-workspace>.section{width:100%;margin-top:0;display:block}.admin-screen .settings-workspace .partner-history-panel{margin-top:24px}.production-screen>section:not(.production-workspace){display:none}.production-workspace{width:100%;max-width:1500px;margin:0 auto}.production-heading{justify-content:space-between;align-items:flex-end;gap:24px;margin:18px 0 24px;display:flex}.production-heading h2{color:#213b2b;margin:0 0 7px;font:400 34px Georgia}.production-eyebrow{color:#e77943;letter-spacing:1.5px;margin:0 0 8px;font-size:10px;font-weight:800}.production-primary-action,.production-outline-action{color:#fff;cursor:pointer;background:#e77943;border:0;border-radius:9px;padding:12px 16px;font-weight:700}.production-outline-action{color:#bd633b;background:#fff;border:1px solid #edc9b5}.production-subtabs{border-bottom:1px solid #dde5dd;gap:26px;margin-bottom:22px;display:flex}.production-subtabs button{color:#77877c;cursor:pointer;background:0 0;border:0;padding:0 2px 13px;font:600 13px inherit}.production-section,.bom-section{background:#fff;border:1px solid #e5e9e3;border-radius:13px;margin-bottom:22px;padding:22px;box-shadow:0 5px 18px #213b2b08}.production-table-title{margin-bottom:18px}.production-table-title h2{color:#213b2b;margin:0;font:400 21px Georgia}.production-table-tools{align-items:center;gap:14px;display:flex}.production-count{color:#87938b;font-size:12px}.production-filter-button{color:#526258;cursor:pointer;background:#fff;border:1px solid #dbe3dc;border-radius:8px;padding:8px 11px}.production-table-wrap{overflow:auto}.bom-section>.production-table-wrap>.bom-table tbody td:nth-child(4),.legacy-bom-summary{display:none}.production-orders-table,.bom-table{border-collapse:collapse;color:#4e5c53;width:100%;min-width:1080px;font-size:12px}.production-orders-table th,.bom-table th{color:#7a887e;letter-spacing:.3px;text-align:left;white-space:nowrap;background:#f5f7f3;border-bottom:1px solid #e1e7e0;padding:12px 10px;font-size:10px;font-weight:800}.production-orders-table td,.bom-table td{white-space:nowrap;vertical-align:middle;border-bottom:1px solid #edf0ec;padding:14px 10px}.production-product-name{color:#34473b;min-width:190px;font-weight:600}.production-remaining{color:#34473b;font-weight:700}.production-time{color:#6e8174}.bom-status{color:#4e765a;background:#eef3ed;border-radius:20px;padding:6px 9px;font-size:10px;font-weight:700;display:inline-flex}.status-đã-tạo{color:#778279;background:#f2f3ef}.status-đã-phát-hành{color:#bd6a3b;background:#fff3e9}.status-đã-hoàn-thành{color:#3d8b58;background:#e9f6ed}.status-đã-khoá{color:#735d91;background:#f1edf7}.production-progress-cell{align-items:center;gap:8px;min-width:92px;display:flex}.production-progress-track{background:#e9eee9;border-radius:8px;width:62px;height:7px;overflow:hidden}.production-progress-track span{border-radius:inherit;background:#5eaa73;height:100%;display:block}.production-error-list{gap:5px;min-height:24px;display:flex}.production-error-icon{color:#bd7454;background:#f4edea;border-radius:7px;place-items:center;width:23px;height:23px;font-size:14px;font-style:normal;display:inline-grid}.error-material{color:#b98532;background:#f9f1df}.error-quantity{color:#8d68a3;background:#f4eafa}.error-quality{color:#5d839a;background:#eaf1f5}.error-delivery{color:#4f9870;background:#eaf5ef}.production-error-legend{color:#7d897f;flex-wrap:wrap;gap:16px 24px;padding-top:16px;font-size:11px;display:flex}.production-error-legend span{align-items:center;gap:6px;display:flex}.production-error-legend .production-error-icon{width:20px;height:20px}.bom-section{padding-bottom:20px}.bom-summary{gap:12px;margin:-2px 0 19px;display:flex}.bom-summary span{color:#8a968d;margin-bottom:7px;font-size:11px;display:block}.bom-status.draft{color:#b17d2b;background:#fff4df}.bom-view-button{color:#d46e3d;cursor:pointer;background:0 0;border:0;padding:0;font-size:11px;font-weight:700}@media (max-width:760px){.production-heading{flex-direction:column;align-items:flex-start}.production-heading h2{font-size:28px}.production-primary-action{width:100%}.production-subtabs,.bom-summary{overflow:auto}.bom-summary>div{min-width:125px}}:root{--production-neutral:#475569}.production-material-header,.production-material-row{grid-template-columns:minmax(130px,1fr) minmax(180px,1.4fr) minmax(150px,1fr) minmax(110px,.7fr) 30px}.production-order-form-grid .production-material-header,.production-order-form-grid .production-material-row{grid-template-columns:minmax(130px,1fr) minmax(180px,1.4fr) minmax(150px,1fr) minmax(110px,.7fr)}html,body,button,input,select,textarea{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.production-add-button{color:#fff;background:#1e293b;border:0;border-radius:6px;padding:6px 10px;font-weight:500}.production-order-form-dropdown{margin-bottom:12px}.production-order-form-dropdown .form-grid{border-radius:6px}.production-order-form-dropdown{display:none}.production-order-form-container{margin-bottom:12px}.production-order-form-grid{border-radius:6px;grid-template-columns:repeat(4,minmax(0,1fr))}.production-order-form-grid>label{min-width:0}.production-order-form-grid>label>input,.production-order-form-grid>label>select{box-sizing:border-box;height:35px;min-height:35px}.production-order-code-field input{width:25%}.production-order-form-row-break{grid-column:4;min-height:1px}.production-order-form-grid input[readonly]{color:#64748b;background:#f8fafc}.production-personnel-dropdown{width:100%;min-width:0;position:relative}.production-personnel-field{align-content:start;min-height:0!important}.production-personnel-trigger{appearance:none;box-sizing:border-box;text-align:left;color:#334155;background:#fff;border:1px solid #cbd5e1;border-radius:6px;justify-content:space-between;align-items:center;gap:8px;width:100%;display:flex;overflow:hidden;height:35px!important;min-height:35px!important;max-height:35px!important;margin:0!important;padding:0 8px!important;font-size:12px!important;line-height:1!important}.production-personnel-pills{white-space:nowrap;flex:auto;align-items:center;gap:4px;min-width:0;height:22px;display:flex;overflow:hidden}.production-personnel-pill{box-sizing:border-box;color:#334155;text-overflow:ellipsis;white-space:nowrap;background:#eff6ff;border:1px solid #93c5fd;border-radius:999px;flex:none;max-width:112px;height:22px;padding:0 6px;font-size:12px;line-height:20px;overflow:hidden}.production-personnel-placeholder{color:#64748b}.production-personnel-menu{z-index:20;background:#fff;border:1px solid #cbd5e1;border-radius:6px;gap:4px;max-height:220px;padding:8px;display:grid;position:absolute;top:calc(100% + 4px);left:0;right:0;overflow-y:auto;box-shadow:0 8px 20px #0f172a24}.production-personnel-menu label{cursor:pointer;border-radius:4px;align-items:center;gap:8px;padding:6px 4px;display:flex}.production-personnel-menu label:hover{background:#f1f5f9}.production-material-fieldset{border:1px solid #e2e8f0;border-radius:6px;min-width:0;margin:0;padding:10px}.production-material-fieldset legend{color:#475569;padding:0 5px;font-size:12px;font-weight:600}.production-status-note{color:#64748b;margin-top:4px;font-size:10px;line-height:1.3;display:block}.production-material-table{gap:6px;display:grid}.production-material-header,.production-material-row{grid-template-columns:minmax(130px,1fr) minmax(180px,1.4fr) minmax(150px,1fr) 30px;align-items:center;gap:8px;display:grid}.production-material-header{color:#64748b;font-size:11px;font-weight:600}.production-material-row input{width:100%}.production-order-form-grid .form-actions{margin-top:2px}.production-order-form-grid .production-order-form-actions{justify-self:end;align-items:center;justify-content:flex-end!important;width:max-content!important;display:flex!important}.production-order-form-grid .production-order-form-actions button[type=button]{order:1}.production-order-form-grid .production-order-form-actions button[type=submit]{order:2}.production-order-form-actions{flex-direction:row;justify-content:flex-end}.production-order-form-actions button[type=button]{order:1}.production-order-form-actions button[type=submit]{order:2}@media (max-width:800px){.production-order-form-grid{grid-template-columns:1fr}.production-order-code-field input{width:100%}.production-order-form-row-break,.production-material-header{display:none}.production-material-row{grid-template-columns:1fr 1fr 1fr 30px}}.production-progress-track{border-radius:4px;width:76px;height:18px}.production-progress-track span{border-radius:4px}.production-screen .production-progress-track{border-radius:4px;width:76px!important;height:18px!important}.production-screen .production-progress-track>span{border-radius:4px;min-width:28px;position:relative;height:100%!important}.production-screen .production-progress-track>span b{color:#fff;white-space:nowrap;place-items:center;font-size:9px;font-weight:600;line-height:1;display:grid;position:absolute;inset:0}.production-screen .production-order-modal .production-order-modal-progress .production-progress-track{min-width:0;display:block;width:100%!important;height:8px!important}.production-workspace{flex-direction:column;display:flex}.production-subtabs{order:1}.production-order-form-container{order:2}.production-workspace>.section{order:3}.production-section .production-table-title{align-items:flex-start;min-height:56px;position:relative}.production-section .production-table-tools{align-items:flex-start;position:static}.production-section .production-table-title{margin-bottom:16px}.production-workspace{grid-template-columns:minmax(0,1fr) auto;align-items:start;display:grid}.production-workspace>.production-subtabs{grid-area:1/1/auto/-1}.production-workspace>.production-section{display:contents}.production-workspace>.production-section>.production-table-title{grid-area:2/1/auto/-1}.production-workspace>.production-order-form-container{grid-area:3/1/auto/-1}.production-workspace>.production-section>.production-table-wrap{grid-area:4/1/auto/-1}.production-workspace>.production-section>.production-history-panel{grid-area:5/1/auto/-1}.production-workspace>.bom-section{grid-column:1/-1}.production-section .production-table-tools{align-items:center}.production-section .production-table-title{min-height:0}.production-orders-table thead tr:first-child th{text-align:left}.production-two-line{gap:2px;line-height:1.35;display:grid}.production-progress-track span{min-width:28px;height:100%;display:block;position:relative}.production-progress-track span b{color:#fff;white-space:nowrap;place-items:center;font-size:9px;font-weight:600;display:grid;position:absolute;inset:0}.production-error-icon{color:#cbd5e1}.production-error-icon.is-active{color:#475569;background:#f1f5f9}.production-screen{background:#f4f7fb}.production-workspace{max-width:none;margin:0}.production-subtabs{border-bottom:1px solid #e2e8f0;gap:4px;margin:0 0 16px}.production-subtabs button{color:#64748b;border-radius:0;padding:8px 14px 9px;font-size:13px;font-weight:500}.production-subtabs button.active{color:#0f172a;border-bottom:2px solid #0284c7}.production-section,.bom-section{box-shadow:none;background:0 0;border:0;border-radius:0;margin:0 0 18px;padding:0}.production-table-title{margin:0 0 12px}.production-table-title h2{color:#0f172a;font:600 16px inherit}.production-table-tools{gap:8px}.production-count{color:#64748b}.production-filter-button,.production-outline-action{color:#1e293b;background:#fff;border:1px solid #cbd5e1;border-radius:6px;padding:6px 10px;font-weight:500}.production-table-wrap{background:#fff;border:1px solid #e2e8f0;border-radius:6px}.production-orders-table,.bom-table{color:#334155;min-width:1080px}.production-orders-table th,.bom-table th{color:#475569;background:#f8fafc;border-bottom:1px solid #e2e8f0;padding:8px 12px;font-size:11px;font-weight:600}.production-orders-table td,.bom-table td{border-bottom:1px solid #f1f5f9;padding:8px 12px}.production-orders-table tbody tr:hover,.bom-table tbody tr:hover{background:#f8fafc}.production-row-actions{box-sizing:border-box;text-align:center;vertical-align:middle;white-space:nowrap;width:230px;min-width:230px}.production-row-actions-inner{justify-content:flex-end;align-items:center;gap:4px;width:100%;min-height:28px;display:flex}.production-publish-button,.production-edit-button{box-sizing:border-box;justify-content:center;align-items:center;height:25px;display:inline-flex}.production-publish-button{color:#1d4ed8;cursor:pointer;background:#eff6ff;border:1px solid #bfdbfe;border-radius:6px;order:1;margin-right:6px;padding:5px 8px;font-size:11px}.production-publish-button:hover{background:#dbeafe}.production-delete-button{opacity:1;color:#64748b;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:6px;order:3;justify-content:center;align-items:center;width:25px;height:25px;padding:0;font-size:18px;line-height:22px;display:inline-flex}.production-action-placeholder{flex:none;height:25px;display:inline-block}.production-publish-placeholder{width:84px}.production-edit-placeholder{width:60px}.production-orders-table tbody tr:hover .production-delete-button,.production-delete-button:focus-visible{opacity:1}.production-delete-button:hover{background:#fef2f2;border-color:#fca5a5}.production-order-code,.bom-table strong{color:#0f172a}.production-sku,.bom-version{color:#475569;font-weight:600}.production-product-name,.production-remaining{color:#334155;font-weight:500}.bom-status{color:#475569;background:#f1f5f9;border-radius:6px;padding:4px 7px;font-size:11px}.status-đã-phát-hành,.status-đã-hoàn-thành{color:#475569;background:#f1f5f9}.status-đã-tạo,.status-đã-khoá,.bom-status.draft{color:#64748b;background:#f8fafc}.production-progress-cell strong{color:#475569;font-size:11px}.production-progress-track{background:#e2e8f0;width:62px;height:6px}.production-progress-track span{background:#64748b}.production-error-icon{color:#64748b;background:#f8fafc;border:1px solid #e2e8f0;border-radius:5px;width:22px;height:22px}.error-material,.error-quantity,.error-quality,.error-delivery{color:#64748b;background:#f8fafc}.error-late{color:#b45309;background:#fffbeb;border-color:#fde68a}.production-error-legend{color:#64748b;padding-top:10px}.bom-summary{gap:8px;margin:0 0 12px}.bom-summary>div{background:#fff;border:1px solid #e2e8f0;border-radius:6px;min-width:130px;padding:10px 12px}.bom-summary span{color:#64748b}.bom-summary strong{color:#0f172a;font:600 18px inherit}.bom-view-button{color:#475569;font-weight:500}.module-subtabs{border-bottom:1px solid #e2e8f0;gap:4px;margin:0 0 16px;display:flex;overflow:auto}.module-subtabs button{color:#64748b;cursor:pointer;white-space:nowrap;background:0 0;border:0;border-radius:0;padding:8px 14px 9px;font:500 13px inherit}.module-subtabs button.active{color:#0f172a;border-bottom:2px solid #0284c7}.empty-subtab{background:0 0;border:0;min-height:0;margin:0}.admin-screen>.inventory-subtabs{display:none}.admin-screen [hidden]{display:none!important}.admin-screen{flex-direction:column;display:flex}.admin-screen>*{order:5}.admin-screen>.topbar{order:1}.admin-screen>.admin-tabs{order:2}.admin-screen>.module-subtabs{order:3}.admin-screen>.empty-subtab{order:4}.admin-screen>.purchase-order-section,.admin-screen>.sales-order-section,.admin-screen>.stock-history-section,.admin-screen>.inventory-catalog-section{margin-top:0}.admin-screen>.admin-tabs,.admin-screen>.module-subtabs,.admin-screen .production-subtabs{border-bottom:1px solid #e2e8f0;align-items:stretch;gap:4px;margin:0 0 16px;display:flex;overflow:auto hidden}.admin-screen>.admin-tabs button,.admin-screen>.module-subtabs button,.admin-screen .production-subtabs button{color:#64748b;white-space:nowrap;cursor:pointer;background:0 0;border:0;border-bottom:2px solid #0000;border-radius:0;outline:none;flex:none;padding:8px 14px 9px;font:500 13px/1.2 Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.admin-screen>.admin-tabs button.active,.admin-screen>.module-subtabs button.active,.admin-screen .production-subtabs button.active{color:#0f172a;border-bottom-color:#0284c7;font-weight:600}.admin-screen>.admin-tabs button:focus-visible,.admin-screen>.module-subtabs button:focus-visible,.admin-screen .production-subtabs button:focus-visible{outline-offset:-2px;outline:2px solid #93c5fd}.admin-screen>.section,.admin-screen>.accounting-grid-panel,.admin-screen>.purchase-order-section,.admin-screen>.sales-order-section,.admin-screen>.stock-history-section,.admin-screen>.inventory-catalog-section{margin-top:0}.admin-screen>.payroll-section,.admin-screen>.inventory-history-panel{margin-top:24px}.admin-screen button{color:#0f172a;box-shadow:none;background:#fff;border:1px solid #cbd5e1;border-radius:6px}.admin-screen .accounting-account-menu button{border:0;border-radius:0}.admin-screen button:hover:not(:disabled){color:#0f172a;background:#f8fafc;border-color:#94a3b8}.admin-screen button:disabled{color:#94a3b8;background:#f8fafc;border-color:#e2e8f0}.admin-screen .attendance-cell:disabled{opacity:1;color:inherit;background:#fff;border-color:#cbd5e1}.admin-screen .attendance-cell.worked:disabled{background:#d9f5df;border-color:#a7e3b5}.admin-screen .attendance-cell.leave-approved:disabled{background:#dcecff;border-color:#b7d4f4}.admin-screen .attendance-cell.leave-unpaid:disabled{background:#fde2e2;border-color:#f3b8b8}.admin-screen .attendance-cell.day-off:disabled{background:#f1f4f8;border-color:#d7dee8}.admin-screen>.admin-tabs button,.admin-screen>.module-subtabs button,.admin-screen .production-subtabs button{color:#64748b;background:0 0;border:0;border-bottom:2px solid #0000;border-radius:0}.admin-screen>.admin-tabs button.active,.admin-screen>.module-subtabs button.active,.admin-screen .production-subtabs button.active{color:#0f172a;background:0 0;border-bottom-color:#0284c7}.admin-screen .legacy-document-add-line{border-style:dashed!important}.shipping-request-section,.production-request-section{margin-top:0}.production-request-table th:first-child{width:18%}.production-request-table th:nth-child(2){width:24%}.production-request-table th:nth-child(3){width:20%}.production-request-table th:nth-child(4){width:18%}.production-request-table th:nth-child(5){width:16%}.production-request-table th:nth-child(6){width:4%}.production-request-create-form select{color:#0f172a;min-width:0;height:36px;font:inherit;background:#fff;border:1px solid #cbd5e1;border-radius:5px;padding:7px 10px;font-size:12px}.shipping-request-table th:first-child{width:18%}.shipping-request-table th:nth-child(2){width:28%}.shipping-request-table th:nth-child(3),.shipping-request-table th:nth-child(4){width:22%}.shipping-request-table th:nth-child(5){width:10%}.shipping-request-table th:last-child,.shipping-request-table td:last-child{width:190px;min-width:190px}.shipping-request-table td:first-child>button:not(.shipping-request-code){display:none}.shipping-request-table td:last-child{white-space:nowrap}.shipping-request-action{color:#15803d;border-color:#15803d;justify-content:center;align-items:center;margin-right:6px;display:inline-flex!important}.shipping-request-history-section{border-top:1px solid #e2e8f0;margin-top:24px;padding-top:20px}.shipping-request-history-section .section-title-row{margin:0 0 12px}.shipping-request-history-section h2{color:#0f172a;margin:0;font-size:15px;font-weight:600}.shipping-request-history-table{min-width:980px}.shipping-request-history-table th,.shipping-request-history-table td{vertical-align:top}.shipping-request-status.delivered{color:#15803d}.shipping-request-form-fields{grid-template-columns:1fr 1fr;gap:10px;display:grid}.shipping-request-form-fields label{color:#334155;gap:5px;font-size:11px;font-weight:600;display:grid}.shipping-request-form-fields input{color:#0f172a;min-width:0;height:36px;font:inherit;background:#fff;border:1px solid #cbd5e1;border-radius:5px;padding:7px 10px;font-size:12px}@media (max-width:700px){.shipping-request-form-fields{grid-template-columns:1fr}}.admin-screen .section-title-row h2,.admin-screen .production-table-title h2,.admin-screen .production-heading h2,.admin-screen .accounting-panel h2,.admin-screen .inventory-title-row h2,.admin-screen .accounting-toolbar h2,.admin-screen .accounting-report-heading h2,.admin-screen .debt-tracking-heading h2,.admin-screen .financial-reports-heading h2,.admin-screen .legacy-document-header h2,.admin-screen .cash-flow-heading h2{color:#0f172a;margin:0;font:600 15px/1.3 Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.admin-screen .section-title-row,.admin-screen .production-table-title{align-items:center;margin-bottom:18px}.admin-screen h2.production-page-title{color:#0f172a!important;margin:0!important;font:600 15px/1.3 Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif!important}.admin-screen>.admin-tabs,.admin-screen>.module-subtabs,.admin-screen .production-subtabs{border-bottom:1px solid #cbd5e1;width:100%}.admin-screen>.admin-tabs button,.admin-screen>.module-subtabs button,.admin-screen .production-subtabs button{position:relative;border-bottom-color:#0000!important}.admin-screen>.admin-tabs button.active:after,.admin-screen>.module-subtabs button.active:after,.admin-screen .production-subtabs button.active:after{content:"";z-index:1;background:#0284c7;height:2px;position:absolute;bottom:-1px;left:0;right:0}.admin-screen>.admin-tabs button:hover:not(.active):after,.admin-screen>.module-subtabs button:hover:not(.active):after,.admin-screen .production-subtabs button:hover:not(.active):after{content:"";z-index:1;background:#94a3b8;height:1px;position:absolute;bottom:-1px;left:0;right:0}.admin-screen>.admin-tabs button,.admin-screen>.module-subtabs button,.admin-screen .production-subtabs button{border-bottom-width:1px}.admin-screen>.admin-tabs,.admin-screen>.module-subtabs,.admin-screen .production-subtabs{border-bottom:0;gap:0}.admin-screen>.admin-tabs button.active,.admin-screen>.module-subtabs button.active,.admin-screen .production-subtabs button.active{border-bottom:0!important}.admin-screen>.admin-tabs button.active:after,.admin-screen>.module-subtabs button.active:after,.admin-screen .production-subtabs button.active:after{height:2px;bottom:0}.admin-screen>.module-subtabs,.admin-screen>.admin-tabs,.admin-screen .production-subtabs{border-bottom:1px solid #cbd5e1!important}.admin-tabs span,.warehouse-tabs span,.role-badge,.production-legacy-document-code,.shipping-request-code,.shipping-source-pill,.sales-order-code,.purchase-order-code-pill,.rfq-source-link,.admin-screen .legacy-document-table button.shipping-request-code{border:1px solid #cbd5e1;border-radius:5px;padding:4px 8px;font-weight:600}.admin-screen .legacy-document-table button.shipping-request-code,.admin-screen .legacy-document-table button.shipping-source-pill{font:inherit;cursor:pointer;box-shadow:none;border:1px solid #cbd5e1;border-radius:5px;padding:4px 8px;font-weight:600;line-height:normal;background:#fff!important;display:inline-block!important}.admin-screen .legacy-document-table button.shipping-request-code:hover,.admin-screen .legacy-document-table button.shipping-request-code:focus-visible,.admin-screen .legacy-document-table button.shipping-source-pill:hover,.admin-screen .legacy-document-table button.shipping-source-pill:focus-visible{box-shadow:none;border-color:#60a5fa;outline:none;background:#eff6ff!important}.admin-screen .purchase-order-table-wrap .purchase-order-code-pill{color:inherit;font:inherit;box-shadow:none;border:1px solid #cbd5e1;border-radius:5px;padding:4px 8px;font-weight:600;line-height:normal;background:#fff!important;display:inline-block!important}.admin-screen .purchase-order-table-wrap .purchase-order-code-pill:hover,.admin-screen .purchase-order-table-wrap .purchase-order-code-pill:focus-visible{box-shadow:none;border-color:#60a5fa;outline:none;background:#eff6ff!important}.unified-pill{font:inherit!important;background:#fff!important;border:1px solid #cbd5e1!important;border-radius:5px!important;padding:4px 8px!important;font-weight:600!important;line-height:normal!important;display:inline-block!important}.unified-pill:hover,.unified-pill:focus-visible{outline:none;background:#eff6ff!important;border-color:#60a5fa!important}.bom-status{background:0 0;border-radius:0;padding:0}.accounting-reports-panel,.accounting-report-table-wrap,.accounting-report-table{overflow:visible!important}.accounting-report-table thead{z-index:5!important;position:sticky!important;top:0!important}.accounting-report-table thead th{z-index:6!important;background:#f1f5f9!important;position:sticky!important;top:0!important}main.accounting-screen{width:100%;margin-left:0;margin-right:0;overflow-x:clip}.accounting-report-table,.journal-table,.ledger-table{table-layout:fixed;width:100%!important;min-width:0!important}.accounting-report-table th,.accounting-report-table td{min-width:0}.journal-table th:first-child,.journal-table td:first-child{width:16%}.journal-table th:nth-child(2),.journal-table td:nth-child(2){width:42%}.journal-table th:nth-child(3),.journal-table td:nth-child(3),.journal-table th:nth-child(4),.journal-table td:nth-child(4),.journal-table th:nth-child(5),.journal-table td:nth-child(5){width:14%}.journal-table td:nth-child(2),.ledger-table td:nth-child(3){white-space:normal;overflow-wrap:anywhere}.journal-table .journal-total-row{z-index:4!important;position:sticky!important;bottom:0!important}.journal-table .journal-total-row td{color:#334155;background:#fff;border-top:2px solid #94a3b8;border-bottom:0;font-weight:700}.journal-table .journal-total-row .number{color:#0f172a;font-variant-numeric:tabular-nums}.cash-flow-panel{box-shadow:none;background:0 0;border:0;margin-top:16px}.sales-rfq-refresh-email{color:#17365d;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:50%;width:32px;height:32px;padding:0;font-size:19px;line-height:1;position:absolute;top:50%;right:178px;transform:translateY(-50%)}.sales-rfq-refresh-email:hover,.sales-rfq-refresh-email:focus-visible{background:#eff6ff;border-color:#60a5fa;outline:none}.sales-rfq-refresh-email:disabled{color:#94a3b8;cursor:wait}.icon-refresh-button{color:#17365d;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:50%;justify-content:center;align-items:center;width:34px;height:34px;padding:0;font-size:20px;line-height:1;display:inline-flex}.icon-refresh-button:hover,.icon-refresh-button:focus-visible{background:#eff6ff;border-color:#60a5fa;outline:none}.icon-refresh-button:disabled{color:#94a3b8;cursor:wait}.refresh-icon{display:inline-block}.refresh-icon.is-spinning{animation:.8s linear infinite vietmas-refresh-spin}@keyframes vietmas-refresh-spin{to{transform:rotate(360deg)}}.cash-flow-main-card{background:#fff;border:1px solid #e2e8f0;border-radius:8px;overflow:hidden;box-shadow:0 1px 3px #0f172a0d}.cash-flow-heading{justify-content:space-between;align-items:center;gap:20px;padding:18px 20px 16px;display:flex}.cash-flow-heading h2{color:#0f172a;margin:0;font-size:20px}.cash-flow-heading p{color:#64748b;margin:4px 0 0;font-size:12px}.cash-flow-actions{gap:8px;display:flex}.cash-flow-actions button,.cash-flow-form-actions button{border-radius:5px;min-height:32px;padding:7px 11px;font-size:11px;font-weight:600}.cash-flow-receipt-button{color:#15803d;background:#f0fdf4;border:1px solid #bbf7d0}.cash-flow-payment-button{color:#be123c;background:#fff1f2;border:1px solid #fecaca}.cash-flow-receipt-button:hover{background:#dcfce7;border-color:#86efac}.cash-flow-payment-button:hover{background:#ffe4e6;border-color:#fda4af}.cash-flow-metrics{grid-template-columns:repeat(4,1fr);gap:10px;padding:0 20px 16px;display:grid}.cash-flow-metrics article{background:#f8fafc;border:1px solid #e2e8f0;border-radius:6px;gap:4px;min-height:82px;padding:11px 12px;display:grid}.cash-flow-metrics span,.cash-flow-metrics em{color:#64748b;font-size:11px;font-style:normal}.cash-flow-metrics strong{color:#0f172a;font-variant-numeric:tabular-nums;font-size:17px}.cash-flow-metrics strong small{color:#64748b;font-size:10px;font-weight:500}.cash-flow-metrics strong.positive{color:#15803d}.cash-flow-metrics strong.negative{color:#be123c}.cash-flow-toolbar{background:#f8fafc;border-top:1px solid #f1f5f9;border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:flex-end;gap:14px;padding:10px 20px;display:flex}.cash-flow-filters{flex-wrap:wrap;align-items:flex-end;gap:8px;display:flex}.date-range-filter{gap:4px;display:grid}.date-range-filter>details{z-index:3;width:207px;max-width:100%;position:relative}.date-range-filter>details[open]{z-index:40}.date-range-label{color:#64748b;font-size:11px;font-weight:500}.date-range-pill{box-sizing:border-box;color:#475569;cursor:pointer;white-space:nowrap;background:#fff;border:1px solid #cbd5e1;border-radius:999px;align-items:center;gap:8px;width:100%;min-height:30px;padding:5px 10px;font-size:11px;list-style:none;display:flex;overflow:hidden}.date-range-pill::-webkit-details-marker{display:none}.date-range-pill:after{content:"";border-bottom:2px solid #334155;border-right:2px solid #334155;flex:0 0 6px;align-self:center;width:6px;height:6px;margin:0 1px 0 2px;transform:rotate(45deg)}.date-range-pill strong{color:#0f172a;text-overflow:ellipsis;white-space:nowrap;flex:auto;min-width:0;font-size:11px;font-weight:600;overflow:hidden}.date-range-filter[open] .date-range-pill{border-color:#94a3b8;box-shadow:0 0 0 2px #94a3b826}.date-range-popover{box-sizing:border-box;z-index:41;background:#fff;border:1px solid #cbd5e1;border-radius:8px;width:100%;min-width:0;max-width:calc(100vw - 16px);padding:6px;position:absolute;top:calc(100% + 6px);left:0;box-shadow:0 12px 28px #0f172a26}.date-range-calendar-header,.date-range-weekdays,.date-range-calendar-grid{grid-template-columns:repeat(7,minmax(0,1fr));align-items:center;gap:2px;display:grid}.date-range-calendar-header{text-align:center;text-transform:capitalize;grid-template-columns:20px 1fr 20px;margin-bottom:5px;font-size:9px}.date-range-calendar-header button{color:#334155;cursor:pointer;background:#f1f5f9;border:0;border-radius:5px;width:20px;height:20px;font-size:15px;line-height:1}.date-range-weekdays{color:#94a3b8;text-align:center;margin-bottom:2px;font-size:8px;font-weight:700}.date-range-calendar-grid button,.date-range-calendar-grid>span{box-sizing:border-box;width:100%;min-width:0;height:21px}.date-range-calendar-grid button{color:#334155;cursor:pointer;background:0 0;border:0;border-radius:5px;padding:0;font-size:9px}.date-range-calendar-grid button:hover,.date-range-calendar-grid button.is-in-range{background:#e2e8f0}.date-range-calendar-grid button.is-selected{color:#fff;background:#334155;font-weight:700}.date-range-calendar-hint{display:none}.date-range-clear{color:#475569;cursor:pointer;text-align:center;background:#fff;border:0;border-top:1px solid #e2e8f0;border-radius:0;width:100%;margin-top:5px;padding:5px 8px;font-size:9px}.date-range-clear:hover{color:#0f172a;background:#f8fafc}.cash-flow-filters label{color:#64748b;gap:4px;font-size:11px;font-weight:500;display:grid}.cash-flow-filters input,.cash-flow-filters select{color:#334155;background:#fff;border:1px solid #cbd5e1;border-radius:5px;min-height:30px;padding:5px 8px;font-size:12px}.cash-flow-filters select{min-width:150px;border-right:1px solid #cbd5e1!important}.cash-flow-search input{min-width:230px}.cash-flow-table-wrap{padding-bottom:52px;overflow:auto visible}.cash-flow-table{table-layout:fixed;border:0;border-radius:0;width:100%;min-width:1180px;font-size:11.5px}.cash-flow-table th,.cash-flow-table td{vertical-align:middle;white-space:normal;border-bottom:1px solid #f1f5f9;border-right:1px solid #f1f5f9;padding:9px 10px}.cash-flow-table th{color:#475569;letter-spacing:.01em;text-align:left;white-space:nowrap;background:#f8fafc;font-size:11px;font-weight:700}.cash-flow-table tbody tr{background:#fff;transition:background-color .15s}.cash-flow-table tbody tr:hover{background:#f8fbff}.cash-flow-table th:first-child,.cash-flow-table td:first-child{width:11%}.cash-flow-table th:nth-child(2),.cash-flow-table td:nth-child(2){width:10%}.cash-flow-table th:nth-child(3),.cash-flow-table td:nth-child(3){width:22%}.cash-flow-table th:nth-child(4),.cash-flow-table td:nth-child(4){width:15%}.cash-flow-table th:nth-child(5),.cash-flow-table td:nth-child(5){width:10%}.cash-flow-table th:nth-child(6),.cash-flow-table td:nth-child(6){width:14%}.cash-flow-table th:nth-child(7),.cash-flow-table td:nth-child(7){width:18%}.cash-flow-table td:nth-child(3),.cash-flow-table td:nth-child(4),.cash-flow-table td:nth-child(6){overflow-wrap:anywhere}.cash-flow-table td:first-child small{color:#94a3b8;margin-top:2px;font-size:10px;font-weight:400;display:block}.cash-flow-table .number{text-align:right;font-variant-numeric:tabular-nums}.cash-flow-table tfoot{border:1px solid #cbd5e1;border-bottom:0;border-radius:7px 7px 0 0;box-shadow:0 -4px 14px #0f172a1a;z-index:10!important;table-layout:fixed!important;background:#fff!important;width:auto!important;display:table!important;position:fixed!important;bottom:0!important;left:20px!important;right:20px!important}.cash-flow-table tfoot tr{background:#fff!important;display:table-row!important}.cash-flow-table tfoot td{padding:7px 9px;background:#fff!important;display:table-cell!important}.cash-flow-table tfoot td:first-child{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.cash-flow-table tfoot td:last-child{text-align:right}.cash-flow-table tfoot td{color:#334155;background:#fff;border-top:2px solid #94a3b8;border-bottom:0;font-weight:700}.cash-flow-table tfoot td small{color:#64748b;margin:0 0 0 10px;font-size:10px;font-weight:500;display:inline}.cash-flow-table tfoot .number{color:#0f172a}.cash-flow-history-panel{background:#fff;border:1px solid #e2e8f0;border-radius:8px;margin:20px 0 0;overflow:hidden;box-shadow:0 1px 3px #0f172a0d}.cash-flow-history-heading{justify-content:space-between;align-items:center;padding:16px 20px 12px;display:flex}.cash-flow-history-heading h3{color:#0f172a;margin:0;font-size:15px;font-weight:600;line-height:1.3}.cash-flow-history-table-wrap{background:#fff;border-top:1px solid #e2e8f0;overflow-x:auto}.cash-flow-history-table{border-collapse:collapse;color:#334155;table-layout:fixed;width:100%;min-width:980px;font-size:11.5px}.cash-flow-history-table th,.cash-flow-history-table td{text-align:left;vertical-align:middle;border-bottom:1px solid #eef2f7;padding:8px 10px}.cash-flow-history-table th{color:#475569;white-space:nowrap;background:#f8fafc;font-size:11px;font-weight:700}.cash-flow-history-table tbody tr:last-child td{border-bottom:0}.cash-flow-history-table tbody tr:hover{background:#f8fbff}.cash-flow-history-table th:first-child,.cash-flow-history-table td:first-child{width:15%}.cash-flow-history-table th:nth-child(2),.cash-flow-history-table td:nth-child(2){width:14%}.cash-flow-history-table th:nth-child(3),.cash-flow-history-table td:nth-child(3){width:20%}.cash-flow-history-table th:nth-child(4),.cash-flow-history-table td:nth-child(4){width:16%}.cash-flow-history-table th:nth-child(5),.cash-flow-history-table td:nth-child(5),.cash-flow-history-table th:nth-child(6),.cash-flow-history-table td:nth-child(6){width:17.5%}.cash-flow-history-table .history-subject{color:#64748b;margin-top:3px;font-size:.82em;display:block}.production-edit-button{color:#1e3a8a;cursor:pointer;background:#f8fbff;border:1px solid #93c5fd;border-radius:6px;order:2;min-width:54px;margin-right:6px;padding:0 10px;font-size:11px;line-height:1;transition:background-color .15s,border-color .15s,color .15s}.production-edit-button:hover{color:#1d4ed8;background:#eff6ff;border-color:#60a5fa}.cash-flow-history-empty{color:#64748b;text-align:center!important;padding:18px 10px!important}.history-style{background:#fff;border:1px solid #e2e8f0;border-radius:8px;margin:20px 0 0;overflow:hidden;box-shadow:0 1px 3px #0f172a0d}.history-style>h2,.history-style>.section-title-row{box-sizing:border-box;justify-content:space-between;align-items:center;width:100%;min-height:53px;margin:0;padding:16px 20px 12px;display:flex}.history-style>h2,.history-style>.section-title-row h2{color:#0f172a;font-size:15px;font-weight:600;line-height:1.3}.history-style>.section-title-row>div>.muted{display:none}.history-style>table,.history-style>.history-table-wrap,.history-style>.history-table{border-top:1px solid #e2e8f0}.history-style>.history-table-wrap{overflow-x:auto}.history-style table{color:#334155;font-size:11.5px}.history-style table th,.history-style table td{text-align:left;vertical-align:middle;border-bottom:1px solid #eef2f7;padding:8px 10px}.history-style table th{color:#475569;white-space:nowrap;background:#f8fafc;font-size:11px;font-weight:700}.history-style table tbody tr:last-child td{border-bottom:0}.history-style table tbody tr:hover{background:#f8fbff}.cash-flow-code{color:#0369a1;background:#f0f9ff;border:1px solid #bae6fd;border-radius:999px;padding:3px 7px;font-size:11px;font-weight:700}.receipt-amount{color:#15803d}.cash-flow-draft-amount{color:#334155}.payment-amount{color:#be123c}.cash-flow-table td:nth-child(6) small{color:#64748b;margin-top:4px;font-size:10px;line-height:1.25;display:block}.cash-flow-row-actions{white-space:nowrap;text-align:left}.cash-flow-row-actions button{color:#17365d;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:5px;margin:2px 6px 2px 0;padding:6px 9px;font-size:11px;line-height:1.2}.cash-flow-row-actions .cash-flow-confirm-button{color:#15803d;border-color:#15803d}.cash-flow-row-actions .cash-flow-publish-button{color:#1d4ed8;border-color:#2563eb}.cash-flow-row-actions .cash-flow-cancel-button{color:#b45309;border-color:#d97706}.cash-flow-row-actions .cash-flow-restore-button{color:#15803d;border-color:#15803d}.cash-flow-row-actions .cash-flow-delete-button{color:#dc2626;border-color:#dc2626}.cash-flow-empty{text-align:center;color:#94a3b8!important;padding:24px!important}.cash-flow-modal-backdrop{z-index:40;background:#0f172a59;place-items:center;padding:20px;display:grid;position:fixed;inset:0;overflow:auto}.cash-flow-form{background:#fff;border:1px solid #e2e8f0;border-radius:8px;width:min(680px,100%);max-height:none;padding:18px 20px;overflow:visible;box-shadow:0 18px 45px #0f172a33}.cash-flow-detail-modal{background:#fff;border:1px solid #e2e8f0;border-radius:8px;width:min(560px,100%);padding:18px 20px;box-shadow:0 18px 45px #0f172a33}.cash-flow-voucher-paper{width:min(900px,100%);max-height:min(900px,94vh);overflow:auto;box-shadow:0 18px 45px #0f172a33}.cash-flow-voucher-paper>.purchase-order-print{z-index:4;position:absolute;top:10px;right:50px}.cash-flow-voucher-close{color:#64748b;background:#fff;border:1px solid #cbd5e1;border-radius:50%;width:28px;height:28px;padding:0;font-size:18px;line-height:1;position:absolute;top:10px;right:10px}.cash-flow-voucher-paper>.cash-flow-voucher-close{z-index:4;position:absolute;top:10px;right:10px}.cash-flow-voucher-actions .cash-flow-voucher-close{flex:none;width:28px;height:28px;position:static}.cash-flow-voucher-actions .purchase-order-print{position:static}.cash-flow-voucher-meta{grid-template-columns:repeat(4,minmax(0,1fr));column-gap:32px}.cash-flow-voucher-parties{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:32px;margin-top:18px}.cash-flow-source-document{color:#64748b;border:1px solid #dbe3ee;border-radius:5px;height:auto;margin-top:22px;padding:13px 12px 10px;font-size:12px;position:relative}.cash-flow-source-document.is-empty{height:auto;min-height:0}.cash-flow-source-document>strong{color:#334155;background:#fff;margin:0;padding:0 6px;font-size:10px;font-weight:600;display:block;position:absolute;top:-7px;left:12px}.cash-flow-source-row{gap:8px;height:auto;display:flex;overflow:auto hidden}.cash-flow-source-document.is-empty .cash-flow-source-row{height:auto;min-height:0}.cash-flow-source-empty{color:#94a3b8;align-self:center;font-size:11px}.cash-flow-source-thumb{color:#64748b;flex:none;align-items:baseline;gap:4px;height:auto;display:inline-flex}.cash-flow-source-thumb span{color:#475569;font-size:11px;font-weight:600}.cash-flow-source-thumb small{color:#64748b;text-overflow:ellipsis;white-space:nowrap;max-width:320px;font-size:11px;overflow:hidden}.cash-flow-voucher-amount-line{color:#334155;border-top:1px solid #cbd5e1;border-bottom:1px solid #cbd5e1;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:32px;margin-top:18px;padding:10px 0;font-size:12px;display:grid}.cash-flow-voucher-amount-line div{gap:5px;display:grid}.cash-flow-voucher-amount-line span{color:#64748b;text-transform:uppercase;font-size:10px;font-weight:600}.cash-flow-voucher-amount-line strong{color:#0f172a;font-weight:700}.cash-flow-qr-section{color:#334155;background:#fff;border:1px solid #dbe3ee;border-radius:10px;flex-direction:column;align-items:center;gap:14px;width:min(430px,100vw - 40px);padding:22px;font-size:12px;display:flex;position:relative;box-shadow:0 20px 60px #0f172a40}.cash-flow-qr-modal-backdrop{z-index:1100;background:#0f172a7a;justify-content:center;align-items:center;padding:20px;display:flex;position:fixed;inset:0}.cash-flow-qr-heading{border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:center;width:100%;padding-bottom:12px;display:flex}.cash-flow-qr-heading strong{color:#334155;font-size:13px;font-weight:600}.cash-flow-qr-section img{object-fit:contain;width:260px;height:260px}.cash-flow-qr-details{text-align:center;gap:6px;width:100%;display:grid}.cash-flow-qr-section small{color:#64748b;word-break:break-all}.cash-flow-qr-section .cash-flow-qr-note{color:#b45309;word-break:normal;font-weight:600}.cash-flow-voucher-signatures{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:42px}.cash-flow-form-heading{border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:flex-start;padding-bottom:14px;display:flex}.cash-flow-form-heading h3{color:#0f172a;margin:0;font-size:17px}.cash-flow-close{color:#64748b;background:#fff;border:1px solid #cbd5e1;border-radius:50%;width:28px;height:28px;padding:0;font-size:18px;line-height:1}.cash-flow-form-grid{grid-template-columns:repeat(2,1fr);gap:10px;padding:16px 0;display:grid}.cash-flow-account-pair{grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.cash-flow-form-grid label{color:#475569;gap:5px;font-size:11px;font-weight:500;display:grid}.cash-flow-form-grid input,.cash-flow-form-grid select,.cash-flow-form-grid textarea{color:#334155;background:#fff;border:1px solid #cbd5e1;border-radius:5px;width:100%;padding:7px 9px;font-size:12px}.cash-flow-form-grid .cash-flow-auto-field{color:#64748b;cursor:not-allowed;background:#f1f5f9}.cash-flow-form-grid .cash-flow-amount-input{text-align:right;font-variant-numeric:tabular-nums}.cash-flow-source-file input[type=file]{background:#f8fafc;padding:6px}.cash-flow-source-file small{color:#64748b;font-size:10px;font-weight:400}.cash-flow-form-actions{border-top:1px solid #e2e8f0;justify-content:flex-end;gap:8px;padding-top:12px;display:flex}.cash-flow-form-actions .secondary{color:#334155;background:#fff;border:1px solid #cbd5e1}@media (max-width:900px){.cash-flow-heading{flex-direction:column;align-items:stretch}.cash-flow-actions{flex-wrap:wrap}.cash-flow-metrics{grid-template-columns:repeat(2,1fr)}.cash-flow-toolbar{flex-direction:column;align-items:stretch}.cash-flow-form-grid{grid-template-columns:1fr}.cash-flow-account-pair{grid-column:auto;grid-template-columns:1fr}}@media print{.cash-flow-source-document{height:fit-content!important;min-height:0!important;margin-top:8px!important;padding:5px 8px!important}.cash-flow-source-document.is-empty{height:auto!important;min-height:0!important}.cash-flow-source-row{gap:5px!important;height:fit-content!important;min-height:0!important;overflow:hidden!important}.cash-flow-source-document.is-empty .cash-flow-source-row{height:auto!important;min-height:0!important}.cash-flow-source-thumb{min-width:0!important;height:fit-content!important}.cash-flow-voucher-signatures{gap:8px!important;min-height:0!important;margin-top:10px!important;padding-bottom:22mm!important;position:static!important;transform:none!important}.cash-flow-voucher-signatures small{margin-top:2px!important}}.partner-details>div:not(.partner-contract-details){visibility:visible!important;opacity:1!important;grid-area:auto!important;display:block!important}.partner-details>.partner-detail-title-positioned,.partner-details>.partner-detail-average-positioned{visibility:visible!important;opacity:1!important;display:block!important}.partner-details>.partner-contract-details{grid-area:auto/1/auto/-1!important;display:block!important}.partner-details>.partner-detail-average{visibility:visible!important;opacity:1!important;grid-area:auto!important;display:block!important}.product-price-heading{align-items:center}.product-price-heading button{white-space:nowrap;margin-left:auto}.product-price-form{margin-bottom:12px}.quo-pill{color:#3156b5;cursor:pointer;background:#e9efff;border:0;border-radius:999px;padding:6px 12px;font-weight:700}.quo-pill:hover,.quo-pill:focus-visible{background:#d9e3ff;outline:none}.quote-preview-modal{width:min(1120px,100vw - 32px);max-width:1120px;padding:12px;font-size:12px}.quote-preview-header{align-items:flex-start;padding:8px 10px}.quote-preview-header h2{margin:3px 0 0;font-size:16px;font-weight:600}.quote-preview-header .eyebrow{font-size:11px}.quote-preview-contact{color:#64748b;margin:4px 0 0;font-size:11px}.quote-preview-meta{color:#64748b;border-top:1px solid #e2e8f0;border-bottom:1px solid #e2e8f0;flex-wrap:wrap;gap:20px;margin:10px 0;padding:8px 0;font-size:12px;display:flex}.quote-preview-meta strong{color:#172033}.quote-preview-table-wrap{overflow-x:auto}.quote-preview-table{border-collapse:collapse;width:100%;min-width:860px}.quote-preview-table th,.quote-preview-table td{white-space:nowrap;border:1px solid #cbd5e1;padding:7px 9px;font-size:12px}.quote-preview-table th{color:#334155;text-align:left;background:#f1f5f9;font-size:12px}.quote-preview-table td:not(:nth-child(2)),.quote-preview-table th:not(:nth-child(2)){text-align:right}.quote-preview-table td:first-child,.quote-preview-table th:first-child{text-align:center}.quote-preview-table tfoot td{text-align:right;background:#f8fafc;font-weight:600}.quote-preview-table tfoot .quote-total-row td{background:#eef2f7;font-size:12px;font-weight:800}.quote-empty{padding:24px 0}.sales-quote-create-form{background:#fff;border:1px solid #d7e0ec;border-radius:10px;gap:10px;margin:10px 0 14px;padding:10px;display:grid}.sales-quote-edit-button{color:#64748b;cursor:pointer;background:0 0;border:0;margin-left:4px;padding:0 2px;font-size:13px;line-height:1}.sales-quote-edit-button:hover,.sales-quote-edit-button:focus-visible{color:#2563eb;outline:none}.sales-quote-settings-group{align-items:center;gap:4px;margin:0 8px;display:inline-flex}.restore-data-modal-body{padding:20px}.restore-data-modal-body p{color:#475569;margin:0 0 16px;line-height:1.5}.restore-data-point,.restore-data-empty{background:#f8fafc;border:1px solid #dbe3ee;border-radius:8px;gap:4px;padding:12px;display:grid}.restore-data-point span,.restore-data-empty{color:#64748b;font-size:13px}.restore-data-actions{justify-content:flex-end;gap:8px;margin-top:20px;display:flex}.restore-data-actions button:not(.restore-data-danger){display:none}.restore-data-danger{color:#b91c1c;border-color:#dc2626}.sales-order-header-actions{align-items:center;gap:8px;display:inline-flex}.sales-order-header-actions .sales-quote-header-setting{cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:6px;justify-content:center;align-items:center;width:30px;height:30px;margin:0;padding:0;display:inline-flex}.sales-order-header-actions .sales-quote-header-setting:hover,.sales-order-header-actions .sales-quote-header-setting:focus-visible{background:#f1f5f9}.sales-quote-header-setting{background:#fff;border:1px solid #cbd5e1;border-radius:6px;justify-content:center;align-items:center;width:28px;height:28px;margin:0;padding:0;display:inline-flex}.sales-quote-header-setting:hover,.sales-quote-header-setting:focus-visible{background:#f1f5f9}.sales-quote-header-fields label{position:relative}.sales-quote-header-fields .sales-quote-edit-button,.sales-quote-single-delivery .sales-quote-edit-button{position:absolute;top:0;right:2px}.sales-quote-single-delivery{position:relative}.sales-quote-header-fields{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;display:grid}.sales-quote-delivery-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.sales-quote-setting-field{align-items:center;display:flex}.sales-quote-setting-field input{flex:1}.sales-quote-create-form label>span,.sales-quote-delivery-grid label{color:#25324a;margin-bottom:4px;font-size:11px;font-weight:700;display:block}.sales-quote-create-form input,.sales-quote-create-form select{color:#172033;border:1px solid #cbd5e1;border-radius:6px;width:100%;min-height:30px;padding:5px 8px;font-size:12px}.sales-quote-create-form input[readonly]{background:#f8fafc}.sales-quote-lines-fieldset,.sales-quote-delivery-fieldset{border:1px solid #cbd5e1;border-radius:8px;min-width:0;padding:8px}.sales-quote-lines-fieldset legend,.sales-quote-delivery-fieldset legend{color:#172033;padding:0 5px;font-size:12px;font-weight:800}.sales-quote-lines-wrap{overflow-x:auto}.sales-quote-lines-table{border-collapse:collapse;table-layout:fixed;width:100%;min-width:930px}.sales-quote-col-product{width:32%}.sales-quote-col-price{width:14%}.sales-quote-col-quantity{width:16%}.sales-quote-col-discount{width:9%}.sales-quote-col-final-price{width:14%}.sales-quote-col-total{width:13%}.sales-quote-col-actions{width:2%}.sales-quote-lines-table th,.sales-quote-lines-table td{vertical-align:middle;white-space:nowrap;border:1px solid #d7e0ec;padding:4px 6px;font-size:11px}.sales-quote-lines-table th{color:#334155;text-align:left;background:#f1f5f9;font-size:10px}.sales-quote-lines-table td:not(:first-child),.sales-quote-lines-table th:not(:first-child){text-align:right}.sales-quote-lines-table td:first-child select{width:100%;min-width:0}.sales-quote-lines-table td:nth-child(3) input{text-align:right;max-width:72px}.sales-quote-lines-table tfoot td{text-align:right;background:#f8fafc;font-weight:700}.sales-quote-lines-table tfoot tr:last-child td{background:#eef2f7;font-size:14px}.sales-quote-add-line,.sales-quote-remove-line{color:#334155;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:7px}.sales-quote-add-line{margin-top:6px;padding:5px 9px;font-size:11px}.sales-quote-remove-line{width:28px;height:28px;font-size:18px;line-height:1}.sales-quote-add-line:hover,.sales-quote-remove-line:hover{background:#f1f5f9}.sales-quote-stock-status{flex-wrap:wrap;gap:16px;font-size:11px;display:flex}.sales-quote-stock-status label{align-items:center;gap:8px;font-weight:700;display:inline-flex}.sales-quote-stock-status input{width:auto;min-height:auto}.sales-material-availability{color:#166534;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:6px;margin:10px 0;padding:9px 12px;font-size:12px}.sales-material-availability.has-shortage{color:#991b1b;background:#fef2f2;border-color:#fecaca}.sales-material-availability ul{margin:5px 0 0;padding-left:18px}.sales-material-availability span{color:#64748b}.sales-quote-delivery-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.sales-quote-delivery-grid label{margin-bottom:0}.sales-quote-delivery-grid input{margin-top:3px}.sales-quote-single-delivery{gap:4px;max-width:none;font-size:11px}.sales-quote-delivery-row{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.sales-quote-single-delivery input{width:293px;min-height:30px}.sales-quote-delivery-breakdown{color:#64748b;white-space:nowrap;font-size:11px;line-height:1.35}@media (max-width:900px){.sales-quote-delivery-breakdown{white-space:normal}}.sales-quote-create-form,.sales-quote-create-form label,.sales-quote-create-form label>span,.sales-quote-lines-fieldset legend,.sales-quote-delivery-fieldset legend,.sales-quote-stock-status label,.sales-quote-delivery-grid label,.sales-quote-lines-table tfoot td{font-weight:400}.sales-quote-lines-table tfoot tr:last-child td{font-weight:700}@media (max-width:820px){.sales-quote-header-fields,.sales-quote-delivery-grid{grid-template-columns:1fr}}.quote-settings-modal{width:min(460px,100vw - 24px);height:auto;max-height:none;box-shadow:none;border:0;display:block;min-height:0!important;padding:0!important}.quote-settings-modal .detail-card-header{align-items:center;padding:9px 12px}.quote-settings-modal .detail-card-header h2{font-size:12px;font-weight:600}.quote-settings-modal .detail-close{width:26px;height:26px;font-size:16px}.quote-settings-form{box-sizing:border-box;padding:8px 12px;font-size:12px;display:block;height:max-content!important;min-height:0!important;margin:0!important}.quote-settings-grid{flex-direction:column;gap:10px;min-width:0;display:flex}.quote-settings-form label{white-space:nowrap;flex:none;grid-template-columns:minmax(0,1fr) 104px;align-items:center;gap:8px;width:100%;min-width:0;font-size:12px;display:grid}.quote-settings-form label>span{min-width:0;font-size:12px;font-weight:400}.quote-settings-form input[type=number],.quote-settings-input input{box-sizing:border-box;width:100%;min-height:30px;margin-top:0;padding:5px 8px;font-size:12px}.quote-settings-input{justify-content:flex-end;align-items:center;gap:5px;width:100%;display:flex;position:static}.quote-settings-input input{flex:0 0 64px;width:64px;min-width:64px;padding-right:8px!important}.quote-settings-input em{text-align:left;flex:0 0 28px;align-items:center;height:30px;font-style:normal;display:inline-flex;position:static;transform:none}.quote-settings-form .form-actions{border-top:0;flex:none;gap:6px;margin:0;padding:0;display:flex}.quote-settings-form .form-actions button{white-space:nowrap;min-height:30px;padding:5px 10px;font-size:12px}.settings-icon{object-fit:contain;width:16px;height:16px;display:block}.admin-screen>.admin-tabs{overflow:visible!important}.admin-screen>.admin-tabs .accounting-opening-info{z-index:31;position:relative}.admin-screen>.admin-tabs .accounting-opening-info:hover>.accounting-opening-tooltip,.admin-screen>.admin-tabs .accounting-opening-info:focus>.accounting-opening-tooltip{visibility:visible;opacity:1;display:block!important}.purchase-order-table-wrap tbody td.purchase-order-row-actions{text-align:right;white-space:nowrap;vertical-align:middle;width:220px;min-width:220px;padding-right:16px}.purchase-order-table-wrap tbody td.purchase-order-row-actions>button{color:#334155;background:#fff;border:1px solid #cbd5e1;border-radius:5px;justify-content:center;align-items:center;min-width:0;height:30px;opacity:1!important;pointer-events:auto!important;width:auto!important;margin:0 0 0 6px!important;padding:0 10px!important;font-size:12px!important;line-height:normal!important;display:inline-flex!important}.purchase-order-table-wrap tbody td.purchase-order-row-actions>button:after{content:none!important;display:none!important}.purchase-order-table-wrap tbody td.purchase-order-row-actions>.purchase-order-publish-action{color:#1d4ed8;background:#eff6ff;border-color:#93c5fd}.purchase-order-table-wrap tbody td.purchase-order-row-actions>.purchase-order-publish-action:hover{background:#dbeafe}.purchase-order-table-wrap tbody td.purchase-order-row-actions>.purchase-order-cancel-action:hover{color:#b91c1c;background:#fef2f2;border-color:#fecaca}.purchase-order-table-wrap thead th:nth-child(2),.purchase-order-table-wrap tbody td:nth-child(2){text-align:left!important}.management-accounting-panel{width:100%;margin:24px 0}.management-accounting-panel .section-title-row{gap:20px}.management-accounting-panel .section-title-row h2{margin-bottom:6px}.management-accounting-search{min-width:320px}.management-accounting-section-heading{justify-content:space-between;align-items:center;gap:20px;margin-top:24px;display:flex}.management-accounting-filter-tools{align-items:center;gap:8px;display:flex;position:relative}.management-accounting-settings-button{color:#334155;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:6px;width:34px;height:34px;padding:0;font-size:17px}.management-accounting-settings-button:hover{background:#f1f5f9}.management-accounting-cost-structure-dropdown{z-index:20;background:#fff;border:1px solid #cbd5e1;border-radius:10px;width:min(780px,80vw);padding:16px;position:absolute;top:calc(100% + 8px);right:0;box-shadow:0 14px 34px #0f172a29}.management-accounting-cost-structure-dropdown h4{margin:0 0 12px;font-size:16px}.management-accounting-structure-table-wrap{overflow-x:auto}.management-accounting-structure-table{border-collapse:collapse;width:100%;font-size:12px}.management-accounting-structure-table th,.management-accounting-structure-table td{text-align:right;white-space:nowrap;border:1px solid #e2e8f0;padding:9px 10px}.management-accounting-structure-table th:first-child,.management-accounting-structure-table tbody th{text-align:left}.management-accounting-structure-table thead th{color:#475569;background:#f1f5f9}.management-accounting-structure-table td small{color:#64748b;margin-top:3px;font-size:10px;font-weight:400;display:block}.management-accounting-labor-input-wrap{justify-content:flex-end;align-items:center;gap:3px;display:flex!important}.management-accounting-labor-input{color:#334155;text-align:right;border:1px solid #cbd5e1;border-radius:3px;width:50px;padding:2px 3px;font-size:10px}.management-accounting-structure-parent th{background:#f8fafc;font-weight:700}.management-accounting-structure-parent td{background:#f8fafc;font-weight:600}.management-accounting-structure-child th{color:#64748b;padding-left:28px;font-weight:400}.management-accounting-structure-grandchild th{color:#64748b;padding-left:46px;font-weight:400}.management-accounting-cost-structure-dropdown p{margin:12px 0 0;font-size:12px}.management-accounting-section-title{margin:0 0 12px;font-size:16px;font-weight:600}.management-accounting-cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:18px 0;display:grid}.management-accounting-cards>div,.management-accounting-detail-grid>div{border:1px solid var(--border,#d7e0eb);background:#fff;border-radius:10px;padding:14px}.management-accounting-cards span,.management-accounting-detail-grid span{color:#64748b;margin-bottom:7px;font-size:12px;display:block}.management-accounting-cards strong{font-size:18px}.management-accounting-table-wrap{border:1px solid var(--border,#d7e0eb);border-radius:10px;overflow:visible}.management-accounting-table{border-collapse:collapse;width:100%}.management-accounting-table th,.management-accounting-table td{text-align:left;white-space:nowrap;border-bottom:1px solid #e4eaf1;padding:12px}.management-accounting-table th{color:#48617f;background:#f3f6fa;font-size:13px}.management-accounting-table td small{color:#718096;margin-top:4px;display:block}.management-accounting-tree-table{table-layout:fixed;border-collapse:separate;border-spacing:0;border:0;border-radius:0;min-width:900px;font-size:11.5px;overflow:visible}.management-accounting-tree-table th,.management-accounting-tree-table td{white-space:nowrap;color:#334155;border-bottom:1px solid #f1f5f9;border-right:1px solid #f1f5f9;height:26px;padding:4px 8px;line-height:1.3}.management-accounting-tree-table th{color:#475569;background:#f8fafc;border-bottom:1px solid #e2e8f0;height:30px;font-weight:600}.management-accounting-tree-table thead{z-index:5!important;position:sticky!important;top:0!important}.management-accounting-tree-table thead th{box-shadow:0 1px #cbd5e1;z-index:6!important;background:#f8fafc!important;position:sticky!important;top:0!important}.management-accounting-tree-table th:first-child,.management-accounting-tree-table td:first-child{width:55%}.management-accounting-tree-table th:nth-child(n+2),.management-accounting-tree-table td:nth-child(n+2){text-align:right;font-variant-numeric:tabular-nums;width:15%}.management-accounting-tree-table .management-accounting-tree-parent>td{color:#0f172a;background:#fff;font-weight:600}.management-accounting-tree-table .management-accounting-tree-child>td{color:#334155;background:#fff;font-weight:400}.management-accounting-tree-table .management-accounting-tree-child.level-1>td{color:#1e293b;font-weight:600}.management-accounting-tree-table .management-accounting-tree-child.level-2>td,.management-accounting-tree-table .management-accounting-tree-child.level-3>td{color:#334155;font-weight:400}.management-accounting-tree-table .management-accounting-tree-child.level-1>td:first-child{padding-left:36px}.management-accounting-tree-table .management-accounting-tree-child.level-2>td:first-child{padding-left:56px}.management-accounting-tree-table .management-accounting-tree-child.level-3>td:first-child{padding-left:76px}.management-accounting-panel>.section-title-row{position:relative}.management-accounting-tree-table td small{margin:0 0 0 4px;display:inline}.management-accounting-tree-toggle{color:#334155;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:5px;width:24px;height:24px;margin-right:7px;padding:0}.management-accounting-tree-toggle:hover{background:#f1f5f9}.management-accounting-tree-child>td{color:#64748b;background:#fff}.management-accounting-clickable-row{cursor:pointer}.management-accounting-clickable-row:hover{background:#f8fbff}.management-order-pill{color:#0f4c81;cursor:pointer}.management-cost-status{color:#64748b;vertical-align:middle;font-size:11px;font-weight:400;margin:0 0 0 8px!important;display:inline!important}.management-cost-status-completed{color:#15803d!important}.management-cost-over{color:#c2410c}.management-cost-under{color:#15803d}.management-cost-status:not(.management-cost-status-completed){color:#2563eb}@media (max-width:900px){.management-accounting-cards,.management-accounting-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.management-accounting-section-heading{flex-direction:column;align-items:stretch;gap:0}.management-accounting-filter-tools{justify-content:stretch}.management-accounting-search{width:100%;min-width:0}.management-accounting-cost-structure-dropdown{width:min(780px,92vw);left:0;right:auto}}.history-style,.admin-screen .settings-workspace .history-style{margin-top:20px}.history-style table th:first-child,.history-style table td:first-child,.cash-flow-history-table th:first-child,.cash-flow-history-table td:first-child{white-space:nowrap;min-width:150px}.history-style table th:nth-child(2),.history-style table td:nth-child(2),.cash-flow-history-table th:nth-child(2),.cash-flow-history-table td:nth-child(2){white-space:nowrap;min-width:125px}
