.sp-card-body {
    padding: 2rem;
}

.sp-container-documents {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.sp-container-annex {
    width: calc(30% - 10px);
}

.sp-container-reports {
    width: calc(70% - 10px);
}

.sp-card-title {
    margin: 10px 0 !important;
    text-transform: uppercase;
    font-weight: 400;
}

.sp-info-file {
    a {
        font-weight: 500;
    }

    small {
        font-weight: 400;
    }
}

.sp-ndt-indication-container {
    width: 100%;
    margin-top: 16px;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.sp-ndt-indication-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid #eef0f3;

    h3 {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 0 !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        text-transform: uppercase;
        letter-spacing: .5px;
        color: #1f2937;
    }

    h3 .fa {
        color: var(--color-zapcod);
        font-size: 14px;
    }
}

.sp-ndt-indication-legend {
    display: flex;
    gap: 14px;
}

.sp-ndt-indication-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: #6b7280;

    &::before {
        content: "";
        width: 8px;
        height: 8px;
        border-radius: 50%;
    }
}

.sp-ndt-indication-legend__item--pending::before {
    background: #ef4444;
}

.sp-ndt-indication-legend__item--repaired::before {
    background: #22c55e;
}

.sp-ndt-indication-empty {
    padding: 28px 16px;
    text-align: center;
    font-size: 12.5px;
    color: #9ca3af;
}

.sp-ndt-indication-info {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 16px;

    .sp-ndt-indication {
        display: flex;
        flex-direction: column;
        min-width: 0;
        border: 1px solid #eef0f3;
        border-radius: 8px;
        background: #fafbfc;
        overflow: hidden;

        h4 {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin: 0 !important;
            padding: 10px 12px;
            border-bottom: 1px solid #eef0f3;
            background: #fff;
            font-size: 12px !important;
            font-weight: 600 !important;
            text-transform: uppercase;
            letter-spacing: .5px;
            color: #374151 !important;
        }

        ul, li {
            list-style: none;
            margin: 0;
            padding: 0;
        }

        ul {
            max-height: 220px;
            overflow-y: auto;
        }

        li {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            padding: 7px 12px;
            border-top: 1px solid #f1f2f4;
            background: #fff;
            transition: background-color .15s ease;

            &:first-child {
                border-top: 0;
            }

            &:hover {
                background: #f9fafb;
            }

            &.none {
                justify-content: center;
                padding: 18px 12px;
                background: transparent;
                font-size: 12px;
            }
        }
    }
}

.sp-ndt-indication__count {
    min-width: 22px;
    padding: 1px 7px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0;
}

.sp-ndt-indication__code {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: #1f2937;

    &::before {
        content: "";
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #ef4444;
    }
}

.sp-ndt-indication-info li.is-repaired .sp-ndt-indication__code::before {
    background: #22c55e;
}

.sp-ndt-indication-info li.is-not-repaired .sp-ndt-indication__code::before {
    background: #f59e0b;
}

.sp-ndt-indication-legend__item--not-repaired::before {
    background: #f59e0b;
}

.sp-ndt-indication-info .sp-ndt-indication li .sp-ndt-indication__code {
    margin-right: auto;
}

.sp-ndt-repair-chip {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
    white-space: nowrap;
}

.sp-ndt-repair-chip--pending {
    background: #fef2f2;
    color: #b91c1c;
}

.sp-ndt-repair-chip--repaired {
    background: #ecfdf5;
    color: #047857;
}

.sp-ndt-repair-chip--not-repaired {
    background: #fffbeb;
    color: #b45309;
}

.sp-ndt-repair-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;

    &:hover,
    &:focus {
        text-decoration: none;
    }

    &.not-active {
        opacity: .6;
        pointer-events: none;
    }
}

.sp-ndt-repair-btn--add {
    border-color: var(--color-zapcod);
    background: var(--color-zapcod);
    color: #fff;

    &:hover,
    &:focus {
        color: #fff;
        box-shadow: 0 2px 8px rgba(244, 123, 34, .35);
        filter: brightness(.95);
    }
}

.sp-ndt-repair-btn--view {
    border-color: #e5e7eb;
    background: #fff;
    color: #374151;

    .fa {
        color: #0891b2;
    }

    &:hover,
    &:focus {
        border-color: #67e8f9;
        background: #ecfeff;
        color: #0e7490;
    }
}

.sp-ndt-indication-info li.is-just-updated {
    animation: sp-ndt-row-flash 2.4s ease;
}

@keyframes sp-ndt-row-flash {
    0%, 35% {
        background: #ecfdf5;
    }

    100% {
        background: #fff;
    }
}

@media (max-width: 991px) {
    .sp-ndt-indication-info {
        grid-template-columns: 1fr;
    }
}

.sp-ndt-container {
    --vz-gutter-y: 0;
    --vz-gutter-x: 0;

    width: 100%;
    background-color: #f2f2f7;
    padding-left: calc(1.5rem * .5);
    padding-right: calc(1.5rem * .5);
    margin-left: auto;
    margin-right: auto;

    h1, h2, h3, h4, h5, h6 {
        margin: 0;
        padding: 0;
    }

    h4 {
        font-size: 20px;
    }
}

.sp-ndt-header-background {
    margin-top: -1.5rem;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    position: relative;

    .sp-ndt-wid-bg {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        height: 240px;

        &::before {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            top: 0;
            bottom: 0;
            opacity: .9;
            background: linear-gradient(to top, var(--color-zapcod-secondary), var(--color-zapcod));
        }
    }
}

.sp-ndt-p2 {
    padding: 8px !important;
}

.sp-ndt-header {
    padding-bottom: 1.5rem;
    padding-top: 1.5rem;
    margin-bottom: 1rem;
}

.sp-ndt-header-g4 {
    --vz-gutter-y: 1.5rem;
    --vz-gutter-x: 1.5rem;
}

.sp-ndt-row > * {
    position: relative;
    width: 100%;
    max-width: 100%;
    padding-right: calc(1.5rem * .5);
    padding-left: calc(1.5rem * .5);
    margin-top: 1.5rem;
}

.sp-ndt-row {
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1 * var(--vz-gutter-y));
    margin-right: calc(-1 * var(--vz-gutter-x));
    margin-left: calc(-1 * var(--vz-gutter-x));
}

.sp-ndt-col-auto {
    flex: 0 0 auto;
    width: auto !important;
}

.sp-ndt-col {
    -webkit-box-flex: 1;
    flex: 1 0 0%;
}

.sp-ndt-col-lg-12 {
    flex: 0 0 auto;
    width: 100%;
}

.sp-ndt-col-lg-0 {
    width: 100%;
    -webkit-box-ordinal-group: 1 !important;
    order: 0 !important;
}

.sp-ndt-col-lg-auto {
    width: auto;
    -webkit-box-flex: 0;
    flex: 0 0 auto;
}

.sp-ndt-avatar-lg {
    height: 6rem;
    width: 6rem;

    img {
        border-radius: 50%;
        padding: .25rem;
        background-color: var(--bg-color-body);
        border: 1px solid var(--bg-color-default);
        max-width: 100%;
        height: auto;
    }
}

.sp-ndt-avatar-img-thumbnail {
    padding: 4px;
    background-color: var(--color-light);
}

.sp-border {
    border: 1px solid var(--btn-border-color2);
}

.sp-border-2 {
    border-width: 2px !important;
}

.sp-bg-light {
    background-color: var(--bg-color-white);
}

.sp-color-brand {
    color: var(--color-zapcod);
}

.sp-ndt-avatar-text {
    -webkit-box-align: center;
    align-items: center;
    display: flex;
    font-weight: 500;
    height: 100%;
    -webkit-box-pack: center;
    justify-content: center;
    width: 100%;
}

.sp-rounded-circle {
    border-radius: 50%;
}

.sp-ndt-p-2 {
    padding: .5rem;
}

.sp-ndt-title {
    color: rgba(255, 255, 255, 1);
    margin-bottom: .25rem;
    font-size: 23px;
}

.sp-ndt-summary {
    color: rgba(255, 255, 255, .75);
}

.sp-ndt-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    align-self: stretch;
    color: rgba(255, 255, 255, .5);
    gap: .25rem;

    > div {
        margin-right: .5rem;
    }

    div:last-child {
        margin-right: 0;
    }
}

.sp-ndt-card {
    margin-bottom: 1.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    color: var(--color-dark);
    word-wrap: break-word;
    background-color: var(--bg-color-white);
    background-clip: border-box;
    border: 0 solid var(--btn-border-color);
    border-radius: 4px;
}

.sp-ndt-card-body {
    flex: 1 1 auto;
    padding: 16px 16px;
}

.sp-ndt-card-title {
    font-size: 16px;
    margin: 0 0 7px 0;
    color: var(--color-dark);
}

.sp-ndt-tables {

    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;

    table {
        width: 100%;
        border: 1px solid var(--color-gray);
        border-radius: 4px;
        border-collapse: separate;
        border-spacing: 0;

        th, td {
            padding: 5px 10px;
            font-weight: lighter;
            font-size: 14px;
            border: 1px solid var(--color-gray);

            /*&:first-child:first-of-type {*/
            /*    border-top-left-radius: 4px;*/
            /*}*/

            /*&:last-child:first-of-type {*/
            /*    border-top-right-radius: 4px;*/
            /*}*/

            /*&:first-child:last-of-type {*/
            /*    border-bottom-left-radius: 4px;*/
            /*}*/

            /*&:last-child:last-of-type {*/
            /*    border-bottom-right-radius: 4px;*/
            /*}*/
        }

        th {
            font-weight: 500;
            font-size: 15px;
            text-transform: uppercase;
        }
    }
}

.sp-ndt-tables-format-1 {
    thead > tr > th {
        background-color: var(--color-gray);
    }
}

.sp-text-white-50 {
    color: rgba(255, 255, 255, .5) !important;
}

.sp-mb-1 {
    margin-bottom: 4px !important;
}

.sp-ndt-document {
    width: 250px;
    padding: 20px;
    background-color: var(--color-gray);
    margin: auto;

    a {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        text-align: center;
        text-decoration: none;
        color: var(--color-zapcod-secondary);
    }

    i {
        font-size: 30px;
    }

    span {
        margin-top: 5px;
        width: 100%;
        max-width: 210px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.sp-form-annex {
    padding: 15px;
}

.sp-anexo-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sp-annex-section {
    padding: 20px;
    border: 1px solid #DDD;
    border-radius: 14px;
    margin-bottom: 25px;

    &:last-of-type {
        margin-bottom: 0;
    }

    h5 {
        font-size: 16px;
    }
}

.sp-form-buttons-inline {
    display: flex;
    justify-content: flex-end;
    align-items: self-end;
}

.sp-form-row {
    padding: 10px 0 0;
    margin: 0 0 15px;
    border-bottom: 1px solid var(--color-gray-2);
    background: var(--bg-color-body);
}

.sp-table {
    & > thead > tr > th {
        font-weight: 400;
    }

    & > tbody > tr > td {
        font-weight: 100;
    }
}

.sp-container-buttons {
    display: flex;
    align-items: center;
    gap: 5px;
}

.sp-notifications {
    margin-bottom: 10px;

    .sp-alert {
        position: relative;
    }

    .sp-btn-close {
        --bs-btn-close-color: #000;
        --bs-btn-close-bg: url('data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27 fill=%27%23000%27%3e%3cpath d=%27M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z%27/%3e%3c/svg%3e');
        --bs-btn-close-opacity: 0.5;
        --bs-btn-close-hover-opacity: 0.75;
        --bs-btn-close-focus-shadow: 0 0 0 0.25rem rgba(63, 106, 216, 0.25);
        --bs-btn-close-focus-opacity: 1;
        --bs-btn-close-disabled-opacity: 0.25;
        --bs-btn-close-white-filter: invert(1) grayscale(100%) brightness(200%);
        position: absolute;
        z-index: 2;
        box-sizing: content-box;
        width: 1em;
        height: 1em;
        color: var(--bs-btn-close-color);
        background: rgba(0, 0, 0, 0) var(--bs-btn-close-bg) center / 1em auto no-repeat;
        border: 0;
        border-radius: .375rem;
        opacity: var(--bs-btn-close-opacity);
        cursor: pointer;
        top: 12px;
        right: 5px;
        padding: 5px;
    }
}

.ndt-item {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;

    h3 {
        margin: 0;
    }
}

.ndt-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.ndt-table th, .ndt-table td {
    border: 1px solid #ccc;
    padding: 6px 10px;
    text-align: left;
}

.ndt-table th {
    background: #eee;
}

/* Encabezado NDT */
.sp-ndt-title {
    font-weight: 600;
    letter-spacing: .3px;
}

.sp-ndt-summary {
    margin-bottom: 10px;
}

.sp-ndt-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sp-ndt-meta__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .22);
    color: rgba(255, 255, 255, .92);
    font-size: 11.5px;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: .2px;
}

.sp-ndt-meta__item .fa {
    opacity: .8;
}

/* Tarjeta: Información General */
.sp-ndt-info-card {
    border-radius: 8px;
    border: 1px solid #ececf1;
    box-shadow: 0 4px 16px rgba(17, 24, 39, .06);
    overflow: hidden;
}

.sp-ndt-info-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid #f0f0f4;
}

.sp-ndt-info-card__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--color-dark);
}

.sp-ndt-info-card__title .fa {
    color: var(--color-zapcod);
    font-size: 15px;
}

.sp-ndt-info-card__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--color-zapcod);
    background: rgba(0, 0, 0, .03);
    border: 1px solid currentColor;
}

.sp-ndt-info-card__status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.sp-ndt-info-card__body {
    padding: 16px 18px 18px;
}

.sp-ndt-info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 24px;
}

.sp-ndt-info-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    padding-left: 12px;
    border-left: 2px solid #eeeef3;
}

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

.sp-ndt-info-field__label {
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #9a9aa6;
}

.sp-ndt-info-field__value {
    font-size: 13px;
    color: var(--color-dark);
    word-break: break-word;
}

.sp-ndt-info-field__value--code {
    font-weight: 600;
    color: var(--color-zapcod);
}

@media (max-width: 991px) {
    .sp-ndt-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .sp-ndt-info-grid {
        grid-template-columns: 1fr;
    }

    .sp-ndt-info-card__header {
        flex-wrap: wrap;
    }
}

/* Aviso: pérdida de registros al eliminar */
.sp-ndt-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 16px 0;
    padding: 12px 16px;
    border: 1px solid #fde68a;
    border-left: 3px solid #f59e0b;
    border-radius: 8px;
    background: #fffbeb;
}

.sp-ndt-notice__icon {
    margin-top: 2px;
    font-size: 16px;
    color: #d97706;
}

.sp-ndt-notice__content {
    min-width: 0;
}

.sp-ndt-notice__title {
    display: block;
    margin-bottom: 2px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #92400e;
}

.sp-ndt-notice__text {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #78350f;
}

.sp-ndt-notice__text strong {
    font-weight: 600;
}

/* Layout horizontal: formulario (25%) izquierda y registros (75%) derecha */
.sp-inspection-defects-grid {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.sp-inspection-defects-form {
    flex: 0 0 25%;
    max-width: 25%;
}

.sp-inspection-defects-list {
    flex: 1 1 auto;
    min-width: 0;
}

.sp-inspection-defects-grid--readonly .sp-inspection-defects-form {
    display: none;
}

@media (max-width: 991px) {
    .sp-inspection-defects-grid {
        flex-direction: column;
    }

    .sp-inspection-defects-form {
        flex: 1 1 auto;
        max-width: 100%;
    }
}

/* Mejorar visualización de selects dentro del panel izquierdo (Select2 / múltiples) */
.sp-inspection-defects-form .select2-container {
    width: 100% !important;
}

.sp-inspection-defects-form .select2-selection--multiple {
    min-height: 34px;
}

.sp-inspection-defects-form .select2-selection--multiple .select2-selection__rendered {
    white-space: normal;
}

/* Estética: espaciamiento uniforme entre campos en el panel izquierdo */
.sp-inspection-defects-form .form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.sp-inspection-defects-form .live-preview {
    padding: 12px 12px 6px;
    border-radius: 6px;
}

.sp-inspection-defects-form .live-preview .row > [class*="col-"] {
    margin-bottom: 12px;
}

.sp-inspection-defects-form .live-preview .row > [class*="col-"]:last-child {
    margin-bottom: 0;
}

/* Normalizar alturas de Select2 (single/multiple) para que no queden “pegados” */
.sp-inspection-defects-form .select2-container--default .select2-selection--single {
    height: 34px;
}

.sp-inspection-defects-form .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 34px;
}

.sp-inspection-defects-form .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 34px;
}

.sp-defect-register-panel {
    position: relative;
}

.sp-form-loading-overlay {
    position: absolute;
    inset: 0;
    z-index: 15;
    background: rgba(255, 255, 255, 0.76);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.sp-form-loading-overlay__box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #dbe3f1;
    border-radius: 999px;
    background: #ffffff;
    color: #374151;
    font-size: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.sp-form-loading-overlay__spinner {
    width: 14px;
    height: 14px;
    border: 2px solid #d4def3;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: sp-spin 0.75s linear infinite;
}

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

/* Filas agregadas (tablas): bajar tamaño de letra y compactar controles */
.sp-inspection-defects-list .table tbody td {
    font-size: 12px;
}

.sp-inspection-defects-list .table tbody input,
.sp-inspection-defects-list .table tbody select,
.sp-inspection-defects-list .table tbody textarea,
.sp-inspection-defects-list .table tbody .btn {
    font-size: 12px;
}

.sp-inspection-defects-list .table tbody .gui-input,
.sp-inspection-defects-list .table tbody .form-control {
    height: 30px;
    padding: 4px 8px;
}

.sp-inspection-defects-list .table tbody .gui-textarea,
.sp-inspection-defects-list .table tbody textarea.form-control {
    height: auto;
}

.sp-inspection-defects-list .select2-container {
    font-size: 12px;
}

.sp-inspection-defects-list .select2-container--default .select2-selection--single {
    height: 30px;
}

.sp-inspection-defects-list .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 30px;
}

.sp-inspection-defects-list .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 30px;
}

.sp-inspection-defects-list .select2-selection--multiple {
    min-height: 30px;
}

/* Tablas de defectos: diseño minimalista */
.sp-inspection-defects-list .defect-section {
    margin-bottom: 18px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
}

.sp-inspection-defects-list .defect-section:last-child {
    margin-bottom: 0;
}

.sp-inspection-defects-list .defect-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 12px 16px;
    border: 0;
    border-bottom: 1px solid #eef0f3;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #1f2937;
}

.sp-inspection-defects-list .defect-heading .fa {
    font-size: 14px;
    color: var(--color-zapcod);
}

.sp-inspection-defects-list .table {
    margin: 0;
    border: 0 !important;
}

.sp-inspection-defects-list .table > thead > tr > th {
    padding: 10px 12px;
    border: 0;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #6b7280;
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

.sp-inspection-defects-list .table > thead > tr > th.text-center {
    text-align: center;
}

.sp-inspection-defects-list .table > tbody > tr > td {
    padding: 10px 12px;
    border: 0;
    border-top: 1px solid #f1f2f4;
    vertical-align: middle;
}

.sp-inspection-defects-list .table > tbody > tr:first-child > td {
    border-top: 0;
}

.sp-inspection-defects-list .table-hover > tbody > tr:hover {
    background: #fafbfc;
}

.sp-inspection-defects-list .table > tbody > tr[id^="initial_row_"] > td {
    padding: 28px 12px;
    color: #9ca3af;
    font-size: 12px;
}

.sp-inspection-defects-list .table tbody .gui-input,
.sp-inspection-defects-list .table tbody .form-control,
.sp-inspection-defects-list .select2-container--default .select2-selection--single,
.sp-inspection-defects-list .select2-container--default .select2-selection--multiple {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.sp-inspection-defects-list .table tbody .gui-input:focus,
.sp-inspection-defects-list .table tbody .form-control:focus,
.sp-inspection-defects-list .select2-container--default.select2-container--focus .select2-selection--multiple,
.sp-inspection-defects-list .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .12);
    outline: 0;
}

.sp-inspection-defects-list .select2-container--default .select2-selection--multiple .select2-selection__choice {
    margin-top: 4px;
    padding: 1px 8px;
    border: 0;
    border-radius: 4px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 11px;
}

.sp-inspection-defects-list .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    margin-right: 4px;
    color: #818cf8;
}

.sp-inspection-defects-list .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #dc2626;
}

.sp-inspection-defects-list .table .btn.modal-file-management {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    color: #374151;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: none;
}

.sp-inspection-defects-list .table .btn.modal-file-management .fa {
    color: #3b82f6;
}

.sp-inspection-defects-list .table .btn.modal-file-management:hover,
.sp-inspection-defects-list .table .btn.modal-file-management:focus {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
}

.sp-inspection-defects-list .table > tbody > tr > td:last-child {
    width: 1%;
    white-space: nowrap;
}

.sp-inspection-defects-list .table .btn.move-up-row,
.sp-inspection-defects-list .table .btn.move-down-row,
.sp-inspection-defects-list .table .btn.complete-info,
.sp-inspection-defects-list .table .btn[class*="delete-line-"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 0 2px 0 0;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    color: #6b7280;
    font-size: 12px;
    box-shadow: none;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.sp-inspection-defects-list .table .btn.move-up-row:hover,
.sp-inspection-defects-list .table .btn.move-down-row:hover {
    border-color: #d1d5db;
    background: #f3f4f6;
    color: #111827;
}

.sp-inspection-defects-list .table .btn.complete-info:hover {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
}

.sp-inspection-defects-list .table .btn[class*="delete-line-"]:hover {
    border-color: #fecaca;
    background: #fef2f2;
    color: #dc2626;
}

/* Visor de imágenes (minimalista) */
.sp-image-viewer {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
}

.sp-image-viewer.is-open {
    display: block;
}

.sp-image-viewer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(4px);
}

.sp-image-viewer__panel {
    position: relative;
    z-index: 1;
    width: min(1100px, calc(100vw - 48px));
    height: min(720px, calc(100vh - 48px));
    margin: 24px auto;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
}

.sp-image-viewer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid #e5e7eb;
}

.sp-image-viewer__title {
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
}

.sp-image-viewer__actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.sp-image-viewer__btn {
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #111827;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1;
}

.sp-image-viewer__btn:hover {
    background: #f9fafb;
}

.sp-image-viewer__body {
    flex: 1 1 auto;
    display: grid;
    place-items: center;
    background: #0b1220;
    position: relative;
    overflow: hidden;
}

.sp-image-viewer__img {
    max-width: none;
    max-height: none;
    object-fit: contain;
    transform: translate3d(0, 0, 0) scale(1);
    will-change: transform;
    cursor: default;
    user-select: none;
}

.sp-image-viewer__img.is-grabbable {
    cursor: grab;
}

.sp-image-viewer__img.is-grabbing {
    cursor: grabbing;
}

.sp-image-viewer__loading {
    position: absolute;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
}

/* Ejecución de componente: layout por tarjetas */
.sp-ndt-execute {
    margin-top: 20px;
}

.sp-ndt-execute .sp-ndt-info-card {
    margin-bottom: 16px;
}

.sp-ndt-info-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sp-ndt-execute__hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: #9ca3af;
}

.sp-ndt-execute .sp-ndt-btn-report {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid #fecaca;
    border-radius: 6px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;

    .material-symbols-outlined {
        font-size: 18px;
    }

    &:hover,
    &:focus {
        border-color: #f87171;
        background: #fee2e2;
        color: #991b1b;
        text-decoration: none;
    }
}

/* Panel lateral (drawer) de detalle del punto de inspección */
body.sp-ndt-drawer-open {
    overflow: hidden;
}

.sp-ndt-drawer {
    position: fixed;
    inset: 0;
    z-index: 1035;
    visibility: hidden;
    pointer-events: none;
}

.sp-ndt-drawer.is-open {
    visibility: visible;
    pointer-events: auto;
}

.sp-ndt-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, .28);
    opacity: 0;
    transition: opacity .25s ease;
}

.sp-ndt-drawer.is-open .sp-ndt-drawer__backdrop {
    opacity: 1;
}

.sp-ndt-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    width: min(780px, 100vw);
    background: #fff;
    box-shadow: -12px 0 40px rgba(17, 24, 39, .18);
    transform: translateX(100%);
    transition: transform .28s ease;
}

.sp-ndt-drawer.is-open .sp-ndt-drawer__panel {
    transform: translateX(0);
}

.sp-ndt-drawer__header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid #eef0f3;
}

.sp-ndt-drawer__icon {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #fff7ed;
    color: var(--color-zapcod);
    font-size: 17px;
}

.sp-ndt-drawer__heading {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 10px;
    min-width: 0;
}

.sp-ndt-drawer__title {
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #111827;
}

.sp-ndt-drawer__subtitle {
    order: 3;
    flex-basis: 100%;
    overflow: hidden;
    font-size: 12.5px;
    color: #6b7280;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sp-ndt-drawer__close {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #6b7280;
    font-size: 16px;
    transition: background-color .15s ease, color .15s ease;

    &:hover,
    &:focus {
        outline: 0;
        background: #f3f4f6;
        color: #111827;
    }
}

.sp-ndt-drawer__content {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
}

.sp-ndt-drawer__nav {
    display: flex;
    flex: 0 0 200px;
    flex-direction: column;
    gap: 2px;
    padding: 14px 10px;
    border-right: 1px solid #eef0f3;
    background: #fafbfc;
    overflow-y: auto;
}

.sp-ndt-drawer__nav-group {
    margin: 14px 10px 6px;
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #9ca3af;
}

.sp-ndt-drawer__nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 6px;
    color: #4b5563;
    font-size: 12.5px;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;

    .fa {
        width: 14px;
        color: #9ca3af;
        text-align: center;
    }

    &:hover,
    &:focus {
        background: #f3f4f6;
        color: #111827;
        text-decoration: none;
    }

    &.active {
        background: #fff;
        color: #111827;
        font-weight: 600;
        box-shadow: inset 3px 0 0 var(--color-zapcod), 0 1px 2px rgba(17, 24, 39, .06);
    }

    &.active .fa {
        color: var(--color-zapcod);
    }
}

.sp-ndt-drawer__nav-count {
    margin-left: auto;
    min-width: 22px;
    padding: 1px 7px;
    border-radius: 999px;
    background: #eef0f3;
    color: #6b7280;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}

.sp-ndt-drawer__body {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    padding: 18px 20px;
    overflow-y: auto;
}

.sp-ndt-drawer__section + .sp-ndt-drawer__section {
    margin-top: 18px;
}

.sp-ndt-drawer__section-title {
    margin: 0 0 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #374151;
}

.sp-ndt-drawer__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 20px;
}

.sp-ndt-drawer__state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 32px 20px;
    border: 1px dashed #e5e7eb;
    border-radius: 10px;
    text-align: center;

    .fa {
        margin-bottom: 6px;
        font-size: 26px;
        color: #d1d5db;
    }

    strong {
        font-size: 13px;
        font-weight: 600;
        color: #374151;
    }

    p {
        margin: 0;
        font-size: 12.5px;
        color: #9ca3af;
    }
}

.sp-ndt-drawer .sp-ndt-indication-container {
    margin-top: 0;
}

.sp-ndt-drawer .sp-ndt-indication-info {
    grid-template-columns: 1fr;
}

.sp-ndt-drawer .sp-ndt-indication-info .sp-ndt-indication ul {
    max-height: none;
}

.sp-ndt-drawer__footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-top: 1px solid #eef0f3;
    background: #fff;

    .btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        height: 36px;
        padding: 0 14px;
        border-radius: 6px;
        font-size: 12.5px;
        font-weight: 600;
    }
}

@media (max-width: 767px) {
    .sp-ndt-drawer__nav {
        display: none;
    }

    .sp-ndt-drawer__fields {
        grid-template-columns: 1fr;
    }
}

/* Puntos de inspección: pestañas, modelo 2D y tabla */
.sp-ndt-points__tabs {
    display: flex;
    gap: 4px;
    margin: 0 0 16px;
    padding: 0;
    border-bottom: 1px solid #e5e7eb;
    list-style: none;

    li {
        margin: 0;
    }

    a {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin-bottom: -1px;
        padding: 9px 14px;
        border-bottom: 2px solid transparent;
        color: #6b7280;
        font-size: 12.5px;
        font-weight: 600;
        text-decoration: none;
        transition: color .15s ease, border-color .15s ease;
    }

    a:hover,
    a:focus {
        color: #1f2937;
        text-decoration: none;
    }

    a.active {
        border-bottom-color: var(--color-zapcod);
        color: var(--color-zapcod);
    }
}

.sp-ndt-points__pane {
    display: none;

    &.active {
        display: block;
    }
}

.sp-ndt-points__canvas {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid #eef0f3;
    border-radius: 10px;
    background: #fff;
    overflow-x: auto;
}

.sp-ndt-points__table-wrap {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow-x: auto;
}

.sp-ndt-points__table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;

    > thead > tr > th {
        padding: 10px 12px;
        border-bottom: 1px solid #e5e7eb;
        background: #f9fafb;
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .4px;
        color: #6b7280;
        white-space: nowrap;
        vertical-align: middle;
    }

    > tbody > tr > td {
        padding: 10px 12px;
        border-top: 1px solid #f1f2f4;
        font-size: 12.5px;
        color: #374151;
        vertical-align: middle;
        white-space: nowrap;
    }

    > tbody > tr:first-child > td {
        border-top: 0;
    }

    > tbody > tr {
        transition: background-color .15s ease;
    }

    > tbody > tr:hover {
        background: #fafbfc;
    }

    > tbody > tr > td.td_inspection_code {
        position: relative;
        color: var(--color-zapcod);
        font-weight: 600;
        cursor: pointer;
    }

    > tbody > tr > td.td_inspection_code:hover {
        text-decoration: underline;
    }

    > tbody > tr > td.td_inspection_code_hover {
        background-color: transparent !important;
        color: var(--color-zapcod);
        box-shadow: inset 3px 0 0 var(--color-zapcod);
    }

    > tbody > tr:has(.td_inspection_code_hover) {
        background: #fff7ed;
    }

    > tbody > tr > td:last-child {
        width: 1%;
    }
}

.sp-ndt-points__desc {
    min-width: 180px;
    white-space: normal !important;
}

.sp-ndt-points__badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .4px;
    text-transform: uppercase;
}

.sp-ndt-points__empty {
    padding: 28px 12px !important;
    text-align: center;
    color: #9ca3af !important;
}

/* Estado del punto de inspección */
.sp-ndt-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
    white-space: nowrap;
}

.sp-ndt-status__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.sp-ndt-status--progress {
    background: #ecfdf5;
    color: #047857;
}

.sp-ndt-status--done {
    background: #f3f4f6;
    color: #4b5563;
}

/* Botones de acción tipo ícono */
.sp-ndt-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    color: #6b7280;
    font-size: 13px;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;

    .material-symbols-outlined {
        font-size: 18px;
    }

    &:hover,
    &:focus {
        text-decoration: none;
    }
}

.sp-ndt-icon-btn + .sp-ndt-icon-btn {
    margin-left: 4px;
}

.sp-ndt-icon-btn--edit {
    color: #2563eb;

    &:hover,
    &:focus {
        border-color: #93c5fd;
        background: #eff6ff;
        color: #1d4ed8;
    }
}

.sp-ndt-icon-btn--view {
    color: #0891b2;

    &:hover,
    &:focus {
        border-color: #67e8f9;
        background: #ecfeff;
        color: #0e7490;
    }
}

/* Pie de página de acciones */
.sp-ndt-execute #btn-back-view {
    margin-bottom: 12px;
}

.sp-ndt-execute__footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    padding: 14px 0 4px;
    border-top: 1px solid #e5e7eb;

    .button {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        border-radius: 6px;
    }
}

@media (max-width: 767px) {
    .sp-ndt-info-grid--2 {
        grid-template-columns: 1fr;
    }

    .sp-ndt-execute__hint {
        display: none;
    }
}

/* Detalle de reparación de fisura (modal de solo lectura) */
.sp-repair-view {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 4px 2px;
}

.sp-repair-view__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #eef0f3;
    border-radius: 10px;
    background: #fafbfc;
}

.sp-repair-view__icon {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 16px;

    &.is-repaired {
        background: #ecfdf5;
        color: #047857;
    }

    &.is-not-repaired {
        background: #fffbeb;
        color: #b45309;
    }
}

.sp-repair-view__heading {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.sp-repair-view__code {
    font-size: 17px;
    font-weight: 600;
    color: #111827;
}

.sp-repair-view__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #374151;

    .fa {
        color: var(--color-zapcod);
    }

    .sp-ndt-indication__count {
        margin-left: 2px;
    }
}

.sp-repair-view__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 24px;
}

.sp-repair-view__comment {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #eef0f3;
    border-radius: 8px;
    background: #fafbfc;
    font-size: 13px;
    line-height: 1.55;
    color: #374151;
    white-space: pre-line;

    &.is-empty {
        color: #9ca3af;
        font-style: italic;
    }
}

.sp-repair-view__files {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

.sp-repair-view__file {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    color: #4b5563;
    text-decoration: none;

    &:hover,
    &:focus {
        color: #111827;
        text-decoration: none;
    }

    &:hover .sp-repair-view__thumb {
        border-color: #d1d5db;
        box-shadow: 0 4px 14px rgba(17, 24, 39, .1);
    }

    &:hover .sp-repair-view__thumb-overlay {
        opacity: 1;
    }
}

.sp-repair-view__thumb {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    transition: border-color .15s ease, box-shadow .15s ease;

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    > .fa {
        font-size: 34px;
        color: #dc2626;
    }
}

.sp-repair-view__thumb-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(17, 24, 39, .45);
    color: #fff;
    font-size: 18px;
    opacity: 0;
    transition: opacity .15s ease;
}

.sp-repair-view__file-name {
    overflow: hidden;
    font-size: 11.5px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sp-repair-view__empty {
    padding: 20px 12px;
    border: 1px dashed #e5e7eb;
    border-radius: 8px;
    text-align: center;
    font-size: 12.5px;
    color: #9ca3af;
}

@media (max-width: 575px) {
    .sp-repair-view__grid {
        grid-template-columns: 1fr;
    }
}

.ndt-reports-page {
    --ndt-line: #e6ebf2;
    --ndt-ink: #1e293b;
    --ndt-muted: #64748b;
    --ndt-soft: #f8fafc;
    --ndt-brand: #f47b22;
}

.ndt-reports-page .sp-ndt-container {
    background: transparent;
    padding-left: 0;
    padding-right: 0;
}

.ndt-reports-page .sp-ndt-header-background {
    display: none;
}

.ndt-reports-page .sp-ndt-header {
    margin: 0 0 12px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--ndt-line);
    border-top: 3px solid var(--ndt-brand);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ndt-reports-page .sp-ndt-header .sp-ndt-row > * {
    margin-top: 0;
}

.ndt-reports-page .sp-ndt-header-g4 {
    align-items: center;
}

.ndt-reports-page .sp-ndt-avatar-lg {
    width: 52px;
    height: 52px;
}

.ndt-reports-page .sp-ndt-avatar-img-thumbnail {
    padding: 0;
    background: transparent;
}

.ndt-reports-page .sp-ndt-avatar-text {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--ndt-brand);
    background: #fff6ef;
    border: 1px solid #f6d7c2;
}

.ndt-reports-page .sp-ndt-title {
    margin-bottom: 2px;
    color: var(--ndt-ink);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.ndt-reports-page .sp-ndt-summary {
    margin: 0 0 8px;
    color: var(--ndt-muted);
}

.ndt-reports-page .sp-ndt-info {
    color: #475569;
    gap: 14px;
    font-size: 12px;
}

.ndt-reports-page .sp-ndt-info .fa {
    color: var(--ndt-brand);
}

.ndt-reports-page .sp-text-white-50,
.ndt-reports-page .sp-ndt-header .text-white,
.ndt-reports-page .sp-ndt-header .fs-14 {
    color: var(--ndt-muted) !important;
}

.ndt-reports-page .sp-ndt-header h4 {
    color: var(--ndt-ink);
    font-size: 14px;
    font-weight: 700;
}

.ndt-reports-page .ndt-reports-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.ndt-reports-page .ndt-reports-status {
    text-align: right;
}

.ndt-reports-page .ndt-reports-status h4 {
    margin: 0;
}

.ndt-reports-page .ndt-reports-config {
    position: relative;
}

.ndt-reports-page .ndt-reports-config__btn {
    border: 1px solid var(--ndt-line);
    border-radius: 8px;
    background: #fff;
    color: var(--ndt-ink);
    font-weight: 600;
    box-shadow: none;
}

.ndt-reports-page .ndt-reports-config__btn:hover,
.ndt-reports-page .ndt-reports-config__btn:focus,
.ndt-reports-page .ndt-reports-config.is-open .ndt-reports-config__btn {
    border-color: var(--ndt-brand);
    background: #fff;
    color: var(--ndt-brand);
}

.ndt-reports-page .ndt-reports-config__menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 30;
    min-width: 270px;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #fff;
    border: 1px solid var(--ndt-line);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
    text-align: left;
}

.ndt-reports-page .ndt-reports-config__menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.ndt-reports-page .ndt-reports-config__menu a:hover {
    background: #f8fafc;
    color: var(--ndt-ink);
}

.ndt-reports-page .ndt-reports-config__menu .fa {
    width: 14px;
    color: var(--ndt-brand);
    text-align: center;
}

.ndt-reports-page .sp-ndt-header .btn-danger {
    border: 0;
    border-radius: 8px;
    background: var(--ndt-brand);
    font-weight: 600;
    box-shadow: none;
}

.ndt-reports-page .sp-ndt-header .btn-danger:hover,
.ndt-reports-page .sp-ndt-header .btn-danger:focus {
    background: #e06d18;
}

.ndt-reports-page .sp-ndt-card {
    margin-bottom: 12px;
    border: 1px solid var(--ndt-line);
    border-radius: 12px;
    box-shadow: none;
}

.ndt-reports-page .sp-ndt-card-title {
    color: var(--ndt-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.ndt-reports-page .sp-ndt-tables table,
.ndt-reports-page .sp-ndt-tables th,
.ndt-reports-page .sp-ndt-tables td {
    border-color: #f1f5f9 !important;
}

.ndt-reports-page .sp-ndt-tables-format-1 thead > tr > th {
    background: var(--ndt-soft);
    color: var(--ndt-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.ndt-reports-page .sp-ndt-tables td {
    color: var(--ndt-ink);
    font-weight: 600;
}

.ndt-reports-page .card {
    overflow: hidden;
    border: 1px solid var(--ndt-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: none;
}

.ndt-reports-page .card > .card-header {
    padding: 16px 20px;
    background: #fff !important;
    border-bottom: 1px solid var(--ndt-line);
    text-align: left !important;
}

.ndt-reports-page .card > .card-header .card-title {
    color: var(--ndt-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.ndt-reports-page .card > .card-body {
    padding: 8px 20px 18px;
}

.ndt-reports-page .sp-notifications .alert {
    border: 0;
    border-radius: 10px;
}

.ndt-reports-page .sp-container-documents {
    align-items: flex-start;
    gap: 16px;
}

.ndt-reports-page .sp-container-annex {
    padding: 8px 12px 12px;
    border: 1px solid var(--ndt-line) !important;
    border-radius: 12px;
    background: var(--ndt-soft);
}

.ndt-reports-page .sp-card-title {
    color: var(--ndt-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.ndt-reports-page .sp-anexo-buttons {
    margin-bottom: 10px;
}

.ndt-reports-page .sp-anexo-buttons a.text-info {
    color: var(--ndt-brand);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.ndt-reports-page .sp-anexo-buttons .btn-light,
.ndt-reports-page .sp-container-buttons .btn-light {
    border: 1px solid var(--ndt-line);
    border-radius: 8px;
    background: #fff;
    color: var(--ndt-ink);
    font-weight: 600;
    box-shadow: none;
}

.ndt-reports-page .sp-container-buttons .btn-danger {
    border: 0;
    border-radius: 8px;
    background: #fdecea;
    color: #a33a28;
    box-shadow: none;
}

.ndt-reports-page .sp-container-annex .table {
    margin-bottom: 0;
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
}

.ndt-reports-page .sp-container-annex .table > thead > tr > th {
    border-bottom: 1px solid var(--ndt-line);
    color: var(--ndt-muted);
    background: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ndt-reports-page .sp-container-annex .table > tbody > tr > td {
    border-top: 1px solid #f1f5f9;
    background: #fff;
    vertical-align: middle;
}

.ndt-reports-page .sp-container-reports .sp-card-title {
    margin: 14px 0 4px !important;
}

.ndt-reports-page .sp-container-reports .border-dashed {
    margin-top: 0 !important;
    padding: 12px 2px !important;
    border: 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    border-radius: 0 !important;
    background: #fff;
}

.ndt-reports-page .sp-container-reports .avatar-title {
    background: #fff6ef;
    border-radius: 8px;
}

.ndt-reports-page .sp-info-file a {
    color: var(--ndt-ink);
    font-weight: 600;
}

.ndt-reports-page .sp-container-reports .badge {
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.ndt-reports-page .sp-container-reports .btn {
    border-radius: 8px;
    font-weight: 600;
    box-shadow: none;
}

.ndt-reports-page .sp-container-reports .btn-success {
    border: 1px solid #d7efd3;
    background: #eef8ec;
    color: #2f7a28;
}

.ndt-reports-page .sp-container-reports .btn-danger {
    border: 1px solid #f6d2cc;
    background: #fdecea;
    color: #a33a28;
}

.ndt-reports-page .sp-container-reports .btn-info,
.ndt-reports-page .sp-container-reports .btn-primary {
    border: 1px solid var(--ndt-line);
    background: #fff;
    color: #334155;
}

.ndt-reports-page .sp-container-reports .btn-success:hover,
.ndt-reports-page .sp-container-reports .btn-danger:hover,
.ndt-reports-page .sp-container-reports .btn-info:hover,
.ndt-reports-page .sp-container-reports .btn-primary:hover {
    filter: brightness(0.98);
}

@media (max-width: 991px) {
    .ndt-reports-page .sp-container-annex,
    .ndt-reports-page .sp-container-reports {
        width: 100%;
    }
}

.ndt-reports-drawer .sp-ndt-drawer__panel {
    width: min(920px, 100vw);
}

.ndt-reports-drawer .sp-ndt-drawer__footer {
    justify-content: flex-start;
}

.ndt-reports-drawer .sp-ndt-drawer__footer .btn {
    border-radius: 8px;
}
