/* 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 */

.k-grid .k-grid-aria-root {
    max-height: inherit;
}

/* Start section make the TelerikGrid header sticky */

.k-tabstrip-content.k-content:has(.k-grid-header), .k-grid-aria-root:has(.k-grid-header){
    overflow: visible;
}
.k-grid-header{
/*    position: sticky;*/
    top: 70px;
    z-index: 10;
}

/* Cater sticky TelerikGrid header in popup scenario where popup layout does not have header 
   which will leave a gap between sticky header and viewport top */
body:not(:has(.app-header)) .k-grid-header{
    top: -5px;
}

.modal-dialog .k-grid-header {
    position: inherit;
}

/* Done section make the TelerikGrid header sticky */



.card-body .chats {
    padding: 0
}

.card {
    background-color: var(--bs-component-bg);
    border: none;
    margin-bottom: 1.246875rem;
    box-shadow: none;
    border-radius: 8px; 
    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;
        color: var(--bs-card-colour);
    }

.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
}

.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{
    color:var(--subtext-colour) !important;
}
.card-header.bg-primary,
.card-header.bg-success,
.card-header.bg-secondary {
    color: #fff;
}

/* Hide Telerik default sort icon */
.k-sort-icon {
    display: none !important;
}

/* Add FontAwesome icon next to column title */
/*.k-link::after {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: 6px;
    display: inline-block;
    font-size: 14px;*/
    /*  color: #000;  */
/*}*/

/* No sort */
/*.k-header[aria-sort="none"] .k-link::after {
    content: "\f0dc";*/ /* fa-solid fa-sort */
/*}*/

/* Ascending */
/*.k-header[aria-sort="ascending"] .k-link::after {
    content: "\f0de";*/ /* fa-solid fa-sort-up f0de */
/*}*/

/* Descending */
/*.k-header[aria-sort="descending"] .k-link::after {
    content: "\f0dd";*/ /* fa-solid fa-sort-down */
/*}*/



.k-table thead .k-table-row .k-header {
    /*    background-color: var(--header-card-color);*/
    background-color: var(--card-colour);
    color: var(--subtext-color);
    /*    font-weight: bold;*/
}
.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;
    vertical-align: middle;
}
.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.5rem;
    margin: 0;
    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;
}




/*============================================================
FormIO related class start here
============================================================*/

.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;
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-primary-rgb), var(--bs-bg-opacity)) !important
}

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;
}

/* 
    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) {
    div.formio-component:has(ul.editgrid-listgroup){
        overflow: scroll;
    }
    div.formio-component > ul.editgrid-listgroup {
        width: 800px;
    }
    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;
}

.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-hidden, .textbox-as-hidden div {
    height: 0;
    margin: 0;
    display: none;
}

.formio-component.formio-component-datetime input::placeholder {
    color: transparent;
}

/*.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: 36px;
}
.formio-component-checkbox.inline{
    margin-top: 20px;
}

/* 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;
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-primary-rgb), var(--bs-bg-opacity)) !important
}

.formio-component-htmlelement .table.table-bordered th, .formio-component-htmlelement .table.table-bordered td {
    border: 0px;
}

.formio-component-htmlelement .table th{
    text-align: left;
    overflow-wrap: break-word;
}

.formio-errors .error {
    height: auto;
    text-align: left;
    font-size: 0.8rem;
}

/*
 * Start section for Formio styles to follow MainApp with form-floating
 */

/*.formio-component input.form-control + .input-group-append span.input-group-text{*/
/*    !*padding: .5rem .75rem;*!*/
/*    padding: .6375rem .75rem;*/
/*}*/

.flatpickr-day{
    border-radius: 6px;
}
.flatpickr-day.today{
    background-color: #348fe2;
    color: #fff;
}

.formio-component.formio-component-text,
.formio-component.formio-component-textfield,
.formio-component.formio-component-textarea,
.formio-component.formio-component-select,
.formio-component.formio-component-datetime{
    position: relative;
    margin-bottom: 0.9375rem;
}
.formio-component.formio-component-text > label,
.formio-component.formio-component-textfield > label,
.formio-component.formio-component-textarea > label,
.formio-component.formio-component-select > label,
.formio-component.formio-component-datetime > label{
    position: absolute;
    /*top: 0;*/
    left: 0;
    z-index: 2;
    height: 100%;
    padding: 1rem .75rem;
    overflow: hidden;
    text-align: start;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition: opacity .1s ease-in-out, transform .1s ease-in-out;
    font-size: 0.80rem;
    top: -10px;

}
.formio-component > div[ref="element"] > .form-control-plaintext:focus,
.formio-component > div[ref="element"] > .form-control-plaintext:not(:placeholder-shown),
.formio-component > div[ref="element"] > .form-control:focus,
.formio-component > div[ref="element"] > .form-control,
.formio-component > div[ref="element"] > .input-group > .form-control.flatpickr-input + .form-control,
.formio-component > div[ref="element"] > .input-group > input[type="text"].form-control,
.formio-component > div.formio-choices > .form-control{
    padding-top: 1.625rem;
    padding-bottom: .625rem;
}
.formio-component > div.formio-choices > .form-control {
    padding-bottom: 0.325rem;
}
.formio-component.formio-component-htmlelement .text-right{
    text-align: right;
}
.acknowledge-panel div[ref^="nested"]{
    display: flex;
}

/* Somehow in BLESS, all text in input field / input form has been bold, need to reset */
.formio-component label,
.formio-component .formio-choices .choices__item,
.formio-component .form-control{
    font-weight: normal;
}
.formio-component.formio-component-htmlelement label{
    font-weight: bold;
}
.formio-component > .form-control-plaintext ~ label,
.formio-component > label:has(+ div[ref="element"] > .form-control:focus),
.formio-component > label:has(+ .choices.formio-choices),
.formio-component > label:has(+ div[ref="element"] > .input-group > .form-control.flatpickr-input + .form-control),
.formio-component > label:has(+ div[ref="element"] > .input-group > input[type="text"].form-control),
.formio-component > .form-select ~ label {
    /*color: rgba(var(--bs-body-color-rgb), .65);*/
    /*transform: scale(.85) translateY(-.5rem) translateX(.15rem);*/
}
/* For unknown reason, have to adjust z-index of datepicker's label, 
  otherwise the label will be hidden after the datepicker textbox being focus */
.formio-component label:has(+ div[ref="element"] > div.input-group){
    z-index: 7;
}
.formio-component div[ref="element"] > div.input-group input.form-control{
    border-right: none;
}
.formio-component div[ref="element"] > div.input-group .input-group-text {
    background: transparent;
    height: 100%;
    padding-top: 1rem;
    padding-bottom: 0;
    border-left: none;
}

.formio-component.document-checklist table td:has(div[width="10"]){
    width: 10%;
}
.formio-component.document-checklist table td:has(div[width="20"]){
    width: 20%;
}
.formio-component.document-checklist table td:has(div[width="30"]){
    width: 30%;
}
.formio-component.document-checklist table td:has(div[width="40"]){
    width: 40%;
}
.formio-component.document-checklist table td:has(div[width="50"]){
    width: 50%;
}
.formio-component.document-checklist table td:has(div[width="60"]){
    width: 60%;
}
.formio-component.document-checklist table td:has(div[width="70"]){
    width: 70%;
}
.formio-component.document-checklist table td:has(div[width="80"]){
    width: 80%;
}
.formio-component.document-checklist table td:has(div[width="90"]){
    width: 90%;
}
.formio-component.document-checklist table td:has(div[width="100"]){
    width: 100%;
}

.formio-component.task-info.dued .alert-text{
    color: #dc3545;
    font-weight: bold;
}

.formio-component.formio-component-datagrid .table-bordered > :not(caption) > * > * {
    border-width: 0;
} 

.formio-component .acknowledge-panel{
    display: none;
}

/*
 * Done section for Formio styles to follow MainApp with form-floating
 */

/*hide formio htmlelement - Start */
.html-hide-value {
    display: none;
}
/*hide formio htmlelement - End */


span.select2-dropdown{
    z-index: 2000;
}
.tabs {
    display: flex;
    flex-direction: column;
}

.tab-buttons {
    display: flex;
}

.tab-button {
    padding: 10px;
    margin: 0 5px;
    cursor: pointer;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
}

    .tab-button.active {
        background-color: var(--middle-colour);
        color: white;
    }

.tab-content {
    border: 1px solid #ccc;
    padding: 10px;
    margin-top: 10px;
}

.k-toolbar .toolbar-button-container{
    display: flex;
    width: 100%;
}
.k-toolbar .toolbar-button-right{
    margin-left: auto;
}


.form-floating input[type="checkbox"] + label{
    position: inherit;
    font-size: 0.85rem;
    padding: inherit;
    overflow: inherit;
    pointer-events: inherit;
}

.k-calendar .k-alt{
    font-size: 0.78rem;
    color: #aaa;
}

.k-datepicker.form-control .k-input-inner, .k-datetimepicker.form-control .k-input-inner{
    padding: 0;
    font-size: 14px;
}
.k-datepicker.form-control .k-input-inner + button.k-button.k-icon-button, 
.k-datetimepicker.form-control .k-input-inner + button.k-button.k-icon-button {
    /*padding: .4375rem .6rem;*/
    /*background: rgba(var(--bs-component-border-color-rgb), 1);*/
    height: 58px;
    margin-top: -1.625rem;
    border-left: 1px solid #ccc;
    padding-top: 1.625rem;
    padding-right: 0;
    padding-left: 0.65rem;
}

.form-floating.position-relative:has(.invalid-tooltip){
    margin-bottom: 1.2rem;
}

.k-table .k-table-thead .k-table-row.k-filter-row .k-filtercell-wrapper .k-filtercell-operator{
    display: none;
}

.radiobuttonlist {
    padding-left: 10px;
}

/* Start section for split view for FormioImageViewer & FormioPdfViewer */
.split {
    display: flex;
    flex-direction: row;
}

/* html table within formio htmlelement will be visible and overloy on document preview. Hide it by making the container scrollable */
.split #formio .formio-component-htmlelement:has(table.table){
    overflow-x: scroll;
}

.gutter {
    background-color: #eee;
    background-repeat: no-repeat;
    background-position: 50%;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

.gutter.gutter-horizontal {
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==');
    cursor: col-resize;
}
/* Done section for split view for FormioImageViewer & FormioPdfViewer */

/* Start section for simple loading indicator for FormioImageViewer & FormioPdfViewer */
.loading-gif {
    max-width: 500px;
}

.pre-loader {
    position: fixed;
    z-index: 100; /** make sure this is the highest value compared to all other divs **/
    top: 0;
    left: 0;
    background: #191f26;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.pre-loader.hidden {
    animation: fadeOut 2s; /** change to 1s */
    animation-fill-mode: forwards;
}

@keyframes fadeOut {
     100% {
         opacity: 0;
         visibility: hidden;
     }
 }
/* Done section for simple loading indicator for FormioImageViewer & FormioPdfViewer */

/* Start section to animate approval document */
.approval-document-panel{
    opacity: 0;
    height: 0px;
    width: 100%;
    padding: 0.8rem;
    transition: all .5s linear;
}
.approval-document-panel.show{
    opacity: 1;
    height: 300px;
    max-height: 300px;
    overflow-y: auto;
}
/* Done section to animate approval document */

/* Start section for checkpoint wizard progress bar */
.wizard-progress{
    display: table;
    width: 100%;
    table-layout: fixed;
    position:relative;
    padding-bottom: 1rem;
    
    .step-label{
        display: table-cell;
        font-weight: bold;
        text-align: center;
    }

    .step{
        display: table-cell;
        text-align: center;
        vertical-align: top;
        overflow: visible;
        position:relative;
        font-size: 0.9rem;
        color: #000;
        font-weight: bold;

        &:not(:last-child):before{
            content: '';
            display:block;
            position: absolute;
            left: 50%;
            top: 0.9rem;
            background-color: #87abe9;
            height: 6px;
            width: 100%;
        }

        .node{
            display: inline-block;
            color: #fff;
            border: 6px solid #87abe9;
            background-color: #87abe9;
            border-radius: 18px;
            height: 2rem;
            width: 2rem;
            position: absolute;
            /*top: 1.4rem;*/
            left: 50%;
            margin-left: -1.4rem;
        }

        &.complete{
            &:before{
                background-color: #2a7adb;
            }
            .node{
                border-color: #2a7adb;
                background-color: #2a7adb;

                &:before{
                    font-family: FontAwesome;
                    content: "\f00c";
                }
            }
        }

        &.in-progress{
            &:before{
                background: #2a7adb;
                background: -moz-linear-gradient(left,  #2a7adb 0%, #87abe9 100%);
                background: -webkit-linear-gradient(left,  #2a7adb 0%, #87abe9 100%);
                background: linear-gradient(to right,  #2a7adb 0%, #87abe9 100%);
                filter: progid:DXImageTransform.Microsoft.gradient(     startColorstr='#{#2a7adb}', endColorstr='#{#87abe9}',GradientType=1 );
            }
            .node{
                border-color: #2a7adb;
            }
        }
    }
}
/* Done section for checkpoint wizard progress bar */

.form-tab{
    visibility: hidden;
    height: 0;
}

.k-event:has(.green-appointment) {
    background-color: limegreen !important;
}

.k-event:has(.orange-appointment) {
    background-color: orange !important;
}

.k-event:has(.yellow-appointment) {
    background-color: yellow !important;
}

.k-event:has(.red-appointment) {
    background-color: lightcoral !important;
}

.k-event:has(.default-appointment) {
    background-color: lightgray !important;
}
/*commit*/


/* Try to hide as much scrollbar as possible for modal that contains iframe as the scrollbar will show for iframe only. */
.modal.modal-custom:has(iframe.iframe-only){
    overflow: hidden;
}

.modal-body{
    overflow: auto;
}
    .modal-body:has(> iframe.iframe-only) {
        overflow: hidden;
        overflow-y: scroll;
    }

td a[data-doccount="0"]{
    display: none;
}
td a[data-isclaimed="1"]{
    display: none;
}

td a.wf-doc, td a.wf-officer{
    margin-bottom: 5px;
}

#formio.ro .document-checklist .formio-component-htmlelement span.badge{
    display: none;
}

i.fas.fa-check[data-htmlelement_display="0"]{
    display: none;
}
i.fas.fa-hourglass-half[data-htmlelement_display="1"]{
    display: none;
}

/* Hide description of Dokumen Sokongan */
.formio-component-datagrid .formio-component-htmlelement:has(div.alert.alert-secondary + span.badge.bg-info + span.badge.bg-warning) div.alert.alert-secondary{
    display: none;
}

.formio-component-htm_TaskHistory .badge{
    margin-right: 5px;
}

.modal.fade.no-delay{
    display: inherit;
}

.formio-component-htm_ActionList table tr[class="tr-is-pemohon-0"]:last-child{
    color: var(--bs-warning-text-emphasis);
    background-color: var(--bs-warning-bg-subtle);
    border: var(--bs-warning-border-subtle);
}

.formio-component-htm_ActionList table tr td a.btn.wf-online-form{
    display: none;
}
.formio-component-htm_ActionList table tr[class="tr-is-pemohon-0"]:last-child td a.btn.wf-online-form{
    display: inline-block;
}

/* hide "Status Lesen" */
.formio-component-panel6:has(table tbody tr td[colspan]){
    display: none;
}

/* Grey background for explicitly disabled input fields */
.input-disabled {
    background-color: #e9ecef !important;
    opacity: 1;
    cursor: not-allowed;
}

.input-addon-disabled {
    background-color: #e9ecef !important;
    color: #6c757d;
    cursor: not-allowed;
}

/* Fix for disabled floating labels to have white background */
.form-floating > .form-control:disabled,
.form-floating > .form-control[readonly],
.form-floating > .form-select:disabled, 
.form-floating > .form-select[readonly] {
    background-color: #ffffff !important;
    opacity: 1;
}

.form-floating > .form-control:disabled ~ label::after,
.form-floating > .form-control[readonly] ~ label::after,
.form-floating > .form-select:disabled ~ label::after,
.form-floating > .form-select[readonly] ~ label::after {
    background-color: #ffffff !important;
}