@tailwind base;
@tailwind components;
@tailwind utilities;



.cga-admin-app {
  padding: 0;
  font-family: Arial, sans-serif;
}

.cga-admin-app h3 {
  color: #2c3e50;
}

.cga-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    margin-bottom: 15px;
    font-size: 14px;
}

.cga-table thead {
    background: #f5f5f5;
}

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

.cga-table tr:nth-child(even) {
    background: #fafafa;
}

.cga-table tr:hover {
    background: #f0f7ff;
}

.cga-table .accion-btn {
    display: inline-block;
    padding: 5px 8px;
    margin-right: 5px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    border: 1px solid #ccc;
    background: white;
}

.cga-table .accion-btn.delete {
    border-color: #e05050;
    color: #e05050;
}

.cga-table .accion-btn.update {
    border-color: #1877f2;
    color: #1877f2;
}

/* --- Responsive Wrapper --- */
.cga-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

/* Mantener el diseño clásico en desktop */
@media (min-width: 769px) {
    .cga-table {
        display: table;
    }
}

/* --- Versión responsive (mobile) --- */
@media (max-width: 768px) {

    .cga-table,
    .cga-table thead,
    .cga-table tbody,
    .cga-table th,
    .cga-table td,
    .cga-table tr {
        display: block;
    }

    /* Ocultar el header */
    .cga-table thead {
        display: none;
    }

    /* Cada fila = una tarjeta */
    .cga-table tr {
        margin-bottom: 15px;
        background: #fff;
        border-radius: 6px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.08);
        padding: 10px;
    }

    .cga-table td {
        text-align: left !important;
        padding: 10px 5px;
        position: relative;
        padding-left: 120px; /* espacio para label */
        border-bottom: 1px solid #eee;
    }

    .cga-table td:last-child {
        border-bottom: none;
    }

    /* Labels usando data-title */
    .cga-table td::before {
        content: attr(data-title);
        font-weight: 600;
        position: absolute;
        left: 10px;
        top: 10px;
        width: 100px;
        color: #555;
    }

    /* Botones */
    .cga-table .accion-btn {
        font-size: 13px;
        padding: 6px 10px;
        margin-top: 5px;
        display: inline-block;
    }
}

button {
  font-size: small;
}


/* Tipografía pequeña global para inputs, tablas y forms */
input,
select,
textarea,
button,
table,
th,
td,
label {
  font-size: 0.875rem !important; /* text-sm */
}
