/* Reformas: plantillas de obra y mediciones por estancia */
.rf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.rf-tpl { display: flex; flex-direction: column; gap: 12px; }
.rf-tpl__main { display: flex; gap: 12px; align-items: flex-start; color: inherit; text-decoration: none; flex: 1; }
.rf-tpl__main strong { display: block; font-size: 16px; }
.rf-tpl__desc { display: block; font-size: 13px; margin-top: 2px; }
.rf-tpl__meta { display: block; font-size: 13px; margin-top: 6px; color: var(--gray-500); }
.rf-tpl__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.rf-warn { display: inline-block; font-size: 12px; font-weight: 600; color: #B45309; background: #FEF3C7; border-radius: 999px; padding: 1px 8px; }
.rf-table-wrap { overflow-x: auto; }
.rf-lines td { padding: 8px; }
.rf-lines input, .rf-lines select { width: 100%; min-width: 90px; }
.rf-lines td[data-label="Partida"] input { min-width: 260px; }
.rf-chapter { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--orange-600, #C2410C); background: var(--gray-50); }
.rf-rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.rf-room { display: flex; flex-direction: column; gap: 10px; }
.rf-room__head { display: flex; gap: 8px; align-items: center; }
.rf-room__name { flex: 1; font-weight: 600; }
.rf-dims { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rf-dims label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--gray-500); }
.rf-dims--ops { grid-template-columns: 70px minmax(0, 1fr) 70px minmax(0, 1fr); }
.rf-pair { display: flex; gap: 4px; align-items: center; }
.rf-pair input { min-width: 0; }
.rf-room__res { font-size: 13px; min-height: 18px; }
.rf-totals { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.rf-totals span { display: flex; flex-direction: column; }
.rf-totals small { color: var(--gray-500); font-size: 12px; }
.rf-totals strong { font-size: 18px; }
.rf-totals b { font-weight: inherit; }
.rf-sticky { position: sticky; bottom: 12px; z-index: 5; }
.rf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 720px) {
  .rf-rooms { grid-template-columns: minmax(0, 1fr); }
  .rf-dims--ops { grid-template-columns: 60px minmax(0, 1fr); }
}
