body {
    font-feature-settings: "cv03", "cv04", "cv11";
    --tblr-font-sans-serif: 'Inter Variable', sans-serif !important;
}

@supports (font-variation-settings: normal) {
    body {
        font-feature-settings: "cv03", "cv04", "cv11";
        --tblr-font-sans-serif: 'Inter Variable', sans-serif !important;
    }
}

.icon {
    svg, g {
        stroke-width: 1.75 !important;
    }
}

@keyframes fadeInDown
{
    from {transform: translateY(-50px); opacity: 0;}
    to { transform: translateY(0px); opacity: 1;}
}

.fadeIn {
    animation: fadeInDown .25s ease-out forwards;
}

.nav-item {
    .nav-link {
        i {
            font-size: 1.25rem;
        }

        svg {
            max-width: 1.25rem;
            max-height: 1.25rem;
        }
    }

    &.active {
        .nav-link[data-bs-theme=dark] {
            background-color: rgba(255, 255, 255, .1) !important;
        }

        .nav-link[data-bs-theme=light] {
            background-color: rgba(0, 0, 0, .1) !important;
        }

        .nav-link-icon {
            color: var(--tblr-primary);
        }
    }
}

.navbar {
    .btn-search {
        span {
            color: var(--tblr-nav-link-color) !important;
            font-weight: 400;
        }

        .icon {
            color: #929dab !important;
        }

        &:hover, &:active, &:focus, &:focus-visible {
            border-color: var(--tblr-border-color) !important;
        }
    }
}

.navbar-nav .nav-link.active, .navbar-nav .nav-link.show {
    &::after {
        transform: rotate(135deg) !important;
    }
}

.dropdown-item {
    &.active {
        background-color: rgba(255, 255, 255, .05) !important;
        span {
            color: var(--tblr-white) !important;
        }
    }
}

.form-select:disabled {
    color: var(--tblr-secondary);
}

.btn-search {
    &:hover, &:active, &:focus, &:focus-visible {
        border-color: var(--tblr-border-color) !important;
    }
}

.avatar-5xl {
    &.configurator {
        --tblr-avatar-size:14rem;
        --tblr-avatar-status-size:2rem;
        --tblr-avatar-font-size:6rem;
        --tblr-avatar-icon-size:10rem;
    }

    svg {
        display: block;
        height: 100%;
        width: 100%;
    }
}

.inline-checkbox {
    .form-check {
        margin-bottom: 0;
    }
}

.btn:disabled, .btn.disabled, fieldset:disabled .btn {
    border-color: rgb(218, 223, 229) !important;
}

.card-light {
    background: var(--tblr-bg-surface-tertiary);
}

.card-header-light {
    border-top-left-radius: 4px !important;
    border-top-right-radius: 4px !important;
}

.card-header {
    border-top-left-radius: 4px !important;
    border-top-right-radius: 4px !important;
}

.card-stamp {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.card-table {
    .table-light {
        tr:last-child {
            td:first-child {
                border-bottom-left-radius: 4px;
            }

            td:last-child {
                border-bottom-right-radius: 4px;
            }
        }
    }

    tr:last-child {
        td {
            border-bottom: 0;
        }
    }
}

.tracking-block {
    max-width: .5rem;
    min-width: .5rem;
}

.offcanvas-header-light {
    border-bottom: 0;
    padding-bottom: 0;
}

.page-stamp {
    --tblr-stamp-size: 7rem;
    position: absolute;
    top: 0;
    right: 0;
    margin-top: 56px;
    width: calc(var(--tblr-stamp-size) * 1);
    height: calc(var(--tblr-stamp-size) * 1);
    max-height: 100%;
    border-top-right-radius: 4px;
    opacity: .2;
    overflow: hidden;
    pointer-events: none;

    .page-stamp-icon {
        background: var(--tblr-secondary);
        color: var(--tblr-card-bg,var(--tblr-bg-surface));
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 100rem;
        width: calc(var(--tblr-stamp-size) * 1);
        height: calc(var(--tblr-stamp-size) * 1);
        position: relative;
        top: calc(var(--tblr-stamp-size) * -.25);
        right: calc(var(--tblr-stamp-size) * -.25);
        font-size: calc(var(--tblr-stamp-size) * .75);
        transform: rotate(10deg);

        .icon {
            stroke-width: 2;
            width: calc(var(--tblr-stamp-size) * .75);
            height: calc(var(--tblr-stamp-size) * .75);
        }
    }
}


dialog {
    transition: opacity .5s ease-in-out;

    &::backdrop {
        -webkit-backdrop-filter: blur(4px);
        backdrop-filter: blur(4px);
        background-color: rgba(0,0,0,.25);
    }

    .dialog-wrapper {
        display: flex;
        flex-flow: column;
        flex-grow: 1;
        height: 100%;
    }

    .dialog-header {
        align-items: center;
        min-height: 3.5rem;
        background: 0 0;
        display: flex;
        flex-shrink: 0;
        justify-content: space-between;
        padding: .75rem 3.5rem .75rem 1.5rem;
        border-bottom: 1px solid var(--tblr-border-color);
        border-top-left-radius: var(--tblr-modal-inner-border-radius);
        border-top-right-radius: var(--tblr-modal-inner-border-radius);

        .dialog-title {
            font-size: 1rem;
            font-weight: var(--tblr-font-weight-bold);
            color: inherit;
            line-height: var(--tblr-modal-title-line-height);
            margin-bottom: 0 !important;
            padding-bottom: 0 !important;
        }

        .btn-close {
            position: absolute;
            right: 1rem;
            top: 1rem;

            &:focus {
                outline: 0;
                box-shadow: none;
                opacity: .4;

                &:hover {
                    opacity: 1;
                }
            }
        }
    }

    .dialog-body {
        position: relative;
        flex: 1 1 auto;
        padding: 1.5rem;
    }

    .dialog-footer {
        display: flex;
        flex-shrink: 0;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-end;
        min-height: 3.5rem;
        padding: .75rem 1.5rem .75rem 1.5rem;
        background-color: var(--tblr-modal-footer-bg);
        border-top: 1px solid var(--tblr-border-color);
        border-bottom-right-radius: var(--tblr-modal-inner-border-radius);
        border-bottom-left-radius: var(--tblr-modal-inner-border-radius);
    }

    .card {
        border: 0 !important;
    }
}

.dialog-modal {
    padding: 0;
    background-color: var(--tblr-bg-surface);
    border-color: transparent;
}

@media (min-width: 992px) {
    .dialog-modal {
        min-width: 720px;
        margin: 2rem auto;
        border-width: var(--tblr-border-width);
        border-radius: var(--tblr-border-radius-lg);
        box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    }
}

@media (max-width: 991px) {
    dialog {
        width: 100%;
        height: 100%;
        border-radius: var(--tblr-border-radius-lg);
    }
}

.ts-control {
    padding: .5625rem 2.25rem .5625rem .75rem !important;
    line-height: 20px !important;

    .clear-button {
        display: none;
    }
}

.ts-dropdown {
    background: var(--tblr-bg-surface) !important;
    color: var(--tblr-body-color) !important;
    box-shadow: var(--tblr-box-shadow-dropdown) !important;
    line-height: 20px !important;

    .option {
        padding: 8px 12px !important;

        &.active {
            background-color: rgba(var(--tblr-secondary-rgb),.08) !important;
            color: inherit !important;
        }
    }
}

.impersonator {
    border-top: 1px solid var(--tblr-danger);
    a {
        color: rgba(var(--tblr-red-rgb),var(--tblr-text-opacity))!important
    }
}

.form-check-inline {
    .form-check {
        margin-bottom: 0;
    }
}

.vich-image {
    .form-control {
        margin-bottom: 1rem;
    }
}

.top-64 {
    top: 64px;
}

.avatar-white {
    background-color: var(--tblr-white);
}

.empty-img {
    margin: 0 auto;
    max-width: 360px;
}

.alert {
    .alert-icon {
        margin-right: .75rem;
    }
}
