html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 10pt;
    margin: 0;
    height: 100%;
}

/* ── Navbar height: never grow on desktop; on mobile open hamburger as overlay so navbar height stays fixed ── */
.navbar.menubackground {
    flex-wrap: nowrap;
}
@media (min-width: 992px) {
    .navbar.menubackground,
    .navbar.menubackground .container-fluid,
    .navbar.menubackground .navbar-collapse,
    .navbar.menubackground .navbar-nav,
    .navbar.menubackground .menu-left {
        flex-wrap: nowrap;
    }
}
@media (max-width: 991.98px) {
    /* When hamburger menu is open, it floats below the navbar as an overlay — no longer grows the navbar */
    .navbar.menubackground .navbar-collapse.collapse:not(.show) { display: none; }
    .navbar.menubackground .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #0f4c81, #1e88e5);
        z-index: 1050;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    }
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.add-btn {
    position: absolute;
    top: 1px;
    right: 1px;
    margin: 0px !important;
    padding: 0px !important;
}

.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,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY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cgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) 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;
}


.menubackground {
    /*background: #16d9e3;
    background: linear-gradient( to right, #16d9e3,#30c7ec,#46aef7 );*/
    background: linear-gradient(135deg, #0f4c81, #1e88e5);
}

/* 20260512 Chris L: mobile hamburger menu floats over content instead of pushing it down.
   Scoped component CSS loses to Bootstrap's flex-basis:100% on .navbar-collapse — global
   rule with !important wins reliably. */
@media (max-width: 991.98px) {
    .navbar-collapse:not(.collapse) {
        position: fixed !important;
        top: 56px;
        left: 0;
        width: 100%;
        max-height: calc(100vh - 56px);
        overflow-y: auto;
        z-index: 1055;
        background: linear-gradient(135deg, #0f4c81, #1e88e5);
        padding: 1rem;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    }

    /* Prevent the header itself from growing to accommodate the open menu */
    .navbar.navbar-expand-lg {
        flex-wrap: nowrap !important;
    }
}

.centerscreen {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.border-yellow {
    border: 1px solid yellow;
}

.border-purple {
    border: 1px solid purple;
}

.border-lime {
    border: 1px solid lime;
}

.border-red {
    border: 1px solid red;
}

.border-green {
    border: 1px solid green;
}

.border-purple {
    border: 1px solid purple;
}

.border-silver {
    border: 1px solid silver;
}

.border-gold {
    border: 1 px solid gold;
}

/* ===== Left Menu Layout ===== */
.left-layout {
    display: flex;
    height: 100%;
}

.left-menu {
    width: 220px;
    background: #f3f4f6;
    padding: 1rem;
    border-right: 1px solid #e5e7eb;
}

    .left-menu a {
        display: block;
        padding: 0.5rem 0.75rem;
        color: #111827;
        text-decoration: none;
        border-radius: 4px;
    }

        .left-menu a.active {
            background: #2563eb;
            color: white;
        }

        .left-menu a:hover {
            background: #e5e7eb;
        }

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

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

@keyframes ring {
    0% {
        transform: rotate(0);
    }

    20% {
        transform: rotate(15deg);
    }

    40% {
        transform: rotate(-10deg);
    }

    60% {
        transform: rotate(5deg);
    }

    80% {
        transform: rotate(-5deg);
    }

    100% {
        transform: rotate(0);
    }
}

.bell-ring {
    animation: ring 1s ease-in-out infinite;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* contain | cover | fill */
}

.image-watermark {
    position: relative;
    background-image: url('images/yabanetlogo.png');
    /*background-repeat: no-repeat;*/
    background-size: cover;
    background-position: center;
}

    .image-watermark::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.1); /* opacity here */
    }

    .image-watermark > * {
        position: relative; /* keep content above overlay */
    }


.image-watermark-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
    z-index: -1;
}


.hero {
    /*padding: 15px 5px;*/
    position: sticky;
    top: 10px;
    margin: 10px;
    padding: 20px;
    background: linear-gradient(135deg,#0f4c81,#1e88e5);
    color: white;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.hero-heading {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

    .hero-heading .i {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .hero-heading .h1 {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }

    /* 20260510: Desktop - icon beside heading */
    @media (min-width: 992px) {
        .hero-heading {
            flex-direction: row;
        }

        .hero-heading .i {
            margin-bottom: 5px;
            margin-right: 10px;
        }
    }

.hero-summary {
    padding: 20px 10%;
    background: #f7f9fc;
    text-align: center;
}

    .hero-summary h2 {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }

    .hero-summary p {
        text-align: justify;
        font-size: 1.2rem;
        max-width: 850px;
        margin: auto;
        line-height: 1.7;
    }

.hero-detail {
    padding: 0;
    background: #f7f9fc;
    margin-bottom: 10px;
}

    .hero-detail p {
        text-align: justify;
        font-size: 1.2rem;
        max-width: 850px;
        margin: auto;
        line-height: 1.7;
    }

    .hero-detail h2 {
        text-align: center;
        font-size: 2.2rem;
        margin-top: 30px;
        margin-bottom: 20px;
    }

    /* 20260510: Use Bootstrap flex utilities - remove custom flex rules */
    .hero-detail .hero-detail-container {
        justify-content: space-between;
        gap: 15px;
    }

    .hero-detail .hero-detail-content {
        background: white;
        padding: 15px;
        margin-inline: 0; /* 20260510: Mobile - no side margins */
        border-radius: 10px;
        align-items: flex-start;
        width: 100%; /* 20260510: Mobile - full width cards */
    }

    /* 20260510: Desktop - use Bootstrap media query */
    @media (min-width: 992px) {
        .hero-detail .hero-detail-content {
            margin-inline: 10px;
            flex: 1;
        }
    }

    .hero-detail .content-heading {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
    }

        .hero-detail .content-heading .icon {
            font-size: 28px;
            margin-bottom: 10px;
        }

        .hero-detail .content-heading h4 {
            font-weight: 600;
        }

    /* 20260510: Desktop - icon beside heading, margin adjustments */
    @media (min-width: 992px) {
        .hero-detail .content-heading {
            flex-direction: row;
            align-items: center;
        }

        .hero-detail .content-heading .icon {
            margin-bottom: 0;
            margin-right: 15px;
        }

        .hero-detail .content-heading h4 {
            white-space: nowrap;
        }
    }

    .hero-detail .hero-detail-content p {
        margin-left: 0;
        /*text-align: justify;*/
    }

    /* 20260510: Desktop - restore left margin for text alignment under icon */
    @media (min-width: 992px) {
        .hero-detail .hero-detail-content p {
            margin-left: 43px;
        }
    }




.hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: auto;
    opacity: 0.9;
    text-align: center;
}

/* 20260510: Stack hero buttons on mobile */
.hero > div {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

@media (max-width: 575px) {
    .hero > div {
        flex-direction: column;
        align-items: center;
    }

    .hero > div a {
        width: 100%;
        max-width: 300px;
        text-align: center;
        display: block;
    }
}

.capture-control {
    padding: 0px;
    background: #f7f9fc;
    display: flex;
    justify-content: center;
}

    .capture-control .master-container {
        width: 100%;
        max-width: 700px;
        background: white;
        padding: 10px;
        border-radius: 10px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }

.master-container h2 {
    text-align: center;
    margin-bottom: 10px;
}

/* 20260510: Standardized card layout for consistency */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.card-item {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Icon + heading on single line: icon left, heading centered */
.card-item .card-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    margin-bottom: 15px;
    flex-direction: row;
}

.card-item .card-icon {
    font-size: 40px;
    flex-shrink: 0;
    width: 50px;
    text-align: center;
    display: block;
}

.card-item h3 {
    flex: 1;
    text-align: center;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 20260510: Stack icon above heading on very small screens */
@media (max-width: 375px) {
    .card-item .card-heading {
        flex-direction: column;
        gap: 10px;
    }

    .card-item h3 {
        text-align: left;
    }
}

/* Standalone icon (when not in card-heading) */
.card-item .card-icon:not(.card-heading .card-icon) {
    margin-bottom: 15px;
}

.card-item p {
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
    color: #333;
}

.card-item a {
    color: #006bb7;
    text-decoration: none;
}

.card-item a:hover {
    text-decoration: underline;
}

.optional-info {
    padding: 40px 10px;
    text-align: center;
    background: white;
}

    .optional-info h2 {
        margin-bottom: 5px;
    }

    .optional-info p {
        max-width: 800px;
        margin: auto;
        font-size: 1.2rem;
        line-height: 1.7;
        text-align: justify;
    }

.form-label {
    font-weight: 600;
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 0px;
}

    .form-label i {
        margin-right: 10px;
        margin-bottom: 0px;
    }

.hero-btn-solid {
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    background: white;
    color: #0f4c81;
    padding: 14px 32px;
    margin-right: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.hero-btn-outline {
    font-weight: 600;
    border-radius: 6px;
    border: 3px solid lime;
    text-decoration: none;
    border: 2px solid white;
    padding: 12px 30px;
    color: white;
    font-weight: 600;
}

.modal {
    z-index: 1500 !important;
}

.modal-backdrop {
    display: none;
}

/* 20260510: Hide navigation buttons on access request form temporarily */
.hide-nav-button {
    display: none !important;
}

/* 20260513 Chris L: ManageNavMenu — 2×2 grid on narrow phones, single row from ~iPad+ */
.manage-nav-item {
    flex: 1 1 45%; /* 2×2 on very narrow (<600px) */
}
@media (min-width: 600px) { /* 20260513 CL: was 992px — lowered so iPad (768px) gets single row */
    .manage-nav-item {
        flex: 1 1 0;
        min-width: 0;
    }
}

/* 20260513 Chris L: parrot/tawk icon always left-aligned regardless of screen size */
.footer-tawk-cell {
    text-align: left !important;
    padding: 0 6px;
}

/* 20260514 CL - Budget capture panel strip redesign.
   Items: desktop=static flex item (always open); mobile=float overlay.
   Collab: always float overlay on all viewports.
   Neither panel pushes the form — they float over it. */

.budget-capture-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
}

.budget-form-area {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.budget-capture-card {
    position: relative; /* anchor for absolutely-positioned help panel */
    background: white;
    border-radius: 12px;
    box-shadow:
        0 10px 30px rgba(15, 76, 129, 0.18),
        0 4px 12px rgba(0, 0, 0, 0.10),
        0 0 0 1px rgba(15, 76, 129, 0.06);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* "View items" toggle button — shown on mobile only */
.capture-items-toggle { display: block; }
@media (min-width: 700px) {
    .capture-items-toggle { display: none; }
    /* Card centred regardless of items panel; symmetric reservation on both sides */
    .budget-form-area {
        padding-left: 290px;
        padding-right: 290px;
    }
    .budget-capture-card { max-width: 540px; width: 100%; margin: 0 auto; }
    .budget-team-bar { max-width: 540px; margin: 0 auto; width: 100%; }
    /* Items panel always open on desktop — no JS needed */
    .capture-items-panel {
        width: min(280px, calc(100vw - 44px));
        box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    }
}

/* ── All panels — absolute overlays from right of strip, all viewports ── */
.capture-items-panel,
.capture-notes-panel,
.capture-files-panel,
.capture-collab-panel {
    position: absolute;
    right: 44px;
    top: 0;
    bottom: 0;
    width: 0;
    overflow: hidden;
    background: white;
    border-left: 1px solid #e8e8e8;
    display: flex;
    flex-direction: column;
    transition: width 0.2s ease, box-shadow 0.2s ease;
}
.capture-items-panel  { z-index: 20; }
.capture-notes-panel  { z-index: 21; }
.capture-files-panel  { z-index: 22; }
.capture-collab-panel { z-index: 23; }

.capture-panel--open {
    width: min(280px, calc(100vw - 44px));
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
}

.capture-notes-panel textarea { resize: none; font-size: 12px; }

/* ── Button strip — always on right edge ── */
.capture-btn-strip {
    width: 44px;
    flex-shrink: 0;
    background: white;
    border-left: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0;
    gap: 2px;
    z-index: 40;
}
.capture-btn-strip button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: none;
    border: none;
    padding: 8px 2px;
    cursor: pointer;
    border-radius: 6px;
    color: #666;
    width: 40px;
    position: relative;
    transition: background 0.15s, color 0.15s;
}
.capture-btn-strip button:hover { background: #f0f7ff; color: #1e88e5; }
.capture-btn-strip button.cbs-active { color: #1e88e5; background: #e8f4fd; }
.cbs-badge {
    position: absolute;
    top: 4px; right: 2px;
    background: #1e88e5;
    color: white;
    border-radius: 8px;
    font-size: 8px;
    min-width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2px;
    line-height: 1;
}
.cbs-label { font-size: 8px; color: inherit; line-height: 1; }

.collab-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}
    .collab-panel-header span {
        font-size: 11px;
        font-weight: 600;
        color: #888;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

.collab-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    padding: 2px 4px;
    border-radius: 4px;
}
    .collab-close-btn:hover { background: #f0f0f0; }

.collab-count {
    background: #1e88e5;
    color: white;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    min-width: 16px;
    text-align: center;
}

/* 20260513 Chris L: hero h1 font-size reduced on narrow screens to prevent overflow */
@media (max-width: 480px) {
    .hero h1 {
        white-space: normal !important;
        font-size: 1.1rem !important;
    }
    .hero h1 span[style*="font-size:32px"],
    .hero h1 span[style*="font-size: 32px"] {
        font-size: 1.1rem !important;
    }
}

/* 20260513 CL - short viewport (640×480 etc): hero becomes static so form scrolls normally;
   padding tightened so auth pages (Login, Register, etc.) fit without excessive scrolling */
@media (max-height: 540px) {
    .hero {
        position: relative !important;
        top: 0 !important;
        margin: 4px 10px !important;
        padding: 10px 15px !important;
    }
    .hero h1, .hero h3 {
        font-size: 1.1rem !important;
        margin-bottom: 2px !important;
    }
    .hero h1 span[style*="font-size:32px"],
    .hero h1 span[style*="font-size: 32px"],
    .hero h3 span[style*="font-size:32px"],
    .hero h3 span[style*="font-size: 32px"] {
        font-size: 1.1rem !important;
    }
    .hero p {
        font-size: 0.78rem !important;
        margin: 2px 0 0 !important;
    }
    .hero-summary {
        padding: 10px 15px !important;
    }
}

/* 20260510: Footer responsive - only parrot/tawk icon on mobile */
/* 20260513 Chris L: keep user cell visible — enough space once social icons are hidden */
@media (max-width: 991px) {
    .footer-copyright-cell,
    .footer-social-icon,
    .footer-date-cell {
        display: none;
    }

    .footer-tawk-cell {
        width: auto !important;
        text-align: left !important;
        padding: 0 10px;
    }

    .footer-tawk-cell .position-relative {
        display: inline-flex;
        align-items: center;
        justify-content: flex-start;
    }
}


/* ── Budget capture vertical title strip ── */
.budget-title-strip {
    width: 30px;
    background: linear-gradient(to bottom, #1e88e5, #1565c0);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; /* icon at top, label at bottom */
    padding: 14px 0;
    color: white;
    user-select: none;
}
.budget-strip-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg); /* reads upward from the bottom */
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.95;
    white-space: nowrap;
}
