@import "tailwindcss";
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --border-radius-small: 5px;
    --border-radius-medium: 10px;
    --border-radius-large: 20px;
    --accent-divider: #97979B;
    font-family: "Poppins", sans-serif;
}

.montserrat {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

.poppins {
    font-family: "Poppins", sans-serif;
}

*::-webkit-scrollbar {
    display: none;
}

* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body[data-theme="dark"], body[data-theme="system-dark"] {
    color-scheme: dark;

    --fill-color: #1A202A;

    --neutral-fill-layer: #1A202A;
    --neutral-layer-1: #232B36;
    --neutral-layer-2: #151419;
    --neutral-layer-3: #282828;
    --neutral-layer-floating: #232B36;
    --neutral-stroke-rest: #252429;
    --neutral-stroke-active: #2F3A47;
    --neutral-stroke-hover: #8BF1B9;
    --neutral-fill-rest: #151419;
    --neutral-fill-layer-rest: #232B36;
    --neutral-fill-input-rest: #1A191E;
    --neutral-fill-hover: #2F3A47;
    --neutral-foreground-rest: #B7B7BA;
    --neutral-foreground-on-accent: #000000;

    --accent-foreground-rest: #B7B7BA;
    --accent-foreground-active: #ffffff;
    --active-link: linear-gradient(to left, #1A202A, #354151, #1A202A);
    --button-default: linear-gradient(to left, #1A202A, #354151, #1A202A);
    --accent-fill-rest: #8BF1B9;
    --accent-fill-hover: #68AF89;
    --fluent-accent-fill-rest: #8BF1B9;   
    --fluent-accent-fill-hover: #68AF89;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-lg: -1px 1px 1px rgba(51, 51, 51, 1);
    --neutral-fill-stealth-rest: rgba(0, 0, 0, 0);
    --monochrome: #B7B7BA;
    --box-shadow: -1px 1px 1px 0 rgba(0, 0, 0, 0.25);
    --color-empty: #2F3A47;

    --container-primary: #0F0F0F;
    --theme-opacity: 0.3;
    --body-font: "Poppins", sans-serif;
    
    --accent-coral: #FF6B6B;

    --accent-gradient-mint:   linear-gradient(90deg, var(--accent-fill-rest), var(--accent-fill-hover));
    --accent-gradient-blue:   linear-gradient(90deg, #5db7ff, #22d3ee);
    --accent-gradient-purple: linear-gradient(90deg, #a78bfa, #7c3aed);
    --accent-gradient-amber:  linear-gradient(90deg, #fbbf24, #f59e0b);
    --accent-gradient-rose:   linear-gradient(90deg, #fb7185, #f43f5e);
}

body[data-theme="light"], body[data-theme="system-light"] {
    color-scheme: light;

    --fill-color: #ffffff;

    --neutral-fill-layer: #ffffff;
    /*--neutral-layer-1: #F6F6F6;*/
    --neutral-layer-1: #FFFFFF;
    --neutral-layer-2: white;
    --neutral-layer-3: white;
    --neutral-layer-floating: white;
    --neutral-stroke-rest: #EBEBEB;
    --neutral-stroke-active: #ffffff;
    --neutral-stroke-hover: #476F66;
    --neutral-fill-rest: #253B36;

    --neutral-fill-layer-rest: #F6F6F6;
    --neutral-fill-input-rest: #FFFFFF;

    --neutral-fill-hover: #FFFFFF;
    --neutral-foreground-rest: #000000;
    --neutral-foreground-on-accent: #FFFFFF;

    --accent-foreground-rest: #4D4D4D;
    --accent-foreground-active: #FFFFFF;
    --active-link: linear-gradient(#476f66, #476f66);
    --button-default: #ffffff;
    --accent-fill-rest: #476F66;
    --accent-fill-hover: #7E9A94;
    --fluent-accent-fill-rest: #476F66;
    --fluent-accent-fill-hover: #7E9A94;

    --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-lg: -1px 1px 1px 0 rgba(0, 0, 0, 0.25);
    --monochrome: #000000;
    --color-empty: #ECF0F3;

    --container-primary: #f4f4f4;
    --theme-opacity: 0.6;
    --body-font: "Poppins", sans-serif;

    --accent-coral: #E57373;

    --accent-gradient-mint:   linear-gradient(90deg, var(--accent-fill-rest), var(--accent-fill-hover));
    --accent-gradient-blue:   linear-gradient(90deg, #60a5fa, #22d3ee);
    --accent-gradient-purple: linear-gradient(90deg, #8b5cf6, #7c3aed);
    --accent-gradient-amber:  linear-gradient(90deg, #f59e0b, #d97706);
    --accent-gradient-rose:   linear-gradient(90deg, #f87171, #ef4444);
}

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    font-family: "Poppins", sans-serif;
    font-size: var(--type-ramp-minus-1-font-size);
    line-height: var(--type-ramp-base-line-height);
    font-weight: var(--font-weight);
    color: var(--neutral-foreground-rest);
}

.navmenu-icon {
    display: none;
}

.header {
    background-color: var(--neutral-fill-layer) !important;
    /*height: 70px !important;*/
}

.layout {
    max-height: calc(100dvh);
    overflow-y: hidden;
    background-color: var(--neutral-fill-layer) !important;
}

.main {
    min-height: calc(100dvh - 70px);
    color: var(--neutral-foreground-rest);
    align-items: stretch !important;
}

.restricted-main {
    min-height: 100dvh;
    color: var(--neutral-foreground-rest);
    align-items: stretch !important;
}

.restricted-main .body-content {
    align-self: stretch;
    height: 80dvh !important;
    display: grid;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
}

.restricted-main.a.control[part="control"] {
    background: var(--accent-foreground-rest) !important;
}
.body-content {
    font-size: var(--type-ramp-minus-1-font-size) !important;
}

.main .body-content {
    font-size: var(--type-ramp-minus-1-font-size);
    align-self: stretch;
    height: calc(100dvh - 70px) !important;
    display: grid;
    border-radius: var(--border-radius-large) 0 0 0 !important;
    background-color: var(--neutral-layer-1);
    box-shadow: 2px 2px 10px -2px rgba(0, 0, 0, 0.05) inset;
    border: 1px solid var(--neutral-stroke-rest);
    border-right: none;
    border-bottom: none;
}

.login-modal-container {
    height: 80dvh !important;
    width: 100%;
    display: grid;
    justify-content: center;
    align-items: center;
}

.login-modal-container .stack-vertical {
    row-gap: 20px !important;
}

.login-modal-container .stack-vertical.a.control[part="control"] {
    background-color: var(--accent-foreground-rest);
}

.login-modal-container .fluent-anchor {
    display: none;
}

.restricted-main .body-content .login-modal-container .stack-vertical {
    margin-left: auto;
    margin-right: auto;
    width: 300px !important;
    min-width: 300px !important;
    height: auto;
    border-radius: var(--border-radius-large);
}

.stack-vertical .large-bold .neutral {
    background-color: var(--active-link) !important;
}

.login-modal-container.a.control[part="control"] {
    padding: 8px 12px;
    background: none !important;
}

.login-modal-container .stack-vertical .default {
    width: 100% !important;
}

.login-modal-container .stack-vertical .default .accent {
    width: 100%;
}

.login-modal-container .stack-vertical .default .neutral {
    width: 100%;
}

.login-modal-container.neutral.control[part="control"] {
    background: transparent !important;
}

.toolbar {
    width: 100%;
}

.toolbar-container {
    background: none !important;
}

.toolbar-container .toolbar {
    background: none !important;
}

.default .neutral .a {
    background: transparent !important;
}

.content {
    padding: 0 1.5rem;
    align-self: stretch !important;
    width: 100%;
    min-width: fit-content;
    flex-direction: column;
    display: grid;
    grid-template-rows: auto auto 1fr;
}

footer {
    color: var(--neutral-foreground-rest);
    align-items: center;
    padding: 10px 10px;
}

footer a {
    color: var(--neutral-foreground-rest);
    text-decoration: none;
}

footer a:focus {
    outline: 1px dashed;
    outline-offset: 3px;
}

footer a:hover {
    text-decoration: underline;
}

.alert {
    border: none;
    height: 100%;
    padding: 5px;
}

.debug-accordion {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px; /* Width for the accordion */
    height: 100vh; /* Full viewport height */
    background-color: white;
    box-shadow: -3px 0 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    overflow-y: auto;
    padding: 10px;
}


#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;
    margin: 20px 0;
}

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

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

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

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #1b6ec2;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

code {
    color: #c02d76;
}

.header {
    padding: 10px 20px;
    margin: 0
}

.header-gutters {
    margin: 0 !important;
}

@media (max-width: 600px) {
    nav.sitenav {
        width: 100%;
        height: 100%;
    }

    #main-menu {
        width: 100% !important;
    }

    #main-menu > div:first-child:is(.expander) {
        display: none;
    }

    .navmenu {
        width: 100%;
    }

    #navmenu-toggle {
        appearance: none;
    }

    #navmenu-toggle ~ nav {
        display: none;
    }

    #navmenu-toggle:checked ~ nav {
        display: block;
    }

    .navmenu-icon {
        cursor: pointer;
        z-index: 10;
        display: block;
        position: absolute;
        top: 15px;
        left: unset;
        right: 20px;
        width: 20px;
        height: 20px;
        border: none;
    }

    [dir="rtl"] .navmenu-icon {
        left: 20px;
        right: unset;
    }
}

.full-width {
    width: 100%;
}

.sticky-header {
    background: var(--neutral-fill-layer-rest);
}

.sticky-header .column-header {
    background: var(--neutral-fill-layer-rest);
}

.col-sort-button {
    background: var(--neutral-fill-layer-rest);
}

.col-sort-button::part(control) {
    background: var(--neutral-fill-layer-rest);
}

.col-sort-button::part(control):hover {
    background: var(--neutral-fill-hover);
    color: var(--neutral-foreground-hover);
}

.col-options-button {
    background: var(--neutral-fill-layer-rest);
}

.col-options-button::part(control) {
    background: var(--neutral-fill-layer-rest);
}

.col-options-button::part(control):hover {
    background: var(--neutral-fill-hover);
    color: var(--neutral-foreground-hover);
}

.header-btn {
    border: 1px solid var(--neutral-stroke-active);
    border-radius: var(--border-radius-medium);
    background: none;
    height: 40px;
    width: 40px;
    box-shadow: var(--shadow-sm);
    /*color: var(--accent-foreground-rest);*/
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-btn:hover {
    background: var(--button-default) !important;
}

.header-btn:hover {
    box-shadow: var(--shadow-md);
    background: rgba(0, 0, 0, 0);
}

.header-btn::part(control) {
    background: none
}

.header-btn::part(control):hover {
    background: rgba(0, 0, 0, 0);
}

.header-btn::part(icon-only):hover {
    background: rgba(0, 0, 0, 0);
}

.header-btn .initials {
    background: none !important;
    background: var(--button-default);
    color: var(--accent-fill-rest) !important;
    font-weight: 500 !important;
}

.header-anchor {
    padding: 0 30px;
}

.login-popover {
    border-radius: var(--border-radius-medium);
    box-shadow: var(--neutral-fill-layer);
    background: var(--neutral-fill-input-rest);    
}

.pie-chart-wrapper {
    width: 400px;
    height: 400px;
    background-color: var(--fill-color);
    position: relative;
}

.pie-chart-slice {
    cursor: pointer;
    transition: opacity 250ms;
}

.pie-chart-slice text {
    font-weight: 100;
    fill: #B7B7BA;
}

.pie-chart-clickable:hover {
    opacity: 0.8;
}

.pie-chart-slice .main-arc {
    stroke: var(--fill-color);
    stroke-width: 10px;
}

.pie-chart-text {
    letter-spacing: 0.5px;
    pointer-events: none;
    dominant-baseline: text-before-edge;
    text-anchor: middle;
    color: #ffffff !important;
}

.toolTip {
    position: absolute;
    display: none;
    min-width: 200px;
    max-width: 300px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: #333;
    font-size: 14px;
    padding: 10px;
    pointer-events: none;
    z-index: 1000;
}

.toolTip > .title {
    font-size: 14px;
    font-weight: bold;
    padding: 0 0 6px 0;
}

.toolTip > .value {
    font-size: 10px;
    font-weight: normal;
}

.toolTip > .info {
    font-size: 14px;
}

.transaction-summary-slide-in {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100vh;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    transform: translateX(100%); 
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    opacity: 0;
    pointer-events: none; 
}

.transaction-summary-slide-in.open {
    transform: translateX(0); 
    opacity: 1; 
    pointer-events: auto; 
}

.tab-label {
    background-color: transparent;
    padding: 0 20px 5px;
    text-transform: uppercase;
    font-weight: 700;
    box-sizing: border-box;
    margin-bottom: -1px;
}

fluent-dialog-header div[tabindex="0"] {
    tabindex: -1 !important;
    outline: none !important;
}