#document-agent .agent-input {
    position: relative;
}

#voiceNoteOverlay {
    position: absolute;
    inset: 0;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    z-index: 30;
    display: none;
    pointer-events: auto;
    background: rgb(255 255 255);
    backdrop-filter: blur(6px);
    border-radius: 3px;
}

#voiceNoteOverlay * {
    padding: 0;
}

#voiceNoteOverlay.open {
    display: flex;
}

.voice-note-inner {
    flex: 1;
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: stretch;
    padding: 1px !important;
}

.voice-note-top {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    flex: 1 1 auto;
    min-width: 0;
}

.voice-note-title {
    font-size: 13px;
    line-height: 1.2;
}

.voice-note-timer {
    font-size: 12px;
    opacity: 0.7;
    margin-left: 8px;
}

.voice-note-actions {
    display: flex;
    gap: 6px;
    flex: 0 0 auto;
    align-items: center;
    height:40px;
}

#voiceNoteOverlay .voice-note-actions button {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

#voiceNoteOverlay .voice-note-actions .btn-secondary {
    background: #fff;
    color: #6f6f6f;
}

#voiceNoteOverlay .voice-note-actions .btn-primary {
    background: #0184ff;
    color: #fff;
}

.voice-note-actions button .fa-microphone {
    opacity: 0.5;
}

#voiceNoteOverlay .voice-note-actions button i:last-child {
    font-size: 14px;
    position: absolute;
    right: 6px;
    bottom: 6px;
}

.voice-note-wave {
    width: 100%;
    height: 28px;
    border-radius: 6px;
    background: #fff;
}

.voice-note-status {
    font-size: 11px;
    line-height: 1.4;
    opacity: 0.6;
    white-space: pre-wrap;
    max-height: 32px;
    overflow: hidden;
    margin: 0;
}
