:root {
    --primary: #fdcb0a;
    --primary-h: #ffd325;
    --alternative: #e5f0ff;
    --dark: #25213e;
    --danger: #ca3a3a;
    --white: #ffffff;
    --dark-grey: #e5f0ff;
    --grey: #29313c;
    --light: #f6f7f9;
    --ohra: #cabfa8;
    --green: #5e9c3d;
    --dark-grey2: #1f2630;
    --bl-link: #7bcfff;
}

body {
    font-family: Rubik;
    font-weight: normal;
}

.app-logo {
    font-weight: 500;
    font-size: 30px;
    line-height: 36px;
    color: var(--dark);
}

.app-logo a {
    color: var(--dark);
    font-size: 20px;
}

#home-container {
    max-height: 50vh;
}

/* Datepicker */
.datepicker-wrapper {
    width: 100%;
}

.datepicker-icon {
    position: relative;
    bottom: 50px;
    right: -85%;
    color: var(--dark);
}

.datepicker-fb-icon {
    position: relative;
    bottom: 50px;
    right: -75%;
    color: var(--dark);
}

.date-full-btn {
    width: 100%;
}

/* Login form */
.login-card-body {
    border-radius: 5px;
    box-shadow: 0px 3px 5px 0px rgb(156 156 156 / 35%);
    border: none;
}

.btn.btn-primary,
.btn.btn-primary-icon {
    background: var(--primary);
    border-color: var(--primary);
    border-radius: 5px;
    font-weight: 700;
    font-size: 16px;
    color: var(--dark);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 24px;
}

.btn.btn-danger,
.btn.btn-danger-code {
    background: var(--danger);
    border-radius: 5px;
    font-weight: 700;
    font-size: 16px;
    color: var(--white);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 6px;
}

button.btn.btn-primary:active,
button.btn.btn-primary:hover,
.custom-select:active,
.custom-select:hover,
.btn.btn-primary-icon:hover,
.btn.btn-primary-icon:active,
a.btn-primary,
a.btn-primary:active,
a.btn-primary:hover {
    background: var(--primary-h);
    color: var(--dark);
}

.btn.btn-primary-icon {
    display: flex;
    justify-content: space-between;
}

.text-end {
    text-align: right;
}

.text-center {
    text-align: center;
}

.map {
    background-size: cover;
    height: 70vh;
}

.input-title {
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 17px;
}

.custom-select {
    background: var(--primary);
    height: 50px;
    border: none;
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    border-radius: 5px;
    color: var(--dark);
    display: inline-block;
}

.icon-select {
    color: var(--dark);
    position: relative;
    min-width: fit-content;
}

.icon-select>i {
    position: absolute;
    bottom: 35%;
    z-index: 1;
    width: 10px;
    right: 15px;
}

.big-header {
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 19px;
    color: var(--dark);
}

.sm-header {
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 17px;
    color: var(--dark);
}

.sm-text {
    color: var(--ohra);
    font-size: 14px;
}

.text-suc,
.suc-span {
    color: var(--green);
}

.suc-span {
    font-weight: bold;
}

.danger-span {
    font-weight: bold;
    color: var(--danger);
}

.danger-span i {
    transform: rotate(180deg);
}

.text-large {
    font-size: 22px;
    font-weight: bold;
}

.card {
    border: 1px solid var(--ohra);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.25);
    border-radius: 16px;
}

[class*="sidebar-light-"] .nav-sidebar>.nav-item.menu-open>.nav-link {
    background-color: var(--white);
    color: #343a40;
}

.sidebar-dark-primary .nav-sidebar>.nav-item>.nav-link.active {
    background-color: var(--primary);
    color: var(--dark);
}

.sidebar-light-primary .nav-sidebar>.nav-item>.nav-link.active:hover {
    background-color: var(--primary-h);
    color: var(--dark);
}

thead>tr>th:not(:first-child),
tbody>tr>td:not(:first-child) {
    vertical-align: middle;
    text-align: center;
}

thead>tr>th:first-child,
tbody>tr>td:first-child {
    vertical-align: middle;
    text-align: start;
}

.table-hover tbody tr:hover {
    color: #212529;
    background-color: #f1f1f1;
}

.card-table {
    border: 1px solid #eaeaea;
    border-radius: 5px;
}

.table thead th {
    border-bottom: none;
    border-top: none;
}

.card-header>p {
    font-style: normal;
    font-weight: 700;
    line-height: 19px;
    color: #2697ff;
    margin-bottom: 0px;
}

.divider-end {
    border-right: 1px solid var(--ohra);
}

.card-header>div>div>p>span:first-child {
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 17px;
}

.card-header>div>div>p {
    margin-top: 5px;
    margin-bottom: 5px;
}

tbody>tr>td:first-child,
tbody>tr>td:first-child>a {
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 15px;
    color: #2697ff;
}

.form-floating>.form-control:not(:-moz-placeholder-shown)~label {
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 14px;
    color: var(--dark);
    transform: scale(0.85) translateY(-1.5rem) translateX(0.15rem);
    background: white;
    width: auto;
    opacity: inherit;
    padding: 6px;
    height: auto;
    margin-top: 8px;
    margin-left: 5px;
}

.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label,
.form-floating>.form-control-plaintext~label,
.form-floating>.form-select~label {
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 14px;
    color: var(--dark);
    transform: scale(0.85) translateY(-1.5rem) translateX(0.15rem);
    background: white;
    width: auto;
    opacity: inherit;
    padding: 6px;
    height: auto;
    margin-top: 8px;
    margin-left: 5px;
}

label:not(.form-check-label):not(.custom-file-label) {
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 19px;
    color: var(--primary);
    color: black !important;
}

input[type="checkbox"] {
    accent-color: var(--primary) !important;
}

.link {
    color: #2697ff;
}

.link:hover {
    color: #0b5091;
}

.form-floating>.form-control:not(:-moz-placeholder-shown),
.form-floating>.form-control-plaintext:not(:-moz-placeholder-shown) {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
}

.form-floating>.form-control:focus,
.form-floating>.form-control:not(:placeholder-shown),
.form-floating>.form-control-plaintext:focus,
.form-floating>.form-control-plaintext:not(:placeholder-shown) {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
}

.form-control {
    font-style: normal;
    font-weight: 500;
    background: white;
    font-size: 20px;
    line-height: 19px;
    color: var(--dark);
    border: 1px solid var(--dark);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:active,
input:-webkit-autofill:focus {
    background-color: transparent !important;
    -webkit-box-shadow: 0 0 0 50px white inset;
    box-shadow: 0 0 0 50px white inset;
}

.sidebar-mini.sidebar-collapse .main-sidebar>.app-logo>a {
    opacity: 0;
    transition: opacity 0.2s;
}

.sidebar-mini .main-sidebar>.app-logo>a,
.sidebar-mini .main-sidebar:hover>.app-logo>a {
    opacity: 1;
    transition: opacity 1.5s;
}

/* Map */
#map {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 16px;
}

#dashboard-map {
    position: relative;
    width: 100%;
    height: 620px;
}

.page-map-container {
    position: relative;
    height: 80vh;
}

.region-hover-label {
    transition: opacity 0.2s ease;
    font-family: Arial, sans-serif;
}

.region-label {
    transition: opacity 0.3s ease;
    font-family: Arial, sans-serif;
}

.map-preloader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.map-preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader {
    border: 5px solid rgba(0, 0, 255, 0.2);
    border-radius: 50%;
    border-top: 5px solid var(--primary);
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

.loading-text {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

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

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

.gm-style .gm-style-iw-c {
    padding: 12px;
    border-radius: 8px;
}

.marker-cluster {
    background: #FF5722;
    border-radius: 50%;
    color: white;
    font-weight: bold;
    text-align: center;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.cluster-marker-item:hover {
    background-color: #f5f5f5;
}

.gm-style .gm-style-iw-c {
    padding: 0 !important;
    border-radius: 8px;
    max-width: 320px !important;
}

.gm-style .gm-style-iw-tc::after {
    background-color: white;
}

.card-preloader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    visibility: hidden;
}

.card-preloader .loader {
    border: 5px solid rgba(0, 0, 255, 0.2);
    border-radius: 50%;
    border-top: 5px solid var(--primary);
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

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

.ajax-filter .custom-select {
    max-width: 110px;
}

.list-group-flush>.list-group-item {
    border-width: 0 0 1px;
    min-height: 190px;
}

.horizontal-filters {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 5px;
}

.horizontal-filters .datepicker-wrapper {
    display: flex;
    width: auto;
}

.horizontal-filters .datepicker-wrapper .date-full-btn {
    padding-right: 40px;
    height: 50px;
}

.horizontal-filters .datepicker-wrapper .datepicker-icon {
    right: 30px;
}

.form-floating>#status {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.dark-text {
    color: var(--dark) !important;
}

.update-button {
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
        border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    height: calc(3.5rem + 2px);
    background: var(--primary);
    border-color: var(--primary);
    border-radius: 5px;
    font-weight: 700;
    font-size: 16px;
    color: var(--dark);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    display: inline-block;
    font-weight: 400;
    color: #212529;
    text-align: center;
}

.flex-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.black-tabs li button {
    color: var(--dark-grey2) !important;
    font-weight: bold;
    font-size: 16px;
}

.btn-calendar {
    padding: 16px 18px;
    font-weight: bold;
}

.btn-calendar i {
    margin-left: 11px;
}

.nav-btn {
    padding: 17px 24px;
}

.fw700 {
    font-weight: 700;
    font-size: 20px;
}

.h100 {
    height: 100%;
}

.table-border {
    border: #dee2e6 solid 1px;
    width: calc(100% - 50px);
}

.product-txt {
    color: #2697ff;
    font-size: 12px;
    font-weight: 600;
}

.top-title {
    font-size: 24px;
    color: var(--dark-grey2);
}

.region-title {
    color: var(--ohra);
    font-size: 12px;
    font-weight: 400;
}

.card-header-title {
    font-size: 16px;
    color: var(--dark-grey2);
    font-weight: 700;
}

.center-items {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.btn-container {
    max-width: 300px;
}

.click-none {
    pointer-events: none;
}

.link-secondary {
    color: var(--dark) !important;
}

.btn-light-2 {
    color: #1f2630;
    background-color: #d9d9d9;
}

.sl-light-p {
    font-weight: 400;
    font-size: 16px;
    color: #29313c;
    line-height: 1.2;
}

.left-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
    max-height: 100%;
}

.card-map {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.map-height {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.gray-bg {
    background-color: #f3f3f3;
}


.date-range {
    color: #000000;
    font-weight: 900;
    font-size: 20px;
}

.outsider-mb {
    margin-top: 20px;
}

.icon-select {
    max-width: 210px;
}

[data-bs-toggle="collapse"][aria-expanded="false"] .arrow-icon {
    transform: rotate(0deg);
}

[data-bs-toggle="collapse"][aria-expanded="true"] .arrow-icon {
    transform: rotate(180deg);
}

[data-bs-toggle="collapse"][aria-expanded="true"] .accordion-border {
    border: 3px solid var(--primary);
}

.clickable {
    cursor: pointer;
    border: 2px solid transparent;
}

.body-border {
    border: 3px solid var(--primary);
    border-top: 3px solid #dee2e6;
    padding: 15px;
    background-color: #f9f9f9;
}

.clickable[aria-expanded="false"] {
    border: 2px solid #dee2e6;
}

.clickable[aria-expanded="true"] {
    border: 3px solid var(--primary);
    border-bottom: 3px solid #dee2e6;
}

.pp-percent {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pp-pieces {
    display: flex;
    justify-content: center;
    align-items: center;
}

.selected-dates {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}

.bg-lt-gray {
    background-color: #f4f6f9;
}

.review-text {
    color: #1F2630;
    font-weight: normal;
    margin-top: 5px;
    text-align: left;
    word-break: break-word;
}

@media (max-width: 980px) {
    .review-text {
        display: -webkit-box;
        -webkit-line-clamp: 5;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}


.report-numbers {
    font-size: 22px;
    font-weight: bold;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
}

.report-title {
    font-weight: 700 !important;
}

.image-preview {
    max-width: 400px;
}

.menu-fas-icon {
    font-size: 24px !important;
    margin-right: 0 !important;
}

.flex-icon {
    width: 32px !important;
    margin-right: 0.2rem !important;
    display: flex;
    justify-content: center;
}

@media (max-width: 1881px) {
    .report-title {
        font-size: 14px;
        font-weight: 500 !important;
        color: #3d3d3d !important;
    }
}


@media (min-width: 1675px) {
    .ajax-filter .custom-select {
        max-width: 160px;
    }
}

@media (max-width: 1480px) {
    .min-txt {
        font-size: 14px;
    }
}

@media (max-width: 1345px) {
    .top-title {
        font-size: 18px;
    }
}

@media (max-width: 1580px) {
    .top-title {
        font-size: 18px;
    }
}

@media (max-width: 1320px) {
    .top-title {
        font-size: 16px;
    }
}

@media (max-width: 1560px) {
    .codes-w {
        min-width: 100%;
    }

    .text-large {
        font-size: 18px;
        font-weight: bold;
    }

    .sm-text {
        font-size: 11px;
    }
}

@media (min-width: 1560px) {
    .codes-w {
        max-width: 1200px;
    }

}

@media (max-width: 1890px) {
    .total-title {
        min-width: 100%;
    }

}

.lightbox-img {
    cursor: pointer;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.lightbox-content {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fa-trophy.gold {
    color: gold;
}

.fa-trophy.silver {
    color: silver;
}

.fa-trophy.bronze {
    color: #cd7f32;
}

.pp-pieces h5 {
    position: relative;
    display: inline-block;
}

.pp-pieces .fa-question {
    font-size: 0.5em;
    position: absolute;
    top: -0.5em;
    right: -1.8em;
    background-color: #000;
    color: #fff;
    border-radius: 50%;
    width: 1.5em;
    height: 1.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.2em;
    box-sizing: border-box;
}
