/*
 * «Flujo de procesos» (D119): the controls the right pane lends to its children (v11 F6). The forms of «Propiedades», a
 * handover, «Eliminar» and the other end are five components that share these controls (.pf-e-*), the bar and scrolling
 * space of each tab (.pf-ho-*) and the foot of the pane (.pf-pane-foot). Scoped CSS cannot share them without ::deep, so
 * they live here, under .pf-pane, and are loaded after the scoped bundle. Each component keeps its own layout in its
 * .razor.css.
 */

/* The bar and the scrolling space of each tab and of a handover (their components draw them). */
.pf-pane .pf-ho-bar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-alt);
}

.pf-pane .pf-ho-bar.is-detail {
    flex-direction: row;
    align-items: center;
    padding: 8px 12px 8px 10px;
    background: var(--bg);
}

/* v13 N15: the pane scrolls as a whole (its tabs stick to the top), so the space of each tab grows with what it holds. */
.pf-pane .pf-ho-scroll {
    flex: 1 0 auto;
    padding: 14px 16px 28px;
    font-size: 14px;
}

.pf-pane .pf-ho-scroll.is-form {
    padding-top: 10px;
}

.pf-pane .pf-ho-scroll {
    position: relative;
}

/* The foot of the pane: «Editar» in «Ver», «Eliminar proceso», «Eliminar entrega» and the bar of «Seleccionar». */
.pf-pane .pf-pane-foot {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-top: 1px solid var(--border);
    background: var(--bg-alt);
}

.pf-pane .pf-pane-foot.is-bulk {
    border-top-color: var(--navy-line);
    background: var(--navy-soft);
}

.pf-pane .pf-e-grow {
    flex: 1;
}

/* ─── «Editar»: the form controls of «Propiedades», a handover and their questions (the prototype's edit.css) ─── */
.pf-pane .pf-eform {
    max-width: 760px;
    padding: 0 4px 24px;
    font-size: 14px;
}

.pf-pane .pf-e-empty {
    margin: 0;
    padding: 18px 4px;
    color: var(--muted);
}

.pf-pane .pf-e-solo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 0;
}

.pf-pane .pf-e-note {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 0 0 4px;
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--bg-soft);
    color: var(--ink-2);
    font-size: 12.5px;
}

.pf-pane .pf-e-note .pf-i {
    flex: none;
    margin-top: 1px;
    color: var(--navy);
}

.pf-pane .pf-e-fld {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.pf-pane .pf-e-lbl {
    color: var(--ink-2);
    font-size: 12.5px;
    font-weight: 600;
}

.pf-pane .pf-e-sub {
    color: var(--muted);
    font-size: 12px;
}

.pf-pane .pf-e-sub.is-err {
    color: var(--st-danger-text);
}

.pf-pane .pf-e-sub.is-err:empty {
    display: none;
}

.pf-pane .pf-e-ro {
    display: block;
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 8px;
    background: var(--bg-alt);
    color: var(--ink);
    font-size: 13px;
}

.pf-pane .pf-e-hint {
    margin: 0;
    color: var(--muted);
    font-size: 12.5px;
}

.pf-pane .pf-e-hint.is-strong {
    color: var(--ink-2);
}

.pf-pane .pf-e-hint.is-warn {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    color: var(--warn-ink);
}

.pf-pane .pf-e-hint.is-warn .pf-i {
    flex: none;
    margin-top: 2px;
}

.pf-pane .pf-e-row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pf-pane .pf-e-row2.is-tight {
    grid-template-columns: auto auto;
    justify-content: start;
    gap: 8px 14px;
}

.pf-pane .pf-e-input,
.pf-pane .pf-e-select,
.pf-pane .pf-e-combo-btn {
    width: 100%;
    height: 34px;
    min-width: 0;
    padding: 0 10px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    background: var(--bg);
    color: var(--ink);
    font: inherit;
    font-size: 13px;
}

.pf-pane .pf-e-textarea {
    width: 100%;
    min-height: 52px;
    padding: 7px 10px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    background: var(--bg);
    color: var(--ink);
    font: inherit;
    font-size: 13px;
    resize: vertical;
}

.pf-pane .pf-e-input:focus,
.pf-pane .pf-e-select:focus,
.pf-pane .pf-e-textarea:focus,
.pf-pane .pf-e-combo-btn:focus-visible {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(216, 27, 132, 0.18);
}

.pf-pane .pf-e-input.is-bad,
.pf-pane .pf-e-select.is-bad,
.pf-e-field.is-bad {
    border-color: #e11d48;
    box-shadow: 0 0 0 2px rgba(225, 29, 72, 0.14);
}

.pf-pane .pf-e-input:disabled,
.pf-pane .pf-e-select:disabled,
.pf-pane .pf-e-textarea:disabled {
    background: var(--bg-alt);
    color: var(--ink-2);
}

.pf-pane .pf-e-seq-move {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.pf-pane .pf-e-input.is-seq {
    width: 84px;
    height: 36px;
}

.pf-pane .pf-e-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.pf-pane .pf-e-in-sum {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

/* Buttons: magenta is for saving; every «Eliminar» goes in red (is-danger, is-danger-solid). */
.pf-pane .pf-e-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 34px;
    padding: 0 13px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    background: var(--bg);
    color: var(--ink);
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.pf-pane .pf-e-btn:hover:not(:disabled) {
    border-color: var(--faint);
    background: var(--bg-alt);
}

.pf-pane .pf-e-btn:disabled {
    color: var(--faint);
    cursor: default;
}

.pf-pane .pf-e-btn.is-on {
    border-color: var(--sel);
    background: var(--sel-soft);
    color: var(--sel-ink);
}

.pf-pane .pf-e-btn.is-ghost {
    border-color: transparent;
    background: transparent;
}

.pf-pane .pf-e-btn.is-ghost:hover:not(:disabled) {
    background: var(--bg-soft);
}

.pf-pane .pf-e-btn.is-quiet {
    color: var(--navy);
}

.pf-pane .pf-e-btn.is-quiet:hover:not(:disabled) {
    border-color: var(--navy);
    background: var(--navy-soft);
}

.pf-pane .pf-e-btn.is-navy {
    border-color: var(--navy);
    background: var(--navy);
    color: var(--on-navy);
}

.pf-pane .pf-e-btn.is-navy:hover:not(:disabled) {
    background: color-mix(in srgb, var(--navy) 85%, var(--st-text-strong));
}

.pf-pane .pf-e-btn.is-navy:disabled {
    opacity: 0.45;
    color: var(--on-navy);
}

.pf-pane .pf-e-btn.is-danger {
    border-color: var(--st-danger-border);
    color: var(--st-danger-fg);
}

.pf-pane .pf-e-btn.is-danger:hover:not(:disabled) {
    border-color: var(--st-danger-fg);
    background: var(--st-danger-bg);
}

.pf-pane .pf-e-btn.is-danger-solid {
    border-color: #dc2626;
    background: #dc2626;
    color: #ffffff;
}

.pf-pane .pf-e-btn.is-danger-solid:hover:not(:disabled) {
    border-color: #b91c1c;
    background: #b91c1c;
}

.pf-pane .pf-e-btn.is-danger-solid:disabled {
    opacity: 0.45;
}

.pf-pane .pf-e-btn.is-pri {
    border-color: var(--accent);
    background: var(--accent);
    color: #ffffff;
}

.pf-pane .pf-e-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* A switch (sw). */
.pf-pane .pf-e-switch {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    cursor: pointer;
}

.pf-pane .pf-e-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pf-pane .pf-e-trk {
    position: relative;
    flex: none;
    width: 32px;
    height: 18px;
    margin-top: 1px;
    border-radius: 999px;
    background: var(--border-strong);
    transition: background-color 0.15s ease;
}

.pf-pane .pf-e-trk::after {
    content: "";
    position: absolute;
    left: 2px;
    top: 2px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.3);
    transition: transform 0.15s ease;
}

.pf-pane .pf-e-switch input:checked + .pf-e-trk {
    background: var(--accent);
}

.pf-pane .pf-e-switch input:checked + .pf-e-trk::after {
    transform: translateX(14px);
}

.pf-pane .pf-e-switch input:focus-visible + .pf-e-trk {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.pf-pane .pf-e-switch input:disabled + .pf-e-trk {
    opacity: 0.5;
}

.pf-pane .pf-e-tx {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.pf-pane .pf-e-tx b {
    font-size: 13px;
    font-weight: 600;
}

.pf-pane .pf-e-tx small {
    color: var(--muted);
    font-size: 12px;
}

/* A number with − and + (numIn). */
.pf-pane .pf-e-step-host {
    display: inline-flex;
    align-items: center;
}

.pf-pane .pf-e-stepper {
    display: inline-flex;
    align-items: center;
    width: max-content;
    height: 34px;
    overflow: hidden;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    background: var(--bg);
}

.pf-pane .pf-e-stepper button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink-2);
    cursor: pointer;
}

.pf-pane .pf-e-stepper button:hover:not(:disabled) {
    background: var(--bg-soft);
}

.pf-pane .pf-e-stepper button:disabled {
    color: var(--border-strong);
    cursor: default;
}

.pf-pane .pf-e-stepper input {
    width: 54px;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 13px;
    text-align: center;
}

.pf-pane .pf-e-unit {
    margin-left: 6px;
    color: var(--muted);
    font-size: 12.5px;
}

/* The colors of a process (swatches). */
.pf-pane .pf-e-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.pf-pane .pf-e-sw {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 2px solid var(--bg);
    border-radius: 6px;
    background: var(--c);
    box-shadow: 0 0 0 1px var(--border-strong);
    cursor: pointer;
}

.pf-pane .pf-e-sw[aria-checked="true"] {
    box-shadow: 0 0 0 2px var(--ink);
}

.pf-pane .pf-e-sw:disabled {
    cursor: default;
}

/* A choice in segments (Sin autorización | Por cargo | Por persona). */
.pf-pane .pf-e-seg {
    display: inline-flex;
    width: max-content;
    overflow: hidden;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    background: var(--bg);
}

.pf-pane .pf-e-seg button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 30px;
    padding: 0 10px;
    border: 0;
    border-right: 1px solid var(--border);
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.pf-pane .pf-e-seg button:last-child {
    border-right: 0;
}

.pf-pane .pf-e-seg button[aria-checked="true"],
.pf-pane .pf-e-seg button[aria-pressed="true"] {
    background: var(--sel-soft);
    color: var(--sel-ink);
}

.pf-pane .pf-e-seg button:disabled {
    color: var(--faint);
    cursor: default;
}

.pf-pane .pf-e-seg button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

/* How the OT can pass and who decides (kind-grid, mode-grid). */
.pf-pane .pf-e-kinds,
.pf-pane .pf-e-modes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.pf-pane .pf-e-kind {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    min-width: 0;
    padding: 8px 9px;
    border: 1px solid var(--border-strong);
    border-radius: 9px;
    background: var(--bg);
    color: var(--ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.pf-pane .pf-e-kind:hover:not(:disabled) {
    border-color: var(--tc);
}

.pf-pane .pf-e-kind b {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--tci);
    font-size: 12.5px;
}

.pf-pane .pf-e-kind small {
    color: var(--ink-2);
    font-size: 12px;
    line-height: 1.35;
}

.pf-pane .pf-e-kind[aria-checked="true"] {
    border-color: var(--tc);
    background: var(--tcs);
    box-shadow: inset 0 0 0 1px var(--tc);
}

.pf-pane .pf-e-kind:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.pf-pane .pf-e-kind.is-mode {
    --tc: var(--navy);
    --tcs: var(--navy-soft);
    --tci: var(--navy);
}

.pf-pane .pf-e-kind:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.pf-pane .pf-e-effect {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 12.5px;
}

.pf-pane .pf-e-effect.is-good {
    background: var(--st-info-bg);
    color: var(--info-ink);
}

.pf-pane .pf-e-effect.is-warning {
    background: var(--warn-soft);
    color: var(--warn-ink);
}

.pf-pane .pf-e-effect.is-same {
    background: var(--bg-soft);
    color: var(--muted);
}

.pf-pane .pf-e-effect-ln {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.pf-pane .pf-e-effect-ln .pf-i {
    flex: none;
    margin-top: 2px;
}

/* The reasons: each with its ×, and a field to add one with the workshop's as suggestions. */
.pf-pane .pf-e-reasons {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.pf-pane .pf-e-reason {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    height: 26px;
    padding: 0 4px 0 9px;
    border-radius: 999px;
    background: var(--bg-soft);
    color: var(--ink-2);
    font-size: 12.5px;
    font-weight: 600;
}

.pf-pane .pf-e-reason button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.pf-pane .pf-e-reason button:hover:not(:disabled) {
    background: var(--border-strong);
    color: var(--ink);
}

.pf-pane .pf-e-add {
    display: flex;
    gap: 6px;
}

.pf-pane .pf-e-add .pf-e-input {
    flex: 1;
}

/* «Pendiente de revisar» (D119). */
.pf-pane .pf-e-pend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
}

.pf-pane .pf-e-pend-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--info-soft);
    color: var(--info-ink);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

/* The list of the other end (combo). */
.pf-pane .pf-e-combo {
    position: relative;
}

.pf-pane .pf-e-combo-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    cursor: pointer;
}

.pf-pane .pf-e-combo-btn:disabled {
    background: var(--bg-alt);
    cursor: default;
}

.pf-pane .pf-e-ph {
    color: var(--muted);
}

.pf-pane .pf-e-chev {
    margin-left: auto;
    color: var(--muted);
}

.pf-pane .pf-e-combo-pop {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    max-height: 320px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    box-shadow: var(--shadow-menu);
}

.pf-pane .pf-e-combo-search {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    margin: 8px;
    padding: 0 10px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    color: var(--muted);
}

.pf-pane .pf-e-combo-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 13px;
}

.pf-pane .pf-e-combo-list {
    flex: 1;
    overflow: auto;
    padding: 0 6px 6px;
}

.pf-pane .pf-e-combo-opt {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 5px 6px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}

.pf-pane .pf-e-combo-opt:hover:not(:disabled),
.pf-pane .pf-e-combo-opt.is-active {
    background: var(--bg-soft);
}

.pf-pane .pf-e-combo-opt:disabled {
    color: var(--faint);
    cursor: not-allowed;
}

.pf-pane .pf-e-opt-name {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pf-pane .pf-e-opt-name small {
    color: var(--muted);
    font-size: 12px;
}

.pf-pane .pf-e-why {
    margin-left: auto;
    color: var(--faint);
    font-size: 12px;
}

.pf-pane .pf-e-pick {
    align-self: flex-start;
}

/* «Eliminar proceso» (delConfirmHtml). */
.pf-pane .pf-e-confirm {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin: 12px 0 4px;
    padding: 12px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    background: var(--bg-alt);
}

.pf-pane .pf-e-confirm h4 {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: var(--navy);
    font-size: 13.5px;
}

.pf-pane .pf-e-confirm ul {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 0;
    padding-left: 18px;
    font-size: 12.5px;
}

.pf-pane .pf-e-acts {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.pf-pane .pf-e-alt {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 8px;
    background: var(--bg-soft);
    color: var(--ink-2);
    font-size: 12.5px;
}

.pf-pane .pf-e-alt .pf-e-grow {
    min-width: 160px;
}

.pf-pane .pf-e-rcards {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pf-pane .pf-e-rc {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--border-strong);
    border-radius: 9px;
    background: var(--bg);
    cursor: pointer;
}

.pf-pane .pf-e-rc.is-on {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.pf-pane .pf-e-rc input {
    margin: 2px 0 0;
    accent-color: var(--accent);
}

.pf-pane .pf-e-rc b {
    display: block;
    font-size: 13px;
    font-weight: 600;
}

.pf-pane .pf-e-rc small {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

/* v13 N5: the reason picked on level 3, edited at the top of the handover. */
.pf-pane .pf-e-reason-edit {
    gap: 10px;
}

.pf-pane .pf-e-reason-edit > .pf-e-btn:first-child {
    align-self: flex-start;
}

.pf-pane .pf-e-btn.is-quiet.is-danger {
    color: var(--st-danger-text);
    align-self: flex-start;
}

/* v13 N13: the panel of a new handover, over the properties: the search and the whole height for its list. */
.pf-pane:has(.pf-end-panel) {
    overflow: hidden;
}

.pf-pane .pf-end-panel {
    position: absolute;
    inset: 0;
    z-index: 25;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    background: var(--bg);
}

.pf-pane .pf-end-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.pf-pane .pf-end-panel-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 700;
}

.pf-pane .pf-end-panel-title small {
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 500;
}

.pf-pane .pf-end-panel-close {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.pf-pane .pf-end-panel-close:hover {
    background: var(--bg-soft);
    color: var(--ink);
}

.pf-pane .pf-end-panel .pf-e-combo-search {
    margin: 0;
}

.pf-pane .pf-end-panel .pf-e-combo-list {
    flex: 1 1 auto;
    min-height: 0;
    margin: 0 -6px;
    padding: 0 6px;
}

.pf-pane .pf-end-panel .pf-e-combo-opt {
    padding: 8px;
}

.pf-pane .pf-end-panel .pf-e-opt-name {
    flex: 1;
}

.pf-pane .pf-end-panel .pf-e-pick {
    align-self: flex-start;
}

/* v13 N27: the process selector of the flow screen (ProcessFlowProcessSelect): a field like the others that shows the chosen
   process as on its card and opens the side picker of processes. */
.pf-e-field {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    height: 34px;
    min-width: 0;
    padding: 0 10px 0 37px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    background: var(--bg);
    color: var(--ink);
    font: inherit;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}

.pf-e-field.is-empty {
    padding-left: 10px;
}

.pf-e-field:hover:not(:disabled) {
    border-color: var(--accent, var(--border-strong));
}

.pf-e-field:focus-visible {
    outline: 2px solid var(--accent, #2563eb);
    outline-offset: 1px;
}

.pf-e-field:disabled {
    cursor: default;
    opacity: .6;
}

.pf-e-field-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pf-e-field-text.is-ph {
    color: var(--muted);
}

.pf-e-field .pf-e-field-chev {
    flex: none;
    color: var(--muted);
}

.pf-e-field .pf-e-pick-ico {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 6px;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.pf-e-field .pf-e-pick-ico .pf-pmark.is-small {
    margin: 0;
}

.pf-e-field .pf-e-pick-ico .pf-pmark .pf-tile.is-badge {
    top: -8px;
    left: -9px;
}

.pf-e-field.is-compact {
    height: 30px;
    padding-left: 33px;
    font-size: 12.5px;
}

.pf-e-field.is-compact.is-empty {
    padding-left: 8px;
}

.pf-e-field.is-compact .pf-e-pick-ico .pf-pmark.is-small {
    width: 22px;
    height: 22px;
}

.pf-e-field.is-compact .pf-e-pick-ico .pf-pmark .pf-tile.is-badge {
    top: -6px;
    left: -8px;
}

.pf-e-field.pf-rs-field {
    width: auto;
    min-width: 200px;
    max-width: 100%;
    height: 28px;
}

/* The cards of the side picker sit straight in its grid. */
.pf-picker-opt {
    display: contents;
}

/* v13 N36: the handover open is a sheet over its list (ProcessFlowProcessPane .is-drill): a lighter surface with the color of
   its kind on top, «← Atrás» and what it is; its space follows below with the same surface. */
.pf-pane.is-drill .pf-ho-bar.is-sheet {
    position: sticky;
    top: 0;
    z-index: 5;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    margin: 0 8px;
    padding: 8px 12px 10px 10px;
    border: 1px solid var(--border);
    border-top: 3px solid var(--tc, var(--line));
    border-bottom-color: var(--border);
    border-radius: 12px 12px 0 0;
    background: var(--bg);
}

.pf-pane.is-drill .pf-ho-bar.is-sheet[data-kind="sigue"] {
    border-top-color: var(--line);
}

.pf-pane .pf-sheet-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pf-pane .pf-sheet-row .pf-back {
    border: 1px solid var(--border-strong);
    background: var(--bg-alt);
    color: var(--ink);
}

.pf-pane .pf-sheet-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 4px;
}

.pf-pane .pf-sheet-title small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.pf-pane .pf-sheet-name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-size: 15px;
}

.pf-pane.is-drill .pf-ho-scroll {
    margin: 0 8px;
    border: 1px solid var(--border);
    border-top: 0;
    background: var(--bg);
}
