.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;
}
.c-sidebar .c-sidebar-brand, .c-sidebar .c-sidebar-header{
    background-color: white;
}

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

.form-control:focus{
    border-color: black !important;
    box-shadow:  none !important;
}

.btn-dark{
    background-color: black;
}

.input-group-text.login{
    background-color: black;
    color: white;
}

.bg-darkgreen{
    background-color: darkgreen;
}

.c-sidebar-nav-link:hover, .c-sidebar-nav-link.c-active:hover, .c-sidebar-nav-dropdown-toggle:hover{
    background-color: red !important;
}




.sidebar-menu {
    position: fixed;
    top: 0;
    left: -260px;
    width: 260px;
    height: 100%;
    background-color: #2c2c2c;
    transition: all 0.3s ease;
    z-index: 1050;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1040;
    display: none;
}

.sidebar-menu.show {
    left: 0;
}

.sidebar-overlay.show {
    display: block;
}

.nav-item {
    padding: 0px 15px;
}

.top-bar2 {
    position: relative;
    /* Para que el dropdown se posicione relativo a este */
    background-color: #2c2c2c !important;
    z-index: 1030;
    /* un valor menor que el dropdown */
}

.navbar-nav .dropdown-menu {
    position: absolute !important;
    top: 100%;
    left: 0;
    margin-top: 0.25rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    background-color: #2c2c2c;
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
    z-index: 1050;
    color: white;
}

.navbar-nav .dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    color: white;
}

.dropdown-item:hover {
    background-color: darkgreen;
    color: white;
}

#mobileSidebar .dropdown-menu {
    position: static !important;
    /* quita posicion absoluta */
    float: none !important;
    /* elimina float */
    width: 100% !important;
    /* ancho completo */
    margin: 0;
    /* sin margen extra */
    box-shadow: none !important;
    /* sin sombra flotante */
    border: none !important;
    background-color: transparent !important;
    /* para mantener estilo */
    padding-left: 1rem;
    /* indentación opcional */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobileSidebar .dropdown.show>.dropdown-menu {
    max-height: 1000px;
    /* lo suficientemente grande para mostrar todo */
    overflow: visible;
    background-color: #2c2c2c !important;
    /* fondo oscuro igual que sidebar */
    border-radius: 0 0 4px 4px;
    padding: 0.5rem 1rem;
}

/* Ajuste para los items dentro del submenu */
#mobileSidebar .dropdown-menu .dropdown-item {
    color: white;
    padding-left: 1rem;
}

/* Opcional: cambiar color al hover */
#mobileSidebar .dropdown-menu .dropdown-item:hover {
    background-color: darkgreen;
}

#mobileSidebar .dropdown-menu.show {
    transform: translate3d(0px, 0px, 0px) !important;
}

#mobileSidebar .nav-link:hover {
    background-color: darkgreen;
}

.bg-black{
    background-color: black;
}


.cont-embeded{
    margin-left: 0px !important;
    margin-right: 0px !important;
}

@media (max-width: 768px) {
  .iframe-embeded{
    height: auto;
    width: 100%;
}


}