.turnos-evento-wrapper {
    font-family: inherit;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.te-motivational {
    margin-bottom: 30px;
}

.te-progress-bar-wrap {
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.te-progress-bar {
    height: 100%;
    background: #4caf50;
    transition: width 0.5s ease;
}

.te-message.notice {
    padding: 10px;
    background: #fff3cd;
    border-left: 5px solid #ffeeba;
    color: #856404;
    font-weight: bold;
}

.te-fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.te-fields-grid div {
    display: flex;
    flex-direction: column;
}

.te-fields-grid label {
    font-weight: bold;
    margin-bottom: 5px;
}

.te-fields-grid input {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.te-table-wrap {
    overflow-x: auto;
}

.te-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.te-table th,
.te-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

.te-table th {
    background: #f1f1f1;
}

.te-available {
    background: #eaffea;
}

.te-full {
    background: #ffeaea;
}

.te-slot-boxes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
}

.te-slot-box {
    padding: 8px;
    border: 1px dashed #ccc;
    background-color: #fff;
    border-radius: 4px;
    font-size: 13px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 40px;
}

.te-slot-box.te-taken {
    background-color: #e5f2ff;
    border: 1px solid #0073aa;
    color: #0073aa;
    font-weight: bold;
}

.te-slot-box.te-empty {
    background-color: transparent;
}

.te-available-text {
    display: none;
}

.te-btn-select {
    padding: 5px 10px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    width: 100%;
}

.te-btn-select:hover {
    background: #005177;
}

.te-btn-select.te-selected {
    background: #4caf50;
    font-weight: bold;
}

.te-btn-select.te-selected:hover {
    background: #45a049;
}

.te-badge-full {
    padding: 5px 10px;
    background: #dc3232;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
}

.te-guardar-wrap {
    text-align: right;
    margin-top: 20px;
}

#te-btn-guardar {
    padding: 10px 20px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
    display: inline-block;
}

#te-btn-guardar:hover {
    background: #135e96;
}

/* Responsive Table */
@media screen and (max-width: 768px) {
    .te-table, .te-table thead, .te-table tbody, .te-table th, .te-table td, .te-table tr { 
        display: block; 
    }
    
    .te-table thead tr { 
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .te-table tr { 
        border: 1px solid #ddd;
        border-radius: 8px;
        margin-bottom: 20px; 
        overflow: hidden;
    }
    
    .te-table td { 
        border: none;
        border-bottom: 1px solid #eee; 
        position: relative;
        padding: 15px 15px 15px 50%;
        text-align: right;
        min-height: 50px;
    }
    
    .te-table td:last-child {
        border-bottom: none;
    }

    .te-table td:before { 
        position: absolute;
        top: 15px;
        left: 15px;
        width: 45%; 
        padding-right: 10px; 
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        color: #555;
        content: attr(data-label);
    }

    /* Override time block header to span full width */
    .te-table td[data-label="Bloque Horario"] {
        background: #f1f1f1;
        text-align: center;
        padding: 15px;
        font-size: 1.1em;
        border-bottom: 2px solid #ddd;
    }

    .te-table td[data-label="Bloque Horario"]:before {
        display: none;
    }

    .te-slot-boxes {
        align-items: flex-end;
    }

    .te-slot-box {
        width: 100%;
        max-width: 250px;
        box-sizing: border-box;
    }

    .te-guardar-wrap {
        text-align: center;
    }
    
    #te-btn-guardar {
        width: 100%;
        padding: 15px;
    }
}