@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

:root {
    --custom-blue: #006B99;
    --custom-blue-dark: #005377; /* darker shade for border */
    --custom-blue-light: rgba(0, 107, 153, 0.6); /* lighter shade for glow */
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}


.content {
    padding-top: 1.1rem;
}

.b-is-autocomplete-suggestion:hover,
.b-is-autocomplete-suggestion.focus {
    background-color: #cff4fc !important;
}

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

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.invisible-btn {
    display: none!important;
}

#blazor-error-ui {
    background: lightyellow;
    top: 0; /* Change from 'bottom' to 'top' */
    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: 9999;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

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

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

.no-outline:focus {
    outline: none;
}

.selectedDiv {
    outline: none !important;
}

input[type=number] {
    text-align: right;
}

.input-grid {
    border-top-style: hidden;
    border-right-style: hidden;
    border-left-style: hidden;
    border-bottom-style: hidden;
    background: transparent;
    width: 100%;
}

.checkbox-grid {
    width: 1.2em;
    height: 1.2em;
    border-radius: 0.25em;
    flex: none;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

.resizer {
    background-color: #fff;
    cursor: ns-resize;
    width: 100%;
    height: 3px;
}

/* overflows */
.overflow-y-scroll {
    overflow-y: scroll;
}


.custom-checkbox .custom-control-indicator {
    border-radius: .25rem;
}

.dropdown-invalid input[type=search] {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem) !important;
    background-image: url(data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e);
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.field-invalid-feedback {
    width: 100%;
    margin-top: 0.25rem;
    font-size: 80%;
    color: #dc3545;
}

.dxbl-btn-toolbar[disabled] {
    pointer-events: auto;
    opacity: 1;
}

.context-menu-scroll {
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 99999;
    position: absolute;
}

.submenu {
    position: fixed;
    display: none; /* Initially hidden */
    top: 0;
    left: 100%; /* Position to the right of the parent item */
    z-index: 999999 !important; /* Ensure submenu is above other elements */
   
}

.context-menu {
   
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    min-width: 360px;
    font-size: 0.875rem;
    white-space: nowrap;
}

.dropdown-submenu {
    display: block;
    width: 100%;
    padding: .25rem 1.5rem;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
}

    .dropdown-submenu > .dropdown-item {
        display: none;
    }

/* rotate caret on hover */
.dropdown-menu > li > a:hover:after {
    text-decoration: underline;
    transform: rotate(-90deg);
}


.number-text-input {
    text-align: right;
}

.filteInput {
    border-top-style: hidden;
    border-right-style: hidden;
    border-left-style: hidden;
    border-bottom-style: hidden;
    width: 100%;
    outline: none !important;
}

    .filteInput:focus {
        outline: none;
        box-shadow: 0 0 2px 2px #0dcaf0;
        border-color: #0056b3; /* Darker, more intense blue border */
        border-width: 1px; /* Thicker border on focus */
        transition: all 0.2s ease-in-out; /* Smooth transition for the effect */
    }

.readonly-div {
    min-height: 38px;
    display: block;
    padding: 0.375rem 0.75rem; /* Same padding as Bootstrap form-control */
    font-size: 1rem; /* Same font size */
    line-height: 1.5; /* Same line height */
    color: #495057; /* Default text color for form controls */
    background-color: #e9ecef; /* Light grey background color */
    border: 1px solid #ced4da; /* Same border as Bootstrap form-control */
    border-radius: 0.25rem; /* Same border radius */
}

.form-check-add {
    padding-top: 20px !important;
    display: flex !important; /* Use flexbox for vertical alignment */
    align-items: center !important; /* Center items vertically */
    height: 84px !important; /* Match the height of a Bootstrap form group */
}

.form-check-input-add {
    margin-top: 0px !important; /* Remove top margin for better alignment */
    margin-right: 10px !important; /* Add some space between checkbox and label */
}

.scrollableImage {
    overflow-y: auto;
    background-color: lightblue;
    padding: 20px;
    height: 100%;
}

.widget-card {
    height: 250px;
    min-height: 250px;
    max-height: 250px;
    display: flex;
    flex-direction: column;
}

.widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
}

.widget-title-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.widget-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 1px;
    margin-top: 1px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.last-update-label {
    font-size: 10px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.widget-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.widget-body-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.chart-container {
    max-height: 250px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative; /* Ensures absolute positioning of child elements */
}

.refresh-button {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 10; /* Ensures it stays above the chart */
    border-radius: 50%;
    padding: 5px 8px;
    cursor: pointer;
}

    .refresh-button:hover {
        background: lightgray;
    }

.center-box {
    max-height: 250px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.gridSum {
    font-size: 14px;
    text-align: right
}

.styleLabelCommon {
    background-color: #6B7280 !important;
    font-size: 13px !important;
    color: #fff;
    font-weight: 600;
    position: relative; /* Ensure the pseudo-elements are positioned relative to the td */
    padding: 5px 0; /* Add padding for the content */
    box-sizing: border-box; /* Ensure  */
}

table tr:first-of-type .styleLabelCommon::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px; /* Adjust shadow height */
    background: linear-gradient(to bottom, rgba(107, 114, 128, 1), transparent);
    pointer-events: none; /* Prevents it from interfering with interactions */
}

    .styleLabelCommon::after {
        content: "";
        position: absolute;
        bottom: 0; /* Place the border at the bottom */
        left: 0;
        width: 100%;
        height: 1px; /* Small height for the border */
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), transparent);
        pointer-events: none; /* Prevents it from interfering with interactions */
    }

.styleDataCommon {
    color: black !important;
    font-size: 13px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative; /* Ensures shadow is positioned properly */
}

    .styleDataCommon::after {
        content: "";
        position: absolute;
        bottom: 0; /* Place the border at the bottom */
        left: 0;
        width: 100%;
        height: 1px; /* Small height for the border */
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), transparent);
        pointer-events: none; /* Prevents it from interfering with interactions */
    }

table tr:first-of-type .styleDataCommon::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px; /* Adjust shadow height */
    background: linear-gradient(to bottom, rgba(107, 114, 128, 1), transparent);
    pointer-events: none; /* Prevents it from interfering with interactions */
}

.tableModif {
}

    .tableModif thead tr,
    .tableModif thead th {
        border: hidden;
        border-left: 1px solid; /* Adds vertical border on left */
        border-right: 1px solid; /* Adds vertical border on right */
    }

    .tableModif tfoot tr,
    .tableModif tfoot th {
        border: hidden;
    }


.json-snippet {
    background-color: #f4f4f9;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 5px;
    height: 120px; /* Fixed height */
    overflow-y: auto; /* Vertical scroll */
    overflow-x: auto; /* Horizontal scroll */
    white-space: pre-wrap;
    font-family: Consolas, "Courier New", monospace;
    color: #333;
}

    .json-snippet .key {
        color: #d14;
    }

    .json-snippet .string {
        color: #093;
    }

    .json-snippet .number {
        color: #1c00cf;
    }

    .json-snippet .boolean {
        color: #aa0d91;
    }

    .json-snippet .null {
        color: #808080;
    }

.flex-column-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bg-secondary-opacity-25 {
    background-color: rgba(108, 117, 125, 0.25) !important; /* Bootstrap's secondary color with 25% opacity */
}

.bg-warning-opacity-25 {
    background-color: rgba(255, 193, 7, 0.25) !important; /* Bootstrap warning color with 25% opacity */
}

.bg-primary-opacity-25 {
    background-color: rgba(13, 110, 253, 0.25) !important; /* Bootstrap primary color with 25% opacity */
}

.bg-success-opacity-25 {
    background-color: rgba(25, 135, 84, 0.25) !important; /* Bootstrap success color with 25% opacity */
}

.bg-danger-opacity-25 {
    background-color: rgba(220, 53, 69, 0.25) !important; /* Bootstrap danger color with 25% opacity */
}

.bg-info-opacity-25 {
    background-color: rgba(13, 202, 240, 0.25) !important; /* Bootstrap info color with 25% opacity */
}

.bg-light-opacity-25 {
    background-color: rgba(248, 249, 250, 0.25) !important; /* Bootstrap light color with 25% opacity */
}

.bg-dark-opacity-25 {
    background-color: rgba(33, 37, 41, 0.25) !important; /* Bootstrap dark color with 25% opacity */
}

.bg-success-opacity-25 {
    background-color: rgba(25, 135, 84, 0.25) !important; /* Bootstrap success color with 25% opacity */
}

.no-border-sides {

}


.bg-custom-blue {
    background-color: var(--custom-blue) !important; /* override Bootstrap if needed */
    color: white !important; /* make sure text stays visible */
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.bg-custom-blue-footer {
    background-color: var(--custom-blue) !important; /* override Bootstrap if needed */
    color: white !important; /* make sure text stays visible */
    font-size: 0.8rem; /* keep the size small */
    font-weight: 400; /* make it bolder so it looks fuller */
    letter-spacing: normal; /* remove spacing, tighter looks fuller */
}

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

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

.border-primary {
    border-color: var(--custom-blue) !important;
}

.btn-primary {
    background-color: var(--custom-blue) !important;
    border-color: var(--custom-blue) !important;
}

.btn-primary:hover {
    background-color: #004F73 !important; /* darker shade for hover */
    border-color: #004F73 !important;
 }

.title-bar,
.title-bar * {
    color: var(--custom-blue) !important;
}

.amount-box {
    min-height: 7rem;
    background-color: #8fdaa2 !important;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center; /* vertically center */
    padding-top:7px;
}

.bg-color-light-green {
    background-color: #d4edda; /* Light green, like Bootstrap's alert-success */
}

.v-grid {
    overflow-x: hidden !important;
    overflow-y: scroll; /* vertical scroll visible */
    -webkit-overflow-scrolling: touch;
}
.v-grid::-webkit-scrollbar:horizontal {
    height: 1px; /* make the horizontal bar only 1px tall */
}

.v-grid::-webkit-scrollbar-thumb:horizontal {
    background: transparent; /* or give it a subtle color */
}
