.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;background:#f4f7fb;padding:24px}.login-card{width:100%;max-width:400px;background:#fff;border-radius:16px;box-shadow:0 10px 40px #1139461f;overflow:hidden}.login-card-header{background:linear-gradient(180deg,#113946,#0b1f26);padding:36px 32px 28px;display:flex;flex-direction:column;align-items:center;gap:8px}.login-brand-icon{width:48px;height:48px;background:#ffffff26;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:700;color:#fff;margin-bottom:4px}.login-brand-name{margin:0;font-size:22px;font-weight:700;color:#fff;letter-spacing:.01em}.login-brand-sub{margin:0;font-size:13px;color:#c8d7dd}.login-form{padding:32px;display:flex;flex-direction:column;gap:20px}.login-field{display:flex;flex-direction:column;gap:6px}.login-label{font-size:13px;font-weight:600;color:#374151;letter-spacing:.02em}.login-input{padding:11px 14px;border:1.5px solid #d1d5db;border-radius:10px;font-size:15px;color:#1f2937;background:#fff;transition:border-color .15s,box-shadow .15s;outline:none;width:100%}.login-input:focus{border-color:#113946;box-shadow:0 0 0 3px #1139461a}.login-input:disabled{background:#f9fafb;color:#9ca3af;cursor:not-allowed}.login-error{padding:10px 14px;background:#fef2f2;border:1px solid #fecaca;border-radius:8px;font-size:13px;color:#dc2626}.login-submit{padding:12px;background:linear-gradient(180deg,#113946,#0b1f26);color:#fff;border:none;border-radius:10px;font-size:15px;font-weight:600;cursor:pointer;transition:opacity .15s;margin-top:4px}.login-submit:hover:not(:disabled){opacity:.9}.login-submit:disabled{opacity:.55;cursor:not-allowed}.login-submit-loading{display:flex;align-items:center;justify-content:center;gap:8px}.login-spinner{width:16px;height:16px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:spin .7s linear infinite;flex-shrink:0}.auth-loading-screen{min-height:100vh;display:flex;align-items:center;justify-content:center;background:#f4f7fb}.auth-loading-spinner{width:36px;height:36px;border:3px solid #d1d5db;border-top-color:#113946;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}:root{font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;color:#1f2937;background:#f4f7fb;line-height:1.5;font-weight:400}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select,textarea{font:inherit}h1,h2,h3,p{margin-top:0}.quotation-preview-meta-split{display:grid;grid-template-columns:1fr 40px 1fr;gap:0}.quotation-preview-meta-column{min-width:0}.quotation-preview-meta-spacer{width:40px}.quotation-preview-meta-title{margin-bottom:8px;font-size:1rem}.quotation-preview-meta-paragraph{margin:0 0 4px;white-space:pre-wrap}.quotation-preview-signature-intro-compact p{margin-bottom:4px}.quotation-preview-signature-image-wrap,.quotation-preview-signature-placeholder{min-height:44px;margin:12px 0}.quotation-preview-signature-image{max-height:44px;max-width:220px;object-fit:contain}.sales-order-workflow .action-group{margin-top:16px}.sales-order-terms-editor{margin-top:20px}.sales-order-terms-list{display:flex;flex-direction:column;gap:14px}.sales-order-term-card{padding:14px;border:1px solid #dbe3e7;border-radius:12px;background:#f9fbfc}.sales-order-term-card-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.sales-order-term-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.po-attachment-dropzone{display:flex;align-items:center;gap:10px;padding:16px 20px;border:2px dashed #d1d5db;border-radius:10px;background:#f9fbfc;cursor:default;transition:border-color .15s,background .15s;margin-bottom:10px}.po-attachment-dropzone--active{border-color:#3b82f6;background:#eff6ff}.po-attachment-dropzone-hint{color:#6b7280;font-size:13px}.po-attachment-browse-label{font-size:13px;font-weight:600;color:#2563eb;cursor:pointer;text-decoration:underline}.po-attachment-list{display:flex;flex-direction:column;gap:8px}.po-attachment-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px;border:1px solid #e5e7eb;border-radius:8px;background:#fff}.po-attachment-item-name{font-size:13px;color:#374151;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.po-attachment-item-actions{display:flex;gap:6px;flex-shrink:0}.admin-layout{display:flex;min-height:100vh}.sidebar{width:260px;background:linear-gradient(180deg,#113946,#0b1f26);color:#fff;padding:24px 18px;display:flex;flex-direction:column;height:100vh;position:sticky;top:0;flex-shrink:0;overflow:hidden;transition:width .25s ease,padding .25s ease}.sidebar-collapsed{width:60px;padding:24px 8px}.sidebar-brand{margin-bottom:24px;flex-shrink:0}.sidebar-brand-header{display:flex;align-items:center;justify-content:space-between;gap:8px}.sidebar-brand-header h1{margin-bottom:0}.sidebar-brand h1{margin-bottom:4px;font-size:24px}.sidebar-eye-btn{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border:0;background:transparent;cursor:pointer;color:#9fb5bc;border-radius:6px;padding:0;flex-shrink:0;transition:background .15s,color .15s}.sidebar-eye-btn:hover{background:#ffffff1f;color:#fff}.sidebar-eye-btn.sidebar-eye-inactive{color:#4d6b75}.sidebar-brand p{margin:0;color:#c8d7dd}.sidebar-brand-user{display:inline-block;margin-top:6px;padding:3px 10px;background:#ffffff1f;border:1px solid rgba(255,255,255,.18);border-radius:20px;font-size:12px;font-weight:500;color:#e2eef1;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-brand-icon{display:flex;align-items:center;justify-content:center;width:36px;height:36px;background:#ffffff26;border-radius:8px;font-size:18px;font-weight:700;color:#fff;margin:0 auto}.sidebar-nav{flex:1;display:flex;flex-direction:column;gap:10px;overflow-y:auto;overflow-x:hidden}.sidebar-nav::-webkit-scrollbar{width:3px}.sidebar-nav::-webkit-scrollbar-track{background:transparent}.sidebar-nav::-webkit-scrollbar-thumb{background:#ffffff26;border-radius:2px}.sidebar-group{display:flex;flex-direction:column;gap:10px}.sidebar-group-title{margin:10px 8px 2px;font-size:15px;letter-spacing:.03em;text-transform:none;color:#d7e4e8;font-weight:600}.sidebar-group-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;padding:0 8px;border:0;background:transparent;cursor:pointer;color:inherit;border-radius:8px;transition:background .15s ease}.sidebar-group-toggle.group-active{background:#ffffff12}.sidebar-group-toggle.group-active .sidebar-group-heading>span:last-child{color:#fff}.sidebar-collapsed .sidebar-group-toggle{justify-content:center;padding:0}.sidebar-group-title-button{margin:10px 0 2px}.sidebar-group-arrow{width:10px;height:10px;border-right:2px solid #9fb5bc;border-bottom:2px solid #9fb5bc;transform:rotate(45deg);transition:transform .2s ease}.sidebar-group-arrow.open{transform:rotate(225deg)}.sidebar-group-heading{display:inline-flex;align-items:center;gap:10px}.sidebar-submenu{display:flex;flex-direction:column;gap:8px;max-height:0;overflow:hidden;transition:max-height .25s ease}.sidebar-submenu.open{max-height:600px}.sidebar-link{display:flex;align-items:center;gap:10px;padding:11px 12px;border-radius:10px;color:#d7e4e8;text-decoration:none;font-size:15px;line-height:1.35}.sidebar-link.active,.sidebar-link:hover{background:#ffffff1f;color:#fff}.sidebar-sublink{margin-left:12px}.sidebar-bottom{flex-shrink:0;margin-top:16px;padding-top:14px;border-top:1px solid rgba(255,255,255,.1);display:flex;align-items:center;justify-content:space-between}.sidebar-collapsed .sidebar-bottom{justify-content:center}.sidebar-collapse-btn{display:flex;align-items:center;gap:8px;padding:7px 8px;border:0;background:transparent;color:#9fb5bc;cursor:pointer;border-radius:8px;font-size:13px;transition:background .15s ease,color .15s ease}.sidebar-collapse-btn:hover{background:#ffffff1a;color:#fff}.sidebar-collapse-btn:hover .menu-icon{color:#fff}.sidebar-version{font-size:11px;color:#4d6b75;-webkit-user-select:none;user-select:none}.sidebar-user{display:flex;align-items:center;gap:8px;min-width:0}.sidebar-user-name{font-size:12px;color:#9fb5bc;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0}.sidebar-logout-btn{display:flex;align-items:center;justify-content:center;padding:5px;border:0;background:transparent;color:#9fb5bc;cursor:pointer;border-radius:6px;flex-shrink:0;transition:background .15s,color .15s}.sidebar-logout-btn:hover{background:#ffffff1a;color:#fff}.menu-icon{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;flex:0 0 18px;color:#9fb5bc}.menu-icon svg{width:18px;height:18px}.sidebar-group-icon,.sidebar-link.active .menu-icon,.sidebar-link:hover .menu-icon,.sidebar-group-toggle:hover .sidebar-group-icon{color:#fff}.main-content{flex:1;padding:24px;overflow-x:auto}.page-section{display:flex;flex-direction:column;gap:20px}.page-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.context-bar{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:center;padding:12px 14px;border-radius:14px;background:#fff;box-shadow:0 10px 30px #11394614}.budget-page-flow,.budget-table-panel{display:flex;flex-direction:column;gap:18px;min-width:0}.budget-detail-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.detail-eyebrow{margin-bottom:4px;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#6b7280}.budget-form{display:grid;gap:14px}.detail-collapsible-card{border-radius:14px;background:linear-gradient(180deg,#f3f7f9,#fff);box-shadow:0 10px 30px #11394614;overflow:hidden}.detail-collapsible-toggle{display:flex;align-items:center;gap:12px;width:100%;padding:16px 18px;border:0;background:transparent;color:#113946;font-size:16px;font-weight:600;text-align:left;cursor:pointer}.detail-collapsible-arrow{width:10px;height:10px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg);transition:transform .2s ease}.detail-collapsible-arrow.open{transform:rotate(45deg)}.detail-collapsible-body{display:flex;flex-direction:column;gap:16px;padding:0 18px 18px}.detail-collapsible-body-static{padding-top:18px}.boq-filter-bar{align-items:end}.boq-filter-control{display:flex;flex-direction:column;gap:8px}.boq-filter-control select{min-width:220px;padding:10px 12px;border:1px solid #d1d5db;border-radius:10px;background:#fff}@media (max-width: 900px){.admin-layout{flex-direction:column}.sidebar{width:100%}.page-header{flex-direction:column}}.table-wrapper{background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 10px 30px #11394614}.data-table{width:100%;border-collapse:collapse}.data-table th,.data-table td{padding:14px 16px;border-bottom:1px solid #e5e7eb;text-align:left}.data-table th{background:#eaf1f4;font-size:14px}.data-table th.sortable-column{cursor:pointer;-webkit-user-select:none;user-select:none}.data-table tbody tr{transition:background .18s ease}.data-table tbody tr:hover{background:#f7fbfc}.data-table tbody tr.row-danger td{background:#fff1f2}.data-table tbody tr.row-success td{background:#ecfdf3}.data-table tbody tr.row-warning td{background:#fffbeb}.data-table tbody tr.row-info td{background:#eff6ff}.interactive-row{cursor:pointer}.interactive-row.selected td{background:#eef5f7}.table-filter-row th{background:#f6fafb;padding-top:10px;padding-bottom:10px}.table-filter-input{width:100%;padding:8px 10px;border:1px solid #d1d5db;border-radius:8px;background:#fff}.empty-state{text-align:center;color:#6b7280}.detail-row td{background:#f8fbfc}.catalogue-layout{display:grid;grid-template-columns:1.2fr 1fr;gap:20px;align-items:start}.catalogue-layout.full-width{grid-template-columns:1fr}.catalogue-panel{min-width:0}.catalogue-table-toolbar{display:flex;justify-content:flex-end;gap:10px;margin-bottom:12px}.catalogue-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.detail-item{display:flex;flex-direction:column;gap:6px;padding:12px;border-radius:10px;background:#fff}.wrap-actions{flex-wrap:wrap}.detail-item.full-width{grid-column:1 / -1}.budget-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.detail-attachments{display:flex;flex-wrap:wrap;gap:10px}.attachment-link{color:#113946;text-decoration:none}@media (max-width: 1100px){.catalogue-layout,.catalogue-detail-grid,.budget-detail-grid{grid-template-columns:1fr}.catalogue-table-toolbar{justify-content:flex-start;flex-wrap:wrap}}.sales-invoice-dashboard-table th:first-child,.sales-invoice-dashboard-table td:first-child{width:56px;text-align:center}.sales-invoice-detail-wrap{overflow-x:auto}.sales-invoice-term-table{min-width:1080px;margin-top:8px}.sales-invoice-group-row{cursor:pointer}.sales-invoice-group-row:hover td{background:#f4f8fa}.sales-invoice-doc-button{min-width:52px;padding:6px 10px}.sales-invoice-doc-button:not(:disabled){background:#d1fae5;color:#065f46}.sales-invoice-doc-button:not(:disabled):hover{background:#a7f3d0}.sales-invoice-doc-button:disabled{background:#f3f4f6;color:#9ca3af;cursor:not-allowed;opacity:.8}.oi-expand-col{width:36px;padding-left:8px!important;padding-right:4px!important}.oi-expand-btn{display:flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:none;background:transparent;cursor:pointer;color:#6b7280;border-radius:6px;transition:background .15s ease,color .15s ease}.oi-expand-btn:hover{background:#e5edf0;color:#113946}.oi-chevron{display:block;transition:transform .2s ease;transform:rotate(0)}.oi-chevron.oi-chevron-open{transform:rotate(90deg)}.oi-parent-row{cursor:pointer}.oi-parent-row.oi-parent-expanded>td{border-bottom:none}.oi-breakdown-area>td{padding:0;border-bottom:1px solid #e5e7eb;background:#f8fbfc}.oi-breakdown-indent{width:36px;border-right:2px solid #d1e8ee}.oi-breakdown-content{padding:10px 12px 12px!important}.oi-breakdown-status{padding:10px 4px;color:#6b7280;font-size:13px}.link-button{background:none;border:none;padding:0;color:#113946;font-size:inherit;cursor:pointer;text-decoration:underline}.link-button:hover{color:#0e6b82}.bd-table{width:100%;border-collapse:collapse;font-size:13px}.bd-table th,.bd-table td{padding:8px 10px;border-bottom:1px solid #e5e7eb;text-align:left}.bd-table th{background:#eaf1f4;font-size:12px;font-weight:600;color:#374151}.bd-row:last-child td{border-bottom:none}.bd-row:hover td{background:#f1f7fa}.form-card{background:#fff;border-radius:14px;padding:20px 20px 96px;box-shadow:0 10px 30px #11394614}.po-form-layout{display:flex;flex-direction:column;gap:24px;padding:28px;border:1px solid #e5edf1;background:linear-gradient(180deg,#f3f7f9bf,#fff0 220px),#fff}.form-card.compact{padding:0;box-shadow:none}.po-form-section{padding:20px;border:1px solid #e4ebef;border-radius:18px;background:#fffffff5;box-shadow:0 8px 24px #1139460d}.po-form-section-hero{padding:24px}.po-form-section-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:18px}.po-form-section-header h3{margin:0 0 6px;color:#113946;font-size:18px}.po-form-section-header p{margin:0;color:#6b7280;font-size:13px;line-height:1.5}.po-form-content-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,.95fr);gap:24px;align-items:start}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:16px}.po-header-grid{align-items:start}.po-number-field{grid-column:1 / -1}.po-number-editor{display:grid;grid-template-columns:72px 1fr;gap:12px;align-items:center}.po-sequence-input{width:72px!important;min-width:72px;text-align:center}.po-number-preview{min-height:42px;display:flex;align-items:center;padding:4px 0;font-weight:600;color:#113946;line-height:1.5}.form-field{display:flex;flex-direction:column;gap:8px}.field-row{display:flex;gap:8px}.description-preview-text{padding:10px 12px;min-height:42px;color:#374151;word-break:break-word}.combined-price-field{align-items:stretch}.currency-select{width:110px;flex:0 0 110px}.summary-select{width:96px;flex:0 0 96px}.combined-price-field input{flex:1}.form-field input,.form-field select,.form-field textarea{width:100%;padding:10px 12px;border:1px solid #d1d5db;border-radius:10px;background:#fff}.primary-button,.secondary-button,.icon-button,.danger-button{border:none;border-radius:10px;cursor:pointer}.primary-button:disabled,.secondary-button:disabled,.danger-button:disabled{opacity:.4;cursor:not-allowed}.primary-button{background:#113946;color:#fff;padding:10px 16px}.secondary-button{background:#dbe8ed;color:#113946;padding:10px 14px}.danger-button{background:#fee2e2;color:#991b1b;padding:10px 14px}.icon-button{background:transparent;color:#113946;padding:4px 8px}.action-icon-button{min-width:36px;min-height:36px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #d1d5db;background:#fff}.danger-icon-button{color:#991b1b;border-color:#fecaca;background:#fff7f7}.primary-icon-button{color:#fff;border-color:#113946;background:#113946}.warning-icon-button{color:#92400e;border-color:#fcd34d;background:#fffbeb}.success-icon-button{color:#166534;border-color:#bbf7d0;background:#f0fdf4}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;display:flex;justify-content:center;align-items:center;background:#0f172a73;padding:20px;overflow-y:auto}.modal-card{width:100%;max-width:520px;max-height:calc(100vh - 40px);background:#fff;border-radius:14px;padding:20px;overflow-y:auto}.modal-card-wide{max-width:980px}.modal-header{display:flex;justify-content:space-between;align-items:center}.action-group{display:flex;gap:8px}.icon-action-group{align-items:center;justify-content:center}.table-action-icons{justify-content:center}.po-row-actions{display:flex;align-items:center;justify-content:center;gap:8px}.purchase-order-form-actions{position:sticky;bottom:12px;z-index:80;justify-content:flex-end;padding:12px;margin-top:24px;border:1px solid rgba(209,213,219,.9);border-radius:14px;background:#fffffff5;box-shadow:0 12px 28px #11394624;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.message-box{padding:12px 14px;border-radius:10px;background:#fff;box-shadow:0 10px 30px #11394614}.message-box.error{background:#fef2f2;color:#991b1b}.message-box.success{background:#ecfdf5;color:#166534}.finance-form{padding:8px 0 0}.finance-form-grid,.finance-filter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.finance-form-span-2{grid-column:1 / -1}.finance-form-actions{justify-content:flex-end;margin-top:20px}.payment-proof-dropzone{border:2px dashed #d1d5db;border-radius:8px;padding:28px 24px;text-align:center;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:8px;color:#6b7280;transition:border-color .15s,background-color .15s}.payment-proof-dropzone:hover,.payment-proof-dropzone.dragging{border-color:#113946;background-color:#f0f6f8}.payment-proof-dropzone p{margin:0;font-size:14px}.dropzone-link{color:#113946;text-decoration:underline}.dropzone-hint{font-size:12px;color:#9ca3af}.payment-proof-preview{border:1px solid #e4ebef;border-radius:8px;padding:12px;display:flex;align-items:flex-start;gap:12px}.payment-proof-image{max-width:120px;max-height:90px;object-fit:contain;border-radius:4px;border:1px solid #e4ebef;flex-shrink:0}.payment-proof-info{display:flex;flex-direction:column;gap:8px;min-width:0}.payment-proof-filename{font-size:14px;word-break:break-all;color:#374151}.finance-summary-filter-card{padding:20px}.finance-summary-cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;margin:20px 0}.finance-summary-card{padding:18px;border:1px solid #dbe8ed;border-radius:14px;background:linear-gradient(180deg,#fff,#f5fafb);box-shadow:0 10px 24px #1139460f}.finance-summary-card span{display:block;color:#6b7280;font-size:13px;margin-bottom:8px}.finance-summary-card strong{color:#113946;font-size:18px}.finance-summary-section{margin-top:24px}.finance-master-page{display:flex;flex-direction:column;gap:24px}.po-preview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px;margin-bottom:16px}.preview-notes-box{min-height:44px;padding:10px 12px;border:1px solid #d1d5db;border-radius:10px;background:#f9fbfc}.receipt-summary-card{margin-bottom:20px}.receipt-toolbar{justify-content:flex-end;margin:18px 0}.receipt-qty-input{width:120px;padding:8px 10px;border:1px solid #d1d5db;border-radius:8px;background:#fff}.receipt-qty-input.invalid{border-color:#dc2626;background:#fef2f2;color:#991b1b}.po-notes-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:16px;margin-bottom:16px}.po-notes-panel{grid-column:1 / 2}.attachment-form{display:flex;flex-direction:column;gap:12px;margin-bottom:16px}.attachment-dropzone{display:flex;flex-direction:column;align-items:center;gap:8px;padding:24px 20px;border:2px dashed #d1d5db;border-radius:10px;background:#f9fbfc;cursor:pointer;transition:border-color .15s,background .15s;text-align:center}.attachment-dropzone--active{border-color:#3b82f6;background:#eff6ff}.attachment-dropzone svg{color:#9ca3af}.attachment-dropzone-hint{color:#6b7280;font-size:13px}.attachment-browse-label{font-size:13px;font-weight:600;color:#2563eb;cursor:pointer;text-decoration:underline}.attachment-selected-file{font-size:13px;color:#374151;padding:6px 10px;background:#f3f4f6;border-radius:6px}.attachment-add-button{align-self:flex-start}.attachment-existing-list{margin-top:16px}.attachment-existing-list h4{margin:0 0 10px}.saved-attachments-list{display:flex;flex-direction:column;gap:10px}.saved-attachment-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid #e5e7eb;border-radius:10px;background:#fff}.line-items-editor{margin:0;min-height:420px}.line-items-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.line-items-list{display:flex;flex-direction:column;gap:16px}.line-item-card{border:1px solid #e5e7eb;border-radius:12px;padding:16px;background:#f9fbfc}.line-item-card-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.field-help-text{color:#6b7280;font-size:12px}.po-attachment-preview{display:grid;gap:12px}.po-attachment-preview-image{width:100%;max-height:720px;object-fit:contain;border:1px solid #d1d5db;border-radius:12px;background:#fff}.po-attachment-preview-frame{width:100%;min-height:720px;border:1px solid #d1d5db;border-radius:12px;background:#fff}.quotation-preview-footer{margin-top:auto;padding-top:24px;display:flex;justify-content:flex-end;font-size:12px;color:#6b7280}.po-preview-sheet{position:relative}.po-preview-sheet-body{box-sizing:border-box;padding-bottom:34mm}.po-preview-signature-block{margin-top:0;margin-left:auto;width:220px;position:absolute;right:56px;bottom:78px}.po-preview-footer{position:absolute;right:56px;bottom:28px;margin-top:0}.po-items-table-scroll{overflow-x:auto;overflow-y:visible;padding-bottom:320px}.po-items-table{display:flex;flex-direction:column;gap:8px;overflow:visible;position:relative;z-index:200;min-width:1400px}.po-items-table-header,.po-items-table-row{display:grid;grid-template-columns:60px 150px 350px minmax(120px,.8fr) 110px 110px 130px 150px 150px 120px;gap:8px;align-items:center}.po-items-table-row{align-items:start}.po-items-table-header{font-weight:600;color:#113946;padding:0 4px}.po-items-table-row{background:#f9fbfc;border:1px solid #e5e7eb;border-radius:10px;padding:10px;position:relative;z-index:1;overflow:visible}.po-items-table-row-active{z-index:3000}.po-items-table-row:focus-within{z-index:3000}.po-items-table-row input,.po-items-table-row select,.po-items-table-row textarea{width:100%;padding:10px 12px;border:1px solid #d1d5db;border-radius:10px;background:#fff}.po-items-table-row textarea{resize:none;overflow:hidden;font:inherit;line-height:1.5}.po-row-actions .action-icon-button{width:36px;min-width:36px;height:36px;padding:0;font-size:18px;font-weight:700}.lookup-field{position:relative;z-index:1000;overflow:visible}.lookup-field:focus-within{z-index:4000}.lookup-field input{width:100%}.lookup-dropdown{position:fixed;z-index:5000;display:flex;flex-direction:column;background:#fff;border:1px solid #d1d5db;border-radius:10px;box-shadow:0 10px 24px #1139461f;max-height:260px;min-width:240px;overflow-y:auto}.lookup-dropdown-up{transform:translateY(-100%)}.lookup-option{border:none;background:#fff;text-align:left;padding:10px 12px;cursor:pointer}.lookup-option:hover{background:#f3f7f9}.lookup-option.active{background:#dbe8ed}.lookup-empty-state{padding:10px 12px;color:#6b7280;display:flex;flex-direction:column;gap:10px}.lookup-empty-action{align-self:flex-start}.lookup-footer{padding:10px 12px;border-top:1px solid #e5edf1;background:#fbfdfe}.po-item-number{font-weight:600;text-align:center}.po-line-total{width:100%;padding:10px 12px;border:1px solid #d1d5db;border-radius:10px;background:#f3f7f9;text-align:right;font-variant-numeric:tabular-nums}.po-summary-card{display:grid;grid-template-columns:1fr;gap:12px;padding:16px;border:1px solid #dbe3e7;border-radius:12px;background:#f9fbfc}.po-summary-section{position:sticky;top:24px}.summary-controls{display:grid;grid-template-columns:1fr;gap:14px;margin-bottom:16px}.po-summary-card div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-radius:12px;background:#fff;border:1px solid #e5edf1}.po-summary-card div strong{color:#113946}.boq-editor{display:flex;flex-direction:column;gap:12px}.boq-editor-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:12px;border-radius:10px;background:#eef5f7}.boq-editor-header p{margin:4px 0 0;color:#4b5563;font-size:14px}.boq-items-list{display:flex;flex-direction:column;gap:12px}.boq-item-row{padding:14px;border:1px solid #dbe3e7;border-radius:10px;background:#fff;position:relative;z-index:1}.boq-item-row:focus-within{z-index:3000}.boq-lookup-field{grid-column:1 / -1}.boq-lookup-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.field-error-text{color:#b42318;font-size:12px}.quotation-page-header-actions{flex-wrap:wrap;justify-content:flex-end}.quotation-page-layout{display:flex;flex-direction:column;gap:24px}.quotation-running-number-field,.quotation-name-field{grid-column:1 / -1}.quotation-sheet-card{border:1px solid #d7dde2;border-radius:8px;background:#fff;box-shadow:0 18px 42px #0f172a14;padding:28px 24px 24px}.quotation-document-card{padding:28px}.quotation-document-topline{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;padding-bottom:18px;margin-bottom:20px;border-bottom:2px solid #113946}.quotation-brand-block p,.quotation-title-block h2{margin:0}.quotation-brand-block small,.quotation-title-block span{display:block;margin-top:6px;color:#5f6b76}.quotation-title-block{text-align:right;width:min(100%,420px)}.quotation-title-block h2{font-size:32px;letter-spacing:.1em;color:#113946}.quotation-title-input{width:100%;margin-top:8px;padding:10px 12px;border:1px solid #d1d5db;border-radius:10px;background:#fff;color:#113946;text-align:right;font:inherit}.quotation-document-meta-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.quotation-document-panel{padding:18px;border:1px solid #e2e8ee;background:#fcfdfd}.quotation-document-panel h3{margin:0 0 16px;padding-bottom:10px;border-bottom:1px solid #d9e1e7;color:#113946;font-size:16px}.quotation-document-static-notes{margin-top:8px;padding:10px 12px;border:1px dashed #c6d1d9;background:#f7fafc;color:#64748b;font-size:12px}.quotation-customer-field,.quotation-customer-autocomplete{position:relative}.quotation-customer-info-card{margin-top:14px;padding:16px 18px;border:1px solid #dbe4ea;border-radius:14px;background:linear-gradient(180deg,#fbfdfe,#f5f9fb)}.quotation-customer-summary{display:flex;flex-direction:column;gap:14px}.quotation-customer-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px}.quotation-customer-summary-row{display:flex;flex-direction:column;gap:4px}.quotation-customer-summary-row-wide{padding-bottom:12px;border-bottom:1px solid #dbe4ea}.quotation-customer-summary-label{font-size:11px;font-weight:700;letter-spacing:.03em;text-transform:uppercase;color:#5b7080}.quotation-customer-summary-value{color:#113946;line-height:1.5;word-break:break-word}.quotation-customer-empty-state{color:#667085;line-height:1.5}.quotation-sheet-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:16px}.quotation-sheet-header h3{margin:8px 0 0;color:#113946}.quotation-section-actions{flex-wrap:wrap;justify-content:flex-end}.quotation-badge{display:inline-flex;align-items:center;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:700}.quotation-badge.material{background:#d9eef7;color:#0f4c5c}.quotation-badge.service{background:#e8f2de;color:#345c1b}.quotation-main-table-wrap{overflow-x:auto;overflow-y:visible}.quotation-main-table{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed;border:1px solid #dde7ec;border-radius:0;overflow:hidden;background:#fff}.quotation-sheet-table{margin-bottom:0}.quotation-col-no{width:64px}.quotation-col-qty{width:100px}.quotation-col-uom{width:110px}.quotation-col-price{width:170px}.quotation-col-total{width:180px}.quotation-col-actions{width:124px}.quotation-main-table th,.quotation-main-table td{padding:14px 12px;border-right:1px solid #e5edf1;border-bottom:1px solid #e5edf1;vertical-align:top}.quotation-main-table th{background:#f8fafc;color:#113946;font-size:13px;text-align:left;font-weight:700}.quotation-main-table th:last-child,.quotation-main-table td:last-child{border-right:none}.quotation-main-table td input,.quotation-main-table td select,.quotation-main-table td textarea{width:100%;min-height:46px;padding:12px 14px;border:1px solid #d4dbe2;border-radius:10px;background:#fff;font:inherit}.quotation-cell-name input{min-width:260px}.quotation-cell-name textarea{min-height:94px;resize:vertical}.quotation-main-table td:nth-child(3) input{max-width:72px;text-align:center;padding-left:8px;padding-right:8px}.quotation-cell-uom select{min-width:84px}.quotation-table-total{min-height:46px;display:flex;align-items:center;justify-content:flex-end;padding:12px 14px;border:1px solid #d4dbe2;border-radius:10px;background:#f8fafc;text-align:right;font-weight:600;color:#113946;font-variant-numeric:tabular-nums}.quotation-table-actions{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px}.quotation-table-actions .action-icon-button{min-width:44px;min-height:44px;padding:0 10px;gap:6px;border-radius:10px}.action-icon-text{font-size:11px;font-weight:600;line-height:1}.quotation-empty-state{padding:18px;border:1px dashed #c7d7df;color:#667085;background:#fbfdff;text-align:center}.quotation-separator-row td{background:#fcfcfd}.quotation-breakdown-row td{background:#fafcfd}.quotation-breakdown-row td:first-child{border-right:1px solid #e5edf1}.quotation-separator-inline{display:grid;gap:8px}.quotation-separator-inline textarea{resize:vertical}.quotation-subtotal-row td{background:#f8fafc;font-weight:700}.quotation-single-mode-list{display:grid;gap:14px}.quotation-single-mode-card{border:1px solid #dde7ec;background:#f8fbfc}.quotation-single-mode-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px}.quotation-single-mode-toolbar-controls{display:flex;align-items:center;gap:8px}.quotation-single-mode-toolbar-controls select{min-width:130px;padding:10px 12px;border:1px solid #d4dbe2;background:#fff}.quotation-single-mode-subtotal{display:flex;justify-content:space-between;align-items:center;margin-top:12px;padding:14px 16px;background:#f8fafc;border:1px solid #dde7ec;font-weight:700}.quotation-breakdown-card{padding:14px;border:1px solid #d9e3e8;background:#fff}.quotation-breakdown-header h5{margin:0 0 12px;font-size:14px;color:#113946}.quotation-breakdown-table{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed;border:1px solid #e2eaee;background:#fff}.quotation-breakdown-col-code{width:100px}.quotation-breakdown-col-description{width:220px}.quotation-breakdown-col-qty{width:84px}.quotation-breakdown-col-uom{width:110px}.quotation-breakdown-col-price{width:150px}.quotation-breakdown-col-markup,.quotation-breakdown-col-merge{width:56px}.quotation-breakdown-col-action{width:156px}.quotation-breakdown-table th,.quotation-breakdown-table td{padding:10px 8px;border-right:1px solid #e5edf1;border-bottom:1px solid #e5edf1;text-align:left;vertical-align:top}.quotation-breakdown-table th:last-child,.quotation-breakdown-table td:last-child{border-right:none}.quotation-breakdown-table th{color:#113946;font-size:13px;background:#f4f8fa;font-weight:700}.quotation-breakdown-table th[title]{text-align:center}.quotation-breakdown-table tbody tr:last-child td{border-bottom:none}.quotation-breakdown-table td input,.quotation-breakdown-table td select,.quotation-breakdown-table td textarea{width:100%;padding:10px 12px;border:1px solid #d4dbe2;background:#fff}.quotation-breakdown-table td textarea{min-height:72px;resize:vertical}.quotation-breakdown-markup-input{text-align:center;padding-inline:6px}.quotation-breakdown-merge-cell{text-align:center!important;vertical-align:middle!important}.quotation-breakdown-merge-cell input{width:auto!important;margin:0 auto;display:block}.quotation-breakdown-sell-price{min-height:42px;display:flex;align-items:center;justify-content:flex-end;padding:10px 12px;border:1px solid #d4dbe2;background:#f8fafc;color:#113946;font-weight:600;text-align:right;font-variant-numeric:tabular-nums}.quotation-breakdown-action-cell{width:156px}.quotation-breakdown-separator-row td{background:#f8fbfd}.quotation-breakdown-separator-input{font-style:italic}.quotation-breakdown-drop-target td{border-top:3px solid #2f7d67!important}.quotation-preview-separator-cell{text-align:left;padding-left:10px}.quotation-preview-separator-cell strong{display:block;text-align:left}.quotation-breakdown-table th[title] svg{display:block;margin:0 auto}.quotation-summary-card{padding:22px 22px 24px;background:linear-gradient(180deg,#ebf4f8f2,#fffffffa 72%),#fff}.quotation-summary-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}.quotation-summary-heading h3{margin:4px 0 0;color:#113946;font-size:22px}.quotation-summary-heading p{max-width:300px;margin:0;color:#5f6b76;line-height:1.5}.quotation-summary-eyebrow{display:inline-flex;align-items:center;padding:5px 10px;border-radius:999px;background:#11394614;color:#113946;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.quotation-summary-sheet{margin-left:auto;width:min(100%,560px);max-width:560px;border:1px solid #dde5ea;border-radius:16px;overflow:hidden;box-shadow:0 18px 36px #11394614;background:#fff}.quotation-summary-row{display:grid;grid-template-columns:minmax(0,1fr) 180px}.quotation-summary-row strong,.quotation-summary-row span{padding:16px 18px;border-bottom:1px solid #dde5ea}.quotation-summary-row span{text-align:right;border-left:1px solid #dde5ea;font-variant-numeric:tabular-nums;color:#113946}.quotation-summary-discount-inputs{display:grid;grid-template-columns:84px minmax(0,1fr);border-left:1px solid #dde5ea;background:#fff}.quotation-summary-discount-inputs select,.quotation-summary-discount-inputs input{width:100%;min-height:56px;padding:0 14px;border:none;background:#fff;font:inherit}.quotation-summary-discount-inputs select{border-right:1px solid #dde5ea}.quotation-grand-total-row{background:#113946!important;color:#fff}.quotation-grand-total-row strong,.quotation-grand-total-row span{color:#fff!important;border-bottom:none}.quotation-grand-total-row span{border-left-color:#ffffff38}.quotation-preview-modal{max-width:1180px}.quotation-preview-actions{display:flex;justify-content:flex-end;margin-bottom:16px}.quotation-preview-sheet-stack{display:flex;flex-direction:column;gap:0}.quotation-preview-sheet{width:210mm;min-height:297mm;height:297mm;margin:0 auto;box-sizing:border-box;padding:12mm 11mm;border:1px solid #d7dee3;border-radius:8px;background:#fff;font-size:11px;line-height:1.35;display:flex;flex-direction:column}.quotation-preview-sheet-body{flex:1;min-height:0;height:auto;display:flex;flex-direction:column;gap:14px}.quotation-preview-header{padding-bottom:0}.quotation-preview-branding{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:start;gap:16px}.quotation-preview-logo-wrap{grid-column:1 / 3;display:flex;align-items:center;height:100%}.quotation-preview-logo{width:75%;max-width:585px;height:auto;display:block}.quotation-preview-company{grid-column:3 / 6;text-align:right}.quotation-preview-company h1{margin:0 0 6px;font-size:15px;line-height:1.12;color:#000;letter-spacing:-.02em}.quotation-preview-company p{margin:0;color:#000;line-height:1.22;font-size:9.5px;word-break:keep-all}.quotation-preview-header-separator{height:2px;margin:10px 0 12px;border-radius:999px;background:linear-gradient(90deg,#0b0b0b,#0b0b0b 16%,#f2c230 16%,#f2c230)}.quotation-preview-document-bar{display:flex;justify-content:space-between;gap:4px;align-items:flex-start}.quotation-preview-document-heading{flex:1}.quotation-preview-document-meta-inline{min-width:0;width:30%;min-width:260px;max-width:30%;margin-left:auto;margin-right:0;align-self:flex-end;display:flex;flex-direction:column;gap:2px;font-size:10px;text-align:left}.quotation-preview-document-bar h2{margin-bottom:4px;color:#000;font-size:16px;text-transform:none;letter-spacing:0;line-height:1.35}.quotation-preview-document-bar p{color:#475467;max-width:460px;font-size:10px}.quotation-preview-meta{min-width:0;width:fit-content;max-width:100%;display:grid;grid-template-columns:1fr;column-gap:0;row-gap:1px;margin-top:6px;font-size:10px}.quotation-preview-document-meta-inline div,.quotation-preview-meta div,.quotation-preview-summary div{display:flex;justify-content:flex-start;gap:0;padding:1px 0}.quotation-preview-document-meta-inline .quotation-preview-meta-row strong,.quotation-preview-meta .quotation-preview-meta-row strong{min-width:118px;font-weight:700}.quotation-preview-meta-separator{width:14px;text-align:center;flex:0 0 14px}.quotation-preview-meta-value{text-align:left;flex:1;min-width:0;word-break:break-word}.quotation-preview-meta div span{text-align:left}.quotation-preview-party-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:14px;margin-bottom:4px}.quotation-preview-party-card{min-width:0}.quotation-preview-party-card-header{padding:0 0 6px;border-bottom:1px solid #113946}.quotation-preview-party-card-header h3{margin:3px 0 0;color:#000;font-size:12px;line-height:1.35;font-weight:700}.quotation-preview-party-eyebrow{display:inline-flex;color:#000;font-size:9px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.quotation-preview-party-card-body{display:flex;flex-direction:column;padding:8px 0 0}.quotation-preview-party-address{margin:0;min-height:92px;color:#000;font-size:10px;line-height:1.6;white-space:pre-line}.quotation-preview-section{margin-top:14px}.quotation-preview-section-header{margin-bottom:6px}.quotation-preview-section-header h3{color:#000;font-size:12px;margin:0;letter-spacing:.02em}.quotation-preview-item+.quotation-preview-item,.quotation-preview-separator+.quotation-preview-item,.quotation-preview-item+.quotation-preview-separator{margin-top:10px}.quotation-preview-col-no{width:34px}.quotation-preview-col-qty{width:52px}.quotation-preview-col-uom{width:56px}.quotation-preview-col-price{width:92px}.quotation-preview-col-total{width:98px}.quotation-preview-col-summary-label{width:190px}.quotation-preview-col-summary-left{width:108px}.quotation-preview-table,.quotation-preview-subtable{width:100%;border-collapse:collapse;table-layout:fixed}.quotation-preview-subtable{margin-top:8px}.quotation-preview-table th,.quotation-preview-table td,.quotation-preview-subtable th,.quotation-preview-subtable td{padding:6px 7px;border:1px solid #d7e1e6;text-align:left;vertical-align:top;font-size:9.5px;line-height:1.35}.quotation-preview-table th,.quotation-preview-subtable th{text-align:center}.quotation-preview-table td:nth-last-child(2),.quotation-preview-table td:last-child,.quotation-preview-table th:nth-last-child(2),.quotation-preview-table th:last-child,.quotation-preview-subtable td:nth-last-child(2),.quotation-preview-subtable td:last-child,.quotation-preview-subtable th:nth-last-child(2),.quotation-preview-subtable th:last-child{text-align:right}.quotation-preview-multiline{white-space:pre-line}.quotation-preview-table th,.quotation-preview-subtable th{background:#eee;color:#000;font-weight:700;vertical-align:middle;border-bottom-color:#c9d5dc}.quotation-preview-table thead th:first-child,.quotation-preview-table tbody td:first-child,.quotation-preview-subtable thead th:first-child,.quotation-preview-subtable tbody td:first-child{text-align:center}.quotation-preview-separator-row td:first-child{text-align:left}.quotation-preview-table tbody tr:nth-child(2n):not(.quotation-preview-subtotal-row),.quotation-preview-subtable tbody tr:nth-child(2n){background:#fbfdfe}.quotation-preview-table tbody td:nth-child(4),.quotation-preview-table tbody td:nth-child(5),.quotation-preview-subtable tbody td:nth-child(5){text-align:center}.quotation-preview-separator{padding:8px 10px;border:1px dashed #9eb4bf;border-radius:8px;background:#f7fafb;font-size:9.5px}.quotation-preview-separator p{margin-top:4px}.quotation-preview-summary{margin-top:18px;margin-left:auto;max-width:320px;padding-top:8px;border-top:2px solid #113946;font-size:10px}.quotation-preview-summary-table{width:298px;margin-top:10px;margin-left:auto}.quotation-preview-signature-block{width:calc((100% - 24px)/4);min-width:210px;max-width:280px;margin-top:22px;margin-left:auto;page-break-inside:avoid;break-inside:avoid;flex-shrink:0}.quotation-preview-measurement{position:fixed;left:-99999px;top:0;visibility:hidden;pointer-events:none;z-index:-1}.quotation-preview-sheet-measure{position:static!important}.quotation-signature-block,.quotation-signature-block *{page-break-inside:avoid;break-inside:avoid}.quotation-preview-signature-block p{margin:0;color:#000;font-size:9.5px;line-height:1.4}.quotation-preview-signature-electronic-note{margin-top:12px!important;margin-bottom:0!important;color:#526471!important;font-style:italic;text-align:left}.quotation-preview-signature-intro{text-align:left}.quotation-preview-signature-company{font-weight:700}.quotation-preview-signature-identity{margin-top:18px;text-align:left}.quotation-preview-signature-name{font-weight:700;margin-top:4px!important;text-transform:uppercase}.quotation-preview-signature-contact{margin-top:12px;text-align:left}.quotation-preview-summary-table tbody td{background:#fff}.quotation-preview-subtotal-row td,.quotation-preview-summary-table tbody tr td{font-size:9.5px}.quotation-preview-subtotal-row td{background:#eee;border-top:1.5px solid #aebec7}.quotation-preview-summary-table thead th{text-align:left;background:#eee;color:#000;letter-spacing:.02em}.quotation-preview-summary-label{text-align:left!important}.quotation-preview-summary-label-cell{text-align:left!important;font-weight:700;white-space:nowrap}.quotation-preview-summary-value-cell{text-align:right!important;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}.quotation-preview-merged-price-cell{text-align:right!important;vertical-align:middle!important}.quotation-preview-summary-table tbody tr:not(.quotation-preview-grand-total-row) .quotation-preview-summary-label-cell,.quotation-preview-summary-table tbody tr:not(.quotation-preview-grand-total-row) .quotation-preview-summary-value-cell{font-weight:400}.quotation-preview-summary-table tbody tr:not(.quotation-preview-grand-total-row) td{background:#fcfdfe}.quotation-preview-grand-total-row td{background:#eee;color:#000;border-top:1.5px solid #e0bf58}.quotation-preview-summary-inline-row td{background:#eee}.quotation-preview-summary-table .quotation-preview-grand-total-row td,.quotation-preview-table .quotation-preview-subtotal-row.quotation-preview-summary-inline-row td{background:#eee!important}.quotation-preview-page-break{page-break-before:always;break-before:page;height:0}.quotation-preview-grand-total{font-weight:700;color:#113946}.quotation-term-block{display:flex;flex-direction:column;gap:12px;padding:16px;border:1px solid #dbe5ea;border-radius:14px;background:#fbfdfe}.quotation-term-block+.quotation-term-block{margin-top:16px}.quotation-term-header h4,.quotation-preview-term-block h4{margin:0;color:#113946;font-size:15px}.quotation-term-table-wrap{overflow-x:auto}.quotation-term-total{margin-bottom:10px;font-size:13px;font-weight:600}.quotation-term-total.is-valid{color:#166534}.quotation-term-total.is-invalid{color:#b91c1c}.quotation-term-table{width:100%;border-collapse:separate;border-spacing:0;background:#fff;border:1px solid #dbe5ea;border-radius:12px;overflow:hidden}.quotation-term-table th,.quotation-term-table td{padding:10px;border-bottom:1px solid #e5edf1;vertical-align:top;text-align:left}.quotation-term-table th{background:#eef5f7;color:#113946}.quotation-term-table tbody tr:last-child td{border-bottom:none}.quotation-term-table td input,.quotation-term-table td select,.quotation-term-block textarea{width:100%;padding:10px 12px;border:1px solid #d1d5db;border-radius:10px;background:#fff;font:inherit}.quotation-term-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:16px;margin-top:16px}.quotation-inline-suffix-field{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px}.quotation-inline-suffix-field span{color:#475467;white-space:nowrap;font-size:13px}.quotation-warranty-field{grid-template-columns:120px auto}.quotation-preview-term-block{padding:12px 14px;border:1px solid #dbe5ea;border-radius:10px;background:#fbfdfe}.quotation-preview-term-block p{margin:8px 0 0;font-size:9.5px;line-height:1.5}.quotation-preview-term-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:12px;margin-top:12px}.quotation-preview-terms-section{margin-top:4px}.quotation-preview-terms-list{display:flex;flex-direction:column;gap:0px;font-size:9.5px;color:#113946}.quotation-preview-terms-item{display:flex;flex-direction:column;gap:0px}.quotation-preview-terms-heading{font-weight:700}.quotation-preview-terms-body{display:flex;flex-direction:column;gap:4px;padding-left:14px}.quotation-preview-terms-inline-text{line-height:1.5}.quotation-preview-bank-line{display:grid;grid-template-columns:120px 10px auto;column-gap:4px;align-items:start;line-height:1.5}.quotation-preview-bank-label{white-space:nowrap}.quotation-preview-bank-separator{text-align:center}.quotation-preview-bank-value{white-space:normal;min-width:0}.quotation-preview-terms-line{display:grid;grid-template-columns:120px 56px minmax(0,1fr);gap:8px;align-items:start}.quotation-preview-terms-label{min-width:0}.quotation-preview-terms-separator{white-space:nowrap;text-align:left}.quotation-preview-terms-value{line-height:1.5;min-width:0}.quotation-preview-terms-separator-empty{visibility:visible;grid-column:2 / 4;white-space:normal}.quotation-preview-terms-value-wide{white-space:normal;word-break:normal}.quotation-preview-terms-value-full{grid-column:1 / -1;padding-left:0}@media (max-width: 900px){.po-form-layout{padding:20px}.po-form-content-grid,.form-grid,.finance-form-grid,.finance-filter-grid,.finance-summary-cards,.finance-form-grid-3,.payroll-entry-summary-cards{grid-template-columns:1fr}.purchase-order-form-actions{bottom:8px;flex-wrap:wrap;justify-content:stretch}.boq-lookup-grid,.po-preview-grid{grid-template-columns:1fr}.po-summary-section{position:static}.po-number-editor,.po-notes-layout{grid-template-columns:1fr}.quotation-document-topline,.quotation-document-meta-grid{grid-template-columns:1fr;flex-direction:column}.quotation-preview-party-grid{grid-template-columns:1fr;gap:12px}.quotation-term-grid,.quotation-preview-term-grid{grid-template-columns:1fr}.quotation-main-table{min-width:760px}}@page{size:A4;margin:0}@media print{@page{size:A4;margin:10mm 11mm 7mm}.quotation-preview-party-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px!important}html,body{width:210mm;min-width:210mm;background:#fff!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}body.quotation-print-mode *{visibility:hidden!important}body.quotation-print-mode .modal-backdrop,body.quotation-print-mode .modal-backdrop *,body.quotation-print-mode #quotation-preview-sheet,body.quotation-print-mode #quotation-preview-sheet *{visibility:visible!important}body.quotation-print-mode .modal-backdrop{position:static!important;inset:auto!important;display:block!important;padding:0!important;background:#fff!important;overflow:visible!important}body.quotation-print-mode .quotation-preview-modal{max-width:none!important;width:auto!important;max-height:none!important;height:auto!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important;background:#fff!important}body.quotation-print-mode .modal-header,body.quotation-print-mode .quotation-preview-actions{display:none!important}body.quotation-print-mode .modal-body{padding:0!important;overflow:visible!important}body.quotation-print-mode .quotation-preview-sheet-stack{display:block!important}body.quotation-print-mode .quotation-preview-sheet{width:210mm!important;min-height:297mm!important;height:297mm!important;margin:0 auto!important;padding:12mm 11mm!important;box-sizing:border-box!important;transform:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:#fff!important;display:flex!important;flex-direction:column!important;break-after:page;page-break-after:always}body.quotation-print-mode .quotation-preview-sheet-body{flex:1!important;min-height:0!important;height:auto!important;display:flex!important;flex-direction:column!important;gap:14px!important}body.quotation-print-mode .quotation-preview-measurement{display:none!important}body.quotation-print-mode .quotation-preview-sheet:last-child{break-after:auto;page-break-after:auto}body.quotation-print-mode .quotation-preview-page-break{display:none!important}}.confirmation-modal-option-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}.quotation-email-form{display:flex;flex-direction:column;gap:14px}.quotation-email-contact-list{display:grid;gap:8px;max-height:180px;overflow-y:auto;padding:10px 12px;border:1px solid #d1d5db;border-radius:10px;background:#fff}.quotation-email-contact-option{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:flex-start;gap:10px;padding:10px 12px;border:1px solid #e5edf1;border-radius:10px;background:#fbfdfe;color:#113946}.quotation-email-contact-check{display:inline-flex;align-items:flex-start;justify-content:center;width:fit-content;padding-top:2px}.quotation-email-contact-option input{width:auto!important;min-width:0!important;margin:0;padding:0;flex:0 0 auto;accent-color:#113946}.quotation-email-contact-copy{display:flex;flex-direction:column;gap:2px;min-width:0}.quotation-email-contact-copy strong{font-size:13px}.quotation-email-contact-copy span{color:#5f6b76;word-break:break-word}.quotation-email-attachment{padding:10px 12px;border:1px solid #d1d5db;border-radius:10px;background:#f8fafc}.quotation-email-actions{justify-content:flex-end}.sales-invoice-summary-cards{grid-template-columns:repeat(4,minmax(0,1fr))}.sales-invoice-toolbar{display:flex;justify-content:flex-end;margin:16px 0 12px}.checkbox-inline{display:inline-flex;align-items:center;gap:8px;color:#113946}.status-badge{display:inline-flex;align-items:center;justify-content:center;padding:5px 10px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap}.status-badge.pending{background:#e5e7eb;color:#4b5563}.status-badge.active_draft{background:#dbeafe;color:#1d4ed8}.status-badge.issued{background:#fef3c7;color:#b45309}.status-badge.paid{background:#dcfce7;color:#166534}.status-badge.deleted{background:#fee2e2;color:#b91c1c}.equipment-grouped-select{width:100%;font-size:13.5px}.equipment-grouped-select optgroup{font-weight:700;color:#113946;font-style:normal}.equipment-grouped-select option{font-weight:400;color:#374151;padding-left:4px}.equipment-tree-card{padding:24px;border:1px solid #dbe5ea;background:linear-gradient(180deg,#eef5f7e6,#fff 220px),#fff}.equipment-tree-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}.equipment-tree-toolbar h3{margin:0 0 6px;color:#113946}.equipment-tree-toolbar p{margin:0;color:#5f6b76;max-width:620px}.equipment-tree-empty{padding:20px;border:1px dashed #c7d7df;border-radius:14px;background:#fbfdfe;color:#667085;text-align:center}.equipment-tree-list,.equipment-tree-node{display:flex;flex-direction:column;gap:10px}.equipment-tree-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;border:1px solid #d9e4e9;border-radius:14px;background:#fff}.equipment-tree-row.is-group{background:linear-gradient(180deg,#f9fbfc,#fff)}.equipment-tree-row.is-leaf{border-left:4px solid #113946}.equipment-tree-main{display:flex;align-items:center;gap:12px;min-width:0;flex:1}.equipment-tree-copy{display:flex;flex-direction:column;gap:3px;min-width:0}.equipment-tree-name{font-weight:600;color:#113946}.equipment-code-prefix{font-family:ui-monospace,Cascadia Code,Consolas,monospace;font-weight:700;color:#5f6b76}.equipment-tree-spacer,.equipment-toggle-button{width:36px;min-width:36px;height:36px}.equipment-tree-spacer{display:inline-block}.equipment-tree-children{margin-left:28px;padding-left:18px;border-left:1px solid #dbe5ea;display:flex;flex-direction:column;gap:10px}.spec-group-box{border:1px solid #dbe5ea;border-radius:6px;overflow:hidden;display:flex;flex-direction:column}.equipment-tree-row.is-spec{border:none;border-radius:0;background:transparent}.spec-group-header{background:#f0f4f6;padding:4px 12px;font-size:11px;font-weight:700;letter-spacing:.05em;color:#5f6b76;text-transform:uppercase;border-bottom:1px solid #dbe5ea}.equipment-tree-form{display:flex;flex-direction:column;gap:16px}.equipment-tree-form-actions{justify-content:flex-end}.equipment-tree-icon{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px}.equipment-tree-icon svg{width:16px;height:16px}@media (max-width: 900px){.equipment-tree-toolbar,.equipment-tree-row{flex-direction:column;align-items:stretch}.equipment-tree-children{margin-left:12px;padding-left:12px}}.copy-spec-subtitle{margin:-4px 0 4px;font-size:13px;color:#6b7280}.copy-spec-toolbar{display:flex;justify-content:flex-end;margin-bottom:4px}.copy-spec-group{border:1px solid #dbe5ea;border-radius:6px;overflow:hidden;display:flex;flex-direction:column}.copy-spec-group-header{background:#f0f4f6;padding:4px 12px;font-size:11px;font-weight:700;letter-spacing:.05em;color:#5f6b76;text-transform:uppercase;border-bottom:1px solid #dbe5ea}.copy-spec-item{display:flex;align-items:center;gap:10px;padding:6px 12px;font-size:13px;cursor:pointer;border-bottom:1px solid #f0f4f6}.copy-spec-item:last-child{border-bottom:none}.copy-spec-item:hover{background:#f8fafc}.copy-spec-item input[type=checkbox]{width:15px;height:15px;flex-shrink:0;cursor:pointer}.spec-unassigned{color:#9ca3af;font-style:italic}.bd-modal-subtitle{margin:-8px 0 12px;font-size:13px;color:#6b7280}.bd-required{color:#e53e3e}.bd-modal-form{display:flex;flex-direction:column;gap:0}.bd-form-section{padding:14px 0;border-bottom:1px solid #e9f0f3}.bd-form-section:last-of-type{border-bottom:none}.bd-form-section-title{margin:0 0 10px;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:#6b7280}.bd-form-3col{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.bd-catalogue-badge{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;background:#dff0f4;border:1px solid #a8d5e0;border-radius:20px;font-size:13px;color:#113946;max-width:100%;overflow:hidden}.bd-catalogue-badge span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bd-catalogue-badge-dismiss{flex-shrink:0;background:none;border:none;cursor:pointer;font-size:15px;line-height:1;color:#4a8fa0;padding:0}.bd-catalogue-badge-dismiss:hover{color:#113946}.bd-form-footer{display:flex;justify-content:flex-end;gap:10px;padding-top:14px}.bd-attachment-area{display:flex;flex-direction:column;gap:8px}.bd-drop-zone{display:flex;align-items:center;justify-content:center;min-height:64px;padding:12px;border:2px dashed #cbd5e0;border-radius:6px;background:#f7fafc;cursor:pointer;transition:border-color .15s,background .15s;-webkit-user-select:none;user-select:none}.bd-drop-zone:hover,.bd-drop-zone--active{border-color:#4299e1;background:#ebf8ff}.bd-drop-zone-hint{font-size:13px;color:#718096;pointer-events:none}.bd-units-error{font-size:12px;color:#e53e3e}.payslip-preview-header-separator{height:1.5px;margin:10px 0 12px;background:#1a1a1a;border-radius:0}.payslip-preview-doc-title{font-size:15px;font-weight:700;color:#000;margin:0 0 8px;letter-spacing:.04em;text-transform:uppercase}.payslip-preview-meta-grid{display:grid;grid-template-columns:1fr 1fr;column-gap:20px;row-gap:0}.payslip-preview-meta-row{display:flex;gap:0;padding:1.5px 0;font-size:9.5px;color:#000}.payslip-preview-meta-label{min-width:88px;font-weight:700;flex-shrink:0}.payslip-preview-meta-sep{width:12px;text-align:center;flex-shrink:0}.payslip-preview-meta-val{flex:1;word-break:break-word}.payslip-preview-income-grid{display:grid;grid-template-columns:1fr 1px 1fr;gap:0 14px}.payslip-preview-col-divider-v{background:#c8d5db;width:1px;align-self:stretch}.payslip-preview-income-col{display:flex;flex-direction:column}.payslip-preview-col-header{font-size:10px;font-weight:700;color:#000;letter-spacing:.04em;text-transform:uppercase;padding-bottom:5px;border-bottom:1.5px solid #1a1a1a;margin-bottom:5px}.payslip-preview-line{display:flex;justify-content:space-between;gap:8px;padding:2.5px 0;font-size:9.5px}.payslip-preview-line-label{color:#333;flex:1}.payslip-preview-line-value{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap;color:#000}.payslip-preview-col-spacer{flex:1;min-height:8px}.payslip-preview-col-total-divider{height:1px;background:#aaa;margin:3px 0}.payslip-preview-col-total{display:flex;justify-content:space-between;gap:8px;padding:3px 0 2px;font-size:9.5px;font-weight:700;color:#000;font-variant-numeric:tabular-nums}.payslip-preview-takehome{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:7px 10px;border:1.5px solid #1a1a1a;border-radius:3px}.payslip-preview-takehome-label{font-size:10px;font-weight:700;color:#000}.payslip-preview-takehome-value{font-size:11px;font-weight:700;color:#000;font-variant-numeric:tabular-nums;white-space:nowrap}.payslip-preview-bank{margin:5px 0 0;font-size:9px;color:#444}.payslip-preview-overtime-rate{margin:0 0 6px;font-size:9.5px;color:#333}.payslip-preview-table{width:100%;border-collapse:collapse;font-size:9.5px;line-height:1.35}.payslip-preview-table th,.payslip-preview-table td{padding:5px 7px;border:1px solid #d7e1e6;vertical-align:top;text-align:left}.payslip-preview-table th{background:#eee;font-weight:700;text-align:center;vertical-align:middle;border-bottom-color:#c9d5dc;color:#000}.payslip-preview-table tbody tr:nth-child(2n){background:#fbfdfe}.payslip-preview-cell-right{text-align:right!important;font-variant-numeric:tabular-nums}.payslip-preview-cell-center{text-align:center!important}.payslip-preview-sig{margin-top:auto;padding-top:12px}.payslip-preview-sig p{margin:0;font-size:9px;color:#555;font-style:italic;line-height:1.5}.payslip-preview-sig-label{font-size:9.5px!important;font-weight:700;color:#000!important;font-style:normal!important;margin-bottom:1px!important}.payslip-preview-sig-brand{font-size:9.5px!important;font-weight:700!important;color:#000!important;font-style:normal!important;margin-top:4px!important}.payslip-preview-proof-img{display:block;width:100%;max-height:220mm;object-fit:contain;object-position:top center}.payroll-modal-subtitle{margin:-4px 0 16px;font-size:14px;color:#6b7280}.payroll-form-section{margin-bottom:20px}.payroll-form-section-label{display:block;font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#9ca3af;margin-bottom:10px}.finance-form-grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.employment-type-badge-wrap{display:flex;align-items:center;min-height:38px}.employment-type-badge{display:inline-block;padding:4px 12px;border-radius:999px;font-size:13px;font-weight:500;line-height:1.5}.employment-type-badge.badge-weekly{background:#eff6ff;color:#1d4ed8;border:1px solid #bfdbfe}.employment-type-badge.badge-daily{background:#f0fdf4;color:#15803d;border:1px solid #bbf7d0}.field-hint{display:block;font-size:12px;color:#9ca3af;margin-top:4px}.label-optional{font-size:13px;font-weight:400;color:#9ca3af}.payroll-entry-summary-cards{grid-template-columns:repeat(4,minmax(0,1fr))}.finance-summary-card--success{background:linear-gradient(180deg,#f0fdf4,#dcfce7);border-color:#86efac}.finance-summary-card--success span{color:#166534}.finance-summary-card--success strong{color:#15803d}.payroll-modal-footer{border-top:1px solid #e5e7eb;padding-top:16px;margin-top:8px}.perm-matrix{border:1px solid #e5e7eb;border-radius:10px;overflow:hidden;margin-top:16px}.perm-matrix-header{padding:12px 14px;background:#f9fafb;border-bottom:1px solid #e5e7eb}.perm-matrix-note{margin:6px 0 0;font-size:13px;color:#6b7280}.perm-matrix-body{display:flex;flex-direction:column;gap:0}.perm-section{border-bottom:1px solid #e5e7eb;padding:10px 14px}.perm-section:last-child{border-bottom:none}.perm-section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.perm-section-name{font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:#6b7280}.perm-section-controls{display:flex;gap:6px}.perm-section-row{display:flex;align-items:center;gap:10px;padding:10px 14px;border-bottom:1px solid #f3f4f6;cursor:pointer;-webkit-user-select:none;user-select:none;font-size:14px}.perm-section-row:last-child{border-bottom:none}.perm-section-row:hover{background:#f9fafb}.perm-section-row input[type=checkbox]{width:16px;height:16px;cursor:pointer;flex-shrink:0;accent-color:#113946}.perm-section-row-label{font-weight:500;color:#1f2937}
