:root {
    --tc-bg: #e9eef5;
    --tc-panel: #eef3f9;
    --tc-panel-deep: #dfe7f1;
    --tc-text: #172032;
    --tc-muted: #6d7890;
    --tc-primary: #0b7cff;
    --tc-cyan: #00d5ff;
    --tc-green: #21c68b;
    --tc-danger: #ff4d6d;
    --tc-radius-lg: 28px;
    --tc-radius-md: 16px;
    --tc-radius-sm: 11px;
    --tc-shadow-out: 16px 16px 34px rgba(143, 157, 180, .42), -16px -16px 34px rgba(255, 255, 255, .86);
    --tc-shadow-in: inset 7px 7px 14px rgba(143, 157, 180, .24), inset -7px -7px 14px rgba(255, 255, 255, .9);
    --tc-shadow-small: 7px 7px 16px rgba(143, 157, 180, .34), -7px -7px 16px rgba(255, 255, 255, .92);
}

* {
    box-sizing: border-box;
}

body.tc-body {
    min-height: 100vh;
    margin: 0;
    color: var(--tc-text);
    background:
        radial-gradient(circle at 15% 20%, rgba(0, 213, 255, .22), transparent 28%),
        radial-gradient(circle at 82% 16%, rgba(11, 124, 255, .16), transparent 32%),
        linear-gradient(145deg, #f8fbff 0%, var(--tc-bg) 52%, #dfe8f4 100%);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tc-login-shell,
.tc-dashboard-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
}

.tc-login-card {
    position: relative;
    width: min(930px, 100%);
    min-height: 560px;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 26px;
    padding: 34px;
    overflow: hidden;
    border-radius: var(--tc-radius-lg);
    background: rgba(238, 243, 249, .82);
    box-shadow: var(--tc-shadow-out);
    border: 1px solid rgba(255, 255, 255, .68);
    backdrop-filter: blur(20px);
}

.tc-brand-panel,
.tc-login-form,
.tc-dashboard-card,
.tc-kpi-card {
    position: relative;
    z-index: 2;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .52), rgba(225, 234, 245, .62));
    box-shadow: var(--tc-shadow-small);
    border: 1px solid rgba(255, 255, 255, .64);
}

.tc-brand-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 42px;
}

.tc-brand-mark {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    margin-bottom: 24px;
    border-radius: 24px;
    color: var(--tc-primary);
    font-size: 38px;
    background: var(--tc-panel);
    box-shadow: var(--tc-shadow-in);
}

.tc-eyebrow {
    margin: 0 0 10px;
    color: var(--tc-primary);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.tc-brand-panel h1,
.tc-dashboard-card h1 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 4vw, 3.6rem);
    font-weight: 850;
    letter-spacing: -.055em;
}

.tc-subtitle {
    color: var(--tc-muted);
    font-size: .95rem;
    line-height: 1.65;
}

.tc-login-form {
    align-self: center;
    padding: 30px;
}

.tc-field-group {
    margin-bottom: 17px;
}

.tc-field-group .form-label {
    margin-left: 4px;
    color: #303a4e;
    font-size: .78rem;
    font-weight: 750;
}

.tc-input-wrap {
    position: relative;
}

.tc-input-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: var(--tc-primary);
    font-size: 1rem;
    z-index: 3;
}

.tc-input {
    height: 44px;
    padding-left: 42px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: var(--tc-radius-sm);
    color: var(--tc-text);
    background: rgba(239, 244, 250, .9);
    box-shadow: var(--tc-shadow-in);
    font-size: .88rem;
    transition: .22s ease;
}

.tc-input:focus {
    border-color: rgba(11, 124, 255, .38);
    background: #f8fbff;
    box-shadow: inset 4px 4px 9px rgba(143, 157, 180, .18), inset -4px -4px 9px rgba(255, 255, 255, .88), 0 0 0 .22rem rgba(0, 213, 255, .12);
}

.tc-btn-primary,
.tc-btn-ghost {
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 14px;
    font-size: .88rem;
    font-weight: 800;
    box-shadow: var(--tc-shadow-small);
    transition: transform .18s ease, box-shadow .18s ease;
}

.tc-btn-primary {
    color: white;
    background: linear-gradient(135deg, var(--tc-primary), #00b4ff 55%, var(--tc-cyan));
}

.tc-btn-ghost {
    color: var(--tc-primary);
    background: var(--tc-panel);
}

.tc-btn-primary:hover,
.tc-btn-ghost:hover {
    transform: translateY(-2px);
    box-shadow: 10px 10px 20px rgba(143, 157, 180, .38), -10px -10px 20px rgba(255, 255, 255, .92);
}

.tc-alert {
    padding: 10px 12px;
    border: 0;
    border-radius: 14px;
    font-size: .82rem;
    box-shadow: var(--tc-shadow-in);
}

.tc-login-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: var(--tc-muted);
    font-size: .77rem;
}

.tc-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tc-green);
    box-shadow: 0 0 18px rgba(33, 198, 139, .95);
}

.tc-orb {
    position: absolute;
    z-index: 1;
    border-radius: 999px;
    filter: blur(1px);
    opacity: .66;
}

.tc-orb-one {
    width: 210px;
    height: 210px;
    right: -76px;
    top: -58px;
    background: radial-gradient(circle, rgba(0, 213, 255, .42), transparent 68%);
}

.tc-orb-two {
    width: 260px;
    height: 260px;
    left: -95px;
    bottom: -120px;
    background: radial-gradient(circle, rgba(11, 124, 255, .24), transparent 70%);
}

.tc-dashboard-shell {
    align-content: start;
    justify-items: stretch;
}

.tc-dashboard-card {
    width: min(1080px, 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 28px;
}

.tc-dashboard-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tc-kpi-grid {
    width: min(1080px, 100%);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 22px;
}

.tc-kpi-card {
    padding: 22px;
}

.tc-kpi-label {
    display: block;
    color: var(--tc-muted);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.tc-kpi-card strong {
    display: block;
    margin: 8px 0;
    font-size: 2.4rem;
    line-height: 1;
}

.tc-kpi-card small {
    color: var(--tc-muted);
}

@media (max-width: 820px) {
    .tc-login-card {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .tc-brand-panel {
        padding: 28px;
    }

    .tc-dashboard-card,
    .tc-dashboard-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .tc-kpi-grid {
        grid-template-columns: 1fr;
    }
}

/* Dashboard con menú lateral ocultable */
.tc-app-layout {
    --tc-sidebar-width: 247px;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

.tc-sidebar {
    position: fixed;
    inset: 18px auto 18px 18px;
    z-index: 30;
    width: var(--tc-sidebar-width);
    max-height: calc(100vh - 36px);
    display: flex;
    flex-direction: column;
    padding: 16px 13px;
    border-radius: 26px;
    color: #eef6ff;
    background:
        radial-gradient(circle at 22% 10%, rgba(0, 213, 255, .24), transparent 34%),
        linear-gradient(155deg, rgba(10, 23, 74, .98), rgba(13, 25, 88, .96) 48%, rgba(5, 11, 39, .98));
    box-shadow: 18px 18px 34px rgba(16, 28, 58, .36), -8px -8px 26px rgba(255, 255, 255, .46), inset 1px 1px 0 rgba(255, 255, 255, .22);
    border: 1px solid rgba(255, 255, 255, .18);
    transform: translateX(0);
    transition: transform .34s cubic-bezier(.22, 1, .36, 1), box-shadow .24s ease;
}

.tc-sidebar::after {
    content: "";
    position: absolute;
    inset: 12px;
    z-index: -1;
    border-radius: 22px;
    border: 1px solid rgba(0, 213, 255, .16);
    box-shadow: inset 8px 8px 18px rgba(0, 0, 0, .23), inset -7px -7px 18px rgba(255, 255, 255, .06);
}

.tc-sidebar-collapsed .tc-sidebar {
    transform: translateX(calc(-1 * var(--tc-sidebar-width) - 34px));
}

.tc-sidebar-brand {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 8px 8px 18px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.tc-sidebar-logo {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    border-radius: 14px;
    color: #7cecff;
    background: rgba(255, 255, 255, .08);
    box-shadow: inset 5px 5px 12px rgba(0, 0, 0, .28), inset -4px -4px 10px rgba(255, 255, 255, .10);
}

.tc-brand-mark-image {
    width: min(320px, 82%);
    height: auto;
    min-height: 112px;
    padding: 18px 22px;
    border-radius: 28px;
}

.tc-login-logo-lit {
    width: min(300px, 100%);
    max-height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .28));
}

.tc-sidebar-logo-lit {
    width: 120px;
    height: auto;
    flex: 0 0 auto;
    padding: 0;
    border-radius: 14px;
    background: transparent;
}

.tc-sidebar-logo-img {
    width: 120px;
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .25));
}

.tc-sidebar-brand strong,
.tc-sidebar-brand span {
    display: block;
    line-height: 1.18;
}

.tc-sidebar-brand strong {
    font-size: .91rem;
    letter-spacing: -.02em;
}

.tc-sidebar-brand span {
    margin-top: 3px;
    color: rgba(238, 246, 255, .64);
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.tc-sidebar-nav {
    display: grid;
    flex: 1 1 auto;
    min-height: 0;
    gap: 8px;
    margin-top: 17px;
    padding-right: 4px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(124, 236, 255, .62) rgba(255, 255, 255, .08);
}

.tc-sidebar-nav::-webkit-scrollbar {
    width: 7px;
}

.tc-sidebar-nav::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
}

.tc-sidebar-nav::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(124, 236, 255, .62);
}

.tc-sidebar-link {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 15px;
    color: rgba(242, 248, 255, .86);
    text-decoration: none;
    font-size: .84rem;
    font-weight: 750;
    transition: transform .18s ease, color .18s ease, background .18s ease, box-shadow .18s ease;
}

.tc-sidebar-link i {
    width: 20px;
    color: #8beeff;
    font-size: 1rem;
}

.tc-sidebar-link:hover,
.tc-sidebar-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, .10);
    box-shadow: inset 5px 5px 12px rgba(0, 0, 0, .24), inset -4px -4px 10px rgba(255, 255, 255, .08), 0 0 18px rgba(0, 213, 255, .12);
    transform: translateX(2px);
}

.tc-sidebar-footer {
    display: flex;
    flex: 0 0 auto;
    gap: 9px;
    margin-top: auto;
    padding: 14px 8px 5px;
}

.tc-sidebar-mini-action {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #e8f8ff;
    text-decoration: none;
    background: rgba(255, 255, 255, .08);
    box-shadow: inset 5px 5px 12px rgba(0, 0, 0, .24), inset -4px -4px 10px rgba(255, 255, 255, .08);
    transition: .18s ease;
}

.tc-sidebar-mini-action:hover {
    color: #7cecff;
    transform: translateY(-2px);
}

.tc-sidebar-toggle {
    position: fixed;
    top: 32px;
    left: calc(var(--tc-sidebar-width) + 30px);
    z-index: 35;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 15px;
    color: var(--tc-primary);
    background: rgba(239, 244, 250, .92);
    box-shadow: var(--tc-shadow-small);
    transition: left .34s cubic-bezier(.22, 1, .36, 1), transform .18s ease, box-shadow .18s ease;
}

.tc-sidebar-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 10px 10px 20px rgba(143, 157, 180, .38), -10px -10px 20px rgba(255, 255, 255, .92), 0 0 24px rgba(0, 213, 255, .17);
}

.tc-sidebar-toggle i {
    transition: transform .26s ease;
}

.tc-sidebar-collapsed .tc-sidebar-toggle {
    left: 18px;
}

.tc-sidebar-collapsed .tc-sidebar-toggle i {
    transform: rotate(180deg);
}

.tc-dashboard-with-sidebar {
    width: 100%;
    min-height: 100vh;
    display: block;
    padding: 28px 28px 28px calc(var(--tc-sidebar-width) + 54px);
    transition: padding-left .34s cubic-bezier(.22, 1, .36, 1);
}

.tc-sidebar-collapsed .tc-dashboard-with-sidebar {
    padding-left: 82px;
}

.tc-dashboard-hero,
.tc-workbench-card,
.tc-dashboard-with-sidebar .tc-kpi-grid {
    width: min(1180px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.tc-dashboard-hero {
    margin-top: 10px;
}

.tc-workbench-card {
    margin-top: 22px;
    padding: 24px;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .50), rgba(225, 234, 245, .64));
    box-shadow: var(--tc-shadow-small);
    border: 1px solid rgba(255, 255, 255, .64);
}

.tc-workbench-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(111, 126, 154, .14);
}

.tc-workbench-title h2 {
    margin: 0;
    color: #111a42;
    font-size: clamp(1.45rem, 2.4vw, 2.25rem);
    font-weight: 850;
    letter-spacing: -.04em;
}

.tc-empty-table {
    min-height: 210px;
    display: grid;
    place-items: center;
    margin-top: 18px;
    padding: 28px;
    border-radius: 20px;
    color: var(--tc-muted);
    background: rgba(239, 244, 250, .74);
    box-shadow: var(--tc-shadow-in);
    text-align: center;
}

.tc-empty-table i {
    margin-bottom: 8px;
    color: var(--tc-primary);
    font-size: 2rem;
}

.tc-empty-table p {
    margin: 0;
    font-size: .88rem;
    font-weight: 700;
}

@media (min-width: 1440px) {
    .tc-app-layout {
        --tc-sidebar-width: 257px;
    }
}

@media (max-width: 920px) {
    .tc-app-layout {
        --tc-sidebar-width: 232px;
    }

    .tc-sidebar {
        inset: 12px auto 12px 12px;
    }

    .tc-dashboard-with-sidebar,
    .tc-sidebar-collapsed .tc-dashboard-with-sidebar {
        padding: 74px 14px 18px;
    }

    .tc-sidebar-toggle,
    .tc-sidebar-collapsed .tc-sidebar-toggle {
        top: 18px;
        left: 18px;
    }

    .tc-workbench-title {
        align-items: stretch;
        flex-direction: column;
    }
}

/* Submenú compacto para Crear Tickets */
.tc-sidebar-group {
    display: grid;
    gap: 7px;
}

.tc-sidebar-parent {
    width: 100%;
    border: 0;
    text-align: left;
    cursor: pointer;
    background: transparent;
}

.tc-sidebar-parent:hover,
.tc-submenu-open .tc-sidebar-parent {
    color: #ffffff;
    background: rgba(255, 255, 255, .10);
    box-shadow: inset 5px 5px 12px rgba(0, 0, 0, .24), inset -4px -4px 10px rgba(255, 255, 255, .08), 0 0 18px rgba(0, 213, 255, .12);
    transform: translateX(2px);
}

.tc-sidebar-parent span {
    flex: 1;
}

.tc-submenu-chevron {
    width: auto !important;
    margin-left: auto;
    color: rgba(124, 236, 255, .82) !important;
    font-size: .74rem !important;
    transition: transform .22s ease;
}

.tc-submenu-open .tc-submenu-chevron {
    transform: rotate(180deg);
}

.tc-sidebar-submenu {
    display: grid;
    gap: 6px;
    max-height: 0;
    margin-left: 14px;
    padding-left: 13px;
    overflow: hidden;
    border-left: 1px solid rgba(124, 236, 255, .24);
    transition: max-height .28s ease, padding-top .2s ease, padding-bottom .2s ease, opacity .2s ease;
    opacity: 0;
}

.tc-submenu-open .tc-sidebar-submenu {
    max-height: 170px;
    padding-top: 2px;
    padding-bottom: 4px;
    opacity: 1;
}

.tc-sidebar-sublink {
    min-height: 34px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 13px;
    color: rgba(242, 248, 255, .76);
    text-decoration: none;
    font-size: .78rem;
    font-weight: 720;
    background: rgba(255, 255, 255, .045);
    transition: transform .18s ease, color .18s ease, background .18s ease, box-shadow .18s ease;
}

.tc-sidebar-sublink i {
    width: 16px;
    color: rgba(139, 238, 255, .82);
    font-size: .86rem;
}

.tc-sidebar-sublink:hover,
.tc-sidebar-sublink.active {
    color: #ffffff;
    background: rgba(0, 213, 255, .13);
    box-shadow: inset 4px 4px 9px rgba(0, 0, 0, .18), inset -3px -3px 8px rgba(255, 255, 255, .07);
    transform: translateX(2px);
}

/* Incidentes module */
.tc-message-stack {
    margin-bottom: 1rem;
}

.tc-filter-form {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(180px, 220px) auto;
    gap: 0.75rem;
    align-items: center;
}

.tc-form-control {
    border: 1px solid rgba(255, 255, 255, .68);
    background: rgba(239, 244, 250, .92);
    color: var(--tc-text);
    border-radius: 14px;
    box-shadow: var(--tc-shadow-in);
}

.tc-form-control:focus {
    border-color: rgba(11, 124, 255, .42);
    background: #f8fbff;
    color: var(--tc-text);
    box-shadow: inset 4px 4px 9px rgba(143, 157, 180, .18), inset -4px -4px 9px rgba(255, 255, 255, .88), 0 0 0 .22rem rgba(0, 213, 255, .12);
}

.tc-table-shell {
    width: 100%;
    overflow-x: auto;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .66);
    box-shadow: var(--tc-shadow-in);
}

.tc-data-table {
    margin-bottom: 0;
    color: var(--tc-text);
}

.tc-data-table thead th {
    background: rgba(238, 243, 249, .88);
    color: var(--tc-primary);
    border-bottom: 1px solid rgba(143, 157, 180, .22);
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tc-data-table tbody td {
    background: rgba(255, 255, 255, .28);
    border-bottom: 1px solid rgba(143, 157, 180, .16);
    color: var(--tc-text);
}

.tc-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 86px;
    padding: .32rem .62rem;
    border-radius: 999px;
    background: rgba(11, 124, 255, .12);
    color: var(--tc-primary);
    border: 1px solid rgba(11, 124, 255, .16);
    font-size: .78rem;
    font-weight: 800;
}

.tc-incident-form label {
    color: #303a4e;
    font-size: .82rem;
    font-weight: 800;
    margin-bottom: .38rem;
}

.tc-incident-form .errorlist {
    margin: .35rem 0 0;
    padding-left: 1rem;
    color: var(--tc-danger);
    font-size: .82rem;
}

.tc-form-section {
    padding: 1.2rem;
    margin-bottom: 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, .28);
    border: 1px solid rgba(255, 255, 255, .62);
    box-shadow: inset 7px 7px 14px rgba(143, 157, 180, .12), inset -7px -7px 14px rgba(255, 255, 255, .64);
}

.tc-form-section h2 {
    margin-bottom: 1rem;
    color: var(--tc-text);
    font-size: 1rem;
    font-weight: 850;
}

.tc-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
    margin-top: 1rem;
}

.tc-detail-grid {
    width: min(1080px, 100%);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 22px;
}

.tc-detail-list {
    display: grid;
    grid-template-columns: minmax(140px, .45fr) minmax(180px, 1fr);
    gap: .65rem 1rem;
    margin: 0;
}

.tc-detail-list dt {
    color: var(--tc-primary);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.tc-detail-list dd {
    margin: 0;
    color: var(--tc-text);
}

.tc-description-block {
    padding: 1rem 0;
    border-top: 1px solid rgba(143, 157, 180, .16);
}

.tc-description-block:first-of-type {
    border-top: 0;
}

.tc-description-block h3 {
    color: var(--tc-primary);
    font-size: .92rem;
    margin-bottom: .35rem;
    font-weight: 850;
}

.tc-description-block p {
    color: var(--tc-text);
    margin-bottom: 0;
}

.tc-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    color: var(--tc-muted);
}

.tc-sidebar-sublink.active,
.tc-sidebar-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, .13);
    border-color: rgba(124, 236, 255, .22);
}

@media (max-width: 992px) {
    .tc-filter-form {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .tc-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* Búsqueda rápida en formulario de Incidentes */
.tc-form-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tc-form-section-heading h2 {
    margin-bottom: 0;
}

.tc-form-section-heading span {
    max-width: 560px;
    color: var(--tc-muted);
    font-size: .78rem;
    line-height: 1.45;
    text-align: right;
}

.tc-people-section .tc-form-control[readonly] {
    color: #4d5b72;
    background: rgba(232, 239, 248, .76);
}

.tc-lookup-input-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px;
    gap: .55rem;
    align-items: center;
}

.tc-lookup-btn {
    width: 46px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--tc-primary), #00b4ff 58%, var(--tc-cyan));
    box-shadow: 7px 7px 15px rgba(143, 157, 180, .36), -7px -7px 15px rgba(255, 255, 255, .92);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.tc-lookup-btn:hover,
.tc-lookup-btn:focus {
    transform: translateY(-2px);
    filter: saturate(1.05);
    box-shadow: 10px 10px 20px rgba(143, 157, 180, .4), -10px -10px 20px rgba(255, 255, 255, .95), 0 0 0 .18rem rgba(0, 213, 255, .14);
}

.tc-lookup-modal {
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 24px;
    background: rgba(238, 243, 249, .96);
    box-shadow: var(--tc-shadow-out);
    overflow: hidden;
}

.tc-lookup-modal .modal-header {
    border-bottom: 1px solid rgba(143, 157, 180, .18);
}

.tc-lookup-query {
    margin-bottom: .9rem;
    padding: .75rem .9rem;
    color: var(--tc-muted);
    font-size: .84rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, .38);
    box-shadow: var(--tc-shadow-in);
}

.tc-lookup-results {
    display: grid;
    gap: .75rem;
}

.tc-lookup-result {
    width: 100%;
    padding: .95rem 1rem;
    display: grid;
    gap: .24rem;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, .64);
    border-radius: 18px;
    color: var(--tc-text);
    background: linear-gradient(145deg, rgba(255, 255, 255, .5), rgba(225, 234, 245, .62));
    box-shadow: var(--tc-shadow-small);
    transition: transform .18s ease, box-shadow .18s ease;
}

.tc-lookup-result:hover,
.tc-lookup-result:focus {
    transform: translateY(-2px);
    box-shadow: 10px 10px 20px rgba(143, 157, 180, .36), -10px -10px 20px rgba(255, 255, 255, .95);
}

.tc-lookup-result strong {
    color: #101b33;
    font-size: .95rem;
}

.tc-lookup-result span,
.tc-lookup-result small {
    color: var(--tc-muted);
    font-size: .8rem;
}

.tc-lookup-empty {
    padding: 1rem;
    color: var(--tc-muted);
    text-align: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, .34);
    box-shadow: var(--tc-shadow-in);
}

@media (max-width: 768px) {
    .tc-form-section-heading {
        flex-direction: column;
    }

    .tc-form-section-heading span {
        text-align: left;
    }
}

/* ==========================================================
   Módulo Remotos: Usuarios, Equipos y nodos de inventario
   ========================================================== */
.tc-dashboard-with-sidebar {
    min-width: 0;
}

.tc-remotos-grid,
.tc-detail-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(420px, 1.4fr);
    gap: 1.5rem;
}

.tc-search-bar {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.tc-field-search {
    position: relative;
}

.tc-field-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #4f8cff;
}

.tc-field-search input {
    width: 100%;
    border: 0;
    border-radius: 18px;
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    color: #203044;
    background: #eef3f9;
    box-shadow: inset 7px 7px 14px rgba(163, 177, 198, 0.42), inset -7px -7px 14px rgba(255, 255, 255, 0.92);
    outline: none;
}

.tc-form-card .form-label {
    font-weight: 800;
    color: #24364b;
    margin-bottom: 0.45rem;
}

.tc-check-row {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: #eef3f9;
    box-shadow: 7px 7px 14px rgba(163, 177, 198, 0.35), -7px -7px 14px rgba(255, 255, 255, 0.85);
}

.tc-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.tc-section-title {
    font-size: 1.05rem;
    font-weight: 900;
    color: #1f2d3d;
    margin-bottom: 1rem;
}

.tc-definition-list {
    display: grid;
    grid-template-columns: minmax(120px, 0.55fr) 1fr;
    gap: 0.75rem 1rem;
    margin: 0;
}

.tc-definition-list dt {
    color: #62738a;
    font-weight: 800;
}

.tc-definition-list dd {
    margin: 0;
    color: #1f2d3d;
    font-weight: 700;
}

.tc-node-tree {
    position: relative;
    padding: 0.25rem 0 0.25rem 0.25rem;
}

.tc-node-tree-main {
    max-height: 68vh;
    overflow: auto;
    padding-right: 0.4rem;
}

.tc-tree-panel {
    overflow: hidden;
}

.tc-tree-equipo,
.tc-tree-leaf,
.tc-tree-row {
    position: relative;
    margin: 0.15rem 0;
    padding-left: 1rem;
}

.tc-tree-equipo::before,
.tc-tree-leaf::before,
.tc-tree-row::before {
    content: "";
    position: absolute;
    left: 0.25rem;
    top: -0.25rem;
    bottom: 0.75rem;
    border-left: 1px dotted rgba(58, 80, 107, 0.4);
}

.tc-tree-equipo summary,
.tc-tree-leaf > div,
.tc-tree-row,
.tc-tree-child {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2rem;
    border-radius: 12px;
    padding: 0.35rem 0.5rem;
    color: #223247;
    text-decoration: none;
}

.tc-tree-equipo summary {
    cursor: pointer;
    list-style: none;
    font-weight: 800;
}

.tc-tree-equipo summary::-webkit-details-marker {
    display: none;
}

.tc-tree-equipo summary:hover,
.tc-tree-child:hover,
.tc-tree-row:hover {
    background: rgba(79, 140, 255, 0.08);
}

.tc-tree-child,
.tc-tree-level {
    margin-left: 1.35rem;
}

.tc-tree-child span,
.tc-tree-leaf span,
.tc-tree-equipo summary span,
.tc-tree-row span {
    color: #62738a;
    font-size: 0.88rem;
    font-weight: 600;
}

.tc-import-note {
    border-radius: 20px;
    padding: 1rem 1.15rem;
    background: linear-gradient(145deg, rgba(79, 140, 255, 0.08), rgba(255, 255, 255, 0.45));
    box-shadow: inset 5px 5px 10px rgba(163, 177, 198, 0.25), inset -5px -5px 10px rgba(255, 255, 255, 0.85);
}

.tc-import-note h2 {
    font-size: 1rem;
    font-weight: 900;
    color: #1f2d3d;
    margin-bottom: 0.4rem;
}

@media (max-width: 992px) {
    .tc-remotos-grid,
    .tc-detail-grid {
        grid-template-columns: 1fr;
    }
    .tc-search-bar {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Detalle de incidente con tres bloques horizontales */
.tc-detail-grid-three {
    width: min(1320px, 100%);
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tc-contact-card {
    align-items: stretch;
    flex-direction: column;
}

.tc-contact-form {
    display: grid;
    gap: .8rem;
}

.tc-contact-history {
    display: grid;
    gap: .65rem;
    margin-top: 1rem;
    max-height: 260px;
    overflow: auto;
}

.tc-contact-item {
    padding: .75rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, .34);
    box-shadow: var(--tc-shadow-in);
}

.tc-contact-item strong,
.tc-contact-item small {
    display: block;
}

.tc-contact-item small {
    color: var(--tc-muted);
    font-size: .76rem;
}

.tc-contact-evidence {
    margin: .35rem 0 0;
    color: var(--tc-text);
    font-size: .82rem;
    line-height: 1.45;
    white-space: pre-wrap;
}

@media (max-width: 1180px) {
    .tc-detail-grid-three {
        grid-template-columns: 1fr;
        width: min(1080px, 100%);
    }
}


/* Alineación del formulario de Usuario Remoto con el encabezado */
.tc-user-remote-form {
    width: min(1180px, 100%);
    margin: 22px auto 0;
    display: block;
    align-items: stretch;
}

.tc-user-remote-form .row {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.tc-user-remote-form .form-control,
.tc-user-remote-form .form-select,
.tc-user-remote-form select {
    width: 100%;
}

.tc-user-remote-form .tc-form-section-heading {
    width: 100%;
}

.tc-user-remote-form .tc-form-actions {
    justify-content: flex-end;
}

/* ==========================================================
   Corrección visual: centrado consistente de objetos con sidebar
   ========================================================== */
.tc-dashboard-with-sidebar > .tc-dashboard-card,
.tc-dashboard-with-sidebar > .tc-workbench-card,
.tc-dashboard-with-sidebar > .tc-detail-grid,
.tc-dashboard-with-sidebar > .tc-remotos-grid,
.tc-dashboard-with-sidebar > .tc-message-stack {
    width: min(1180px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.tc-dashboard-with-sidebar > .tc-dashboard-card:not(.tc-dashboard-hero),
.tc-dashboard-with-sidebar > .tc-workbench-card,
.tc-dashboard-with-sidebar > .tc-detail-grid,
.tc-dashboard-with-sidebar > .tc-remotos-grid {
    margin-top: 22px;
}

.tc-dashboard-with-sidebar > .tc-dashboard-card:not(.tc-dashboard-hero) {
    align-items: stretch;
}

.tc-dashboard-with-sidebar > .tc-dashboard-card:not(.tc-dashboard-hero) > * {
    width: 100%;
}

.tc-search-bar {
    width: 100%;
}

.tc-search-bar .tc-field-search {
    min-width: 0;
}

.table-responsive {
    width: 100%;
}

.tc-table,
.tc-data-table {
    width: 100%;
}

.tc-detail-grid {
    margin-left: auto;
    margin-right: auto;
}

.tc-detail-grid-three {
    width: min(1180px, 100%);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.tc-detail-grid-three > .tc-workbench-card,
.tc-detail-grid-three > .tc-dashboard-card {
    width: 100%;
    height: 100%;
    margin-top: 0;
}

.tc-contact-card {
    display: flex;
    justify-content: flex-start;
}

@media (max-width: 1280px) {
    .tc-detail-grid-three {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================
   Refuerzo final: eje visual común para pantallas con sidebar
   ========================================================== */
.tc-dashboard-with-sidebar {
    box-sizing: border-box;
}

.tc-dashboard-with-sidebar > .tc-dashboard-hero,
.tc-dashboard-with-sidebar > .tc-detail-grid,
.tc-dashboard-with-sidebar > .tc-workbench-card,
.tc-dashboard-with-sidebar > .tc-remotos-grid,
.tc-dashboard-with-sidebar > .tc-message-stack {
    width: 100%;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.tc-dashboard-with-sidebar > .tc-dashboard-hero {
    align-items: center;
}

.tc-dashboard-with-sidebar > .tc-detail-grid-three {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tc-dashboard-with-sidebar > .tc-detail-grid-three > article {
    min-width: 0;
    box-sizing: border-box;
}

.tc-dashboard-with-sidebar > .tc-detail-grid-three + .tc-workbench-card {
    clear: both;
}

.tc-dashboard-with-sidebar .tc-workbench-title,
.tc-dashboard-with-sidebar .tc-dashboard-actions {
    min-width: 0;
}

.tc-dashboard-with-sidebar .tc-search-bar,
.tc-dashboard-with-sidebar .tc-table,
.tc-dashboard-with-sidebar .tc-data-table,
.tc-dashboard-with-sidebar .table-responsive {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 1360px) {
    .tc-dashboard-with-sidebar > .tc-detail-grid-three {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1361px) {
    .tc-dashboard-with-sidebar > .tc-detail-grid-three {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Actividades: templates, fases y checklist */
.tc-table {
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.tc-table thead th {
    color: var(--tc-muted);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
    border: 0;
}

.tc-table tbody tr {
    background: rgba(246, 249, 253, .78);
    box-shadow: 7px 7px 15px rgba(143, 157, 180, .22), -7px -7px 15px rgba(255, 255, 255, .86);
}

.tc-table tbody tr:nth-child(even) {
    background: rgba(231, 238, 248, .72);
}

.tc-table tbody td {
    padding: 15px 14px;
    border-top: 1px solid rgba(255, 255, 255, .68);
    border-bottom: 1px solid rgba(189, 201, 221, .16);
}

.tc-table tbody td:first-child {
    border-left: 1px solid rgba(255, 255, 255, .68);
    border-radius: 16px 0 0 16px;
}

.tc-table tbody td:last-child {
    border-right: 1px solid rgba(255, 255, 255, .68);
    border-radius: 0 16px 16px 0;
}

.tc-form-control,
.tc-form-section {
    border-radius: 16px;
}

.tc-form-section {
    padding: 22px;
    background: rgba(239, 244, 250, .70);
    box-shadow: var(--tc-shadow-in);
}

.tc-activity-summary-grid {
    width: min(1180px, 100%);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 22px auto 0;
}

.tc-kpi-compact {
    font-size: clamp(1.1rem, 1.9vw, 1.55rem) !important;
    letter-spacing: -.04em;
}

.tc-progress {
    width: 100%;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(220, 229, 241, .88);
    box-shadow: var(--tc-shadow-in);
}

.tc-progress-wide {
    max-width: 260px;
}

.tc-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--tc-primary), var(--tc-cyan));
    box-shadow: 0 0 18px rgba(0, 213, 255, .38);
}

.tc-complexity {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 850;
    box-shadow: inset 3px 3px 7px rgba(143, 157, 180, .18), inset -3px -3px 7px rgba(255, 255, 255, .82);
}

.tc-complexity-baja {
    color: #0f8d66;
    background: rgba(33, 198, 139, .14);
}

.tc-complexity-media {
    color: #9b6a00;
    background: rgba(255, 183, 3, .18);
}

.tc-complexity-alta {
    color: #c22f4d;
    background: rgba(255, 77, 109, .15);
}

.tc-neu-check {
    width: 1.2rem;
    height: 1.2rem;
    border: 0;
    background-color: #edf3fa;
    box-shadow: var(--tc-shadow-in);
}

.tc-phase-done {
    color: rgba(23, 32, 50, .68);
}

.tc-phase-done td:nth-child(3) {
    text-decoration: line-through;
}

@media (max-width: 920px) {
    .tc-activity-summary-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   Ticket Center · Spinner modal corporativo neomórfico
   Variante 01 seleccionada: Anillo 3D corporativo
   ========================================================== */
.tc-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 2140;
    display: none;
    place-items: center;
    padding: 1.5rem;
    background: rgba(216, 229, 244, 0.58);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.tc-loading-overlay.is-visible {
    display: grid;
    animation: tcLoadingFadeIn 0.24s cubic-bezier(.22, 1, .36, 1) both;
}

.tc-loading-dialog {
    width: min(460px, 100%);
    padding: 2.25rem 2.1rem 2rem;
    border-radius: 2.375rem;
    text-align: center;
    background: linear-gradient(145deg, rgba(248, 252, 255, 0.98), rgba(223, 236, 250, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.74);
    box-shadow:
        28px 28px 56px rgba(74, 101, 132, 0.36),
        -24px -24px 54px rgba(255, 255, 255, 0.82),
        inset 1px 1px 1px rgba(255, 255, 255, 0.84);
    transform: translateY(12px) scale(0.98);
    animation: tcLoadingModalIn 0.34s cubic-bezier(.22, 1, .36, 1) both;
}

.tc-loading-dialog h2 {
    margin: 1.35rem 0 0.5rem;
    color: #142033;
    font-size: clamp(1.35rem, 2.8vw, 1.62rem);
    font-weight: 900;
    letter-spacing: -0.05em;
}

.tc-loading-dialog p {
    max-width: 330px;
    margin: 0 auto;
    color: #6a7890;
    font-weight: 700;
    line-height: 1.55;
}

.tc-loading-ring-3d {
    --tc-loading-size: 158px;
    width: var(--tc-loading-size);
    height: var(--tc-loading-size);
    margin: 0 auto;
    border-radius: 50%;
    position: relative;
    display: grid;
    place-items: center;
    background:
        conic-gradient(from 0deg,
            rgba(21, 152, 255, 0.08) 0 16%,
            #39d6ff 17%,
            #1598ff 34%,
            #0b64df 48%,
            rgba(21, 152, 255, 0.08) 52% 100%);
    box-shadow:
        13px 13px 28px rgba(90, 119, 148, 0.34),
        -13px -13px 28px rgba(255, 255, 255, 0.98),
        inset 4px 4px 10px rgba(255, 255, 255, 0.75),
        inset -5px -5px 13px rgba(4, 63, 132, 0.22);
    animation: tcLoadingSpin 1.25s linear infinite;
}

.tc-loading-ring-3d::before {
    content: "";
    width: calc(var(--tc-loading-size) - 42px);
    height: calc(var(--tc-loading-size) - 42px);
    border-radius: 50%;
    background: linear-gradient(145deg, #f7fbff, #dceaf8);
    box-shadow:
        inset 10px 10px 22px rgba(95, 121, 149, 0.24),
        inset -10px -10px 22px rgba(255, 255, 255, 0.92);
}

.tc-loading-ring-3d::after {
    content: "TC";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #0d8df2;
    font-size: 1.15rem;
    font-weight: 950;
    letter-spacing: -0.06em;
    animation: tcLoadingSpinReverse 1.25s linear infinite;
}

.tc-loading-progress {
    height: 12px;
    max-width: 300px;
    margin: 1.5rem auto 0;
    overflow: hidden;
    border-radius: 999px;
    background: #deebf8;
    box-shadow:
        inset 6px 6px 12px rgba(110, 135, 160, 0.22),
        inset -6px -6px 12px rgba(255, 255, 255, 0.88);
}

.tc-loading-progress span {
    display: block;
    width: 42%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #1598ff, #39d6ff, #75e6ff);
    box-shadow: 0 0 16px rgba(21, 152, 255, 0.42);
    animation: tcLoadingBarMove 1.35s cubic-bezier(.22, 1, .36, 1) infinite;
}

.tc-loading-submit-disabled {
    cursor: wait !important;
    opacity: 0.82;
}

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

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

@keyframes tcLoadingFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes tcLoadingModalIn {
    to { transform: translateY(0) scale(1); }
}

@keyframes tcLoadingBarMove {
    0% { transform: translateX(-110%); width: 35%; }
    50% { width: 68%; }
    100% { transform: translateX(285%); width: 35%; }
}

@media (max-width: 576px) {
    .tc-loading-dialog {
        padding: 1.8rem 1.35rem 1.65rem;
        border-radius: 1.75rem;
    }

    .tc-loading-ring-3d {
        --tc-loading-size: 132px;
    }
}


/* ==========================================================
   Dashboard hero
   ========================================================== */

/* ==========================================================
   Dashboard hero limpio: sesión arriba derecha y acciones abajo derecha
   ========================================================== */
.tc-dashboard-card.tc-dashboard-hero.tc-hero-clean {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) max-content !important;
    column-gap: 2rem !important;
    align-items: stretch !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.tc-dashboard-card.tc-dashboard-hero.tc-hero-clean .tc-hero-left {
    min-width: 0 !important;
}

.tc-dashboard-card.tc-dashboard-hero.tc-hero-clean .tc-hero-right {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    min-width: max-content !important;
    text-align: right !important;
}

.tc-dashboard-card.tc-dashboard-hero.tc-hero-clean .tc-session-box {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    justify-content: flex-start !important;
    gap: 0.35rem !important;
    margin: 0 !important;
    padding: 0 !important;
}

.tc-dashboard-card.tc-dashboard-hero.tc-hero-clean .tc-session-box span {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.35rem !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
}

.tc-dashboard-card.tc-dashboard-hero.tc-hero-clean .tc-session-box i {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.tc-dashboard-card.tc-dashboard-hero.tc-hero-clean .tc-actions-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.75rem !important;
    flex-wrap: nowrap !important;
    margin: 1.5rem 0 0 0 !important;
}

.tc-dashboard-card.tc-dashboard-hero.tc-hero-clean .tc-actions-row .btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.4rem !important;
    width: auto !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;
}

@media (max-width: 992px) {
    .tc-dashboard-card.tc-dashboard-hero.tc-hero-clean {
        grid-template-columns: 1fr !important;
        row-gap: 1.25rem !important;
    }

    .tc-dashboard-card.tc-dashboard-hero.tc-hero-clean .tc-hero-right {
        align-items: flex-start !important;
        text-align: left !important;
        min-width: 0 !important;
    }

    .tc-dashboard-card.tc-dashboard-hero.tc-hero-clean .tc-session-box {
        align-items: flex-start !important;
    }

    .tc-dashboard-card.tc-dashboard-hero.tc-hero-clean .tc-session-box span,
    .tc-dashboard-card.tc-dashboard-hero.tc-hero-clean .tc-actions-row {
        justify-content: flex-start !important;
    }

    .tc-dashboard-card.tc-dashboard-hero.tc-hero-clean .tc-actions-row {
        flex-wrap: wrap !important;
    }
}
/* ==========================================================
   Dashboard hero · iconos de sesión neomórficos
   ========================================================== */
.tc-dashboard-card.tc-dashboard-hero.tc-hero-clean .tc-session-box span {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.55rem !important;
    line-height: 1 !important;
}

.tc-dashboard-card.tc-dashboard-hero.tc-hero-clean .tc-session-box i {
    width: 2rem !important;
    height: 2rem !important;
    min-width: 2rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    font-size: 1.15rem !important;
    line-height: 1 !important;
    color: #0b8fe8 !important;
    background: linear-gradient(145deg, #f7fbff, #dbe8f6) !important;
    box-shadow:
        5px 5px 11px rgba(128, 146, 171, 0.28),
        -5px -5px 11px rgba(255, 255, 255, 0.88),
        inset 1px 1px 1px rgba(255, 255, 255, 0.65) !important;
}

.tc-dashboard-card.tc-dashboard-hero.tc-hero-clean .tc-session-box strong {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 2rem !important;
    line-height: 1.1 !important;
    font-weight: 850 !important;
}
/* ==========================================================
   Dashboard hero · sesión alineada en dos columnas
   ========================================================== */
.tc-dashboard-card.tc-dashboard-hero.tc-hero-clean .tc-session-box {
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    row-gap: 0.45rem !important;
    column-gap: 0.65rem !important;
    align-items: center !important;
    justify-items: end !important;
}

.tc-dashboard-card.tc-dashboard-hero.tc-hero-clean .tc-session-item {
    display: contents !important;
}

.tc-dashboard-card.tc-dashboard-hero.tc-hero-clean .tc-session-item i {
    grid-column: 1 !important;
    justify-self: center !important;
    align-self: center !important;
    width: 2.15rem !important;
    height: 2.15rem !important;
    min-width: 2.15rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    font-size: 1.25rem !important;
    line-height: 1 !important;
    color: #0b8fe8 !important;
    background: linear-gradient(145deg, #f7fbff, #dbe8f6) !important;
    box-shadow:
        5px 5px 11px rgba(128, 146, 171, 0.28),
        -5px -5px 11px rgba(255, 255, 255, 0.88),
        inset 1px 1px 1px rgba(255, 255, 255, 0.65) !important;
}

.tc-dashboard-card.tc-dashboard-hero.tc-hero-clean .tc-session-item strong {
    grid-column: 2 !important;
    justify-self: end !important;
    align-self: center !important;
    display: inline-flex !important;
    align-items: center !important;
    min-height: 2.15rem !important;
    line-height: 1.1 !important;
    font-weight: 850 !important;
    white-space: nowrap !important;
}

/* *********************************************************
/* CSS para visor html de incidentes
/* ********************************************************* */
.tc-email-preview-card {
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.tc-email-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #475569;
    font-size: 0.9rem;
}

.tc-email-meta > div {
    min-width: 0;
    overflow-wrap: anywhere;
}

.tc-email-preview-shell {
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
}

.tc-email-preview-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.65rem;
    padding: 0 0.15rem;
    background: transparent;
    border: 0;
    color: #64748b;
    font-size: 0.86rem;
    box-shadow: none;
}

.tc-email-preview-toolbar span {
    color: #12305f;
    font-weight: 700;
}

.tc-email-preview-toolbar small {
    color: #64748b;
}

.tc-email-preview-body {
    width: 100%;
    min-height: 260px;
    max-height: 720px;
    overflow: auto;
    margin: 0;
    padding: 1.35rem 1.45rem;
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.55;
    background: rgba(248, 252, 255, 0.88);
    border: 1px solid rgba(203, 216, 230, 0.55);
    border-radius: 16px;
    box-shadow:
        inset 7px 7px 16px rgba(143, 163, 184, 0.20),
        inset -7px -7px 16px rgba(255, 255, 255, 0.92),
        0 1px 0 rgba(255, 255, 255, 0.75);
}

.tc-email-preview-body:focus-within {
    border-color: rgba(66, 153, 225, 0.28);
    box-shadow:
        inset 7px 7px 16px rgba(143, 163, 184, 0.20),
        inset -7px -7px 16px rgba(255, 255, 255, 0.92),
        0 0 0 3px rgba(66, 153, 225, 0.08);
}

.tc-email-preview-body::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

.tc-email-preview-body::-webkit-scrollbar-track {
    background: rgba(232, 241, 249, 0.88);
    border-radius: 999px;
}

.tc-email-preview-body::-webkit-scrollbar-thumb {
    background: rgba(176, 196, 216, 0.9);
    border-radius: 999px;
    border: 2px solid rgba(248, 252, 255, 0.88);
}

.tc-email-preview-body table {
    max-width: 100%;
    border-collapse: collapse;
}

.tc-email-preview-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.tc-email-preview-body a {
    color: #0f5fa8;
    text-decoration: underline;
    word-break: break-word;
}

.tc-email-preview-text {
    white-space: normal;
}

@media (max-width: 992px) {
    .tc-email-meta {
        grid-template-columns: 1fr;
    }

    .tc-email-preview-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .tc-email-preview-body {
        min-height: 220px;
        padding: 1rem;
    }
}

.tc-email-history-separator {
    display: block;
    height: 1px;
    margin: 1.55rem 0 1.25rem;
    border: 0;
    background: linear-gradient(
        90deg,
        rgba(148, 163, 184, 0.08),
        rgba(100, 116, 139, 0.58),
        rgba(148, 163, 184, 0.08)
    );
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.88),
        0 -1px 0 rgba(100, 116, 139, 0.10);
}

.tc-email-history-separator + br {
    display: none;
}
/* *********************************************************** */