/* RTGEO — leitura analítica do estoque */
.share-list {
  display: grid;
  gap: 2px;
  padding: 0 8px 9px;
}

.share-item {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 5px 4px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #334963;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.share-item:hover { background: #f3f6fa; }
.share-item.is-selected { background: #eaf0f7; box-shadow: inset 0 0 0 1px #c5d4e5; }
.share-rank { color: #8b98aa; font-size: 9px; font-weight: 900; text-align: center; }
.share-body { min-width: 0; }
.share-info { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #42556f; font-size: 10.5px; }
.share-info > span { display: flex; align-items: center; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-info b { color: #1f3d67; font-variant-numeric: tabular-nums; }
.share-dot { display: inline-block; flex: none; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; }
.share-bar-bg { display: block; height: 4px; margin-top: 4px; overflow: hidden; border-radius: 999px; background: #e9eef4; }
.share-bar-fill { display: block; height: 100%; border-radius: inherit; }
.share-count { color: #75849a; font-size: 9.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.market-inline-empty { margin: 8px; color: #7d8999; font-size: 10.5px; }

.neighborhood-table { width: 100%; border-collapse: collapse; font-size: 9.5px; }
.neighborhood-table th { position: sticky; top: 0; z-index: 1; padding: 6px 7px; background: #f5f7fa; color: #7a899d; text-align: left; font-size: 8px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.neighborhood-table td { padding: 6px 7px; border-top: 1px solid #edf1f5; color: #52657e; white-space: nowrap; font-variant-numeric: tabular-nums; }
.neighborhood-table td:first-child { max-width: 140px; overflow: hidden; color: #2d466a; text-overflow: ellipsis; }
.neighborhood-table tbody tr { cursor: pointer; }
.neighborhood-table tbody tr:hover { background: #f5f8fb; }
.neighborhood-table tbody tr.is-selected { background: #eaf0f7; }
.market-table-empty { height: 60px; color: #7b899b !important; text-align: center; }

/* Aba detalhada */
.market-analysis-view { display: none; box-sizing: border-box; height: 100%; overflow: auto; padding: 2px 2px 18px; }
.market-workspace[data-market-view="analysis"] .market-content { display: block; }
.market-workspace[data-market-view="analysis"] .market-map-stage,
.market-workspace[data-market-view="analysis"] .market-insights,
.market-workspace[data-market-view="analysis"] .market-list-panel { display: none; }
.market-workspace[data-market-view="analysis"] .market-analysis-view { display: block; }

.market-analysis-header { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding: 2px 2px 13px; }
.market-analysis-header h2 { margin: 3px 0 4px; color: #18355f; font-size: clamp(18px, 1.45vw, 23px); letter-spacing: -.025em; }
.market-analysis-header p { max-width: 70ch; margin: 0; color: #60728b; font-size: 11.5px; line-height: 1.45; }
.analysis-scope { display: grid; grid-template-columns: auto auto; align-items: center; gap: 2px 7px; min-width: 160px; padding: 9px 11px; border: 1px solid #d8e1eb; border-radius: 10px; background: #fff; color: #8290a3; font-size: 9.5px; }
.analysis-scope-dot { grid-row: span 2; width: 7px; height: 7px; border-radius: 50%; background: #26a25c; box-shadow: 0 0 0 3px rgba(38, 162, 92, .12); }
.analysis-scope strong { color: #23477c; font-size: 11px; }
.analysis-label { display: block; color: #cdd9e8; font-size: 8px; font-weight: 900; letter-spacing: .08em; }

.analysis-overview { display: grid; grid-template-columns: minmax(160px, .7fr) minmax(330px, 1.5fr) minmax(210px, .9fr); min-height: 106px; margin-bottom: 12px; overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 7px 22px rgba(24, 53, 95, .07); }
.analysis-total-block { display: grid; align-content: center; gap: 4px; padding: 16px; background: #23477c; color: #dbe6f3; }
.analysis-total-block strong { color: #fff; font-size: clamp(27px, 2.4vw, 39px); line-height: .95; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.analysis-total-block > span:last-child { color: #cad9e9; font-size: 10px; }
.analysis-overview-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: #e2e8ef; }
.analysis-overview-facts div { display: grid; align-content: center; gap: 4px; padding: 10px 13px; background: #fff; }
.analysis-overview-facts span { color: #75849a; font-size: 9.5px; }
.analysis-overview-facts strong { overflow: hidden; color: #18355f; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.analysis-reading { display: grid; align-content: center; gap: 4px; padding: 14px 16px; background: #f3f7fb; }
.analysis-reading .analysis-label { color: #7990aa; }
.analysis-reading strong { color: #23477c; font-size: 13px; line-height: 1.15; }
.analysis-reading p { margin: 0; color: #687b93; font-size: 10px; line-height: 1.35; }

.analysis-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(330px, .88fr); gap: 12px; }
.analysis-panel { min-width: 0; overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 6px 20px rgba(24, 53, 95, .07); }
.analysis-wide-panel { grid-column: 1 / -1; }
.analysis-panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding: 13px 14px 10px; }
.analysis-panel-heading h3 { margin: 0; color: #213d68; font-size: 13px; }
.analysis-panel-heading p { margin: 3px 0 0; color: #8290a3; font-size: 9.5px; }
.analysis-panel-heading .market-panel-mark { flex: none; }

.analysis-bars { display: grid; gap: 11px; padding: 5px 14px 17px; }
.analysis-bar-row { display: grid; grid-template-columns: minmax(105px, 1fr) minmax(120px, 2fr) 66px; align-items: center; gap: 9px; }
.analysis-bar-label { overflow: hidden; color: #50647e; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.analysis-bar-track { height: 8px; overflow: hidden; border-radius: 999px; background: #e9eef4; }
.analysis-bar-fill { display: block; height: 100%; min-width: 2px; border-radius: inherit; background: #2d659e; }
.analysis-bar-value { color: #294d7d; font-size: 10px; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.analysis-bar-value small { color: #8390a2; font-size: 9px; font-weight: 600; }

.analysis-mix-panel { padding-bottom: 12px; }
.analysis-mix-section { padding: 0 14px 10px; }
.analysis-mix-section + .analysis-mix-section { padding-top: 2px; border-top: 1px solid #edf1f5; }
.analysis-subtitle { display: block; margin: 0 0 6px; color: #7a899d; font-size: 8.5px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.analysis-mix-bars { display: grid; gap: 6px; }
.analysis-mix-row { display: grid; grid-template-columns: minmax(72px, 1fr) minmax(70px, 1.7fr) 52px; align-items: center; gap: 7px; }
.analysis-mix-row span:first-child { overflow: hidden; color: #52657e; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.analysis-mix-row .analysis-bar-track { height: 6px; }
.analysis-mix-row strong { color: #294d7d; font-size: 9.5px; text-align: right; font-variant-numeric: tabular-nums; }
.analysis-room-list { display: flex; flex-wrap: wrap; gap: 5px; }
.analysis-room-pill { display: inline-flex; align-items: baseline; gap: 4px; padding: 4px 7px; border: 1px solid #d9e3ed; border-radius: 7px; color: #536985; font-size: 9.5px; }
.analysis-room-pill strong { color: #23477c; font-size: 10px; }

.analysis-table-scroll { overflow: auto; max-height: 312px; border-top: 1px solid #edf1f5; }
.analysis-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 10.5px; }
.analysis-table th { position: sticky; top: 0; z-index: 1; padding: 8px 10px; border-bottom: 1px solid #dce4ee; background: #f5f7fa; color: #718096; text-align: left; font-size: 8.5px; letter-spacing: .045em; text-transform: uppercase; white-space: nowrap; }
.analysis-table th:first-child { min-width: 230px; }
.analysis-table th:nth-child(2) { min-width: 72px; text-align: right; }
.analysis-table th:nth-child(3) { min-width: 135px; text-align: right; }
.analysis-table td { height: 37px; box-sizing: border-box; padding: 7px 10px; border-bottom: 1px solid #edf1f5; color: #52657e; vertical-align: middle; white-space: nowrap; font-variant-numeric: tabular-nums; }
.analysis-table tbody tr:nth-child(even) { background: #fbfcfd; }
.analysis-table tbody tr:hover { background: #eef4fa; }
.analysis-table td:not(:first-child) { text-align: right; }
.analysis-table td:first-child { max-width: 250px; overflow: hidden; text-overflow: ellipsis; }
.analysis-table td strong { color: #263f65; }
.analysis-table-number strong { font-size: 11px; }
.analysis-table-name { width: 31%; }
.analysis-entity-cell { display: flex; min-width: 0; align-items: center; gap: 8px; }
.analysis-rank { display: grid; flex: 0 0 25px; width: 25px; height: 23px; place-items: center; box-sizing: border-box; border: 1px solid #d8e3ef; border-radius: 7px; background: #f3f6fa; color: #6b7d94; font-size: 9px; font-weight: 900; font-variant-numeric: tabular-nums; }
.analysis-table tbody tr:first-child .analysis-rank { border-color: #23477c; background: #23477c; color: #fff; }
.analysis-entity-cell .analysis-link { min-width: 0; flex: 1; }
.analysis-table-share { display: flex; min-width: 112px; align-items: center; justify-content: flex-end; gap: 8px; }
.analysis-table-share > span:first-child { min-width: 40px; color: #3e5d7f; font-size: 10px; font-weight: 700; text-align: right; }
.analysis-table-share-track { display: block; width: 58px; height: 5px; overflow: hidden; border-radius: 999px; background: #e7edf4; }
.analysis-table-share-fill { display: block; height: 100%; min-width: 2px; border-radius: inherit; background: #3c76a9; }
.analysis-table-price { color: #2f557f !important; font-weight: 700; }
.analysis-link { max-width: 250px; overflow: hidden; padding: 0; border: 0; background: transparent; color: #23477c; cursor: pointer; font: 700 10.5px/1.2 inherit; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.analysis-link:hover { text-decoration: underline; text-underline-offset: 2px; }
.analysis-empty { padding: 22px 14px; color: #7d8999; font-size: 10.5px; text-align: center; }

@media (max-width: 1080px) {
  .analysis-overview { grid-template-columns: minmax(145px, .65fr) minmax(280px, 1.35fr); }
  .analysis-reading { grid-column: 1 / -1; min-height: 62px; }
}

@media (max-width: 860px) {
  .market-analysis-header { align-items: start; flex-direction: column; }
  .analysis-scope { width: 100%; box-sizing: border-box; }
  .analysis-overview { grid-template-columns: 1fr 1fr; }
  .analysis-total-block { grid-row: span 2; }
  .analysis-reading { grid-column: 1 / -1; }
  .analysis-grid { grid-template-columns: 1fr; }
  .analysis-wide-panel { grid-column: auto; }
}

@media (max-width: 560px) {
  .neighborhood-table th:nth-child(n + 4), .neighborhood-table td:nth-child(n + 4) { display: none; }
  .market-analysis-view { padding-inline: 0; }
  .analysis-overview { grid-template-columns: 1fr 1fr; }
  .analysis-total-block { grid-column: 1 / -1; grid-row: auto; min-height: 92px; }
  .analysis-overview-facts { grid-column: 1 / -1; }
  .analysis-reading { grid-column: 1 / -1; }
  .analysis-overview-facts strong { font-size: 13px; }
  .analysis-bar-row { grid-template-columns: 92px minmax(60px, 1fr) 56px; gap: 6px; }
  .analysis-bar-label { font-size: 9.5px; }
  .analysis-table { min-width: 0; table-layout: fixed; }
  .analysis-table th:nth-child(n + 4), .analysis-table td:nth-child(n + 4) { display: none; }
  .analysis-table th:first-child { min-width: 0; }
  .analysis-table th:nth-child(2) { min-width: 56px; }
  .analysis-table th:nth-child(3) { min-width: 112px; }
  .analysis-table td:first-child { max-width: none; }
  .analysis-table-name { width: auto; }
  .analysis-table-share { min-width: 0; gap: 5px; }
  .analysis-table-share > span:first-child { min-width: 34px; }
  .analysis-table-share-track { width: 42px; }
}
