﻿:root {
    --hls-sidebar-width: 260px;
    --hls-navbar-height: 50px;
    --hls-red-light: #f8d7da;
    --hls-blue-light: #cfe2ff;
    --hls-green-light: #d7f0dd;
}

.modal {
    --bs-modal-zindex: 1060;
}

body {
    min-width: 300px;
}

textarea {
    resize: none;
}

.layout {
    width: 100%;
    height: 100vh;
    display: grid;
    grid: "headerbar headerbar" var(--hls-navbar-height) "leftbar contentarea" 1fr / auto 1fr;
    gap: 0px;
    border: 0px;
    overflow: hidden;
}

.headerbar {
    grid-area: headerbar;
    height: 50px;
}

.header-toggler {
    font-size: 32px;
    line-height: 1;
    background-color: transparent;
    border: none;
    transition: box-shadow 0.15s ease-in-out;
}

.leftbar {
    grid-area: leftbar;
    visibility: collapse;
    width: 0px;
    height: calc(100dvh - var(--hls-navbar-height));
    overflow: auto;
}

.contentarea {
    grid-area: contentarea;
    height: calc(100dvh - var(--hls-navbar-height));
}

.offcanvas-full {
    width: 100% !important;
    height: calc(100dvh - var(--hls-navbar-height));
    display: flex;
    margin-top: var(--hls-navbar-height);
    border-left: 0 !important;
}

.offcanvas-body {
    flex-grow: 1 !important;
}

.offcanvas-right {
    height: calc(100dvh - var(--hls-navbar-height));
    margin-top: var(--hls-navbar-height);
}

.authentication-base-form {
    width: 100%;
    max-width: 370px;
    margin: auto;
    padding: 15px;
}

.btn-primary {
    color: var(--bs-white) !important;
}

.text-red {
    color: var(--bs-red) !important;
}

.bg-red-light {
    background-color: var(--hls-red-light) !important;
}

.page-link:focus {
    outline: none;
    background-color: var(--bs-white) !important;
    box-shadow: none !important;
    -webkit-appearance: none;
}

.accordion-button,
.accordion-button:focus {
    outline: none;
    background-color: var(--bs-white) !important;
    box-shadow: none !important;
    -webkit-appearance: none;
}

.table tr.grow td {
    border-bottom-width: 0px;
    padding-top: 0px;
    padding-bottom: 0px;
}

    .table tr.grow td div.collapse {
        padding-top: 0px;
        padding-bottom: 0px;
    }

.table-accordion-button {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    margin-top: 1px;
    content: '';
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-caret-down' viewBox='0 0 16 16'> <path d='M3.204 5h9.592L8 10.481zm-.753.659 4.796 5.48a1 1 0 0 0 1.506 0l4.796-5.48c.566-.647.106-1.659-.753-1.659H3.204a1 1 0 0 0-.753 1.659'/> </svg>");
    background-repeat: no-repeat;
    background-size: 1rem;
    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, border-radius 0.15s ease;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0;
    font-size: 0.9rem;
    color: var(--bs-body-color);
    text-align: left;
    background-color: transparent;
    border: 0;
    border-radius: 0;
    overflow-anchor: none;
}

    .table-accordion-button:not(.collapsed) {
        background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-caret-up' viewBox='0 0 16 16'> <path d='M3.204 11h9.592L8 5.519zm-.753-.659 4.796-5.48a1 1 0 0 1 1.506 0l4.796 5.48c.566.647.106 1.659-.753 1.659H3.204a1 1 0 0 1-.753-1.659'/> </svg>");
    }

.table-accordion-button-th {
    font-size: 1rem;
    margin-top: 3px;
}

.table-autofit {
    white-space: nowrap;
    width: 100%;
}

    .table-autofit td,
    .table-autofit th {
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 0;
    }

        .table-autofit td.autosize,
        .table-autofit th.autosize {
            width: 1%;
            min-width: fit-content;
            max-width: unset;
        }

.td-show-sm,
.e-grid .td-show-sm,
.td-show-md,
.e-grid .td-show-md,
.td-show-lg,
.e-grid .td-show-lg,
.td-show-xl,
.e-grid .td-show-xl,
.td-show-xxl,
.e-grid .td-show-xxl {
    display: none;
}

.table-expander,
.table-more {
    vertical-align: middle !important;
}

.table-expander {
    padding: 2px 0px 2px 4px !important;
}

.table-more {
    padding: 2px 4px 2px 0px !important;
}

.e-grid .e-rowcell {
    cursor: pointer;
}

.e-gridfooter {
    display: none;
}

@media (min-width: 576px) {
    .td-show-sm, .e-grid .td-show-sm {
        display: table-cell;
    }

    .table-autofit td.autosize-sm,
    .table-autofit th.autosize-sm {
        width: 1%;
        min-width: fit-content;
        max-width: unset;
    }
}

@media (min-width: 768px) {
    .leftbar {
        visibility: visible;
        width: var(--hls-sidebar-width);
    }

    .td-show-md,
    .e-grid .td-show-md {
        display: table-cell;
    }

    .table-autofit td.autosize-md,
    .table-autofit th.autosize-md {
        width: 1%;
        min-width: fit-content;
        max-width: unset;
    }
}

@media (min-width: 992px) {
    .td-show-lg,
    .e-grid .td-show-lg {
        display: table-cell;
    }

    .table-autofit td.autosize-lg,
    .table-autofit th.autosize-lg {
        width: 1%;
        min-width: fit-content;
        max-width: unset;
    }
}

@media (min-width: 1200px) {
    .td-show-xl,
    .e-grid .td-show-xl {
        display: table-cell;
    }

    .table-autofit td.autosize-xl,
    .table-autofit th.autosize-xl {
        width: 1%;
        min-width: fit-content;
        max-width: unset;
    }
}

@media (min-width: 1400px) {
    .td-show-xxl,
    .e-grid .td-show-xxl {
        display: table-cell;
    }

    .table-autofit td.autosize-xxl,
    .table-autofit th.autosize-xxl {
        width: 1%;
        min-width: fit-content;
        max-width: unset;
    }
}

.cluster-div {
}

.table-sm-p0 > :not(caption) > * > * {
    padding: 0 !important;
}

.table-sm-p0 td {
    padding: 0 !important;
}

.autocomplete-menu {
    padding-top: 5px;
    padding-bottom: 5px;
    max-height: 300px;
    overflow-y: scroll;
}

.autocomplete-item {
    white-space: normal;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 2px;
    padding-bottom: 2px;
}

    .autocomplete-item:focus, .autocomplete-item:hover {
        cursor: pointer;
    }

.autocomplete-item-highlight {
    color: var(--bs-dropdown-link-hover-color);
    background-color: var(--bs-dropdown-link-hover-bg);
}