html, body {
    font-family: 'Figtree', sans-serif;
    color: var(--color-kazark-gray-1);
}

:root {
    --color-kazark-gray-1: #7B839C;
    --color-kazark-dark-1: #030916;
    --color-kazark-dark-2: #171C28;
    --color-kazark-dark-3: #262D3F;
    --color-kazark-blue-2-new: #4596FF;
    --color-kazark-blue-new: #0E62D0;
    --color-kazark-light-0: #7B839C;
    --color-kazark-light-1: #E1E7F7;
}

.layout-wrapper {
    background-image: none !important;
    background-color: #030916 !important;
}

.content {

}

.layout-wrapper .sidebar {
    margin-left: 50px;
    margin-top: 30px;
    margin-bottom: 10px;
}

.layout-wrapper .sidebar .header {
    border-radius: 1.25rem 1.25rem 0 0;
}

.layout-wrapper .sidebar .content {
    border-radius: 0 0 1.25rem 1.25rem;
}

.main .header {
    margin-top: 30px;
    margin-left: 10px;
    margin-right: 50px;
    border-radius: 1.25rem;
}

.main .header .b-bar-horizontal {
    border-radius: 1.25rem;
    padding-left: 20px;
}

.main > .content {
    border-radius: 1.25rem 0 0 0;
    margin-bottom: 10px;
    margin-right: 50px;
}

.modal-content {
    background-color: var(--color-kazark-dark-3);
}

.form-label {
    color: var(--color-kazark-gray-1);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.grid {
    display: table !important;
}


.buttons-list {
    text-align: end;
}

.buttons-list button {
    margin-right: 0.5em;
}

.buttons-list button:last-child {
    margin-right: 0;
}

div.navigation {
    width: 100%;
}

.logs-table {
    border: 1px solid #d2d2d2;
    border-radius: 0.5rem;
}

.logs-table table {
    width: 100%;
    word-break: break-word;
}

.logs-table td {
    padding: 0.5rem;
}

.logs-table th {
    background-color: #f7f7f7;
    padding: 0.5rem;
    text-align: left;
    min-width: 12rem;
}

.zoomable-image {
    cursor: zoom-in;
}


div.header,
.b-bar-horizontal,
.b-bar-horizontal > div > div.navbar-nav.me-auto > div.nav-item.dropdown > div > a {
    background-color: transparent !important;
    color: white !important;
}

div.header {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.main .header .navbar-nav .nav-item {
    display: flex;
    align-items: center;
}

.main .nav-item h4 {
    margin: 0;
}

.b-bar-horizontal > div > div.navbar-nav.me-auto > div > a,
.b-bar-horizontal > div > div.navbar-nav.ms-auto > div > h4,
.b-bar-horizontal > div > div.navbar-nav.ms-auto > div > button,
div.navbar-nav > a.nav-link {
    color: white !important;
}

.b-bar-menu {
    background-image: none !important;
}

.b-bar-vertical-inline {
    background-color: transparent !important;
}

.b-bar-start {
    padding: 25px;
    min-width: 260px;
}

/* 20px vertical gap between menu items, matching Figma 1.0 Dashboard - Menu Open */
.b-bar-start,
.b-bar-end {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Each top-level menu item */
.b-bar-link {
    padding: 10px 20px !important;
    border-radius: 15px !important;
    min-height: 44px;
    display: flex !important;
    align-items: center !important;
    color: var(--color-kazark-light-1) !important;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.2;
}

/* Dropdown menu wrapping sub-items: same 20px gap, plus 20px gap from parent */
.b-bar-dropdown-menu {
    background-color: inherit !important;
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 20px;
}

.b-bar-dropdown-menu a {
    word-break: break-word;
}

/* Sub-items: 39px height, 54px left indent (Figma) */
.b-bar-dropdown-item {
    padding: 10px 20px 10px 54px !important;
    border-radius: 15px !important;
    min-height: 39px;
    display: flex !important;
    align-items: center !important;
    color: var(--color-kazark-light-1) !important;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.2;
}

.b-bar-link.active,
.b-bar-dropdown-item.active {
    background-color: var(--color-kazark-dark-1) !important;
    border-radius: 15px !important;
    color: var(--color-kazark-blue-2-new) !important;
}

/* Active item icon picks up the same blue */
.b-bar-link.active .b-bar-icon,
.b-bar-link.active i,
.b-bar-dropdown-item.active .b-bar-icon,
.b-bar-dropdown-item.active i {
    color: var(--color-kazark-blue-2-new) !important;
}

/* Push the dropdown toggle chevron to the right side of the link.
   Blazorise renders the chevron as a ::before pseudo-element on
   .b-bar-dropdown-toggle, using float: right to land it on the right.
   Because .b-bar-link is display: flex (above), the float is ignored and
   the ::before becomes the first flex item — appearing on the left of
   the icon and label. Reorder it to the end and let it sit at the right. */
.b-bar-vertical-inline .b-bar-dropdown .b-bar-dropdown-toggle:before {
    order: 99 !important;
    margin-left: auto !important;
    top: auto !important;
}

.b-bar-dropdown-item:not(.active):hover,
.b-bar-link:not(.active):hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-radius: 15px !important;
}

.b-bar-icon {
    margin: 0 10px 0 0 !important;
    color: inherit;
    width: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

div.b-bar-menu {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: var(--color-kazark-light-1);
}

div.navbar-toggle-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28 255,  255,  255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

#app > div:nth-child(2) > div > div.main.body-column > div.header > div.show-sidebar-button > a > span {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28 255,  255,  255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/*Authorizing on starting application*/
.page {
    display: none;
    background-color: #ffffff !important;
}


/* Autocomplete */
span.badge.bg-primary.ms-2 {
    background-color: var(--color-kazark-blue-2-new) !important;
    color: var(--color-kazark-dark-1);
    border-radius: 100px;
    font-weight: 600;
    letter-spacing: 0;
    font-size: 16px;
    padding: 5px 7px 5px 15px;
}

span.badge.bg-light.ms-2 {
    color: gray !important;
    border: 1px solid;
    border-radius: 1rem !important;
}

span.badge.bg-light.ms-2 .badge-close {
    display: none !important;
}

span.badge-close.bg-primary {
    background-color: inherit !important;
    border-color: #E6E9DC !important;
    color: var(--color-kazark-dark-1);
    padding: 0 5px 0 5px !important;
}

.form-control {
    border: 1px solid var(--color-kazark-dark-3);
    color: white;
    background-color: rgba(255, 255, 255, 0.10);
    border-radius: 10px !important;
    height: 54px;
}

.form-control:focus {
    box-shadow: none !important;
    border-color: var(--color-kazark-blue-2-new) !important;
    background-color: rgba(255, 255, 255, 0.20);
    color: white;
}

.form-control:disabled {
    background-color: rgba(255, 255, 255, 0.1);
}

/* increase dropdown height*/
.b-is-autocomplete .dropdown-menu {
    max-height: 65vh;
}

.alpha-autocomplete .dropdown.b-is-autocomplete.b-is-autocomplete-multipleselection {
    border: none;
}

.alpha-autocomplete .dropdown.b-is-autocomplete.b-is-autocomplete-multipleselection.focus {
    border: none;
}

.b-is-autocomplete.b-is-autocomplete-multipleselection > input.form-control:not(.is-valid, .is-invalid) {
    border: 1px solid var(--color-kazark-dark-3);
}

.b-is-autocomplete.b-is-autocomplete-multipleselection.focus {
    box-shadow: none;
}

/* =========================
   Auto complete
   ========================= */

.alpha-autocomplete:has(.dropdown.focus) {
    background-color: rgba(255, 255, 255, 0.20);
    border: 1px solid var(--color-kazark-blue-2-new) !important;
}

.alpha-autocomplete {
    background-color: rgba(255, 255, 255, 0.10);
    border-radius: 10px;
    height: 54px;
    display: flex;
    align-items: center;

    input.form-control.text-.bg-:focus,
    .focus {
        background: transparent !important;
    }

    input.form-control.text-.bg- {
        border: none !important;
    }

    .dropdown-menu {
        background-color: var(--color-kazark-dark-2);

        a,
        #b-is-autocomplete-suggestion-0 {
            color: white !important;
        }

        a:hover {
            color: var(--color-kazark-blue-2-new);
            background-color: var(--color-kazark-dark-2);
        }

        ::-webkit-scrollbar {
            width: 10px;
            height: 10px;
        }

        ::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.08);
            border-radius: 1.25rem;
        }

        ::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.30);
            border-radius: 1.25rem;
            border: 2px solid rgba(255, 255, 255, 0.08);
        }

        ::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.45);
        }

        /* Firefox - .dark-scroll */
    {
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.35) rgba(255, 255, 255, 0.10);
    }
    }
}

/* =========================
   Calendar changes
   ========================= */

/* fix calendar positioning bug */
.flatpickr-calendar.static {
    top: unset !important;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.flatpickr-calendar {
    background: var(--color-kazark-dark-2);

    .flatpickr-day,
    .flatpickr-prev-month,
    .flatpickr-next-month,
    .numInput.cur-year,
    .flatpickr-monthDropdown-months,
    .flatpickr-weekday {
        color: var(--color-kazark-gray-1);
    }

    .flatpickr-day.selected {
        background: var(--color-kazark-blue-new);
    }

    .flatpickr-day.prevMonthDay:hover {
        background: var(--color-kazark-dark-3);
    }

    .flatpickr-day.prevMonthDay {
        color: white;
    }

    .flatpickr-prev-month,
    .flatpickr-next-month,
    .flatpickr-prev-month:hover,
    .flatpickr-next-month:hover {
        color: var(--color-kazark-blue-2-new);
        background: #5A637D;
    }
}


/* =========================
   LIGHT scrollbar
   ========================= */

/* WebKit (Chrome/Edge/Safari) - .light-scroll */
.light-scroll::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.light-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 1.25rem;
}

.light-scroll::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 1.25rem;
    border: 2px solid #f1f1f1;
}

.light-scroll::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Firefox - .light-scroll */
.light-scroll {
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}


/* =========================
   DARK scrollbar
   ========================= */

/* WebKit (Chrome/Edge/Safari) - .dark-scroll */
.content::-webkit-scrollbar,
.dark-scroll::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.content::-webkit-scrollbar-track,
.dark-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
}

.content::-webkit-scrollbar-thumb,
.dark-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.30);
    border-radius: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.08);
}

.content::-webkit-scrollbar-thumb:hover,
.dark-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.45);
}

/* Firefox - .dark-scroll */
.content,
.dark-scroll {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.35) rgba(255, 255, 255, 0.10);
}

.table {
    color: white;
    border-color: gray;
}

.card {
    background-color: transparent;
}

.form-select {
    background-color: transparent;
    border: 1px solid var(--color-kazark-dark-3);
    color: white;
}

.form-select:focus {
    box-shadow: none !important;
    border-color: var(--color-kazark-blue-2-new) !important;
    background-color: transparent;
    color: white;
}

.form-select:disabled {
    box-shadow: none !important;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.accordion {
    background-color: transparent;
}

.accordion-item {
    background-color: transparent;
    border: none;
}

.accordion-header {
    background-color: transparent;
}

.accordion-button {
    background-color: transparent !important;
    color: white !important;
}


option {
    background-color: var(--color-kazark-dark-2);
}

.command-button-kazark {
    background-color: var(--color-kazark-blue-new);
    color: white;
    border: none;
    border-radius: 5rem !important;
    transition: background-color 0.2s;
    width: 54px;
    height: 54px;
}

.command-button-kazark:hover {
    background-color: var(--color-kazark-blue-2-new);
    color: white;
}

.secondary-kazark-button {
    background-color: rgba(255, 255, 255, 0.1);
}

.secondary-kazark-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.tertiary-kazark-button {
    background-color: rgba(255, 255, 255, 0.2);
}

.tertiary-kazark-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.shortcuts-modal .modal-dialog {
    max-width: min(1600px, 95vw);
}

.shortcuts-modal .modal-content {
    background-color: var(--color-kazark-dark-1);
    color: #F9FCFF;
    border-radius: 1.25rem;
    padding: 2.5rem;
    border: 1px solid var(--color-kazark-dark-3);
}

.shortcuts-modal .modal-header {
    border-bottom: none;
    padding: 0;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.shortcuts-modal .modal-body {
    padding: 0;
}

/* Map */
.gmnoprint .gm-style-mtc button {
    border-radius: 100px !important;
    color: var(--color-kazark-light-1) !important;
    background-color: rgba(3, 9, 22, 0.75) !important;
}

.gm-control-active,
.gm-svpc {
    border-radius: 100px !important;
    background-color: rgba(3, 9, 22, 0.75) !important;
    color: var(--color-kazark-light-1) !important;
}

/* Header text */
.main .navigation .nav-item button,
.main .navigation .nav-item h4 {
    font-size: 16px;
    font-weight: 700;
    line-height: 22px;
    letter-spacing: 0.1px;
    text-decoration: none;
}

/* Loading indicator style START */
.li-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 0;
    background: rgba(0, 0, 0, 0.0);
    z-index: 2000;
    pointer-events: none;
}

.li-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.li-bar__indeterminate {
    position: absolute;
    top: 0;
    height: 100%;
    width: 30%;
    background: currentColor;
    color: var(--color-kazark-blue-new);
    animation: li-slide 1.1s infinite ease-in-out;
    border-radius: 999px;
}

@keyframes li-slide {
    0% {
        left: -35%;
    }
    50% {
        left: 35%;
        width: 30%;
    }
    100% {
        left: 110%;
        width: 30%;
    }
}

.loading-scope {
    position: relative;
}

/* Loading indicator style END */

.dimension-group-header,
.dimension-item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-kazark-gray-1);
    line-height: 22px;
    letter-spacing: 0.2px;
}

.dimension-item-value,
.dimension-value,
.dimension-value span {
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
    letter-spacing: 0.5px;
}

h2.text-center:has(.fas.fa-circle-question.text-secondary) {
    display: none;
}

.image-on-document-display {
    display: block;
    width: 100%;
}

.image-on-document-display img {
    display: block;
    border-radius: 10px;
    width: 100%;
    height: auto;
}

.image-on-document-display a {
    display: block;
    margin-top: 0.25rem;
}

.kazark-primary-button {
    background-color: var(--color-kazark-blue-new);
    color: white;
    border: none;
    border-radius: 1rem !important;
    transition: background-color 0.2s;
    padding: 10px 14px;
    max-width: 220px;
}

.kazark-primary-button:hover {
    background-color: var(--color-kazark-blue-2-new);
}

.kazark-light-button {
    background-color: var(--color-kazark-light-1);
    border: none;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.kazark-light-button:hover {
    background-color: var(--color-kazark-light-0);
}

div.b-bar-dropdown>a.b-bar-link.b-bar-dropdown-toggle>div{
    display: flex;
    align-items: center;
}

div.b-bar-dropdown>a.b-bar-link.b-bar-dropdown-toggle>div>span.icon,
div.b-bar-item.root-menu-link>a.b-bar-link>span.icon
{
    margin-right: 10px;
    background-color: #E1E7F7;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

div.b-bar-item.root-menu-link>a.b-bar-link.active>span.icon {
    background-color: var(--color-kazark-blue-2-new);
}

/* =========================
   Tooltips (Blazorise / Tippy.js)
   ========================= */

/* Blazorise <Tooltip> renders through Tippy.js into <body>, so it lives outside component
   scope and can only be styled globally. Tippy sets max-width inline (default 350px), so
   !important is required to narrow it; text re-wraps within the new width automatically. */
.tippy-box[data-theme~="blazorise"] {
    max-width: 18rem !important;
}

