/* All rules are scoped to the Vendor Desk; no theme/framework dependency. */
#bbvt-app{--ink:#292d33;--muted:#66707c;--line:#e4e7eb;--accent:#e59663;--accent2:#fff3ea;--surface:#fff;--bg:#f6f7f9;--red:#ac3434;--amber:#96600e;color:var(--ink);font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);min-height:100vh;text-align:left;font-weight:400;letter-spacing:normal}
#bbvt-app *{box-sizing:border-box}#bbvt-app h1,#bbvt-app h2,#bbvt-app h3,#bbvt-app h4,#bbvt-app p{margin:0;color:inherit;font-family:inherit;font-weight:inherit;line-height:inherit}#bbvt-app h1{font-size:30px;font-weight:720;letter-spacing:-1px;line-height:1.2}#bbvt-app h2{font-size:18px;font-weight:680;letter-spacing:-.35px}#bbvt-app h3{font-size:15px;font-weight:700}#bbvt-app p{margin-bottom:12px}#bbvt-app p:last-child{margin-bottom:0}#bbvt-app small{font-size:12px}#bbvt-app a{color:var(--accent);text-decoration:none}#bbvt-app button,#bbvt-app input,#bbvt-app select,#bbvt-app textarea{font:inherit;line-height:1.4;letter-spacing:normal;text-transform:none}#bbvt-app button{cursor:pointer;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);padding:9px 13px;display:inline-flex;gap:7px;align-items:center;justify-content:center;font-weight:620;box-shadow:none;min-height:38px;white-space:nowrap}#bbvt-app button:hover{background:#f5f6f8;border-color:#cfd5dc}#bbvt-app button:focus-visible,#bbvt-app input:focus-visible,#bbvt-app select:focus-visible,#bbvt-app textarea:focus-visible,#bbvt-app a:focus-visible{outline:3px solid #b56533;outline-offset:2px}#bbvt-app button:disabled{opacity:.48;cursor:not-allowed}#bbvt-app .bbvt-primary{background:var(--accent);border-color:var(--accent);color:#fff}#bbvt-app .bbvt-primary:hover{background:#ffdabd}#bbvt-app .bbvt-danger{color:var(--red);border-color:#eac4c4;background:#fff7f7}#bbvt-app .bbvt-quiet{background:transparent;border-color:transparent;color:var(--muted)}#bbvt-app .bbvt-link{padding:0;min-height:24px;background:transparent;border:0;white-space:normal;text-align:left;justify-content:flex-start;color:var(--accent)}#bbvt-app .bbvt-small{font-size:12px;padding:6px 10px;min-height:30px}#bbvt-app svg{flex-shrink:0;width:18px;height:18px}#bbvt-app input:not([type=checkbox]):not([type=file]),#bbvt-app select,#bbvt-app textarea{width:100%;max-width:none;min-height:41px;border:1px solid #d4d9e0;border-radius:8px;background:#fff;padding:9px 11px;color:var(--ink);margin:0;box-shadow:none}#bbvt-app input[readonly],#bbvt-app input:disabled,#bbvt-app select:disabled{background:#f5f6f8;color:#707985}#bbvt-app input[type=checkbox]{width:17px;height:17px;accent-color:var(--accent);margin:0 6px 0 0;flex-shrink:0}#bbvt-app textarea{resize:vertical;min-height:86px}#bbvt-app table{width:100%;border-collapse:collapse;font-size:13px;margin:0;border:none;background:transparent}#bbvt-app th{font-size:11px;text-transform:uppercase;letter-spacing:.6px;color:var(--muted);font-weight:650;background:#f8f9fb;white-space:nowrap}#bbvt-app td,#bbvt-app th{padding:13px 15px;border:none;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}#bbvt-app tbody tr:last-child td{border-bottom:0}#bbvt-app td.bbvt-number,#bbvt-app th.bbvt-number{text-align:right;font-variant-numeric:tabular-nums}#bbvt-app td small{display:block;margin-top:3px;color:var(--muted)}#bbvt-app .bbvt-layout{display:grid;grid-template-columns:232px minmax(0,1fr);min-height:100vh}#bbvt-app .bbvt-sidebar{background:#ffffff;color:#3b4552;padding:30px 16px 20px;display:flex;flex-direction:column;gap:24px;position:sticky;top:0;height:100vh;z-index:4}#bbvt-app .bbvt-brand{display:flex;align-items:center;gap:11px;padding:0 8px}#bbvt-app .bbvt-monogram{background:#fff3ea;color:#3b4552;display:inline-flex;align-items:center;justify-content:center;width:39px;height:39px;border-radius:11px;font-size:15px;font-weight:800;letter-spacing:-1px;flex-shrink:0}#bbvt-app .bbvt-brand strong{font-size:15px;display:block;line-height:1.2;color:#fff}#bbvt-app .bbvt-brand small{font-size:10px;display:block;letter-spacing:1px;text-transform:uppercase;color:#66707c;margin-top:5px}#bbvt-app .bbvt-workspace{padding:12px 13px;border:1px solid #e4e7eb;border-radius:10px;font-size:12px;color:#66707c}#bbvt-app .bbvt-workspace strong{display:block;font-size:13px;color:#292d33;margin-top:4px;overflow-wrap:anywhere}#bbvt-app .bbvt-nav{display:grid;gap:4px}#bbvt-app .bbvt-nav button{justify-content:flex-start;background:transparent;border-color:transparent;color:#576170;font-size:13px;padding:12px}#bbvt-app .bbvt-nav button:hover{background:#f5f6f8}#bbvt-app .bbvt-nav button.active{background:#fff3ea;color:#292d33}#bbvt-app .bbvt-nav button span:last-child{margin-left:auto}#bbvt-app .bbvt-sidebar-foot{margin-top:auto;padding:13px 8px 0;border-top:1px solid #e4e7eb;font-size:11px;color:#66707c}#bbvt-app .bbvt-sidebar-foot button{color:#576170;justify-content:flex-start;padding-left:0;font-size:12px}#bbvt-app .bbvt-content{min-width:0}#bbvt-app .bbvt-topbar{background:#fff;border-bottom:1px solid var(--line);min-height:71px;padding:16px 32px;display:flex;align-items:center;justify-content:space-between;gap:14px}#bbvt-app .bbvt-topbar-left{color:var(--muted);font-size:12px;display:flex;gap:10px;align-items:center}#bbvt-app .bbvt-topbar-left b{color:var(--ink);font-weight:650}#bbvt-app .bbvt-topbar-right{display:flex;align-items:center;gap:12px}#bbvt-app .bbvt-avatar{width:32px;height:32px;border-radius:50%;background:#fff3ea;color:#3b4552;display:inline-flex;justify-content:center;align-items:center;font-size:12px;font-weight:700}#bbvt-app .bbvt-main{padding:31px 32px 45px;max-width:1760px;margin:auto}#bbvt-app .bbvt-page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:25px}#bbvt-app .bbvt-eyebrow{font-size:10px;letter-spacing:1.5px;text-transform:uppercase;color:var(--accent);font-weight:750;margin-bottom:8px}#bbvt-app .bbvt-subtitle{color:var(--muted);font-size:13px;margin-top:9px}#bbvt-app .bbvt-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}#bbvt-app .bbvt-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:24px}#bbvt-app .bbvt-stat{background:#fff;border:1px solid var(--line);border-radius:12px;padding:20px 21px;position:relative}#bbvt-app .bbvt-stat-label{color:var(--muted);font-size:12px;margin-bottom:13px}#bbvt-app .bbvt-stat-value{font-size:30px;font-weight:700;letter-spacing:-1px;font-variant-numeric:tabular-nums;line-height:1.1}#bbvt-app .bbvt-stat-note{color:var(--muted);font-size:11px;margin-top:11px}#bbvt-app .bbvt-stat.emphasis{background:#ffffff;border-color:#ffffff;color:#292d33}#bbvt-app .bbvt-stat.emphasis .bbvt-stat-label,#bbvt-app .bbvt-stat.emphasis .bbvt-stat-note{color:#66707c}#bbvt-app .bbvt-stat.alert .bbvt-stat-value{color:var(--red)}#bbvt-app .bbvt-panel{border:1px solid var(--line);border-radius:12px;background:#fff;overflow:hidden;margin-bottom:22px}#bbvt-app .bbvt-panel-head{padding:18px 20px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line)}#bbvt-app .bbvt-panel-body{padding:20px}#bbvt-app .bbvt-panel-head p{font-size:12px;color:var(--muted);margin-top:4px}#bbvt-app .bbvt-two-col{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);gap:22px;align-items:start}#bbvt-app .bbvt-split-col{display:grid;grid-template-columns:1fr 1fr;gap:20px}#bbvt-app .bbvt-muted{color:var(--muted)}#bbvt-app .bbvt-money{font-variant-numeric:tabular-nums;font-weight:680}#bbvt-app .bbvt-red{color:var(--red)}#bbvt-app .bbvt-badge{font-size:10px;letter-spacing:.15px;font-weight:650;padding:4px 8px;display:inline-flex;border-radius:5px;white-space:nowrap;background:#f0f2f5;color:#596471;line-height:1.3}#bbvt-app .bbvt-badge.overdue,#bbvt-app .bbvt-badge.issue{color:#9f3434;background:#ffebea}#bbvt-app .bbvt-badge.open,#bbvt-app .bbvt-badge.upcoming{color:#32618e;background:#eaf2fd}#bbvt-app .bbvt-badge.partial,#bbvt-app .bbvt-badge.due,#bbvt-app .bbvt-badge.planned{color:#8d5b17;background:#fff2d9}#bbvt-app .bbvt-badge.paid,#bbvt-app .bbvt-badge.received{color:#226b43;background:#e6f2e9}#bbvt-app .bbvt-badge.draft,#bbvt-app .bbvt-badge.po{color:#596471;background:#f0f2f5}#bbvt-app .bbvt-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:17px}#bbvt-app .bbvt-toolbar .bbvt-search{min-width:210px;max-width:380px;flex:1}#bbvt-app .bbvt-toolbar select{width:auto;min-width:140px}#bbvt-app .bbvt-tabs{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:19px}#bbvt-app .bbvt-tabs button{border-color:transparent;background:transparent;color:var(--muted);font-size:12px;padding:7px 12px;min-height:33px}#bbvt-app .bbvt-tabs button.active{background:#fff3ea;color:#292d33;border-color:#f1d7c4}#bbvt-app .bbvt-empty{text-align:center;padding:48px 24px}#bbvt-app .bbvt-empty h3{margin:10px 0 6px;font-size:17px}#bbvt-app .bbvt-empty p{color:var(--muted);max-width:470px;margin:0 auto 17px;font-size:13px}#bbvt-app .bbvt-empty-icon{width:51px;height:51px;border-radius:14px;background:#fff3ea;display:inline-flex;align-items:center;justify-content:center;color:#596471}#bbvt-app .bbvt-empty-icon svg{width:24px;height:24px}#bbvt-app .bbvt-list-item{display:flex;gap:12px;align-items:flex-start;padding:15px 20px;border-bottom:1px solid var(--line)}#bbvt-app .bbvt-list-item:last-child{border-bottom:0}#bbvt-app .bbvt-list-item .bbvt-grow{flex:1;min-width:0}#bbvt-app .bbvt-list-item strong{font-size:13px;display:block}#bbvt-app .bbvt-list-item small{color:var(--muted);font-size:11px}#bbvt-app .bbvt-date-tile{width:43px;border:1px solid var(--line);border-radius:8px;text-align:center;flex-shrink:0;overflow:hidden}#bbvt-app .bbvt-date-tile span{display:block;font-size:9px;background:#f6f7f9;color:var(--muted);padding-top:2px}#bbvt-app .bbvt-date-tile b{display:block;font-size:17px;line-height:1.6}#bbvt-app .bbvt-table-wrap{overflow:auto}#bbvt-app .bbvt-table-wrap td{max-width:360px;overflow-wrap:anywhere}#bbvt-app .bbvt-expansion>td{background:#f8f9fb;padding:18px}#bbvt-app .bbvt-expansion .bbvt-panel{margin:12px 0 0}#bbvt-app .bbvt-callout{padding:13px 15px;border-radius:9px;background:#f6f7f9;color:#46515f;font-size:12px;border:1px solid #e4e7eb;margin-bottom:18px}#bbvt-app .bbvt-callout.warning{background:#fff7e7;color:#7d5b22;border-color:#efdfbd}#bbvt-app .bbvt-callout.danger{background:#fff0ef;color:#943b36;border-color:#f1d5d1}#bbvt-app .bbvt-label{display:block;font-weight:620;font-size:12px;margin-bottom:6px;color:#46515f}#bbvt-app .bbvt-field{min-width:0}#bbvt-app .bbvt-field .help{display:block;color:var(--muted);font-size:11px;margin-top:5px}#bbvt-app .bbvt-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}#bbvt-app .bbvt-form-grid.three{grid-template-columns:repeat(3,1fr)}#bbvt-app .bbvt-span-all{grid-column:1/-1}#bbvt-app .bbvt-check{display:flex;align-items:center;gap:5px;font-size:12px;font-weight:550;min-height:28px}#bbvt-app .bbvt-section{margin-bottom:23px}#bbvt-app .bbvt-section-title{font-size:11px;font-weight:750;letter-spacing:1px;text-transform:uppercase;color:#66707c;border-bottom:1px solid var(--line);padding-bottom:9px;margin-bottom:15px;display:flex;justify-content:space-between;align-items:center}#bbvt-app .bbvt-inline{display:flex;gap:8px;align-items:center}#bbvt-app .bbvt-inline>*:first-child{flex:1;min-width:0}#bbvt-app .bbvt-dialog-shade{position:fixed;inset:0;background:rgba(25,31,40,.36);backdrop-filter:blur(3px);display:flex;justify-content:center;align-items:center;z-index:100050;padding:25px}#bbvt-app .bbvt-dialog{width:1060px;max-width:100%;max-height:calc(100dvh - 50px);background:#fff;border-radius:15px;display:flex;flex-direction:column;box-shadow:0 24px 100px #0004;overflow:hidden}#bbvt-app .bbvt-dialog.compact{width:620px}#bbvt-app .bbvt-dialog.wide{width:1200px}#bbvt-app .bbvt-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:20px 24px;border-bottom:1px solid var(--line)}#bbvt-app .bbvt-dialog-head h2{font-size:21px}#bbvt-app .bbvt-dialog-head small{color:var(--muted);display:block;margin-top:4px}#bbvt-app .bbvt-dialog-body{overflow:auto;padding:23px 24px;flex:1;min-height:0}#bbvt-app .bbvt-dialog-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:15px 24px;border-top:1px solid var(--line);background:#fafbfc;flex-wrap:wrap}#bbvt-app .bbvt-editor-cols{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:24px;align-items:start}#bbvt-app .bbvt-aside{background:#f8f9fb;border:1px solid var(--line);border-radius:11px;padding:17px;position:sticky;top:0}#bbvt-app .bbvt-balance-line{display:flex;justify-content:space-between;gap:10px;font-size:12px;margin:10px 0}#bbvt-app .bbvt-balance-line.total{font-size:15px;font-weight:750;border-top:1px solid var(--line);padding-top:13px;margin-top:13px}#bbvt-app .bbvt-installment{display:grid;grid-template-columns:minmax(90px,1fr) 140px 115px 35px;gap:8px;align-items:end;margin:10px 0}#bbvt-app .bbvt-dropzone{border:1.5px dashed #d4d9e0;background:#fafbfc;border-radius:11px;text-align:center;padding:23px;margin-bottom:17px}#bbvt-app .bbvt-dropzone input{max-width:100%;font-size:12px;margin-top:13px}#bbvt-app .bbvt-dropzone small{display:block;color:var(--muted);margin-top:6px}#bbvt-app .bbvt-file-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px}#bbvt-app .bbvt-file-card{border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fff}#bbvt-app .bbvt-file-preview{height:102px;background:#f3f5f7;display:flex;justify-content:center;align-items:center;color:#66707c;cursor:pointer}#bbvt-app .bbvt-file-preview img{width:100%;height:100%;object-fit:cover}#bbvt-app .bbvt-file-preview svg{width:32px;height:32px}#bbvt-app .bbvt-file-info{padding:10px}#bbvt-app .bbvt-file-info strong{font-size:12px;display:block;overflow-wrap:anywhere;margin-bottom:4px}#bbvt-app .bbvt-file-info small{font-size:10px;color:var(--muted)}#bbvt-app .bbvt-preview-frame{width:100%;height:65vh;border:1px solid var(--line);border-radius:7px}#bbvt-app .bbvt-preview-img{max-width:100%;max-height:65vh;display:block;margin:auto;object-fit:contain}#bbvt-app .bbvt-note{border-left:2px solid #e4e7eb;padding:4px 0 4px 15px;margin:17px 0}#bbvt-app .bbvt-note p{white-space:pre-wrap;font-size:13px;margin-top:8px;overflow-wrap:anywhere}#bbvt-app .bbvt-note small{font-size:11px;color:var(--muted)}#bbvt-app details{border-bottom:1px solid var(--line);padding:12px 0}#bbvt-app summary{cursor:pointer;font-size:12px;font-weight:650}#bbvt-app pre{white-space:pre-wrap;word-break:break-word;font:11px/1.6 monospace;background:#f5f6f8;padding:12px;border-radius:7px;max-height:350px;overflow:auto}#bbvt-app .bbvt-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}#bbvt-app .bbvt-weekday{background:#f8f9fb;padding:12px;font-size:10px;font-weight:750;letter-spacing:.6px;text-align:right;border-bottom:1px solid var(--line)}#bbvt-app .bbvt-day{min-height:125px;padding:8px 7px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);min-width:0}#bbvt-app .bbvt-day:nth-child(7n){border-right:0}#bbvt-app .bbvt-day.outside{background:#fafbfc;color:#818a96}#bbvt-app .bbvt-day-number{font-size:11px;font-weight:650;display:flex;justify-content:flex-end;margin:0 2px 9px}#bbvt-app .bbvt-day.today .bbvt-day-number span{color:#fff;background:var(--accent);width:24px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:50%;margin-top:-3px;margin-bottom:-3px}#bbvt-app button.bbvt-calendar-event{display:block;width:100%;min-height:0;white-space:normal;text-align:left;padding:6px;font-size:10px;line-height:1.35;background:#edf4fb;border:0;border-left:2px solid #6c9dc5;border-radius:4px;margin-bottom:5px;color:#32618e}#bbvt-app button.bbvt-calendar-event.overdue{background:#fff0ee;color:#a2433c;border-left-color:#d47969}#bbvt-app button.bbvt-calendar-event.paid{background:#edf6ea;color:#4d7948;border-left-color:#92b27c}#bbvt-app button.bbvt-calendar-event strong,#bbvt-app button.bbvt-calendar-event span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#bbvt-app .bbvt-calendar-legend{font-size:11px;padding:14px 18px;display:flex;gap:18px;flex-wrap:wrap}#bbvt-app .bbvt-calendar-legend span{display:flex;align-items:center;gap:6px}#bbvt-app .bbvt-dot{width:7px;height:7px;border-radius:50%;display:inline-block;background:#6c9dc5}#bbvt-app .bbvt-dot.red{background:#d47969}#bbvt-app .bbvt-dot.green{background:#92b27c}#bbvt-app .bbvt-toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);z-index:100100;background:#353b44;color:#fff;border-radius:10px;box-shadow:0 10px 35px #0003;padding:13px 20px;max-width:min(650px,90vw);font-size:13px}#bbvt-app .bbvt-toast.error{background:#923f36}#bbvt-app .bbvt-loading,#bbvt-app .bbvt-lock{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:25px;text-align:center;background:radial-gradient(ellipse at top,#ffffff,transparent 70%),#f6f7f9}#bbvt-app .bbvt-loading h1{margin:18px 0 12px}#bbvt-app .bbvt-lock-card{padding:35px;background:#fff;border:1px solid var(--line);box-shadow:0 15px 50px #2029370d;border-radius:18px;width:410px;max-width:100%;text-align:center}#bbvt-app .bbvt-lock-card h1{font-size:25px;margin:19px 0 10px}#bbvt-app .bbvt-lock-card p{color:var(--muted);font-size:13px;margin-bottom:22px}#bbvt-app .bbvt-lock-card .bbvt-primary{width:100%;margin-top:13px}#bbvt-app .bbvt-lock-card input[type=password]{text-align:center;font-size:20px;letter-spacing:4px;min-height:50px}#bbvt-app .bbvt-save-status{font-size:11px;color:var(--muted)}#bbvt-app .bbvt-rule{height:1px;background:var(--line);margin:20px 0}#bbvt-app .bbvt-mobile-menu{display:none}#bbvt-app .bbvt-pagination{display:flex;justify-content:space-between;padding:13px 18px;align-items:center;font-size:12px;color:var(--muted)}#bbvt-app .bbvt-error-inline{padding:10px;color:var(--red);font-size:12px;background:#fff3f0;border-radius:7px;margin-bottom:12px}#bbvt-app .bbvt-kpi-pair{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}#bbvt-app .bbvt-kpi-pair:last-child{border:0}#bbvt-app .bbvt-detail-meta{font-size:11px;display:flex;gap:9px;color:var(--muted);flex-wrap:wrap;margin:9px 0}#bbvt-app .bbvt-inline-chip{background:#f0f2f5;padding:3px 7px;border-radius:4px;font-size:11px}#bbvt-app .bbvt-footer-note{font-size:10px;letter-spacing:.1px;color:#707985;margin-top:24px}#bbvt-app .bbvt-review-list{display:grid;gap:9px;margin-bottom:15px}#bbvt-app .bbvt-review-row{display:grid;grid-template-columns:25px 1fr 100px;gap:8px;align-items:center;padding:11px;border:1px solid var(--line);border-radius:8px;font-size:12px}#bbvt-app .bbvt-review-row input{margin:0}#bbvt-app .bbvt-search-results{border:1px solid var(--line);border-radius:8px;background:#fff;max-height:170px;overflow:auto;margin-top:7px}#bbvt-app .bbvt-search-results button{border-radius:0;border:0;border-bottom:1px solid var(--line);width:100%;justify-content:flex-start;font-size:12px;white-space:normal}#bbvt-app .bbvt-mini-total{padding:10px 0;font-size:13px;color:var(--accent);font-weight:650}.bbvt-standalone{margin:0!important;padding:0!important;background:#f6f7f9!important}.bbvt-standalone #wpadminbar{display:none!important}html:has(body.bbvt-standalone){margin-top:0!important}.bbvt-admin{margin:0 0 0 -20px}.bbvt-admin #bbvt-app .bbvt-sidebar{top:32px;height:calc(100vh - 32px)}
@media(min-width:1700px){#bbvt-app .bbvt-main{padding:35px 45px}#bbvt-app .bbvt-day{min-height:145px}}
@media(max-width:1200px){#bbvt-app .bbvt-layout{grid-template-columns:205px minmax(0,1fr)}#bbvt-app .bbvt-sidebar{padding:24px 11px}#bbvt-app .bbvt-main{padding:24px}#bbvt-app .bbvt-topbar{padding:15px 24px}#bbvt-app .bbvt-stats{gap:11px}#bbvt-app .bbvt-stat{padding:17px}#bbvt-app .bbvt-stat-value{font-size:26px}#bbvt-app .bbvt-two-col{grid-template-columns:1fr}#bbvt-app .bbvt-editor-cols{grid-template-columns:minmax(0,1fr) 235px;gap:20px}}
@media(max-width:900px){#bbvt-app .bbvt-layout{grid-template-columns:1fr}#bbvt-app .bbvt-sidebar{position:fixed;left:0;top:0;height:100dvh;width:235px;transform:translateX(-100%);transition:transform .2s;z-index:20}#bbvt-app .bbvt-sidebar.show{transform:translateX(0)}#bbvt-app .bbvt-mobile-menu{display:inline-flex}#bbvt-app .bbvt-topbar{padding:12px 18px}#bbvt-app .bbvt-topbar-left .bbvt-desktop-only{display:none}#bbvt-app .bbvt-main{padding:24px 18px}#bbvt-app .bbvt-editor-cols{grid-template-columns:1fr}#bbvt-app .bbvt-aside{position:static}#bbvt-app .bbvt-dialog-shade{padding:12px}#bbvt-app .bbvt-dialog{max-height:calc(100dvh - 24px)}#bbvt-app .bbvt-calendar-grid{min-width:700px}#bbvt-app .bbvt-split-col{grid-template-columns:1fr}.bbvt-admin #bbvt-app .bbvt-sidebar{top:0;height:100dvh}}
@media(max-width:600px){#bbvt-app .bbvt-stats{grid-template-columns:1fr 1fr}#bbvt-app .bbvt-stat-value{font-size:25px}#bbvt-app h1{font-size:25px}#bbvt-app .bbvt-page-head{flex-direction:column;gap:14px}#bbvt-app .bbvt-form-grid,#bbvt-app .bbvt-form-grid.three{grid-template-columns:1fr}#bbvt-app .bbvt-topbar-right small{display:none}#bbvt-app .bbvt-dialog-head,#bbvt-app .bbvt-dialog-body,#bbvt-app .bbvt-dialog-foot{padding:16px}#bbvt-app .bbvt-dialog-shade{padding:0}#bbvt-app .bbvt-dialog{border-radius:0;max-height:100dvh;height:100dvh}#bbvt-app .bbvt-installment{grid-template-columns:1fr 120px 75px 30px;gap:5px}#bbvt-app .bbvt-installment input{font-size:11px!important;padding:7px 5px!important}#bbvt-app .bbvt-panel-head{padding:15px}#bbvt-app .bbvt-main{padding:22px 12px}#bbvt-app .bbvt-topbar-left{font-size:11px}#bbvt-app .bbvt-username{display:none}#bbvt-app .bbvt-table-wrap td,#bbvt-app .bbvt-table-wrap th{padding:12px;font-size:12px}#bbvt-app .bbvt-toolbar{align-items:stretch}#bbvt-app .bbvt-toolbar .bbvt-search{max-width:none}}
@media print{#bbvt-app .bbvt-sidebar,#bbvt-app .bbvt-topbar,#bbvt-app .bbvt-actions,#bbvt-app .bbvt-toolbar,#bbvt-app .bbvt-dialog-shade,#bbvt-app button{display:none!important}#bbvt-app .bbvt-layout{display:block}#bbvt-app .bbvt-main{padding:0}#bbvt-app .bbvt-panel{break-inside:avoid}}
#bbvt-app .bbvt-list-item .bbvt-grow>small{display:block;margin-top:3px}

/* v1.1 — invoice-only workspace, searchable vendors, directory and fixed navigation. */
#bbvt-app{--bbvt-nav-width:232px;--bbvt-admin-top:0px;--bbvt-sidebar-left:0px}
#bbvt-app .bbvt-layout{grid-template-columns:var(--bbvt-nav-width) minmax(0,1fr);align-items:start}
#bbvt-app .bbvt-content{grid-column:2;min-width:0}
#bbvt-app .bbvt-sidebar,.bbvt-admin #bbvt-app .bbvt-sidebar{position:fixed;left:var(--bbvt-sidebar-left);top:var(--bbvt-admin-top);width:var(--bbvt-nav-width);height:calc(100vh - var(--bbvt-admin-top));height:calc(100dvh - var(--bbvt-admin-top));overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#cbd0d7 #ffffff;align-self:start;z-index:25;gap:20px}
#bbvt-app .bbvt-sidebar>*{flex-shrink:0}
#bbvt-app .bbvt-nav{flex:1 0 auto;align-content:start}
#bbvt-app .bbvt-nav button{min-height:45px;white-space:normal;text-align:left;line-height:1.35}
#bbvt-app .bbvt-topbar{position:sticky;top:var(--bbvt-admin-top);z-index:6}
#bbvt-app .bbvt-nav-scrim,#bbvt-app .bbvt-mobile-nav-head{display:none}
#bbvt-app .bbvt-dialog-head,#bbvt-app .bbvt-dialog-foot{flex-shrink:0}
#bbvt-app .bbvt-dialog-body{overscroll-behavior:contain;scrollbar-gutter:stable}
body.bbvt-modal-open{overflow:hidden!important}
#bbvt-app .bbvt-tabs{overflow-x:auto;flex-wrap:nowrap;max-width:100%;padding-bottom:3px;scrollbar-width:thin}
#bbvt-app .bbvt-tabs button{flex:0 0 auto}
#bbvt-app .bbvt-tab-count{display:inline-flex;min-width:20px;justify-content:center;padding:1px 5px;border-radius:5px;background:#00000009;font-size:10px}
#bbvt-app .bbvt-badge.trash{background:#f0f2f5;color:#596471}
#bbvt-app button.bbvt-danger-link{color:var(--red);background:transparent;border-color:transparent}
#bbvt-app button.bbvt-danger-link:hover{background:#fff0ed;border-color:#efd0c9}
#bbvt-app .bbvt-row-actions{display:flex;gap:5px;justify-content:flex-end;flex-wrap:wrap;min-width:110px}
#bbvt-app .bbvt-actions-heading{text-align:right}
#bbvt-app .bbvt-vendor-row-title{display:flex;align-items:center;gap:5px}
#bbvt-app .bbvt-vendor-row-title>.bbvt-link{white-space:normal;text-align:left}
#bbvt-app .bbvt-vendor-row-meta{padding-left:36px;margin-top:2px}
#bbvt-app .bbvt-vendor-row-meta small{font-size:10px;max-width:280px}
#bbvt-app .bbvt-vendor-row-meta .bbvt-link{padding:0;min-height:22px;font-size:11px}
#bbvt-app .bbvt-vendor-field{position:relative}
#bbvt-app .bbvt-combobox{position:relative;z-index:10}
#bbvt-app .bbvt-combo-input{position:relative}
#bbvt-app .bbvt-combo-input input{padding-right:45px!important;width:100%}
#bbvt-app .bbvt-combo-input>button{position:absolute;right:3px;top:3px;bottom:3px;padding:5px 9px;min-height:0;border:0;background:transparent}
#bbvt-app .bbvt-vendor-popup{position:absolute;left:0;right:0;top:calc(100% + 5px);background:#fff;border:1px solid #d4d9e0;border-radius:10px;box-shadow:0 14px 35px #1f29371a;overflow:hidden;z-index:30}
#bbvt-app .bbvt-vendor-popup[hidden]{display:none!important}
#bbvt-app #bbvt-vendor-listbox{max-height:245px;max-height:min(245px,35dvh);overflow-y:auto;overscroll-behavior:contain}
#bbvt-app button.bbvt-vendor-option{width:100%;border:0;border-radius:0;border-bottom:1px solid #eef0f3;padding:11px 14px;text-align:left;justify-content:space-between;white-space:normal;align-items:center;background:#fff;color:var(--ink)}
#bbvt-app .bbvt-vendor-option strong{display:block;font-size:13px}
#bbvt-app .bbvt-vendor-option small{display:block;font-size:11px;color:var(--muted);margin-top:2px}
#bbvt-app button.bbvt-vendor-option:hover,#bbvt-app button.bbvt-vendor-option.highlighted{background:#fff3ea}
#bbvt-app .bbvt-vendor-popup-foot{border-top:1px solid var(--line);padding:5px 10px;background:#fafbfc}
#bbvt-app .bbvt-vendor-no-match{padding:20px 14px;font-size:12px;color:var(--muted)}
#bbvt-app .bbvt-vendor-selected{display:flex;align-items:center;gap:7px;flex-wrap:wrap;min-height:29px;font-size:11px;color:var(--muted);margin-top:5px}
#bbvt-app .bbvt-vendor-selected svg{width:14px;height:14px;color:var(--accent)}
#bbvt-app .bbvt-vendor-selected .bbvt-link{font-size:11px;padding:1px 5px;min-height:24px}
#bbvt-app .bbvt-vendor-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:18px}
#bbvt-app .bbvt-vendor-card{background:#fff;border:1px solid var(--line);border-radius:13px;padding:20px;display:flex;flex-direction:column;gap:19px;min-width:0;transition:box-shadow .15s,border-color .15s}
#bbvt-app .bbvt-vendor-card:hover{border-color:#d4d9e0;box-shadow:0 5px 20px #20293708}
#bbvt-app .bbvt-vendor-card-title{display:flex;gap:12px;align-items:center}
#bbvt-app .bbvt-vendor-card-title .bbvt-link{font-size:16px;line-height:1.3;white-space:normal;text-align:left;font-weight:700}
#bbvt-app .bbvt-vendor-card-title small{display:block;font-size:11px;color:var(--muted);margin-top:3px}
#bbvt-app .bbvt-vendor-mark{display:flex;align-items:center;justify-content:center;width:44px;height:44px;flex:0 0 44px;border-radius:12px;background:#fff3ea;color:#46515f;font-size:15px;font-weight:750}
#bbvt-app .bbvt-vendor-mark.large{width:64px;height:64px;flex-basis:64px;font-size:23px}
#bbvt-app .bbvt-vendor-card-contact{font-size:12px;overflow-wrap:anywhere;line-height:1.9}
#bbvt-app .bbvt-order-clock{background:#f6f7f9;border-radius:9px;padding:13px;display:flex;gap:10px;align-items:center}
#bbvt-app .bbvt-order-clock svg{width:20px;height:20px;flex-shrink:0;color:#c87843}
#bbvt-app .bbvt-order-clock strong{display:block;font-size:12px;font-weight:650}
#bbvt-app .bbvt-order-clock small{display:block;font-size:11px;color:var(--muted);margin-top:3px}
#bbvt-app .bbvt-order-clock.large{padding:18px;margin-bottom:22px;flex-wrap:wrap}
#bbvt-app .bbvt-order-clock.large>div{flex:1;min-width:200px}
#bbvt-app .bbvt-order-clock.large strong{font-size:15px}
#bbvt-app .bbvt-vendor-card-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:auto;padding-top:2px}
#bbvt-app .bbvt-vendor-card-bottom small{display:block;font-size:10px;color:var(--muted);margin-bottom:3px}
#bbvt-app .bbvt-vendor-card-bottom strong{font-size:18px}
#bbvt-app .bbvt-profile-hero{display:flex;align-items:center;gap:18px;margin:5px 0 25px}
#bbvt-app .bbvt-profile-hero h2{font-size:25px;margin:5px 0}
#bbvt-app .bbvt-profile-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:20px}
#bbvt-app .bbvt-profile-stats .bbvt-stat-value{font-size:28px}
#bbvt-app .bbvt-profile-heading{margin:25px 0 14px;font-size:15px;font-weight:700}
#bbvt-app .bbvt-contact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 25px;margin:0}
#bbvt-app .bbvt-contact-grid>div{padding:13px 0;border-bottom:1px solid var(--line);min-width:0}
#bbvt-app .bbvt-contact-grid dt{color:var(--muted);font-size:11px;margin-bottom:4px}
#bbvt-app .bbvt-contact-grid dd{margin:0;font-size:14px;overflow-wrap:anywhere}
#bbvt-app .bbvt-preserve-lines{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;margin:10px 0}
#bbvt-app .bbvt-optional-details{margin-top:10px}
@media(max-width:1200px){#bbvt-app{--bbvt-nav-width:205px}#bbvt-app .bbvt-vendor-cards{grid-template-columns:repeat(auto-fill,minmax(270px,1fr))}}
@media(max-width:900px){#bbvt-app .bbvt-layout{grid-template-columns:minmax(0,1fr)}#bbvt-app .bbvt-content{grid-column:1}#bbvt-app .bbvt-sidebar,.bbvt-admin #bbvt-app .bbvt-sidebar{left:0;top:var(--bbvt-admin-top);width:260px;height:calc(100dvh - var(--bbvt-admin-top));z-index:100030}#bbvt-app .bbvt-mobile-nav-head{display:flex;justify-content:flex-end;margin:-12px -3px -20px}#bbvt-app .bbvt-mobile-nav-head button{color:#3b4552}#bbvt-app button.bbvt-nav-scrim.show{display:block;position:fixed;inset:var(--bbvt-admin-top) 0 0;background:#20273366;border:0;border-radius:0;z-index:100020;width:100%;height:100dvh}#bbvt-app .bbvt-dialog-foot .bbvt-actions{gap:6px}#bbvt-app .bbvt-topbar{top:var(--bbvt-admin-top)}}
@media(max-width:600px){#bbvt-app .bbvt-vendor-cards{grid-template-columns:minmax(0,1fr)}#bbvt-app .bbvt-profile-stats{grid-template-columns:1fr;gap:8px}#bbvt-app .bbvt-profile-stats .bbvt-stat{padding:12px 15px}#bbvt-app .bbvt-contact-grid{grid-template-columns:1fr}#bbvt-app .bbvt-dialog-foot{max-height:35dvh;overflow:auto;gap:8px}#bbvt-app .bbvt-dialog-foot .bbvt-actions{justify-content:flex-start}#bbvt-app .bbvt-profile-hero{align-items:flex-start}#bbvt-app .bbvt-profile-hero h2{font-size:22px}#bbvt-app .bbvt-order-clock.large>div{min-width:150px}#bbvt-app .bbvt-installment{grid-template-columns:minmax(0,1fr) minmax(100px,1fr);padding:12px;border:1px solid var(--line);border-radius:8px;gap:10px}}
@media print{#bbvt-app .bbvt-content{grid-column:auto}#bbvt-app .bbvt-topbar{position:static}#bbvt-app .bbvt-sidebar{display:none!important}}

/* v1.2 — original Big Brother Wholesale artwork, orange brand, invoice cross-references. */
#bbvt-app .bbvt-brand{display:block;padding:0 2px}
#bbvt-app .bbvt-brand-home{display:block;width:100%;padding:9px 8px;background:#fff;border:1px solid #e4e7eb;border-radius:12px;min-height:0}
#bbvt-app .bbvt-brand-home:hover{background:#fff;border-color:#d4d9e0;box-shadow:0 0 0 2px #2027330a}
#bbvt-app .bbvt-logo-image-frame{display:block;width:100%;aspect-ratio:2.45;overflow:hidden;background:#fff;border-radius:4px}
#bbvt-app .bbvt-logo-image-frame img{display:block;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover;object-position:50% 47%;margin:0;filter:none!important}
#bbvt-app .bbvt-brand-caption{padding:14px 9px 0}
#bbvt-app .bbvt-brand-caption strong{font-size:16px;letter-spacing:-.2px}
#bbvt-app .bbvt-brand-caption small{color:#66707c;letter-spacing:1.15px}
#bbvt-app .bbvt-lock-brand{width:260px;max-width:100%;margin:0 auto 20px;padding:12px;background:#fff;border:1px solid #e4e7eb;border-radius:12px}
#bbvt-app .bbvt-loading-brand{display:block;width:240px;max-width:100%;margin:0 auto 20px}
#bbvt-app .bbvt-invoice-table{min-width:1030px}
#bbvt-app .bbvt-invoice-table.is-compact{min-width:890px}
#bbvt-app .bbvt-invoice-table td,#bbvt-app .bbvt-invoice-table th{padding:14px 12px}
#bbvt-app .bbvt-invoice-number-cell{min-width:195px;max-width:290px}
#bbvt-app .bbvt-invoice-identifiers{display:grid;gap:6px}
#bbvt-app .bbvt-invoice-reference{display:grid;grid-template-columns:48px minmax(0,1fr);gap:7px;align-items:baseline;font-size:12px;line-height:1.4}
#bbvt-app .bbvt-ref-label{font-size:9px;text-transform:uppercase;letter-spacing:.45px;font-weight:700;color:var(--muted);white-space:nowrap}
#bbvt-app .bbvt-invoice-reference .bbvt-link{font-size:13px;font-weight:720;min-height:20px;word-break:break-word}
#bbvt-app .bbvt-ref-value{color:#3b4552;font-weight:650;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
#bbvt-app .bbvt-invoice-description{margin-top:7px;font-size:11px;max-width:265px}
#bbvt-app .bbvt-invoice-date-cell,#bbvt-app .bbvt-delivery-date-cell{min-width:122px}
#bbvt-app .bbvt-date-value{white-space:nowrap;font-variant-numeric:tabular-nums;font-size:12px}
#bbvt-app .bbvt-invoice-table .bbvt-payment-context{font-size:10px;min-width:105px;line-height:1.45;margin-top:7px}
#bbvt-app .bbvt-invoice-table .bbvt-expected-date{color:#66707c;font-size:10px}
#bbvt-app .bbvt-invoice-table .bbvt-row-actions{min-width:72px;flex-direction:column;align-items:stretch}
#bbvt-app .bbvt-invoice-table .bbvt-row-actions button{min-height:29px;padding:4px 9px}
@media(min-width:1800px){#bbvt-app .bbvt-invoice-table .bbvt-row-actions{flex-direction:row;min-width:112px}}


/* v1.2.1 — light neutral workspace with restrained apricot accents.
   Presentation only. Layout, access controls and invoice logic are unchanged. */
#bbvt-app {
  --link: #3b4552;
  --accent-line: #f1c9ab;
  --primary-bg: #ffe5d2;
  --primary-hover: #ffdabd;
  --focus: #b56533;
}
/* Light navigation: the orange marker identifies the active page. */
#bbvt-app .bbvt-sidebar { background:var(--surface); color:var(--ink); border-right:1px solid var(--line); }
#bbvt-app .bbvt-brand strong { color:var(--ink); }
#bbvt-app .bbvt-brand small, #bbvt-app .bbvt-brand-caption small { color:var(--muted); }
#bbvt-app .bbvt-brand-home { border-color:transparent; border-radius:9px; }
#bbvt-app .bbvt-brand-home:hover { border-color:var(--line); box-shadow:none; }
#bbvt-app .bbvt-workspace { background:#f8f9fb; border-color:var(--line); }
#bbvt-app .bbvt-nav button.active { background:var(--accent2); color:var(--ink); box-shadow:inset 3px 0 0 var(--accent); }
#bbvt-app .bbvt-nav button.active svg { color:#c87843; }
#bbvt-app .bbvt-nav button.active span:last-child { background:#ffeadb; color:var(--ink); border-radius:5px; min-width:20px; padding:1px 4px; text-align:center; }
#bbvt-app .bbvt-sidebar-foot button:hover { background:#f5f6f8; color:var(--ink); }
/* Neutral, readable links keep invoice tables calm. */
#bbvt-app a, #bbvt-app .bbvt-link { color:var(--link); }
#bbvt-app a:hover, #bbvt-app .bbvt-link:hover { color:var(--ink); text-decoration:underline; text-underline-offset:3px; }
#bbvt-app .bbvt-link:hover { background:transparent; }
#bbvt-app .bbvt-eyebrow, #bbvt-app .bbvt-mini-total { color:var(--muted); }
/* Orange is a soft fill, never low-contrast orange body text. */
#bbvt-app .bbvt-primary { background:var(--primary-bg); border-color:var(--accent-line); color:var(--ink); }
#bbvt-app .bbvt-primary:hover { background:var(--primary-hover); border-color:#e9b58e; color:var(--ink); text-decoration:none; }
#bbvt-app a.bbvt-primary { color:var(--ink)!important; }
#bbvt-app .bbvt-tabs button.active { background:var(--accent2); color:var(--ink); border-color:#f1d7c4; }
#bbvt-app button:focus-visible, #bbvt-app input:focus-visible,
#bbvt-app select:focus-visible, #bbvt-app textarea:focus-visible,
#bbvt-app a:focus-visible { outline:2px solid var(--focus); outline-offset:2px; }
/* A small accent replaces the previously solid burnt-orange balance tile. */
#bbvt-app .bbvt-stat.emphasis { background:var(--surface); border-color:var(--line); color:var(--ink); }
#bbvt-app .bbvt-stat.emphasis::before { content:""; position:absolute; top:0; left:21px; width:34px; height:3px; border-radius:0 0 3px 3px; background:var(--accent); }
#bbvt-app .bbvt-stat.emphasis .bbvt-stat-label,
#bbvt-app .bbvt-stat.emphasis .bbvt-stat-note { color:var(--muted); }
#bbvt-app .bbvt-day.today .bbvt-day-number span { background:var(--primary-bg); color:var(--ink); }
#bbvt-app .bbvt-vendor-selected svg { color:#c87843; }
#bbvt-app .bbvt-vendor-popup { box-shadow:0 10px 28px #1f293714; }
#bbvt-app .bbvt-dialog { box-shadow:0 18px 70px #15203226; }
#bbvt-app .bbvt-lock-brand { border-color:transparent; }
#bbvt-app .bbvt-loading, #bbvt-app .bbvt-lock { background:var(--bg); }
/* Preserve meaningful status colors: overdue red, upcoming blue, paid green. */

/* v1.3.0 — clearer hierarchy and an actionable follow-up checklist. */
#bbvt-app { --ink:#252b34; --muted:#647081; --line:#e5e8ee; --bg:#f6f7f9; }
#bbvt-app h1 { font-size:28px; letter-spacing:-.75px; }
#bbvt-app .bbvt-main { padding-top:28px; }
#bbvt-app .bbvt-page-head { margin-bottom:24px; }
#bbvt-app .bbvt-subtitle { max-width:760px; line-height:1.65; }
#bbvt-app .bbvt-eyebrow { font-size:10px; letter-spacing:1.3px; }
#bbvt-app .bbvt-panel { border-radius:12px; box-shadow:0 1px 2px #19243303; }
#bbvt-app .bbvt-panel-head { padding:18px 22px; }
#bbvt-app .bbvt-section-title { font-size:13px; font-weight:720; color:var(--ink); letter-spacing:.1px; }
#bbvt-app .bbvt-section-help { color:var(--muted); font-size:12px; line-height:1.65; margin-bottom:14px; }
#bbvt-app th { background:#f8f9fb; font-size:10.5px; letter-spacing:.45px; padding-top:13px; padding-bottom:13px; }
#bbvt-app td { font-size:13px; }
#bbvt-app td small { font-size:11.5px; line-height:1.55; }
#bbvt-app .bbvt-invoice-table tbody tr:hover { background:#fcfcfd; }
#bbvt-app .bbvt-invoice-identifiers { gap:5px; }
#bbvt-app .bbvt-ref-label { letter-spacing:.25px; }
#bbvt-app .bbvt-invoice-description { max-width:250px; }
#bbvt-app .bbvt-badge { font-size:10.5px; border-radius:6px; padding:4px 8px; }
#bbvt-app .bbvt-badge.completed { color:#236748; background:#eaf4ee; }
#bbvt-app .bbvt-nav button { font-size:13px; font-weight:620; min-height:43px; }
#bbvt-app .bbvt-nav button span:last-child { border-radius:5px; padding:1px 5px; min-width:20px; text-align:center; background:#f0f2f5; color:var(--muted); font-size:11px; }
#bbvt-app .bbvt-nav button.active span:last-child { background:#ffeadb; color:var(--ink); }
#bbvt-app .bbvt-sidebar { gap:21px; }
#bbvt-app .bbvt-sidebar-foot { line-height:1.7; }
#bbvt-app .bbvt-toolbar .bbvt-search { min-height:42px; }
#bbvt-app .bbvt-toolbar { gap:12px; }
#bbvt-app .bbvt-tabs button { min-height:36px; }
#bbvt-app .bbvt-tabs .bbvt-tab-count { border-radius:5px; font-variant-numeric:tabular-nums; }
#bbvt-app .bbvt-row-actions .bbvt-danger-link { color:var(--muted); font-weight:500; }
#bbvt-app .bbvt-row-actions .bbvt-danger-link:hover { color:var(--red); background:#fff4f4; }
#bbvt-app .bbvt-vendor-name { font-weight:720; color:var(--ink); font-size:13px; line-height:1.45; }
#bbvt-app .bbvt-vendor-row-title .bbvt-vendor-name { font-size:15px; font-weight:750; letter-spacing:-.1px; }
#bbvt-app .bbvt-vendor-row-title { gap:10px; }
#bbvt-app .bbvt-vendor-row-title > .bbvt-quiet { width:32px; min-width:32px; min-height:32px; padding:5px; border:1px solid var(--line); border-radius:8px; background:#fff; }
#bbvt-app .bbvt-vendor-row-meta { margin-left:42px; margin-top:4px; }
#bbvt-app .bbvt-vendor-row-meta .bbvt-link { color:var(--muted); font-size:11.5px; font-weight:500; min-height:22px; padding:0; }
#bbvt-app .bbvt-balances-table > tbody > .bbvt-vendor-balance-row > td { padding-top:20px; padding-bottom:20px; }
#bbvt-app .bbvt-balances-table > tbody > .bbvt-vendor-balance-row > td:first-child { min-width:270px; width:36%; }
#bbvt-app .bbvt-balances-table > tbody > .bbvt-vendor-balance-row > .bbvt-money { font-size:16px; font-weight:700; }
#bbvt-app .bbvt-vendor-balance-row.is-expanded { background:#fafbfc; }
#bbvt-app .bbvt-expansion > td { background:#f7f8fa; padding:20px; border-bottom:1px solid var(--line); }
#bbvt-app .bbvt-expansion-label { font-size:12px; font-weight:700; color:var(--ink); margin-bottom:12px; }
#bbvt-app .bbvt-expansion .bbvt-panel { margin-bottom:4px; }
#bbvt-app .bbvt-balance-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); background:#fff; border:1px solid var(--line); border-radius:12px; margin:0 0 22px; padding:17px 0; }
#bbvt-app .bbvt-balance-summary > div { padding:0 24px; border-right:1px solid var(--line); }
#bbvt-app .bbvt-balance-summary > div:last-child { border:0; }
#bbvt-app .bbvt-balance-summary span { display:block; font-size:12px; color:var(--muted); margin-bottom:4px; }
#bbvt-app .bbvt-balance-summary strong { display:block; font-size:23px; font-weight:700; letter-spacing:-.45px; font-variant-numeric:tabular-nums; }
#bbvt-app .bbvt-vendor-card-title .bbvt-vendor-name { font-size:15px; }
#bbvt-app .bbvt-dialog-head { background:#fff; }
#bbvt-app .bbvt-dialog-head h2 { font-size:20px; line-height:1.3; letter-spacing:-.3px; }
#bbvt-app .bbvt-dialog-foot { background:#fafbfc; }
#bbvt-app .bbvt-aside { background:#f8f9fb; border-color:var(--line); }
#bbvt-app .bbvt-label { font-weight:620; font-size:12px; }
#bbvt-app .bbvt-field .help { font-size:11.5px; line-height:1.55; }
#bbvt-app .bbvt-inline-note { display:flex; align-items:flex-start; gap:9px; color:var(--muted); font-size:12px; line-height:1.65; margin:0 0 18px; }
#bbvt-app .bbvt-inline-note svg { margin-top:2px; width:16px; height:16px; }
#bbvt-app .bbvt-followup-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:0 0 23px; }
#bbvt-app .bbvt-followup-summary button { justify-content:flex-start; background:#fff; padding:18px; min-height:72px; border-radius:12px; font-size:13px; color:var(--muted); font-weight:550; white-space:normal; text-align:left; }
#bbvt-app .bbvt-followup-summary button span { flex:1; }
#bbvt-app .bbvt-followup-summary button b { font-size:24px; font-weight:720; color:var(--ink); font-variant-numeric:tabular-nums; }
#bbvt-app .bbvt-followup-summary button.active { border-color:#f0cdb3; background:#fffaf6; }
#bbvt-app .bbvt-followup-filters .bbvt-tabs { margin:0; }
#bbvt-app .bbvt-followup-filters .bbvt-search { margin-left:auto; }
#bbvt-app .bbvt-followup-list { display:grid; gap:12px; }
#bbvt-app .bbvt-followup-card { display:grid; grid-template-columns:minmax(190px,1.1fr) minmax(200px,1.35fr) minmax(150px,.9fr) 173px; gap:22px; align-items:center; padding:20px 22px; background:#fff; border:1px solid var(--line); border-radius:12px; }
#bbvt-app .bbvt-followup-card:hover { border-color:#d7dde5; }
#bbvt-app .bbvt-followup-vendor { min-width:0; }
#bbvt-app .bbvt-followup-vendor .bbvt-vendor-name { font-size:14px; font-weight:720; }
#bbvt-app .bbvt-followup-vendor small { color:var(--muted); display:block; font-size:11.5px; overflow-wrap:anywhere; margin:5px 0 8px; }
#bbvt-app .bbvt-followup-task { min-width:0; }
#bbvt-app .bbvt-followup-task p { margin:7px 0 0; font-size:12.5px; line-height:1.6; overflow-wrap:anywhere; }
#bbvt-app .bbvt-followup-meta strong { font-size:12px; font-weight:620; display:block; }
#bbvt-app .bbvt-followup-meta small { display:block; margin-top:4px; font-size:11.5px; color:var(--muted); line-height:1.5; }
#bbvt-app .bbvt-followup-actions { display:flex; flex-direction:column; align-items:stretch; gap:7px; }
#bbvt-app .bbvt-followup-actions button { min-height:34px; font-size:12px; }
#bbvt-app .bbvt-followup-actions .bbvt-quiet { font-weight:500; }
#bbvt-app .bbvt-resolution-note { display:block; font-size:12px; color:var(--muted); border-left:2px solid #dae7df; padding-left:10px; margin-top:9px; white-space:pre-wrap; overflow-wrap:anywhere; }
#bbvt-app .bbvt-task-checklist { display:grid; gap:0; border:1px solid var(--line); border-radius:9px; overflow:hidden; }
#bbvt-app .bbvt-task-check { display:flex; align-items:center; gap:12px; padding:13px 14px; border-bottom:1px solid var(--line); background:#fff; }
#bbvt-app .bbvt-task-check:last-child { border-bottom:0; }
#bbvt-app .bbvt-task-check > div { flex:1; min-width:0; }
#bbvt-app .bbvt-task-check strong { display:block; font-size:12px; font-weight:650; }
#bbvt-app .bbvt-task-check small { display:block; font-size:11.5px; color:var(--muted); margin-top:4px; overflow-wrap:anywhere; }
#bbvt-app .bbvt-review-facts { display:grid; grid-template-columns:1fr 1fr; border:1px solid var(--line); border-radius:10px; margin:0 0 18px; }
#bbvt-app .bbvt-review-facts > div { padding:14px 16px; }
#bbvt-app .bbvt-review-facts dt { font-size:11px; color:var(--muted); margin-bottom:4px; }
#bbvt-app .bbvt-review-facts dd { margin:0; font-size:13px; color:var(--ink); font-weight:650; }
#bbvt-app .bbvt-existing-issue { background:#f8f9fb; padding:14px 16px; border-radius:9px; margin-bottom:18px; }
#bbvt-app .bbvt-existing-issue strong { display:block; font-size:12px; margin-bottom:7px; }
#bbvt-app .bbvt-existing-issue p { font-size:13px; white-space:pre-wrap; overflow-wrap:anywhere; }
@media(max-width:1250px){
 #bbvt-app .bbvt-followup-card { grid-template-columns:minmax(0,1fr) minmax(0,1.2fr); gap:16px 24px; }
 #bbvt-app .bbvt-followup-meta { grid-column:1; }
 #bbvt-app .bbvt-followup-actions { flex-direction:row; flex-wrap:wrap; justify-content:flex-end; align-items:center; grid-column:2; }
}
@media(max-width:700px){
 #bbvt-app h1 { font-size:25px; }
 #bbvt-app .bbvt-main { padding-top:20px; }
 #bbvt-app .bbvt-balance-summary > div { padding:0 13px; }
 #bbvt-app .bbvt-balance-summary strong { font-size:19px; }
 #bbvt-app .bbvt-balance-summary span { font-size:11px; }
 #bbvt-app .bbvt-followup-summary { gap:8px; }
 #bbvt-app .bbvt-followup-summary button { padding:12px; flex-wrap:wrap; gap:7px; align-content:center; min-height:88px; font-size:12px; }
 #bbvt-app .bbvt-followup-summary button svg { display:none; }
 #bbvt-app .bbvt-followup-summary button span { flex:0 0 100%; }
 #bbvt-app .bbvt-followup-summary button b { font-size:22px; }
 #bbvt-app .bbvt-followup-filters .bbvt-tabs { flex:1 0 100%; }
 #bbvt-app .bbvt-followup-filters .bbvt-search { min-width:0; margin:0; flex:1 1 100%; max-width:none; }
 #bbvt-app .bbvt-followup-card { grid-template-columns:minmax(0,1fr); padding:18px; gap:15px; }
 #bbvt-app .bbvt-followup-meta,#bbvt-app .bbvt-followup-actions { grid-column:1; }
 #bbvt-app .bbvt-followup-actions { justify-content:flex-start; border-top:1px solid var(--line); padding-top:13px; }
 #bbvt-app .bbvt-followup-actions button { min-height:40px; }
 #bbvt-app .bbvt-task-check { flex-wrap:wrap; }
 #bbvt-app .bbvt-task-check > div { flex:1 0 100%; }
 #bbvt-app .bbvt-dialog-head h2 { font-size:18px; }
}
#bbvt-app .bbvt-vendor-row-meta { padding-left:0; }
#bbvt-app td small.bbvt-paperwork-reviewed { color:#406b54; font-size:11px; }

/* 1.4 — simplified invoice editor. Neutral surfaces; orange only on actions. */
#bbvt-app .bbvt-simple-dialog{width:min(1060px,calc(100vw - 48px));max-width:1060px}
#bbvt-app .bbvt-simple-dialog .bbvt-dialog-body{padding:22px 30px 28px;background:#fff}
#bbvt-app .bbvt-simple-dialog .bbvt-dialog-head{padding:22px 30px 18px}
#bbvt-app .bbvt-simple-dialog .bbvt-dialog-foot{padding:13px 24px;gap:16px}
#bbvt-app .bbvt-simple-dialog .bbvt-dialog-foot>div:first-child{display:flex;align-items:center;gap:14px;min-width:0}
#bbvt-app .bbvt-simple-dialog .bbvt-dialog-foot .bbvt-actions{flex-wrap:nowrap}
#bbvt-app .bbvt-simple-dialog .bbvt-save-status{font-size:11px;line-height:1.45;max-width:280px;overflow-wrap:anywhere}
#bbvt-app .bbvt-simple-dialog .bbvt-editor-tabs{border-bottom:1px solid var(--line);padding-bottom:12px;margin-bottom:18px}
#bbvt-app .bbvt-simple-invoice .bbvt-section{border:0;padding:0;margin:0 0 23px}
#bbvt-app .bbvt-simple-invoice .bbvt-section-title{font-size:13px;text-transform:none;letter-spacing:0;padding:0;margin-bottom:13px;display:flex;align-items:center;gap:12px}
#bbvt-app .bbvt-simple-invoice .bbvt-section-title::after{content:'';flex:1;height:1px;background:#eceff2}
#bbvt-app .bbvt-simple-invoice .bbvt-form-grid{gap:13px 18px}
#bbvt-app .bbvt-vendor-date-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(170px,1fr);gap:18px;align-items:start;margin-bottom:13px}
#bbvt-app .bbvt-vendor-selected{font-size:11px;min-height:19px}
#bbvt-app .bbvt-core-grid{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.35fr);gap:32px;align-items:start}
#bbvt-app .bbvt-core-grid>div{min-width:0}
#bbvt-app .bbvt-amount-main{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap}
#bbvt-app .bbvt-amount-main .bbvt-field{flex:1;min-width:150px}
#bbvt-app .bbvt-amount-main>button{margin-bottom:5px;padding-right:0;padding-left:0;font-size:11.5px}
#bbvt-app .bbvt-amount-main input{font-size:18px;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:-.2px}
#bbvt-app .bbvt-amount-main input[readonly]{background:#f8f9fb;color:var(--ink)}
#bbvt-app .bbvt-draft-strip{display:flex;align-items:center;gap:9px;padding:11px 13px;border-radius:8px;background:#f7f8fa;color:var(--muted);font-size:12px;margin-bottom:22px}
#bbvt-app .bbvt-draft-strip strong{color:var(--ink);font-weight:650}
#bbvt-app .bbvt-amount-adjustment{background:#fffaf7;border:1px solid #f1dfd2;border-radius:9px;padding:14px;margin-top:13px;display:grid;gap:12px}
#bbvt-app .bbvt-amount-adjustment textarea{min-height:66px}
#bbvt-app .bbvt-adjusted-total{display:flex;justify-content:space-between;font-size:12px;border-top:1px solid #eadfd7;padding-top:10px}
#bbvt-app .bbvt-adjusted-total strong{font-size:16px}
#bbvt-app .bbvt-amount-history{display:grid;gap:9px;margin:0 0 12px}
#bbvt-app .bbvt-amount-history>div{display:flex;gap:12px;justify-content:space-between;font-size:12px}
#bbvt-app .bbvt-amount-history dt{color:var(--muted)}
#bbvt-app .bbvt-amount-history dd{margin:0;font-weight:650;text-align:right;white-space:nowrap}
#bbvt-app .bbvt-clean-disclosure{border:1px solid var(--line);border-radius:9px;margin:13px 0 20px;overflow:visible;background:#fff}
#bbvt-app .bbvt-clean-disclosure>summary{display:flex;align-items:center;gap:12px;cursor:pointer;padding:12px 14px;font-size:12px;font-weight:620;list-style:none;outline-offset:3px}
#bbvt-app .bbvt-clean-disclosure>summary::-webkit-details-marker{display:none}
#bbvt-app .bbvt-clean-disclosure>summary>small{color:var(--muted);font-size:11px;font-weight:400;margin-left:auto}
#bbvt-app .bbvt-clean-disclosure>summary>svg{width:15px;height:15px;margin-left:auto;color:var(--muted);transition:transform .15s}
#bbvt-app .bbvt-clean-disclosure[open]>summary>svg{transform:rotate(180deg)}
#bbvt-app .bbvt-clean-disclosure[open]>summary{border-bottom:1px solid var(--line)}
#bbvt-app .bbvt-disclosure-body{padding:15px}
#bbvt-app .bbvt-disclosure-body .bbvt-section-help{font-size:11px;margin:0}
#bbvt-app .bbvt-amount-main+.bbvt-clean-disclosure{margin-bottom:0}
#bbvt-app .bbvt-payment-main{display:flex;gap:20px;align-items:flex-start;flex-wrap:wrap}
#bbvt-app .bbvt-payment-main>.bbvt-field{max-width:390px;flex:1;min-width:220px}
#bbvt-app .bbvt-payment-main>button{margin-top:24px}
#bbvt-app .bbvt-custom-terms{margin-top:13px;border:1px solid var(--line);border-radius:9px;padding:16px;background:#fafbfc}
#bbvt-app .bbvt-custom-terms>button{margin-top:13px}
#bbvt-app .bbvt-custom-terms .bbvt-inline-note{margin:12px 0 0}
#bbvt-app .bbvt-section-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:12px}
#bbvt-app .bbvt-section-heading h3{display:flex;gap:8px;align-items:center;font-size:13px}
#bbvt-app .bbvt-inline-between{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-top:10px}
#bbvt-app .bbvt-partial-note{margin-top:13px}
#bbvt-app .bbvt-partial-note textarea{min-height:62px}
#bbvt-app .bbvt-simple-invoice textarea[name=new_note]{min-height:68px}
#bbvt-app .bbvt-note-history-link{margin:7px 0}
#bbvt-app .bbvt-legacy-note{font-size:12px;margin:12px 0;background:#f8f9fb;border-radius:8px;padding:12px 14px}
#bbvt-app .bbvt-legacy-note small{color:var(--muted);font-size:11px}
#bbvt-app .bbvt-legacy-note p{white-space:pre-wrap;margin-top:5px}
#bbvt-app .bbvt-attachment-box{margin-top:14px;border:1px dashed #d6dce3;padding:13px 15px;border-radius:10px;background:#fcfcfd}
#bbvt-app .bbvt-attachment-top{display:flex;gap:16px;align-items:center;justify-content:space-between}
#bbvt-app .bbvt-attachment-top>div{display:flex;align-items:center;gap:10px;min-width:0}
#bbvt-app .bbvt-attachment-top>div>svg{color:var(--muted);width:23px;height:23px}
#bbvt-app .bbvt-attachment-top strong{display:block;font-size:12px;font-weight:620}
#bbvt-app .bbvt-attachment-top small{display:block;font-size:11px;color:var(--muted);margin-top:2px}
#bbvt-app .bbvt-upload-button{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:6px;background:#fff;border:1px solid var(--line);border-radius:7px;overflow:hidden;padding:8px 11px;font-size:12px;white-space:nowrap;min-height:36px;cursor:pointer}
#bbvt-app .bbvt-upload-button input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
#bbvt-app .bbvt-upload-button:focus-within{outline:3px solid #b56533;outline-offset:2px}
#bbvt-app .bbvt-file-chips{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}
#bbvt-app .bbvt-file-chip{font-size:11px;padding:6px 9px;min-height:30px;max-width:100%;white-space:normal;text-align:left;justify-content:flex-start}
#bbvt-app .bbvt-file-chip span{overflow-wrap:anywhere;min-width:0}
#bbvt-app .bbvt-queued-files{margin-top:12px;display:grid;gap:8px;font-size:12px}
#bbvt-app .bbvt-queued-files>div{display:flex;justify-content:space-between;gap:10px;align-items:center}
#bbvt-app .bbvt-queued-files>div>span{display:flex;align-items:center;gap:7px;flex-wrap:wrap;min-width:0;overflow-wrap:anywhere}
#bbvt-app .bbvt-queued-files small{font-size:10px;color:var(--muted)}
#bbvt-app .bbvt-file-back{margin-bottom:15px}
#bbvt-app .bbvt-exception-card{padding:16px;border:1px solid #eed2d2;background:#fffafa;border-radius:10px;margin-bottom:18px}
#bbvt-app .bbvt-exception-card.neutral{border-color:var(--line);background:#fafbfc}
#bbvt-app .bbvt-exception-card>small{font-size:11px;display:block;margin-top:8px}
#bbvt-app .bbvt-optional-actions{display:flex;gap:20px;margin:0 0 20px}
#bbvt-app .bbvt-optional-actions .bbvt-link{font-weight:550;color:var(--muted)}
#bbvt-app .bbvt-saved-ledger-strip{display:flex;gap:15px 26px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:17px;margin-top:19px;font-size:11.5px;color:var(--muted)}
#bbvt-app .bbvt-saved-ledger-strip b{color:var(--ink);margin-left:6px;font-variant-numeric:tabular-nums}
#bbvt-app .bbvt-save-reason{padding:15px;border-radius:9px;background:#fffaf7;border:1px solid #f1dfd2;margin:16px 0}
#bbvt-app .bbvt-more-wrap{position:relative;flex-shrink:0}
#bbvt-app .bbvt-more-pop{position:absolute;bottom:calc(100% + 12px);left:0;min-width:205px;max-width:calc(100vw - 45px);background:#fff;border:1px solid var(--line);border-radius:10px;padding:6px;box-shadow:0 6px 30px #15203220;z-index:5;display:grid;gap:2px}
#bbvt-app .bbvt-more-pop button{justify-content:flex-start;white-space:normal;text-align:left;min-height:38px;padding:9px 11px;border:0;background:#fff;font-size:12px}
#bbvt-app .bbvt-more-pop button:hover{background:#f5f6f8}
@media(max-width:800px){
 #bbvt-app .bbvt-simple-dialog{width:calc(100vw - 24px)}
 #bbvt-app .bbvt-simple-dialog .bbvt-dialog-body{padding:18px 20px 22px}
 #bbvt-app .bbvt-simple-dialog .bbvt-dialog-head{padding:18px 20px}
 #bbvt-app .bbvt-core-grid{grid-template-columns:minmax(0,1fr);gap:0}
 #bbvt-app .bbvt-amount-main .bbvt-field{max-width:290px}
 #bbvt-app .bbvt-simple-dialog .bbvt-dialog-foot{padding:12px 16px}
 #bbvt-app .bbvt-simple-dialog .bbvt-save-status{max-width:150px}
}
@media(max-width:540px){
 #bbvt-app .bbvt-simple-dialog{width:100%;height:100dvh;max-height:100dvh;border-radius:0}
 #bbvt-app .bbvt-simple-dialog .bbvt-dialog-shade{padding:0}
 #bbvt-app .bbvt-simple-dialog .bbvt-dialog-body{padding:16px}
 #bbvt-app .bbvt-simple-dialog .bbvt-dialog-head{padding:16px}
 #bbvt-app .bbvt-vendor-date-grid{grid-template-columns:minmax(0,1fr)}
 #bbvt-app .bbvt-simple-invoice .bbvt-form-grid{grid-template-columns:minmax(0,1fr)}
 #bbvt-app .bbvt-payment-main{display:block}
 #bbvt-app .bbvt-payment-main>.bbvt-field{max-width:none;min-width:0}
 #bbvt-app .bbvt-payment-main>button{margin-top:6px}
 #bbvt-app .bbvt-clean-disclosure>summary>small{display:none}
 #bbvt-app .bbvt-attachment-top{align-items:flex-start;flex-wrap:wrap;gap:10px}
 #bbvt-app .bbvt-simple-dialog .bbvt-dialog-foot{flex-wrap:wrap;gap:9px;padding:10px 14px}
 #bbvt-app .bbvt-simple-dialog .bbvt-dialog-foot>div:first-child{width:100%;justify-content:space-between}
 #bbvt-app .bbvt-simple-dialog .bbvt-save-status{max-width:210px;text-align:right;font-size:10.5px}
 #bbvt-app .bbvt-simple-dialog .bbvt-dialog-foot>.bbvt-actions{width:100%;display:flex}
 #bbvt-app .bbvt-simple-dialog .bbvt-dialog-foot>.bbvt-actions>button{flex:1;min-height:42px;font-size:12px}
 #bbvt-app .bbvt-simple-dialog .bbvt-installment{grid-template-columns:1fr 1fr}
 #bbvt-app .bbvt-section-heading{flex-wrap:wrap}
}

#bbvt-app .bbvt-simple-invoice .bbvt-section-title{border-bottom:0}
#bbvt-app .bbvt-clean-disclosure{padding:0}

/* v1.5 — explicit upfront purchases without Net-term questions. */
#bbvt-app .bbvt-payment-arrangement{margin-bottom:14px;max-width:100%}
#bbvt-app .bbvt-upfront-note{display:flex;align-items:flex-start;gap:10px;padding:13px 15px;border:1px solid #f1dfd1;border-radius:9px;background:#fff9f4}
#bbvt-app .bbvt-upfront-note>svg{margin-top:2px;color:#99613b}
#bbvt-app .bbvt-upfront-note strong{font-size:13px;font-weight:650}
#bbvt-app .bbvt-upfront-note small{display:block;margin-top:3px;color:var(--muted);line-height:1.5}
#bbvt-app .bbvt-upfront-label{font-weight:600;color:#62666e;font-size:11px}

/* v1.6 — neutral summaries and a focused spending workspace. */
#bbvt-app .bbvt-vendor-tabs{margin:-2px 0 24px;gap:6px;border-bottom:1px solid var(--line);padding-bottom:12px}
#bbvt-app .bbvt-spending-filter{display:grid;grid-template-columns:minmax(220px,1.6fr) minmax(145px,1fr) minmax(145px,1fr) auto;gap:14px;align-items:end;background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px}
#bbvt-app .bbvt-spending-filter button{min-height:40px}
#bbvt-app .bbvt-spending-presets{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:8px 0 22px}
#bbvt-app .bbvt-spending-presets>span{margin-left:auto;font-size:11px}
#bbvt-app .bbvt-spending-stats{display:grid;grid-template-columns:1.15fr 1.15fr .8fr;gap:16px;margin-bottom:24px}
#bbvt-app .bbvt-spending-stats .bbvt-stat-value{font-size:29px}
#bbvt-app .bbvt-report-warning{display:flex;gap:12px;align-items:center;border:1px solid #ecd8c9;border-radius:9px;background:#fffaf6;padding:12px 14px;margin-bottom:18px;font-size:12px}
#bbvt-app .bbvt-report-warning>span{flex:1}
#bbvt-app .bbvt-missing-invoices{display:grid;gap:6px;margin:0 0 18px;padding:10px 16px;border:1px solid var(--line)}
#bbvt-app .bbvt-spend-table{min-width:680px}
#bbvt-app .bbvt-spend-table td{padding:18px 20px}
#bbvt-app .bbvt-report-definition{margin-top:18px;background:#fafbfc}
#bbvt-app .bbvt-report-definition p{font-size:12px;line-height:1.7;margin:0 0 12px;color:var(--muted)}
#bbvt-app .bbvt-report-definition p:last-child{margin-bottom:0}
#bbvt-app .bbvt-profile-spending-link{margin:0 0 18px}
#bbvt-app .bbvt-summary-status{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 22px}
#bbvt-app .bbvt-summary-money{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;background:#fafbfc;border:1px solid var(--line);border-radius:12px;margin:0 0 26px;overflow:hidden}
#bbvt-app .bbvt-summary-money>div{padding:20px 17px;border-right:1px solid var(--line)}
#bbvt-app .bbvt-summary-money>div:last-child{border:0}
#bbvt-app .bbvt-summary-money span{display:block;font-size:11px;color:var(--muted);margin-bottom:9px}
#bbvt-app .bbvt-summary-money strong{font-size:22px;font-weight:700;letter-spacing:-.45px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#bbvt-app .bbvt-summary-money .bbvt-summary-balance{background:#fff7f0;border-top:3px solid #efbc98;padding-top:17px}
#bbvt-app .bbvt-summary-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;padding:0 0 24px;margin:0 0 24px;border-bottom:1px solid var(--line)}
#bbvt-app .bbvt-summary-facts dt{font-size:12px;color:var(--muted);margin-bottom:7px}
#bbvt-app .bbvt-summary-facts dd{margin:0;font-size:14px;font-weight:650}
#bbvt-app .bbvt-summary-facts small{display:block;font-size:11px;font-weight:400;color:var(--muted);margin-top:5px}
#bbvt-app .bbvt-summary-schedule{margin:-4px 0 24px;padding:0 14px;border:1px solid var(--line);border-radius:9px}
#bbvt-app .bbvt-summary-schedule>div{display:flex;justify-content:space-between;gap:14px;padding:12px 0;font-size:12px;border-bottom:1px solid var(--line)}
#bbvt-app .bbvt-summary-schedule>div:last-child{border:0}
#bbvt-app .bbvt-summary-schedule small{display:block;color:var(--muted);font-size:11px;margin-top:3px}
#bbvt-app .bbvt-summary-files{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#bbvt-app .bbvt-summary-file{justify-content:flex-start;gap:12px;text-align:left;min-height:70px;white-space:normal;padding:12px}
#bbvt-app .bbvt-summary-file>svg,#bbvt-app .bbvt-summary-file>img{width:42px;height:48px;object-fit:contain;background:#f6f7f9;border-radius:5px;padding:7px;flex-shrink:0;color:var(--muted)}
#bbvt-app .bbvt-summary-file span{font-size:12px;overflow-wrap:anywhere;min-width:0}
#bbvt-app .bbvt-summary-file small{display:block;font-size:11px;font-weight:400;color:var(--muted);margin-top:4px}
#bbvt-app .bbvt-summary-issue,#bbvt-app .bbvt-summary-review{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;border:1px solid var(--line);border-radius:9px;background:#fafbfc;margin-bottom:20px;font-size:12px}
#bbvt-app .bbvt-summary-issue{background:#fffafa;border-color:#efdada}
#bbvt-app .bbvt-summary-issue strong{display:flex;align-items:center;gap:8px}
#bbvt-app .bbvt-summary-issue p{margin:6px 0 0;white-space:pre-wrap}
#bbvt-app .bbvt-summary-links{display:flex;gap:12px 24px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:14px;margin-top:10px}
#bbvt-app .bbvt-latest-note{padding:12px 14px;border-left:2px solid #dfe3e8;background:#fafbfc;margin:12px 0;border-radius:0 7px 7px 0}
#bbvt-app .bbvt-latest-note>small{font-size:11px;color:var(--muted)}
#bbvt-app .bbvt-latest-note>p{margin:5px 0 0;font-size:12px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
#bbvt-app .bbvt-compact-upload{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:12px}
#bbvt-app .bbvt-compact-upload small{font-size:11px;color:var(--muted)}
#bbvt-app .bbvt-already-paid{margin-top:15px;padding-top:15px;border-top:1px solid var(--line)}
#bbvt-app .bbvt-already-paid>.bbvt-form-grid{margin-top:14px}
#bbvt-app .bbvt-already-paid p{align-self:center}
#bbvt-app .bbvt-quick-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#bbvt-app .bbvt-quick-actions button{justify-content:flex-start;min-height:44px;white-space:normal;text-align:left}
#bbvt-app .bbvt-settlement-total{display:flex;align-items:center;justify-content:space-between;padding:0 0 18px;border-bottom:1px solid var(--line);margin-bottom:18px;font-size:13px}
#bbvt-app .bbvt-settlement-total strong{font-size:24px;letter-spacing:-.5px}
#bbvt-app #settlement-form>.bbvt-field{margin-bottom:16px}
#bbvt-app #settlement-form>.bbvt-check{margin:13px 0;align-items:flex-start;font-size:12px}
#bbvt-app .bbvt-settlement-breakdown{margin:18px 0;background:#f7f8fa;border-radius:9px;padding:13px 15px;display:grid;gap:10px}
#bbvt-app .bbvt-settlement-breakdown>div{display:flex;justify-content:space-between;gap:12px;font-size:12px}
#bbvt-app #settlement-form>.bbvt-section-help{font-size:11px;line-height:1.6;margin-top:12px}
#bbvt-app .bbvt-invoice-tabs{overflow-x:auto;flex-wrap:nowrap;padding-bottom:6px}
#bbvt-app .bbvt-invoice-tabs button{white-space:nowrap;flex-shrink:0}
@media(max-width:1050px){
 #bbvt-app .bbvt-spending-filter{grid-template-columns:1fr 1fr}
 #bbvt-app .bbvt-spending-stats{grid-template-columns:1fr 1fr}
 #bbvt-app .bbvt-spending-stats>.bbvt-stat:last-child{grid-column:1/-1}
}
@media(max-width:650px){
 #bbvt-app .bbvt-summary-money{grid-template-columns:repeat(2,minmax(0,1fr))}
 #bbvt-app .bbvt-summary-money>div{padding:16px 13px;border-bottom:1px solid var(--line)}
 #bbvt-app .bbvt-summary-money strong{font-size:20px}
 #bbvt-app .bbvt-summary-facts{grid-template-columns:1fr 1fr}
 #bbvt-app .bbvt-summary-files{grid-template-columns:1fr}
 #bbvt-app .bbvt-summary-review,#bbvt-app .bbvt-summary-issue{align-items:flex-start;flex-wrap:wrap}
 #bbvt-app .bbvt-spending-filter{padding:14px;gap:12px}
 #bbvt-app .bbvt-spending-filter>.bbvt-field:first-child{grid-column:1/-1}
 #bbvt-app .bbvt-spending-filter>button{grid-column:1/-1}
 #bbvt-app .bbvt-spending-stats{gap:10px}
 #bbvt-app .bbvt-spending-stats .bbvt-stat{padding:16px}
 #bbvt-app .bbvt-spending-stats .bbvt-stat-value{font-size:23px}
 #bbvt-app .bbvt-spending-presets>span{width:100%;margin:5px 0}
 #bbvt-app .bbvt-report-warning{flex-wrap:wrap}
}

/* Compact spending pagination and explicit settlement confirmation. */
#bbvt-app .bbvt-report-pagination{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:15px;color:var(--muted);font-size:12px}
#bbvt-app .bbvt-report-pagination>div{display:flex;gap:12px;align-items:center}
#bbvt-app .bbvt-plain-fieldset{margin:0;padding:0;border:0;min-width:0}
@media(max-width:700px){#bbvt-app .bbvt-report-pagination{align-items:flex-start;flex-direction:column}}
