.ck-editor__editable,
textarea {
    min-height: 150px;
}

.datatable {
    width: 100% !important;
}

table.dataTable tbody td.select-checkbox::before,
table.dataTable tbody td.select-checkbox::after,
table.dataTable tbody th.select-checkbox::before,
table.dataTable tbody th.select-checkbox::after {
    top: 50%;
}

.dataTables_length,
.dataTables_filter,
.dt-buttons {
    margin-bottom: 0.333em;
    margin-top: .2rem;
}

.dataTables_filter {
    margin-right: .2rem;
}

.dt-buttons .btn {
    margin-left: 0.333em;
    border-radius: 0;
}

.table.datatable {
    box-sizing: border-box;
    border-collapse: collapse;
}

table.dataTable thead th {
    border-bottom: 2px solid #c8ced3;
}

.dataTables_wrapper.no-footer .dataTables_scrollBody {
    border-bottom: 1px solid #c8ced3;
}

.select2 {
    max-width: 100%;
    width: 100% !important;
}

.select2-selection__rendered {
    padding-bottom: 5px !important;
}

.has-error .invalid-feedback {
    display: block !important;
}

.btn-info,
.badge-info {
    color: white;
}

table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc {
    background-image: none;
}

.sidebar .nav-item {
    cursor: pointer;
}

.btn-default {
    color: #23282c;
    background-color: #f0f3f5;
    border-color: #f0f3f5;
}

.btn-default.focus,
.btn-default:focus {
    box-shadow: 0 0 0 .2rem rgba(209, 213, 215, .5);
}

.btn-default:hover {
    color: #23282c;
    background-color: #d9e1e6;
    border-color: #d1dbe1;
}

.btn-group-xs > .btn,
.btn-xs {
    padding: 1px 5px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
}

.searchable-title {
    font-weight: bold;
}
.searchable-fields {
    padding-left:5px;
}
.searchable-link {
    padding:0 5px 0 5px;
}
.searchable-link:hover   {
    cursor: pointer;
    background: #eaeaea;
}
.select2-results__option {
    padding-left: 0px;
    padding-right: 0px;
}

.form-group .required::after {
    content: " *";
    color: red;
}

.form-check.is-invalid ~ .invalid-feedback {
    display: block;
}

.c-sidebar-brand .c-sidebar-brand-full:hover {
    color: inherit;
}

.custom-select.form-control-sm {
    padding: 0.25rem 1.5rem;
}

/* HOME FRONTEND */
.topbar {
        background-color: #198754; /* verde oscuro */
        padding: 10px 20px;
        color: white;
        width: 100%;
    }

    .topbar-inner {
        max-width: 1360px;
        margin: 0 auto;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .topbar .logo img {
        height: 40px;
    }

    .user-info {
        text-align: right;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    .user-info .greeting {
        font-weight: 600;
    }

    .user-info form {
        margin-top: 5px;
    }
    .topbar .logo img {
        width: 150px;
        height: auto;
    }

    /* Responsive para móvil/tablet */
    @media (max-width: 768px) {
        .topbar-inner {
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

        .user-info {
            align-items: center;
            margin-top: 10px;
        }

        .user-info form {
            margin-top: 10px;
        }
    }

    .fc-left h2{
        text-transform: capitalize;
    }

    .page-link{
        background-color: #198754 !important;
        color: white !important;
        border: solid 1 px white !important; 
    }

    .page-link:hover{
        background-color: #115e3a !important;
    }
    .page-item.active .page-link {
        border: none !important;
    }

    .paginate_button.page-item.active{
        background-color: transparent !important;
        margin-top: 1px !important;
         margin-left: 0px !important;
    }
    

    .dataTables_wrapper .dataTables_paginate .paginate_button:hover{
        background: none !important;
        border: none !important;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button{
        padding: 0px !important;
    }

    .bg-green{
        background-color: #155724 !important;
    }

    .select2-selection.select2-selection--single{
        height: 35px !important;
    }

    .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 30px !important;
    }

    .dropzone{
        min-height: 190px !important;
    }

    #sidebar .c-sidebar-nav-dropdown-items .c-sidebar-nav-link {
        padding-left: 5.5rem; /* Puedes ajustar este valor (ej. 3rem) según tu gusto */
        background-color: #0e421b !important;
        color: #fff !important; /* Para que el texto sea legible */
    }

    #sidebar .c-sidebar-nav-dropdown-items .c-sidebar-nav-link:hover {
        background-color: #41a85952 !important;
    }

    #sidebar .c-sidebar-nav-link.c-active {
        background-color: #41a85952 !important;
        color: #fff !important;
    }
