/* reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Въвеждане на вариативния шрифт */
@font-face {
    font-family: 'Oswald';
    src: url('../fonts/Oswald-VariableFont_wght.ttf') format('truetype');
    font-weight: 200 700;
    font-style: normal;
}

/* Въвеждане на вариативния шрифт */
@font-face {
    font-family: 'Jost';
    src: url('../fonts/Jost-VariableFont_wght.ttf') format('truetype');
    font-weight: 200 700;
    font-style: normal;
}

#button {
    display: inline-block;
    background-color: rgba(102, 178, 187, 1);
    width: 35px;
    height: 35px;
    text-align: center;
    border-radius: 4px;
    position: fixed;
    bottom: 20px;
    right: 20px;
    /* transition: background-color .3s,
        opacity .5s, visibility .5s;
    opacity: 0; */
    visibility: hidden;
    z-index: 1000;
}

#button::after {
    content: "\F145";
    font-family: 'bootstrap-icons';
    font-weight: normal;
    font-style: normal;
    font-size: 2rem;
    line-height: 35px;
    color: #fff;
}

#button:hover {
    cursor: pointer;
    background-color: rgba(102, 178, 187, 0.8);
}

#button:active {
    background-color: rgba(102, 178, 187, 1);
}

#button.show {
    opacity: 1;
    visibility: visible;
}

body {
    font-family: "Oswald", sans-serif;
    font-size: 0.875rem;
}

/* navbar */
.navbar {
    background: rgba(102, 178, 187, 1.0);

}

.btn-close-xs {
    width: 0.65rem;
    height: 0.65rem;
    padding: 0.2rem;
    background-size: 0.65rem;
    opacity: 0.7;
}

.navbar-toggler {
    border: 0;
}

.navbar-toggler-icon {
    /* filter: invert(1); */
    border-color: #ffffff;

}

.navbar-toggler:focus,
.navbar-toggler-icon:focus {
    outline: none;
    box-shadow: none;
}


.btn-close-xs:hover {
    opacity: 1;
}

/* offcanvas */
.offcanvas {
    width: 98% !important;
    max-width: 400px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

/* .offcanvas-body {
    overflow-y: visible !important;
} */

/* секции */
.menu-section {
    width: 100% !important;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid #cccccc;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
}

hr {
    color: rgba(161, 11, 11, 1);
}

input,
select {
    max-width: 100px;
    max-height: 50px;
}

#startDate,
#endDate {
    min-width: 180px;
    max-height: 50px;

}


/* текст */
.labels {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(161, 11, 11, 1);
}

/* input */
.small-input {
    font-size: 0.85rem;
    padding: 6px 8px;
}

/* smooth scroll */
.offcanvas-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.chart-container {
    width: 100%;
    height: 25vh;
    position: relative;
    padding: 0.625rem;
    /* border: 1px solid; */
}

.chart-containermap {
    width: 100%;
    /* height: 85vh; */
    position: relative;
    padding: 0.625rem;
    border: 1px solid rgba(161, 11, 11, 1);
}

canvas {
    width: 100% !important;
    height: 100% !important;
}

#map {
    width: 100%;
    height: 70vh;
    position: relative;
}

@media (max-width: 1024px) {
    #map {
        width: 100%;
        height: 50vh;
        position: relative;
    }
}

.scrollable-table {
    max-height: 100%;
    overflow-y: auto;
    font-size: 12px;
}


/* Когато редът е избран */
/* лек син фон за целия ред */
.active-row {
    background-color: #e0f0ff !important;
}

/* Оцветяване на първата клетка (датата) */
.active-date {
    background-color: #0078d7 !important;
    /* син фон */
    color: white !important;
    font-weight: bold;
}

@media (max-width: 1300px) {
    .chart-container {
        width: 100%;
        height: 60vh;
        position: relative;
    }

    /* .scrollable-table {
        max-height: 100%;
        overflow-y: auto;
        font-size: 12px;
    } */
}



@media (max-width: 820px) {

    .header-text {
        font-size: 0.875rem;

    }

    .chart-container {
        width: 100%;
        height: 33vh;
        position: relative;
    }

    /* .scrollable-table {
        max-height: 100%;
        overflow-y: auto;
        font-size: 12px;
    } */
    /* .flatpickr-calendar {
  transform: scale(0.8);
  transform-origin: top left;
} */


    /* .flatpickr-day {
        max-width: 26px;
        height: 26px;
        line-height: 26px;
        font-size: 11px;
    } */
}

tbody tr:hover {
    cursor: pointer;
    /* background-color: red; */
    background-color: rgba(255, 0, 0, 0.8);
}

/* .flatpickr-calendar {
    transform: scale(0.8);
    transform-origin: top left;
} */