﻿/*Variables*/
:root {
    /*Theme*/
    --Background1: #f7f8fc; /*Need to be a solid color to hide loading gif*/
    --Background2: #e8eaf4;
    --Background3: white;
    --Color1: #213e62;
    --BorderColor: #93a3c1;
    --ShadowColor: black;
    --Spacing: 10px;
    /*Advanced*/
    --Margin: 0px var(--Spacing) var(--Spacing) 0px;
    --MarginSmall: 0px calc(var(--Spacing) / 2) calc(var(--Spacing) / 2) 0px;
    --Padding: var(--Spacing) 0px 0px var(--Spacing);
    --PaddingSmall: calc(var(--Spacing) / 2) 0px 0px calc(var(--Spacing) / 2);
    --ButtonBackground: linear-gradient(180deg,var(--Background3),var(--Background2));
    --ColorGreen: limegreen;
    --ColorRed: red;
    --ColorBlue: blue;
    --ColorBlueLight: #c3d2ff;
    --ColorOrange: orange;
    --ColorGrey: grey;
    --PrintBackground1: white; /*Default to white*/
    --PrintBackground2: var(--Background2); /*Default to original*/
    --PrintBackground3: var(--Background3); /*Default to original*/
}

html {
    padding: 0px;
    margin: 0px;
    font-size: medium;
    font-family: Arial, sans-serif;
    min-height: 100vh;
    /*    background: var(--Background1);*/
}

    html.Beta {
        box-shadow: inset 10px 0px 15px -5px var(--ColorGreen), inset 0px 0px 0px 0px var(--ColorGreen);
    }


body {
    text-align: left;
    padding: 0px;
    margin: 0px;
    display: block;
    height: 100%;
    font-size: inherit;
    background: var(--Background1); /*Required to not show loading background gif*/
    overscroll-behavior: none; /*disables pull to refresh on mobile devices.*/
    color: var(--Color1);
}

    body * {
        /*Defaults*/
        vertical-align: top;
        border-radius: 3px;
        border-width: 1px;
        box-sizing: border-box;
        border-color: var(--BorderColor);
        color: inherit;
    }




/*.HomeBody {
    text-align: left;
}
*/

/*Change default stop embed thinner if border is ever set to show*/
/*td{
border-width:1px;
}*/



/*img {
    margin: var(--Margin);
}
*/
.Heading {
    font-weight: bold;
    margin: var(--Margin);
    display: inline-block;
    color: inherit;
}

.Label {
    margin: var(--Margin);
    display: inline-block;
    color:inherit;
}


.PageHeader {
    display: inline-block;
    margin-top: -13px;
    padding: 0px;
    margin-bottom: var(--Spacing);
    background-color: var(--Background2);
    padding: var(--Padding);
    width: 100%;
    border-style:solid;
}
/*
.PageNav {

    display: inline-block;
    background: var(--Background1);
    padding: var(--Padding);
    margin: var(--Margin);
    box-shadow: inset 0px 0px 3px 0px black;

    background: linear-gradient(135deg,var(--Background1), var(--Background2));
}
    .PageNav > .Title {
        font-weight: bold;
        border-right: solid;
        border-width:1px;
        padding-right:10px;
    }

    .PageNav > * {
        vertical-align: middle;
    }
    .PageNav > .Tab {
        width: auto;
        transition: all 0.2s;
        background: var(--Background2);
    }

        .PageNav > .Tab.HyperlinkSelected {
            padding-left: 10px;
            padding-right: 10px;
            width: auto;
            background: var(--Background1);
            box-shadow:none;
        }*/

.Menu {
    display: contents;
 

  /*  display: flex;
    align-items: center;*/
}

    .Menu > * {
        vertical-align: middle;
    }


.ControlBox {

    /* box-shadow: 0px 1px 3px 0px; */
    /* border-style: solid; */
    /* border-width: 1px; */
    display: inline-block;
    float: right;
    /* flex: 0; */
    /* display: flex; */
    /* align-items: center; */
    /* flex-basis: content; */

    /* margin-top: -10px; */

}

    .ControlBox > * {
        vertical-align: middle;
    }


@media (min-width:0px) and (max-width: 450px) {
    /* CSS that should be displayed if width is equal to or less than 800px goes here */
    body {
        zoom: 0.8;
        -moz-transform: scale(0.8);
    }

}

@media (min-width:451px) and (max-width: 900px) {
    body {
        zoom: 0.9;
        -moz-transform: scale(0.9);
    }
}


#PrintFooter {
    display: none;
    position: fixed;
    bottom: 0pt;
    right: 0pt;
    left: 0pt;
}


.PageContainer {
    display: block;
    width: 100%;
    text-align: center;
    border-radius: 0px;
}

.PageContent {
    padding: 10px;
    /*    overflow-y: auto;
    overflow-x: auto;*/
    text-align: left;
    display: inline-block;
    width: 100%;
    max-width: 1250px;
    box-sizing: border-box;
}




.FileUploader {
    border-style: solid;
    margin: var(--Margin);
    display: inline-flex;
    flex-direction: column;
    border-width: 1px;
    text-align: left;
    background-color: white;
    background-color: var(--Background3);
    padding: 3px;
    width: 225px;
}

.FileUploaderError {
    box-shadow: inset 0px 0px 3px #ff0000;
    border-color: red;
}

.FileUploader > Subtext {
    padding: 3px;
    display: block;
    font-size: small;
    margin-bottom: 0px;
    margin-right: 0px;
}


.FileUploader > Label {
    padding: 3px;
    display: block;
    font-size: small;
    margin-bottom: 0px;
    margin-right: 0px;
}

.FileUploader-Required {
    border-left-style: solid;
    border-left-width: 3px;
    border-left-color: #ff4444;
}


.ImageUploader {
    margin: var(--Margin);
    width: 225px;
    background-color: var(--Background3);
    border-style: solid;
    display: inline-flex;
    flex-direction: column;
}

    .ImageUploader > [Name=Label] {
        padding: 3px;
        display: block;
        font-size: small;
        margin-bottom: 0px;
        margin-right: 0px;
    }

    .ImageUploader > [Name=Preview] {
        margin: 3px;
    }

    .ImageUploader > [Name=ImageFile] {
        margin: 3px;
    }

.ImageUploader-Error {
    box-shadow: inset 0px 0px 3px #ff0000;
    border-color: red;
}

.ImageUploader-Required {
    border-left-style: solid;
    border-left-width: 3px;
    border-left-color: #ff4444;
}



.Capsule {
    padding: var(--PaddingSmall);
    margin: var(--Margin);
    white-space: nowrap;
    display: inline-block;
    border-style: solid;
}


    .Capsule * {
        margin: var(--MarginSmall);
        vertical-align: middle;
    }

    .Capsule.Wrap .Label {
        white-space: pre-wrap;
    }


.Button, .Hyperlink, input[type=submit], input[type=button] {
    /*    background: #233852;*/
    cursor: pointer;
    padding: calc(var(--Spacing) / 2) 0px 0px calc(var(--Spacing) / 2);
    margin: 0px var(--Spacing) var(--Spacing) 0px;
    font-size: inherit;
    /*    vertical-align: top;*/
    box-sizing: border-box;
    cursor: pointer;
    border-style: none;
    display: inline-block;
    text-decoration: none;
    background: var(--ButtonBackground);
    border-radius: 3px;
    box-shadow: 0px 0px 3px var(--ShadowColor);
}

    .Button:focus, .Hyperlink:focus, input[type=submit]:focus, input[type=button]:focus {
        box-shadow: 0px 0px 3px 1px var(--ShadowColor);
    }


/*legacy buttons */
input[type=submit], input[type=button] {
    padding: calc(var(--Spacing) / 2);
}


    .Button:hover, .Hyperlink:hover, input[type=submit]:hover, input[type=button]:hover {
        box-shadow: 0px 0px 3px 1px var(--ShadowColor);
    }

    .Button *, .Hyperlink * {
        display: inline-block;
        margin: 0px calc(var(--Spacing) / 2) calc(var(--Spacing) / 2) 0px;
        vertical-align: middle;
        pointer-events: none; /*IMPORTANT for event handeling*/
    }

.HyperlinkSelected {
    /* background: linear-gradient(180deg,white,#f5ff8366);*/
    /*font-weight: bold;*/
    box-shadow: var(--ShadowColor) 0px 2px 1px 0px;
}


.Button.Alt, .Hyperlink.Alt {
    background: none;
    box-shadow: none;
    /* text-decoration: underline; */
    border-bottom-style: solid;
}

    .Button.Alt:hover, .Hyperlink.Alt:hover {
        box-shadow: inset 0px 0px 3px var(--ShadowColor);
    }

.ButtonConfirmation {
    display: none;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--Background3);
    border-style: solid;
    padding: var(--Spacing);
    z-index: 1;
    min-width: 300px;
    text-align: center;
    box-shadow: 0px 0px 5px 0px var(--ShadowColor)
}
    .ButtonConfirmation.Open {
        display:block;
    }

.ButtonConfirmation input[type=button]
{
    min-width:50px;
}

/*Horizontal Box*/
.BoxH
{
    display: block;
    border-style: solid;
    padding: var(--Padding);
    margin: var(--Margin);
}

.BoxH > *
{
    vertical-align:middle;
}




.HSeparator {
    display: flex;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 10px;
    color: #233852;
    font-size: 1.25em;
    font-weight: bold;
}

    .HSeparator::after {
        content: '';
        flex: 1;
        border-bottom: 2px solid #233852;
    }

    .HSeparator::before {
        /*margin-right: .25em;*/
    }

    .HSeparator::after {
        margin-left: 3px;
    }

   


/* width */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

/* Track */
::-webkit-scrollbar-track {
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #888;
    border-style: solid;
    border-color: black;
    border-width: 1px;
    border-radius: 3px;
}

    /* Handle on hover */
    ::-webkit-scrollbar-thumb:hover {
        background: #555;
    }


   .Hr{
       display: inline-block;
       width:100%;  
       margin:var(--Margin);
       background:var(--Color1);
       height:2px;
   }


/*.Section {
    width: auto;
    display: block;
    margin: var(--Margin);
    padding: var(--Padding);
    background: var(--Background2);
}

    .Section:nth-child(odd) {
        background: inherit;
    }*/


/*CheckBox*/
.CheckBox {
    margin: var(--Margin);
    width: 225px;
    border-style: solid;
    padding: 5px;
    white-space: nowrap;
    display: inline-flex;
    background: var(--Background3);
    align-items: center;

}

    .CheckBox * {
        vertical-align: middle;
    }
    .CheckBox Label {
        width:100%;
    }
    .CheckBox Input {
        transform: scale(1.5);
        padding: 5px;
        margin-right: var(--Spacing);
    }


.Table {
    display: table; /*If set to inline-table printing tries to keept he <table> together and not the desired result.*/
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
}

    .Table tr {
        page-break-inside: avoid;
    }

    .Table td {
        border: 1px solid #395b8857;
        /*        margin-right: 10px;
        margin-bottom: 10px;*/
        border-radius: 3px;
        /*   padding-left: 10px;
        padding-top: 10px;*/
        padding: 5px;
        page-break-inside: avoid;
        padding-bottom: 0px; /*No padding. Controls margins handle this.*/
    }

        .Table td > * {
            margin-bottom: 5px; /* Reduce margin inside tables*/
        }




.Foldout{
    display:inline-flex;
    flex-direction: column;
    width:100%;
/*    margin:var(--Margin);*/
    /*padding:1px;*/ /*Avoid edge cutoff*/
}

.FoldoutOpen{
}

.Foldout > .Toggle {
    display: block;
    width: 100%;
    padding: calc(var(--Spacing) /2);
    margin: 0px;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    cursor: pointer;
    border-style: none;
    background: var(--ButtonBackground);
    box-shadow: 0px 0px 3px var(--ShadowColor);
}
        .Foldout > .Toggle:hover {
            box-shadow: inset 0px 0px 3px var(--ShadowColor);
        }

        .Foldout > .Toggle > #Sign {
            /*  zoom: 1.5;*/
            display: inline-block;
            vertical-align: middle;
            transform-origin: center;
            transform: rotate( -45deg); 
        }
        .Foldout > .Toggle > #Text {
            display: inline-block;
            vertical-align: middle;
        }

.FoldoutOpen > .Toggle > #Sign {
  

    transform: rotate( 0deg); 

}



.Foldout > .Content {
    padding: var(--Padding);
    /*padding-right: 1px;*/ /* avoid cutting of edges*/
    margin: 0px;
    /*max-height: 0;*/ /* default */
    /*    overflow: hidden;*/
    display: block;
    /*  border-bottom-style: solid;*/
    transition:  0.3s ease;
    transform: scaleY(0);
    transform-origin: top;
/*    height: 0px;*/
    max-height:0px;
}

    .FoldoutOpen > .Content {
        /*display: block;*/ /* default */
        max-height: inherit;


        transform: scaleY(1);
   /*     height: auto;*/
        max-height: 999999px;
    }

.AbsoluteCenter {
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%);
}


.Box {
    margin: var(--Margin);
    width: 225px;
    border-style: solid;
    display: inline-flex;
    flex-direction: column;
    white-space: nowrap;
    page-break-inside: avoid;
    overflow: hidden;
}
    .Box > * {
        --Spacing: 5px;
        --Padding: var(--Spacing) 0px 0px var(--Spacing);
        --Margin: 0px var(--Spacing) var(--Spacing) 0px;
    }

.Box > #Label {
    padding: 3px;
    display: block;
    font-size: small;
    margin-bottom: 0px;
    margin-right: 0px;
/*    overflow:hidden; When enabled y axis is not correct.*/
}

    .Box > #Content {
        display: block;
        margin: 0px;
        font-size: inherit;
        font-family: inherit;
        background-color: transparent;
        height: 100%;
        border-style: none;
        padding:var(--Padding);
        overflow:hidden;
    }

.Box.Wrap .Label
{
    white-space:pre-wrap;
}

.TextBox {
    margin: var(--Margin);
    width: 225px;
    background-color: var(--Background3);
    border-style: solid;
    display: inline-flex;
    flex-direction: column;
    page-break-inside: avoid;
}

    .TextBox:focus-within {
        box-shadow: 0px 0px 3px 1px var(--ShadowColor);
    }

.TextBox-ReadOnly {
    /* background-color: #f0f4f9;*/
    FILTER: BRIGHTNESS(0.9);
}

.TextBox-Error {
    box-shadow: inset 0px 0px 3px #ff0000;
    border-color: red;

}

.TextBox-Required {
    border-left-style: solid;
    border-left-width: 3px;
    border-left-color: #ff4444;
}




.TextBox > Label {
    padding: 3px;
    display: block;
    font-size: small;
    margin-bottom: 0px;
    margin-right: 0px;
}

.TextBox > .Input {
    display: block;
    padding: 5px;
    margin: 0px;
    font-size: inherit;
    font-family: inherit;
    background-color: transparent;
    resize: none;
    outline: 0;
    height: 100%;
    border-style: none;
    min-height: 25px; /*Fix chrome/brave browser update of 2023/04/12*/
}

    .TextBox > .Input::placeholder {
        opacity: 0.5;
        color: var(--Color1);
        font-style: italic;
        zoom: 1;
        vertical-align: middle;

    }

.TextBox-Required > .Input::placeholder {
   /* color: red;
    font-style: italic;*/


}

   /* .TextBox-Required > .Input::placeholder {
        color: red;
        font-style: italic;
    }*/

.TextBox > .Input:focus {
    border-style: none;
    border-width: 0px;
}


.Image{
    margin:var(--Margin);
}



.DataGrid {
    margin: var(--Margin);
    display: table;
    box-sizing: border-box;
    width: 100%;
    border-spacing: 3px;
    white-space: pre-wrap;
    margin-left: calc(3px * -1); /*Offset border spacing*/
    margin-top: calc(3px * -1); /*Offset border spacing*/
    width: calc(100% + 6px); /*Offset border spacing*/

}

    .DataGrid thead {
        /*    display: table-row-group;*/
        /*color: black;*/
        /*display: table-header-group;*/
        font-weight: bold;
        page-break-inside: avoid;
    }

        .DataGrid thead td {
            border-style: solid;
            padding: calc(var(--Spacing) / 2);
            border-bottom-width: 3px;
            vertical-align: middle;
            background: inherit;
        }

    .DataGrid tbody tr {
        page-break-inside: avoid;
        background: var(--Background2);
    }



        .DataGrid tbody tr:nth-child(odd) {
            background: var(--Background3);
        }



    .DataGrid td {
        padding: 5px;
        margin: 0px;
        border-style: solid;
    }

    .DataGrid tfoot {
        display: table-row-group;
        /*display: table-row-group;*/
    }

        .DataGrid tfoot td {
            font-weight: bold;
            border-style: solid;
            border-top-width: 3px;
            vertical-align: middle;
        }


.DataGridList {
    display: Block;
    margin: 0px 0px var(--Spacing) 0px;
    padding: 0px;
    width: 100%;
    box-sizing: border-box;

}





    .DataGridList Row {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        margin: 0px 0px var(--Spacing) 0px;
        padding: 0px;
        width: 100%;
        box-sizing: border-box;
        grid-gap: 3px;
        background: transparent;
        box-shadow: 0px 2px 3px 0px #bbbbbb;
    }

    .DataGridList.Col1 Row {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    .DataGridList.Col2 Row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .DataGridList.Col3 Row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .DataGridList.Col4 Row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

.DataGridList Row:nth-child(odd) Cell {
    background: var(--Background3);
}

@media (max-width: 600px) {


    .DataGridList.Col1 Row {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .DataGridList.Col2 Row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .DataGridList.Col3 Row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .DataGridList.Col4 Row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media print {


    .DataGridList.Col1 Row {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .DataGridList.Col2 Row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .DataGridList.Col3 Row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .DataGridList.Col4 Row {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    html.Beta {
        box-shadow: none;
    }
}

.DataGridList .Footer {

    border-style: solid;
}


.DataGridList Cell {

    background: var(--Background2);
    display: inline-flex;
    flex-direction: column;
    page-break-inside: avoid;
}

.DataGridList Label {
    padding: 3px;
    display: block;
    font-size: small;
    margin-bottom: 0px;
    margin-right: 0px;
}

.DataGridList Value {
    display: block;
    padding: 5px;
    margin: 0px;
    font-size: inherit;
    font-family: inherit;
    background-color: transparent;
    resize: none;
    outline: 0;
    height: 100%;
    border-style: none;
    min-height: 25px; /*Fix chrome/brave browser update of 2023/04/12*/
}



        .DataPager{
            border-style:solid;
            display:inline-block;
            padding: var(--PaddingSmall);
            margin:var(--Margin);
        }
        .DataPager > *{
            vertical-align:middle;
            margin: var(--MarginSmall);
        }




.CheckBoxButton {
    background: var(--ButtonBackground);
    width: auto;
    padding: 0px;
}

    .CheckBoxButton:hover {
        box-shadow: inset 0px 0px 3px var(--ShadowColor);
    }

    .CheckBoxButton label {
        padding: calc(var(--Spacing) / 2)
    }

    .CheckBoxButton input {
        position: absolute;
        visibility:hidden;
        left: -999px; 
    }



.Popup {
    flex-direction: column;
    border-style: solid;
    box-shadow: 0px 0px 3px var(--ShadowColor);
    margin: var(--Margin);
    transform: scaleY(0);
    transform-origin: top;
    max-height: 0px;
    display: inline-flex;
    position: absolute;
    width: 0px;
    background: var(--Background1);
}
.PopupOpen {
    transform: scaleY(1);
    max-height: 999999px;
    position: inherit;
    width: 100%;
}
.Popup > .Header {
    width: 100%;
    padding: calc(var(--Spacing) /2);
    margin: 0px;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    border-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom-style: solid;
}
    .Popup > .Header > #Close {
        display: inline-block;
        vertical-align: middle;
        transform-origin: center;
        cursor: pointer;
        text-align: center;
        padding-right: 3px;
        padding-left: 3px;
    }

        .Popup > .Header > #Close:hover {
            box-shadow: 0px 0px 3px var(--ShadowColor);
        }
.Popup > .Header > #Text {
        display: inline-block;
        vertical-align: middle;
    }
.Popup > .Content {
    padding: var(--Padding);
    margin: 0px;
    display: block;
    transform: scaleY(0);
    transform-origin: top;
    max-height: 0px;
}
.PopupOpen > .Content {
    transform: scaleY(1);
    max-height: 999999px;
}

.GChart {
    border-style: solid;
    padding: var(--Spacing);
    margin: var(--Margin);
    overflow: hidden;
    grid-column: 1 / -1;
}

.ChartJS {
    /*width: 100%;*/
    height: 300px;
    position: relative;
    margin: var(--Margin);
    grid-column: 1 / -1;
    justify-content: center;
    display: flex;
    background: var(--Background3);
    padding: var(--Spacing);
}




.Window {
    border-style: solid;
    max-height: 0px;
    display: inline-flex;
    position: fixed;
    background: var(--Background1);
    display:none;

    right:0;
    left:0;
    z-index:1;
}
.WindowOpen {
    max-height: 999999px;
    display: block;
}
.Window > .Header {
    width: 100%;
    padding: calc(var(--Spacing) /2);
    margin: 0px;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    border-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom-style: solid;
}
    .Window > .Header > #Close {
        display: inline-block;
        vertical-align: middle;
        cursor: pointer;
        text-align: center;
        padding-right: 3px;
        padding-left: 3px;
    }

        .Window > .Header > #Close:hover {
            box-shadow: 0px 0px 3px var(--ShadowColor);
        }
.Window > .Header > #Text {
        display: inline-block;
        vertical-align: middle;
    }
.Window > .Content {
    padding: var(--Padding);
    margin: 0px;
    display: block;

    max-height: 0px;
}
.WindowOpen > .Content {
    max-height: 999999px;
}




@media print {
    body {
        zoom: 1 !important;
        -moz-transform: scale(1) !important;
        --Background1: var(--PrintBackground1); /*Override print background.*/
        --Background2: var(--PrintBackground2); /*Override print background.*/
        --Background3: var(--PrintBackground3); /*Override print background.*/
    }

    @page {
        /*Ajudst this for page sizing*/
        size: 330mm 470mm;
        /*size: A4;*/
        margin: 10mm 10mm 10mm 10mm;
        /*@bottom-center{
              content: "Page " counter(page) " of " counter(pages);
        }*/
    }



    body * {
        visibility: collapse;
    }


    /*remove heading paddding form relative position*/
    .PageHeader, .PageHeader * {
        height: 0px !important;
        visibility: collapse;
        display: none;
    }



    .PrintArea {
        position: relative; /*absolute position does not work with page-break*/
        margin: 0px;
        padding: 0px;
        display: block !important; /*required for page breaks*/
        overflow: hidden; /*BUG FIX: Hide popup of scroll bar when printing*/
        max-width: 100%; /*Should allow max widith on printing, especially when print area is landscape*/
    }


        .PrintArea, .PrintArea * {
            visibility: visible;
            float: none !important;
        }



    .PageBreakAfter {
        page-break-after: always;
        display: block;
        height: 1px;
    }

    /*Remove text decoration from hyperlinks*/
    a[href] {
        text-decoration: none;
        pointer-events:none; /*This does not seem to remove it from pdf*/
    }
        /*Remove hyperlink click*/
        a[href]:after {
            content: none !important;
        }

      .PrintZone {
        position: relative; /*absolute position does not work with page-break*/
        margin: 0px;
        padding: 0px;
        display: block !important; /*required for page breaks*/
        overflow: hidden; /*BUG FIX: Hide popup of scroll bar when printing*/
        max-width: 100%; /*Should allow max widith on printing, especially when print area is landscape*/
    }

        .PrintZone, .PrintZone * {
            visibility: visible;
            float: none !important;
        }
}


@media print and (color) {
    * {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}





.FitBox {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0px 0px var(--Spacing) 0px;
    padding: 0px;
    width: 100%;
    box-sizing: border-box;
    grid-gap: var(--Spacing);
}

.Popup .FitBox {
    width: calc(100% - var(--Spacing));
}


@media (max-width: 600px) {
    .FitBox {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media print {
    .FitBox {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

.FitBox > datalist {
    display: none;
}

.FitBox > .Button, .FitBox > .Hyperlink {
    margin-right: auto;
    margin-bottom: auto;
}



.FitBox > .DataGrid {
    grid-column: 1 / -1;
}

.FitBox > .DataGridList {
    grid-column: 1 / -1;
}


/*All direct children has no margins, grid-gap is used instead*/

.FitBox > * {
    margin: 0px;
    width: auto;
}

.FitBox > .Header, .FitBox > .Heading {
    grid-column: 1 / -1;
    font-weight: bold;
}



.FitBox > .Stretch {
    grid-column: 1 / -1;
}


.FitBox > .Span2 {
    grid-column: span 2;
}
.FitBox > .Span3 {
    grid-column: span 3;
}
.FitBox > .Span4 {
    grid-column: span 4;
}

.FitBox > .Hr {
    grid-column: 1 / -1;
}

.FitBox > .DataGrid {
    grid-column: 1 / -1;
}

.FitBox > .ImageUploader > [Name=Preview] {
    margin: 3px;
    max-height:50px;
    object-fit:cover;
}


.Menu > .FitBox, 
.Popup > .FitBox
{
    width: calc(100% - var(--Spacing));
}



.FlexBox {
    margin-right: 0px;
    display: flex;
    flex-wrap: wrap;
}

    .FlexBox > .TextBox {
        width: 150px;
        flex-grow: 1;
    }

    .FlexBox > .CheckBox {
        width: 150px;
        flex-grow: 1;
    }


/*==========PAGE content GRID============*/
.AutoGrid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0px 0px 0px 0px;
    padding: 0px;
    width: 100%;
    box-sizing: border-box;
    grid-gap: var(--Spacing);
}


@media (max-width: 600px) {
    .AutoGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.AutoGrid > datalist {
    display: none;
}
/*All direct children has no margins, grid-gap is used instead*/
.AutoGrid > * {
    margin: 0px;
    width: auto;
}

.AutoGrid > .Heading {
    grid-column: 1 / -1;
    font-weight: bold;
    zoom: 1.25;
    padding: 5px;
}

.AutoGrid > .Stretch {
    grid-column: 1 / -1;
}

.AutoGrid > .Hr {
    grid-column: 1 / -1;
}

.AutoGrid > .DataGrid {
    grid-column: 1 / -1;
}

.AutoGrid > .PageHeader {
    grid-column: 1 / -1;
    margin-top: -13px;
}








.DialogBox {
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%);
    border-style:solid;
    text-align:center;
    padding:var(--Padding);
        min-width: 250px;
        min-height: 250px;
}


.ImportData {
    border-style: solid;
    display: inline-block;
    width: 100%;
    padding: var(--Padding);
    margin: var(--Margin);
    display: grid;
    grid-gap: var(--Spacing);
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

    .ImportData > input[type=file] {
        grid-column: 1/-2;
    }


    .ImportData > #Label {
        grid-column: 1/-1;
    }


/* Vertical Align Container*/
.VAContainer {
   
    padding: var(--PaddingSmall);
    margin: var(--Margin);
    border-style:solid;
    box-sizing: border-box;

    display: inline-block;
}

    .VAContainer > * {
        display: inline-block;
        margin: var(--MarginSmall);
        vertical-align: middle;
    }


/* ---- Workflow Timeline ---- */
.WorkflowTimeline {
    /*display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    padding: 0px;
    background-color: #fff;*/
    /* border: 1px solid #ccc; */
    /*border-radius: 10px;
    overflow: hidden;
    background: var(--Background1);
    margin: var(--Margin);
   
    --AccentBackground: var(--ColorBlueLight);
    border-radius: 0px;*/
    --AccentBackground: var(--ColorBlueLight);
    margin-bottom: var(--Spacing);
}

.WorkflowTimeline .Nodes {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    padding: 0px;
    background-color: #fff;
    /* border: 1px solid #ccc; */
    border-radius: 10px;
    overflow: hidden;
    background: var(--Background1);
    margin: var(--Margin);
    margin-bottom:0px;
   
    border-radius: 0px;
}

    .WorkflowTimeline .Nodes .Stage {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: left;
        padding: 0 10px;
        height: 30px;
        transition: max-width 0.5s ease, width 0.5s ease, max-width 0.5s ease;
        white-space: nowrap;
        margin: 0px;
        /* transform: scale(0.8); */
        background: var(--Background2);
        /* max-width: 50px; */
        /* border-radius: 50%; */
        overflow: hidden;
        /* cursor: pointer; */
        /* margin-bottom: 10px; */
        
        /* max-width: 10%; */
        /* min-width: fit-content; */
        max-width: 10%;
        width: fit-content;
        cursor: default;

    }



        .WorkflowTimeline .Nodes .Stage.Prev,
        .WorkflowTimeline .Nodes .Stage.Current,
        .WorkflowTimeline .Nodes .Stage.Next {
        }

        .WorkflowTimeline .Nodes .Stage.Completed {
            background: var(--AccentBackground);
        }

        .WorkflowTimeline .Nodes .Stage.Current {
            transform: scale(1);
            font-weight: bold;
            border-style: solid;
            border-color: var(--AccentBackground);
            border-width: 3px;
            min-width: fit-content;
        }



        /* On hover, show the full text for hidden nodes */
        .WorkflowTimeline .Nodes .Stage:hover {
            max-width: 100%;
            overflow: inherit;

            transition: opacity 1s ease, transform 1s ease, max-width 1s ease;
        }



        .WorkflowTimeline .Nodes .Stage .Content {
            overflow: hidden;
            transition: opacity 0.5s ease, transform 0.5s ease, max-width 0.5s ease;
        }
        .WorkflowTimeline .Nodes .Stage.Current .Content, .WorkflowTimeline .Stage.Prev .Content, .WorkflowTimeline .Stage.Next .Content, .WorkflowTimeline .Stage:hover .Content {
            max-width: 100%;
            overflow: inherit;
        }

    .WorkflowTimeline .Nodes .Line {
        flex: 1;
        height: 5px;
        background: var(--Background2);
        /* display: flex; */
        /* width: 100%; */
        /* margin-left: -20px;
        margin-right: -20px;*/
        min-width: 10px;

        display: flex;
        justify-content: center;
        height: auto;
        zoom: .8;
        min-height:5px;
        overflow:hidden;

        cursor:default;
    }

        .WorkflowTimeline .Nodes .Line .Content {
            white-space: nowrap;
            overflow: hidden;
            transition: opacity 0.5s ease, transform 0.5s ease, max-width 0.5s ease;
            padding:1px;
        }
        .WorkflowTimeline .Nodes .Line .Content:hover {
            max-width: 100%;
            overflow: inherit;
            z-index: 1; /* Bring to the front */

            transition: opacity 1s ease, transform 1s ease, max-width 1s ease;
        }


  

        .WorkflowTimeline .Nodes .Line.Completed {
            background: var(--AccentBackground);
        }





    .WorkflowTimeline .CurrentStageInfo {
        display: flex;
        justify-content: center;
        zoom: 0.8;
    }
        .WorkflowTimeline .CurrentStageInfo .Element {
            border-style: solid;
            border-color: var(--AccentBackground);
            border-width: 3px;
            background: var(--Background2);
            padding: 3px;
            width: 100%;
            text-align: center;
        }

.DebugPanel {
    padding: var(--Padding);
    margin: var(--Margin);
    border-color: var(--ColorOrange);
    border-style: dashed;
    border-width: 3px;
    margin-right: 0px;
}


.Callout {
  
    margin: var(--Margin);


    margin-right: 0px;
    padding-top:var(--Spacing);
    margin-bottom: calc( var(--Spacing) * 2);
    cursor: pointer;
}




    .Callout .Header {
        display: block;
        background: var(--ColorBlueLight);
        /* display: flex
; */
        align-items: center;
        height: 5px;
        cursor: pointer;
        /* text-align: center; */
        height: auto;
        
        /* margin-top: -10px; */
        padding: 3px;
        pointer-events: none;




    }



    .Callout .Content {
        margin-top: var(--Spacing / 2);
        display: none;
        height: 0px;
        background: var(--ColorBlueLight);
        padding: var(--Padding);
        zoom: 0.8;
        pointer-events: none;
    }

    .Callout.Open .Content {
        display: block;
        height: fit-content;
        transition: height 0.5s ease-in-out;

    }



/* Base styles for the dropdown menu */
.DropDownMenu {
    position: relative; /* Ensure the dropdown content is positioned relative to the button */
    display: inline-block; /* Allow the button and dropdown to align inline */
}

    /* Styles for the toggle button */
    .DropDownMenu .Toggle {
        /*    background: #233852;*/
        cursor: pointer;
        padding: calc(var(--Spacing) / 2) 0px 0px calc(var(--Spacing) / 2);
        margin: 0px var(--Spacing) var(--Spacing) 0px;
        font-size: inherit;
        /*    vertical-align: top;*/
        box-sizing: border-box;
        cursor: pointer;
        border-style: none;
        display: inline-block;
        text-decoration: none;
        background: var(--ButtonBackground);
        border-radius: 3px;
        box-shadow: 0px 0px 3px var(--ShadowColor);
        -webkit-user-select: none; /* For Safari and older Chrome */
        -moz-user-select: none; /* For older Firefox */
        -ms-user-select: none; /* For older Internet Explorer */
    }

        .DropDownMenu .Toggle *, .Hyperlink * {
            display: inline-block;
            margin: 0px calc(var(--Spacing) / 2) calc(var(--Spacing) / 2) 0px;
            vertical-align: middle;
            pointer-events: none; /*IMPORTANT for event handeling*/
        }

        /* Add hover effect for the button */
        .DropDownMenu .Toggle:hover {
            background-color: #005A9E; /* Darker shade on hover */
        }

        .DropDownMenu .Toggle .Hyperlink {
            display: inline-flex;
            align-items: center;
        }

    /* Styles for the dropdown content */
    .DropDownMenu .Content {
        display: none; /* Hidden by default */
        position: absolute; /* Position it relative to the parent */
        top: 100%; /* Place it directly below the button */
        left: 0;
        z-index: 1; /* Ensure it appears above other elements */
        background-color: var(--Background3);
    
        border-radius: 4px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
        width: 250px; /* Minimum width for the dropdown */
        padding:var(--Padding);
       
        

    }

        /* Style for each item in the dropdown */
        .DropDownMenu .Content div {
            padding: 8px 12px;
            font-size: 14px;
            color: #333;
            cursor: pointer;
            white-space: nowrap; /* Prevent text wrapping */
        }

            /* Add hover effect for dropdown items */
            .DropDownMenu .Content div:hover {
                background-color: #f0f0f0; /* Light gray background on hover */
            }

    /* Show the dropdown content when the parent has the 'open' class */
    .DropDownMenu.Open .Content {
        display: flex;
        flex-direction: column;
    }

    .DropDownMenu.Open > .Toggle {
     background: var(--Background3);
    }






.Accordion 
{

    margin: var(--Margin);
    transition: all 0.3s ease;
    grid-column: 1 / -1; /*when displayed in grids*/
    width:100%;
    display:block;



}

    .Accordion .Toggle {
        display: flex; /* Use Flexbox for alignment */
        align-items: center; /* Vertically align children */
        width: 100%;
        cursor: pointer;
        padding: var(--PaddingSmall);
        -webkit-user-select: none; /* For Safari and older Chrome */
        -moz-user-select: none; /* For older Firefox */
        -ms-user-select: none; /* For older Internet Explorer */
        text-decoration: none;
        background: var(--ButtonBackground);
        border-radius: 3px;
        box-shadow: 0px 0px 3px var(--ShadowColor);
    }

        .Accordion .Toggle > * {
            display: inline-block;
            margin: 0px calc(var(--Spacing) / 2) calc(var(--Spacing) / 2) 0px;
            vertical-align: middle;
            pointer-events: none; /*IMPORTANT for event handeling*/
        }

    .Accordion .Content {
        display: none;
        padding: var(--Padding);
        position:relative;
    }


    .Accordion.Open {

    }

        .Accordion.Open > .Content {
            display: block;
            border-color: var(--Background3);
            border-width: 3px;
            /*border-style: solid;*/
  

            border-style:solid;
        }

    .Accordion.Open > .Toggle {
        background: var(--Background3);
        box-shadow:none;
    }

    /*Menu style accordion.*/
    .Accordion.Open.Menu > .Content {
        display: inline-grid;
        grid-template-columns: 1fr; /* Single column */
        gap: var(--Spacing); /* Use the spacing variable for the gap */
        width: 100%; /* Ensure it stretches to the container width */
        box-sizing: border-box; /* Include padding and borders in width/height */
        padding: var(--Spacing);
    }


        .Accordion.Open.Menu > .Content > * {
            margin: 0px;
            width: auto;

        }





/* Debug console floating link — light orange, fixed bottom-right */
.DebugConsoleLink {
    position: fixed !important;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    /* Light orange */
    background: linear-gradient(135deg, #fff6ec 0%, #ffe8c8 50%, #ffd39b 100%);
    border: 1px solid rgba(255,140,0,0.12);
    box-shadow: 0 8px 20px rgba(255,160,60,0.08);
    backdrop-filter: blur(6px);
    color: #7a3f00; /* darker warm text for contrast */
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    user-select: none;
    transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}

    .DebugConsoleLink:hover {
        transform: translateY(-3px);
        box-shadow: 0 14px 34px rgba(255,140,0,0.14);
        text-decoration: none;
        opacity: 0.98;
    }

    .DebugConsoleLink:focus {
        outline: 3px solid rgba(255,165,0,0.16);
        outline-offset: 3px;
    }

    /* If your Hyperlink control renders a .Label element, tighten spacing */
    .DebugConsoleLink .Label {
        line-height: 1;
    }

/* Small screens: keep it compact and hide the text label */
@media (max-width: 480px) {
    .DebugConsoleLink {
        right: 12px;
        bottom: 12px;
        padding: 8px 10px;
        border-radius: 8px;
    }

        .DebugConsoleLink .Label {
            display: none;
        }
}

