.new-ouvidoria {
    color: #333;
    padding-bottom: clamp(2rem, 5vw, 4rem);
    padding-top: 0;
}

.ouvidoria-page-header {
    margin: 0 auto clamp(1.5rem, 4vw, 2.5rem);
    max-width: 760px;
    text-align: center;
}

.ouvidoria-page-header h1 {
    color: #212529;
    font-size: clamp(1.8rem, 5vw, 2.65rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: .75rem;
}

.ouvidoria-page-header > p:last-child {
    color: #5c636a;
    font-size: clamp(1rem, 2vw, 1.1rem);
    margin-bottom: 0;
}

.ouvidoria-page-kicker,
.protocolo-kicker {
    color: #0d477d;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    margin-bottom: .4rem;
    text-transform: uppercase;
}

.new-ouvidoria .card {
    border-radius: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .05);
    max-width: 100%;
    padding: 0;
}

.new-ouvidoria .card-header {
    border-radius: 0;
    font-weight: 500;
}

.new-ouvidoria .card-header h2 {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.35;
}

.new-ouvidoria .btn-dark {
    background-color: #343a40;
    border-color: #343a40;
}

.new-ouvidoria .btn-dark:hover {
    background-color: #23272b;
    border-color: #1d2124;
}

.new-ouvidoria .btn,
.new-ouvidoria .form-control,
.new-ouvidoria .form-select {
    min-height: 44px;
}

.new-ouvidoria .form-control,
.new-ouvidoria .form-select {
    border: 1px solid #ced4da;
    border-radius: 0;
    padding: 10px 12px;
}

.new-ouvidoria .form-control:focus,
.new-ouvidoria .form-select:focus,
.new-ouvidoria .btn:focus-visible,
.new-ouvidoria a:focus-visible {
    border-color: #343a40;
    box-shadow: 0 0 0 3px rgba(13, 71, 125, .28);
    outline: 2px solid transparent;
}

.new-ouvidoria .form-control[aria-invalid="true"],
.new-ouvidoria .form-select[aria-invalid="true"] {
    border-color: #b02a37;
}

.new-ouvidoria .invalid-feedback {
    color: #842029;
    display: block;
}

.new-ouvidoria .progress {
    background-color: #e9ecef;
    border-radius: 0;
}

.new-ouvidoria .progress-bar {
    border-radius: 0;
}

.new-ouvidoria .bg-gray-700 {
    background-color: #495057 !important;
}

.new-ouvidoria .bg-gray-600 {
    background-color: #6c757d !important;
}

.new-ouvidoria .contact-value,
.new-ouvidoria .contact-value a,
.new-ouvidoria .manifestation-details,
.new-ouvidoria .form-text,
.new-ouvidoria dd {
    overflow-wrap: anywhere;
}

.new-ouvidoria .status-timeline {
    padding: 20px 0;
    position: relative;
}

.new-ouvidoria .timeline-progress {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.new-ouvidoria .timeline-progress::before {
    background: #dee2e6;
    content: "";
    height: 2px;
    left: 0;
    position: absolute;
    right: 0;
    top: 15px;
    z-index: 1;
}

.new-ouvidoria .timeline-step {
    align-items: center;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.new-ouvidoria .timeline-dot {
    align-items: center;
    background: #fff;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    display: flex;
    height: 24px;
    justify-content: center;
    margin-bottom: 8px;
    width: 24px;
}

.new-ouvidoria .timeline-step.completed .timeline-dot {
    background: #343a40;
    border-color: #343a40;
}

.new-ouvidoria .timeline-step.active .timeline-dot {
    background: #495057;
    border-color: #495057;
    box-shadow: 0 0 0 4px rgba(73, 80, 87, .18);
}

.new-ouvidoria .timeline-label {
    color: #6c757d;
    font-size: .8rem;
    text-align: center;
}

.new-ouvidoria .timeline-step.completed .timeline-label,
.new-ouvidoria .timeline-step.active .timeline-label {
    color: #343a40;
    font-weight: 600;
}

.new-ouvidoria .manifestation-details dl {
    margin-bottom: 0;
}

.new-ouvidoria .manifestation-details dt {
    color: #495057;
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: .15rem;
}

.new-ouvidoria .manifestation-details dd {
    color: #212529;
    margin-bottom: 0;
}

.new-ouvidoria .alert {
    border: none;
    border-radius: 0;
}

.new-ouvidoria .spinner-border-sm {
    height: 1rem;
    width: 1rem;
}

.new-ouvidoria .form-label {
    font-size: .9rem;
    white-space: normal;
}

.new-ouvidoria .recaptcha-wrapper {
    display: flex;
    justify-content: flex-start;
    margin: .25rem 0 1.25rem;
    max-width: 100%;
    overflow: hidden;
}

.new-ouvidoria .protocolo-card {
    border: 0;
    border-radius: 0;
    border-top: 5px solid #0d477d;
    box-shadow: 0 1rem 3rem rgba(13, 71, 125, .2);
}

.new-ouvidoria .protocolo-number-box {
    background: #f1f6fb;
    border: 1px dashed #0d477d;
    color: #0d477d;
    font-size: clamp(1.35rem, 5vw, 2rem);
    font-weight: 700;
    letter-spacing: .08em;
    overflow-wrap: anywhere;
    padding: 1rem;
    text-align: center;
}

.stats-quick-summary {
    background: #f6f8fa;
    border: 1px solid #e3e8ed;
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
    padding: 0 .9rem;
}

.stats-quick-summary > div {
    align-items: center;
    border-bottom: 1px solid #dde3e8;
    display: flex;
    gap: .75rem;
    justify-content: space-between;
    min-height: 52px;
    padding: .65rem 0;
}

.stats-quick-summary > div:last-child {
    border-bottom: 0;
}

.stats-quick-summary dt {
    color: #495057;
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

.stats-quick-summary dd {
    color: #0d477d;
    flex: 0 0 auto;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    text-align: right;
    white-space: nowrap;
}

.satisfaction-box {
    background: #f8f9fa;
    border-left: 4px solid #0d477d;
    padding: 1rem;
}

.satisfaction-options {
    display: grid;
    gap: .4rem;
    grid-template-columns: repeat(5, minmax(44px, 1fr));
    max-width: 360px;
}

.satisfaction-options .btn {
    align-items: center;
    display: flex;
    justify-content: center;
    margin: 0;
    min-width: 44px;
}

.stats-dashboard-header {
    align-items: end;
    background: #eef4f8;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.stats-dashboard-header .form-select {
    min-width: 140px;
}

.stats-dashboard-controls {
    align-items: end;
    display: flex;
    gap: .75rem;
}

#stats-toggle {
    white-space: nowrap;
}

.stats-loading {
    align-items: center;
    display: flex;
    gap: .5rem;
    justify-content: center;
    min-height: 120px;
}

.stats-kpi-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-kpi {
    background: #f1f6fb;
    margin: 0;
    min-width: 0;
    padding: 1rem;
}

.stats-kpi-value {
    color: #0d477d;
    font-size: clamp(1.25rem, 3vw, 1.8rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: .4rem;
    overflow-wrap: anywhere;
}

.stats-kpi-label {
    color: #495057;
    font-size: .8rem;
    font-weight: 600;
    margin: 0;
}

.stats-satisfaction {
    background: #f1f6fb;
    padding: 1rem;
}

.stats-satisfaction-value {
    color: #0d477d;
    font-size: 1.25rem;
    font-weight: 700;
}

.stats-breakdown-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stats-breakdown {
    border: 1px solid #dee2e6;
    min-width: 0;
    padding: 1rem;
}

.stats-breakdown-grid > section.stats-breakdown:last-of-type {
    border-bottom: 1px solid #dee2e6;
}

.stats-breakdown-row + .stats-breakdown-row {
    margin-top: .8rem;
}

.stats-breakdown-heading {
    display: flex;
    font-size: .85rem;
    gap: .5rem;
    justify-content: space-between;
    margin-bottom: .3rem;
}

.stats-breakdown-heading span {
    overflow-wrap: anywhere;
}

.stats-breakdown-heading strong {
    flex: 0 0 auto;
}

.stats-breakdown-track {
    background: #e9ecef;
    height: 8px;
    overflow: hidden;
}

.stats-breakdown-track span {
    background: #0d477d;
    display: block;
    height: 100%;
    min-width: 2px;
}

.stats-monthly {
    border: 1px solid #dee2e6;
    padding: 1rem;
}

.stats-monthly-grid {
    align-items: end;
    display: grid;
    gap: .4rem;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    overflow: visible;
    padding: .75rem .25rem .5rem;
}

.stats-monthly-item {
    align-items: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    font-size: .75rem;
    min-width: 0;
    outline-offset: 3px;
    position: relative;
}

.stats-monthly-item:focus-visible {
    outline: 2px solid #0d477d;
}

.stats-monthly-value {
    border-radius: .25rem;
    min-width: 1.5rem;
    padding: .1rem .25rem;
    transition: background-color .15s ease, color .15s ease, transform .15s ease;
}

.stats-monthly-tooltip {
    background: #172b3a;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: .4rem;
    bottom: calc(100% - 1.4rem);
    box-shadow: 0 .35rem 1rem rgba(0, 0, 0, .2);
    color: #fff;
    font-size: .75rem;
    font-weight: 600;
    left: 50%;
    opacity: 0;
    padding: .45rem .65rem;
    pointer-events: none;
    position: absolute;
    transform: translate(-50%, .35rem) scale(.96);
    transition: opacity .12s ease, transform .12s ease;
    white-space: nowrap;
    z-index: 2;
}

.stats-monthly-tooltip::after {
    border: .35rem solid transparent;
    border-top-color: #172b3a;
    content: '';
    left: 50%;
    position: absolute;
    top: 100%;
    transform: translateX(-50%);
}

.stats-monthly-item:hover .stats-monthly-tooltip,
.stats-monthly-item:focus-visible .stats-monthly-tooltip {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
}

.stats-monthly-item:hover .stats-monthly-value,
.stats-monthly-item:focus-visible .stats-monthly-value {
    background: #0d477d;
    color: #fff;
    transform: translateY(-2px);
}

.stats-monthly-track {
    align-items: end;
    background: #edf1f4;
    display: flex;
    height: 100px;
    margin: .3rem 0;
    width: 70%;
}

.stats-monthly-track span {
    background: #0d477d;
    display: block;
    transition: background-color .15s ease, filter .15s ease;
    width: 100%;
}

.stats-monthly-item:hover .stats-monthly-track span,
.stats-monthly-item:focus-visible .stats-monthly-track span {
    background: #1684c7;
    filter: drop-shadow(0 0 .25rem rgba(22, 132, 199, .65));
}

.stats-methodology {
    background: #f8f9fa;
    border-left: 4px solid #6c757d;
    padding: 1rem;
}

@media (max-width: 767.98px) {
    .new-ouvidoria .timeline-progress {
        align-items: flex-start;
        flex-direction: column;
    }

    .new-ouvidoria .timeline-progress::before {
        height: 100%;
        left: 11px;
        top: 0;
        width: 2px;
    }

    .new-ouvidoria .timeline-step {
        flex-direction: row;
        margin-bottom: 20px;
    }

    .new-ouvidoria .timeline-step:last-child {
        margin-bottom: 0;
    }

    .new-ouvidoria .timeline-dot {
        flex: 0 0 24px;
        margin-bottom: 0;
        margin-right: 15px;
    }

    .new-ouvidoria .card-body.p-4 {
        padding: 1rem !important;
    }

    .new-ouvidoria .modal-dialog {
        margin: .75rem;
    }

    .new-ouvidoria .modal-footer {
        display: grid;
        gap: .5rem;
        grid-template-columns: 1fr 1fr;
    }

    .new-ouvidoria .modal-footer .btn {
        margin: 0;
    }

    .new-ouvidoria .modal-footer .btn:last-child {
        grid-column: 1 / -1;
    }

    .stats-dashboard-header {
        align-items: stretch;
        flex-direction: column;
    }

    .stats-dashboard-controls {
        align-items: end;
        justify-content: space-between;
    }

    .stats-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stats-breakdown-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .stats-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 350px) {
    .new-ouvidoria .g-recaptcha {
        margin-bottom: -14px;
        transform: scale(.82);
        transform-origin: left top;
    }
}

@media (prefers-reduced-motion: reduce) {
    .new-ouvidoria *,
    .new-ouvidoria *::before,
    .new-ouvidoria *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

.ouvidoria-chamado .card,
.ouvidoria-chamado img {
    max-width: 100%;
}

.ouvidoria-chamado .protocol-number {
    font-size: clamp(1.6rem, 7vw, 3.25rem);
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.ouvidoria-chamado .contact-value,
.ouvidoria-chamado .card p {
    overflow-wrap: anywhere;
}

@media (max-width: 575.98px) {
    .ouvidoria-chamado {
        padding-left: 0;
        padding-right: 0;
    }

    .ouvidoria-chamado h1 {
        font-size: 1.75rem;
    }
}

.ouvidoria-main-grid {
    align-items: stretch;
}

.ouvidoria-left-column,
.ouvidoria-form-column,
.ouvidoria-side-column {
    display: flex;
    flex-direction: column;
}

.ouvidoria-left-column > .card,
.ouvidoria-side-column > .card {
    flex: 0 0 auto;
    margin-bottom: .75rem;
}

.ouvidoria-left-column > .card:last-child,
.ouvidoria-side-column > .card:last-child {
    margin-bottom: 0;
}

.ouvidoria-app-card-art {
    aspect-ratio: 16 / 9;
    border: 1px solid #dee2e6;
    display: block;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.ouvidoria-qr-image {
    cursor: zoom-in;
}

.ouvidoria-qr-image:focus-visible {
    outline: 3px solid #0d477d;
    outline-offset: 3px;
}

.ouvidoria-qr-lightbox[hidden] {
    display: none;
}

.ouvidoria-qr-lightbox {
    align-items: center;
    background: rgba(0, 0, 0, .88);
    display: flex;
    flex-direction: column;
    inset: 0;
    justify-content: center;
    padding: 3rem 1.5rem 1.5rem;
    position: fixed;
    z-index: 2000;
}

.ouvidoria-qr-lightbox-image {
    background: #fff;
    border-radius: .5rem;
    height: auto;
    max-height: calc(100vh - 7rem);
    max-width: min(90vw, 680px);
    object-fit: contain;
    padding: .5rem;
    width: auto;
}

.ouvidoria-qr-lightbox-caption {
    color: #fff;
    font-size: 1rem;
    margin: .75rem 0 0;
    text-align: center;
}

.ouvidoria-qr-lightbox-close {
    background: transparent;
    border: 0;
    color: #fff;
    cursor: pointer;
    font-size: 2.5rem;
    line-height: 1;
    padding: .25rem .75rem;
    position: absolute;
    right: 1rem;
    top: .5rem;
}

body.ouvidoria-qr-open {
    overflow: hidden;
}


.new-ouvidoria .ouvidoria-stats-dashboard {
    margin-top: 0 !important;
}

.ouvidoria-side-column > .card:last-child .card-body {
    padding-bottom: .25rem;
}

.new-ouvidoria .ouvidoria-stats-link {
    align-items: center;
    background-color: #212529;
    border: 1px solid #212529;
    border-radius: .25rem;
    color: #fff;
    display: inline-flex;
    justify-content: center;
    min-height: 44px;
    text-align: center;
    transition: background-color .15s ease-in-out, border-color .15s ease-in-out;
}

.new-ouvidoria .ouvidoria-stats-link:hover,
.new-ouvidoria .ouvidoria-stats-link:focus-visible {
    background-color: #343a40;
    border-color: #343a40;
    color: #fff;
}

.new-ouvidoria .ouvidoria-attachment-link {
    align-items: center;
    background: #fff;
    border: 1px solid #adb5bd;
    border-radius: .25rem;
    color: #343a40;
    display: inline-flex;
    font-size: .875rem;
    min-height: 38px;
    max-width: 100%;
    padding: .4rem .7rem;
    text-align: left;
    transition: background-color .15s ease-in-out, border-color .15s ease-in-out, color .15s ease-in-out;
    white-space: normal;
    overflow-wrap: anywhere;
}

.new-ouvidoria .ouvidoria-attachment-link:hover,
.new-ouvidoria .ouvidoria-attachment-link:focus-visible {
    background: #343a40;
    border-color: #343a40;
    color: #fff;
}

.ouvidoria-response-content {
    overflow-wrap: anywhere;
}

.ouvidoria-response-content > :last-child {
    margin-bottom: 0;
}

.ouvidoria-manifestation-text {
    max-height: 65vh;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

#manifestacao-anexos li + li {
    margin-top: .5rem;
}

.new-ouvidoria .ouvidoria-content-trigger {
    background: #fff;
    border: 1px solid #adb5bd;
    border-radius: .25rem;
    color: #343a40;
    font-size: .82rem;
    min-height: 34px;
    padding: .3rem .55rem;
}

.new-ouvidoria .ouvidoria-content-trigger:hover,
.new-ouvidoria .ouvidoria-content-trigger:focus-visible {
    background: #343a40;
    border-color: #343a40;
    color: #fff;
}

.new-ouvidoria .satisfaction-options {
    gap: .35rem;
    grid-template-columns: repeat(5, 42px);
    max-width: max-content;
}

.new-ouvidoria .satisfaction-options .btn {
    background: #fff;
    border-color: #adb5bd;
    border-radius: .25rem;
    color: #343a40;
    font-size: .9rem;
    min-height: 38px;
    min-width: 42px;
    padding: .35rem;
}

.new-ouvidoria .satisfaction-options .btn-check:checked + .btn-outline-dark {
    background: #343a40;
    border-color: #343a40;
    color: #fff;
}

.new-ouvidoria .satisfaction-options .btn-check:focus-visible + .btn-outline-dark {
    box-shadow: 0 0 0 3px rgba(52, 58, 64, .25);
}
