/*
 * House blueprint editor: the displays page chrome (../displays/page.css) plus
 * the tool bar, floor tabs and the receipt / checks / rooms panel. The drafting
 * sheet's own look is shared/blueprint-sheet.css (the house editor uses it too).
 */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bp__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: 18px; align-items: start; margin-bottom: 30px; }
.bp__main { min-width: 0; }
.bp__bar, .bp__floors { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.bp__bar { justify-content: space-between; }
.bp__tools, .bp__actions { display: flex; flex-wrap: wrap; gap: 6px; }
.bp .tool { min-height: 40px; padding: 6px 12px 6px 8px; font-size: 13px; }
.bp .tool[aria-checked='true'] { background: var(--dark-navy); color: #fff; box-shadow: none; }
.bp .tool[aria-checked='true'] kbd { background: var(--primary-yellow); }
.bp .tool:disabled { opacity: 0.45; cursor: not-allowed; }
.bp__ftabs { display: flex; gap: 4px; }
.ftab { min-height: 40px; padding: 6px 14px; border: 0; border-radius: 10px 10px 0 0; cursor: pointer; background: #CFE0F2; color: #1A3E6E; font: 700 13px/1 var(--body-font); letter-spacing: 0.5px; text-transform: uppercase; }
.ftab[aria-selected='true'] { background: #1D4E89; color: #fff; }
.ftab:focus-visible { outline: 3px solid var(--primary-color); outline-offset: 2px; }

.bp__help { margin: 8px 0 14px; font-size: 13px; color: var(--badge-color); }

/* ---------- preview ---------- */
.bp__viewer { display: block; padding: 10px; margin-top: 4px; }
.bp__viewer .stage { aspect-ratio: 16 / 9; }

/* ---------- side panel ---------- */
.bp__panel { display: grid; gap: 12px; position: sticky; top: 72px; }
.panel { padding: 16px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 2px rgba(38, 52, 69, 0.1); }
.panel h2 { margin: 0 0 8px; font: 400 20px/1.1 var(--heading-font); color: var(--dark-navy); }
.balance { margin: 0 0 8px; font-size: 13px; color: var(--badge-color); }
.balance b { color: var(--dark-navy); font-size: 15px; }
.receipt, .checks, .rooms { margin: 0; padding: 0; list-style: none; }
.receipt li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dashed rgba(38, 52, 69, 0.15); font-size: 13px; }
.receipt small { display: block; color: var(--badge-color); }
.receipt b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.receipt .refund { color: #1E6B45; }
.receipt .total { border-bottom: 0; padding-top: 8px; font-size: 15px; }
.receipt .empty, .rooms .empty { color: var(--badge-color); border: 0; }
.pay { width: 100%; min-height: 46px; margin-top: 12px; border: 0; border-radius: 999px; cursor: pointer; background: var(--primary-color); color: #fff; font: 700 15px/1.2 var(--body-font); }
.pay:disabled { background: #C9CED6; cursor: not-allowed; }
.pay:focus-visible, .discard:focus-visible { outline: 3px solid var(--dark-navy); outline-offset: 3px; }
.discard { width: 100%; justify-content: center; margin-top: 6px; }
.check { padding: 7px 9px; margin-bottom: 6px; border-radius: 8px; font-size: 13px; line-height: 1.45; }
.check b { margin-right: 4px; }
.check--error { background: #FFE2DC; color: #8E1B22; }
.check--warn { background: #FFF1C9; color: #6B4A00; }
.check--ok { background: #E3F5EC; color: #1E6B45; }
.rooms li { display: grid; grid-template-columns: 1fr auto; gap: 6px; padding: 8px 0; border-bottom: 1px dashed rgba(38, 52, 69, 0.15); }
.rooms input, .rooms select { width: 100%; min-height: 34px; padding: 4px 8px; border: 2px solid rgba(38, 52, 69, 0.15); border-radius: 8px; font: 500 13px/1.2 var(--body-font); background: #fff; color: var(--dark-navy); }
.rooms label:nth-of-type(n + 2) { grid-column: span 1; }
.rooms .area { align-self: center; font: 700 13px/1 var(--body-font); color: var(--secondary-color); }

@media (max-width: 960px) {
  .bp__layout { grid-template-columns: 1fr; }
  .bp__panel { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  .ftab, .pay { transition: none; }
}
