/* Общие стили */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Стили для навигации */
.navbar {
    min-height: 60px;
    padding: 0;
}

.navbar-gradient {
    background: linear-gradient(to right, #343a40 75%, #ffc0cb) !important;
    padding: 0;
    min-height: 60px;
}

.navbar .container {
    min-height: 60px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: bold;
    color: white !important;
    padding: 0 15px;
    margin: 0;
    display: inline-block;
    position: absolute;
    top: 48%;
    transform: translateY(-50%);
    letter-spacing: 0.5px;
}

.ms-auto-brand {
    margin-left: 200px !important;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    padding: 0 15px !important;
    height: 60px;
    margin: 0;
    display: inline-flex;
    align-items: center;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: white;
}

.navbar-nav {
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-item {
    height: 100%;
    display: flex;
    align-items: center;
}

.admin-icon {
    color: white;
    font-size: 1.2rem;
    padding: 0 15px;
    height: 60px;
    display: inline-flex;
    align-items: center;
}

.admin-icon:hover {
    color: #f8f9fa;
    text-decoration: none;
}

/* Стили для подвала */
footer {
    padding: 0;
    margin-top: auto;
    background: linear-gradient(to right, #343a40 75%, #ffc0cb);
}

footer .footer-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 15px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-text {
    font-size: 0.9rem;
    color: white;
    margin: 0;
    padding-right: 15px;
}

.cursor-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
    padding-left: 15px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

/* Стили для таблиц */
.table {
    margin-bottom: 0;
    border: 1px solid #343a40;
}

.table th {
    font-weight: 600;
    vertical-align: middle;
    background-color: #343a40;
    color: white;
    border-color: #495057;
}

.table td {
    vertical-align: middle;
    border-color: #dee2e6;
}

.table-bordered {
    border-color: #495057;
}

.table-bordered th,
.table-bordered td {
    border-color: #495057;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.075);
}

/* Чередование строк */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f8f9fa;
}

.table-striped tbody tr:nth-of-type(even) {
    background-color: #e9ecef;
}

/* Стили для вкладок типов компонентов */
#componentTabs {
    border-bottom: none;
}

#componentTabs .nav-link {
    border-radius: 0.25rem 0.25rem 0 0;
    padding: 0.5rem 1rem;
    margin-right: 2px;
    border: 1px solid #dee2e6;
}

#componentTabs .nav-link.active {
    background-color: #f8f9fa;
    border-bottom-color: #f8f9fa;
    font-weight: 600;
}

.nav-tabs .nav-link {
    color: #495057 !important;
    height: auto;
    padding: 0.5rem 1rem !important;
}

.nav-tabs .nav-link.active {
    font-weight: bold;
    color: #212529 !important;
}

/* Стили для кнопки-треугольника действий */
.action-triangle {
    padding: 0;
    margin: 0;
    line-height: 1;
    border: none;
    background: transparent;
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    color: #495057;
}

.action-triangle:hover {
    color: #0d6efd;
}

.action-triangle .bi-gear {
    font-size: 0.9rem;
}

.dropdown-toggle-no-caret::after {
    display: none;
}

/* Стили для строк таблицы */
.clickable-row:hover {
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.05);
}

/* Стили для истории изменений */
#historyCollapse .table td {
    font-size: 0.9rem;
}

.history-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.history-container.show {
    max-height: 500px;
}

/* Стили для уведомлений */
#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

/* Стили для модальных окон */
.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.modal-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

/* Адаптивные стили */
@media (max-width: 991.98px) {
    .navbar-gradient {
        height: auto;
    }

    .navbar .container {
        height: auto;
    }

    .navbar-brand {
        position: static;
        transform: none;
        font-size: 1.5rem;
    }

    .ms-auto-brand {
        margin-left: 0 !important;
    }

    .navbar-collapse {
        padding: 8px 0 12px;
    }

    .navbar-dark .navbar-nav .nav-link {
        font-size: 1rem;
        height: auto;
        padding: 8px 15px !important;
    }

    .nav-item {
        height: auto;
    }

    .admin-icon {
        height: auto;
        padding: 8px 15px;
    }
}

@media (max-width: 768px) {
    .table {
        font-size: 0.9rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-text {
        padding: 0 0 5px 0;
    }

    .cursor-text {
        border-left: none;
        padding: 5px 0 0 0;
    }
}

/* Добавляем стили для страницы бухгалтерии */
.accordion-button:not(.collapsed) {
    background-color: #f8f9fa;
    color: #212529;
    box-shadow: none;
}

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

/* Стилизация заголовков аккордеона */
.accordion-button {
    font-weight: 600;
    padding: 1rem 1.25rem;
}

/* Убираем отступы в body аккордеона, чтобы таблица выглядела органично */
.accordion-body {
    padding: 0;
} 