/* ==========================================================
   CALI TECH - PANEL DE PEDIDOS DEL ADMINISTRADOR
   (se suma a css/estilo_admin.css)
   ========================================================== */

/* ---------- PESTANAS DEL PANEL ---------- */
.pestanas-admin{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    padding: 6px;
    border-radius: 14px;
    border: 1px solid #e6ecf3;
    background: #ffffff;
    box-shadow: 0 14px 28px -26px rgba(10, 20, 36, 0.5);
}
.pestana{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border: none;
    border-radius: 10px;
    background: transparent;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    color: #5a6b82;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.pestana:hover{ background: #eef6fc; color: var(--azul); }
.pestana.activa{
    color: #04121f;
    background: linear-gradient(135deg, var(--cian), var(--azul));
}
.pestana-globo{
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 20px;
    background: #c1121f;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}
.pestana.activa .pestana-globo{ background: #04121f; }

/* ---------- INDICADORES ---------- */
.indicadores{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}
.indicador{
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px 22px;
    border-radius: 16px;
    border: 1px solid #e6ecf3;
    background:
        linear-gradient(140deg, rgba(71, 253, 238, 0.10) 0%, rgba(20, 107, 158, 0.10) 100%),
        #ffffff;
    box-shadow: 0 18px 34px -30px rgba(10, 20, 36, 0.6);
}
.indicador-valor{
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 30px;
    line-height: 1.1;
    color: var(--azul);
}
.indicador-etiqueta{
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: #6b7c93;
}

/* ---------- TABLA DE PEDIDOS ---------- */
table.pedidos-tabla{ min-width: 1000px; }
.pedidos-tabla .folio{
    display: block;
    font-size: 14.5px;
    color: var(--tinta);
}
.sub-fecha{
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: #8fa6bd;
}
.lista-productos{
    max-width: 320px;
    font-size: 13.5px;
    line-height: 1.45;
    color: #44576f;
}

/* ---------- ESTADOS ---------- */
.estado-pill{
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
    background: #eef2f7;
    color: #5a6b82;
}
.estado-pill.azul{ background: #e6f2fc; color: #146b9e; }
.estado-pill.verde{ background: #e7f8ee; color: #14603a; }
.estado-pill.naranja{ background: #fdf1e2; color: #a5541b; }
.estado-pill.rojo{ background: #fdeaec; color: #8c0d18; }
.estado-pill.gris{ background: #eef2f7; color: #5a6b82; }

/* ---------- REJILLA DE DOS COLUMNAS ---------- */
.rejilla-dos{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 0 24px;
}

/* ---------- DETALLE ---------- */
.sub-titulo{
    margin: 4px 0 12px;
    font-size: 16px;
    color: #33465e;
}
.mini-img{
    width: 38px;
    height: 38px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 10px;
    border-radius: 8px;
    background: #f4f8fc;
    padding: 3px;
}
ul.datos{
    margin: 0 0 18px;
    padding-left: 20px;
    font-size: 14px;
    color: #44576f;
}
ul.datos li{ margin-bottom: 6px; }
ul.datos.pasos{ list-style: none; padding-left: 0; }
ul.datos.pasos li{
    position: relative;
    padding-left: 18px;
    color: #8fa6bd;
}
ul.datos.pasos li.hecho{ color: #14603a; font-weight: 600; }
ul.datos.pasos li.hecho::before{
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--verde);
    font-weight: 700;
}
ul.datos.movimientos{
    background: #f7fafd;
    border: 1px solid #e6ecf3;
    border-radius: 12px;
    padding: 14px 14px 14px 34px;
}
table.productos tfoot th{
    background: #f4f8fc;
    border-top: 2px solid #e0e8f1;
    padding: 12px 14px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #33465e;
}

/* ---------- REFRESCO AUTOMATICO ---------- */
.auto-refresco{
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    font-weight: 600;
    color: #5a6b82;
    white-space: nowrap;
}
.auto-refresco input{
    width: 16px;
    height: 16px;
    accent-color: var(--azul);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 700px){
    .indicador-valor{ font-size: 25px; }
    .auto-refresco{ width: 100%; }
}