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

/**** Blazor built-in code ****/
:root {
    --zb-blue: #2172FF;
    --zb-orange: #FFA778;
    --theme-green: #4CAF50;
    --theme-light-green: #81C784;
    /*--theme-yellow-green: #DCE775;*/
    --theme-yellow-green: #C6EA6F;
    --theme-yellow: #FFC107;
    --theme-orange: #E67E22;
    --theme-orange-red: #D64C1A;
    --theme-red: #D32F2F;
    --theme-blue: #052767;
    --primary-blue: #007bff;
    --light-blue: #68A7FF;
    --light-background-blue: aliceblue;
    --light-background-green: #e0f2e9;
    --light-background-gray: #f5f5f5;
    --light-background-yellow: #fff9e6;

    /*
    --light-background-gray: #f8f8f8;
    */
    /*#f5f5f5;*/
    /*--medium-background-gray: #e6e6e6; */

    --medium-background-gray: #e9ecef;
    --dark-background-gray: #232323;
    --soft-beige: #f9f5e7;
    --off-white: #FEFEFE;
    --border-color: #ddd;
    --dark-gray: #666;
    --dark-text: #333;
}
html, body {
    font-family: Calibri !important;
    /*font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; */
    /* EVENTUALLY */
    
    background-color: var(--light-background-gray);
}
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}
.invalid {
    outline: 1px solid #e50000;
}
.validation-message {
    color: #e50000;
    font-size: 10pt;
    /*float: right; */
    float: left; 
}
.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCk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2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) 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;
}
#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;
}

.pointer {
    cursor: pointer;
}

.custom-dropdown {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Drop shadow on the bottom */
    border: 1px solid lightgray;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    background-color: var(--light-background-blue);
    z-index: 1000;
    max-height: 80vh;
    width: 20vw;
    position: fixed;
    padding: 1rem;
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.ContentBlock {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;

    height: 100%;
    background-color: var(--off-white);
    border: 1px solid transparent;
    border-radius: .25rem;
    padding: 0.5rem;
    margin: 0.25rem;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}

.scrollable-content {
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: auto;
}

/**** Content Display ****/
.ContentBlock {

}

.SettingsPanel {
    color: var(--dark-gray);
    font-family: Calibri; 
    /*font-size: 10.5pt; */
}

.hidden {
    display: none;
}

.shadow-light { box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1); }
.shadow-medium { box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); }
.shadow-dark { box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); }

.white { background-color: var(--off-white); }

.hoverable:hover { background-color: var(--light-blue); }

.SectionButton{
    width: 100%;
    padding-bottom: 2px;
    padding-left: 2px;
    padding-right: 2px;
    margin-left: 0px;
    margin-right: 0px;
}

.priority-number {
    font-weight: inherit;
    font-size: inherit;
    color: inherit;
    height: 100%;
    vertical-align: middle;
}

.stacked-button {
    margin-top: .75rem;
    width: 100%;
}

.btn-link:hover {
    backdrop-filter: brightness(0.95);
}

.expander-icon {
    font-size: 9pt;
    vertical-align: middle;
}

/**** OPTION 3 ****/
table {
    width: 100%;
    border-collapse: collapse;
    font-family: Calibri;
    font-size: 9pt;
    color: var(--dark-text);
    /*background-color: var(--light-background-gray); */
    /*background-color: var(--off-white);*/
    background-color: #ffffff;

    /*background-color: var(--light-background-blue); */
}
th, td {
    padding: 2px 4px; /* Low padding for high-density tables */
    border: 1px solid var(--border-color);
    text-align: left;
    vertical-align: middle; /* Ensures content looks aligned */
}
th {
    background-color: #f4f4f4; /* Subtle background for headers */
    /*font-weight: bold; */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #555;
}
/*
tr:nth-child(even) {
    background-color: #f2f2f2;
}
*/

tr:hover {
    background-color: var(--medium-background-gray);
}

.important-row { background-color: #f2f2f2; }

thead, tfoot {
    background-color: #f0f0f0; /* Differentiates the header and footer */
}

tfoot {
    font-weight: bold;
    color: #444;
}

.primary-header {
    border-bottom: 0px;
}
.secondary-header {
    border-top: 0px;
    font-weight: normal !important;
    /*color: black;*/
}

.data-cell{ cursor: pointer; }
/*
    .data-cell:hover {
    cursor: pointer;
}
*/

.data-row:hover {
    cursor: pointer;
}

/**** Color Shortcuts ****/
.green { background-color: var(--theme-green); }
.light-green { background-color: var(--theme-light-green); }
.yellow-green { background-color: var(--theme-yellow-green); }
.yellow { background-color: var(--theme-yellow); }
.orange { background-color: var(--theme-orange); }
.orange-red { background-color: var(--theme-orange-red); }
.red { background-color: var(--theme-red); }

.filter-warning {
    color: var(--theme-yellow);
    font-size: 9pt;
    margin-right: 10px;
    vertical-align: middle;
}

/**** Shapes ****/
.circle-container {
    vertical-align: middle;
    display: inline-block;
    width: 10px;
    height: 100%;
    line-height: 100%;
}
.circle {
    vertical-align: middle;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: auto;
    margin-bottom: auto;
}

/**** Sorting, Expanding, and Collapsing ****/
.sort-indicator {
    vertical-align: middle;
    margin-top: auto;
    margin-bottom: auto;
    float: right;
    color: var(--dark-gray);
    font-size: .7rem;
}
.sortable:hover {
    /*background-color: darkgray;*/
    filter: brightness(0.85);
}
.sortable {
    cursor: pointer;
}
.collapser {
    bottom: 0;
    padding-bottom: 10px;
    text-align: right;
    width: 100%;
}

/**** Text Formatting ****/
.popup-title 
{
    font-size: 13pt;
}

.no-underline {
    text-decoration: none !important;
    color: #0071c1 !important;
}
.text-right { text-align: right; }
.text-left { text-align: left; }

/* .text-waiting { color: var(--primary-blue) } */

.small-text { font-size: 10.5pt !important; color: var(--dark-text); }
.smaller-text { font-size: 9.75pt !important; }

.tiny-text { font-size: 9pt !important; }
label { font-size: 1rem; }
.text-ellipsis {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 100%;
}
.chart-title {
    font-size: 12pt;
    color: var(--dark-text);
}

.text-paragraph {
    margin: 4px;
    margin-top: 2px;
    margin-bottom: 2px;
    color: var(--dark-text);
    font-family: Calibri;
    font-size: 10pt;
}

/**** Status modifiers ****/
.disabled {
    background-color: #f0f0f0 !important; /* Light gray */
    color: #a0a0a0 !important; /* Darker gray text */
    border-color: #dcdcdc; /* Light gray border */
    cursor: not-allowed; /* Changes the cursor to indicate it’s disabled */
}

/**** Budgets ****/
.budget-color {
    display: inline-block;
    margin-top: auto;
    margin-bottom: auto;
    vertical-align: middle;
    margin-right: 6px;
    flex-shrink: 0;
    border: 1px solid gray;
}

.budget-color-md {
    width: 16px !important;
    height: 16px !important;
}

.budget-color-sm {
    width: 12px !important;
    height: 12px !important;
}
.budget-color-xs {
    width: 8px !important;
    height: 8px !important;
}

.budget-title {
    vertical-align: middle;
    display: inline-block;
    font-size: 9.75pt;
    word-wrap: break-word; /* Ensures long text wraps */
    white-space: normal; /* Allows text wrapping */
    flex-grow: 1;
}

.BudgetArea {
    font-size: 10.5pt;
    cursor: pointer;
    padding: 2px;
    padding-left: 0px;
    margin: 0px;
}
.BudgetArea.selected {
    background-color: #0d6efd;
    color: whitesmoke;
}

/**** Assets ****/
.BudgetItem {
    cursor: pointer;
    text-align: left;
}

/**** Buttons ****/
.btn { font-size: 12pt; }
a, .btn-link { color: #0071c1; }

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}
.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 #258cfb;
}
.btn-xs {
    padding: .35rem;
    font-size: 10pt;
    line-height: 1rem;
}
.btn-xxs {
    padding: .25rem;
    font-size: 9pt;
    line-height: 0.9rem;
}

/**** Padding and Borders ****/
.NoPadding {
    margin-top: -0.25rem;
    margin-bottom: 0.75rem;
    padding: 0px;
    color: black;
}
.MinimalPadding {
    margin-top: 0.1rem;
    margin-bottom: 0.75rem;
    padding: 0px;
    color: black;
}
.divider {
    border-left: 1px solid #ddd;
}
.no-border { border-width: 0px; }
.no-margin {  margin: 0px; }
.no-padding { padding: 0px; }

.left-padded {padding-left: 10px; }

.line-checkbox{
    line-height: 1rem;
    vertical-align: middle;
    cursor: pointer;
}

.line-color-indicator {
    width: 1.5rem;
    height: .25rem;
    line-height: 1rem;
    margin-top: .375rem;
    margin-bottom: .375rem;
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
    cursor: pointer;
}

.color-indicator {
    display: inline-block;
    vertical-align: middle;
    line-height: 1rem !important;
    margin-left: 8px !important;
    cursor: pointer;
}

.line-title {
    height: 1rem;
    line-height: 1rem;
    vertical-align: middle !important;
    display: inline-block;
    font-size: 10.5pt !important;
    margin-left: 4px;
    cursor: pointer !important;
}

.bottom-divider {
    margin: 2px;
    border-bottom: 1px solid #ddd;
}

.svg-chart-container {
    width: 100%;
    height: auto;
    display: inline-block;
}

.svg-chart {
    border: 1px solid black;
}

.interactive {
    cursor: pointer;
    transition: all 0.1s ease; /* Smooth transition for hover effect */
    transform-origin: 50% 50%; /* Set the scaling origin to the left */
}

.interactive:hover {
    border: 1px solid var(--primary-blue);
    filter: brightness(0.94);
}

.interactive-disabled {
    cursor: not-allowed;
    transition: all 0.1s ease; /* Smooth transition for hover effect */
    transform-origin: 50% 50%; /* Set the scaling origin to the left */
}

.interactive-disabled:hover {
    border: 1px solid var(--theme-red);
}

.local-spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px; /* adjust based on expected chart height */
}

.local-spinner-lg {
    width: 30px;
    height: 30px;
    border: 4px solid #ccc;
    border-top: 4px solid #007bff; /* Bootstrap blue */
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.local-spinner-sm {
    width: 22px;
    height: 22px;
    border: 3px solid #ccc;
    border-top: 3px solid #007bff; /* Bootstrap blue */
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/*
.copy-button {
    margin-left: 3rem;
    padding-left: 5rem;
    vertical-align: middle;
}
*/

input.form-control.copied {
    border-color: MediumSeaGreen;
    border-width: 1px;
}

.custom-tooltip {
    position: fixed;
    color: white;
    padding: 6px 9px;
    border-radius: 5px;
    font-size: 10.5pt !important;
    white-space: pre-wrap;
    max-width: 400px;
    height: fit-content;
    max-height: fit-content;
    z-index: 9999 !important; /* FORCE IT TO FRONT */
    pointer-events: none; /* So it doesn’t block mouse */
    box-shadow: 0 2px 8px rgba(0,0,0,0.45);
    /*background-color: var(--light-background-green);*/
    background-color: var(--light-background-yellow);
    color: var(--dark-text);
}

/*** "Card" customizations ****/

.card {
    /*background-color: var(--light-background-gray); */
    background-color: var(--off-white);
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    margin-bottom: 1rem;
    box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.1);
}

.card-header {
    vertical-align: middle;
    font-size: 1.25rem;
    font-weight: bold;
    background-color: var(--light-background-gray); /**/
    border-bottom: 1px solid #ddd;
}

.card-body {
    padding: 0.5rem;
    padding-bottom: .25rem;
    flex-grow: 1;
    /*background-color: var(--light-background-gray) !important; */
}

.card-alt {
    background-color: aliceblue;
}

.card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.card-footer {
    margin-top: 1rem;
    text-align: right;
}

.header-minimal {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/**** "Spreadsheet" stuff ****/
.sheet-table { width: 100%; border-collapse: collapse; }

.cell, .sheet-head {
    padding: 0;
    margin: 0;
    box-sizing: border-box; 
}

.cell-tiny { width: 32px; }
.cell-shorter { width: 48px; }
.cell-short { width: 64px; }
.cell-medium { width: 72px; }
.cell-large { width: 96px; }

.cell-content {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    border-width: 0;
    padding: 4px; 
}

/* Optional: Make anchor tags behave like buttons or inline elements */
a.no-underline {
    text-decoration: none;
    color: inherit;
}

td:empty::before {
    content: "\00a0"; /* Adds a non-breaking space */
}

.min-width {
    white-space: nowrap;
    width: 1%;
}

/* IF NEEDED:
    Hide up and down arrows in input[type=number] for Firefox 
input[type="number"] {
    -moz-appearance: textfield;
}
*/