/* =========================
   Базовые стили v2 08-02-2025
   ========================= */


html, body {
    margin: 0;
    padding: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    font-weight: 100;
    background: #f2f2f2;
    color: #333;
}

body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;

}

h1, h2, h3 {
    font-weight: 200;
    margin-top: 1.2rem;
    margin-bottom: 1rem;
    color: #333;
}

p {
    line-height: 1.6;
    font-weight: 100;
}



/* =========================
   Ссылки и кнопки
   ========================= */

a {
    color: #007acc;
    text-decoration: none;
    font-weight: 200;
}

a:hover {
    text-decoration: underline;
}

button, input[type="submit"], input[type="button"] {
    background: #007acc;
    border: none;
    padding: 0.6em 1.2em;
    color: #fff;
    font-size: 1rem;
    font-weight: 300;
    cursor: pointer;
    margin-top: 0.5rem;
    border-radius: 3px;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background: #005fa3;
}

/* =========================
   Таблицы
   ========================= */

table {
    border-collapse: collapse;
    width: 100%;
    margin: 1.5rem 0;
    background: #fff;
}

table thead {
    background: #e9e9e9;
}

table th, table td {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    text-align: left;
    font-weight: 300;
}


/* =========================
   Формы
   ========================= */

form {
    background: #fff;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid #ddd;
    border-radius: 3px;
}

label {
    display: block;
    margin-top: 1rem;
    font-weight: 200;
}

input[type="number"],
select {
    width: 200px;
    padding: 0.5em;
    margin-top: 0.3rem;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
}

input[type="text"] {
    padding: 0.5em;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
}

/* =========================
   Прочее
   ========================= */

hr {
    margin: 2rem 0;
    border: none;
    border-top: 1px solid #ccc;
}

.container {
    background: #fff;
    padding: 1rem;
    border-radius: 3px;
    margin-bottom: 1rem;
}

.notice {
    background: #ffe8e8;
    border: 1px solid #ffb3b3;
    color: #990000;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 3px;
}

.pagination {
    display: flex;
    justify-content: center; /* Центрирование по горизонтали */
    margin: 20px 0; /* Отступы сверху и снизу */
    font-size: 14px; /* Размер шрифта для текста */
    gap: 10px; /* Расстояние между элементами */
}

.pagination a {
    text-decoration: none; /* Убираем подчеркивание */
    color: #007BFF; /* Цвет ссылок */
    padding: 5px 10px; /* Отступы внутри ссылок */

    border-radius: 4px; /* Скругление углов */
}

.pagination a:hover {
    background-color: #f0f0f0; /* Цвет фона при наведении */
    border-color: #ccc; /* Цвет границы при наведении */
}

.pagination a[style="font-weight: bold;"] {
    background-color: #007BFF; /* Фон активной ссылки */
    color: #fff; /* Цвет текста активной ссылки */
    border-color: #007BFF; /* Цвет границы активной ссылки */
}




.top-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3px 10px;
}

.logo img {
    height: 40px;
}

.menu ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.menu ul li a {
    text-decoration: none;
    color: #0b0a0a;
    font-size: 16px;
    padding: 5px 10px;
    transition: background-color 0.3s, color 0.3s;
}

.menu ul li a:hover {
    background-color: #8ca4ff;
    border-radius: 5px;
}







.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
}













/* =========================
   Dashboard shell (GEONOR UI)
   ========================= */

.i_card-dashboard {
    display: flex;
    gap: 0;
    padding: 0;
    max-width: 980px;
    margin: 40px auto;

    background: #ffffff;
    border: 1px solid #e5e5ea;
    border-radius: 16px;

    overflow: hidden; /* важно: чтобы меню/контент резались по радиусу */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1d1d1f;
}

/* =========================
   Left menu
   ========================= */

.i_card-menu {
    flex: 0 0 260px;  /* фиксированная ширина, выглядит стабильнее */
    background: #fff;
    border-right: 1px solid #e5e5ea;
    padding: 10px 0;
}

.i_card-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.i_card-menu ul li {
    border-bottom: 1px solid #f2f2f7;
}

.i_card-menu ul li:last-child {
    border-bottom: none;
}

.i_card-menu ul li a {
    position: relative;
    display: block;

    padding: 12px 16px 12px 18px;
    text-decoration: none;

    color: #1d1d1f;
    font-size: 14px;
    line-height: 1.35;
    letter-spacing: -0.1px;
    font-weight: 200;

    transition: background-color 0.15s ease, transform 0.15s ease;
}

.i_card-menu ul li a:hover {
    background: #f5f5f7;
}

/* Active item: clean + strong */
.i_card-menu ul li a.active {
    background: #f5f5f7;
    font-weight: 600;
}

/* Active indicator bar */
.i_card-menu ul li a.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 3px;
    background: #1d1d1f;
}

/* Keyboard focus (neat, in-style) */
.i_card-menu ul li a:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 2px #d1d1d6;
    border-radius: 10px;
    margin: 4px 10px;
    padding: 10px 12px; /* compensate for margin */
}

/* =========================
   Right content
   ========================= */

.i_card-content {
    flex: 1;
    background: #f5f5f7;
    padding: 18px;
}

/* Optional: inner "sheet" look for content */
.i_card-content .content-surface {
    background: #fff;
    border: 1px solid #e5e5ea;
    border-radius: 14px;
    padding: 18px;
}

/* Tabs content blocks */
.i_card-content .content-block {
    display: none;
}

.i_card-content .content-block.active {
    display: block;
}

/* =========================
   Buttons (in-style)
   ========================= */

.i_card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-top: 16px;
    padding: 10px 14px;

    background: #1d1d1f;
    color: #fff;
    text-decoration: none;

    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.1px;

    transition: transform 0.15s ease, opacity 0.15s ease;
}

.i_card-button:hover {
    transform: translateY(-1px);
    opacity: 0.92;
}

/* =========================
   Tables helpers
   ========================= */

.no-borders {
    border-collapse: collapse;
}

.no-borders tr,
.no-borders td,
.no-borders th {
    border: none;
}















/* product-form syle */

.product_form-container {
    display: flex;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 1200px;
    margin: 20px auto;
    border: none;
}
.product_form-form_section {
    flex: 1;
    padding: 20px;
}
.product_form-form_section form {
    display: flex;
    flex-direction: column;
    gap: 5px;
    border: none;
}
.product_form-form_section label {
    font-weight: 200;
    margin: 1px;
}
.product_form-form_section input,
.product_form-form_section select,
.product_form-form_section button {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}
.product_form-form_section button {
    background-color: #007bff;
    color: white;
    cursor: pointer;
}
.product_form-form_section button:hover {
    background-color: #0056b3;
}
.product_form-image_section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product_form-image_section img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}





/* Общие стили для страницы логина */
.login_title {
    font-size: 24px;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

.login_form {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.login_label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}

.login_input {
    width: 95%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
}

.login_input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.login_button {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login_button:hover {
    background-color: #0056b3;
}



.user-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.user-table th, .user-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.user-table th {
    background-color: #f4f4f4;
}

.edit-btn, .delete-btn, .add-user-btn {
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 14px;
}

.edit-btn {
    background-color: #007bff;
    color: #fff;
}

.delete-btn {
    background-color: #dc3545;
    color: #fff;
}

.add-user-btn {
    display: inline-block;
    margin-top: 10px;
    background-color: #28a745;
    color: #fff;
}


.master_stock_summary {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;

}

.master_stock_item {
    text-align: center;
    flex: 1;
}

.master_stock_value {
    font-size: 28px;
    font-weight: 300;
    color: #333;
    margin: 0;
}

.master_stock_label {
    font-size: 12px;
    color: #666;
    margin: 5px 0 0;
}



/* Шапка профиля */
.profile_header {
    display: flex; /* Горизонтальное расположение элементов */
    align-items: center; /* Выравнивание по вертикали */
    text-align: left; /* Выравнивание текста по левому краю */
    gap: 15px; /* Расстояние между аватаром и текстом */
    margin-bottom: 20px;
}

/* Аватар (круг) */
.profile_avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%; /* Круглая форма */
    background-color: #007bff; /* Синий цвет фона */
    color: #fff; /* Белый цвет текста */
    display: flex; /* Центрируем текст в круге */
    align-items: center; /* Центрирование по вертикали */
    justify-content: center; /* Центрирование по горизонтали */
    font-size: 1.5em; /* Размер текста внутри круга */
    font-weight: 300;
}

/* Имя и логин рядом с аватаром */
.profile_details {
    display: flex;
    flex-direction: column; /* Расположение текста в столбик */
    justify-content: center; /* Центрирование текста относительно аватара */
}

.profile_full-name {
    margin: 0;
    font-size: 2em;
    font-weight: 300;
    color: #333;
}

.profile_username {
    margin: 5px 0 0 0; /* Отступ сверху */
    font-size: 1em;
    font-weight: 400;
    color: #777;
}

/* Контейнер всей карточки */
.profile_card {
    max-width: 700px;
    margin: 50px auto;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}


/* Основной контейнер */
.production_layout {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Таблица и график по 50% ширины */
    gap: 20px; /* Расстояние между колонками */
}

.production_table-container {
    overflow-x: auto; /* Горизонтальная прокрутка для таблицы */
}

/* Компактная таблица */
.production_table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.6em; /* Уменьшаем размер шрифта */
  }

.production_table th, .production_table td {
    padding: 8px; /* Уменьшаем отступы */
    text-align: left;
    border: none;

}





/* Контейнер для графика */
.production_chart-container {

    padding: 20px;
    height: 400px; /* Фиксированная высота графика */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.production_chart-placeholder {
    color: #666;
    font-size: 1.2em;
}

/* Контейнер для списка внизу */
.production_additional-list {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
}


.row-transparent {
    opacity: 0.1; /* Прозрачность строки */
    transition: opacity 0.3s ease; /* Плавное изменение */
}

.row-transparent:hover {
    opacity: 1; /* Полная видимость при наведении */
}


.row-complete-blur {
    opacity: 0.4; /* Полупрозрачность */
    filter: blur(0.5px); /* Размытие */
  /*  pointer-events: none; /* Отключить взаимодействие */
    transition: all 0.3s ease; /* Плавное изменение */
}

.row-complete-blur:hover {
    opacity: 0.8; /* Слегка увеличиваем видимость при наведении */
    filter: blur(1px); /* Уменьшаем размытие */
}



/* Контейнер для блоков статистики */
.production-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Ровно 2 блока в ряд */
    gap: 10px; /* Отступы между блоками */
    padding: 10px;

}

/* Каждый блок статистики */
.production-stat {
    text-align: center;
    padding: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Значение статистики */
.stat-value {
    font-size: 24px;
    font-weight: 300;
    color: #333;
}

/* Подпись для статистики */
.stat-label {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* Эффект при наведении */
.production-stat:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

/* Базовый слой "подложки" */
.modal {
    position: fixed;         /* Фиксируем, чтобы оставалось на экране при скролле */
    z-index: 9999;           /* Поверх всех остальных элементов */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;          /* Прокрутка, если контента много */
    background-color: rgba(0, 0, 0, 0.4); /* Тёмная подложка с прозрачностью */
    display: none;           /* По умолчанию скрыто */
}

/* Контейнер самой «карточки» модального окна */
.modal-content {
    background-color: #fefefe;
    margin: 10% auto;        /* Немного отступить сверху и центрировать по горизонтали */
    padding: 20px;
    border: 1px solid #888;
    width: 400px;            /* Можно настроить ширину на ваш вкус */
    position: relative;      /* Может пригодиться для позиционирования вложенных элементов */
    border-radius: 4px;
}

/* Крестик/кнопка закрытия */
.modal .close {
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    margin-right: 5px;
}

/* Можно добавить hover-эффект для крестика */
.modal .close:hover {
    color: #f00;
}


/* Контейнер для кнопок */
.change_pos-container {
    text-align: center; /* Центрирование содержимого ячейки */
}

/* Обертка для кнопок */
.change_pos-buttons {
    display: flex;
    flex-direction: column; /* Кнопки располагаются по вертикали */
    align-items: center; /* Центрирование кнопок */
    gap: 5px; /* Отступы между кнопками */
}

/* Стили для форм */
.change_pos-form {
    margin: 0; /* Убирает внешние отступы у формы */
    padding: 0; /* Убирает внутренние отступы у формы */
    border: none;
    background: none;
    color: #0000CC;
}

/* Стили для кнопок */
.change_pos-button {
    border: none; /* Убирает рамку */
    background: none; /* Убирает фон */
    padding: 0; /* Убирает внутренние отступы */
    font-size: 14px; /* Размер текста для стрелок */
    cursor: pointer; /* Курсор-указатель при наведении */
    line-height: 1; /* Уменьшение высоты строки */
    text-align: center; /* Центрирование текста */
    color: #3478C6;
    margin: 0;
}



.change_pos-button:hover {
    color: white; /* Цвет стрелок при наведении */
}


.custom-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 400;
    color: #fff;
    background-color: #0d6efd; /* Красный */
    border-radius: 10px;
    margin-left: 10px;
    text-align: center;
    white-space: nowrap; /* Чтобы текст не переносился */
}

/* Убираем белый фон при наведении */
.i_card-menu a:hover .custom-badge {
    background-color: #0d6efd; /* Темнее красный при наведении */
}


.custom-badge-danger {
    background-color: #dc3545; /* Красный */
}

.custom-badge-primary {
    background-color: #0d6efd; /* Синий */
}









.order_tabs {
    display: flex;
    background-color: #f3f3f3;
    border-bottom: 1px solid #ccc;
}

.order_tab {
    padding: 5px 10px;
    cursor: pointer;
    background-color: #f3f3f3;
    border: 1px solid #ccc;
    border-bottom: none;
    margin-right: 5px;
    font-size: 13px;
}

.order_tab.active {
    background-color: #fff;
    border-top: 3px solid #007BFF;
}

.order_tab_content {
    padding: 20px;
    border: 1px solid #ccc;
    display: none;
}

.order_tab_content.active {
    display: block;
}

.order_table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.order_table th,
.order_table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
}

.order_table th {
    background-color: #f3f3f3;
}



/* Можно добавить свои иконки через content (или использовать FontAwesome/SVG) */
/*
.toast.success .toast-icon::before {
    content: "✓";
}
.toast.error .toast-icon::before {
    content: "✕";
}
.toast.missed .toast-icon::before {
    content: "!";
}
 */

/* Ключевые кадры анимации (имитирует плавный «въезд» справа и уход обратно) */
@keyframes macosFadeInOut {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }
    10%, 90% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(100%);
    }
}



.action-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    width: 300px;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.action-bar a {
    text-decoration: none;
    color: #555;
    font-size: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.action-bar a:hover {
    color: #000;
}
.action-bar a span {
    font-size: 12px;
    margin-top: 5px;
}
.icon {
    width: 24px;
    height: 24px;
}






.disabled-tab {
    position: relative; /* Для позиционирования иконки */
    pointer-events: none; /* Отключает взаимодействие */
    opacity: 0.5; /* Делаем вкладку тусклой */
}

.disabled-tab::after {
    content: ""; /* Псевдоэлемент для иконки */
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: url('/img/lock.png') no-repeat center center; /* Указываем путь к иконке */
    background-size: contain;
    transform: translate(-50%, -50%); /* Центрирование */
    opacity: 0.7; /* Полупрозрачность */
    pointer-events: none; /* Отключаем клики по иконке */
}


.progress-container {
    width: 100%;
    background-color: #eee;
    border-radius: 4px;
    overflow: hidden;
    height: 10px;
    position: relative;
    margin-top: 5px;
}

.progress-bar {
    height: 100%;
    background-color: #4a83ba;
    text-align: center;
    color: white;
    font-size: 10px;
    line-height: 10px;
    transition: width 0.5s ease-in-out;
}


/* Общий контейнер списка */
.resale-product-list {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    color: #333;
    font-size: 16px;

    max-width: 100%;
    margin: 1rem auto;
    padding: 0;
}

.empty-list-msg {
    font-size: 0.9rem;
    color: #999;
}

/* Каждый пункт (label) тянется на всю ширину */
.radio-item {
    display: block;
    width: 100%;
    margin-bottom: 0.5rem;
    cursor: pointer;
    user-select: none;  /* текст не выделяется при клике */
}

/* Скрываем стандартный кружок */
.radio-item input[type="radio"] {
    display: none;
}

/* Внешний прямоугольник */
.label-box {
    display: flex;             /* Включаем flex, чтобы иконка и текст были в одной строке */
    align-items: center;       /* Центрируем вертикально */
    width: 100%;
    box-sizing: border-box;

    border: 1px solid #ccc;
    border-radius: 8px;        /* Лёгкое скругление */
    padding: 0.75rem 1rem;

    transition: border-color 0.2s, color 0.2s;
}

/* При наведении слегка темнеем рамку */
.radio-item:hover .label-box {
    border-color: #999;
}

/* При выборе радио - делаем синюю рамку и текст */
.radio-item input[type="radio"]:checked + .label-box {
    border-color: #007aff;
    color: #007aff;
}

/* Обёртка для иконки */
.icon-wrap {
    margin-right: 0.75rem;
    flex-shrink: 0;       /* Чтобы иконка не сжималась при узком экране */
}

/* Сама иконка (можно подогнать под нужные размеры) */
.product-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
    display: block;
}

/* Контейнер для основного текста */
.content-wrap {
    display: flex;
    flex-direction: column;  /* Название сверху, тип снизу */
    justify-content: center; /* Вертикально центрируем, если нужно */
}

/* Название товара и плотность */
.label-text {
    line-height: 1.4;
}

/* Плотность – чуть меньший размер */
.density {

    font-size: 0.9em;
    border-radius: 4px;
    margin: 4px;
    color: black;
    padding: 2px;
    font-weight: 400;
    background: #dfdfdf;

}

/* Тип продукта — более мелко и чуть приглушённый цвет */
.type-text {
    color: #666;
    font-size: 0.8rem;
    margin-top: 0.25rem; /* Небольшой отступ сверху, чтобы отделить от главного текста */
}



.table-act-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    background-color: transparent;
}

.table-act-btn img {
    display: inline-block;
    vertical-align: middle;
    pointer-events: none;
}

.table-act-btn:hover {
    background-color: transparent;  /* Убираем фон при наведении */
}

.table-act-btn:hover img {
    transform: scale(2.2);          /* Увеличение в 2 раза */
    transition: transform 0.2s;   /* Плавная анимация (по желанию) */
    transform-origin: center;
    background: transparent;
}


.call_admin_manager_row {
    cursor: pointer; /* Курсор изменяется на указатель */
    transition: background-color 0.2s ease-in-out;
}

.call_admin_manager_row:hover {
    background-color: #f2f2f2; /* Светло-серый при наведении */
}

.call_admin_manager_row.active {
    background-color: #d1e7fd !important; /* Голубой фон у активного менеджера */
    font-weight: bold; /* Можно добавить жирный шрифт для выделения */
}


.calculator-button {
    transition: transform 0.3s ease;
    padding: 0;
}

.calculator-button:hover {
    transform: scale(1.3);
}


.apple-style-block {
    background-color: #f5f5f7;
    border-radius: 3px;
    padding: 12px;
    font-size: 11px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
}
.apple-style-block p {
    margin: 3px 0;
}

.user-info .avatar-hover {
    transition: transform 0.3s ease;
}

.user-info .avatar-hover:hover {
    transform: scale(2);
    z-index: 10;
}


.avatar-wrapper {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.avatar-fallback {
    width: 100%;
    height: 100%;
    background-color: #666;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-family: sans-serif;
}


.avatar-hover {
    transition: transform 0.2s ease-in-out;
    cursor: pointer;
}

.avatar-hover:hover {
    transform: scale(1.5);
}




.table-overlay {
    display: none; /* По умолчанию скрыт */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 999; /* Выше самой таблицы */
    text-align: center;
}


.table-overlay-content {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    display: inline-block;
    background: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}




/* Переключатель в стиле Apple */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Ползунок */
.slider {
    position: absolute;

    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 34px;
}

/* Кружок внутри */
.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    top: 3px; /* было bottom: 3px */
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

/* Если включено */
.switch input:checked + .slider {
    background-color: #0d6efd; /* зелёный как у iOS */
}

.switch input:checked + .slider:before {
    transform: translateX(18px);
}


