/* Read-only layout adaptation; original actions and validation remain in app.js. */
.familiar-room-modal .room-detail-dialog { width: min(1240px, 96vw); max-height: calc(100dvh - 32px); border-radius: 3px; }
.familiar-room-modal .room-detail-modal-head { padding: 10px 20px; background: #fff; border-bottom: 1px solid #e9e5dc; }
.familiar-room-modal .room-detail-modal-head h2 { font-size: 18px; font-weight: 500; }
.familiar-room-modal .room-detail-modal-head p { font-size: 12px; color: #8b8478; }
.familiar-room-modal .room-detail-modal-body { padding: 0; background: #f5f3ef; }
.familiar-room-card { position: relative; grid-template-columns: minmax(0, 1fr); min-width: 0; max-width: 100%; gap: 0; border: 0 !important; border-radius: 0 !important; padding: 0 !important; background: #fff !important; }
.familiar-room-card > * { min-width: 0; }
.familiar-room-card [hidden] { display: none !important; }
.familiar-room-card > .room-detail-head { align-items: center; min-height: 32px; margin: 0; padding: 5px 20px; border-bottom: 1px solid #ece7df; }
.familiar-room-card > .room-detail-head h3 { display: none; }
.familiar-room-card > .room-detail-head p { margin: 0; color: #8b8171; font-size: 12px; line-height: 1.5; }
.fr-alerts:empty, .fr-original-remainder:empty { display: none; }
.fr-alerts { padding: 10px 22px 0; }
.fr-alerts > * { min-width: 0; margin: 0 0 8px; overflow-wrap: anywhere; }
.fr-top-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-bottom: 1px solid #e9e5dc; }
.fr-information, .fr-controls { min-width: 0; padding: 10px 18px; }
.fr-information { border-right: 1px solid #ece7df; }
.fr-section-title { margin: 0 0 10px; padding-left: 9px; border-left: 3px solid #d5a344; color: #514b42; font-size: 13px; font-weight: 500; line-height: 18px; }
.fr-information .detail-meta { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 0; border: 0; background: transparent; color: #746c60; font-size: 12px; }
.fr-information .detail-meta span { min-width: 0; overflow-wrap: anywhere; }
.fr-controls { display: flex; flex-direction: column; gap: 5px; }
.fr-controls .fr-section-title { margin-bottom: 0; }
.fr-controls :is(.smart-switch-panel, .checkout-group-panel, .transfer-room-form, .pause-room-form, .package-reminder-form, .room-detail-top-actions) { margin: 0; padding: 3px 8px; border: 1px solid #ece7df; border-radius: 3px; background: #faf9f6; }
.fr-controls .room-detail-top-actions:empty { display: none; }
.fr-controls .room-detail-top-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.fr-controls .room-detail-top-actions small { flex: 1 1 180px; margin: 0; font-size: 11px; line-height: 1.5; }
.fr-controls .smart-switch-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding-block: 5px; }
.fr-controls .smart-switch-panel > div:first-child { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 1px 8px; min-width: 0; }
.fr-controls .smart-switch-panel strong { font-size: 12px; line-height: 1.4; }
.fr-controls .smart-switch-panel span { font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.fr-controls .smart-switch-panel small { grid-column: 1 / -1; font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.fr-controls .smart-switch-actions { display: flex; flex-wrap: nowrap; gap: 5px; }
.fr-controls .smart-switch-actions button { padding-inline: 9px; }
.fr-controls :is(button, select, input) { min-height: 28px; width: auto; min-width: 0; padding: 4px 8px; font-size: 12px; border-radius: 3px; }
.fr-controls button:not(.danger) { background: #fff; color: #8d6c31; border: 1px solid #daceb6; box-shadow: none; }
.fr-controls button:disabled { opacity: .5; cursor: not-allowed; }
.fr-controls :is(.transfer-room-form, .pause-room-form, .package-reminder-form) { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; min-width: 0; }
.fr-controls :is(.transfer-room-form, .pause-room-form, .package-reminder-form) > button { flex: 0 0 auto; width: auto; min-width: 0; }
.fr-controls .transfer-room-form > select { flex: 1 1 0; width: auto; min-width: 0; }
.fr-controls .pause-room-form > select { flex: 0 1 96px; width: auto; min-width: 0; }
.fr-controls :is(.pause-status, .package-reminder-form > span) { flex: 1 1 0; min-width: 0; margin: 0; font-size: 11px; font-weight: 400; line-height: 1.4; overflow-wrap: anywhere; }
.fr-controls .checkout-group-panel > summary { font-size: 12px; line-height: 24px; }
.fr-controls .checkout-group-panel :is(small, label) { margin: 4px 0; font-size: 11px; line-height: 1.4; }
.fr-reservation-tools, .fr-service-tools { border: 1px solid #e6dfd2; border-radius: 3px; background: #fff; }
.fr-reservation-tools > summary, .fr-service-tools > summary { cursor: pointer; padding: 6px 10px; color: #8c6930; font-size: 12px; line-height: 18px; }
.fr-reservation-tools .reservation-schedule { padding: 10px 12px; border-top: 1px solid #eee8dc; }
.fr-original-remainder { padding: 0 22px; }
.fr-legacy-order-section { margin: 0 !important; padding: 0 !important; border: 0 !important; }
.fr-legacy-order-section > .room-actions { margin: 0; padding: 0; }
.fr-consumption { padding: 0 22px 18px; background: #fff; }
.fr-tabs { display: flex; gap: 24px; min-height: 42px; align-items: stretch; border-bottom: 1px solid #e4dfd5; }
.fr-tabs .fr-tab { margin: 0; padding: 10px 5px 8px; min-height: 42px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: #777064; font-size: 13px; font-weight: 400; box-shadow: none; }
.fr-tabs .fr-tab.active { color: #ab8037; border-bottom-color: #cba04c; }
.fr-tab-panel { min-width: 0; min-height: 150px; padding-top: 8px; }
.fr-order-table-wrap { width: 100%; min-width: 0; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.fr-order-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.fr-order-table th { padding: 11px 14px; text-align: left; background: #f5f1e9; color: #7b6f5c; border-bottom: 1px solid #e6dfd2; font-weight: 400; }
.fr-order-table td { padding: 14px; color: #645e53; border-bottom: 1px solid #efebe4; }
.fr-order-table td:first-child { min-width: 160px; color: #4b453b; }
.fr-fineprint, .fr-empty { color: #8b8377; line-height: 1.7; font-size: 12px; }
.fr-empty { padding: 28px 12px; text-align: center; }
.fr-fees .room-detail-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 16px; }
.fr-storage { padding: 24px 8px; color: #8b8377; }
.fr-storage h4 { margin: 0 0 12px; color: #76694f; font-size: 14px; }
.fr-footer { position: sticky; bottom: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding: 13px 22px; border-top: 1px solid #ddd5c5; background: rgba(255,255,255,.98); box-shadow: 0 -4px 18px #51402b0a; }
.fr-total { min-width: 170px; }
.fr-total > div { display: flex; align-items: baseline; gap: 16px; color: #7a6f5f; }
.fr-total strong { color: #b65c37; font-size: 27px; font-weight: 500; }
.fr-total-note { display: block; margin-top: 3px; color: #9a8b77; font-size: 11px; }
.fr-footer-actions { display: flex; min-width: 0; max-width: 100%; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.fr-footer-actions button { min-width: 0; max-width: 100%; min-height: 42px; padding: 10px 23px; border: 0; border-radius: 3px; color: #fff; font-size: 14px; font-weight: 400; white-space: normal; overflow-wrap: anywhere; box-shadow: none; }
.fr-footer-actions .fr-add-consumption { background: #65a849; }
.fr-footer-actions .fr-precheckout { background: #398ec6; }
.fr-footer-actions .fr-checkout { background: #d45c4e; }
.fr-consumption-overlay { position: fixed; inset: 0; z-index: 110; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(35,31,25,.44); }
.fr-consumption-dialog { display: grid; grid-template-rows: auto auto minmax(0,1fr) auto; width: min(1180px, 96vw); max-height: calc(100dvh - 48px); overflow: hidden; border: 1px solid #cfc7b8; border-radius: 3px; background: #fff; box-shadow: 0 18px 70px #18150f45; }
.fr-consumption-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 21px; border-bottom: 1px solid #eae4d9; }
.fr-consumption-head h3 { margin: 0; font-size: 17px; font-weight: 500; color: #5b5142; }
.fr-consumption-head .fr-close-consumption { width: 32px; min-height: 32px; padding: 0; border: 0; background: transparent; color: #8b8377; font-size: 27px; box-shadow: none; }
.fr-immediate-note { margin: 0; padding: 10px 21px; border-bottom: 1px solid #eee5d6; background: #fff9eb; color: #8c6c31; font-size: 12px; line-height: 1.7; }
.fr-consumption-body { overflow-y: auto; min-height: 0; padding: 14px 18px; }
.fr-consumption-body .room-product-picker { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: 0; border: 1px solid #e3dccf; border-radius: 3px; background: #fff; }
.fr-consumption-body :is(.room-product-left, .room-product-right) { min-width: 0; padding: 14px; background: #fff; }
.fr-consumption-body .room-product-right { display: flex; flex-direction: column; gap: 0; }
.fr-consumption-body .room-product-right > :is(.room-product-right-head, .fr-selected-heading) { flex: 0 0 auto; }
.fr-consumption-body .room-product-right > .fr-selected-heading { min-height: 36px; }
.fr-consumption-body .room-product-left { border-right: 1px solid #e7e0d3; }
.fr-consumption-body .room-product-tabs button { border-radius: 3px; color: #916d30; border-color: #e2d6bd; background: #fbf7ed; }
.fr-consumption-body .room-product-filters { display: grid; grid-template-columns: minmax(90px,.6fr) minmax(140px,1fr); gap: 9px; }
.fr-consumption-body :is(input, select) { min-width: 0; border: 1px solid #dcd5c7; border-radius: 3px; font-size: 13px; }
.fr-consumption-body .room-product-list { max-height: 340px; overflow-y: auto; }
.fr-consumption-body .room-product-row { border: 0; border-bottom: 1px solid #ede8de; border-radius: 0; padding: 12px 0; background: #fff; box-shadow: none; }
.fr-consumption-body .room-product-row-actions button { background: #66a64b; border-radius: 3px; font-size: 12px; }
.fr-consumption-body .room-product-row-actions input { width: 58px; }
.fr-consumption-body .room-product-right-head { padding-bottom: 12px; border-bottom: 1px solid #e3dccf; color: #786444; }
.fr-consumption-body .room-product-selected { flex: 1 1 auto; min-height: 150px; max-height: 425px; overflow-y: auto; background: #fff; }
.fr-consumption-body .room-product-selected-row { padding: 12px 0; border-color: #ede8de; background: #fff; }
.fr-consumption-body .room-product-selected-controls { gap: 7px; }
.fr-consumption-body .room-product-selected-controls button { border-radius: 3px; font-size: 12px; }
.fr-picker-table-heading { display: grid; align-items: center; gap: 8px; min-height: 38px; padding: 9px 6px; color: #fff; font-size: 12px; }
.fr-available-heading { grid-template-columns: 48px minmax(90px,1.6fr) 58px 42px 48px 48px; margin-top: 8px; background: #7ca65c; }
.fr-selected-heading { grid-template-columns: minmax(110px,1.6fr) 60px 54px 58px; background: #c7a467; }
.fr-consumption-body .room-product-row.fr-product-tabular { display: grid; grid-template-columns: 48px minmax(90px,1.6fr) 58px 42px 48px 48px; gap: 8px; align-items: center; padding: 11px 6px; font-size: 12px; }
.fr-product-tabular .fr-product-name { min-width: 0; }
.fr-product-tabular .fr-product-name strong { overflow-wrap: anywhere; font-size: 13px; font-weight: 400; }
.fr-product-tabular :is(.fr-product-category, .fr-product-price, .fr-product-stock) { color: #756e62; overflow-wrap: anywhere; }
.fr-consumption-body .fr-product-tabular .room-product-row-actions { display: contents; }
.fr-consumption-body .fr-product-tabular .room-product-row-actions :is(input, button) { width: 100%; min-width: 0; min-height: 30px; padding: 5px 3px; }
.fr-consumption-body .fr-product-unmapped .fr-product-name { grid-column: 1 / 5; }
.fr-consumption-body .room-product-selected-row.fr-selected-tabular { display: grid; grid-template-columns: minmax(110px,1.6fr) 60px 54px 58px; align-items: center; gap: 8px; padding: 12px 6px; }
.fr-selected-tabular > div:first-child { min-width: 0; }
.fr-selected-tabular > div:first-child strong { font-size: 13px; font-weight: 400; overflow-wrap: anywhere; }
.fr-consumption-body .fr-selected-tabular .room-product-selected-controls { display: contents; }
.fr-selected-tabular .room-product-selected-controls > label { display: block; min-width: 0; font-size: 0; }
.fr-selected-tabular .room-product-selected-controls > label input { width: 100%; min-width: 0; padding: 5px; font-size: 12px; }
.fr-selected-tabular .fr-order-actions { display: flex; flex-direction: column; gap: 5px; }
.fr-selected-tabular .fr-order-actions button { min-height: 28px; padding: 5px 2px; }
.fr-selected-tabular > .order-cancel-confirm { grid-column: 1 / -1; }
.fr-consumption-body .room-product-right-head { padding: 11px 10px; color: #fff; background: #b99150; border-bottom: 0; }
.fr-consumption-body .fr-service-tools { margin-top: 14px; }
.fr-service-tools > .fr-fineprint, .fr-service-tools > .room-service-form { margin: 8px 12px 12px; }
.fr-consumption-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid #e4dccd; background: #fff; }
.fr-consumption-footer span { color: #9a8f7d; font-size: 12px; }
.fr-consumption-footer .fr-complete-order { min-height: 40px; padding: 10px 26px; border: 0; border-radius: 3px; background: #65a849; color: #fff; font-size: 14px; }
.familiar-room-card :is(button, summary, input, select, textarea):focus-visible { outline: 2px solid #a47d37; outline-offset: 2px; }
@media (max-width: 780px) {
  .familiar-room-modal .room-detail-dialog { width: 100%; max-height: calc(100dvh - 16px); }
  .familiar-room-modal { padding: 8px; }
  .fr-top-grid { grid-template-columns: minmax(0, 1fr); }
  .fr-information { border-right: 0; border-bottom: 1px solid #ece7df; }
  .fr-information, .fr-controls, .fr-consumption { padding: 14px; }
  .fr-controls .pause-room-form { flex-wrap: wrap; }
  .fr-controls .pause-room-form .pause-status { flex-basis: 100%; }
  .fr-controls .pause-room-form > select { flex: 1 1 0; }
  .fr-footer { gap: 10px; padding: 10px 14px; }
  .fr-footer-actions { flex: 1 1 100%; width: 100%; gap: 8px; }
  .fr-footer-actions button { flex: 1 1 92px; width: auto; min-height: 44px; padding: 8px 6px; font-size: 12px; line-height: 1.4; }
  .fr-total strong { font-size: 24px; }
  .fr-consumption-overlay { padding: 8px; }
  .fr-consumption-dialog { width: 100%; max-height: calc(100dvh - 16px); }
  .fr-consumption-body { padding: 10px; }
  .fr-consumption-body .room-product-picker { grid-template-columns: 1fr; }
  .fr-consumption-body .room-product-left { border-right: 0; border-bottom: 1px solid #e7e0d3; }
  .fr-consumption-body .room-product-list { max-height: 230px; }
  .fr-consumption-body .room-product-selected { max-height: 270px; }
  .fr-consumption-body .room-product-list, .fr-consumption-body .room-product-selected { overflow-x: auto; }
  .fr-consumption-body .fr-available-heading, .fr-consumption-body .room-product-row.fr-product-tabular { grid-template-columns: 40px minmax(75px,1.6fr) 50px 34px 42px 42px; gap: 5px; }
  .fr-consumption-body .fr-selected-heading, .fr-consumption-body .room-product-selected-row.fr-selected-tabular { grid-template-columns: minmax(80px,1.6fr) 55px 45px 52px; gap: 5px; }
  .fr-consumption-footer { flex-wrap: wrap; padding: 10px 14px; }
  .fr-consumption-footer .fr-complete-order { margin-left: auto; }
}
