/* Checklist cierre formulación 2027 — GUI premium light (Gemarsis / CIT) */
:root {
    --chk-ink: #0f172a;
    --chk-muted: #64748b;
    --chk-line: rgba(15, 23, 42, 0.08);
    --chk-soft: #f8fafc;
    --chk-accent: #1d4ed8;
    --chk-accent-soft: #eff6ff;
    --chk-ok: #0f766e;
    --chk-radius: 12px;
    --chk-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 14px rgba(15, 23, 42, 0.04);
    --chk-focus: 0 0 0 3px rgba(37, 99, 235, 0.22);
}

* { box-sizing: border-box; }

.chk-page-body {
    margin: 0;
    background: linear-gradient(180deg, #eef2f8 0%, #f4f6fa 48%, #f1f5f9 100%);
    color: var(--chk-ink);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.chk-page {
    max-width: min(1480px, 100%);
    margin: 0 auto;
    padding: 14px 16px 64px;
}

.chk-masthead {
    background: linear-gradient(135deg, #0f2a5c 0%, #1d4ed8 55%, #2563eb 100%);
    color: #fff;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 8px 28px rgba(29, 78, 216, 0.22);
}

.chk-masthead h1 {
    margin: 0;
    font-family: 'Outfit', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.28rem;
    letter-spacing: -0.02em;
}

.chk-masthead .sub {
    margin: 6px 0 0;
    opacity: 0.92;
    font-size: 0.84rem;
    line-height: 1.4;
    max-width: 52rem;
}

.chk-cp-banner {
    margin: 8px 0 0;
    padding: 6px 10px;
    font-size: 0.88rem;
    line-height: 1.45;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    max-width: 52rem;
}

.chk-code {
    display: inline-block;
    margin-top: 8px;
    font-family: ui-monospace, Menlo, monospace;
    font-size: 0.72rem;
    background: rgba(255, 255, 255, 0.14);
    padding: 5px 12px;
    border-radius: 8px;
}

.chk-ficha {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.chk-ficha .item {
    background: #fff;
    padding: 8px 10px;
    border-radius: var(--chk-radius);
    border: 1px solid var(--chk-line);
    box-shadow: var(--chk-shadow);
}

.chk-ficha .k {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--chk-muted);
    font-weight: 700;
}

.chk-ficha .v {
    font-size: 0.86rem;
    font-weight: 600;
    margin-top: 4px;
}

.chk-ficha a {
    color: var(--chk-accent);
    text-decoration: none;
    font-weight: 600;
}

.chk-ficha a:hover { text-decoration: underline; }

.chk-card {
    margin-top: 20px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--chk-line);
    border-radius: var(--chk-radius);
    box-shadow: var(--chk-shadow);
}

.chk-card h2 {
    margin: 0 0 8px;
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
}

.chk-lead {
    color: #475569;
    font-size: 0.9rem;
    margin: 0 0 14px;
}

.chk-verif-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 640px) {
    .chk-verif-grid { grid-template-columns: 1fr; }
}

.chk-verif-grid label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--chk-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.chk-field,
.chk-readonly {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--chk-line);
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: inherit;
    background: #fff;
    color: var(--chk-ink);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.chk-readonly {
    background: var(--chk-soft);
    color: #334155;
}

.chk-field:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: var(--chk-focus);
}

#chkVerificationBlock {
    margin-top: 14px;
    padding: 12px 14px;
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    border-radius: 10px;
    font-weight: 600;
    color: #065f46;
}

.chk-toolbar-wrap {
    position: sticky;
    top: 0;
    z-index: 15;
    margin: 10px 0 12px;
    border-radius: var(--chk-radius);
    box-shadow: var(--chk-shadow);
}

.chk-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid var(--chk-line);
    border-radius: var(--chk-radius) var(--chk-radius) 0 0;
    border-bottom: none;
}

.chk-cierre-progress {
    padding: 8px 12px 10px;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    border: 1px solid var(--chk-line);
    border-top: none;
    border-radius: 0;
}

.chk-cierre-progress-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin-bottom: 8px;
}

.chk-cierre-progress-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--chk-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.chk-cierre-progress-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(100, 116, 139, 0.35);
    background: #fff;
    color: var(--chk-muted);
    font-size: 0.68rem;
    font-weight: 700;
    cursor: help;
    line-height: 1;
}

.chk-cierre-progress-help:hover {
    border-color: var(--chk-accent);
    color: var(--chk-accent);
}

.chk-cierre-progress-stats {
    flex: 1;
    min-width: 12rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--chk-ink);
}

.chk-cierre-progress-open {
    font-size: 0.78rem;
    font-weight: 700;
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    padding: 3px 10px;
    border-radius: 999px;
}

.chk-cierre-progress-track {
    height: 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.chk-cierre-progress-split {
    margin: 8px 0 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--chk-muted);
}

.chk-acta-snippet {
    margin: 0 0 14px;
    max-width: 52rem;
}

.chk-acta-snippet summary {
    cursor: pointer;
    font-weight: 600;
    color: #6d28d9;
    font-size: 0.88rem;
}

.chk-cierre-progress-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #059669 0%, #10b981 55%, #34d399 100%);
    transition: width 0.28s ease;
}

.chk-cierre-filters {
    padding: 12px 16px 14px;
    background: #fff;
    border: 1px solid var(--chk-line);
    border-top: 1px dashed rgba(15, 23, 42, 0.1);
    border-radius: 0 0 var(--chk-radius) var(--chk-radius);
}

.chk-chips-lead {
    margin: 0 0 10px;
    font-size: 0.82rem;
    color: #475569;
    font-weight: 500;
}

.chk-chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.chk-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: var(--chk-soft);
    color: #334155;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, color 0.15s;
    line-height: 1.2;
}

.chk-chip:hover {
    border-color: rgba(37, 99, 235, 0.35);
    background: var(--chk-accent-soft);
    color: #1e40af;
}

.chk-chip:focus-visible {
    outline: none;
    box-shadow: var(--chk-focus);
}

.chk-chip.is-active {
    border-color: #2563eb;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: #fff;
    box-shadow: 0 3px 12px rgba(37, 99, 235, 0.28);
}

.chk-chip.is-active:hover {
    color: #fff;
    border-color: #1d4ed8;
}

.chk-chip-sub {
    font-weight: 500;
    opacity: 0.88;
    font-size: 0.72rem;
}

.chk-chip-count {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.chk-table-wrap tbody tr.chk-row-hidden {
    display: none;
}

.chk-banner {
    flex: 1 1 100%;
    min-width: 0;
    font-size: 0.82rem;
    line-height: 1.35;
    color: #475569;
}

@media (min-width: 960px) {
    .chk-banner {
        flex: 1 1 12rem;
    }
}

.chk-banner.ok { color: var(--chk-ok); }
.chk-banner.err { color: #b91c1c; }

.chk-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

/* Premium buttons — light checklist scope */
.chk-page-body .suite-premium-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    border-radius: 10px;
    border: 1px solid var(--chk-line);
    background: #fff;
    color: var(--chk-ink);
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, color 0.15s;
    white-space: nowrap;
}

.chk-page-body .suite-premium-btn i,
.chk-page-body .suite-premium-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.chk-page-body .suite-premium-btn:hover:not(:disabled) {
    border-color: rgba(37, 99, 235, 0.35);
    background: var(--chk-accent-soft);
    color: #1e40af;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

.chk-page-body .suite-premium-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.chk-page-body .suite-premium-btn-ghost {
    border-color: rgba(37, 99, 235, 0.2);
    color: var(--chk-accent);
    background: #f8fafc;
}

.chk-page-body .suite-premium-btn-primary {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.chk-page-body .suite-premium-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
    color: #fff;
    border-color: transparent;
}

h2.chk-sec {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 32px 0 10px;
    letter-spacing: -0.01em;
}

h2.chk-sec-tight {
    margin: 4px 0 6px;
    font-size: 1.05rem;
}

.chk-lead-tight {
    margin: 0 0 8px !important;
    font-size: 0.82rem;
    line-height: 1.35;
}

.chk-grid-hint {
    color: var(--chk-muted);
}

.chk-session-fold {
    margin: 0 0 10px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid var(--chk-line);
    border-radius: var(--chk-radius);
    box-shadow: var(--chk-shadow);
}

.chk-session-fold > summary {
    list-style: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--chk-accent);
}

.chk-session-fold > summary::-webkit-details-marker {
    display: none;
}

.chk-session-fold > summary::before {
    content: '▸';
    display: inline-block;
    margin-right: 8px;
    color: var(--chk-muted);
}

.chk-session-fold[open] > summary::before {
    transform: rotate(90deg);
}

.chk-card-compact {
    margin-top: 10px;
    padding: 10px 12px;
}

.chk-card-compact h2 {
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.chk-filter-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px 14px;
    margin: 14px 0 8px;
}

.chk-filter-details {
    flex: 1 1 18rem;
    min-width: 0;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid var(--chk-line);
    border-radius: var(--chk-radius);
    box-shadow: var(--chk-shadow);
}

.chk-filter-details > summary {
    list-style: none;
    cursor: pointer;
    font-family: var(--chk-font-display, 'Outfit', sans-serif);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--chk-ink);
    line-height: 1.35;
}

.chk-filter-details > summary::-webkit-details-marker {
    display: none;
}

.chk-filter-details > summary::before {
    content: '▸';
    display: inline-block;
    margin-right: 8px;
    color: var(--chk-muted);
    transition: transform 0.15s ease;
}

.chk-filter-details[open] > summary::before {
    transform: rotate(90deg);
}

.chk-filter-details[open] > summary {
    margin-bottom: 10px;
}

.chk-filter-head > .chk-filter-badge {
    flex: 0 0 auto;
    align-self: center;
    margin-top: 2px;
}

.chk-filter-panel {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.chk-filter-dim {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.chk-filter-dim:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.chk-filter-dim-label {
    flex: 0 0 min(100%, 11rem);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--chk-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-top: 4px;
}

.chk-filter-dim-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(100, 116, 139, 0.35);
    background: #fff;
    color: var(--chk-muted);
    font-size: 0.62rem;
    font-weight: 700;
    cursor: help;
    line-height: 1;
}

.chk-filter-chips {
    flex: 1 1 12rem;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chk-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: var(--chk-soft);
    color: #334155;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.12s, background 0.12s, color 0.12s, box-shadow 0.12s;
}

.chk-chip:hover {
    border-color: rgba(37, 99, 235, 0.35);
    background: var(--chk-accent-soft);
    color: #1e40af;
}

.chk-chip.is-active {
    border-color: #2563eb;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: #fff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.chk-filter-badge {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #1e40af;
    background: var(--chk-accent-soft);
    border: 1px solid rgba(37, 99, 235, 0.2);
    padding: 5px 12px;
    border-radius: 999px;
}

.chk-table-wrap tbody tr.chk-row-hidden {
    display: none;
}

.chk-table-wrap {
    border: 1px solid var(--chk-line);
    border-radius: var(--chk-radius);
    overflow: auto;
    background: #fff;
    box-shadow: var(--chk-shadow);
    -webkit-overflow-scrolling: touch;
}

.chk-table-wrap table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.84rem;
    background: #fff;
    min-width: 820px;
}

table.chk-table-main {
    min-width: 1400px;
    table-layout: fixed;
}

table.chk-table-main col.chk-col-num { width: 3.5%; }
table.chk-table-main col.chk-col-chkp { width: 6%; }
table.chk-table-main col.chk-col-lista { width: 6%; }
table.chk-table-main col.chk-col-key { width: 6.5%; }
table.chk-table-main col.chk-col-crit { width: 21%; }
table.chk-table-main col.chk-col-prio { width: 8.5%; }
table.chk-table-main col.chk-col-doc { width: 9%; }
table.chk-table-main col.chk-col-res { width: 9%; }
table.chk-table-main col.chk-col-ev { width: 22%; }
table.chk-table-main col.chk-col-mot { width: 18%; }
table.chk-table-main col.chk-col-vby { width: 11%; }
table.chk-table-main col.chk-col-vat { width: 11%; }

.chk-table-wrap thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    text-align: left;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--chk-muted);
    font-weight: 700;
    padding: 8px 10px;
    background: rgba(248, 250, 252, 0.96);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--chk-line);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

table.chk-table-main th.chk-th-chkp,
table.chk-table-main td.chk-td-chkp {
    text-align: center;
    vertical-align: middle;
    padding-left: 8px;
    padding-right: 8px;
}

.chk-chkp-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.1rem;
    min-height: 2.1rem;
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
    border-radius: 10px;
    font-variant-numeric: tabular-nums;
}

.chk-chkp-num-1 {
    color: #1e40af;
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid rgba(37, 99, 235, 0.45);
    box-shadow: 0 2px 6px rgba(29, 78, 216, 0.12);
}

.chk-chkp-num-2 {
    color: #5b21b6;
    background: linear-gradient(180deg, #f5f3ff 0%, #ede9fe 100%);
    border: 2px solid rgba(109, 40, 217, 0.45);
    box-shadow: 0 2px 6px rgba(91, 33, 182, 0.12);
}

.chk-chkp-num-3 {
    color: #0f766e;
    background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
    border: 2px solid rgba(15, 118, 110, 0.45);
    box-shadow: 0 2px 6px rgba(15, 118, 110, 0.12);
}

tr.chk-section-sep td {
    padding: 6px 10px;
    text-align: center;
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #334155;
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
    border-top: 2px solid rgba(15, 23, 42, 0.08);
    border-bottom: 2px solid rgba(15, 23, 42, 0.08);
}

tr.chk-section-sep[data-chk-sep="cp1"] td {
    color: #1e40af;
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 55%, #f8fafc 100%);
}

tr.chk-section-sep[data-chk-sep="cp2"] td {
    color: #5b21b6;
    background: linear-gradient(180deg, #f5f3ff 0%, #ede9fe 55%, #f8fafc 100%);
}

tr.chk-section-sep[data-chk-sep="cp3"] td {
    color: #0f766e;
    background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 55%, #f8fafc 100%);
}

.chk-chkp-progress-duo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    flex: 1 1 auto;
}

.chk-chkp-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.chk-chkp-stat-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--chk-muted);
}

.chk-chkp-stat-val {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.chk-chkp-stat-1 .chk-chkp-stat-val { color: #1d4ed8; }
.chk-chkp-stat-2 .chk-chkp-stat-val { color: #6d28d9; }
.chk-chkp-stat-3 .chk-chkp-stat-val { color: #0f766e; }

.chk-chkp-stat-sep {
    font-size: 1.25rem;
    font-weight: 300;
    color: #cbd5e1;
    user-select: none;
}

.chk-cierre-progress-stats-compact {
    flex: 0 0 auto;
    font-size: 0.78rem !important;
    font-weight: 600;
    color: var(--chk-muted) !important;
}

.chk-cp-chip {
    display: inline-block;
    font-family: ui-monospace, Menlo, monospace;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 999px;
    white-space: nowrap;
    vertical-align: middle;
}

.chk-cp-chip-1 {
    color: #1e40af;
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid rgba(37, 99, 235, 0.35);
    box-shadow: 0 1px 2px rgba(29, 78, 216, 0.08);
}

.chk-cp-chip-2 {
    color: #6d28d9;
    background: linear-gradient(180deg, #f5f3ff 0%, #ede9fe 100%);
    border: 1px solid rgba(109, 40, 217, 0.35);
    box-shadow: 0 1px 2px rgba(91, 33, 182, 0.08);
}

.chk-cp-chip-3 {
    color: #0f766e;
    background: linear-gradient(180deg, #f0fdfa 0%, #ccfbf1 100%);
    border: 1px solid rgba(15, 118, 110, 0.35);
    box-shadow: 0 1px 2px rgba(13, 148, 136, 0.08);
}

.chk-chkp-stat-3 .chk-chkp-stat-label {
    color: #0f766e;
}

table.chk-table-main td.chk-td-prio {
    vertical-align: middle;
    padding-top: 4px;
    overflow: visible;
}

.chk-prio-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    max-width: 100%;
}

.chk-prio-chip {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    font-family: ui-monospace, Menlo, monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
    line-height: 1.2;
}

.chk-prio-ref {
    display: block;
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--chk-muted);
    line-height: 1.35;
    word-break: break-word;
    max-width: 100%;
}

.chk-prio-chip--p0 {
    color: #991b1b;
    background: linear-gradient(180deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid rgba(220, 38, 38, 0.4);
}

.chk-prio-chip--p1 {
    color: #1e40af;
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid rgba(37, 99, 235, 0.4);
}

.chk-prio-chip--b1 {
    color: #6d28d9;
    background: linear-gradient(180deg, #f5f3ff 0%, #ede9fe 100%);
    border: 1px solid rgba(109, 40, 217, 0.4);
}

.chk-prio-chip--infra {
    color: #334155;
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid rgba(100, 116, 139, 0.35);
}

.chk-prio-chip--operacion {
    color: #0f766e;
    background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid rgba(15, 118, 110, 0.4);
}

.chk-prio-chip--otro {
    color: #475569;
    background: #f1f5f9;
    border: 1px solid rgba(100, 116, 139, 0.3);
}

#chk-cp2-section {
    margin-top: 36px;
    padding-top: 8px;
    border-top: 2px solid rgba(109, 40, 217, 0.12);
}

.chk-cp2-subtitle {
    max-width: 52rem;
}

.chk-cp2-progress {
    margin: 12px 0 16px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid var(--chk-line);
    border-radius: var(--chk-radius);
    box-shadow: var(--chk-shadow);
}

.chk-cp2-progress-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 6px;
}

.chk-cp2-progress-label {
    font-family: ui-monospace, Menlo, monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #6d28d9;
    background: #f5f3ff;
    border: 1px solid rgba(109, 40, 217, 0.25);
    padding: 2px 8px;
    border-radius: 999px;
}

.chk-cp2-progress-stats {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--chk-ink);
}

.chk-cp2-progress-track {
    height: 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.chk-cp2-progress-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #7c3aed 0%, #a78bfa 55%, #c4b5fd 100%);
    transition: width 0.28s ease;
}

table.chk-table-main td.chk-td-lista {
    text-align: center;
    vertical-align: middle;
    padding-top: 4px;
    overflow: hidden;
    contain: layout style;
}

.chk-crit-cell .chk-cp-chip,
.chk-crit-cell .chk-prio-chip {
    display: none !important;
}

table.chk-table-main td.chk-td-key {
    vertical-align: top;
    padding-top: 12px;
}

.chk-item-key {
    font-family: ui-monospace, Menlo, monospace;
    font-size: 0.72rem;
    font-weight: 600;
    color: #334155;
    word-break: break-all;
}

table.chk-table-main th.chk-th-res,
table.chk-table-main td.chk-td-res {
    padding-left: 8px;
    padding-right: 8px;
}

.chk-table-wrap tbody td {
    padding: 4px 10px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    vertical-align: middle;
    transition: background 0.12s ease;
}

.chk-table-wrap tbody tr:nth-child(even) td {
    background: #f8fafc;
}

.chk-table-wrap tbody tr:hover td {
    background: #eff6ff;
}

.chk-table-wrap tbody tr:last-child td {
    border-bottom: none;
}

td.num {
    font-family: ui-monospace, Menlo, monospace;
    font-weight: 600;
    color: #334155;
}

.inp {
    width: 100%;
    font-size: 0.82rem;
    padding: 8px 10px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 8px;
    font-family: inherit;
    background: #fff;
    color: var(--chk-ink);
    transition: border-color 0.15s, box-shadow 0.15s, min-height 0.15s;
}

.inp:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: var(--chk-focus);
}

select.inp {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
    cursor: pointer;
}

table.chk-table-main select.inp.chk-res {
    min-width: 7.25rem;
    max-width: none;
    font-size: 0.82rem;
    font-weight: 600;
    min-height: 32px;
    padding: 5px 28px 5px 8px;
    line-height: 1.2;
}

table.chk-table-main input.inp.chk-mot,
table.chk-table-main textarea.inp.chk-mot {
    max-width: none;
    min-height: 32px;
    height: 32px;
    padding: 5px 8px;
    line-height: 1.25;
    font-size: 0.82rem;
    resize: none;
}

table.chk-table-main textarea.inp.chk-ev {
    display: none !important;
}

.chk-td-ev {
    min-width: 11rem;
    vertical-align: middle;
}

.chk-ev-cell {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.chk-ev-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

table.chk-table-main input.inp.chk-ev-note {
    flex: 1 1 6rem;
    min-width: 0;
    min-height: 32px;
    height: 32px;
    padding: 5px 8px;
    font-size: 0.82rem;
    line-height: 1.25;
}

.chk-ev-actions {
    display: inline-flex;
    flex-shrink: 0;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
}

.chk-ev-ver-btn,
.chk-ev-add-btn,
.chk-ev-capturas-btn {
    align-self: center;
    font-size: 0.76rem;
    min-height: 32px;
    padding: 5px 8px;
    gap: 4px;
}

table.chk-table-main .chk-ev-icon-btn {
    padding: 5px 7px;
    min-width: 32px;
    justify-content: center;
}

table.chk-table-main .chk-ev-icon-btn .chk-ev-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.chk-ev-ver-btn i,
.chk-ev-ver-btn svg,
.chk-ev-add-btn i,
.chk-ev-add-btn svg {
    width: 15px;
    height: 15px;
}

.chk-ev-cap-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--chk-accent);
    background: var(--chk-accent-soft);
    border: 1px solid rgba(29, 78, 216, 0.25);
    border-radius: 999px;
    min-height: 32px;
    padding: 4px 8px;
    cursor: pointer;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.chk-ev-cap-badge:hover {
    border-color: var(--chk-accent);
}

.chk-ev-read,
.chk-ev-read,
.chk-ev-modal-note-read {
    margin: 0 0 12px;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #1e293b;
    white-space: pre-wrap;
    word-break: break-word;
}

.chk-ev-modal-note-empty {
    color: var(--chk-muted);
    font-style: italic;
}

.chk-ev-modal-note-label {
    display: block;
    margin: 0 0 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
}

textarea.inp.chk-ev-modal-note {
    width: 100%;
    max-width: none;
    min-height: 4.5rem;
    margin-bottom: 10px;
    font-size: 0.84rem;
    line-height: 1.45;
    resize: vertical;
}

.chk-ev-modal-img-zoom {
    cursor: zoom-in;
}

.chk-ev-lightbox {
    text-align: center;
}

.chk-ev-lightbox img {
    max-width: 100%;
    max-height: min(70vh, 640px);
    object-fit: contain;
    border-radius: 8px;
}

.chk-ev-paste {
    margin-top: 6px;
    padding: 10px;
    min-height: 76px;
    border: 2px dashed rgba(29, 78, 216, 0.45);
    border-radius: 10px;
    background: var(--chk-accent-soft);
    text-align: center;
    cursor: pointer;
    outline: none;
}

.chk-ev-paste:focus {
    box-shadow: var(--chk-focus);
    border-color: var(--chk-accent);
}

.chk-ev-paste-hint {
    display: block;
    font-size: 0.78rem;
    color: var(--chk-muted);
    line-height: 1.4;
    padding: 12px 4px;
}

.chk-ev-modal-lead {
    margin: 0 0 10px;
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.45;
}

.chk-ev-modal-counter {
    margin: 0 0 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--chk-accent);
}

.chk-ev-modal-paste {
    margin-top: 0;
}

.chk-ev-modal-progress {
    margin: 10px 0 0;
    font-size: 0.82rem;
    color: var(--chk-muted);
}

.chk-ev-modal-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
    max-height: min(42vh, 320px);
    overflow-y: auto;
}

.chk-ev-modal-empty {
    margin: 0;
    font-size: 0.82rem;
    color: var(--chk-muted);
}

.chk-ev-modal-thumb {
    margin: 0;
    flex: 0 1 140px;
    text-align: center;
}

.chk-ev-modal-thumb img {
    display: block;
    width: 100%;
    max-height: 100px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
    background: #fff;
}

.chk-ev-modal-rm {
    margin-top: 6px;
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid var(--chk-line);
    background: #fff;
    color: var(--chk-muted);
    cursor: pointer;
}

.chk-ev-modal-rm:hover {
    color: var(--chk-ink);
    border-color: rgba(15, 23, 42, 0.18);
}

table.chk-table-main textarea.inp.chk-mot:focus {
    min-height: 32px;
}

.chk-gerente {
    margin-top: 28px;
    padding: 18px 20px;
    border: 1px solid var(--chk-line);
    border-radius: var(--chk-radius);
    background: #fff;
    box-shadow: var(--chk-shadow);
}

.chk-gerente-details > summary {
    list-style: none;
    cursor: pointer;
    font-family: var(--chk-font-display, 'Outfit', sans-serif);
    font-weight: 600;
    font-size: 1rem;
    color: var(--chk-ink);
}

.chk-gerente-details > summary::-webkit-details-marker {
    display: none;
}

.chk-gerente-details > summary::before {
    content: '▸';
    display: inline-block;
    margin-right: 8px;
    color: var(--chk-muted);
    transition: transform 0.15s ease;
}

.chk-gerente-details[open] > summary::before {
    transform: rotate(90deg);
}

.chk-gerente-details[open] > summary {
    margin-bottom: 12px;
}

.chk-evidence-wrap {
    margin-top: 28px;
    padding: 18px 20px;
    border: 1px solid var(--chk-line);
    border-radius: var(--chk-radius);
    background: #fff;
    box-shadow: var(--chk-shadow);
}

.help-accord > summary {
    list-style: none;
    cursor: pointer;
    font-family: var(--chk-font-display, 'Outfit', sans-serif);
    font-weight: 600;
    font-size: 1rem;
    color: var(--chk-ink);
}

.help-accord > summary::-webkit-details-marker {
    display: none;
}

.help-accord > summary::before {
    content: '▸';
    display: inline-block;
    margin-right: 8px;
    color: var(--chk-muted);
    transition: transform 0.15s ease;
}

.help-accord[open] > summary::before {
    transform: rotate(90deg);
}

.help-accord[open] > summary {
    margin-bottom: 12px;
}

.chk-evidence-acta {
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--chk-soft);
    border: 1px solid var(--chk-line);
}

.chk-evidence-meta {
    margin: 0 0 10px;
    font-size: 0.88rem;
    color: var(--chk-muted);
}

ul.chk-evidence-links {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

ul.chk-evidence-links li + li {
    margin-top: 6px;
}

.chk-footer {
    margin-top: 40px;
    font-size: 0.75rem;
    color: var(--chk-muted);
    border-top: 1px solid var(--chk-line);
    padding-top: 16px;
}

.chk-verif-meta {
    font-size: 0.72rem;
    color: #475569;
    white-space: nowrap;
}

table.chk-table-main td.chk-verif-meta {
    font-size: 0.68rem;
    padding: 4px 6px;
    line-height: 1.25;
    white-space: normal;
}

.chk-verified-at {
    cursor: help;
    border-bottom: 1px dotted #94a3b8;
}

.chk-help-mount { margin-top: 10px; }

.chk-context-help-panel {
    margin-top: 10px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--chk-line);
    border-radius: var(--chk-radius);
    font-size: 0.9rem;
    color: #334155;
    box-shadow: var(--chk-shadow);
}

.chk-context-help-body .ctx-help-lead { color: var(--chk-ink); }
.chk-context-help-body .ctx-help-note { color: var(--chk-muted); font-size: 0.78rem; }
.chk-context-help-body .ctx-help-steps { margin: 0 0 8px 20px; padding: 0; }
.chk-context-help-body .ctx-help-steps li { margin-bottom: 6px; }

.ctx-help-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 10px;
    background: #fff;
    color: var(--chk-accent);
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ctx-help-toggle .form-ico { width: 16px; height: 16px; }

.chk-crit-cell {
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    line-height: 1.25;
    position: static;
    overflow: hidden;
}

.chk-crit-wrap {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
}

table.chk-table-main .chk-prio-ref {
    display: none;
}

.chk-crit-main {
    flex: 1 1 180px;
    min-width: 0;
}

.chk-crit-tech {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    font-weight: 600;
    color: var(--chk-ink);
    font-size: 0.82rem;
    line-height: 1.25;
}

.chk-crit-main.is-crit-expanded .chk-crit-tech {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

.chk-crit-preview {
    margin: 3px 0 0;
    font-size: 0.76rem;
    color: var(--chk-muted);
    font-weight: 400;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}

.chk-crit-extra.is-expanded .chk-crit-preview {
    display: none;
}

.chk-crit-extra.is-collapsed .chk-crit-full {
    display: none;
}

.chk-crit-extra.is-expanded .chk-crit-full {
    display: block;
    margin-top: 3px;
}

.chk-crit-toggle {
    display: inline-block;
    margin: 3px 0 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--chk-accent);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.chk-crit-toggle:hover {
    color: #1e40af;
}

.chk-crit-toggle:focus-visible {
    outline: none;
    box-shadow: var(--chk-focus);
    border-radius: 4px;
}

.chk-crit-layman {
    margin: 4px 0 0;
    font-size: 0.76rem;
    color: var(--chk-muted);
    font-weight: 400;
    line-height: 1.35;
}

.chk-crit-extra.is-expanded .chk-crit-layman:first-child {
    margin-top: 0;
}

.chk-crit-text { display: inline; vertical-align: middle; }

.chk-table-wrap {
    scroll-behavior: smooth;
}

#suite-footer-root.suite-footer {
    margin-top: 28px;
    padding: 14px 12px 20px;
    border-top: 1px solid var(--chk-line);
    background: transparent;
}

#suite-footer-root .suite-footer-compact {
    font-size: 0.72rem;
    color: #64748b;
}

#suite-footer-root .suite-footer-back {
    color: var(--chk-accent);
}

.chk-crit-help,
.chk-crit-help th button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    margin-left: 4px;
    border: 0;
    border-radius: 50%;
    background: var(--chk-accent-soft);
    color: var(--chk-accent);
    cursor: help;
    vertical-align: middle;
}

.chk-crit-help svg { width: 14px; height: 14px; }
.chk-crit-help .chk-crit-q {
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    color: var(--chk-accent);
}
.chk-crit-help:has(svg) .chk-crit-q { display: none; }
th .chk-crit-help { margin-left: 2px; vertical-align: middle; }

.has-tip[data-tip] { position: relative; cursor: help; }

.has-tip[data-tip]:hover::after,
.has-tip[data-tip]:focus-visible::after {
    content: attr(data-tip);
    position: absolute;
    z-index: 40;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(100% + 8px);
    min-width: 200px;
    max-width: min(320px, 90vw);
    padding: 9px 11px;
    border-radius: 10px;
    background: #0f172a;
    color: #f8fafc;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.45;
    text-transform: none;
    letter-spacing: normal;
    white-space: normal;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
    pointer-events: none;
}

td .has-tip[data-tip]:hover::after,
td .has-tip[data-tip]:focus-visible::after {
    left: auto;
    right: 0;
    transform: none;
}

.ctx-help-toggle-inline.is-open {
    border-color: #93c5fd;
    background: var(--chk-accent-soft);
    color: #1e40af;
}
