@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

a, .btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

tr.hotRow td.table-active.bg-primary {
    background-color: lightcoral !important;
}

.spinner {
    border: 16px solid silver;
    border-top: 16px solid #337Ab9;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin 700ms linear infinite;
    top: 40%;
    left: 55%;
    position: absolute;
}

@keyframes spin {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(360deg)
    }
}

.top-row-next {
    top: 0px;
    z-index: 1;
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: center;
    height: 3.5rem;
    display: flex;
    align-items: center;
    margin-top: -1px;
    margin-bottom: 6px;
}

.modal-dialog-450px {
    width: 450px !important;
    max-width: 450px !important;
}

.modal-dialog-525px {
    width: 525px !important;
    max-width: 525px !important;
}

.modal-dialog-600px {
    width: 600px !important;
    max-width: 600px !important;
}

.modal-dialog-700px {
    width: 700px !important;
    max-width: 700px !important;
}

.modal-dialog-1000px {
    width: 1000px !important;
    max-width: 1000px !important;
}


.modal-dialog-1325px {
    width: 1325px !important;
    max-width: 1325px !important;
}

    .modal-dialog-1325px .modal-content {
        box-shadow: 0 1px 12px #f7f7f7;
    }


    .modal-dialog-1325px .card-header {
        background-color: #343a40 !important;
        color: white;
    }

        .modal-dialog-1325px .card-header span {
            display: block;
            text-align: center;
            width: 100%;
        }

    .modal-dialog-1325px .comp-animation {
        animation: fadeIn 0.3s ease-in-out;
    }

.comp-animation {
    animation: fadeIn 0.3s ease-in-out;
}

.login-animation {
    animation: fadeIn2 0.7s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.97);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeIn2 {
    0% {
        opacity: 0;
        transform: scale(0.97);
        background-color: rgba(0, 0, 0, 0.1);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        background-color: rgba(0, 0, 0, 0);
    }
}


.modal-dialog-1500px {
    width: 1500px !important;
    max-width: 1500px !important;
}

.modal-dialog-700px {
    width: 700px !important;
    max-width: 700px !important;
}


dxbl-modal > .dxbs-modal > .dxbs-popup {
    width: 1325px !important;
}

.input-group .dxbs-textbox, .input-group .dxbs-memo, .input-group .dxbs-button-edit, .input-group .dxbs-spin-edit, .input-group .dxbs-dropdown-edit {
    width: 54%;
}

.scroll {
    max-height: calc(54vh + 27px);
    min-width: 292px;
    overflow-y: auto;
}

.line-height-name {
    white-space: normal !important;
    padding: 0 !important;
    font-size: 13px !important;
    line-height: 12px !important;
    padding-left: 11px !important;
    padding-right: 11px !important;
    text-align: left !important;
    height: calc(1.4em + 0.8rem) !important;
}

/*Escalation*/
.input-group-text-color {
    width: 250px;
    white-space: normal !important;
    padding: 0 !important;
    font-size: 13px !important;
    line-height: 12px !important;
    padding-left: 11px !important;
    padding-right: 11px !important;
    text-align: left !important;
    height: calc(1.4em + 0.8rem) !important;
}

.text-width {
    width: 72px !important;
}

.text-mail-width {
    width: 160px !important;
}

.hiddenn {
    display: none !important;
}


.params-box {
    border: 2px solid #ccc;
    width: 136px;
}

.ui-state-active {
    background-color: #9dc8e2;
}

.ui-draggable {
    margin-bottom: 3px;
}

    .ui-draggable:hover {
        cursor: grab !important;
    }

    .ui-draggable:active {
        cursor: grabbing !important;
    }

.parameters {
    height: 149px;
    overflow-x: hidden;
}

#allfields li {
    /*border: 3px solid #FFFFFF;*/
    border-radius: 2px;
    background-color: #4180dd;
    color: #FFFFFF;
    margin: 2px;
}

    #allfields li:hover {
        /*border: 3px solid #FFFFFF;*/
        border-radius: 2px;
        background-color: #dd417f;
    }

.ui-state-highlight {
    border: 1px solid #ffcaca;
    background: #ffef94;
    color: #363636;
    margin-left: -3px;
}

.createSpan {
    color: black;
    border: 1px solid black;
    display: inline-block;
}

.AtmSelectionHeight {
    height: 400px;
}

/*///////////////*/
.imagecenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 25%;
}

.loading {
    z-index: 3000 !important;
}

/* List group */
ul.list-group:not(:nth-child(1)) > li.list-group-item {
    border-top-width: 0px;
}

ul.list-group > li.list-group-item {
    border-radius: 0px !important;
}

ul.list-group:nth-child(1) > li.list-group-item:nth-child(1) {
    border-top-left-radius: .25rem !important;
}

ul.list-group:nth-child(1) > li.list-group-item:nth-last-child(1) {
    border-top-right-radius: .25rem !important;
}

ul.list-group:nth-last-child(1) > li.list-group-item:nth-child(1) {
    border-bottom-left-radius: .25rem !important;
}

ul.list-group:nth-last-child(1) > li.list-group-item:nth-last-child(1) {
    border-bottom-right-radius: .25rem !important;
}

html, body {
    height: 100%;
    margin: 0;
    overflow: hidden; /* Prevents unwanted scrolling */
}

.full-height-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 130px);
    overflow: hidden;
}

.grid-container {
    flex-grow: 1; /* Makes sure the grid takes the remaining space */
    overflow-y: auto;
}

.report-grid {
    font-size: 12px; /* or whatever size you prefer */
}

.d-grid {
    display: grid !important;
}

    .d-grid div {
        max-height: 60vh;
    }



@media (min-height: 720px) and (max-height: 800px) {
    .d-grid div {
        max-height: 51vh;
    }
}

@media (min-height: 801px) and (max-height: 820px) {
    .d-grid div {
        max-height: 55vh;
    }
}

@media (min-height: 821px) and (max-height: 840px) {
    .d-grid div {
        max-height: 56vh;
    }
}

@media (min-height: 841px) and (max-height: 879px) {
    .d-grid div {
        max-height: 57vh;
    }
}

@media (min-height: 880px) and (max-height: 920px) {
    .d-grid div {
        max-height: 60vh;
    }
}

@media (min-height: 921px) and (max-height: 948px) {
    .d-grid div {
        max-height: 61vh;
    }
}

@media (min-height: 949px) and (max-height: 999px) {
    .d-grid div {
        max-height: 63vh;
    }
}

@media (min-height: 1000px) and (max-height: 1049px) {
    .d-grid div {
        max-height: 65vh;
    }
}

@media (min-height: 1050px) and (max-height: 1089px) {
    .d-grid div {
        max-height: 67vh;
    }
}

@media (min-height: 1090px) and (max-height: 1199px) {
    .d-grid div {
        max-height: 68vh;
    }
}

@media (min-height: 1200px) and (max-height: 1339px) {
    .d-grid div {
        max-height: 70vh;
    }
}

@media (min-height: 1340px) and (max-height: 1440px) {
    .d-grid div {
        max-height: 73vh;
    }
}

.dxbl-grid-group-panel-container {
    max-height: 60px;
}

.dx-data-row td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 500px;
}

.sidebar-expanded {
    width: 200px !important;
    transition: width 0.3s ease;
}

.sidebar-collapsed {
    width: 40px !important;
    overflow: hidden;
    transition: width 0.3s ease;
    padding: 0 !important;
}

.vertical-toggle {
    width: 10px;
    background-color: #ddd;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease-in-out;
}

    .vertical-toggle:hover {
        background-color: #bbb;
    }

.toggle-icon {
    writing-mode: vertical-rl;
    font-size: 14px;
    color: #333;
}

.dynamic-popup {
    width: auto !important;
    max-width: auto !important;
}

.result-normal {
    background-color: #d4edda; /* greenish */
    color: #155724;
}

.result-abnormal {
    background-color: #f8d7da; /* reddish */
    color: #721c24;
}

.result-high {
    background-color: #fff3cd; /* yellowish */
    color: #856404;
}

.result-low {
    background-color: #cce5ff; /* bluish */
    color: #004085;
}
/* fallback/default style */
.result-unknown {
    background-color: #e2e3e5;
    color: #383d41;
}

.custom-grid-success-msg {
    background-color: #28a745;
    color: white;
    text-align: center;
    width: 100%;
    margin-top: 5px;
    margin-bottom: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    font-weight: 500;
    font-size: 1rem;
    animation: fadeIn 0.3s ease-in-out;
}

.custom-grid-warning-msg {
    background-color: #ffc107;
    color: #212529;
    text-align: center;
    width: 100%;
    margin-top: 5px;
    margin-bottom: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    font-weight: 500;
    font-size: 1rem;
    animation: fadeIn 0.3s ease-in-out;
}

.custom-grid-danger-msg {
    background-color: #dc3545;
    color: white;
    text-align: center;
    width: 100%;
    margin-top: 5px;
    margin-bottom: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    font-weight: 500;
    font-size: 1rem;
    animation: fadeIn 0.3s ease-in-out;
}

/*.tt-list-item-100 span {
    width: calc(100% - 1.5rem) !important;
}*/
