/* ==========================================================================
   AMD QR FACTORY - ARCHIVO MAESTRO RECUPERADO - MI AMO
   ========================================================================== */

:root {
    --amd-primary: #eea201;
    --amd-dark: #403f45;
    --amd-border: #dcdcdc;
    --radius-pro: 8px;
    --shadow-pro: 0 4px 15px rgba(64,63,69,0.06);
}

/* Reset Genérico */
.amd-qr-pro-container, .amd_qr_inventario, .amd_qr_produccion, .amd_qr_metricas {
    font-family: 'Poppins', sans-serif !important;
    font-size: 13px !important;
    color: var(--amd-dark) !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

/* 1. HEADER INDEPENDIENTE */
.amd-qr-header-title {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 20px !important;
    padding: 15px 18px !important;
    background: #fff !important;
    border-radius: var(--radius-pro) !important;
    box-shadow: var(--shadow-pro) !important;
    border: 1px solid #f0f0f0 !important;
}

.amd-qr-header-title h1 {
    margin: 0 !important;
    font-size: 18px !important;
    color: var(--amd-dark) !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

/* 2. SECCIÓN DE REGISTRO (CON FONDO BLANCO RECUPERADO, MI AMO) */
.amd-widget-pro, .amd-register-section {
    background: #ffffff !important; /* FONDO BLANCO A HUEVO */
    border-radius: var(--radius-pro) !important;
    padding: 25px !important;
    box-shadow: var(--shadow-pro) !important;
    border: 1px solid var(--amd-border) !important;
    margin-bottom: 25px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.amd-widget-pro h3 {
    margin: 0 0 15px 0 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--amd-dark) !important;
    border-bottom: 2px solid var(--amd-primary) !important;
    padding-bottom: 5px !important;
    display: inline-block !important;
}

/* 3. FORMULARIO DE REGISTRO (GRID 1fr 1fr 80px 180px) */
.amd-form-grid-pro {
    display: grid !important;
    grid-template-columns: 1fr 1fr 80px 180px !important; 
    gap: 15px !important;
    align-items: center !important; 
    width: 100% !important;
}

.amd-form-group label {
    display: block !important;
    margin-bottom: 5px !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
}

.amd-qr-input, .amd-widget-pro input {
    width: 100% !important;
    padding: 10px 12px !important;
    border: 2px solid var(--amd-border) !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    background: #fff !important;
    box-sizing: border-box !important;
}

/* 4. BOTONES */
.amd-btn-action, .amd-btn-registrar {
    display: inline-block !important;
    width: 100% !important;
    padding: 12px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-align: center !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    border: none !important;
}
.amd-btn-orange { background: var(--amd-primary) !important; color: #fff !important; }
.amd-btn-dark { background: var(--amd-dark) !important; color: #fff !important; }

/* 5. TABLA DE UBICACIONES (SUS 5 COLUMNAS Y ANCHOS, MI AMO) */
.amd-table-section {
    background: #ffffff !important;
    border-radius: 10px !important;
 
    box-shadow: var(--shadow-pro) !important;
    border: 1px solid var(--amd-border) !important;
    margin-top: 25px !important;
}

.amd-table-pro {
    width: 100% !important;
    border-collapse: collapse !important;
    table-layout: fixed !important;
}

.amd-table-pro thead tr { background: var(--amd-dark) !important; }
.amd-table-pro th {
    color: #ffffff !important;
    padding: 12px 15px !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    text-align: left !important;
}
.amd-table-pro td {
    padding: 12px 15px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    vertical-align: middle !important;
}

/* SUS ANCHOS DE COLUMNA CALIBRADOS, MI AMO */
.amd-table-pro th:nth-child(1), .amd-table-pro td:nth-child(1) { width: 180px !important; } /* Identificador */
.amd-table-pro th:nth-child(2), .amd-table-pro td:nth-child(2) { width: 150px !important; } /* Ciudad */
.amd-table-pro th:nth-child(3), .amd-table-pro td:nth-child(3) { width: auto !important; }  /* Ubicación */
.amd-table-pro th:nth-child(4), .amd-table-pro td:nth-child(4) { width: 100px !important; text-align: center !important; } /* Pantallas */
.amd-table-pro th:nth-child(5), .amd-table-pro td:nth-child(5) { width: 80px !important; text-align: center !important; }  /* Acción */

.amd-badge-sku {
    background: #f1f1f1 !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    font-family: monospace !important;
    font-weight: 700 !important;
    border: 1px solid #dcdcdc !important;
}

/* 6. CARDS DE PRODUCCIÓN (EL CÓDIGO QUE USTED AGREGÓ) */
.amd-points-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
    max-height: 550px !important;
    overflow-y: auto !important;
    padding: 5px !important;
    margin-top: 10px !important;
}

.amd-point-card {
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    padding: 10px !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.amd-point-card:hover { border-color: #b0b0b0 !important; }
.amd-point-card.active {
    background: #fff8e1 !important;
    border: 2px solid #eea201 !important;
    box-shadow: 0 2px 8px rgba(238,162,1,0.2) !important;
}

.amd-card-name { font-size: 12px !important; font-weight: 700 !important; color: #403f45 !important; }
.amd-card-city { font-size: 10px !important; color: #888 !important; }
.amd-point-card input[type="checkbox"] { display: none !important; }

/* [TODO SU CÓDIGO ANTERIOR SE MANTIENE IGUAL, MI AMO] */

/* ==========================================================================
   ESTILOS PARA TABS (SIN TOCAR LO DEMÁS, MI AMO)
   ========================================================================== */
.amd-tabs-container {
    margin-bottom: 0px !important;
    display: flex !important;
    gap: 5px !important;
}

.amd-tab-btn {
    padding: 10px 20px !important;
    background: #e0e0e0 !important;
    border: none !important;
    border-radius: 8px 8px 0 0 !important;
    cursor: pointer !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    color: #666 !important;
    transition: all 0.2s !important;
}

.amd-tab-btn.active {
    background: #ffffff !important;
    color: var(--amd-primary) !important;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05) !important;
    border-top: 3px solid var(--amd-primary) !important;
}

.amd-tab-content {
    display: none !important;
}

.amd-tab-content.active {
    display: block !important;
}