/*
    primary color: #003152
    secondary color: var(--secondary-color)
    third color: #BFBFBF
*/

:root {
    --primary-color: #003152;
    --secondary-color: #426c8d;
    --warning-color: #edb95e;
    --bg-grey: var(--form-grey);
    --common-grey: #fefefe;
    --border-grey: #ccc;
    --clamp-grey: #f5f5f5;
    --form-grey: #eee;
    --secondary-red: #963939;
    --surface-border: rgb(0 49 82 / 14%);
    --surface-radius: .5rem;
    --surface-shadow: 0 .125rem .35rem rgb(0 0 0 / 8%);
    --shadow: 0 0px 1px hsl(0deg 0% 0% / 0.075),
                0 1px 2px hsl(0deg 0% 0% / 0.075), 
                0 1px 4px hsl(0deg 0% 0% / 0.075), 
                0 4px 8px hsl(0deg 0% 0% / 0.075), 
                0 8px 16px hsl(0deg 0% 0% / 0.075);
}
body {
    background-image: url("/img/login.jpg");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.page {
    backdrop-filter: blur(5px);
    background: rgb(255, 255, 255, 0.7);
}

.main{
    height:100vh;
    margin-bottom:0px;
}

.main.cui-enabled{
    padding-top:30px;
}

.content {
    height: calc(100% - 56px);
    background: rgb(255, 255, 255, 0.75);   
    border-top-left-radius:15px;
    box-shadow: var(--shadow);
    overflow-x: hidden;
    overflow-y:auto;
}

.content.cui-enabled{
    height:calc(100% - 86px);
}

.cui-enabled .modal-fullscreen{
    padding-top:30px;
}

.cui-banner{
    height:30px;
    z-index:1;
    top:0;
    font-weight:bold;
    text-transform: uppercase;
}

@media (max-width: 640.98px) {
    .content {
        height: 100%;
        border-top-right-radius: 15px;
        margin-left:10px;
        margin-right:10px;
    }
}
/* width */
.content::-webkit-scrollbar {
    width: 10px;
    border-radius:15px;
    margin-top:10px;
}

.account-link {
    font-family: FjallaOne-Regular, serif;    
    letter-spacing: 0.5px;    
    color: var(--primary-color) !important;    
    text-decoration: none;    
}

.account-link:hover{
    font-weight:bold;
}

/* Track */
.content::-webkit-scrollbar-track {
    background: rgb(255,255,255,0.2);
    border-radius: 15px;
}

/* Handle */
.content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 15px;
}

/* Handle on hover */
.content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.sidebar.cui-enabled{
    padding-top:30px;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

a, .btn-link {
    color: #0366d6;
}

.navbar-dark {
    background-color: var(--primary-color) !important;
    border-bottom: 1px solid #d6d5d5;
}

.navbar-dark > a{
    color:#fff;
}

.form-check-input:checked[type=checkbox] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23003152' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");  
}

.form-check-input:checked[type=radio] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23003152'/%3e%3c/svg%3e");
}

.form-check-input:checked {
    background-color: #fff;
    border-color: #BFBFBF;
}

.form-switch .form-check-input, .form-switch .form-check-input:focus {
    background-color: #BFBFBF;
    border-color: #BFBFBF;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}

.form-switch .form-check-input:checked {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}

.nav-item a {
    font-family: FjallaOne-Regular, serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 100;
    color: var(--primary-color) !important;
    transition-property: background-color, box-shadow;
    transition-duration: 500ms;
    border-radius: 5px !important;
}

.nav-item a.active, .nav-item a:hover {
    background-color: rgb(255 255 255 / 85%) !important;
    box-shadow: var(--shadow);
}

.apex-breadcrumb {
    height:55px;
    color: var(--primary-color);
}

.project-panel {
    background-color: #e5e5e5;
    border-radius: 10px;
    width: 100%;
    box-shadow: var(--shadow);
}

.project-actions{
    cursor:pointer;
    font-size:1.5rem;
}

.panel-btn {
    height:50px;
    margin-top:10px;
    background: #e5e5e5;
    box-shadow: var(--shadow);
    cursor: pointer;
    padding: 10px;
    border-radius: 5px 0px 0px 5px;
    display:none;
}

.panel-full-item {
    display:none;
}

.panel-full .panel-full-item {
    display: block;
}

.panel-side-item {
    display: block;
}

.panel-full .panel-side-item {
    display: none;
}

.panel-control {
    flex: 0 0 100%;
}

.disable-content {
    pointer-events: none;
}

.disable-content-wrapper {
    cursor: not-allowed;
}

.vr {
    display: inline-block;
    align-self: stretch;
    width: 1px;
    min-height: 1em;
    background-color: currentColor;
    opacity: .25;
}

@media (max-width: 992px) {
    .panel-control {
        position: fixed;
        right: 0;
        top: 75px;
    }

    .project-panel {
        max-width: 400px;
        display: none;
    }

    .project-panel.open, .panel-btn {
        display: block;
    }   
    
    .panel-btn.open{        
    }
}

@media (max-width: 640px) {
    .panel-control{
        top:200px;
    }

    .project-panel {
        max-width: 100%;
    }
}



select, input, textarea, .form-control, .form-select{
    background-color: var(--common-grey);
}

.card, .tile {
    background: var(--common-grey);
    min-height:0px;
}

.tile{
    margin-bottom:1rem;
}

.list-group-item{
    background-color:var(--common-grey);
}

h1 .process-badge, h1 .process-badge {
    font-size: .45em;
    vertical-align: middle !important;
}

h3 .process-badge, h4 .process-badge {
    font-size: .6em;
    vertical-align: top !important;
}

.apex-breadcrumb ul li a, .apex-breadcrumb ul li a.active, .apex-breadcrumb ul li span, .apex-breadcrumb ul li span.active{
    font-size: 1.1rem;
    text-decoration: none !important;
    text-transform: uppercase;
    color: var(--primary-color);
}

    .apex-breadcrumb ul li a.active, .apex-breadcrumb ul li span {
        color: #444 !important;
    }

.accordion-button:not(.collapsed) {
    color: #fff;
    background-color: var(--primary-color);
}
    
.accordion-button:not(.collapsed)::after
{
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");    
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button {
    color: #fff;
    background-color: var(--primary-color);
}

.accordion-body{
    background:var(--common-grey);
}

.accordion-body .accordion-button {
    color: #efefef;
    background-color: var(--secondary-color);
}

.accordion-body .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23EFEFEF'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23EFEFEF'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* 1. Base State (Collapsed) 
   Chain classes (.accordion-button.accordion-light) to target the element 
   that has BOTH classes. */
.accordion-button.accordion-light {
    background-color: #eef4f9;
    color: #495057; /* Softer black (dark grey) for a cleaner look */
    font-weight: 500;
    border-bottom: 1px solid rgba(0,0,0,0.05); /* Subtle separator line */
    transition: background-color 0.2s ease, color 0.2s ease; /* Smooth animation */
}

    /* 2. Hover State (New)
   Gives feedback when the mouse is over the button */
    .accordion-button.accordion-light:hover {
        background-color: #e2eaf4; /* Slightly darker shade of the base color */
        color: #000;
        z-index: 2; /* Ensures borders/shadows render on top */
    }

    /* 3. Expanded State (Open) 
   This needs to be very specific to beat the existing 
   ".accordion-button:not(.collapsed)" rule. */
    .accordion-button.accordion-light:not(.collapsed) {
        background-color: #eef4f9;
        color: #000;
        font-weight: 700; /* Bold text to indicate "You are here" */
    }

        /* 4. The Chevron (Icon) - Force it to be Black 
            target both states to ensure the white icon is replaced. */
        .accordion-button.accordion-light::after,
        .accordion-button.accordion-light:not(.collapsed)::after {
            /* Bootstrap default black chevron */
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
        }

.sensor-output .list-group-item.active {
    color: #333;
    background-color: #eee;
    border:none;
}
.sensor-output .list-group-item {
    cursor: pointer;
}

.btn, .btn:hover {
    color: var(--primary-color);
    border-color: #BFBFBF;
    background: var(--common-grey);
}

.btn:hover{
    border-color:var(--primary-color);    
}

.btn.disabled {
    border-color: #BFBFBF;
    color: #BFBFBF;
}

.btn-primary, .btn-primary:hover,.btn-primary:focus {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary.disabled, .btn-primary:disabled,
.btn-secondary.disabled, .btn-secondary:disabled,
.btn-primary.disabled:hover, 
.btn-secondary.disabled:hover {
    color: #fff; 
    background-color: #BFBFBF;
    border-color: #BFBFBF;
}

.left-nav{

}

.btn-primary:hover,.btn-check:focus+.btn-primary, .btn-primary:focus {
    color: #BFBFBF;
}

.btn-success{
    background:green;
}
.btn-success:hover {
    background: #007606;
}

.btn-success, .btn-success:hover, .btn-danger, .btn-danger:hover {
    color: #fff;
}

.btn-danger{
    background:#e81d1d;
}

.btn-danger:hover {
    background: #a70b0b;
}

.btn-secondary, .btn-secondary:hover {
    color: #efefef;
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    color: #fff;   
}

.btn-check:checked + .btn-outline-primary, .btn-check:checked + .btn-outline-primary:active:hover {
    color: #fff;
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-primary:active:hover, .btn-outline-primary:active {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: var(--common-grey);
}

.inventory-btn-group {
    border-bottom: 1px solid #ddd
}

.card-body .inventory-btn-group:last-child{
    border:none;
}

.ui-sortable > .list-group-item {
    background-color: transparent;
}

/* Equipment details sidebar and tabbed content. */
.equipment-details__split {
    height: calc(100vh - 18rem);
    min-height: 0;
    overflow: hidden;
}
.equipment-details__split > .col-md-3 {
    height: 100%;
    min-height: 0;
}
.equipment-details__sidebar {
    height: 100%;
    max-height: 100%;
    min-height: 0;
    margin-top: 0;
    overflow-y: auto;
}
.equipment-details__equipment-link,
.equipment-details__card-link { color: inherit; text-decoration: none; }
.equipment-details__equipment-link { color: var(--primary-color); }
.equipment-details__equipment-link.active { font-weight: 700; text-decoration: underline; }
.equipment-details__card-link { color: var(--secondary-color); }
.equipment-details__card-link:hover,
.equipment-details__equipment-link:hover { color: var(--primary-color); text-decoration: underline; }

.equipment-details-tabs {
    flex: 0 0 auto;
    border-bottom: 1px solid var(--border-grey);
}

.equipment-details-tabs .nav-link {
    padding: .7rem 1rem;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
}

.equipment-details-tabs .nav-link:hover,
.equipment-details-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.equipment-details-tabs .nav-link:hover { background: var(--clamp-grey); }
.equipment-details-tabs .nav-link.active { background: var(--form-grey); }

.equipment-details__tab-panel { flex: 1 1 auto; min-height: 0; overflow: hidden; }
.equipment-details__tab-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-top: 1rem; }

@media (max-width: 767.98px) {
    .equipment-details__split { height: auto; min-height: auto; overflow: visible; }
    .equipment-details__sidebar { height: auto; max-height: 400px; min-height: auto; margin-top: 0; }
    .equipment-details__tab-panel { max-height: 520px; }
    .equipment-details-tabs { overflow-x: auto; flex-wrap: nowrap; }
    .equipment-details-tabs .nav-link { white-space: nowrap; }
}

/* Compact hardware and consumable hierarchy used by equipment details and workcell configuration. */
.hardware-kind-card {
    border: 1px solid var(--border-grey);
    border-radius: .25rem;
    background: var(--common-grey);
    color: inherit;
    font-size: .875rem;
}

.hardware-kind-card__header,
.hardware-kind-card__row,
.hardware-kind-card__consumable-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.hardware-kind-card__header {
    min-height: 2.25rem;
    padding: .45rem .75rem;
    border-bottom: 1px solid var(--border-grey);
    background: var(--clamp-grey);
}

.hardware-kind-card__header-content,
.hardware-kind-card__identity {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    min-width: 0;
}

.hardware-kind-card__title { font-weight: 700; text-transform: uppercase; }
.hardware-kind-card__name { font-weight: 600; text-transform: uppercase; }
.hardware-kind-card__count { color: #6c757d; font-size: .7rem; font-weight: 500; }
.hardware-kind-card__sku { color: #6c757d; font-size: .8em; font-weight: 400; }
.hardware-kind-card__process,
.hardware-kind-card__minimum { color: #6c757d; font-size: .7rem; line-height: 1.25; }

.hardware-kind-card .hardware-kind-card__action,
.hardware-kind-card .hardware-kind-card__remove {
    padding: 0;
    border: 0;
    background: transparent;
    font-size: .68rem;
    color: var(--secondary-color);
    font-weight: 500;
    white-space: nowrap;
}

.hardware-kind-card .hardware-kind-card__remove { color: #6c757d; }
.hardware-kind-card .hardware-kind-card__action:hover,
.hardware-kind-card .hardware-kind-card__remove:hover { background: transparent; text-decoration: underline; }
.hardware-kind-card .hardware-kind-card__remove { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; font-size: 1rem; }
.hardware-kind-card .hardware-kind-card__add-icon { display: inline-flex; align-items: center; justify-content: center; width: 1.7rem; height: 1.7rem; border: 1px solid var(--border-grey); border-radius: 50%; font-size: .75rem; }

.hardware-kind-card__hardware { padding: .65rem .75rem .45rem 1.5rem; }
.hardware-kind-card__hardware + .hardware-kind-card__hardware { border-top: 1px solid #eee; }
.hardware-kind-card__consumables { margin: .6rem 0 0; }
.hardware-kind-card__consumable-slot { padding: .4rem 0 .3rem; }
.hardware-kind-card__consumable { margin-top: .35rem; padding: .5rem .65rem; border: 1px solid var(--border-grey); border-radius: .25rem; background: var(--clamp-grey); }
.hardware-kind-card__consumable-kind { font-weight: 600; text-transform: uppercase; }
.hardware-kind-card__process { margin-left: .05rem; }
.hardware-kind-card__process-badge { padding: .1rem .35rem; border: 1px solid var(--border-grey); border-radius: .2rem; color: #6c757d; font-size: .65rem; font-weight: 600; line-height: 1; text-transform: uppercase; }
.hardware-kind-card__empty { margin: 0; padding: .65rem .7rem; color: var(--secondary-color); }
.hardware-kind-card__add-more { display: flex; justify-content: center; margin: .2rem .75rem 0; padding: .45rem 0; border-top: 1px solid var(--border-grey); }
.hardware-kind-card__consumables-title { display: flex; align-items: center; gap: .4rem; }
.hardware-kind-card__consumables-title .hardware-kind-card__field-label { margin-bottom: 0; }
.hardware-kind-card__consumable-kind-row { display: flex; align-items: center; gap: .3rem; }
.hardware-kind-card__slot-status { display: flex; align-items: center; gap: .35rem; }
.hardware-kind-card__slot-add,
.hardware-kind-card__add-more-action { padding: .2rem .5rem !important; border: 1px solid #adb5bd !important; border-radius: 999px; color: var(--secondary-color); font-size: .7rem; font-weight: 600; line-height: 1.2; }

.hardware-select-modal__section-title { margin: 0 0 .65rem; color: #495057; font-size: 1rem; font-weight: 700; }
.hardware-select-modal__form .form-label { margin-bottom: .35rem; color: #495057; font-size: .875rem; font-weight: 600; }
.hardware-select-modal__form .custom-fields-container .form-label { font-size: .875rem; }
.instance-type-picker > .btn { display: inline-flex; align-items: center; justify-content: center; align-self: stretch; margin-bottom: 0; }

.hardware-kind-card__details { margin-top: .4rem; }
.hardware-kind-card__field-group + .hardware-kind-card__field-group { margin-top: .45rem; }
.hardware-kind-card__field-label { margin-bottom: .2rem; color: #6c757d; font-size: .65rem; font-weight: 600; letter-spacing: .035em; text-transform: uppercase; }
.hardware-kind-card__fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); gap: .15rem 1.5rem; }
.hardware-kind-card__field { display: flex; align-items: baseline; gap: .75rem; min-width: 0; padding: .16rem 0; color: #6c757d; }
.hardware-kind-card__field span:first-child::after { content: ":"; }
.hardware-kind-card__field span:last-child { min-width: 0; color: inherit; font-weight: 600; overflow-wrap: anywhere; }

@media (max-width: 575.98px) {
    .hardware-kind-card__hardware { padding-left: 1rem; }
    .hardware-kind-card__header,
    .hardware-kind-card__row,
    .hardware-kind-card__consumable-header { align-items: flex-start; }
    .hardware-kind-card__field { gap: .4rem; padding-right: .4rem; }
}

.modal-content{
    border:none;
    box-shadow:var(--shadow);
}

.modal-backdrop {
    position:relative;
}

.modal.show {
    background: rgb(123 123 123 / 10%);
    backdrop-filter: blur(3px);
}
/*Default styles*/

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

/* End Default styles*/

.custom-data-form {
    background-color: var(--form-grey);
    padding: 10px 0;
}

.h-bg {
    background: var(--primary-color);
    color:#fff;
}

.bg-body{
    background-color:var(--common-grey) !important;
}

.bg-light{
    background-color:var(--form-grey) !important;
}

.bg-mid{
    background-color:var(--border-grey) !important;
}

.ops-report .h-bg, .ps-report .h-bg {
    background: var(--secondary-color);  
}

.ops-report .ps-report .h-bg {
    background: #bfbfbf;
    color: #333;
}

.top-6rem {
    top: 6rem;
}

.left-border {
    padding-top: 1rem;
    border-left: 1px solid #ccc;
}

.img-box-shadow {
    box-shadow: inset 0 0 0 1px hsl(0, 0%, 0%, 0.1);    
    padding: 0.5rem;
}

.scroll-offset-header {
    scroll-margin-top: 3.5rem;
}

.apx-shadow {
    box-shadow: var(--shadow);
}

.round-input, .round-input:active, .round-input:focus {
    border-radius: 25px;
    box-shadow: var(--shadow);
    border: none;
}

.apex-logo-box {
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-box {
    display: flex;
    position: sticky;
    margin-top: 10px;
    justify-content: center;
}

.login-flex {
    background: rgb(254, 254, 254, 0.9);
    border-radius: 40px;
    width: 100%;
    max-width: 500px;
    box-shadow:var(--shadow);
}

.login-form {
    background: #fff;
    border-radius: 40px;
    display: flex;
    justify-content: center;
    box-shadow:var(--shadow);
}

.toast-icon {
    font-size: x-large;
    margin-top: auto;
    margin-bottom: auto;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.bg-warning {
    background-color: var(--warning-color) !important;
}

.bg-red {
    background-color: var(--secondary-red) !important;
}

@media print {
    @page {
        size: letter;
        margin: .5rem;
    }

    .page {
        backdrop-filter:none;
        background: none;
    }

    .main {
        height: auto;
        margin-bottom: 0px;
    }

    .content {
        height: auto;
        background: none;
        border-top-left-radius: 0;
        box-shadow: none;
        overflow-x: auto;
        overflow-y: auto;
    }

    .page, .tile, .card {
        background: #fff !important;
        background-color: #fff !important;
    }

    body {
        margin: 0;
        zoom: .5;
        background-image:none;
        background:none;
        /*min-width: 1400px !important;*/
    }


    .container {
        /*min-width: 1100px !important;*/
    }

    .content {
        border-left: none;
    }

    .btn {
        display: none;
    }

    *,
    *::before,
    *::after {
        text-shadow: none !important;
        box-shadow: none !important;
    }

    a:not(.btn) {
        text-decoration: underline;
    }

    abbr[title]::after {
        content: " (" attr(title) ")";
    }

    pre {
        white-space: pre-wrap !important;
    }

    pre,
    blockquote {
        border: 1px solid #adb5bd;
        break-inside: avoid;
    }

    table, tr, img, .col {
        break-inside: avoid-page !important;
    }

    .card {
        box-decoration-break: clone;
        position: relative !important;
    }

    .charts {
        display: flex !important;
        justify-content: center;
    }

    .charts, .charts > div, canvas {
        /* display: inline-flex !important; */ /*
        position: relative !important;
        reak-inside: avoid !important;
        break-before: auto;
        break-after: auto;
       width: 100% !important;*/
    }

    .justify-content-center > [class*="col-"] {
        display: flex;
        justify-content: center;
    }

    .row-cols-lg-3 > * {
        flex: 0 0 auto;
        width: 33.3333333333%
    }

    .tile {
        display: block !important;
        position: relative !important;
        break-inside: avoid-page !important;
        break-before: auto;
        break-after: auto;
    }

    .tile, .card, .shadow {
        box-shadow: none !important;
        border: solid 1px var(--border-grey) !important;
    }



    p {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        /*break-after: avoid;*/
    }

    .badge {
        border: 1px solid #000;
    }

    .table {
        border-collapse: collapse !important;
    }

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

    .table-bordered th,
    .table-bordered td {
        border: 1px solid #dee2e6 !important;
    }

    .table-dark {
        color: inherit;
    }

        .table-dark th,
        .table-dark td,
        .table-dark thead th,
        .table-dark tbody + tbody {
            border-color: #dee2e6;
        }
}

/* Classes of Bootstrap 5.2 and 5.3 that the components use, on the Bootstrap 5.0 this site ships.
   Without them a badge keeps the white text of .badge and gets no background: white on white. Each
   pairs a text with a ground it can be read on. Remove these once Bootstrap is 5.3. */
.text-bg-primary { color: #fff !important; background-color: var(--primary-color) !important; }
.text-bg-secondary { color: #fff !important; background-color: var(--secondary-color) !important; }
.text-bg-success { color: #fff !important; background-color: #198754 !important; }
.text-bg-danger { color: #fff !important; background-color: #dc3545 !important; }
.text-bg-warning { color: #212529 !important; background-color: var(--warning-color) !important; }
.text-bg-info { color: #212529 !important; background-color: #0dcaf0 !important; }
.text-bg-light { color: #212529 !important; background-color: #f8f9fa !important; }
.text-bg-dark { color: #fff !important; background-color: #212529 !important; }

.bg-primary-subtle { background-color: #cfe2ff !important; }
.bg-secondary-subtle { background-color: #e2e3e5 !important; }
.bg-success-subtle { background-color: #d1e7dd !important; }
.bg-danger-subtle { background-color: #f8d7da !important; }
.bg-warning-subtle { background-color: #fff3cd !important; }
.bg-info-subtle { background-color: #cff4fc !important; }

.border-primary-subtle { border-color: #9ec5fe !important; }
.border-secondary-subtle { border-color: #c4c8cb !important; }
.border-success-subtle { border-color: #a3cfbb !important; }
.border-danger-subtle { border-color: #f1aeb5 !important; }
.border-warning-subtle { border-color: #ffe69c !important; }
.border-info-subtle { border-color: #9eeaf9 !important; }

/* A subtle badge sets its text with .text-success and the like, which is pale on a pale ground in
   5.0. The darker shade of 5.3 reads on it. */
.badge.text-success { color: #0a3622 !important; }
.badge.text-warning { color: #664d03 !important; }
.badge.text-secondary { color: #41464b !important; }
