/* v0.9.77: sales hierarchy and full-width room structure; no global UI shrink. */
.sales77-house-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0;padding:0 16px 12px;min-width:0}
.sales77-house-controls>button{font:600 12px/1.4 "Segoe UI",Arial,sans-serif;padding:7px 11px;border:1px solid #d8dfe5;border-radius:6px;background:#fff;color:#6c501b;cursor:pointer;white-space:normal}
.sales77-house-controls>span{font-size:11px;color:#717b87;line-height:1.5}
.sales77-house-controls>button:focus-visible,[data-sales77-toggle]:focus-visible{outline:2px solid #b67a12;outline-offset:2px}
.sales77-label{display:flex;align-items:center;gap:2px;min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.4;text-align:left}
.sales77-label small{font-size:10px;color:#7e8892;font-weight:400;white-space:nowrap}
.sales77-level-2{padding-left:20px}.sales77-level-3{padding-left:58px}
.sales77-label>button{flex:0 0 24px}
.sales77-parent td{font-weight:600}
.sales-analytics-plan-table .sales77-house td,.sales-html-plan-table .sales77-house td{background:#f7f9fb!important;font-weight:400}
.sales-analytics-plan-table .sales77-house:hover td,.sales-html-plan-table .sales77-house:hover td{background:#fff8e7!important}
.sales-analytics-plan-table .sales77-house .sales-analytics-sticky-name,.sales-html-plan-table .sales77-house .sales-html-sticky{background:#f7f9fb!important;white-space:normal}
.sales77-house:hover .sales-analytics-sticky-name,.sales77-house:hover .sales-html-sticky{background:#fff8e7!important}
/* Both panels use available width, including when the browser sidebar is open. */
#salesHtml .sales-html-structure-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;min-width:0;width:100%}
#salesHtml .sales-html-structure-grid>div{min-width:0;max-width:100%}
#salesHtml .sales-html-structure-grid>div+div{padding-top:14px;border-top:1px solid #e0e4e8}
#salesHtml .sales-html-structure-title{align-items:flex-start;flex-wrap:wrap;line-height:1.4}
#salesHtml .sales-html-structure-title strong{min-width:0;overflow-wrap:anywhere}
#salesHtml .sales-html-structure .table{min-width:0;table-layout:auto}
#salesHtml .sales-html-structure .table th{white-space:normal;min-width:0}
#salesHtml .sales-html-structure .table td:nth-child(2){white-space:normal;overflow-wrap:anywhere;min-width:100px}
#salesHtml .sales-html-structure .btn{white-space:normal}
@media(max-width:780px){#salesHtml .sales-html-structure .table{min-width:650px}.sales77-level-3{padding-left:42px}.sales77-level-2{padding-left:12px}}
@media print{.sales77-house-controls{display:none!important}#salesHtml .sales-html-structure-grid{grid-template-columns:minmax(0,1fr)!important}#salesHtml .sales-html-structure .table{min-width:0!important}.sales77-label button{visibility:hidden}.sales77-house{break-inside:avoid}}

/* v0.9.92: solely presentation of actual saved-house RNV phases. */
.sales92-rnv-toggle{display:inline-flex;gap:7px;align-items:center;font-size:12px;font-weight:600;color:#425365;cursor:pointer}
.sales92-rnv-toggle input{width:15px;height:15px;min-height:0;margin:0;accent-color:#aa7713}
.sales92-legend{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:0 16px 14px;font-size:12px;color:#556171}
.sales92-legend[hidden]{display:none}.sales92-legend>span{display:flex;align-items:center;gap:5px}.sales92-legend small{font-size:11px;color:#667586}
.sales92-key{display:inline-block;width:17px;height:13px;border:1px solid #d4dddf;border-radius:3px}.sales92-key.before{background:#e6f1fb}.sales92-key.after{background:#e5f4eb}.sales92-key.mixed{background:linear-gradient(135deg,#e6f1fb 48%,#e5f4eb 52%)}.sales92-key.unknown{background:#eeeef1}
.sales-analytics-plan-table .sales77-house td.sales92-rnv-before,.sales-html-plan-table .sales77-house td.sales92-rnv-before{background:#e6f1fb!important;box-shadow:inset 0 -2px #6299bc}
.sales-analytics-plan-table .sales77-house td.sales92-rnv-after,.sales-html-plan-table .sales77-house td.sales92-rnv-after{background:#e5f4eb!important;box-shadow:inset 0 -2px #6fa586}
.sales-analytics-plan-table .sales77-house td.sales92-rnv-mixed,.sales-html-plan-table .sales77-house td.sales92-rnv-mixed{background:linear-gradient(135deg,#e6f1fb 48%,#e5f4eb 52%)!important;box-shadow:inset 0 -2px #b29e4c}
.sales-analytics-plan-table .sales77-house td.sales92-rnv-unknown,.sales-html-plan-table .sales77-house td.sales92-rnv-unknown{background:#eeeef1!important}.sales92-unknown-mark{color:#687383;margin-left:3px;font-size:10px}

/* v0.9.114: saved commercial lot register, shared by program and standalone report. */
.commercial114-register{margin:8px 16px 18px;border:1px solid #d9e1e7;border-radius:10px;min-width:0;overflow:hidden;background:#fff;color:#273747}
.commercial114-register summary{display:flex;flex-wrap:wrap;gap:8px 18px;align-items:center;cursor:pointer;list-style-position:inside;line-height:1.5;overflow-wrap:anywhere}
.commercial114-register>summary{padding:14px 16px;background:#f3f6f9}.commercial114-register summary>span{font-size:12px;color:#5d6d7b}.commercial114-register summary>strong,.commercial114-register summary>b{flex:1;min-width:150px;font-size:13px}
.commercial114-register-body{padding:16px;min-width:0}.commercial114-register-body>p{font-size:12px;line-height:1.6;margin:0 0 12px}.commercial114-register-body h4{font-size:13px;margin:16px 0 4px}.commercial114-register-check{background:#eef8f1;border-left:3px solid #84b595;padding:10px}.commercial114-register-check.invalid{background:#fff0e9;border-color:#cb7c60;color:#993d29}
.commercial114-register-chart{width:100%;height:auto;display:block;max-width:100%;min-width:0}.commercial114-register-chart text{font:11px "Segoe UI",Arial,sans-serif;fill:#63717e}.commercial114-register-legend{display:flex;flex-wrap:wrap;gap:9px 18px;font-size:12px;line-height:1.5;margin:6px 0 20px}.commercial114-register-legend span{display:flex;align-items:center;gap:6px;overflow-wrap:anywhere;max-width:100%}.commercial114-register-legend i{width:12px;height:12px;flex:0 0 12px;border-radius:3px}
.commercial114-register-subtype{border:1px solid #dce3e9;border-radius:8px;margin-top:10px;min-width:0}.commercial114-register-subtype>summary{padding:12px;background:#f8fafc}.commercial114-register-house{margin:10px 12px;border-top:1px solid #e2e7eb;padding:10px 0 0;min-width:0}.commercial114-register-house>summary{padding:2px 0 10px}.commercial114-register-table{max-width:100%;min-width:0}.commercial114-register-table table{width:100%;min-width:0!important;border-collapse:collapse;table-layout:fixed;font-size:12px}.commercial114-register-table th,.commercial114-register-table td{padding:9px 7px;white-space:normal!important;overflow-wrap:anywhere;vertical-align:top;border-bottom:1px solid #e5e9ed;text-align:right!important;background:#fff}.commercial114-register-table th:first-child,.commercial114-register-table td:first-child{text-align:left!important}.commercial114-register-table th{font-size:11px;font-weight:600;background:#f7f9fb}.commercial114-register-total th{background:#edf3f7;font-size:12px}.commercial114-register summary:focus-visible{outline:2px solid #b17813;outline-offset:-2px}
@media(max-width:850px){.commercial114-register{margin:8px 8px 14px}.commercial114-register-body{padding:12px}.commercial114-register summary>span{flex-basis:100%}.commercial114-register-house{margin:8px}.commercial114-register-table table{font-size:11px}.commercial114-register-table td,.commercial114-register-table th{padding:7px 4px}}
@media print{.commercial114-register{break-inside:auto}.commercial114-register-chart{max-height:220px}.commercial114-register-house{break-inside:avoid}}

.commercial114-register-precision{padding:10px 12px;color:#77521b;background:#fff9eb;border-left:3px solid #d3ad64;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
