
:root {
    --color-fondo: #1a8b84;
    --color-hover: #15796d;
    --color-texto: #ffffff;
    --color-acento: #c7edea;
    --color-blanco: #ffffff;
    --color-cierre: #11615a;
    --color-cierre-hover: #0d4f4a;
}

.main-content {
    margin-left: 280px;
    padding: 25px;
}

table {
    width: 90%;
    margin: 20px auto;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

th {
    background: var(--color-fondo);
    color: white;
    padding: 12px;
    text-align: left;
}

td {
    border: 1px solid #ddd;
    padding: 12px;
}

input[type=text] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    padding: 8px 14px;
    background: var(--color-fondo);
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
}

button:hover {
    background: var(--color-hover);
}
.btn-delete {
    background: #d9534f;
    color: white;
    padding: 8px 14px;
    border: none;
    border-radius: 5px;
    margin-left: 5px;
    cursor: pointer;
}

.btn-delete:hover {
    background: #c9302c;
}
.buscador {
    width: 300px;
    padding: 8px;
    margin: 10px 0;
}
/* =========================
   RESPONSIVE LAYOUT
========================= */

/* Desktop (sidebar visible) */
@media (min-width: 1024px) {
    .main-content {
        margin-left: 280px;
        padding: 25px;
    }
}

/* Tablet y móvil */
@media (max-width: 1023px) {
    .main-content {
        margin-left: 0;
        padding: 15px;
    }

    table {
        width: 100%;
        margin: 15px 0;
    }

    .buscador {
        width: 100%;
    }

   .main-content button,
.main-content .btn-delete {
    width: 100%;
}

}

/* Tabla scroll en móviles */
@media (max-width: 768px) {
    .tabla-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 600px;
    }

    th,
    td {
        font-size: 0.85rem;
        padding: 8px;
    }
}

