.bsxfm-portal{--bsxfm-border:#e2e8f0;--bsxfm-muted:#64748b;--bsxfm-bg:#f8fafc;--bsxfm-income:#15803d;--bsxfm-expense:#b91c1c;color:#0f172a;font-family:inherit}.bsxfm-portal *{box-sizing:border-box}.bsxfm-portal-header{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:22px}.bsxfm-portal-header h2{margin:0 0 5px;font-size:clamp(25px,3vw,38px)}.bsxfm-portal-header p{margin:0;color:var(--bsxfm-muted)}.bsxfm-print-button,.bsxfm-front-filters button{border:0;border-radius:7px;padding:11px 16px;background:#1d4ed8;color:#fff;font-weight:600;cursor:pointer}.bsxfm-front-filters{display:grid;grid-template-columns:repeat(6,minmax(130px,1fr));gap:12px;padding:18px;margin-bottom:20px;border:1px solid var(--bsxfm-border);border-radius:12px;background:var(--bsxfm-bg)}.bsxfm-filter-field{display:flex;flex-direction:column;gap:6px}.bsxfm-filter-field label{font-size:13px;font-weight:600;color:#334155}.bsxfm-filter-field select,.bsxfm-filter-field input{width:100%;min-height:42px;border:1px solid #cbd5e1;border-radius:7px;background:#fff;padding:8px 10px}.bsxfm-filter-search{grid-column:span 2}.bsxfm-filter-actions{display:flex;gap:10px;align-items:flex-end}.bsxfm-filter-actions a{display:inline-flex;min-height:42px;align-items:center;padding:8px 14px;border:1px solid #cbd5e1;border-radius:7px;background:#fff;text-decoration:none;color:#334155}.bsxfm-front-summary{display:grid;grid-template-columns:repeat(4,minmax(160px,1fr));gap:16px;margin:20px 0}.bsxfm-summary-card{position:relative;overflow:hidden;border:1px solid var(--bsxfm-border);border-radius:12px;padding:20px;background:#fff;box-shadow:0 3px 14px rgba(15,23,42,.05)}.bsxfm-summary-card:before{content:"";position:absolute;left:0;top:0;width:5px;height:100%;background:#2563eb}.bsxfm-summary-income:before{background:var(--bsxfm-income)}.bsxfm-summary-expense:before{background:var(--bsxfm-expense)}.bsxfm-summary-balance:before{background:#7c3aed}.bsxfm-summary-count:before{background:#0369a1}.bsxfm-summary-card span{display:block;font-size:14px;color:var(--bsxfm-muted);margin-bottom:9px}.bsxfm-summary-card strong{font-size:clamp(22px,2.7vw,31px);line-height:1.2}.bsxfm-section{margin:30px 0;padding:22px;border:1px solid var(--bsxfm-border);border-radius:12px;background:#fff}.bsxfm-section-heading{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:17px}.bsxfm-section-heading h3{margin:0;font-size:22px}.bsxfm-section-heading span{color:var(--bsxfm-muted);font-size:13px}.bsxfm-front-table{overflow-x:auto}.bsxfm-front-table table{width:100%;border-collapse:collapse;min-width:720px}.bsxfm-front-table th,.bsxfm-front-table td{padding:12px 11px;border-bottom:1px solid var(--bsxfm-border);text-align:left;vertical-align:middle}.bsxfm-front-table th{background:var(--bsxfm-bg);font-size:13px;color:#334155}.bsxfm-front-table tbody tr:hover{background:#f8fafc}.bsxfm-positive{color:var(--bsxfm-income)}.bsxfm-negative{color:var(--bsxfm-expense)}.bsxfm-category-dot{display:inline-block;width:10px;height:10px;border-radius:999px;margin-right:8px}.bsxfm-type-badge{display:inline-block;padding:4px 8px;border-radius:999px;font-size:12px;font-weight:700}.bsxfm-type-income{background:#dcfce7;color:#166534}.bsxfm-type-expense{background:#fee2e2;color:#991b1b}.bsxfm-monthly-chart{display:grid;grid-template-columns:repeat(12,minmax(30px,1fr));height:230px;gap:7px;align-items:end;padding:18px 8px 0;border:1px solid var(--bsxfm-border);border-radius:10px;background:linear-gradient(to top,#f8fafc,#fff);margin-bottom:10px}.bsxfm-chart-month{height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:7px}.bsxfm-chart-bars{height:185px;display:flex;align-items:flex-end;justify-content:center;gap:3px;width:100%}.bsxfm-chart-bars span{display:block;width:min(15px,42%);min-height:0;border-radius:4px 4px 0 0}.bsxfm-bar-income{background:#22c55e}.bsxfm-bar-expense{background:#ef4444}.bsxfm-chart-month small{font-size:11px;color:var(--bsxfm-muted)}.bsxfm-chart-legend{display:flex;gap:16px;justify-content:flex-end;margin-bottom:20px;font-size:13px}.bsxfm-chart-legend i{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:6px}.bsxfm-legend-income{background:#22c55e}.bsxfm-legend-expense{background:#ef4444}.bsxfm-front-event{margin:20px 0}.bsxfm-front-event>h3{font-size:28px;margin-bottom:15px}@media(max-width:1100px){.bsxfm-front-filters{grid-template-columns:repeat(3,minmax(150px,1fr))}.bsxfm-front-summary{grid-template-columns:repeat(2,minmax(160px,1fr))}}@media(max-width:680px){.bsxfm-portal-header{flex-direction:column}.bsxfm-front-filters{grid-template-columns:1fr}.bsxfm-filter-search{grid-column:auto}.bsxfm-front-summary{grid-template-columns:1fr}.bsxfm-section{padding:15px}.bsxfm-monthly-chart{gap:3px;padding-left:2px;padding-right:2px}.bsxfm-chart-bars span{width:8px}}@media print{.bsxfm-print-button,.bsxfm-front-filters{display:none!important}.bsxfm-portal{color:#000}.bsxfm-section,.bsxfm-summary-card{box-shadow:none;break-inside:avoid}.bsxfm-front-table{overflow:visible}.bsxfm-front-table table{min-width:0}.bsxfm-front-table th,.bsxfm-front-table td{padding:7px;font-size:11px}}

.bsxfm-access-message{max-width:680px;margin:32px auto;padding:34px 24px;text-align:center;border:1px solid #e2e8f0;border-radius:14px;background:#fff;box-shadow:0 8px 30px rgba(15,23,42,.08)}.bsxfm-access-message>.dashicons{width:54px;height:54px;font-size:54px;color:#475569}.bsxfm-access-message h3{margin:14px 0 8px;font-size:26px}.bsxfm-access-message p{margin:0;color:#64748b}.bsxfm-access-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:22px}.bsxfm-access-actions a{display:inline-flex;align-items:center;justify-content:center;min-width:120px;padding:11px 18px;border-radius:7px;text-decoration:none;font-weight:600}.bsxfm-access-primary{background:#1d4ed8;color:#fff!important}.bsxfm-access-secondary{border:1px solid #cbd5e1;background:#fff;color:#334155!important}


/* Version 1.2 financial charts */
.bsxfm-analytics-v12{margin:22px 0}.bsxfm-analytics-v12>h2{margin:0 0 14px}.bsxfm-charts-grid-v12{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.bsxfm-chart-card{min-width:0;padding:18px;border:1px solid #dcdcde;border-radius:10px;background:#fff}.bsxfm-chart-card h3{margin:0 0 15px;font-size:16px}.bsxfm-svg-chart{display:block;width:100%;height:auto;min-height:240px}.bsxfm-grid-line{stroke:#e2e8f0;stroke-width:1}.bsxfm-axis-label{fill:#64748b;font-size:11px}.bsxfm-line-income,.bsxfm-line-expense{fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.bsxfm-line-income{stroke:#16a34a}.bsxfm-line-expense{stroke:#dc2626}.bsxfm-dot-income{fill:#16a34a}.bsxfm-dot-expense{fill:#dc2626}.bsxfm-chart-legend-v12{display:flex;justify-content:flex-end;gap:16px;font-size:12px;color:#475569}.bsxfm-chart-legend-v12 i{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:6px}.bsxfm-legend-income-v12{background:#16a34a}.bsxfm-legend-expense-v12{background:#dc2626}.bsxfm-chart-empty{display:flex;min-height:220px;align-items:center;justify-content:center;color:#64748b;text-align:center}.bsxfm-donut-layout{display:grid;grid-template-columns:minmax(180px,220px) 1fr;gap:18px;align-items:center}.bsxfm-donut-chart{display:block;width:100%;height:auto}.bsxfm-donut-total-label{fill:#64748b;font-size:12px}.bsxfm-donut-total-value{fill:#0f172a;font-size:14px;font-weight:700}.bsxfm-donut-list{display:flex;flex-direction:column;gap:9px}.bsxfm-donut-list>div{display:flex;justify-content:space-between;gap:12px;font-size:12px}.bsxfm-donut-list span{display:flex;align-items:center;min-width:0}.bsxfm-donut-list i{flex:0 0 auto;width:9px;height:9px;border-radius:50%;margin-right:7px}.bsxfm-donut-list strong{white-space:nowrap}@media(max-width:1050px){.bsxfm-charts-grid-v12{grid-template-columns:1fr}}@media(max-width:600px){.bsxfm-chart-card{padding:12px}.bsxfm-donut-layout{grid-template-columns:1fr}.bsxfm-donut-chart{max-width:220px;margin:auto}.bsxfm-svg-chart{min-height:190px}}@media print{.bsxfm-analytics-v12{break-inside:avoid}.bsxfm-chart-card{box-shadow:none}}


/* Version 1.4 voucher and bill attachments */
.bsxfm-attachment-manager{margin:18px 0;padding:16px;border:1px solid #dcdcde;border-radius:8px;background:#f8fafc}.bsxfm-attachment-label{display:block;margin-bottom:10px}.bsxfm-attachment-preview{display:flex;align-items:center;gap:14px;min-height:72px;padding:12px;border:1px dashed #cbd5e1;border-radius:7px;background:#fff}.bsxfm-attachment-preview img{display:block;width:92px;height:72px;object-fit:cover;border-radius:5px}.bsxfm-attachment-preview>div{display:flex;flex-direction:column;gap:6px;min-width:0}.bsxfm-attachment-preview strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bsxfm-document-icon{width:48px;height:48px;font-size:48px;color:#d63638}.bsxfm-attachment-empty{color:#64748b}.bsxfm-attachment-actions{display:flex;align-items:center;gap:12px;margin-top:12px}.bsxfm-attachment-link{white-space:nowrap}.bsxfm-front-table .bsxfm-attachment-link{font-weight:600}@media(max-width:600px){.bsxfm-attachment-preview{align-items:flex-start}.bsxfm-attachment-preview img{width:72px;height:58px}}


/* Version 1.6 printable document buttons */
.bsxfm-document-button{display:inline-flex;align-items:center;justify-content:center;padding:10px 16px;border-radius:6px;background:#1d4ed8;color:#fff!important;font-weight:700;text-decoration:none!important}.bsxfm-document-button:hover{background:#1e40af;color:#fff!important}
