/* 03-12-2026: COPIA PROPIA de /site/sigo/style.css (SIGO, línea 2) del 21-08-2026, para que línea 1 no dependa
   de archivos de línea 2. Ya no sigue los cambios de SIGO: si se quiere uno, copiarlo aquí a mano. */
:root {
    --ui-bg: #f6f9fb;
    --ui-blue-50: #eef8fc;
    --ui-blue-100: #d9eef7;
    --ui-blue-200: #b8deef;
    --ui-blue-300: #83c5e3;
    --ui-blue-400: #3ca0cf;
    --ui-blue-500: #0078b3;
    --ui-blue-600: #00639b;
    --ui-blue-700: #004f7d;
    --ui-blue-800: #073b5e;
    --ui-blue-900: #06263d;
    --ui-text: #142536;
    --ui-muted: #627384;
    --ui-border: #d7e3ea;
    --ui-card-bg: #ffffff;
    --ui-danger: #e34b40;
    --ui-danger-bg: rgba(227, 75, 64, 0.14);
    --ui-danger-border: rgba(227, 75, 64, 0.36);
    --ui-warning: #edf1f5;
    --ui-warning-bg: rgba(237, 241, 245, 0.64);
    --ui-warning-border: rgba(210, 220, 228, 0.72);
    --ui-neutral: #edf1f5;
    --ui-neutral-bg: rgba(153, 153, 153, 0.08);
    --ui-neutral-border: rgba(153, 153, 153, 0.2);
    --ui-info: #2570cc;
    --ui-info-bg: rgba(37, 112, 204, 0.15);
    --ui-info-border: rgba(37, 112, 204, 0.36);
    --ui-success: #38cf43;
    --ui-success-bg: rgba(56, 207, 67, 0.15);
    --ui-success-border: rgba(56, 207, 67, 0.36);
    --ui-accent: #00a2c7;
    --ui-button: var(--ui-blue-600);
    --ui-button-hover: var(--ui-blue-700);
    --ui-space-blue: #06263d;
    --ui-space-blue-deep: #031522;
    --bg: var(--ui-bg);
    --panel: var(--ui-card-bg);
    --line: var(--ui-border);
    --text: var(--ui-text);
    --muted: var(--ui-muted);
    --blue: var(--ui-blue-600);
    --blue-dark: var(--ui-blue-700);
    --green: var(--ui-success);
    --sidebar: var(--ui-space-blue);
    --sidebar-active: rgba(0, 99, 155, 0.34);
    --shadow: 0 1px 2px rgba(20, 37, 54, 0.05);
    --chart-primary: #2f93d1;
    --chart-secondary: #94a3b8;
    --chart-success: #63c7b2;
    --chart-warning: #ffcf3f;
    --chart-danger: #f45b82;
    --chart-background: #f1f5f9;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Aptos", "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.is-action-loading {
    pointer-events: none;
}

.button-action-spinner {
    width: 1em;
    height: 1em;
    display: inline-grid;
    place-items: center;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.primary-button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: var(--ui-button);
    box-shadow: none;
    padding: 0 14px;
    font-weight: 700;
}

.primary-button:hover {
    background: var(--ui-button-hover);
    box-shadow: none;
}

.primary-button.is-saved {
    background: var(--ui-success);
}

.primary-button.is-saved:hover {
    background: #3e8738;
}

.band-login-page {
    background: var(--ui-bg);
}

.band-login-brand {
    background:
        radial-gradient(circle at 18% 18%, rgba(42, 145, 216, 0.36) 0 1px, transparent 2px),
        radial-gradient(circle at 74% 28%, rgba(255, 255, 255, 0.22) 0 1px, transparent 2px),
        radial-gradient(circle at 52% 68%, rgba(0, 162, 199, 0.14), transparent 30%),
        linear-gradient(140deg, #00639b 0%, var(--ui-space-blue) 58%, var(--ui-space-blue-deep) 100%);
    color: white;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
}

.band-login-brand-content {
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 520px;
}

.band-login-brand-top {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.band-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.95;
}

.band-login-brand-middle {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
}

.band-login-brand h1 {
    font-size: 44px;
    line-height: 1.05;
    margin-bottom: 18px;
    color: #f8fbff;
}

.band-login-brand p {
    max-width: 440px;
    margin-bottom: 0;
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
}

.band-login-panel {
    background: white;
}

.band-login-card {
    width: 100%;
    max-width: 420px;
    padding: 36px;
}

.band-login-icon {
    font-size: 36px;
    color: var(--ui-blue-600);
    margin-bottom: 10px;
}

.btn-primary,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active {
    border-color: var(--ui-button);
    background: var(--ui-button);
}

.btn-primary:hover,
.btn-primary:focus {
    border-color: var(--ui-button-hover);
    background: var(--ui-button-hover);
    box-shadow: 0 0 0 0.2rem rgba(111, 74, 199, 0.18);
}

.band-login-help {
    text-align: center;
}

.band-login-logo-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding-top: 32px;
    opacity: 0.8;
}

.btn-spinner {
    display: none;
}

#btn-login.is-loading .btn-spinner {
    display: inline-flex;
}

#btn-login.is-loading .btn-text {
    opacity: 0.7;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    grid-template-rows: 64px minmax(0, 1fr);
}

.sidebar {
    grid-column: 1;
    grid-row: 2;
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    background:
        radial-gradient(circle at 22% 14%, rgba(131, 197, 227, 0.32) 0 1px, transparent 2px),
        radial-gradient(circle at 76% 32%, rgba(255, 255, 255, 0.2) 0 1px, transparent 2px),
        radial-gradient(circle at 44% 78%, rgba(0, 162, 199, 0.18), transparent 30%),
        linear-gradient(180deg, #00639b 0%, var(--ui-space-blue) 56%, var(--ui-space-blue-deep) 100%);
    background-size: 88px 88px, 132px 132px, auto, auto;
    color: rgba(255, 255, 255, 0.86);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sidebar::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.brand {
    display: none;
}

.sidebar-toggle {
    flex: 0 0 48px;
    width: 48px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 0;
    color: rgba(255, 255, 255, 0.88);
    background: transparent;
    padding: 0;
    font-weight: 700;
    transition: all 0.2s;
}

.sidebar-toggle-label {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 700;
}

.sidebar-toggle:hover {
    color: #ffffff;
    background: transparent;
}

.nav-list {
    display: grid;
    gap: 8px;
    align-content: start;
    padding-top: 4px;
}

.nav-divider {
    height: 1px;
    margin: 8px 10px;
    background: rgba(255, 255, 255, 0.12);
}

.nav-item {
    width: 100%;
    min-height: 64px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 0;
    border-radius: 0;
    padding: 6px 4px;
    text-align: center;
    color: rgba(255, 255, 255, 0.76);
    background: transparent;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-item i {
    width: 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.54);
    font-size: 18px;
    line-height: 1;
}

.nav-item span {
    display: block;
    max-width: 64px;
    overflow: hidden;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.15;
    text-overflow: ellipsis;
}

.nav-item:hover,
.nav-item.active {
    background: var(--sidebar-active);
    color: #ffffff;
}

.nav-item:disabled {
    cursor: wait;
    opacity: 0.76;
}

.nav-item.is-loading {
    background: var(--sidebar-active);
    color: #ffffff;
}

.nav-item:hover i,
.nav-item.active i {
    color: #ffffff;
}

.sidebar-collapsed {
    grid-template-columns: 70px minmax(0, 1fr);
}

.sidebar-collapsed .sidebar {
    padding-left: 0;
    padding-right: 0;
}

.sidebar-collapsed .nav-item span {
    display: block;
}

.sidebar-collapsed .sidebar-toggle-label {
    display: none;
}

.sidebar-collapsed .nav-item {
    width: 100%;
    padding: 6px 4px;
    justify-content: center;
}

.main-shell {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.topbar {
    grid-column: 1 / -1;
    grid-row: 1;
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 24px;
    background: #fff;
    border-bottom: 1px solid var(--ui-border);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.topbar-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ui-blue-700);
}

.topbar-project-select {
    flex: 0 0 160px;
    width: 160px;
    height: 36px;
    border: 1px solid var(--ui-border);
    border-radius: 8px;
    color: var(--ui-blue-700);
    background: #fff;
    padding: 0 8px;
    font-size: 13px;
    font-weight: 700;
}

.topbar-project-select:focus {
    outline: 2px solid rgba(78, 128, 174, 0.2);
    outline-offset: 2px;
    border-color: var(--ui-blue-400);
}

.topbar-brand h1 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--ui-blue-600);
}

.topbar-project-name {
    color: var(--ui-blue-700);
    font-size: 16px;
    font-weight: 700;
}

.topbar-brand-divider {
    color: var(--ui-border);
    font-size: 18px;
    font-weight: 700;
}

.topbar-brand span:not(.topbar-project-name):not(.topbar-brand-divider) {
    min-width: 0;
    color: var(--ui-muted);
    font-size: 15px;
    font-weight: 300;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-cache-notice {
    flex: 0 0 auto;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border-radius: 8px;
    padding: 0 14px;
    background: #e7ff00;
    color: #374151;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 0 0 1px rgba(55, 65, 81, 0.14), 0 6px 18px rgba(231, 255, 0, 0.26);
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
}

.topbar-user-text {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
}

.topbar-user-text strong {
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
}

.topbar-user-text span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.icon-button,
.soft-button {
    min-width: 40px;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    transition: all 0.2s;
}

.icon-button:hover,
.soft-button:hover {
    background: var(--ui-blue-100);
    border-color: var(--ui-blue-300);
    color: var(--ui-blue-700);
}

#logout-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 12px;
    font-weight: 700;
}

.mantenedor-toggle {
    color: #fff;
    background: var(--ui-danger);
    border-color: var(--ui-danger);
}

.mantenedor-toggle:hover,
.mantenedor-toggle.is-active {
    color: #fff;
    background: #b91c1c;
    border-color: #b91c1c;
}

.icon-button-only {
    width: 40px;
    padding: 0;
}

.icon-button.icon-button-only,
.soft-button.icon-button-only {
    align-items: center;
    justify-content: center;
    gap: 0;
}

.primary-button.icon-button-only {
    min-width: 40px;
    width: 40px;
    padding: 0;
}

.icon-button-only i {
    font-size: 15px;
}

.soft-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    font-weight: 700;
}

.content-shell {
    padding: 30px 32px;
    display: grid;
    gap: 20px;
    background: #fff;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.seguimiento-view {
    display: grid;
    gap: 16px;
}

.seguimiento-section-title {
    margin: 0;
    color: var(--text);
    font-size: 19px;
    font-weight: 650;
    letter-spacing: 0.01em;
    line-height: 1.25;
}

.contacto-view {
    width: 100%;
    min-width: 0;
    height: calc(100vh - 112px);
    min-height: 520px;
    display: flex;
    gap: 0;
    align-items: stretch;
    overflow: hidden;
}

.contacto-view > .contacto-panel {
    flex: 0 0 var(--contacto-left, 54%);
    min-width: 420px;
    max-width: calc(100% - 376px);
    overflow: hidden;
    min-height: 0;
}

.contacto-view > .contacto-ficha-panel {
    flex: 1 1 0;
    min-width: 360px;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.contacto-resizer {
    flex: 0 0 16px;
    align-self: stretch;
    min-height: 0;
    display: grid;
    place-items: center;
    cursor: col-resize;
    touch-action: none;
}

.contacto-resizer span {
    width: 4px;
    height: 56px;
    border-radius: 999px;
    background: var(--ui-border);
    transition: background 0.18s ease, height 0.18s ease;
}

.contacto-resizer:hover span,
.is-resizing-contacto .contacto-resizer span {
    height: 88px;
    background: var(--ui-blue-300);
}

.is-resizing-contacto {
    cursor: col-resize;
    user-select: none;
}

.contacto-panel,
.contacto-ficha-panel {
    min-width: 0;
}

.seguimiento-ratios {
    grid-template-columns: minmax(0, 18fr) minmax(0, 23fr) minmax(0, 23fr) minmax(0, 36fr);
    align-items: stretch;
}

.metric,
.panel,
.module-tile {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.metric-group {
    min-width: 0;
    display: block;
}

.metric-group-title {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--text);
    font-size: 14px;
    font-weight: 650;
    letter-spacing: 0;
    text-transform: none;
}

.metric-group-items {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(var(--metric-count), minmax(0, 1fr));
    grid-template-rows: auto 1fr;
    align-items: center;
    gap: 8px;
    height: 148px;
    padding: 14px 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.metric {
    min-width: 0;
    min-height: 0;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
}

.metric-group-participacion .metric-group-items {
    height: 148px;
}

.metric-group-participacion .metric {
    padding: 0 4px;
}

.metric-gauge-card {
    --metric-percent: 0;
    --metric-track: var(--chart-background);
    --metric-fill: var(--chart-primary);
}

.metric-label {
    display: block;
    min-height: 0;
    color: #4a4a58;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.25;
    text-align: center;
}

.metric-label::after {
    content: "";
    display: block;
    width: min(72px, 70%);
    height: 1px;
    margin: 7px auto 0;
    background: var(--ui-border);
}

.metric-group-participacion .metric-label {
    order: 2;
    margin-top: -18px;
    line-height: 1.15;
}

.metric-group-participacion .metric-label::after {
    display: none;
}

.metric-gauge {
    position: relative;
    width: min(146px, 100%);
    min-height: 84px;
    display: grid;
    justify-items: center;
    align-content: start;
}

.metric-group-participacion .metric-gauge {
    min-height: 72px;
}

.metric-gauge svg {
    width: 100%;
    height: 76px;
}

.metric-gauge path {
    fill: none;
    stroke-width: 20;
    stroke-linecap: butt;
}

.metric-gauge-track {
    stroke: var(--metric-track);
}

.metric-gauge-progress {
    stroke: var(--metric-fill);
    stroke-dasharray: 100;
    stroke-dashoffset: calc(100 - var(--metric-percent));
    transition: stroke-dashoffset 220ms ease;
}

.metric-gauge-segment {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
}

.metric-gauge-progress.is-aceptan {
    stroke: var(--chart-success);
}

.metric-gauge-progress.is-rechazan {
    stroke: var(--chart-danger);
}

.metric-gauge-progress.is-pendientes {
    stroke: var(--chart-warning);
}

.metric-gauge-progress.is-sin_agendar {
    stroke: var(--chart-warning);
}

.metric-gauge-progress.is-agendada {
    stroke: var(--chart-primary);
}

.metric-gauge-progress.is-realizada {
    stroke: var(--chart-success);
}

.metric-gauge-progress.is-contactado {
    stroke: var(--chart-success);
}

.metric-gauge-progress.is-sin_contacto {
    stroke: var(--chart-warning);
}

.metric-gauge-progress.is-no_aplica {
    stroke: #777777;
}

.metric-gauge-progress.is-muted.is-aceptan {
    stroke: rgba(39, 140, 138, 0.24);
}

.metric-gauge-progress.is-muted.is-rechazan {
    stroke: rgba(212, 93, 93, 0.24);
}

.metric-gauge-progress.is-muted.is-no_aplica {
    stroke: rgba(119, 119, 119, 0.24);
}

.metric-gauge-progress.is-muted.is-pendientes {
    stroke: rgba(217, 154, 43, 0.24);
}

.metric-gauge-progress.is-muted.is-sin_agendar {
    stroke: rgba(217, 154, 43, 0.24);
}

.metric-gauge-progress.is-muted.is-agendada {
    stroke: rgba(91, 154, 164, 0.24);
}

.metric-gauge-progress.is-muted.is-realizada {
    stroke: rgba(39, 140, 138, 0.24);
}

.metric-gauge strong {
    display: block;
    margin-top: -12px;
    color: #454553;
    font-size: clamp(15px, 1.45vw, 18px);
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.metric-group-participacion .metric-gauge strong {
    position: absolute;
    left: 0;
    right: 0;
    top: 39px;
    bottom: auto;
    margin: 0;
    font-size: clamp(11px, 1vw, 13px);
}

.metric-gauge strong.metric-gauge-footer {
    color: var(--ui-muted);
    font-size: 11px;
    font-weight: 400;
    margin-top: -14px;
    white-space: nowrap;
}

.metric-gauge-footer .metric-main-number {
    font-size: 12px;
    font-weight: 600;
}

.metric-footer-text {
    color: var(--ui-muted);
    font-size: 11px;
    font-weight: 400;
}

.metric-main-number {
    font-weight: 600;
}

.metric-percent-text {
    font-weight: 400;
}

.metric-total-card {
    align-content: center;
    gap: 8px;
    grid-column: 1 / -1;
}

.metric-total-card strong {
    display: block;
    align-self: center;
    margin: 0;
    color: #454553;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 580;
    line-height: 1;
}

.metric-group-invitacion .metric:first-child {
    --metric-fill: #35a378;
}

.metric-group-participacion .metric {
    --metric-fill: #4b9aa9;
}

.metric-invitation-card {
    padding: 0;
    grid-column: 1 / -1;
}

.metric-invitation-body {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(108px, 0.86fr) minmax(104px, 1.14fr);
    align-items: center;
    gap: 8px;
}

.metric-invitation-card .metric-gauge {
    justify-self: center;
    width: min(124px, 100%);
    min-height: 82px;
}

.metric-invitation-card .metric-gauge svg {
    height: 68px;
}

.metric-invitation-card .metric-gauge strong.metric-gauge-footer {
    width: 100%;
    margin-top: -7px;
    overflow: visible;
    text-align: center;
    white-space: normal;
}

.metric-invitation-card .metric-gauge-footer .metric-footer-text,
.metric-invitation-card .metric-gauge-footer .metric-main-number {
    display: inline;
    line-height: 1.15;
}

.invitation-dot-options {
    display: grid;
    justify-items: start;
    gap: 6px;
    padding-top: 0;
}

.invitation-dot {
    min-width: 0;
    width: 100%;
    min-height: 16px;
    padding: 0;
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    border: 0;
    color: var(--ui-muted);
    background: transparent;
    box-shadow: none;
    text-align: left;
    cursor: default;
}

.invitation-dot i {
    width: 7px;
    height: 7px;
    grid-column: 1;
    grid-row: 1;
    border: 0;
    border-radius: 50%;
    background: var(--chart-success);
    box-shadow: 0 0 0 1px rgba(16, 47, 58, 0.16);
    opacity: 1;
}

.invitation-dot span {
    grid-column: 2;
    grid-row: 1;
}

.invitation-dot small {
    grid-column: 2;
    grid-row: 2;
    color: var(--ui-muted);
    font-size: 10.5px;
    line-height: 1.05;
    white-space: nowrap;
}

.invitation-dot.has-subtitle {
    min-height: 28px;
    align-items: start;
    row-gap: 2px;
}

.invitation-dot.has-subtitle i {
    margin-top: 2px;
}

.invitation-dot.is-rechazan i {
    background: var(--chart-danger);
}

.invitation-dot.is-pendientes i {
    background: var(--chart-warning);
}

.invitation-dot.is-sin_agendar i {
    background: var(--chart-warning);
}

.invitation-dot.is-agendada i {
    background: var(--chart-primary);
}

.invitation-dot.is-realizada i {
    background: var(--chart-success);
}

.invitation-dot.is-contactado i {
    background: var(--chart-success);
}

.invitation-dot.is-sin_contacto i {
    background: var(--chart-warning);
}

.invitation-dot.is-no_aplica i {
    background: #777777;
}

.invitation-dot span {
    overflow: visible;
    color: currentColor;
    font-size: 11.5px;
    font-weight: 400;
    line-height: 1.1;
    text-overflow: clip;
    white-space: nowrap;
}

.invitation-dot strong {
    color: var(--text);
    font-weight: 600;
}

.invitation-dot.is-aceptan strong,
.invitation-dot.is-contactado strong,
.invitation-dot.is-realizada strong {
    color: #1f6f70;
}

.invitation-dot.is-rechazan strong {
    color: #9f3f38;
}

.invitation-dot.is-pendientes strong,
.invitation-dot.is-sin_agendar strong,
.invitation-dot.is-sin_contacto strong {
    color: #8a5b11;
}

.invitation-dot.is-agendada strong {
    color: #3f7680;
}

.invitation-dot.is-no_aplica strong {
    color: #8f4f4b;
}

.invitation-progress-options {
    width: 100%;
    display: grid;
    gap: 6px;
    margin-top: 2px;
}

.invitation-progress {
    position: relative;
    min-width: 0;
    min-height: 30px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    border: 1px solid var(--ui-border);
    border-radius: 8px;
    color: var(--ui-muted);
    background: #fff;
    padding: 5px 8px;
    text-align: left;
}

.invitation-progress span,
.invitation-progress strong {
    position: relative;
    z-index: 1;
    font-size: 11px;
    line-height: 1.15;
}

.invitation-progress span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.invitation-progress strong {
    color: #4a4a58;
    font-weight: 850;
    white-space: nowrap;
}

.invitation-progress i {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--progress-width);
    background: rgba(53, 163, 120, 0.16);
}

.invitation-progress[data-invitation-ratio="rechazan"] i {
    background: rgba(239, 107, 107, 0.16);
}

.invitation-progress[data-invitation-ratio="pendientes"] i {
    background: rgba(245, 158, 11, 0.18);
}

.invitation-progress.is-active {
    border-color: rgba(43, 96, 159, 0.28);
    color: var(--ui-blue-700);
    box-shadow: 0 0 0 3px rgba(43, 96, 159, 0.08);
}

.invitation-progress.is-active[data-invitation-ratio="aceptan"] {
    border-color: rgba(53, 163, 120, 0.34);
}

.invitation-progress.is-active[data-invitation-ratio="rechazan"] {
    border-color: rgba(239, 107, 107, 0.34);
}

.invitation-progress.is-active[data-invitation-ratio="pendientes"] {
    border-color: rgba(245, 158, 11, 0.36);
}

.panel {
    padding: 28px;
}

.seguimiento-panel {
    display: grid;
    gap: 18px;
    max-height: calc(100vh - 112px);
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.seguimiento-filters,
.contacto-filters {
    display: flex;
    gap: 12px;
    align-items: end;
    min-width: 0;
    overflow: visible;
    padding-bottom: 2px;
}

.seguimiento-filter-band {
    padding: 0 0 0 18px;
    border-left: 4px solid var(--ui-blue-600);
}

.seguimiento-filter-band h3 {
    margin: 0 0 8px;
    color: var(--ui-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.seguimiento-filters label,
.contacto-filters label,
.ficha-status-grid label,
.datos-grid label,
.wide-field,
.modal-form-grid label {
    display: grid;
    gap: 8px;
    margin: 0;
    flex: 1 1 128px;
    min-width: 112px;
}

.seguimiento-filters label:first-child,
.contacto-filters label:first-child {
    flex: 1.4 1 210px;
    min-width: 190px;
}

.seguimiento-filters span,
.contacto-filters span,
.ficha-status-grid label > span,
.datos-grid label > span,
.wide-field > span,
.modal-form-grid label > span {
    color: var(--ui-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.35px;
    text-transform: uppercase;
}

.input-field {
    width: 100%;
    min-height: 40px;
    border: 1px solid var(--ui-border);
    border-radius: 8px;
    padding: 8px 12px;
    background: #fff;
    color: var(--ui-text);
    font-size: 14px;
}

.input-field:disabled,
.input-field[readonly] {
    border-color: #e5e0ee;
    background: #f4f2f7;
    color: var(--ui-muted);
    cursor: not-allowed;
    opacity: 1;
}

.input-field:focus {
    border-color: var(--ui-blue-500);
    outline: none;
    box-shadow: 0 0 0 2px rgba(43, 96, 159, 0.12);
}

.input-field.is-filter-active {
    border-color: var(--ui-blue-300);
    background: var(--ui-blue-100);
    color: var(--ui-blue-700);
}

.input-field.is-filter-active:focus {
    border-color: var(--ui-blue-500);
    box-shadow: 0 0 0 2px rgba(43, 96, 159, 0.16);
}

.multi-filter-control {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
    padding: 0;
}

.multi-filter-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 38px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    padding: 8px 12px;
}

.multi-filter-button span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.multi-filter-button i {
    flex: 0 0 auto;
    color: var(--ui-muted);
    font-size: 10px;
}

.multi-filter-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 120;
    display: none;
    width: 100%;
    min-width: min(220px, 100vw);
    max-height: 260px;
    overflow: hidden;
    border: 1px solid var(--ui-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
}

.multi-filter-control.is-open .multi-filter-menu {
    display: block;
}

.multi-filter-clear {
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--ui-border);
    background: var(--ui-blue-100);
    color: var(--ui-blue-700);
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    padding: 9px 12px;
}

.multi-filter-options {
    display: grid;
    max-height: 214px;
    overflow: auto;
    padding: 6px;
}

.multi-filter-option {
    display: flex !important;
    flex: initial !important;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    min-width: 0 !important;
    border-radius: 6px;
    color: var(--ui-text);
    cursor: pointer;
    padding: 6px 7px;
}

.multi-filter-option:hover {
    background: var(--ui-soft);
}

.multi-filter-option input {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    accent-color: var(--ui-blue-600);
}

.multi-filter-option span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--ui-text);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

label.has-active-filter > span {
    color: var(--ui-blue-700);
}

.filter-clear-slot {
    display: grid;
    align-content: end;
    justify-content: end;
    align-self: end;
    min-height: 40px;
    flex: 0 0 40px;
    gap: 8px;
}

.filter-clear-slot::before {
    content: "";
    display: block;
    height: 11px;
}

.filter-clear-button {
    justify-self: end;
}

.filter-clear-button.is-loading {
    pointer-events: none;
}

.filter-clear-button:disabled {
    opacity: 0.55;
    cursor: default;
}

.module-loading-panel {
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: var(--ui-muted);
    text-align: left;
}

.module-loading-icon {
    color: var(--ui-blue-700);
    font-size: 20px;
    line-height: 1;
}

.module-loading-panel h2 {
    margin: 0 0 4px;
    color: var(--text);
    font-size: 18px;
}

.module-loading-panel p {
    margin: 0;
    font-size: 13px;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.panel-header h2,
.module-tile h3 {
    margin: 0;
    font-size: 18px;
}

.panel-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    background: #fff;
}

.seguimiento-table-wrap {
    min-height: 320px;
    max-height: calc(100vh - 288px);
    overflow: auto;
    border: 1px solid var(--ui-border);
    border-radius: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table-standar {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    color: var(--ui-text);
    font-size: 12px;
}

.table-standar thead th {
    position: sticky;
    top: 0;
    z-index: 5;
    padding: 5px 4px;
    border-top: 1px solid var(--line);
    border-right: 0;
    border-bottom: 1px solid var(--line);
    border-left: 0;
    background: #f3f6f8;
    color: var(--muted);
    font-size: 10px;
    font-weight: 650;
    line-height: 1.1;
    text-align: left;
    text-transform: uppercase;
    vertical-align: bottom;
    white-space: normal;
}

.table-standar th,
.table-standar td {
    padding: 5px 4px;
    border-right: 0;
    border-left: 0;
    line-height: 1.15;
    white-space: normal;
    overflow-wrap: anywhere;
}

.table-standar td {
    border-bottom: 1px solid var(--line);
    background: #ffffff;
    color: var(--ui-text);
    text-align: center;
    vertical-align: middle;
}

.table-standar th > *,
.table-standar td > * {
    max-width: 100%;
}

.table-standar thead th:first-child,
.table-standar tbody td:first-child {
    border-left: 1px solid var(--line);
}

.table-standar thead th:last-child,
.table-standar tbody td:last-child {
    border-right: 1px solid var(--line);
}

.table-standar tbody tr:hover td {
    background: #f8fafc;
}

.table-standar-dashboard td:nth-child(1),
.table-standar-dashboard td:nth-child(2),
.table-standar-dashboard td:nth-child(4) {
    text-align: left;
}

.table-standar-contacto td:nth-child(1),
.table-standar-contacto td:nth-child(2),
.table-standar-contacto td:nth-child(3),
.table-standar-contacto td:nth-child(5) {
    text-align: left;
}

.table-standar .seguimiento-status-cell {
    padding: 5px 4px;
    text-align: center;
}

.seguimiento-table.table-standar th,
.seguimiento-table.table-standar td {
    padding: 5px 4px;
    line-height: 1.15;
}

.seguimiento-table.table-standar thead th {
    padding-top: 5px;
    padding-bottom: 5px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #f3f6f8;
    color: var(--muted);
    font-size: 10px;
    font-weight: 650;
    line-height: 1.1;
    text-align: left;
    text-transform: uppercase;
    vertical-align: bottom;
    box-shadow: none;
}

.seguimiento-table.table-standar .seguimiento-date-cell {
    padding: 5px 4px;
    text-align: center;
}

.table-standar .status-pill {
    width: 76px;
    min-width: 76px;
    min-height: 24px;
    border-color: #a7d3d1;
    border-radius: 4px;
    background: #e2f1f0;
    color: #075c63;
    font-size: 10px;
    font-weight: 500;
}

.seguimiento-table {
    width: 100%;
    table-layout: fixed;
    min-width: 1120px;
}

.seguimiento-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    border-bottom: 1px solid var(--line);
    background: #f5f7f8;
    box-shadow: 0 1px 0 var(--line);
}

.contacto-table {
    table-layout: fixed;
    min-width: 560px;
}

.contacto-view .table-wrap,
.asignacion-table-wrap,
.operadores-table-wrap,
.etapas-table-wrap {
    border: 1px solid var(--ui-border);
    border-radius: 10px;
    background: #fff;
}

.contacto-view .table-wrap {
    min-height: 0;
    overflow-y: auto;
    overflow-x: auto;
}

.seguimiento-table .col-rbd {
    width: 6%;
}

.contacto-table .col-operador {
    width: 104px;
}

.contacto-table .col-rbd {
    width: 64px;
}

.seguimiento-table .col-establecimiento {
    width: 24%;
}

.seguimiento-table .col-region {
    width: 5%;
}

.contacto-table .col-establecimiento {
    width: auto;
}

.contacto-table .col-region {
    width: 46px;
}

.seguimiento-table .col-comuna {
    width: 11%;
}

.contacto-table .col-comuna {
    width: 108px;
}

.contacto-table .col-invitacion {
    width: 105px;
}

.contacto-table th:nth-child(6),
.contacto-table td:nth-child(6) {
    text-align: center;
}

.seguimiento-table .col-estado {
    width: 10%;
}

.seguimiento-table .col-date {
    width: 6%;
}

.seguimiento-table th:nth-child(2),
.seguimiento-table td:nth-child(2),
.seguimiento-table th:nth-child(3),
.seguimiento-table td:nth-child(3),
.seguimiento-table th:nth-child(4),
.seguimiento-table td:nth-child(4),
.contacto-table th,
.contacto-table td {
    white-space: normal;
    overflow-wrap: anywhere;
}

.seguimiento-table th:nth-child(-n+4),
.seguimiento-table td:nth-child(-n+4) {
    font-size: 0.8rem;
}

.contacto-table td:nth-child(3),
.contacto-table td:nth-child(4),
.contacto-table td:nth-child(5),
.contacto-table td:nth-child(6) {
    font-size: 0.8rem;
    line-height: 1.25;
}

.contacto-ee-name {
    display: -webkit-box;
    max-height: 2.5em;
    overflow: hidden;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.contacto-row {
    cursor: pointer;
    transition: background 0.18s;
}

.contacto-row:hover,
.contacto-row.is-selected {
    background: var(--ui-blue-100);
}

.contacto-estado-cell {
    text-align: center;
}

.contacto-estado-icons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 84px;
}

.contacto-estado-icons i {
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1;
}

.contacto-estado-icons i.is-muted {
    color: var(--ui-neutral);
}

.contacto-estado-icons i.is-warning {
    color: var(--ui-warning);
}

.contacto-estado-icons i.is-success {
    color: var(--ui-success);
}

.contacto-estado-icons i.is-danger {
    color: var(--ui-danger);
}

th,
td {
    padding: 11px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    white-space: nowrap;
}

th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: normal;
    line-height: 1.25;
}

th.sortable-heading {
    cursor: pointer;
    user-select: none;
    transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.seguimiento-resizable-header {
    position: relative;
    padding-right: 20px;
}

.column-resize-handle {
    position: absolute;
    top: 0;
    right: 0;
    width: 14px;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: col-resize;
    z-index: 8;
    touch-action: none;
}

.column-resize-handle::after {
    content: none;
    position: absolute;
    top: 16%;
    bottom: 16%;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: rgba(100, 116, 139, 0.38);
    transition: background 0.16s ease, width 0.16s ease;
}

.seguimiento-resizable-header:hover .column-resize-handle::after,
.column-resize-handle:focus-visible::after {
    width: 3px;
    background: rgba(45, 102, 130, 0.6);
}

.column-resize-handle:focus-visible {
    outline: none;
}

body.is-resizing-column {
    cursor: col-resize;
    user-select: none;
}

th.sortable-heading:hover,
th.sortable-heading:focus-visible {
    background: #eceff7;
    color: var(--ui-blue-700);
    outline: none;
}

th.sortable-heading.is-sorted {
    color: var(--ui-blue-700);
}

th.sortable-heading.is-sort-tapping {
    animation: sortable-header-tap 0.18s ease-out;
}

@keyframes sortable-header-tap {
    0% {
        transform: scale(1);
    }
    45% {
        transform: scale(0.985);
    }
    100% {
        transform: scale(1);
    }
}

thead th {
    background: #f5f7f8;
    border-bottom: 0;
    box-shadow: none;
}

tbody td {
    border-bottom: 1px solid var(--line);
}

table thead th,
.seguimiento-table thead th,
.contacto-table thead th,
.asignacion-table thead th,
.operadores-table thead th,
.etapas-table thead th,
.estudiantes-table thead th,
.aplicacion-table thead th,
.aplicacion-lime-table thead th {
    border-bottom: 0;
    box-shadow: none;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    min-width: 92px;
    min-height: 22px;
    border-radius: 999px;
    padding: 0 8px;
    border: 1px solid #d8e1e4;
    background: #f6f8f9;
    color: #4d6068;
    font-size: 11px;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
}

.seguimiento-status-cell {
    background: #fff;
    text-align: center;
    transition: background 0.18s ease;
    padding: 8px 6px;
}

.seguimiento-date-cell {
    background: #fff;
    color: var(--ui-text);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.25;
    text-align: left;
    white-space: normal;
    padding: 8px 6px;
}

.seguimiento-date-cell span {
    display: block;
}

.seguimiento-date-cell.is-muted {
    color: #747b86;
}

.seguimiento-status-cell .status-pill {
    max-width: 100%;
}

.seguimiento-table th,
.seguimiento-table td {
    padding: 8px 6px;
}

.seguimiento-establecimiento-text {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    text-overflow: ellipsis;
    line-height: 1.2;
    max-height: calc(1.2em * 2);
}

.seguimiento-table thead th {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    line-height: 1.25;
    text-transform: uppercase;
    padding-top: 9px;
    padding-bottom: 9px;
    vertical-align: bottom;
    box-shadow: inset 0 -1px 0 var(--line);
}

.seguimiento-status-cell.status-accepted .status-pill {
    background: var(--ui-success-bg);
    border-color: var(--ui-success-border);
    color: #2f7f2b;
}

.seguimiento-status-cell.status-rejected .status-pill {
    background: var(--ui-danger-bg);
    border-color: var(--ui-danger-border);
    color: #963d38;
}

.seguimiento-status-cell.status-pending .status-pill {
    background: var(--ui-neutral-bg);
    border-color: var(--ui-neutral-border);
    color: #666c72;
}

.seguimiento-status-cell.status-planned .status-pill {
    background: var(--ui-warning-bg);
    border-color: var(--ui-warning-border);
    color: #8c651e;
}

.seguimiento-status-cell.status-done .status-pill {
    background: var(--ui-info-bg);
    border-color: var(--ui-info-border);
    color: #176ba5;
}

.seguimiento-status-cell.status-postponed .status-pill {
    background: #f0edf6;
    border-color: #cfc4df;
    color: #63517d;
}

.seguimiento-status-cell.status-muted .status-pill {
    background: var(--ui-neutral-bg);
    border-color: var(--ui-neutral-border);
    color: #6a7076;
}

.seguimiento-status-cell.status-plain span {
    display: inline-block;
    color: var(--ui-muted);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.25;
}

.seguimiento-row-rejected td:nth-child(n+5) {
    color: #747b86;
}

.table-pagination {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--ui-muted);
    font-size: 13px;
    font-weight: 700;
}

.pagination-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.pagination-button {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--ui-border);
    border-radius: 8px;
    background: #fff;
    color: var(--ui-blue-600);
}

.pagination-button:hover:not(:disabled) {
    background: var(--ui-blue-100);
    border-color: var(--ui-blue-300);
    color: var(--ui-blue-700);
}

.contacto-panel,
.contacto-ficha-panel {
    display: grid;
    gap: 16px;
    padding: 24px 28px;
}

.contacto-panel {
    grid-template-rows: auto auto minmax(0, 1fr);
}

.contacto-panel-clean {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.contacto-section-title {
    margin: 0;
    color: var(--text);
    font-size: 17px;
    font-weight: 650;
    line-height: 1.25;
}

.contacto-lab-view {
    display: grid;
    gap: 16px;
    width: 100%;
    min-width: 0;
}

.contacto-lab-tabs {
    display: flex;
    align-items: flex-end;
    gap: 26px;
    min-height: 32px;
    margin-bottom: 8px;
    border-bottom: 1px solid transparent;
}

.contacto-lab-tab {
    appearance: none;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--ui-muted);
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    padding: 0 0 9px;
}

.contacto-lab-tab.is-active {
    border-bottom-color: var(--ui-purple-600);
    color: var(--text);
}

.contacto-lab-filter-band {
    padding: 0 0 0 18px;
}

.contacto-lab-ratios-band {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.12fr) minmax(0, 1.12fr) minmax(0, 0.86fr);
    gap: 12px;
    padding-left: 18px;
}

.contacto-lab-ratios-band.is-collapsed {
    display: none;
}

.contacto-lab-ratios-band .metric-group-items {
    height: 132px;
    padding: 12px 8px;
}

.contacto-lab-ratios-band .metric-group-title {
    font-size: 14px;
    font-weight: 700;
}

.contacto-lab-ratios-band .metric-invitation-body {
    grid-template-columns: minmax(92px, 0.72fr) minmax(120px, 1.28fr);
    gap: 6px;
}

.contacto-lab-ratios-band .metric-invitation-card .metric-gauge {
    width: min(108px, 100%);
    min-height: 74px;
}

.contacto-lab-ratios-band .metric-invitation-card .metric-gauge svg {
    height: 60px;
}

.contacto-lab-ratios-band .metric-invitation-card .metric-gauge strong.metric-gauge-footer {
    color: #556678;
    font-size: 12px;
    margin-top: -6px;
}

.contacto-lab-ratios-band .metric-gauge-progress.is-contactado,
.contacto-lab-ratios-band .metric-gauge-progress.is-realizada,
.contacto-lab-ratios-band .metric-gauge-progress.is-aceptan {
    stroke: var(--chart-success);
}

.contacto-lab-ratios-band .metric-gauge-progress.is-agendada {
    stroke: var(--chart-primary);
}

.contacto-lab-ratios-band .metric-gauge-progress.is-sin_contacto,
.contacto-lab-ratios-band .metric-gauge-progress.is-sin_agendar {
    stroke: var(--chart-warning);
}

.contacto-lab-ratios-band .metric-gauge-progress.is-rechazan {
    stroke: var(--chart-danger);
}

.contacto-lab-ratios-band .metric-gauge-progress.is-pendientes {
    stroke: var(--chart-warning);
}

.contacto-lab-ratios-band .metric-gauge-progress.is-no_aplica {
    stroke: #777777;
}

.contacto-lab-ratios-band .invitation-dot-options {
    gap: 5px;
}

.contacto-lab-ratios-band .invitation-dot.is-agendada i {
    background: var(--chart-primary);
}

.contacto-lab-ratios-band .invitation-dot.is-contactado i,
.contacto-lab-ratios-band .invitation-dot.is-realizada i,
.contacto-lab-ratios-band .invitation-dot.is-aceptan i {
    background: var(--chart-success);
}

.contacto-lab-ratios-band .invitation-dot.is-sin_contacto i,
.contacto-lab-ratios-band .invitation-dot.is-sin_agendar i {
    background: var(--chart-warning);
}

.contacto-lab-ratios-band .invitation-dot.is-rechazan i {
    background: var(--chart-danger);
}

.contacto-lab-ratios-band .invitation-dot.is-pendientes i {
    background: var(--chart-warning);
}

.contacto-lab-ratios-band .invitation-dot.is-no_aplica i {
    background: #777777;
}

.contacto-lab-ratios-band .invitation-dot span {
    color: #4f6072;
    font-size: 12.5px;
    line-height: 1.18;
    white-space: normal;
}

.contacto-lab-ratios-band .invitation-dot strong {
    font-size: 12.5px;
    font-weight: 700;
}

.contacto-lab-ratios-band .invitation-dot strong {
    color: #2f3742;
}

.metric-group-contacto-reunion-ratio,
.metric-group-contacto-detalle-ratio {
    cursor: pointer;
}

.contacto-lab-filters {
    display: flex;
    gap: 12px;
    align-items: end;
    min-width: 0;
    overflow: visible;
    padding-bottom: 2px;
}

.contacto-lab-filters label {
    display: grid;
    gap: 8px;
    min-width: 0;
    margin: 0;
    flex: 1 1 120px;
}

.contacto-lab-filters label:first-child {
    flex: 1.4 1 190px;
    min-width: 180px;
}

.contacto-lab-search .input-field {
    padding-right: 34px;
}

.contacto-lab-filters .multi-filter-control,
.contacto-lab-filters .multi-filter-button,
.contacto-lab-filters .input-field {
    width: 100%;
    min-height: 40px;
}

.contacto-lab-table-wrap.is-collapsed {
    display: none;
}

.contacto-lab-filter-band.is-collapsed {
    display: none;
}

.contacto-lab-table-wrap {
    max-height: 520px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.contacto-lab-table {
    --contacto-col-operador: 123px;
    --contacto-col-rbd: 49px;
    --contacto-col-establecimiento: auto;
    --contacto-col-establecimiento-min: 260px;
    --contacto-col-reg: 40px;
    --contacto-col-comuna: 90px;
    --contacto-col-contacto: 90px;
    --contacto-col-reunion: 90px;
    --contacto-col-fecha-reunion: 60px;
    --contacto-col-participacion: 90px;
    --contacto-col-fecha-participacion: 60px;
    --contacto-col-colaborador: 90px;
    --contacto-col-fecha-colaborador: 60px;
    width: 100%;
    min-width: calc(
        var(--contacto-col-operador)
        + var(--contacto-col-rbd)
        + var(--contacto-col-establecimiento-min)
        + var(--contacto-col-reg)
        + var(--contacto-col-comuna)
        + var(--contacto-col-contacto)
        + var(--contacto-col-reunion)
        + var(--contacto-col-fecha-reunion)
        + var(--contacto-col-participacion)
        + var(--contacto-col-fecha-participacion)
        + var(--contacto-col-colaborador)
        + var(--contacto-col-fecha-colaborador)
    );
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    border: 0;
    background: #ffffff;
    color: var(--ui-text);
    font-size: 12px;
}

.contacto-lab-col-operador {
    width: var(--contacto-col-operador);
}

.contacto-lab-col-rbd {
    width: var(--contacto-col-rbd);
}

.contacto-lab-col-establecimiento {
    width: var(--contacto-col-establecimiento);
}

.contacto-lab-col-reg {
    width: var(--contacto-col-reg);
}

.contacto-lab-col-comuna {
    width: var(--contacto-col-comuna);
}

.contacto-lab-col-contacto {
    width: var(--contacto-col-contacto);
}

.contacto-lab-col-reunion {
    width: var(--contacto-col-reunion);
}

.contacto-lab-col-fecha-reunion {
    width: var(--contacto-col-fecha-reunion);
}

.contacto-lab-col-participacion {
    width: var(--contacto-col-participacion);
}

.contacto-lab-col-fecha-participacion {
    width: var(--contacto-col-fecha-participacion);
}

.contacto-lab-col-colaborador {
    width: var(--contacto-col-colaborador);
}

.contacto-lab-col-fecha-colaborador {
    width: var(--contacto-col-fecha-colaborador);
}

.contacto-lab-table th,
.contacto-lab-table td {
    padding: 6px 6px;
    vertical-align: middle;
    border: 0;
    border-bottom: 1px solid var(--line);
    line-height: 1.18;
    white-space: normal;
    overflow-wrap: anywhere;
}

.contacto-lab-table td:nth-child(1),
.contacto-lab-table td:nth-child(2),
.contacto-lab-table td:nth-child(3),
.contacto-lab-table td:nth-child(5) {
    text-align: left;
}

.contacto-lab-table th:nth-child(4),
.contacto-lab-table td:nth-child(4),
.contacto-lab-table th:nth-child(6),
.contacto-lab-table td:nth-child(6),
.contacto-lab-table th:nth-child(7),
.contacto-lab-table td:nth-child(7),
.contacto-lab-table th:nth-child(8),
.contacto-lab-table td:nth-child(8),
.contacto-lab-table th:nth-child(9),
.contacto-lab-table td:nth-child(9),
.contacto-lab-table th:nth-child(10),
.contacto-lab-table td:nth-child(10),
.contacto-lab-table th:nth-child(11),
.contacto-lab-table td:nth-child(11),
.contacto-lab-table th:nth-child(12),
.contacto-lab-table td:nth-child(12) {
    text-align: center;
}

.contacto-lab-table td.seguimiento-status-cell {
    background: transparent;
}

.contacto-lab-date-cell {
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
}

.contacto-lab-table th {
    position: sticky;
    z-index: 2;
    top: 0;
    vertical-align: bottom;
    white-space: normal;
    line-height: 1.1;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #f3f6f8;
    color: var(--muted);
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 0;
    text-align: left;
    text-transform: uppercase;
    box-shadow: none;
}

.contacto-lab-table th:nth-child(9) {
    background: #e5eef4;
    color: #37566a;
}

.contacto-lab-table .seguimiento-status-cell.status-done .status-pill {
    background: var(--ui-success-bg);
    border-color: var(--ui-success-border);
    color: #2f7f2b;
}

.contacto-lab-table .seguimiento-status-cell.status-planned .status-pill {
    background: var(--ui-info-bg);
    border-color: var(--ui-info-border);
    color: #176ba5;
}

.contacto-lab-table .seguimiento-status-cell.status-rejected .status-pill {
    background: var(--ui-danger-bg);
    border-color: var(--ui-danger-border);
    color: #963d38;
}

.contacto-lab-table tbody tr:last-child td {
    border-bottom: 0;
}

.contacto-lab-row {
    cursor: pointer;
}

.contacto-lab-table .contacto-lab-row td {
    background: #ffffff;
}

.contacto-lab-table .contacto-lab-row:hover td {
    background: #f8fafc;
}

.contacto-lab-table .contacto-lab-row.is-selected td {
    background: #edf7fb;
    color: var(--ui-text);
}

.contacto-lab-table .contacto-lab-row.is-selected td:first-child {
    box-shadow: inset 4px 0 0 #59abc3;
}

.contacto-lab-table .contacto-lab-row.is-loading td {
    height: 54px;
    background: #edf7fb;
    color: #3f7680;
    text-align: left;
}

.contacto-lab-table td,
.contacto-lab-table .seguimiento-status-cell,
.contacto-lab-table .status-pill {
    transition: background 120ms ease, color 120ms ease !important;
}

.contacto-lab-ficha {
    display: grid;
    gap: 14px;
    padding: 0;
}

.contacto-lab-ficha-header h2 {
    margin: 0;
    color: var(--text);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
}

.contacto-lab-ficha-header {
    display: block;
    padding-bottom: 0;
}

.contacto-lab-ficha-grid {
    display: grid;
    grid-template-columns: minmax(0, 35%) minmax(0, 65%);
    gap: 22px;
    align-items: start;
    margin-top: 0;
}

.contacto-lab-ficha-column {
    display: grid;
    gap: 18px;
    min-width: 0;
    padding: 0;
}

.contacto-lab-ficha-column:first-child {
    padding-left: 0;
}

.contacto-lab-inner-tabs {
    display: flex;
    align-items: flex-end;
    gap: 0;
    min-width: 0;
    border-bottom: 2px solid var(--ui-border);
}

.contacto-lab-inner-tab {
    min-height: 38px;
    border: 0;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    padding: 0 16px;
    background: transparent;
    color: var(--ui-muted);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.contacto-lab-inner-tab.is-active {
    border-bottom-color: var(--ui-blue-600);
    color: var(--ui-blue-700);
}

.contacto-lab-inner-panel {
    display: none;
    min-width: 0;
}

.contacto-lab-inner-panel.is-active {
    display: grid;
    gap: 16px;
}

.task-estados,
.task-registro_contacto,
.task-datos_establecimiento,
.task-datos_preliminares {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.contacto-lab-estados-box {
    display: grid;
    gap: 8px;
    margin: 0 0 4px;
}

.contacto-lab-estados-box .ficha-section {
    padding: 10px;
    border: 1px solid #d8cdec;
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
}

.contacto-lab-estados-box .ficha-section + .ficha-section {
    border-top: 1px solid #d8cdec;
}

.contacto-lab-estados-box + .ficha-section {
    border-top: 0;
    padding-top: 0;
}

.contacto-lab-main-column {
    grid-template-columns: 1fr;
}

.contacto-lab-datos-grid-shell {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
}

.contacto-lab-datos-grid {
    grid-template-columns: 1fr;
}

.contacto-lab-datos-form {
    padding-top: 0;
    border-top: 0;
}

.contacto-lab-datos-form .form-actions {
    justify-content: flex-end;
}

.contacto-lab-estado-contacto {
    display: grid;
    grid-template-columns: minmax(0, 40%) minmax(0, 60%);
    gap: 10px;
    align-items: start;
}

.contacto-lab-state-head {
    display: grid;
    grid-template-columns: minmax(0, 40%) minmax(0, 60%);
    gap: 10px;
    align-items: start;
}

.contacto-lab-state-head h3,
.contacto-lab-estado-contacto h3 {
    margin: 0;
    justify-self: start;
    text-align: left;
}

.contacto-reunion-select {
    background-color: #f3f4f6;
    color: var(--ui-text);
}

.contacto-lab-pendiente {
    border-top: 1px solid var(--ui-border);
    min-height: 120px;
    padding-top: 18px;
    color: var(--ui-muted);
}

.contacto-filter-band {
    padding: 0 0 0 18px;
    border-left: 4px solid var(--ui-blue-600);
}

.contacto-filter-band h3 {
    margin: 0 0 8px;
    color: var(--ui-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.contacto-ficha-panel {
    position: relative;
    top: auto;
    align-content: start;
}

.contacto-ficha-panel .panel-header {
    margin-bottom: 2px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ui-border);
}

.contacto-ficha-panel .panel-header h2 {
    color: var(--ui-blue-700);
    font-size: 17px;
    font-weight: 700;
}

.contacto-view .table-wrap,
.contacto-ficha-panel {
    scrollbar-width: thin;
    scrollbar-color: rgba(111, 154, 194, 0.5) transparent;
}

.contacto-view .table-wrap::-webkit-scrollbar,
.contacto-ficha-panel::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.contacto-view .table-wrap::-webkit-scrollbar-track,
.contacto-ficha-panel::-webkit-scrollbar-track {
    background: transparent;
}

.contacto-view .table-wrap::-webkit-scrollbar-thumb,
.contacto-ficha-panel::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(111, 154, 194, 0.42);
}

.contacto-view .table-wrap::-webkit-scrollbar-thumb:hover,
.contacto-ficha-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(78, 128, 174, 0.6);
}

.contacto-empty-ficha {
    min-height: 260px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 6px;
    color: var(--ui-muted);
    text-align: center;
    border: 1px dashed var(--ui-border);
    border-radius: 12px;
    background: var(--ui-blue-50);
}

.contacto-empty-ficha strong {
    color: var(--ui-text);
}

.ficha-section {
    display: grid;
    gap: 14px;
    padding-top: 18px;
    border-top: 1px solid var(--ui-border);
}

.ficha-section:first-child {
    padding-top: 0;
    border-top: 0;
}

.contacto-lab-estados-box > .ficha-section:first-child {
    padding-top: 10px;
    border-top: 1px solid #d8cdec;
}

.contacto-ficha-panel .panel-header + .ficha-section {
    padding-top: 0;
    border-top: 0;
}

.ficha-section-clean {
    gap: 16px;
}

.ficha-section h3,
.ficha-section-title h3 {
    margin: 0;
    font-size: 15px;
    color: var(--ui-blue-700);
}

.ficha-status-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 24px;
    align-items: start;
}

.contacto-estado-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 22px;
    align-items: stretch;
}

.contacto-estado-card {
    display: grid;
    align-content: start;
    gap: 12px;
    min-width: 0;
}

.contacto-estado-card + .contacto-estado-card {
    border-left: 1px solid var(--ui-border);
    padding-left: 22px;
}

.contacto-estado-card h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--ui-blue-700);
}

.contacto-participacion-state {
    display: grid;
}

.contacto-lab-estados-box .state-button[data-state-value="Pendiente"].is-active {
    background: var(--ui-warning-bg);
    box-shadow: inset 0 0 0 1px var(--ui-warning-border);
    color: #8c651e;
}

.contacto-lab-estados-box .state-button[data-state-value="Acepta"].is-active {
    background: var(--ui-info-bg);
    box-shadow: inset 0 0 0 1px var(--ui-info-border);
    color: #176ba5;
}

.contacto-lab-estados-box .state-button[data-state-value="Realizado"].is-active {
    background: var(--ui-info-bg);
    box-shadow: inset 0 0 0 1px var(--ui-info-border);
    color: #176ba5;
}

.contacto-lab-estados-box .state-button[data-state-value="Rechaza"].is-active {
    background: var(--ui-danger-bg);
    box-shadow: inset 0 0 0 1px var(--ui-danger-border);
    color: #963d38;
}

.contacto-lab-estados-column .primary-button,
.contacto-lab-main-column .primary-button,
.contacto-lab-estados-column .soft-button:not(.icon-button-only),
.contacto-lab-main-column .soft-button:not(.icon-button-only) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 112px;
    width: 112px;
    min-height: 38px;
    border-color: var(--ui-blue-600);
    background: var(--ui-blue-600);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 400;
}

.contacto-lab-estados-column .primary-button:hover,
.contacto-lab-main-column .primary-button:hover,
.contacto-lab-estados-column .soft-button:not(.icon-button-only):hover,
.contacto-lab-main-column .soft-button:not(.icon-button-only):hover {
    border-color: var(--ui-blue-700);
    background: var(--ui-blue-700);
    color: #fff;
}

.contacto-lab-estados-column .primary-button:disabled,
.contacto-lab-main-column .primary-button:disabled,
.contacto-lab-estados-column .soft-button:not(.icon-button-only):disabled,
.contacto-lab-main-column .soft-button:not(.icon-button-only):disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.contacto-reunion-picker-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.contacto-reunion-mail-row,
.contacto-participacion-mail-row {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.contacto-participacion-send {
    width: 112px;
    min-width: 112px;
    white-space: nowrap;
}

.contacto-participacion-envio {
    min-height: 40px;
}

.contacto-registro-title {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
}

.contacto-registro-title .state-button-group {
    width: 214px;
    justify-self: end;
}

.contacto-reunion-box {
    display: grid;
    gap: 12px;
}

.contacto-reunion-legacy-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.contacto-reunion-legacy-grid label {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.contacto-reunion-legacy-grid label > span {
    color: var(--ui-muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.contacto-reunion-box-legacy .state-button {
    min-height: 38px;
    padding: 0 9px;
    font-size: 12px;
}

.contacto-reunion-select-shell {
    min-width: 0;
}

.contacto-reunion-send {
    width: 112px;
    min-width: 112px;
    white-space: nowrap;
}

.contacto-reunion-state-wrap {
    position: relative;
}

.contacto-reunion-state,
.contacto-reunion-state-option {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    background: #f1f5f9;
    color: #475569;
}

.contacto-reunion-state.is-pendiente,
.contacto-reunion-state-option.is-pendiente {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
}

.contacto-reunion-state.is-confirma,
.contacto-reunion-state-option.is-confirma,
.contacto-reunion-state.is-agendada,
.contacto-reunion-state-option.is-agendada {
    background: #fef3c7;
    border-color: #fde68a;
    color: #92400e;
}

.contacto-reunion-state.is-participa,
.contacto-reunion-state-option.is-participa,
.contacto-reunion-state.is-realizada,
.contacto-reunion-state-option.is-realizada {
    background: #dcfce7;
    border-color: #86efac;
    color: #166534;
}

.contacto-reunion-state-menu {
    position: absolute;
    z-index: 25;
    top: calc(100% + 6px);
    left: 0;
    display: flex;
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--ui-border);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.contacto-reunion-state-option {
    flex: 0 0 40px;
}

.contacto-reunion-envio {
    display: grid;
    gap: 2px;
    min-width: 0;
    max-width: 100%;
    color: var(--ui-muted);
    font-size: 12px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.contacto-reunion-envio span {
    overflow-wrap: anywhere;
}

.modal-help {
    margin: 0;
    color: var(--ui-muted);
    font-size: 13px;
    line-height: 1.45;
}

.contacto-historial-wrap {
    max-height: 220px;
    overflow: auto;
}

.contacto-lab-registro {
    grid-template-rows: minmax(0, 1fr) auto;
    height: 65vh;
    min-height: 420px;
    padding-top: 0;
    border-top: 0;
}

.contacto-lab-registro .contacto-historial-wrap {
    max-height: none;
    height: 100%;
}

.contacto-registro-actions {
    display: flex;
    justify-content: flex-end;
}

.contacto-lab-ficha .funcionarios-table,
.contacto-lab-ficha .contacto-historial-table {
    border-collapse: collapse;
}

.contacto-lab-funcionarios-wrap,
.contacto-lab-ficha .contacto-historial-wrap {
    border: 1px solid var(--ui-border);
    border-radius: 8px;
    background: #fff;
}

.contacto-lab-funcionarios {
    gap: 10px;
}

.contacto-lab-funcionarios-title {
    min-height: 20px;
}

.contacto-lab-funcionarios-strip {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
}

.contacto-lab-funcionario-tab {
    flex: 0 0 auto;
    max-width: 148px;
    min-height: 28px;
    border: 1px solid var(--ui-border);
    border-radius: 999px;
    padding: 0 10px;
    background: #fff;
    color: var(--ui-muted);
    font-size: 12px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.contacto-lab-funcionario-tab.is-active {
    border-color: var(--ui-blue-300);
    background: var(--ui-blue-100);
    color: var(--ui-blue-700);
}

.contacto-lab-add-round {
    flex: 0 0 26px;
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    min-width: 26px;
    min-height: 26px;
    border: 2px solid var(--ui-blue-600);
    border-radius: 50%;
    padding: 0;
    background: #fff;
    color: var(--ui-blue-600);
    font-size: 11px;
    line-height: 1;
    cursor: pointer;
}

.contacto-lab-add-round:hover {
    background: var(--ui-blue-600);
    color: #fff;
}

.contacto-lab-add-round:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.contacto-lab-funcionario-empty {
    color: var(--ui-muted);
    font-size: 13px;
}

.contacto-lab-funcionario-card {
    display: grid;
    gap: 3px;
    min-height: 78px;
    border: 1px solid var(--ui-border);
    border-radius: 8px;
    padding: 12px 14px;
    background: var(--ui-blue-50);
    color: var(--ui-text);
}

.contacto-lab-funcionario-card:not(.is-empty) {
    cursor: pointer;
}

.contacto-lab-funcionario-card strong {
    font-size: 1rem;
    font-weight: 550;
    line-height: 1.25;
}

.contacto-lab-funcionario-phones {
    color: var(--ui-text);
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.3;
}

.contacto-lab-funcionario-emails,
.contacto-lab-funcionario-card.is-empty {
    color: var(--ui-muted);
    font-size: 0.8rem;
    font-weight: 380;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.contacto-historial-table {
    table-layout: fixed;
}

.contacto-historial-table th:nth-child(1) {
    width: 110px;
}

.contacto-historial-table th:nth-child(2) {
    width: 140px;
}

.contacto-historial-head-detail {
    display: block;
}

.contacto-historial-add {
    position: absolute;
    top: 50%;
    right: 10px;
    width: 104px;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 7px;
    font-size: 12px;
    line-height: 1;
    transform: translateY(-50%);
}

.contacto-historial-table th:nth-child(3) {
    position: relative;
    padding-right: 126px;
}

.contacto-lab-registro .contacto-historial-table th:nth-child(3) {
    padding-right: 8px;
}

.contacto-registro-title .contacto-historial-add {
    position: static;
    top: auto;
    right: auto;
    width: 112px;
    transform: none;
}

.contacto-registro-actions .contacto-historial-add {
    position: static;
    top: auto;
    right: auto;
    width: 112px;
    transform: none;
}

.contacto-historial-table th,
.contacto-historial-table td {
    white-space: normal;
    overflow-wrap: anywhere;
    vertical-align: top;
}

.contacto-historial-responsable {
    display: block;
    margin-top: 2px;
    color: var(--ui-muted);
    font-size: 12px;
    line-height: 1.25;
}

.state-button-group {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border: 1px solid var(--ui-border);
    border-radius: 10px;
    background: #fff;
}

.state-button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 38px;
    border: 0;
    border-right: 1px solid var(--ui-border);
    border-radius: 0;
    padding: 0 13px;
    color: var(--ui-text);
    background: transparent;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background 0.18s, color 0.18s;
}

.state-button:last-child {
    border-right: 0;
}

.state-button:hover {
    color: var(--ui-blue-700);
    background: var(--ui-blue-50);
}

.state-button.is-active {
    color: #fff;
    background: var(--ui-blue-600);
    box-shadow: inset 0 0 0 1px var(--ui-blue-600);
}

.text-area {
    min-height: 92px;
    line-height: 1.45;
    resize: vertical;
}

.text-area-compact {
    min-height: 74px;
    border-radius: 10px;
    background: #fff;
}

.datos-grid,
.modal-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.full-field {
    grid-column: 1 / -1;
}

.is-hidden {
    display: none !important;
}

.funcionarios-table {
    table-layout: fixed;
}

.funcionarios-table th,
.funcionarios-table td {
    white-space: normal;
    overflow-wrap: anywhere;
}

.funcionario-row {
    cursor: pointer;
    transition: background 0.18s;
}

.funcionario-row:hover {
    background: var(--ui-blue-100);
}

.contacto-lab-prelim-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
}

.contacto-lab-prelim-section {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.contacto-lab-prelim-section + .contacto-lab-prelim-section {
    border-top: 1px solid var(--ui-border);
    padding-top: 18px;
}

.contacto-lab-prelim-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    border-bottom: 0;
    padding-bottom: 8px;
    color: var(--ui-blue-700);
    font-size: 14px;
    font-weight: 700;
}

.contacto-lab-prelim-add {
    width: 112px;
    min-width: 112px;
    flex: 0 0 112px;
}

.contacto-lab-cursos-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.contacto-lab-curso-card {
    display: grid;
    gap: 10px;
    min-width: 0;
    border: 1px solid var(--ui-border);
    border-radius: 8px;
    padding: 12px;
    background: #fff;
}

.contacto-lab-curso-card h4 {
    margin: 0;
    color: var(--ui-blue-700);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.contacto-lab-curso-inputs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.contacto-lab-curso-inputs label {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.contacto-lab-curso-inputs label > span {
    color: var(--ui-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.1;
    text-transform: uppercase;
}

.contacto-lab-prelim-table-wrap {
    max-height: 360px;
    border: 1px solid var(--ui-border);
    border-radius: 8px;
    overflow: auto;
}

.contacto-lab-prelim-table {
    min-width: 100%;
    table-layout: fixed;
}

.contacto-lab-infra-table {
    min-width: 640px;
}

.contacto-lab-infra-col-nombre {
    width: 18%;
}

.contacto-lab-infra-col-cantidad {
    width: 72px;
}

.contacto-lab-infra-col-tipo {
    width: 104px;
}

.contacto-lab-infra-col-conectividad {
    width: 116px;
}

.contacto-lab-infra-col-observacion {
    width: auto;
}

.contacto-lab-prelim-table th,
.contacto-lab-prelim-table td {
    white-space: normal;
    overflow-wrap: anywhere;
    vertical-align: middle;
}

.contacto-lab-prelim-table th {
    background: var(--ui-blue-50);
    font-size: 11px;
    line-height: 1.2;
}

.contacto-lab-prelim-table td {
    font-size: 13px;
}

.contacto-prelim-number {
    min-height: 34px;
    -moz-appearance: textfield;
}

.contacto-prelim-number::-webkit-inner-spin-button,
.contacto-prelim-number::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.contacto-infra-check-field {
    display: grid;
    gap: 10px;
    min-width: 0;
    margin: 0 0 12px;
    border: 0;
    padding: 0;
}

.contacto-infra-check-field > span {
    color: var(--ui-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.35px;
    line-height: 1.2;
    text-transform: uppercase;
}

.contacto-infra-checks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    align-items: stretch;
}

.contacto-infra-check {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    width: 100%;
    height: 42px;
    min-height: 42px;
    border: 1px solid var(--ui-border);
    border-radius: 8px;
    padding: 0 10px;
    background: #fff;
    color: var(--ui-text);
    font-size: 0.6rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    user-select: none;
    overflow: hidden;
}

.contacto-infra-check span {
    min-width: 0;
    overflow: hidden;
    display: -webkit-box;
    line-height: 1.15;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.contacto-infra-check:has(input:checked) {
    border-color: var(--ui-blue-300);
    background: var(--ui-blue-100);
    color: var(--ui-blue-700);
}

.contacto-infra-check input {
    align-self: center;
    justify-self: center;
    margin: 0;
    accent-color: var(--ui-blue-600);
}

.asignacion-view {
    display: grid;
    gap: 18px;
}

.asignacion-panel {
    display: grid;
    gap: 18px;
}

.view-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 1px solid var(--ui-border);
}

.view-tab {
    min-height: 40px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: var(--ui-muted);
    padding: 0 12px;
    font-weight: 700;
}

.view-tab.is-active {
    border-bottom-color: var(--ui-blue-600);
    color: var(--ui-blue-700);
}

.asignacion-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr)) 40px;
    gap: 12px;
    align-items: end;
}

.asignacion-filters label {
    display: grid;
    gap: 8px;
}

.asignacion-filters span {
    color: var(--ui-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.35px;
    text-transform: uppercase;
}

.asignacion-filters .filter-clear-slot {
    display: grid;
    grid-template-rows: 17px 40px;
    gap: 8px;
    align-self: stretch;
    align-content: start;
}

.asignacion-filters .filter-clear-slot::before {
    content: '';
    display: block;
}

.asignacion-table {
    min-width: 1160px;
    table-layout: fixed;
}

.asignacion-table-wrap.has-examinadores-open {
    min-height: 360px;
    padding-bottom: 286px;
}

.asignacion-table th:nth-child(1) {
    width: 64px;
}

.asignacion-table th:nth-child(2) {
    width: 210px;
}

.asignacion-table th:nth-child(3),
.asignacion-table th:nth-child(4) {
    width: 170px;
}

.asignacion-table th:nth-child(5),
.asignacion-table th:nth-child(6) {
    width: 245px;
}

.asignacion-table th:nth-child(7) {
    width: 46px;
}

.asignacion-table td {
    white-space: normal;
    vertical-align: top;
    font-size: 0.75rem;
}

.asignacion-table thead th {
    font-size: 0.9rem;
    line-height: 1.15;
}

.asignacion-table .input-field,
.asignacion-table .asignacion-row-select,
.asignacion-table .examinadores-summary-grid span,
.asignacion-table .examinador-check-label {
    font-size: 0.75rem;
}

.asignacion-table .btn-guardar-asignacion-fila {
    width: 34px;
    height: 34px;
    min-height: 34px;
    min-width: 34px;
    padding: 0;
}

.asignacion-row-select.is-unassigned {
    background: #fff8db;
    border-color: #ead58a;
}

.asignacion-row-select.is-unassigned:focus {
    background: #fff8db;
    border-color: #d9b951;
}

.asignacion-row-select[multiple] {
    min-height: 116px;
}

.examinadores-cell {
    position: relative;
}

.examinadores-summary-button {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
}

.examinadores-summary-grid {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 8px;
    min-height: 44px;
    padding: 6px 10px;
    border: 1px solid var(--ui-border);
    border-radius: 6px;
    background: #fff;
}

.examinadores-summary-grid.is-unassigned {
    background: #fff8db;
    border-color: #ead58a;
}

.examinadores-summary-grid strong {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 8px;
    background: #e5e7eb;
    color: var(--ui-blue-700);
    font-size: 12px;
    font-weight: 700;
}

.examinadores-summary-grid.is-unassigned strong {
    background: #f4e6a6;
}

.examinadores-summary-grid span {
    color: var(--ui-text);
    font-size: 12px;
    line-height: 1.25;
}

.examinadores-asignacion-box {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 6;
    width: min(380px, 92vw);
    max-height: 260px;
    overflow: auto;
    border: 1px solid var(--ui-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

.examinadores-cell.align-right .examinadores-asignacion-box {
    right: 0;
    left: auto;
}

.examinadores-asignacion-header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--ui-border);
    background: #fff;
}

.examinadores-asignacion-header strong {
    color: var(--ui-blue-700);
    font-size: 13px;
}

.examinadores-asignacion-table {
    min-width: 100%;
    table-layout: fixed;
}

.examinadores-asignacion-table thead th {
    position: sticky;
    top: 46px;
    z-index: 1;
    background: #f8fafc;
    color: var(--ui-muted);
    font-size: 11px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.examinadores-asignacion-table th:nth-child(2) {
    width: 34px;
    text-align: center;
}

.examinadores-asignacion-table td:nth-child(2) {
    text-align: center;
}

.examinadores-asignacion-table td {
    height: 38px;
    padding: 7px 8px;
    white-space: normal;
    overflow-wrap: anywhere;
}

.examinadores-asignacion-table tr.is-selected td {
    background: #eaf2fb;
}

.examinadores-asignacion-table tr.has-assignments td {
    background: #f8fafc;
}

.examinador-check-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    color: var(--ui-blue-700);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
}

.examinador-check-label input {
    margin-top: 2px;
    flex: 0 0 auto;
}

.asignacion-count-pill {
    display: inline-flex;
    min-width: 30px;
    min-height: 24px;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e5e7eb;
    color: var(--ui-blue-700);
    font-size: 12px;
    font-weight: 700;
}

.operadores-view-clean {
    display: grid;
    gap: 16px;
}

.operadores-view-clean .view-tabs {
    padding: 0;
}

.operadores-layout {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.operadores-panel {
    min-height: 260px;
    border: 1px solid var(--ui-border);
    border-radius: 8px;
    background: #fff;
}

.operadores-panel-header {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--ui-border);
    
    background: #f4f9ff3a;
}

.operadores-panel-header h3 {
    margin: 0;
    color: var(--ui-blue-700);
    font-size: 15px;
    font-weight: 600;
}

.operadores-list {
    max-height: calc(100vh - 330px);
    min-height: 210px;
    overflow: auto;
}

.operadores-list-table {
    table-layout: fixed;
}

.operadores-list-table th:nth-child(2) {
    width: 106px;
    text-align: center;
}

.operadores-list-table td:nth-child(2) {
    text-align: center;
}

.operador-option {
    cursor: pointer;
}

.operadores-list-table th,
.operadores-list-table td,
.operadores-table th,
.operadores-table td {
    height: 44px;
}

.operadores-list-table td {
    color: var(--ui-blue-700);
    font-size: 13px;
    font-weight: 600;
}

.operador-option:hover td {
    background: var(--ui-blue-50);
}

.operador-option.is-active td {
    background: #eaf2fb;
    color: var(--ui-blue-700);
}

.operador-option.is-active td:first-child {
    box-shadow: inset 3px 0 0 var(--ui-blue-600);
}

.operadores-filters {
    grid-template-columns: minmax(120px, 0.8fr) minmax(120px, 0.8fr) minmax(180px, 1.4fr) 40px;
    padding: 14px 16px 10px;
}

.operadores-filters label {
    min-width: 0;
}

.operadores-filters .filter-clear-slot {
    grid-template-rows: 17px 40px;
    gap: 8px;
    align-self: stretch;
    align-content: start;
}

.operadores-filters .filter-clear-slot::before {
    content: '';
    display: block;
}

.operadores-table-wrap {
    max-height: calc(100vh - 390px);
    min-height: 300px;
    overflow: auto;
}

.operadores-establecimientos-panel .operadores-table-wrap {
    border-radius: 0;
}

.asignacion-count-footer {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 10px 16px 14px;
    color: var(--ui-muted);
    font-size: 13px;
    font-weight: 700;
}

.operadores-table {
    min-width: 920px;
    table-layout: fixed;
}

.operadores-establecimientos-panel .operadores-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.operadores-establecimientos-panel .operadores-col-select {
    width: 44px;
}

.operadores-establecimientos-panel .operadores-col-reg {
    width: 65px;
}

.operadores-establecimientos-panel .operadores-col-comuna {
    width: 146px;
}

.operadores-establecimientos-panel .operadores-col-rbd {
    width: 81px;
}

.operadores-establecimientos-panel .operadores-col-establecimiento {
    width: calc((100% - 336px) * 0.72);
}

.operadores-establecimientos-panel .operadores-col-operador {
    width: calc((100% - 336px) * 0.28);
}

.habilitar-ee-table {
    min-width: 760px;
}

.reunion-tabs {
    padding: 0 16px 10px;
}

.reunion-disponibilidad {
    --reunion-action-size: 31px;
    display: grid;
    gap: 10px;
    padding: 0 16px 16px;
}

.reunion-month-tabs {
    padding: 0;
}

.reunion-month-tabs .view-tab {
    min-height: 30px;
    padding: 0 12px;
    font-size: 13px;
}

.reunion-calendar-title {
    margin: 0;
    color: var(--ui-blue-700);
    font-size: 13px;
    font-weight: 800;
}

.reunion-week {
    display: grid;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 8px;
}

.reunion-day {
    min-height: 96px;
    display: grid;
    align-content: start;
    gap: 6px;
    border: 1px solid var(--ui-border);
    border-radius: 8px;
    background: #ffffff;
    overflow: visible;
}

.reunion-day.is-empty {
    border-style: dashed;
    background: #f8fafc;
}

.reunion-day-header {
    width: 100%;
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    border: 0;
    border-bottom: 1px solid var(--ui-border);
    background: #f4f8fc;
    color: var(--ui-blue-700);
    cursor: pointer;
    text-align: left;
    padding: 7px 10px;
    font-size: 13px;
    line-height: 1.1;
}

.reunion-day-header span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--ui-blue-600);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.reunion-day-header:hover,
.reunion-day-header.is-active {
    background: #eaf2fb;
}

.reunion-slots {
    display: grid;
    gap: 6px;
    padding: 6px;
}

.reunion-slot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--reunion-action-size);
    align-items: center;
    gap: 6px;
    padding: 6px;
    border: 1px solid var(--ui-border);
    border-radius: 8px;
    background: #fbfdff;
    font-size: 12px;
}

.reunion-slot.has-team-editor {
    grid-template-columns: minmax(0, 1fr) var(--reunion-action-size);
}

.reunion-slot.is-draft {
    grid-template-columns: minmax(72px, 1fr) var(--reunion-action-size);
    align-items: stretch;
}

.reunion-slot.is-draft.has-team-editor {
    grid-template-columns: minmax(72px, 1fr) var(--reunion-action-size);
}

.reunion-slot-heading {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.reunion-slot-actions {
    display: grid;
    justify-items: center;
    align-content: start;
    align-self: start;
    gap: 2px;
}

.reunion-people-control {
    position: relative;
    min-width: 0;
}

.reunion-people-control.is-open {
    z-index: 5;
}

.reunion-people-button {
    width: var(--reunion-action-size);
    min-width: var(--reunion-action-size);
    height: var(--reunion-action-size);
    min-height: var(--reunion-action-size);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
    border: 0;
    background: transparent;
    color: var(--ui-blue-600);
    white-space: nowrap;
}

.reunion-people-button:hover,
.reunion-people-control.is-open .reunion-people-button {
    background: transparent;
    color: var(--ui-blue-700);
}

.reunion-people-button i {
    color: inherit;
    font-size: 14px;
}

.reunion-people-field {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 4;
    display: grid;
    gap: 5px;
    min-width: 0;
    margin: 0;
    width: min(220px, 64vw);
    padding: 8px;
    border: 1px solid var(--ui-border);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    color: var(--ui-muted);
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.reunion-people-field select {
    min-height: 74px;
    padding: 6px;
    font-size: 12px;
    text-transform: none;
}

.reunion-save-people {
    justify-content: center;
    min-height: 30px;
    padding: 5px 8px;
    gap: 6px;
    font-size: 12px;
    text-transform: none;
}

.reunion-slot .icon-button-only {
    width: var(--reunion-action-size);
    min-width: var(--reunion-action-size);
    height: var(--reunion-action-size);
    min-height: var(--reunion-action-size);
    padding: 0;
    box-sizing: border-box;
    justify-self: center;
    align-self: center;
    border-radius: 6px;
}

.reunion-slot .icon-button-only i {
    font-size: 14px;
}

.reunion-slot .reunion-toggle-availability {
    width: var(--reunion-action-size);
    min-width: var(--reunion-action-size);
    height: var(--reunion-action-size);
    min-height: var(--reunion-action-size);
    box-sizing: border-box;
    border: 0;
    background: transparent;
    color: #047857;
    border-radius: 0;
}

.reunion-slot .reunion-toggle-availability i {
    font-size: 14px;
}

.reunion-slot.is-draft .reunion-people-button,
.reunion-slot.is-draft .reunion-confirm-team-draft,
.reunion-slot.is-draft .reunion-confirm-draft {
    border: 0;
    background: transparent;
    background-color: transparent;
    color: var(--ui-blue-600);
}

.reunion-slot.is-draft .reunion-people-button:hover,
.reunion-slot.is-draft .reunion-confirm-team-draft:hover,
.reunion-slot.is-draft .reunion-confirm-draft:hover {
    border: 0;
    background: transparent;
    background-color: transparent;
    color: var(--ui-blue-700);
}

.reunion-slot.is-draft .reunion-confirm-draft {
    color: #047857;
}

.reunion-slot.is-draft .reunion-confirm-draft:hover {
    color: #065f46;
}

.reunion-slot .reunion-toggle-availability.is-confirm,
.reunion-slot .reunion-toggle-availability.is-confirm:hover {
    border: 0;
    background: transparent;
    background-color: transparent;
    color: #047857;
}

.reunion-slot .reunion-toggle-availability.is-confirm:hover {
    color: #065f46;
}

.reunion-slot .reunion-toggle-availability.is-retract {
    border: 0;
    background: transparent;
    background-color: transparent;
    color: #64748b;
}

.reunion-slot .reunion-toggle-availability.is-retract:hover {
    background: transparent;
    background-color: transparent;
    color: #b91c1c;
}

.reunion-slot strong,
.reunion-slot span {
    display: block;
}

.reunion-slot strong,
.reunion-slot-names span {
    min-width: 0;
}

.reunion-slot-names {
    display: grid;
    gap: 2px;
    margin-top: 3px;
}

.reunion-slot-names span {
    overflow-wrap: anywhere;
    white-space: normal;
    line-height: 1.25;
}

.reunion-slot .input-field,
.reunion-time-input {
    min-height: 30px;
    padding: 4px 8px;
    font-size: 12px;
}

.reunion-toggle-availability.is-confirm,
.reunion-confirm-draft {
    border: 1px solid #047857;
    background: #047857;
    background-color: #047857;
    color: #ffffff;
}

.reunion-toggle-availability.is-confirm:hover,
.reunion-confirm-draft:hover {
    background: #065f46;
    background-color: #065f46;
}

.reunion-toggle-availability.is-retract {
    border: 1px solid #c9c7c7;
    background: #c9c7c7;
    background-color: #c9c7c7;
    color: #ffffff;
}

.reunion-toggle-availability.is-retract:hover {
    background: #b91c1c;
    background-color: #b91c1c;
}

.reunion-toggle-availability i,
.reunion-confirm-draft i {
    color: currentColor;
}

.reunion-slot span {
    color: var(--ui-muted);
    font-size: 12px;
}

.text-muted {
    color: var(--ui-muted);
    font-size: 12px;
}

.reunion-planificacion {
    display: grid;
    gap: 12px;
    padding: 0 16px 16px;
}

.reunion-planificacion-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.reunion-planificacion-wrap {
    max-height: calc(100vh - 320px);
    overflow: auto;
}

.reunion-planificacion-table {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.reunion-planificacion-table td {
    vertical-align: top;
    min-width: 0;
    overflow-wrap: anywhere;
}

.reunion-chip-list,
.reunion-establecimientos-list {
    display: grid;
    gap: 5px;
}

.reunion-chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #eef6f2;
    color: #176345;
    font-size: 12px;
    font-weight: 700;
}

.reunion-team-list {
    display: grid;
    gap: 4px;
}

.reunion-team-list span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.reunion-ee-item,
.reunion-add-ee {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 118px 36px;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.reunion-ee-item:first-child {
    margin-top: 0;
}

.reunion-ee-item span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reunion-add-ee {
    grid-template-columns: minmax(220px, 1fr) 36px;
}

.habilitar-operadores-panel {
    display: grid;
}

.operador-add-panel,
.operador-ficha {
    display: grid;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--ui-border);
    background: #f8fbff;
}

.operador-add-header,
.operador-ficha-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.operador-ficha-header h3 {
    margin: 0;
    color: var(--ui-blue-700);
    font-size: 16px;
}

.operador-ficha-header span {
    color: var(--ui-muted);
    font-size: 13px;
}

.operador-run-grid,
.operador-ficha-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    gap: 12px;
}

.operador-ficha-form label {
    display: grid;
    gap: 8px;
}

.operador-ficha-form label > span {
    color: var(--ui-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.35px;
    text-transform: uppercase;
}

.operadores-gestion-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.operadores-gestion-table th:nth-child(1),
.operadores-gestion-table td:nth-child(1) {
    width: 20%;
}

.operadores-gestion-table th:nth-child(2),
.operadores-gestion-table td:nth-child(2) {
    width: 30%;
}

.operadores-gestion-table th:nth-child(3),
.operadores-gestion-table td:nth-child(3),
.operadores-gestion-table th:nth-child(4),
.operadores-gestion-table td:nth-child(4) {
    width: 20%;
}

.operadores-gestion-table th:nth-child(5),
.operadores-gestion-table td:nth-child(5) {
    width: 10%;
    text-align: center;
}

.operadores-gestion-table th,
.operadores-gestion-table td {
    padding-inline: 14px;
    vertical-align: middle;
}

.operadores-gestion-table thead th {
    border-radius: 0;
}

.operadores-gestion-table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.operadores-gestion-table td:nth-child(2) {
    font-weight: 700;
    color: var(--ui-blue-700);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 24px;
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 400;
}

.status-pill.is-active {
    color: #047857;
    background: #d1fae5;
}

.status-pill.is-inactive {
    color: #64748b;
    background: #eef2f7;
}

.operadores-gestion-row {
    cursor: pointer;
}

.operadores-gestion-row:hover td {
    background: var(--ui-blue-50);
}

.operadores-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f3f2f8;
    box-shadow: 0 1px 0 var(--line);
    border-radius: 0;
}

.operadores-table th:nth-child(1) {
    width: 54px;
}

.operadores-table th:nth-child(2),
.operadores-table th:nth-child(3) {
    width: 150px;
}

.operadores-table th:nth-child(4) {
    width: 86px;
}

.operadores-table th:nth-child(6) {
    width: 180px;
}


.operadores-table td {
    white-space: normal;
    overflow-wrap: anywhere;
}

.operadores-table tr.is-assigned-current td {
    background: #dcfce7;
}

.operadores-table tr.is-unassigned td {
    background: #fff;
}

.operadores-table tr.is-assigned-other td {
    background: #f1f4f8;
    color: #64748b;
}

.operadores-table input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.operador-asignado {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.operador-asignado.is-empty {
    color: #64748b;
    background: #eef2f7;
}

.operador-asignado.is-current {
    color: #14532d;
    background: #dcfce7;
}

.operador-asignado.is-other {
    color: #64748b;
    background: #e2e8f0;
}

.asignacion-preparacion {
    min-height: 220px;
    align-content: center;
    justify-items: center;
    text-align: center;
}

.etapas-view {
    grid-template-rows: auto auto auto minmax(0, 1fr);
}

.etapas-filters {
    display: grid;
    grid-template-columns: minmax(110px, 0.55fr) minmax(170px, 0.85fr) minmax(150px, 0.75fr) minmax(220px, 1.4fr) 88px;
    gap: 12px;
    align-items: end;
}

.etapas-filters label {
    display: grid;
    gap: 8px;
}

.etapas-filters span {
    color: var(--ui-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.35px;
    text-transform: uppercase;
}

.etapas-filters .etapas-filter-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    align-self: end;
    height: 40px;
    width: 88px;
    min-width: 88px;
}

.etapas-filters .etapas-filter-actions::before {
    content: none;
}

.etapas-filters .etapas-filter-actions .icon-button-only {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    min-width: 40px;
}

.etapas-table-wrap {
    max-height: calc(100vh - 316px);
    min-height: 340px;
    overflow: auto;
}

.etapas-table {
    min-width: 1230px;
    table-layout: fixed;
    --etapas-establecimiento-width: 270px;
}

.etapas-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f3f2f8;
    box-shadow: 0 1px 0 var(--line);
}

.etapas-table th:nth-child(1) {
    width: 45px;
}

.etapas-table th:nth-child(2) {
    width: 85px;
}

.etapas-table th:nth-child(3) {
    width: var(--etapas-establecimiento-width);
}

.etapas-table th:nth-child(4) {
    width: 94px;
}

.etapas-table th:nth-child(5) {
    width: 94px;
}
.etapas-table th:nth-child(6) {
    width: 190px;
}

.etapas-table th:nth-child(7) {
    width: 135px;
}

.etapas-table th:nth-child(8) {
    width: 150px;
}

.etapas-table td {
    vertical-align: top;
    white-space: normal;
}

.etapas-table .seguimiento-status-cell {
    padding: 8px 6px;
}

.etapas-date-cell {
    display: grid;
    gap: 4px;
}

.etapas-date-cell strong {
    color: var(--ui-blue-700);
}

.etapas-date-cell span {
    color: var(--ui-muted);
    font-size: 12px;
}

.etapas-cell-stack {
    display: grid;
    gap: 8px;
    align-content: start;
}

.contacto-table thead th,
.asignacion-table thead th {
    background: #f3f2f8;
    box-shadow: 0 1px 0 var(--line);
}

.contacto-row:hover td,
.contacto-row.is-selected td,
.asignacion-table tbody tr:hover td,
.operadores-table tbody tr:hover td,
.etapas-table tbody tr:hover td {
    background: #f8fafc;
}

.contacto-lab-loading-cell {
    height: 54px;
    text-align: left;
}

.contacto-lab-loading-content {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ui-blue-700);
    font-weight: 700;
}

.contacto-lab-row-spinner {
    margin-right: 6px;
    color: var(--ui-blue-600);
}

.operadores-table tbody tr.is-assigned-current td,
.operadores-table tbody tr.is-assigned-current:hover td {
    background: #dcfce7;
}

.operadores-table tbody tr.is-assigned-other td,
.operadores-table tbody tr.is-assigned-other:hover td {
    background: #f1f4f8;
    color: #64748b;
}

.operadores-table tbody tr.is-unassigned td {
    background: #fff;
}

.operadores-table tbody tr.is-unassigned:hover td {
    background: #f8fafc;
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.data-chip {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    text-align: left;
    padding: 3px 10px;
    border-radius: 9px;
    background: #eaf2fb;
    color: var(--ui-blue-700);
    font-size: 12px;
    font-weight: 700;
    overflow-wrap: anywhere;
    border: 0;
    text-decoration: none;
}

.data-chip-multiline {
    display: inline-grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    justify-items: start;
    gap: 1px;
    font-size: 10px;
    line-height: 1.15;
}

.data-chip-multiline span {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.data-chip.is-muted {
    background: #eef2f7;
    color: #64748b;
}

.data-chip.is-empty {
    background: #f8fafc;
    color: #64748b;
}

.etapas-table .data-chip:not(.is-empty) {
    background: #d8ebe6;
    color: #164e46;
    font-size: 10px;
}

.etapas-table .data-chip {
    font-size: 10px;
}

.etapas-table .status-pill {
    font-size: 10px;
}

.etapas-table .data-chip-multiline {
    display: inline-grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
}

.etapas-table .data-chip-checkin-empty {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
}

.etapas-table .chip-button:not(.is-empty),
.etapas-table .chip-link:not(.is-empty) {
    border: 1px solid #b8d6cf;
}

.chip-button,
.chip-link {
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.chip-button:hover,
.chip-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.12);
    background: #dcecff;
    color: var(--ui-blue-700);
}

.etapas-table .chip-button:hover,
.etapas-table .chip-link:hover {
    background: #c7e2dc;
    color: #0f3f39;
    box-shadow: 0 2px 3px rgba(15, 79, 70, 0.14);
}

.tabla-opciones-wrap {
    max-height: calc(100vh - 310px) !important;
    overflow: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
}

.tabla-opciones {
    min-width: 1840px !important;
    table-layout: fixed !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    font-size: 12px !important;
    background: #ffffff !important;
}

.etapas-table.tabla-opciones th:nth-child(n) {
    width: auto !important;
}

.tabla-opciones-head th,
.tabla-opciones-encabezado thead th {
    text-align: left !important;
    white-space: normal !important;
    position: sticky !important;
    top: 24px !important;
    z-index: 5 !important;
    padding: 5px 4px !important;
    border-top: 1px solid var(--line) !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--line) !important;
    border-left: 0 !important;
    background: #f3f6f8 !important;
    color: var(--muted) !important;
    font-size: 10px !important;
    font-weight: 650 !important;
    line-height: 1.1 !important;
    text-transform: uppercase !important;
    vertical-align: bottom !important;
}

.tabla-opciones-head tr:first-child th,
.tabla-opciones-encabezado thead tr:first-child th {
    top: 0 !important;
    z-index: 8 !important;
    height: 24px !important;
    border-top: 1px solid #ffffff !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--line) !important;
    border-left: 0 !important;
    background: var(--ui-blue-700) !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 650 !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    letter-spacing: 0 !important;
    vertical-align: bottom !important;
}

.tabla-opciones-head tr:first-child th.tabla-opciones-head-spacer {
    border-top: 1px solid #ffffff !important;
    border-right: 0 !important;
    border-bottom: 2px solid var(--line) !important;
    border-left: 0 !important;
    background: #ffffff !important;
}

.tabla-opciones-head tr:nth-child(2) th,
.tabla-opciones-encabezado thead tr:nth-child(2) th {
    top: 24px !important;
    z-index: 6 !important;
    border-top: 1px solid var(--line) !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--line) !important;
    border-left: 0 !important;
}

.tabla-opciones-head-group {
    border-top: 1px solid var(--ui-blue-700) !important;
    border-bottom: 1px solid var(--ui-blue-700) !important;
    border-left: 0 !important;
    border-right: 0 !important;
    text-align: center !important;
}

.tabla-opciones-head tr:first-child th.tabla-opciones-head-group:nth-child(2),
.tabla-opciones-encabezado thead tr:first-child th.tabla-opciones-head-group:nth-child(2) {
    background: #006DB2 !important;
    border-color: #006DB2 !important;
    color: #ffffff !important;
    text-align: center !important;
}

.tabla-opciones-head tr:first-child th.tabla-opciones-head-group:nth-child(3),
.tabla-opciones-encabezado thead tr:first-child th.tabla-opciones-head-group:nth-child(3) {
    background: #003B85 !important;
    border-color: #003B85 !important;
    color: #ffffff !important;
    text-align: center !important;
}

.tabla-opciones th,
.tabla-opciones td {
    padding: 5px 4px !important;
    border-right: 0 !important;
    border-left: 0 !important;
    line-height: 1.15 !important;
    white-space: normal !important;
}

.tabla-opciones th {
    vertical-align: bottom !important;
}

.tabla-opciones td {
    vertical-align: middle !important;
}

.tabla-opciones td {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    border-bottom: 1px solid var(--line) !important;
    background: #ffffff !important;
    color: var(--ui-text) !important;
}

.tabla-opciones th > *,
.tabla-opciones td > * {
    max-width: 100% !important;
}

.tabla-opciones thead tr:nth-child(2) th:nth-child(7),
.tabla-opciones thead tr:nth-child(2) th:nth-child(8),
.tabla-opciones thead tr:nth-child(2) th:nth-child(9),
.tabla-opciones thead tr:nth-child(2) th:nth-child(10) {
    background: #4D99C9 !important;
    border-color: #4D99C9 !important;
    color: #ffffff !important;
    text-align: center !important;
}

.tabla-opciones thead tr:nth-child(2) th:nth-child(n+11) {
    background: #4D76AA !important;
    border-color: #4D76AA !important;
    color: #ffffff !important;
    text-align: center !important;
}

.tabla-opciones thead tr:nth-child(2) th:first-child,
.tabla-opciones-tbody td:first-child {
    border-left: 1px solid var(--line) !important;
}

.tabla-opciones thead tr:nth-child(2) th:last-child,
.tabla-opciones-tbody td:last-child {
    border-right: 1px solid var(--line) !important;
}

.tabla-opciones .etapas-fechas-col-rbd {
    width: 47px !important;
}

.tabla-opciones .etapas-fechas-col-ee {
    width: 260px !important;
}

.tabla-opciones .etapas-fechas-col-reg {
    width: 45px !important;
}

.tabla-opciones .etapas-fechas-col-comuna {
    width: 80px !important;
}

.tabla-opciones .etapas-fechas-col-status,
.tabla-opciones .etapas-fechas-col-date,
.tabla-opciones .etapas-fechas-col-option {
    width: 70px !important;
}

.tabla-opciones .etapas-fechas-col-sessions,
.tabla-opciones .etapas-fechas-col-regular {
    width: 45px !important;
}

.tabla-opciones-tbody td,
.tabla-opciones-fecha,
.tabla-opciones-numero {
    text-align: center !important;
    font-variant-numeric: tabular-nums !important;
}

.tabla-opciones-tbody-row td:nth-child(1),
.tabla-opciones-tbody-row td:nth-child(2),
.tabla-opciones-tbody-row td:nth-child(3),
.tabla-opciones-tbody-row td:nth-child(4) {
    text-align: left !important;
}

.tabla-opciones .seguimiento-status-cell {
    text-align: center !important;
    padding: 5px 4px !important;
}

.tabla-opciones .status-pill {
    display: inline-flex !important;
    width: 76px !important;
    min-height: 24px !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #a7d3d1 !important;
    border-radius: 4px !important;
    background: #e2f1f0 !important;
    color: #075c63 !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    padding: 0 6px !important;
}

.tabla-hermana-wrap {
    max-height: calc(100vh - 310px) !important;
    overflow: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
}

.tabla-hermana {
    min-width: 1300px !important;
    table-layout: fixed !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    font-size: 12px !important;
    background: #ffffff !important;
}

.etapas-table.tabla-hermana th:nth-child(n) {
    width: auto !important;
}

.tabla-hermana th,
.tabla-hermana td {
    padding: 5px 4px !important;
    border-right: 0 !important;
    border-left: 0 !important;
    line-height: 1.15 !important;
    white-space: normal !important;
}

.tabla-hermana thead th {
    position: sticky !important;
    top: 0 !important;
    z-index: 5 !important;
    border-top: 1px solid var(--line) !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--line) !important;
    border-left: 0 !important;
    background: #f3f6f8 !important;
    color: var(--muted) !important;
    font-size: 10px !important;
    font-weight: 650 !important;
    line-height: 1.1 !important;
    text-align: left !important;
    text-transform: uppercase !important;
    vertical-align: bottom !important;
}

.tabla-hermana td {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    border-bottom: 1px solid var(--line) !important;
    background: #ffffff !important;
    color: var(--ui-text) !important;
    text-align: center !important;
    vertical-align: middle !important;
}

.tabla-hermana th > *,
.tabla-hermana td > * {
    max-width: 100% !important;
}

.tabla-hermana thead th:first-child,
.tabla-hermana-tbody td:first-child {
    border-left: 1px solid var(--line) !important;
}

.tabla-hermana thead th:last-child,
.tabla-hermana-tbody td:last-child {
    border-right: 1px solid var(--line) !important;
}

.tabla-hermana-tbody-row td:nth-child(1),
.tabla-hermana-tbody-row td:nth-child(2),
.tabla-hermana-tbody-row td:nth-child(4) {
    text-align: left !important;
}

.tabla-hermana .tabla-hermana-col-rbd {
    width: 58px !important;
}

.tabla-hermana .tabla-hermana-col-ee {
    width: 280px !important;
}

.tabla-hermana .tabla-hermana-col-reg {
    width: 46px !important;
}

.tabla-hermana .tabla-hermana-col-comuna {
    width: 110px !important;
}

.tabla-hermana .tabla-hermana-col-status {
    width: 96px !important;
}

.tabla-hermana .tabla-hermana-col-date {
    width: 82px !important;
}

.tabla-hermana .tabla-hermana-col-sesiones {
    width: 140px !important;
}

.tabla-hermana .tabla-hermana-col-asistentes,
.tabla-hermana .tabla-hermana-col-formularios,
.tabla-hermana .tabla-hermana-col-cargas {
    width: 135px !important;
}

.tabla-hermana .etapas-date-cell {
    justify-items: center !important;
    gap: 2px !important;
}

.tabla-hermana .etapas-date-cell strong,
.tabla-hermana .etapas-date-cell span {
    color: var(--ui-text) !important;
    font-size: 11px !important;
    font-weight: 500 !important;
}

.tabla-hermana .seguimiento-status-cell {
    text-align: center !important;
    padding: 5px 4px !important;
}

.tabla-hermana .status-pill {
    display: inline-flex !important;
    width: 76px !important;
    min-height: 24px !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #a7d3d1 !important;
    border-radius: 4px !important;
    background: #e2f1f0 !important;
    color: #075c63 !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    padding: 0 6px !important;
}

.etapas-modal-card {
    width: min(760px, 100%);
}

.etapas-modal-list {
    display: grid;
    gap: 10px;
    max-height: min(58vh, 520px);
    overflow: auto;
}

.etapas-modal-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border: 1px solid var(--ui-border);
    border-radius: 10px;
    background: #f8fbff;
}

.etapas-modal-item > div {
    display: grid;
    gap: 4px;
}

.etapas-modal-item-main {
    min-width: 0;
}

.etapas-modal-item strong {
    color: var(--ui-blue-700);
}

.etapas-modal-item span,
.etapas-modal-item small {
    color: var(--ui-muted);
    font-size: 12px;
}

.etapas-modal-detail {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.etapas-modal-detail-row {
    display: grid;
    gap: 3px;
    padding-top: 8px;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.etapas-modal-detail-row b {
    color: var(--ui-blue-700);
    font-size: 12px;
    font-weight: 700;
}

.etapas-modal-detail-row span {
    color: #334155;
    font-size: 13px;
    line-height: 1.4;
}

.etapas-modal-link {
    text-decoration: none;
}

.etapas-form-modal-card {
    width: min(980px, 100%);
}

.etapas-form-header {
    display: grid;
    gap: 4px;
}

.etapas-form-header h2 {
    margin: 0;
}

.etapas-form-header span {
    color: var(--ui-muted);
    font-size: 12px;
}

.etapas-form-readonly {
    display: grid;
    gap: 16px;
    max-height: min(72vh, 760px);
    overflow: auto;
    padding-right: 4px;
}

.etapas-form-section {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--ui-border);
    border-radius: 12px;
    background: #fbfdff;
}

.etapas-form-section-header {
    display: grid;
    gap: 4px;
}

.etapas-form-section-header strong {
    color: var(--ui-blue-700);
    font-size: 15px;
}

.etapas-form-section-header span {
    color: var(--ui-muted);
    font-size: 12px;
}

.etapas-form-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 12px;
}

.etapas-question-card {
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 10px;
    background: #fff;
}

.etapas-question-card label {
    margin: 0;
    color: var(--ui-blue-700);
    font-size: 13px;
    font-weight: 700;
}

.etapas-question-card small {
    color: var(--ui-muted);
    font-size: 11px;
}

.etapas-answer-box {
    min-height: 42px;
    display: grid;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.etapas-answer-text {
    color: #334155;
    font-size: 13px;
    line-height: 1.45;
    white-space: pre-wrap;
}

.etapas-answer-bool {
    display: inline-flex;
    width: fit-content;
    min-height: 26px;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.etapas-answer-bool.is-true {
    background: #dcfce7;
    color: #166534;
}

.etapas-answer-bool.is-false {
    background: #fee2e2;
    color: #991b1b;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(15, 23, 42, 0.36);
}

.modal-card {
    width: min(680px, 100%);
    display: grid;
    gap: 18px;
    border: 1px solid var(--ui-border);
    border-radius: 8px;
    padding: 22px;
    background: #fff;
    box-shadow: var(--shadow);
}

.modal-card header h2 {
    margin: 0;
    color: var(--ui-blue-700);
    font-size: 18px;
}

.modal-card footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.ficha-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
}

.form-actions .primary-button {
    min-height: 38px;
    padding: 0 18px;
}

.module-tile {
    padding: 18px;
}

.module-tile i {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    border-radius: 10px;
    color: var(--ui-blue-600);
    background: var(--ui-blue-100);
}

.module-tile p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.45;
}

.mantenedor-insumos-view {
    display: grid;
    gap: 16px;
}

.mantenedor-insumos-header p,
.mantenedor-insumos-view .panel-header p {
    margin: 4px 0 0;
    color: var(--muted);
}

.mantenedor-insumos-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
    gap: 16px;
}

.mantenedor-insumos-card {
    display: grid;
    gap: 12px;
    align-content: start;
    padding: 16px;
    border: 1px solid var(--ui-border);
    border-radius: 10px;
    background: #fff;
}

.mantenedor-insumos-card h3 {
    margin: 0;
    color: var(--ui-blue-700);
    font-size: 16px;
}

.mantenedor-insumo-form {
    display: grid;
    gap: 12px;
}

.mantenedor-insumo-form label {
    display: grid;
    gap: 6px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.mantenedor-insumo-form label span {
    color: var(--muted);
}

.mantenedor-insumos-table-wrap {
    max-height: 56vh;
}

.mantenedor-insumos-table {
    table-layout: fixed;
    width: 100%;
}

.mantenedor-insumos-table th:nth-child(1),
.mantenedor-insumos-table td:nth-child(1) {
    width: 40%;
}

.mantenedor-insumos-table th:nth-child(2),
.mantenedor-insumos-table td:nth-child(2),
.mantenedor-insumos-table th:nth-child(3),
.mantenedor-insumos-table td:nth-child(3),
.mantenedor-insumos-table th:nth-child(4),
.mantenedor-insumos-table td:nth-child(4) {
    width: 20%;
}

.mantenedor-insumo-actions {
    display: flex;
    gap: 8px;
}

.mantenedor-personas-view {
    display: grid;
    gap: 16px;
}

.mantenedor-personas-header p,
.mantenedor-personas-view .panel-header p {
    margin: 4px 0 0;
    color: var(--muted);
}

.mantenedor-persona-form {
    display: grid;
    grid-template-columns: minmax(150px, 0.7fr) minmax(180px, 1fr) minmax(220px, 1fr) minmax(180px, 1fr) minmax(180px, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.mantenedor-persona-form label {
    display: grid;
    gap: 6px;
    margin: 0;
}

.mantenedor-persona-form label span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.mantenedor-persona-actions {
    display: flex;
    justify-content: flex-end;
}

.mantenedor-personas-table-wrap {
    max-height: 58vh;
}

.mantenedor-personas-table {
    table-layout: fixed;
    width: 100%;
}

.mantenedor-personas-table th:nth-child(1),
.mantenedor-personas-table td:nth-child(1),
.mantenedor-personas-table th:nth-child(2),
.mantenedor-personas-table td:nth-child(2),
.mantenedor-personas-table th:nth-child(3),
.mantenedor-personas-table td:nth-child(3),
.mantenedor-personas-table th:nth-child(6),
.mantenedor-personas-table td:nth-child(6) {
    width: 14%;
}

.mantenedor-personas-table th:nth-child(4),
.mantenedor-personas-table td:nth-child(4),
.mantenedor-personas-table th:nth-child(5),
.mantenedor-personas-table td:nth-child(5) {
    width: 22%;
}

.mantenedor-personas-table td strong,
.mantenedor-personas-table td small {
    display: block;
}

.mantenedor-personas-table td small {
    color: var(--muted);
    font-size: 12px;
}

.mantenedor-persona-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    color: var(--muted);
    background: var(--ui-blue-50);
    font-size: 12px;
    font-weight: 800;
}

.mantenedor-persona-status.is-active {
    color: #047857;
    background: #d1fae5;
}

.mantenedor-formularios-view {
    display: grid;
    gap: 16px;
}

.mantenedor-formularios-view .panel-header p {
    margin: 4px 0 0;
    color: var(--muted);
}

.mantenedor-formularios-title-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(260px, 0.8fr) auto;
    gap: 16px;
    align-items: end;
}

.mantenedor-formularios-title-row h2 {
    margin: 0;
}

.mantenedor-formularios-title-row p {
    margin: 4px 0 0;
    color: var(--muted);
}

.mantenedor-formularios-top-select {
    display: grid;
    gap: 6px;
    margin: 0;
}

.mantenedor-formularios-top-select span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.mantenedor-formularios-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mantenedor-formularios-existing-panel {
    display: grid;
    gap: 12px;
}

.mantenedor-form-preload-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 12px;
    align-items: end;
    padding: 12px;
    border: 1px solid var(--ui-blue-200);
    border-radius: 8px;
    background: var(--ui-blue-100);
}

.mantenedor-form-preload-panel label {
    display: grid;
    gap: 6px;
    margin: 0;
}

.mantenedor-form-preload-panel span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.mantenedor-formularios-layout {
    display: grid;
    grid-template-columns: minmax(240px, 0.8fr) minmax(420px, 1.5fr) minmax(260px, 0.8fr);
    gap: 16px;
    align-items: start;
}

.mantenedor-formularios-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 16px;
    align-items: start;
}

.mantenedor-formularios-list-panel,
.mantenedor-formularios-editor-panel,
.mantenedor-formularios-preview-panel {
    display: grid;
    gap: 16px;
}

.mantenedor-formularios-filter label,
.mantenedor-form-meta-grid label,
.mantenedor-form-section-fields label {
    display: grid;
    gap: 6px;
    margin: 0;
}

.mantenedor-formularios-filter span,
.mantenedor-form-meta-grid span,
.mantenedor-form-section-fields span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.mantenedor-formularios-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 8px;
    max-height: 30vh;
    overflow: auto;
}

.mantenedor-form-list-item {
    display: grid;
    gap: 4px;
    width: 100%;
    border: 1px solid var(--ui-border);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    padding: 12px;
    text-align: left;
}

.mantenedor-form-list-item:hover,
.mantenedor-form-list-item.is-active {
    border-color: var(--ui-blue-300);
    background: var(--ui-blue-100);
}

.mantenedor-form-list-item span {
    color: var(--muted);
    font-size: 12px;
}

.mantenedor-form-section {
    display: grid;
    gap: 14px;
}

.mantenedor-form-section-header,
.mantenedor-form-section-card-header,
.mantenedor-form-question-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mantenedor-form-section-header h3 {
    margin: 0;
    color: var(--ui-blue-700);
    font-size: 16px;
}

.mantenedor-form-section-header > span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.mantenedor-form-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.mantenedor-form-description {
    grid-column: 1 / -1;
}

.mantenedor-form-sections {
    display: grid;
    gap: 14px;
}

.mantenedor-form-section-card,
.mantenedor-form-question-card {
    display: grid;
    gap: 12px;
    border: 1px solid var(--ui-border);
    border-radius: 8px;
    background: #fff;
    padding: 14px;
}

.mantenedor-form-section-fields,
.mantenedor-form-question-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mantenedor-form-section-fields textarea {
    grid-column: 1 / -1;
}

.mantenedor-form-question-list,
.mantenedor-form-options {
    display: grid;
    gap: 10px;
}

.mantenedor-form-option-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px;
    gap: 8px;
}

.mantenedor-form-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}

.mantenedor-form-footer {
    display: flex;
    justify-content: flex-end;
}

.mantenedor-form-preview {
    display: grid;
    gap: 12px;
    max-height: 72vh;
    overflow: auto;
}

.mantenedor-preview-title,
.mantenedor-preview-section {
    display: grid;
    gap: 8px;
    border: 1px solid var(--ui-border);
    border-radius: 8px;
    padding: 12px;
    background: #fff;
}

.mantenedor-preview-title span,
.mantenedor-preview-question small {
    color: var(--muted);
    font-size: 12px;
}

.mantenedor-preview-section h4 {
    margin: 0;
    color: var(--ui-blue-700);
    font-size: 15px;
}

.mantenedor-preview-question {
    display: grid;
    gap: 2px;
    padding: 8px 0;
    border-top: 1px solid var(--ui-border);
}

.mantenedor-emp-view {
    display: grid;
    gap: 16px;
}

.mantenedor-emp-title-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 16px;
    align-items: center;
}

.mantenedor-emp-title-row h2 {
    margin: 0;
}

.mantenedor-emp-title-row p {
    margin: 4px 0 0;
    color: var(--muted);
}

.mantenedor-emp-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mantenedor-emp-tab {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid var(--ui-border);
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
    font-weight: 700;
    cursor: pointer;
}

.mantenedor-emp-tab.is-active,
.mantenedor-emp-tab:hover {
    border-color: var(--ui-blue-300);
    background: var(--ui-blue-100);
    color: var(--ui-blue-700);
}

.mantenedor-emp-panel {
    display: none;
    gap: 14px;
}

.mantenedor-emp-panel.is-active {
    display: grid;
}

.mantenedor-emp-search-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(170px, 0.7fr) minmax(170px, 0.7fr) auto;
    gap: 12px;
    align-items: end;
}

.mantenedor-emp-search-grid label,
.mantenedor-emp-create-grid label,
.mantenedor-emp-link-card label,
.mantenedor-emp-link-search label {
    display: grid;
    gap: 6px;
    margin: 0;
}

.mantenedor-emp-search-grid span,
.mantenedor-emp-create-grid span,
.mantenedor-emp-link-card span,
.mantenedor-emp-link-search span,
.mantenedor-emp-selected-grid span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.mantenedor-emp-results-wrap {
    max-height: 48vh;
}

.mantenedor-emp-results-table {
    table-layout: fixed;
    width: 100%;
}

.mantenedor-emp-results-table th,
.mantenedor-emp-results-table td {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    vertical-align: top;
    line-height: 1.35;
}

.mantenedor-emp-results-table th:nth-child(1),
.mantenedor-emp-results-table td:nth-child(1) {
    width: 14%;
}

.mantenedor-emp-results-table th:nth-child(2),
.mantenedor-emp-results-table td:nth-child(2) {
    width: 42%;
}

.mantenedor-emp-results-table th:nth-child(3),
.mantenedor-emp-results-table td:nth-child(3),
.mantenedor-emp-results-table th:nth-child(4),
.mantenedor-emp-results-table td:nth-child(4) {
    width: 22%;
}

.mantenedor-emp-result-row {
    cursor: pointer;
}

.mantenedor-emp-result-row:hover td {
    background: var(--ui-blue-100);
}

.mantenedor-emp-result-row td strong,
.mantenedor-emp-result-row td small {
    display: block;
}

.mantenedor-emp-result-row td small {
    margin-top: 2px;
    color: var(--muted);
}

.mantenedor-emp-create-grid {
    display: grid;
    grid-template-columns: minmax(120px, 0.35fr) repeat(3, minmax(180px, 1fr));
    gap: 12px;
}

.mantenedor-emp-wide {
    grid-column: span 2;
}

.mantenedor-emp-form-actions {
    display: flex;
    justify-content: flex-end;
}

.mantenedor-emp-link-grid {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(260px, 0.55fr);
    gap: 16px;
    align-items: start;
}

.mantenedor-emp-selected-card,
.mantenedor-emp-link-card,
.mantenedor-emp-projects {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--ui-border);
    border-radius: 8px;
    background: #fff;
}

.mantenedor-emp-link-search {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) auto;
    gap: 10px;
    align-items: end;
    padding: 12px;
    border: 1px solid var(--ui-border);
    border-radius: 8px;
    background: #fbfcff;
}

.mantenedor-emp-selected-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mantenedor-emp-selected-grid div {
    display: grid;
    gap: 3px;
    padding: 10px;
    border: 1px solid var(--ui-border);
    border-radius: 8px;
    background: #fbfcff;
}

.mantenedor-emp-selected-grid strong {
    overflow-wrap: anywhere;
}

.mantenedor-emp-link-card {
    align-content: start;
}

.mantenedor-emp-projects {
    margin-top: 0;
}

.mantenedor-emp-project-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 8px;
}

.mantenedor-emp-project-item {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--ui-border);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    text-align: left;
    cursor: pointer;
}

.mantenedor-emp-project-item:hover,
.mantenedor-emp-project-item.is-active {
    border-color: var(--ui-blue-300);
    background: var(--ui-blue-100);
}

.mantenedor-emp-project-item span {
    color: var(--muted);
    font-size: 12px;
}

.estudiantes-page {
    display: grid;
    gap: 16px;
}

.estudiantes-actions .soft-button,
.estudiantes-actions .primary-button {
    width: 164px;
    justify-content: center;
    white-space: nowrap;
}

.estudiantes-actions {
    justify-content: flex-end;
}

.estudiantes-unused-helpers {
    display: none;
}

.required-star {
    color: var(--ui-danger);
    font-size: 13px;
    line-height: 1;
}

.estudiantes-section {
    display: grid;
    gap: 14px;
    padding: 14px 16px 16px;
    border: 1px solid var(--ui-border);
    border-radius: 10px;
    background: #fff;
}

.estudiantes-section-title {
    margin: 0;
    color: var(--ui-blue-700);
    font-size: 16px;
    font-weight: 700;
}

.estudiantes-establecimiento-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
}

.estudiantes-establecimiento-main,
.estudiantes-course-history {
    display: grid;
    align-content: start;
    gap: 10px;
    min-width: 0;
}

.estudiantes-course-history {
    align-content: stretch;
    grid-template-rows: auto minmax(0, 1fr);
}

.estudiantes-establecimiento-main h3,
.estudiantes-course-history h3 {
    margin: 0;
    color: var(--ui-blue-700);
    font-size: 13px;
    font-weight: 700;
}

.estudiantes-course-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.estudiantes-delete-curso-toggle {
    min-height: 32px;
    min-width: 0;
    padding: 0 10px;
    color: var(--ui-danger);
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
}

.estudiantes-delete-curso-toggle:hover,
.estudiantes-delete-curso-toggle.is-active {
    color: #fff;
    background: var(--ui-danger);
    border-color: var(--ui-danger);
}

.estudiantes-delete-curso-toggle:disabled {
    color: #9aa7b5;
    background: #fff;
    border-color: var(--ui-border);
}

.estudiantes-establecimiento-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.estudiantes-establecimiento-control select {
    min-height: 36px;
    max-width: 100%;
}

.estudiantes-establecimiento-control .primary-button {
    min-height: 36px;
    padding-top: 0;
    padding-bottom: 0;
    white-space: nowrap;
}

.estudiantes-level-block {
    display: grid;
    gap: 6px;
}

.estudiantes-level-block > h4 {
    margin: 0;
    color: var(--ui-muted);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
}

.estudiantes-level-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--ui-border);
    border-left: 1px solid var(--ui-border);
    border-right: 1px solid var(--ui-border);
    border-bottom: 1px solid var(--ui-border);
}

.estudiantes-level-card {
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 8px 10px;
    border-right: 1px solid var(--ui-border);
    background: transparent;
}

.estudiantes-level-card:last-child {
    border-right: 0;
}

.estudiantes-level-card.is-empty {
    background: #fafbfc;
}

.estudiantes-level-card h5 {
    margin: 0;
    color: var(--ui-blue-700);
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
}

.estudiantes-level-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 4px;
    column-gap: 6px;
    align-items: end;
    text-align: center;
}

.estudiantes-level-metrics span {
    color: var(--ui-muted);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    border-bottom: 0;
    padding-bottom: 0;
}

.estudiantes-level-metrics strong {
    color: var(--ui-blue-700);
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
}

.estudiantes-level-card.is-empty h5,
.estudiantes-level-card.is-empty .estudiantes-level-metrics span,
.estudiantes-level-card.is-empty .estudiantes-level-metrics strong {
    color: #9aa7b5;
}

.estudiantes-course-table {
    table-layout: fixed;
}

.estudiantes-course-table th,
.estudiantes-course-table td {
    width: 25%;
}

.estudiantes-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.estudiantes-section-header h3 {
    margin: 0;
    color: var(--ui-blue-700);
    font-size: 16px;
}

.estudiantes-section-header p {
    margin: 4px 0 0;
    color: var(--ui-muted);
    font-size: 12px;
}

.estudiantes-section > label {
    display: grid;
    gap: 8px;
    max-width: 560px;
}

.estudiantes-toolbar label,
.estudiantes-form label {
    display: grid;
    gap: 8px;
    margin: 0;
}

.estudiantes-section > label > span,
.estudiantes-toolbar span,
.estudiantes-form label > span {
    color: var(--ui-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.35px;
    text-transform: uppercase;
}

.estudiantes-counter {
    min-height: 40px;
    display: grid;
    align-content: center;
    padding: 6px 10px;
    border: 1px solid var(--ui-border);
    border-radius: 8px;
    background: #f8fafc;
}

.estudiantes-counter strong {
    color: var(--ui-blue-700);
    font-size: 18px;
    line-height: 1;
}

.estudiantes-counter span {
    color: var(--ui-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.estudiantes-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.estudiantes-form {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--ui-border);
    border-radius: 8px;
    background: #fff;
}

.estudiantes-form h3 {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
    color: var(--ui-blue-700);
    font-size: 15px;
}

.estudiantes-form h3 small {
    color: var(--ui-muted);
    font-size: 12px;
    font-weight: 600;
}

.form-grid.compact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.estudiantes-table-wrap {
    max-height: calc(100vh - 390px);
    min-height: 260px;
    overflow: auto;
    border: 1px solid var(--ui-border);
    border-radius: 10px;
}

.estudiantes-course-table-wrap {
    max-height: 260px;
    min-height: 112px;
    height: 100%;
    border-radius: 8px;
}

.estudiantes-table {
    min-width: 820px;
    table-layout: fixed;
}

.estudiantes-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding-top: 6px;
    padding-bottom: 6px;
    background: #f3f2f8;
    box-shadow: 0 1px 0 var(--line);
}

.estudiantes-table .estudiantes-col-run {
    width: 115px;
}

.estudiantes-table .estudiantes-col-fecha {
    width: 96px;
}

.estudiantes-table .estudiantes-col-nombres {
    width: calc((100% - 211px) * 1.3 / 6.3);
}

.estudiantes-table .estudiantes-col-apellido,
.estudiantes-table .estudiantes-col-wide {
    width: calc((100% - 211px) / 6.3);
}

.estudiantes-table td {
    padding-top: 5px;
    padding-bottom: 5px;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: anywhere;
}

.estudiantes-table:not(.estudiantes-course-table) th:nth-child(1),
.estudiantes-table:not(.estudiantes-course-table) td:nth-child(1),
.estudiantes-table:not(.estudiantes-course-table) th:nth-child(5),
.estudiantes-table:not(.estudiantes-course-table) td:nth-child(5) {
    white-space: nowrap;
}

.estudiantes-course-table {
    width: 100%;
    height: 100%;
    min-width: 0;
    table-layout: fixed;
}

.estudiantes-course-table col {
    width: 25%;
}

.estudiantes-course-table.is-delete-mode col:not(.estudiantes-course-action-col) {
    width: calc((100% - 46px) / 4);
}

.estudiantes-course-table.is-delete-mode .estudiantes-course-action-col {
    width: 46px;
}

.estudiantes-course-table.is-delete-mode th,
.estudiantes-course-table.is-delete-mode td {
    width: auto;
}

.estudiantes-course-table th:nth-child(3),
.estudiantes-course-table th:nth-child(4),
.estudiantes-course-table td:nth-child(3),
.estudiantes-course-table td:nth-child(4) {
    text-align: center;
}

.estudiantes-course-table th,
.estudiantes-course-table td {
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 12px;
    padding-right: 12px;
}

.estudiantes-course-table thead th {
    white-space: normal;
    line-height: 1.15;
    font-size: 10px;
    font-weight: 600;
    color: #53657a;
    letter-spacing: 0.25px;
    background: #f8fafc;
}

.estudiantes-course-table td {
    height: 28px;
}

.estudiantes-course-table .numeric-cell {
    text-align: center;
}

.estudiantes-course-action-cell {
    text-align: center;
}

.estudiantes-delete-curso-row {
    min-width: 30px;
    min-height: 30px;
    width: 30px;
    height: 30px;
    color: var(--ui-danger);
}

.estudiantes-delete-curso-row:hover {
    color: #fff;
    background: var(--ui-danger);
    border-color: var(--ui-danger);
}

.estudiantes-course-table td strong,
.estudiantes-course-table td small {
    display: block;
}

.estudiantes-course-table td strong {
    font-weight: 600;
    color: var(--ui-blue-700);
}

.estudiantes-course-table td small {
    margin-top: 2px;
    color: var(--ui-muted);
    font-size: 12px;
}

.numeric-cell {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.aplicacion-page {
    display: grid;
    gap: 16px;
}

.aplicacion-panel {
    display: grid;
    gap: 14px;
}

.aplicacion-filters {
    display: grid;
    grid-template-columns: minmax(112px, 0.42fr) minmax(150px, 0.56fr) minmax(260px, 1.2fr) max-content;
    gap: 12px;
    align-items: end;
}

.aplicacion-filter-field {
    align-self: end;
    display: grid;
    gap: 8px;
    color: var(--ui-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.35px;
    text-transform: uppercase;
}

.aplicacion-filter-field > span {
    line-height: 1;
}

.aplicacion-filter-field .input-field {
    height: 40px;
    min-height: 40px;
}

.aplicacion-filter-actions {
    align-self: start;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    height: 40px;
    margin-top: 19px;
    white-space: nowrap;
}

.aplicacion-filter-actions .soft-button {
    height: 40px;
    min-height: 40px;
}

.aplicacion-filter-actions .filter-clear-button {
    flex: 0 0 40px;
}

.aplicacion-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.aplicacion-metric {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 86px;
    padding: 14px;
    border: 1px solid var(--ui-border);
    border-radius: 8px;
    background: #fff;
}

.aplicacion-metric i {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--ui-blue-700);
    background: var(--ui-blue-100);
    font-size: 17px;
}

.aplicacion-metric div {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.aplicacion-metric span,
.aplicacion-metric small,
.aplicacion-table td span {
    color: var(--ui-muted);
    font-size: 12px;
}

.aplicacion-metric strong {
    color: var(--text);
    font-size: 22px;
    line-height: 1;
}

.aplicacion-metric strong .aplicacion-inline-spinner {
    width: auto;
    height: auto;
    display: inline-block;
    border-radius: 0;
    color: var(--ui-blue-700);
    background: transparent;
    font-size: 20px;
    animation: aplicacion-spin 0.8s linear infinite;
}

@keyframes aplicacion-spin {
    to {
        transform: rotate(360deg);
    }
}

.aplicacion-metric small.is-empty {
    visibility: hidden;
}

.aplicacion-filter-band {
    padding: 0 0 0 18px;
    border-left: 4px solid var(--ui-blue-600);
}

.aplicacion-filter-band h3 {
    margin: 0 0 8px;
    color: var(--ui-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.aplicacion-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px;
    width: max-content;
    max-width: 100%;
    border: 1px solid var(--ui-border);
    border-radius: 10px;
    background: #f8fafc;
}

.aplicacion-tab {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ui-muted);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.aplicacion-tab:hover {
    color: var(--ui-blue-700);
    background: #fff;
}

.aplicacion-tab.is-active {
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    background: #fff;
    color: var(--ui-blue-700);
}

.aplicacion-tab:disabled {
    cursor: default;
    opacity: 1;
}

.aplicacion-lime-view {
    gap: 16px;
}

.aplicacion-lime-view-actions {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.aplicacion-lime-filter-chip {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px 6px 10px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    color: var(--ui-blue-700);
    font-size: 12px;
    font-weight: 700;
}

.aplicacion-lime-filter-chip button {
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: inherit;
}

.aplicacion-lime-filter-chip button:hover {
    background: #dbeafe;
}

.aplicacion-lime-ratios {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.aplicacion-lime-sample-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--ui-border);
    border-radius: 8px;
    background: #fff;
}

.aplicacion-lime-sample-card h3 {
    margin: 0;
    color: var(--text);
    font-size: 14px;
}

.aplicacion-lime-table-wrap {
    max-height: 420px;
    border: 1px solid var(--ui-border);
    border-radius: 8px;
    overflow: auto;
}

.aplicacion-lime-table {
    min-width: 1120px;
    font-size: 13px;
}

.aplicacion-lime-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}

.aplicacion-lime-sample-table th:nth-child(1),
.aplicacion-lime-sample-table td:nth-child(1) {
    width: 82px;
}

.aplicacion-lime-sample-table th:nth-child(2),
.aplicacion-lime-sample-table td:nth-child(2) {
    width: 76px;
}

.aplicacion-lime-sample-table th:nth-child(3),
.aplicacion-lime-sample-table td:nth-child(3) {
    width: 104px;
}

.aplicacion-lime-sample-table th:nth-child(4),
.aplicacion-lime-sample-table td:nth-child(4) {
    width: 94px;
}

.aplicacion-lime-sample-table th:nth-child(5),
.aplicacion-lime-sample-table td:nth-child(5),
.aplicacion-lime-sample-table th:nth-child(6),
.aplicacion-lime-sample-table td:nth-child(6) {
    width: 140px;
}

.aplicacion-lime-sample-table th:nth-child(n+7),
.aplicacion-lime-sample-table td:nth-child(n+7) {
    width: 104px;
}

.aplicacion-questionpro-sample-table {
    min-width: 980px;
}

.aplicacion-questionpro-sample-table th:nth-child(3),
.aplicacion-questionpro-sample-table td:nth-child(3),
.aplicacion-questionpro-sample-table th:nth-child(6),
.aplicacion-questionpro-sample-table td:nth-child(6) {
    width: 76px;
    min-width: 76px;
}

.aplicacion-questionpro-sample-table th:nth-child(4),
.aplicacion-questionpro-sample-table td:nth-child(4),
.aplicacion-questionpro-sample-table th:nth-child(5),
.aplicacion-questionpro-sample-table td:nth-child(5) {
    width: 150px;
    min-width: 150px;
}

.aplicacion-lime-table td {
    overflow-wrap: anywhere;
    white-space: normal;
}

.aplicacion-lime-empty {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 64px;
    padding: 14px;
    border: 1px dashed var(--ui-border);
    border-radius: 8px;
    color: var(--ui-muted);
    background: #f8fafc;
    font-weight: 700;
}

.aplicacion-lime-empty i {
    color: var(--ui-blue-700);
}

.aplicacion-inline-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.aplicacion-inline-loading i {
    font-size: 13px;
}

.aplicacion-table-wrap {
    border: 1px solid var(--ui-border);
    border-radius: 10px;
}

.aplicacion-table-shell {
    position: relative;
    min-width: 980px;
    padding-top: 24px;
}

.aplicacion-app-band {
    position: absolute;
    top: 0;
    right: 0;
    width: 168px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.32);
    background: var(--ui-blue-700);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.4px;
    line-height: 1;
    text-transform: uppercase;
}

.aplicacion-table {
    min-width: 100%;
    table-layout: fixed;
}

.aplicacion-col-rbd {
    width: 74px;
}

.aplicacion-col-ee {
    width: auto;
}

.aplicacion-col-fecha {
    width: 104px;
}

.aplicacion-col-estado {
    width: 96px;
}

.aplicacion-col-cursos {
    width: 150px;
}

.aplicacion-col-convocados {
    width: 84px;
}

.aplicacion-col-app {
    width: 84px;
}

.aplicacion-table th,
.aplicacion-table td {
    vertical-align: top;
}

.aplicacion-table thead th {
    vertical-align: bottom;
}

.aplicacion-app-head,
.aplicacion-table tbody td:nth-last-child(-n + 2) {
    text-align: center;
}

.aplicacion-app-head {
    background: var(--ui-blue-500);
    color: #fff;
}

.aplicacion-app-progress {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 54px;
}

.aplicacion-table td .aplicacion-app-progress span {
    display: inline;
}

.aplicacion-progress-button {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 7px;
    background: #f8fafc;
    color: #94a3b8;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.aplicacion-progress-button:hover {
    transform: translateY(-1px);
}

.aplicacion-progress-button.is-empty {
    border-color: #e2e8f0;
    color: #94a3b8;
}

.aplicacion-progress-button.is-partial {
    border-color: #fde68a;
    background: #fffbeb;
    color: #d97706;
}

.aplicacion-progress-button.is-complete {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #15803d;
}

.aplicacion-table th:nth-child(6),
.aplicacion-table td:nth-child(6) {
    text-align: center;
}

.aplicacion-table .status-pill {
    width: auto;
    min-width: 0;
    max-width: 100%;
    padding: 4px 7px;
    font-size: 11px;
}

.aplicacion-table td strong,
.aplicacion-table td span {
    display: block;
}

.aplicacion-ee-name {
    max-width: 100%;
}

.aplicacion-course-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.aplicacion-course-chip {
    display: inline-grid;
    align-items: center;
    justify-items: center;
    gap: 2px;
    max-width: 100%;
    padding: 3px 5px;
    border: 1px solid var(--ui-border);
    border-radius: 8px;
    background: #f8fafc;
    color: var(--text);
    font-size: 12px;
    line-height: 1.15;
    text-align: center;
}

.aplicacion-course-name {
    display: inline-block;
    min-width: 26px;
    padding-bottom: 2px;
    border-bottom: 1px solid #dbe4ef;
}

.aplicacion-course-chip strong {
    margin-top: 1px;
    color: var(--ui-blue-700);
    text-align: center;
    font-size: 12px;
}

.estudiantes-click-row {
    cursor: pointer;
}

.estudiantes-click-row:hover td {
    background: #f8fafc;
}

.estudiantes-click-row.is-selected td {
    background: var(--ui-blue-100);
    color: var(--ui-blue-700);
}

.estudiante-editor-popup {
    position: fixed;
    top: 96px;
    right: 24px;
    z-index: 1200;
    width: min(720px, calc(100vw - 40px));
    max-height: calc(100vh - 120px);
    overflow: auto;
    border: 1px solid var(--ui-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.24);
}

.estudiante-editor-popup > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px 10px;
    border-bottom: 1px solid var(--ui-border);
    cursor: move;
    user-select: none;
}

.estudiante-editor-popup h2 {
    margin: 0;
    color: var(--ui-blue-700);
    font-size: 16px;
}

.estudiante-editor-popup header p {
    margin: 4px 0 0;
    color: var(--ui-muted);
    font-size: 12px;
    font-weight: 600;
}

.estudiante-editor-popup .modal-close-icon {
    margin-top: -5px;
    cursor: pointer;
}

.estudiante-editor-form {
    border: 0;
    border-radius: 0;
    padding: 14px 16px 16px;
}

.estudiante-editor-form footer,
.estudiantes-modal-form footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.estudiante-editor-form footer {
    justify-content: space-between;
}

.estudiante-editor-footer-actions {
    display: flex;
    gap: 10px;
}

.soft-button.danger-button {
    color: #c0392b;
    border-color: #e6b3ac;
}

.soft-button.danger-button:hover {
    background: #fdecea;
    border-color: #c0392b;
}

.estudiante-move-backdrop {
    z-index: 1300;
}

.estudiante-edit-card {
    display: grid;
    gap: 12px;
    margin-top: 12px;
    padding: 14px;
    border: 1px solid var(--ui-border);
    border-radius: 8px;
    background: #fbfcff;
}

.estudiante-edit-card > div:first-child {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.estudiante-edit-card > div:first-child strong {
    color: var(--ui-blue-700);
}

.estudiante-edit-card > div:first-child span,
.estudiantes-modal-context {
    color: var(--ui-muted);
    font-size: 12px;
    font-weight: 600;
}

.estudiante-edit-card footer,
.estudiantes-modal-form footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 4px;
}

.estudiantes-modal-card {
    max-width: 760px;
}

.estudiantes-modal-card header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.estudiantes-modal-card header h2 {
    min-width: 0;
    padding-top: 6px;
}

.modal-close-icon {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ui-muted);
    display: inline-grid;
    place-items: center;
    cursor: pointer;
}

.modal-close-icon:hover {
    background: #f3f4f6;
    color: var(--ui-blue-700);
}

.estudiantes-modal-form {
    border: 0;
    padding: 0;
}

.estudiantes-modal-context {
    margin: 0;
}

.estudiante-run-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 10px;
}

.estudiante-run-search > label {
    min-width: 0;
}

.estudiante-run-search .soft-button {
    min-height: 40px;
    justify-content: center;
    white-space: nowrap;
}

.estudiante-run-search-status {
    margin: 0;
    padding: 9px 10px;
    border: 1px solid var(--ui-border);
    border-radius: 6px;
    background: #f8fafc;
    color: var(--ui-muted);
    font-size: 12px;
    line-height: 1.35;
}

.estudiante-run-search-status.is-found {
    border-color: #a8d7d3;
    background: #edf9f7;
    color: #16635c;
}

.empty-state,
.empty-cell {
    padding: 22px;
    color: var(--muted);
    text-align: center;
}

.toast-root {
    position: fixed;
    right: 18px;
    top: 76px;
    z-index: 2147483000;
    display: grid;
    gap: 10px;
    justify-items: end;
    pointer-events: none;
}

#toast-root .toast {
    --toast-button-bg: rgba(0, 0, 0, 0.22);
    --toast-button-hover-bg: rgba(0, 0, 0, 0.28);
    display: block;
    width: min(520px, calc(100vw - 36px));
    min-height: 62px;
    padding: 0;
    border-radius: 8px;
    color: #fff;
    background: #59abc3;
    box-shadow: var(--shadow);
    pointer-events: auto;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    animation: toast-in 160ms ease-out forwards;
    border: 0;
    backdrop-filter: none;
}

#toast-root .toast-main {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
}

#toast-root .toast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    font-size: 25px;
    line-height: 1;
    color: #fff;
}

#toast-root .toast-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

#toast-root .toast-title {
    display: block;
    color: #fff;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
}

#toast-root .toast-body {
    display: block;
    color: #fff;
    font-size: 12.8px;
    line-height: 1.28;
    font-weight: 400;
    white-space: pre-line;
}

#toast-root .toast-actions {
    display: flex;
    justify-content: flex-end;
    gap: 22px;
    padding: 12px 18px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.74);
}

#toast-root .toast-button {
    min-width: 132px;
    height: 38px;
    border: 0;
    border-radius: 8px;
    background: var(--toast-button-bg);
    color: #fff;
    font-size: 12.8px;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 140ms ease, transform 140ms ease;
}

#toast-root .toast-button:hover,
#toast-root .toast-button:focus-visible {
    background: var(--toast-button-hover-bg);
}

#toast-root .toast-button:active {
    transform: translateY(1px);
}

#toast-root .toast-error {
    background: #ca5e59;
}

#toast-root .toast-info {
    --toast-button-bg: #38839a;
    --toast-button-hover-bg: #38839a;
    background: #59abc3;
}

#toast-root .toast-success {
    background: #74b574;
}

#toast-root .toast-warning {
    --toast-button-bg: #a07114;
    --toast-button-hover-bg: #aa781a;
    background: #e6ab36;
}

@media (max-width: 640px) {
    #toast-root .toast {
        width: calc(100vw - 24px);
    }

    #toast-root .toast-main {
        grid-template-columns: 30px minmax(0, 1fr);
        gap: 10px;
        padding: 14px 16px;
    }

    #toast-root .toast-icon {
        width: 30px;
        height: 30px;
        font-size: 25px;
    }

    #toast-root .toast-actions {
        gap: 10px;
        padding: 12px 18px 14px;
    }

    #toast-root .toast-button {
        min-width: 0;
        flex: 1 1 0;
    }
}

@keyframes toast-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tipografia de tablas y filtros alineada con /monitoreo */
.seguimiento-filters span,
.contacto-filters span,
.contacto-lab-filters label > span,
.aplicacion-filter-field,
.aplicacion-lime-establecimiento-filter span,
.aplicacion-lime-filter-field span,
.aplicacion-lime-course-filter span {
    font-size: 11px;
}

.input-field,
.seguimiento-filters .input-field,
.contacto-filters .input-field,
.contacto-lab-filters .input-field,
.aplicacion-filter-field .input-field {
    font-size: 14px;
}

th {
    font-size: 12px;
}

.contacto-lab-table,
.aplicacion-lime-table {
    font-size: 13px;
}

.contacto-lab-table th,
.aplicacion-table thead th,
.aplicacion-lime-table thead th,
.estudiantes-table thead th {
    font-size: 12px;
}

.aplicacion-app-band,
.aplicacion-lime-app-band,
.aplicacion-lime-sticky-band {
    font-size: 10px;
    font-weight: 650;
}

.aplicacion-table .status-pill,
.contacto-lab-table .status-pill {
    font-size: 11px;
}

@media (max-width: 900px) {
    .app-shell,
    .sidebar-collapsed {
        grid-template-columns: 70px minmax(0, 1fr);
    }

    .brand span {
        display: none;
    }

    .metrics-grid,
    .seguimiento-filters,
    .aplicacion-filters,
    .asignacion-filters,
    .contacto-filters,
    .aplicacion-summary-grid,
    .aplicacion-lime-ratios,
    .ficha-status-grid,
    .datos-grid,
    .modal-form-grid {
        grid-template-columns: 1fr;
    }

    .seguimiento-ratios,
    .metric-group-items {
        grid-template-columns: 1fr;
    }

    .contacto-view {
        display: grid;
        grid-template-columns: 1fr;
        height: auto;
        min-height: 0;
        overflow: visible;
        gap: 18px;
    }

    .operadores-layout {
        grid-template-columns: 1fr;
    }

    .mantenedor-insumos-grid {
        grid-template-columns: 1fr;
    }

    .mantenedor-formularios-layout,
    .mantenedor-formularios-title-row,
    .mantenedor-formularios-workspace,
    .mantenedor-form-preload-panel,
    .mantenedor-form-meta-grid,
    .mantenedor-form-section-fields,
    .mantenedor-form-question-grid,
    .mantenedor-emp-title-row,
    .mantenedor-emp-search-grid,
    .mantenedor-emp-create-grid,
    .mantenedor-emp-link-grid,
    .mantenedor-emp-link-search,
    .mantenedor-emp-selected-grid,
    .mantenedor-persona-form {
        grid-template-columns: 1fr;
    }

    .mantenedor-emp-wide {
        grid-column: auto;
    }

    .reunion-week {
        grid-template-columns: 1fr;
    }

    .contacto-lab-ratios-band,
    .contacto-lab-filters,
    .contacto-lab-ficha-grid,
    .contacto-lab-prelim-grid,
    .contacto-lab-cursos-grid {
        grid-template-columns: 1fr;
    }

    .contacto-lab-datos-grid-shell {
        grid-template-columns: 1fr;
    }

    .contacto-lab-ficha-column {
        padding: 0;
    }

    .contacto-lab-ficha-column + .contacto-lab-ficha-column {
        border: 0;
        padding-top: 16px;
    }

    .reunion-day.is-empty {
        display: none;
    }

    .reunion-slot,
    .reunion-slot.is-draft,
    .reunion-ee-item,
    .reunion-add-ee {
        grid-template-columns: 1fr;
    }

    .reunion-slot .icon-button-only {
        justify-self: center;
    }

    .contacto-reunion-controls {
        grid-template-columns: 1fr;
    }

    .contacto-estado-summary,
    .contacto-registro-title {
        grid-template-columns: 1fr;
    }

    .contacto-estado-card + .contacto-estado-card {
        border-left: 0;
        border-top: 1px solid var(--ui-border);
        padding-left: 0;
        padding-top: 18px;
    }

    .contacto-reunion-picker-row,
    .contacto-reunion-mail-row,
    .contacto-participacion-mail-row {
        grid-template-columns: 1fr;
    }

    .contacto-registro-title .state-button-group {
        width: 100%;
        justify-self: stretch;
    }

    .contacto-participacion-send,
    .contacto-participacion-envio {
        margin-top: 0;
    }

    .contacto-historial-head-detail {
        display: block;
    }

    .etapas-form-grid {
        grid-template-columns: 1fr;
    }

    .estudiantes-section-header {
        display: grid;
    }

    .estudiantes-establecimiento-grid {
        grid-template-columns: 1fr;
    }

    .estudiantes-level-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .estudiantes-actions {
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .form-grid.compact {
        grid-template-columns: 1fr;
    }

    .contacto-view > .contacto-panel,
    .contacto-view > .contacto-ficha-panel {
        flex: initial;
        max-width: none;
        min-width: 0;
    }

    .contacto-resizer {
        display: none;
    }

    .contacto-ficha-panel {
        position: static;
        overflow: visible;
    }

    .topbar-user span {
        display: none;
    }
}

@media (max-width: 760px) {
    .etapas-filters {
        grid-template-columns: 1fr;
    }

    .etapas-filters .etapas-filter-actions {
        width: 88px;
        min-width: 88px;
        justify-content: start;
    }

    .estudiantes-establecimiento-control {
        grid-template-columns: 1fr;
    }

    .estudiantes-establecimiento-control .primary-button {
        justify-self: start;
    }

    .estudiantes-level-summary {
        grid-template-columns: 1fr;
    }
}
