﻿/* page: pims-page.css */

/* ✅ ১. কালপুরুষ ফন্ট এবং Material Icons ইম্পোর্ট */

/* ============================================================
   PIMS — Page-level Styles
   ============================================================ */

/* ---------- Page background ---------- */
.pims-page {
    min-height: 100vh;
    background: transparent;
    padding: 1rem 0rem 2rem 0rem;
    font-family: 'Kalpurush', "Segoe UI", "Noto Sans Bengali", sans-serif !important;
    color: #1f2937;
    box-sizing: border-box;
}
    /* ✅ শুধু টেক্সট এরিয়ায় কালপুরুষ ফন্ট */
    .pims-page h1, .pims-page h2, .pims-page h3, .pims-page h4, .pims-page p,
    .pims-page label, .pims-page button, .pims-page a,
    .rz-dropdown-label, .rz-inputtext, .rz-paginator-element,
    .pims-banner-title, .pims-banner-subtitle, .pims-filter-label,
    .pims-chip, .pims-search-input, .pims-report-btn {
        font-family: 'Kalpurush', sans-serif !important;
    }

/* ============================================================ */
/* 🚨 ২. আইকন সুরক্ষা (গুরুত্বপূর্ণ - আইকন যেন না ভাঙে)          */
/* ============================================================ */
.rzi, i.rzi, span.rzi,
.rz-dropdown .rzi, .rz-datepicker .rzi, .rz-grid-table .rzi, .rz-paginator .rzi, .rz-button .rzi,
.material-icons, .fa, .fas, .far, .fab, [class^="fa-"], [class*=" fa-"] {
    font-family: 'Material Icons', 'Font Awesome 6 Free', 'Font Awesome 5 Free', 'FontAwesome' !important;
    font-feature-settings: 'liga' !important;
    -webkit-font-feature-settings: 'liga' !important;
    font-style: normal !important;
    font-weight: normal !important;
    line-height: 1 !important;
    letter-spacing: normal !important;
    -webkit-text-stroke: 0 !important;
}

/* ============================================================
   FIXED FULL-WIDTH TOP NAV
   ============================================================ */
.pims-topnav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #001f3f 0%, #003d7a 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    padding: 0.9rem 0;
}

.pims-topnav-inner {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pims-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff;
    font-size: 1.375rem;
    font-weight: 700;
}

    .pims-brand img {
        width: 36px;
        height: 36px;
        border-radius: 50%;
    }

.pims-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.25rem;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    background: #ffffff;
    color: #001f3f;
    cursor: pointer;
    transition: all 0.25s ease;
}

    .pims-login-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(255, 255, 255, 0.35);
    }

/* ============================================================
   THE CARD
   ============================================================ */
.pims-shell {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    overflow: visible;
}

/* ============================================================
   BANNER
   ============================================================ */
.pims-shell-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 18px 24px;
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 55%, #fff7ed 100%);
    border-bottom: 1px solid #e5e7eb;
    border-radius: 14px 14px 0 0;
}

.pims-banner-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    flex: 1 1 auto;
}

.pims-banner-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    color: #ffffff;
    font-size: 28px;
    flex-shrink: 0;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}

.pims-banner-text {
    min-width: 0;
}

.pims-banner-title {
    font-size: 30px !important;
    font-weight: 900 !important;
    color: #1e3a8a;
    line-height: 1.2;
    margin: 0;
    -webkit-text-stroke: 0.5px currentColor;
}

.pims-banner-subtitle {
    margin: 4px 0 0 0;
    font-size: 20px;
    color: #64748b;
}

/* ---------- Banner actions ---------- */
.pims-banner-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-left: auto;
}
/* ---------- Add Button ---------- */
.pims-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 10px;
    border: 1.5px solid #047857;
    background: #059669;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.28);
}

    .pims-add-btn:hover:not(:disabled) {
        background: #047857;
        border-color: #065f46;
        box-shadow: 0 4px 14px rgba(4, 120, 87, 0.40);
        transform: translateY(-1px);
    }

    .pims-add-btn:active:not(:disabled) {
        transform: translateY(0);
        box-shadow: 0 2px 6px rgba(4, 120, 87, 0.35);
    }

    .pims-add-btn:disabled {
        opacity: 0.55;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

@media (max-width: 640px) {
    .pims-add-btn span {
        display: none;
    }

    .pims-add-btn {
        padding: 9px 12px;
    }
}
/* ✅ নতুন "ফিরে যান" বাটন */
.pims-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #001f3f;
    border: 2px solid #ffffff;
    border-radius: 10px;
    padding: 10px 24px;
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-family: 'Kalpurush', sans-serif !important;
}

    .pims-back-btn:hover {
        background: #f0f9ff;
        color: #2563eb;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    }

    .pims-back-btn .rzi {
        font-size: 24px !important;
    }
/* ---------- Reset button ---------- */
.pims-reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 10px;
    border: 1.5px solid #b91c1c;
    background: #dc2626;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.28);
}

    .pims-reset-btn:hover:not(:disabled) {
        background: #b91c1c;
        border-color: #991b1b;
        box-shadow: 0 4px 14px rgba(185, 28, 28, 0.40);
        transform: translateY(-1px);
    }

    .pims-reset-btn:active:not(:disabled) {
        transform: translateY(0);
        box-shadow: 0 2px 6px rgba(185, 28, 28, 0.35);
    }

    .pims-reset-btn:disabled {
        opacity: 0.55;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

@media (max-width: 640px) {
    .pims-banner-actions {
        margin-left: 0;
        width: 100%;
        justify-content: flex-end;
    }

    .pims-reset-btn span {
        display: none;
    }

    .pims-reset-btn {
        padding: 9px 12px;
    }
}

/* ---------- Filters ---------- */
.pims-shell-filters {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
}

.pims-filter-grid {
    display: grid;
    /* ৩ কলামের বদলে অটো-ফিট ব্যবহার করব, যাতে স্ক্রিন ছোট হলে ১ বা ২ কলাম হয়ে যায় */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
}

@media (min-width: 768px) {
    .pims-filter-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

.pims-filter-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0; /* ⬅️ এটি অত্যন্ত জরুরি, ফ্লেক্স চিলড্রেন স্ক্রিনের বাইরে বের হওয়া বন্ধ করে */
    width: 100%;
}

/* ✅ ফিল্টার লেবেল বড় এবং বোল্ড করা হলো */
.pims-filter-label {
    font-weight: 800 !important;
    font-size: 20px !important;
    color: #0f172a !important;
    white-space: nowrap; /* লেবেল যেন ভেঙে না যায় */
    flex-shrink: 0; /* লেবেল যেন ছোট না হয় */
}
.pims-filter-item .rz-dropdown,
.pims-filter-item .rz-dropdown-label,
.pims-filter-item .rz-inputtext {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    flex: 1 1 auto;
}
@media (min-width: 768px) {
    .pims-filter-label {
        font-size: 22px !important; /* ডেস্কটপে আরও বড় */
    }
}

/* ---------- Table section wrapper ---------- */
.pims-shell-table {
    background: #ffffff;
    border-radius: 0 0 14px 14px;
}

/* ---------- Toolbar ---------- */
.pims-table-toolbar {
    display: flex;
    flex-wrap: wrap; /* স্ক্রিন ছোট হলে নিচে নেমে যাবে */
    gap: 15px;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}
.pims-toolbar-right {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-left: auto;
}
@media (max-width: 768px) {
    .pims-filter-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .pims-toolbar-right {
        margin-left: 0;
        width: 100%;
    }

        .pims-toolbar-right .pims-add-btn,
        .pims-toolbar-right .pims-report-dropdown,
        .pims-toolbar-right .pims-report-btn {
            width: 100%;
            justify-content: center;
        }

    .pims-search-wrapper {
        width: 100% !important;
        min-width: 100% !important;
    }
}
/* ============================================================ */
/* ✅ PIMS SUMMARY CHIPS - FINAL GLASSMORPHISM DESIGN (BOTTOM)  */
/* ============================================================ */

.pims-summary-chips {
    display: flex !important;
    gap: 14px !important;
    flex-wrap: wrap !important;
    align-items: center !important;
}

    /* মেইন গ্লাস কার্ড */
    .pims-table-toolbar .pims-chip,
    .pims-summary-chips .pims-chip {
        display: inline-flex !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 12px 22px !important;
        border-radius: 14px !important;
        /* Glass Effect */
        background: rgba(255, 255, 255, 0.5) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border: 1px solid rgba(255, 255, 255, 0.8) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
        color: #1e293b !important;
        white-space: nowrap !important;
        line-height: 1.2 !important;
        transition: all 0.3s ease !important;
    }

        /* হোভার করলে হালকা লিফট হবে */
        .pims-table-toolbar .pims-chip:hover,
        .pims-summary-chips .pims-chip:hover {
            background: rgba(255, 255, 255, 0.7) !important;
            transform: translateY(-2px) !important;
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
        }

        /* Total (Primary) চিপের জন্য নীল গ্লাস */
        .pims-table-toolbar .pims-chip.chip-primary,
        .pims-summary-chips .pims-chip.chip-primary {
            background: linear-gradient(135deg, rgba(219, 234, 254, 0.8) 0%, rgba(255, 255, 255, 0.5) 100%) !important;
            border-color: rgba(147, 197, 253, 0.9) !important;
        }

        /* Filter/Warn চিপের জন্য কমলা/হলুদ গ্লাস */
        .pims-table-toolbar .pims-chip.chip-warn,
        .pims-summary-chips .pims-chip.chip-warn {
            background: linear-gradient(135deg, rgba(254, 243, 199, 0.8) 0%, rgba(255, 255, 255, 0.5) 100%) !important;
            border-color: rgba(252, 211, 77, 0.9) !important;
        }

        /* ✅ লেবেল আরও মোটা (Extra Bold) এবং স্পষ্ট */
        .pims-table-toolbar .pims-chip .chip-label,
        .pims-summary-chips .pims-chip .chip-label {
            font-weight: 900 !important;
            color: #0f172a !important;
            font-size: 18px !important;
            -webkit-text-stroke: 0.4px currentColor !important;
        }

        /* ✅ ভ্যালু (সংখ্যা বা টেক্সট) আরও বড় */
        .pims-table-toolbar .pims-chip .chip-value,
        .pims-summary-chips .pims-chip .chip-value {
            font-weight: 800 !important;
            font-size: 24px !important;
            color: #1e40af !important;
            text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8) !important;
            font-family: 'Kalpurush', sans-serif !important;
        }

/* ---------- Search ---------- */
.pims-search-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

@media (min-width: 640px) {
    .pims-search-group {
        width: auto;
    }
}

/* ✅ সার্চ ইনপুট টেক্সট বড় করা হলো */
/* ✅ সার্চ ইনপুট টেক্সট বড় করা হলো */
.pims-search-input {
    width: 100%;
    height: 46px; /* উচ্চতা বাড়ানো হলো */
    padding: 0 14px;
    border: 1.5px solid #cbd5e1; /* বর্ডার সামান্য মোটা */
    border-radius: 8px;
    font-size: 18px !important; /* টেক্সট বড় */
    font-weight: 700 !important;
    color: #0f172a !important;
    outline: none;
    background: #ffffff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

    .pims-search-input::placeholder {
        font-weight: 500 !important;
        color: #94a3b8 !important;
        font-size: 17px !important;
    }

@media (min-width: 640px) {
    .pims-search-input {
        width: 280px;
    }
}

.pims-search-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.pims-search-btn {
    height: 42px;
    padding: 0 1.25rem;
    border: none;
    border-radius: 6px;
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    background: linear-gradient(135deg, #001f3f 0%, #0074D9 100%);
    transition: all 0.2s ease;
    white-space: nowrap;
}

    .pims-search-btn:hover {
        background: linear-gradient(135deg, #002952 0%, #0088ff 100%);
        box-shadow: 0 4px 15px rgba(0, 116, 217, 0.4);
    }

/* ============================================================ */
/* ✅ Global Search Input with Clear Button                     */
/* ============================================================ */
.pims-search-wrapper {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    width: 100% !important;
}

@media (min-width: 640px) {
    .pims-search-wrapper {
        width: 280px !important;
        min-width: 280px !important;
    }
}

.pims-search-wrapper .pims-search-input {
    padding-right: 36px !important;
    width: 100% !important;
}

.pims-search-wrapper .pims-clear-btn {
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    border: none !important;
    color: #dc2626 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 4px !important;
    border-radius: 50% !important;
    transition: all 0.2s ease !important;
    z-index: 10 !important;
}

    .pims-search-wrapper .pims-clear-btn:hover {
        background: #fee2e2 !important;
        color: #b91c1c !important;
    }

.pims-loading {
    padding: 3rem 1rem;
    text-align: center;
    color: #64748b;
    font-size: 15px;
}

.rz-dropdown.rz-state-disabled,
.rz-dropdown.rz-dropdown-disabled {
    opacity: 0.75 !important;
    background-color: #f9fafb !important;
    border: 1px solid #d1d5db !important;
}

/* ✅ Radzen Dropdown এর ভেতরের লেখা বড় ও বোল্ড */
.rz-dropdown {
    min-height: 46px !important;
    display: flex !important;
    align-items: center;
    border-radius: 8px !important;
}

    .rz-dropdown .rz-dropdown-label {
        display: block !important;
        font-size: 17px !important;
        font-weight: 700 !important;
        color: #334155 !important;
    }

/* ============================================================
   PIMS — Global Modal / Popup Styles
   (Font sizes enhanced for better readability)
   ============================================================ */
.pims-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pimsFadeIn 0.2s ease-out;
}

.pims-modal-content {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 550px;
    overflow: hidden;
    animation: pimsSlideUp 0.3s ease-out;
    font-family: 'Kalpurush', sans-serif !important;
}

.pims-modal-header {
    padding: 18px 26px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pims-modal-title {
    font-size: 22px; /* ছিল 18px → এখন 22px */
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.4;
}

.pims-modal-close {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s;
}

    .pims-modal-close:hover {
        background: #e2e8f0;
        color: #0f172a;
    }

/* ============================================================
   মোডালের মূল বডি — ফন্ট সাইজ বড় করা হয়েছে
   ============================================================ */
.pims-modal-body {
    padding: 26px;
    font-size: 17px; /* বডি বেস ফন্ট */
    line-height: 1.75; /* পড়তে সহজ */
    color: #0f172a;
}

    /* বডির ভেতরের <p>, সাধারণ div, span, strong, b, code — সবই ইনহেরিট */
    .pims-modal-body p,
    .pims-modal-body span,
    .pims-modal-body strong,
    .pims-modal-body b,
    .pims-modal-body code {
        font-size: inherit;
        line-height: inherit;
    }

    /* ছোট helper text (inline style যেগুলো 13px ছিল) সেগুলো এখন 15px */
    .pims-modal-body [style*="font-size: 13px"],
    .pims-modal-body [style*="font-size:13px"] {
        font-size: 15px !important;
    }

    /* Delete modal-এর রঙিন info box (গোলাপি / হলুদ) — ভেতরের টেক্সট বড় */
    .pims-modal-body div[style*="background:#fef2f2"],
    .pims-modal-body div[style*="background:#fffbeb"] {
        font-size: 15.5px !important;
        line-height: 1.75 !important;
    }

.pims-modal-footer {
    padding: 18px 26px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

    /* ============================================================
   Modal Footer / Form এর ভেতরের এলিমেন্টগুলোও বড়
   ============================================================ */
    .pims-modal-footer .pims-btn {
        font-size: 16px;
        padding: 10px 22px;
    }

/* Edit/Add modal-এর ফর্ম লেবেল */
.pims-form-label {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
}

/* Edit/Add modal-এর ইনপুট, Dropdown, Textbox */
.pims-form-control,
.pims-modal-content .rz-dropdown,
.pims-modal-content .rz-dropdown-label,
.pims-modal-content .rz-inputtext,
.pims-modal-content input[type="text"],
.pims-modal-content input[type="number"] {
    font-size: 16.5px;
    min-height: 44px;
}

/* Radzen Dropdown popup-এর ভেতরের আইটেম (পদবী dropdown) */
.rz-dropdown-panel .rz-dropdown-item,
.rz-dropdown-panel .rz-dropdown-item-label {
    font-size: 16px !important;
    padding: 8px 14px !important;
}

@keyframes pimsFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pimsSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================================ */
/* PIMS — Toolbar Actions (Reusable)                            */
/* ============================================================ */
.pims-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pims-date-picker-wrap {
    width: 160px;
}

/* ============================================================ */
/* PIMS — Global Report Dropdown (Bulletproof Fix)              */
/* ============================================================ */

/* ১. প্যারেন্ট কন্টেইনারগুলো ফিক্স (যাতে মেনু নিচে না নামে) */
.pims-shell,
.pims-shell-table,
.pims-table-toolbar,
.pims-toolbar-actions {
    overflow: visible !important;
    position: relative !important;
}

/* ২. ড্রপডাউন র্যাপার */
.pims-report-dropdown {
    position: relative !important;
    display: inline-block !important;
    z-index: 1000 !important;
}

/* ৩. রিপোর্ট বাটন (PRL এর মত হুবহু সাইজ) */
.pims-report-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 16px;
    border-radius: 8px;
    border: 1.5px solid #1d4ed8;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.28);
}

    .pims-report-btn:hover:not(:disabled) {
        background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
        box-shadow: 0 4px 14px rgba(37, 99, 235, 0.40);
        transform: translateY(-1px);
    }

    .pims-report-btn:disabled {
        opacity: 0.55;
        cursor: not-allowed;
        transform: none;
    }

/* ৪. ড্রপডাউন মেনু (এটি টেবিলের উপরে ভাসবে) */
.pims-report-menu {
    position: absolute !important;
    right: 0 !important;
    top: calc(100% + 8px) !important;
    z-index: 99999 !important; /* টেবিলের সবকিছুর উপরে রাখার জন্য */
    min-width: 220px;
    background: #ffffff !important;
    border-radius: 12px;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.15) !important;
    overflow: hidden;
    animation: pimsMenuIn 0.2s ease;
}

/* ৫. মেনু আইটেম (PRL এর মত হুবহু ডিজাইন) */
.pims-report-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: transparent;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
}

    .pims-report-menu-item:hover:not(:disabled) {
        background: #eff6ff;
        color: #1e40af;
        padding-left: 18px;
    }

    .pims-report-menu-item:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

@keyframes pimsMenuIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
/* ============================================================ */
/* PIMS — Full Page Loader (Reusable)                           */
/* ============================================================ */
.pims-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 14% 18%, rgba(37, 99, 235, 0.14), transparent 34%), radial-gradient(circle at 86% 82%, rgba(13, 148, 136, 0.12), transparent 34%), linear-gradient(135deg, #eef6ff 0%, #e0edff 45%, #f2f8ff 100%);
    backdrop-filter: blur(8px);
}

.pims-loading-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 36px 44px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(24px);
    border-radius: 22px;
    border: 1px solid rgba(37, 99, 235, 0.15);
    box-shadow: 0 25px 60px rgba(30, 58, 138, 0.14), 0 8px 24px rgba(37, 99, 235, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    animation: pimsCardIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes pimsCardIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.pims-loading-spinner {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 4px solid rgba(37, 99, 235, 0.15);
    border-top-color: #2563eb;
    border-right-color: #60a5fa;
    animation: pimsSpin 0.9s linear infinite;
}

@keyframes pimsSpin {
    to {
        transform: rotate(360deg);
    }
}

.pims-loading-logo {
    width: 72px;
    height: 72px;
    margin-top: 20px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.18);
    overflow: hidden;
}

    .pims-loading-logo img {
        width: 60px;
        height: 60px;
        object-fit: contain;
    }

.pims-loading-brand {
    margin-top: 14px;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 4px;
    color: #001f3f;
}

.pims-loading-title {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #2563eb;
}

.pims-loading-subtitle {
    margin-top: 4px;
    font-size: 11.5px;
    font-weight: 600;
    color: #64748b;
    text-align: center;
    max-width: 240px;
}

/* ============================================================ */
/* Responsive + Reduced Motion                                  */
/* ============================================================ */
@media (max-width: 900px) {
    .pims-date-picker-wrap {
        width: 140px;
    }
}

@media (max-width: 640px) {
    .pims-toolbar-actions {
        width: 100%;
        gap: 8px;
    }

    .pims-date-picker-wrap {
        width: calc(50% - 4px);
    }

    .pims-toolbar-actions .pims-search-input {
        width: 100% !important;
        flex: 1 1 100%;
    }

    .pims-report-btn span {
        display: none;
    }

    .pims-report-btn {
        padding: 0 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pims-report-menu,
    .pims-loading-card,
    .pims-loading-spinner {
        animation: none !important;
    }
}

/* ============================================================ */
/* ✅ FIX: Radzen Popups (Dropdown / DatePicker / ListBox)      */
/* ============================================================ */
.rz-popup,
.rz-popup-content,
.rz-dropdown-panel,
.rz-multiselect-panel,
.rz-datepicker-popup,
.rz-datepicker-calendar,
.rz-listbox,
.rz-dropdown-items-wrapper,
.rz-spinner-popup {
    z-index: 10050 !important;
}

/* ============================================================
   GLOBAL BLUE BLOCKCHAIN BACKGROUND
   ============================================================ */
.app-blockchain-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background: #ffffff;
    isolation: isolate;
}

    .app-blockchain-bg svg {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        opacity: 0.8;
    }

    .app-blockchain-bg .blockchain-line {
        fill: none;
        stroke: #3b82f6;
        stroke-width: 1.2;
        stroke-opacity: 0.32;
        stroke-dasharray: 7 12;
        animation: blockchain-flow 12s linear infinite;
    }

    .app-blockchain-bg .blockchain-node {
        fill: #ffffff;
        stroke: #2563eb;
        stroke-width: 1.5;
        animation: blockchain-pulse 3s ease-in-out infinite alternate;
    }

    .app-blockchain-bg .blockchain-glow {
        fill: #3b82f6;
        opacity: 0.45;
        filter: drop-shadow(0 0 5px #60a5fa);
        animation: blockchain-pulse 2.5s ease-in-out infinite alternate;
    }

@keyframes blockchain-flow {
    to {
        stroke-dashoffset: -152;
    }
}

@keyframes blockchain-pulse {
    from {
        opacity: 0.25;
    }

    to {
        opacity: 0.9;
    }
}

/* Keep actual page content above the background */
.app-page-content {
    position: relative;
    z-index: 1;
}

/* Disable decorative animation for reduced-motion users */
@media (prefers-reduced-motion: reduce) {
    .app-blockchain-bg .blockchain-line,
    .app-blockchain-bg .blockchain-node,
    .app-blockchain-bg .blockchain-glow {
        animation: none !important;
    }
}


/* ============================================================
           Custom Toast — Big, Clean, Success/Error
           (rendered inside component → CSS applies correctly)
           ============================================================ */
.custom-toast {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 99999;
    min-width: 420px;
    max-width: 560px;
    padding: 22px 26px;
    border-radius: 16px;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.22), 0 6px 16px rgba(15, 23, 42, 0.10);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    animation: toastSlideIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    font-family: 'Kalpurush', sans-serif;
    backdrop-filter: blur(8px);
}

@@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(50px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.custom-toast.toast-success {
    background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 100%);
    border: 1.5px solid #86efac;
    border-left: 8px solid #16a34a;
}

.custom-toast.toast-error {
    background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
    border: 1.5px solid #fecaca;
    border-left: 8px solid #dc2626;
}

.toast-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 26px;
    font-weight: 900;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast-success .toast-icon {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.toast-error .toast-icon {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.3;
    letter-spacing: 0.2px;
}

.toast-success .toast-title {
    color: #15803d;
}

.toast-error .toast-title {
    color: #b91c1c;
}

.toast-message {
    font-size: 18px;
    font-weight: 500;
    color: #334155;
    line-height: 1.6;
}

.toast-close {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #64748b;
    padding: 4px;
    line-height: 1;
    flex-shrink: 0;
    border-radius: 6px;
    transition: all 0.15s;
}

    .toast-close:hover {
        color: #0f172a;
        background: rgba(0, 0, 0, 0.05);
    }

@@media (max-width: 640px) {
    .custom-toast {
        left: 14px;
        right: 14px;
        top: 14px;
        min-width: auto;
        max-width: none;
        padding: 18px 20px;
    }

    .toast-title {
        font-size: 19px;
    }

    .toast-message {
        font-size: 16px;
    }
}
.pims-date-reset-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1.5px solid #dc2626;
    background: #fef2f2;
    color: #dc2626;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .pims-date-reset-btn:hover {
        background: #fee2e2;
        color: #b91c1c;
        transform: translateY(-1px);
    }
