body {

}

main {
    min-height: 100vh;
    overflow-y: auto;
}
@media (max-width: 991.98px) {
    main {
        min-height: calc(100vh - 77px); /* пример с учетом header */
        box-sizing: border-box;
    }
    /* другие нужные стили */
}

.content {
    overflow: hidden;
    overflow-y: auto;
}

.fs-7 {
    font-size: .875rem !important;
}

.fs-8 {
    font-size: .75rem !important;
}

.fs-9 {
    font-size: .68rem !important;
}

.dropdown-toggle { outline: 0; }

.table-sm td,
.table-sm th,
.card .table.table-sm td,
.card .table.table-sm th {
    font-size: .795rem;
    padding: .35rem 1rem;
}

.btn.btn-mini {
    padding: .15rem .25rem;
    font-size: .7rem;
    line-height: 1;
    border-radius: .25rem;
}

.btn-toggle {
    padding: .25rem .5rem;
    font-weight: 600;
    color: var(--bs-emphasis-color);
    background-color: transparent;
}
.btn-toggle:hover,
.btn-toggle:focus {
    color: rgba(var(--bs-emphasis-color-rgb), .85);
    background-color: var(--bs-tertiary-bg);
}

.btn-toggle::before {
    width: 1.25em;
    line-height: 0;
    content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%280,0,0,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
    transition: transform .35s ease;
    transform-origin: .5em 50%;
}

[data-bs-theme="dark"] .btn-toggle::before {
    content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%28255,255,255,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
}

.btn-toggle[aria-expanded="true"] {
    color: rgba(var(--bs-emphasis-color-rgb), .85);
}
.btn-toggle[aria-expanded="true"]::before {
    transform: rotate(90deg);
}

.btn-toggle-nav a {
    padding: .1875rem .5rem;
    margin-top: .125rem;
    margin-left: 1.25rem;
}
.btn-toggle-nav a:hover,
.btn-toggle-nav a:focus,
.btn-toggle-nav a.is-active {
    background-color: var(--bs-tertiary-bg);
}

.scrollarea {
    overflow-y: auto;
}

/* Help tooltip - start */

.help-tooltip {
    cursor: help;
    display: inline-block;
    height: 20px;
    line-height: 1;
    width: 20px;
}

.help-tooltip:hover svg [fill] {
    color: #eec22b;
}

/* Help tooltip - end */

.highlight {
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #cde6ff;
}

.call-script-info {
    background-color: #cde6ff;
    margin: 0 -1.5rem 1rem;
    padding: 15px;
}

.dropzone-container {
    border-radius: 10px;
}

a.link {
    color: #4f4f93;
}

a.link:hover {
    color: #31316a;
    text-decoration: underline !important;
}

.table-compact td,
.table-compact th {
    font-size: 0.75rem;
    padding: 0.3rem 0.7rem !important;
    line-height: 1.1;
    vertical-align: middle;
}
.table-compact th {
    padding: 0.5rem 0.7rem !important;
}

.table-compact .btn {
    padding: 0.15rem 0.5rem;
    font-size: 0.7rem;
}

.btn-compact {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    line-height: 1;
    border-radius: 0.25rem;
}

/* Audio Player Floating Panel */
.audio-player-floating {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.audio-player-floating-content {
    padding: 6px 12px;
    max-width: 600px;
    margin: 0 auto;
}

.audio-player-controls {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.audio-player-info {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 12px;
}

.audio-player-title {
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.audio-player-time {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 0.7rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.audio-player-progress {
    width: 100%;
}

.audio-player-seek {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}

.audio-player-seek::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.audio-player-seek::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.audio-player-buttons {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.audio-player-buttons .btn {
    min-width: 30px;
    height: 30px;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .audio-player-floating-content {
        padding: 5px 10px;
    }

    .audio-player-title {
        font-size: 0.7rem;
    }

    .audio-player-buttons .btn {
        min-width: 28px;
        height: 28px;
        padding: 3px;
    }
}

