/* ======= Палитра и базовые переменные ======= */
:root {
    --primary-color: #313b59;
    --secondary-color: #83b2cd;
    --border-color: #c3c4c5;
    --scrollbar-bg: #f5f5f5;
    --scrollbar-thumb: #838282f2;
    --dark-color: #6c757d;
}

/* шрифт*/
@font-face {
    font-family: "Arial Black Local";
    src: url("./assets/fonts/arial_black.f987813dee56.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

html,
body {
    height: 100%;
    background: #fff;
}

/* ======= Логотип/шапка сайдбара ======= */
.logo {
    display: flex;
    align-items: center;
    padding: 16px 0;
    margin: 0 16px 15px;
    border-bottom: 1px solid var(--border-color);
    font-family: "Arial Black Local", "Arial Black", Arial, Helvetica, sans-serif;
    user-select: none;
}

.logo__img {
    width: 36px;
    margin-right: .5rem
}

.logo__company-name {
    color: var(--primary-color);
    margin-right: .25rem
}

.logo__project-name {
    color: var(--secondary-color)
}

.mytasks-window {
    max-width: none;
    margin: 0 auto;
}

.user-avatar {
    background: var(--secondary-color, #83b2cd);
    color: #fff;
    font-family: inherit;
}

.worker-status__dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.topbar__brand:hover,
.logo__link:hover {
    opacity: .85;
}

/* Сайдбар — ширина как в эталоне */
.sidebar {
    width: 280px;
    flex-shrink: 0;
    /* border-right: 1px solid var(--border-color); */
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

/* Прокручиваемый список ссылок как .nav-list в эталоне */
.nav-list {
    max-height: calc(100vh - 200px);
    overflow: auto;
    flex-wrap: nowrap !important;
    padding: 0 12px 12px;
}

.nav-list .nav-link {
    border-radius: .375rem;
    color: #0d6efd;
}

.nav-list .nav-link.active {
    background: #0d6efd;
    font-weight: 500;
}

/* Нижний блок в сайдбаре (версии/кнопка выхода) */
.sidebar__user {
    /* background: #f8f9fa; */
    border-top: 1px var(--border-color);
}

.sidebar__footer {
    margin-top: 0;
    padding: 12px;
}

.sidebar__meta {
    font-size: .875rem;
    margin-bottom: .5rem;
    color: #6c757d
}




/* ======= Общий каркас ======= */
#appView {
    height: 100%;
}

.vh-100-minus-navbar {
    height: 100vh;
}

/* Top-bar (виден только на узких экранах, см. медиа-запрос ниже) */
.topbar {
    height: 56px;
    flex-shrink: 0;
}

.topbar__logo {
    width: 28px;
    height: auto;
}

.topbar__title {
    color: var(--primary-color);
    font-family: "Arial Black Local", "Arial Black", Arial, Helvetica, sans-serif;
    font-size: 0.95rem;
    min-width: 0;
}

/* ======= Адаптация под маленькие/средние экраны ======= */
@media (max-width: 991.98px) {
    .vh-100-minus-navbar {
        height: calc(100vh - 56px);
    }

    /* Сайдбар в режиме offcanvas — фиксированная ширина выезжающей панели */
    .sidebar.offcanvas-lg {
        width: 260px;
    }

    /* Внутри offcanvas — корректные отступы списка ссылок */
    .nav-list {
        max-height: none;
    }

    /* Таблицы: убираем фиксированную высоту, чтобы скроллилась страница, а не контейнер */
    .table-responsive {
        height: auto;
        max-height: calc(100vh - 220px);
    }

    .dashboard_workers-table {
        max-height: calc(100vh - 320px);
    }
}

/* ======= Скроллбары — как в эталоне ======= */
*::-webkit-scrollbar {
    width: 6px;
    height: 8px;
    cursor: pointer;
    background-color: var(--scrollbar-bg)
}

*::-webkit-scrollbar-track {
    border-radius: 5px;
    background: #ffffff;
    box-shadow: 0 0 1px 1px #c8c8c8, inset 0 0 7px rgba(0, 0, 0, .3);
}

*::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background-color: var(--scrollbar-thumb);
}

/* Кнопка закрытия в стиле Bootstrap 4 (.close) на случай старого разметочного кода */
.close {
    float: right;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: .5;
    background: transparent;
    border: 0
}

.close:hover {
    color: #000;
    text-decoration: none
}

.close:not(:disabled):not(.disabled):focus,
.close:not(:disabled):not(.disabled):hover {
    opacity: .75
}










/* ======= Контентная область ======= */
.content-area {
    flex: 1;
    overflow: auto;
    padding: 1rem 1.25rem 2rem;
    background: #f8f9fa;
}

/* ======= Прочие полезные утилиты из эталона ======= */
.status-badge {
    text-transform: uppercase;
    font-size: .75rem
}

.cursor-pointer {
    cursor: pointer
}

.spinner-sm {
    width: 1rem;
    height: 1rem;
    border-width: .15rem
}

/* file input поверх слоёв (как .custom-file-input) */
.custom-file-input {
    z-index: 1 !important;
    opacity: 1;
}

/* Toast показывать даже когда не .show — как фикc в эталоне */
.toast:not(.show) {
    display: block !important;
}

/* Правка select (под Bootstrap 5) */
.custom-select,
.form-select {
    display: inline-block;
    height: calc(1.5em + .75rem + 2px);
    padding: .375rem 1.75rem .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background: #fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5'%3E%3Cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E") right .75rem center/8px 10px no-repeat;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    appearance: none;
}

/* Вращения и др. мелочи из эталона */
.rotate-180 {
    transform: rotate(180deg);
    transition: transform .3s
}

.rotate-0 {
    transform: rotate(0deg);
    transition: transform .3s
}


/* Таблица */
.table {
    border-top: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
    border-right: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
    border-bottom: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
}

.table tr:nth-of-type(even)>* {
    background-color: rgba(0, 0, 0, .05)
}

.table td {
    padding: .5rem;
    vertical-align: middle;
    text-align: center;
    border-bottom: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important
}

/* ======= «Липкие» заголовки таблиц ======= */
.sticky-header-table table {
    border-spacing: 0;
}


.table-responsive {
    height: calc(100vh - 200px);
}

.dashboard_workers-table {
  max-height: calc(100vh - 365px);
}

.sticky-header-table thead tr th {
    box-sizing: border-box;
    position: sticky !important;
    top: 0;
    text-align: center;
    z-index: 2;
    background: #fff;
    box-shadow: inset 0 -1px 0 #dee2e6;
}

.sticky-header-table thead:first-child tr th {
    top: 0;
}


/* Визуально ближе к примеру */
#myTasksSection .page-header h4 {
    font-weight: 600;
    margin-bottom: 600;
}

.page-header .btn {
    /* background: #f1f3f5; */
    border-color: #ced4da;
    border: 1px solid transparent;
    /* всегда есть граница */
}


.btn-menu-hamburger {
    background-color: #6c757d;

    /*display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  padding: 4px 8px;
  border-radius: 4px;
  color: white; /* если фон тёмный */

}

.btn-menu-hamburger:hover,
.btn-menu-hamburger:focus,
.btn-menu-hamburger:active,
.btn-menu-hamburger:focus-visible {
    background-color: #6c757d !important;
    color: white !important;
    box-shadow: none !important;
    border: 1px solid transparent !important;
    /* не меняется */

}

#workersTableBody .worker-row {
cursor: pointer;
}

#workersTableBody .worker-row:hover {
background-color: rgba(0, 0, 0, 0.03);
}