/* GTI Incidencias - identidad visual inspirada en soluciones-gti.com */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --gti-navy: #081f3f;
    --gti-blue: #0b4c8c;
    --gti-blue-2: #1468b3;
    --gti-cyan: #17a8c7;
    --gti-green: #21b573;
    --gti-ink: #162033;
    --gti-muted: #6b778c;
    --gti-line: #dbe5ef;
    --gti-soft: #f3f8fc;
    --gti-panel: #ffffff;
    --success: #21b573;
    --danger: #d94646;
    --warning: #e8a21a;
    --info: #17a8c7;
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius: 8px;
    --radius-sm: 6px;
    --shadow-sm: 0 8px 20px rgba(8, 31, 63, 0.08);
    --shadow-md: 0 16px 36px rgba(8, 31, 63, 0.13);
    --transition: all 0.22s ease;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: var(--font-family);
    font-size: 14px;
    line-height: 1.6;
    color: var(--gti-ink);
    background:
        radial-gradient(circle at top left, rgba(23, 168, 199, 0.14), transparent 32rem),
        linear-gradient(180deg, #f8fbfe 0%, #eef5fa 100%);
}

a {
    color: var(--gti-blue-2);
}

a:hover {
    color: var(--gti-cyan);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--gti-navy);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
}

.h1,
h1 {
    font-size: 2rem;
}

.h2,
h2 {
    font-size: 1.55rem;
}

.h3,
h3 {
    font-size: 1.25rem;
}

.text-muted {
    color: var(--gti-muted) !important;
}

.text-primary {
    color: var(--gti-blue-2) !important;
}

.container {
    max-width: 1240px;
}

/* Layout interno */
.app-shell {
    background:
        linear-gradient(135deg, rgba(8, 31, 63, 0.04), rgba(23, 168, 199, 0.08)),
        #f5f9fc;
}

.app-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
}

.app-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
    padding: 1.35rem;
    overflow-y: auto;
    background:
        linear-gradient(150deg, rgba(23, 168, 199, 0.18), transparent 42%),
        linear-gradient(180deg, #09284f 0%, #071a35 100%);
    color: #ffffff;
    box-shadow: 12px 0 32px rgba(8, 31, 63, 0.16);
}

.sidebar-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    text-decoration: none;
}

.sidebar-brand img {
    max-width: 100%;
    height: auto;
    max-height: 50px;
}

.sidebar-brand span {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.sidebar-brand:hover {
    color: #ffffff;
}

.sidebar-role {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sidebar-user {
    padding: 1rem;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-user strong,
.sidebar-user span {
    display: block;
}

.sidebar-user strong {
    color: #ffffff;
    font-weight: 600;
}

.sidebar-user span {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.82rem;
}

.sidebar-nav {
    display: grid;
    gap: 0.45rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 0.7rem 0.85rem;
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.78);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.sidebar-link:hover,
.sidebar-link.active {
    color: #ffffff;
    background: linear-gradient(90deg, rgba(23, 168, 199, 0.24), rgba(33, 181, 115, 0.18));
    box-shadow: inset 3px 0 0 var(--gti-cyan);
}

.sidebar-logout {
    margin-top: 1.5rem;
}

.app-main {
    min-width: 0;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 78px;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(219, 229, 239, 0.9);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
}

.topbar-title {
    color: var(--gti-navy);
    font-size: 1rem;
    font-weight: 700;
}

.topbar-subtitle {
    color: var(--gti-muted);
    font-size: 0.82rem;
}

.topbar-badge {
    white-space: nowrap;
    padding: 0.55rem 0.85rem;
    border: 1px solid rgba(23, 168, 199, 0.22);
    border-radius: 999px;
    background: rgba(23, 168, 199, 0.09);
    color: var(--gti-blue);
    font-size: 0.82rem;
    font-weight: 600;
}

.app-content {
    padding: 2rem;
}

/* Portal publico */
.portal-page {
    background:
        linear-gradient(135deg, rgba(8, 31, 63, 0.86), rgba(11, 76, 140, 0.78)),
        linear-gradient(180deg, #f8fbfe, #eef5fa);
}

.portal-page main.container {
    min-height: 100vh;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.portal-stack {
    display: grid;
    width: 100%;
    gap: 2rem;
}

.portal-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.75fr);
    align-items: center;
    width: 100%;
    gap: 2rem;
}

.portal-copy {
    color: #ffffff;
}

.portal-kicker {
    display: inline-flex;
    margin-bottom: 1rem;
    color: #9ce9f3;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portal-copy h1 {
    max-width: 720px;
    margin-bottom: 1rem;
    color: #ffffff;
    font-size: clamp(2.2rem, 6vw, 4.7rem);
    font-weight: 700;
}

.portal-copy p {
    max-width: 670px;
    margin-bottom: 1.6rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
}

.portal-card {
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-md);
}

.portal-card h2 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.portal-steps {
    display: grid;
    gap: 0.8rem;
    padding-left: 1.15rem;
    margin: 0;
    color: var(--gti-muted);
}

.portal-steps li::marker {
    color: var(--gti-cyan);
    font-weight: 700;
}

.portal-section {
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-md);
}

.portal-section .portal-kicker {
    color: var(--gti-cyan);
}

.portal-section-heading {
    max-width: 760px;
    margin-bottom: 1.25rem;
}

.portal-section-heading h2 {
    margin-bottom: 0.55rem;
}

.portal-section-heading p {
    margin-bottom: 0;
    color: var(--gti-muted);
}

.portal-process-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.portal-process-card {
    min-height: 168px;
    padding: 1.1rem;
    border: 1px solid var(--gti-line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, #ffffff, #f6fbff);
}

.portal-process-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-bottom: 0.85rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--gti-cyan), var(--gti-green));
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
}

.portal-process-card h3,
.portal-model-grid h3 {
    margin-bottom: 0.45rem;
    font-size: 1rem;
}

.portal-process-card p,
.portal-model-grid p {
    margin-bottom: 0;
    color: var(--gti-muted);
}

.portal-model {
    background:
        linear-gradient(135deg, rgba(8, 31, 63, 0.96), rgba(11, 76, 140, 0.92));
}

.portal-model .portal-section-heading h2,
.portal-model-grid h3 {
    color: #ffffff;
}

.portal-model-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.portal-model-grid > div {
    padding: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
}

.portal-model-grid p,
.portal-model .portal-section-heading p {
    color: rgba(255, 255, 255, 0.72);
}

/* Login */
.login-page {
    display: flex;
    align-items: center;
    background:
        linear-gradient(135deg, rgba(8, 31, 63, 0.92), rgba(11, 76, 140, 0.86)),
        radial-gradient(circle at 78% 20%, rgba(33, 181, 115, 0.34), transparent 22rem);
}

.login-page main.container {
    width: 100%;
}

.login-page .card {
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.login-page .text-center.mb-4 {
    margin-bottom: 1.5rem;
}

.login-brand-img {
    max-height: 50px;
    width: auto;
}

/* Componentes */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 40px;
    padding: 0.55rem 1.15rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-family: var(--font-family);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-1px);
}

.bi {
    display: inline-block;
    flex-shrink: 0;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
}

.btn-primary {
    border-color: var(--gti-cyan);
    background: linear-gradient(135deg, var(--gti-cyan), var(--gti-blue-2));
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(20, 104, 179, 0.2);
}

.btn-primary:hover,
.btn-primary:focus {
    border-color: var(--gti-green);
    background: linear-gradient(135deg, var(--gti-green), var(--gti-cyan));
    color: #ffffff;
    box-shadow: 0 14px 26px rgba(23, 168, 199, 0.28);
}

.incident-file-picker {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    min-height: 44px;
}

.incident-file-picker .btn {
    flex: 0 0 auto;
}

.incident-file-picker__text {
    min-width: 0;
    flex: 1 1 180px;
    color: var(--gti-muted);
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.incident-file-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.incident-file-preview__item {
    position: relative;
    margin: 0;
    min-width: 0;
}

.incident-file-preview__item img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border: 1px solid var(--gti-border);
    border-radius: 8px;
    background: #f8fafc;
    color: transparent;
}

.incident-file-preview__item--error img {
    object-fit: contain;
    padding: 0.75rem;
}

.incident-file-preview__item figcaption {
    margin-top: 0.35rem;
    color: var(--gti-muted);
    font-size: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.incident-attachment-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 0.75rem;
}

.incident-attachment-gallery__item {
    display: block;
    min-width: 0;
    color: var(--gti-muted);
    font-size: 0.75rem;
    text-decoration: none;
}

.incident-attachment-gallery__item img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border: 1px solid var(--gti-border);
    border-radius: 8px;
    background: #f8fafc;
}

.incident-attachment-gallery__item span {
    display: block;
    margin-top: 0.35rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-secondary {
    background: #6b778c;
    color: #ffffff;
}

.btn-success {
    border-color: var(--success);
    background: var(--success);
    color: #ffffff;
}

.btn-danger {
    border-color: var(--danger);
    background: var(--danger);
    color: #ffffff;
}

.btn-warning {
    border-color: var(--warning);
    background: var(--warning);
    color: #ffffff;
}

.btn-outline-primary {
    border-color: rgba(23, 168, 199, 0.55);
    background: #ffffff;
    color: var(--gti-blue);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    border-color: var(--gti-cyan);
    background: rgba(23, 168, 199, 0.09);
    color: var(--gti-blue);
}

.btn-outline-secondary {
    border-color: var(--gti-line);
    background: #ffffff;
    color: var(--gti-muted);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    border-color: var(--gti-blue-2);
    background: #f4f9fd;
    color: var(--gti-blue);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.btn-outline-light:hover {
    border-color: rgba(255, 255, 255, 0.66);
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.btn-sm {
    min-height: 32px;
    padding: 0.38rem 0.8rem;
    font-size: 0.78rem;
}

.btn-lg {
    min-height: 48px;
    padding: 0.75rem 1.35rem;
    font-size: 0.95rem;
}

.card {
    border: 1px solid rgba(219, 229, 239, 0.9) !important;
    border-radius: var(--radius);
    background: var(--gti-panel);
    box-shadow: var(--shadow-sm) !important;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-md) !important;
}

.card-header {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--gti-line);
    background: linear-gradient(90deg, #ffffff, #f5fbff) !important;
    color: var(--gti-navy);
}

.card-body {
    padding: 1.25rem;
}

.display-6 {
    color: var(--gti-navy);
}

.row.g-3 > *,
.row.g-4 > * {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.card .display-6,
.card .h3 {
    position: relative;
}

.card .display-6::after,
.card .h3::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    margin-top: 0.35rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--gti-cyan), var(--gti-green));
}

.form-label {
    color: var(--gti-navy);
    font-size: 0.82rem;
    font-weight: 600;
}

.form-control,
.form-select {
    min-height: 42px;
    border: 1px solid var(--gti-line);
    border-radius: var(--radius-sm);
    background-color: #ffffff;
    color: var(--gti-ink);
    font-family: var(--font-family);
    font-size: 0.875rem;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--gti-cyan);
    box-shadow: 0 0 0 0.18rem rgba(23, 168, 199, 0.15);
}

textarea.form-control {
    min-height: 140px;
}

.form-text {
    color: var(--gti-muted);
}

.table-responsive,
.table {
    border-radius: var(--radius);
}

.table {
    margin-bottom: 0;
    color: var(--gti-ink);
    font-size: 0.86rem;
}

.table > :not(caption) > * > * {
    padding: 0.85rem;
    border-bottom-color: var(--gti-line);
}

.table thead th {
    border-bottom: 1px solid var(--gti-line);
    background: #f4f9fd;
    color: var(--gti-blue);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.table tbody tr:hover {
    background: rgba(23, 168, 199, 0.06);
}

.table-bordered > :not(caption) > * {
    border-width: 0;
}

.badge,
.bg-primary,
.bg-success,
.bg-danger,
.bg-warning,
.bg-info {
    border-radius: 999px;
    font-weight: 600;
}

.bg-primary {
    background-color: var(--gti-blue-2) !important;
}

.bg-success {
    background-color: var(--success) !important;
}

.bg-danger {
    background-color: var(--danger) !important;
}

.bg-warning {
    background-color: var(--warning) !important;
    color: #ffffff !important;
}

.bg-info {
    background-color: var(--info) !important;
}

.alert {
    border: 0;
    border-left: 4px solid transparent;
    border-radius: var(--radius);
}

.alert-danger {
    border-left-color: var(--danger);
    background: #fff1f1;
    color: #8d1f1f;
}

.alert-success {
    border-left-color: var(--success);
    background: #effbf5;
    color: #0f6843;
}

.alert-warning {
    border-left-color: var(--warning);
    background: #fff8e8;
    color: #805608;
}

.alert-info {
    border-left-color: var(--info);
    background: #eefbfe;
    color: var(--gti-blue);
}

hr {
    border-color: var(--gti-line);
    opacity: 1;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #edf4f9;
}

::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #9db0c2;
}

@media (max-width: 991.98px) {
    .app-layout {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        position: relative;
        height: auto;
        padding: 1rem;
    }

    .sidebar-nav {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .sidebar-logout {
        margin-top: 1rem;
    }

    .app-topbar {
        position: relative;
        flex-wrap: wrap;
        padding: 1rem;
    }

    .app-content {
        padding: 1rem;
    }

    .portal-page main.container {
        align-items: flex-start;
    }

    .portal-hero {
        grid-template-columns: 1fr;
    }

    .portal-process-grid,
    .portal-model-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    body {
        font-size: 13px;
    }

    .h1,
    h1 {
        font-size: 1.6rem;
    }

    .portal-copy h1 {
        font-size: 2.2rem;
    }

    .portal-copy p {
        font-size: 0.95rem;
    }

    .topbar-badge {
        width: 100%;
        white-space: normal;
    }

    .d-flex.justify-content-between.align-items-center {
        align-items: flex-start !important;
        flex-direction: column;
        gap: 0.85rem;
    }

    .btn {
        width: 100%;
    }

    .table {
        min-width: 720px;
    }
}

/* Dashboard Interactivo */
.card-interactive {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
    cursor: pointer;
    border: 1px solid rgba(219, 229, 239, 0.5) !important;
}

.card-interactive:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(8, 31, 63, 0.12) !important;
    border-color: var(--gti-cyan) !important;
}

.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: "";
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(23, 168, 199, 0.1), transparent 70%);
    border-radius: 50%;
}

.stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.progress-custom {
    height: 8px;
    background-color: var(--gti-soft);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 1rem;
}

.progress-bar-custom {
    height: 100%;
    background: linear-gradient(90deg, var(--gti-cyan), var(--gti-green));
    border-radius: 999px;
    transition: width 1s ease-in-out;
}

.quick-action-card {
    background: linear-gradient(135deg, var(--gti-navy), var(--gti-blue));
    color: #ffffff;
}

.quick-action-card .card-header {
    background: transparent !important;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

.hover-lift {
    transition: transform 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-3px);
}

/* Detalle de incidencia */
.incidence-detail-card .card-body {
    padding: 1.35rem;
}

.incidence-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.incidence-detail-header strong,
.incidence-detail-header span {
    display: block;
}

.incidence-detail-header strong {
    color: var(--gti-navy);
    font-size: 0.98rem;
}

.incidence-detail-header div > span {
    margin-top: 0.2rem;
    color: var(--gti-muted);
    font-size: 0.78rem;
    font-weight: 500;
}

.incidence-description {
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(219, 229, 239, 0.9);
    border-radius: var(--radius);
    background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.description-context {
    display: grid;
    gap: 0.35rem;
    padding: 0.8rem 1rem;
    margin-bottom: 0.9rem;
    border: 1px solid rgba(219, 229, 239, 0.9);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--gti-ink);
    font-size: 0.9rem;
}

.detail-label,
.detail-item span {
    display: block;
    color: var(--gti-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.description-field-label {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.25rem 0.6rem;
    margin-bottom: 0.45rem;
    border-radius: var(--radius-sm);
    background: rgba(23, 168, 199, 0.1);
    color: var(--gti-blue);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.detail-description-text {
    margin-top: 0.45rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(219, 229, 239, 0.9);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--gti-ink);
    font-size: 0.93rem;
    line-height: 1.7;
}

.detail-description-text p {
    margin: 0;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.detail-item {
    min-height: 76px;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(219, 229, 239, 0.86);
    border-radius: var(--radius);
    background: #ffffff;
}

.detail-item strong {
    display: block;
    margin-top: 0.35rem;
    color: var(--gti-navy);
    font-size: 0.92rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.detail-item-wide {
    grid-column: 1 / -1;
}

.sla-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.sla-status {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    width: auto;
    max-width: 100%;
    min-height: 38px;
    padding: 0.5rem 0.75rem;
    margin-top: 0.45rem;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 0.86rem;
}

.sla-status strong {
    margin-top: 0;
}

.sla-status small {
    color: inherit;
    font-size: 0.72rem;
    font-weight: 500;
    opacity: 0.82;
}

.sla-status-icon {
    display: inline-flex;
    font-size: 1rem;
}

.sla-status-success {
    border-color: rgba(33, 181, 115, 0.28);
    background: rgba(33, 181, 115, 0.1);
    color: #0f6843;
}

.sla-status-danger {
    border-color: rgba(217, 70, 70, 0.25);
    background: rgba(217, 70, 70, 0.08);
    color: #8d1f1f;
}

.sla-status-warning {
    border-color: rgba(232, 162, 26, 0.3);
    background: rgba(232, 162, 26, 0.12);
    color: #8a5b08;
}

.sla-status-pending {
    border-color: var(--gti-line);
    background: var(--gti-soft);
    color: var(--gti-muted);
}

.evaluation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.evaluation-header strong,
.evaluation-header span {
    display: block;
}

.evaluation-header span {
    margin-top: 0.2rem;
    color: var(--gti-muted);
    font-size: 0.76rem;
    font-weight: 500;
}

.evaluation-summary {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid rgba(33, 181, 115, 0.22);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(33, 181, 115, 0.1), rgba(23, 168, 199, 0.06));
}

.evaluation-score {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    width: 74px;
    height: 74px;
    padding-top: 0.9rem;
    border-radius: var(--radius);
    background: #ffffff;
    color: var(--success);
    box-shadow: 0 8px 18px rgba(8, 31, 63, 0.08);
}

.evaluation-score strong {
    font-size: 2rem;
    line-height: 1;
}

.evaluation-score span {
    color: var(--gti-muted);
    font-size: 0.85rem;
    font-weight: 700;
}

.evaluation-content {
    min-width: 0;
    flex: 1;
}

.evaluation-stars {
    display: flex;
    gap: 0.15rem;
    color: #c6d3df;
    font-size: 1.1rem;
    line-height: 1;
}

.evaluation-stars span.active {
    color: var(--warning);
}

.evaluation-title {
    margin-top: 0.45rem;
    color: var(--gti-navy);
    font-weight: 700;
}

.evaluation-content p {
    margin: 0.35rem 0 0;
    color: var(--gti-muted);
    font-size: 0.86rem;
}

.evaluation-form {
    margin-top: 1rem;
}

.rating-options {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.45rem;
}

.rating-options label {
    position: relative;
    cursor: pointer;
}

.rating-options input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rating-options label > span,
.rating-options small {
    display: block;
    text-align: center;
}

.rating-options label > span {
    padding: 0.55rem 0.35rem 0.2rem;
    border: 1px solid var(--gti-line);
    border-bottom: 0;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    background: #ffffff;
    color: var(--gti-navy);
    font-size: 1rem;
    font-weight: 800;
}

.rating-options small {
    min-height: 30px;
    padding: 0 0.25rem 0.45rem;
    border: 1px solid var(--gti-line);
    border-top: 0;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    background: #ffffff;
    color: var(--gti-muted);
    font-size: 0.68rem;
    font-weight: 600;
}

.rating-options input:checked + span,
.rating-options input:checked + span + small {
    border-color: rgba(23, 168, 199, 0.45);
    background: rgba(23, 168, 199, 0.09);
    color: var(--gti-blue);
}

.rating-options label:hover span,
.rating-options label:hover small {
    border-color: var(--gti-cyan);
}

.incident-side-card .card-header strong,
.incident-side-card .card-header span {
    display: block;
}

.incident-side-card .card-header span {
    margin-top: 0.2rem;
    color: var(--gti-muted);
    font-size: 0.76rem;
    font-weight: 500;
}

.case-progress {
    display: grid;
    gap: 0.65rem;
}

.case-progress > div {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 42px;
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(219, 229, 239, 0.9);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--gti-muted);
}

.case-progress > div span {
    display: inline-grid;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 999px;
    background: var(--gti-soft);
    color: var(--gti-muted);
    font-size: 0.72rem;
    font-weight: 800;
}

.case-progress > div strong {
    color: inherit;
    font-size: 0.84rem;
}

.case-progress > div.completed {
    border-color: rgba(23, 168, 199, 0.28);
    background: rgba(23, 168, 199, 0.07);
    color: var(--gti-blue);
}

.case-progress > div.completed span {
    background: var(--gti-cyan);
    color: #ffffff;
}

.case-progress > div.current {
    border-color: rgba(33, 181, 115, 0.48);
    background: linear-gradient(135deg, rgba(33, 181, 115, 0.16), rgba(23, 168, 199, 0.08));
    color: #0f6843;
    box-shadow: 0 8px 18px rgba(33, 181, 115, 0.12);
}

.case-progress > div.current span {
    background: var(--gti-green);
    color: #ffffff;
}

.next-action-box {
    padding: 0.9rem 1rem;
    margin-top: 1rem;
    border: 1px solid rgba(33, 181, 115, 0.22);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(33, 181, 115, 0.08), rgba(23, 168, 199, 0.06));
}

.next-action-box span {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--gti-blue);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.next-action-box p {
    margin: 0;
    color: var(--gti-navy);
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.55;
}

.case-guidance {
    display: grid;
    gap: 0.7rem;
    margin-top: 1rem;
}

.case-guidance > div {
    display: flex;
    gap: 0.65rem;
    color: var(--gti-muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.case-guidance .bi {
    margin-top: 0.1rem;
    color: var(--gti-green);
}

.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1050;
    width: 360px;
    margin-top: 0.5rem;
    border: 1px solid var(--gti-line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(8, 31, 63, 0.16);
}

.notification-dropdown-header {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gti-line);
    font-size: 0.85rem;
}

.notification-dropdown-body {
    max-height: 320px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gti-line);
    transition: background 0.15s;
}

.notification-item:hover {
    background: var(--gti-soft);
}

.notification-item:last-child {
    border-bottom: 0;
}

.notification-item__link {
    display: flex;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.notification-item__link:hover {
    text-decoration: none;
}

.notification-item__content {
    flex: 1;
    min-width: 0;
}

.notification-item__title {
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--gti-navy);
}

.notification-item__message {
    font-size: 0.78rem;
    color: var(--gti-muted);
    margin-top: 0.15rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-item__time {
    font-size: 0.7rem;
    color: var(--gti-muted);
    margin-top: 0.25rem;
}

.notification-item__mark-btn {
    flex: 0 0 auto;
    padding: 0.2rem 0.45rem;
    border: 1px solid var(--gti-line);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--gti-muted);
    font-size: 0.7rem;
    cursor: pointer;
    transition: var(--transition);
}

.notification-item__mark-btn:hover {
    border-color: var(--gti-cyan);
    color: var(--gti-blue);
    background: rgba(23, 168, 199, 0.06);
}

.notification-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--gti-muted);
    font-size: 0.82rem;
}

.indicadores-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.indicadores-grid__item--full {
    grid-column: 1 / -1;
}

.reportes-grid {
    columns: 2;
    column-gap: 1.5rem;
}
.reportes-grid__item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
}

@media (max-width: 767.98px) {
    .indicadores-grid {
        grid-template-columns: 1fr;
    }

    .reportes-grid {
        columns: 1;
    }

    .incidence-detail-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .evaluation-summary {
        flex-direction: column;
    }

    .rating-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


