:root{--line:#e2e8f0;--ink:#0f172a;--ink-muted:#64748b}.form-banner{margin:0 0 14px;padding:10px 12px;border-radius:12px;font-size:13px;font-weight:650}.form-banner.error{background:#fff1f2;border:1px solid #fecdd3;color:#be123c}.form-banner.success{background:#ecfdf5;border:1px solid #a7f3d0;color:#047857}.form-banner.info{background:#eff6ff;border:1px solid #bfdbfe;color:#1d4ed8}.form-banner.warn{background:#fff7ed;border:1px solid #fed7aa;color:#9a3412}.form-field{display:grid;gap:6px;min-width:0}.form-field>span{font-size:12px;font-weight:700;color:#475569}.form-field input,.form-field select,.form-field textarea{width:100%;min-height:44px;border-radius:12px;border:1px solid var(--line);background:#fff;padding:10px 12px;color:var(--ink);font:inherit}.form-field textarea{min-height:86px;resize:vertical}.form-field input[type=date]{display:block;line-height:1.25;color-scheme:light}.form-field input[type=date]::-webkit-calendar-picker-indicator{cursor:pointer;opacity:.85}.quote-builder-form{display:grid;gap:12px}.btn-primary{width:100%;border:0;border-radius:14px;min-height:46px;padding:0 16px;cursor:pointer;background:#198754;color:#fff;font-weight:700}.btn-primary:disabled{opacity:.65;cursor:wait}.discount-badge{background:#e7f8ef;color:#198754;font-size:12px;font-weight:700;padding:4px 10px;border-radius:12px}.final-amount-box{margin-top:4px;padding:14px;border-radius:14px;background:linear-gradient(135deg,#198754,#16a34a);color:#fff;display:flex;justify-content:space-between;align-items:center}.final-amount-box strong{font-size:18px}.quo-back-link{display:inline-block;margin-bottom:6px;font-size:12px;font-weight:700;color:#0f766e;text-decoration:none}.quo-workspace{max-width:none;margin:0;padding-bottom:16px}.quo-header-wrap{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px;flex-wrap:wrap}.quo-page-title{margin:6px 0 4px;font-size:20px;font-weight:700;color:#1f2937}.quo-page-subtitle{margin:0;color:#6b7280;font-size:13px}.quo-badge-row{display:flex;flex-wrap:wrap;gap:8px}.quo-badge{background:#e7f8ef;color:#198754;border-radius:999px;padding:5px 10px;font-size:12px;font-weight:600}.quo-badge.tone-indigo{background:#eef2ff;color:#4338ca}.quo-badge.tone-amber{background:#fff7ed;color:#c2410c}.quo-badge.tone-teal{background:#ccfbf1;color:#0f766e}.quo-step-head{justify-content:space-between;margin:26px 0 8px}.quo-step-head,.quo-step-head-left{display:flex;align-items:center;gap:10px}.quo-step-num{width:26px;height:26px;border-radius:50%;background:#198754;color:#fff;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center}.quo-step-title{font-size:15px;font-weight:700;color:#1f2937}.quo-step-hint{font-size:12px;color:#6b7280;margin:0 0 10px 36px}.quo-step-count{background:#eef2ff;color:#4338ca;border-radius:999px;padding:4px 10px;font-size:12px;font-weight:600}.quo-step-locked{background:#f8fafc;border:1px dashed #e5e7eb;border-radius:18px;padding:18px;text-align:center;color:#6b7280;font-size:13px}.quo-danger-zone{margin-top:20px;padding:16px;border:1px solid #fecaca;border-radius:16px;background:#fef2f2}.quo-danger-zone-title{font-size:14px;font-weight:800;color:#b91c1c;margin-bottom:6px}.quo-danger-zone p{font-size:12px;color:#6b7280;margin:0 0 12px}.quo-section-divider{height:1px;background:#eef2f6;margin:12px 0 4px}.quo-card-shell{background:#fff;border:1px solid #edf0f5;border-radius:18px;box-shadow:0 8px 24px rgba(17,24,39,.06);padding:16px;margin-bottom:14px}.quo-item-card{border-radius:14px;padding:14px;margin-bottom:12px;background:#fff;border:1px solid #edf0f5;box-shadow:0 4px 14px rgba(17,24,39,.05)}.quo-item-header{display:flex;justify-content:space-between;gap:10px;font-weight:600}.quo-item-group-title{font-size:14px;font-weight:700}.quo-item-header-actions{display:flex;gap:10px;flex-shrink:0}.quo-item-edit{color:#0d6efd;font-weight:600;font-size:12px;text-decoration:none}.quo-item-delete{border:0;background:transparent;color:#dc3545;font-weight:600;font-size:12px;cursor:pointer}.quo-item-desc{font-size:12px;color:#6b7280;margin-top:6px}.quo-item-desc.rg-rich-html p{margin:0 0 .25em}.quo-item-desc.rg-rich-html ol,.quo-item-desc.rg-rich-html ul{margin:.15em 0;padding-left:1.1em}.quo-item-row-block{margin-top:10px;padding-top:10px;border-top:1px dashed #e5e7eb}.quo-item-row-room{font-size:12px;font-weight:600;color:#374151}.quo-item-row-details{margin-top:8px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.quo-item-row-chip{background:#f8fafc;border:1px solid #e5e7eb;border-radius:8px;padding:8px;font-size:11px;color:#64748b}.quo-item-row-chip strong{display:block;margin-top:2px;font-size:12px;color:#111827}.quo-item-group-total{margin-top:12px;padding-top:10px;border-top:1px solid #e5e7eb;display:flex;justify-content:space-between;font-size:13px;font-weight:700}.quo-add-item{text-align:center;margin-top:22px;padding:14px;border-radius:18px;border:2px dashed #198754;color:#198754;font-weight:600;background:#f1fff7;text-decoration:none;display:block}.quo-discount-card{background:#fff;border-radius:18px;padding:16px;margin-top:14px;border:1px solid #edf0f5;box-shadow:0 8px 22px rgba(17,24,39,.06)}.quo-discount-title{font-size:15px;font-weight:600;margin-bottom:14px;display:flex;justify-content:space-between;align-items:center}.quo-payment-terms-toggle{cursor:pointer;width:100%;border:1px solid #e5e7eb;background:#fff;border-radius:14px;padding:12px 14px;margin:26px 0 10px;font:inherit;text-align:left;display:flex;align-items:center;gap:10px}.quo-payment-terms-toggle.is-open{border-color:#0f766e}.quo-step-toggle-chevron{margin-left:auto;color:#64748b}.quo-payment-terms-toggle.is-open .quo-step-toggle-chevron{transform:rotate(180deg);color:#0f766e}.gen-quote-page{max-width:1100px;margin:0 auto;padding:0}.gen-quote-head{background:#fff;border:1px solid #edf0f5;border-radius:14px;padding:12px;margin-bottom:12px;box-shadow:0 6px 18px rgba(17,24,39,.05)}.gen-quote-head h2{margin:0;font-size:24px;font-weight:700}.gen-quote-head p{margin:4px 0 0;font-size:13px;color:#6b7280}.quick-quote-card{border:1px solid #edf0f5;padding:20px;margin-bottom:18px}.card-quote,.quick-quote-card{background:#fff;border-radius:14px;box-shadow:0 6px 18px rgba(17,24,39,.06)}.card-quote{border:1px solid #edf0f5;height:100%}.badge-item{background:#fd7e14;color:#fff;font-size:11px;padding:3px 8px;border-radius:6px;margin:0 4px 4px 0;display:inline-block}.badge-type{background:#cff4fc;color:#055160;font-weight:650}.badge-service,.badge-type{font-size:11px;padding:4px 10px;border-radius:6px;display:inline-block}.badge-service{background:#0d6efd;color:#fff;margin:0 5px 5px 0}.quote-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.card-quote-body{padding:12px;display:flex;flex-direction:column;height:100%}.card-title{font-weight:700;font-size:1rem;margin:0 0 8px;color:#111827}.card-subtitle{font-size:.9rem;color:#475569;margin:0 0 8px}.quote-meta-text{font-size:13px;color:#334155;margin:0 0 12px;line-height:1.5}.quote-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:10px}@media (min-width:520px){.quote-meta{grid-template-columns:repeat(4,minmax(0,1fr))}}.quote-meta .meta-card{border:1px solid #e7edf4;border-radius:10px;padding:8px;background:#f8fafc}.quote-meta .meta-label{font-size:11px;color:#6b7280}.quote-meta .meta-value{font-size:13px;font-weight:600;color:#111827}.quote-btn-stack{display:grid;gap:8px;margin-top:8px}.quote-btn{display:block;width:100%;border:0;border-radius:8px;min-height:38px;padding:8px 12px;font-size:13px;font-weight:650;text-align:center;text-decoration:none;cursor:pointer;line-height:1.25}.quote-btn.compact,.quote-btn.inline{width:auto;display:inline-block}.quote-btn-info{background:#0dcaf0;color:#055160}.quote-btn-primary{background:#0d6efd;color:#fff}.quote-btn-success{background:#198754;color:#fff}.quote-btn-warning{background:#ffc107;color:#212529}.quote-btn-dark{background:#212529;color:#fff}.quote-btn-danger{background:#dc3545;color:#fff}.quote-btn-muted{background:#f8fafc;border:1px solid #e2e8f0;color:#475569}.quote-btn:disabled{opacity:.55;cursor:not-allowed}.quote-btn-hint{font-size:12px;line-height:1.45;margin:0}.quote-btn-hint.danger{color:#dc3545}.quote-btn-hint.muted{color:#6b7280}.quote-btn-hint.warn{background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;padding:10px 12px;border-radius:10px}.quote-btn-hint.warn.block{display:block;margin-bottom:8px}.quote-modal-backdrop{position:fixed;inset:0;z-index:50;background:rgba(15,23,42,.45);display:flex;align-items:center;justify-content:center;padding:16px 16px max(16px,env(safe-area-inset-bottom));overflow-y:auto;-webkit-overflow-scrolling:touch}.quote-modal{width:min(100%,480px);max-height:min(88dvh,min(90vh,720px));background:#fff;border-radius:14px;box-shadow:0 20px 40px rgba(15,23,42,.18);overflow:hidden;display:flex;flex-direction:column;margin:auto}.quote-modal-header{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #e2e8f0;flex-shrink:0}.quote-modal-header h3{margin:0;font-size:18px;font-weight:700}.quote-modal-close{border:0;background:transparent;font-size:24px;line-height:1;cursor:pointer;color:#64748b}.quote-modal-body{padding:16px;overflow-y:auto;-webkit-overflow-scrolling:touch;flex:1 1 auto;min-height:0}.quote-modal-form{display:grid;gap:12px}.quote-modal>.quote-modal-form{padding:16px;overflow-y:auto;-webkit-overflow-scrolling:touch;flex:1 1 auto;min-height:0}.quote-modal-footer{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}.quote-modal-footer .quote-btn{flex:1 1 auto;min-width:110px;justify-content:center;text-align:center}@media (max-width:768px){.quote-card-grid,.quote-meta{grid-template-columns:1fr}.quote-modal-backdrop{align-items:center;justify-content:center;padding:12px 12px max(12px,env(safe-area-inset-bottom))}.quote-modal,.quote-modal-lg{width:100%;max-height:min(88dvh,700px);border-radius:16px;margin:auto}.company-payment-grid{grid-template-columns:1fr}.company-qr-image{max-width:140px}}.payment-update-wrap{max-width:none;margin:0;padding:0 0 24px}.payment-update-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:16px}.payment-update-head h2{margin:0;font-size:24px;font-weight:700}.payment-update-head p{margin:4px 0 0;font-size:13px;color:#6b7280}.payment-update-card{background:#fff;border:1px solid #edf0f5;border-radius:14px;box-shadow:0 6px 18px rgba(17,24,39,.06);padding:18px;margin-bottom:16px}.payment-section-title{margin:0 0 12px;font-size:18px;font-weight:700}.payment-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.payment-summary-grid small{display:block;font-size:11px;color:#6b7280;margin-bottom:4px}.payment-summary-grid strong{font-size:16px;color:#111827}.payment-term-row{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:14px 0;border-bottom:1px solid #eef2f7}.payment-term-row:last-child{border-bottom:none;padding-bottom:0}.payment-term-label{font-weight:600;color:#111827;margin-bottom:4px}.payment-term-amount{color:#374151;font-size:.95rem}.payment-term-action{min-width:140px;text-align:right}.payment-status-checkbox{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border:2px solid #198754;border-radius:6px;background:#fff;box-sizing:border-box}.payment-status-checkbox.is-paid{background:#198754;border-color:#198754}.payment-status-checkbox.is-paid:after{content:"";width:7px;height:14px;margin-top:-2px;border:solid #fff;border-width:0 3px 3px 0;transform:rotate(45deg)}.payment-term-badge{display:inline-block;font-size:11px;font-weight:700;padding:4px 10px;border-radius:999px}.payment-term-badge.pending{background:#fef3c7;color:#92400e}.payment-term-badge.hold{background:#dbeafe;color:#1e40af}.payment-term-badge.rejected{background:#fee2e2;color:#991b1b}.payment-term-badge.muted{background:#f3f4f6;color:#4b5563}.payment-accounts-note{margin-top:6px;padding:8px 10px;border-radius:8px;font-size:12px}.payment-accounts-note.is-hold{background:#eff6ff;border:1px solid #bfdbfe;color:#1e40af}.payment-accounts-note.is-rejected{background:#fef2f2;border:1px solid #fecaca;color:#991b1b}.payment-terms-edit-hint{font-size:13px;color:#6b7280;margin:0 0 12px}.payment-terms-edit-form{display:grid;gap:12px}.payment-terms-edit-rows{display:grid;gap:10px}.payment-terms-edit-row{display:grid;grid-template-columns:1.5fr .7fr .9fr auto;gap:10px;align-items:end;padding:12px;border:1px solid #eef2f7;border-radius:12px;background:#f8fafc}.payment-terms-edit-row.is-locked{background:#f3f4f6}.payment-terms-edit-milestone{position:relative}.payment-term-status-badge{display:inline-block;margin-top:6px;font-size:10px;font-weight:700;padding:2px 8px;border-radius:999px;background:#198754;color:#fff}.payment-term-status-badge.locked{background:#64748b}.payment-terms-edit-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}.payment-terms-total{font-size:13px}.payment-terms-summary-list{list-style:none;padding:0;margin:0;display:grid;gap:8px}.payment-terms-summary-list li{display:flex;justify-content:space-between;gap:8px;font-size:13px;padding:8px 10px;border-radius:10px;background:#f8fafc}.quote-modal-lg{width:min(100%,720px)}.company-payment-box{padding:12px;border-radius:12px;background:#f8fafc;border:1px solid #e2e8f0}.company-payment-box h6{margin:0 0 10px;font-weight:700}.company-payment-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:12px;font-size:13px}.company-qr-image{max-width:170px;margin-top:8px;border-radius:8px;border:1px solid #dee2e6}.payment-modal-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.payment-modal-fields .form-field:last-child{grid-column:1/-1}@media (max-width:768px){.payment-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.company-payment-grid,.payment-modal-fields,.payment-terms-edit-row{grid-template-columns:1fr}}.qd-page{max-width:none;margin:0;padding:0 0 24px;background:linear-gradient(180deg,#f3f6fb,#f8fafc 120px,#ffffff 220px);min-height:100%}.qd-hero{background:linear-gradient(135deg,#0f766e,#147a4a);color:#fff;border-radius:16px;padding:18px 16px;margin-bottom:14px;box-shadow:0 10px 24px rgba(15,118,110,.22)}.qd-hero-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:12px}.qd-title{margin:0;font-size:20px;font-weight:750;letter-spacing:.2px}.qd-subtitle{margin:4px 0 0;font-size:12px;opacity:.9}.qd-badge{background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.28);color:#fff;border-radius:999px;padding:6px 10px;font-size:11px;font-weight:700;white-space:nowrap}.qd-hero-amount{font-size:30px;font-weight:800;line-height:1.15;word-break:break-word}.qd-hero-amount-label{font-size:12px;opacity:.9;margin-top:4px}.qd-hero-pills{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}.qd-pill{background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.22);border-radius:999px;padding:4px 10px;font-size:11px;font-weight:600}.qd-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:14px}.qd-actions .quote-btn{font-size:13px;font-weight:650;border-radius:10px;padding:10px 12px;text-align:center}.quote-btn-outline-primary{background:#fff;border:1px solid #0d6efd;color:#0d6efd}.quote-btn-outline-success{background:#fff;border:1px solid #198754;color:#198754}.quote-btn-outline-secondary{background:#fff;border:1px solid #6c757d;color:#6c757d}.quote-btn-outline-dark{background:#fff;border:1px solid #212529;color:#212529}.qd-card{background:#fff;border:1px solid #e8eef5;border-radius:14px;box-shadow:0 4px 14px rgba(17,24,39,.04);padding:14px;margin-bottom:12px}.qd-card-title{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:750;color:#0f172a;margin:0 0 12px;padding-bottom:10px;border-bottom:1px solid #eef2f7}.qd-card-title:before{content:"";width:4px;height:16px;border-radius:4px;background:linear-gradient(180deg,#0f766e,#16a34a);flex-shrink:0}.qd-kv{display:grid;grid-template-columns:minmax(110px,40%) 1fr;gap:8px 12px;align-items:start}.qd-kv-row{display:contents}.qd-label{font-size:12px;color:#64748b;font-weight:600;padding-top:1px}.qd-value{font-size:13px;color:#0f172a;font-weight:650;text-align:left;word-break:break-word}.qd-value.muted{color:#94a3b8;font-weight:500}.qd-final-row .qd-label,.qd-final-row .qd-value{color:#047857;font-weight:800;font-size:14px;padding-top:8px;margin-top:4px;border-top:1px dashed #d1fae5}.qd-group{border:1px solid #e8eef5;border-radius:12px;overflow:hidden;margin-bottom:10px;background:#fff}.qd-group-head{background:linear-gradient(90deg,#ecfdf5,#f0fdf4);padding:12px 12px 10px;border-bottom:1px solid #d1fae5}.qd-item-title{font-size:14px;font-weight:750;color:#065f46;margin:0}.qd-item-desc{font-size:11px;color:#64748b;margin-top:4px;line-height:1.4}.qd-item-row{padding:12px;border-top:1px dashed #e5e7eb}.qd-room{font-size:12px;font-weight:700;color:#334155;margin-bottom:8px}.qd-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.qd-chip{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:8px;text-align:center;font-size:11px;color:#64748b}.qd-chip strong{display:block;font-size:13px;color:#0f172a;margin-top:3px;word-break:break-word}.qd-group-total{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;background:#f8fafc;border-top:1px solid #e2e8f0;font-size:13px;font-weight:750;color:#0f172a}.qd-group-total span:last-child{color:#047857}.qd-empty{font-size:13px;color:#64748b;text-align:center;padding:18px 8px;background:#f8fafc;border-radius:10px;border:1px dashed #e2e8f0}.qd-notes{margin-top:8px;font-size:12px;color:#475569;background:#f8fafc;border-radius:8px;padding:8px 10px;line-height:1.45}.quotation-attachment-table{width:100%;margin-top:12px;font-size:12px;border-collapse:collapse}.quotation-attachment-table td,.quotation-attachment-table th{vertical-align:middle;border:1px solid #e5e7eb;padding:8px}.quotation-attachment-thumb{object-fit:cover;display:block}.quotation-attachment-file-icon,.quotation-attachment-thumb{width:64px;height:64px;border-radius:8px;border:1px solid #e5e7eb;background:#f8fafc}.quotation-attachment-file-icon{display:inline-flex;align-items:center;justify-content:center;color:#64748b;font-size:22px}.quotation-attachment-preview-btn{padding:0;border:0;background:transparent;line-height:0;cursor:pointer}.quotation-attachment-modal-image{max-height:70vh;width:auto;max-width:100%;border-radius:8px}@media (max-width:520px){.qd-page{padding:0 0 24px}.qd-actions{grid-template-columns:1fr}.qd-hero-amount{font-size:26px}.qd-kv{grid-template-columns:minmax(100px,38%) 1fr}}@media (min-width:768px){.qd-page{max-width:none;padding:0 0 24px}.qd-meta{grid-template-columns:repeat(3,minmax(0,1fr))}}.quo-workflow-panel{margin-top:16px;padding:14px;border-radius:16px;border:1px solid var(--line);background:#fff}.quo-workflow-banner{margin-bottom:12px;padding:10px 12px;border-radius:12px;font-size:12px;font-weight:650;line-height:1.45}.quo-workflow-banner.warn{background:#fff7ed;border:1px solid #fed7aa;color:#9a3412}.quo-workflow-banner.info{background:#eff6ff;border:1px solid #bfdbfe;color:#1d4ed8}.quo-workflow-banner.success{background:#ecfdf5;border:1px solid #a7f3d0;color:#047857}.quo-workflow-actions,.quo-workflow-form{display:grid;gap:10px}.quo-workflow-btn{display:block;width:100%;border:0;border-radius:14px;min-height:44px;padding:0 16px;font-size:13px;font-weight:700;cursor:pointer;text-decoration:none}.quo-workflow-btn.approval{background:#f59e0b;color:#fff}.quo-workflow-btn.approve{background:#198754;color:#fff}.quo-workflow-btn.customer{background:#0ea5e9;color:#fff}.quo-workflow-btn.muted{background:#f8fafc;border:1px solid var(--line);color:#475569}.quo-workflow-btn:disabled{opacity:.65;cursor:wait}@media (max-width:480px){.quo-step-hint{margin-left:0}.qd-actions,.quo-item-row-details{grid-template-columns:1fr}}.invoice-card{padding:20px}.invoice-head{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}.invoice-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}.invoice-table-wrap{overflow-x:auto}.invoice-table{width:100%;border-collapse:collapse;font-size:13px}.invoice-table td,.invoice-table th{border:1px solid #e2e8f0;padding:8px 10px;text-align:left}.invoice-totals{max-width:320px;margin-left:auto;display:grid;gap:8px;font-size:14px}.invoice-totals>div{display:flex;justify-content:space-between;gap:12px}.invoice-final{border-top:1px solid #cbd5e1;padding-top:8px;font-size:16px}.quote-chat-panel{border:1px solid #e2e8f0;border-radius:16px;overflow:hidden;background:#fff}.quote-chat-messages{max-height:420px;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px;background:#f8fafc}.quote-chat-bubble{max-width:85%;border-radius:14px;padding:10px 12px;font-size:14px;line-height:1.45}.quote-chat-bubble.mine{align-self:flex-end;background:#0f766e;color:#fff}.quote-chat-bubble.theirs{align-self:flex-start;background:#fff;border:1px solid #e2e8f0}.quote-chat-meta{font-size:11px;opacity:.75;margin-bottom:4px}.quote-chat-form{display:grid;grid-template-columns:1fr auto;gap:10px;padding:12px;border-top:1px solid #e2e8f0}.quote-chat-form textarea{width:100%;border:1px solid #cbd5e1;border-radius:12px;padding:10px 12px;resize:vertical}.quo-attachments{margin:12px 0 20px;padding:14px;border:1px dashed #cbd5e1;border-radius:14px;background:#f8fafc}.quo-attachment-list{display:flex;flex-wrap:wrap;gap:10px}.quo-attachment-item{position:relative;display:inline-flex;flex-direction:column;align-items:flex-start;gap:4px}.quo-attachment-item img{width:88px;height:88px;object-fit:cover;border-radius:10px;border:1px solid #e2e8f0}.quo-attachment-delete{position:absolute;top:-6px;right:-6px;margin:0}.quo-attachment-delete-btn{width:22px;height:22px;border:0;border-radius:999px;background:#dc2626;color:#fff;font-size:14px;line-height:1;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 1px 3px rgba(15,23,42,.25)}.quo-attachment-delete-btn:disabled{opacity:.6;cursor:not-allowed}.quo-existing-thumbs{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.quo-existing-thumb{position:relative;width:88px}.quo-existing-thumb img{width:88px;height:88px;object-fit:cover;border-radius:10px;border:1px solid #e2e8f0;display:block}.quo-existing-thumb-lg{width:min(100%,220px)}.quo-existing-thumb-lg img{width:100%;height:160px;object-fit:cover}.quo-existing-thumb-remove{position:absolute;top:-6px;right:-6px;width:22px;height:22px;border:0;border-radius:999px;background:#dc2626;color:#fff;font-size:14px;line-height:1;cursor:pointer}.quo-existing-file{display:flex;align-items:center;gap:8px;margin-top:8px;padding:8px 10px;border:1px solid #e2e8f0;border-radius:10px;background:#fff}.quo-existing-file a{font-size:12px;font-weight:600;color:#0f766e}.quo-existing-file button{margin-left:auto;border:0;border-radius:8px;background:#fee2e2;color:#b91c1c;font-size:11px;font-weight:700;padding:4px 8px;cursor:pointer}@media print{.gen-quote-head,.quo-back-link,.quote-btn{display:none!important}.invoice-card{border:none;box-shadow:none}}.lc-page{background:radial-gradient(circle at top right,#ffffff 0,#f4f7fb 75%);border:1px solid #dfe6ef;border-radius:16px;padding:16px}.lc-title{color:#11253d;font-weight:700}.lc-subtitle{color:#607085;font-size:13px}.lc-search{width:100%;border:1px solid #dfe6ef;border-radius:12px;padding:10px 12px;box-shadow:0 3px 10px rgba(17,37,61,.06);font-size:14px}.lc-list{background:#fff;border:1px solid #dfe6ef;border-radius:14px;overflow:hidden}.lc-item{display:block;text-decoration:none;color:inherit;padding:12px 14px;border-bottom:1px solid #eef2f7}.lc-item:last-child{border-bottom:0}.lc-code{display:inline-block;background:#e9f1ff;color:#0f6bff;border:1px solid #cddfff;border-radius:999px;font-size:12px;font-weight:700;padding:3px 9px}.lc-top{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px}.lc-meta{display:grid;grid-template-columns:90px 1fr;row-gap:3px;column-gap:8px;font-size:13px}.lc-label{color:#607085}.lc-value{color:#11253d;font-weight:600}.lc-empty{padding:20px;color:#607085;text-align:center;background:#fff}.lc-unread{min-width:22px;height:22px;border-radius:999px;background:#00a884;color:#fff;font-size:11px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;padding:0 7px}.lcm-shell{background:#f7fafc;border:1px solid #d9e2ea;border-radius:16px;overflow:hidden;box-shadow:0 12px 28px rgba(10,35,66,.1)}.lcm-topbar{background:linear-gradient(135deg,#0b5f57,#167d73);color:#fff;padding:16px 18px;display:flex;justify-content:space-between;align-items:center;gap:12px}.lcm-title{font-size:18px;font-weight:700}.lcm-sub{color:#d8f2ee;font-size:13px;margin-top:2px}.lcm-back{border-radius:999px;border:1px solid rgba(255,255,255,.55);color:#fff;background:rgba(255,255,255,.12);padding:6px 12px;font-size:12px;text-decoration:none}.lcm-body{padding:18px;display:grid;gap:14px}.lcm-card{display:flex;justify-content:space-between;align-items:center;gap:12px;text-decoration:none;color:inherit;background:#fff;border:1px solid #e3ebf3;border-radius:14px;padding:16px 18px}.lcm-card-title{font-size:16px;font-weight:700;color:#14324d}.lcm-card-sub{font-size:13px;color:#607085}.lcm-badge{min-width:34px;height:34px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:#00a884;color:#fff;font-weight:700;font-size:13px;padding:0 10px}.lcm-badge.is-zero{background:#d9e2ea;color:#5f6f80}.php-chat{--pc-bg:#e8ecf0;--pc-header:#2c3e50;--pc-mine:#dceefb;--pc-other:#ffffff;--pc-accent:#3498db;--pc-sub:#6b7c8f;display:flex;flex-direction:column;background:var(--pc-bg);min-height:calc(100dvh - 8px)}.php-chat.is-fullscreen{position:fixed;inset:0;z-index:40;min-height:100dvh}.php-chat.is-whatsapp{--pc-bg:#efeae2;--pc-header:#0b5f57;--pc-mine:#dcf8c6;--pc-other:#ffffff;--pc-accent:#00a884;border-radius:16px;overflow:hidden;border:1px solid #d9e2ea;min-height:calc(100dvh - 180px);position:relative}.php-chat-header{flex-shrink:0;display:flex;align-items:center;gap:10px;padding:calc(10px + var(--app-safe-top, 0px)) 12px 10px;background:var(--pc-header);color:#ecf0f1}.php-chat-icon-btn{width:36px;height:36px;border:0;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;cursor:pointer;flex-shrink:0}.php-chat-title{font-size:15px;font-weight:700;margin:0;color:#fff}.php-chat-sub{font-size:12px;color:rgba(236,240,241,.82);margin:2px 0 0}.php-chat-search{flex-shrink:0;padding:10px 12px;background:#fff;border-bottom:1px solid #d5dce4}.php-chat-search input{width:100%;border:1px solid #d5dce4;border-radius:20px;padding:8px 14px;font-size:14px}.php-chat-hit{display:block;width:100%;text-align:left;border:0;border-bottom:1px solid #eef2f6;background:#fff;padding:10px 6px;cursor:pointer}.php-chat-messages{flex:1;min-height:0;overflow-y:auto;padding:12px;background-image:radial-gradient(rgba(0,0,0,.03) .6px,transparent 0);background-size:14px 14px}.php-chat-row{margin-bottom:10px;display:flex}.php-chat-row.mine{justify-content:flex-end}.php-chat-row.other{justify-content:flex-start}.php-chat-bubble{max-width:min(82%,560px);border-radius:12px;padding:9px 10px 8px;font-size:13px;box-shadow:0 2px 7px rgba(19,36,58,.08)}.php-chat-bubble.mine{background:var(--pc-mine);color:#1f2d3a}.php-chat-bubble.other{background:var(--pc-other);color:#1f2d3a;border:1px solid #edf2f7}.php-chat-meta{display:flex;gap:6px;align-items:center;font-size:11px;color:var(--pc-sub);margin-bottom:3px}.php-chat-text{white-space:pre-wrap;word-break:break-word}.php-chat .ltc-mention,.php-chat-text .ltc-mention{display:inline!important;font-weight:700!important;border-radius:5px!important;padding:1px 5px!important;margin:0 1px;box-shadow:0 1px 3px rgba(0,0,0,.12);font-size:inherit;line-height:inherit;white-space:nowrap;-webkit-box-decoration-break:clone;box-decoration-break:clone}.ltc-mention-tone-0{background:linear-gradient(135deg,#667eea,#764ba2)!important}.ltc-mention-tone-0,.ltc-mention-tone-1{color:#fff!important;-webkit-text-fill-color:#fff!important}.ltc-mention-tone-1{background:linear-gradient(135deg,#f093fb,#f5576c)!important}.ltc-mention-tone-2{background:linear-gradient(135deg,#4facfe,#00f2fe)!important}.ltc-mention-tone-2,.ltc-mention-tone-3{color:#fff!important;-webkit-text-fill-color:#fff!important}.ltc-mention-tone-3{background:linear-gradient(135deg,#fa709a,#fee140)!important}.ltc-mention-tone-4{background:linear-gradient(135deg,#43e97b,#38f9d7)!important;color:#0f3d32!important;-webkit-text-fill-color:#0f3d32!important}.ltc-mention-me{background:linear-gradient(135deg,#11998e,#38ef7d)!important;color:#fff!important;-webkit-text-fill-color:#fff!important}.php-chat-quote{display:block;width:100%;text-align:left;border:0;border-left:3px solid var(--pc-accent);background:rgba(0,0,0,.04);border-radius:8px;padding:6px 8px;margin-bottom:6px;cursor:pointer}.php-chat-quote-name{display:block;font-size:11px;font-weight:700;color:var(--pc-accent)}.php-chat-quote-text{display:block;font-size:12px;color:var(--pc-sub)}.php-chat-actions{margin-top:6px;display:flex;gap:8px}.php-chat-actions button{border:0;background:transparent;color:var(--pc-accent);font-size:12px;font-weight:600;cursor:pointer;padding:0}.php-chat-composer{flex-shrink:0;background:#f4f6f8;border-top:1px solid #d5dce4;padding:10px 12px calc(10px + env(safe-area-inset-bottom, 0px));overflow:visible;position:relative;z-index:5}.php-chat-reply-preview{display:flex;align-items:center;gap:8px;background:#eef2f6;border-radius:10px;padding:8px 10px;margin-bottom:8px}.php-chat-reply-preview.is-hidden{display:none}.php-chat-composer-row{display:flex;align-items:flex-end;gap:8px}.ltc-input-wrap{flex:1;min-width:0;position:relative;overflow:visible}.ltc-composer-input-shell{position:relative;width:100%;border:1px solid #d5dce4;border-radius:20px;background:#fff;box-shadow:inset 0 1px 2px rgba(44,62,80,.04);overflow:hidden}.ltc-composer-input-shell:focus-within{border-color:#3498db;box-shadow:0 0 0 3px rgba(52,152,219,.15)}.ltc-composer-highlight,.php-chat-composer textarea{width:100%;min-height:38px;max-height:120px;resize:none;padding:9px 14px;font-size:14px;line-height:1.35;font-family:inherit;font-weight:400;letter-spacing:normal;word-spacing:normal;white-space:pre-wrap;word-wrap:break-word;overflow-wrap:break-word;box-sizing:border-box}.ltc-composer-highlight{position:absolute;inset:0;pointer-events:none;overflow-x:hidden;overflow-y:auto;color:#2c3e50;border:0;background:transparent;z-index:0}.ltc-composer-highlight .ltc-mention-compose,.ltc-composer-highlight .ltc-mention-compose-draft{display:inline;font-weight:inherit;background:none!important;box-shadow:none!important;border-radius:0!important;padding:0!important;margin:0;color:#11998e!important;-webkit-text-fill-color:#11998e!important}.ltc-composer-highlight .ltc-mention-compose-draft{color:#0d7a6c!important;-webkit-text-fill-color:#0d7a6c!important}.php-chat-composer textarea{position:relative;z-index:1;display:block;border:0;background-color:transparent!important;color:transparent!important;-webkit-text-fill-color:transparent!important;caret-color:#2c3e50;outline:none;box-shadow:none;overflow-y:auto}.php-chat-composer textarea::placeholder{color:#9aabbc;-webkit-text-fill-color:#9aabbc;opacity:1}.php-chat-send{border:0;border-radius:999px;background:var(--pc-accent);color:#fff;font-weight:700;padding:8px 14px;cursor:pointer}.php-chat-file{display:none}.ltc-mention-picker{position:absolute;left:0;right:0;bottom:calc(100% + 6px);max-height:220px;overflow-y:auto;background:#fff;border:1px solid #d5dce4;border-radius:10px;box-shadow:0 8px 24px rgba(44,62,80,.14);z-index:120;display:none}.ltc-mention-picker.is-open{display:block}.ltc-mention-picker-item{display:flex;flex-direction:column;align-items:flex-start;width:100%;border:0;background:transparent;text-align:left;padding:10px 12px;cursor:pointer;border-bottom:1px solid #eef2f6}.ltc-mention-picker-item:last-child{border-bottom:0}.ltc-mention-picker-item.is-active,.ltc-mention-picker-item:hover{background:linear-gradient(90deg,rgba(102,126,234,.12),rgba(118,75,162,.08));border-left:3px solid #667eea;padding-left:9px}.ltc-mention-picker-name{font-size:13.5px;font-weight:600;color:#2c3e50;line-height:1.25}.ltc-mention-picker-role{font-size:11.5px;font-weight:500;color:#6b7c8f;margin-top:2px}.ltc-mention-picker-empty{padding:12px;font-size:12.5px;color:#6b7c8f;text-align:center}.php-chat-mic-btn{width:38px;height:38px;border:0;border-radius:50%;background:#00a884;color:#fff;font-size:16px;cursor:pointer;flex-shrink:0}.php-chat-mic-btn.is-recording{background:#e11d48}.php-chat-rec-bar,.php-chat-voice-preview{display:flex;align-items:center;gap:10px;margin-top:8px;padding:8px 10px;border-radius:12px;background:#fff;border:1px solid #d5dce4}.php-chat-rec-dot{width:8px;height:8px;border-radius:50%;background:#e11d48;animation:php-chat-pulse 1s ease-in-out infinite}.php-chat-rec-timer{font-size:13px;font-weight:700;color:#2c3e50;font-variant-numeric:tabular-nums}.php-chat-voice-preview audio{flex:1;min-width:0;height:36px}.php-chat-rec-bar button,.php-chat-voice-preview button{border:0;background:#f1f5f9;color:#334155;border-radius:999px;padding:4px 10px;font-size:12px;font-weight:700;cursor:pointer}.php-chat-upload-progress{position:relative;height:22px;margin:6px 0 0;background:#e5e7eb;border-radius:6px;overflow:hidden}.php-chat-upload-progress-bar{position:absolute;inset:0;background:linear-gradient(90deg,#3b82f6,#2563eb);border-radius:6px;transition:width .15s ease}.php-chat-upload-progress-text{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;height:100%;font-size:11px;font-weight:600;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.3)}.php-chat-file-preview{position:relative;display:flex;align-items:center;gap:8px;margin:6px 0 0;padding:6px 8px;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:8px}.php-chat-file-preview-close{position:absolute;top:4px;right:4px;width:20px;height:20px;display:flex;align-items:center;justify-content:center;border:none;background:rgba(0,0,0,.45);color:#fff;border-radius:50%;font-size:11px;cursor:pointer;z-index:1}.php-chat-file-preview-img{max-height:80px;max-width:120px;border-radius:6px;object-fit:cover}.php-chat-file-preview-video{max-height:80px;max-width:160px;border-radius:6px}.php-chat-file-preview-audio{height:32px;max-width:200px}.php-chat-file-preview-doc{font-size:28px;line-height:1}.php-chat-file-preview-name{font-size:11px;color:#475569;word-break:break-all;flex:1;min-width:0}.php-chat-voice-error{margin:6px 0 0;font-size:12px;color:#b91c1c}@keyframes php-chat-pulse{0%,to{opacity:1}50%{opacity:.35}}