i[data-lucide] { display: inline-block; flex-shrink: 0; height: 18px; vertical-align: middle; width: 18px; }
.button { align-items: center; display: inline-flex; gap: 8px; justify-content: center; }
.button > svg,
.section-tabs svg { flex-shrink: 0; height: 18px; width: 18px; }
.sidebar { gap: 22px; overflow-y: auto; overscroll-behavior: contain; }
.sidebar .brand,
.sidebar .account { flex-shrink: 0; }
.sidebar .crm-navigation { flex: 0 0 auto; gap: 5px; }
.sidebar .nav-link { align-items: center; display: flex; font-size: 14px; gap: 10px; min-height: 44px; min-width: 0; padding: 10px 12px; }
.nav-link > svg { flex-shrink: 0; height: 18px; width: 18px; }
.nav-link > span { min-width: 0; overflow-wrap: normal; }
.nav-group-heading { display: grid; grid-template-columns: minmax(0, 1fr) 40px; }
.nav-group-heading.nav-group-leaf { grid-template-columns: minmax(0, 1fr); }
.nav-group-toggle { align-items: center; background: transparent; border: 0; border-radius: 6px; color: #c8d7d3; cursor: pointer; display: flex; justify-content: center; min-height: 44px; padding: 0; width: 40px; }
.nav-group-toggle:hover { background: rgba(255, 255, 255, .08); }
.nav-group-toggle:focus-visible { outline: 3px solid #e4bf73; outline-offset: -3px; }
.nav-group-toggle > svg { height: 17px; transition: transform .16s ease; width: 17px; }
.nav-group-toggle[aria-expanded="true"] > svg { transform: rotate(180deg); }
.nav-children { border-left: 1px solid #53645f; display: grid; gap: 2px; margin: 2px 0 7px 21px; padding-left: 8px; }
.nav-children[hidden] { display: none; }
.sidebar .nav-children .nav-link { color: #d4e2dd; font-size: 13px; min-height: 44px; padding: 9px 10px; }
.nav-children .nav-link > svg { height: 16px; width: 16px; }
.sidebar .is-section-active > .nav-group-heading > .nav-link:not([aria-current="page"]) { background: rgba(255, 255, 255, .06); }
.sidebar .nav-link[aria-current="page"] { background: #e7f2ed; box-shadow: inset 3px 0 #c89a42; color: #194a3e; }
.account-signout { align-items: center; display: flex; gap: 9px; min-height: 44px; }
.account-signout > svg { height: 17px; width: 17px; }
.section-tabs { border-bottom: 1px solid var(--line); display: flex; gap: 4px; margin: 0 0 22px; max-width: 100%; min-width: 0; overflow-x: auto; }
.section-tabs > a { align-items: center; border-bottom: 3px solid transparent; color: var(--muted); display: inline-flex; flex-shrink: 0; font-size: 14px; gap: 8px; min-height: 48px; padding: 11px 14px; text-decoration: none; white-space: nowrap; }
.section-tabs > a:hover { background: #edf4f0; color: var(--teal); }
.section-tabs > a[aria-current="page"] { border-bottom-color: var(--teal); color: var(--ink); }
.section-tabs > a:focus-visible { outline: 3px solid var(--teal); outline-offset: -3px; }
.main-user-directory { width: min(1520px, 100%); }
.user-editor .button { min-height: 44px; }
.directory-count { background: #e8efec; border-radius: 4px; color: #486358; font-size: 12px; min-width: 24px; padding: 2px 6px; text-align: center; }
.directory-filters { align-items: end; display: grid; gap: 12px; grid-template-columns: minmax(220px, 1fr) 180px auto auto; margin: 0 0 18px; }
.directory-filters .button { min-height: 44px; }
.directory-result-count { color: var(--muted); font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.user-directory-wrap { background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.user-directory-wrap:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.user-directory-table { min-width: 980px; table-layout: fixed; }
.user-directory-table th:nth-child(1) { width: 24%; }
.user-directory-table th:nth-child(2) { width: 26%; }
.user-directory-table th:nth-child(3) { width: 10%; }
.user-directory-table th:nth-child(4) { width: 20%; }
.user-directory-table th:nth-child(5) { width: 20%; }
.user-directory-table th { white-space: nowrap; }
.user-directory-table td { padding: 16px; vertical-align: middle; }
.user-directory-table td > strong { font-size: 15px; }
.user-directory-table .cell-nowrap { font-variant-numeric: tabular-nums; white-space: nowrap; }
.directory-email { overflow-wrap: anywhere; }
.directory-role,
.directory-status { border-radius: 5px; display: inline-block; font-size: 11px; font-weight: 800; padding: 4px 7px; white-space: nowrap; }
.directory-role-admin { background: #e8eff9; color: #345e8c; }
.directory-role-sales_rep { background: #f6edf8; color: #78518f; }
.directory-role-service_provider { background: #e7f2ef; color: #266853; }
.directory-active { background: #e6f2e9; color: #267348; }
.directory-inactive { background: #edf0f2; color: #5a6670; }
.directory-actions { align-items: stretch; display: flex; flex-direction: column; gap: 8px; }
.directory-actions .button { font-size: 13px; min-height: 44px; padding: 9px 10px; white-space: nowrap; }
.directory-actions svg { height: 16px; width: 16px; }
.directory-pagination { align-items: center; display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; margin-top: 18px; }
.directory-pagination .button { min-height: 44px; }
.user-create-menu { position: relative; }
.user-create-menu > summary { cursor: pointer; list-style: none; min-height: 44px; }
.user-create-menu > summary::-webkit-details-marker { display: none; }
.user-create-options { background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-soft); display: grid; min-width: 220px; padding: 6px; position: absolute; right: 0; top: calc(100% + 8px); z-index: 25; }
.user-create-options > a { align-items: center; border-radius: 5px; color: var(--ink); display: flex; font-size: 14px; gap: 10px; min-height: 44px; padding: 10px; text-decoration: none; white-space: nowrap; }
.user-create-options > a:hover { background: #edf4f0; }
.user-create-options svg { flex-shrink: 0; height: 18px; width: 18px; }
.finance-workspace { min-width: 0; }
.finance-workspace .metric-grid { gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.finance-workspace .metric-grid > .metric { background: #fff; box-shadow: none; min-height: 112px; min-width: 0; }
.finance-workspace .metric::after { display: none; }
.finance-workspace .metric strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.finance-workspace .report-section,
.finance-workspace .maintenance-report { margin: 28px 0; }
.finance-workspace .report-section .table-wrap,
.finance-workspace .maintenance-report > .table-wrap,
.finance-workspace .provider-payment-jobs > .table-wrap { background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.finance-workspace .table-wrap:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.finance-workspace th { white-space: nowrap; }
.finance-workspace td { overflow-wrap: normal; word-break: normal; }
.finance-workspace .finance-section table { min-width: 1100px; }
.finance-workspace td[data-label="Revenue"],
.finance-workspace td[data-label="Funded Amount"],
.finance-workspace td[data-label="Job Cost"],
.finance-workspace td[data-label="Commission"],
.finance-workspace td[data-label="Provider Payout"],
.finance-workspace td[data-label="Net After Payouts"],
.finance-workspace td[data-label="Remaining Balance"],
.finance-workspace td[data-label="Price / Visit"],
.finance-workspace td[data-label="Scheduled Value"] { font-variant-numeric: tabular-nums; white-space: nowrap; }
.finance-workspace .filters .button { min-height: 44px; }
.finance-page-title { flex-wrap: wrap; gap: 12px; margin: 0 0 16px; }
.finance-page-title h2 { font-size: 22px; }
.finance-page-title .button { min-height: 44px; }
.provider-payments-workspace .provider-payment-filter { grid-template-columns: minmax(240px, 420px) auto; justify-content: start; }
.provider-payments-workspace .provider-payment-workspace { align-items: start; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); margin-top: 24px; }
.provider-payments-workspace #record-provider-payment { box-shadow: none; }
.provider-payments-workspace .provider-payment-jobs { min-width: 0; }
.provider-payments-workspace .provider-payment-jobs .panel-title h2 { font-size: 20px; }
.provider-picker-table { min-width: 700px; }
.provider-picker-table .button { min-height: 44px; }
.provider-payment-history .button { min-height: 44px; }
@media (max-width: 1180px) {
    .provider-payments-workspace .provider-payment-workspace { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
    .user-type-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .user-type-tabs > a { font-size: 13px; gap: 6px; justify-content: space-between; min-width: 0; padding: 10px 6px; white-space: normal; }
    .user-type-tabs .directory-count { min-width: 20px; padding: 2px 5px; }
    .directory-filters { grid-template-columns: minmax(0, 1fr); }
    .directory-filters input,
    .directory-filters select,
    .directory-filters .button { min-height: 48px; }
    .user-directory-table,
    .finance-workspace .finance-section table,
    .provider-picker-table { min-width: 0; }
    .user-directory-table td { padding: 12px; }
    .user-directory-table td > strong { font-size: 16px; }
    .directory-actions { flex-direction: row; flex-wrap: wrap; }
    .directory-actions .button { flex: 1 1 120px; }
    .user-create-menu { width: 100%; }
    .user-create-menu > summary { width: 100%; }
    .user-create-options { left: 0; min-width: 0; right: 0; }
    .finance-workspace .metric-grid { grid-template-columns: minmax(0, 1fr); }
    .provider-payments-workspace .provider-payment-filter { grid-template-columns: minmax(0, 1fr); justify-content: stretch; }
    .finance-workspace td[data-label] { white-space: normal; }
    .finance-workspace td[data-label] > .cell-nowrap { white-space: nowrap; }
    .finance-page-title .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .nav-group-toggle > svg { transition: none; } }
