.btn
{
    padding-left: 30px;
    padding-right: 30px;
}

.btn-primary {
    background-color: var(--tblr-bg-button);
    color: var(--tblr-text-button);
}

.btn-highlight {
    background-color: var(--tblr-highlight-color);
    color: var(--tblr-over-highlight-color);

    &:hover,
    &:active,
    &:focus {
        background-color: var(--tblr-highlight-color-hover) !important;
        color: var(--tblr-over-highlight-color) !important;
    }
}

.pagination {
    --tblr-pagination-gap: 0 !important;
    --tblr-pagination-border-radius: 0;
}

.input-group
{
    box-shadow: none;
}

.datatable-search-input.rounded-5
{
    border-radius: .5rem !important;
}

.icon-highlight {
    color: var(--tblr-highlight-color);
    &:hover {
        color: var(--tblr-highlight-color-hover);
        cursor: pointer;
    }
}

.icon-not-state {
    color: var(--tblr-danger);
}

.icon-state {
    color: var(--tblr-active);
}

.icon-warning {
    color: var(--tblr-warning);
}


.icon-detail {
    color: var(--tblr-gray-400);
}

.icon-over-highlight {
    color: var(--tblr-over-highlight-color);
}

.border-over-highlight {
    border-color: var(--tblr-over-highlight-color);
}

.bg-highlight {
    background-color: var(--tblr-light-highlight-color);
    color: var(--tblr-primary);
}

.bg-light-highlight {
    background-color: var(--tblr-light-highlight-color);
    color: var(--tblr-primary);
}
.text-highlight {
    color: var(--tblr-highlight-color) !important;
}

.dropdown-highlight-gradiant {
    background: linear-gradient(to bottom, var(--tblr-highlight-color), var(--tblr-highlight-color-hover));
    color: var(--tblr-over-highlight-color);
}

.crud-table {
    height: 100% !important;
    width: 100% !important;

    th[data-action-column="true"]
    {
        width: 5% !important;
    }
}


.navbar-vertical .dropdown.nav-item {
    align-items: end;

    .dropdown-item {
        width: 100% !important;
        margin-top: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }
    .dropdown-menu {
        width: 95% !important;
    }
    .dropdown-toggle {
        width: 98% !important;
    }

    .dropdown-toggle.active {
        background-color: var(--tblr-bg-button) !important;
        color: var(--tblr-text-button) !important;
        border-radius: 20px 0 0 20px !important;
    }

    .dropdown-item.active {
        background-color: var(--tblr-bg-button) !important;
        color: var(--tblr-text-button) !important;
        border-radius: 20px 0 0 20px !important;
    }
}

.dropdown-toggle:hover:after {
    color: var(--tblr-over-highlight-color) !important;
}

/*
-----
Modification Cursor Agent
-----
Scope sidebar nav alignment to the collapsed menu only so the mobile header bar keeps vertical centering.
-----
##AGENT_CODE
*/
.navbar-vertical .navbar-collapse .navbar-nav {
    align-items: end !important;

    .nav-item {
        width: 100% !important;
        align-items: end !important;
    }

    .nav-link {
        width: 98% !important;
    }
    
    .nav-link.active {
        background-color: var(--tblr-bg-button) !important;
        color: var(--tblr-text-button) !important;
        border-radius: 20px 0 0 20px !important;
    }
}
/*
##AGENT_CODE
*/

@media (min-width: 992px) {
    .rounded-lg-top-5 {
      border-top-left-radius: 2rem;
      border-top-right-radius: 2rem;
    }
}

.dt-type-numeric {
    text-align: left !important;
}

.card {
    border: none !important;
    box-shadow: none !important;
}

.mt-10 {
    margin-top: 100px !important;
}

.mt-9 {
    margin-top: 90px !important;
}

.mt-8 {
    margin-top: 80px !important;
}

.mt-7 {
    margin-top: 70px !important;
}

.mt-6 {
    margin-top: 60px !important;
}

.card-note {
    background-color: var(--tblr-bg-forms);
    border-radius: 1rem;
    padding: 10px;
    color: var(--tblr-text-button);
    border: 1px solid var(--tblr-border-color);
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.15);
    height: 400px;

    .card-body {
        overflow-y: scroll !important;
        height: 320px !important;
    }
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--tblr-text-button);
}

.card-body {
    padding: 10px;
    margin-top: 10px;
    display: flex;
}

.datatable-widget-wrapper {
    width: 100% !important;
}

.custom-repeatable-group {
    .container-repeatable-elements {
        padding-right: 10px !important;
        overflow-y: scroll !important;
        max-height: 600px !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        &::-webkit-scrollbar {
            display: none !important;
        }

        .repeatable-element {
            padding: 20px !important;
            position: relative !important;
            .controls {
                position: static !important;
                display: flex !important;

                .delete-element {
                    display: block !important;
                    position: absolute !important;
                    right: 10px !important;
                    top: 10px !important;
                    cursor: pointer !important;
                    color: var(--tblr-danger) !important;
                    &:hover {
                        color: var(--tblr-danger-hover) !important;
                    }
                }
            }
        }
    }
}

.switch-input {
    background-color: var(--tblr-over-highlight-color) !important;
    color: var(--tblr-highlight-color) !important;

    &:hover {
        cursor: pointer;
    }
}

.switch-input:checked {
    background-color: var(--tblr-highlight-color) !important;
    color: var(--tblr-over-highlight-color) !important;
}

.text-very-small {
    font-size: 1rem;
}

.rea-changes-view__trigger {
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.15s ease-in-out;

    &:hover,
    &:focus {
        text-decoration-color: currentColor;
    }
}

.rea-changes-view-popover {
    --bs-popover-max-width: min(90vw, 720px);

    .popover-body {
        padding: 0.75rem;
        overflow-x: auto;
    }
}

.rea-changes-diff-table-wrapper {
    overflow-x: auto;
    max-width: 100%;
}

.rea-changes-diff-table {
    font-size: 0.8125rem;
    width: max-content;
    min-width: 100%;

    thead th,
    tbody th,
    tbody td {
        padding: 0.375rem 0.625rem;
        vertical-align: middle;
        white-space: nowrap;
    }

    &__corner {
        width: 1px;
        padding: 0 !important;
    }

    &__field {
        color: var(--tblr-body-color);
        font-size: 0.75rem;
        font-weight: 600;
        text-align: center;
        text-transform: uppercase;
    }

    &__row-label {
        color: var(--tblr-secondary);
        font-size: 0.75rem;
        font-weight: 600;
        text-align: left;
        text-transform: uppercase;
        white-space: nowrap;
    }

    &__old {
        background-color: color-mix(in srgb, var(--tblr-danger) 12%, transparent);
        border-radius: 0.25rem;
        color: var(--tblr-danger);
        text-align: center;
    }

    &__new {
        background-color: color-mix(in srgb, var(--tblr-success) 12%, transparent);
        border-radius: 0.25rem;
        color: var(--tblr-success);
        text-align: center;
    }
}

/*
-----
Modification Cursor Agent
-----
Mega-recherche sidebar search input and dropdown styles.
-----
##AGENT_CODE
*/
/* theme-tabler adds content: "|" via .sidebar-shortcuts :not(:first-child):before on all descendants */
.sidebar-shortcuts .mega-recherche:not([class*="fa-"])::before,
.sidebar-shortcuts .mega-recherche *:not([class*="fa-"])::before {
    content: none !important;
    display: none !important;
    margin: 0 !important;
}

.sidebar-shortcuts {
    position: relative;
    z-index: 1080;
}

.mega-recherche {
    position: relative;
    width: 100%;
    padding: 0 0.75rem;
    z-index: 1080;
}

.mega-recherche__input-wrapper {
    position: relative;
    width: 100%;
    z-index: 1080;
}

.mega-recherche__input {
    position: relative;
    z-index: 1080;
}

.mega-recherche__icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tblr-over-highlight-color);
    opacity: 0.7;
    pointer-events: none;
    font-size: 0.875rem;
}

.mega-recherche__input {
    width: 100%;
    padding: 0.625rem 0.875rem 0.625rem 2.25rem;
    border-radius: 0.75rem;
    border: 1px solid color-mix(in srgb, var(--tblr-over-highlight-color) 25%, transparent);
    background-color: color-mix(in srgb, var(--tblr-over-highlight-color) 10%, transparent);
    color: var(--tblr-over-highlight-color);
    font-size: 0.875rem;
    line-height: 1.25rem;

    &::placeholder {
        color: color-mix(in srgb, var(--tblr-over-highlight-color) 60%, transparent);
    }

    &:focus {
        border-color: var(--tblr-highlight-color);
        background-color: color-mix(in srgb, var(--tblr-over-highlight-color) 15%, transparent);
        box-shadow: 0 0 0 0.15rem color-mix(in srgb, var(--tblr-highlight-color) 25%, transparent);
        color: var(--tblr-over-highlight-color);
    }
}

.mega-recherche__dropdown {
    position: fixed;
    z-index: 10050;
    min-width: 280px;
    background-color: var(--tblr-bg-surface, #fff);
    border: 1px solid var(--tblr-border-color);
    border-radius: 0.75rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.mega-recherche__dropdown-inner {
    max-height: 18rem;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--tblr-secondary) 40%, transparent) transparent;
}

.mega-recherche__dropdown-inner::-webkit-scrollbar {
    width: 6px;
}

.mega-recherche__dropdown-inner::-webkit-scrollbar-thumb {
    background-color: color-mix(in srgb, var(--tblr-secondary) 35%, transparent);
    border-radius: 999px;
}

.mega-recherche__results {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding: 0.375rem;
}

.mega-recherche__option {
    display: block;
    width: 100%;
    padding: 0.5rem 0.625rem;
    border: none;
    border-radius: 0.5rem;
    background: transparent;
    color: var(--tblr-body-color);
    font-size: 0.8125rem;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;

    &:hover,
    &.mega-recherche__option--active {
        background-color: var(--tblr-bg-button);
        color: var(--tblr-text-button);
    }
}

.mega-recherche__description {
    display: block;
    word-break: break-word;
    white-space: normal;
    line-height: 1.35;
}

.mega-recherche__badge {
    display: inline-block;
    margin-top: 0.25rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background-color: color-mix(in srgb, var(--tblr-highlight-color) 20%, transparent);
    color: var(--tblr-highlight-color);
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.2;
}

.mega-recherche__message {
    padding: 0.625rem 0.75rem;
    font-size: 0.8125rem;
    color: var(--tblr-secondary);
    text-align: center;
}

.mega-recherche__message--loading {
    color: var(--tblr-secondary);
}

.mega-recherche__message--empty {
    color: var(--tblr-secondary);
}

.mega-recherche__message--error {
    color: var(--tblr-danger);
}
/*
##AGENT_CODE
*/