/*
 Theme Name: PedidosMX
 Theme URI: https://pedidosmx.com/
 Description: Theme para PedidosMX
 Author: JuCri
 Author URI: https://www.jucri.com.mx
 Template: Divi
 Version: 1.0.0
*/



/* ========================================================
   ESTILOS PANEL DE CLIENTES - CATÁLOGO
======================================================== */
.wrap-admin-catalogo {
    max-width: 900px;
    margin: 40px auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.catalogo-header {
    text-align: center;
    margin-bottom: 30px;
}

.catalogo-header h2 {
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 8px;
    font-weight: 700;
}

.catalogo-header p {
    color: #7f8c8d;
    font-size: 15px;
}

.catalogo-form fieldset {
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    background: #fdfdfd;
}

.catalogo-form legend {
    background: #00b894; /* Color corporativo PedidosMX */
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.form-grupo {
    display: flex;
    flex-direction: column;
}

.input-completo {
    grid-column: 1 / -1;
}

.form-grupo label {
    font-weight: 600;
    color: #34495e;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-grupo input[type="text"],
.form-grupo input[type="number"],
.form-grupo select,
.form-grupo textarea {
    padding: 12px;
    border: 1px solid #dcdde1;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fff;
}

.form-grupo input:focus,
.form-grupo select:focus,
.form-grupo textarea:focus {
    border-color: #00b894;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.1);
}

.form-grupo small {
    color: #95a5a6;
    margin-top: 5px;
    font-size: 12px;
}

/* Campos de archivo */
.input-file {
    padding: 10px;
    border: 2px dashed #bdc3c7;
    background: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
}

/* Fila de Atributos */
.fila-atributo {
    background: #fff;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 6px;
    margin-bottom: 10px;
}

.instruccion-atributos {
    font-size: 13px;
    color: #7f8c8d;
    margin-bottom: 15px;
}

/* Botones */
.btn-primario, .btn-secundario {
    cursor: pointer;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    transition: all 0.3s ease;
}

.btn-primario {
    background: #00b894;
    color: white;
    padding: 15px 30px;
    font-size: 16px;
    width: 100%;
}

.btn-primario:hover {
    background: #019a7c;
}

.btn-primario:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

.btn-secundario {
    background: #ecf0f1;
    color: #2c3e50;
    padding: 10px 20px;
    font-size: 13px;
}

.btn-secundario:hover {
    background: #bdc3c7;
}

.mt-1 { margin-top: 15px; }

/* Mensajes */
.mensaje-alerta {
    margin-top: 15px;
    text-align: center;
    font-weight: 600;
    padding: 10px;
    border-radius: 6px;
}


/* Contenedor principal del Dashboard */
.wrap-admin-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: system-ui, -apple-system, sans-serif;
}

/* Cabecera del Dashboard */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.dashboard-header h2 {
    margin: 0 0 5px 0;
    font-size: 1.8rem;
    color: #2d3436;
}

.dashboard-header p {
    margin: 0;
    color: #636e72;
}

/* Forzar que el botón respete su contenido y no herede anchos al 100% */
.dashboard-header .btn-primario {
    width: auto !important; 
    padding: 10px 24px;
    white-space: nowrap;
    border-radius: 6px;
}

/* Contenedor de la Tabla */
.tabla-responsiva {
    overflow-x: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* Tabla Estilos */
.tabla-productos {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 800px; /* Evita que las columnas colapsen en pantallas móviles */
}

.tabla-productos thead th {
    background: #f8f9fa;
    padding: 16px;
    font-weight: 600;
    border-bottom: 2px solid #e1e8ed;
    color: #2d3436;
}

.tabla-productos tbody td {
    padding: 16px;
    border-bottom: 1px solid #f1f2f6;
    vertical-align: middle;
}

.tabla-productos tbody tr:hover {
    background-color: #fcfcfc;
}

/* Botones de acción en la tabla */
.btn-accion {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    transition: transform 0.2s ease;
}

.btn-accion:hover {
    transform: scale(1.2);
}