/**
 * Глобальная тема клиентского интерфейса в стиле Odoo
 * Светло-серый фон #f2f3f5, белые карточки, бирюзовые акценты
 */

/* --- Общий фон --- */
body {
    background-color: #f2f3f5 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* Контейнер контента */
body .container,
body .container-fluid {
    background: transparent !important;
}

/* --- Навбар --- */
.my-nav,
.navbar.info-card-body {
    background-color: #fff !important;
    border-bottom: 1px solid #e9eaec !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: #17a2b8 !important;
    background-color: #f8f9fa !important;
}

/* Пункты меню (Компании, Мои заявления и т.д.) */
.bg-light-grey.main-nav-link,
.ref-drop-menu-item.bg-light-grey {
    background-color: #f8f9fa !important;
    border: 1px solid #e9eaec !important;
    color: #333 !important;
}

.bg-light-grey.main-nav-link:hover,
.ref-drop-menu-item.bg-light-grey:hover {
    background-color: #fff !important;
    border-color: #17a2b8 !important;
    color: #0d6a7a !important;
}

/* Выпадающие меню */
.ref-drop-menu,
.lang-drop-menu,
.video-dropdown-ul {
    background-color: #fff !important;
    border: 1px solid #e9eaec !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.ref-drop-menu-item:hover {
    background-color: #f8f9fa !important;
    color: #17a2b8 !important;
}

/* --- Заголовок страницы заявки (номер заявки) --- */
.client-page-header {
    background: #fff !important;
    color: #333 !important;
    border: none !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
}

.client-page-header h5 {
    color: #333 !important;
    font-weight: 600 !important;
}

/* --- Шапки профиля и договоров (в тематике Odoo) --- */
.list-card-header {
    background: #fff !important;
    color: #333 !important;
    border: none !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
}

.list-card-header h3,
.list-card-header .text-white {
    color: #333 !important;
    font-weight: 600 !important;
}

.list-card-header .fst-italic {
    font-style: normal !important;
}

/* --- Вкладки (Детали заявки, Видео/Фото, Документы...) --- */
.client-tabs-header {
    background: #fff !important;
    border: none !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
}

.client-tabs-header .nav-link {
    color: #495057 !important;
}

.client-tabs-header .nav-link:hover {
    background: #f8f9fa !important;
    color: #333 !important;
}

.client-tabs-header .nav-link.active {
    background: #fff !important;
    color: #0d6a7a !important;
    border: 1px solid #e9eaec !important;
    box-shadow: 0 1px 3px rgba(23, 162, 184, 0.2) !important;
}

/* --- Карточки контента (Основные данные, Участники и т.д.) --- */
.profile-card {
    background: #fff !important;
    border: none !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
}

.profile-card .card-body {
    background: #fff !important;
    color: #333 !important;
}

.profile-card-header {
    background: #fff !important;
    color: #333 !important;
    border-bottom: 1px solid #e9eaec !important;
    font-weight: 600 !important;
}

.profile-card-header i {
    color: #17a2b8 !important;
}

/* Строки в карточке (профиль, детали заявки) */
.profile-info-item {
    border-bottom-color: #e9eaec !important;
}

.profile-info-item .text-muted {
    color: #6c757d !important;
}

/* Карточка получателя платежа: без лишних границ, нормальные отступы */
.payee-list .payee-detail-card {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}
.payee-list .payee-detail-body {
    padding: 1rem 1.25rem !important;
}

/* --- Кнопки --- */
.btn-outline-primary {
    border-color: #17a2b8 !important;
    color: #17a2b8 !important;
}

.btn-outline-primary:hover {
    background: #17a2b8 !important;
    border-color: #17a2b8 !important;
    color: #fff !important;
}

.btn-outline-secondary {
    border-color: #dee2e6 !important;
    color: #495057 !important;
}

.btn-outline-secondary:hover {
    background: #f8f9fa !important;
    border-color: #adb5bd !important;
    color: #333 !important;
}

/* Кнопка «Загрузить» на странице добавления медиа (клиентская тема) */
.btn-client-primary {
    background: #17a2b8 !important;
    border-color: #17a2b8 !important;
    color: #fff !important;
}
.btn-client-primary:hover {
    background: #138496 !important;
    border-color: #117a8b !important;
    color: #fff !important;
}

/* --- Вкладка Документы --- */
.client-docs-tabs {
    background: #fff !important;
    border: 1px solid #e9eaec !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
}

.client-docs-tabs .nav-link {
    color: #495057 !important;
}

.client-docs-tabs .nav-link:hover {
    background: #f8f9fa !important;
    color: #333 !important;
}

.client-docs-tabs .nav-link.active {
    background: #fff !important;
    color: #0d6a7a !important;
    border: 1px solid #17a2b8 !important;
    box-shadow: 0 1px 2px rgba(23, 162, 184, 0.15) !important;
}

.client-docs-table {
    background: #fff !important;
    border: 1px solid #e9eaec !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
}

.client-docs-table-header {
    background: #f8f9fa !important;
    color: #333 !important;
    border-bottom: 1px solid #e9eaec !important;
    font-weight: 600 !important;
}

.client-docs-table-row {
    background: #fff !important;
    border-bottom: 1px solid #e9eaec !important;
}

.client-docs-table-row:hover {
    background: #f8f9fa !important;
}

.client-docs-form {
    background: #fff !important;
    border: 1px solid #e9eaec !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
}

.client-docs-form .form-control,
.client-docs-form .form-select {
    background: #fff !important;
    border-color: #dee2e6 !important;
}

.client-docs-form .form-control:focus,
.client-docs-form .form-select:focus {
    border-color: #17a2b8 !important;
    box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.15) !important;
}

/* --- Карточки деталей (старый класс) --- */
.client-detail-card {
    background: #fff !important;
    border: 1px solid #e9eaec !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
}

.client-detail-card .card-body {
    background: #fff !important;
}

.client-card-header {
    background: #fff !important;
    color: #333 !important;
    border-bottom: 1px solid #e9eaec !important;
}

/* --- Список заявок, таблицы --- */
.table-bg {
    background-color: #fff !important;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.table-header {
    background-color: #f8f9fa !important;
    color: #333 !important;
    border-bottom: 1px solid #e9eaec !important;
}

/* --- Формы и инпуты --- */
.form-bg,
.search-form-bg {
    background-color: #fff !important;
    border: 1px solid #e9eaec !important;
    border-radius: 0.5rem !important;
}

.form-control:focus {
    border-color: #17a2b8 !important;
    box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.15) !important;
}

/* --- Аккордеоны, блоки --- */
.info-card-body {
    background-color: #fff !important;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.title-block {
    background-color: #f8f9fa !important;
    border-radius: 0.5rem 0.5rem 0 0;
}

.accordion-button:not(.collapsed) {
    background-color: #f8f9fa !important;
    color: #333 !important;
}

.accordion-button {
    background-color: #fff !important;
}

/* --- Пагинация --- */
.pagination .page-link {
    border-color: #e9eaec !important;
    color: #495057 !important;
}

.pagination .page-link:hover {
    background-color: #f8f9fa !important;
    border-color: #dee2e6 !important;
    color: #17a2b8 !important;
}

.pagination .page-item.active .page-link {
    background-color: #17a2b8 !important;
    border-color: #17a2b8 !important;
    color: #fff !important;
}

/* --- Список заявок (карточки заявок) --- */
.app-item-card {
    background: #fff !important;
    border: 1px solid #e9eaec !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
    color: #333 !important;
}

.app-item-card:hover {
    background: #fff !important;
    border-color: #17a2b8 !important;
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.15) !important;
    color: #0d6a7a !important;
}

.app-item-inactive {
    opacity: 0.7;
}

.item-badge {
    background: #f8f9fa !important;
    border: 1px solid #e9eaec !important;
    color: #495057 !important;
}

.item-badge-success {
    background: #d4edda !important;
    border-color: #c3e6cb !important;
    color: #155724 !important;
}

.item-badge-warning {
    background: #fff3cd !important;
    border-color: #ffeeba !important;
    color: #856404 !important;
}

.item-badge-primary {
    background: #cce5ff !important;
    border-color: #b8daff !important;
    color: #004085 !important;
}

/* --- Алерты --- */
.alert-info {
    background: #e7f6f8 !important;
    border-color: #b8e6ec !important;
    color: #0c5460 !important;
    border-radius: 0.5rem !important;
}

/* --- Обёртка медиа (уже в Odoo) — убираем дубли фона --- */
.client-media-page-wrapper {
    background: transparent !important;
}

.client-media-card {
    background: transparent !important;
}

.client-media-card-body {
    background: #f2f3f5 !important;
}

/* --- Договоры: список и детальный просмотр (Odoo) --- */
.contract-tile {
    background: #fff !important;
    border: 1px solid #e9eaec !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.2s ease !important;
}

.contract-tile:hover {
    border-color: #17a2b8 !important;
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.15) !important;
    transform: none !important;
}

.contract-tile .text-dark {
    color: #333 !important;
}

.contract-tile .badge.bg-secondary {
    background: #e9eaec !important;
    color: #495057 !important;
    border: none !important;
}

.contract-tile .text-success {
    color: #0d6a7a !important;
}

.contract-mobile-card {
    background: #fff !important;
    border: 1px solid #e9eaec !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
}

.contract-card-link:hover .contract-mobile-card,
a:hover .contract-mobile-card {
    border-color: #17a2b8 !important;
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.15) !important;
}

.contract-date-badge,
.contract-sum-badge {
    background: #f8f9fa !important;
    border: 1px solid #e9eaec !important;
    border-radius: 0.4rem !important;
    color: #333 !important;
}

/* Карточки на странице детального просмотра договора */
.card {
    background: #fff !important;
    border: 1px solid #e9eaec !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
}

.card-header {
    background: #fff !important;
    color: #333 !important;
    border-bottom: 1px solid #e9eaec !important;
    font-weight: 600 !important;
}

.card-header i {
    color: #17a2b8 !important;
}

.contract-info-item {
    border-bottom-color: #e9eaec !important;
}

.card .bg-light {
    background: #f8f9fa !important;
    border: 1px solid #e9eaec !important;
    border-radius: 0.4rem !important;
}

/* --- Блок участников (клиентская тема: бирюза) --- */
.participant-card {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.12) 0%, rgba(23, 162, 184, 0.06) 100%) !important;
    border: 1px solid rgba(23, 162, 184, 0.35) !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 2px 6px rgba(23, 162, 184, 0.1) !important;
}
.participant-card:hover {
    border-color: rgba(23, 162, 184, 0.5) !important;
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.15) !important;
}
.participant-icon {
    background: #17a2b8 !important;
    color: #fff !important;
}
.participant-icon.text-warning {
    background: #e09a3a !important;
    color: #fff !important;
}
.participant-icon.text-danger {
    background: #0d6a7a !important;
    color: #fff !important;
}
.btn-participant,
.btn-participant-outline {
    background: #17a2b8 !important;
    border: 1px solid #138496 !important;
    color: #fff !important;
}
.btn-participant:hover,
.btn-participant-outline:hover {
    background: #138496 !important;
    border-color: #117a8b !important;
    color: #fff !important;
}
