.tdn-container {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.tdn-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.tdn-title {
    font-size: 24px;
    color: #2c3e50;
    margin: 0;
}

.tdn-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    display: inline-flex;
    align-items: center;
}

.tdn-btn:hover {
    background-color: #2980b9;
}

.tdn-btn i {
    margin-right: 5px;
}

.tdn-filter-form {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.tdn-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.tdn-filter-group {
    margin-bottom: 0;
}

.tdn-filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #495057;
    font-size: 14px;
}

.tdn-filter-group select,
.tdn-filter-group input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.tdn-filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.tdn-alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.tdn-alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.tdn-alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.tdn-table-container {
    overflow-x: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.tdn-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.tdn-table th {
    background-color: #f8f9fa;
    color: #495057;
    font-weight: 600;
    text-align: left;
    padding: 12px 15px;
    border-bottom: 2px solid #e9ecef;
}

.tdn-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
}

.tdn-table tr:hover {
    background-color: #f8f9fa;
}

.tdn-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.tdn-badge-pendiente {
    background-color: #fff3cd;
    color: #856404;
}

.tdn-badge-en_proceso {
    background-color: #cce5ff;
    color: #004085;
}

.tdn-badge-cerrado {
    background-color: #d4edda;
    color: #155724;
}

.tdn-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    overflow-y: auto;
}

.tdn-modal-content {
    background: white;
    margin: 30px auto;
    max-width: 600px;
    width: 90%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    position: relative;
    padding: 25px;
}

.tdn-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
    background: none;
    border: none;
}

.tdn-modal-close:hover {
    color: #495057;
}

.tdn-modal-title {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
}

.tdn-form-group {
    margin-bottom: 15px;
}

.tdn-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #495057;
}

.tdn-form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.tdn-form-control:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

.tdn-textarea {
    min-height: 100px;
    resize: vertical;
}

.tdn-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.tdn-empty-state i {
    font-size: 40px;
    margin-bottom: 15px;
    color: #adb5bd;
}

@media (max-width: 768px) {
    .tdn-filter-grid {
        grid-template-columns: 1fr;
    }
    
    .tdn-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .tdn-modal-content {
        width: 95%;
        margin: 20px auto;
        padding: 15px;
    }
}


/* Estilos para Select2 */
.select2-container {
    margin-bottom: 10px;
}

.select2-container--default .select2-selection--single {
    border: 1px solid #ddd;
    border-radius: 4px;
    height: 50px;
    padding: 5px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #007cba;
    color: white;
}

/* Asegurar que los selects en modales se vean bien */
.pitch-modal .select2-container,
.evento-modal .select2-container {
    z-index: 99999 !important;
}

.select2-dropdown {
    z-index: 99999 !important;
}


.select2-container .select2-selection--single {
    height: 50px !important;
    line-height: 40px;
}

body .select2-container .select2-dropdown{
    max-width: 50% !important;
}