/* START
cater datepicker inside input-group. As datepicker is in input-group already, 
add form-control cssclass to datepicker.
*/
.input-group.date.form-control{
    border: 0;
    padding: 0;
}
.input-group.date.form-control+span.input-group-text.input-group-addon{
    background-color: transparent;
    border: 0;
}
/* DONE */

/* START
by default, each input will be validated on page load and will have cssclass "is-valid"
hide the "validated" style until found a way to disable validation on page load
*/
.disabled-aggresive-validation .form-control.is-valid{
    border: 1px solid var(--bs-component-border-color);
    background-image: none;
}
.disabled-aggresive-validation .form-control.is-valid:focus{
    box-shadow: 0 0 0 0.25rem rgba(52,143,226,.25);
}
.form-check-input.is-valid~.form-check-label, .was-validated .form-check-input:valid~.form-check-label{
    color: var(--bs-body-color)
}
.form-check-input.is-valid, .was-validated .form-check-input:valid {
    --bs-form-check-bg: var(--bs-component-bg);
    background-color: var(--bs-form-check-bg);
    background-image: var(--bs-form-check-bg-image);
    border: var(--bs-border-width) solid var(--bs-border-color);
}
.form-check-input.is-valid:checked, .was-validated .form-check-input:valid:checked {
    background-color: #348fe2;
    border-color: #348fe2;
}
/* DONE */

.datetimepicker {
    padding: 0;
}

.app-loader{
    opacity: 0.6;
}



#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;
}

.k-invalid~.invalid-tooltip{
    display: block;
}

.filter-info .badge{
    font-size: 1em;
}
.filter-info .badge .btn{
    color: var(--bs-badge-color);
}
.filter-info .badge .btn:hover{
    color: var(--bs-body-color);
}

/* Define the CSS style for the span when hovered */
.hover-style{
    text-decoration: underline;
}
.hover-style:hover {
    cursor: pointer; /* Change the cursor to a pointer */
    /* Add additional styles for hover state if needed */
}

@media screen {
    .PrintOnly {
        display: none;
    }

    .divResult_Margin_Top {
        margin-top: 70px;
        margin-left: 0px;
        margin-bottom: 10px;
    }
}

@media print {
    body {
        margin: 0;
        font-family: var(--bs-body-font-family);
        /* font-size: var(--bs-body-font-size); */
        font-size: 16px;
        font-weight: var(--bs-body-font-weight);
        line-height: var(--bs-body-line-height);
        color: var(--bs-body-color);
        text-align: var(--bs-body-text-align);
        /* background-color: var(--bs-body-bg); */
        background-color: #ffffff;
        -webkit-text-size-adjust: 100%;
        -webkit-tap-highlight-color: transparent;
    }

    .ScreenOnly {
        display: none;
    }

    /*.k-hierarchy-cell {
        display: none !important;
    }*/

    /* Setting for Print - S */
    .app-header-fixed {
        padding-top: 0px
    }

    .app-content {
        margin-left:0px
    }

    .card {
        --bs-card-border-width: 0px;
    }
    /* Setting for Print - E */

    /* Hide elements from the page you do not want printed, customize the page */
    .sidebar, .top-row {
        display: none;
    }

    html {
        font: 11pt sans-serif;
    }
    /* sample customizations for the grid when printed */
    .k-grid {
        border-top-width: 0;
    }

    .k-grid, .k-grid-content {
        height: auto !important;
    }

    .k-grid-header {
        padding-right: 0 !important;
    }

    .k-grid-content {
        overflow: visible !important;
    }

    table.k-grid table {
        table-layout: auto;
        width: 100% !important;
    }

    .k-grid .k-grid-header th {
        /*border-top: 0.5px solid;*/
        border-top-width:0.5px;
    }

    /*.k-grid .k-grid-header .k-table-th {
        position: relative;
        vertical-align: bottom;
        cursor: default;
    }*/

    .k-filter-row, .k-grid-pager, .k-grouping-header, .k-grid-toolbar, .k-grid-pager > .k-link {
        display: none;
    }
}

/* TelerikGrid - lightgray - S */

/* component */
/* .k-grid.lightgray-border, */
/* header area bottom border */
.k-grid.red-border .k-grid-header,
/* header area vertical borders */
/* .k-grid.lightgray-border th, */
/* data area vertical borders */
.k-grid.lightgray-border td,
/* pager */
.k-grid.lightgray-border .k-pager {
    border-color: lightgray;
    /* border-width: 1px 1px 0px 0px; */
    border-bottom-width: 0.5px;
    /* border-top-width: 1px; */
}

.k-grid.lightgray-border {
    /* border-width: 0px 0px 0px 0px; */
}

.k-grid.lightgray-border th {
    /* border-width: 0px 1px 0px 0px; */
}

/* TelerikGrid - lightgray - E */




.card-body .chats {
    padding: 0
}

.card {
    background-color: var(--bs-component-bg);
    border: none;
    margin-bottom: 1.246875rem;
    box-shadow: none;
    border-radius: 4px;
    display: flex;
    flex-direction: column
}

.card .card-body,.card .card-footer,.card .card-toolbar {
    flex: 1 1 auto
}

.card .card-header {
    padding: .75rem .9375rem;
    border: none;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px
}

.card .card-header .card-title {
    font-size: .95rem;
    margin: 0;
    line-height: 1.35;
    flex: 1
}

.card .card-header .card-title>a {
    color: inherit;
    display: block
}

.card .card-header .card-title>a:focus,.card .card-header .card-title>a:hover {
    text-decoration: none
}

.card .card-header .card-header-btn {
    display: flex;
    align-items: center
}

.card .card-header .card-header-btn>a+a {
    margin-left: 5px
}

.card .card-header .card-header-btn .btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center
}

.card .card-header .tab-overflow {
    flex: 1
}

.card .card-body {
    padding: .9375rem .9375rem
}
@media (max-width:767.98px) {
    .card .card-body {
        padding: .3375rem .3375rem
    }
}

.card .card-body > .card{
    margin-top: 10px;
}

.card .card-body:after,.card .card-body:before {
    content: "";
    display: table;
    clear: both
}

.card .card-toolbar {
    padding: .75rem .9375rem
}

.card .card-footer {
    border-top: 1px solid rgba(var(--bs-component-border-color-rgb),.75);
    padding: .75rem .9375rem
}

.card [class^=col-].ui-sortable {
    min-height: 0
}

.card.card-default>.card-header {
    background: var(--bs-light);
    color: var(--bs-component-color)
}

.card.card-inverse>.card-header {
    background: var(--bs-gray-900);
    color: var(--bs-white)
}

.dark-mode .card.card-inverse>.card-header {
    background: rgba(255,255,255,.1)
}

.card.card-loading .card-body {
    position: relative;
    z-index: 0;
    overflow: hidden
}

.card.card-loading .card-body .card-loader {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: var(--bs-component-bg);
    opacity: .9;
    z-index: 1030;
    animation: fadeIn .2s;
    border-radius: 0 0 4px 4px;
    display: flex;
    justify-content: center;
    align-items: center
}

.card.card-expand {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    overflow: hidden;
    z-index: 1080;
    display: flex;
    flex: 1;
    flex-direction: column;
    border-radius: 0
}

.card.card-expand>.card-body,.card.card-expand>.card-footer,.card.card-expand>.card-header {
    border-radius: 0
}

.card.card-expand>.card-body {
    overflow-x: scroll;
    flex: 1
}

.card.card-expand>.card-body>.slimScrollDiv {
    height: 100%!important
}

.card.card-expand>.card-body>.slimScrollDiv>div:not(.slimScrollBar):not(.slimScrollRail) {
    height: 100%!important
}

.card.card-expand>.card-header {
    flex: 0
}

.card.card-expand>.card-header .fa-expand:before {
    content: "\f066"
}

.card.card-expand>.hljs-wrapper {
    max-height: 50%;
    overflow: scroll
}

.card.card-hover-icon .card-header .card-header-btn .btn i {
    visibility: hidden
}

.card.card-hover-icon .card-header:focus .card-header-btn .btn i,.card.card-hover-icon .card-header:hover .card-header-btn .btn i {
    visibility: visible
}

.card.card-with-tabs .card-header>.nav-tabs {
    margin-top: -.375rem;
    margin-bottom: -.75rem;
    border-bottom: none
}

.card.card-with-tabs .card-header>.nav-tabs .nav-item .nav-link {
    border: none;
    margin: 0
}

.card-expand .app-content {
    z-index: 9999
}

.card-expand .app-content .card.card-expand {
    background: var(--bs-component-bg)
}

.card-body+.hljs-wrapper {
    border-radius: 0 0 4px 4px
}

.ui-sortable .card-header {
    cursor: move
}

.ui-sortable .ui-sortable-placeholder.card {
    margin: -1px -1px 19px!important;
    box-shadow: none!important
}

.ui-sortable.ui-sortable-disabled .card-header {
    cursor: default
}

.card-header.bg-primary,
.card-header.bg-success,
.card-header.bg-secondary{
    color: #fff;
}




.k-table thead .k-table-row .k-header{
    background-color: #348fe2;
    color: #fff;
}
.k-table thead .k-table-row .k-header .k-sort-icon .k-icon{
    color: #fff;
}

.telerik-blazor.k-button.k-button-solid.k-rounded-md.k-button-md.k-button-solid-success{
    background-color: #008181;
    border-color: #008181;
    color: #fff;
}

.k-header.k-touch-action-none.k-table-th.k-table-th{
    text-align: center;
}
.k-header .k-cell-inner {
    justify-content: center;
}

.k-grid a.btn{
    color: #fff;
}

.k-table .btn .fa-pencil,
.k-table .btn .fa-trash,
.table .btn .fa-pencil,
.table .btn .fa-trash {
    color: #fff;
}

.table td, .table th{
    word-wrap: break-word;
    white-space: normal;
    word-break: break-all;
}

.table-striped>tbody>tr.bg-info:nth-of-type(odd)>* {
    --bs-table-bg-type: var(--bs-info-rgb);
}

.hljs-wrapper.with-content{
    padding: .9375rem .9375rem;
}


.fa,
.fa-brands,
.fa-classic,
.fa-regular,
.fa-sharp,
.fa-solid,
.fab,
.far,
.fas {
    line-height: inherit;
}

.rptTRHeader {
    /*background-color: #FDFF6F;*/
    /*background-color: rgba(245, 245, 245, 1);*/
    background-color: #d9d9d9;
    /*background-color: rgba(231, 231, 231, 1);*/
    font-weight: bold;
    text-align: center;
}


.highlight {
    font-weight: bold;
    color: white; /* Change text color to white */
    /* background-color: blue; */ /* Just for demonstration */
    background-color:darkcyan;
}




.standard-validation-summary.alert.alert-danger p,
.standard-validation-summary.alert.alert-danger li{
    color: #820000;
}

.invalid-tooltip{
    margin-top: 0.25rem;
    font-size: 90%;
    color: #dc3545;
    display: block;
    background: inherit;
}

.form-group.formio-component-textfield:has(.is-invalid),
.form-group.formio-component-select:has(.is-invalid),
.form-group.formio-component-datetime:has(.is-invalid),
.form-group.formio-component-checkbox:has(.is-invalid){
    /*padding: 0.8em;*/
    margin: 7px;
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}
.form-group:has(.is-invalid)  .invalid-tooltip{
    display: block;
    color: #dc3545;
    font-size: .875em;
}
.form-group.choices.formio-choices:has(.is-invalid){
    margin: 0;
}
.form-group.formio-component-form:has(.is-invalid){
    
}

.form-control:has(input[type=checkbox]),
.form-control:has(.btn){
    border: 0;
}
.col-form-label{
    padding-bottom: calc(.0575rem + 1px)
}

.form-control.is-valid, .was-validated .form-control:valid{
    padding-right: inherit;
}

.formio-component-panel{
    margin-top: 1em;
}




/*============================================================
START FormIO related class start
============================================================*/

.radAjaxLoadingPanel {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: #333;
    opacity: 0.5;
}

.radAjaxLoadingPanel img {
    opacity: 1;
}

/* formio page note - Start */
.pgnote {
    color: #ff6347;
    font-weight: 700;
}
/* formio page note - End */

/* 
    Ding Added, 20240206 1019
    style for invalid Bootstrap datetime picker upon form validation 
*/
.bootstrap-dtp.is-invalid input.dtp-input, .bootstrap-dtp.is-invalid div.input-group-append {
    border: 1px solid #dc3545;
}

.formio-component-editgrid button[ref$="-addRow"].btn.btn-primary {
    color: #fff;
    /*background-color: #28a745;
    border-color: #28a745;*/
    box-shadow: none;
    margin-top: 7px;
}

.editgrid-listgroup.list-group li.list-group-item img.img-thumbnail {
    width: 120px;
}

ul.editgrid-listgroup li.list-group-item.list-group-header {
    background-color: #056987;
    color: white;
}

ul.editgrid-listgroup li:first-child div[class^="col-"]{
    text-align: center;
}

ul.editgrid-listgroup button.btn.btn-danger[ref$="-cancelRow"] {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
    box-shadow: none;
}

.editgrid-actions{
    margin-top: 10px; 
}

/* 
    Ding Added, 20240527
    breakpoint for editgrid in mobile view.
    set a fixed width to <ul> and set overflow: scroll to <ul> parent which work similarly to table-responsive
*/
@media (max-width: 768px) {
    ul.editgrid-listgroup .list-group-header:nth-child(2){
        display: none;
    }
}
/*
@media (max-width: 768px) {
    ul.editgrid-listgroup .list-group-header:nth-child(2){
        display: none;
    }
    div.formio-component:has(> ul.editgrid-listgroup){
        overflow: scroll;
    }
    div.formio-component > ul.editgrid-listgroup {
        width: 100%;
    }
    div.formio-component:has(ul.editgrid-listgroup) div.col-sm-1 {
        flex: 0 0 8.333333%;
        max-width: 8.333333%;
    }
    div.formio-component:has(ul.editgrid-listgroup) div.col-sm-2 {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }
    div.formio-component:has(ul.editgrid-listgroup) div.col-sm-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
    div.formio-component:has(ul.editgrid-listgroup) div.col-sm-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    div.formio-component:has(ul.editgrid-listgroup) div.col-sm-5 {
        flex: 0 0 41.666667%;
        max-width: 41.666667%;
    }
    div.formio-component:has(ul.editgrid-listgroup) div.col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    div.formio-component:has(ul.editgrid-listgroup) div.col-sm-7 {
        flex: 0 0 58.333333%;
        max-width: 58.333333%;
    }
    div.formio-component:has(ul.editgrid-listgroup) div.col-sm-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }
    div.formio-component:has(ul.editgrid-listgroup) div.col-sm-9 {
        flex: 0 0 75%;
        max-width: 75%;
    }
    div.formio-component:has(ul.editgrid-listgroup) div.col-sm-10 {
        flex: 0 0 83.333333%;
        max-width: 83.333333%;
    }
    div.formio-component:has(ul.editgrid-listgroup) div.col-sm-11 {
        flex: 0 0 91.666667%;
        max-width: 91.666667%;
    }
    div.formio-component:has(ul.editgrid-listgroup) div.col-sm-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
    */
.formio-component-editgrid button.btn.btn-primary[ref$="-addRow"] {
    color: #fff;
    background-color: #57a773;
    border-color: #57a773;
    box-shadow: none;
}

/* to hide add button in editgrid */ /* added by jy*/ /* now no use */
.formio-component-editgrid.hide-add-button .editgrid-add-row-wrapper {
    display: none;
}

.formio-component-editgrid.ne .editRow {
    display: none;
}

.formio-component-editgrid.nd .removeRow {
    display: none;
}
.formio-component-editgrid.ne .editRow {
    display: none;
}

.formio-component-editgrid.nd .removeRow {
    display: none;
}

.formio-component-editgrid.view-only button[ref*="addRow"],
.formio-component-editgrid.view-only button[ref*="saveRow"],
.formio-component-editgrid.view-only button[ref*="cancelRow"],
.formio-component-editgrid.view-only .editRow,
.formio-component-editgrid.view-only .removeRow {
    display: none;
}

.formio-component.formio-component-editgrid .editgrid-add-row-wrapper {
    margin-bottom: 5px;
}

/* when there are conditional show/hide of an element, there will be a gap/space once the element is hidden. The following is to remove the gap/space. */
.form-group.formio-hidden {
    margin-bottom: 0;
}
.col-form-label{
    font-weight: bold;
}
.textbox-as-label input.form-control:disabled, .textbox-as-label input.form-control[readonly] {
    background-color: inherit;
    border: 0;
}
.textbox-as-label input::placeholder{
    color: transparent;
}
.textbox-as-label input.form-control + div.input-group-append {
    display: none;
}
.textbox-as-label .form-control.selection.dropdown, .textbox-as-label .choices.is-disabled .form-control.selection.dropdown{
    background-color: inherit;
    border: 0;
}
.textbox-as-hidden, .textbox-as-hidden div {
    height: 0;
    margin: 0;
    display: none;
}
.formio-component.formio-component-htmlelement a.btn{
    margin-top: 2.1rem;
}

.formio-component.formio-component-datetime input::placeholder {
    color: transparent;
}

.formio-component.as-hidden{
    display: none;
}

/*.textbox-as-hidden label {
    display: none;
}
.textbox-as-hidden input{
    visibility: hidden;
}*/

.editgrid-listgroup.list-group li.list-group-item img.img-thumbnail{
    width: 120px;
}
.editgrid-listgroup.list-group li.list-group-item img.img-thumbnail:hover{
    cursor: pointer;
}
/* when there are conditional show/hide of an element, there will be a gap/space once the element is hidden. The following is to remove the gap/space. */
.form-group.formio-hidden{
    margin-bottom: 0;
}

.formio-component .card .card-header.bg-default,
.modal-header.bg-default{
    background-color: #6c757d !important;
    color: #fff;
}

/* specify button-input in "Custom CSS" during formio design for button to make the button same level as input field */
.formio-component.button-input{
    margin-top: 2.6em;
}
.formio-component.button-input .btn-lg{
    margin-top: -14px;
}

.choices.is-disabled .form-control.dropdown{
    background-color: #e9ecef;
}

/* Align the button at the same height as the sibling textbox */
.btn-md.btn-inline{
    margin-top: 33px;
}
.btn-sm.btn-inline{
    margin-top: 2rem;
}

/* clear the padding for the empty table (which the table is just contains input fields and not for data list) */
.formio-component-table.tbl-inline .table-sm th,
.formio-component-table.tbl-inline .table-sm td,
.formio-component-table.tbl-inline .table th,
.formio-component-table.tbl-inline .table td{
    padding-top: 0;
    padding-bottom: 0;
}
.formio-component-table.tbl-inline .table-sm th:first-child,
.formio-component-table.tbl-inline .table-sm td:first-child{
    padding-left: 0;
}
.table-responsive.tbl-inline{
    overflow: hidden;
}
.formio-component-label-hidden p.col-form-label {
    font-weight: bold;
}

.formio-component-ctrl_gl_appl .formio-form{
    min-height: 0px;
}
.formio-component-button.inline-button{
    display: inline-block;
}
.formio-component span.required{
    color: red;
}

.formio-component .btn.popup{
    margin:0px;
    padding:0px;
    text-decoration: underline;
    color: blue;
}

.formio-component .btn.onclick {
    /*margin: 0px;
    padding: 0px;
    text-decoration: underline;
    color: blue;*/
}

.formio-component-file .bg-error{
    color: red;
}

.formio-component.checkboxlist table.table-bordered {
    border: 0;
}
.formio-component.checkboxlist table.table-bordered > :not(caption) > * {
    border: 0;
}
.formio-component.checkboxlist thead {
    display: none;
}
.formio-component.checkboxlist td, .formio-component.checkboxlist tr {
    border: 0;
    float: left;
}
.formio-component.checkboxlist table input[type=checkbox]{
    margin-top: -0.38rem;
}

div.container-fuild.content > div.content-header:first-child{
    display: none;
}

.formio-component .pagination .hidden{
    display: none;
}

.formio-component .list-group-item.paging-hidden {
    display: none;
}
.formio-component .list-group-item.filtering {
    display: none;
}
.formio-component .list-group-item.filtering.filtered,
.formio-component .list-group-item.filtering:has(div.editgrid-actions) {
    display: block;
}
.formio-component .list-group-item.paging-hidden.filtering.filtered {
    display: none;
}

a.btn.form-action{
    margin-right: 8px;
    width: 150px;
}

.ccount-panel{
    text-align: right;
    color: #999;
}

.formio-component-htmlelement .table.table-striped.table-bordered thead tr th,
.formio-component-htmlelement .table.table-bordered thead tr th,
.formio-component-datagrid .table.table-bordered thead tr th  {
    background-color: #056987;
    color: #fff;
}

.formio-component-htmlelement .table.table-bordered th, .formio-component-htmlelement .table.table-bordered td {
    border: 0px;
}

.formio-component-htmlelement .table th{
    text-align: center;
}

.formio-errors .error {
    height: auto;
    text-align: left;
}

.formio-component.input[type="text"]{
    padding: .4675rem .75rem;
}

.formio-component .form-check.checkbox{
    margin-top: 2.45rem;
}

.row.action-button-panel{
    text-align: center;
}

.wizard-page{
    padding: 0.75rem;
    border: 1px solid #ced4da;
    background: #fff;
}
.wizard-page .formio-component-panel:first-child{
    margin-top: 0;
}

.formio-form ul.pagination{
    margin-bottom: 0;
}
.formio-form ul.pagination .page-item:not(:first-child) .page-link{
    margin-left: 0;
}

.button-as-url {
    background: none !important;
    border: none;
    padding: 0 !important;
    /*optional*/
    font-family: arial, sans-serif;
    /*input has OS specific font-family*/
    color: #069;
    text-decoration: underline;
    cursor: pointer;
    text-align: left;
}

/*============================================================
DONE FormIO related class 
============================================================*/



/*hide formio htmlelement - Start */
.html-hide-value {
    display: none;
}
/*hide formio htmlelement - End */


span.select2-dropdown{
    z-index: 2000;
}

.app-content{
    padding-bottom: 50px;
}

#floating-snap-btn-wrapper{
    display: none;
}



.k-toolbar .toolbar-button-container{
    display: flex;
    width: 100%;
}
.k-toolbar .toolbar-button-right{
    margin-left: auto;
}