@font-face {
    font-family: "Outfit";
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url("../font/outfit/Outfit-Light.905f109c79bd.ttf") format("truetype");
}

@font-face {
    font-family: "Outfit";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../font/outfit/Outfit-Regular.9f444021dd67.ttf") format("truetype");
}

@font-face {
    font-family: "Outfit";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../font/outfit/Outfit-Medium.3c88ad79f2a5.ttf") format("truetype");
}

@font-face {
    font-family: "Outfit";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../font/outfit/Outfit-SemiBold.f4bde7633a5d.ttf") format("truetype");
}

@font-face {
    font-family: "Outfit";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../font/outfit/Outfit-Bold.e28d1b405645.ttf") format("truetype");
}

:root {
    --tblr-primary: #326699 !important;
    --tblr-primary-rgb: 50, 102, 153;
    --tblr-link-color-rgb: 50, 102, 153;
    --tblr-gray-50: #f6f8fb;
    --tblr-disabled-color: var(--tblr-gray-400);
    --tblr-active-bg: var(--tblr-gray-100);
    --tblr-green: #2b8a3e;
    --tblr-green-rgb: 43, 138, 62;
    --tblr-green-darken: #237a34;
    --tblr-success: #2b8a3e;
    --tblr-success-rgb: 43, 138, 62;
    --tblr-success-darken: #237a34;
    --tblr-azure: #1c6fb5;
    --tblr-azure-rgb: 28, 111, 181;
    --tblr-azure-darken: #185f9b;
    --tblr-info: #1c6fb5;
    --tblr-info-rgb: 28, 111, 181;
    --tblr-info-darken: #185f9b;
    --tblr-orange: #c2410c;
    --tblr-orange-rgb: 194, 65, 12;
    --tblr-orange-darken: #a8380a;
    --tblr-warning: #c2410c;
    --tblr-warning-rgb: 194, 65, 12;
    --tblr-warning-darken: #a8380a;
}

.text-yellow,
.bg-yellow-lt,
.badge.bg-yellow-lt {
    color: #a16207 !important;
}

body {
    font-family: Outfit, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif !important;
}

.ti {
    margin-right: 5px;
    font-size: 1.25em;
}

.swal2-container {
    z-index: 80000000 !important;
}

.ts-control > div {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

#spinner {
    font-size: 32px;
    color: #206bc4;
    animation: spin 800ms linear infinite;
    bottom: 7px;
    right: 7px;
    position: fixed;
    z-index: 999999999 !important;
    opacity: 0;
    transition: opacity 500ms ease-in;
}

.htmx-request#spinner {
    opacity: 1;
}

.colored-toast .swal2-title,
.colored-toast .swal2-close,
.colored-toast .swal2-html-container {
    color: white;
}

.colored-toast.swal2-icon-success {
    background-color: #a5dc86 !important;
}

.colored-toast.swal2-icon-warning {
    background-color: #f8bb86 !important;
}

.colored-toast.swal2-icon-error {
    background-color: #f27474 !important;
}

.colored-toast.swal2-icon-info {
    background-color: #3fc3ee !important;
}

.swal2-popup:not(.colored-toast) .swal2-title {
    color: #333 !important;
}

.swal2-popup:not(.colored-toast) .swal2-html-container {
    color: #555 !important;
}

.page-wrapper {
    min-height: calc(100vh - 56px);
}

.page-header {
    flex-wrap: nowrap;
}

form {
    margin-block-end: 0 !important;
}

#offcanvas {
    z-index: 9999990;
}

#offcanvas-full {
    width: 100vw !important;
    z-index: 9999995;
}

.flatpickr-calendar {
    z-index: 99999999 !important;
}

.company-switcher {
    min-width: 260px;
}

.company-switcher .ts-control {
    border-radius: var(--tblr-border-radius);
}

.entry-lines {
    table-layout: fixed;
    min-width: 720px;
}

.entry-lines .ts-control {
    flex-wrap: nowrap;
}

.balance-table td,
.balance-table th {
    font-variant-numeric: tabular-nums;
}

@keyframes bell-pulse {
    0% { box-shadow: 0 0 0 0 rgba(214, 57, 57, .7); }
    70% { box-shadow: 0 0 0 8px rgba(214, 57, 57, 0); }
    100% { box-shadow: 0 0 0 0 rgba(214, 57, 57, 0); }
}

.bell-pulse {
    animation: bell-pulse 1.6s infinite;
}

#bell .badge {
    font-size: .7rem;
    min-width: 1.2rem;
}

#bell .bell-count {
    top: .75rem;
    right: .05rem;
    padding: .2em .4em;
    line-height: 1;
}

.page-header .row {
    row-gap: .5rem;
}

.page-header .col-auto.ms-auto {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    max-width: 100%;
}

.page-header .row > .col {
    min-width: max-content;
}

.btn kbd {
    background: transparent;
    color: inherit;
    border: 1px solid currentColor;
    box-shadow: none;
    opacity: .75;
}

.btn {
    gap: .4rem;
}

.btn > .ti,
.btn-icon .ti {
    margin-right: 0;
}

.file-picker {
    display: flex;
    align-items: center;
    gap: .5rem;
    position: relative;
    min-height: calc(1.4285714286em + 1rem + 2px);
    padding: .25rem .5rem;
    margin-bottom: 0;
    border: 1px dashed var(--tblr-border-color);
    border-radius: var(--tblr-border-radius);
    cursor: pointer;
    max-width: 100%;
}

.file-picker.is-invalid {
    border-color: var(--tblr-danger);
}

.file-picker-over,
.dropzone-box.file-picker-over {
    border-color: var(--tblr-primary) !important;
    background: var(--tblr-primary-lt);
}

.file-picker-names {
    color: var(--tblr-secondary);
    font-size: .8125rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.file-picker-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

.sidebar-section-toggle {
    display: flex;
    align-items: center;
    padding-top: .75rem;
    padding-bottom: .35rem;
}

.sidebar-section-chevron {
    transition: transform .15s ease;
    opacity: .6;
}

.sidebar-section-toggle.collapsed .sidebar-section-chevron {
    transform: rotate(-90deg);
}

.sidebar-section .collapse .navbar-nav,
.sidebar-section .collapsing .navbar-nav {
    margin: 0;
    flex-direction: column;
}

.mobile-filter-toggle {
    display: none;
}

@media (max-width: 767.98px) {
    header.navbar > .container-fluid {
        flex-wrap: nowrap;
        gap: .5rem;
    }

    header.navbar > .container-fluid > .navbar-nav:first-child {
        flex: 1 1 auto;
        min-width: 0;
    }

    .company-switcher {
        min-width: 0;
        flex: 1 1 auto;
    }

    header.navbar > .container-fluid > .navbar-nav.ms-auto {
        flex: 0 0 auto;
        gap: .5rem;
    }

    header.navbar > .container-fluid > .navbar-nav.ms-auto > .nav-item {
        margin-right: 0 !important;
    }

    .page-header .col-auto {
        width: 100%;
        margin-top: .5rem;
    }

    .page-header .col-auto .btn {
        --tblr-btn-padding-y: .25rem;
        --tblr-btn-padding-x: .5rem;
        --tblr-btn-font-size: .8125rem;
        min-height: 2rem;
    }

    .mobile-filter-toggle {
        display: inline-flex;
    }

    .table .btn-sm,
    .card-actions .btn-sm {
        min-height: 2rem;
        min-width: 2rem;
    }

    .card-header.has-mobile-filters {
        flex-wrap: wrap;
        gap: .5rem;
    }

    .card-header.has-mobile-filters > form.mobile-filters {
        flex: 0 0 100%;
        width: 100%;
        margin: 0;
    }

    form.mobile-filters:not(.filters-open) {
        display: none !important;
    }
}

.sort-link {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.sort-link:hover {
    color: var(--tblr-primary);
    text-decoration: none;
}

.sort-link .ti {
    font-size: 1rem;
    opacity: .4;
}

.sort-link.active,
.sort-link.active .ti {
    color: var(--tblr-primary);
    opacity: 1;
}

.form-section {
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--tblr-border-color);
}

.form-section .subheader {
    font-weight: 600;
}

.form-details > summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: baseline;
    gap: .5rem;
    flex-wrap: wrap;
}

.form-details > summary::-webkit-details-marker {
    display: none;
}

.form-details > summary::before {
    content: "\203A";
    display: inline-block;
    font-size: 1.1rem;
    line-height: 1;
    transition: transform .15s;
}

.form-details[open] > summary::before {
    transform: rotate(90deg);
}

.form-actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .5rem;
    margin: 0 calc(-1 * var(--tblr-offcanvas-padding-x, 1rem));
    padding: .75rem var(--tblr-offcanvas-padding-x, 1rem);
    background: var(--tblr-bg-surface);
    border-top: 1px solid var(--tblr-border-color);
}

body:has([data-brg-chat-widget]) .form-actions {
    padding-right: calc(var(--tblr-offcanvas-padding-x, 1rem) + 5rem);
}

body:has([data-brg-chat-widget]) .page-body {
    padding-bottom: 5rem;
}

@media (max-width: 767.98px) {
    .form-actions {
        position: static;
    }

    .form-actions .btn {
        flex: 1 1 auto;
    }

    body:has([data-brg-chat-widget]) .form-actions {
        padding-right: calc(var(--tblr-offcanvas-padding-x, 1rem) + 4.5rem);
    }
}

.form-details.form-section {
    border-bottom: 0;
    margin-bottom: 0;
}

#offcanvas.offcanvas-wide {
    width: 100vw !important;
}

.ts-dropdown.ts-dropdown-floating {
    z-index: 99999990;
    margin: 0;
}

td > .btn + .btn,
td > .btn + form,
td > form + .btn,
td > form + form,
td > .btn + .dropdown,
td > .dropdown + .btn,
th > .btn + .btn {
    margin-left: .25rem;
}

.flex-fill.btn {
    min-width: 0;
}

.invoice-steps .step-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    font-weight: 600;
    font-size: .85rem;
}

.invoice-steps .step-dot .ti {
    margin: 0;
    font-size: 1rem;
}
