﻿/* ===== GLOBAL APP FONT (Poppins) ===== */

/* Make inputs & selects more consistent between browsers */
input,
select,
button,
textarea {
    font-family: var(--app-font);
    font-size: 0.9rem;
    line-height: 1.2;
    box-sizing: border-box;
}

/* MudBlazor text fields */
.mud-input-root,
.mud-input-root .mud-input-slot {
    font-family: var(--app-font);
    font-size: 0.9rem;
}

:root {
    --app-font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* Base for whole app */
/* Base for whole app – FOR CONTENT ONLY */
html, body {
    font-family: var(--app-font);
    font-size: 13px; /* ✅ controls forms, pages, inputs */
    color: #1f2937;
}


h1:focus {
    outline: none;
}

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;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#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;
    }

.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."
    }

.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;
}
/* ---- Muktinath ARC + MudBlazor layout ---- */

.arc-drawer {
    background: linear-gradient(180deg, #061529, #0b2347, #1e103b);
    color: #e5e7eb;
    width: 260px;
}

.arc-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1rem 0.75rem 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.arc-logo {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f97316, #fb923c);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #111827;
}

.arc-brand-text {
    display: flex;
    flex-direction: column;
}

.arc-brand-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #f9fafb;
}

.arc-brand-subtitle {
    font-size: 0.75rem;
    color: #cbd5f5;
}

/* Nav styling */

.arc-nav .mud-nav-link {
    border-radius: 0.6rem;
    margin: 0.10rem 0.5rem;
    /* ✅ FONT UPGRADE */
    font-family: var(--app-font);
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    transition: background 0.2s ease, color 0.2s ease;
}

    .arc-nav .mud-nav-link .mud-nav-link-text {
        white-space: nowrap;
        font-family: var(--app-font); /* ✅ force same font */
    }

    /* ✅ ACTIVE MENU ITEM */
    .arc-nav .mud-nav-link.mud-nav-link-active {
        background: rgba(249, 115, 22, 0.18);
        color: #f97316;
        font-weight: 600;
        box-shadow: inset 3px 0 0 #f97316; /* ✅ left accent line (pro look) */
    }

    .arc-nav .mud-nav-link:hover {
        background: rgba(249, 115, 22, 0.10);
        color: #f97316;
    }

/* ✅ Right align ALL numeric fields (banking standard) */
.mud-numeric-field input,
input[type="number"],
.numeric-input {
    text-align: right;
    font-variant-numeric: tabular-nums; /* ✅ clean digit alignment */
}


.arc-main-body {
    background: #f4f6fb;
    min-height: calc(100vh - 64px);
    padding: 1.4rem;
}

/* Small screens: drawer overlays, toggle button visible */
@media (max-width: 960px) {
    .arc-main-body {
        padding: 1rem;
    }
}
/* ----------------------------- PRO LEVEL LOADER (Muktinath ARC) ---------------------------------*/

.mukt-loader-root {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top left, #e0f2fe 0, #eff6ff 35%, #f9fafb 70%, #ffffff 100%);
    z-index: 9999;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Glass card */
.mukt-loader-card {
    padding: 1.8rem 2.2rem 1.7rem;
    border-radius: 1.6rem;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 65px rgba(15, 23, 42, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

/* Outer ring */
.mukt-loader-ring {
    width: 110px;
    height: 110px;
    border-radius: 999px;
    border: 4px solid rgba(148, 163, 184, 0.25);
    border-top-color: #2563eb;
    border-right-color: #4f46e5;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.9), transparent 60%), radial-gradient(circle at 70% 70%, rgba(129, 140, 248, 0.35), transparent 60%);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: mukt-spin 1.15s linear infinite;
}

/* Inner circle */
.mukt-loader-inner {
    width: 78px;
    height: 78px;
    border-radius: 999px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
}

/* “dot” inside */
.mukt-loader-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #f97316);
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.32);
    animation: mukt-pulse 1.4s ease-out infinite;
}

/* Texts */
.mukt-loader-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0f172a;
}

.mukt-loader-sub {
    font-size: 0.82rem;
    color: #6b7280;
}

.mukt-loader-progress {
    margin-top: 0.15rem;
    font-size: 0.78rem;
    color: #4b5563;
}

/* subtle brand “ARC” chip */
.mukt-loader-chip {
    font-size: 0.68rem;
    margin-top: 0.4rem;
    padding: 0.18rem 0.7rem;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* Animations */
@keyframes mukt-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes mukt-pulse {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.3);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 16px rgba(37, 99, 235, 0);
    }

    100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}
/* ============================
   Muktinath ARC Pro Loader
============================ */

#mkt-loader {
    background: #015F05; /* Muktinath dark green */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: #ffffff;
    z-index: 9999;
    font-family: 'Segoe UI', sans-serif;
}

/* Logo */
.loader-logo {
    width: 140px;
    height: auto;
    margin-bottom: 18px;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4));
}

/* Title */
.loader-title {
    font-size: 1.9rem;
    font-weight: 700;
    margin: 0;
}

/* Subtitle */
.loader-sub {
    font-size: 1rem;
    opacity: 0.85;
    margin-bottom: 25px;
}

/* Spinning loader */
.loader-spinner {
    width: 55px;
    height: 55px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
}

/* Animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.mukt-page-card {
    padding: 24px;
    margin: 16px;
    border-radius: 16px;
}

.mukt-page-title {
    font-weight: 600;
    letter-spacing: 0.03em;
}

.mukt-section {
    padding: 16px 16px 8px 16px;
    border-radius: 12px;
    background-color: rgba(1, 95, 5, 0.03);
}

.mukt-section-title {
    font-weight: 600;
    margin-bottom: 8px;
}

.mukt-photo-box {
    padding: 12px 14px;
    border-radius: 12px;
}

.mukt-photo-preview {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    border: 1px dashed rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-layout-root {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f6f9;
}

/* =========================================================
   GENERIC PAGE + FORM STYLES FOR ALL SCREENS
   Use these classes on Membership, Deposit, Loan, Inventory…
   ========================================================= */

/* ============ GENERIC PAGE SHELL ============ */
.page-shell {
    padding: 1.8rem 2.2rem;
    background: #f3f4f8;
    min-height: 100vh;
}

.page-card {
    max-width: 1100px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 1.6rem 1.8rem 1.8rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    border: 1px solid #e5e7eb;
}

.page-header {
    margin-bottom: 1rem;
}

.page-title {
    margin: 0;
    color: #015f05 !important;
    font-size: 1.5rem;
    font-weight: 700;
}

.page-subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    color: #6b7280;
}

/* ============ GRID LAYOUT ============ */

.form-grid {
    display: grid;
    gap: 0.75rem 1rem;
}

.form-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1024px) {
    .form-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .form-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ============ FIELDS & INPUTS ============ */

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.form-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: #6b7280;
}

/* DataHub-style input (RechargeAmount look) */
.form-control,
.input-modern {
    width: 100%;
    padding: 0.55rem 0.75rem;
    font-size: 0.95rem;
    border: 1.5px solid #d1d5db;
    border-radius: 0.55rem;
    background: #ffffff;
    transition: all 0.18s ease-in-out;
    box-sizing: border-box;
}

    .form-control::placeholder,
    .input-modern::placeholder {
        color: #9ca3af;
    }

    .form-control:focus,
    .input-modern:focus {
        outline: none !important;
        border-color: #2563eb; /* blue border */
        box-shadow: 0 0 0 2px #bfdbfe; /* light blue glow */
    }

/* ============ BUTTONS ============ */

.form-actions {
    margin-top: 1.4rem;
    display: flex;
    gap: 0.6rem;
}

.btn-pill {
    border-radius: 999px;
    padding: 0.4rem 1.2rem;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .btn-pill.primary {
        background: linear-gradient(135deg, #2563eb, #4f46e5);
        color: #ffffff;
        box-shadow: 0 10px 25px rgba(37, 99, 235, 0.45);
    }

    .btn-pill.secondary {
        background: #015f05;
        color: #e5e7eb;
    }

    .btn-pill.ghost {
        background: transparent;
        color: #4b5563;
        border: 1px solid #d1d5db;
    }

select.form-control option:checked {
    color: #0151a3 !important;
}
/* =======================
   SHARE PAGE MEDIA BLOCKS
   ======================= */

.share-page .page-title {
    color: #015f05; /* Muktinath green */
    letter-spacing: 0.01em;
}

/* Make the font slightly cuter on this page (Poppins-like feeling) */
.share-page .page-card {
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Space between form fields and footer */
.form-footer {
    margin-top: 1.6rem;
}

    /* Keep buttons compact and nice */
    .form-footer .btn-pill {
        min-width: 80px;
    }

/* Signature + Photo side-by-side */
.right-media {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-start;
}

.media-block {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.media-preview-box {
    width: 160px;
    height: 120px;
    border-radius: 0.85rem;
    border: 1px dashed #d1d5db;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.media-placeholder {
    font-size: 0.8rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Cute font just for Share Account page */
.share-page {
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
/* ================================
   SHARE ACCOUNT – SIGNATURE & PHOTO
   ================================ */

/* SHARE ACCOUNT – SIGNATURE & PHOTO */

.share-media-container {
    display: flex;
    flex-direction: row;
    gap: 3rem;
    margin-top: 1rem;
}

.share-media-block {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}


.share-media-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
}

.share-media-box {
    width: 170px;
    height: 120px;
    border-radius: 0.75rem;
    border: 1.5px dashed #cbd5e1;
    background: #f8fafc;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.share-media-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.share-media-placeholder {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: #9ca3af;
    text-transform: uppercase;
}

.deposit-payment-page {
    font-size: 0.82rem;
}

.dp-card {
    border-radius: 14px;
    background: linear-gradient(135deg, #ffffff 0%, #f6f8ff 40%, #f0f4ff 100%);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.dp-chip {
    font-size: 0.75rem;
    padding-inline: 10px;
}

.dp-form .mud-input-root,
.dp-form .mud-input-root .mud-input-slot {
    font-size: 0.8rem;
}

.dp-input {
    font-size: 0.8rem;
}

.dp-section-title {
    font-weight: 600;
    letter-spacing: 0.01em;
}

.dp-checkbox .mud-input-label {
    font-size: 0.8rem;
}

.dp-balance-card {
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(15, 35, 52, 0.08);
}

.dp-photo-box {
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    border: 1px dashed rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dp-photo-placeholder {
    font-size: 0.8rem;
    font-weight: 600;
    color: #7a869a;
    text-transform: uppercase;
}

.dp-sign-placeholder {
    font-family: "Brush Script MT", "Segoe Script", cursive;
    font-size: 1rem;
    text-transform: none;
}

.dp-form .mud-button {
    min-width: 90px;
    font-size: 0.8rem;
    border-radius: 999px;
}

/* Make everything a bit tighter on small screens */
@media (max-width: 768px) {
    .deposit-payment-page {
        padding-inline: 8px;
    }
}
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

.mukt-loader-root {
    width: 100vw;
    height: 100vh;
    background: #015F05;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.mukt-loader-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mukt-loader-logo img {
    width: 320px;
    max-width: 70vw;
    height: auto;
    object-fit: contain;
    margin-bottom: 10px;
    filter: drop-shadow(0 6px 16px rgba(0,0,0,0.4));
}

.mukt-loader-title {
    margin: 4px 0 0 0;
    font-size: 2rem;
    font-weight: 700;
}

.mukt-loader-sub {
    margin: 4px 0 20px 0;
    font-size: 1rem;
    opacity: 0.9;
}

.mukt-loader-spinner {
    margin-top: 15px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    animation: mukt-spin 1s linear infinite;
}

.mukt-loader-foot {
    margin-top: 18px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.mukt-loader-tagline {
    margin-top: 3px;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.8;
}

@keyframes mukt-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width:600px) {
    .mukt-loader-logo img {
        width: 220px;
        max-width: 80vw;
    }

    .mukt-loader-title {
        font-size: 1.6rem;
    }

    .mukt-loader-sub {
        font-size: 0.9rem;
    }
}

/* Page titles / section headers */
h1, h2, h3, h4, h5, h6,
.page-title,
.jv-title,
.form-title {
    font-weight: 600;
    letter-spacing: 0.25px;
}

/* ✅ Right align ALL MudNumericField inputs (banking standard) */
.mud-numeric-field input,
.numeric-input input {
    text-align: right !important; /* override MudBlazor's left-align */
    font-variant-numeric: tabular-nums; /* clean digit alignment */
}

/* Nepali BS/AD compound input */
/* =========================
   Nepali BS/AD combined input
/* ===== BS/AD combined input – custom dropdown ===== */

.bsad-panel {
    display: flex;
    gap: 8px;
}

.bsad-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative; /* anchor dropdown */
}

/* BS/AD between – vertical gap between From / To blocks */
.bsad-between {
    display: flex;
    flex-direction: column;
}

    /* add little space before the second block (To Date) */
    .bsad-between .bsad-block + .bsad-block {
        margin-top: 12px; /* ← adjust 8px bigger/smaller as you like */
    }

/* ✅ Proper vertical gap between BOTH:
   - From Date (BS / AD) → BS input
   - To Date (BS / AD) → BS input
*/
.bsad-block .bsad-label {
    display: block;
    margin-bottom: 8px; /* ✅ controls the gap */
}


/* inside bs field: input + arrow */
.bs-dropdown {
    position: relative;
}

.bs-input {
    padding-right: 2rem; /* space for arrow button */
}

/* small ▼ button inside input on right */
.bs-dropdown-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    padding: 0;
    font-size: 0.8rem;
    color: #9ca3af;
    cursor: pointer;
}
.search-root {
    position: relative;
    width: 100%;
}

/* overlay list for MudAutocomplete suggestions */
.search-list,
.mud-popover.mud-autocomplete-popover {
    max-height: 220px;
    overflow-y: auto;
}

/* optional tuning for items */
.search-item,
.mud-list-item {
    font-size: 0.9rem;
}

/* highlight text */
.search-match {
    font-weight: 600;
}

/* Ensure checkbox tick is visible everywhere */
.mud-checkbox .mud-icon-root,
.mud-checkbox svg {
    opacity: 1 !important;
    visibility: visible !important;
    color: inherit !important;
    fill: currentColor !important;
}

/* Optional: make checked state clearly visible */
.mud-checkbox.mud-checkbox-checked .mud-icon-root,
.mud-checkbox.mud-checkbox-checked svg {
    opacity: 1 !important;
}
/* ✅ PartyID must be LEFT aligned (override global numeric rule) */
.partyid-fix.mud-numeric-field input[type="number"] {
    text-align: left !important;
}

