/* Company service billing is separate from charging revenue and customer credit. */
.pb-view { min-width: 0; }
.pb-view .page-heading { align-items: center; }
.pb-view .page-heading p { max-width: 660px; line-height: 1.8; }
.pb-view h2, .pb-invoice-modal h2, .pb-resolve h2 { font-size: 22px; line-height: 1.6; margin: 0; }
.pb-view h3 { font-size: 18px; line-height: 1.7; margin: 0 0 8px; }
.pb-view .pb-panel { padding: 25px; min-width: 0; overflow: visible; }
.pb-view .pb-provider-card { max-width: 760px; }
.pb-view .pb-card-heading, .pb-view .pb-section-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.pb-view .pb-card-heading > div { flex: 1; min-width: 0; }
.pb-view .pb-card-heading p { margin-top: 5px; font-size: 14px; line-height: 1.8; color: var(--muted); }
.pb-view .pb-section-heading { justify-content: space-between; gap: 12px; }
.pb-view .pb-symbol { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; border-radius: 14px; color: var(--brand); background: var(--brand-soft); }
.pb-view [data-pb-icon], .pb-invoice-modal [data-pb-icon] { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pb-view .pb-icon, .pb-invoice-modal .pb-icon, .pb-resolve .pb-icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.pb-view .pb-symbol .pb-icon { width: 26px; height: 26px; }
.pb-view label, .pb-resolve label { display: block; font-size: 15px; line-height: 1.8; margin-bottom: 18px; }
.pb-view input:not([type="checkbox"]), .pb-view select, .pb-view textarea,
.pb-resolve input:not([type="checkbox"]), .pb-resolve select, .pb-resolve textarea { display: block; width: 100%; min-width: 0; min-height: 48px; margin-top: 6px; border: 1px solid #d9d0c8; border-radius: 10px; padding: 11px 12px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; }
.pb-view textarea, .pb-resolve textarea { resize: vertical; min-height: 78px; }
.pb-view label small, .pb-resolve label small { display: block; margin-top: 5px; font-size: 12px; line-height: 1.8; color: var(--muted); overflow-wrap: anywhere; }
.pb-view .button, .pb-invoice-modal .button, .pb-resolve .button { min-height: 48px; font-size: 15px; line-height: 1.6; }
.pb-view .pb-muted, .pb-invoice-modal .pb-muted { font-size: 13px; line-height: 1.8; color: var(--muted); }
.pb-view .pb-note, .pb-invoice-modal .pb-note, .pb-resolve .pb-note { font-size: 13px; line-height: 1.9; margin: 12px 0 20px; color: var(--muted); overflow-wrap: anywhere; }
.pb-view .pb-action-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.pb-view .pb-action-row > button { margin: 0; }
.pb-view .pb-facts, .pb-invoice-modal .pb-facts { display: grid; grid-template-columns: minmax(100px,.8fr) minmax(0,1.2fr); gap: 8px 16px; margin-top: 18px; font-size: 14px; line-height: 1.9; }
.pb-view .pb-facts dt, .pb-invoice-modal .pb-facts dt { color: var(--muted); }
.pb-view .pb-facts dd, .pb-invoice-modal .pb-facts dd { margin: 0; overflow-wrap: anywhere; }
.pb-view .pb-toolbar { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; padding: 20px 23px; margin-bottom: 20px; }
.pb-view .pb-toolbar > label { min-width: 160px; flex: 1; margin: 0; }
.pb-view .pb-toolbar > p { flex: 1.4; margin: 0 0 7px; }
.pb-view .pb-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; margin: 20px 0 12px; }
.pb-view .pb-metric { background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 18px 20px; min-width: 0; }
.pb-view .pb-metric > span { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 1.8; color: var(--muted); }
.pb-view .pb-metric strong { display: block; font-size: 27px; font-weight: 650; line-height: 1.6; margin-top: 8px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pb-view .pb-metric small { display: block; font-size: 12px; line-height: 1.7; color: var(--muted); }
.pb-view .pb-metric.pb-accent { background: var(--brand-charcoal); color: #fff8f3; border-color: var(--brand-charcoal); }
.pb-view .pb-metric.pb-accent > span, .pb-view .pb-metric.pb-accent small { color: #e4d4c6; }
.pb-view .pb-plan-layout { display: grid; grid-template-columns: minmax(240px,.75fr) minmax(0,1.45fr); gap: 22px; align-items: start; }
.pb-view .pb-site-picker { display: grid; gap: 9px; max-height: 600px; overflow-y: auto; overscroll-behavior: contain; padding: 3px; margin: 15px -3px 0; }
.pb-view .pb-site-option { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); padding: 14px; text-align: left; font: inherit; cursor: pointer; transition: border-color .18s ease, background .18s ease; }
.pb-view .pb-site-option[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); }
.pb-view .pb-site-option b, .pb-view .pb-site-option small { display: block; line-height: 1.8; overflow-wrap: anywhere; }
.pb-view .pb-site-option b { font-size: 16px; }
.pb-view .pb-site-option small { font-size: 12px; color: var(--muted); margin-top: 3px; }
.pb-view .pb-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 18px; }
.pb-view .pb-form-grid > label { min-width: 0; }
.pb-view .pb-details-heading { display: flex; align-items: center; gap: 12px; min-height: 48px; cursor: pointer; font-size: 19px; font-weight: 600; line-height: 1.7; }
.pb-view .pb-details-heading > span:not([data-pb-icon]):not(.pill) { flex: 1; }
.pb-view details.pb-panel[open] > .pb-details-heading { margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.pb-view .pb-bank-field { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pb-view .pb-bank-field > select { flex: 1; min-width: 0; }
.pb-view .pb-bank-field .bank-icon { margin-top: 6px; flex: 0 0 44px; }
.pb-view .pb-check { display: flex; align-items: center; gap: 13px; min-height: 48px; }
.pb-view .pb-check input[type="checkbox"] { width: 24px; height: 24px; flex: 0 0 24px; margin: 0; accent-color: var(--brand); }
.pb-view .pb-check b { font-size: 15px; font-weight: 550; }
.pb-view .pb-check small { font-size: 12px; margin-top: 3px; }
.pb-view .pb-company-proof { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 23px; }
.pb-view .pb-company-proof > label { max-width: 310px; }
.pb-view .pb-empty { display: flex; align-items: center; justify-content: center; gap: 12px; flex-direction: column; min-height: 130px; padding: 25px 18px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: 14px; line-height: 1.8; text-align: center; }
.pb-view .pb-empty .pb-icon { width: 30px; height: 30px; }
.pb-view .pb-invoice-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 13px; width: 100%; padding: 18px 0; text-align: left; font: inherit; border: 0; border-top: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.pb-view .pb-invoice-row:first-child { border-top: 0; }
.pb-view .pb-invoice-row b { display: block; font-size: 17px; line-height: 1.7; overflow-wrap: anywhere; }
.pb-view .pb-invoice-row small { display: block; font-size: 12px; line-height: 1.8; color: var(--muted); margin-top: 4px; }
.pb-view .pb-invoice-row > span:last-child { text-align: right; }
.pb-view .pb-invoice-row strong { display: block; font-size: 21px; line-height: 1.7; font-variant-numeric: tabular-nums; }
.pb-view .pb-invoice-row .pill { margin-top: 5px; }
.pb-view .pb-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; border-top: 1px solid var(--line); padding-top: 17px; }
.pb-view .pb-pagination span { font-size: 14px; color: var(--muted); }
.pb-view .pb-usage-card { padding: 17px 0; border-top: 1px solid var(--line); }
.pb-view .pb-usage-card > div { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.pb-view .pb-usage-card b { font-size: 16px; line-height: 1.7; }
.pb-view .pb-usage-card p { font-size: 13px; line-height: 1.9; color: var(--muted); margin: 5px 0; overflow-wrap: anywhere; }
.pb-view .pb-charge-row { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(120px,.65fr) 48px; gap: 10px; align-items: start; margin-bottom: 12px; }
.pb-view .pb-charge-row > input { margin: 0; }
.pb-view .pb-charge-row > button { width: 48px; min-height: 48px; padding: 0; margin: 0; font-size: 24px; }
.pb-view .pb-preview { border: 1px solid var(--brand-line); background: #fffaf6; border-radius: 14px; padding: 20px; margin-top: 22px; }
.pb-view .pb-blockers { padding: 12px 15px 12px 32px; margin: 16px 0; border: 1px solid #efd0ba; border-radius: 10px; background: #fff4e8; font-size: 13px; line-height: 1.9; color: #8c4a28; }
.pb-view .pb-site-usage { padding: 16px 0; border-top: 1px solid var(--line); }
.pb-view .pb-site-usage h3 { font-size: 17px; margin: 0 0 4px; }
.pb-view .pb-site-usage > p { margin: 0 0 12px; font-size: 12px; color: var(--muted); }
.pb-view .pb-usage-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.pb-view .pb-usage-grid small, .pb-view .pb-usage-grid b { display: block; line-height: 1.8; }
.pb-view .pb-usage-grid small { font-size: 12px; color: var(--muted); }
.pb-view .pb-usage-grid b { font-size: 16px; font-variant-numeric: tabular-nums; }
.pb-view .pb-usage-grid em { display: block; font-size: 11px; font-style: normal; color: var(--muted); }
.pb-view .pill, .pb-invoice-modal .pill { font-size: 12px; line-height: 1.7; padding: 5px 9px; }
.pb-view .pb-paid, .pb-invoice-modal .pb-paid { color: #356e40; background: #eef7ed; border-color: #c2d6bb; }
.pb-view .pb-void, .pb-invoice-modal .pb-void { color: #776c64; background: #f4f0ec; border-color: #ddd5ce; }
.pb-view [hidden], .pb-invoice-modal [hidden], .pb-resolve [hidden] { display: none !important; }
.pb-invoice-modal { min-width: 0; text-align: left; }
.pb-invoice-modal .pb-invoice-head, #billing-print-sheet .pb-invoice-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.pb-invoice-modal .pb-invoice-head > div, #billing-print-sheet .pb-invoice-head > div { min-width: 0; }
.pb-invoice-modal .pb-invoice-head img, #billing-print-sheet .pb-invoice-head img { display: block; width: 112px; height: auto; margin-bottom: 12px; }
.pb-invoice-modal .pb-invoice-head h2, #billing-print-sheet .pb-invoice-head h2 { font-size: 23px; line-height: 1.6; }
.pb-invoice-modal .pb-invoice-head p, #billing-print-sheet .pb-invoice-head p { font-size: 13px; line-height: 1.8; color: var(--muted); margin-top: 6px; overflow-wrap: anywhere; }
.pb-invoice-modal .pb-invoice-parties, #billing-print-sheet .pb-invoice-parties { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin: 20px 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pb-invoice-modal .pb-invoice-parties small, #billing-print-sheet .pb-invoice-parties small { display: block; color: var(--muted); font-size: 12px; }
.pb-invoice-modal .pb-invoice-parties b, #billing-print-sheet .pb-invoice-parties b { display: block; font-size: 15px; line-height: 1.9; overflow-wrap: anywhere; }
.pb-invoice-modal .pb-invoice-dates, #billing-print-sheet .pb-invoice-dates { display: flex; gap: 15px 28px; flex-wrap: wrap; margin: 18px 0; font-size: 13px; line-height: 1.9; }
.pb-invoice-modal .pb-invoice-dates b, #billing-print-sheet .pb-invoice-dates b { display: block; }
.pb-table-wrap { overflow-x: auto; max-width: 100%; }
.pb-table { width: 100%; border-collapse: collapse; min-width: 430px; font-size: 13px; line-height: 1.8; }
.pb-table th, .pb-table td { padding: 11px 12px; text-align: right; border-bottom: 1px solid var(--line); white-space: normal; }
.pb-table th:first-child, .pb-table td:first-child { text-align: left; min-width: 170px; }
.pb-table th { color: var(--muted); background: #faf6f1; font-weight: 500; }
.pb-invoice-modal .pb-invoice-total, .pb-view .pb-invoice-total, #billing-print-sheet .pb-invoice-total { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 18px 0; padding: 15px 0; border-block: 1px solid var(--line); font-size: 16px; }
.pb-invoice-modal .pb-invoice-total strong, .pb-view .pb-invoice-total strong, #billing-print-sheet .pb-invoice-total strong { font-size: 28px; font-variant-numeric: tabular-nums; }
.pb-invoice-modal .pb-receiver { padding: 18px; background: #fff8f2; border: 1px solid var(--brand-line); border-radius: 13px; margin-top: 22px; }
.pb-invoice-modal .pb-receiver-top { display: flex; align-items: center; justify-content: space-between; gap: 13px; }
.pb-invoice-modal .pb-receiver-top > div { display: flex; align-items: center; gap: 11px; min-width: 0; }
.pb-invoice-modal .pb-receiver-top b, .pb-invoice-modal .pb-receiver-top small { display: block; line-height: 1.8; overflow-wrap: anywhere; }
.pb-invoice-modal .pb-receiver-top small { font-size: 12px; color: var(--muted); }
.pb-invoice-modal .pb-receiver .pb-account-number { display: block; font-size: clamp(20px,4vw,27px); line-height: 1.8; font-variant-numeric: tabular-nums; letter-spacing: .7px; margin-top: 12px; overflow-wrap: anywhere; }
.pb-invoice-modal .pb-receiver button { width: 48px; height: 48px; flex: 0 0 48px; padding: 0; margin: 0; }
.pb-invoice-modal .pb-upload { margin-top: 17px; min-height: 58px; font-size: 16px; font-weight: 650; gap: 10px; }
.pb-invoice-modal .pb-modal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.pb-invoice-modal .pb-modal-actions > * { flex: 1; }
.pb-invoice-modal .pb-history { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 17px; font-size: 13px; line-height: 1.8; }
.pb-invoice-modal .pb-history p { padding: 9px 0; border-bottom: 1px solid var(--line); }
.pb-invoice-modal .pb-history small { display: block; color: var(--muted); font-size: 11px; }
.pb-invoice-modal .pb-copy-fallback { width: 100%; min-height: 44px; font-size: 16px; margin-top: 10px; }
.pb-resolve { min-width: 0; text-align: left; }
.pb-resolve h2 { margin-bottom: 12px; }
.pb-resolve .pb-action-row { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: 10px; margin-top: 18px; }
#billing-print-sheet { display: none; }
/* Prices belong to physical devices; the quota form remains scoped to its site. */
.pb-view .pb-device-fees-panel { margin-top: 22px; }
.pb-view .pb-device-fee-layout { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: 24px; align-items: start; }
.pb-view .pb-device-fee-picker, .pb-view .pb-device-fee-editor { min-width: 0; }
.pb-view .pb-device-fee-list { display: grid; gap: 8px; }
.pb-view .pb-device-fee-picker .pb-pagination > button { min-width: 48px; min-height: 48px; }
.pb-view .pb-device-fee-option { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 12px; width: 100%; min-height: 90px; margin: 0; border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; text-align: left; background: #fff; color: var(--ink); font: inherit; cursor: pointer; transition: border-color .18s ease, background .18s ease; }
.pb-view .pb-device-fee-option[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 3px 0 0 var(--brand); }
.pb-view .pb-device-fee-option:focus-visible, .pb-view .pb-device-charge-details > summary:focus-visible { outline: 3px solid var(--brand-line); outline-offset: 3px; }
.pb-view .pb-device-thumb { display: grid; place-items: center; width: 48px; height: 60px; flex: 0 0 48px; border-radius: 9px; background: #f7f4f0; overflow: hidden; }
.pb-view .pb-device-thumb .charger-visual { display: grid; place-items: center; width: 100%; height: 100%; margin: 0; padding: 0; }
.pb-view .pb-device-thumb .charger-image-frame { display: grid; place-items: center; width: 100%; height: 100%; padding: 4px; background: transparent; border: 0; border-radius: 0; }
.pb-view .pb-device-thumb img { display: block; width: 40px; height: 52px; max-width: 100%; max-height: 100%; object-fit: contain; margin: 0; }
.pb-view .pb-device-thumb .charger-product-image { object-fit: contain; transform: none; padding: 0; }
.pb-view .pb-device-thumb figcaption { display: none; }
.pb-view .pb-device-identity { min-width: 0; }
.pb-view .pb-device-identity b, .pb-view .pb-device-identity small { display: block; line-height: 1.6; overflow-wrap: anywhere; }
.pb-view .pb-device-identity b { font-size: 15px; font-weight: 600; }
.pb-view .pb-device-identity small { color: var(--muted); font-size: 11px; margin-top: 3px; }
.pb-view .pb-device-price { max-width: 118px; text-align: right; font-variant-numeric: tabular-nums; }
.pb-view .pb-device-price strong { display: block; font-size: 17px; font-weight: 650; line-height: 1.6; overflow-wrap: anywhere; }
.pb-view .pb-device-price small { display: block; font-size: 11px; line-height: 1.6; color: var(--muted); }
.pb-view .pb-device-unset { color: #9a592c; }
.pb-view .pb-device-unset strong { font-size: 12px; font-weight: 550; }
.pb-view .pb-device-fee-editor { padding: 20px; background: #fcfaf7; border: 1px solid var(--line); border-radius: 14px; }
.pb-view .pb-device-fee-editor-head { display: flex; align-items: center; gap: 12px; }
.pb-view .pb-device-fee-editor-head > div:last-child { min-width: 0; }
.pb-view .pb-device-fee-editor-head h3 { margin: 0; font-size: 18px; overflow-wrap: anywhere; }
.pb-view .pb-device-fee-editor-head .pb-note { margin: 3px 0 0; font-size: 12px; }
.pb-view .pb-device-charge-details { margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fcfaf7; }
.pb-view .pb-device-charge-details > summary { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 13px; font-size: 13px; line-height: 1.8; cursor: pointer; list-style: none; }
.pb-view .pb-device-charge-details > summary::after { content: '+'; margin-left: auto; font-size: 20px; color: var(--brand); }
.pb-view .pb-device-charge-details[open] > summary::after { content: '−'; }
.pb-view .pb-device-charge-list { padding: 0 13px; }
.pb-view .pb-device-charge-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.pb-view .pb-device-charge-row b, .pb-view .pb-device-charge-row small { display: block; overflow-wrap: anywhere; line-height: 1.7; }
.pb-view .pb-device-charge-row b { font-size: 13px; font-weight: 550; }
.pb-view .pb-device-charge-row small { font-size: 11px; color: var(--muted); }
.pb-view .pb-device-charge-row > strong { text-align: right; font-size: 14px; font-variant-numeric: tabular-nums; }
.pb-view .pb-device-charge-note { font-size: 12px; line-height: 1.9; color: var(--muted); margin: 12px 0 0; }
.pb-view .pb-device-charge-details > .pb-device-charge-note { margin: 8px 13px 13px; }
/* One selected branch contains both independent settings forms. */
.pb-branch-settings .pb-branch-toolbar { display: grid; grid-template-columns: minmax(170px,210px) minmax(0,1fr); align-items: start; gap: 20px; padding: 20px 23px; margin-bottom: 18px; }
.pb-branch-settings .pb-branch-toolbar > label { margin: 0; min-width: 0; }
.pb-branch-settings .pb-allocation-area { min-width: 0; padding-top: 5px; }
.pb-branch-settings .pb-allocation-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 14px; font-size: 13px; line-height: 1.8; min-width: 0; }
.pb-branch-settings .pb-allocation-label { display: flex; align-items: start; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.pb-branch-settings .pb-allocation-label .pb-icon { margin-top: 2px; flex: 0 0 20px; width: 20px; height: 20px; }
.pb-branch-settings .pb-allocation-remaining { color: var(--muted); font-size: 12px; font-weight: 500; }
.pb-branch-settings .pb-allocation-warning { display: block; padding: 5px 9px; border: 1px solid #e8c8ad; border-radius: 7px; background: #fff5e9; color: #895022; font-size: 12px; font-weight: 550; overflow-wrap: anywhere; }
.pb-branch-settings .pb-allocation-details > summary { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; line-height: 1.8; color: var(--brand); cursor: pointer; }
.pb-branch-settings .pb-allocation-details .pb-note { margin: 0 0 10px; }
.pb-branch-settings .pb-branch-picker { margin-bottom: 18px; }
.pb-branch-settings .pb-branch-picker .pb-section-heading { margin-bottom: 12px; }
.pb-branch-settings .pb-branch-picker h2 { font-size: 20px; }
.pb-branch-settings .pb-branch-search { margin: 0; font-size: 13px; }
.pb-branch-settings .pb-branch-picker .pb-site-picker { grid-template-columns: repeat(2,minmax(0,1fr)); max-height: 320px; }
.pb-branch-settings .pb-site-option { min-height: 76px; }
.pb-branch-settings .pb-branch-workspace { min-width: 0; }
.pb-branch-settings .pb-branch-context { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 20px 23px; margin-bottom: 16px; }
.pb-branch-settings .pb-branch-identity { flex: 1; min-width: 140px; }
.pb-branch-settings .pb-branch-identity > small { display: block; color: var(--muted); font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.pb-branch-settings .pb-branch-identity h2 { font-size: 23px; line-height: 1.6; overflow-wrap: anywhere; }
.pb-branch-settings .pb-branch-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 17px; flex-basis: 100%; border-top: 1px solid var(--line); padding-top: 13px; font-size: 13px; line-height: 1.8; }
.pb-branch-settings .pb-branch-summary > span { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.pb-branch-settings .pb-branch-summary .pb-icon { flex: 0 0 18px; width: 18px; height: 18px; }
.pb-branch-settings .pb-branch-warning { color: #945229; background: #fff2e5; border-radius: 6px; padding: 4px 8px; }
.pb-branch-settings .pb-branch-count { color: var(--muted); }
.pb-branch-settings .pb-branch-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: #f2eeea; margin-bottom: 16px; }
.pb-branch-settings .pb-branch-tabs > button { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 54px; padding: 11px 12px; border: 1px solid transparent; border-radius: 10px; color: var(--muted); background: transparent; font: inherit; font-size: 15px; line-height: 1.7; white-space: normal; cursor: pointer; transition: background .18s ease,color .18s ease; }
.pb-branch-settings .pb-branch-tabs > button[aria-selected="true"] { border-color: var(--brand-line); color: var(--brand); background: #fff; box-shadow: 0 2px 8px #35271909; font-weight: 600; }
.pb-branch-settings .pb-branch-tabs > button:disabled { cursor: default; opacity: .6; }
.pb-branch-settings .pb-branch-tabs > button:focus-visible { outline: 3px solid var(--brand-line); outline-offset: 2px; }
.pb-branch-settings .pb-branch-tabs .pb-icon { flex: 0 0 21px; width: 21px; height: 21px; }
.pb-branch-settings .pb-branch-pane { min-width: 0; }
.pb-branch-settings .pb-branch-pane .pb-device-fees-panel { margin-top: 0; }
.pb-branch-settings .pb-quota-groups { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin: 8px 0 20px; }
.pb-branch-settings .pb-quota-group { min-width: 0; margin: 0; padding: 17px 17px 0; border: 1px solid var(--line); border-radius: 12px; background: #fcfaf7; }
.pb-branch-settings .pb-quota-group legend { display: flex; align-items: center; gap: 8px; padding: 0 7px; font-size: 17px; font-weight: 600; line-height: 1.8; }
.pb-branch-settings .pb-quota-group .pb-form-grid { grid-template-columns: minmax(0,1fr); }
.pb-branch-settings .pb-quota-group label { margin-bottom: 17px; }
@media (max-width: 800px) {
 .pb-branch-settings .pb-quota-groups { grid-template-columns: minmax(0,1fr); gap: 15px; }
 .pb-branch-settings .pb-quota-group .pb-form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 14px; }
}
@media (max-width: 600px) {
 .pb-branch-settings .pb-branch-toolbar { grid-template-columns: minmax(0,1fr); gap: 12px; padding: 17px; }
 .pb-branch-settings .pb-branch-picker .pb-site-picker { grid-template-columns: minmax(0,1fr); }
 .pb-branch-settings .pb-branch-context { gap: 10px; padding: 17px; }
 .pb-branch-settings .pb-branch-context > .pb-symbol { width: 42px; height: 42px; flex-basis: 42px; }
 .pb-branch-settings .pb-branch-context > .button { width: 100%; }
 .pb-branch-settings .pb-branch-identity h2 { font-size: 21px; }
 .pb-branch-settings .pb-branch-tabs { gap: 4px; padding: 4px; }
 .pb-branch-settings .pb-branch-tabs > button { gap: 6px; font-size: 13px; padding: 9px 7px; }
 .pb-branch-settings .pb-quota-group { padding: 13px 13px 0; }
}
@media (max-width: 360px) {
 .pb-branch-settings .pb-quota-group .pb-form-grid { grid-template-columns: minmax(0,1fr); }
 .pb-branch-settings .pb-branch-tabs > button { flex-direction: column; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { .pb-branch-settings .pb-branch-tabs > button { transition: none; } }
@media (max-width: 950px) {
 .pb-view .pb-device-fee-layout { grid-template-columns: minmax(0,1fr); gap: 20px; }
}
@media (max-width: 600px) {
 .pb-view .pb-device-fee-option { gap: 9px; padding: 10px; }
 .pb-view .pb-device-price { max-width: 100px; }
 .pb-view .pb-device-price strong { font-size: 16px; }
 .pb-view .pb-device-unset strong { font-size: 12px; }
 .pb-view .pb-device-fee-editor { padding: 16px 13px; }
 .pb-view .pb-device-charge-row { gap: 8px; }
 .pb-view .pb-device-charge-row > strong { max-width: 105px; }
}
@media (prefers-reduced-motion: reduce) {
 .pb-view .pb-device-fee-option { transition: none; }
}
@media (max-width: 1100px) {
 .pb-view .pb-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .pb-view .pb-plan-layout { grid-template-columns: minmax(230px,.75fr) minmax(0,1.25fr); gap: 17px; }
}
@media (max-width: 800px) {
 .pb-view .pb-plan-layout { grid-template-columns: minmax(0,1fr); }
 .pb-view .pb-site-picker { max-height: 270px; }
}
@media (max-width: 600px) {
 .pb-view .page-heading { flex-wrap: wrap; gap: 13px; }
 .pb-view .page-heading > .button { width: 100%; }
 .pb-view .pb-panel { padding: 19px 17px; }
 .pb-view .pb-toolbar { padding: 18px 17px; gap: 13px; }
 .pb-view .pb-toolbar > label { flex-basis: 100%; min-width: 0; }
 .pb-view .pb-card-heading { gap: 11px; flex-wrap: wrap; }
 .pb-view .pb-card-heading h2 { font-size: 21px; }
 .pb-view .pb-card-heading > .pill { margin-left: 59px; }
 .pb-view .pb-metrics { gap: 9px; }
 .pb-view .pb-metric { padding: 14px 12px; }
 .pb-view .pb-metric > span { font-size: 12px; }
 .pb-view .pb-metric strong { font-size: 23px; }
 .pb-view .pb-form-grid { grid-template-columns: minmax(0,1fr); }
 .pb-view .pb-details-heading { gap: 9px; font-size: 17px; flex-wrap: wrap; }
 .pb-view .pb-details-heading .pill { margin-left: 31px; }
 .pb-view .pb-action-row > button { width: 100%; }
 .pb-view .pb-invoice-row { gap: 9px; }
 .pb-view .pb-invoice-row b { font-size: 15px; }
 .pb-view .pb-invoice-row strong { font-size: 19px; }
 .pb-view .pb-charge-row { grid-template-columns: minmax(0,1fr) 48px; }
 .pb-view .pb-charge-row input:first-child { grid-column: 1 / -1; }
 .pb-view .pb-usage-grid { gap: 8px; }
 .pb-view .pb-usage-grid b { font-size: 15px; }
 .pb-view .pb-usage-card > div { flex-wrap: wrap; }
 .pb-view .pb-usage-card .button { width: 100%; }
 .pb-invoice-modal .pb-invoice-head { flex-wrap: wrap; gap: 12px; }
 .pb-invoice-modal .pb-invoice-parties { grid-template-columns: minmax(0,1fr); gap: 13px; }
 .pb-invoice-modal .pb-receiver { padding: 15px; }
 .pb-invoice-modal .pb-modal-actions { flex-direction: column; }
 .pb-resolve .pb-action-row { grid-template-columns: minmax(0,1fr); }
}
@media print {
 body.printing-service-invoice > * { display: none !important; }
 body.printing-service-invoice > #billing-print-sheet { display: block !important; padding: 12mm; background: #fff; color: #222; font-family: -apple-system,BlinkMacSystemFont,'Sukhumvit Set',Tahoma,sans-serif; }
 #billing-print-sheet .pb-table { min-width: 0; table-layout: auto; }
 #billing-print-sheet .pb-table-wrap { overflow: visible; }
 #billing-print-sheet .pb-table th, #billing-print-sheet .pb-table td { font-size: 11pt; padding: 3mm; }
 #billing-print-sheet .pb-note { font-size: 10pt; line-height: 1.8; }
 #billing-print-sheet .pb-invoice-total strong { font-size: 20pt; }
 #billing-print-sheet .pb-account-number { font-size: 14pt; }
}
