body {
    background-color: skyblue;
}
.main {
    display: flex;
    flex-direction: row;
    height: 100%;
}
.content {
    padding: 10px;
    width: 100%;
    min-width: 0; /* предотвращение overflow на мобильных */
}

/* Планшет и телефон: колоночная раскладка, меню в аккордеоне сверху */
@media (max-width: 767.98px) {
    body {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }
    .mobile-header {
        flex-shrink: 0;
    }
    #navbar-mobile-menu {
        flex-shrink: 0;
        max-height: 70vh;
        overflow-y: auto;
    }
    .main {
        flex-direction: column;
        flex: 1;
        min-height: 0;
    }
    .content {
        flex: 1;
    }
}
.menu-icon {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.table-row, div.link {
    transition: .3s;
}

.table-row.link, div.link {
    cursor: pointer;
    transition: .3s;
}

.table-row:hover , div.link {
    filter: brightness(0.85);
}

.nav svg {
    width: 16px;
    height: 16px;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; /* Убираем отступы, чтобы иконка не выходила за границы */
}

.btn-icon svg {
    width: 16px; /* Устанавливаем ширину */
    height: 16px; /* Устанавливаем высоту */
}

.is-deleted {
    --bs-table-bg: lightgrey;
}

#loading-indicator {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.8);
    padding: 15px;
    border-radius: 5px;
    z-index: 9999;
}

/* Стили для списка лидов */
.lead-list {
    display: flex;
    flex-direction: column;
}

.lead-list-header {
    display: none;
    padding: 0.75rem;
    font-weight: 600;
    border-bottom: 1px solid #dee2e6;
    background-color: #f8f9fa;
}

.lead-list-item {
    display: flex;
    flex-wrap: wrap;
    padding: 0.75rem;
    border-bottom: 1px solid #dee2e6;
    gap: 0.5rem;
    transition: background-color 0.15s ease-in-out;
}

.lead-list-item:hover {
    background-color: rgba(0, 0, 0, 0.025);
}

.lead-list-item:last-child {
    border-bottom: none;
}

.lead-col-id {
    flex: 0 0 50px;
    max-width: 50px;
}

.lead-col-customer {
    flex: 2;
    min-width: 100px;
}


.lead-col-furniture-type {
    flex: 2;
    min-width: 150px;
}

.lead-col-status {
    flex: 1;
    min-width: 100px;
}

.lead-col-priority {
    flex: 1;
    min-width: 100px;
}

.lead-col-budget {
    flex: 1;
    min-width: 80px;
}

.lead-col-manager {
    flex: 1;
    min-width: 100px;
}

.lead-col-created {
    flex: 1;
    min-width: 100px;
}

@media (min-width: 768px) {
    .lead-list-header {
        display: flex;
    }

    .lead-list-item {
        flex-wrap: nowrap;
        align-items: center;
    }

    .lead-list-item:hover {
        background-color: rgba(0, 0, 0, 0.04);
        cursor: pointer;
    }
}

/* Стили для списка задач */
.task-list {
    display: flex;
    flex-direction: column;
}

.task-list-header {
    display: flex;
    padding: 0.75rem;
    font-weight: 600;
    border-bottom: 1px solid #dee2e6;
    background-color: #f8f9fa;
}

.task-list-item {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid #dee2e6;
    gap: 0.5rem;
    transition: background-color 0.15s ease-in-out;
}

.task-list-item:hover {
    background-color: rgba(0, 0, 0, 0.04);
    cursor: pointer;
}

.task-list-item:last-child {
    border-bottom: none;
}

.task-col-id {
    flex: 0 0 50px;
    max-width: 50px;
}

.task-col-title {
    flex: 3;
    min-width: 150px;
}

.task-col-lead {
    flex: 1;
    min-width: 120px;
}

.task-col-status {
    flex: 1;
    min-width: 100px;
}

.task-col-priority {
    flex: 1;
    min-width: 100px;
}

.task-col-deadline {
    flex: 1;
    min-width: 100px;
}

.task-col-created {
    flex: 1;
    min-width: 100px;
}

/* Стили для таблиц - уменьшенный шрифт */
table.table {
    font-size: 0.875rem;
}

table.table small {
    font-size: 0.75rem;
}
