Estilos base
.table-panel-container {
    margin: 0 auto;
    padding: 20px;
    color: #393C40;
    max-width: 1600px;
    width: 100%;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(11, 0, 2, 0.8);
    margin-top: 20px;
    margin-bottom: 30px;
    border: 1px solid #0EB795;
    border-radius: 8px;
    overflow: hidden;
    min-width: 1180px;
}

/* Estilos para inputs y selects */
table input[type="text"],
table select,
table textarea {
    width: 100%;
    height: 100%;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    color: rgba(255, 255, 255, 0);
    min-height: 40px;
    transition: all 0.3s ease;
    text-align: center;
    display: block;
    box-sizing: border-box;
}

/* Asegurar que las celdas que contienen inputs no tengan padding */
table td:has(input),
table td:has(select),
table td:has(textarea) {
    padding: 0 !important;
    height: 40px;
}

/* Ajustar el tamaño del textarea */
table td:has(textarea) {
    height: auto;
    min-height: 40px;
}

table textarea {
    resize: vertical;
    min-height: 40px;
    padding: 8px 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

/* Centrar el placeholder del textarea */
table textarea::placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    margin: 0;
    padding: 0;
}

/* Ajustar el contenedor del textarea */
table td:has(textarea) {
    position: relative;
    height: auto;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

table input[type="text"]:not(:placeholder-shown),
table select:not(:placeholder-shown),
table textarea:not(:placeholder-shown) {
    color: #fff;
}

table input::placeholder,
table select::placeholder,
table textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    opacity: 1;
}

table input[type="text"]:focus,
table select:focus,
table textarea:focus {
    color: #fff;
}

table input::-moz-placeholder,
table select::-moz-placeholder,
table textarea::-moz-placeholder {
    color: rgba(255, 255, 255, 0.6);
    opacity: 1;
}

/* Estilos para celdas */
table td{
    padding: 12px 16px;
    border: 1px solid rgba(14, 183, 149, 0.2);
    text-align: center;
    vertical-align: middle;
    box-sizing: border-box;
    color: #fff;
}
table th {
    padding: 12px 16px;
    border: 1px solid rgba(14, 183, 149, 0.2);
    text-align: center;
    vertical-align: middle;
    box-sizing: border-box;
}

/* Estilo para cuando los elementos están enfocados */
table td:focus-within {
    border-style: inset;
    border-color: #0EB795;
    padding: 11px 15px;
}

/* Ajustar el hover de los inputs y selects */
table input[type="text"]:hover,
table select:hover,
table textarea:hover,
table input[type="text"]:focus,
table select:focus,
table textarea:focus {
    outline: none;
    background: rgba(14, 183, 149, 0.15) !important;
    box-shadow: inset 0 0 0 1px rgba(14, 183, 149, 0.3);
}

table th {
    background: #0B0002;
    color: #0EB795;
    font-weight: 600;
}

/* Botones */
.add-button, .edit-btn, .delete-btn {
    /*padding: 6px 12px;*/
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-button, .edit-btn {
    background-color: #0EB795;
}

.delete-btn {
    background-color: #dc3545;
}

.add-button:hover, .edit-btn:hover {
    background-color: #0c9e81;
}

.delete-btn:hover {
    background-color: #c82333;
}

.edit-btn, .delete-btn{
    display: block;
    width: 60%;
    margin: auto;
}

.edit-btn {
    margin-bottom: 10px;
}

/* Modificar los estilos para los select */
table select {
    background-color: transparent !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    text-align: center !important;
    text-align-last: center !important;
    cursor: pointer;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

/* Color por defecto para opciones no seleccionadas */
table select,
table select option {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Color blanco para opciones seleccionadas */
table select:has(option:checked:not([value=""])),
table select option:checked:not([value=""]) {
    color: #fff !important;
}

/* Estilos para el menú desplegable */
select option {
    background-color: rgba(11, 0, 2, 1) !important;
    padding: 8px 0 !important;
    text-align: center !important;
    text-align-last: center !important;
    border: none !important;
    margin: 0 !important;
    width: 100% !important;
}

/* Estilo específico para opciones vacías o sin valor */
select option[value=""],
select option:not([value]),
select:invalid {
    color: rgba(255, 255, 255, 0.6) !important;
    border: none !important;
}

/* Estilo específico para la opción "Normal" */
select option[value=""] {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Cuando una opción está seleccionada */
select option:checked {
    color: #fff !important;
}

/* Estilo específico para el select de uso */
table select[id*="use"] option:first-child {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Estilo para el contenedor del listado */
@-moz-document url-prefix() {
    select {
        border: none !important;
        background-color: rgba(11, 0, 2, 1) !important;
    }
    
    select option {
        background-color: rgba(11, 0, 2, 1) !important;
        border: none !important;
    }
}

/* Asegurar que no haya padding en el contenedor */
table td:has(select) {
    padding: 0 !important;
    position: relative;
}

/* Añadir la flecha después del select */
table td:has(select)::after {
    content: "▼";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

/* Ajustar el padding derecho del select para dejar espacio a la flecha */
table select {
    padding-right: 30px !important;
}

/* Nuevo estilo para los botones de guardar dentro de las tablas */
table button:not(.edit-btn):not(.delete-btn) {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: underline;
    cursor: pointer;
    width: 100%;
    height: 100%;
    transition: color 0.3s ease;
}

/* Ajustar el contenedor del botón */
table td:has(button:not(.edit-btn):not(.delete-btn)) {
    padding: 0 !important;
    transition: all 0.3s ease;
}

/* El hover en la celda en lugar del botón */
table td:has(button:not(.edit-btn):not(.delete-btn)):hover {
    outline: none;
    background: rgba(14, 183, 149, 0.15) !important;
    box-shadow: inset 0 0 0 1px rgba(14, 183, 149, 0.3);
    border-radius: 3px;
}

/* Cambiar el color del botón a blanco cuando se hace hover en la celda */
table td:has(button:not(.edit-btn):not(.delete-btn)):hover button:not(.edit-btn):not(.delete-btn) {
    color: #fff;
}

.table-panel-container table:nth-of-type(2) td:has(button:not(.edit-btn):not(.delete-btn)) {
    min-height: 64px;
    height: 64px;
}

.table-panel-container table th:last-child,
.table-panel-container table td:last-child {
    width: 200px;
    min-width: 200px;
    max-width: 200px;
}

.boton-flex1, .boton-flex2, .boton-flex3 {
    display: flex;
}

.boton-flex1, .boton-flex2 {
    justify-content: space-between;
}

.boton-flex1, .boton-flex3 {
    margin-bottom: 3px;
}

input[type="checkbox"] {
    cursor: pointer;
}

.table-panel-container input[type="checkbox"] {
    transform: scale(2.0);
}

.table-panel-container .non-clickable-checkbox {
    pointer-events: none;
    cursor: default;
}

.login-container {
    width: 350px;
    margin: 100px auto;
    padding: 40px;
    margin-top: 50px;
    background-color: #0b0002;
    border: 1px solid #0EB795;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.login-container h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #f6f6f6;
    font-weight: bold;
}

.login-container label {
    display: block;
    margin-bottom: 5px;
    color: #f6f6f6;
    font-size: 16px;
}

.login-container input[type="text"], 
.login-container input[type="password"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.login-container input[type="text"]:focus, 
.login-container input[type="password"]:focus {
    outline: none;
    border-color: #007bff;
}

.login-container button[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #0eb795;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-container button[type="submit"]:hover {
    background-color: #0056b3;
}

.login-container input[type="checkbox"] {
    margin-right: 5px;
}

.login-container a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-container a:hover {
    color: #0056b3;
}
.error-message {
    color: #ff0000;
    text-align: center;
    margin-bottom: 15px;
}