:root[data-bs-theme="light"] {
    --color-active: #4f81b7;
    --color-hover: #3b6b9a;
    --box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.05),
    0 8px 24px rgba(0, 0, 0, 0.1);
    --text-color: #151515;
    --bs-body-bg: #fafafa;
    --bg-color: #fff;
    --menu-text-color: #4F81B7;
    --menu-text-color-hover: #426B98;
    --border: 1px solid #ccc;
    --color-transparent: rgba(0 0 0 / .05);
    --bs-border-radius-lg: 20px;
}

:root[data-bs-theme="dark"] {
    --color-active: #4f81b7;
    --color-hover: #3b6b9a;
    --box-shadow:
    0 2px 4px rgba(255, 255, 255, 0.03),
    0 8px 24px rgba(255, 255, 255, 0.06);
    --text-color: #ffffff;
    --bg-color: #151515;
    --menu-text-color: #4F81B7;
    --menu-text-color-hover: #426B98;
    --border: 1px solid #333;
    --color-transparent: rgba(255 255 255 / .05);
    --bs-border-radius-lg: 20px;
}

.btn-null {
    background-color: transparent;
    color: var(--text-color);
}

.main-navigation-left a:hover {
    text-decoration: underline;
}
.main-navigation-left a {
    color: #4F81B7;
    text-decoration: none;
    padding-top: 5px;
    padding-bottom: 5px;
    display: block;
}

.thelper {
    width: 30px;
    height: 30px;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    border: 1px solid #ccc;
    cursor: pointer;
    margin-top: 45px;
}
.form-control {
    min-height: 55px;
}
.form-select {
    height: 55px;
}
body {
    margin: 0;
    font-family: Arial, sans-serif;
    height: 100vh;
}

body {
  background-color: var(--bs-body-bg);
}

.ajax-content.disabled {
    opacity: 0.4;
}
.accordion-button:not(.collapsed) {
    background-color: #fff!important;
}

.card-info {
    height: 400px;
    border: 5px dashed var(--color-transparent);
    border-radius: 20px;
    margin-bottom: 30px;
}
.company__card > div {
    padding: 0!important;
}
.company__card:hover {
    background-color: rgba(255 255 255 / .05)!important;

}
.company__card .access_disabled {
    display: none;
}
.company__card.disabled .access_disabled span {
    padding: 10px 20px;
    background-color: #eee;
    border-radius: 50px;
    color: #000;
}
.company__card.disabled .access_disabled {
    display: flex;
    -webkit-display: flex;
    align-items: center;
    -webkit-align-items: center;
    justify-content: center;
    -webkit-justify-content: center;
    position: absolute;
    z-index: 9;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background-color: rgba(0 0 0 / .5);
}

.company__card {
    transition: all .2s;
    -o-transition: all .2s;
    -ms-transition: all .2s;
    -moz-transition: all .2s;
    -webkit-transition: all .2s;
    

    height: 240px;
    text-align: center;
    position: relative;
    padding: 0!important;
    background-color: rgba(255 255 255 / .1)!important;
}
.company__card-null {
    background-color: transparent!important;
}
.card__link {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
}
.company__card-title:hover {
    text-decoration: underline;
}
.company__card-title {
    font-size: 25px;
    color: var(--color);
    text-decoration: none;
    display: block;
}

.ajax-result.active {
    opacity: 1;
    display: block;
}
.ajax-result {
    opacity: 0;
    padding: 20px;
    text-align: center;
    display: none;
}

.btn-default {
    border: 1px solid #ccc;
    color: #777;
}
.btn-default:hover {
    border: 1px solid #000;
}
.comment-item__date {
    color: #ccc;
    font-size: 12px;
}
.comment-item__name {
    font-weight: bold;
}
.comment-item {
    border-bottom: 1px solid #ccc;
    padding: 10px 0;
    font-size: 14px;
}
.table-status span {
    width: 7px;
    height: 7px;
    border-radius: 100px;
    top: 0;
    bottom: 0;
    left: 0;
    display: block;
    margin-right: 6px;
}
.table-status {
    position: relative;
}
.ajax-tasks-count {
    margin-left: 5px;
}
.btn-primary:active,
.btn-primary:focus,
.btn-primary {
    background-color: var(--color-active)!important;
    border-color: var(--color-active)!important;
    height: 50px;
    padding-left: 40px;
    padding-right: 40px;
}
.btn-primary:hover {
    background-color: var(--color-hover)!important;
    border-color: var(--color-hover)!important;
}
.modal-footer {
    border-top: 0;
}
.modal-header {
    border-bottom: 0;
    background-color: #f4f4f4;
}
.table th,
.table td {
    font-size: 13px;
    line-height: 1.1;
    position: relative;
    vertical-align: top;
}
.table-th-control {
    vertical-align: top;
}
.table.a-absolute td a {
    text-decoration: none;
    color: #000;
    display: block;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
}
.table-sort:hover {
    border-color: var(--color-active);
}
.table-sort {
    position: absolute;
    opacity: 0;
    display: block;
    left: 0;
    right: 0;
    top: -8px;
    margin: auto;
    width: 19px;
    height: 19px;
    background-image: url(../img/sort-down.svg);
    background-repeat: no-repeat;
    background-size: 14px;
    background-position: center;
    cursor: pointer;
    background-color: #fff;
    border-radius: 100px;
    border: 1px solid #ccc;
    transition: all .2s;
    -o-transition: all .2s;
    -ms-transition: all .2s;
    -moz-transition: all .2s;
    -webkit-transition: all .2s;
}
.table-sort.asc {
    background-image: url(../img/sort-down.svg);
}
.table-sort.desc {
    background-image: url(../img/sort-up.svg);
}
.table thead .table-sort.active,
.table thead:hover .table-sort {
    opacity: 1;
}


.btn-utp img {
    margin-right: 10px;
}
.btn-utp {
    background: #12CE8E;
    display: inline-block;
    border-radius: 7px;
    padding: 10px 25px 10px 25px!important;
    color: #000!important;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: 0 !important;
    width: auto!important;
}
.company__card-image {
    border-radius: 20px;
    padding: 30px;
    height: 120px;
    margin-bottom: 0px;
    text-align: center;
    width: 100%;
}
.company__card-image img {
    max-width: 100%;
    max-height: 100%;
}
.btn-silver {
    position: relative;
    background-color: rgba(5, 112, 181, .05) !important;
    height: 41px;
    line-height: 1;
    transition: all .4s;
    -o-transition: all .4s;
    -ms-transition: all .4s;
    -moz-transition: all .4s;
    -webkit-transition: all .4s;
}
.btn-silver span {
    position: relative;
}
.btn-utp span, .btn-utp {
    color: #fff;
}
.label-number.active {
    display: flex;
}
.modal-header {
    background-color: var(--bg-color);
}
.btn-silver img {
    width: 20px;
}
.btn-silver {
    height: 55px;
    padding-left: 50px;
    padding-right: 50px;
    color: var(--color)!important;
}
.file-upload-custom {
    display: none;
}
.w-50px {
    width: 50px;
}
.h-50px {
    height: 50px;
}
.label-number {
    position: absolute;
    font-style: normal;
    line-height: 1;
    left: -10px;
    top: -10px;
    max-width: 20px;
    max-height: 20px;
    min-width: 20px;
    min-height: 20px;
    width: 20px;
    height: 20px;
    padding-bottom: 2px;
    border-radius: 100%;
    background-color: #555;
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
}

.dropdown-menu {
    font-size: 14px;
}
.navbar .nav-link {
    padding-top: 5px;
    padding-bottom: 5px;
}
.navbar-user {
    width: 25px;
    margin-right: 6px;
}
.navbar {
    background-color: var(--bg-color);
    border-radius: 16px;
    margin-top: 10px;
    padding-left: 15px;
    padding-right: 15px;
    border: var(--border)!important;
}
.file-item a:hover {
    color: var(--color-hover);
}
.file-item a {
    color: var(--color-active);
}
.file-item {
    padding: 10px 0;
}
/* Боковое меню */
.sidebar {

    border-radius: 16px;
  box-shadow: var(--box-shadow);
  transition: box-shadow 0.3s ease, transform 0.3s ease;

    background-color: var(--bg-color);
    color: white;
    width: 70px;
    border-radius: 20px;
    position: fixed;
    top: 10px;
    left: 10px;
    bottom: 10px;
    z-index: 2;
    transition: width 0.3s ease;
}

.navbar {
    border-bottom: 0;
}

.sidebar.expanded {
    width: 250px;
}

.sidebar .menu {
    list-style: none;
    padding: 55px 0 0;
    margin: 0;
}


.sidebar .menu li:hover {
    background-color: var(--color-hover);
}

.sidebar .menu li i {
    font-size: 1.5rem;
}


.sidebar .menu li a {
    transition: opacity 0.3s ease;
}
.sidebar .menu li span {
    font-size: 1rem;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.3s ease;
    overflow: hidden;
    transition: all .4s;
    -o-transition: all .4s;
    -ms-transition: all .4s;
    -moz-transition: all .4s;
    -webkit-transition: all .4s;
}

.sidebar.expanded .menu li a {
    display: block !important;
    padding-left: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
}
.sidebar .menu li:hover a {
    color: var(--menu-text-color-hover);
}
.sidebar .menu li:hover {
    background-color: transparent!important;
}



.sidebar .menu li a {
    margin-bottom: 10px;
}
.sidebar .menu li a {
    text-decoration: none;
    display: flex;
    -o-display: flex;
    -ms-display: flex;
    -moz-display: flex;
    -webkit-display: flex;
    align-items: center;
    justify-content: center;
    -o-align-items: center;
    -o-justify-content: center;
    -ms-align-items: center;
    -ms-justify-content: center;
    -moz-align-items: center;
    -moz-justify-content: center;
    -webkit-align-items: center;
    -webkit-justify-content: center;
    color: var(--menu-text-color);
    padding: 0px;
    cursor: pointer;
    transition: background 0.1s ease;
    transition: all .4s;
    -o-transition: all .4s;
    -ms-transition: all .4s;
    -moz-transition: all .4s;
    -webkit-transition: all .4s;
}

.card {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    background-color: var(--bg-color);
    border: var(--border);
}
.card-header {
    background-color: var(--bs-body-bg);
    border-radius: 16px;
}

@media (max-width: 800px) {
    .sidebar .menu li a span {
        font-size: 11px!important;
        white-space: nowrap;
        opacity: 1;
        transition: opacity 0.3s ease;
        overflow: hidden;
        text-align: center;
    }
}
@media (min-width: 800px) {
    .sidebar .menu li a {
        padding-top: 6px;
        padding-bottom: 6px;
    }
    .sidebar .menu li a {
        flex-direction: column;
    }
    .sidebar.expanded .menu li a {
        flex-direction: row;
    }
    .sidebar.expanded .menu li a {
        display: block!important;
        padding-left: 20px;
    }
    .sidebar .menu li span {
        font-size: 10px!important;
        margin-right: 0;
        margin-top: 5px;
    }
    .sidebar.expanded .menu li span {
        font-size: 15px!important;
    }
    .sidebar.expanded .menu li i {
        font-size: 1.5rem;
        margin-right: 10px;
    }
}


.sidebar.expanded .menu li span {
    opacity: 1;
}

/* Кнопка "сэндвич" */
.toggle-btn div {
}
.toggle-btn {
    position: fixed;
    top: 25px;
    left: 10px;
    width: 70px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 3;
}

.toggle-btn:hover div {
    background-color: var(--menu-text-color-hover);
}
.toggle-btn div {
    background-color: var(--menu-text-color);
    height: 3px;
    width: 30px;
    border-radius: 2px;
    margin: auto;
    transition: all 0.3s ease;
}

.toggle-btn div:nth-child(2) {
    margin: 5px auto;
}

/* Анимация превращения в крестик */
.sidebar.expanded ~ .toggle-btn div:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.sidebar.expanded ~ .toggle-btn div:nth-child(2) {
    opacity: 0;
}

.sidebar.expanded ~ .toggle-btn div:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Вкладки */
.tabs {
    display: none;
    margin-top: 20px;
}

.tabs.active {
    display: flex;
    border-bottom: 2px solid #ccc;
}

.tabs button {
    background-color: #f4f6f9;
    border: 1px solid #ccc;
    border-bottom: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    margin-right: 5px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.tabs button.active {
    background-color: var(--color-active)!important;
    border-color: var(--color-active)!important;
    color: white;
}
.tabs.tabs-border.active {
    border-bottom: 1px solid #eee!important;
}
.tabs.tabs-border button.active:hover,
.tabs.tabs-border button:hover {
    background-color: transparent!important;
    border-color: #000!important;
    color: #000;
}
.cr-card {
    background-color: #fff;
    padding: 15px 20px;
}
.tabs.tabs-border button.active {
    background-color: #fff!important;
    border-color: #ccc!important;
    color: #000;
}
.btn-url {
    border-radius: 5px!important;
    height: 35px;
    border: 1px solid #ccc!important;
    font-size: 13px!important;
}

.tabs button:hover {
    background-color: var(--color-hover);
    color: white;
}

/* Содержимое страницы */
.content {
    padding: 20px;
    margin-left: 90px;
    transition: margin-left 0.3s ease;
}

.sidebar.expanded ~ .content {
    margin-left: 270px;
}

.content h1 {
    font-size: 30px;
    color: var(--text-color);
}
table tr.active td {
    background-color: var(--bs-border-color)!important;
}
.content p {
    color: #34495e;
    overflow-wrap: anywhere!important;
}

.page-link {
    color: var(--color-active);
    cursor: pointer;
}
.active>.page-link, .page-link.active {
    z-index: 3;
    color: #fff;
    background-color: var(--color-active);
    border-color: var(--color-active);
}
