html, body {
    /*font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;*/
    /*background-image: linear-gradient(180deg, #233971 0%, #111111 100px);*/
    /*background-image: linear-gradient(180deg, #000000 0%, #111111 300px);*/
    background-repeat: no-repeat;
    background-attachment: fixed;
    /*    background-color: #f8f9faff;*/

    background-color: #f8fdfaff;
    color: #555555;
    font-family: 'Glacial Indifference';
}

a {
    color: #828282ff; /* Sets the text color to blue */
    /*text-decoration: none;*/ /* Removes the underline from links */
    font-weight: normal;
    background-color: transparent;
    border: solid 0px;
    border-radius: 5px;
}

    a:hover {
        color: #233971ff; /* Sets the text color to blue */
        /*text-decoration: none;*/ /* Removes the underline from links */
        font-weight: normal;
       /* background-color: transparent;*/
        border: solid 0px;
        border-radius: 5px;
    }

    a[data-title]:hover::after {
        content: attr(data-title);
        position: absolute;
        top: -120%;
        left: 0;
        background-color: #006bb7;
        /*color: #006bb7;*/
        color: white;
        border: 5px solid #006bb7;
        font-weight: bolder;
        /*width: 250px;*/
        z-index: 100;
    }

textarea {
    width: 300px;
    height: 70px;
    resize: vertical; /* Prevent resizing */
}

button[data-title]:hover::after {
    content: attr(data-title);
    position: absolute;
    top: -120%;
    left: 0;
    background-color: #006bb7;
    color: white;
    border: 5px solid #006bb7;
    font-weight: bolder;
    /*width: 250px;*/
    z-index: 100;
}

.btn-link {
    color: #646464;
    text-decoration: none;
}

    .btn-link:hover {
        color: #233971ff;
        font-weight: bolder;
    }

    .btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
        box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #c4e0ff;
    }

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}


    .valid.modified:not([type=checkbox]) {
        outline: 1px solid #26b050;
    }

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHht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k1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
    /*    border-color:red;
    background-color:red;*/
}


@font-face {
    font-family: 'Glacial Indifference';
    src: url('/fonts/GlacialIndifference-Regular.otf') format("opentype");
}

.GlacialIndifferent {
    font-family: 'Glacial Indifference';
}

table tr td:not([style*="sticky"]),
table tr th:not([style*="sticky"]) {
    background-color: transparent !important;
    color: #333333 !important;
}

.table-dark th, .table-dark td {
    background-color: #203764 !important;
    color: #fff !important;
}

table tr.total-row td {
    color: #fff !important;
    background-color: #32569C !important;
}

thead[style] th:not([style*="sticky"]) {
    background-color: inherit !important;
    color: inherit !important;
}


.accordion-button:not(.collapsed) {
    /*   color: #233971;*/
    /*background-color: #23397110;*/
    color: #111111;
    /* background-image: linear-gradient(180deg,#111111, #233971, #233971, #111111);*/
    background-color: #e3edd9ff;
    /*linear-gradient(180deg, #111111 0%, #233971 50%);*/
    /*box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.125);*/
    border-color: transparent;
    border: 0px;
    padding: 0.35rem 0.75rem;
}

.accordion-button.collapsed {
    /*background-color: #233971A4;*/
    background-color: transparent;
    /*border-color: #233971;*/
    border-color: red;
    color: #111111;
    border-top: 0px;
    border-bottom: 1px solid #e3edd9ff;
    border-left: 10px solid #e3edd9ff;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
}

.accordion-body {
    /*background-color: #233971;*/
    background-color: transparent;
    color: #111111;
    border: 0px;
}

.accordion-header {
    background-color: transparent;
    color: #111111;
    border: 0px;
}

.accordion-item {
    background-color: transparent;
    color: #111111;
    border: 0px;
}
/*-------------------------------*/
/*          Brochure Effects      */
/*-------------------------------*/
#header {
    padding-left: 0;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
    background-image: linear-gradient(180deg,#111111, #233971, #233971, #111111);
    background-size: cover;
    background-repeat: no-repeat;
    height: 100px;
    position: fixed;
    top: 0;
    opacity: 1;
}

#footer {
    padding-left: 0;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
    background-image: linear-gradient(180deg,#f8f9faff, #233971, #233971, #f8f9faff);
    background-size: cover;
    background-repeat: no-repeat;
    height: 100px; /*
    position: fixed;*/
    bottom: 0;
    opacity: 1;
}

.leftbanner {
    padding-left: 0;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
    background-image: linear-gradient(150deg, #e3edd9ff,#f8f9faff);
    background-size: cover;
    background-repeat: no-repeat;
    /*height: 100px;*/ /*
    position: fixed;*/
    bottom: 0;
    opacity: 1;
    border-radius: 10px;
}

.rightbanner {
    padding-right: 0;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
    background-image: linear-gradient(150deg,#f8f9faff, #e3edd9ff);
    background-size: cover;
    background-repeat: no-repeat;
    height: 100px; /*
    position: fixed;*/
    bottom: 0;
    opacity: 1;
    border-radius: 10px;
}

.btn-primary {
    color: white;
    background-color: #006bb7;
    border-color: #006bb7;
}

.btn-outline-primary {
    color: #006bb7;
    background-color: transparent;
}

.btn-secondary {
    color: white;
    background-color: #646464;
}

.btn-outline-secondary {
    color: #646464;
    background-color: transparent;
}


div.scroller {
    /*width: 300px;
    height: 100px;*/
    overflow-y: scroll;
    scrollbar-color: transparent transparent;
}

dialog {
    /* background-image: linear-gradient(180deg,#111111, #233971, #233971, #111111);*/
    background-color: #f8f9faee;
    border-radius: 15px;
    border: 0px solid;
    color: #333333;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

    .overlay.show {
        display: block;
    }


/*-------------------------------*/
/*          Menu Effects         */
/*-------------------------------*/
.SasMenu {
    /*background-image: linear-gradient(180deg, #ffffff 80%, #e0ded0cc 100%);*/
    /*color: #EEEEEE;
    background-image: linear-gradient(180deg, #1F1F1F 80%, #1F1F1F 100%);*/
  /*  background-color: white;*/
    color: #333333;
}

    .SasMenu a {
        color: #233971;
        text-decoration: none;
        font-weight: 500;
    }

/*
.SasMenu .SasMenuItem:hover {
    color: #FFFFFF;
    text-decoration: none;
    background-color: #233971;
}
.SasMenu .SasMenuItem:hover {
    color: #FFFFFF;
    text-decoration: none;
    background-color: #233971;
}*/

.SasMenuItem {
/*    background-color: #FFFF00;*/
    text-decoration: none;
    margin: 4px;
}
/*
.SasMenu .SasMenuItem:hover {
    color: #FFFFFF;
    text-decoration: none;
    background-color: #233971;
}*/

.SasMenuItemContentNoHover {
    /*color: #EEEEEE;*/
    color: #233971ee;
    text-decoration: none;
   /* background-color: transparent;*/
    margin: 10px;
}


.SasMenuItemContent {
    color: #233971ee;
    /*  color: #EEEEEE;*/
    text-decoration: none;
    background-color: transparent;
    margin: 1px;
    padding: 1px;
}

    .SasMenuItemContent:hover {
        /* color: #233971;*/
        /*color: #248cfbff;*/
        color: #233971ee;
        font-weight: 600;
        text-shadow: 1px 1px 2px #697081;
    }

.SasItem {
}

    .SasItem:hover {
        /*color: white;*/
        color: #233971ee;
        font-weight: 600;
        text-shadow: 1px 1px 2px #697081;
    }

/* ── Accordion tree hierarchy styles ── */

/* Parent (branch) node – green tinted bar matching accordion headers */
.acc-tree-parent {
    background: linear-gradient(90deg, #e3edd9cc 0%, #f2f7edaa 100%);
    border-radius: 4px;
    padding: 0.15rem 0.5rem;
    margin-bottom: 2px;
    transition: background-color 0.15s ease;
}

    .acc-tree-parent:hover {
        background: linear-gradient(90deg, #dce8d0 0%, #edf4e6 100%);
    }

/* Leaf node – subtle styling */
.acc-tree-leaf {
    padding: 0.15rem 0.5rem;
    margin-bottom: 0;
    border-radius: 3px;
    border-bottom: 1px solid #e8f0e0;
    transition: background-color 0.15s ease;
}

    .acc-tree-leaf:last-child {
        border-bottom: none;
    }

/* Data leaf (clickable with form link) – interactive cursor and hover */
.acc-tree-leaf-data {
    cursor: pointer;
/*    background-color: rgba(232, 240, 224, 0.25);*/
}

    .acc-tree-leaf-data:hover {
        background-color: rgba(227, 237, 217, 0.55);
    }

/* Non-data leaf (structural, not editable) – muted */
.acc-tree-leaf-readonly {
    color: #777;
}

/* ── Tree connector lines (segment-based) ── */

/* Children container: provides indent space for tree lines.
   No border-left — vertical lines are drawn per-item via ::after pseudo-elements.
   This eliminates white-line masking hacks and empty-container artifacts. */
.acc-tree-children {
    position: relative;
    margin-left: 0.75rem;
    padding-left: 1.1rem;
}

/* Row and children need relative positioning for pseudo-element connectors */
.acc-tree-children > .row {
    position: relative;
}

.acc-tree-children > .row > div {
    position: relative;
}

/* Horizontal connector (├─ or └─): items marked with data-tree-connector */
.acc-tree-children > .row > div[data-tree-connector]::before {
    content: "";
    position: absolute;
    top: 0.85rem;
    left: -1.1rem;
    width: 1rem;
    height: 0;
    border-top: 1px solid #a8c098;
}

/* Vertical line segment (│): runs from top of item to bottom.
   For non-last items this connects to the next sibling below.
   For the last item [data-tree-last] it stops at the horizontal line (L-shape). */
.acc-tree-children > .row > div[data-tree-connector]::after {
    content: "";
    position: absolute;
    top: 0;
    left: -1.1rem;
    bottom: 0;
    width: 0;
    border-left: 1px solid #a8c098;
}

/* Last connected item: L-shape (└) terminator.
   Two separate attributes handle responsive 2-col vs stacked layouts:
   - data-tree-last-wide:   last left-column/parent item (visible on XL+ when right-col is hidden)
   - data-tree-last-narrow: last item overall (visible on <XL when all items stack) */

/* Narrow screens (<XL): all items stack, so the overall last item gets L-shape */
@media (max-width: 1199.98px) {
    .acc-tree-children > .row > div[data-tree-last-narrow]::after {
        bottom: auto;
        height: 0.85rem;
    }
}

/* Wide screens (XL+): right-col connectors are hidden, so the last
   left-column/parent item gets L-shape */
@media (min-width: 1200px) {
    .acc-tree-children > .row > div[data-tree-last-wide]::after {
        bottom: auto;
        height: 0.85rem;
    }
}

/* On XL+ screens, multi-column leaves show side by side.
   Right-column items (data-tree-connector-right) don't align with the
   vertical trunk so hide their connectors at that breakpoint. */
@media (min-width: 1200px) {
    .acc-tree-children > .row > div[data-tree-connector-right]::before,
    .acc-tree-children > .row > div[data-tree-connector-right]::after {
        display: none;
    }
}

/* Fallback: direct div children (legacy structure without .row wrapper) */
.acc-tree-children > div:not(.row) {
    position: relative;
}

.acc-tree-children > div:not(.row)::before {
    content: "";
    position: absolute;
    top: 0.85rem;
    left: -1.1rem;
    width: 1rem;
    height: 0;
    border-top: 1px solid #a8c098;
}

.acc-tree-children > div:not(.row)::after {
    content: "";
    position: absolute;
    top: 0;
    left: -1.1rem;
    bottom: 0;
    width: 0;
    border-left: 1px solid #a8c098;
}

.acc-tree-children > div:not(.row):last-child::after {
    bottom: auto;
    height: 0.85rem;
}

/* Chevron rotation for tree parent nodes */
.acc-tree-parent .acc-tree-chevron {
    transition: transform 0.2s ease;
}

.acc-tree-parent[aria-expanded="false"] .acc-tree-chevron {
    transform: rotate(-180deg);
}

/* Operator badge — formula hint (+, -, ×, ÷) shown left of chevron */
.acc-tree-operator-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background-color: rgba(100, 140, 70, 0.15);
    color: #4a7a2e;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    border: 1px solid rgba(100, 140, 70, 0.3);
}

/* ── Flat list items inside accordion body (no tree hierarchy) ── */
.acc-flat-item {
    padding: 0.15rem 0.25rem;
    border-bottom: 1px solid #e8f0e0;
    transition: background-color 0.15s ease;
}

    .acc-flat-item:last-child {
        border-bottom: none;
    }

.acc-flat-item-data {
    cursor: pointer;
    background-color: rgba(232, 240, 224, 0.25);
}

    .acc-flat-item-data:hover {
        background-color: rgba(227, 237, 217, 0.55);
    }

.acc-flat-item-readonly {
    color: #777;
}


.colorBlank {
    color: #DDDDDD;
}

.colorAlert {
    color: #ED7161;
}

.colorWarning {
    color: #FFCC66;
}

.colorAchieve {
    color: #88C057;
}

.input-header {
    color: #111111;
    //background-image: linear-gradient(90deg,#111111 0%, #233971 50%, #111111 100%);
    background-color: #e3edd9ff;
    align-items: center;
}

button.col-title {
    font-weight: bold;
    color: #333333;
    cursor: pointer;
}

    button.col-title:hover {
        text-decoration: underline;
    }


/*
.quickgrid[theme=default] .sort-indicator {
    filter: invert(100%) sepia(0%) saturate(7500%) hue-rotate(151deg) brightness(115%) contrast(102%);
}
*/
.form-check-input:checked {
    background-color: #88C057;
    border-color: #88C057;
    opacity: 1;
}

.overflowControl {
    overflow: auto; /* Enables scrolling */
}

    .overflowControl::-webkit-scrollbar {
        display: none; /* Hides scrollbar in WebKit browsers */
    }

.overflowControl {
    -ms-overflow-style: none; /* Hides scrollbar in IE and Edge */
    scrollbar-width: none; /* Hides scrollbar in Firefox */
}


.card {
    border: none;
    background-color: white;
}

.card-header {
    border: none;
    background-color: white;
}

.quickgrid-empty-row {
    border: none; /* Remove borders */
    background-color: transparent; /* Optional: Make background transparent */
}

.quickgrid-row {
    border: 1px solid; /* Remove borders */
    background-color: transparent; /* Optional: Make background transparent */
}

.quickgrid tbody tr:empty {
    display: none;
}

.quickgrid .placeholder-row {
    display: none;
}

.aqg-container {
    position: relative;
/*    max-height: 600px;
    overflow-y: auto;*/
}

.quickgrid thead th {
    position: sticky;
    top: 0;
    background-color: #f8fdfaff !important; /* force solid background */
    background-clip: padding-box; /* prevent bleed through */
    z-index: 1000; /* ensure it stays above rows */
    border-bottom: 2px solid #ddd;
}

.aqg-filter {
    margin-bottom: 8px;
    padding: 6px 10px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 6px;
}

/* Modal backdrop (semi-opaque dark overlay) */
.modal-backdrop.show {
    background-color: rgba(0, 0, 0, 0.6) !important;
}

/* Default modal content background for Bootstrap modals */
.modal .modal-content {
    background-color: #f8fdfaff; /* change to any hex/RGBA color you want */
    color: #333333;
    border: none;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* If you need to target only this modal instance, use a custom class for higher specificity */
.custom-modal .modal-content {
    background-color: #f8fdfaff; /* example non-white background */
}


.diagram-container {
    position: relative;
    width: 100%;
    height: 600px;

    border: 1px solid black; /* Just visual */
}

.diagram-node-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: white;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    padding: 6px;
    box-sizing: border-box;
}

.diagram-node-title {
    font-weight: 600;
    text-align: center;
    word-break: break-word;
}

.big-bold {
    font-size: 1.75em; /* 1.75 times the normal size */
    font-weight: bold; /* Makes the text bold */
}

/* Accordion header-only row: same look as accordion-button but no chevron and not clickable */
.accordion-button-static {
    display: flex;
    align-items: center;
    width: 100%;
    padding: var(--bs-accordion-btn-padding-y) var(--bs-accordion-btn-padding-x);
    font-size: 1rem;
    color: var(--bs-accordion-btn-color);
    background-color: var(--bs-accordion-btn-bg);
    border: 0;
    border-radius: 0;
    text-align: left;
    cursor: default;
    pointer-events: none;

    color: #111111;
    /* background-image: linear-gradient(180deg,#111111, #233971, #233971, #111111);*/
    background-color: #e3edd9ff;
    /*linear-gradient(180deg, #111111 0%, #233971 50%);*/
    /*box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.125);*/
    border-color: transparent;
    border: 0px;
    padding: 0.35rem 0.75rem;
}

.accordion-button-static::after {
    display: none;
}
