/* Inventarios > Traspaso entre plataformas */
.nav-group-title-with-alert {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.nav-attention-alert {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: .72rem;
    font-weight: 800;
    line-height: 1;
}
.nav-attention-alert.is-critical {
    color: #f87171;
    background: rgba(239, 68, 68, .16);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .08);
}
.nav-attention-alert.is-warning {
    color: #fbbf24;
    background: rgba(245, 158, 11, .16);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, .08);
}
.nav-attention-alert[hidden] { display: none; }

.tp-shell {
    --tp-panel: rgba(15, 23, 42, .78);
    --tp-line: rgba(148, 163, 184, .12);
    --tp-muted: #94a3b8;
    --tp-text: #e2e8f0;
    padding: 8px 22px 30px;
    color: var(--tp-text);
}

.tp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 2px 0 18px;
}
.tp-title-wrap,
.tp-header-actions,
.tp-title-icon,
.tp-btn,
.tp-quality,
.tp-tabs,
.tp-toolbar,
.tp-search,
.tp-route,
.tp-footnote {
    display: flex;
    align-items: center;
}
.tp-title-wrap { gap: 13px; min-width: 0; }
.tp-title-icon {
    justify-content: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border: 1px solid rgba(99, 102, 241, .28);
    border-radius: 13px;
    color: #a5b4fc;
    background: linear-gradient(145deg, rgba(99, 102, 241, .18), rgba(34, 211, 238, .08));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}
.tp-title-wrap h1 { margin: 0; font-size: 1.42rem; line-height: 1.2; color: #f8fafc; }
.tp-title-wrap p { margin: 5px 0 0; color: #94a3b8; font-size: .79rem; }
.tp-header-actions { gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.tp-btn {
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 13px;
    border-radius: 9px;
    font: 700 .76rem 'DM Sans', sans-serif;
    cursor: pointer;
    transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.tp-btn:hover { transform: translateY(-1px); }
.tp-btn:disabled { opacity: .58; cursor: wait; transform: none; }
.tp-btn--ghost { color: #cbd5e1; border: 1px solid var(--tp-line); background: rgba(15, 23, 42, .66); }
.tp-btn--ghost:hover { border-color: rgba(129, 140, 248, .3); background: rgba(99, 102, 241, .08); }
.tp-btn--report { color: #a7f3d0; border: 1px solid rgba(16, 185, 129, .25); background: rgba(16, 185, 129, .08); }
.tp-btn--report:hover { border-color: rgba(52, 211, 153, .42); background: rgba(16, 185, 129, .14); }
.tp-btn--primary { color: #fff; border: 1px solid rgba(129, 140, 248, .38); background: linear-gradient(135deg, #4f46e5, #6366f1); box-shadow: 0 8px 22px rgba(79, 70, 229, .17); }

.tp-quality {
    gap: 9px;
    min-height: 38px;
    margin-bottom: 14px;
    padding: 8px 13px;
    border: 1px solid rgba(34, 197, 94, .15);
    border-radius: 9px;
    color: #86efac;
    background: rgba(34, 197, 94, .055);
    font-size: .74rem;
}
.tp-quality.is-warning { color: #fcd34d; border-color: rgba(245, 158, 11, .2); background: rgba(245, 158, 11, .06); }
.tp-quality.is-error { color: #fca5a5; border-color: rgba(248, 113, 113, .2); background: rgba(248, 113, 113, .06); }
.tp-quality-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 14%, transparent); }

.tp-publication-alerts {
    margin: 0 0 14px;
    padding: 11px 13px;
    border: 1px solid rgba(245, 158, 11, .2);
    border-radius: 9px;
    background: rgba(245, 158, 11, .05);
}
.tp-publication-alerts[hidden] { display: none; }
.tp-publication-alerts-heading { display: flex; align-items: flex-start; gap: 9px; color: #fcd34d; }
.tp-publication-alerts-heading > span { display: inline-grid; place-items: center; width: 18px; height: 18px; flex: 0 0 18px; border: 1px solid rgba(245, 158, 11, .3); border-radius: 50%; font-size: .65rem; font-weight: 850; }
.tp-publication-alerts-heading strong { display: block; font-size: .75rem; }
.tp-publication-alerts-heading p { margin: 2px 0 0; color: #94a3b8; font-size: .65rem; }
.tp-publication-warning-list { display: grid; gap: 6px; margin-top: 9px; }
.tp-publication-warning { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 9px; border: 1px solid rgba(245, 158, 11, .14); border-radius: 7px; background: rgba(15, 23, 42, .55); }
.tp-publication-warning.is-neutral { border-color: rgba(148, 163, 184, .16); background: rgba(148, 163, 184, .045); }
.tp-publication-warning-product { min-width: 0; }
.tp-publication-warning-product strong { color: #e2e8f0; font: 700 .68rem 'JetBrains Mono', monospace; }
.tp-publication-warning-product span { margin-left: 8px; color: #94a3b8; font-size: .67rem; }
.tp-publication-warning p { margin: 0; color: #fbbf24; font-size: .67rem; font-weight: 700; text-align: right; }
.tp-publication-warning.is-neutral p { color: #94a3b8; }

.tp-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; margin-bottom: 14px; }
.tp-kpi {
    position: relative;
    min-height: 105px;
    overflow: hidden;
    padding: 15px 16px;
    border: 1px solid var(--tp-line);
    border-radius: 12px;
    background: var(--tp-panel);
}
.tp-kpi::after { content: ''; position: absolute; inset: auto -18px -30px auto; width: 85px; height: 85px; border-radius: 50%; background: currentColor; opacity: .055; }
.tp-kpi-label { display: block; color: var(--tp-muted); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .055em; }
.tp-kpi strong { display: block; margin-top: 9px; color: currentColor; font: 700 1.55rem/1 'JetBrains Mono', monospace; }
.tp-kpi small { display: block; margin-top: 8px; color: #94a3b8; font-size: .68rem; }
.tp-kpi--violet { color: #a5b4fc; border-color: rgba(129, 140, 248, .16); }
.tp-kpi--red { color: #fb7185; border-color: rgba(244, 63, 94, .16); }
.tp-kpi--cyan { color: #67e8f9; border-color: rgba(34, 211, 238, .16); }
.tp-kpi--green { color: #86efac; border-color: rgba(74, 222, 128, .16); }

.tp-workspace { overflow: hidden; border: 1px solid var(--tp-line); border-radius: 13px; background: rgba(8, 14, 28, .54); }
.tp-tabs { gap: 3px; padding: 7px 8px 0; border-bottom: 1px solid var(--tp-line); background: rgba(15, 23, 42, .5); }
.tp-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px 12px;
    border: 0;
    color: #94a3b8;
    background: transparent;
    font: 700 .78rem 'DM Sans', sans-serif;
    cursor: pointer;
}
.tp-tab::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px 2px 0 0; background: transparent; }
.tp-tab span { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; color: #94a3b8; background: rgba(100, 116, 139, .14); font: 700 .66rem 'JetBrains Mono', monospace; }
.tp-tab:hover { color: #cbd5e1; }
.tp-tab.is-active { color: #c7d2fe; }
.tp-tab.is-active::after { background: #818cf8; }
.tp-tab.is-active span { color: #c7d2fe; background: rgba(99, 102, 241, .18); }
.tp-tab-help { padding: 10px 15px; color: #94a3b8; border-bottom: 1px solid rgba(148, 163, 184, .08); background: rgba(99, 102, 241, .035); font-size: .72rem; }
.tp-tab-help strong { color: #94a3b8; }

.tp-toolbar { gap: 9px; padding: 11px 12px; border-bottom: 1px solid rgba(148, 163, 184, .08); }
.tp-search { position: relative; flex: 1 1 280px; min-width: 180px; }
.tp-search svg { position: absolute; left: 11px; color: #475569; pointer-events: none; }
.tp-search input,
.tp-select {
    height: 36px;
    border: 1px solid rgba(100, 116, 139, .24);
    border-radius: 8px;
    outline: 0;
    color: #cbd5e1;
    background: rgba(15, 23, 42, .72);
    font: 500 .73rem 'DM Sans', sans-serif;
}
.tp-search input { width: 100%; padding: 0 11px 0 35px; }
.tp-select { min-width: 150px; padding: 0 29px 0 10px; }
.tp-search input:focus,
.tp-select:focus { border-color: rgba(99, 102, 241, .55); box-shadow: 0 0 0 3px rgba(99, 102, 241, .09); }
.tp-visible-count { margin-left: auto; white-space: nowrap; color: #94a3b8; font-size: .68rem; font-weight: 700; }

.tp-table-wrap { max-height: calc(100vh - 430px); min-height: 225px; overflow: auto; }
.tp-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.tp-table th { position: sticky; top: 0; z-index: 2; padding: 10px 11px; border-bottom: 1px solid var(--tp-line); color: #94a3b8; background: #10182a; text-align: left; font-size: .62rem; text-transform: uppercase; letter-spacing: .055em; }
.tp-table td { padding: 12px 11px; border-bottom: 1px solid rgba(148, 163, 184, .075); color: #cbd5e1; vertical-align: middle; font-size: .72rem; }
.tp-table tr:hover td { background: rgba(99, 102, 241, .035); }
.tp-table th:nth-child(1) { width: 82px; }
.tp-table th:nth-child(2) { width: 19%; }
.tp-table th:nth-child(3) { width: 18%; }
.tp-table th:nth-child(4), .tp-table th:nth-child(6) { width: 13%; }
.tp-table th:nth-child(5) { width: 92px; text-align: center; }
.tp-product strong { display: block; color: #e2e8f0; font: 700 .76rem 'JetBrains Mono', monospace; }
.tp-product span { display: block; overflow: hidden; margin-top: 4px; color: #94a3b8; white-space: nowrap; text-overflow: ellipsis; }
.tp-priority { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border: 1px solid; border-radius: 999px; font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.tp-priority::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.tp-priority--critical { color: #fb7185; border-color: rgba(244, 63, 94, .22); background: rgba(244, 63, 94, .08); }
.tp-priority--high { color: #fbbf24; border-color: rgba(245, 158, 11, .22); background: rgba(245, 158, 11, .08); }
.tp-priority--medium { color: #67e8f9; border-color: rgba(34, 211, 238, .2); background: rgba(34, 211, 238, .07); }
.tp-route { gap: 7px; min-width: 0; }
.tp-route-main { min-width: 0; }
.tp-route-main strong { display: block; overflow: hidden; color: #e2e8f0; white-space: nowrap; text-overflow: ellipsis; }
.tp-route-main span { display: block; overflow: hidden; margin-top: 3px; color: #94a3b8; white-space: nowrap; text-overflow: ellipsis; }
.tp-publication-badge { display: inline-flex; max-width: 100%; margin-top: 5px; padding: 2px 5px; border: 1px solid rgba(245, 158, 11, .2); border-radius: 5px; color: #fbbf24; background: rgba(245, 158, 11, .07); font-size: .56rem; font-weight: 750; line-height: 1.3; white-space: normal; }
.tp-publication-badge.is-neutral { border-color: rgba(148, 163, 184, .18); color: #94a3b8; background: rgba(148, 163, 184, .055); }
.tp-route-arrow { flex: 0 0 auto; color: #818cf8; }
.tp-metric strong { color: #e2e8f0; font: 700 .75rem 'JetBrains Mono', monospace; }
.tp-metric span { display: block; margin-top: 4px; color: #94a3b8; font-size: .65rem; }
.tp-metric .tp-ddp-provisional { display: inline-flex; margin-top: 5px; padding: 2px 5px; border: 1px solid rgba(245, 158, 11, .2); border-radius: 5px; color: #fbbf24; background: rgba(245, 158, 11, .07); font-size: .58rem; font-weight: 750; }
.tp-suggestion { text-align: center; }
.tp-suggestion strong { display: block; color: #a5b4fc; font: 800 1.08rem 'JetBrains Mono', monospace; }
.tp-suggestion span { color: #94a3b8; font-size: .62rem; }
.tp-projection { line-height: 1.45; }
.tp-projection strong { color: #86efac; }
.tp-allocation-goal { display: block; color: #a5b4fc; font-size: .58rem; font-weight: 700; }
.tp-protected { display: inline-block; margin-top: 4px; color: #fbbf24; font-size: .61rem; }
.tp-protected--missing { color: #fca5a5; }
.tp-pt-zero { display: inline-flex; margin-top: 4px; padding: 2px 5px; border-radius: 5px; color: #86efac; background: rgba(34, 197, 94, .08); font-size: .6rem; font-weight: 700; }

.tp-state { min-height: 225px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 38px 20px; color: #94a3b8; text-align: center; }
.tp-state[hidden] { display: none; }
.tp-state strong { margin-top: 9px; color: #94a3b8; font-size: .86rem; }
.tp-state p { max-width: 440px; margin: 6px 0 0; font-size: .72rem; line-height: 1.5; }
.tp-state--error > span { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(248, 113, 113, .28); border-radius: 50%; color: #f87171; background: rgba(248, 113, 113, .08); font-weight: 800; }
.tp-spinner { width: 26px; height: 26px; border: 2px solid rgba(99, 102, 241, .16); border-top-color: #818cf8; border-radius: 50%; animation: tp-spin .8s linear infinite; }
@keyframes tp-spin { to { transform: rotate(360deg); } }
.tp-panel[hidden] { display: none; }
.tp-footnote { gap: 7px; margin-top: 11px; color: #94a3b8; font-size: .67rem; }

@media (max-width: 1120px) {
    .tp-kpis { grid-template-columns: repeat(2, 1fr); }
    .tp-toolbar { flex-wrap: wrap; }
    .tp-visible-count { width: 100%; text-align: right; }
    .tp-table { min-width: 1050px; }
}
@media (max-width: 720px) {
    .tp-shell { padding: 4px 10px 22px; }
    .tp-header { align-items: flex-start; flex-direction: column; }
    .tp-header-actions { width: 100%; }
    .tp-header-actions .tp-btn { flex: 1 1 150px; }
    .tp-kpis { grid-template-columns: 1fr; }
    .tp-kpi { min-height: 92px; }
    .tp-tabs { overflow-x: auto; }
    .tp-tab { white-space: nowrap; }
    .tp-publication-warning { align-items: flex-start; flex-direction: column; }
    .tp-publication-warning-product span { display: block; margin: 3px 0 0; }
    .tp-publication-warning p { text-align: left; }
    .tp-search { flex-basis: 100%; }
    .tp-select { flex: 1; min-width: 0; }
}

/* Configuración > Distribución > Traspasos */
.cfg-transfer-intro {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
    padding: 18px;
    border: 1px solid rgba(129, 140, 248, .14);
    border-radius: 11px;
    background: linear-gradient(120deg, rgba(99, 102, 241, .09), rgba(15, 23, 42, .48) 55%, rgba(34, 211, 238, .035));
}
.cfg-transfer-eyebrow { color: #818cf8; font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.cfg-transfer-intro h2 { margin: 5px 0 4px; color: #f1f5f9; font-size: 1.02rem; }
.cfg-transfer-intro p { margin: 0; color: #94a3b8; font-size: .73rem; }
.cfg-transfer-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.cfg-transfer-actions .cfg-inv-status { min-width: 82px; min-height: auto; padding: 0 5px; border: 0; background: transparent; }

.cfg-transfer-guards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; }
.cfg-transfer-guards article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 13px 14px;
    border: 1px solid rgba(148, 163, 184, .1);
    border-radius: 9px;
    background: rgba(15, 23, 42, .52);
}
.cfg-transfer-guards strong { display: block; color: #cbd5e1; font-size: .76rem; }
.cfg-transfer-guards p { margin: 4px 0 0; color: #94a3b8; font-size: .67rem; line-height: 1.45; }
.cfg-transfer-guard-icon { display: inline-grid; place-items: center; width: 33px; height: 33px; border: 1px solid; border-radius: 9px; font: 800 .66rem 'JetBrains Mono', monospace; }
.cfg-transfer-guard-icon--green { color: #4ade80; border-color: rgba(74, 222, 128, .2); background: rgba(74, 222, 128, .08); }
.cfg-transfer-guard-icon--violet { color: #a5b4fc; border-color: rgba(129, 140, 248, .2); background: rgba(129, 140, 248, .08); }
.cfg-transfer-lock { padding: 3px 6px; border: 1px solid rgba(100, 116, 139, .18); border-radius: 6px; color: #94a3b8; background: rgba(100, 116, 139, .07); font-size: .58rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }

.cfg-transfer-section-title { display: flex; align-items: flex-end; justify-content: space-between; margin: 0 0 9px; }
.cfg-transfer-section-title h3 { margin: 0; color: #cbd5e1; font-size: .82rem; }
.cfg-transfer-section-title p { margin: 3px 0 0; color: #94a3b8; font-size: .66rem; }
.cfg-transfer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-bottom: 20px; }
.cfg-transfer-field,
.cfg-transfer-toggle-card {
    min-height: 116px;
    padding: 13px;
    border: 1px solid rgba(148, 163, 184, .1);
    border-radius: 9px;
    background: rgba(15, 23, 42, .48);
}
.cfg-transfer-field > span { display: block; color: #cbd5e1; font-size: .7rem; font-weight: 700; line-height: 1.35; }
.cfg-transfer-field > small { display: block; min-height: 28px; margin-top: 3px; color: #94a3b8; font-size: .62rem; line-height: 1.35; }
.cfg-transfer-input { display: flex; align-items: stretch; height: 34px; margin-top: 9px; overflow: hidden; border: 1px solid rgba(100, 116, 139, .25); border-radius: 7px; background: rgba(8, 14, 28, .7); }
.cfg-transfer-input:focus-within { border-color: rgba(99, 102, 241, .55); box-shadow: 0 0 0 3px rgba(99, 102, 241, .08); }
.cfg-transfer-input input { min-width: 0; width: 100%; padding: 0 10px; border: 0; outline: 0; color: #e2e8f0; background: transparent; font: 700 .78rem 'JetBrains Mono', monospace; }
.cfg-transfer-input span { display: inline-flex; align-items: center; padding: 0 9px; border-left: 1px solid rgba(100, 116, 139, .18); color: #94a3b8; background: rgba(30, 41, 59, .42); font-size: .61rem; font-weight: 700; }
.cfg-transfer-toggle-card { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.cfg-transfer-toggle-card--wide { grid-column: span 2; }
.cfg-transfer-toggle-card > input { position: absolute; opacity: 0; pointer-events: none; }
.cfg-transfer-toggle-card > span:last-child { min-width: 0; }
.cfg-transfer-toggle-card strong { display: block; color: #cbd5e1; font-size: .7rem; line-height: 1.4; }
.cfg-transfer-toggle-card small { display: block; margin-top: 4px; color: #94a3b8; font-size: .62rem; line-height: 1.4; }
.cfg-transfer-toggle { position: relative; width: 38px; height: 22px; flex: 0 0 38px; border: 1px solid rgba(100, 116, 139, .35); border-radius: 999px; background: rgba(30, 41, 59, .85); transition: .18s ease; }
.cfg-transfer-toggle i { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #94a3b8; transition: .18s ease; }
.cfg-transfer-toggle-card > input:checked + .cfg-transfer-toggle { border-color: rgba(74, 222, 128, .35); background: rgba(34, 197, 94, .14); }
.cfg-transfer-toggle-card > input:checked + .cfg-transfer-toggle i { left: 19px; background: #4ade80; }
.cfg-transfer-toggle-card > input:focus-visible + .cfg-transfer-toggle { outline: 2px solid #818cf8; outline-offset: 2px; }
.cfg-transfer-formula { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding: 11px 13px; border: 1px solid rgba(148, 163, 184, .09); border-radius: 9px; color: #94a3b8; background: rgba(8, 14, 28, .55); white-space: nowrap; font-size: .62rem; }
.cfg-transfer-formula > span { margin-right: 3px; color: #94a3b8; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.cfg-transfer-formula div { display: inline-flex; align-items: center; gap: 5px; color: #94a3b8; }
.cfg-transfer-formula b { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: #c7d2fe; background: rgba(99, 102, 241, .14); font: 700 .58rem 'JetBrains Mono', monospace; }
.cfg-transfer-formula i { color: #475569; font-style: normal; }

@media (max-width: 1050px) {
    .cfg-transfer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    .cfg-transfer-intro { flex-direction: column; }
    .cfg-transfer-actions { justify-content: flex-start; }
    .cfg-transfer-guards,
    .cfg-transfer-grid { grid-template-columns: 1fr; }
    .cfg-transfer-toggle-card--wide { grid-column: auto; }
    .cfg-transfer-guards article { grid-template-columns: auto minmax(0, 1fr); }
    .cfg-transfer-lock { grid-column: 2; justify-self: start; }
}
