/* Stock critico de pedidos: indicador flotante, ventana y panel del dashboard */

/* indicador flotante (abajo a la derecha) */
.stc-chip {
    position: fixed; right: 18px; bottom: 18px; z-index: 1040;
    display: inline-flex; align-items: center; gap: 9px;
    height: 42px; padding: 0 14px 0 12px; border: 0; border-radius: 999px;
    background: #b45309; color: #fff; font-size: 13px; font-weight: 600;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .28); cursor: pointer;
    transition: transform .15s, box-shadow .15s, filter .15s;
}
.stc-chip.stc-danger { background: #dc2626; }
.stc-chip:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 12px 28px rgba(15, 23, 42, .32); }
.stc-chip > .fa-exclamation-triangle { font-size: 15px; }
.stc-chip-go { opacity: .8; font-size: 16px; }
.stc-pulse { animation: stc-pulse 1.1s ease-out 3; }
@keyframes stc-pulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, .55), 0 8px 24px rgba(15, 23, 42, .28); }
    100% { box-shadow: 0 0 0 16px rgba(220, 38, 38, 0), 0 8px 24px rgba(15, 23, 42, .28); }
}
@media (max-width: 600px) { .stc-chip { right: 10px; bottom: 10px; left: 10px; justify-content: center; } }
@media print { .stc-chip { display: none !important; } }

/* textos auxiliares */
.stc-sub { font-size: 11.5px; color: var(--m-ink-3, #8a96a3); margin-top: 2px; font-weight: 400; }
.stc-empty { display: flex; align-items: center; gap: 8px; justify-content: center; padding: 22px 10px; color: var(--m-ok, #16a34a); font-weight: 600; text-align: center; }
.stc-empty .fa { font-size: 18px; }
.stc-empty-lg { flex-direction: column; padding: 40px 10px; font-size: 15px; }
.stc-empty-lg .fa { font-size: 36px; }

/* ventana */
#stc-modal .modal-title .fa { color: var(--m-bad, #dc2626); margin-right: 4px; }
.stc-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.stc-kpi { border-radius: 10px; padding: 10px 12px; background: var(--m-bg, #f3f5f9); display: flex; flex-direction: column; }
.stc-kpi b { font-size: 22px; line-height: 1.1; color: var(--m-ink, #1f2933); font-variant-numeric: tabular-nums; }
.stc-kpi span { font-size: 12px; color: var(--m-ink-3, #8a96a3); font-weight: 600; }
.stc-k-red b { color: var(--m-bad, #dc2626); }
.stc-k-amb b { color: #d97706; }
.stc-table { margin: 0; font-variant-numeric: tabular-nums; }
.stc-table > tbody > tr.stc-prod { cursor: pointer; }
.stc-table > tbody > tr.stc-prod > td { vertical-align: middle; }
.stc-tg { color: var(--m-ink-3, #8a96a3); transition: transform .15s; font-size: 16px; }
.stc-prod.open .stc-tg { transform: rotate(90deg); color: var(--m-acc, #2563eb); }
.stc-det > td { background: var(--m-bg, #f3f5f9) !important; border-top: 0 !important; padding-top: 0 !important; }
.stc-lines { margin: 4px 0 6px; background: transparent !important; font-size: 12.5px; }
.stc-lines th { font-size: 11px !important; text-transform: uppercase; letter-spacing: .3px; background: transparent !important; }
.stc-note { margin-top: 12px; font-size: 12px; color: var(--m-ink-3, #8a96a3); line-height: 1.5; }
@media (max-width: 600px) { .stc-kpis { grid-template-columns: 1fr; } }
