/* Imóveis pricing (18 Oct 2026): PriceLabs base price column, selection + bulk "Preço base", channel portal buttons.
   Scoped to the new classes; theme tokens (--rm-*) so the RM and VJ themes both apply. */

/* ---- Channel portal buttons (page intro) ---- */
body.rm-admin .channel-portals { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-left: auto; }
body.rm-admin .channel-portal { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid var(--rm-line); border-radius: 999px; color: var(--rm-heading); background: #fff; font: inherit; font-size: 12.5px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
body.rm-admin .channel-portal:hover { border-color: var(--rm-secondary); background: #f6f7fa; }
body.rm-admin .channel-portal:focus-visible { outline: 2px solid var(--rm-primary); outline-offset: 2px; }
body.rm-admin .channel-portal.is-unset { color: var(--rm-secondary); border-style: dashed; }
body.rm-admin .channel-portal .brand-logo, body.rm-admin .channel-portal .property-ota-logo, body.rm-admin .channel-portal .calendar-channel-logo { display: inline-block; width: 18px; height: 18px; margin: 0; flex: none; }
body.rm-admin .channel-portal-mark.is-booking { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 4px; color: #fff; background: #003580; font-size: 10px; font-weight: 800; line-height: 1; }
body.rm-admin .channel-portal-edit { width: 34px; min-width: 34px; height: 34px; }

/* ---- Selection + bulk bar (toolbar) ---- */
body.rm-admin .toolbar.toolbar-search-only:has(.property-bulk:not(.hidden)) { flex-wrap: wrap; gap: 10px; }
body.rm-admin .property-bulk { display: flex; flex: 1 1 520px; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
body.rm-admin .property-bulk.hidden { display: none; }
body.rm-admin .pms-bulk-groups, body.rm-admin .pms-bulk-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
body.rm-admin .pms-bulk-chip { height: 32px; padding: 0 12px; border: 1px solid var(--rm-line); border-radius: 999px; color: var(--rm-heading); background: #fff; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
body.rm-admin .pms-bulk-chip small { color: var(--rm-secondary); font-weight: 500; }
body.rm-admin .pms-bulk-chip.is-active { border-color: var(--rm-primary); color: #fff; background: var(--rm-primary); }
body.rm-admin .pms-bulk-chip.is-active small { color: rgba(255, 255, 255, .8); }
body.rm-admin .pms-bulk-count { color: var(--rm-secondary); font-size: 12.5px; }
body.rm-admin .pms-property-table .pms-col-select { width: 36px; }
body.rm-admin .pms-property-table .pms-col-price { width: 112px; }
body.rm-admin .pms-property-table th.pms-prop-select, body.rm-admin .pms-property-table td.pms-prop-select { padding-inline: 8px 0; text-align: center; }
body.rm-admin .pms-prop-check { display: inline-grid; place-items: center; width: 28px; height: 28px; margin: 0; cursor: pointer; }
body.rm-admin .pms-prop-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--rm-primary); cursor: pointer; }
body.rm-admin .pms-prop-check input:disabled { cursor: not-allowed; opacity: .35; }
body.rm-admin .pms-prop-price { line-height: 1.15; }
body.rm-admin .pms-prop-price small { display: block; color: var(--rm-secondary); font-size: 10.5px; font-weight: 500; }
body.rm-admin .pms-prop-price .pms-prop-price-off { color: var(--rm-warning); font-weight: 600; }
body.rm-admin .pms-prop-price-empty { color: var(--rm-secondary); }

/* ---- Dialogs (built on .calendar-info-dialog) ---- */
body.rm-admin .base-price-dialog { width: min(460px, calc(100vw - 28px)); max-height: min(86vh, 640px); overflow: auto; }
body.rm-admin .base-price-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
body.rm-admin .base-price-head small { color: var(--rm-secondary); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
body.rm-admin .base-price-head h2 { margin: 2px 0 4px; color: var(--rm-heading); font-size: 1.2rem; }
body.rm-admin .base-price-head p { margin: 0; color: var(--rm-secondary); font-size: 12.5px; }
body.rm-admin .base-price-dialog .field { display: grid; gap: 4px; margin-bottom: 10px; font-size: 12.5px; color: var(--rm-secondary); }
body.rm-admin .base-price-dialog .field input { box-sizing: border-box; width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--rm-line); border-radius: 10px; color: var(--rm-heading); background: #fff; font: inherit; font-size: 15px; }
body.rm-admin .base-price-check { display: flex; align-items: center; gap: 8px; margin: 2px 0 12px; color: var(--rm-heading); font-size: 13px; cursor: pointer; }
body.rm-admin .base-price-check input { width: 16px; height: 16px; accent-color: var(--rm-primary); }
body.rm-admin .base-price-preview { display: grid; gap: 4px; max-height: 260px; margin: 0 0 10px; padding: 0; overflow: auto; list-style: none; }
body.rm-admin .base-price-preview li { display: grid; grid-template-columns: 64px 1fr; gap: 0 10px; padding: 6px 8px; border-radius: 8px; background: #f6f7fa; font-size: 12.5px; font-variant-numeric: tabular-nums; }
body.rm-admin .base-price-preview li strong { grid-row: span 2; align-self: center; color: var(--rm-heading); }
body.rm-admin .base-price-preview li small { color: var(--rm-secondary); }
body.rm-admin .base-price-preview li.is-blocked { background: #fdecea; }
body.rm-admin .base-price-preview li.is-blocked small { color: #b3261e; }
body.rm-admin .base-price-error { min-height: 1em; margin: 0 0 8px; color: #b3261e; font-size: 12.5px; }
body.rm-admin .base-price-error:empty { display: none; }
body.rm-admin .base-price-actions { display: flex; justify-content: flex-end; gap: 8px; }
body.rm-admin .channel-portals-fields { display: grid; gap: 2px; }

/* ---- Phones: selection checkbox on the left of the card, price and Airbnb link on the third line ---- */
@media (max-width: 780px) {
  body.rm-admin .channel-portals { width: 100%; margin-left: 0; }
  body.rm-admin .property-bulk { flex-basis: 100%; }
  body.rm-admin .pms-property-table tbody tr { grid-template-columns: auto minmax(0, 1fr) auto auto auto auto;
    grid-template-areas: "sel unit unit unit status edit" "sel stay stay code occupancy adr" "sel price price links links links"; }
  body.rm-admin .pms-property-table td.pms-prop-select { grid-area: sel; padding: 0; }
  body.rm-admin .pms-property-table td.pms-prop-price { grid-area: price; text-align: left; }
  body.rm-admin .pms-prop-price small { display: inline; margin-left: 6px; }
}

/* PB-bulk-one-line (owner, 19 Oct 2026): price groups, count and "Preco base" on one line to the right of the search. */
@media (min-width: 900px) {
  body.rm-admin .toolbar.toolbar-search-only:has(.property-bulk:not(.hidden)) { flex-wrap: nowrap; }
  body.rm-admin .property-bulk { flex: 0 1 auto; flex-wrap: nowrap; justify-content: flex-end; }
  body.rm-admin .pms-bulk-groups, body.rm-admin .pms-bulk-actions { flex-wrap: nowrap; }
  body.rm-admin .pms-bulk-chip, body.rm-admin .pms-bulk-count, body.rm-admin .pms-bulk-actions .button { white-space: nowrap; }
}
