.consulta-radicado-page {
    padding-bottom: 40px;
}

.radicado-sheet {
    width: min(100%, 1080px);
    margin: 0 auto;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--rq-border, #dde2d8);
    border-top: 5px solid var(--rq-green, #009639);
    border-radius: 8px;
    box-shadow: 0 8px 26px rgba(35, 31, 32, .08);
}

.radicado-sheet__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    padding: 30px 34px 26px;
    background: var(--rq-surface, #f7f8f4);
    border-bottom: 1px solid var(--rq-border, #dde2d8);
}

.radicado-sheet__eyebrow {
    margin: 0 0 6px;
    color: var(--rq-green, #009639);
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.radicado-sheet__header h2 {
    margin: 0;
    color: var(--rq-dark, #231f20);
    font-size: 1.65rem;
    font-weight: 700;
}

.radicado-sheet__intro {
    margin: 7px 0 0;
    color: #626863;
    font-size: .9rem;
}

.radicado-sheet__identity {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 9px;
    flex: 0 0 auto;
}

.radicado-sheet__number {
    color: var(--rq-dark, #231f20);
    font-size: 1rem;
    font-weight: 700;
}

.radicado-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 12px;
    color: #12622f;
    background: #e9f5df;
    border: 1px solid #aed767;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 700;
}

.radicado-status--vencido,
.radicado-status--rechazado {
    color: #fff;
    background: #555b57;
    border-color: #555b57;
}

.radicado-status--pendiente {
    color: #5c4c00;
    background: #fff7c7;
    border-color: #ffd411;
}

.radicado-sheet__body {
    padding: 0 34px;
}

.radicado-section {
    display: grid;
    grid-template-columns: minmax(190px, .35fr) minmax(0, 1fr);
    gap: 34px;
    padding: 30px 0;
    border-bottom: 1px solid var(--rq-border, #dde2d8);
}

.radicado-section__heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.radicado-section__index {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    color: #fff;
    background: var(--rq-blue, #003893);
    border-radius: 6px;
    font-size: .7rem;
    font-weight: 800;
}

.radicado-section__heading h3 {
    margin: 1px 0 4px;
    color: var(--rq-dark, #231f20);
    font-size: .96rem;
    font-weight: 700;
}

.radicado-section__heading p {
    margin: 0;
    color: #727873;
    font-size: .78rem;
    line-height: 1.45;
}

.radicado-data-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 30px;
    margin: 0;
}

.radicado-data-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.radicado-data {
    min-width: 0;
    padding: 0 0 18px;
}

.radicado-data:nth-last-child(-n + 2) {
    padding-bottom: 0;
}

.radicado-data-grid--three .radicado-data:nth-last-child(-n + 3) {
    padding-bottom: 0;
}

.radicado-data--wide {
    grid-column: span 2;
}

.radicado-data dt {
    margin-bottom: 5px;
    color: #747a75;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.radicado-data dd {
    margin: 0;
    color: var(--rq-dark, #231f20);
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.45;
}

.radicado-data__break {
    overflow-wrap: anywhere;
}

.radicado-description {
    min-height: 84px;
    padding: 18px 20px;
    color: #393d3a;
    background: #f7f8f4;
    border-left: 4px solid var(--rq-green-soft, #8bc64f);
    font-size: .9rem;
    line-height: 1.7;
}

.radicado-documents__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px;
    gap: 24px;
    align-items: center;
}

.radicado-document-file {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 15px;
    align-items: center;
    min-width: 0;
    padding: 18px;
    background: #f7f8f4;
    border: 1px solid var(--rq-border, #dde2d8);
    border-radius: 6px;
}

.radicado-document-file__type {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: #fff;
    background: #555b57;
    border-radius: 6px;
    font-size: .72rem;
    font-weight: 800;
}

.radicado-document-file strong,
.radicado-document-file > div > span {
    display: block;
}

.radicado-document-file strong {
    color: var(--rq-dark, #231f20);
    font-size: .88rem;
}

.radicado-document-file > div > span {
    margin-top: 4px;
    overflow-wrap: anywhere;
    color: #747a75;
    font-size: .75rem;
}

.radicado-qr {
    margin: 0;
    text-align: center;
}

.radicado-qr img {
    display: block;
    width: 136px;
    height: 136px;
    margin: 0 auto 8px;
    object-fit: contain;
    padding: 7px;
    background: #fff;
    border: 1px solid var(--rq-border, #dde2d8);
}

.radicado-qr figcaption {
    color: #747a75;
    font-size: .72rem;
}

.radicado-qr--empty {
    display: grid;
    place-items: center;
    align-content: center;
    width: 136px;
    height: 136px;
    margin: 0 auto;
    color: #747a75;
    background: #f7f8f4;
    border: 1px dashed #b9beba;
}

.radicado-qr--empty span,
.radicado-qr--empty strong {
    display: block;
}

.radicado-qr--empty span {
    margin-bottom: 5px;
    color: #555b57;
    font-size: 1rem;
    font-weight: 800;
}

.radicado-qr--empty strong {
    font-size: .7rem;
}

.radicado-sheet__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 34px;
    background: #f7f8f4;
}

.consulta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 17px;
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.consulta-btn--primary {
    color: #fff;
    background: var(--rq-green, #009639);
    border-color: var(--rq-green, #009639);
}

.consulta-btn--primary:hover {
    color: #231f20;
    background: var(--rq-yellow, #ffd100);
    border-color: var(--rq-yellow, #ffd100);
}

.consulta-btn--disabled {
    color: #707570;
    background: #e3e4e5;
    border-color: #d1d4d1;
    cursor: not-allowed;
}

.consulta-btn--secondary {
    color: #fff;
    background: #555b57;
    border-color: #555b57;
}

.consulta-btn--secondary:hover {
    color: #fff;
    background: #3f4541;
    border-color: #3f4541;
}

.consulta-link {
    color: var(--rq-green, #009639);
    font-size: .82rem;
    font-weight: 700;
    text-underline-offset: 3px;
}

.consulta-empty {
    width: min(100%, 720px);
    margin: 20px auto 40px;
    padding: 42px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--rq-border, #dde2d8);
    border-top: 5px solid var(--rq-yellow, #ffd100);
    border-radius: 8px;
    box-shadow: 0 8px 26px rgba(35, 31, 32, .08);
}

.consulta-empty__code {
    display: block;
    margin-bottom: 8px;
    color: var(--rq-green, #009639);
    font-size: .78rem;
    font-weight: 700;
}

.consulta-empty h2 {
    margin: 0 0 10px;
    font-size: 1.4rem;
}

.consulta-empty p {
    margin: 0 0 22px;
    color: #676d68;
}

@media (max-width: 991.98px) {
    .radicado-sheet__header,
    .radicado-sheet__body,
    .radicado-sheet__actions {
        padding-left: 24px;
        padding-right: 24px;
    }

    .radicado-section {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .radicado-data-grid--three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .consulta-radicado-page {
        padding: 0 12px 32px;
    }

    .radicado-sheet__header {
        display: block;
        padding-top: 24px;
    }

    .radicado-sheet__identity {
        align-items: flex-start;
        margin-top: 20px;
    }

    .radicado-sheet__body {
        padding: 0 20px;
    }

    .radicado-section {
        padding: 25px 0;
    }

    .radicado-data-grid,
    .radicado-data-grid--three {
        grid-template-columns: 1fr;
    }

    .radicado-data,
    .radicado-data:nth-last-child(-n + 2),
    .radicado-data-grid--three .radicado-data:nth-last-child(-n + 3) {
        padding-bottom: 17px;
    }

    .radicado-data:last-child {
        padding-bottom: 0;
    }

    .radicado-data--wide {
        grid-column: auto;
    }

    .radicado-documents__content {
        grid-template-columns: 1fr;
    }

    .radicado-document-file {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .radicado-document-file__type {
        width: 42px;
        height: 42px;
    }

    .radicado-document-file .consulta-btn {
        grid-column: 1 / -1;
        width: 100%;
    }

    .radicado-sheet__actions {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        text-align: center;
    }

    .consulta-empty {
        padding: 32px 22px;
    }
}