#modal-notas-versao .modal-dialog {
    width: min(1350px, calc(100vw - 30px));
    max-width: min(1350px, calc(100vw - 30px));
    margin: 1.75rem auto;
}

#modal-notas-versao.show {
    display: flex !important;
    align-items: center;
}

#modal-notas-versao.show .modal-dialog {
    margin: 0 auto;
}

#modal-notas-versao .modal-content {
    height: clamp(520px, calc(100vh - 140px), 820px);
}

#modal-notas-versao .modal-body {
    display: flex;
    flex-direction: column;
    height: calc(clamp(520px, calc(100vh - 140px), 820px) - 72px - 70px);
    overflow: hidden;
}

@media (max-height: 720px) {
    #modal-notas-versao .modal-content {
        height: calc(100vh - 60px);
    }

    #modal-notas-versao .modal-body {
        height: calc((100vh - 60px) - 72px - 70px);
    }
}

@media (max-width: 992px) {
    #modal-notas-versao .ndv-avaliacao-grid {
        flex-direction: column;
        align-items: stretch;
    }

    #modal-notas-versao .ndv-emojis {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
    }
}

#modal-notas-versao .ndv-meta {
    font-size: 12px;
}

#modal-notas-versao .ndv-conteudo-scroll {
    flex: 1;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #eee;
    padding: 12px;
    border-radius: 6px;
}

#modal-notas-versao .ndv-avaliacao {
    margin-top: 12px;
}

#modal-notas-versao .ndv-avaliacao-grid {
    display: flex;
    gap: 12px;
    align-items: center;
}

#modal-notas-versao .ndv-emojis {
    width: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

#modal-notas-versao .ndv-emoji {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 4px;
    user-select: none;
}

#modal-notas-versao .ndv-emoji img {
    height: 44px;
    filter: grayscale(1);
}

#modal-notas-versao .ndv-emoji-label {
    margin-top: 2px;
    font-size: 12px;
    color: #444;
}

#modal-notas-versao .ndv-feedback {
    flex: 1;
}

#modal-notas-versao.fullscreen .modal-dialog {
    max-width: 95vw;
    width: 95vw;
    height: 95vh;
    margin: 2.5vh auto;
}

#modal-notas-versao.fullscreen .modal-content {
    height: 95vh;
}

#modal-notas-versao.fullscreen .modal-body {
    max-height: calc(95vh - 140px);
    overflow-y: auto;
}

.ndv-historico {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(420px, calc(100vw - 40px));
    background: #fff;
    z-index: 1065;
    box-shadow: -10px 0 30px rgba(0, 0, 0, .2);
    transform: translateX(110%);
    transition: transform .22s ease;
    display: flex;
    flex-direction: column;
}

.ndv-historico--open {
    transform: translateX(0);
}

.ndv-historico-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .35);
    z-index: 1060;
}

.ndv-historico__header {
    padding: 14px 14px 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ndv-historico__title {
    font-weight: 700;
    font-size: 16px;
}

.ndv-historico__subtitle {
    font-size: 12px;
    color: #666;
}

.ndv-historico__close {
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: #333;
    padding: 0 6px;
}

.ndv-historico__search {
    padding: 10px 14px;
    border-bottom: 1px solid #eee;
}

.ndv-historico__body {
    padding: 10px 14px;
    overflow-y: auto;
    flex: 1;
}

.ndv-historico__loading,
.ndv-historico__empty {
    color: #666;
    font-size: 13px;
    padding: 10px 0;
}

.ndv-historico__item {
    padding: 10px 12px;
    border-bottom: 1px solid #e5e5e5;
}

.ndv-historico__itemTitle {
    font-weight: 700;
    margin-bottom: 4px;
    color: #222;
}

.ndv-historico__itemMeta {
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
}

.ndv-historico__visualizar {
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.ndv-historico__visualizar:hover {
    text-decoration: underline;
}

.ndv-nao-lido {
    background: #eaf3ff;
    font-weight: 600;
}

.ndv-lido {
    background: #fff;
}

body.modal-open {
    overflow: hidden !important;
}
