:root{--primary:#1677ff;--primary-hover:#0958d9;--primary-soft:#e8f3ff;--secondary:#5b6bff;--secondary-soft:#eef1ff;--info:#13c2c2;--info-soft:#e6fffb;--success:#2ca87f;--success-soft:#eafbf4;--warning:#faad14;--warning-soft:#fff7e6;--danger:#f04438;--danger-soft:#fff1f0;--text-primary:#1f2937;--text-secondary:#667085;--text-muted:#98a2b3;--page-bg:#eef3f8;--surface:#fdfefe;--surface-alt:#f5f8fc;--border-light:#dce3eb;--border-default:#cfd8e3;--divider:#e3e9f0;--sidebar-bg:#f7f9fc;--sidebar-border:#dce3eb;--sidebar-active-bg:#e8f3ff;--sidebar-active-text:#1677ff;--header-bg:rgba(247,250,253,0.92);--header-border:#dce3eb;--radius-sm:8px;--radius-md:12px;--radius-lg:16px;--shadow-soft:0 1px 2px rgba(16,24,40,0.05);--shadow-card:0 6px 20px rgba(16,24,40,0.06);--shadow-popover:0 10px 30px rgba(16,24,40,0.1)}*{box-sizing:border-box}body,html{margin:0;padding:0}body{font-family:Inter,Public Sans,system-ui,-apple-system,Segoe UI,sans-serif;font-size:14px;line-height:1.43;color:var(--text-primary);background:linear-gradient(180deg,#edf2f8 0,var(--page-bg) 100%)}a{color:var(--primary);text-decoration:none}a:hover{text-decoration:underline}.container{width:min(1440px,100%);margin:0 auto;padding:16px}.dashboard-shell{min-height:100vh;display:grid;grid-template-columns:272px 1fr}.dashboard-shell.sidebar-collapsed{grid-template-columns:0 1fr}.dashboard-shell.sidebar-collapsed .dashboard-sidebar{width:0;overflow:hidden;padding:0;border-right:none}.dashboard-shell.sidebar-collapsed .dashboard-content{padding-left:0}.dashboard-shell.sidebar-collapsed .dashboard-content>.container{width:100%;margin-left:0;margin-right:0;padding-left:20px}.dashboard-sidebar{position:-webkit-sticky;position:sticky;top:0;height:100vh;padding:20px 16px;border-right:1px solid var(--sidebar-border);background:var(--sidebar-bg);display:grid;grid-template-rows:auto 1fr auto;grid-gap:24px;gap:24px}.sidebar-brand{padding:8px}.sidebar-brand-top{display:grid;grid-template-columns:64px 1fr;align-items:center;grid-gap:10px;gap:10px}.sidebar-logo{display:block;width:64px;height:64px;object-fit:contain;margin:0}.sidebar-company-name{margin:0;color:var(--text-primary);font-size:14px;font-weight:700}.sidebar-brand h2,.sidebar-company-name{line-height:18px;text-transform:uppercase}.sidebar-brand h2{margin:8px 0 0;font-size:13px;color:var(--text-secondary);font-weight:600;letter-spacing:.04em}.sidebar-caption{margin:0;color:var(--text-muted);font-size:12px;line-height:18px;letter-spacing:.08em;text-transform:uppercase;font-weight:600}.sidebar-nav{display:grid;grid-gap:8px;gap:8px;align-content:start}.sidebar-nav-bottom{padding-top:12px;border-top:1px solid var(--divider)}.sidebar-link{color:var(--text-secondary);border:1px solid transparent;border-radius:var(--radius-sm);padding:10px 12px;font-size:13px;line-height:18px;font-weight:600;transition:.16s ease}.sidebar-link:hover{text-decoration:none;color:var(--text-primary);border-color:var(--border-light);background:var(--surface-alt)}.sidebar-link.active{color:var(--sidebar-active-text);border-color:#c8ddff;background:var(--sidebar-active-bg)}.sidebar-footer{display:grid;grid-gap:12px;gap:12px;align-content:end}.sidebar-user{display:grid;grid-gap:2px;gap:2px;border:1px solid var(--border-light);border-radius:var(--radius-md);padding:10px 12px;background:var(--surface-alt)}.sidebar-user strong{font-size:13px;line-height:18px}.sidebar-user small{color:var(--text-secondary);font-size:12px;line-height:16px}.dashboard-main{min-width:0}.dashboard-topbar{height:60px;position:-webkit-sticky;position:sticky;top:0;z-index:20;border-bottom:1px solid var(--header-border);background:var(--header-bg);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 24px}.topbar-title{margin:0;font-size:16px;line-height:24px;font-weight:600;color:var(--text-primary)}.topbar-subtitle{margin:0;font-size:12px;line-height:18px;color:var(--text-secondary)}.topbar-actions{gap:8px}.topbar-actions,.topbar-main{display:flex;align-items:center}.topbar-main{gap:10px;min-width:0}.topbar-menu-btn{display:inline-flex;width:34px;height:34px;border:1px solid var(--border-default);border-radius:10px;background:#fff;color:var(--text-primary);font-size:18px;line-height:1;align-items:center;justify-content:center;cursor:pointer;flex:0 0 auto}.dashboard-sidebar-overlay{display:none}.card,.dashboard-content{padding:16px}.card{border:1px solid var(--border-light);border-radius:var(--radius-md);box-shadow:var(--shadow-card);margin-bottom:20px}.btn,.card{background:var(--surface)}.btn{border:1px solid var(--border-default);color:var(--text-primary);min-height:40px;padding:9px 14px;border-radius:var(--radius-sm);cursor:pointer;transition:.16s ease;font-size:14px;line-height:20px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:8px}.btn:hover{border-color:#c8d0da;background:#fafbfc;text-decoration:none}.btn:disabled{opacity:.64;cursor:not-allowed}.btn-primary{background:var(--primary);border-color:var(--primary);color:#fff}.btn-primary:hover{background:var(--primary-hover);border-color:var(--primary-hover)}.btn-filter{min-height:32px;padding:4px 10px;font-size:13px;line-height:18px}.filters-grid-compact .btn,.filters-grid-compact input,.filters-grid-compact select{min-height:32px;height:32px;padding-top:4px;padding-bottom:4px;font-size:13px;line-height:18px}.filters-grid-compact .btn{padding-left:10px;padding-right:10px}.btn-secondary{background:var(--primary-soft);border-color:#c8ddff;color:var(--primary-hover)}.btn-secondary:hover{background:#ddebff;border-color:#b4d2ff}.btn-danger{background:var(--danger-soft);border-color:#fecdc9;color:#b42318}.btn-danger:hover{background:#ffe4e2;border-color:#fda29b}input,select,textarea{width:100%;border:1px solid var(--border-default);border-radius:var(--radius-sm);min-height:40px;padding:8px 12px;font-family:inherit;font-size:14px;line-height:20px;color:var(--text-primary);background:var(--surface);transition:border-color .16s ease,box-shadow .16s ease}input[type=checkbox],input[type=radio]{width:16px;min-width:16px;height:16px;min-height:16px;padding:0;margin:0;accent-color:var(--primary);vertical-align:middle}input::placeholder,textarea::placeholder{color:var(--text-muted)}input:focus,select:focus,textarea:focus{outline:none;border-color:#86b7ff;box-shadow:0 0 0 3px rgba(22,119,255,.14)}input[type=checkbox]:focus,input[type=radio]:focus{box-shadow:0 0 0 2px rgba(22,119,255,.16)}input[type=number]{-moz-appearance:textfield}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}textarea{min-height:96px;resize:vertical;padding-top:10px}label{display:grid;grid-gap:6px;gap:6px;font-size:13px;line-height:18px;color:var(--text-secondary)}.table-scroll{margin-top:16px;overflow-x:auto;border:1px solid var(--border-light);border-radius:var(--radius-md)}.table{width:100%;border-collapse:collapse;background:#ffffff}.table td,.table th{border-bottom:1px solid var(--divider);padding:12px;min-height:50px;font-size:13px;line-height:18px;vertical-align:middle;text-align:left}.table th{background:#f4f7fb;color:var(--text-secondary);font-weight:600;letter-spacing:.02em;text-transform:uppercase}.table tbody tr:hover{background:#fafcff}.table tbody tr:last-child td{border-bottom:none}.page-header-row{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:16px}.page-header-row h2{margin:0;font-size:24px;line-height:32px;font-weight:700}.subtle-text{margin:8px 0 0;color:var(--text-secondary);font-size:13px;line-height:18px}.quotation-list-page .tx-card{background:#f4f5f7;border:1px solid #e3e6ea;border-radius:16px;box-shadow:none;padding:14px}.tx-page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px}.tx-page-head h2{margin:0;font-size:30px;line-height:1.2;letter-spacing:-.02em}.tx-page-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.tx-date-range-chip{display:inline-flex;align-items:center;gap:6px;border:1px solid #dde2e8;border-radius:999px;background:#fff;min-height:42px;padding:4px 10px}.tx-date-chip-label{font-size:12px;line-height:16px;color:#6b7280;font-weight:600;padding-inline:4px}.tx-date-range-chip input{width:136px;min-height:30px;height:30px;border:0;box-shadow:none;background:transparent;padding:0 6px;font-size:12px;color:#1f2937}.tx-date-range-chip input:focus{box-shadow:none}.tx-table-card{background:#fff;border:1px solid #e3e6ea;border-radius:14px;padding:10px}.tx-table-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}.tx-table-head h3{margin:0;font-size:22px;line-height:1.25;font-weight:700;color:#1f2937}.tx-table-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.tx-table-actions input{width:340px;min-height:40px;border-radius:999px;border-color:#dce1e8;background:#fff;font-size:13px}.tx-filter-toggle-btn{min-width:40px;width:40px;height:40px;border-radius:12px;padding:0}.tx-filter-toggle-btn svg{width:17px;height:17px}.tx-filter-toggle-btn.active{border-color:#ffb47a;color:#c45a00;background:#fff1e8}.tx-table-actions .tx-entries{display:inline-flex;align-items:center;gap:6px;color:#6b7280;font-size:12px;line-height:16px;margin:0}.tx-table-actions .tx-entries select{width:72px;min-height:34px;border-radius:10px;background:#fafbfc;font-size:12px}.emp-table-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px}.emp-table-actions input{width:340px;min-height:40px;border-radius:999px;border-color:#dce1e8;background:#fff;font-size:13px}.emp-advanced-filters{display:grid;grid-template-columns:1fr 1fr auto;grid-gap:10px;gap:10px;margin-bottom:10px;border:1px solid #e3e8ef;border-radius:12px;background:#fafcff;padding:10px}.emp-advanced-filters select{min-height:38px;border-radius:10px;border-color:#dce1e8;font-size:13px;background:#fff}.emp-advanced-filters .btn{min-height:38px;min-width:120px}.tx-filter-row{display:grid;grid-template-columns:1.1fr 1fr 1fr 1fr 1fr 1fr auto;grid-gap:10px;gap:10px;margin-bottom:10px;margin-top:6px;border:1px solid #e3e8ef;border-radius:12px;background:#fafcff;padding:10px}.tx-filter-row input,.tx-filter-row select{min-height:38px;border-radius:10px;border-color:#dce1e8;font-size:13px;background:#fff}.tx-filter-row .btn{min-height:38px;padding-inline:14px;width:100%}.quotation-list-page input::placeholder{color:#b1b8c2}.tx-table-scroll{margin-top:0;border-radius:12px;border-color:#e5e8ed;background:#fff}.tx-table th{background:#fff1e8;color:#6b7280;text-transform:none;font-size:12px;line-height:16px;font-weight:700}.tx-table td,.tx-table th{border-bottom-color:#eceff3}.tx-table td{font-size:13px;line-height:18px;color:#1f2937}.tx-row-action{display:inline-flex;align-items:center;min-height:26px;padding:2px 9px;border-radius:999px;border:1px solid #86d5a5;background:#ecfff4;color:#15803d;font-size:12px;font-weight:600}.tx-row-action:hover{background:#dcfce7;text-decoration:none}.tx-customer-link{color:#0b63c8;font-weight:600}.tx-customer-link:hover{text-decoration:underline}.tx-row-action-danger{margin-left:8px;border-color:#fda29b;background:#fff1f0;color:#b42318}.tx-row-action-danger:hover{background:#ffe4e2}.tx-value-link{border:0;background:transparent;padding:0;color:#0b63c8;font:inherit;cursor:pointer}.tx-value-link:hover{text-decoration:underline}.tx-value-link:disabled{color:#98a2b3;cursor:not-allowed;text-decoration:none}.tx-table td:last-child{white-space:nowrap}.emp-row-actions{display:flex;flex-wrap:wrap;gap:6px}.tx-pagination-row{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin-top:12px}.tx-page-btn{width:30px;height:30px;border:1px solid #e4e7eb;border-radius:999px;background:#fff;color:#4b5563;font-size:13px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.tx-page-btn:hover:not(:disabled){border-color:#d0d5dd;background:#f8fafc}.tx-page-btn.active{border-color:#ff7a00;background:#ff7a00;color:#fff}.tx-page-btn:disabled{opacity:.45;cursor:not-allowed}.tx-page-total{margin-left:6px;color:#6b7280;font-size:12px;line-height:16px}.insight-shell{display:grid;grid-gap:14px;gap:14px;margin-bottom:14px}.insight-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-gap:12px;gap:12px}.insight-stat-card{border:1px solid #dbe4ee;border-radius:12px;background:linear-gradient(180deg,#ffffff,#f8fbff);padding:12px 14px;box-shadow:0 2px 10px rgba(16,24,40,.05)}.insight-stat-card p{margin:0;color:#44556c;font-size:12px;line-height:16px}.insight-stat-card h3{margin:8px 0 2px;font-size:25px;line-height:1.2;font-weight:700;color:#101828}.insight-stat-card small{color:#6b7280;font-size:12px;line-height:16px}.insight-main-grid{display:grid;grid-template-columns:2fr 1fr;grid-gap:12px;gap:12px}.insight-bottom-grid{display:grid;grid-template-columns:3fr 2fr;grid-gap:12px;gap:12px}.insight-panel{border:1px solid #dbe4ee;border-radius:12px;background:#fff;box-shadow:0 3px 14px rgba(16,24,40,.05);padding:12px}.insight-panel-wide{min-height:332px}.insight-panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.insight-panel-head h3{margin:0;font-size:14px;line-height:20px;font-weight:700;color:#1f2937}.insight-line-chart{width:100%;min-height:240px;border:1px solid #edf1f6;border-radius:10px;background:linear-gradient(180deg,#fbfdff,#f4f8fe);padding:12px}.insight-line-chart svg{width:100%;height:100%}.insight-grid-line{stroke:#e6ebf2;stroke-width:1}.insight-line-path{fill:none;stroke:#2563eb;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.insight-line-dot{fill:#2563eb;stroke:#ffffff;stroke-width:2}.insight-line-labels{margin-top:8px;display:flex;justify-content:space-between;gap:8px}.insight-line-labels span{color:#64748b;font-size:12px;line-height:16px}.insight-donut-wrap{display:grid;place-items:center;padding:8px 0}.insight-donut{width:172px;height:172px;border-radius:999px;display:grid;place-items:center}.insight-donut-hole{width:114px;height:114px;border-radius:999px;background:#fff;border:1px solid #e4eaf1;display:grid;place-items:center;text-align:center}.insight-donut-hole span{font-size:12px;color:#64748b;line-height:16px}.insight-donut-hole strong{font-size:32px;line-height:1;color:#111827}.insight-legend{display:grid;grid-gap:8px;gap:8px}.insight-legend p{margin:0;display:grid;grid-template-columns:auto 1fr auto;align-items:center;grid-gap:8px;gap:8px;font-size:12px;line-height:16px;color:#475569}.insight-legend strong{color:#0f172a}.dot{width:8px;height:8px;border-radius:999px;display:inline-block}.dot-green{background:#16a34a}.dot-blue{background:#2563eb}.dot-red{background:#ef4444}.insight-bars{display:grid;grid-gap:10px;gap:10px}.insight-bar-row{display:grid;grid-gap:6px;gap:6px}.insight-bar-row>span{font-size:12px;line-height:16px;color:#475569;font-weight:600}.insight-bar-row>div{display:grid;grid-template-columns:1fr auto;align-items:center;grid-gap:10px;gap:10px}.insight-bar-row i{display:block;height:12px;border-radius:999px;background:linear-gradient(90deg,#1d4ed8,#3b82f6)}.insight-bar-row b{font-size:12px;line-height:16px;color:#0f172a;font-weight:600}.insight-mini-table{border:1px solid #e2e8f0;border-radius:10px;overflow:hidden}.insight-mini-row{display:grid;grid-template-columns:1fr 80px 120px;grid-gap:10px;gap:10px;padding:9px 10px;border-bottom:1px solid #edf2f7;align-items:center;font-size:12px;line-height:16px}.insight-mini-row span:nth-child(2),.insight-mini-row span:nth-child(3){text-align:right}.insight-mini-row:last-child{border-bottom:0}.insight-mini-head{background:#f8fafc;color:#64748b;font-weight:700}.filters-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-gap:12px;gap:12px;align-items:end}.pagination-row{display:flex;gap:8px;margin-top:16px;align-items:center}.form-grid-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:12px;gap:12px}.settings-kv-form{margin-top:12px;display:grid;grid-gap:10px;gap:10px}.settings-kv-row{display:grid;grid-template-columns:220px minmax(0,1fr);grid-gap:14px;gap:14px;align-items:center;border:1px solid var(--border-light);border-radius:12px;background:#fcfdff;padding:10px 12px}.settings-kv-row-top{align-items:start}.settings-kv-row>label{margin:0;font-size:13px;line-height:18px;font-weight:600;color:var(--text-secondary)}.settings-kv-row input,.settings-kv-row select,.settings-kv-row textarea{width:100%}.settings-kv-row textarea{min-height:120px;resize:vertical}.settings-kv-logo-field{display:grid;grid-gap:8px;gap:8px;max-width:760px}.settings-kv-logo-field input[type=file]{min-height:40px;border:1px dashed #cdd7e5;border-radius:10px;background:#fff;padding:7px 10px}.settings-kv-logo-preview{max-height:88px;border:1px solid #dbe4ee;border-radius:10px;background:#fff;padding:6px}.cfg-a4-wrap{margin-top:12px}.cfg-a4-wrap,.doc-a4-wrap{display:grid;justify-items:center}.doc-a4-wrap{width:100%}.cfg-config-page{padding-bottom:24px}.cfg-save-bar{position:fixed;left:272px;right:0;bottom:0;z-index:60;background:#fff;border-top:1px solid var(--border-light);box-shadow:0 -6px 20px rgba(15,23,42,.08);padding:10px 16px}.cfg-save-bar-inner{width:min(100%,210mm);margin:0 auto}.cfg-a4-paper{display:grid;grid-gap:8px}.cfg-a4-paper,.pi-config-page .cfg-doc-a4-paper,.sales-contract-config-page .cfg-doc-a4-paper{width:min(100%,210mm);min-height:297mm;background:#f3f3f3;border:1px solid #1f1f1f;padding:10px;gap:8px}.pi-config-page .cfg-doc-a4-paper,.sales-contract-config-page .cfg-doc-a4-paper{box-sizing:border-box}.cfg-a4-header{display:grid;grid-template-columns:180px 1fr;grid-gap:0;gap:0;border:1px solid #111;background:#fff}.cfg-a4-logo-cell{border-right:1px solid #111;padding:6px;display:grid;grid-gap:6px;gap:6px;align-content:start}.cfg-a4-logo-preview{min-height:88px;border:1px solid #cdd7e5;background:#fff;display:grid;place-items:center}.cfg-a4-logo-preview img{max-width:100%;max-height:74px;object-fit:contain;border:0;background:transparent}.cfg-logo-preview-trigger{width:100%;height:100%;display:grid;place-items:center}.cfg-a4-logo-preview span{color:#64748b;font-size:12px;font-weight:600}.cfg-a4-logo-cell input[type=file]{min-height:34px;border:1px dashed #cdd7e5;border-radius:8px;background:#fff;padding:6px 8px;font-size:12px}.cfg-a4-company-cell{padding:6px 10px;display:grid;grid-gap:2px;gap:2px;align-content:start}.cfg-a4-company-name{border:0;font-size:24px;line-height:28px;font-weight:700;text-transform:uppercase;color:#0f2944;background:transparent;padding:0}.cfg-a4-company-cell p{margin:0;display:grid;grid-template-columns:96px 1fr;align-items:center;grid-gap:8px;gap:8px;font-size:14px}.cfg-a4-company-cell p strong{white-space:nowrap}.cfg-a4-company-cell p input{border:0;border-bottom:1px solid #dce3eb;border-radius:0;background:transparent;padding:3px 0;min-height:28px}.cfg-a4-company-cell .cfg-company-name-row{grid-template-columns:150px minmax(220px,360px)}.cfg-a4-company-cell .cfg-company-name-row input{width:100%;max-width:360px;justify-self:start}.cfg-config-page .cfg-a4-company-cell h1{font-size:20px;line-height:24px}.cfg-config-page .cfg-a4-company-cell p{font-size:12px;line-height:1.3;grid-template-columns:150px minmax(0,1fr)}.cfg-config-page .cfg-a4-company-cell p input{font-size:12px;min-height:24px;width:100%;max-width:none;justify-self:start}.cfg-editable{background:#fffdf3!important;padding:6px 8px!important}.cfg-a4-title{text-align:center;padding:6px 10px;font-size:26px;line-height:34px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#0f2944}.cfg-a4-meta,.cfg-a4-title{border:1px solid #111;background:#fff}.cfg-a4-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.cfg-a4-meta label{display:grid;grid-gap:4px;gap:4px;padding:8px 10px;border-right:1px solid #111}.cfg-a4-meta label:last-child{border-right:0}.cfg-a4-meta span{font-size:11px;line-height:1.2;color:#64748b;text-transform:uppercase;letter-spacing:.04em}.cfg-a4-meta input{border:0;border-bottom:1px solid #dce3eb;border-radius:0;min-height:28px;padding:3px 0;background:transparent}.cfg-a4-table-wrap{border:1px solid #111;background:#fff}.cfg-a4-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:12px}.cfg-a4-table td,.cfg-a4-table th{border:1px solid #111;padding:4px 5px;text-align:center;vertical-align:middle}.cfg-a4-table th{background:#d7dce3;font-size:11px;font-weight:700}.cfg-a4-table td:nth-child(2),.cfg-a4-table td:nth-child(9){text-align:left}.cfg-a4-meta-preview{border:1px solid #111;background:#fff;display:grid;grid-template-columns:1fr 180px;min-height:42px}.cfg-a4-meta-preview-left{padding:8px 10px;display:grid;grid-template-columns:86px 1fr;align-items:center;grid-gap:8px;gap:8px;border-right:1px solid #111;font-size:13px}.cfg-a4-meta-preview-right{padding:6px 10px;display:grid;grid-gap:4px;gap:4px;font-size:12px}.cfg-a4-meta-preview-right p{margin:0;display:flex;justify-content:space-between;gap:8px}.cfg-a4-signature-row{display:grid;grid-template-columns:1fr 1fr;margin-top:0;padding:2px 10px 0;text-align:center;font-weight:700;font-size:13px;line-height:1.2}.cfg-a4-signature-row p{margin:0;display:grid;place-items:center}.cfg-a4-signature-box{min-height:0;border:0;border-radius:0;background:transparent;display:grid;place-items:center;max-width:none;margin:0;padding:0}.cfg-a4-remark{border:1px solid #111;background:#fff;padding:8px 10px;display:grid;grid-gap:8px;gap:8px}.cfg-a4-remark h4{margin:0;font-size:13px;line-height:1.2;font-weight:700}.cfg-a4-remark-block{display:grid;grid-gap:4px;gap:4px}.cfg-a4-remark-block label{font-size:11px;line-height:1.2;font-weight:700;color:#64748b}.cfg-a4-remark-block textarea{width:100%;border:1px solid #dce3eb;border-radius:0;min-height:220px;resize:vertical;font-size:12px;line-height:1.35}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:12px;gap:12px;margin-top:12px}.settings-tabs-wrap{margin-bottom:16px}.settings-tabs-title{margin:0 0 8px;font-size:12px;line-height:18px;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.06em}.settings-tabs{display:flex;flex-wrap:wrap;gap:8px;padding:8px;border:1px solid var(--border-light);border-radius:var(--radius-md);background:var(--surface);box-shadow:var(--shadow-soft)}.settings-tab{min-height:36px;padding:8px 12px;border-radius:var(--radius-sm);border:1px solid transparent;color:var(--text-secondary);font-size:13px;line-height:18px;font-weight:600;display:inline-flex;align-items:center}.settings-tab:hover{text-decoration:none;background:var(--surface-alt);border-color:var(--border-light);color:var(--text-primary)}.settings-tab.active{background:var(--primary-soft);border-color:#c8ddff;color:var(--primary-hover)}.settings-card-link{border:1px solid var(--border-light);border-radius:var(--radius-md);background:var(--surface);padding:16px;color:var(--text-primary);box-shadow:var(--shadow-soft)}.settings-card-link:hover{text-decoration:none;border-color:#c8ddff;background:#fafdff}.settings-card-link h3{margin:0 0 6px;font-size:15px;line-height:22px;font-weight:600}.settings-card-link p{margin:0;color:var(--text-secondary);font-size:13px;line-height:18px}.status-chip{display:inline-flex;align-items:center;padding:4px 10px;border-radius:999px;font-size:12px;line-height:18px;font-weight:600;border:1px solid transparent}.status-draft{color:#475467;background:#f2f4f7;border-color:#e4e7ec}.status-submitted{color:#0e7090;background:var(--info-soft);border-color:#bdf2f2}.status-approved{color:#067647;background:var(--success-soft);border-color:#c4eedc}.status-rejected{color:#b42318;background:var(--danger-soft);border-color:#fecdc9}.status-cancelled{color:#991b1b;background:#fee2e2;border-color:#fecaca}.tx-status-cancelled{color:#991b1b!important;background:#fee2e2!important;border-color:#fecaca!important;font-weight:700;opacity:1}.language-switch{display:inline-flex;align-items:center;gap:8px;color:var(--text-secondary);font-size:13px;line-height:18px;font-weight:600}.language-switch select{width:84px;min-height:36px;padding:6px 10px}.inline-check{display:inline-flex;align-items:center;gap:8px;font-size:13px;line-height:18px;color:var(--text-secondary)}.inline-check-with-margin{margin-top:12px}.section-actions{margin-top:12px;display:flex;gap:8px;align-items:center}.modal-backdrop{position:fixed;inset:0;z-index:1400;background:rgba(15,23,42,.36);display:grid;place-items:center;padding:12px}.modal-card{width:min(760px,100%);max-height:min(88vh,820px);overflow:auto;border:1px solid var(--border-light);border-radius:14px;background:var(--surface);box-shadow:0 24px 54px rgba(15,23,42,.25);padding:14px}.production-modal-card{width:min(1280px,100%);max-height:96vh;overflow:hidden;padding:0;display:grid;grid-template-rows:auto 1fr}.production-modal-head{margin:0;padding:12px 14px;border-bottom:1px solid var(--divider);background:var(--surface)}.production-modal-frame{width:100%;height:min(86vh,940px);border:0;background:#fff}.production-embedded-root{width:100%;max-width:none;padding:8px}.production-page .production-table-actions{gap:8px}.production-page .production-filter-input{width:auto;min-width:96px;border-radius:10px;font-size:12px}.production-page .production-filter-month,.production-page .production-filter-year{flex:0 1 96px}.production-page .production-filter-search{flex:1 1 280px;min-width:240px}.production-page .production-filter-btn{min-height:36px;font-size:12px;padding-inline:12px}.production-column-picker{margin-bottom:12px}.production-column-picker-grid{display:flex;flex-wrap:wrap;gap:10px}.production-column-option{min-width:180px;display:inline-flex;align-items:center;gap:6px;margin:0}.production-picture-trigger{padding:0;border:0;background:transparent}.production-picture{width:42px;height:42px;object-fit:contain;border-radius:4px;background:#fff;display:block}.production-modal-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px}.production-detail-page .tx-table,.production-page .tx-table{min-width:920px}.production-detail-page .tx-table td,.production-detail-page .tx-table th,.production-page .tx-table td,.production-page .tx-table th{padding:8px 9px}.production-detail-page .tx-table td input,.production-detail-page .tx-table td select,.production-page .tx-table td input,.production-page .tx-table td select{min-height:32px;height:32px;font-size:12px;padding:5px 8px}.production-detail-page .tx-table td textarea,.production-page .tx-table td textarea{min-height:56px;font-size:12px;padding:6px 8px}.production-detail-page .production-summary-card{margin-bottom:16px}.production-detail-page .production-summary-label{width:20%;min-width:120px;color:#475467;font-weight:600}.production-detail-page .production-picture-card{margin-bottom:16px;display:inline-block}.production-detail-page .production-detail-picture{width:140px;height:140px;object-fit:contain;border-radius:6px;background:#fff;display:block}.production-detail-page .production-material-section{margin-bottom:14px}.production-detail-page .tx-page-actions{align-items:center}@media (max-width:1024px){.production-page .production-filter-month,.production-page .production-filter-year{flex:1 1 120px;min-width:120px}.production-page .production-filter-search{flex:1 1 100%;min-width:100%}}@media (max-width:768px){.production-detail-page .tx-table-card,.production-page .tx-table-card{padding:8px}.production-detail-page .tx-table th,.production-page .tx-table th{font-size:11px;line-height:14px;padding:6px;white-space:nowrap}.production-detail-page .tx-table td,.production-page .tx-table td{font-size:11px;line-height:14px;padding:6px}.production-detail-page .tx-table,.production-page .tx-table{min-width:760px}.production-detail-page .tx-table td input,.production-detail-page .tx-table td select,.production-page .tx-table td input,.production-page .tx-table td select{min-height:28px;height:28px;font-size:11px;padding:3px 6px}.production-detail-page .tx-table td textarea,.production-page .tx-table td textarea{min-height:44px;font-size:11px;padding:4px 6px}.production-page .production-table-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:8px;gap:8px}.production-page .production-filter-input{width:100%;min-width:0}.production-page .production-filter-search{grid-column:1/-1}.production-page .production-filter-btn{width:100%;min-height:34px;font-size:12px;padding:6px 8px}.production-page .production-column-option{min-width:calc(50% - 5px)}.production-page .production-picture{width:36px;height:36px}.production-modal-actions{width:100%;justify-content:flex-start}.production-modal-actions .btn{min-height:34px;font-size:12px;padding:6px 10px}.production-detail-page .production-summary-label{width:auto;min-width:0}.production-detail-page .production-picture-card{display:block}.production-detail-page .production-detail-picture{width:110px;height:110px}.production-detail-page .production-material-section{margin-bottom:10px}.production-detail-page .tx-page-actions{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:8px;gap:8px}.production-detail-page .tx-page-actions .btn{width:100%}}@media (max-width:560px){.production-page .production-column-option{min-width:100%}}.shipping-doc-page:not(.shipping-doc-editor-page):not(.sales-contract-config-page) .quotation-paper{width:min(100%,calc(210mm * 1.05))}.shipping-doc-page:not(.shipping-doc-editor-page):not(.sales-contract-config-page) .pi-item-table-wrap{margin-top:12px;overflow-x:auto}@media (max-width:768px){.shipping-doc-page:not(.shipping-doc-editor-page):not(.sales-contract-config-page) .quotation-paper{padding:8px}.shipping-doc-page:not(.shipping-doc-editor-page):not(.sales-contract-config-page) .pi-paper .pi-header h1{font-size:20px;line-height:1.1}.shipping-doc-page:not(.shipping-doc-editor-page):not(.sales-contract-config-page) .pi-paper .pi-logo-box{width:100px;flex:0 0 100px;min-height:42px}.shipping-doc-page:not(.shipping-doc-editor-page):not(.sales-contract-config-page) .pi-paper .pi-main-grid{grid-template-columns:1fr;gap:8px}.shipping-doc-page:not(.shipping-doc-editor-page):not(.sales-contract-config-page) .pi-paper .pi-item-table{min-width:920px;font-size:10px}.shipping-doc-page:not(.shipping-doc-editor-page):not(.sales-contract-config-page) .shipping-doc-paper .pi-meta-panel{padding:8px}.shipping-doc-page:not(.shipping-doc-editor-page):not(.sales-contract-config-page) .shipping-doc-paper .pi-meta-cell{grid-template-columns:96px minmax(0,1fr);gap:4px 6px}.shipping-doc-page:not(.shipping-doc-editor-page):not(.sales-contract-config-page) .shipping-doc-paper .pi-meta-cell label{font-size:10px;line-height:1.2}.shipping-doc-page:not(.shipping-doc-editor-page):not(.sales-contract-config-page) .shipping-doc-paper .pi-meta-cell strong{font-size:10px;line-height:1.2;word-break:break-word}.shipping-doc-page:not(.shipping-doc-editor-page):not(.sales-contract-config-page) .shipping-doc-paper .shipping-doc-table{min-width:980px}.shipping-doc-page:not(.shipping-doc-editor-page):not(.sales-contract-config-page) .shipping-doc-paper-pl .shipping-doc-table{min-width:1160px}.shipping-doc-page:not(.shipping-doc-editor-page):not(.sales-contract-config-page) .shipping-doc-paper .pi-item-table td,.shipping-doc-page:not(.shipping-doc-editor-page):not(.sales-contract-config-page) .shipping-doc-paper .pi-item-table th{font-size:10px;padding:4px 3px;word-break:break-word}.shipping-doc-page:not(.shipping-doc-editor-page):not(.sales-contract-config-page) .shipping-doc-paper .pi-item-table input,.shipping-doc-page:not(.shipping-doc-editor-page):not(.sales-contract-config-page) .shipping-doc-paper .pi-item-table select,.shipping-doc-page:not(.shipping-doc-editor-page):not(.sales-contract-config-page) .shipping-doc-paper .pi-item-table textarea{min-height:22px;height:22px;font-size:10px;padding:1px 4px}.shipping-doc-page:not(.shipping-doc-editor-page):not(.sales-contract-config-page) .shipping-doc-paper .pi-item-table textarea{min-height:40px;height:auto}.shipping-doc-page:not(.shipping-doc-editor-page):not(.sales-contract-config-page) .shipping-doc-paper .shipping-ci-bank-details h4,.shipping-doc-page:not(.shipping-doc-editor-page):not(.sales-contract-config-page) .shipping-doc-paper .shipping-ci-bank-details p,.shipping-doc-page:not(.shipping-doc-editor-page):not(.sales-contract-config-page) .shipping-doc-paper .shipping-ci-bank-details pre{font-size:10px;line-height:1.3}.shipping-doc-page:not(.shipping-doc-editor-page):not(.sales-contract-config-page) .shipping-doc-paper-pl .shipping-pack-summary{justify-content:flex-start;margin-top:10px}.shipping-doc-page:not(.shipping-doc-editor-page):not(.sales-contract-config-page) .shipping-doc-paper-pl .shipping-pack-summary div{grid-template-columns:68px auto;font-size:11px;line-height:1.3}.shipping-doc-page:not(.shipping-doc-editor-page):not(.sales-contract-config-page) .shipping-doc-paper-pl .shipping-pack-summary p{margin-top:8px;text-align:left;font-size:10px;line-height:1.3}.shipping-doc-page:not(.shipping-doc-editor-page):not(.sales-contract-config-page) .shipping-doc-paper .shipping-sc-meta-row{grid-template-columns:72px minmax(0,1fr);justify-content:stretch}.shipping-doc-page:not(.shipping-doc-editor-page):not(.sales-contract-config-page) .shipping-doc-paper .shipping-sc-meta-row input{width:100%}.shipping-doc-page:not(.shipping-doc-editor-page):not(.sales-contract-config-page) .shipping-doc-paper .shipping-sc-intro,.shipping-doc-page:not(.shipping-doc-editor-page):not(.sales-contract-config-page) .shipping-doc-paper .shipping-sc-summary{font-size:11px;line-height:1.3}.shipping-doc-page:not(.shipping-doc-editor-page):not(.sales-contract-config-page) .shipping-doc-paper .shipping-sc-intro input,.shipping-doc-page:not(.shipping-doc-editor-page):not(.sales-contract-config-page) .shipping-doc-paper .shipping-sc-summary input{width:100%;max-width:100%}.shipping-doc-page:not(.shipping-doc-editor-page):not(.sales-contract-config-page) .shipping-doc-paper .shipping-sc-signatures{grid-template-columns:1fr;gap:8px}}.production-print-paper{width:min(100%,1000px);min-height:auto;background:#fff;border:0;padding:8mm}.production-print-frame{border:1px solid #111}.production-print-head{border-bottom:1px solid #111;padding:8px 10px}.production-print-head h1{margin:0;font-size:18px;line-height:1.2;text-align:center}.production-print-meta{padding:8px}.production-print-summary{border:1px solid #111}.production-print-summary td{border:1px solid #111;font-size:12px;line-height:1.3}.production-print-image-wrap{padding:0 8px 8px}.production-print-image{width:120px;height:120px;object-fit:contain;border:1px solid #111;background:#fff}.production-print-material{padding:0 8px 8px}.production-print-section-title{margin:0;padding:6px 8px;border:1px solid #111;border-bottom:0;background:#d7dce3;font-size:12px;font-weight:700}.production-print-table{border:1px solid #111}.production-print-table td,.production-print-table th{border:1px solid #111;font-size:11px;line-height:1.25;padding:4px 6px;word-break:break-word}@media (max-width:768px){.production-print-paper{padding:6px}.production-print-head h1{font-size:16px}.production-print-summary{min-width:620px}.production-print-image{width:96px;height:96px}.production-print-table{min-width:940px}}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.modal-head h3{margin:0}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}