/* Sale presentation only: underlying handlers and permissions remain available. */
.quotation-sale-screen #btnLockQuotation,.quotation-sale-screen #btnUnlockQuotation,
.quotation-sale-screen #quotationActionToolbar .btn-group-preset,
.quotation-sale-screen #columnSettingModal button[onclick="applyPreset('operation')"],
.quotation-sale-screen #columnSettingModal button[onclick="applyPreset('all')"],
.quotation-sale-screen .dropdown-menu li:has([onclick^="openChangePersonnelModal"]),
.quotation-sale-screen .dropdown-menu li:has([data-lang-key="hdr_staff_assign"]),
.quotation-sale-screen #qhManagerItem {display:none!important}
.quotation-sale-screen #quotationActionToolbar{border-top:2px solid #3d70d9!important}
.quotation-sale-screen .qh-workspaces{padding-right:9px;border-right:1px solid #e0e6ee;margin-right:2px}
.quotation-sale-screen #sharedQuotationHeaderContainer .qh-row-meta{font-size:11px}
.quotation-sale-screen .quotation-cost-only,
.quotation-sale-screen #quotationActionToolbar button[onclick="showColumnSettingsModal()"],
.quotation-sale-screen #quotationActionToolbar button[onclick="autoFitColumns()"],
.quotation-sale-screen .dropdown-menu li:has([onclick="openFillMissingCostModal()"]),
.quotation-sale-screen #btnQuoteWarnings,
.quotation-sale-screen #addExternalServiceModal .p-2.border.rounded:has(#extSrvCost),
.quotation-sale-screen #priceChangeLogModal .border.rounded:has(#inpLogNewCost),
.quotation-sale-screen #priceChangeLogModal .fw-bold:has(>i.fa-headset),
.quotation-sale-screen #priceChangeLogModal .text-end:has(>#lblLogExpectedTotalCost),
.quotation-sale-screen #priceChangeLogModal .text-end:has(>#lblLogExpectedProfit),
.quotation-sale-screen #priceChangeLogModal .row:has(#inpLogNewOpName),
.quotation-sale-screen #previewTabDate .summary-table-container th:nth-child(2),
.quotation-sale-screen #previewTabDate .summary-table-container td:nth-child(2),
.quotation-sale-screen #previewTabDate .summary-table-container th:nth-child(4),
.quotation-sale-screen #previewTabDate .summary-table-container td:nth-child(4),
.quotation-sale-screen #previewTabDate .summary-table-container th:nth-child(5),
.quotation-sale-screen #previewTabDate .summary-table-container td:nth-child(5),
.quotation-sale-screen #previewTabSupplier th[data-lang-key="preview_col_cost"],
.quotation-sale-screen #tblBuildPriceList th:nth-child(5),
.quotation-sale-screen #tblBuildPriceList td:nth-child(5),
.quotation-sale-screen .qh-item:has(>#lblOperatorName),
.quotation-sale-screen .qh-item:has(>#lblAccountantName),
.quotation-sale-screen #editGeneralInfoModal .col-md-4:has(#editOwnerUserId),
.quotation-sale-screen #editGeneralInfoModal .col-md-4:has(#editOperatorId),
.quotation-sale-screen #editGeneralInfoModal .col-md-4:has(#editAccountantId),
.quotation-sale-screen #editGeneralInfoModal .col-md-4:has(#editManagerId),
.quotation-sale-screen #editGeneralInfoModal .col-12:has(>h6>.fa-users-cog),
.quotation-sale-screen #editGeneralInfoModal .col-md-6:has(#editAgencyOperatorId){display:none!important}
.quotation-sale-screen .tabulator-col[tabulator-field="cost"],.quotation-sale-screen .tabulator-cell[tabulator-field="cost"],
.quotation-sale-screen .tabulator-col[tabulator-field="phanTramVatCost"],.quotation-sale-screen .tabulator-cell[tabulator-field="phanTramVatCost"],
.quotation-sale-screen .tabulator-col[tabulator-field="tienVatCost"],.quotation-sale-screen .tabulator-cell[tabulator-field="tienVatCost"],
.quotation-sale-screen .tabulator-col[tabulator-field="tongTienCost"],.quotation-sale-screen .tabulator-cell[tabulator-field="tongTienCost"],
.quotation-sale-screen .tabulator-col[tabulator-field="loiNhuan"],.quotation-sale-screen .tabulator-cell[tabulator-field="loiNhuan"],
.quotation-sale-screen .tabulator-col[tabulator-field="tiSuatLoiNhuan"],.quotation-sale-screen .tabulator-cell[tabulator-field="tiSuatLoiNhuan"],
.quotation-sale-screen .tabulator-col[tabulator-field="tenDVDieuHanh"],.quotation-sale-screen .tabulator-cell[tabulator-field="tenDVDieuHanh"]{display:none!important}

/* The Sale workspace owns the left navigation; modules retain their own forms. */
.quotation-sale-layout .page-header-bar,
.quotation-sale-layout .quotation-view-dropdown,
.quotation-sale-layout .qh-back-btn,
.quotation-sale-layout .app-status-bar {display:none!important}
.quotation-sale-layout .app-main-layout{height:calc(100dvh - 44px)}
.quotation-sale-layout .app-sidebar-nav{width:196px!important;padding:10px 8px!important}
.quotation-sale-layout .app-content-body{padding:10px!important}
.qs-nav-heading{display:flex;align-items:center;gap:10px;padding:5px 8px 14px;border-bottom:1px solid #e2e8f0;margin-bottom:10px;color:#1e293b}
.qs-nav-heading>i{font-size:20px}.qs-nav-heading strong{display:block;font-size:13px}.qs-nav-heading small{display:block;font-size:10px;color:#64748b;margin-top:2px}
.qs-nav-link,.qs-nav-exit{display:flex;align-items:center;gap:9px;padding:8px 9px;border-radius:5px;text-decoration:none;font-size:12px;color:#475569;line-height:1.4;margin-bottom:2px}
.qs-nav-link i,.qs-nav-exit i{width:16px;text-align:center;flex-shrink:0}
.qs-nav-link:hover,.qs-nav-exit:hover{background:#f1f5f9;color:#1d4ed8}.qs-nav-link.active{background:#e8efff;color:#1d4ed8;font-weight:600;box-shadow:inset 3px 0 #3d70d9}
.qs-nav-link:focus-visible,.qs-nav-exit:focus-visible{outline:2px solid #2563eb;outline-offset:-2px}
.qs-nav-group{font-size:10px;color:#94a3b8;text-transform:uppercase;font-weight:600;letter-spacing:.3px;padding:15px 9px 5px}
.qs-nav-exit{margin-top:18px;border-top:1px solid #e2e8f0;border-radius:0;padding-top:14px}
.quotation-sale-builder .app-content-body{display:flex;flex-direction:column;overflow:auto}
.quotation-sale-builder .app-content-body>div{flex-shrink:0}
.quotation-sale-builder .table-scroll-wrapper{flex:1 1 auto!important;min-height:260px;height:auto;margin-bottom:0;display:flex;flex-direction:column}
.quotation-sale-builder #quotationTableContainer{flex:1 1 auto;min-height:0}
.quotation-sale-builder #cancelledQuotationLines{flex-shrink:0;max-height:150px;overflow:auto}
.quotation-sale-builder #sharedQuotationHeaderContainer{order:-1}
@media(max-width:767px){
 .quotation-sale-layout .app-sidebar-nav{width:158px!important;padding:8px 5px!important}
 .qs-nav-heading{padding:5px 5px 10px;gap:6px}.qs-nav-heading strong{font-size:12px}.qs-nav-heading small{font-size:9px}
 .qs-nav-link,.qs-nav-exit{font-size:11px;padding:8px 6px;gap:6px}
 .quotation-sale-layout .app-content-body{padding:7px!important}
 .quotation-sale-layout .qh-trip{white-space:normal}
}
@media(max-width:480px){
 .quotation-sale-layout .app-main-layout{display:flex;flex-direction:column}
 .quotation-sale-layout .app-sidebar-nav{width:100%!important;height:auto;max-height:180px;flex-shrink:0;border-right:0;border-bottom:1px solid #dee2e6;padding:5px!important}
 .quotation-sale-layout .qs-nav-heading,.quotation-sale-layout .qs-nav-group,.quotation-sale-layout .qs-nav-exit{display:none}
 #quotationSaleNavigation{display:flex;flex-wrap:wrap;gap:2px}
 .qs-nav-link{padding:6px 8px;margin:0;font-size:11px}
 .quotation-sale-layout .app-content-body{min-height:0}
}
