body.inv-dashboard-body {
    --inv-header-bottom-height: 0;
    --inv-header-height: var(--inv-header-top-height);
}

body.inv-dashboard-body .inv-chrome-header,
body.inv-dashboard-body .inv-chrome-header-top {
    height: var(--inv-header-top-height);
    background: var(--inv-topbar-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

body.inv-dashboard-body .inv-sidebar {
    top: 0;
    height: 100vh;
    padding-top: 56px;
    z-index: 60;
    background: var(--inv-topbar-bg);
    border-right-color: rgba(255, 255, 255, 0.08);
}

body.inv-dashboard-body .inv-dashboard-main:has(.inv-dashboard-page) {
    height: auto;
    min-height: calc(100vh - var(--inv-header-height));
    overflow: visible;
    padding: 12px 16px 28px;
}

body.inv-dashboard-body.inv-sidebar-collapsed:not(.inv-sidebar-open):not(.inv-sidebar-pinned) .inv-sidebar-brand {
    display: none;
}

body.inv-dashboard-body.inv-sidebar-collapsed:not(.inv-sidebar-open):not(.inv-sidebar-pinned) .inv-sidebar-nav {
    padding: 4px 8px 0;
}

body.inv-dashboard-body.inv-sidebar-collapsed:not(.inv-sidebar-open):not(.inv-sidebar-pinned) .inv-nav-item,
body.inv-dashboard-body.inv-sidebar-collapsed:not(.inv-sidebar-open):not(.inv-sidebar-pinned) .inv-nav-group-toggle {
    width: 44px;
    min-width: 0;
    max-width: calc(100% - 4px);
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    box-sizing: border-box;
}

body.inv-dashboard-body .inv-dashboard-page {
    display: grid;
    gap: 16px;
}

body.inv-dashboard-body .inv-dashboard-page > .inv-mgmt-card {
    margin-top: 0;
}

body.inv-dashboard-body .inv-sidebar-brand h1,
body.inv-dashboard-body .inv-sidebar-brand-icon,
body.inv-dashboard-body .inv-nav-item,
body.inv-dashboard-body .inv-nav-icon,
body.inv-dashboard-body .inv-nav-group-chevron {
    color: rgba(255, 255, 255, 0.92);
}

body.inv-dashboard-body .inv-sidebar-brand p {
    color: rgba(255, 255, 255, 0.62);
}

body.inv-dashboard-body .inv-nav-item:hover:not(.inv-nav-item--active),
body.inv-dashboard-body .inv-nav-item:hover:not(.inv-nav-item--active) .inv-nav-icon {
    color: #ffffff;
}

body.inv-dashboard-body .inv-nav-item--active,
body.inv-dashboard-body .inv-nav-item--active .inv-nav-icon,
body.inv-dashboard-body .inv-nav-row--active > .inv-nav-item,
body.inv-dashboard-body .inv-nav-row--active .inv-nav-icon {
    color: #111827;
}

body.inv-dashboard-body.inv-sidebar-collapsed:not(.inv-sidebar-open):not(.inv-sidebar-pinned) .inv-nav-group.inv-nav-group--open > .inv-nav-sub {
    background: var(--inv-topbar-bg);
    border-color: rgba(255, 255, 255, 0.12);
}

.sb-sidebar-toggle {
    position: fixed;
    top: 12px;
    left: 14px;
    z-index: 80;
}

body.inv-dashboard-body.inv-sidebar-collapsed.inv-sidebar-open .sb-sidebar-toggle,
body.inv-dashboard-body.inv-sidebar-collapsed.inv-sidebar-pinned .sb-sidebar-toggle,
body.inv-dashboard-body.inv-sidebar-drawer-open .sb-sidebar-toggle {
    left: 16px;
}

body.inv-dashboard-body .inv-sidebar-toggle {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.92);
}

body.inv-dashboard-body .inv-sidebar-toggle:hover,
body.inv-dashboard-body .inv-sidebar-toggle[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.sb-account-business-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid #d7dde6;
    border-radius: 8px;
    background: #f4f7fb;
    color: #1f2933;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.sb-account-business-btn .material-symbols-outlined {
    font-size: 18px;
}

.sb-account-business-btn:hover {
    background: #e8eef6;
    border-color: #c5ceda;
}

.sb-banner {
    margin: 0 0 16px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #e8f6ee;
    color: #14532d;
}

.sb-banner--error {
    background: #fde8e8;
    color: #9f1239;
}

.sb-banner--warning {
    background: #fff6d8;
    color: #92400e;
}

.sb-name-warn {
    background: #fff6d8;
}

.sb-print-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.sb-bill {
    max-width: 860px;
    margin: 24px auto;
    background: #fff;
    color: #1f2933;
    padding: 28px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
}

.sb-firm-logo,
.sb-bill-logo {
    display: block;
    object-fit: contain;
    background: #fff;
}

.sb-firm-logo {
    width: 96px;
    height: 96px;
    margin-bottom: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.sb-bill-logo {
    max-width: 160px;
    max-height: 80px;
    margin-bottom: 12px;
}

.sb-field-hint {
    margin: 6px 0 0;
    font-size: 12px;
    color: #6b7280;
}

body.inv-dashboard-body .sb-logo-input {
    padding: 8px 12px;
}

.sb-log-panel {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 72px 24px 24px;
    background: rgba(17, 24, 39, 0.45);
    overflow: auto;
}

.sb-log-sheet {
    display: flex;
    flex-direction: column;
    width: min(960px, 100%);
    max-height: calc(100vh - 96px);
    overflow: hidden;
    padding: 16px 16px 8px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(17, 24, 39, 0.18);
}

.sb-log-sheet .inv-mgmt-header {
    flex: 0 0 auto;
    margin-bottom: 12px;
}

.sb-log-sheet > .inv-mgmt-toolbar,
.sb-log-sheet > .inv-pagination {
    flex: 0 0 auto;
    background: #fff;
}

.sb-log-sheet > .inv-mgmt-table-wrap {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    border: 1px solid #dbe3ee;
    border-radius: 12px;
    background: #fff;
}

.sb-bill h1,
.sb-bill h2,
.sb-bill p {
    margin: 0 0 8px;
}

.sb-bill table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.sb-bill th,
.sb-bill td {
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    padding: 8px 6px;
    vertical-align: top;
}

.sb-bill .num {
    text-align: right;
    white-space: nowrap;
}

body.inv-dashboard-body .inv-mgmt-table-wrap > .inv-mgmt-table > tbody > tr:not(:has(.inv-mgmt-empty)) > td.inv-mgmt-cell--action {
    white-space: nowrap;
    text-align: right;
    vertical-align: middle;
}

body.inv-dashboard-body .sb-task-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.inv-dashboard-body .sb-service-note {
    margin: 4px 16px 8px;
    font-size: 13px;
    line-height: 1.45;
    color: #6b7280;
}

body.inv-dashboard-body .sb-service-note p {
    margin: 0;
}

body.inv-dashboard-body .sb-customer-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: start;
    gap: 10px 12px;
    padding: 2px 2px 6px;
}

body.inv-dashboard-body .inv-dashboard-main:has(.sb-entry) {
    padding-left: 48px;
    padding-right: 48px;
}

body.inv-dashboard-body .inv-mgmt-page.sb-entry {
    margin-left: 0;
    margin-right: 0;
    padding-left: 64px;
    padding-right: 64px;
    box-sizing: border-box;
}

body.inv-dashboard-body .inv-mgmt-page.sb-entry .inv-mgmt-panel-card,
body.inv-dashboard-body .inv-mgmt-page.sb-entry > .inv-mgmt-card {
    flex: 0 0 auto;
    height: auto;
    overflow: visible;
}

body.inv-dashboard-body .inv-mgmt-page.sb-entry .inv-mgmt-panel-body,
body.inv-dashboard-body .inv-mgmt-page.sb-entry form:has(.inv-mgmt-panel-footer) {
    flex: none;
    min-height: 0;
    overflow: visible;
}

body.inv-dashboard-body .inv-mgmt-page.sb-entry .inv-mgmt-panel-body,
body.inv-dashboard-body .inv-mgmt-panel-body:has(.sb-customer-grid) {
    padding: 12px 32px 8px;
}

body.inv-dashboard-body .inv-mgmt-page.sb-entry .inv-mgmt-panel-footer {
    padding: 10px 32px;
}

body.inv-dashboard-body .inv-mgmt-page.sb-entry .inv-mgmt-field label,
body.inv-dashboard-body .sb-customer-grid .inv-mgmt-field label {
    margin-bottom: 3px;
    font-size: 12px;
    line-height: 1.2;
}

body.inv-dashboard-body .inv-mgmt-page.sb-entry .inv-mgmt-input,
body.inv-dashboard-body .inv-mgmt-page.sb-entry .inv-mgmt-select,
body.inv-dashboard-body .inv-mgmt-page.sb-entry .inv-mgmt-textarea,
body.inv-dashboard-body .inv-mgmt-page.sb-entry .sb-multi-toggle,
body.inv-dashboard-body .sb-customer-grid .inv-mgmt-input,
body.inv-dashboard-body .sb-customer-grid .inv-mgmt-select,
body.inv-dashboard-body .sb-customer-grid .inv-mgmt-textarea {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 14px;
}

body.inv-dashboard-body .sb-customer-grid .inv-mgmt-textarea {
    min-height: 56px;
    height: 56px;
    resize: vertical;
}

body.inv-dashboard-body .sb-customer-grid .sb-span-1 { grid-column: span 1; }
body.inv-dashboard-body .sb-customer-grid .sb-span-2 { grid-column: span 2; }
body.inv-dashboard-body .sb-customer-grid .sb-span-4 { grid-column: span 4; }
body.inv-dashboard-body .sb-customer-grid .sb-span-6 { grid-column: span 6; }

body.inv-dashboard-body .sb-address-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 14px 16px;
    align-items: stretch;
}

body.inv-dashboard-body .sb-address {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

body.inv-dashboard-body .sb-address .inv-mgmt-textarea {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
}

body.inv-dashboard-body .sb-beside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 14px;
    align-content: start;
}

body.inv-dashboard-body .sb-choice-label,
body.inv-dashboard-body .sb-check {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--inv-primary);
}

body.inv-dashboard-body .sb-radios {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body.inv-dashboard-body .sb-radio,
body.inv-dashboard-body .sb-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    margin: 0;
    padding: 0 10px;
    border: 1px solid var(--inv-outline-variant);
    border-radius: 8px;
    background: #fff;
    font-weight: 600;
    cursor: pointer;
}

body.inv-dashboard-body .sb-check {
    justify-self: start;
}

body.inv-dashboard-body .sb-file-line {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

body.inv-dashboard-body .sb-file-line .sb-choice {
    flex: 1 1 320px;
    min-width: 0;
}

body.inv-dashboard-body .sb-file-field {
    flex: 0 0 220px;
    width: 220px;
    max-width: 100%;
}

body.inv-dashboard-body .sb-file-box {
    display: flex;
    align-items: stretch;
}

body.inv-dashboard-body .sb-file-prefix {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 0 10px;
    border: 1px solid var(--inv-outline-variant);
    border-right: 0;
    border-radius: 8px 0 0 8px;
    background: #f3f4f6;
    font-weight: 700;
}

body.inv-dashboard-body .sb-file-box .sb-file-series {
    width: 92px;
    flex: 0 0 92px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

body.inv-dashboard-body .sb-file-box .inv-mgmt-input {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

body.inv-dashboard-body .sb-assign-fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

body.inv-dashboard-body .sb-series-tools {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body.inv-dashboard-body .sb-series-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body.inv-dashboard-body .sb-series-chip {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px 2px 2px 10px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #fff;
}

body.inv-dashboard-body .sb-series-name {
    font-weight: 700;
    padding-right: 4px;
}

body.inv-dashboard-body .sb-series-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #b91c1c;
}

body.inv-dashboard-body .sb-series-remove .material-symbols-outlined {
    font-size: 16px;
}

body.inv-dashboard-body .sb-series-remove:hover {
    background: #fee2e2;
}

body.inv-dashboard-body .sb-series-add {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

body.inv-dashboard-body .sb-series-add .inv-mgmt-input {
    width: 72px;
    min-height: 32px;
    padding: 4px 8px;
}

body.inv-dashboard-body .sb-series-add .inv-mgmt-btn {
    min-height: 32px;
    padding: 4px 10px;
    font-size: 12px;
}

body.inv-dashboard-body .sb-radio input,
body.inv-dashboard-body .sb-check input {
    accent-color: #65a30d;
    width: 16px;
    height: 16px;
    margin: 0;
}

@media (max-width: 1100px) {
    body.inv-dashboard-body .sb-customer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.inv-dashboard-body .sb-customer-grid .sb-span-1,
    body.inv-dashboard-body .sb-customer-grid .sb-span-2 {
        grid-column: span 1;
    }

    body.inv-dashboard-body .sb-customer-grid .sb-span-4,
    body.inv-dashboard-body .sb-customer-grid .sb-span-6 {
        grid-column: span 2;
    }
}

@media (max-width: 700px) {
    body.inv-dashboard-body .sb-task-grid {
        grid-template-columns: 1fr;
    }

    body.inv-dashboard-body .sb-customer-grid {
        grid-template-columns: 1fr;
    }

    body.inv-dashboard-body .sb-customer-grid .inv-mgmt-field {
        grid-column: 1 / -1;
    }

    body.inv-dashboard-body .sb-address-row,
    body.inv-dashboard-body .sb-beside {
        grid-template-columns: 1fr;
    }
}

body.inv-dashboard-body .inv-mgmt-page-panel > .inv-mgmt-panel-card > form:has(.inv-mgmt-panel-footer) {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

body.inv-dashboard-body .inv-dashboard-main:has(.inv-mgmt-page.sb-list-page) {
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--inv-header-height));
    min-height: 0;
    overflow: hidden;
    padding-bottom: 16px;
}

body.inv-dashboard-body .inv-mgmt-page.sb-list-page {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

body.inv-dashboard-body .inv-mgmt-page.sb-list-page > .inv-mgmt-header,
body.inv-dashboard-body .inv-mgmt-page.sb-list-page > .inv-mgmt-card:not(:has(> .inv-mgmt-table-wrap)) {
    flex: 0 0 auto;
}

body.inv-dashboard-body .inv-mgmt-page.sb-list-page > .inv-mgmt-card:has(> .inv-mgmt-table-wrap) {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

body.inv-dashboard-body .inv-mgmt-page.sb-list-page .inv-mgmt-toolbar,
body.inv-dashboard-body .inv-mgmt-page.sb-list-page .inv-pagination {
    flex: 0 0 auto;
    background: #fff;
}

body.inv-dashboard-body .inv-mgmt-page.sb-list-page > .inv-mgmt-card:has(> .inv-mgmt-table-wrap) > .inv-mgmt-table-wrap {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

body.inv-dashboard-body .inv-dashboard-main:has(.inv-mgmt-page.sb-register-page) {
    height: auto;
    min-height: calc(100vh - var(--inv-header-height));
    overflow-x: hidden;
    overflow-y: auto;
}

body.inv-dashboard-body .inv-mgmt-page.sb-register-page {
    display: block;
    height: auto;
    overflow: visible;
    flex: none;
}

body.inv-dashboard-body .sb-register-page > .sb-register-form {
    margin-bottom: 12px;
    height: auto;
    flex: none;
}

body.inv-dashboard-body .sb-register-page > .inv-mgmt-card:not(.inv-mgmt-panel-card) {
    height: auto;
    flex: none;
    overflow: visible;
    background: transparent;
}

body.inv-dashboard-body .sb-register-page > .inv-mgmt-card:not(.inv-mgmt-panel-card) > .inv-mgmt-toolbar {
    display: inline-flex;
    width: auto;
    max-width: 100%;
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    background: transparent;
    gap: 8px;
}

body.inv-dashboard-body .sb-register-page .inv-mgmt-toolbar .inv-mgmt-search,
body.inv-dashboard-body .sb-register-page .inv-mgmt-toolbar .sb-filter-search {
    flex: 0 1 220px;
    width: 220px;
    max-width: 220px;
    min-width: 0;
}

.inv-mgmt-toolbar .sb-filter-search,
.inv-mgmt-toolbar .sb-filter {
    width: auto;
    flex: 1 1 160px;
    max-width: 240px;
    min-width: 140px;
}

a.inv-pagination-btn {
    text-decoration: none;
}

.inv-pagination-size-value {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--inv-outline-variant);
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    font-weight: 700;
    color: var(--inv-on-bg);
}

.sb-icon-form {
    display: inline-flex;
    margin: 0;
}

body.inv-dashboard-body a.sb-icon-btn,
body.inv-dashboard-body button.sb-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    min-height: 30px;
    padding: 0;
    border-radius: 8px;
    line-height: 1;
    color: #3f6212;
    background: #f7fee7;
    border-color: #bef264;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

body.inv-dashboard-body a.sb-icon-btn:hover,
body.inv-dashboard-body button.sb-icon-btn:hover {
    color: #fff;
    background: #65a30d;
    border-color: #65a30d;
}

body.inv-dashboard-body a.sb-icon-btn.sb-icon-btn--edit,
body.inv-dashboard-body button.sb-icon-btn.sb-icon-btn--edit {
    color: #1d4ed8;
    background: #eff6ff;
    border-color: #93c5fd;
}

body.inv-dashboard-body a.sb-icon-btn.sb-icon-btn--edit:hover,
body.inv-dashboard-body button.sb-icon-btn.sb-icon-btn--edit:hover {
    color: #fff;
    background: #1d4ed8;
    border-color: #1d4ed8;
}

body.inv-dashboard-body a.sb-icon-btn.sb-icon-btn--delete,
body.inv-dashboard-body button.sb-icon-btn.sb-icon-btn--delete,
body.inv-dashboard-body a.sb-icon-btn.sb-customer-deactivate,
body.inv-dashboard-body button.sb-icon-btn.sb-customer-deactivate {
    color: #dc2626;
    background: #fef2f2;
    border-color: #fca5a5;
}

body.inv-dashboard-body a.sb-icon-btn.sb-icon-btn--delete:hover,
body.inv-dashboard-body button.sb-icon-btn.sb-icon-btn--delete:hover,
body.inv-dashboard-body a.sb-icon-btn.sb-customer-deactivate:hover,
body.inv-dashboard-body button.sb-icon-btn.sb-customer-deactivate:hover {
    color: #fff;
    background: #dc2626;
    border-color: #dc2626;
}

body.inv-dashboard-body a.sb-icon-btn.sb-icon-btn--bill,
body.inv-dashboard-body button.sb-icon-btn.sb-icon-btn--bill,
body.inv-dashboard-body a.sb-icon-btn.sb-icon-btn--pay,
body.inv-dashboard-body button.sb-icon-btn.sb-icon-btn--pay,
body.inv-dashboard-body a.sb-icon-btn.sb-customer-turn-on,
body.inv-dashboard-body button.sb-icon-btn.sb-customer-turn-on,
body.inv-dashboard-body a.sb-icon-btn.sb-icon-btn--free,
body.inv-dashboard-body button.sb-icon-btn.sb-icon-btn--free {
    color: #15803d;
    background: #f0fdf4;
    border-color: #86efac;
}

body.inv-dashboard-body a.sb-icon-btn.sb-icon-btn--bill:hover,
body.inv-dashboard-body button.sb-icon-btn.sb-icon-btn--bill:hover,
body.inv-dashboard-body a.sb-icon-btn.sb-icon-btn--pay:hover,
body.inv-dashboard-body button.sb-icon-btn.sb-icon-btn--pay:hover,
body.inv-dashboard-body a.sb-icon-btn.sb-customer-turn-on:hover,
body.inv-dashboard-body button.sb-icon-btn.sb-customer-turn-on:hover,
body.inv-dashboard-body a.sb-icon-btn.sb-icon-btn--free:hover,
body.inv-dashboard-body button.sb-icon-btn.sb-icon-btn--free:hover {
    color: #fff;
    background: #16a34a;
    border-color: #16a34a;
}

body.inv-dashboard-body a.sb-icon-btn.sb-customer-assign,
body.inv-dashboard-body button.sb-icon-btn.sb-customer-assign,
body.inv-dashboard-body a.sb-icon-btn.sb-file-assign,
body.inv-dashboard-body button.sb-icon-btn.sb-file-assign,
body.inv-dashboard-body a.sb-icon-btn.sb-icon-btn--settle,
body.inv-dashboard-body button.sb-icon-btn.sb-icon-btn--settle,
body.inv-dashboard-body a.sb-icon-btn.sb-icon-btn--print,
body.inv-dashboard-body button.sb-icon-btn.sb-icon-btn--print {
    color: #1d4ed8;
    background: #eff6ff;
    border-color: #93c5fd;
}

body.inv-dashboard-body a.sb-icon-btn.sb-customer-assign:hover,
body.inv-dashboard-body button.sb-icon-btn.sb-customer-assign:hover,
body.inv-dashboard-body a.sb-icon-btn.sb-file-assign:hover,
body.inv-dashboard-body button.sb-icon-btn.sb-file-assign:hover,
body.inv-dashboard-body a.sb-icon-btn.sb-icon-btn--settle:hover,
body.inv-dashboard-body button.sb-icon-btn.sb-icon-btn--settle:hover,
body.inv-dashboard-body a.sb-icon-btn.sb-icon-btn--print:hover,
body.inv-dashboard-body button.sb-icon-btn.sb-icon-btn--print:hover {
    color: #fff;
    background: #2563eb;
    border-color: #2563eb;
}

body.inv-dashboard-body a.sb-icon-btn.sb-customer-transfer,
body.inv-dashboard-body button.sb-icon-btn.sb-customer-transfer,
body.inv-dashboard-body a.sb-icon-btn.sb-icon-btn--hold,
body.inv-dashboard-body button.sb-icon-btn.sb-icon-btn--hold {
    color: #c2410c;
    background: #fff7ed;
    border-color: #fdba74;
}

body.inv-dashboard-body a.sb-icon-btn.sb-customer-transfer:hover,
body.inv-dashboard-body button.sb-icon-btn.sb-customer-transfer:hover,
body.inv-dashboard-body a.sb-icon-btn.sb-icon-btn--hold:hover,
body.inv-dashboard-body button.sb-icon-btn.sb-icon-btn--hold:hover {
    color: #fff;
    background: #ea580c;
    border-color: #ea580c;
}

body.inv-dashboard-body #sb-payment-form .inv-mgmt-field,
body.inv-dashboard-body #sb-settle-form .inv-mgmt-field {
    display: block;
    margin: 0 0 6px;
    font-weight: 600;
}

body.inv-dashboard-body #sb-payment-form .inv-mgmt-input,
body.inv-dashboard-body #sb-settle-form .inv-mgmt-input {
    width: 100%;
    margin: 0 0 14px;
    box-sizing: border-box;
}

body.inv-dashboard-body .sb-bill-payline {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px 32px;
    margin: 16px 32px 0;
}

body.inv-dashboard-body .sb-bill-payline > span {
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
    padding-bottom: 10px;
}

body.inv-dashboard-body .sb-bill-payline strong {
    margin-left: 8px;
    color: #111827;
    font-weight: 700;
}

body.inv-dashboard-body .sb-bill-payline .inv-mgmt-field {
    margin: 0;
}

body.inv-dashboard-body .sb-bill-payline .inv-mgmt-input {
    width: 160px;
}

body.inv-dashboard-body .sb-settle-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 32px;
    margin: 0 0 18px;
}

body.inv-dashboard-body .sb-settle-summary span {
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
}

body.inv-dashboard-body .sb-settle-summary strong {
    margin-left: 8px;
    color: #111827;
    font-weight: 700;
}

body.inv-dashboard-body .sb-customer-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 16px;
    margin-bottom: 16px;
    padding: 16px;
}

body.inv-dashboard-body .sb-customer-facts span {
    display: block;
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
}

body.inv-dashboard-body .sb-customer-facts strong {
    display: block;
    margin-top: 2px;
    font-weight: 700;
}

body.inv-dashboard-body .inv-mgmt-page.sb-entry #customer-bill-form {
    min-width: 0;
    max-width: 100%;
}

body.inv-dashboard-body .inv-mgmt-page.sb-entry #customer-bill-form > .inv-mgmt-table-wrap {
    margin-left: 32px;
    margin-right: 32px;
    max-width: calc(100% - 64px);
    overflow-x: auto;
    box-sizing: border-box;
}

body.inv-dashboard-body .inv-mgmt-page.sb-entry #customer-bill-form > .inv-mgmt-table-wrap > .inv-mgmt-table {
    min-width: 0 !important;
    width: 100% !important;
    table-layout: fixed;
}

body.inv-dashboard-body .inv-mgmt-page.sb-entry #customer-bill-form > .inv-mgmt-table-wrap > .inv-mgmt-table th,
body.inv-dashboard-body .inv-mgmt-page.sb-entry #customer-bill-form > .inv-mgmt-table-wrap > .inv-mgmt-table td {
    white-space: normal;
}

body.inv-dashboard-body .sb-bill-fields {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(140px, 220px) minmax(220px, 2fr);
    gap: 20px 16px;
    padding: 16px 32px 0;
    min-width: 0;
    max-width: 100%;
}

body.inv-dashboard-body .sb-bill-fields > * {
    min-width: 0;
    max-width: 100%;
}

body.inv-dashboard-body .sb-bill-services {
    grid-column: 1 / -1;
}

body.inv-dashboard-body .sb-multi {
    position: relative;
}

body.inv-dashboard-body .sb-multi-toggle {
    width: 100%;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.inv-dashboard-body .sb-multi-menu[hidden] {
    display: none;
}

body.inv-dashboard-body .sb-multi-menu {
    position: absolute;
    z-index: 20;
    top: calc(100% - 4px);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 240px;
    overflow: auto;
    padding: 8px;
    border: 1px solid var(--inv-outline-variant);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.12);
}

body.inv-dashboard-body .sb-multi-menu label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-weight: 600;
}

body.inv-dashboard-body .sb-year-months {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    max-width: 100%;
}

body.inv-dashboard-body .sb-month-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    min-width: 0;
    max-width: 100%;
}

body.inv-dashboard-body .sb-month-line[hidden] {
    display: none;
}

body.inv-dashboard-body .sb-month-year {
    min-width: 42px;
    font-weight: 700;
}

body.inv-dashboard-body .sb-month-line label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    font-weight: 600;
    white-space: nowrap;
}

body.inv-dashboard-body .sb-year-field {
    width: 220px;
    margin: 0;
}

body.inv-dashboard-body .sb-service-picks,
body.inv-dashboard-body .sb-year-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
}

body.inv-dashboard-body .sb-year-row {
    padding: 0 16px;
}

body.inv-dashboard-body .sb-year-row .inv-mgmt-select {
    width: 140px;
}

body.inv-dashboard-body .sb-month-select {
    min-height: 148px;
}

body.inv-dashboard-body .sb-service-picks label,
body.inv-dashboard-body .sb-year-row label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-weight: 600;
}

body.inv-dashboard-body .sb-month-board {
    display: grid;
    gap: 12px;
    padding: 16px;
}

body.inv-dashboard-body .sb-month-board section h3 {
    margin: 0 0 8px;
    font-size: 14px;
}

body.inv-dashboard-body .sb-month-board section div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body.inv-dashboard-body .sb-month-board label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 84px;
    margin: 0;
    font-weight: 600;
}

body.inv-dashboard-body .sb-bill-add {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 16px;
    padding: 16px 16px 0;
}

body.inv-dashboard-body .sb-form-error {
    margin: 0;
    padding: 12px 16px 0;
    color: #b91c1c;
    font-weight: 600;
}

body.inv-dashboard-body .sb-icon-btn .material-symbols-outlined {
    display: block;
    width: 16px;
    height: 16px;
    font-size: 16px;
    line-height: 16px;
    margin: 0;
    text-align: center;
    font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 20;
}

@media (max-width: 900px) {
    body.inv-dashboard-body .sb-bill-add {
        grid-template-columns: 1fr 1fr;
    }
}

body.inv-dashboard-body .inv-mgmt-page:not(.inv-dashboard-page) .inv-mgmt-table-wrap > .inv-mgmt-table:not(.inv-dashboard-pending-table):not(.inv-dashboard-expiring-table) {
    display: table !important;
    width: 100%;
    min-width: 720px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
}

body.inv-dashboard-body .inv-mgmt-page:not(.inv-dashboard-page) .inv-mgmt-table-wrap > .inv-mgmt-table:not(.inv-dashboard-pending-table):not(.inv-dashboard-expiring-table) > thead {
    display: table-header-group !important;
}

body.inv-dashboard-body .inv-mgmt-page:not(.inv-dashboard-page) .inv-mgmt-table-wrap > .inv-mgmt-table:not(.inv-dashboard-pending-table):not(.inv-dashboard-expiring-table) > tbody {
    display: table-row-group !important;
}

body.inv-dashboard-body .inv-mgmt-page:not(.inv-dashboard-page) .inv-mgmt-table-wrap > .inv-mgmt-table:not(.inv-dashboard-pending-table):not(.inv-dashboard-expiring-table) > thead > tr,
body.inv-dashboard-body .inv-mgmt-page:not(.inv-dashboard-page) .inv-mgmt-table-wrap > .inv-mgmt-table:not(.inv-dashboard-pending-table):not(.inv-dashboard-expiring-table) > tbody > tr,
body.inv-dashboard-body .inv-mgmt-page:not(.inv-dashboard-page) .inv-mgmt-table-wrap > .inv-mgmt-table:not(.inv-dashboard-pending-table):not(.inv-dashboard-expiring-table) > tbody > tr:not(:has(.inv-mgmt-empty)) {
    display: table-row !important;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    gap: 0;
}

body.inv-dashboard-body .inv-mgmt-page:not(.inv-dashboard-page) .inv-mgmt-table-wrap > .inv-mgmt-table:not(.inv-dashboard-pending-table):not(.inv-dashboard-expiring-table) > thead > tr > th {
    position: sticky;
    top: 0;
    z-index: 2;
    display: table-cell !important;
    padding: 12px 14px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #334155;
    background: #f1f5f9;
    border-top: 0 !important;
    border-left: 0 !important;
    border-right: 1px solid #dbe3ee !important;
    border-bottom: 1px solid #dbe3ee !important;
    white-space: nowrap;
}

body.inv-dashboard-body .inv-mgmt-page:not(.inv-dashboard-page) .inv-mgmt-table-wrap > .inv-mgmt-table:not(.inv-dashboard-pending-table):not(.inv-dashboard-expiring-table) > thead > tr > th:last-child {
    text-align: right;
}

body.inv-dashboard-body .inv-mgmt-page:not(.inv-dashboard-page) .inv-mgmt-table-wrap > .inv-mgmt-table:not(.inv-dashboard-pending-table):not(.inv-dashboard-expiring-table) > tbody > tr:not(:has(.inv-mgmt-empty)) > td,
body.inv-dashboard-body .inv-mgmt-page:not(.inv-dashboard-page) .inv-mgmt-table-wrap > .inv-mgmt-table:not(.inv-dashboard-pending-table):not(.inv-dashboard-expiring-table) > tbody > tr:not(:has(.inv-mgmt-empty)) > td.inv-mgmt-cell--action,
body.inv-dashboard-body .inv-mgmt-page:not(.inv-dashboard-page) .inv-mgmt-table-wrap > .inv-mgmt-table:not(.inv-dashboard-pending-table):not(.inv-dashboard-expiring-table) > tbody > tr:not(:has(.inv-mgmt-empty)) > td:first-child {
    display: table-cell !important;
    flex: none;
    width: auto;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 10px 12px;
    vertical-align: middle;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: #111827;
    background: #fff;
    border-top: 0 !important;
    border-left: 0 !important;
    border-right: 1px solid #e5e7eb !important;
    border-bottom: 1px solid #e5e7eb !important;
    border-radius: 0;
    white-space: nowrap;
}

body.inv-dashboard-body .inv-mgmt-page:not(.inv-dashboard-page) .inv-mgmt-table-wrap > .inv-mgmt-table:not(.inv-dashboard-pending-table):not(.inv-dashboard-expiring-table) > thead > tr > th:last-child,
body.inv-dashboard-body .inv-mgmt-page:not(.inv-dashboard-page) .inv-mgmt-table-wrap > .inv-mgmt-table:not(.inv-dashboard-pending-table):not(.inv-dashboard-expiring-table) > tbody > tr:not(:has(.inv-mgmt-empty)) > td:last-child {
    border-right: 0 !important;
}

body.inv-dashboard-body .inv-mgmt-page:not(.inv-dashboard-page) .inv-mgmt-table-wrap > .inv-mgmt-table:not(.inv-dashboard-pending-table):not(.inv-dashboard-expiring-table) > tbody > tr:nth-child(even):not(:has(.inv-mgmt-empty)) > td {
    background: #f8fafc;
}

body.inv-dashboard-body .inv-mgmt-page:not(.inv-dashboard-page) .inv-mgmt-table-wrap > .inv-mgmt-table:not(.inv-dashboard-pending-table):not(.inv-dashboard-expiring-table) > tbody > tr:not(:has(.inv-mgmt-empty)):hover > td {
    background: #eef6ff;
}

body.inv-dashboard-body .inv-mgmt-page:not(.inv-dashboard-page) .inv-mgmt-table-wrap > .inv-mgmt-table:not(.inv-dashboard-pending-table):not(.inv-dashboard-expiring-table) > tbody > tr:not(:has(.inv-mgmt-empty)) > td[data-label]::before {
    content: none !important;
    display: none !important;
}

body.inv-dashboard-body .inv-mgmt-page:not(.inv-dashboard-page) .inv-mgmt-table-wrap > .inv-mgmt-table:not(.inv-dashboard-pending-table):not(.inv-dashboard-expiring-table) > tbody > tr:not(:has(.inv-mgmt-empty)) > td.inv-mgmt-cell--action .inv-mgmt-btn {
    display: inline-flex;
    vertical-align: middle;
    margin-left: 4px;
}

body.inv-dashboard-body .inv-mgmt-page:not(.inv-dashboard-page) .inv-mgmt-card:has(.inv-mgmt-table-wrap) > .inv-mgmt-table-wrap {
    overflow-x: auto;
    border: 1px solid #dbe3ee;
    border-radius: 12px;
    background: #fff;
}

body.inv-dashboard-body .inv-mgmt-page > .inv-mgmt-header,
body.inv-dashboard-body .inv-mgmt-page-panel:not(.inv-hidden) > .inv-mgmt-header {
    padding: 10px;
    box-sizing: border-box;
}

body.inv-dashboard-body .inv-mgmt-header > .inv-mgmt-btn {
    padding: 10px;
    box-sizing: border-box;
}

.sb-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.sb-kpi {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 176px;
    padding: 22px 22px 18px;
    border-radius: 22px;
    overflow: hidden;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 16px 32px rgba(17, 24, 39, 0.14);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sb-kpi::before,
.sb-kpi::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.sb-kpi::before {
    width: 160px;
    height: 160px;
    top: -70px;
    right: -40px;
    background: rgba(255, 255, 255, 0.16);
}

.sb-kpi::after {
    width: 90px;
    height: 90px;
    right: 36px;
    bottom: -36px;
    background: rgba(255, 255, 255, 0.1);
}

.sb-kpi:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 42px rgba(17, 24, 39, 0.2);
    color: #ffffff;
}

.sb-kpi--customers {
    background: linear-gradient(145deg, #365314 0%, #4d7c0f 42%, #84cc16 100%);
}

.sb-kpi--bills {
    background: linear-gradient(145deg, #134e4a 0%, #0f766e 48%, #2dd4bf 100%);
}

.sb-kpi--payments {
    background: linear-gradient(145deg, #1e3a8a 0%, #2563eb 48%, #38bdf8 100%);
}

.sb-kpi--static {
    cursor: default;
}

.sb-kpi--static:hover {
    transform: none;
    box-shadow: 0 16px 32px rgba(17, 24, 39, 0.14);
}

.sb-kpi--dues {
    background: linear-gradient(145deg, #9a3412 0%, #ea580c 46%, #fbbf24 100%);
}

.sb-kpi-icon {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.sb-kpi-icon .material-symbols-outlined,
.sb-kpi-go .material-symbols-outlined {
    font-variation-settings: "FILL" 1, "wght" 500, "opsz" 24;
}

.sb-kpi-icon .material-symbols-outlined {
    font-size: 28px;
}

.sb-kpi-label,
.sb-kpi-value,
.sb-kpi-go {
    position: relative;
    z-index: 1;
}

.sb-kpi-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.9;
}

.sb-kpi-value {
    margin-top: 8px;
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
}

.sb-kpi-go {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 700;
}

.sb-kpi-go .material-symbols-outlined {
    font-size: 18px;
    transition: transform 0.2s ease;
}

.sb-kpi:hover .sb-kpi-go .material-symbols-outlined {
    transform: translateX(4px);
}

@media (max-width: 1100px) {
    .sb-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .sb-kpi-grid {
        grid-template-columns: 1fr;
    }
}

.sb-chart-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
}

.sb-chart-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 22px 16px;
    box-shadow:
        0 1px 2px rgba(28, 36, 52, 0.04),
        0 12px 28px rgba(28, 36, 52, 0.07);
}

.sb-chart-card h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
}

.sb-chart-card p {
    margin: 4px 0 14px;
    color: #6b7280;
    font-size: 13px;
}

.sb-chart-bars {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sb-chart-bar {
    display: grid;
    grid-template-columns: minmax(148px, 210px) minmax(0, 1fr) 2rem;
    gap: 10px;
    align-items: center;
    padding: 7px 8px;
    border-radius: 10px;
    color: #111827;
    text-decoration: none;
}

.sb-chart-bar:hover {
    background: #f7fee7;
}

.sb-chart-label,
.sb-vchart-label {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.sb-chart-track,
.sb-vchart-plot {
    background: #f3f4f6;
    border-radius: 999px;
    overflow: hidden;
}

.sb-chart-track {
    height: 14px;
}

.sb-chart-fill,
.sb-vchart-fill {
    display: block;
    background: #65a30d;
    border-radius: 999px;
}

.sb-chart-fill {
    height: 100%;
}

.sb-chart-bar:nth-child(2) .sb-chart-fill { background: #4d7c0f; }
.sb-chart-bar:nth-child(3) .sb-chart-fill { background: #0f766e; }
.sb-chart-bar:nth-child(4) .sb-chart-fill { background: #1d4ed8; }
.sb-chart-bar:nth-child(5) .sb-chart-fill { background: #7c3aed; }
.sb-chart-bar:nth-child(6) .sb-chart-fill { background: #c2410c; }
.sb-chart-bar:nth-child(7) .sb-chart-fill { background: #be123c; }

.sb-chart-bar:hover .sb-chart-fill,
.sb-vchart-col:hover .sb-vchart-fill {
    filter: brightness(0.88);
}

.sb-chart-count,
.sb-vchart-count {
    font-size: 13px;
    font-weight: 700;
    color: #3f6212;
    text-align: right;
}

.sb-donut {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 28px;
    min-height: 280px;
}

.sb-donut svg {
    width: 220px;
    height: 220px;
    flex: 0 0 auto;
}

.sb-donut a path {
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.sb-donut a:hover path {
    opacity: 0.78;
}

.sb-donut-total {
    font-size: 32px;
    font-weight: 800;
    fill: #111827;
}

.sb-donut-caption {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    fill: #6b7280;
}

.sb-donut-legend {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    flex: 1 1 220px;
    max-width: 320px;
    min-width: 180px;
}

.sb-donut-key {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    color: #111827;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.sb-donut-key:hover {
    background: #f7fee7;
}

.sb-donut-swatch {
    width: 14px;
    height: 14px;
    border-radius: 4px;
}

@media (max-width: 700px) {
    .sb-donut {
        flex-direction: column;
        align-items: stretch;
    }

    .sb-donut svg {
        align-self: center;
    }
}

.sb-vchart {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    align-items: end;
    min-height: 220px;
}

.sb-vchart-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-height: 200px;
    padding: 8px 4px;
    border-radius: 12px;
    color: #111827;
    text-decoration: none;
}

.sb-vchart-col:hover {
    background: #f7fee7;
}

.sb-vchart-plot {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 64px;
    height: 180px;
    min-height: 180px;
    border-radius: 12px;
}

.sb-vchart-fill {
    width: 100%;
}

.sb-vchart:not(.sb-vchart--priority) > .sb-vchart-col:nth-child(2) .sb-vchart-fill { background: #4d7c0f; }
.sb-vchart:not(.sb-vchart--priority) > .sb-vchart-col:nth-child(3) .sb-vchart-fill { background: #0f766e; }
.sb-vchart:not(.sb-vchart--priority) > .sb-vchart-col:nth-child(4) .sb-vchart-fill { background: #1d4ed8; }
.sb-vchart:not(.sb-vchart--priority) > .sb-vchart-col:nth-child(5) .sb-vchart-fill { background: #7c3aed; }

.sb-vchart.sb-vchart--money {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sb-vchart.sb-vchart--money .sb-vchart-count {
    text-align: center;
    font-size: 12px;
}

.sb-vchart.sb-vchart--money > .sb-vchart-col:nth-child(1) .sb-vchart-fill { background: #0f766e; }
.sb-vchart.sb-vchart--money > .sb-vchart-col:nth-child(2) .sb-vchart-fill { background: #2563eb; }
.sb-vchart.sb-vchart--money > .sb-vchart-col:nth-child(3) .sb-vchart-fill { background: #ea580c; }

.sb-status-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.sb-status-pill {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fafc;
}

.sb-status-pill strong {
    font-size: 20px;
    color: #111827;
}

.sb-status-pill span {
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
}

.sb-recent-card {
    grid-column: 1 / -1;
}

.sb-recent-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sb-recent-list a {
    display: grid;
    grid-template-columns: minmax(140px, 1.2fr) minmax(0, 1.6fr) 110px 120px;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fafc;
    color: #111827;
    text-decoration: none;
}

.sb-recent-list a:hover {
    background: #eef6ff;
}

.sb-recent-name,
.sb-recent-money {
    font-weight: 700;
}

.sb-recent-services {
    color: #4b5563;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sb-recent-status {
    justify-self: end;
    padding: 4px 8px;
    border-radius: 999px;
    background: #ffedd5;
    color: #c2410c;
    font-size: 12px;
    font-weight: 700;
}

.sb-recent-status--settled {
    background: #dcfce7;
    color: #15803d;
}

.sb-recent-status--partiallypaid {
    background: #dbeafe;
    color: #1d4ed8;
}

.sb-recent-empty {
    margin: 0;
}

@media (max-width: 800px) {
    .sb-recent-list a {
        grid-template-columns: 1fr 1fr;
    }
}

.sb-vchart--priority .sb-vchart-col--high .sb-vchart-fill { background: #dc2626; }
.sb-vchart--priority .sb-vchart-col--medium .sb-vchart-fill { background: #ea580c; }
.sb-vchart--priority .sb-vchart-col--low .sb-vchart-fill { background: #65a30d; }

@media (max-width: 900px) {
    .sb-chart-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .sb-chart-bar {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .sb-chart-label {
        grid-column: 1 / -1;
    }
}

@media print {
    .sb-print-toolbar,
    .inv-sidebar,
    .inv-dashboard-header {
        display: none !important;
    }

    .sb-bill {
        border: 0;
        margin: 0;
        max-width: none;
    }
}
