/* Book reservations: three explicit phases with currency-isolated money. */
.bf-page-heading h1{font-size:28px;letter-spacing:-.8px}.bf-page-heading p{max-width:650px;line-height:1.8}.bf-page-heading>.btn{white-space:nowrap;align-self:center}
.bf-section{padding:25px 26px;margin-bottom:20px}.bf-section-title{display:flex;gap:14px;align-items:center;margin:0 0 22px}.bf-section-title>span{width:32px;height:32px;border-radius:9px;background:var(--blue-soft);display:grid;place-items:center;font:11px Arial;color:var(--blue-hover);flex-shrink:0}.bf-section-title>div{flex:1}.bf-section-title h2{margin:0;font-size:15px;font-weight:600}.bf-section-title p{font-size:11px;color:var(--muted);line-height:1.8;margin:6px 0 0}.bf-basics{display:grid;grid-template-columns:1.2fr 1fr 1fr 1.1fr;gap:16px}.bf-control{display:flex;flex-direction:column;gap:8px;font-size:11px;color:var(--muted);line-height:1.7}.bf-control input,.bf-control select,.bf-control textarea{margin:0;color:var(--ink)}.bf-control input[readonly]{background:var(--bg);color:var(--muted)}.bf-draft-table{table-layout:auto;min-width:1220px}.bf-draft-table th{font-weight:500;font-size:10px;white-space:nowrap}.bf-draft-table td{padding:12px 8px;vertical-align:top}.bf-draft-table td:first-child{padding-left:0}.bf-draft-table th:first-child{padding-left:5px}.bf-draft-table input,.bf-draft-table select{padding:9px 8px;font-size:11px;min-height:39px;border-color:var(--line)}.bf-draft-table input:focus,.bf-draft-table select:focus{outline:2px solid var(--blue);outline-offset:1px}.bf-draft-table td:nth-child(2){min-width:96px}.bf-draft-table td:nth-child(3){min-width:80px}.bf-draft-table td:nth-child(4){min-width:140px}.bf-draft-table td:nth-child(5){min-width:176px}.bf-draft-table td:nth-child(6){min-width:94px}.bf-draft-table td:nth-child(7){min-width:160px}.bf-draft-table td:nth-child(8){min-width:145px}.bf-fee-cell>select{margin-bottom:7px}.bf-fee-product{display:grid;grid-template-columns:52px 12px minmax(80px,1fr);gap:5px;align-items:center}.bf-fee-product>span{text-align:center;color:var(--muted);font-size:10px}.bf-row-index{font:11px Arial!important;padding-top:26px!important;color:var(--muted)}.bf-row-total{font:12px Arial;white-space:nowrap;padding-top:25px!important;color:var(--ink);font-variant-numeric:tabular-nums}.bf-remove-row{font-size:10px;margin-top:8px;color:#a17a6b}.bf-row-footer{display:flex;justify-content:space-between;gap:20px;padding-top:15px;color:var(--muted);font-size:10px;line-height:1.8}.bf-row-footer>span:first-child{white-space:nowrap}.bf-reservation-summary{background:var(--surface);border-color:var(--line)}.bf-summary-table th{background:var(--blue-soft)}.bf-summary-table td{font-variant-numeric:tabular-nums;font-size:12px;padding:15px 11px}.bf-summary-table .secondary{display:block}.bf-total-value{font-weight:600;color:var(--blue-hover)}.bf-summary-empty{padding:16px 0;font-size:12px;color:var(--muted)}.bf-form-actions{display:flex;justify-content:flex-end;gap:12px;padding:0 0 24px}.bf-form-actions>.primary{min-width:235px}.bf-flow-legend{display:flex;align-items:center;justify-content:flex-start;gap:16px;margin:8px 0 24px;padding:16px 18px;background:var(--blue-soft);border:1px solid var(--line);border-radius:8px;font-size:11px;color:var(--muted)}.bf-flow-legend>span{display:flex;align-items:center;gap:8px}.bf-flow-legend i{font-style:normal;font-size:12px}.bf-flow-legend>b{color:var(--muted);font-weight:400}.bf-flow-legend s{text-decoration-thickness:1.5px}.bf-filter-panel{padding:20px 22px}.bf-list-filters{display:flex;align-items:end;flex-wrap:wrap;gap:14px}.bf-list-filters>label{display:flex;flex-direction:column;gap:7px;color:var(--muted);font-size:10px;min-width:118px;flex:1}.bf-list-filters .bf-search{min-width:170px;flex:1.5}.bf-list-filters input,.bf-list-filters select{min-width:0;font-size:11px}.bf-list-filters>.btn{white-space:nowrap}.bf-pending-summary{margin:0 0 24px;padding:21px 23px;border:1px solid var(--line);border-radius:9px;background:var(--blue-soft)}.bf-pending-summary>.section-header{margin-bottom:19px}.bf-pending-summary h2{font-size:14px}.bf-list-tabs{display:flex;align-items:center;gap:5px;border-bottom:1px solid var(--line);margin:0 0 15px;overflow-x:auto;padding-bottom:2px}.bf-list-tabs button{border:0;background:transparent;padding:12px 15px;color:var(--muted);font-size:11px;white-space:nowrap;border-bottom:2px solid transparent;display:flex;align-items:center;gap:9px}.bf-list-tabs button.selected{color:var(--blue-hover);border-bottom-color:var(--blue);font-weight:600}.bf-list-tabs button>span{padding:2px 6px;border-radius:8px;background:var(--bg);font:10px Arial;color:var(--muted)}.bf-list-tabs button.selected>span{background:var(--blue-soft);color:var(--blue-hover)}.bf-bulk-tools{display:flex;align-items:center;gap:14px;margin:0 0 18px;font-size:10px;color:var(--muted);flex-wrap:wrap}.bf-bulk-tools .btn{padding:7px 12px;font-size:10px}

.bf-summary-channel>h3 { font-size: 12px; margin: 0 0 12px; color: var(--blue-hover); }
.bf-summary-channel+.bf-summary-channel { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; }
.bf-currency-summary { display: grid; gap: 6px; }
.bf-currency-summary>div { min-width: 0; }
.bf-currency-summary .bf-pending-equation {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.bf-pending-equation span { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
.bf-currency-summary .bf-pending-fee { color: #111; font-weight: 700; }
.bf-pending-summary>.section-header { margin-bottom: 14px; }
.bf-book-group { padding: 0 20px; margin-bottom: 17px; }
.bf-book-group>header { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 15px 0 12px; }
.bf-book-group>header h2 { margin: 0; font-size: 14px; color: var(--ink); }
.bf-book-group>header span { font-size: 11px; color: var(--muted); }
.bf-customer-group { padding: 0 0 3px; }
.bf-customer-group+.bf-customer-group { border-top: 1px solid var(--line); }
.bf-customer-group>h3 { font-size: 13px; margin: 12px 0 2px; color: var(--ink); overflow-wrap: anywhere; }
.bf-book-row { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 11px 0; }
.bf-book-row+.bf-book-row { border-top: 1px solid var(--line); }
.bf-book-select { display: flex; align-items: center; justify-content: center; }
.bf-book-select input { width: 15px; height: 15px; cursor: pointer; }
.bf-book-main { min-width: 0; }
.bf-status { display: inline-block; padding: 3px 7px; border-radius: 5px; font-size: 10px; line-height: 1.5; color: #785817; background: #f7efd9; white-space: nowrap; }
.bf-status.ready { background: #e8f2e3; color: #3b6b41; }
.bf-status.paid { background: #eff2eb; color: #4e6855; }
.bf-status.cancelled { background: #f2efe9; color: #716b60; }
.bf-book-amount { display: flex; align-items: center; gap: 5px 8px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.bf-book-amount>strong,.bf-book-amount>s { font: 600 15px Arial, sans-serif; color: var(--ink); white-space: nowrap; }
.bf-book-amount>s { text-decoration-thickness: 1.5px; text-decoration-color: var(--muted); color: var(--muted); }
.bf-funds-check { font-size: 14px; line-height: 1; }
.bf-estimated-fee { font-size: 11px; color: var(--muted); }
.bf-book-meta { display: flex; gap: 4px 13px; flex-wrap: wrap; font-size: 10px; color: var(--muted); margin-top: 5px; }
.bf-book-note { font-size: 10px; color: var(--muted); line-height: 1.65; margin: 5px 0 0; overflow-wrap: anywhere; }
.bf-partial-label { color: #725417; }
.bf-book-row.is-cancelled .bf-book-amount>strong { color: var(--muted); }
.bf-book-actions {
  display: grid;
  grid-template-areas: "stage history modify cancel";
  grid-template-columns: minmax(0, 86px) repeat(3, 48px);
  align-items: center;
  justify-content: end;
  gap: 7px;
  min-width: 0;
}
.bf-book-actions .bf-stage-action { grid-area: stage; min-width: 0; min-height: 32px; padding: 7px 10px; font-size: 11px; }
.bf-book-actions .row-link { font-size: 10px; white-space: nowrap; }
.bf-book-actions [data-bf-history] { grid-area: history; }
.bf-book-actions [data-bf-modify] { grid-area: modify; }
.bf-book-actions [data-bf-cancel] { grid-area: cancel; white-space: normal; }
.bf-cancel-link { color: #875f50; }
.bf-empty{text-align:center;padding:48px 20px;color:var(--muted)}.bf-empty>div{font-size:30px;color:var(--muted);margin-bottom:15px}.bf-empty h2{font-size:15px;font-weight:500}.bf-empty p{font-size:11px;margin-bottom:23px}.bf-dialog-lead{font-size:13px;line-height:1.9;margin:8px 0 20px;color:var(--ink)}.bf-dialog-actions{justify-content:flex-end;margin-top:22px}.bf-confirm-list,.bf-payment-history{list-style:none;margin:16px 0;padding:0}.bf-confirm-list li{display:flex;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line);padding:11px 0;font-size:11px}.bf-confirm-list b{font:12px Arial;font-variant-numeric:tabular-nums}.bf-payment-history li{padding:13px 0;border-bottom:1px solid var(--line)}.bf-payment-history li>div{display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:10px;color:var(--muted)}.bf-payment-history b{font:16px Arial;color:var(--ink);font-variant-numeric:tabular-nums}.bf-payment-history p{font-size:10px;color:var(--muted);line-height:1.8;margin:7px 0 0}
@media(min-width:1550px){.bf-draft-table{min-width:1180px}.bf-section{padding:27px 30px}}
@media(max-width:1200px){.bf-basics{grid-template-columns:repeat(2,minmax(0,1fr))}.bf-flow-legend{gap:10px;font-size:10px}.bf-section{padding:21px}}
/* Inline Book entry keeps adjacent drafts visible even with many rows. */
.bf-draft-fields{min-inline-size:0;margin:0;border:0;padding:0}
.bf-draft-title{margin:0 0 16px;font-size:15px}
.bf-draft-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.bf-draft-heading .bf-draft-title{margin:0}
.bf-new-form .bf-row-footer{align-items:center}
#bf-save-status:not(:empty){font-size:12px;color:#527554;margin:0 0 12px}
@media(min-width:761px){
 .bf-new-form .bf-draft-table{table-layout:fixed;min-width:690px}
 .bf-draft-table th,.bf-draft-table td{padding-left:5px;padding-right:5px}
 .bf-new-form .bf-draft-table td{min-width:0;overflow-wrap:anywhere}
 .bf-new-form .bf-draft-table :is(input,select){width:100%;min-width:0;padding:7px 5px;min-height:35px}
 .bf-draft-table th:nth-child(1){width:36px}
 .bf-draft-table th:nth-child(3){width:68px}
 .bf-draft-table th:nth-child(4){width:99px}
 .bf-draft-table th:nth-child(5){width:133px}
 .bf-draft-table th:nth-child(6){width:70px}
 .bf-draft-table th:nth-child(8){width:91px}
 .bf-draft-table th:nth-child(9){width:40px}
 .bf-draft-table .bf-row-total{white-space:normal}
 .bf-draft-table .bf-fee-product{grid-template-columns:minmax(0,36px) 10px minmax(0,1fr);gap:3px}
}
@media(max-width:760px){.bf-page-heading{flex-wrap:wrap}.bf-page-heading h1{font-size:25px}.bf-page-heading>.btn{margin-top:5px}.bf-section{padding:18px 16px}.bf-section-title{gap:10px;align-items:flex-start;flex-wrap:wrap;margin-bottom:19px}.bf-section-title>span{width:27px;height:27px;border-radius:7px}.bf-section-title h2{font-size:14px}.bf-section-title p{font-size:10px;margin-top:5px}.bf-section-title>.btn{margin-left:37px}.bf-basics{gap:15px 12px}.bf-control{font-size:10px}.bf-draft-table-wrap{overflow:visible}.bf-draft-table{min-width:0;display:block;white-space:normal}.bf-draft-table thead{display:none}.bf-draft-table tbody{display:block}.bf-draft-table tr{display:grid;grid-template-columns:1fr 1fr;gap:12px;border:1px solid var(--line);border-radius:7px;padding:15px;margin-bottom:15px;background:var(--surface);position:relative}.bf-draft-table td{display:block;min-width:0!important;border:0;padding:0!important}.bf-draft-table td[data-label]:before{content:attr(data-label);display:block;font-size:10px;color:var(--muted);margin-bottom:7px}.bf-draft-table .bf-row-index{grid-column:1 / -1;font-size:10px!important;letter-spacing:1px;color:var(--muted)}.bf-draft-table td:nth-child(5),.bf-draft-table td:nth-child(7){grid-column:1 / -1}.bf-draft-table td:nth-child(8){font-size:14px;display:flex;align-items:center;gap:12px;grid-column:1 / -1}.bf-draft-table td:nth-child(8):before{margin:0}.bf-draft-table td:last-child{position:absolute;right:12px;top:7px}.bf-draft-table input,.bf-draft-table select{font-size:12px}.bf-fee-cell>select{width:100%;margin-bottom:8px}.bf-fee-product{grid-template-columns:75px 16px minmax(0,1fr)}.bf-row-footer{flex-wrap:wrap;gap:7px;padding-top:0;font-size:9px}.bf-summary-table{min-width:700px}.bf-form-actions>.primary{min-width:0;flex:1}.bf-flow-legend{flex-wrap:wrap;gap:8px;padding:12px}.bf-flow-legend>span{gap:5px}.bf-flow-legend>b{font-size:9px}.bf-filter-panel{padding:16px}.bf-list-filters{gap:13px 10px}.bf-list-filters>label{min-width:calc(50% - 6px);flex:1}.bf-list-filters .bf-search{min-width:100%}.bf-list-filters>.btn{margin-left:auto;padding:7px 11px;font-size:10px}.bf-pending-summary{padding:18px 16px}.bf-pending-summary>.section-header{align-items:flex-start;gap:8px}.bf-pending-summary h2{font-size:13px}.bf-pending-summary .mini{max-width:48%;text-align:right;font-size:9px}.bf-list-tabs{gap:2px;margin-bottom:15px}.bf-list-tabs button{padding:10px;font-size:10px;gap:6px}.bf-bulk-tools{gap:8px 12px}.bf-bulk-tools>.mini{width:100%;font-size:9px}.bf-book-group{padding:0 15px}.bf-dialog-lead{font-size:12px}.bf-dialog-actions{gap:8px;flex-wrap:wrap}.bf-dialog-actions .btn{font-size:11px}.bf-confirm-list li{font-size:10px}.bf-confirm-list b{font-size:11px}}
@media(max-width:890px){
 .bf-book-row{align-items:start}
 .bf-book-select{padding-top:2px}
 .bf-book-actions{grid-column:2 / -1}
}
@media(max-width:420px){.bf-basics{grid-template-columns:1fr}.bf-section-title>.btn{margin-left:0}.bf-flow-legend{display:grid;grid-template-columns:1fr}.bf-flow-legend>b{display:none}.bf-book-amount{gap:7px}.bf-dialog-actions .btn{flex:1}.bf-form-actions{flex-direction:column-reverse}}
/* Keep the fee mode and total stacked inside the same table cell. */
.bf-draft-table .bf-fee-cell>select,.bf-draft-table .bf-fee-cell>input{display:block;width:100%;min-width:0;box-sizing:border-box}
