/* Ajustes Select2 para que no se “corte” y luzca tipo form-control */
/* Logo del panel: respetar PNG transparentes sin fondo ni recorte circular. */
.brand-link .admin-brand-logo {
    width: 38px;
    height: 38px;
    max-height: 38px;
    object-fit: contain;
    padding: 0;
    margin-top: -4px;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.brand-link {
    min-height: 58px;
    display: flex !important;
    align-items: center;
}

.brand-link .admin-brand-name {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    line-height: 1.05;
}

.brand-link .admin-brand-name b {
    display: block;
    overflow: hidden;
    max-width: 150px;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 600;
}

.brand-link .admin-brand-name small {
    display: block;
    align-self: flex-end;
    max-width: 100%;
    margin-top: 3px;
    color: rgba(255, 255, 255, .72);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .02em;
    text-align: right;
    text-transform: none;
}

body:not(.dark-mode) .brand-link .admin-brand-name small {
    color: rgba(255, 255, 255, .76);
}

body.sidebar-collapse .brand-link .admin-brand-name,
body.sidebar-mini.sidebar-collapse .brand-link .admin-brand-name {
    display: none;
}

.login-logo a,
.register-logo a,
.lockscreen-logo a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-logo .admin-brand-name,
.register-logo .admin-brand-name,
.lockscreen-logo .admin-brand-name {
    display: inline-flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    line-height: 1.05;
}

.login-logo .admin-brand-name b,
.register-logo .admin-brand-name b,
.lockscreen-logo .admin-brand-name b {
    display: block;
    font-size: 30px;
    font-weight: 400;
    line-height: 1;
}

.login-logo .admin-brand-name small,
.register-logo .admin-brand-name small,
.lockscreen-logo .admin-brand-name small {
    display: block;
    align-self: flex-end;
    margin-top: 3px;
    color: #6c757d;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.clubory-panel-footer {
    color: #6c757d;
    font-size: 12px;
}

.clubory-footer-logo {
    width: 18px;
    height: 18px;
    margin-right: 6px;
    object-fit: contain;
    vertical-align: -4px;
}

.clubory-auth-brand {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, .08);
    color: #6c757d;
    font-size: 12px;
    line-height: 1.35;
    text-align: center;
}

.clubory-auth-brand img,
.clubory-profile-brand img {
    width: 24px;
    height: 24px;
    margin-right: 6px;
    object-fit: contain;
    vertical-align: middle;
}

.clubory-profile-brand {
    color: #6c757d;
    font-size: 12px;
    line-height: 1.35;
}

body.dark-mode .clubory-panel-footer,
body.dark-mode .clubory-auth-brand,
body.dark-mode .clubory-profile-brand {
    color: #c2c7d0;
}

.select2-container{ width:100%!important; }
.select2-container--default .select2-selection--single{
    height:38px;border:1px solid #ced4da;border-radius:.25rem;padding:.375rem .75rem;
}
.select2-container--default .select2-selection--single .select2-selection__rendered{
    line-height:26px;padding-left:0;padding-right:2rem;
}
.select2-container--default .select2-selection--single .select2-selection__arrow{
    height:38px;right:10px;
}
.select2-dropdown{ z-index:2055; border-color:#ced4da; }

/* Dark mode: mantener modales y formularios legibles en todo el panel */
body.dark-mode .modal-content {
    background-color: #343a40 !important;
    color: #f4f6f9 !important;
    border-color: #4b545c !important;
}

body.dark-mode .modal-header,
body.dark-mode .modal-footer {
    background-color: #343a40 !important;
    border-color: #4b545c !important;
    color: #f4f6f9 !important;
}

body.dark-mode .modal-header *,
body.dark-mode .modal-footer *,
body.dark-mode .modal-body,
body.dark-mode .modal-body label,
body.dark-mode .modal-body .custom-control-label {
    color: #f4f6f9 !important;
}

body.dark-mode .modal-body .text-muted,
body.dark-mode .modal-body .form-text,
body.dark-mode .modal-body small {
    color: #c2c7d0 !important;
}

body.dark-mode .modal-body .form-control,
body.dark-mode .modal-body .custom-select,
body.dark-mode .modal-body .custom-file-label {
    background-color: #454d55 !important;
    border-color: #6c757d !important;
    color: #f4f6f9 !important;
}

body.dark-mode .modal-body .form-control::placeholder {
    color: #adb5bd !important;
}

body.dark-mode .modal-body .input-group-text {
    background-color: #3f474e !important;
    border-color: #6c757d !important;
    color: #f4f6f9 !important;
}

body.dark-mode .modal-body .bg-light,
body.dark-mode .modal-body [style*="background:#fff"],
body.dark-mode .modal-body [style*="background: #fff"],
body.dark-mode .modal-body [style*="background-color:#fff"],
body.dark-mode .modal-body [style*="background-color: #fff"],
body.dark-mode .modal-body [style*="background:#fafbfc"],
body.dark-mode .modal-body [style*="background: #fafbfc"] {
    background-color: #3f474e !important;
    color: #f4f6f9 !important;
}

body.dark-mode .modal-body .border {
    border-color: #4b545c !important;
}

body.dark-mode .modal-body .card,
body.dark-mode .modal-body .card-body {
    background-color: #343a40 !important;
    color: #f4f6f9 !important;
    border-color: #4b545c !important;
}

body.dark-mode .modal-body .card-header {
    background-color: #3f474e !important;
    color: #f4f6f9 !important;
    border-color: #4b545c !important;
}

body.dark-mode .modal-body .custom-file-label::after {
    background-color: #3f474e !important;
    border-left-color: #6c757d !important;
    color: #f4f6f9 !important;
}

body.dark-mode .modal-body .alert:not(.alert-success):not(.alert-danger):not(.alert-warning):not(.alert-info):not(.alert-primary):not(.alert-secondary) {
    background-color: #3f474e !important;
    border-color: #4b545c !important;
    color: #f4f6f9 !important;
}

body.dark-mode .modal-body .table,
body.dark-mode .modal-body .table td,
body.dark-mode .modal-body .table th {
    color: #f4f6f9 !important;
    border-color: #4b545c !important;
}

body.dark-mode .modal-body .table thead th,
body.dark-mode .modal-body .thead-light th {
    background-color: #3f474e !important;
    color: #f4f6f9 !important;
    border-color: #4b545c !important;
}

body.dark-mode .modal-body .list-group-item {
    background-color: #3f474e !important;
    border-color: #4b545c !important;
    color: #f4f6f9 !important;
}

body.dark-mode .modal-body .select2-container--default .select2-selection--single,
body.dark-mode .modal-body .select2-container--default .select2-selection--multiple {
    background-color: #454d55 !important;
    border-color: #6c757d !important;
    color: #f4f6f9 !important;
}

body.dark-mode .modal-body .select2-container--default .select2-selection__rendered,
body.dark-mode .modal-body .select2-container--default .select2-selection__choice,
body.dark-mode .modal-body .select2-container--default .select2-selection__placeholder,
body.dark-mode .modal-body .select2-container--default .select2-search__field {
    color: #f4f6f9 !important;
}

body.dark-mode .modal-body .select2-container--default .select2-selection__choice {
    background-color: #3f474e !important;
    border-color: #6c757d !important;
}

body.dark-mode .modal-body .select2-container--default .select2-selection__choice__remove {
    color: #c2c7d0 !important;
}

body.dark-mode .select2-dropdown {
    background-color: #343a40 !important;
    border-color: #6c757d !important;
    color: #f4f6f9 !important;
}

body.dark-mode .select2-container--default .select2-results__option {
    color: #f4f6f9 !important;
}

body.dark-mode .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #17a2b8 !important;
    color: #fff !important;
}
/* separación “Mostrar X” debajo del buscador */
div.dataTables_length{ margin-top:.5rem; }

/* Barra de scroll superior para DataTables (solo horizontal) */
.dt-top-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    height: 14px;               /* pequeño alto, solo para la barra */
    margin-bottom: .25rem;
}
.dt-top-scroll > div { height: 1px; } /* elemento “ancho” sincronizado */
