@media (hover: hover) {
    button:hover {
        /* background-color: crimson; */
    }

    a.highlight:hover {
        /* background-color: aqua; */
        -webkit-box-shadow: 0px 0px 55px 10px rgba(2, 244, 255, 0.2);
        -moz-box-shadow: 0px 0px 55px 10px rgba(2, 244, 255, 0.2);
        box-shadow: 0px 0px 55px 10px rgba(2, 244, 255, 0.2);
    }
}

*::-webkit-scrollbar,
html *::-webkit-scrollbar {
    height: 5px;
    width: 5px;
}

*::-webkit-scrollbar-thumb,
html *::-webkit-scrollbar-thumb {
    background-color: orange;
    border-radius: 2px;
    /* border: 1px solid grey; */
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    background-color: #dfdfdf !important;
    /* overflow: hidden; */
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

input[type='number'],
input[type="number"]:hover,
input[type="number"]:focus {
    appearance: none;
    -moz-appearance: textfield;
}

ul,
li {
    list-style: none;
}

.vh-95 {
    height: 95vh !important;
}

.vh-90 {
    height: 90vh !important;
}

.vh-85 {
    height: 85vh !important;
}

.vh-80 {
    height: 80vh !important;
}

.navbar_qleads {
    background-color: darkgrey;
    border-bottom: 1px solid black;
    /* margin-bottom: 5px; */
}

form {
    margin: 10px;
}

.logo {
    width: 35px;
}

.black_border {
    border: 1px solid black;
    border-radius: 5px;
    display: flex;
    align-items: center;
}

.black_border:hover {
    background-color: #d0f2ff;
}

.projects-menu {
    max-height: 500px;
    display: block;
    overflow: auto;
}

.left_menu {
    width: -moz-fit-content;
    width: fit-content;
    height: calc(100vh - 31px);
    background-color: darkgrey;
    border-right: 1px solid black;
}

.left_menu a {
    border: 1px solid rgb(160, 160, 160);
    background-color: #fff;
}

.navbar_ul {
    height: 30px;
    padding-left: 0;
    margin-bottom: 0;
}

.navbar_ul li {
    margin: 2px;
}

/* .dropdown-menu.show li:hover { */
/* border: 2px solid red; */
/* position: relative;
    box-shadow: 0 0 5px #0d6efd;
    left: 5%;
    bottom: 5px;
    transform: scale(1.08);
    width: 90%;
} */

.dropdown-menu.show li:hover {
    box-shadow: 0 0 5px #0d6efd;
}

.left_menu_img {
    width: 30px;
    height: 30px;
}

.left_menu_img:hover {
    transform: scale(1.5);
    translate: 5px;
    transition: .3s;
    border: 2px solid red;
}

.active {
    border: 1px solid red !important;
    /* box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.2); */
}

.pulse {
    position: absolute;
    text-align: center;
    border-radius: 50%;
    border: 1px solid #ff0000;
    width: 50px;
    height: 50px;
    right: 50px;
    bottom: 50px;
    z-index: 999;
}

.pulse img {
    border-radius: 50%;
    background-color: #ff0000;
    width: 50px;
    height: 50px;
}

@keyframes pulse {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.pulse::after,
.pulse::before {
    content: '';
    position: absolute;
    border: 2px solid #ff0000;
    left: -20px;
    opacity: 0;
    right: -20px;
    top: -20px;
    bottom: -20px;
    border-radius: 50%;
    animation: pulse 2.5s linear infinite;
}

.pulse::after {
    animation-delay: 1.25s;
}

@keyframes pulse {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}


.accounts_table {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid black;
    margin-top: 20px;
}

.accounts_table_header {
    display: flex;
    width: 100%;
    justify-content: space-around;
    /* border: 1px solid black; */
    /* border-bottom: 2px solid black; */
}

.accounts_table_headre div {
    width: 100%;
    border: 1px solid;
    text-align: center;
}

.accounts_table_body {
    display: flex;
    width: 100%;
    justify-content: space-around;
    /* border: 1px solid black; */
    /* border-bottom: 2px solid black; */
}

.accounts_table_body div {
    width: 100%;
    border: 1px solid;
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap
}

.accounts_table_body div input {
    border: 0;
    width: 100%;
    text-align: center;
}

.accounts_table_body div a {
    width: 100%;
    border-radius: 0;
}

#popup {
    display: none;
    padding: 15px;
    background: linear-gradient(to left, grey 50%, green 50%);
    background-size: 200% 100%;
    background-position: 100% 0;
    color: white;
    border-radius: 5px;
    text-align: center;
    position: fixed;
    top: 50px;
    right: 50px;
    animation: fillColor 2.5s linear forwards, fadeOut .5s ease 2.5s;
    opacity: 1;
    z-index: 1111111111111111111111;
}

#error {
    display: none;
    padding: 15px;
    background: linear-gradient(to left, grey 50%, red 50%);
    background-size: 200% 100%;
    background-position: 100% 0;
    color: white;
    border-radius: 5px;
    text-align: center;
    position: fixed;
    top: 50px;
    right: 50px;
    animation: fillColor 3s linear forwards, fadeOut 1s ease 3s;
    opacity: 1;
    z-index: 1111111111111111111111;
}

@keyframes fillColor {
    from {
        background-position: 0 0;
        /* Начало анимации: цвет справа */
    }

    to {
        background-position: 100% 0;
        /* Конец анимации: цвет полностью слева */
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        /* Полностью видимый */
    }

    to {
        opacity: 0;
        /* Полностью прозрачный */
    }
}

table {
    font-family: "Lucida Sans Unicode", "Lucida Grande", Sans-Serif;
    /* font-size: calc(10px + 8 * (100vw - 320px) / 2200); */
    font-size: 14px;
    border-radius: 10px;
    border-spacing: 0;
    text-align: center;
    margin-top: 10px;
    /* word-break: break-all; */
}

th {
    background: #BCEBDD;
    color: rgb(0, 8, 255);
    /* text-shadow: 0 1px 1px #2D2020; */
    padding: 5px 5px;
}

th,
td {
    border-style: solid !important;
    border-width: 0 1px 1px 0 !important;
    border-color: white !important;
}

th:first-child {
    border-top-left-radius: 10px;
}

th:last-child {
    border-top-right-radius: 10px;
    border-right: none;
}

td {
    padding: 5px 5px;
    background: #F8E391;
}

td:has(input) {
    padding: 0 1px;
}

/* td:has(div) {
    display: block;
    height: 1.33vh;
    display: list-item;
} */

td:has(select) {
    padding: 0 1px;
}

tr {
    height: 1.33vh;
}

tr:last-child td:first-child {
    border-radius: 0 0 0 10px;
}

tr:last-child td:last-child {
    border-radius: 0 0 10px 0;
}

tr td:last-child {
    border-right: none;
}

/* td div {
    height: 1.33vh;
    max-height: 200px;
    overflow-x: auto;
} */

.yandex_projects {
    display: flex;
    justify-content: center;
    width: 100%;
}

.yandex_projects main {
    width: 100%;
    height: fit-content;
    padding-left: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

td select {
    border-radius: inherit;
}

.bidding_forms form {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-content: space-around;
    flex-wrap: wrap;
}

.bidding_forms form input {
    width: 150px;
    text-align: center;
}

.bidding_forms form button {
    margin-top: 10px;
}

.loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 2s linear infinite;
    margin: 20px auto;
}

.hidden {
    display: none;
}

.circle {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid;
    border-radius: 50%;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.btn-trash {
    background: none;
    border: none;
    /* color: #d9534f; */
    /* Красный цвет для иконки */
    cursor: pointer;
    padding: 0;
    font-size: 1em;
    transition: transform .7s ease-in-out;
}

.btn-trash:hover {
    /* color: #c9312c; */
    background-color: unset;
    transform: rotate(180deg);
}

.right_arrow {
    text-decoration: none;
    color: #7600FF;
    transition: transform .5s ease-in-out;
    transform: scale(1.5);
}

.right_arrow:hover {
    transform: scale(2.5);
}

.cut_text_200 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: fit-content;
    max-width: 200px;
    display: block;
}

.cut_text_300 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: fit-content;
    max-width: 300px;
    display: block;
}

.param_block {
    /* width: 350px; */
    margin-left: 20px;
}

.param_block form select {
    margin-bottom: 5px;
    width: 300px;
}

.button-stage {
    width: 300px;
    border: 1px solid #dee2e6 !important;
    margin-bottom: 5px;
    text-align: start !important;
}

.select-stages {
    width: 300px;
    height: auto;
    max-height: 500px;
    overflow: auto;
    border: 1px solid #dee2e6 !important;
    border-radius: 5px;
    margin-bottom: 5px;
    padding: .375rem .75rem;
}

.select-stages label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.config_block {
    position: fixed;
    right: 10%;
    top: 30px;
}

.config_block_param {
    border: 1px solid #777777;
    border-radius: 5px;
    margin-bottom: 5px;
    padding: 5px;
}

.config_block_param h5 {
    width: max-content;
}

.checked-block {
    display: block;
    width: fit-content;
    max-width: 350px;
    height: 200px;
    border-radius: 5px;
    padding: 5px;
    overflow: auto;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

/* .drop_down_list span {
    border: 2px solid grey;
    padding: 5px;
    cursor: pointer;
}

.drop_down_list div {
    display: none;
}

.drop_down_list div a {
    border: 2px solid grey;
    padding: 5px;
    cursor: pointer;
    text-decoration: none;
}

/* При наведении на span отображается вложенный div */
/*
.drop_down_list:hover div {
    display: flex;
    flex-direction: column;
} */

.metrika-counter {
    margin-left: 5px;
}

.metrika-counter:hover {
    background-color: #BCEBDD;
}

.test {
    width: content;
    height: fit-content;
    max-height: 450px;
    overflow-x: auto;
    border: 1px solid #777777;
    border-radius: 5px;
    padding-left: 10px;
}

.test a {
    text-decoration: none;
    outline: none;
    color: black;
}

.test a:hover {
    color: rgb(35, 53, 255);
    background-color: #c2c2c2;
}

.text-decoration-none {
    text-decoration: none;
    color: black;
}

/* .table-amocrm-deals {
    table-layout: fixed;
} */

/* .table-amocrm-deals th {
    width: 200px;
    border: 1px solid black !important;
    text-align: center;
    vertical-align: middle;
}

.table-amocrm-deals tbody tr{
    display: flex;
}

.table-amocrm-deals tbody tr td ul li {
    width: 200px;
    height: 100px;
    border: 1px solid black !important;
    text-align: center;
    vertical-align: middle;
} */

/* .table-amocrm-deals thead tr th {
    display: flex;
    width: 200px;
}

.table-amocrm-deals tbody tr td {
    display: flex;
    width: 200px;
} */
.table-amocrm-deals {
    font-size: small;
    width: 90vw;
    overflow: auto;
}

.table-amocrm-deals td {
    vertical-align: unset;
    padding: 0;
    /* border: 1px solid white !important; */
}

.table-amocrm-deals thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    /* Увеличиваем z-index, чтобы заголовок был поверх содержимого */
}

.table-amocrm-deals td div {
    display: flex;
    flex-direction: column;
}

.table-amocrm-deals td div span {
    border: 1px solid white;
    width: 250px;
    height: fit-content;
}

.bids-table {
    display: block;
    width: auto;
    max-width: 90%;
    height: fit-content;
    max-height: 80vh;
    overflow: auto;
}

.container {
    margin: 0 !important;
    ;
}

pre.whatsapp-script-code {
    white-space: pre-line;
    background-color: #f4f4f4;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.goals-list {
    max-height: 60vh;
    width: fit-content;
    max-width: 80vw;
    overflow: auto;
}

#myChart {
    width: 400px !important;
    /* Принудительно устанавливаем ширину */
    height: 200px !important;
    /* Принудительно устанавливаем высоту */
    box-sizing: content-box;
    /* Убираем влияние padding и border на размеры */
    display: block;
    /* Убираем влияние flex или grid */
    max-width: none;
    /* Убираем ограничения по max-width */
    max-height: none;
    /* Убираем ограничения по max-height */
    margin: 0 auto;
    /* Если нужно центрирование */
}

/* override x.xhtml.ru style */
/* *,
html * {
    scrollbar-width: thin;
    scrollbar-color: blue orange;
} */

/* *::-webkit-scrollbar,
html *::-webkit-scrollbar {
    height: 12px;
    width: 5px;
}

*::-webkit-scrollbar-track,
html *::-webkit-scrollbar-track {
    background: orange;
}

*::-webkit-scrollbar-thumb,
html *::-webkit-scrollbar-thumb {
    background-color: orange;
    border-radius: 2px;
    border: 1px solid grey;
} */

.display-none {
    display: none;
}

.end-10 {
    right: 10% !important;
}

.end-20 {
    right: 20% !important;
}

.end-30 {
    right: 30% !important;
}

.end-40 {
    right: 40% !important;
}

.top-10 {
    top: 10% !important;
}

.top-20 {
    top: 20% !important;
}

.top-30 {
    top: 30% !important;
}

.top-40 {
    top: 40% !important;
}

.beta-test::after {
    content: 'βeta';
    font-size: 12px;
    vertical-align: super;
    color: red;
    position: relative;
    left: 5px;
}

.beta-test-black::after {
    content: 'βeta';
    font-size: 12px;
    vertical-align: super;
    color: rgb(0, 0, 0);
    position: relative;
    left: 5px;
}

.beta-test-white::after {
    content: 'βeta';
    font-size: 12px;
    vertical-align: super;
    color: rgb(255, 255, 255);
    position: relative;
    left: 5px;
}

.beta-test-green::after {
    content: 'βeta';
    font-size: 12px;
    vertical-align: super;
    color: rgb(21, 255, 0);
    position: relative;
    left: 5px;
}

.margin-0 {
    margin: unset !important;
}

@media (max-width: 600px) {

    .grid-template-column-3,
    .grid-template-column-4,
    .grid-template-column-5 {
        display: grid;
        text-align: center;
    }
}

@media (min-width: 600px) {
    .grid-template-column-3 {
        display: grid;
        grid-template-columns: repeat(3, 3fr);
        text-align: center;
    }

    .grid-template-column-4 {
        display: grid;
        grid-template-columns: repeat(4, 3fr);
        text-align: center;
    }

    .grid-template-column-5 {
        display: grid;
        grid-template-columns: repeat(5, 3fr);
        text-align: center;
    }
}

/* Анимации для условных строк */
.conditional-row {
    transition: all 0.3s ease-in-out;
}

/* Улучшенный внешний вид для чекбоксов и селектов */
.form-check-input:checked {
    @apply bg-blue-600 border-blue-600;
}

.form-select-sm {
    @apply text-sm py-1 px-2;
}

/* Адаптивность */
@media (max-width: 768px) {
    .table-row-grid {
        grid-template-columns: 1fr;
    }

    .table-cell {
        border-bottom: 1px solid #e5e7eb;
    }

    .table-cell:first-child {
        @apply font-semibold bg-gray-50;
    }
}
