@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');

body.fb-tenant-shell {
    --fb-sidebar-width: 260px;
    --fb-ink: #19172b;
    --fb-muted: #6f6d80;
    --fb-muted-2: #9795a5;
    --fb-line: #e9e8ef;
    min-height: 100vh;
    margin: 0;
    color: var(--fb-ink);
    background: var(--fb-canvas, #f6f6f9);
    font-family: "DM Sans", var(--font-family), Arial, sans-serif;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

.fb-tenant-shell *,
.fb-tenant-shell *::before,
.fb-tenant-shell *::after {
    box-sizing: border-box;
}

.fb-tenant-shell button,
.fb-tenant-shell input,
.fb-tenant-shell textarea,
.fb-tenant-shell select {
    font: inherit;
}

:where(.fb-tenant-shell button) {
    color: inherit;
}

.fb-tenant-shell button,
.fb-tenant-shell a {
    -webkit-tap-highlight-color: transparent;
}

.fb-tenant-shell svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fb-tenant-shell .fb-svg-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.fb-tenant-shell .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    width: var(--fb-sidebar-width);
    display: flex;
    flex-direction: column;
    padding: 20px 14px 16px;
    border-right: 1px solid var(--fb-line);
    background: var(--fb-sidebar, #fff);
    transition: width .25s ease, transform .25s ease;
}

.fb-tenant-shell .brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    padding: 0 5px 0 8px;
}

.fb-tenant-shell .brand {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    color: var(--fb-ink);
    text-decoration: none;
}

.fb-tenant-shell .brand-image {
    width: 134px;
    height: 36px;
    object-fit: contain;
    object-position: left center;
}

.fb-tenant-shell .brand-mark {
    position: relative;
    flex: 0 0 auto;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    padding: 8px;
    border-radius: 11px;
    background: linear-gradient(145deg, color-mix(in srgb, var(--fb-primary) 82%, #fff), var(--fb-primary));
    box-shadow: 0 6px 14px color-mix(in srgb, var(--fb-primary) 25%, transparent);
}

.fb-tenant-shell .brand-mark i {
    display: block;
    width: 4px;
    border-radius: 5px;
    background: #fff;
}

.fb-tenant-shell .brand-mark i:nth-child(1) { height: 8px; opacity: .7; }
.fb-tenant-shell .brand-mark i:nth-child(2) { height: 13px; opacity: .86; }
.fb-tenant-shell .brand-mark i:nth-child(3) { height: 18px; }

.fb-tenant-shell .brand-name {
    font: 800 21px/1 "Manrope", sans-serif;
    letter-spacing: -.8px;
    white-space: nowrap;
}

.fb-tenant-shell .sidebar-collapse {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    padding: 0;
    border: 1px solid var(--fb-line);
    border-radius: 8px;
    color: #8b8998;
    background: #fff;
    cursor: pointer;
}

.fb-tenant-shell .sidebar-collapse svg {
    width: 15px;
    height: 15px;
    transform: rotate(180deg);
}

.fb-tenant-shell .sidebar-collapse:hover {
    color: var(--fb-primary);
    border-color: color-mix(in srgb, var(--fb-primary) 30%, var(--fb-line));
}

.fb-tenant-shell .company-switcher-wrap {
    position: relative;
}

.fb-tenant-shell .company-switcher {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0 19px;
    padding: 10px;
    border: 1px solid var(--fb-line);
    border-radius: 12px;
    text-align: left;
    background: #fafafd;
    cursor: pointer;
    transition: .18s ease;
}

.fb-tenant-shell .company-switcher:hover {
    border-color: #d9d7e4;
    background: #fff;
    box-shadow: 0 5px 15px rgba(30, 27, 55, .05);
}

.fb-tenant-shell .company-avatar,
.fb-tenant-shell .profile-avatar {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: #fff;
    font-weight: 700;
    background: linear-gradient(135deg, #201f36, #4d4964);
}

.fb-tenant-shell .company-avatar {
    width: 34px;
    height: 34px;
    font-size: 11px;
}

.fb-tenant-shell .company-copy,
.fb-tenant-shell .profile-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.fb-tenant-shell .company-copy {
    flex: 1;
}

.fb-tenant-shell .company-copy strong,
.fb-tenant-shell .profile-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}

.fb-tenant-shell .company-copy small,
.fb-tenant-shell .profile-copy small {
    color: var(--fb-muted-2);
    font-size: 11px;
}

.fb-tenant-shell .company-switcher > svg,
.fb-tenant-shell .fb-shell-profile > svg {
    width: 14px;
    height: 14px;
    color: #9996a5;
    transform: rotate(90deg);
}

.fb-tenant-shell .company-menu {
    position: absolute;
    top: calc(100% - 12px);
    left: 0;
    z-index: 80;
    width: 100%;
    padding: 7px;
    border: 1px solid var(--fb-line);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 20px 45px rgba(31, 28, 51, .16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: .16s ease;
}

.fb-tenant-shell .company-menu[hidden] { display: none; }
.fb-tenant-shell .company-menu.open { opacity: 1; visibility: visible; transform: none; }

.fb-tenant-shell .company-menu-label {
    padding: 6px 8px 7px;
    color: #a09dab;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.fb-tenant-shell .company-menu > a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 9px;
    color: #4c4959;
    text-decoration: none;
}

.fb-tenant-shell .company-menu > a:hover,
.fb-tenant-shell .company-menu > a.active {
    background: #f7f6fb;
}

.fb-tenant-shell .company-menu > a > span {
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 8px;
    color: var(--fb-primary);
    font-size: 10px;
    font-weight: 800;
    background: color-mix(in srgb, var(--fb-primary) 10%, #fff);
}

.fb-tenant-shell .company-menu > a p {
    min-width: 0;
    flex: 1;
    display: grid;
    gap: 2px;
    margin: 0;
}

.fb-tenant-shell .company-menu > a strong {
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
    white-space: nowrap;
}

.fb-tenant-shell .company-menu > a small {
    color: #9a97a4;
    font-size: 10px;
}

.fb-tenant-shell .company-menu > a > svg {
    width: 13px;
    height: 13px;
    color: var(--fb-accent);
    stroke-width: 2.4;
}

.fb-tenant-shell .company-menu-footer {
    display: grid;
    gap: 2px;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid #efedf3;
}

.fb-tenant-shell .company-menu-footer form {
    margin: 0;
}

.fb-tenant-shell .company-menu-footer a,
.fb-tenant-shell .company-menu-footer button {
    width: 100%;
    min-height: 36px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 8px;
    border: 0;
    border-radius: 7px;
    color: #6f6c7b;
    font-size: 12px;
    text-decoration: none;
    background: transparent;
    cursor: pointer;
}

.fb-tenant-shell .company-menu-footer a:hover,
.fb-tenant-shell .company-menu-footer button:hover {
    color: var(--fb-ink);
    background: #f7f6fa;
}

.fb-tenant-shell .company-menu-footer svg {
    width: 13px;
    height: 13px;
}

.fb-tenant-shell .sidebar-nav {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: none;
}

.fb-tenant-shell .sidebar-nav::-webkit-scrollbar {
    display: none;
}

.fb-tenant-shell .nav-label {
    margin: 16px 12px 7px;
    overflow: hidden;
    color: #aaa8b3;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    white-space: nowrap;
}

.fb-tenant-shell .nav-label:first-child {
    margin-top: 0;
}

.fb-tenant-shell .nav-item,
.fb-tenant-shell .help-link {
    position: relative;
    width: 100%;
    min-height: 41px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 2px 0;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    color: #666374;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    background: transparent;
    cursor: pointer;
    transition: color .16s, background .16s;
}

.fb-tenant-shell .nav-item {
    text-decoration: none;
}

.fb-tenant-shell .nav-item svg,
.fb-tenant-shell .help-link svg {
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    stroke-width: 1.8;
}

.fb-tenant-shell .nav-item:hover,
.fb-tenant-shell .help-link:hover {
    color: var(--fb-ink);
    background: #f7f6fb;
}

.fb-tenant-shell .nav-item.active {
    color: var(--fb-primary);
    font-weight: 700;
    background: color-mix(in srgb, var(--fb-primary) 9%, #fff);
}

.fb-tenant-shell .nav-item.active::before {
    content: "";
    position: absolute;
    inset: 10px auto 10px -14px;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: var(--fb-primary);
}

.fb-tenant-shell .nav-badge {
    min-width: 20px;
    height: 19px;
    display: grid;
    place-items: center;
    margin-left: auto;
    padding: 0 5px;
    border-radius: 10px;
    color: var(--fb-primary);
    font-size: 10px;
    background: color-mix(in srgb, var(--fb-primary) 11%, #fff);
}

.fb-tenant-shell .nav-badge.warning {
    color: #d47a27;
    background: #fff3e7;
}

.fb-tenant-shell .sidebar-footer {
    padding-top: 12px;
    border-top: 1px solid #f0eff4;
}

.fb-tenant-shell .plan-card {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 8px;
    padding: 9px;
    overflow: hidden;
    border-radius: 11px;
    color: inherit;
    text-decoration: none;
    background: linear-gradient(115deg, #f4f1ff, #f9f8ff);
}

.fb-tenant-shell .plan-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 8px;
    color: var(--fb-primary);
    background: #fff;
}

.fb-tenant-shell .plan-icon svg {
    width: 16px;
    height: 16px;
}

.fb-tenant-shell .plan-card div:nth-child(2) {
    min-width: 0;
    display: grid;
    flex: 1;
}

.fb-tenant-shell .plan-card small,
.fb-tenant-shell .plan-card > span {
    font-size: 10px;
}

.fb-tenant-shell .plan-card small {
    color: #8a879b;
}

.fb-tenant-shell .plan-card strong {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fb-tenant-shell .plan-card > span {
    color: var(--fb-accent);
    font-weight: 700;
}

.fb-tenant-shell .fb-shell-column {
    min-height: 100vh;
    margin-left: var(--fb-sidebar-width);
    transition: margin-left .25s ease;
}

.fb-tenant-shell .fb-shell-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 32px;
    border-bottom: 1px solid rgba(228, 227, 235, .82);
    background: color-mix(in srgb, var(--fb-surface, #fff) 90%, transparent);
    backdrop-filter: blur(18px);
}

.fb-tenant-shell .fb-shell-heading {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.fb-tenant-shell .fb-shell-heading h1 {
    margin: 0;
    overflow: hidden;
    font: 700 18px/1.25 "Manrope", sans-serif;
    letter-spacing: -.35px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fb-tenant-shell .fb-shell-heading p {
    margin: 3px 0 0;
    color: var(--fb-muted-2);
    font-size: 12px;
}

.fb-tenant-shell .mobile-menu {
    width: 37px;
    height: 37px;
    display: none;
    place-items: center;
    flex: 0 0 auto;
    padding: 0;
    border: 1px solid var(--fb-line);
    border-radius: 10px;
    background: var(--fb-surface, #fff);
}

.fb-tenant-shell .mobile-menu svg {
    width: 18px;
    height: 18px;
}

.fb-tenant-shell .fb-shell-profile {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px 6px 6px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--fb-ink);
    text-decoration: none;
    transition: .16s ease;
}

.fb-tenant-shell .fb-shell-profile:hover {
    border-color: var(--fb-line);
    background: var(--fb-surface, #fff);
    box-shadow: 0 5px 18px rgba(30, 27, 55, .06);
}

.fb-tenant-shell .fb-shell-profile .profile-avatar {
    width: 35px;
    height: 35px;
    font-size: 11px;
}

.fb-tenant-shell .fb-shell-main {
    width: 100%;
    min-height: calc(100vh - 74px);
    padding: 30px 32px 48px;
    outline: none;
}

.fb-tenant-shell .fb-shell-main > .fi-page {
    width: 100%;
    max-width: 1440px;
    margin-inline: auto;
}

.fb-tenant-shell .mobile-overlay {
    display: none;
}

body.fb-tenant-shell.sidebar-collapsed {
    --fb-sidebar-width: 78px;
}

body.fb-tenant-shell.sidebar-collapsed .sidebar {
    padding-inline: 10px;
}

body.fb-tenant-shell.sidebar-collapsed .brand-row {
    padding-left: 12px;
}

body.fb-tenant-shell.sidebar-collapsed .brand-name,
body.fb-tenant-shell.sidebar-collapsed .company-copy,
body.fb-tenant-shell.sidebar-collapsed .company-switcher > svg,
body.fb-tenant-shell.sidebar-collapsed .nav-item span,
body.fb-tenant-shell.sidebar-collapsed .nav-badge,
body.fb-tenant-shell.sidebar-collapsed .nav-label,
body.fb-tenant-shell.sidebar-collapsed .plan-card div:nth-child(2),
body.fb-tenant-shell.sidebar-collapsed .plan-card > span,
body.fb-tenant-shell.sidebar-collapsed .help-link span {
    display: none;
}

body.fb-tenant-shell.sidebar-collapsed .sidebar-collapse {
    position: absolute;
    top: 24px;
    right: -14px;
    box-shadow: 0 3px 9px rgba(0, 0, 0, .08);
}

body.fb-tenant-shell.sidebar-collapsed .sidebar-collapse svg {
    transform: none;
}

body.fb-tenant-shell.sidebar-collapsed .company-switcher {
    justify-content: center;
    padding: 8px;
}

body.fb-tenant-shell.sidebar-collapsed .company-menu {
    width: 232px;
}

body.fb-tenant-shell.sidebar-collapsed .nav-item,
body.fb-tenant-shell.sidebar-collapsed .help-link {
    justify-content: center;
    padding: 0;
}

body.fb-tenant-shell.sidebar-collapsed .nav-item.active::before {
    left: -10px;
}

body.fb-tenant-shell.sidebar-collapsed .plan-card {
    justify-content: center;
    padding: 7px;
}

/* Tenant resource tables — mirrors the original FinBooks module pages. */
.fb-tenant-shell .fi-resource-list-records-page {
    --fb-table-line: #efedf4;
    --fb-table-muted: #8b8898;
    gap: 15px;
}

.fb-tenant-shell .fi-resource-list-records-page > .fi-header {
    margin: 0;
}

.fb-tenant-shell .fb-module-hero {
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.fb-tenant-shell .fb-module-hero-copy {
    min-width: 0;
}

.fb-tenant-shell .fb-module-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
    color: var(--fb-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .25px;
}

.fb-tenant-shell .fb-module-eyebrow i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--fb-primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--fb-primary) 10%, transparent);
}

.fb-tenant-shell .fb-module-hero h2 {
    margin: 0 0 5px;
    color: var(--fb-ink);
    font: 700 25px/1.2 "Manrope", sans-serif;
    letter-spacing: -.65px;
}

.fb-tenant-shell .fb-module-hero p {
    margin: 0;
    color: var(--fb-muted);
    font-size: 13px;
}

.fb-tenant-shell .fb-module-actions,
.fb-tenant-shell .fb-module-actions .fi-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.fb-tenant-shell .fb-module-actions .fi-btn {
    min-height: 38px;
    padding-inline: 14px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: none;
}

.fb-tenant-shell .fb-module-actions .fi-btn:not(.fi-color-primary) {
    border: 1px solid var(--fb-line);
    color: #696675;
    background: #fff;
}

.fb-tenant-shell .fb-module-actions .fi-color-primary {
    border: 1px solid var(--fb-primary);
    color: #fff;
    background: var(--fb-primary);
    box-shadow: 0 6px 16px color-mix(in srgb, var(--fb-primary) 20%, transparent);
}

.fb-tenant-shell .fb-module-actions .fi-btn svg {
    width: 15px;
    height: 15px;
}

.fb-tenant-shell .fb-module-page {
    display: grid;
    gap: 15px;
}

.fb-tenant-shell .fb-module-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
}

.fb-tenant-shell .fb-module-summary-card {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 1px solid var(--fb-line);
    border-radius: 14px;
    background: var(--fb-surface, #fff);
    box-shadow: 0 7px 20px rgba(31, 28, 51, .045);
}

.fb-tenant-shell .fb-module-summary-icon {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 11px;
}

.fb-tenant-shell .fb-module-summary-icon svg {
    width: 18px;
    height: 18px;
}

.fb-tenant-shell .fb-module-summary-icon.violet {
    color: #6d5de5;
    background: #eeebff;
}

.fb-tenant-shell .fb-module-summary-icon.green {
    color: #179676;
    background: #e4f8f1;
}

.fb-tenant-shell .fb-module-summary-icon.blue {
    color: #3e7dca;
    background: #e8f3ff;
}

.fb-tenant-shell .fb-module-summary-icon.coral {
    color: #dd625f;
    background: #fff0ef;
}

.fb-tenant-shell .fb-module-summary-icon.yellow {
    color: #bd7a17;
    background: #fff6df;
}

.fb-tenant-shell .fb-module-summary-card p {
    min-width: 0;
    display: grid;
    gap: 3px;
    margin: 0;
    color: #898696;
    font-size: 12px;
}

.fb-tenant-shell .fb-module-summary-card strong {
    overflow: hidden;
    color: #343142;
    font: 700 16px/1.25 "Manrope", sans-serif;
    letter-spacing: -.2px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fb-tenant-shell .fb-module-table-card {
    min-width: 0;
    position: relative;
    z-index: 1;
    overflow: visible;
    border: 1px solid var(--fb-line);
    border-radius: 14px;
    background: var(--fb-surface, #fff);
    box-shadow: 0 7px 20px rgba(31, 28, 51, .045);
}

.fb-tenant-shell .fb-module-table-card > .fi-sc {
    gap: 0;
}

.fb-tenant-shell .fb-module-table-card .fi-sc-tabs {
    min-width: 0;
    padding: 9px 17px;
    margin: 0;
    border: 0;
    border-bottom: 1px solid var(--fb-table-line);
    border-radius: 0;
    background: var(--fb-surface, #fff);
    box-shadow: none;
    overflow-x: auto;
    scrollbar-width: thin;
}

.fb-tenant-shell .fb-module-table-card .fi-tabs {
    width: max-content;
    min-width: 100%;
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.fb-tenant-shell .fb-module-table-card .fi-tabs-item {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border: 0;
    border-radius: 8px;
    color: var(--fb-table-muted);
    font-size: 12px;
    font-weight: 500;
    background: transparent;
    box-shadow: none;
}

.fb-tenant-shell .fb-module-table-card .fi-tabs-item:hover {
    color: var(--fb-primary);
    background: color-mix(in srgb, var(--fb-primary) 5%, #fff);
}

.fb-tenant-shell .fb-module-table-card .fi-tabs-item.fi-active {
    color: var(--fb-primary);
    font-weight: 700;
    background: color-mix(in srgb, var(--fb-primary) 8%, #fff);
}

.fb-tenant-shell .fb-module-table-card .fi-tabs-item .fi-badge {
    min-width: 20px;
    height: 20px;
    min-height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border-radius: 6px;
    color: currentColor;
    line-height: 1;
    background: color-mix(in srgb, currentColor 8%, #fff);
}

.fb-tenant-shell .fb-module-table-card .fi-tabs-item .fi-badge-label-ctn {
    display: flex;
    align-items: center;
    align-self: center;
    justify-content: center;
    line-height: 1;
}

.fb-tenant-shell .fb-module-table-card .fi-tabs-item .fi-badge-label {
    display: block;
    line-height: 1;
}

.fb-tenant-shell .fb-module-table-card .fi-ta-ctn {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.fb-tenant-shell .fb-module-table-card .fi-ta-main {
    border: 0;
}

.fb-tenant-shell .fb-module-table-card .fi-ta-header-ctn {
    position: relative;
    z-index: 4;
    overflow: visible;
    border: 0;
    background: var(--fb-surface, #fff);
}

.fb-tenant-shell .fb-module-table-card .fi-ta-header {
    padding: 14px 17px 0;
}

.fb-tenant-shell .fb-module-table-card .fi-ta-header-heading {
    color: var(--fb-ink);
    font: 700 14px/1.35 "Manrope", sans-serif;
}

.fb-tenant-shell .fb-module-table-card .fi-ta-header-description {
    margin-top: 3px;
    color: var(--fb-muted);
    font-size: 12px;
}

.fb-tenant-shell .fb-module-table-card .fi-ta-header-toolbar {
    min-height: 54px;
    padding: 10px 17px;
    border-bottom: 1px solid var(--fb-table-line);
    background: var(--fb-surface, #fff);
}

.fb-tenant-shell .fb-module-table-card .fi-ta-search-field {
    width: min(260px, 100%);
}

.fb-tenant-shell .fb-module-table-card .fi-input-wrp {
    --fb-field-control-height: 34px;
    min-height: 34px;
    border: 1px solid var(--fb-line);
    border-radius: 8px;
    background: var(--fb-surface, #fff);
    box-shadow: none;
}

.fb-tenant-shell .fb-module-table-card .fi-input-wrp:focus-within {
    border-color: color-mix(in srgb, var(--fb-primary) 48%, var(--fb-line));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--fb-primary) 9%, transparent);
}

.fb-tenant-shell .fb-module-table-card .fi-ta-header-toolbar .fi-btn,
.fb-tenant-shell .fb-module-table-card .fi-ta-header-toolbar .fi-icon-btn {
    min-height: 34px;
    border: 1px solid var(--fb-line);
    border-radius: 8px;
    color: #777483;
    background: var(--fb-surface, #fff);
    box-shadow: none;
}

.fb-tenant-shell .fb-module-table-card .fi-ta-header-toolbar .fi-icon-btn {
    width: 34px;
    padding: 0;
}

.fb-tenant-shell .fb-module-table-card .fi-ta-filter-indicators {
    padding: 9px 17px;
    border-bottom: 1px solid var(--fb-table-line);
    background: #faf9fd;
}

.fb-tenant-shell .fb-module-table-card .fi-ta-content-ctn {
    position: relative;
    z-index: 1;
    overflow-x: auto;
}

.fb-tenant-shell .fb-module-table-card :is(.fi-dropdown-panel, .fi-popover-panel) {
    z-index: 100 !important;
}

.fb-tenant-shell .fb-module-table-card .fi-ta-table {
    min-width: 760px;
    white-space: nowrap;
}

.fb-tenant-shell .fb-module-table-card .fi-ta-header-cell {
    padding-block: 9px;
    border-top: 0;
    border-bottom: 1px solid var(--fb-table-line);
    color: #9e9ba8;
    background: #fbfbfd;
}

.fb-tenant-shell .fb-module-table-card .fi-ta-header-cell-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .35px;
    text-transform: uppercase;
}

.fb-tenant-shell .fb-module-table-card .fi-ta-row {
    transition: background .15s ease;
}

.fb-tenant-shell .fb-module-table-card .fi-ta-row:hover {
    background: #fdfcff;
}

.fb-tenant-shell .fb-module-table-card .fi-ta-cell {
    border-bottom-color: #f2f1f5;
    color: #706d7d;
    font-size: 12px;
}

.fb-tenant-shell .fb-module-table-card .fi-ta-text {
    padding-block: 9px;
    font-size: 12px;
}

.fb-tenant-shell .fb-module-table-card .fi-ta-text.fi-ta-text-has-descriptions {
    gap: 1px;
}

.fb-tenant-shell .fb-module-table-card .fi-ta-text > .fi-ta-text-description {
    font-size: 11px;
    line-height: 1.35;
}

.fb-tenant-shell .fb-module-table-card .fi-ta-text-item-label {
    line-height: 1.35;
}

.fb-tenant-shell .fb-module-table-card .fi-ta-col-reference .fi-ta-text-item-label,
.fb-tenant-shell .fb-module-table-card .fi-ta-col-number .fi-ta-text-item-label,
.fb-tenant-shell .fb-module-table-card .fi-ta-col-name .fi-ta-text-item-label {
    color: #3a3748;
    font-weight: 700;
}

.fb-tenant-shell .fb-module-table-card .fi-badge {
    min-height: 23px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
}

.fb-tenant-shell .fb-module-table-card .fi-ta-actions .fi-icon-btn {
    width: 27px;
    height: 27px;
    min-height: 27px;
    border: 0;
    border-radius: 7px;
    color: #9c99a7;
    background: transparent;
    box-shadow: none;
}

.fb-tenant-shell .fb-module-table-card .fi-ta-actions .fi-icon-btn:hover {
    color: #605c6e;
    background: #f4f3f7;
}

.fb-tenant-shell .fb-module-table-card .fi-ta-cell:has(.fi-ta-actions),
.fb-tenant-shell .fb-module-table-card .fi-ta-cell:has(.fi-ta-record-checkbox),
.fb-tenant-shell .fb-module-table-card .fi-ta-selection-cell {
    padding-block: 8px;
}

.fb-tenant-shell .fb-module-table-card .fi-ta-row > .fi-ta-cell {
    height: 50px;
}

.fb-tenant-shell .fb-module-table-card .fi-ta-pagination {
    min-height: 54px;
    padding: 10px 17px;
    border-top: 0;
    color: #9c99a7;
    font-size: 11px;
    background: var(--fb-surface, #fff);
}

.fb-tenant-shell .fb-module-table-card .fi-pagination-item {
    min-width: 29px;
    min-height: 29px;
    border-radius: 7px;
}

.fb-tenant-shell .fb-module-table-card .fi-ta-empty-state {
    padding-block: 52px;
}

/* Compact, polished record action menus. Action panels are teleported to <body>. */
body.fb-tenant-shell .fi-dropdown-panel:has(.fi-ac-grouped-action) {
    width: 190px;
    max-width: calc(100vw - 24px);
    overflow: hidden;
    border: 1px solid #e8e6ee;
    border-radius: 12px;
    background: rgba(255, 255, 255, .98);
    box-shadow:
        0 16px 38px rgba(31, 28, 51, .14),
        0 3px 10px rgba(31, 28, 51, .07);
    backdrop-filter: blur(14px);
}

body.fb-tenant-shell .fi-dropdown-panel:has(.fi-ac-grouped-action) .fi-dropdown-list {
    gap: 3px;
    padding: 6px;
}

body.fb-tenant-shell .fi-dropdown-panel:has(.fi-ac-grouped-action) .fi-ac-grouped-action {
    min-height: 38px;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

body.fb-tenant-shell .fi-dropdown-panel:has(.fi-ac-grouped-action) .fi-ac-grouped-action:hover,
body.fb-tenant-shell .fi-dropdown-panel:has(.fi-ac-grouped-action) .fi-ac-grouped-action:focus-visible {
    background: color-mix(in srgb, var(--fb-primary) 7%, #fff);
}

body.fb-tenant-shell .fi-dropdown-panel:has(.fi-ac-grouped-action) .fi-ac-grouped-action > .fi-icon {
    width: 17px;
    height: 17px;
}

body.fb-tenant-shell .fi-dropdown-panel:has(.fi-ac-grouped-action) .fi-dropdown-list-item-label {
    color: var(--text, #4d495c);
}

body.fb-tenant-shell .fi-dropdown-panel:has(.fi-ac-grouped-action) .fi-ac-grouped-action.fi-color-danger:hover,
body.fb-tenant-shell .fi-dropdown-panel:has(.fi-ac-grouped-action) .fi-ac-grouped-action.fi-color-danger:focus-visible {
    background: #fff1f2;
}

/* Keep action and filter forms comfortably separated inside teleported modals. */
body.fb-tenant-shell .fi-modal-content .fi-sc-form {
    gap: 18px;
}

body.fb-tenant-shell .fi-modal-content .fi-sc.fi-sc-has-gap {
    column-gap: 18px;
    row-gap: 16px;
}

body.fb-tenant-shell .fi-modal-content .fi-fo-field {
    row-gap: 7px;
}

@media (max-width: 960px) {
    body.fb-tenant-shell {
        --fb-sidebar-width: 0px;
    }

    .fb-tenant-shell .sidebar {
        width: 260px;
        transform: translateX(-100%);
        box-shadow: 15px 0 45px rgba(26, 24, 43, .13);
    }

    body.fb-tenant-shell.sidebar-open .sidebar {
        transform: none;
    }

    body.fb-tenant-shell.sidebar-open .mobile-overlay {
        position: fixed;
        inset: 0;
        z-index: 35;
        display: block;
        background: rgba(26, 24, 42, .35);
        backdrop-filter: blur(2px);
    }

    .fb-tenant-shell .sidebar-collapse {
        display: none;
    }

    .fb-tenant-shell .mobile-menu {
        display: grid;
    }

    .fb-tenant-shell .fb-shell-column {
        margin-left: 0;
    }

    .fb-tenant-shell .fb-shell-topbar {
        padding: 0 22px;
    }

    .fb-tenant-shell .fb-shell-main {
        padding-inline: 22px;
    }

    .fb-tenant-shell .fb-module-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .fb-tenant-shell .fb-shell-topbar {
        height: 65px;
        padding: 0 15px;
    }

    .fb-tenant-shell .fb-shell-heading h1 {
        max-width: 55vw;
        font-size: 15px;
    }

    .fb-tenant-shell .fb-shell-heading p,
    .fb-tenant-shell .fb-shell-profile .profile-copy,
    .fb-tenant-shell .fb-shell-profile > svg {
        display: none;
    }

    .fb-tenant-shell .fb-shell-profile {
        padding: 3px;
    }

    .fb-tenant-shell .fb-shell-main {
        min-height: calc(100vh - 65px);
        padding: 20px 15px 36px;
    }

    .fb-tenant-shell .fb-module-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .fb-tenant-shell .fb-module-hero h2 {
        font-size: 22px;
    }

    .fb-tenant-shell .fb-module-actions,
    .fb-tenant-shell .fb-module-actions .fi-actions {
        width: 100%;
        justify-content: stretch;
    }

    .fb-tenant-shell .fb-module-actions .fi-btn {
        min-width: 0;
        flex: 1 1 auto;
        justify-content: center;
        padding-inline: 10px;
    }

    .fb-tenant-shell .fb-module-summary {
        grid-template-columns: 1fr;
    }

    .fb-tenant-shell .fb-module-table-card .fi-sc-tabs {
        padding-inline: 10px;
    }

    .fb-tenant-shell .fb-module-table-card .fi-ta-header-toolbar {
        align-items: stretch;
        flex-direction: column;
        padding-inline: 12px;
    }

    .fb-tenant-shell .fb-module-table-card .fi-ta-search-field {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fb-tenant-shell *,
    .fb-tenant-shell *::before,
    .fb-tenant-shell *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
