/* ==========================================================================
   Billing software (/billing/) - app shell, pages, invoice print
   ========================================================================== */
.vbb {
	--b-blue: #14587d;
	--b-blue-dk: #0e4463;
	--b-blue-lt: #e7f1f7;
	--b-bg: #f2f5f8;
	--b-card: #ffffff;
	--b-line: #e2e8f0;
	--b-line2: #cbd5e1;
	--b-head: #f6f8fb;
	--b-txt: #1f2937;
	--b-soft: #64748b;
	--b-green: #15803d;
	--b-green-lt: #e8f6ee;
	--b-red: #c62828;
	--b-red-lt: #fdecec;
	--b-orange: #c2570c;
	--b-orange-lt: #fff1e6;
	--b-purple: #6d28d9;
	--b-purple-lt: #f1ebfd;
	--b-grey-lt: #eef2f6;
	--b-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 4px 14px rgba(15, 23, 42, .05);
	--b-r: 12px;
	font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.45;
	color: var(--b-txt);
	width: 100%;
	-webkit-text-size-adjust: 100%;
}
/* Dark only when the visitor uses dark mode on inner pages too (Customizer). */
html.dark body:not(.vb-inner-light) .vbb {
	--b-blue: #4ba3d6;
	--b-blue-dk: #2a86bf;
	--b-blue-lt: #17324a;
	--b-bg: #121417;
	--b-card: #1c1f24;
	--b-line: #2c323a;
	--b-line2: #3a424d;
	--b-head: #23272e;
	--b-txt: #e5e9ef;
	--b-soft: #9aa6b5;
	--b-green: #4ade80;
	--b-green-lt: #13301f;
	--b-red: #f87171;
	--b-red-lt: #3a1717;
	--b-orange: #fb923c;
	--b-orange-lt: #3a2312;
	--b-purple: #a78bfa;
	--b-purple-lt: #2a2042;
	--b-grey-lt: #23272e;
}
body.vb-billing-page::before { background: #f2f5f8; }
html.dark body.vb-billing-page:not(.vb-inner-light)::before { background: #121417; }
body.vb-billing-page .vb-footer { display: none; }
body.vb-billing-page .vb-main { min-height: 0; }

.vbb *, .vbb *::before, .vbb *::after { box-sizing: border-box; }
.vbb :where(h1, h2, h3, h4, p, ul, ol, dl, dd) { margin: 0; }
.vbb a { color: var(--b-blue); text-decoration: none; }
.vbb a:hover { text-decoration: underline; }
.vbb-boot { padding: 80px 16px; text-align: center; color: var(--b-soft); }

/* ---------- app shell ---------- */
.vbb-app { display: flex; align-items: flex-start; gap: 18px; width: 100%; max-width: 1480px; margin: 0 auto; padding: 14px 16px 40px; }
.vbb-side {
	position: sticky; top: 12px; flex: 0 0 236px; width: 236px; max-height: calc(100vh - 24px); overflow-y: auto;
	background: var(--b-card); border: 1px solid var(--b-line); border-radius: 16px; box-shadow: var(--b-shadow);
	padding: 14px 10px; display: flex; flex-direction: column; gap: 8px;
}
.vbb-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 12px; border-bottom: 1px solid var(--b-line); margin-bottom: 4px; }
.vbb-brand-ico { flex: 0 0 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--b-blue); color: #fff; font-size: 17px; }
.vbb-brand b { display: block; font-size: 17px; line-height: 1.2; }
.vbb-brand small { display: block; color: var(--b-soft); font-size: 12.5px; line-height: 1.3; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vbb-nav { display: flex; flex-direction: column; gap: 2px; }
.vbb-nav a {
	position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
	color: var(--b-txt); font-size: 15px; font-weight: 500; text-decoration: none; transition: background .15s, color .15s;
}
.vbb-nav a i { width: 20px; text-align: center; font-size: 16px; color: var(--b-soft); transition: color .15s; }
.vbb-nav a:hover { background: var(--b-grey-lt); text-decoration: none; }
.vbb-nav a.is-on { background: var(--b-blue-lt); color: var(--b-blue); font-weight: 600; }
.vbb-nav a.is-on i { color: var(--b-blue); }
.vbb-nav a.is-on::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--b-blue); }
.vbb-side-foot { margin-top: auto; padding: 10px 8px 2px; border-top: 1px solid var(--b-line); display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.vbb-side-foot a, .vbb-user { color: var(--b-soft); display: flex; align-items: center; gap: 8px; }
.vbb-side-foot a.vbb-user { color: var(--b-blue); font-weight: 600; }
.vbb-shade-side { display: none; }

.vbb-main { flex: 1 1 auto; min-width: 0; }
.vbb-top {
	display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; padding: 10px 14px;
	background: var(--b-card); border: 1px solid var(--b-line); border-radius: 14px; box-shadow: var(--b-shadow);
}
.vbb-top h1 { font-size: 21px; font-weight: 600; line-height: 1.25; margin: 0; color: var(--b-txt); }
.vbb-burger { display: none !important; }
/* room for the theme's 9-dots apps button (top right of inner pages) */
body.vb-billing-page .vbb-top { padding-right: 66px; }
.vbb-grow { flex: 1 1 auto; }
.vbb-sync { font-size: 13px; }
.vbb-sync a, .vbb-sync > span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: var(--b-grey-lt); color: var(--b-soft); text-decoration: none; }
.vbb-sync a.is-warn { background: var(--b-orange-lt); color: var(--b-orange); }
.vbb-new { position: relative; }
.vbb-new-menu {
	position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 220px; padding: 6px;
	background: var(--b-card); border: 1px solid var(--b-line); border-radius: 12px; box-shadow: 0 14px 34px rgba(15, 23, 42, .18);
	display: flex; flex-direction: column;
}
.vbb-new-menu[hidden] { display: none; }
.vbb-new-menu a, .vbb-new-menu button {
	display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none;
	font: inherit; font-size: 14.5px; color: var(--b-txt); text-align: left; cursor: pointer; text-decoration: none;
}
.vbb-new-menu a:hover, .vbb-new-menu button:hover { background: var(--b-grey-lt); text-decoration: none; }
.vbb-new-menu i { width: 18px; text-align: center; color: var(--b-blue); }
.vbb-new-menu a:nth-child(3) { border-bottom: 1px solid var(--b-line); border-radius: 8px 8px 0 0; margin-bottom: 4px; padding-bottom: 11px; }
.vbb-view { outline: none; display: flex; flex-direction: column; gap: 14px; }

/* ---------- controls ---------- */
.vbb-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 16px;
	border: 1px solid var(--b-blue); border-radius: 10px; background: var(--b-blue); color: #fff !important;
	font: inherit; font-size: 14.5px; font-weight: 600; line-height: 1; cursor: pointer; white-space: nowrap; text-decoration: none !important;
	transition: background .15s, border-color .15s, color .15s;
}
.vbb-btn:hover { background: var(--b-blue-dk); border-color: var(--b-blue-dk); }
.vbb-btn:focus-visible, .vbb-icon-btn:focus-visible, .vbb-input:focus-visible, .vbb-nav a:focus-visible { outline: 2px solid #2a86bf; outline-offset: 2px; }
.vbb-btn-line { background: var(--b-card); color: var(--b-blue) !important; border-color: var(--b-line2); }
.vbb-btn-line:hover { background: var(--b-blue-lt); border-color: var(--b-blue); }
.vbb-btn-danger { background: var(--b-red); border-color: var(--b-red); }
.vbb-btn-danger:hover { background: #a61b1b; border-color: #a61b1b; }
.vbb-btn-dangerline { color: var(--b-red) !important; }
.vbb-btn-dangerline:hover { background: var(--b-red-lt); border-color: var(--b-red); }
.vbb-icon-btn {
	display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 8px;
	background: none; color: var(--b-soft); font-size: 14.5px; cursor: pointer; text-decoration: none !important;
}
.vbb-icon-btn:hover { background: var(--b-grey-lt); color: var(--b-blue); }
.vbb-field .vbb-link { align-self: flex-start; }
.vbb-link { border: 0; background: none; padding: 4px 0; font: inherit; font-size: 13px; color: var(--b-blue); cursor: pointer; text-decoration: underline; }
.vbb-input {
	display: block; width: 100%; min-height: 40px; padding: 8px 11px; border: 1px solid var(--b-line2); border-radius: 9px;
	background: var(--b-card); color: var(--b-txt); font: inherit; font-size: 15px; line-height: 1.3;
}
textarea.vbb-input { resize: vertical; min-height: 64px; }
select.vbb-input { padding-right: 28px; }
.vbb-input:focus { border-color: var(--b-blue); outline: none; box-shadow: 0 0 0 3px rgba(20, 88, 125, .15); }
.vbb-input.is-bad { border-color: var(--b-red); box-shadow: 0 0 0 3px rgba(198, 40, 40, .12); }
.vbb-sm { min-height: 36px; padding: 6px 10px; font-size: 14px; width: auto; }
.vbb-search { width: auto; flex: 1 1 200px; max-width: 320px; }
.vbb-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.vbb-field.is-wide, .vbb-grid2 > .is-wide { grid-column: 1 / -1; }
.vbb-label { font-size: 13.5px; font-weight: 600; color: var(--b-txt); }
.vbb-label em { color: var(--b-red); font-style: normal; }
.vbb-hint { font-size: 12.5px; color: var(--b-soft); line-height: 1.35; }
.vbb-err { font-size: 13px; color: var(--b-red); font-weight: 500; }
.vbb-check { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-size: 14.5px; cursor: pointer; }
.vbb-check input { width: 18px; height: 18px; accent-color: var(--b-blue); margin: 0; }
.vbb-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.vbb-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 14px; }
.vbb-grid4 > .is-wide { grid-column: span 2; }
.vbb-file { position: relative; overflow: hidden; }
.vbb-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }

/* ---------- bars, tabs, cards ---------- */
.vbb-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vbb-tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--b-card); border: 1px solid var(--b-line); border-radius: 11px; flex-wrap: wrap; }
.vbb-tabs a { padding: 7px 13px; border-radius: 8px; color: var(--b-soft); font-size: 14px; font-weight: 500; white-space: nowrap; text-decoration: none !important; }
.vbb-tabs a:hover { color: var(--b-txt); background: var(--b-grey-lt); }
.vbb-tabs a.is-on { background: var(--b-blue); color: #fff; }
.vbb-period { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; color: var(--b-soft); }
.vbb-card { background: var(--b-card); border: 1px solid var(--b-line); border-radius: var(--b-r); box-shadow: var(--b-shadow); padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.vbb-h3 { font-size: 16.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vbb-h3 small { font-size: 13px; font-weight: 400; }
.vbb-h3 i { color: var(--b-blue); }
.vbb-cards2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.vbb-cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.vbb-cards4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.vbb-kpi {
	display: flex; align-items: center; gap: 12px; padding: 14px 16px; min-width: 0;
	background: var(--b-card); border: 1px solid var(--b-line); border-radius: var(--b-r); box-shadow: var(--b-shadow); color: var(--b-txt) !important; text-decoration: none !important;
}
a.vbb-kpi:hover { border-color: var(--b-blue); }
.vbb-kpi-ico { flex: 0 0 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; background: var(--b-blue-lt); color: var(--b-blue); }
.vbb-kpi-txt { display: flex; flex-direction: column; min-width: 0; }
.vbb-kpi-txt small { font-size: 13px; color: var(--b-soft); }
.vbb-kpi-txt b { font-size: 21px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.vbb-kpi-txt em { font-style: normal; font-size: 12.5px; color: var(--b-soft); }
.vbb-kpi.is-green .vbb-kpi-ico { background: var(--b-green-lt); color: var(--b-green); }
.vbb-kpi.is-red .vbb-kpi-ico { background: var(--b-red-lt); color: var(--b-red); }
.vbb-kpi.is-orange .vbb-kpi-ico { background: var(--b-orange-lt); color: var(--b-orange); }
.vbb-kpi.is-purple .vbb-kpi-ico { background: var(--b-purple-lt); color: var(--b-purple); }
.vbb-kpi.is-grey .vbb-kpi-ico { background: var(--b-grey-lt); color: var(--b-soft); }

.is-green { color: var(--b-green); }
.is-red { color: var(--b-red); }
.vbb-muted { color: var(--b-soft); }
.vbb-small { font-size: 13px; }
.vbb-block { display: block; }
.vbb-strong { font-weight: 600; }
.vbb-back { font-size: 14px; }
.vbb-back a { display: inline-flex; align-items: center; gap: 6px; }
.vbb-print-only { display: none; }

/* ---------- tables ---------- */
.vbb-table-wrap { width: 100%; overflow-x: auto; background: var(--b-card); border: 1px solid var(--b-line); border-radius: var(--b-r); box-shadow: var(--b-shadow); -webkit-overflow-scrolling: touch; }
.vbb-card .vbb-table-wrap { box-shadow: none; }
.vbb-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.vbb-table th { position: sticky; top: 0; background: var(--b-head); color: var(--b-soft); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; text-align: left; padding: 10px 12px; white-space: nowrap; border-bottom: 1px solid var(--b-line); }
.vbb-table td { padding: 10px 12px; border-bottom: 1px solid var(--b-line); vertical-align: top; }
.vbb-table tbody tr:hover td { background: rgba(20, 88, 125, .035); }
.vbb-table tbody tr:last-child td { border-bottom: 0; }
.vbb-table tfoot td { background: var(--b-head); font-weight: 600; border-top: 1px solid var(--b-line2); border-bottom: 0; }
.vbb-table tr.is-sub td { background: var(--b-head); font-weight: 600; }
.vbb-table .num { text-align: right; white-space: nowrap; }
.vbb-table td.act { white-space: nowrap; text-align: right; padding: 5px 8px; width: 1%; }
.vbb-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; background: var(--b-grey-lt); color: var(--b-soft); }
.vbb-pill.is-paid { background: var(--b-green-lt); color: var(--b-green); }
.vbb-pill.is-part { background: var(--b-orange-lt); color: var(--b-orange); }
.vbb-pill.is-unpaid { background: var(--b-blue-lt); color: var(--b-blue); }
.vbb-pill.is-over { background: var(--b-red-lt); color: var(--b-red); }
.vbb-pill.is-open { background: var(--b-purple-lt); color: var(--b-purple); }
.vbb-pill.is-conv { background: var(--b-green-lt); color: var(--b-green); }

.vbb-empty { text-align: center; padding: 40px 20px; background: var(--b-card); border: 1px dashed var(--b-line2); border-radius: var(--b-r); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.vbb-empty-ico { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--b-blue-lt); color: var(--b-blue); font-size: 24px; margin-bottom: 4px; }
.vbb-empty h3 { font-size: 17px; font-weight: 600; }
.vbb-empty p { color: var(--b-soft); max-width: 460px; margin-bottom: 6px; }

/* ---------- toast + modal ---------- */
.vbb-toast {
	position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); z-index: 100001; transform: translate(-50%, 20px);
	max-width: calc(100% - 32px); padding: 11px 18px; border-radius: 12px; background: #13263a; color: #fff;
	font-family: "Outfit", system-ui, sans-serif; font-size: 14.5px; box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
	opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.vbb-toast i { color: #4ade80; margin-right: 4px; }
.vbb-toast.is-err i { color: #fca5a5; }
.vbb-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 768px) { .vbb-toast { bottom: 28px; } }
html.vbb-lock, html.vbb-lock body { overflow: hidden; }
.vbb-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; font-family: "Outfit", system-ui, sans-serif; }
.vbb-modal-shade { position: absolute; inset: 0; background: rgba(15, 23, 42, .5); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.vbb-modal-box {
	position: relative; width: 100%; max-width: 620px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); display: flex; flex-direction: column;
	background: #fff; color: #1f2937; border-radius: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); overflow: hidden;
	--b-blue: #14587d; --b-blue-dk: #0e4463; --b-blue-lt: #e7f1f7; --b-card: #fff; --b-line: #e2e8f0; --b-line2: #cbd5e1; --b-txt: #1f2937; --b-soft: #64748b; --b-red: #c62828; --b-red-lt: #fdecec; --b-grey-lt: #eef2f6;
	font-size: 15px; line-height: 1.45;
}
.vbb-modal-box *, .vbb-modal-box *::before, .vbb-modal-box *::after { box-sizing: border-box; }
.vbb-modal-box.is-wide { max-width: 860px; }
.vbb-modal-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--b-line); }
.vbb-modal-head h3 { flex: 1; margin: 0; font-size: 18px; font-weight: 600; }
.vbb-modal-body { padding: 16px 18px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.vbb-modal-body p { margin: 0; }
.vbb-modal-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 18px; border-top: 1px solid var(--b-line); background: #f8fafc; }
.vbb-confirm { font-size: 15.5px; }
.vbb-list-plain { margin: 12px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.vbb-modal .vbb-btn, .vbb-modal .vbb-input, .vbb-modal .vbb-icon-btn, .vbb-modal .vbb-check, .vbb-modal .vbb-field, .vbb-modal .vbb-label, .vbb-modal .vbb-hint, .vbb-modal .vbb-err, .vbb-modal .vbb-muted, .vbb-modal .vbb-grid2 { font-family: inherit; }
.vbb-modal .vbb-grid2 > p { grid-column: 1 / -1; margin: -4px 0 0; }

/* ---------- invoice editor ---------- */
.vbb-doc { display: flex; flex-direction: column; gap: 14px; }
.vbb-lines-card { padding: 0; overflow: hidden; gap: 0; }
.vbb-lines-wrap { border: 0; border-radius: 0; box-shadow: none; }
.vbb-lines td { padding: 6px; vertical-align: middle; }
.vbb-lines th { padding: 10px 6px; }
.vbb-lines .vbb-input { min-height: 38px; padding: 7px 8px; font-size: 14.5px; }
.vbb-lines .c-n { width: 34px; text-align: center; color: var(--b-soft); }
.vbb-lines .c-item { min-width: 220px; }
.vbb-lines .c-hsn { width: 96px; min-width: 86px; }
.vbb-lines .c-qty { width: 86px; min-width: 76px; }
.vbb-lines .c-unit { width: 96px; min-width: 88px; }
.vbb-lines .c-rate { width: 116px; min-width: 100px; }
.vbb-lines .c-disc { width: 78px; min-width: 70px; }
.vbb-lines .c-tax { width: 86px; min-width: 80px; }
.vbb-lines .c-amt { width: 120px; min-width: 110px; font-weight: 600; }
.vbb-lines .c-x { width: 40px; }
.vbb-add-line { margin: 12px; align-self: flex-start; }
.vbb-doc-bottom { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 14px; align-items: start; }
.vbb-paynow { border-top: 1px dashed var(--b-line2); padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.vbb-paynow h4 { font-size: 15px; font-weight: 600; }
.vbb-totals h4 { font-size: 16px; font-weight: 600; }
.vbb-totals dl, .vbb-dl { display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; font-size: 15px; }
.vbb-totals dd, .vbb-dl dd { text-align: right; font-variant-numeric: tabular-nums; }
.vbb-totals .vbb-total, .vbb-dl .vbb-total { font-size: 19px; font-weight: 700; color: var(--b-blue); padding-top: 8px; border-top: 1px solid var(--b-line); }
.vbb-words { font-size: 13.5px; color: var(--b-soft); font-style: italic; }
.vbb-doc-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 16px; background: var(--b-card); border: 1px solid var(--b-line); border-radius: var(--b-r); box-shadow: var(--b-shadow); }
@media (min-width: 900px) {
	.vbb-sticky { position: sticky; bottom: 12px; z-index: 20; box-shadow: 0 -4px 20px rgba(15, 23, 42, .08); }
}

/* ---------- invoice paper (view + print) ---------- */
.vbb-doc-status { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.vbb-inv {
	background: #fff; color: #1f2937; border: 1px solid var(--b-line); border-radius: var(--b-r); box-shadow: var(--b-shadow);
	padding: 28px; font-size: 14px; line-height: 1.45; display: flex; flex-direction: column; gap: 18px; width: 100%;
}
.vbb-inv p { margin: 0; }
.vbb-inv h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #64748b; font-weight: 600; margin-bottom: 4px; }
.vbb-inv-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 16px; border-bottom: 3px solid #14587d; }
.vbb-inv-biz { display: flex; gap: 14px; align-items: flex-start; }
.vbb-inv-biz h2 { font-size: 22px; font-weight: 700; color: #14587d; margin-bottom: 2px; }
.vbb-inv-logo { width: 74px; height: 74px; object-fit: contain; border-radius: 8px; }
.vbb-inv-title { text-align: right; }
.vbb-inv-title h1 { font-size: 22px; letter-spacing: .08em; font-weight: 700; color: #1f2937; margin: 0; }
.vbb-inv-title small { color: #64748b; font-size: 12px; }
.vbb-inv-meta { display: flex; justify-content: space-between; gap: 20px; }
.vbb-inv-meta dl { display: grid; grid-template-columns: auto auto; gap: 3px 14px; align-content: start; }
.vbb-inv-meta dt { color: #64748b; }
.vbb-inv-meta dd { font-weight: 600; text-align: right; }
.vbb-inv-lines { overflow-x: auto; }
.vbb-inv-lines table, .vbb-inv-tax { width: 100%; border-collapse: collapse; }
.vbb-inv-lines th, .vbb-inv-tax th { background: #14587d; color: #fff; font-size: 12px; font-weight: 600; text-align: left; padding: 8px; white-space: nowrap; }
.vbb-inv-lines td { padding: 8px; border-bottom: 1px solid #e2e8f0; vertical-align: top; }
.vbb-inv-lines tbody tr:nth-child(even) td { background: #f8fafc; }
.vbb-inv .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vbb-inv-tax th { background: #eef3f7; color: #334155; }
.vbb-inv-tax td { padding: 6px 8px; border-bottom: 1px solid #e2e8f0; font-size: 13px; }
.vbb-inv-sum { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.vbb-inv-left { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.vbb-inv-words small { display: block; color: #64748b; font-size: 12px; }
.vbb-inv-words b { font-weight: 600; }
.vbb-inv-tot { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 12px 14px; background: #f6f9fb; border: 1px solid #e2e8f0; border-radius: 10px; }
.vbb-inv-tot dd { text-align: right; font-variant-numeric: tabular-nums; }
.vbb-inv-tot .vbb-total { font-size: 18px; font-weight: 700; color: #14587d; padding-top: 6px; border-top: 1px solid #cbd5e1; }
.vbb-inv-foot { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; padding-top: 14px; border-top: 1px solid #e2e8f0; }
.vbb-inv-foot > div:first-child { max-width: 60%; font-size: 12.5px; color: #475569; }
.vbb-inv-sign { text-align: center; min-width: 200px; }
.vbb-inv-sign span { display: block; height: 52px; }
.vbb-inv-sign p:last-child { border-top: 1px solid #94a3b8; padding-top: 4px; font-size: 12.5px; color: #475569; }
.vbb-inv-gen { text-align: center; font-size: 11.5px; color: #94a3b8; }

/* ---------- pages ---------- */
.vbb-party-head { flex-direction: row; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.vbb-party-head h2 { font-size: 20px; font-weight: 600; }
.vbb-party-bal { text-align: right; }
.vbb-party-bal small { display: block; font-size: 13px; color: var(--b-soft); }
.vbb-party-bal b { font-size: 24px; }
.vbb-split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; align-items: start; }
.vbb-hbar { position: relative; padding: 8px 0 10px; font-size: 14px; }
.vbb-hbar span { display: flex; justify-content: space-between; gap: 10px; }
.vbb-hbar span small { margin-left: 6px; }
.vbb-hbar b { font-weight: 600; white-space: nowrap; }
.vbb-hbar i { display: block; height: 6px; margin-top: 5px; border-radius: 6px; background: var(--b-blue); opacity: .8; }
.vbb-hbar.is-alt i { background: #2a86bf; opacity: .6; }
.vbb-ledger-grid, .vbb-report-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.vbb-ledger-card { gap: 2px; color: var(--b-txt) !important; text-decoration: none !important; }
.vbb-ledger-card:hover, .vbb-report-card:hover { border-color: var(--b-blue); }
.vbb-ledger-card span { font-weight: 600; margin-top: 4px; }
.vbb-report-card { gap: 6px; color: var(--b-txt) !important; text-decoration: none !important; }
.vbb-report-card b { font-size: 16.5px; font-weight: 600; }
.vbb-report-card small { color: var(--b-soft); font-size: 13.5px; }
.vbb-report-head h2 { font-size: 20px; font-weight: 600; }
.vbb-printable { display: flex; flex-direction: column; gap: 12px; }
.vbb-pl tbody tr.is-sub td { color: var(--b-blue); }

/* dashboard */
.vbb-hello { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.vbb-hello h2 { font-size: 22px; font-weight: 600; }
.vbb-quick { display: flex; gap: 8px; flex-wrap: wrap; }
.vbb-setup { flex-direction: row; align-items: center; gap: 16px; border-color: #b7d2e2; background: linear-gradient(135deg, var(--b-blue-lt), var(--b-card)); flex-wrap: wrap; }
.vbb-setup > div { flex: 1 1 320px; display: flex; flex-direction: column; gap: 6px; }
.vbb-setup h3 { font-size: 17px; font-weight: 600; }
.vbb-setup ol { padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.vbb-dash-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; }
.vbb-chart { width: 100%; height: auto; display: block; }
.vbb-chart .b-s { fill: var(--b-blue); }
.vbb-chart .b-p { fill: #8cc3e3; }
.vbb-chart .axis { stroke: var(--b-line2); }
.vbb-chart text { fill: var(--b-soft); font-size: 13px; font-family: inherit; }
.vbb-chart-empty { padding: 40px 0; text-align: center; }
.vbb-legend { display: flex; align-items: center; gap: 6px; font-size: 13.5px; flex-wrap: wrap; }
.vbb-legend span { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.vbb-legend .l-s { background: var(--b-blue); }
.vbb-legend .l-p { background: #8cc3e3; margin-left: 10px; }
.vbb-recent, .vbb-mini { list-style: none; padding: 0; display: flex; flex-direction: column; }
.vbb-recent a { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--b-line); color: var(--b-txt) !important; text-decoration: none !important; }
.vbb-recent li:last-child a { border-bottom: 0; }
.vbb-recent a:hover { background: var(--b-grey-lt); }
.vbb-r-ico { flex: 0 0 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--b-blue-lt); color: var(--b-blue); font-size: 14px; }
.vbb-recent span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vbb-recent b { font-weight: 600; font-size: 14.5px; }
.vbb-recent small { color: var(--b-soft); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vbb-recent em { font-style: normal; font-weight: 600; white-space: nowrap; }
.vbb-mini li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--b-line); font-size: 14.5px; }
.vbb-mini li:last-child { border-bottom: 0; }
.vbb-mini span { text-align: right; font-weight: 600; white-space: nowrap; }

/* backup + settings */
.vbb-toggle { min-height: 0; }
.vbb-danger { border-color: #f5c2c2; }
.vbb-danger .vbb-h3 i { color: var(--b-red); }
.vbb-danger .vbb-btn { align-self: flex-start; }
.vbb-card > .vbb-btn, .vbb-card > .vbb-file { align-self: flex-start; }
.vbb-settings { display: flex; flex-direction: column; gap: 14px; }
.vbb-logo-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vbb-logo-prev { width: 56px; height: 56px; border-radius: 10px; border: 1px dashed var(--b-line2); display: grid; place-items: center; color: var(--b-soft); overflow: hidden; background: #fff; }
.vbb-logo-prev img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
	.vbb-cards4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.vbb-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.vbb-doc-bottom { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 960px) {
	.vbb-app { display: block; padding: 10px 12px 30px; }
	.vbb-side {
		position: fixed; top: 0; left: 0; bottom: 0; z-index: 100000; width: 270px; max-width: 86vw; max-height: none; border-radius: 0 16px 16px 0;
		transform: translateX(-105%); transition: transform .25s ease; padding-top: calc(14px + env(safe-area-inset-top, 0px));
	}
	.vbb.is-side-open .vbb-side { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .3); }
	.vbb.is-side-open .vbb-shade-side { display: block; position: fixed; inset: 0; z-index: 99999; background: rgba(15, 23, 42, .45); }
	.vbb-burger { display: inline-grid !important; font-size: 18px; color: var(--b-txt); }
	.vbb-dash-grid, .vbb-split, .vbb-doc-bottom { grid-template-columns: minmax(0, 1fr); }
	.vbb-cards3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.vbb { font-size: 14.5px; }
	.vbb-app { padding: 8px 10px 24px; }
	.vbb-top { padding: 8px 10px; gap: 6px; flex-wrap: nowrap; }
	.vbb-top h1 { font-size: 18px; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.vbb-top .vbb-grow { display: none; }
	.vbb-sync a span, .vbb-sync > span span { display: none; }
	body.vb-billing-page .vbb-top { padding-right: 60px; }
	.vbb-sync a, .vbb-sync > span { padding: 7px 9px; }
	.vbb-new .vbb-btn { padding: 0 12px; }
	.vbb-cards2, .vbb-cards3, .vbb-cards4, .vbb-grid2, .vbb-grid4 { grid-template-columns: minmax(0, 1fr); }
	.vbb-grid4 > .is-wide { grid-column: auto; }
	.vbb-cards-dash, .vbb-cards4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.vbb-cards-dash .vbb-kpi, .vbb-cards4 .vbb-kpi { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
	.vbb-kpi-ico { flex-basis: 38px; width: 38px; height: 38px; font-size: 15px; }
	.vbb-kpi-txt b { font-size: 18px; }
	.vbb-card { padding: 14px 12px; }
	.vbb-search { max-width: none; flex-basis: 100%; }
	.vbb-tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
	.vbb-bar > .vbb-btn { flex: 1 1 auto; }
	.vbb-hello h2 { font-size: 19px; }
	.vbb-quick { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
	.vbb-inv { padding: 16px 12px; font-size: 13px; }
	.vbb-inv-top, .vbb-inv-meta, .vbb-inv-foot { flex-direction: column; align-items: stretch; }
	.vbb-inv-title { text-align: left; }
	.vbb-inv-sum { grid-template-columns: minmax(0, 1fr); }
	.vbb-inv-foot > div:first-child { max-width: none; }
	.vbb-inv-meta dl { grid-template-columns: auto 1fr; }
	.vbb-inv-lines th, .vbb-inv-lines td, .vbb-inv-tax th, .vbb-inv-tax td { padding: 6px 4px; font-size: 11.5px; }
	.vbb-inv-lines th { white-space: normal; }
	.vbb-modal { padding: 0; align-items: flex-end; }
	.vbb-modal-box { max-height: 94vh; max-height: 94dvh; border-radius: 16px 16px 0 0; }
	.vbb-modal-body { padding: 14px; }
	.vbb-doc-actions .vbb-btn { flex: 1 1 auto; }
	/* invoice lines become small cards */
	.vbb-lines-wrap { overflow: visible; }
	.vbb-lines thead { display: none; }
	.vbb-lines, .vbb-lines tbody { display: block; }
	.vbb-lines tr { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; padding: 12px; border-bottom: 1px solid var(--b-line); position: relative; }
	.vbb-lines tbody tr:hover td { background: none; }
	.vbb-lines td { display: flex; flex-direction: column; gap: 3px; padding: 0; border: 0; width: auto !important; min-width: 0 !important; }
	.vbb-lines td[data-lbl]::before { content: attr(data-lbl); font-size: 12px; font-weight: 600; color: var(--b-soft); text-align: left; }
	.vbb-lines .c-n { position: absolute; left: 12px; top: 12px; display: none; }
	.vbb-lines .c-item { grid-column: 1 / 6; grid-row: 1; }
	.vbb-lines .c-x { grid-column: 6; grid-row: 1; align-items: flex-end; justify-content: flex-end; }
	.vbb-lines .c-qty { order: 2; } .vbb-lines .c-unit { order: 3; } .vbb-lines .c-rate { order: 4; }
	.vbb-lines .c-hsn { order: 5; } .vbb-lines .c-disc { order: 6; } .vbb-lines .c-tax { order: 7; } .vbb-lines .c-amt { order: 8; }
	.vbb-lines .c-qty, .vbb-lines .c-unit, .vbb-lines .c-rate, .vbb-lines .c-hsn, .vbb-lines .c-disc, .vbb-lines .c-tax { grid-column: span 2; }
	.vbb-lines .c-amt { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; padding-top: 6px; border-top: 1px dashed var(--b-line); font-size: 15.5px; }
	.vbb-lines tbody tr:nth-child(even) { background: var(--b-head); }
	.vbb-doc-actions .vbb-grow { display: none; }
}

@media screen and (max-width: 640px) { .vbb-inv .m-hide { display: none; } }

/* ---------- print: only the invoice / report ---------- */
@media print {
	@page { size: A4; margin: 10mm; }
	html, body { background: #fff !important; padding: 0 !important; }
	body.vb-billing-page::before { display: none; }
	body.vb-billing-page * { visibility: hidden; }
	body.vb-billing-page .vbb-inv, body.vb-billing-page .vbb-inv *,
	body.vb-billing-page .vbb-printable, body.vb-billing-page .vbb-printable * { visibility: visible; }
	body.vb-billing-page .vbb-inv, body.vb-billing-page .vbb-printable { position: absolute; left: 0; top: 0; width: 100%; max-width: none; border: 0; box-shadow: none; padding: 0; color: #000; background: #fff; }
	.vbb-printable .vbb-table-wrap { border: 0; box-shadow: none; overflow: visible; }
	.vbb-printable .vbb-table th { position: static; }
	.vbb-print-only { display: block !important; }
	.vbb-no-print { display: none !important; }
	.vbb-inv-lines th, .vbb-inv-tax th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.vbb-inv tr, .vbb-table tr { page-break-inside: avoid; }
	.vbb-kpi { box-shadow: none; }
}

/* v2.26.4 - "Start in 3 easy steps" banner: normal height (260 px), photo on the right (assets/images/billing-banner.jpg) */
.vbb-banner { position: relative; overflow: hidden; border-radius: 16px; background: linear-gradient(180deg, #01669e 0%, #01608f 100%); color: #fff; height: 260px; display: flex; align-items: center; box-shadow: 0 8px 24px rgba(1, 99, 154, .22); }
.vbb-banner-img { position: absolute; top: 0; right: 0; height: 100%; width: auto; max-width: none; display: block;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }
.vbb-banner-txt { position: relative; z-index: 2; width: 58%; max-width: 620px; padding: 20px 28px; display: flex; flex-direction: column; gap: 9px; }
.vbb-banner-tag { display: none; }
.vbb-banner h3 { font-size: 22px; font-weight: 700; line-height: 1.2; color: #fff; margin: 0 0 2px; }
.vbb-banner ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.vbb-banner li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; color: rgba(255, 255, 255, .92); }
.vbb-banner li span { flex: 0 0 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #01639a; font-weight: 700; font-size: 12px; }
.vbb-banner li p { margin: 1px 0 0; }
.vbb-banner li a { color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .5); text-underline-offset: 3px; }
.vbb-banner li a:hover { text-decoration-color: #fff; }
.vbb-banner-btn { align-self: flex-start; margin-top: 4px; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 18px; border-radius: 10px; background: #fff; color: #01639a !important; font-weight: 700; font-size: 14.5px; text-decoration: none !important; box-shadow: 0 6px 16px rgba(0, 0, 0, .18); transition: transform .15s, box-shadow .15s; }
.vbb-banner-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(0, 0, 0, .24); }
@media (max-width: 1100px) { .vbb-banner-img { right: -20px; } .vbb-banner-txt { width: 62%; } }
@media (max-width: 760px) {
	.vbb-banner { flex-direction: column; align-items: stretch; height: auto; }
	.vbb-banner-img { position: relative; right: auto; width: 100%; height: 170px; object-fit: cover; object-position: 60% 25%; -webkit-mask-image: none; mask-image: none; }
	.vbb-banner-txt { width: 100%; max-width: none; padding: 14px 14px 16px; }
	.vbb-banner h3 { font-size: 19px; }
	.vbb-banner-btn { align-self: stretch; justify-content: center; }
}
