/* ------------------------------------------------------------
   Обновленные стили портала
   @author Alexander Larin
------------------------------------------------------------ */

/* -------------------- Well -------------------- */
.well {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 12px 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    margin-bottom: 15px;
}

.well-small {
    padding: 8px 12px;
    border-radius: 6px;
}

/* -------------------- Таблицы  -------------------- */
.table th,
.table td {
    padding: 6px 10px;
}

@media (max-width: 767px) {
    .well {
        padding: 10px 12px;
    }

    .table th,
    .table td {
        padding: 5px 8px;
    }
}

.table-condensed th,
.table-condensed td {
    padding: 4px 5px;
}

/* Сжатая таблица — для десктопа, когда не влезает */
@media (min-width: 769px) {
    .table-compressed th,
    .table-compressed td {
        padding: 4px 3px !important;
    }

    .table-compressed .action-button-icon {
        min-width: 20px !important;
        min-height: 20px !important;
        width: 20px !important;
        height: 20px !important;
        margin: 1px 0 !important;
    }

    .table-compressed .action-button-text {
        padding: 0 4px !important;
        min-width: auto !important;
        width: auto !important;
        min-height: 20px !important;
    }
}


/* Переопределяем радиус скругления для таблиц с рамками */
.table-bordered {
    border-radius: 8px;
}

/* Верхний левый угол */
.table-bordered thead:first-child tr:first-child > th:first-child,
.table-bordered tbody:first-child tr:first-child > td:first-child,
.table-bordered tbody:first-child tr:first-child > th:first-child {
    border-top-left-radius: 8px;
}

/* Верхний правый угол */
.table-bordered thead:first-child tr:first-child > th:last-child,
.table-bordered tbody:first-child tr:first-child > td:last-child,
.table-bordered tbody:first-child tr:first-child > th:last-child {
    border-top-right-radius: 8px;
}

/* Нижний левый угол */
.table-bordered tbody:last-child tr:last-child > td:first-child,
.table-bordered tbody:last-child tr:last-child > th:first-child,
.table-bordered tfoot:last-child tr:last-child > td:first-child,
.table-bordered tfoot:last-child tr:last-child > th:first-child {
    border-bottom-left-radius: 8px;
}

/* Нижний правый угол */
.table-bordered tbody:last-child tr:last-child > td:last-child,
.table-bordered tbody:last-child tr:last-child > th:last-child,
.table-bordered tfoot:last-child tr:last-child > td:last-child,
.table-bordered tfoot:last-child tr:last-child > th:last-child {
    border-bottom-right-radius: 8px;
}

/* Если внутри таблицы есть вложенные таблицы — убираем у них скругление */
.table-bordered table {
    border-radius: 0;
}

.table th {
    font-weight: 600;
    font-size: 13px;
    border-bottom-width: 1px;
    border-bottom-color: rgba(0, 0, 0, 0.12);
}

.table tbody tr:hover td {
    transition: 0.1s;
}

/* Обычные строки — затемнение через фоновый цвет */
.table tbody tr:not([class*="success"]):not([class*="info"]):not([class*="warning"]):not([class*="danger"]):not([class*="error"]):not([style*="background"]):hover td {
    background-color: rgba(0, 0, 0, 0.07);
}

/* Затемнённые цвета для строк таблицы при наведении */
/* Затемнение 7% */
.table tbody tr.success:hover td {
    background-color: #d2e9c5;
}

.table tbody tr.info:hover td {
    background-color: #cde5f2;
}

.table tbody tr.warning:hover td {
    background-color: #f0edcf;
}

.table tbody tr.danger:hover td,
.table tbody tr.error:hover td {
    background-color: #e6d0d0;
}

/* Для строк с инлайновым background */
.table tbody tr[style*="background"]:hover {
    filter: brightness(0.95);
}

/* -------------------- Альерты -------------------- */
.alert {
    padding: 10px 35px 10px 16px;
    border-radius: 8px;
    border-left-width: 3px;
    border-left-style: solid;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

/* -------------------- МОБИЛЬНОЕ МЕНЮ (accordion, phone-version) -------------------- */
.accordion-menu-phone {
    border-radius: 8px;
    overflow: hidden;
    padding-right: 10px !important;
    padding-left: 10px !important;
}

.phone-menu-header {
    font-weight: 600;
    padding: 7px 15px !important;
    background: rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    margin-top: 8px;
    letter-spacing: 0.3px;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.04);
}

.phone-menu-header:first-child {
    margin-top: 0;
}

.accordion-group {
    border-radius: 8px;
}

.accordion-heading.phone-menu .accordion-toggle {
    display: block;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 6px;
}

.accordion-heading.phone-menu .accordion-toggle table {
    width: 100%;
}

.accordion-heading.phone-menu .accordion-toggle .arrowAccordion {
    transition: transform 0.2s ease;
}

/* Плавная смена иконок */
.arrowAccordion {
    transition: opacity 0.15s ease, transform 0.15s ease;
}

/* Внутренности аккордеона */
.accordion-body.collapse {
    transition: height 0.25s ease;
}

.main-menu-phone .accordion-inner {
    padding: 4px 0;
    border-radius: 0 0 8px 8px;
}

/* Разделители внутри аккордеона */
.accordion-inner hr {
    margin: 5px 0;
    border-color: rgba(0, 0, 0, 0.06);
    border-width: 1px;
}

/* Отдельные элементы меню (one-element-menu) */
.one-element-menu a {
    display: block;
    padding: 2px;
    transition: padding 0.4s ease;
}

.one-element-menu a:hover {
    padding-left: 16px;
}

.phone-menu a {
    display: block;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
}

/* Для заголовков аккордеона */
.accordion-heading.phone-menu .accordion-toggle {
    border: 1px solid transparent;
    border-radius: 6px;
    margin: 0;
}

.accordion-heading.phone-menu .accordion-toggle:hover {
    border-color: rgba(0, 0, 0, 0.2);
    padding-left: 14px;
}

/* Внутренность аккордеона */
.accordion-inner .phone-menu a {
    padding: 4px 12px;
}

/* -------------------- ДЕСКТОПНОЕ МЕНЮ (nav-list, dropdown-submenu) -------------------- */
.nav-list {
    border-radius: 8px;
}

.nav-list .nav-header {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.03);
}

.nav-list .nav-header:first-of-type {
    margin-top: 0;
}

/* Обычные пункты меню */
.nav-list > li > a {
    display: block;
    padding: 6px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: padding 0.4s ease;
}

.nav-list > li > a:hover {
    padding-left: 16px;
    padding-right: 8px;
    text-decoration: none;
}

/* Dropdown-submenu стилизация */

.dropdown-submenu > a {
    display: block;
    padding: 6px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.15s ease;
    cursor: pointer;
}

.dropdown-submenu > a:after {
    font-size: 16px;
    transition: transform 0.5s ease;
    margin-right: -6px !important;
}

.dropdown-submenu > a:hover:after {
    transform: translateX(2px);
}

.dropdown-submenu > a:hover {
    background-color: rgba(0, 0, 0, 0.03);
    padding-left: 16px;
    padding-right: 8px;
}

/* Выпадающее меню */
.dropdown-submenu .dropdown-menu {
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 220px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: 1001;
}
.dropdown-menu li a {
    display: block;
    padding: 5px 12px;
    transition: padding 0.3s ease;
}

.dropdown-menu li a:hover {
    padding-left: 16px;
    padding-right: 8px;
}

/* Инпуты */
input, textarea, select, .uneditable-input {
    padding: 5px 8px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    transition: 0.15s linear;
}

input:focus, textarea:focus, select:focus {
    border-color: rgba(0, 0, 0, 0.3);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.04);
}

/* Чекбоксы — кастомные со скруглением */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    border-radius: 5px;
    cursor: pointer;
    vertical-align: text-bottom;
    position: relative;
    top: -1px;
    transition: all 0.15s ease;
}

input[type="checkbox"]:checked {
    background-color: #0066cc;
    border-color: #0066cc;
}

input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 3px;
    height: 7px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

input[type="checkbox"]:hover {
    transform: scale(1.05);
}

.checkbox input[type="checkbox"] {
    vertical-align: middle;
    margin-top: -1px;
}

.radio input[type="radio"],
.checkbox input[type="checkbox"] {
    margin-left: -18px;
}

/* Выравнивание label с чекбоксом */
label.checkbox {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.checkbox {
    margin-top: 4px;
}

/* Пагинация */
.pagination ul {
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.pagination ul > li > a,
.pagination ul > li > span {
    padding: 5px 12px;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.pagination ul > li > a:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

/* Вкладки */
.nav-tabs {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-tabs > li > a {
    padding: 8px 13px;
    border-radius: 6px 6px 0 0;
    transition: all 0.15s;
}

.nav-tabs > li > a:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Прогресс-бар */
.progress {
    border-radius: 30px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.progress .bar {
    border-radius: 30px;
    transition: width 0.2s;
}

/* Thumbnails */
.thumbnail {
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 10px;
    transition: all 0.2s;
}

.thumbnail:hover {
    border-color: rgba(0, 0, 0, 0.18);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.thumbnail:hover:not(:has(.modal)) {
    transform: translateY(-2px);
}

/* ------------------------------------------------------------
   КРУГЛЫЕ ОБВОДКИ ДЛЯ ССЫЛОК
------------------------------------------------------------ */
/* -------------------- Базовые стили для action-элементов -------------------- */
.action-icon:not(.no-action-style),
.action-column a:not(.no-action-style),
.button-column a:not(.no-action-style),
.action-button-icon:not(.no-action-style),
.action-button-text:not(.no-action-style),
td a:has(i[class^="icon-"]):not(.no-action-style),
td a:has(i[class^=" icon-"]):not(.no-action-style) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 28px;
    margin: 2px 0 !important;
    border-radius: 14px;
    transition: all 0.2s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.18);
}

@media (max-width: 767px) {
    .action-button-icon.visible-phone,
    .action-button-text.visible-phone {
        display: inline-flex !important;
    }

    .action-button-icon:not(.no-action-style),
    .action-button-text:not(.no-action-style),
    .action-icon:not(.no-action-style),
    .action-column a:not(.no-action-style),
    .button-column a:not(.no-action-style),
    td a:has(i[class^="icon-"]):not(.no-action-style),
    td a:has(i[class^=" icon-"]):not(.no-action-style) {
        min-width: 41px !important;
        min-height: 41px !important;
    }
}

/* Сброс стилей для кружков */
a:has(.icon-circle, .icon-circle-blank),
.action-button-icon:has(.icon-circle, .icon-circle-blank),
.action-button-text:has(.icon-circle, .icon-circle-blank) {
    border: none !important;
    box-shadow: none;
    min-width: auto;
}

td:has(.icon-circle, .icon-circle-blank) {
    text-align: center;
}

/* -------------------- Класс для иконок без текста (круг) -------------------- */
.action-button-icon {
    padding: 0 !important;
    border-radius: 50% !important;
}

/* -------------------- Класс для иконок с текстом (скругленная рамка) -------------------- */
.action-button-text {
    padding: 0 6px;
    gap: 6px;
}

/* -------------------- Общие hover-эффекты -------------------- */
.action-icon:hover,
.action-column a:hover,
.button-column a:hover,
.action-button-icon:hover,
.action-button-text:hover,
td a:has(i[class^="icon-"]):hover,
td a:has(i[class^=" icon-"]):hover {
    border-color: rgba(0, 0, 0, 0.35);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

/* -------------------- Активное состояние -------------------- */
a.fancy:active,
a[rel="tooltip"]:active,
a[rel="popover"]:active,
.action-icon:active,
.action-column a:active,
.button-column a:active,
.btn-link:active,
.action-button-icon:active,
.action-button-text:active,
td a:has(i[class^="icon-"]):active {
    transform: translateY(1px);
}

/* -------------------- Цветные обводки -------------------- */
.action-button-icon:has(.icon-eye-open):hover,
.action-button-text:has(.icon-eye-open):hover {
    border-color: #0066cc;
}

.action-button-icon:has(.icon-info-sign):hover,
.action-button-text:has(.icon-info-sign):hover {
    border-color: #5bc0de;
}

.action-button-icon:has(.icon-pencil):hover,
.action-button-text:has(.icon-pencil):hover {
    border-color: #905eff;
}

.action-button-icon:has(.icon-trash):hover,
.action-button-text:has(.icon-trash):hover,
.action-button-icon:has(.icon-remove):hover,
.action-button-text:has(.icon-remove):hover {
    border-color: #dd3333;
}

.action-button-icon:has(.icon-ok):hover,
.action-button-text:has(.icon-ok):hover,
.action-button-icon:has(.icon-plus):hover,
.action-button-text:has(.icon-plus):hover {
    border-color: #46a546;
}

/* Убирает обводку при клике мышью (или касании),
   но оставляет её при фокусе с клавиатуры */
:focus:not(:focus-visible) {
    outline: none !important;
}

.sidebar-nav {
    padding: 10px 3px;
}

.sidebar-user-profile .sidebar-nav {
    padding: 10px 12px;
}

/* Убираем нижнюю границу у nav-header в статистике */
.sidebar-statistic .nav-header {
    border-bottom: none;
    border-radius: 8px;
    padding: 3px 15px;
}

/* Сдвиг только текста, прогресс-бар оставить как есть */
.sidebar-statistic .nav-header {
    padding-left: 19px;
}

.sidebar-statistic .progress {
    margin-left: -4px;
}


/* -------------------- Кнопки с градиентами и эффектами -------------------- */

/* Базовые стили для всех кнопок */
.btn {
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    cursor: pointer;
    transform: translateY(0);
}

/* Общие hover-эффекты для всех кнопок */
.btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.btn:active:not(:disabled) {
    transform: translateY(1px);
}

/* Обычная кнопка (без дополнительных классов) */
.btn {
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: linear-gradient(90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 20%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0.1) 80%,
    rgba(255, 255, 255, 0) 100%),
    linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    color: #333;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn:hover:not(:disabled) {
    background: linear-gradient(90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.15) 20%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0.15) 80%,
    rgba(255, 255, 255, 0) 100%),
    linear-gradient(135deg, #e8e8e8 0%, #ddd 100%);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

/* Default кнопка */
.btn-default {
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: linear-gradient(90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 20%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0.1) 80%,
    rgba(255, 255, 255, 0) 100%),
    linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    color: #333;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-default:hover:not(:disabled) {
    background: linear-gradient(90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.15) 20%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0.15) 80%,
    rgba(255, 255, 255, 0) 100%),
    linear-gradient(135deg, #e8e8e8 0%, #ddd 100%);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

/* Secondary кнопка */
.btn-secondary {
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: linear-gradient(90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.08) 20%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0.08) 80%,
    rgba(255, 255, 255, 0) 100%),
    linear-gradient(135deg, #f0f0f0 0%, #e3e3e3 100%);
    color: #444;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-secondary:hover:not(:disabled) {
    background: linear-gradient(90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.12) 20%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0.12) 80%,
    rgba(255, 255, 255, 0) 100%),
    linear-gradient(135deg, #e8e8e8 0%, #d8d8d8 100%);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
}

/* Primary (синие) */
.btn-primary {
    border: none;
    background: linear-gradient(90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.08) 10%,
    rgba(255, 255, 255, 0.05) 20%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(255, 255, 255, 0.05) 80%,
    rgba(255, 255, 255, 0.08) 90%,
    rgba(255, 255, 255, 0) 100%),
    linear-gradient(135deg, #0066bb 0%, #004dad 100%);
    color: white;
    box-shadow: 0 1px 2px rgba(0, 77, 173, 0.2);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.08) 20%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0.08) 80%,
    rgba(255, 255, 255, 0) 100%),
    linear-gradient(135deg, #0077cc 0%, #0055bb 100%);
    box-shadow: 0 3px 10px rgba(0, 102, 204, 0.3);
}

/* Danger (красные) */
.btn-danger {
    border: none;
    background: linear-gradient(90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.05) 20%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(255, 255, 255, 0.05) 80%,
    rgba(255, 255, 255, 0) 100%),
    linear-gradient(135deg, #cc3333 0%, #aa1515 100%);
    color: white;
    box-shadow: 0 1px 2px rgba(170, 21, 21, 0.2);
}

.btn-danger:hover:not(:disabled) {
    background: linear-gradient(90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.08) 20%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0.08) 80%,
    rgba(255, 255, 255, 0) 100%),
    linear-gradient(135deg, #dd4040 0%, #bb2020 100%);
    box-shadow: 0 3px 10px rgba(187, 32, 32, 0.3);
}

/* Success (зеленые) */
.btn-success {
    border: none;
    background: linear-gradient(90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.05) 20%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(255, 255, 255, 0.05) 80%,
    rgba(255, 255, 255, 0) 100%),
    linear-gradient(135deg, #5cbc5c 0%, #40a040 100%);
    color: white;
    box-shadow: 0 1px 2px rgba(64, 160, 64, 0.2);
}

.btn-success:hover:not(:disabled) {
    background: linear-gradient(90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.08) 20%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0.08) 80%,
    rgba(255, 255, 255, 0) 100%),
    linear-gradient(135deg, #6ccc6c 0%, #50b050 100%);
    box-shadow: 0 3px 10px rgba(80, 176, 80, 0.3);
}

/* Warning (оранжевые) */
.btn-warning {
    border: none;
    background: linear-gradient(90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.05) 20%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(255, 255, 255, 0.05) 80%,
    rgba(255, 255, 255, 0) 100%),
    linear-gradient(135deg, #f2aa48 0%, #e8983e 100%);
    color: white;
    box-shadow: 0 1px 2px rgba(232, 152, 62, 0.2);
}

.btn-warning:hover:not(:disabled) {
    background: linear-gradient(90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 20%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0.1) 80%,
    rgba(255, 255, 255, 0) 100%),
    linear-gradient(135deg, #ffb850 0%, #f0a040 100%);
    box-shadow: 0 3px 10px rgba(240, 160, 64, 0.3);
}

/* Info (голубые) */
.btn-info {
    border: none;
    background: linear-gradient(90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.05) 20%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(255, 255, 255, 0.05) 80%,
    rgba(255, 255, 255, 0) 100%),
    linear-gradient(135deg, #6ac8e0 0%, #45a8c8 100%);
    color: white;
    box-shadow: 0 1px 2px rgba(69, 168, 200, 0.2);
}

.btn-info:hover:not(:disabled) {
    background: linear-gradient(90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.08) 20%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0.08) 80%,
    rgba(255, 255, 255, 0) 100%),
    linear-gradient(135deg, #7ad8f0 0%, #55b8d8 100%);
    box-shadow: 0 3px 10px rgba(85, 184, 216, 0.3);
}

/* Inverse (темные/черные) */
.btn-inverse {
    border: none;
    background: linear-gradient(90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.05) 20%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.05) 80%,
    rgba(255, 255, 255, 0) 100%),
    linear-gradient(135deg, #555 0%, #1a1a1a 100%);
    color: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-inverse:hover:not(:disabled) {
    background: linear-gradient(90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.08) 20%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(255, 255, 255, 0.08) 80%,
    rgba(255, 255, 255, 0) 100%),
    linear-gradient(135deg, #666 0%, #2a2a2a 100%);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

/* Отступ между кнопками btn-link с классом pull-right */
.pull-right.btn-link + .pull-right.btn-link {
    margin-right: 3px;
}

/* Стили для ссылок с изображениями внутри */
a:has(img):not(.brand) {
    transition: all 0.2s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

a:has(img):not(.brand):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

a:has(img):not(.brand):active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Отступы для ячеек с иконками-действиями */
.table .button-column,
.table td:has(> a i[class^="icon-"]) {
    padding: 4px;
}

/* Скругление для текстовых инпутов, select и select2 */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="tel"],
input[type="search"],
input[type="url"],
input[type="date"],
input[type="time"],
textarea,
select,
.select2-container .select2-choice,
.select2-container--default .select2-selection,
.select2-container .select2-choices {
    border-radius: 8px;
}

/* Открытые селекты — убираем нижние скругления */
.select2-dropdown-open .select2-choice,
.select2-dropdown-open.select2-container--default .select2-selection--single,
.select2-dropdown-open .select2-choices,
.select2-container-multi.select2-dropdown-open .select2-choices {
    border-radius: 8px 8px 0 0 !important;
}

/** Фикс переносов тултипов **/
.tooltip,
.tooltip-inner,
.tooltip-arrow {
    white-space: normal !important;
    word-wrap: break-word !important;
}

/* -------------------- Верхнее меню (navbar) -------------------- */
.navbar-inner {
    background: linear-gradient(95deg, #efefef 0%, #f4f4f4 25%, #f6f6f6 50%, #f4f4f4 75%, #efefef 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

/* Активные пункты меню  */
.navbar .nav > li > a:hover,
.navbar .nav > li > a:focus {
    background: linear-gradient(135deg, #eeeeee 0%, #e5e5e5 100%);
    transition: all 0.2s ease;
}

.zoom-nav-button:hover {
    background: linear-gradient(135deg, #eeeeee 0%, #e5e5e5 100%);
}
