@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');
@import url('https://fonts.googleapis.com/css?family=Open+Sans'); /* font for the charts? */

html, body {
    /*font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;*/
    font-family: Segoe UI,SegoeUI,"Helvetica Neue",Helvetica,Arial,sans-serif;
    font-size: 13px;
    height: 100%;
}

.pie-donut-chart, .pie-donut-chart > div {
    height: 100% !important;
}

    .pie-donut-chart > div > canvas {
        width: auto;
        height: 100% !important;
    }

.paygle-bar-chart, .paygle-bar-chart > div {
    height: 100% !important;
}

    .paygle-bar-chart > div > canvas {
        width: auto;
        height: 100% !important;
    }

.paygle-line-chart, .paygle-line-chart > div {
    height: 100% !important;
}

    .paygle-line-chart > div > canvas {
        width: auto;
        height: 100% !important;
    }

.paygle-column-line-chart, .paygle-column-line-chart > div {
    height: 100% !important;
}

    .paygle-column-line-chart > div > canvas {
        width: auto;
        height: 100% !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;
    }
/* Remove the chevron from the drop down */
#personaDropToggle::after {
    display: none;
}

.form-group .ms-Label {
    padding-left: 15px; /* same as form-label */
}

/* Spin Kit Loader (shown when the app is bootstrapping) */
.sk-cube-grid {
    width: 40px;
    height: 40px;
    margin: 100px auto;
}

    .sk-cube-grid .sk-cube {
        width: 33%;
        height: 33%;
        background-color: #333;
        float: left;
        -webkit-animation: sk-cubeGridScaleDelay 1.3s infinite ease-in-out;
        animation: sk-cubeGridScaleDelay 1.3s infinite ease-in-out;
    }

    .sk-cube-grid .sk-cube1 {
        -webkit-animation-delay: 0.2s;
        animation-delay: 0.2s;
    }

    .sk-cube-grid .sk-cube2 {
        -webkit-animation-delay: 0.3s;
        animation-delay: 0.3s;
    }

    .sk-cube-grid .sk-cube3 {
        -webkit-animation-delay: 0.4s;
        animation-delay: 0.4s;
    }

    .sk-cube-grid .sk-cube4 {
        -webkit-animation-delay: 0.1s;
        animation-delay: 0.1s;
    }

    .sk-cube-grid .sk-cube5 {
        -webkit-animation-delay: 0.2s;
        animation-delay: 0.2s;
    }

    .sk-cube-grid .sk-cube6 {
        -webkit-animation-delay: 0.3s;
        animation-delay: 0.3s;
    }

    .sk-cube-grid .sk-cube7 {
        -webkit-animation-delay: 0s;
        animation-delay: 0s;
    }

    .sk-cube-grid .sk-cube8 {
        -webkit-animation-delay: 0.1s;
        animation-delay: 0.1s;
    }

    .sk-cube-grid .sk-cube9 {
        -webkit-animation-delay: 0.2s;
        animation-delay: 0.2s;
    }

@-webkit-keyframes sk-cubeGridScaleDelay {
    0%, 70%, 100% {
        -webkit-transform: scale3D(1, 1, 1);
        transform: scale3D(1, 1, 1);
    }

    35% {
        -webkit-transform: scale3D(0, 0, 1);
        transform: scale3D(0, 0, 1);
    }
}

@keyframes sk-cubeGridScaleDelay {
    0%, 70%, 100% {
        -webkit-transform: scale3D(1, 1, 1);
        transform: scale3D(1, 1, 1);
    }

    35% {
        -webkit-transform: scale3D(0, 0, 1);
        transform: scale3D(0, 0, 1);
    }
}

/* Blazorise - Fix to browser height */
.b-layout-content {
    /* if top bar size changes, alter the 50px */
    height: calc(100vh - 50px) !important;
}

/* Blazor FluentUI */
.ms-Panel-header {
    /* remove giant margin in Panel header */
    margin-top: 2px !important;
}

.pgl-header-commandbar {
    /* no grey background for us (in the header at this stage - may want to apply elsewhere) */
    background-color: transparent !important;
}

    .pgl-header-commandbar div.ms-CommandBar {
        /* reduce the padding - this should line up nice with the breadcrumbs above */
        padding-left: 5px;
    }

    div.ant-col:has(div > div.pgl-header-commandbar)
    {
        width: 100%;
    }

/* ant layout */
ant-layout {
    height: 100%;
}

.ant-layout-content {
    height: calc(100vh - 50px); /* 64px is size of header (at the moment) */
    overflow-y: hidden;
}

.ant-layout-header {
    padding: 0;
    background-color: #F8F9FA !important;
    height: 50px !important; /* was 64px originally */
    line-height: 50px !important;
}

/*span.anticon {*/
/*    vertical-align: initial;*/
/*}*/

.pgl-dash-chart {
    width: 100%;
    height: 100%;
}

    .pgl-dash-chart > div {
        height: 100%;
    }

.pgl-sider span.anticon {
    vertical-align: text-bottom;
}

button.pgl-header-notification-button span.anticon { /*  */
    vertical-align: text-top;
}

button.ant-btn-link span.anticon, button.ant-btn span.anticon {
    vertical-align: initial;
    /*margin-left: 5px;*/
}

.logout-btn-link {
    padding-left: 0;
}

span.pgl-avatar-badge sup.ant-badge-dot { /* Make sure the dot is positioned correctly */
    transform: translate(50%, 100%);
}

button.ant-drawer-close span.anticon {
    vertical-align: bottom !important; /* seems to be getting screwed up globally somewhere */
}

div.ant-message-info span.anticon {
    vertical-align: text-top !important;
}

/* blazorise */
.pgl-breadcrumb, .pgl-breadcrumb li {
    padding-left: 10px;
    margin-bottom: 0; /* remove the bottom margin, no background colour  */
    background-color: #fff;
    padding-top: 5px;
}

    .pgl-breadcrumb .ant-breadcrumb-link .ant-btn-link,
    .pgl-breadcrumb .ant-breadcrumb-link .ant-select {
        margin-top: -5px;
    }

    /* .NET 9 fix - set the breadcrumb parent container to 100% width */
    div.ant-col:has(nav.pgl-breadcrumb){
        width: 100%;
    }
/* Syncfusion */
.e-panel {
    z-index: unset !important;
    border: 1px solid #c5c5c5 !important;
}

.pgl-grid-container {
    height: calc(100% - 66px); /* was 89 = breadcrumb and command bar (was 86, but need to validate those calcs) */
}

.pgl-grid-container-with-footer {
    height: calc(100% - 126px); /* was 89 = breadcrumb and command bar (was 86, but need to validate those calcs) */
}

.pgl-grid-container-with-org-selector {
    height: calc(100% - 108px); /* an additional 42px for the org selector */
}

.pgl-info-color {
    color: #1890ff;
}

/* if we want to conditionally hide the detail row, we hide the icon that gets rendered */
.e-row.pgl-hide-detail .e-detailrowcollapse {
    pointer-events: none;
}

.e-row.pgl-hide-detail .e-detailrowcollapse .e-dtdiagonalright {
    display: none;
}

/* Hide checkbox in a selectable grid */
.e-row.pgl-hide-checkbox {
    pointer-events: none; 
    opacity: 0.5;
}


/* inbox */
.inbox-selected-org {
    background-color: #a9a1a1;
}

/* tabs full container height */
.paygle-tabs-full-height {
    background-color: #fff;
}

    .paygle-tabs-full-height .ant-tabs-content-holder .ant-tabs-content,
    .paygle-tabs-full-height .ant-tabs-content-holder .ant-tabs-content .ant-tabs-tabpane {
        height: auto;
    }

/* settings tabs */
.paygle-tabs {
    background-color: #fff;
}

.dashboard-tabs {
    background-color: #fff; /* set full background of tab  */
}

    .dashboard-tabs .ant-tabs-content-holder {
        padding: 3px;
    }

    .dashboard-tabs .ant-tabs-nav {
        padding-left: 5px;
        margin-bottom: 5px;
    }

.opensans {
    font-family: "Open Sans", sans-serif;
}

/* the basic page container is max view height minus
    the header.
    this style makes sure that our wrapper spinner for 
    global loading indicator will have it's height set correctly
*/
.basic-page-container-spinner > div.ant-spin-nested-loading > div > div.ant-spin-container
{
    height: calc(100vh - 50px);
}

/* scrollable on the vertical in the dashboard tab */
.pgl-dash-overflow-y > .e-tab > .e-content {
    overflow-y: auto;
    /* height: 100%; */
    height: calc(100% - 46px);
}

/* panel widget */
.widget-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* to reduce the right hand "padding" that the input box shows.  Set the size width explicitly. */
.panel-date-picker > .ant-picker-input > input {
    width: 50px;
}

.panel-date-time-picker > .ant-picker-input > input {
    width: 120px;
}

.paygle-widget {
    width: auto;
    height: 100%;
    text-align: left;
    font-family: Poppins,sans-serif;
    font-weight: 500
}

.panel-date-time-picker > .ant-picker-input > input {
    width: 120px;
}


.paygle-widget > .widget-header {
    height: 25px;
    padding: 0 20px;
    margin-left: 10px;
}

    .paygle-widget > .widget-header > h4 {
        font-size: 16px;
    }

.paygle-widget > .widget-content {
    /* height: Calc(100% - 30px);*/
    overflow: auto;
    padding: 0 20px;
    margin-left: 10px;
}

.widget-content {
    padding: 0 10px;
    /*margin-left: 10px;*/
}

.paygle-widget > .widget-content > .ant-divider-horizontal {
    margin: 18px 0;
}

.e-toolbar .e-tbar-btn .e-tbar-btn-text {
    font-family: "Segoe UI","GeezaPro","DejaVu Serif",sans-serif,"-apple-system","BlinkMacSystemFont";
}

/* copy from ant-design tables for a th on the left*/
.paygle-ant-th {
    position: relative;
    color: rgba(0,0,0,.85);
    font-weight: 500;
    text-align: left;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
    transition: background .3s ease;
}

/* give space for the copyright notice */
.ant-layout-sider-children {
    max-height: calc(100vh - 82px) !important;
}

/* compact version of AntDesign.Space */
.ant-space-compact .ant-space-item {
    margin-bottom: 0 !important;
}

/* ant-design tabs - tab content to ensure full height */
.tab-content-full-height .ant-tabs-nav {
    background-color: #fff;
}

.tab-content-full-height .ant-tabs-content-holder .ant-tabs-content, .tab-content-full-height .ant-tabs-content-holder .ant-tabs-content .ant-tabs-tabpane {
    height: 100%;
    background-color: #fff;
}

/* New loading CSS for NET 8 */
.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

/* 
    syncfusion grid filtering icon override 
    this should only apply if the filter is active 
    on a column
*/
.e-grid .e-icon-filter.e-filtered::before {
    content: "\ea77"
}
