/* Корпоративные цвета */
:root {
    --menu-bg: #262a2b;
    --menu-bg-start: #2c5740;
    --menu-bg-end: #2c5740;
    --menu-hover: #2c5740;
    --active-light: #2c5740;
    --menu-text: #e0e0e0;
    --menu-text-hover: #ffffff;
}

/* Сброс отступов и растягивание на всю высоту */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Убираем старые лишние правила для .main-content и .wrapper, если они конфликтуют */
.wrapper {
    flex: 1;
    display: flex;
    min-height: 0; /* позволяет дочерним элементам сжиматься */
    height: 100%;
}

/* Левое меню (десктоп) — теперь sticky и на всю высоту */
.sidebar {
    width: 250px;
    background-color: var(--menu-bg);
    color: var(--menu-text);
    padding-top: 20px;
    transition: all 0.3s;
    overflow-y: auto; /* если пунктов много, появится внутренний скролл */
    position: sticky; /* UPDATED: прилипает к верху */
    top: 0;
    height: 100vh; /* UPDATED: фиксированная высота на весь экран */
    flex-shrink: 0;
}

.sidebar a {
    color: var(--menu-text);
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    transition: 0.2s;
}

.sidebar a:hover {
    background-color: var(--menu-hover);
    color: var(--menu-text-hover);
}

.sidebar a i {
    margin-right: 10px;
}

.sidebar a.active {
    background-color: var(--active-light);
    color: #ffffff;
}

.sidebar a.active i {
    color: #ffffff;
}

/* Мобильная навигация */
.navbar.bg-primary {
    background-color: var(--menu-bg) !important;
}
.navbar .navbar-brand {
    color: var(--menu-text) !important;
}
.navbar .btn-outline-light {
    color: var(--menu-text);
    border-color: var(--menu-text);
}
.navbar .btn-outline-light:hover {
    background-color: var(--menu-text);
    color: var(--menu-bg);
}

/* Offcanvas меню (мобильное) */
.offcanvas.bg-dark {
    background-color: var(--menu-bg) !important;
}
.offcanvas .offcanvas-title {
    color: var(--menu-text);
}
.offcanvas .btn-close-white {
    filter: invert(1);
}

.offcanvas-body a {
    color: var(--menu-text);
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    transition: 0.2s;
}

.offcanvas-body a:hover {
    background-color: var(--menu-hover);
    color: var(--menu-text-hover);
}

.offcanvas-body a.active {
    background-color: var(--active-light);
    color: #ffffff;
}

.offcanvas-body a.active i {
    color: #ffffff;
}

/* Контейнер для контента и подвала — общее поведение */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Для страниц с боковым меню (profile, instructions и т.д.) */
.main-content.with-sidebar {
    height: 100vh; /* фиксированная высота */
    overflow-y: auto; /* прокрутка только внутри */
}

/* Основной контент */
.content {
    flex: 1;
    padding: 20px;
}

/* Для неавторизованных — полная ширина */
.full-width {
    width: 100%;
    padding: 20px;
}

/* Подвал */
footer {
    background-color: #f8f9fa;
    text-align: center;
    padding: 10px 0;
    flex-shrink: 0;
}

/* Карточки ключей (общие) */
.key-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    width: 100%;
}

.key-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}

/* Плитка для покупки ключа (общие стили) */
.key-tile {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 280px;
    height: 220px;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    background-color: #ffffff;
    color: #9e9e9e;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    margin: 0 auto;
}

.key-tile i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #b0b0b0;
}

.key-tile span {
    font-size: 16px;
    text-align: center;
    color: #6c757d;
}

.key-tile:hover {
    border-color: var(--active-light);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.key-tile:hover i {
    color: var(--active-light);
}

/* Центрирование плитки на странице без ключей */
.d-flex.justify-content-center .key-tile {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* Кнопка "Купить новый ключ" и другие первичные кнопки */
.btn-primary {
    background-color: var(--active-light);
    border-color: var(--active-light);
    color: #252a1a;
}
.btn-primary:hover {
    background-color: #c0d0a0;
    border-color: #c0d0a0;
    color: #252a1a;
}

/* Переопределение цвета аккордеона Bootstrap (страница инструкций) */
.accordion-button:not(.collapsed) {
    background-color: var(--active-light) !important;
    color: #ffffff !important;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(172, 183, 142, 0.25) !important;
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23252a1a'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

/* Стили для карточек тарифов (страница выбора тарифа) */
.tariff-card {
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
}

.tariff-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(37, 42, 26, 0.15);
    border-color: var(--active-light);
}

.tariff-icon {
    font-size: 2.2rem;
    color: var(--menu-bg);
    margin-bottom: 0.5rem;
}

.tariff-card .card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--menu-bg);
    margin-bottom: 0.75rem;
}

.price-container {
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.current-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--menu-bg);
}

.old-price {
    font-size: 0.9rem;
    color: #adb5bd;
    text-decoration: line-through;
    margin-right: 0.5rem;
}

.discount-badge {
    font-size: 0.8rem;
    background-color: #ffc107;
    color: #212529;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    display: inline-block;
    margin-top: 0.25rem;
    font-weight: 600;
}

.tariff-description {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1rem;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.tariff-card .btn {
    width: 100%;
    border-radius: 50px;
    padding: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    background: linear-gradient(135deg, var(--menu-bg) 0%, #3a4230 100%);
    color: white;
    transition: all 0.3s;
}

.tariff-card .btn:hover {
    background: linear-gradient(135deg, #3a4230 0%, var(--menu-bg) 100%);
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(37, 42, 26, 0.3);
}

.tariff-card.popular {
    border: 2px solid var(--active-light);
    background: linear-gradient(145deg, #ffffff, #f1f3e9);
    transform: scale(1.02);
    box-shadow: 0 12px 25px rgba(172, 183, 142, 0.2);
}

.tariff-card.popular::before {
    content: "🔥 Популярный";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--active-light);
    color: #ffffff; /* цвет надписи */
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 1rem;
    border-radius: 50px;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* ===== Стили из login.html ===== */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
}

.login-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.05);
    text-align: center;
    max-width: 450px;
    width: 100%;
    border: 1px solid rgba(255,255,255,0.2);
}

.login-icon {
    margin-bottom: 1.5rem;
    color: var(--active-light);
}

.login-title {
    font-size: 2rem;
    font-weight: 600;
    color: #1a2e1a;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

.login-message {
    color: #495057;
    margin-bottom: 2rem;
}

.btn-login {
    background: linear-gradient(135deg, #1a2e1a, #2b4a2b);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
    filter: brightness(1.05);
}

.btn-login i {
    font-size: 1.2rem;
}

.auth-link {
    margin-top: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
}

/* ===== Стили из profile.html ===== */
.profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 70vh;
    padding: 20px 0;
}

.profile-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 900px;
    border: 1px solid rgba(255,255,255,0.2);
}

.profile-header {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-icon {
    font-size: 3rem;
    color: var(--active-light);
    margin-bottom: 1rem;
}

.profile-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--menu-bg-start);
    margin-bottom: 0.5rem;
}

.profile-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
}

.profile-section-title {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--menu-bg-start);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(172, 183, 142, 0.3);
}

.profile-key-card {
    background: white;
    border-radius: 20px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 6px 12px rgba(0,0,0,0.03);
    transition: all 0.2s;
    border: 1px solid rgba(0,0,0,0.02);
}

.profile-key-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(37, 42, 26, 0.1);
}

/* Верхняя строка карточки: имя + статус */
.key-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.key-name-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.key-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--menu-bg-start);
    cursor: default;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.edit-icon {
    font-size: 0.9rem;
    color: #6c757d;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
}

.key-name-container:hover .edit-icon {
    opacity: 1;
}

.key-name-input {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
    font-size: 1rem;
    width: 100%;
    max-width: 200px;
}

.key-status {
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.key-status .badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}

/* Блок с ключом и кнопкой "Показать" */
.key-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.profile-key-value {
    display: block;
    width: 100%;
    background: #f5f5f5;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #333;
    word-break: break-all;
    font-family: 'Courier New', monospace;
}

.profile-key-value.blurred-key {
    filter: blur(4px);
    transition: filter 0.2s ease;
    cursor: default;
}

.show-key-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 5px 15px;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.2s ease;
    z-index: 2;
    pointer-events: auto;
}

.show-key-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.profile-key-value.blurred-key.unblurred {
    filter: blur(0);
}

.profile-key-value.blurred-key.unblurred + .show-key-btn {
    opacity: 0;
    pointer-events: none;
}

/* Нижняя панель карточки */
.key-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.key-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-btn-copy {
    background: #e9ecef;
    color: #495057;
    border: none;
    border-radius: 30px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    transition: 0.2s;
    cursor: pointer;
    white-space: nowrap;
}

.profile-btn-copy:hover {
    background: #dee2e6;
    color: #212529;
}

.profile-btn-renew {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    background: transparent;
    border: 1px solid #28a745;
    color: #28a745;
    border-radius: 30px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    transition: 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.profile-btn-renew:hover {
    background: #28a745;
    color: white;
}

/* Плитка покупки в профиле */
.profile-purchase-tile {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 280px;
    height: 220px;
    border: 2px dashed #cbd5e0;
    border-radius: 30px;
    background: rgba(255,255,255,0.8);
    color: #718096;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(0,0,0,0.02);
    margin: 0 auto;
}

.profile-purchase-tile i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #a0aec0;
}

.profile-purchase-tile span {
    font-size: 1rem;
    color: #4a5568;
}

.profile-purchase-tile:hover {
    border-color: var(--active-light);
    background: #fafdf6;
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(172, 183, 142, 0.15);
}

.profile-purchase-tile:hover i {
    color: var(--active-light);
}

/* Пустое состояние */
.profile-empty-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    max-width: 500px;
    margin: 0 auto;
    border: 1px solid rgba(255,255,255,0.2);
}

.profile-empty-icon {
    font-size: 4rem;
    color: var(--active-light);
    margin-bottom: 1.5rem;
}

.profile-empty-title {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--menu-bg-start);
    margin-bottom: 1rem;
}

.profile-empty-text {
    color: #6c757d;
    margin-bottom: 2rem;
}

.profile-btn-primary {
    background: linear-gradient(135deg, #1a2e1a, #2b4a2b);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    text-decoration: none;
    display: inline-block;
}

.profile-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
    filter: brightness(1.05);
}

.profile-btn-primary i {
    margin-right: 0.5rem;
}

.btn-disabled {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 15px;
    border-radius: 8px;
    background-color: #aaa;
    color: #fff;
    font-weight: bold;
    text-align: center;
    cursor: not-allowed;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-disabled:hover {
    background-color: #999; 
}

/* Адаптация для мобильных — сбрасываем фиксированное поведение */
@media (max-width: 767px) {
    .wrapper {
        flex-direction: column;
        height: auto; /* UPDATED: сброс высоты */
    }

    .sidebar {
        position: static; /* UPDATED: отключаем sticky */
        height: auto; /* UPDATED: сброс высоты */
        width: 100%;
        overflow-y: visible; /* UPDATED: возвращаем обычное поведение */
    }

    .main-content {
        height: auto; /* UPDATED: сброс высоты */
        overflow-y: visible; /* UPDATED: отключаем независимый скролл */
        min-height: auto;
    }

    .key-header {
        flex-wrap: wrap;
    }
    .key-name-container {
        width: 100%;
        margin-bottom: 0.25rem;
    }
    .key-name {
        max-width: 100%;
    }
    .key-actions {
        flex-wrap: wrap;
    }
}

/* Стили для раскрывающегося меню "Юридическая информация" */
.sidebar-section .dropdown-toggle {
    cursor: pointer;
    color: var(--menu-text);
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    transition: background-color 0.2s;
}

.sidebar-section .dropdown-toggle:hover {
    background-color: var(--menu-hover);
    color: var(--menu-text-hover);
}

.sidebar-section .dropdown-toggle i {
    margin-right: 10px;
}

.sidebar-section .collapse a {
    padding: 10px 15px; 
    display: block;
    color: var(--menu-text);
    text-decoration: none;
    transition: background-color 0.2s;
    font-size: 0.95rem;
}

.sidebar-section .collapse a:hover {
    background-color: var(--menu-hover);
    color: var(--menu-text-hover);
}

.sidebar-section .collapse a i {
    margin-right: 8px;
}

/* Класс для кнопки "Назад" на странице приложений (стандартный Bootstrap) */
.btn-apps-back {
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    border-radius: 0.25rem;
    border: 1px solid #6c757d;
    color: #6c757d;
    background: transparent;
}
.btn-apps-back:hover {
    background: #6c757d;
    color: #fff;
}

#temp-key-display {
    max-height: 300px;        /* Ограничиваем высоту */
    overflow-y: auto;          /* Включаем внутреннюю прокрутку */
    padding-right: 10px;       /* Немного отступа для скролла */
}

#temp-key-display code {
    word-break: break-all;     /* Перенос длинных ссылок */
    white-space: pre-wrap;     /* Сохраняем пробелы и переносим */
}

/* ===== Улучшения для страницы входа (компактный вид) ===== */

/* Убираем min-height и центрирование по вертикали */
.login-container {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* прижимаем карточку к верху */
    flex: 1;
    padding: 20px 0; /* небольшие отступы сверху и снизу */
}

.login-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 2rem 1.5rem; /* уменьшенные отступы */
    box-shadow: 0 20px 40px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.05);
    text-align: center;
    max-width: 450px;
    width: 100%;
    border: 1px solid rgba(255,255,255,0.2);
    margin: 0 auto; /* центрирование по горизонтали */
}

/* Уменьшаем отступы внутри карточки */
.login-icon {
    margin-bottom: 1rem;
}

.login-title {
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
}

.login-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.login-message {
    margin-bottom: 1.5rem;
}

.btn-login {
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
    max-width: 240px;
    margin: 0 auto;
}

.auth-link {
    margin-top: 1.5rem;
    padding: 0.75rem;
}

/* Делаем аккордеон компактнее */
#tempAccessAccordion {
    margin-top: 0.5rem;
}

.accordion-button {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.accordion-body {
    padding: 1rem;
}

/* Ограничиваем максимальную высоту блока с ключом и добавляем внутренний скролл */
#temp-key-display {
    max-height: 250px;
    overflow-y: auto;
    padding-right: 10px;
}

#temp-key-display code {
    word-break: break-all;
    white-space: pre-wrap;
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .login-card {
        padding: 1.5rem;
    }

    .login-title {
        font-size: 1.6rem;
    }

    .btn-login {
        max-width: 100%;
        padding: 0.5rem 1rem;
    }

    #temp-key-display {
        max-height: 200px;
    }

    .accordion-button {
        font-size: 0.9rem;
        padding: 0.6rem;
    }

    .accordion-body {
        padding: 0.75rem;
    }

    #temp-key-display code {
        font-size: 0.8rem;
    }
}

/* Футер по умолчанию (без меню) */
footer {
    background-color: #f8f9fa;
    text-align: center;
    padding: 10px 0;
    width: 100%;
}

/* Футер на страницах с боковым меню */
footer.with-sidebar {
    margin-left: 250px;
    width: calc(100% - 250px);
}

/* На мобильных отключаем отступ */
@media (max-width: 767px) {
    footer.with-sidebar {
        margin-left: 0;
        width: 100%;
    }
}

/* Стили для страницы входа (в конец файла) */
.temp-key-code {
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    word-break: break-all;
    display: inline-block;
    width: 100%;
    border-right: none;
}

.timer-badge {
    background-color: #ffc107;
    color: #212529;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.info-text {
    font-size: 0.9rem;
    color: #6c757d;
}

.btn-copy {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.accordion-item.border-0 {
    border: none;
}

.accordion-button.bg-light {
    background-color: #f8f9fa;
    color: #212529;
}

.accordion-button.bg-light:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,0.125);
}

/* Отступ для стрелки аккордеона временного доступа */
#tempAccessAccordion .accordion-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#tempAccessAccordion .accordion-button .button-text {
    flex: 1; /* занимает всё доступное место */
    margin-right: 1rem; /* отступ между текстом и стрелкой */
    text-align: left;
}