/* Plataforma > Soporte: indicadores, bandeja con SLA, detalle con compositor (respuesta o nota interna) y contexto.
   Mismo lenguaje visual que Plataforma > Monitor STS: tarjetas de 14 px, acento lateral, titulos en mayuscula,
   Outfit para numeros y titulos, Inter para la interfaz y Space Mono solo para numeros de ticket y referencias. */

.ps-pagina {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: calc(100vh - 3.5rem - 32px);
    min-height: 600px;
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

    .ps-pagina button, .ps-pagina select, .ps-pagina input, .ps-pagina textarea { font-family: inherit; }

/* ---- Indicadores ---- */
.ps-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; flex: none; }

.ps-kpi {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 18px 14px 20px;
    border-radius: 14px;
    border: 1px solid var(--border-soft);
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 39, 66, .04);
    overflow: hidden;
    min-width: 0;
}

    .ps-kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: #94a3b8; }

.ps-kpi-ok::before { background: #10b981; }
.ps-kpi-err::before { background: #ef4444; }
.ps-kpi-warn::before { background: #f59e0b; }
.ps-kpi-idle::before { background: #94a3b8; }
.ps-kpi-info::before { background: #3d8bdb; }

.ps-kpi-titulo {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ps-kpi strong {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 30px;
    line-height: 1.05;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--brand-navy);
}

.ps-kpi-err strong { color: #c0392b; }

/* ---- Bandeja y detalle ---- */
.ps-grilla {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 410px minmax(0, 1fr);
    gap: 16px;
}

.ps-bandeja {
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(15, 39, 66, .04);
    overflow: hidden;
}

.ps-filtros { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-bottom: 1px solid var(--border-soft); }

/* Control segmentado: cuatro partes iguales. */
.ps-seg {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    padding: 3px;
    border-radius: 10px;
    background: #eef2f6;
}

    .ps-seg button {
        border: 0;
        border-radius: 8px;
        background: transparent;
        padding: 6px 4px;
        font-size: 13px;
        font-weight: 500;
        color: #475569;
        white-space: nowrap;
        cursor: pointer;
        transition: background .15s, color .15s;
    }

        .ps-seg button:hover { color: var(--brand-navy); }
        .ps-seg button.sel { background: #fff; color: var(--brand-navy); font-weight: 600; box-shadow: 0 1px 3px rgba(15, 39, 66, .12); }

.ps-filtros-l1 { display: flex; align-items: center; gap: 8px; }
    .ps-filtros-l1 .ps-seg { flex: 1; min-width: 0; }

.ps-btn-ajustes {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    background: #fff;
    color: var(--text-muted);
}
    .ps-btn-ajustes svg { width: 18px; height: 18px; }
    .ps-btn-ajustes:hover { color: var(--brand-navy); border-color: #c5d1de; }

.ps-selects { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* Contenedor del select: la flecha va como ::after (no como imagen de fondo). */
.ps-sel-wrap { position: relative; display: block; min-width: 0; }

    .ps-sel-wrap::after {
        content: "";
        position: absolute;
        right: 13px;
        top: 50%;
        width: 7px;
        height: 7px;
        margin-top: -5px;
        border-right: 1.6px solid #64748b;
        border-bottom: 1.6px solid #64748b;
        transform: rotate(45deg);
        pointer-events: none;
    }

/* Select de Plataforma (filtros, asignar, estado, prioridad, respuestas rapidas): misma altura, borde y flecha. */
.ps-select, .ps-ctl select, .ps-rapidas {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    min-width: 0;
    height: 34px;
    padding: 0 30px 0 11px;
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    background: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: #1f2b3a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}

    .ps-select:hover, .ps-ctl select:hover, .ps-rapidas:hover { border-color: #c5d1de; }
    .ps-select:focus, .ps-ctl select:focus, .ps-rapidas:focus { outline: none; border-color: var(--brand-accent); box-shadow: 0 0 0 3px rgba(61, 139, 219, .15); }

.ps-aviso-error { margin: 10px 14px 0; padding: 8px 12px; border-radius: 10px; background: #fdecec; border: 1px solid #f5c2c2; color: #9b1c1c; font-size: 13px; }

.ps-lista { flex: 1; min-height: 0; overflow-y: auto; }

.ps-vacio {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 48px 16px;
    color: var(--text-muted);
    font-size: 13.5px;
}

    .ps-vacio svg { width: 34px; height: 34px; color: #b6c2d1; }

.ps-fila {
    width: 100%;
    text-align: left;
    border: 0;
    border-bottom: 1px solid #eef2f6;
    border-left: 3px solid transparent;
    background: #fff;
    padding: 12px 16px 12px 13px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

    .ps-fila:hover { background: #f8fafc; }
    .ps-fila.sel { background: #f2f8fe; border-left-color: var(--brand-accent); }

.ps-fila-l1, .ps-fila-l3 { display: flex; align-items: center; gap: 8px; min-width: 0; }
    .ps-fila-l1 .ps-sla, .ps-fila-l3 .soporte-pill { margin-left: auto; flex: none; }
.ps-fila-l3 { font-size: 12.5px; color: var(--text-muted); }
.ps-fila .soporte-punto { margin-top: 0; }
.ps-quien { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

.ps-asunto {
    font-size: 14px;
    font-weight: 600;
    color: #1f2b3a;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ps-sla { font-size: 11.5px; font-weight: 600; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
    .ps-sla.sla-rojo { background: #fdecec; color: #b91c1c; }
    .ps-sla.sla-amarillo { background: #fff4d6; color: #a16207; }
    .ps-sla.sla-verde { background: #e7f5ea; color: #15803d; }
    .ps-sla.sla-neutro { background: #eef2f6; color: #64748b; }

.ps-vacio-detalle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(15, 39, 66, .04);
    color: var(--text-muted);
    font-size: 14px;
}

    .ps-vacio-detalle svg { width: 40px; height: 40px; color: #b6c2d1; }

.ps-detalle {
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(15, 39, 66, .04);
    overflow: hidden;
}

.ps-det-cab { display: flex; flex-direction: column; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border-soft); }
.ps-det-tit { flex: 1; min-width: 0; }
    .ps-det-tit h2 { font-family: 'Outfit', 'Inter', sans-serif; font-size: 19px; font-weight: 600; margin: 4px 0 0; color: var(--brand-navy); line-height: 1.25; }
.ps-det-meta { font-size: 12.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.ps-det-acc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 10px; max-width: 800px; }
.ps-det-linea { display: flex; align-items: center; gap: 10px; min-width: 0; }
    .ps-det-linea .ps-btn-contexto { margin-left: auto; height: 30px; }

/* Boton Contexto: solo en pantallas angostas (ver media query). */
.ps-btn-contexto {
    display: none;
    height: 34px;
    padding: 0 14px;
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-navy);
    cursor: pointer;
}

    .ps-btn-contexto.sel { background: var(--brand-navy); border-color: var(--brand-navy); color: #fff; }

.ps-ctl { display: flex; flex-direction: column; gap: 4px; margin: 0; min-width: 0; }
    .ps-ctl span { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; }

.ps-det-cuerpo { position: relative; flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 330px); }

.ps-conv { min-height: 0; display: flex; flex-direction: column; border-right: 1px solid var(--border-soft); }

.ps-compositor { border-top: 1px solid var(--border-soft); padding: 10px 14px 12px; background: #fff; }
    .ps-compositor.interna { background: #fffcf0; }
    .ps-compositor textarea { resize: vertical; min-height: 64px; }
    .ps-compositor.interna textarea { border-color: #e9b949; background: #fffef7; }

.ps-modos { display: flex; align-items: center; gap: 4px; margin-bottom: 10px; flex-wrap: wrap; }
    .ps-modos > button { border: 0; background: none; border-radius: 8px; padding: 6px 12px; font-size: 13px; font-weight: 600; color: #475569; white-space: nowrap; }
    .ps-modos > button:hover { color: var(--brand-navy); }
    .ps-modos > button.sel { background: var(--brand-navy); color: #fff; }

.ps-compositor.interna .ps-modos > button.sel { background: #e9b949; color: #3d2a00; }

.ps-modos { flex-wrap: nowrap; }
.ps-modos > .ps-rapidas-wrap { margin-left: auto; flex: 0 1 190px; min-width: 130px; }
.ps-rapidas { height: 32px; }

.ps-modos > .ps-gestionar { width: 32px; height: 32px; padding: 0; display: grid; place-items: center; color: var(--text-muted); border: 1px solid var(--border-soft); border-radius: 10px; background: #fff; }
.ps-gestionar svg { width: 15px; height: 15px; }

.ps-comp-pie { margin-top: 10px; }
.ps-tildes { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

.ps-tilde { margin: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: #3d4a5c; }

.ps-enviar { margin-left: auto; background: var(--brand-navy); border-color: var(--brand-navy); border-radius: 10px; padding: 7px 22px; }

.ps-contexto { overflow-y: auto; padding: 14px 16px 18px; font-size: 13px; }
    .ps-contexto h3 { font-family: 'Outfit', 'Inter', sans-serif; font-size: 16px; font-weight: 600; color: var(--brand-navy); margin: 0 0 6px; }
    .ps-contexto h4 { font-family: 'Inter Tight', 'Inter', sans-serif; font-size: 13px; font-weight: 700; color: #1f2b3a; margin: 14px 0 6px; }

.ps-dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 0; }
    .ps-dl dt { font-weight: 400; color: var(--text-muted); }
    .ps-dl dd { margin: 0; text-align: right; font-weight: 600; color: #1f2b3a; overflow-wrap: anywhere; }

.mono { font-family: 'Space Mono', monospace; font-size: 12px; }

.ps-errores { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 5px; }
    .ps-errores li { display: flex; align-items: center; gap: 6px; }

.ps-err-txt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; }
.ps-err-st { font-size: 11px; font-weight: 700; color: #b91c1c; background: #fdecec; border-radius: 999px; padding: 1px 7px; }

.ps-ref {
    border: 1px solid var(--border-soft);
    background: #fff;
    border-radius: 6px;
    padding: 1px 6px;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: var(--brand-accent);
}

    .ps-ref.sel, .ps-ref:hover { border-color: var(--brand-accent); background: #f2f8fe; }

.ps-codigo {
    background: var(--brand-navy);
    color: #dbe7f5;
    border-radius: var(--radius-md);
    padding: 10px 12px;
    font-family: 'Space Mono', monospace;
    font-size: 11.5px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    margin: 0;
}

.ps-rutas { margin: 0; padding-left: 18px; color: #3d4a5c; }

.ps-atajos { display: flex; flex-wrap: wrap; gap: 6px; }
    .ps-atajos button { border: 0; background: #e8f1fb; color: #1d4ed8; border-radius: 999px; padding: 3px 11px; font-size: 12.5px; font-weight: 600; }
    .ps-atajos button:hover { background: #dbeafe; }

.ps-modal-chico { max-width: 520px; }
.ps-numero { max-width: 200px; font-family: 'Space Mono', monospace; }

/* Ajustes: canales de aviso y ultimos avisos por mail. */
.ps-modal-ajustes { max-width: 640px; }
.ps-aj-tit { margin: 4px 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--text-muted); }
    .ps-aj-tit:not(:first-child) { margin-top: 22px; }
.ps-canales { border: 1px solid var(--border-soft); border-radius: var(--radius-md); background: #fff; }
.ps-canal { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
    .ps-canal + .ps-canal, .ps-casillas + .ps-canal { border-top: 1px solid var(--border-soft); }
    .ps-canal.off .ps-canal-txt b, .ps-canal.off .ps-canal-ic { opacity: .55; }
.ps-canal-ic { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; background: #eef2f6; color: var(--brand-navy); display: inline-flex; align-items: center; justify-content: center; }
    .ps-canal-ic svg { width: 18px; height: 18px; }
.ps-canal-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
    .ps-canal-txt b { font-size: 14px; color: var(--brand-navy); }
    .ps-canal-txt span { font-size: 12.5px; color: var(--text-muted); }
.ps-canal-fijo { font-size: 12px; font-weight: 600; color: #15803d; background: #e7f5ea; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.ps-canal-sw { margin: 0; padding-left: 2.5em; min-height: 0; }
    .ps-canal-sw .form-check-input { width: 2.4em; height: 1.3em; cursor: pointer; }
    .ps-canal-sw .form-check-input:checked { background-color: var(--brand-navy); border-color: var(--brand-navy); }
    .ps-canal-sw .form-check-input:disabled { cursor: default; }
.ps-casillas { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0 14px 12px 60px; }
    .ps-casillas .soporte-adj-chip { height: 34px; padding: 0 12px; font-size: 13px; }
    .ps-casilla-nueva .form-control, .ps-casilla-nueva .btn { height: 34px; padding-top: 0; padding-bottom: 0; font-size: 13px; border-radius: 10px; }
    .ps-casilla-nueva .btn { padding-left: 14px; padding-right: 14px; }
.ps-casilla-nueva { display: flex; gap: 6px; flex: 1 1 260px; min-width: 0; }
    .ps-casilla-nueva .form-control { min-width: 0; }
.ps-aj-vacio { font-size: 13px; color: var(--text-muted); }
.ps-avisos { display: flex; flex-direction: column; gap: 6px; }
.ps-aviso { border: 1px solid var(--border-soft); border-radius: var(--radius-md); background: #fff; padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ps-aviso-l1 { display: flex; align-items: center; gap: 8px; }
    .ps-aviso-l1 .soporte-pill { margin-left: auto; }
.ps-aviso-tipo { font-size: 12.5px; color: #3d4a5c; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-aviso-para { font-size: 12px; color: var(--text-muted); overflow-wrap: anywhere; }
.ps-aviso-err { font-size: 12px; color: #b91c1c; overflow-wrap: anywhere; }
.soporte-pill.ps-aviso-fallido { background: #fdecec; color: #b91c1c; }
@media (max-width: 560px) {
    .ps-casillas { padding-left: 14px; }
}

.ps-modal-rapidas { max-width: 820px; }
.ps-rapidas-cuerpo { display: grid; grid-template-columns: 260px 1fr; gap: 16px; align-items: start; }
    .ps-rapidas-cuerpo .soporte-alerta { grid-column: 1 / -1; }
.ps-rapidas-lista { display: flex; flex-direction: column; gap: 6px; }

.ps-rapida { text-align: left; border: 1px solid var(--border-soft); background: #fff; border-radius: var(--radius-md); padding: 7px 10px; display: flex; flex-direction: column; }
    .ps-rapida b { font-size: 13px; color: var(--brand-navy); }
    .ps-rapida span { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .ps-rapida.sel { border-color: var(--brand-accent); background: #f2f8fe; }
    .ps-rapida.off { opacity: .55; }

.ps-rapidas-form .soporte-lbl:first-child { margin-top: 0; }
.ps-rapidas-fila { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
    .ps-rapidas-fila .soporte-lbl { margin: 0; }
.ps-orden { width: 90px; }

.ps-menu-n {
    margin-left: auto;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--brand-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}

    .ps-menu-n.rojo { background: #dc2626; }

/* Hasta 1440 px el contexto se abre con el boton Contexto, como panel sobre la conversacion. */
@media (max-width: 1440px) {
    .ps-det-cuerpo { grid-template-columns: minmax(0, 1fr); }
    .ps-conv { border-right: 0; }
    .ps-contexto { display: none; }
    .ps-btn-contexto { display: inline-block; }
    .con-contexto .ps-contexto {
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(340px, 92%);
        background: #fff;
        border-left: 1px solid var(--border-soft);
        box-shadow: -12px 0 30px rgba(15, 39, 66, .12);
        z-index: 5;
    }
}

@media (max-width: 1180px) {
    .ps-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ps-grilla { grid-template-columns: 360px minmax(0, 1fr); }
}

@media (max-width: 900px) {
    .ps-pagina { height: auto; }
    .ps-grilla { grid-template-columns: minmax(0, 1fr); }
    .ps-bandeja { max-height: 460px; }
    .ps-detalle { min-height: 680px; }
}

/* Resolver sin respuesta: al lado de los selects, misma altura y borde. Hasta 1440 px va en la linea del titulo
   (junto a Contexto) y los selects quedan de a tres; hasta 640 px, de a dos. */
.ps-resolver-angosto { display: none; }

@media (max-width: 1440px) {
    .ps-det-acc { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 680px; }
    .ps-resolver-ancho { display: none; }
    .ps-resolver-angosto { display: inline-flex; margin-left: auto; }
        .ps-resolver-angosto .ps-btn-resolver { height: 30px; }
    .ps-det-linea .ps-btn-contexto { margin-left: 0; }
}

@media (max-width: 640px) {
    .ps-det-acc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.ps-btn-resolver {
    height: 34px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #b7e0c6;
    border-radius: 10px;
    background: #ecf8f0;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: #17703d;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

    .ps-btn-resolver svg { width: 15px; height: 15px; }
    .ps-btn-resolver:hover:not(:disabled) { background: #dff3e6; border-color: #8fcfa8; }
    .ps-btn-resolver:disabled { background: #fff; border-color: var(--border-soft); color: #9aa6b5; cursor: default; }

.ps-confirmar-txt { margin: 0 0 8px; font-size: 14px; color: #3d4a5c; }
.ps-confirmar-nota { font-size: 13px; color: var(--text-muted); margin-bottom: 0; }

/* Compositor: los adjuntos pendientes arriba y la fila adjuntar / captura / tildes / Enviar. */
    .ps-comp-pie .soporte-adjuntos.compacto { padding: 0 0 8px; }
    .ps-comp-pie .soporte-adj-acc { gap: 6px 16px; }
    .ps-comp-pie .soporte-adj-btn { padding: 0 4px; }
    .ps-comp-pie .soporte-adj-error { margin: 6px 0 0; }
.ps-compositor.soporte-zona-activa { outline: 2px dashed var(--brand-accent); outline-offset: -4px; }

/* ---------------------------------------------------------------- Pestañas Tickets / Ayuda */
.ps-tabs { display: flex; gap: 4px; flex: none; border-bottom: 1px solid var(--border-soft); }

    .ps-tabs a {
        padding: 8px 14px 10px;
        margin-bottom: -1px;
        border-bottom: 2px solid transparent;
        font-family: 'Outfit', 'Inter', sans-serif;
        font-size: 15px;
        font-weight: 600;
        color: var(--text-muted);
        text-decoration: none;
    }

        .ps-tabs a:hover { color: var(--brand-navy); }
        .ps-tabs a.sel { color: var(--brand-navy); border-bottom-color: var(--brand-navy); }

/* Convertir un ticket resuelto en un tema de la ayuda (linea del titulo del detalle). */
.ps-btn-articulo {
    margin-left: auto;
    height: 30px;
    padding: 0 12px;
    border: 1px solid #cfe0f3;
    border-radius: 10px;
    background: #f2f8fe;
    font-size: 12.5px;
    font-weight: 600;
    color: #1f5f9e;
    white-space: nowrap;
}

    .ps-btn-articulo:hover:not(:disabled) { border-color: var(--brand-accent); }

@media (max-width: 1440px) {
    .ps-btn-articulo + .ps-resolver-angosto { margin-left: 0; }
}

/* ---------------------------------------------------------------- Plataforma > Soporte > Ayuda */
.pa-grilla { flex: 1; min-height: 0; display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 16px; }

.pa-lista-cab { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--border-soft); }
.pa-lista-tit { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); margin-right: auto; }

.pa-btn {
    height: 30px;
    padding: 0 12px;
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    background: #fff;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--brand-navy);
    white-space: nowrap;
}

    .pa-btn:hover:not(:disabled) { border-color: #c5d1de; background: var(--surface); }
    .pa-btn:disabled { opacity: .45; }

.pa-btn-ic {
    position: relative;
    margin: 0;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    background: #fff;
    color: var(--text-muted);
    cursor: pointer;
}

    .pa-btn-ic svg { width: 15px; height: 15px; }
    .pa-btn-ic:hover { color: var(--brand-navy); border-color: #c5d1de; }
    .pa-btn-ic input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }

.pa-aviso { margin: 10px 14px 0; padding: 8px 12px; border-radius: 10px; background: #ecf8f0; border: 1px solid #b7e0c6; color: #17703d; font-size: 13px; }

.pa-fila-tit { font-size: 14px; font-weight: 600; color: var(--brand-navy); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pa-fila-ruta { font-family: 'Space Mono', monospace; font-size: 11.5px; color: #7a8696; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pa-fila-l3 { gap: 10px; }
.pa-sin-ancla { color: #b91c1c; font-weight: 600; }
.pa-votos { margin-left: auto; }

.soporte-pill.pa-pill-pub { background: #ecf8f0; color: #17703d; }
.soporte-pill.pa-pill-bor { background: #fff4e0; color: #9a5b00; }
.soporte-pill.pa-pill-nada { background: #eef2f6; color: #64748b; }

.pa-editor {
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(15, 39, 66, .04);
    overflow: hidden;
}

.pa-ed-cab { display: flex; align-items: flex-end; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--border-soft); }
.pa-ed-tit { flex: 1; min-width: 0; }

.pa-titulo {
    width: 100%;
    margin-top: 4px;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 2px 6px;
    margin-left: -7px;
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 19px;
    font-weight: 600;
    color: var(--brand-navy);
}

    .pa-titulo:hover { border-color: var(--border-soft); }
    .pa-titulo:focus { outline: none; border-color: var(--brand-accent); box-shadow: 0 0 0 3px rgba(61, 139, 219, .15); }

.pa-ed-acc { display: flex; gap: 8px; }
    .pa-ed-acc .btn { border-radius: 10px; padding: 6px 16px; font-size: 13.5px; font-weight: 600; }
    .pa-publicar { background: var(--brand-navy); border-color: var(--brand-navy); }

.pa-alerta { margin: 10px 20px 0; }

.pa-ed-cuerpo { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 440px; }
.pa-col { min-height: 0; overflow-y: auto; padding: 14px 20px 20px; display: flex; flex-direction: column; gap: 14px; }

.pa-meta { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.pa-check { margin: 0 0 8px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: #3d4a5c; white-space: nowrap; }

.pa-input {
    width: 100%;
    height: 34px;
    padding: 0 11px;
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    background: #fff;
    font-size: 13px;
    color: #1f2b3a;
}

    .pa-input:focus, .pa-md:focus { outline: none; border-color: var(--brand-accent); box-shadow: 0 0 0 3px rgba(61, 139, 219, .15); }

.pa-md-ctl { flex: none; }

.pa-md {
    width: 100%;
    min-height: 300px;
    padding: 10px 12px;
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    font-family: 'Space Mono', monospace !important;
    font-size: 12.5px;
    line-height: 1.55;
    color: #1f2b3a;
    resize: vertical;
}

.pa-pasos { display: flex; flex-direction: column; gap: 8px; }
.pa-pasos-cab { display: flex; align-items: center; gap: 8px; }
.pa-pasos-tit { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); }
.pa-pasos-n { font-size: 12.5px; color: #7a8696; margin-right: auto; }

.pa-paso {
    display: grid;
    grid-template-columns: 16px 24px minmax(0, 1fr) 26px;
    gap: 8px;
    align-items: start;
    padding: 10px;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    background: #fbfcfe;
}

    .pa-paso.roto { border-color: #f5c2c2; background: #fff8f8; }
    .pa-paso.arrastrando { opacity: .5; }

.pa-paso-asa { cursor: grab; color: #a3aebb; font-size: 13px; letter-spacing: -2px; padding-top: 7px; user-select: none; }

.pa-paso-n {
    width: 24px;
    height: 24px;
    margin-top: 5px;
    border-radius: 999px;
    background: var(--brand-navy);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 700;
}

.pa-paso-campos { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pa-paso-txt { height: auto; padding: 7px 11px; resize: vertical; }
.pa-paso-aviso { font-size: 12px; color: #b91c1c; }
.pa-paso-quitar { width: 26px; height: 26px; border: 0; border-radius: 999px; background: none; color: #7a8696; font-size: 11px; }
    .pa-paso-quitar:hover { background: #fdecec; color: #b91c1c; }

.pa-vista { background: var(--surface); border-left: 1px solid var(--border-soft); }
.pa-vista-tit { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); }

.pa-vista-panel {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(15, 39, 66, .06);
}

    .pa-vista-panel .ayuda-cuerpo { overflow: visible; padding: 16px 18px 18px; }
    .pa-vista-panel .ayuda-recorrido { cursor: default; }

.pa-prueba-ancla { margin-bottom: 12px; padding: 8px 12px; border-radius: 10px; background: #f2f8fe; color: #2c5a8a; font-size: 13px; }
    .pa-prueba-ancla.roto { background: #fdecec; color: #9b1c1c; }

.pa-prueba-tarjeta { position: static; width: auto; box-shadow: none; border: 1px solid var(--border-soft); }
.pa-prueba-puntos { display: flex; gap: 5px; }
    .pa-prueba-puntos span { width: 7px; height: 7px; border-radius: 999px; background: #d3dbe5; }
    .pa-prueba-puntos span.on { width: 18px; background: var(--brand-navy); }

/* Hasta 1440 px: lista mas angosta y la vista previa debajo del editor (un solo scroll). */
@media (max-width: 1440px) {
    .pa-grilla { grid-template-columns: 300px minmax(0, 1fr); }
    .pa-ed-cuerpo { display: block; overflow-y: auto; }
    .pa-col { overflow: visible; }
    .pa-vista { border-left: 0; border-top: 1px solid var(--border-soft); }
    .pa-vista-panel { max-width: 440px; }
}

@media (max-width: 1180px) {
    .pa-meta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* ---------------------------------------------------------------- Volt Soporte (fase 2b) en Plataforma */
.pa-btn-volt { display: inline-flex; align-items: center; gap: 5px; color: #4a35a8; border-color: #ddd2f7; background: #f7f3ff; }
    .pa-btn-volt svg { width: 13px; height: 13px; }
    .pa-btn-volt:hover:not(:disabled) { border-color: #6d4fd8; background: #f1ebff; }

.pa-modal-volt { max-width: 600px; }
.pa-volt-ic { background: #6d4fd8; color: #fff; }
    .pa-volt-ic svg { width: 18px; height: 18px; }

.pa-seg-3 { grid-template-columns: repeat(3, 1fr); margin-bottom: 14px; }
.pa-volt-fila { margin-bottom: 14px; }
.pa-volt-limite { max-width: 220px; }

.pa-volt-exc { display: grid; grid-template-columns: 120px minmax(0, 1fr) 26px; gap: 8px; align-items: center; margin-bottom: 6px; }
    .pa-volt-exc b { font-size: 13.5px; color: var(--brand-navy); }
.pa-volt-nueva { grid-template-columns: minmax(0, 1fr) auto; margin-bottom: 14px; }

.pa-volt-prueba { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .pa-volt-prueba .pa-btn { justify-self: end; }

.pa-volt-resp { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #f7f3ff; border: 1px solid #e3d8fb; }
.pa-volt-sin { color: #7a4b00; background: #fff7e6; border-color: #f3d9a4; font-size: 13px; }
.pa-volt-cita { border: 1px solid #ddd2f7; border-radius: 999px; background: #fff; padding: 2px 10px; font-weight: 600; color: #4a35a8; }
.pa-aviso-warn { margin: 0 0 12px; background: #fff7e6; border-color: #f3d9a4; color: #7a4b00; }

/* Borrador de Volt sobre el compositor del ticket. */
.ps-volt-borrador {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding: 6px 8px 6px 10px;
    border: 1px solid #e3d8fb;
    border-radius: 10px;
    background: #f7f3ff;
    font-size: 13px;
    color: #3b2a7a;
}

    .ps-volt-borrador button { margin-left: auto; height: 28px; padding: 0 12px; border: 0; border-radius: 999px; background: #6d4fd8; color: #fff; font-size: 12.5px; font-weight: 600; }

.ps-volt-ic { width: 20px; height: 20px; border-radius: 6px; background: #6d4fd8; color: #fff; display: grid; place-items: center; flex: none; }
    .ps-volt-ic svg { width: 12px; height: 12px; }
