:root {
    --lucide-chevron-left: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 18-6-6 6-6'/%3E%3C/svg%3E");
    --lucide-chevron-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
    --lucide-chevron-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

svg.lucide {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    flex: 0 0 auto;
}

.sidebar .nav-item .nav-link svg.lucide {
    font-size: 0.85rem;
    margin-right: 0.25rem;
}

.sidebar .sidebar-brand .sidebar-brand-icon svg.lucide {
    font-size: 2rem;
}

.sidebar.toggled .nav-item .nav-link svg.lucide {
    margin-right: 0;
}

.sidebar-light .nav-item .nav-link svg.lucide {
    color: #d1d3e2;
}

.sidebar-light .nav-item .nav-link:active svg.lucide,
.sidebar-light .nav-item .nav-link:focus svg.lucide,
.sidebar-light .nav-item .nav-link:hover svg.lucide,
.sidebar-light .nav-item.active .nav-link svg.lucide {
    color: #6e707e;
}

.sidebar-dark .nav-item .nav-link svg.lucide {
    color: rgba(255, 255, 255, 0.3);
}

.sidebar-dark .nav-item .nav-link:active svg.lucide,
.sidebar-dark .nav-item .nav-link:focus svg.lucide,
.sidebar-dark .nav-item .nav-link:hover svg.lucide,
.sidebar-dark .nav-item.active .nav-link svg.lucide {
    color: #fff;
}

.topbar .nav-item.dropdown .dropdown-toggle::after,
.card .card-header[data-toggle=collapse]::after {
    content: none;
}

.sidebar #sidebarToggle::after {
    content: "";
    display: inline-block;
    width: 1rem;
    height: 1rem;
    background-color: currentColor;
    -webkit-mask: var(--lucide-chevron-left) center / contain no-repeat;
    mask: var(--lucide-chevron-left) center / contain no-repeat;
}

.sidebar.toggled #sidebarToggle::after {
    -webkit-mask-image: var(--lucide-chevron-right);
    mask-image: var(--lucide-chevron-right);
}

@media (min-width: 768px) {
    .sidebar .nav-item .nav-link[data-toggle="collapse"]::after {
        content: "";
        display: inline-block;
        width: 1rem;
        height: 1rem;
        background-color: currentColor;
        -webkit-mask: var(--lucide-chevron-right) center / contain no-repeat;
        mask: var(--lucide-chevron-right) center / contain no-repeat;
    }

    .sidebar .nav-item .nav-link[data-toggle="collapse"]:not(.collapsed)::after {
        -webkit-mask-image: var(--lucide-chevron-down);
        mask-image: var(--lucide-chevron-down);
    }

    .sidebar .nav-item .nav-link[data-toggle="collapse"].collapsed::after {
        -webkit-mask-image: var(--lucide-chevron-right);
        mask-image: var(--lucide-chevron-right);
    }
}

svg.lucide.fa-lg {
    width: 1.333em;
    height: 1.333em;
    vertical-align: -0.225em;
}

svg.lucide.fa-sm {
    width: 0.875em;
    height: 0.875em;
}

svg.lucide.fa-xs {
    width: 0.75em;
    height: 0.75em;
}

svg.lucide.fa-2x {
    width: 2em;
    height: 2em;
}

svg.lucide.fa-3x {
    width: 3em;
    height: 3em;
}

svg.lucide.fa-4x {
    width: 4em;
    height: 4em;
}

svg.lucide.fa-5x {
    width: 5em;
    height: 5em;
}

svg.lucide.fa-fw {
    width: 1.25em;
    text-align: center;
}

svg.lucide.fa-spin {
    animation: lucide-spin 2s linear infinite;
}

svg.lucide.fa-pulse {
    animation: lucide-spin 1s steps(8) infinite;
}

body table td .btn svg.lucide,
body table td .btn-link svg.lucide,
body table td:last-child svg.lucide {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px;
    max-width: 14px;
    font-size: 14px;
    vertical-align: middle;
}

@keyframes lucide-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
