:root{--bp: #075b49;--bp-dark: #06493c;--lime: #d8ff79;--mint: #edf8f4;--ink: #17332d;--line: #dbe8e4}*{box-sizing:border-box}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#f7faf9;color:var(--ink)}a{text-decoration:none;color:inherit}.topbar{height:34px;background:var(--bp-dark);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 32px;font-size:13px}.brandbar{height:88px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 34px}.brand{display:flex;align-items:center;gap:14px}.mark{font-size:34px;color:var(--bp)}.brand-name{font-size:34px;font-weight:800;color:var(--bp);line-height:1}.brand-sub{font-size:12px;font-weight:700;color:var(--bp)}.shell{display:grid;grid-template-columns:260px 1fr;min-height:calc(100vh - 122px)}.sidebar{background:#fff;border-right:1px solid var(--line);padding:24px 14px}.nav{display:grid;gap:6px}.nav a{padding:12px 14px;border-radius:12px;font-weight:650;color:#416059}.nav a:hover,.nav a.active{background:var(--mint);color:var(--bp)}.content{padding:28px;overflow:auto}.tenant-switch{padding:8px 12px;background:var(--mint);border-radius:10px;font-weight:700;color:var(--bp);max-width:240px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media(max-width:950px){.shell{grid-template-columns:1fr}.sidebar{display:none}}@media(max-width:650px){.content{padding:16px}.brandbar{padding:0 16px}.brand-name{font-size:26px}.topbar{padding:0 14px}.tenant-switch{display:none}}.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:20px}.page-head h1{margin:0 0 6px;color:var(--bp-dark);font-size:30px}.eyebrow{text-transform:uppercase;letter-spacing:.08em;font-size:12px;font-weight:800;color:var(--bp)}.actions{display:flex;gap:10px;align-items:center}.section{margin-bottom:18px}.section h2{margin-top:0}@media(max-width:650px){.page-head{flex-direction:column}}.btn{display:inline-flex;align-items:center;justify-content:center;background:var(--bp);color:#fff;border:0;border-radius:11px;padding:11px 16px;font-weight:750;cursor:pointer}.btn.secondary{background:#fff;color:var(--bp);border:1px solid var(--bp)}.btn.small{padding:7px 10px;font-size:12px}.btn.danger{background:#a93434;color:#fff}.btn.success{background:var(--bp);color:#fff}.bp-row-actions .btn,.btn.bp-action{width:108px;min-width:108px;height:40px;min-height:40px;padding:0 10px;font-size:12px;line-height:1;white-space:nowrap}.icon-btn{border:0;background:#f5f8f7;border-radius:9px;padding:8px;cursor:pointer}.hero{background:linear-gradient(120deg,#fff,#f1faf7);border:1px solid var(--line);border-radius:22px;padding:28px;display:flex;justify-content:space-between;align-items:center;box-shadow:0 8px 25px #06493c0d}.hero h1{font-size:30px;margin:0 0 8px;color:var(--bp-dark)}.card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px;box-shadow:0 6px 18px #06493c0a}.card h3{margin:0 0 8px;color:var(--bp)}.card-top{display:flex;justify-content:space-between}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:20px}.card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.metric{font-size:34px;font-weight:800;color:var(--bp-dark)}.mini-stats{display:flex;gap:18px;border-top:1px solid var(--line);padding-top:12px;margin-top:15px;color:#526f68}.tenant-card,.finance-menu-card{transition:transform .15s ease,box-shadow .15s ease}.tenant-card:hover,.finance-menu-card:hover{transform:translateY(-2px);box-shadow:0 12px 28px #06493c1c}@media(max-width:950px){.grid,.card-grid{grid-template-columns:1fr 1fr}}@media(max-width:650px){.grid,.card-grid{grid-template-columns:1fr}}.table-wrap,.bp-list-wrap{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden}.table-head{padding:20px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.table,.bp-list,.billing-run-table{width:100%;border-collapse:collapse;background:#fff}.table th,.table td,.bp-list th,.bp-list td,.billing-run-table th,.billing-run-table td{padding:14px 16px;text-align:left;vertical-align:middle;border-bottom:1px solid #edf2f0;font-size:14px}.table th,.bp-list th,.billing-run-table th{background:#f3f8f6;color:#405f57;font-weight:800;white-space:nowrap}.table tbody tr:last-child td,.bp-list tbody tr:last-child td,.billing-run-table tbody tr:last-child td{border-bottom:0}.table tbody tr:hover,.bp-list tbody tr:hover{background:#fbfdfc}.bp-list-title{font-weight:800;color:var(--bp-dark)}.text-right{text-align:right}.row-actions,.bp-row-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px}.bp-row-actions{flex-wrap:nowrap;min-width:232px}.bp-row-actions form{margin:0}@media(max-width:760px){.bp-row-actions{flex-wrap:wrap;min-width:120px}}.status,.bp-status{display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:4px 11px;border-radius:999px;font-size:12px;font-weight:800;white-space:nowrap}.status.active,.bp-status.active,.bp-status.primary,.bp-status.completed,.bp-status.success,.bp-status.info{background:#e6f8cb;color:#326100}.status.inactive,.bp-status.locked,.bp-status.inactive,.bp-status.closed,.bp-status.expired{background:#f1eeee;color:#7b5555}.bp-status.processing,.bp-status.running,.bp-status.planned,.bp-status.pending{background:#e9f3ff;color:#245d8f}.bp-status.retry_pending,.bp-status.stale,.bp-status.warning,.bp-status.blocked{background:#fff3cd;color:#7a5b00}.bp-status.failed,.bp-status.error,.bp-status.cancelled{background:#fff0f0;color:#8a3030}.pill{display:inline-block;padding:5px 9px;border-radius:999px;background:var(--mint);color:var(--bp);font-size:12px;font-weight:700}.badge{display:inline-block;background:var(--lime);padding:8px 12px;border-radius:999px;font-size:13px;font-weight:700}input,select{width:100%;border:1px solid #ccdcd7;border-radius:10px;padding:11px 12px;background:#fff}.form-row{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;padding:16px;background:#f8fbfa;border-bottom:1px solid var(--line)}.bp-filter-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px;margin-bottom:18px}.bp-filter-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;align-items:end}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-width:900px}.form-grid label{font-weight:700;color:#395950}.form-grid label input,.form-grid label select{margin-top:7px}.form-grid small{display:block;margin-top:5px;font-weight:400}.span-2{grid-column:span 2}.check{display:flex!important;align-items:center;gap:8px;font-weight:600!important}.check input{width:auto}.inline-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px;padding-top:15px;border-top:1px solid var(--line)}.inline-form .btn{align-self:end}.records{display:grid;gap:9px;margin-bottom:16px}.record{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#fbfdfc}@media(max-width:950px){.form-row{grid-template-columns:1fr 1fr}}@media(max-width:650px){.form-row,.form-grid{grid-template-columns:1fr}.span-2{grid-column:auto}}.tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}.tabs a{background:#fff;border:1px solid var(--line);padding:9px 12px;border-radius:999px;color:var(--bp);font-weight:700}.finance-tabs{display:flex;flex-wrap:wrap;gap:14px;margin:18px 0 24px}.finance-tabs .btn{border-radius:999px;padding:13px 22px;text-decoration:none;white-space:nowrap}.finance-tabs .btn.active{background:#eef5f2;border-color:#b8d3c9;box-shadow:inset 0 0 0 1px #c8ddd5}.pagination,.bp-pagination{margin-top:16px}.pagination nav{display:flex;justify-content:center}.pagination svg,nav[role=navigation] svg{width:18px;height:18px}.pagination a,.pagination span,nav[role=navigation] a,nav[role=navigation] span{display:inline-flex;align-items:center;justify-content:center}.pagination .flex{display:flex;gap:8px;align-items:center}.flash{padding:12px 16px;background:#e8f8d2;border-radius:12px;margin-bottom:16px}.error-box{background:#fff0f0;border:1px solid #f1c2c2;color:#8a3030;padding:12px 16px;border-radius:12px;margin-bottom:16px}.muted{color:#6f827e}.login-page{min-height:100vh;background:linear-gradient(#190f058c,#190f058c),url(/images/bookport-bg.svg) center/cover;display:flex;flex-direction:column}.login-header{background:#fff;padding:28px 60px;display:flex;justify-content:space-between;align-items:center}.login-card{width:min(920px,90%);margin:auto;display:grid;grid-template-columns:1.05fr .95fr;background:#fff;border-radius:20px;overflow:hidden;box-shadow:0 18px 60px #00000040}.login-panel{padding:42px}.login-info{padding:42px;background:var(--bp);color:#fff}.login-info h2{font-size:28px}.login-form{display:grid;gap:14px}.login-form label{font-weight:700}.login-form .btn{width:100%;font-size:16px}.lang{display:flex;gap:7px}.lang a{padding:6px 9px;border-radius:8px}.lang a.active{background:var(--bp);color:#fff}@media(max-width:950px){.login-card{grid-template-columns:1fr}.login-info{display:none}}.bp-code-panel{padding:44px 42px}.bp-code-panel h1{font-size:26px;margin:0 0 10px;color:var(--bp-dark)}.bp-code-lead{margin:0 0 26px;font-size:14.5px;line-height:1.6}.bp-code-lead strong{color:var(--ink);font-weight:700;white-space:nowrap}.bp-code-flash{margin:0 0 20px}.bp-code-label{display:block;font-weight:700;font-size:14px;margin:0 0 8px}.bp-code-input{width:100%;padding:15px 12px;font-size:26px;font-weight:700;text-align:center;letter-spacing:.32em;text-indent:.32em;font-variant-numeric:tabular-nums;border:1px solid #ccdcd7;border-radius:12px}.bp-code-input:focus{outline:0;border-color:var(--bp);box-shadow:0 0 0 3px #075b491f}.bp-code-input.is-invalid{border-color:#b42318;box-shadow:0 0 0 3px #b423181a}.bp-code-error{margin:10px 0 0;font-size:13.5px;color:#b42318}.bp-code-submit{width:100%;margin-top:22px;padding:13px;font-size:16px}.bp-code-divider{border:0;border-top:1px solid var(--line);margin:28px 0 18px}.bp-code-resend{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0}.bp-code-resend button{padding:10px 15px;font-size:14px;white-space:nowrap}.bp-code-resend button[disabled]{opacity:.45;cursor:not-allowed}.bp-code-hint{margin:0;font-size:13px;color:#6f827e;text-align:right}.bp-code-back{margin:22px 0 0;font-size:13.5px}.bp-code-back a{text-decoration:underline}@media(max-width:650px){.bp-code-panel{padding:32px 24px}.bp-code-resend{flex-direction:column;align-items:stretch}.bp-code-resend button{width:100%}.bp-code-hint{text-align:center}}.finance-overview-grid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}.finance-summary-grid{grid-template-columns:repeat(auto-fit,minmax(250px,1fr));margin-bottom:18px}.finance-menu-card{display:flex;min-height:210px;flex-direction:column;justify-content:space-between;color:inherit;text-decoration:none}.billing-run-title-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.billing-run-title-row h1{margin:0}.billing-run-subtitle{margin:7px 0 0}.billing-run-flash{margin-bottom:18px}.billing-run-summary-card{display:grid;gap:18px}.billing-run-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}.billing-run-kpi{display:flex;flex-direction:column;gap:5px;min-height:84px;padding:15px 16px;border:1px solid var(--line);border-radius:14px;background:#fbfdfc}.billing-run-kpi-label{color:#6f827e;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.billing-run-kpi strong{color:var(--bp-dark);font-size:20px}.billing-run-recovery{display:flex;align-items:center}.billing-run-complete-note,.billing-run-neutral-note{display:flex;flex-direction:column;gap:3px;padding:13px 15px;border-radius:12px}.billing-run-complete-note{background:#edf8e3;border:1px solid #cde3b8;color:#315d20}.billing-run-neutral-note{background:#f4f7f6;border:1px solid var(--line);color:#526f68}.billing-run-section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:14px}.billing-run-section-head h2{margin:0 0 5px}.billing-run-section-head p{margin:0}.billing-run-table-wrap{width:100%;overflow-x:auto;border:1px solid var(--line);border-radius:14px;background:#fff;scrollbar-width:thin;scrollbar-color:#bfd0cb transparent}.billing-run-table-wrap::-webkit-scrollbar{height:10px}.billing-run-table-wrap::-webkit-scrollbar-thumb{background:#bfd0cb;border:2px solid transparent;border-radius:999px;background-clip:padding-box}.billing-run-table-wrap::-webkit-scrollbar-track{background:transparent}.billing-run-table{min-width:1080px;table-layout:fixed}.billing-run-table th,.billing-run-table td{padding:13px 14px}.billing-run-table th{font-size:12px;letter-spacing:.025em;text-transform:uppercase}.billing-run-table td{line-height:1.35}.billing-run-table tbody tr:nth-child(2n){background:#fcfefd}.billing-run-table tbody tr:hover{background:#f5faf8}.billing-run-table .bp-status{min-width:92px}.billing-run-table .btn.small{min-height:34px;padding:7px 12px;white-space:nowrap}.billing-run-table .bp-list-title{font-size:14px;line-height:1.25}.billing-run-nowrap{white-space:nowrap}.billing-run-tenant-name{margin-top:3px;max-width:240px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.billing-run-error-cell{min-width:220px;max-width:360px;color:#7b5555;overflow-wrap:anywhere}.billing-run-actions-column{width:132px}.billing-run-link{color:var(--bp);font-weight:800}.billing-run-tenant-table{min-width:1180px}.billing-run-tenant-table .col-tenant{width:230px}.billing-run-tenant-table .col-status{width:120px}.billing-run-tenant-table .col-attempts{width:88px}.billing-run-tenant-table .col-heartbeat{width:172px}.billing-run-tenant-table .col-events,.billing-run-tenant-table .col-positions{width:105px}.billing-run-tenant-table .col-net{width:135px}.billing-run-tenant-table .col-invoice{width:145px}.billing-run-tenant-table .col-error{width:260px}.billing-run-tenant-table .col-actions{width:145px}.billing-run-overview-table{min-width:940px}.billing-run-overview-table .col-run{width:170px}.billing-run-overview-table .col-period{width:190px}.billing-run-overview-table .col-mode{width:135px}.billing-run-overview-table .col-status{width:130px}.billing-run-overview-table .col-tenants{width:110px}.billing-run-overview-table .col-events{width:120px}.billing-run-overview-table .col-net{width:150px}.billing-run-overview-table .col-open{width:110px}.billing-run-log-card{margin-top:18px}.billing-run-log-list{display:grid;gap:10px}.billing-run-log-entry{position:relative;overflow:hidden;padding:13px 15px;border:1px solid var(--line);border-radius:12px;background:#fbfdfc}.billing-run-log-entry:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:#c9d8d3}.billing-run-log-entry:has(.bp-status.info):before,.billing-run-log-entry:has(.bp-status.success):before{background:#86b85a}.billing-run-log-entry:has(.bp-status.warning):before{background:#d6a938}.billing-run-log-entry:has(.bp-status.error):before,.billing-run-log-entry:has(.bp-status.failed):before{background:#c96b6b}.billing-run-log-meta{display:flex;align-items:center;gap:9px;flex-wrap:wrap;color:#526f68;font-size:13px}.billing-run-log-meta strong{color:var(--bp-dark)}.billing-run-log-message{margin-top:7px;line-height:1.45}.billing-run-form-grid{max-width:none;grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}.billing-run-start-actions{margin-top:16px}@media(max-width:900px){.billing-run-section-head{align-items:stretch}.billing-run-summary-card{padding:16px}}@media(max-width:760px){.billing-run-head{align-items:stretch}.billing-run-head .btn{width:100%}.billing-run-kpis{grid-template-columns:1fr 1fr}}@media(max-width:480px){.billing-run-kpis{grid-template-columns:1fr}}
