/* Receipt / Invoice selector — shared by website, Quick Booking and admin. */
.ncbhbm-billing { margin: 6px 0 12px; }
.ncbhbm-billing-choice { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 13px; }
.ncbhbm-billing-title { font-weight: 700; }
.ncbhbm-billing-opt { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; cursor: pointer; }
.ncbhbm-billing-opt input { margin: 0; }
.ncbhbm-billing-fields { margin-top: 8px; padding: 10px 12px; border: 1px solid #93c5fd; border-radius: 8px; background: #eff6ff; }
.ncbhbm-billing-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.ncbhbm-billing-row:last-of-type { margin-bottom: 0; }
.ncbhbm-billing-f { flex: 1 1 160px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; min-width: 0; }
.ncbhbm-billing-f input, .ncbhbm-billing-f select { width: 100%; box-sizing: border-box; }
.ncbhbm-billing-req { color: #dc2626; }
.ncbhbm-billing-err { margin: 8px 0 0; color: #b91c1c; font-size: 13px; font-weight: 600; }
.ncbhbm-billing-err[hidden], .ncbhbm-billing-fields[hidden] { display: none; }

/* Business marking (customer card, history, lists). */
.ncbhbm-biz-badge { display: inline-block; padding: 1px 8px; border-radius: 999px; background: #dbeafe; color: #1e40af; font-size: 11px; font-weight: 700; vertical-align: middle; white-space: nowrap; }
.ncbhbm-doc-badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; vertical-align: middle; }
.ncbhbm-doc-badge.is-receipt { background: #f1f5f9; color: #475569; }
.ncbhbm-doc-badge.is-invoice { background: #dbeafe; color: #1e40af; }
.ncbhbm-billing-card { margin: 10px 0; padding: 10px 12px; border: 1px solid #93c5fd; border-left: 4px solid #2563eb; border-radius: 8px; background: #eff6ff; font-size: 13px; }
.ncbhbm-billing-card h4 { margin: 0 0 6px; font-size: 13px; }
.ncbhbm-billing-card dl { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; margin: 0; }
.ncbhbm-billing-card dt { color: #64748b; }
.ncbhbm-billing-card dd { margin: 0; font-weight: 600; }
tr.ncbhbm-row-link { cursor: pointer; }
tr.ncbhbm-row-link:hover td { background: #f8fafc; }
tr.ncbhbm-row-invoice td { background: #eff6ff; }
tr.ncbhbm-row-invoice:hover td { background: #dbeafe; }
tr.ncbhbm-row-invoice td:first-child { box-shadow: inset 4px 0 0 #2563eb; }

/* Official tax document state (payment × document issued). */
.ncbhbm-taxdoc { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.ncbhbm-taxdoc.is-ok { background: #dcfce7; color: #166534; }        /* paid + issued */
.ncbhbm-taxdoc.is-missing { background: #dc2626; color: #fff; }      /* paid, NO document */
.ncbhbm-taxdoc.is-credit { background: #dbeafe; color: #1e40af; }    /* issued, unpaid */
.ncbhbm-taxdoc.is-open { background: #f1f5f9; color: #475569; }      /* unpaid, no document */
.ncbhbm-taxdoc.is-na { color: #cbd5e1; }
tr.ncbhbm-taxrow-missing td { background: #fef2f2; }
.ncbhbm-taxdoc-sec.is-missing { background: #fef2f2; }
.ncbhbm-taxdoc-sec .ncbhbm-taxdoc { margin-left: 6px; vertical-align: middle; }

/* Tax document form in Reservation Actions: one field per line, full width. */
.ncbhbm-taxdoc-form { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 10px 0 8px; }
.ncbhbm-taxdoc-f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: #475569; min-width: 0; }
.ncbhbm-taxdoc-f input { width: 100%; max-width: 100%; box-sizing: border-box; min-height: 34px; padding: 4px 10px; font-size: 14px; }
.ncbhbm-taxdoc-sec .ncbhbm-taxdoc-save { width: 100%; justify-content: center; margin-top: 6px; }

/* Reservations list: fits its card, scrolls inside it if the screen is narrow. */
.ncbhbm-table-wrap { overflow-x: auto; }
.ncbhbm-res-table th { white-space: nowrap; }
.ncbhbm-res-table th.ncbhbm-th-wrap { white-space: normal; width: 104px; line-height: 1.3; }
.ncbhbm-res-table th.ncbhbm-th-num, .ncbhbm-res-table td.ncbhbm-td-money { text-align: right; white-space: nowrap; }
.ncbhbm-res-table td.ncbhbm-td-taxdoc { width: 104px; }
.ncbhbm-res-table td.ncbhbm-td-taxdoc .ncbhbm-taxdoc { white-space: normal; line-height: 1.25; text-align: center; padding: 3px 9px; }
.ncbhbm-res-table td:last-child { white-space: nowrap; text-align: right; }

/* Reservation Actions → Payments: two clear actions, one panel at a time. */
.ncbhbm-pay-actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 12px 0 4px; }
.ncbhbm-pay-btn { width: 100%; justify-content: center; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; font-weight: 600; }
.ncbhbm-pay-btn .dashicons { font-size: 18px; width: 18px; height: 18px; }
.ncbhbm-pay-btn.is-off { background: #f1f5f9; color: #64748b; border-color: #e2e8f0; }
.ncbhbm-pay-btn.is-active { box-shadow: 0 0 0 2px #0ea5e9 inset; }
.ncbhbm-pay-panel { margin: 8px 0 4px; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 10px; background: #f8fafc; }
.ncbhbm-pay-panel[hidden] { display: none; }
.ncbhbm-pay-panel .ncbhbm-hint { margin: 0 0 4px; }
.ncbhbm-pay-done { margin: 10px 0 0; color: #166534; font-weight: 700; display: flex; align-items: center; gap: 4px; }
.ncbhbm-guest-links { margin: 12px 0 0; font-size: 12px; color: #64748b; }
.ncbhbm-guest-links a { font-weight: 600; }

/* Payments list inside Reservation Actions. */
.ncbhbm-plist { margin: 10px 0 6px; border-top: 1px solid #e2e8f0; }
.ncbhbm-prow { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid #f1f5f9; }
.ncbhbm-prow-m { font-weight: 600; font-size: 13px; }
.ncbhbm-prow-d { font-size: 12px; color: #64748b; }
.ncbhbm-prow-r { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px; text-align: right; }
.ncbhbm-prow-a { display: flex; gap: 4px; }
.ncbhbm-pchip { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.ncbhbm-pchip.is-ok { background: #dcfce7; color: #166534; }
.ncbhbm-pchip.is-wait { background: #fef3c7; color: #92400e; }
.ncbhbm-pchip.is-off { background: #f1f5f9; color: #64748b; text-decoration: line-through; }
.ncbhbm-pay-sec .ncbhbm-pay-btn { margin-top: 10px; }
.ncbhbm-pay-buttons { display: flex; gap: 6px; }
.ncbhbm-pay-buttons .ncbhbm-btn { flex: 1; justify-content: center; }
.ncbhbm-card-line { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 0; font-weight: 600; font-size: 13px; }
.ncbhbm-card-line > span:last-child { display: flex; gap: 6px; }

/* Pending payment (money on its way) — impossible to miss. */
.ncbhbm-pend { position: relative; margin: 10px 0 0; padding: 10px 12px; border: 1.5px solid #f59e0b; border-radius: 10px; background: #fffbeb; }
.ncbhbm-pend-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ncbhbm-pend-d { font-size: 12px; color: #78350f; margin: 4px 0 8px; word-break: break-word; }
.ncbhbm-pend-b { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ncbhbm-pend-b .ncbhbm-btn { justify-content: center; }
.ncbhbm-pend-x { display: block; text-align: right; font-size: 12px; margin-top: 6px; color: #64748b; }
.ncbhbm-pay-info { margin: 0 0 8px; padding: 8px 10px; border-radius: 8px; background: #fff; border: 1px solid #e2e8f0; font-size: 12px; line-height: 1.6; }
.ncbhbm-pay-info[hidden] { display: none; }
.ncbhbm-pay-info-t { color: #64748b; }
.ncbhbm-pay-bank { white-space: pre-line; font-weight: 600; margin: 2px 0 4px; }
.ncbhbm-pay-info-e { color: #64748b; margin-top: 2px; }

/* Audit trail on payments. */
.ncbhbm-pend-ref { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin-top: 8px; }
.ncbhbm-pend-ref[hidden] { display: none; }
.ncbhbm-prow.is-voided .ncbhbm-prow-m, .ncbhbm-prow.is-voided strong { text-decoration: line-through; color: #94a3b8; }
.ncbhbm-prow-v { font-size: 12px; color: #b91c1c; margin-top: 2px; }
#nb-pay-ref-wrap[hidden] { display: none; }

/* Daily cash-up */
.ncbhbm-dayclose { margin-bottom: 16px; }
.ncbhbm-dayclose-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.ncbhbm-dayclose tr.is-voided td { color: #94a3b8; }
.ncbhbm-dayclose tr.is-voided td:nth-child(6) { text-decoration: line-through; }

/* Settings tabs */
.ncbhbm-stabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; border-bottom: 1px solid #e2e8f0; }
.ncbhbm-stab { appearance: none; border: 0; background: transparent; padding: 10px 14px; font-weight: 600; font-size: 14px; color: #64748b; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.ncbhbm-stab:hover { color: #0f172a; }
.ncbhbm-stab.is-active { color: var(--ncbhbm-primary, #026583); border-bottom-color: var(--ncbhbm-primary, #026583); }
[data-stab] { margin-bottom: 16px; }
[data-stab] h3 .ncbhbm-taxdoc { margin-left: 8px; vertical-align: middle; }

/* Searchable phone-country picker */
.ncbhbm-pp { position: relative; width: 100%; min-width: 0; }
.ncbhbm-pp-native { position: absolute !important; opacity: 0 !important; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; pointer-events: none; left: 0; bottom: 0; }
.ncbhbm-pp-btn { width: 100%; min-height: 40px; display: flex; align-items: center; gap: 6px; padding: 8px 30px 8px 10px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: #0f172a; font: inherit; text-align: left; cursor: pointer; position: relative; }
.ncbhbm-pp-btn::after { content: ""; position: absolute; right: 12px; top: 50%; width: 7px; height: 7px; border-right: 2px solid #64748b; border-bottom: 2px solid #64748b; transform: translateY(-70%) rotate(45deg); }
.ncbhbm-pp.is-open .ncbhbm-pp-btn, .ncbhbm-pp-btn:focus { outline: none; border-color: #0ea5e9; box-shadow: 0 0 0 3px rgba(14,165,233,.18); }
.ncbhbm-pp.is-invalid .ncbhbm-pp-btn { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,.15); }
.ncbhbm-pp-btn .ncbhbm-pp-name { color: #64748b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ncbhbm-pp-btn .ncbhbm-pp-dial { font-weight: 700; }
.ncbhbm-pp-ph { color: #94a3b8; }
.ncbhbm-pp-flag { font-size: 18px; line-height: 1; }
.ncbhbm-pp-panel { position: absolute; z-index: 100000; left: 0; top: calc(100% + 4px); width: max(100%, 280px); background: #fff; border: 1px solid #cbd5e1; border-radius: 12px; box-shadow: 0 12px 32px rgba(15,23,42,.18); padding: 8px; }
.ncbhbm-pp-panel[hidden] { display: none; }
.ncbhbm-pp-q { width: 100%; box-sizing: border-box; padding: 9px 10px; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; margin-bottom: 6px; }
.ncbhbm-pp-list { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow-y: auto; }
.ncbhbm-pp-opt { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; cursor: pointer; color: #0f172a; }
.ncbhbm-pp-opt .ncbhbm-pp-dial { color: #64748b; font-variant-numeric: tabular-nums; }
.ncbhbm-pp-opt.is-active { background: #e0f2fe; }
.ncbhbm-pp-opt.is-selected .ncbhbm-pp-name { font-weight: 700; }
.ncbhbm-pp-opt[data-sep] { border-bottom: 1px solid #e2e8f0; border-radius: 8px 8px 0 0; margin-bottom: 4px; }
.ncbhbm-pp-none { padding: 10px; color: #64748b; }
