.history-toolbar { grid-template-columns: minmax(180px,1fr) minmax(145px,26%); }
.history-status { min-height: 33px; padding: 8px 2px; color:var(--muted); font-size: 13px; }
.history-status.error { color: #923b27; }
#history-map { height:clamp(360px,56vh,620px); background:#e4ece5; border-radius:0 0 11px 11px; overflow:hidden; }
.history-table { max-height:clamp(360px,56vh,620px); overflow: auto; }
.history-table th, .history-table td { padding:8px 9px; }
.history-table th { line-height:1.2; }
.history-table tr.selected { background:#e8f3ea; }
.history-table td:first-child { min-width:100px; }
.history-score { font-weight:750; color:var(--teal); }
.history-legend { display:flex; flex-wrap:wrap; gap: 4px 8px; max-width:calc(100% - 22px); }
.history-legend span { margin-right:4px; }
.history-legend i { font-style:normal; white-space:nowrap; }
.history-evidence { margin-top: 14px; }
.history-evidence a { text-decoration:none; }
.beach-stays-toolbar { grid-template-columns: repeat(2,minmax(0,1fr)); margin: 0 14px; }
#beach-stays-status { padding: 8px 14px; margin: 0; }
#reservas-por-praia th, #reservas-por-praia td { text-align: left; }
#beach-stays-rows td:nth-child(2) { white-space: normal; min-width: 140px; }
.beach-stays-context { padding: 14px; font-size: 13px; }
.beach-stays-context summary { cursor: pointer; color: var(--teal); font-weight: 700; }
.beach-stays-context li + li { margin-top: 6px; }
.plot-wrap { display:grid; grid-template-columns:28px 1fr; grid-template-rows:240px auto; padding:8px 35px 16px 3px; font-size:12px; color:var(--muted); }
.plot-y-label { writing-mode:vertical-rl; transform:rotate(180deg); justify-self:center; align-self:center; }
.history-plot { position:relative; margin-left:38px; margin-bottom:15px; border:solid #9bb0a7; border-width:0 0 1px 1px; }
.plot-x-label { grid-column:2; justify-self:center; padding-top:6px; }
.plot-line { position:absolute; pointer-events:none; }
.plot-line.horizontal { left:0; right:0; border-top:1px solid #e5ede6; }
.plot-line.vertical { bottom:0; top:0; border-left:1px solid #e5ede6; }
.plot-line span { position:absolute; font-variant-numeric:tabular-nums; white-space:nowrap; }
.plot-line.horizontal span { right:calc(100% + 6px); top:0; transform:translateY(-50%); }
.plot-line.vertical span { top:calc(100% + 4px); left:0; transform:translateX(-50%); }
.plot-point { position:absolute; z-index:1; width:14px; height:14px; padding:0; border:2px solid white; border-radius:50%; transform:translate(-50%,50%); box-shadow:0 0 0 1px #536c635e; }
.plot-point.selected, .plot-point:hover { z-index:2; width:19px; height:19px; box-shadow:0 0 0 1.5px #203a32; }
@media (max-width: 540px) {
  .history-toolbar, .beach-stays-toolbar { grid-template-columns:1fr; }
  .history-table th,.history-table td { padding: 7px 5px; font-size:11px; }
  .history-table td:first-child { min-width: 86px; }
  .plot-wrap { padding-right:22px; grid-template-rows:190px auto; }
}
.history-table-wrap { overflow-x: auto; }
.history-no-data td { color: var(--muted); }
