﻿html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    height: auto;
    min-height: 100%;

}


a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: black;
    border-color: black;
}

.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;
}

.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,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) 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;
}

/*.working {
    padding: 0;
    margin: 0;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9999;
    overflow: hidden;*/
    /*background-color: rgba(255,255,255,0.95);*/
    /*background-color: rgba(255,255,255,1.0);
    border-radius: 0px;
}*/

.working {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background-color: rgba(255,255,255,1.0);
    display: flex;
    align-items: center; /* vertical center */
    justify-content: center; /* horizontal center */
}

    .working .loading-logo, .working .loading-anim {
        margin: 6rem auto 0;
        /*margin-top: calc(50vh - 100px);*/
        position: absolute;
        left: 0;
        right: 0;
        width: 200px; /* Need a specific value to work */
        overflow: hidden;
        z-index: 2;
    }

.scan-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px; /* space between image and text */
}

.scan-text {
    text-align: center;
    font-size: 16px;
    color: #333;
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tile {
    width: 75%;
    height: 100px;
    color: #2E0C0A;
    font-weight: 600;
    font-size: 30px;
    margin: 20px;
}


table.table {
    width: 100%;
    border-collapse: separate;
    border: solid lightgray 1px;
    border-radius: 10px;
    -moz-border-radius: 10px;
}

th.title {
    width: 40%
}

th.smallcolumn {
    width: 15%
}

th {
    align-content: center;
    background-color: #FAFAFB !important;
}

tr:nth-child(odd) {
    background-color: white;
}

tr:nth-child(even) {
    background-color: #FAFAFB;
    border-radius: 10px;
}

.align-end {
    justify-content: flex-end;
    display: flex;
}

.text-box {
    width: 400px;
}

.form-control:focus, .btn-primary:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2); /* Adds a soft shadow instead */
}

.btn-primary:hover, .btn-primary:focus {
    background: black;
    border-color: black;
}

.row {
    --bs-gutter-x: 0; /* Removes horizontal gutter (left and right padding) */
}

.expenses-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.6rem;
    justify-content: center; /* <-- this centers items horizontally */
    background-color: #f8f9fa; /* Light gray background for the container */
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.expense-item {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

    .expense-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

.expense-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-weight: bold;
    color: #343a40; /* Dark gray for text */
}

.expense-item-body p {
    margin: 0.5rem 0;
    color: #6c757d; /* Medium gray for body text */
}

.expense-item-body strong {
    color: #495057; /* Slightly darker gray for labels */
}

.dropdown-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 1rem 0;
}

    .dropdown-container label {
        font-size: 1rem;
        font-weight: bold;
        color: #495057; /* Dark gray for label */
    }

/* Style the dropdown */
.custom-dropdown {
    appearance: none; /* Removes default browser styling */
    background-color: #f8f9fa; /* Light gray background */
    color: #495057; /* Dark gray text */
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    transition: border-color 0.3s, box-shadow 0.3s;
    width: 100%;
    max-width: 200px;
}

    /* Hover and focus effects */
    .custom-dropdown:hover {
        border-color: #80bdff;
        box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    }

    .custom-dropdown:focus {
        outline: none;
        border-color: #007bff;
        box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
    }

    /* Ensure selected items remain styled */
    .custom-dropdown option {
        background-color: #ffffff; /* White background */
        color: #495057; /* Dark gray text */
    }

.form-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 1.5rem;
    background-color: #f8f9fa; /* Light gray background */
    border: 1px solid #ddd; /* Subtle border */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Shadow for depth */
}

.form-group {
    margin-bottom: 1rem; /* Space between form groups */
}

    .form-group label {
        display: block; /* Make label appear on its own line */
        font-weight: bold;
        margin-bottom: 0.5rem;
        color: #495057; /* Dark gray text */
    }

.form-control {
    width: 100%; /* Full-width inputs */
    padding: 0.5rem;
    font-size: 1rem;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ced4da; /* Light border */
    border-radius: 4px; /* Slightly rounded corners */
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1); /* Subtle inner shadow */
    transition: border-color 0.2s, box-shadow 0.2s; /* Smooth transitions */
}

    .form-control:focus {
        outline: none;
        border-color: #007bff; /* Highlight border */
        box-shadow: 0 0 5px rgba(0, 123, 255, 0.25); /* Blue glow */
    }

.link {
    color: #007bff; /* Primary blue */
    text-decoration: none; /* Remove underline by default */
    cursor: pointer; /* Show pointer cursor for interactivity */
    transition: color 0.2s ease, text-decoration 0.2s ease; /* Smooth hover effects */
}

    .link:hover {
        color: #0056b3; /* Darker blue on hover */
        text-decoration: underline; /* Add underline on hover */
    }

    .link:focus {
        outline: none; /* Remove default focus outline */
        text-decoration: underline; /* Underline for accessibility */
        color: #004085; /* Even darker blue for focus */
    }

.action-links {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Space between links and separator */
}

.link {
    color: #007bff;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease, text-decoration 0.2s ease;
    font-weight: bold;
}

    .link:hover {
        color: #0056b3;
        text-decoration: underline;
    }

.separator {
    color: #6c757d; /* Subtle gray for separator */
    font-weight: normal;
}




/*#components-reconnect-modal {
    display: flex !important;
    opacity: 1 !important;
    background-color: rgb(255 255 255 / 80%) !important;
    
}

    #components-reconnect-modal::before {
        content: '';
        width: 300px;
        height: 65px;
        background: #81D8D0;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        display: block;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
    }

    #components-reconnect-modal h5 {
        margin-top: 50px !important;
        padding: .75rem 1.25rem;
        width: 300px;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 1050;
        color: #4A0404;
        background-color: #81D8D0;
        box-shadow: 0px 10px 10px 0px hsl(0deg 0% 0% / 20%);
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
    }

    #components-reconnect-modal button{
        display:none !important;
    }
    #components-reconnect-modal div {
        border-color: rgb(133 100 4) rgb(212 188 118) rgb(230 218 178) !important;
        margin: auto;
        z-index: 1050;

    }

    #components-reconnect-modal h5 a {
        color: #092464 !important;

    }
*/
.w-full {
    width:100%;
}

body.modal-open {
    overflow: hidden;
}

.blur-container.blurred {
    filter: blur(6px);
    transition: filter 0.2s ease-in-out;
}

.layout-wrapper.blurred {
    filter: blur(6px);
    transition: filter 0.2s ease-in-out;
}
.input-group {
    z-index:0;
}


/* --- Layout Flex Wrapper --- */
.layout-container {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    overflow: hidden;
}

.nav-area {
    width: 260px;
    background-color: #230805;
    color: white;
    transition: transform 0.3s ease;
    z-index: 1001;
}

/* Main content */
.main-area {
    flex-grow: 1;
    overflow-y: auto;
    background-color: white;
    padding: 1rem;
}

/* Mobile overlay */
@media (max-width: 768px) {
    .layout-container {
        position: relative;
    }

    .nav-area {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 260px;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
    }

        .nav-area.show {
            transform: translateX(0%);
        }

    .main-area {
        flex: 1;
        overflow-y: auto;
    }

    .mobile-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1500;
    }
}




/* Base nav hidden on mobile (collapsed by default) */
.nav-container {
    position: fixed;
    /*position: relative;*/
    top: 0;
    left: 0;
    width: 260px;
    background-color: #1a0b07;
    overflow-y: auto;
    transition: transform 0.3s ease-in-out;
    transform: none !important;
    height: 100%;
    z-index: 999;
}

    /* When NOT collapsed – slide in */
    .nav-container:not(.collapsed) {
        transform: translateX(0);
    }

/* On medium+ screens (desktop), always show nav and reset behavior */
@media (min-width: 768px) {
    .nav-container {
        position: relative;
        transform: none !important;
        height: auto;
        z-index: auto;
    }
}

@media (min-width: 768px) {
    .nav-container.collapsed {
        transform: none;
        position: static;
    }

    .toggle-btn {
        display: block !important;
    }
}


.nav-scrollable {
    overflow-y: auto;
    flex-grow: 1;
    padding-bottom: 1rem;
}

.toggle-btn {
    position: absolute;
    top: 10px;
    right: -15px;
    z-index: 1001;
    background-color: #fff;
    color: black;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    padding: 0;
    display: block;
    justify-content: center;
    align-items: center;
    border: none;
    font-size: 1.25rem;
    outline: none;
    box-shadow: none;
}



.nav-container.collapsed .nav-link span {
    display: none;
}

.nav-container.collapsed .nav-link {
    justify-content: center;
}

/*.nav-scrollable::-webkit-scrollbar {
    display: none;
}

.nav-scrollable {
    scrollbar-width: none;*/ /* Firefox */
    /*-ms-overflow-style: none;*/ /* IE */
/*}*/

.nav-item, .nav-link {
    display: flex;
    align-items: center;
}

/* Always show on md+ screens */
/*@media (max-width: 768px) {
    .nav-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 260px;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
    }

        .nav-container.show {
            transform: translateX(0);*/ /* 👈 THIS is what makes it slide in */
        /*}



    .toggle-btn {
        top: 15px;
        left: 15px;
        right: auto;
        z-index: 2100;*/ /* must sit above the nav */
    /*}

    .main-area {
        margin-left: 0;*/ /* do not push content */
    /*}

    .mobile-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1500;
    }
}*/

.toggle-btn:focus {
    outline: none;
    box-shadow: none;
    border:none;
}

.top-accent-bar {
    height: 45px; /* Thin strip */
    background-color: #81D8D0; /* Pick any color */
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.sidebar-overlay {
    position: fixed;
    inset: 0; /* shorthand for top: 0; right: 0; bottom: 0; left: 0 */
    background-color: rgba(0, 0, 0, 0); /* invisible but clickable */
    z-index: 999; /* Make sure this is below your sidebar’s z-index */
}


.breadcrumbs {
    padding-bottom: 1rem;
    text-align: left;
    display: block;
    color: #383838;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: var(--bold);
    text-transform: uppercase;
}

    .breadcrumbs img {
        margin: -0.25rem 0.25rem 0 0;
        vertical-align: middle;
    }

        .breadcrumbs img.divider-arrow {
            margin: -0.1875rem 0.1875rem 0;
        }

    .breadcrumbs span {
        white-space: nowrap;
    }

    .breadcrumbs a, .breadcrumbs a span {
        cursor: pointer;
        
        color: var(--link-text-color);
    }

        .breadcrumbs a:hover, .breadcrumbs a:hover span {
            text-decoration: underline;
            color: var(--link-text-hover-color);
        }

.list-group-item {
    border-radius: .8em !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}


.upload-box {
    position: relative;
    width: 160px; /* whatever size you want */
    height: 160px;
}

    .upload-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        border-radius: 8px;
        border: 1px solid #ddd;
    }

    /* The real file input: clickable but invisible */
    .upload-box input[type="file"] {
        position: absolute;
        inset: 0; /* top:0; right:0; bottom:0; left:0 */
        width: 100%;
        height: 100%;
        opacity: 0; /* invisible, but still clickable */
        cursor: pointer;
        z-index: 2;
    }

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 12px !important;
    gap: 16px;
    background: #81D8D0;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

    .footer-social a {
        width: 38px;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: #f5f5f5;
        color: #1a0b07;
        font-size: 16px;
        transition: all 0.25s ease;
    }

        .footer-social a:hover {
            background: #81D8D0;
            transform: translateY(-2px);
        }

/*.modal-body {
    max-height: 70vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}*/

.saved-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 11000;
    background-color: darkgreen;
    color: #fff;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: toastIn .25s ease;
    max-width: 90%;
    white-space: nowrap;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

.org-row {
    display: grid;
    grid-template-columns: 1fr 24px 24px;
    align-items: center;
    gap: 12px;
}

.org-main {
    display: flex;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 6px 8px;
}

.org-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.org-icon-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: inherit;
    padding: 0;
}