/* Main Application Styles */

/* Alpine.js cloak - hide elements until Alpine initializes */
[x-cloak] { display: none !important; }

/* ============================================================
   Dropdown Menu (Header Navigation)
   ============================================================ */
.dropdown:hover > .dropdown-menu {
    display: block;
}

.dropdown-menu {
    display: none;
    padding-top: 4px;
}

/* ============================================================
   Content Area (admin form/list containers)
   ============================================================ */
.content-area {
    background-color: #ebebeb;
}

/* ============================================================
   Form Layout
   ============================================================ */
.row {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.row > label {
    width: 170px;
    min-width: 170px;
    text-align: left;
    padding-right: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
}

.inner-label {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    padding-right: 6px;
    align-self: center;
}

.label-w-115 {
    min-width: 115px;
}

.label-w-134 {
    min-width: 134px;
}

.label-w-142 {
    min-width: 142.5px;
}

.label-w-128 {
    min-width: 128px;
}

.label-w-95 {
    min-width: 95px;
}

.label-w-170 {
    min-width: 170px;
}

/* ============================================================
   Cropper Modal
   ============================================================ */
.cropper-modal-box {
    width: 500px;
    max-width: 95vw;
}

.cropper-modal-canvas {
    max-height: 400px;
    overflow: hidden;
}

.cropper-modal-canvas img {
    max-width: 100%;
    display: block;
}

/* ============================================================
   Form Inputs
   ============================================================ */
.inp {
    height: 22px;
    border: 1px solid #b5b5b5;
    padding: 0 5px;
    font-size: 12px;
    outline: none;
    background-color: #fff !important;
}

.inp:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px #3b82f6;
}

.inp.inp-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 1px #ef4444 !important;
}

textarea.inp {
    padding-top: 3px;
    height: auto;
}

/* Hide number input spinners */
input[type="number"].inp::-webkit-outer-spin-button,
input[type="number"].inp::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"].inp {
    -moz-appearance: textfield;
}

/* ============================================================
   Section Title
   ============================================================ */
.section-title {
    background: #9ca3af;
    color: #1f2937;
    padding: 5px 10px;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 8px;
    border-left: 4px solid #4f46e5;
}

/* ============================================================
   Tabs
   ============================================================ */
.tab-btn {
    padding: 10px 20px;
    font-size: 13px;
    background: #f3f4f6;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.15s;
    color: #6b7280;
    margin-bottom: -1px;
}

.tab-btn:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.tab-btn.active {
    background: #ffffff;
    font-weight: 600;
    color: #4f46e5;
    border-bottom: 2px solid #4f46e5;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    background: #f5f5f5;
    border: 1px solid #b5b5b5;
    padding: 5px 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
    border-radius: 3px;
}

.btn:hover {
    background: #e5e7eb;
}

.footer-btn,
.footer-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 20px;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.15s;
    background: #e5e7eb;
    border: 1px solid #9ca3af;
    color: #1f2937;
    text-decoration: none;
}

.footer-btn:hover,
.footer-btn-primary:hover {
    background: #f3f4f6;
}

/* ============================================================
   Fonts & Text Utilities
   ============================================================ */
.kan-field {
    font-family: 'Noto Sans Kannada', sans-serif;
}

.uppercase {
    text-transform: uppercase;
}

.lowercase {
    text-transform: lowercase;
}

/* ============================================================
   Validation Errors
   ============================================================ */
/* Standard error - aligns under input (after 170px label) */
.field-error {
    width: 100%;
    padding-left: 176px;
    color: #ef4444;
    font-size: 11px;
    line-height: 1.3;
    margin-top: -2px;
}

/* Error for second field in shared rows (Marital Status, Director etc.)
   padding-left is set dynamically via JS to align under the field */
.field-error-right {
    width: 100%;
    color: #ef4444;
    font-size: 11px;
    line-height: 1.3;
    margin-top: -2px;
}

/* Error positioned absolutely under a specific field (e.g. PAN)
   left is set dynamically via JS */
.field-error-abs {
    position: absolute;
    color: #ef4444;
    font-size: 11px;
    line-height: 1.3;
    white-space: nowrap;
    margin-top: 1px;
}

/* Extra bottom space when a shared-row has an absolute error that needs room */
.row.has-inline-error {
    margin-bottom: 14px;
}

/* ============================================================
   Pincode Autocomplete Dropdown
   ============================================================ */
/* ============================================================
   Search Input with Icon
   ============================================================ */
.row > .search-input-wrap {
    max-width: 380px;
}

.search-input-wrap {
    position: relative;
    flex: 1;
}

.search-input-wrap .search-icon {
    position: absolute;
    left: 7px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #6b7280;
    pointer-events: none;
}

.search-input-wrap .search-inp {
    width: 100%;
    height: 24px;
    padding: 0 32px 0 32px;
    font-size: 13px;
    line-height: 24px;
    border: 1px solid #9ca3af;
    border-radius: 20px;
    outline: none;
    background: #fff;
    box-shadow: none;
}

.search-input-wrap .search-inp:focus {
    border-color: #6b7280;
    box-shadow: 0 0 0 1px #d1d5db;
}

.search-input-wrap .search-inp::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.search-input-wrap .search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #9ca3af;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-input-wrap .search-clear:hover {
    color: #ef4444;
}

.pincode-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    border: 1px solid #d1d5db;
    border-top: none;
    max-height: 240px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 0 0 4px 4px;
}

.pincode-item {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 12px;
    border-bottom: 1px solid #f3f4f6;
    gap: 8px;
    text-transform: uppercase;
}

.pincode-item:hover, .pincode-active {
    background: #dbeafe;
}

.pincode-taluk {
    flex: 1;
    font-weight: 600;
    color: #1e3a5f;
}

.pincode-code {
    width: 60px;
    text-align: center;
    color: #059669;
    font-weight: 600;
    font-family: monospace;
}

.pincode-dist {
    width: 120px;
    text-align: right;
    color: #6b7280;
    font-size: 11px;
}

.pincode-no-result {
    color: #9ca3af;
    font-style: italic;
    cursor: default;
    justify-content: center;
}

.pincode-no-result:hover {
    background: transparent;
}

/* ============================================================
   Loan View - Column alignment across sections
   ============================================================ */
.loan-view-print .loan-view-tbl {
    table-layout: fixed;
}
.loan-view-print .loan-view-tbl col.loan-col-label { width: 18%; }
.loan-view-print .loan-view-tbl col.loan-col-value { width: 32%; }

/* ============================================================
   View Page - Section Heading
   ============================================================ */
.view-heading {
    font-size: 11px;
    font-weight: bold;
    color: #000;
    padding: 5px 12px;
    margin: 0;
    border-bottom: 1px solid #ccc;
}

/* ============================================================
   View Page - Print Styles
   ============================================================ */
@media print {
    @page { size: A4 portrait; margin: 10mm 12mm; }

    /* Hide layout chrome */
    header, footer, nav, aside,
    .no-print,
    .bg-\[\#959aa2\] { display: none !important; }

    /* Reset body */
    html, body {
        background: #fff !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 11px !important;
        line-height: 1.4 !important;
        color: #000 !important;
    }

    /* Reset main wrapper */
    main { padding: 0 !important; margin: 0 !important; }
    .min-h-screen { min-height: 0 !important; }
    .bg-gray-100 { background: #fff !important; }

    /* Nav is hidden in print; remove layout spacer or page 1 is blank */
    .navbar-offset { padding-top: 0 !important; }
    .top-navbar { display: none !important; }

    /* Print area */
    #printArea {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
    }

    /* ID header */
    .print-header {
        padding: 6px 10px !important;
        border-bottom: 2px solid #000 !important;
        background: #fff !important;
    }
    .print-header span {
        font-size: 13px !important;
        color: #000 !important;
    }

    /* Section headings */
    .view-heading {
        font-size: 11px !important;
        font-weight: bold !important;
        padding: 6px 10px !important;
        margin: 0 !important;
        background: none !important;
        border-bottom: 1.5px solid #000 !important;
        color: #000 !important;
    }

    /* Content sections */
    .print-section, .p-4 { padding: 6px 10px !important; }

    /* Tables */
    .view-tbl { font-size: 10px !important; }
    .view-tbl td { padding: 3px 6px !important; color: #000 !important; }
    .view-tbl td.text-gray-500 { white-space: nowrap !important; }
    .view-tbl th { padding: 3px 6px !important; font-size: 9px !important; }
    .text-gray-500 { color: #555 !important; }

    /* Address grid */
    .grid { display: grid !important; gap: 4px 16px !important; }
    .grid-cols-2 { grid-template-columns: 1fr 1fr !important; }

    /* KYC images */
    .flex.gap-8 { gap: 16px !important; }
    .flex.gap-8 img {
        width: 80px !important;
        height: auto !important;
        max-height: 90px !important;
    }

    /* Kannada font */
    .kan-field { font-size: 10px !important; }

    /* Nominee/data tables */
    table.border th, table.border td { font-size: 9px !important; padding: 3px 4px !important; }

    /* Force colors */
    * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }

    /* Loan view: remove backgrounds, align columns */
    .loan-view-print.content-area,
    .loan-view-print .content-area { background: #fff !important; }
    .loan-view-print .view-heading { background: none !important; }
    .loan-view-print .loan-statement-thead,
    .loan-view-print .loan-statement-tfoot { background: none !important; }
    .loan-view-print .loan-view-tbl {
        table-layout: fixed !important;
    }
    .loan-view-print .loan-view-tbl col.loan-col-label { width: 18% !important; }
    .loan-view-print .loan-view-tbl col.loan-col-value { width: 32% !important; }

    /* Customer view: remove backgrounds in print */
    .customer-view-print.content-area,
    .customer-view-print .content-area { background: #fff !important; }
    .customer-view-print .view-heading { background: none !important; }

    /* Member view: remove backgrounds in print */
    .member-view-print.content-area,
    .member-view-print .content-area { background: #fff !important; }
    .member-view-print .view-heading { background: none !important; }
    .member-view-print .member-view-thead,
    .member-view-print .member-view-tfoot { background: none !important; }

    /* Account view: remove backgrounds in print */
    .account-view-print.content-area,
    .account-view-print .content-area { background: #fff !important; }
    .account-view-print .view-heading { background: none !important; }
    .account-view-print .account-view-thead { background: none !important; }
}

/* ============================================================
   Entity list pages — full-bleed under main (any module)
   Root: .app-list-page · optional .app-list-page--icon-actions (compact action icons)
   Typical: class="app-list-page … cc-breakout w-full pb-8"
   ============================================================ */
.app-list-page.cc-breakout {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
    overflow-x: clip;
}

/* ============================================================
   Shared admin list — toolbar, search, table, pager (any module)
   ============================================================ */
.app-list-page {
    font-family: 'Rajdhani', ui-sans-serif, system-ui, sans-serif;
    color: #1e293b;
}

.app-list-panel.content-area {
    background: #ffffff;
    border: 1px solid #d7dfef;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(15, 30, 58, 0.08);
}

.app-list-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 20px;
    border-bottom: 1px solid #d7dfef;
    background: #f5f8fd;
}

/* Lead block: title + optional link; grows like .app-list-title without stretching inner heading */
.app-list-toolbar-lead {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    flex: 1 1 180px;
    min-width: 0;
}

.app-list-toolbar-heading {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #14213d;
    line-height: 1.2;
}

.app-list-toolbar-back {
    font-size: 11px;
    padding: 4px 10px;
    font-weight: 600;
}

.app-list-title {
    flex: 1 1 180px;
    min-width: 180px;
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #14213d;
    line-height: 1.2;
}

.app-list-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 1 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.app-list-search {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 220px;
    padding: 6px 12px;
    border: 1px solid #d7dfef;
    border-radius: 6px;
    background: #eef3fb;
}

.app-list-search span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    color: #7b8aa8;
    flex-shrink: 0;
}

.app-list-search span svg {
    width: 14px;
    height: 14px;
}

.app-list-search input {
    width: 180px;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    color: #1e293b;
    font-family: 'Rajdhani', ui-sans-serif, sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
}

.app-list-search input::placeholder {
    color: #94a3b8;
}

.app-list-search-submit {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.app-list-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 32px;
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.app-list-btn svg {
    width: 14px;
    height: 14px;
}

.app-list-btn-primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.app-list-btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.app-list-btn-muted {
    background: #1e3a5f;
    border-color: #1e3a5f;
    color: #ffffff;
}

.app-list-btn-muted:hover {
    background: #162c49;
    border-color: #162c49;
}

.app-list-btn-outline {
    background: transparent;
    border-color: #d7dfef;
    color: #475569;
}

.app-list-btn-outline:hover {
    background: #eef3fb;
    color: #1e293b;
}

.app-list-table-wrap {
    overflow-x: auto;
}

.app-list-table {
    width: 100%;
    min-width: 1120px;
    border-collapse: collapse;
}

.app-list-table thead th {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(42, 58, 106, 0.2);
    background: #eef3fb;
    color: #64748b;
    text-align: left;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    vertical-align: middle;
}

.app-list-table tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(42, 58, 106, 0.14);
    color: #475569;
    font-size: 13px;
    font-weight: 500;
    vertical-align: top;
}

.app-list-table tbody tr:hover {
    background: #f8fbff;
}

.app-list-col-sl,
.app-list-sl {
    width: 52px;
    text-align: center;
}

.app-list-sl {
    color: #94a3b8 !important;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px !important;
}

.app-list-col-actions,
.app-list-actions {
    text-align: left;
    white-space: nowrap;
}

/* Flex row so <a> and <form><button> share one alignment axis (inline form was baseline-shifted). */
.app-list-actions-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.app-list-actions .app-list-action {
    margin: 2px;
}

/* Inside flex row, spacing is gap — not margin on pills */
.app-list-actions .app-list-actions-row .app-list-action {
    margin: 0;
}

.app-list-actions .app-list-action-form {
    display: inline-flex;
    margin: 0;
    padding: 0;
    align-items: center;
}

.app-list-actions-row .app-list-action-form {
    display: flex;
    align-items: center;
}

.app-list-actions button.app-list-action {
    border: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    vertical-align: middle;
}

.app-list-code {
    color: #2563eb;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.app-list-primary {
    color: #1e293b;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
}

.app-list-secondary {
    margin-top: 2px;
    color: #64748b;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
}

.app-list-uppercase {
    text-transform: uppercase;
}

.app-list-kannada {
    color: #059669 !important;
    font-family: 'Tiro Kannada', 'Noto Sans Kannada', sans-serif;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.35;
}

.app-list-phone {
    color: #1e293b !important;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 12px !important;
    font-weight: 600 !important;
}

.app-list-mono {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 12px;
    font-weight: 600;
}

.app-list-balance {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
}

td.app-list-balance--green  { color: #059669; }
td.app-list-balance--blue   { color: #0369a1; }
td.app-list-balance--muted  { color: #94a3b8; }

.app-list-text-center { text-align: center; }
.app-list-text-right  { text-align: right; white-space: nowrap; }
.app-list-date        { font-size: 12px; color: #64748b; }

/* ── Filter selects ── */
.app-list-filter-select {
    height: 36px;
    padding: 0 12px;
    border: 1px solid #d0dbe8;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
}
.app-list-filter-select:focus { outline: 2px solid #2563eb; outline-offset: -1px; }

/* ── Status badges ── */
.app-list-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.app-list-badge--active { background: #d1fae5; color: #065f46; }
.app-list-badge--frozen { background: #dbeafe; color: #1e40af; }
.app-list-badge--closed { background: #fee2e2; color: #991b1b; }

/* ── Type badge ── */
.app-list-type-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* ── Reusable mask-image icons ── */
.icon {
    display: block;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    background: currentColor;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.icon-view {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 12a3 3 0 11-6 0 3 3 0 016 0z'/%3E%3Cpath d='M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 12a3 3 0 11-6 0 3 3 0 016 0z'/%3E%3Cpath d='M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z'/%3E%3C/svg%3E");
}

.icon-edit {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z'/%3E%3C/svg%3E");
}

.icon-freeze {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v18m-6-3l6-6 6 6M6 9l6-6 6 6'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v18m-6-3l6-6 6 6M6 9l6-6 6 6'/%3E%3C/svg%3E");
}

.icon-lock {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z'/%3E%3C/svg%3E");
}

.icon-check-circle {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E");
}

.icon-download {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 10v6m0 0l-3-3m3 3l3-3m2 8H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 10v6m0 0l-3-3m3 3l3-3m2 8H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z'/%3E%3C/svg%3E");
}

.icon-print {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 17h2a2 2 0 002-2v-4a2 2 0 00-2-2H5a2 2 0 00-2 2v4a2 2 0 002 2h2m2 4h6a2 2 0 002-2v-4a2 2 0 00-2-2H9a2 2 0 00-2 2v4a2 2 0 002 2zm8-12V5a2 2 0 00-2-2H9a2 2 0 00-2 2v4h10z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 17h2a2 2 0 002-2v-4a2 2 0 00-2-2H5a2 2 0 00-2 2v4a2 2 0 002 2h2m2 4h6a2 2 0 002-2v-4a2 2 0 00-2-2H9a2 2 0 00-2 2v4a2 2 0 002 2zm8-12V5a2 2 0 00-2-2H9a2 2 0 00-2 2v4h10z'/%3E%3C/svg%3E");
}

.icon-search {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E");
}

.app-list-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 66px;
    height: 28px;
    padding: 0 10px;
    border-radius: 6px;
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1;
    white-space: nowrap;
    transition: background-color 0.15s, color 0.15s;
}

.app-list-action:hover {
    background: #059669;
    color: #ffffff;
}

.app-list-action svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    display: block;
}

.app-list-action-edit {
    background: rgba(245, 158, 11, 0.18);
    color: #b45309;
}

.app-list-action-edit:hover {
    background: #d97706;
    color: #ffffff;
}

.app-list-action-freeze {
    background: rgba(14, 165, 233, 0.12);
    color: #0369a1;
}

.app-list-action-freeze:hover {
    background: #0ea5e9;
    color: #ffffff;
}

.app-list-action-close {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.app-list-action-close:hover {
    background: #dc2626;
    color: #ffffff;
}

.app-list-action-unfreeze {
    background: rgba(99, 102, 241, 0.14);
    color: #4338ca;
}

.app-list-action-unfreeze:hover {
    background: #4f46e5;
    color: #ffffff;
}

/* Modifier: icon-only buttons (no text labels) */
.app-list-page--icon-actions .app-list-col-actions,
.app-list-page--icon-actions .app-list-actions {
    width: 84px;
}

/* Icon-only actions (no "View" / "Edit" text) */
.app-list-page--icon-actions .app-list-action {
    min-width: 32px;
    width: 32px;
    height: 32px;
    padding: 0;
    gap: 0;
}

.app-list-page--icon-actions .app-list-action svg,
.app-list-page--icon-actions .app-list-action .icon {
    width: 16px;
    height: 16px;
}

.app-list-page--icon-actions .app-list-aadhaar-mask {
    white-space: nowrap;
    letter-spacing: 0.04em;
}

.app-list-empty {
    padding: 32px 16px !important;
    color: #94a3b8 !important;
    text-align: center;
    font-size: 13px !important;
    font-weight: 500 !important;
}

.app-list-pager nav > div {
    border-top: 1px solid #d7dfef;
    background: #f8fbff;
}

.app-list-pager nav > div > div:first-child {
    color: #64748b !important;
    font-family: 'Rajdhani', ui-sans-serif, sans-serif;
    font-size: 12px !important;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.app-list-pager nav > div > div:last-child {
    gap: 6px !important;
}

.app-list-pager nav a,
.app-list-pager nav span {
    border-radius: 6px !important;
    font-family: 'Rajdhani', ui-sans-serif, sans-serif;
    font-size: 12px !important;
    font-weight: 700 !important;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.app-list-pager nav a {
    border-color: #d7dfef !important;
    background: #ffffff;
    color: #475569 !important;
    box-shadow: 0 1px 2px rgba(15, 30, 58, 0.04);
}

.app-list-pager nav a:hover {
    background: #eef3fb !important;
    border-color: #93c5fd !important;
    color: #1e3a5f !important;
}

.app-list-pager nav span.bg-gray-700 {
    background: #2563eb !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.22);
}

.app-list-pager nav span.cursor-not-allowed {
    border-color: #e2e8f0 !important;
    background: #f8fafc !important;
    color: #cbd5e1 !important;
}

@media (max-width: 900px) {
    .app-list-toolbar {
        align-items: stretch;
    }

    .app-list-search-form {
        flex: 1 1 100%;
        justify-content: flex-start;
    }

    .app-list-search {
        flex: 1 1 100%;
    }

    .app-list-search input {
        width: 100%;
    }

    .app-list-pager nav > div {
        gap: 10px;
        align-items: flex-start;
    }
}

/* ============================================================
   Entity detail view — header/sections (.dv-*), shared with any profile
   ============================================================ */
.app-entity-view-page {
    font-family: 'Rajdhani', ui-sans-serif, system-ui, sans-serif;
    color: #1e293b;
}

.dv-panel.content-area {
    background: #ffffff;
    border: 1px solid #d7dfef;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(15, 30, 58, 0.08);
}

.dv-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 20px;
    border-bottom: 1px solid #d7dfef;
    background: #f5f8fd;
}

.dv-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.dv-header-code {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 12px;
    font-weight: 700;
    color: #2563eb;
    letter-spacing: 0.03em;
}

.dv-header-name {
    font-size: 15px;
    font-weight: 700;
    color: #14213d;
    letter-spacing: 0.01em;
}

.dv-header-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dv-header-actions {
    display: flex;
    gap: 8px;
}

.dv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 32px;
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid transparent;
    text-decoration: none;
    font-family: 'Rajdhani', ui-sans-serif, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.dv-btn-primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.dv-btn-primary:hover {
    background: #1d4ed8;
}

.dv-btn-muted {
    background: #1e3a5f;
    border-color: #1e3a5f;
    color: #ffffff;
}

.dv-btn-muted:hover {
    background: #162c49;
}

.dv-btn-outline {
    background: transparent;
    border-color: #d7dfef;
    color: #475569;
}

.dv-btn-outline:hover {
    background: #eef3fb;
    color: #1e293b;
}

.dv-btn-danger {
    background: transparent;
    border-color: #fca5a5;
    color: #dc2626;
}

.dv-btn-danger:hover {
    background: #fef2f2;
}

.dv-link {
    color: #0891b2;
    text-decoration: none;
    font-weight: 700;
}

.dv-link:hover {
    text-decoration: underline;
}

.dv-section {
    border-bottom: 1px solid #d7dfef;
}

.dv-section:last-of-type {
    border-bottom: none;
}

.dv-section-title {
    margin: 0;
    padding: 10px 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #e0f2fe;
    background: #1e3a5f;
}

.dv-table {
    width: 100%;
    border-collapse: collapse;
}

.dv-table .dv-col-label { width: 14%; }
.dv-table .dv-col-value { width: 36%; }

.dv-table-narrow { max-width: 600px; }
.dv-table-narrow .dv-label { width: 160px; min-width: 120px; }

.dv-table td {
    padding: 9px 20px;
    border-bottom: 1px solid rgba(42, 58, 106, 0.1);
    vertical-align: top;
    font-size: 13px;
}

.dv-table tr:last-child td {
    border-bottom: none;
}

.dv-label {
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.dv-value {
    color: #1e293b;
    font-weight: 500;
}

.dv-value-strong {
    font-weight: 700;
    color: #14213d;
}

.dv-value-mono {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 12px;
    letter-spacing: 0.02em;
}

.dv-value-accent {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 15px;
    font-weight: 800;
    color: #0891b2;
}

.dv-value-balance {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 17px;
    font-weight: 800;
}

.dv-value-balance--green { color: #059669; }
.dv-value-balance--blue  { color: #0369a1; }
.dv-value-balance--muted { color: #94a3b8; }
.dv-value-balance--red   { color: #dc2626; }

.dv-value-kannada {
    font-family: 'Tiro Kannada', 'Noto Sans Kannada', sans-serif;
    color: #059669;
    font-weight: 600;
    font-size: 14px;
}

.dv-docs {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    padding: 16px 20px;
}

.dv-doc-card {
    text-align: center;
}

.dv-doc-label {
    margin: 0 0 6px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

.dv-doc-photo {
    width: 112px;
    height: 128px;
    object-fit: cover;
    border: 1px solid #d7dfef;
    border-radius: 6px;
}

.dv-doc-signature {
    width: 144px;
    height: 80px;
    object-fit: contain;
    border: 1px solid #d7dfef;
    border-radius: 6px;
    background: #f8fafc;
}

.dv-footer {
    padding: 10px 20px;
    background: #f5f8fd;
    border-top: 1px solid #d7dfef;
}

.dv-footer-text {
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    letter-spacing: 0.02em;
}

@media print {
    .app-entity-view-page .dv-panel.content-area {
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
    }

    .app-entity-view-page .dv-header {
        background: #fff !important;
        border-bottom: 2px solid #000 !important;
    }

    .app-entity-view-page .dv-section-title {
        background: none !important;
        color: #000 !important;
        border-bottom: 1px solid #000 !important;
    }

    .app-entity-view-page .dv-footer {
        background: #fff !important;
    }
}

/* ============================================================
   Entity form fields — labels, inputs, pincode dropdown (create/edit)
   Scoped under .app-entity-form; overrides global .inp where needed.
   ============================================================ */
.app-entity-form {
    font-family: 'Rajdhani', ui-sans-serif, system-ui, sans-serif;
    color: #1e293b;
}

.app-entity-form .row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
}

/* Labels: mock .field label — 11px, semibold, slate-500, uppercase */
.app-entity-form .row > label.dc-label,
.app-entity-form label.dc-label {
    width: auto;
    min-width: 0;
    padding-right: 0;
    margin: 0;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.app-entity-form label.dc-label-kn {
    color: #059669;
    font-family: 'Tiro Kannada', 'Noto Sans Kannada', sans-serif;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.app-entity-form .dc-req {
    color: #dc2626;
    font-weight: 700;
    margin-left: 1px;
}

/* Inputs: mock .field input/select/textarea */
.app-entity-form .inp,
.app-entity-form select.inp,
.app-entity-form textarea.inp {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    min-height: 40px;
    padding: 8px 12px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    background-color: #f8fafc !important;
    color: #1e293b !important;
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.app-entity-form textarea.inp {
    min-height: 78px;
    resize: vertical;
}

.app-entity-form .inp:focus,
.app-entity-form select.inp:focus,
.app-entity-form textarea.inp:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

.app-entity-form .inp.inp-error,
.app-entity-form select.inp.inp-error,
.app-entity-form textarea.inp.inp-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}

.app-entity-form .inp[readonly] {
    opacity: 0.92;
    cursor: default;
    background-color: #f0f9ff !important;
    border-color: #bae6fd !important;
    font-family: 'JetBrains Mono', ui-monospace, monospace !important;
    font-weight: 600 !important;
    color: #2563eb !important;
}

.app-entity-form select.inp {
    cursor: pointer;
    appearance: auto;
}

.app-entity-form .inp.dc-inp-mono {
    font-family: 'JetBrains Mono', ui-monospace, monospace !important;
    letter-spacing: 0.02em;
}

.app-entity-form .search-input-wrap .search-inp {
    box-sizing: border-box;
    width: 100%;
    min-height: 40px;
    height: 40px;
    padding: 0 36px 0 36px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    font-family: 'Rajdhani', sans-serif !important;
    line-height: 1.35;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    background-color: #f8fafc !important;
    color: #1e293b !important;
}

.app-entity-form .search-input-wrap .search-inp:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

.app-entity-form .search-input-wrap .search-icon {
    color: #64748b;
}

.app-entity-form .row > .search-input-wrap {
    max-width: none;
    width: 100%;
}

.app-entity-form .kan-field:not([type="file"]) {
    font-family: 'Tiro Kannada', 'Noto Sans Kannada', sans-serif !important;
}

/* Validation messages sit under the control (not offset for old side-by-side labels) */
.app-entity-form .field-error {
    padding-left: 0 !important;
    margin-top: 2px;
    width: 100%;
    font-size: 11px;
    font-weight: 500;
}

.app-entity-form .inp::placeholder,
.app-entity-form .search-input-wrap .search-inp::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

/* Pincode autocomplete (nested under .app-entity-form) */
.app-entity-form .pincode-dropdown {
    margin-top: 4px;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(30, 58, 95, 0.12), 0 2px 8px rgba(30, 58, 95, 0.06);
    background: #fff;
    max-height: 260px;
    overflow-y: auto;
    border-top: 1px solid #bae6fd;
}

.app-entity-form .pincode-item {
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Rajdhani', ui-sans-serif, sans-serif;
    letter-spacing: 0.02em;
    border-bottom: 1px solid #f1f5f9;
    gap: 10px;
}

.app-entity-form .pincode-item:last-child {
    border-bottom: none;
}

.app-entity-form .pincode-item:hover,
.app-entity-form .pincode-active {
    background: #93c5fd;
    box-shadow: inset 3px 0 0 #1e3a5f;
}

.app-entity-form .pincode-taluk {
    color: #1e3a5f;
}

.app-entity-form .pincode-code {
    color: #0d9488;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-weight: 600;
}

.app-entity-form .pincode-dist {
    color: #64748b;
    font-size: 11px;
    font-weight: 500;
}

.app-entity-form .pincode-no-result {
    padding: 12px;
    font-family: 'Rajdhani', ui-sans-serif, sans-serif;
    font-size: 12px;
    color: #94a3b8;
}

.app-entity-form .pincode-item.pincode-no-result:hover {
    background: transparent;
    box-shadow: none;
}

/* ============================================================
  Admin flash messages
   ============================================================ */
.admin-flash {
    box-sizing: border-box;
}

.admin-flash--banner {
    display: block;
    width: 100%;
    border-radius: 8px;
    padding: 10px 16px;
    box-shadow: none;
    line-height: 1.45;
}

.admin-flash--success {
    background: #ecfdf5;
    border-color: #86efac;
    color: #166534;
}

.admin-flash--success strong {
    color: #14532d;
    font-weight: 600;
}

.admin-flash--error {
    background: #fef2f2;
    border-color: #f87171;
    color: #7f1d1d;
}

/* ============================================================
   Admin top navbar (mock: navy bar, white dropdowns, emoji nav)
   ============================================================ */
.admin-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    min-height: 52px;
    background: #1a2f52;
    border-bottom: 2px solid #0f1e3a;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    font-family: 'Rajdhani', ui-sans-serif, system-ui, sans-serif;
    overflow: visible;
}

.admin-navbar .admin-nb-inner {
    display: flex;
    align-items: stretch;
    width: 100%;
    flex-wrap: wrap;
}

.admin-nb-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 18px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 200px;
    background: linear-gradient(135deg, #0f1e3a, #1a2f52);
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
}

.admin-nb-logo-icon {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background: linear-gradient(135deg, #f59e0b, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    line-height: 1;
}

.admin-nb-logo-text h1 {
    font-size: 12.5px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin: 0;
}

.admin-nb-logo-text p {
    font-size: 9.5px;
    color: #7fb3d3;
    font-family: 'Tiro Kannada', ui-serif, serif;
    margin: 0;
    line-height: 1.2;
}

.admin-nb-menu {
    display: flex;
    align-items: stretch;
    flex: 1;
    flex-wrap: wrap;
    overflow: visible;
    min-width: 0;
}

.admin-navbar .dropdown {
    position: relative;
}

.admin-navbar .dropdown:hover > .dropdown-menu {
    display: block;
}

.admin-nb-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 11px;
    font-size: 12px;
    font-weight: 600;
    color: #b8d4e8;
    cursor: pointer;
    white-space: nowrap;
    border: none;
    border-bottom: 3px solid transparent;
    background: transparent;
    font-family: inherit;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    user-select: none;
    height: auto;
    min-height: 52px;
    box-sizing: border-box;
}

a.admin-nb-item {
    text-decoration: none;
}

.admin-nb-item:hover,
.admin-nb-item:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-bottom-color: #f59e0b;
    outline: none;
}

.admin-nb-item--active {
    color: #fff;
    border-bottom-color: #60a5fa;
}

.admin-nb-arrow {
    font-size: 8px;
    opacity: 0.7;
    display: inline-block;
    margin-left: 2px;
}

.admin-navbar .dropdown-menu {
    display: none;
    padding-top: 6px;
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 230px;
    max-width: min(280px, 92vw);
    background: #fff;
    border: 1px solid #d0dbe8;
    border-top: 3px solid #f59e0b;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
    z-index: 300;
    padding: 5px 0;
}

.admin-nb-dd-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #94a3b8;
    padding: 9px 12px 3px;
    margin: 0;
}

.admin-nb-dd-divider {
    height: 1px;
    background: #e8eef5;
    margin: 3px 0;
}

.admin-nb-dd-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #334155;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: background 0.1s, color 0.1s, border-color 0.1s;
}

.admin-nb-dd-link:hover {
    background: #f0f4f8;
    color: #1d4ed8;
    border-left-color: #2563eb;
}

.admin-nb-dd-ico {
    font-size: 12px;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
    line-height: 1;
}

.admin-nb-right {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    margin-left: auto;
    flex-shrink: 0;
}

.admin-nb-date {
    font-size: 10.5px;
    color: #7fb3d3;
    white-space: nowrap;
}

.admin-nb-user {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 9px;
    border-radius: 14px;
}

.admin-nb-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    flex-shrink: 0;
    animation: admin-nb-pulse 2s infinite;
}

@keyframes admin-nb-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.admin-nb-logout {
    font-size: 11px;
    font-weight: 600;
    color: #fca5a5;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
}

.admin-nb-logout:hover {
    color: #fecaca;
    background: rgba(255, 255, 255, 0.08);
}

/* ============================================================
   Entity forms — shell layout (create/edit/view when using cc-* tokens)
   Single root: .app-entity-form on the outer wrapper.
   ============================================================ */
.app-entity-form.cc-breakout {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
    overflow-x: clip;
}

.app-entity-form .cc-form-shell {
    border-radius: 8px;
    border: 1px solid #d0dbe8;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.app-entity-form .cc-form-body {
    padding: 20px;
    background: #fff;
    box-sizing: border-box;
}

.app-entity-form .cc-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #2563eb;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

/* Freeze / unfreeze forms: search row + clear (matches account freeze layout; reusable on customer freeze) */
.app-entity-form .cc-freeze-search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
    margin-bottom: 10px;
}

.app-entity-form .cc-freeze-search-field {
    flex: 0 0 320px;
    min-width: 0;
    position: relative;
}

@media (max-width: 640px) {
    .app-entity-form .cc-freeze-search-field {
        flex: 1 1 100%;
    }
}

.app-entity-form .cc-freeze-search-clear {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-height: 40px;
    padding: 8px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    color: #334155 !important;
    font-family: 'Rajdhani', ui-sans-serif, system-ui, sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.app-entity-form .cc-freeze-search-clear:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

.app-entity-form .cc-freeze-not-found {
    display: none;
    margin-bottom: 10px;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid #fca5a5;
    background: #fef2f2;
    color: #dc2626;
    font-size: 13px;
    font-family: 'Rajdhani', ui-sans-serif, system-ui, sans-serif;
}

.app-entity-form .cc-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

@media (max-width: 1024px) {
    .app-entity-form .cc-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .app-entity-form .cc-form-grid {
        grid-template-columns: 1fr;
    }
}

.app-entity-form .cc-doc-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 8px;
}

.app-entity-form .cc-doc-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1024px) {
    .app-entity-form .cc-doc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-entity-form .cc-doc-grid--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .app-entity-form .cc-doc-grid,
    .app-entity-form .cc-doc-grid--3 {
        grid-template-columns: 1fr;
    }
}

.app-entity-form .cc-divider {
    border: none;
    border-top: 1px solid #d0dbe8;
    margin: 16px 0;
}

.app-entity-form .cc-senior-box {
    box-sizing: border-box;
    width: 100%;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #f8fafc;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    font-family: 'Rajdhani', ui-sans-serif, system-ui, sans-serif;
}

.app-entity-form .cc-page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #d0dbe8;
    background: linear-gradient(90deg, #f5f8fc, #ffffff);
}

.app-entity-form .cc-page-header-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    background: rgba(16, 185, 129, 0.15);
}

.app-entity-form .cc-page-header-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.25;
    margin: 0;
    font-family: 'Rajdhani', ui-sans-serif, system-ui, sans-serif;
}

.app-entity-form .cc-page-header-sub {
    font-size: 11px;
    color: #64748b;
    margin: 2px 0 0 0;
    line-height: 1.35;
    font-family: 'Rajdhani', ui-sans-serif, system-ui, sans-serif;
}

.app-entity-form .spouse-field-inp {
    border-left-width: 4px !important;
    border-left-color: #059669 !important;
}

.app-entity-form .spouse-field-inp.inp-error {
    border-left-color: #ef4444 !important;
}

/* Bilingual address — two mirrored columns (English | Kannada) */
.app-entity-form .cc-address-bilingual {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 12px;
}

.app-entity-form .cc-address-col {
    min-width: 0;
}

.app-entity-form .cc-address-col-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 12px;
}

.app-entity-form .cc-address-col .row + .cc-address-col-grid {
    margin-top: 12px;
}

.app-entity-form .cc-address-col .row:first-child {
    margin-top: 0;
}

.app-entity-form .cc-address-pin-readonly {
    background: #f8fafc;
    color: #64748b;
    cursor: default;
}

@media (max-width: 900px) {
    .app-entity-form .cc-address-bilingual {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .app-entity-form .cc-address-col-grid {
        grid-template-columns: 1fr;
    }
}

/* Optional address strip (e.g. profile view) */
.app-entity-form .cc-address-strip {
    background: #1e3a5f;
    padding: 6px 14px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.app-entity-form .cc-address-strip span {
    font-size: 10px;
    font-weight: 700;
    color: #93c5fd;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.app-entity-view-page--customer .cc-page-header {
    flex-wrap: wrap;
}

.app-entity-view-page--customer .cc-view-header-actions {
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.app-entity-view-page--customer .dv-section {
    border-bottom: none;
}

.app-entity-view-page--customer .app-entity-view-footer {
    border-top: 1px solid #d0dbe8;
    background: #fafbfc;
}

@media print {
    .app-entity-view-page--customer .cc-form-shell {
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
    }

    .app-entity-view-page--customer .cc-page-header {
        background: #fff !important;
        border-bottom: 2px solid #000 !important;
    }

    .app-entity-view-page--customer .cc-section-title {
        color: #000 !important;
        border-bottom-color: #000 !important;
    }

    .app-entity-view-page--customer .cc-divider {
        border-top-color: #ccc !important;
    }
}
/* ============================================================
   Fonts, colours, and spacing that .mc-*, .ml-*, .mv-*
   all draw from:
     Rajdhani — body / labels / buttons
     JetBrains Mono — IDs, amounts, codes
     Tiro Kannada — Kannada text fields

   Colour palette (inline as variables for easy theming)
   --mc-bg:         #f0f4f8   page background
   --mc-panel:      #ffffff   card surface
   --mc-panel2:     #f5f8fc   panel header / toolbar bg
   --mc-border:     #d0dbe8   all borders
   --mc-text:       #1e293b   primary text
   --mc-text2:      #334155   secondary text
   --mc-text3:      #64748b   muted / labels
   --mc-blue:       #2563eb   primary action
   --mc-blue-dk:    #1d4ed8   hover
   --mc-green:      #059669   success
   --mc-red:        #dc2626   error / danger
   --mc-gold:       #d97706   print / secondary action
   --mc-cyan:       #0891b2   aadhaar / SB
   --mc-inp:        #f8fafc   input background
   --mc-inp-bdr:    #cbd5e1   input border
   --mc-shadow:     0 4px 24px rgba(0,0,0,0.08)
   ============================================================ */

/* ============================================================
   MEMBER CREATE  +  MEMBER EDIT
   .member-create wraps both create.php and edit.php
   (edit.php must drop its local <style> and use these classes)
   ============================================================ */
.member-create {
    font-family: 'Rajdhani', ui-sans-serif, system-ui, sans-serif;
    font-size: 13px;
    color: #1e293b;
    background: #f0f4f8;
}

/* ── Panel shell ──────────────────────────────────────────── */
.member-create .mc-panel {
    background: #ffffff;
    border: 1px solid #d0dbe8;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    margin-bottom: 24px;
}
.member-create .mc-panel-header {
    padding: 16px 20px;
    border-bottom: 1px solid #d0dbe8;
    background: linear-gradient(90deg, #f5f8fc, #ffffff);
    display: flex; align-items: center; gap: 12px;
}
.member-create .mc-panel-header .mc-hdr-icon {
    width: 36px; height: 36px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
    background: rgba(245,158,11,0.15);
}
.member-create .mc-panel-header h3 {
    font-size: 15px; font-weight: 700; color: #1e293b; margin: 0; line-height: 1.3;
}
.member-create .mc-panel-header p { font-size: 11px; color: #64748b; margin: 0; }
.member-create .mc-body { padding: 20px; }

/* ── Section title override ───────────────────────────────── */
.member-create .section-title {
    display: block;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    color: #2563eb;
    margin-bottom: 12px;
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border-left: none !important;
}

/* ── Grid ─────────────────────────────────────────────────── */
.member-create .mc-grid   { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.member-create .mc-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1100px) {
    .member-create .mc-grid,
    .member-create .mc-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .member-create .mc-grid,
    .member-create .mc-grid-4 { grid-template-columns: 1fr; }
}

/* ── Field ────────────────────────────────────────────────── */
.member-create .mc-field {
    display: flex; flex-direction: column; gap: 5px;
}
.member-create .mc-field label {
    font-size: 11px; font-weight: 600; color: #64748b;
    text-transform: uppercase; letter-spacing: 0.5px;
    width: auto; min-width: 0; padding-right: 0; text-align: left;
}
.member-create .mc-req { color: #dc2626; font-weight: 700; margin-left: 1px; }

/* ── Inputs ───────────────────────────────────────────────── */
.member-create .mc-field input,
.member-create .mc-field select,
.member-create .mc-field textarea {
    box-sizing: border-box; width: 100%; height: auto; min-height: 40px;
    padding: 8px 12px;
    border: 1px solid #cbd5e1; border-radius: 6px;
    background: #f8fafc; color: #1e293b;
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px; font-weight: 500; line-height: 1.4;
    outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
/* select: restore native dropdown arrow, cursor pointer */
.member-create .mc-field select {
    appearance: auto;
    -webkit-appearance: auto;
    cursor: pointer;
}
.member-create .mc-field textarea { min-height: 70px; resize: vertical; }
.member-create .mc-field input:focus,
.member-create .mc-field select:focus,
.member-create .mc-field textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.member-create .mc-field input.inp-error,
.member-create .mc-field select.inp-error,
.member-create .mc-field textarea.inp-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.12) !important;
}
/* Client-side validation messages (member create — no fixed label column) */
.member-create .mc-field-error {
    display: block;
    color: #ef4444;
    font-size: 11px;
    line-height: 1.35;
    margin-top: 4px;
}
.member-create #custSearch.inp-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.12) !important;
}
.member-create #declarationCheck.inp-error {
    outline: 2px solid #ef4444;
    outline-offset: 2px;
}
/* disabled-style readonly (user cannot edit) */
.member-create .mc-field input[readonly] { opacity: 0.65; cursor: not-allowed; }
.member-create .mc-field input::placeholder,
.member-create .mc-field select::placeholder { color: #94a3b8; font-weight: 400; }
.member-create .mc-field .mc-help { font-size: 10px; color: #64748b; margin-top: 2px; }

/* hide number spinners on all mc-field number inputs */
.member-create .mc-field input[type="number"]::-webkit-outer-spin-button,
.member-create .mc-field input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.member-create .mc-field input[type="number"] { -moz-appearance: textfield; }

/* ── Input colour variants ────────────────────────────────── */
/* auto-filled readonly — blue tint (English fields)
   cursor:default overrides the not-allowed from [readonly] above */
.member-create .mc-field input.mc-readonly-blue {
    background: #f0f9ff; border-color: #bae6fd; color: #1e293b;
    font-weight: 600; cursor: default; opacity: 1;
}
/* auto-filled readonly — green tint (Kannada fields) */
.member-create .mc-field input.mc-readonly-green {
    background: #f0fdf4; border-color: #86efac; color: #059669;
    font-weight: 600; font-family: 'Tiro Kannada', sans-serif;
    cursor: default; opacity: 1;
}
/* monospace — IDs, phone, codes */
.member-create .mc-field input.mc-mono {
    font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 600;
}
/* accent blue — member no., auto-generated fields
   cursor:default because readonly but intentionally shown as reference */
.member-create .mc-field input.mc-accent {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-weight: 700; color: #2563eb;
    cursor: default; opacity: 1;
}
/* large green amount total */
.member-create .mc-field input.mc-green-val {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-weight: 700; color: #059669; font-size: 15px;
    cursor: default; opacity: 1;
}

/* ── Divider ──────────────────────────────────────────────── */
.member-create .mc-divider { border: none; border-top: 1px solid #d0dbe8; margin: 20px 0; }

/* ── Customer / Introducer lookup row ────────────────────── */
.member-create .mc-lookup-row {
    display: flex; gap: 10px; align-items: flex-end;
    margin-bottom: 14px; flex-wrap: wrap;
}
.member-create .mc-lookup-field { flex: 0 0 320px; position: relative; }
.member-create .mc-found-badge {
    display: none;
    background: #dcfce7; color: #166534;
    padding: 5px 14px; border-radius: 20px;
    font-size: 12px; font-weight: 700;
    align-self: flex-end; margin-bottom: 1px;
}
/* Frozen customer — same .form-error look, inline in lookup row next to Clear */
.member-create .mc-lookup-row > .form-error.mc-lookup-inline-error {
    display: none;
    margin-top: 0;
    margin-bottom: 1px;
    align-self: flex-end;
    flex: 0 0 auto;
    min-width: max-content;
    max-width: 100%;
    white-space: nowrap;
    overflow-x: auto;
}
.member-create .mc-lookup-row > .form-error.mc-lookup-inline-error.is-visible {
    display: block;
}
.member-create .mc-not-found {
    display: none;
    background: #fef2f2; border: 1px solid #fca5a5;
    border-radius: 8px; padding: 10px 16px;
    color: #dc2626; font-size: 13px; margin-bottom: 12px;
}

/* Additional share — frozen / blocked member lookup (same form-error style, single line, next to Clear) */
#as-member-search .as-lookup-inline-error.form-error {
    display: none;
    margin-top: 0;
    margin-bottom: 0;
    flex: 0 0 auto;
    min-width: max-content;
    max-width: 100%;
    white-space: nowrap;
    overflow-x: auto;
}
#as-member-search .as-lookup-inline-error.form-error.is-visible {
    display: block;
}

/* Account create — customer lookup inline frozen (same pattern) */
#ac-customer-lookup-row .ac-lookup-inline-error.form-error,
#fd-customer-lookup-row .ac-lookup-inline-error.form-error,
#rd-customer-lookup-row .ac-lookup-inline-error.form-error,
#agent-customer-lookup-row .ac-lookup-inline-error.form-error,
#ln-customer-lookup-row .ac-lookup-inline-error.form-error {
    display: none;
    margin-top: 0;
    margin-bottom: 0;
    flex: 0 0 auto;
    min-width: max-content;
    max-width: 100%;
    white-space: nowrap;
    overflow-x: auto;
}
#ac-customer-lookup-row .ac-lookup-inline-error.form-error.is-visible,
#fd-customer-lookup-row .ac-lookup-inline-error.form-error.is-visible,
#rd-customer-lookup-row .ac-lookup-inline-error.form-error.is-visible,
#agent-customer-lookup-row .ac-lookup-inline-error.form-error.is-visible,
#ln-customer-lookup-row .ac-lookup-inline-error.form-error.is-visible {
    display: block;
}

/* ── Live search dropdown (customer & introducer) ─────────── */
.member-create .mc-dropdown,
#ve-ref-customer-wrap .mc-dropdown,
#ve-ledger-search-wrap .mc-dropdown {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 50;
    background: #fff;
    border: 1px solid #d0dbe8; border-top: 0;
    max-height: 220px; overflow-y: auto;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    border-radius: 0 0 6px 6px;
    display: none;
}
#ve-ledger-search-wrap .mc-dropdown {
    max-height: min(45vh, 320px);
}
.member-create .mc-dropdown.open,
#ve-ref-customer-wrap .mc-dropdown.open,
#ve-ledger-search-wrap .mc-dropdown.open { display: block; }
.member-create .mc-dd-item,
#ve-ref-customer-wrap .mc-dd-item,
#ve-ledger-search-wrap .mc-dd-item {
    padding: 8px 12px; cursor: pointer;
    font-size: 12px; border-bottom: 1px solid #f1f5f9;
    display: flex; justify-content: space-between; gap: 12px;
}
.member-create .mc-dd-item:hover,
.member-create .mc-dd-item.active,
#ve-ref-customer-wrap .mc-dd-item:hover,
#ve-ref-customer-wrap .mc-dd-item.active,
#ve-ledger-search-wrap .mc-dd-item:hover,
#ve-ledger-search-wrap .mc-dd-item.active { background: #eff6ff; }
.member-create .mc-dd-empty,
#ve-ref-customer-wrap .mc-dd-empty,
#ve-ledger-search-wrap .mc-dd-empty {
    padding: 10px 12px; font-size: 12px;
    color: #64748b; font-style: italic; text-align: center;
}

/* ── Fee breakup box ──────────────────────────────────────── */
.member-create .mc-fees-box {
    display: none; margin-top: 10px;
    background: #f0fdf4; border: 1.5px solid #86efac;
    border-radius: 10px; padding: 14px 18px;
}
.member-create .mc-fees-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}

/* ── Total amount display ─────────────────────────────────── */
.member-create .mc-amount-box {
    margin-top: 10px;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1.5px solid #6ee7b7; color: #059669;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 20px; font-weight: 700;
    text-align: right; padding: 12px 16px; border-radius: 6px;
}
.member-create .mc-amount-words {
    display: none; margin-top: 6px; padding: 8px 14px;
    background: #f8fafc; border: 1px solid #e2e8f0;
    border-radius: 7px; font-size: 12px; color: #475569;
}

/* ── Upload grid (photo / signature / aadhaar) ────────────── */
.member-create .mc-upload-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
@media (max-width: 760px) {
    .member-create .mc-upload-grid { grid-template-columns: 1fr; }
    .member-create .mc-fees-grid   { grid-template-columns: repeat(2, 1fr); }
}
.member-create .mc-upload-box {
    border: 2px dashed #d0dbe8; border-radius: 10px;
    padding: 16px; text-align: center; background: #f5f8fc;
}
.member-create .mc-upload-box--cyan { border-color: #bae6fd; background: #f0f9ff; }
.member-create .mc-upload-label {
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 10px; color: #64748b;
}
.member-create .mc-upload-box--cyan .mc-upload-label { color: #0891b2; }
.member-create .mc-upload-hint { font-size: 10px; color: #64748b; margin-top: 8px; }
.member-create .mc-upload-box--cyan .mc-upload-hint { color: #0891b2; }
.member-create .mc-upload-btn-row {
    display: flex; gap: 6px; justify-content: center; flex-wrap: wrap;
}

/* ── Reusable upload preview placeholders (SVG icons — member / customer KYC, etc.) ─ */
.cb-upload-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100%;
    pointer-events: none;
}
.cb-upload-placeholder svg {
    display: block;
    max-width: 100%;
    height: auto;
}
.cb-upload-placeholder--sig svg {
    width: 110px;
    height: 48px;
}
.cb-upload-placeholder--aadhaar svg {
    width: min(180px, 100%);
    height: auto;
    max-height: 100px;
}

/* ── Upload preview boxes ─────────────────────────────────── */
.member-create .mc-photo-preview {
    width: 100px; height: 120px;
    margin: 0 auto 12px; border-radius: 6px;
    border: 1px solid #d0dbe8; background: #e8eef5;
    display: flex; align-items: center; justify-content: center;
    font-size: 36px; overflow: hidden; cursor: pointer;
}
.member-create .mc-sig-preview {
    width: 100%; min-height: 120px; height: 120px;
    margin: 0 auto 12px; border-radius: 6px;
    border: 1px solid #d0dbe8; background: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; color: #64748b; overflow: hidden; cursor: pointer;
}
.member-create .mc-aadh-preview {
    width: 100%; min-height: 120px; height: 120px;
    margin: 0 auto 12px; border-radius: 6px;
    border: 2px solid #bae6fd; background: #e0f2fe;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 600; color: #0891b2;
    overflow: hidden; cursor: pointer;
}

/* ── SB Account option ────────────────────────────────────── */
.member-create .mc-sb-option-box {
    background: #eff6ff; border: 1.5px solid #93c5fd;
    border-radius: 10px; padding: 16px 18px; margin-bottom: 14px;
}
.member-create .mc-sb-sub-form {
    display: none;
    background: #f5f8fc; border: 1.5px solid #d0dbe8;
    border-radius: 10px; padding: 18px;
    animation: mc-fadeIn 0.2s ease;
}
@keyframes mc-fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Cropper overlay ──────────────────────────────────────── */
.member-create .mc-cropper-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.82); z-index: 10000;
    align-items: center; justify-content: center;
}
.member-create .mc-cropper-overlay.open { display: flex; }
.member-create .mc-cropper-box {
    background: #fff; border-radius: 12px; padding: 20px;
    width: 600px; max-width: 95vw;
    box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.member-create .mc-cropper-title {
    font-size: 14px; font-weight: 700; color: #1e293b;
    margin-bottom: 14px; padding-bottom: 10px;
    border-bottom: 1px solid #d0dbe8;
    display: flex; align-items: center; justify-content: space-between;
}
.member-create .mc-cropper-wrap {
    width: 100%; height: 320px;
    background: #111; border-radius: 8px;
    overflow: hidden; margin-bottom: 12px;
}
.member-create .mc-cropper-wrap img { max-width: 100%; display: block; }
.member-create .mc-cropper-controls { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.member-create .mc-cropper-footer   { display: flex; gap: 8px; justify-content: flex-end; }

/* ── Image view modal ─────────────────────────────────────── */
.member-create .mc-img-modal {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.72); z-index: 9999;
    align-items: center; justify-content: center;
}
.member-create .mc-img-modal.open { display: flex; }
.member-create .mc-img-modal-box {
    background: #fff; border-radius: 12px; padding: 20px;
    max-width: 90vw; max-height: 90vh;
    text-align: center; position: relative;
}

/* ── Buttons (member-style) — use class="mc-btn mc-btn--outline|primary|gold" anywhere; no .member-create wrapper required */
.mc-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 20px; border-radius: 6px; border: none;
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px; font-weight: 700;
    cursor: pointer; letter-spacing: 0.5px;
    transition: all 0.15s; white-space: nowrap; text-decoration: none;
}
.mc-btn.mc-btn--primary { background: #1d4ed8; color: #fff; }
.mc-btn.mc-btn--primary:hover { background: #1e40af; box-shadow: 0 4px 12px rgba(37,99,235,0.35); }

.mc-btn.mc-btn--outline { background: transparent; color: #334155; border: 1px solid #d0dbe8; }
.mc-btn.mc-btn--outline:hover { background: #f5f8fc; }
/* gold — used in edit form Save Changes */
.mc-btn.mc-btn--gold { background: #d97706; color: #000; }
.mc-btn.mc-btn--gold:hover { background: #b45309; }

/* ============================================================

   MEMBER EDIT — same .member-create wrapper
   Extra classes that edit.php uses in its local <style>
   (btn-primary / btn-gold / btn-outline → covered by mc-btn-*)

   The edit page also uses:
   .form-panel → use .mc-panel
   .form-header → use .mc-panel-header
   .fh-icon    → use .mc-hdr-icon
   .form-body  → use .mc-body
   .form-actions → new class below (footer bar for edit)
   .form-grid / .form-grid-4 → use .mc-grid / .mc-grid-4
   .field       → use .mc-field
   .required    → use .mc-req
   .help-text   → use .mc-field .mc-help
   .divider     → use .mc-divider
   .section-title → already overridden above
   .amount-display → use .mc-amount-box
   .fees-box / .fees-grid → mc-fees-box / mc-fees-grid
   .upload-grid / .upload-box* → mc-upload-*
   .photo-preview / .sig-preview / .aadh-preview → mc-*-preview
   .upload-btn-row / .upload-hint → mc-*
   .sb-option-box / .sb-sub-form → mc-sb-*
   .cust-dropdown → mc-dropdown (already done)
   .cropper-overlay → mc-cropper-overlay (already done)
   .img-modal → mc-img-modal (already done)
   ============================================================ */

/* Footer actions bar used by edit (create uses tailwind classes) */
.member-create .mc-form-actions {
    padding: 16px 20px;
    border-top: 1px solid #d0dbe8;
    display: flex; gap: 10px; justify-content: flex-end;
    background: #f5f8fc;
}

/* ============================================================
   MEMBER LIST
   ============================================================ */
.member-list {
    font-family: 'Rajdhani', ui-sans-serif, system-ui, sans-serif;
    font-size: 13px; color: #1e293b;
}

/* ── Panel ────────────────────────────────────────────────── */
.member-list .ml-panel {
    background: #ffffff;
    border: 1px solid #d0dbe8;
    border-radius: 8px; overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

/* ── Toolbar ──────────────────────────────────────────────── */
.member-list .ml-toolbar {
    padding: 14px 20px;
    border-bottom: 1px solid #d0dbe8;
    display: flex; align-items: center; gap: 12px;
    flex-wrap: wrap; background: #f5f8fc;
}
.member-list .ml-toolbar h3 {
    font-size: 14px; font-weight: 700; color: #1e293b; flex: 1; margin: 0;
}

/* ── Search box ───────────────────────────────────────────── */
.member-list .ml-search-box {
    display: flex; align-items: center; gap: 8px;
    background: #f8fafc; border: 1px solid #d0dbe8;
    border-radius: 6px; padding: 6px 12px;
}
.member-list .ml-search-box input {
    background: none; border: none; outline: none;
    color: #1e293b;
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px; width: 200px;
}
.member-list .ml-search-box span { color: #64748b; font-size: 13px; }

/* ── Status filter ────────────────────────────────────────── */
.member-list .ml-status-select {
    padding: 7px 10px;
    border: 1px solid #d0dbe8; border-radius: 6px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px; font-weight: 600;
    background: #f8fafc; color: #1e293b;
    cursor: pointer; outline: none;
}
.member-list .ml-status-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37,99,235,0.15);
}

/* ── Toolbar buttons ──────────────────────────────────────── */
.member-list .ml-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 6px;
    border: 1px solid #d0dbe8; background: transparent;
    color: #334155;
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px; font-weight: 700;
    cursor: pointer; letter-spacing: 0.4px;
    transition: all 0.15s; text-decoration: none; white-space: nowrap;
}
.member-list .ml-btn:hover { background: #f5f8fc; color: #1e293b; }
.member-list .ml-btn--primary { background: #2563eb; color: #fff; border-color: #2563eb; }
.member-list .ml-btn--primary:hover { background: #1d4ed8; box-shadow: 0 4px 12px rgba(37,99,235,0.35); }

/* ── Table ────────────────────────────────────────────────── */
.member-list .ml-table-wrap { overflow-x: auto; }
.member-list table { width: 100%; border-collapse: collapse; min-width: 900px; }
.member-list thead th {
    background: #e8eef5; padding: 10px 14px;
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    color: #64748b; text-align: left;
    border-bottom: 1px solid #d0dbe8; white-space: nowrap;
}
.member-list tbody tr { border-bottom: 1px solid rgba(42,58,106,0.08); transition: background 0.1s; }
.member-list tbody tr:hover { background: #f5f8fc; }
.member-list tbody td { padding: 10px 14px; font-size: 13px; color: #334155; }

/* ── Member ID link ───────────────────────────────────────── */
.member-list .ml-id-link {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px; font-weight: 600; color: #0891b2;
    text-decoration: none; transition: color 0.15s;
}
.member-list .ml-id-link:hover { color: #0e7490; text-decoration: underline; }

/* ── Status badges ────────────────────────────────────────── */
.member-list .ml-badge {
    display: inline-flex; align-items: center;
    padding: 2px 10px; border-radius: 10px;
    font-size: 11px; font-weight: 600;
}
.member-list .ml-badge--active  { background: rgba(16,185,129,0.15); color: #059669; }
.member-list .ml-badge--frozen  { background: rgba(6,182,212,0.15);  color: #0891b2; }
.member-list .ml-badge--closed  { background: rgba(239,68,68,0.15);  color: #dc2626; }
.member-list .ml-badge--pending { background: rgba(245,158,11,0.15); color: #d97706; }

/* ── Row action buttons ───────────────────────────────────── */
.member-list .ml-actions { display: flex; gap: 6px; }
.member-list .ml-icon-btn {
    width: 28px; height: 28px;
    border-radius: 5px; border: none;
    cursor: pointer; font-size: 12px;
    transition: all 0.15s;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
}
.member-list .ml-icon-btn--view  { background: rgba(16,185,129,0.15); color: #059669; }
.member-list .ml-icon-btn--view:hover  { background: #059669; color: #fff; }
.member-list .ml-icon-btn--edit  { background: rgba(59,130,246,0.15); color: #2563eb; }
.member-list .ml-icon-btn--edit:hover  { background: #2563eb; color: #fff; }
.member-list .ml-icon-btn--del   { background: rgba(239,68,68,0.15);  color: #dc2626; }
.member-list .ml-icon-btn--del:hover   { background: #dc2626; color: #fff; }
.member-list .ml-icon-btn--print { background: rgba(245,158,11,0.15); color: #d97706; }
.member-list .ml-icon-btn--print:hover { background: #d97706; color: #000; }

/* ── Empty state ──────────────────────────────────────────── */
.member-list .ml-empty { text-align: center; padding: 60px 20px; color: #64748b; font-size: 13px; }
.member-list .ml-empty-icon { font-size: 40px; margin-bottom: 10px; }

/* ── Pagination ───────────────────────────────────────────── */
.member-list .ml-pagination {
    display: flex; align-items: center; gap: 6px;
    padding: 14px 20px;
    border-top: 1px solid #d0dbe8;
    background: #f5f8fc; flex-wrap: wrap;
}
.member-list .ml-pg-info { font-size: 12px; color: #64748b; flex: 1; }
.member-list .ml-pg-btn {
    width: 30px; height: 30px; border-radius: 5px;
    border: 1px solid #d0dbe8; background: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px; font-weight: 600; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #334155; transition: all 0.15s;
    text-decoration: none; line-height: 1;
}
.member-list .ml-pg-btn:hover,
.member-list .ml-pg-btn.active { background: #2563eb; color: #fff; border-color: #2563eb; }
.member-list .ml-pg-btn:disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

/* ── Export spinner ───────────────────────────────────────── */
@keyframes ml-spin { to { transform: rotate(360deg); } }
.member-list .ml-spin { animation: ml-spin 0.8s linear infinite; display: inline-block; }

/* ============================================================
   MEMBER VIEW
   ============================================================ */
.member-view {
    font-family: 'Rajdhani', ui-sans-serif, system-ui, sans-serif;
    font-size: 13px; color: #1e293b;
}

/* ── Top action bar ───────────────────────────────────────── */
.member-view .mv-top-bar {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 16px; flex-wrap: wrap;
}
.member-view .mv-top-bar h2 { font-size: 16px; font-weight: 700; flex: 1; margin: 0; color: #1e293b; }

/* ── Buttons ──────────────────────────────────────────────── */
.member-view .mv-btn {
    padding: 7px 16px; border-radius: 6px; border: none;
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px; font-weight: 700;
    cursor: pointer; transition: all 0.15s;
    display: inline-flex; align-items: center; gap: 5px;
    text-decoration: none;
}
.member-view .mv-btn--outline { background: transparent; color: #334155; border: 1px solid #d0dbe8; }
.member-view .mv-btn--outline:hover { background: #f5f8fc; }
.member-view .mv-btn--blue  { background: #2563eb; color: #fff; }
.member-view .mv-btn--blue:hover  { background: #1d4ed8; }
.member-view .mv-btn--gold  { background: #d97706; color: #000; }
.member-view .mv-btn--gold:hover  { background: #b45309; }

/* ── Card ─────────────────────────────────────────────────── */
.member-view .mv-card {
    background: #fff; border: 1px solid #d0dbe8;
    border-radius: 8px; box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    margin-bottom: 16px; overflow: hidden;
}
.member-view .mv-card-head {
    padding: 12px 18px; border-bottom: 1px solid #d0dbe8;
    background: linear-gradient(90deg, #f5f8fc, #fff);
    display: flex; align-items: center; gap: 10px;
}
.member-view .mv-card-head .mv-icon {
    width: 30px; height: 30px; border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; flex-shrink: 0;
}
.member-view .mv-card-head h3 { font-size: 13px; font-weight: 700; flex: 1; margin: 0; color: #1e293b; }
.member-view .mv-card-body { padding: 16px 18px; }

/* ── Field grids ──────────────────────────────────────────── */
.member-view .mv-grid   { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.member-view .mv-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.member-view .mv-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 900px) {
    .member-view .mv-grid,
    .member-view .mv-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .member-view .mv-grid,
    .member-view .mv-grid-4,
    .member-view .mv-grid-2 { grid-template-columns: 1fr; }
}

/* ── Field (label + value pair) ───────────────────────────── */
.member-view .mv-f { display: flex; flex-direction: column; gap: 3px; }
.member-view .mv-f-lbl {
    font-size: 10px; font-weight: 700; color: #64748b;
    text-transform: uppercase; letter-spacing: 0.4px;
}
.member-view .mv-f-val {
    font-size: 13px; font-weight: 600; color: #1e293b;
    background: #e8eef5; border-radius: 5px;
    padding: 6px 10px; min-height: 30px;
    display: flex; align-items: center;
}
/* value colour variants */
.member-view .mv-f-val--mono  { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; }
.member-view .mv-f-val--kn    { font-family: 'Tiro Kannada', sans-serif; color: #059669; }
.member-view .mv-f-val--blue  { color: #2563eb; }
.member-view .mv-f-val--green { color: #059669; font-size: 15px; font-weight: 700; }
.member-view .mv-f-val--cyan  { color: #0891b2; }
.member-view .mv-f-val--dim   { color: #64748b; font-weight: 400; font-style: italic; }

/* ── Status badges ────────────────────────────────────────── */
.member-view .mv-badge {
    display: inline-flex; align-items: center;
    padding: 2px 9px; border-radius: 10px;
    font-size: 11px; font-weight: 700;
}
.member-view .mv-badge--active   { background: rgba(5,150,105,0.12);  color: #059669; }
.member-view .mv-badge--frozen   { background: rgba(8,145,178,0.12);  color: #0891b2; }
.member-view .mv-badge--inactive { background: rgba(220,38,38,0.12);  color: #dc2626; }
.member-view .mv-badge--yes      { background: rgba(5,150,105,0.12);  color: #059669; }
.member-view .mv-badge--no       { background: rgba(100,116,139,0.12);color: #64748b; }

/* ── Divider ──────────────────────────────────────────────── */
.member-view .mv-dv { border: none; border-top: 1px solid #d0dbe8; margin: 12px 0; }

/* ── Photo / Signature media column ──────────────────────── */
.member-view .mv-media-col {
    flex-shrink: 0; display: flex; flex-direction: column;
    align-items: center; gap: 8px;
}
.member-view .mv-media-label {
    font-size: 10px; color: #64748b; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.4px;
}
.member-view .mv-photo-box {
    width: 130px; height: 160px;
    border: 2px solid #d0dbe8; border-radius: 8px;
    overflow: hidden; background: #e8eef5;
    display: flex; align-items: center; justify-content: center;
    font-size: 38px;
}
.member-view .mv-photo-box img { width: 100%; height: 100%; object-fit: cover; }
.member-view .mv-sig-box {
    width: 140px; height: 70px;
    border: 1.5px solid #d0dbe8; border-radius: 6px;
    overflow: hidden; background: #fff;
    display: flex; align-items: center; justify-content: center;
}
.member-view .mv-sig-box img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 3px; }

/* ── Inner table (nominees / share transactions) ──────────── */
.member-view .mv-tbl { width: 100%; border-collapse: collapse; }
.member-view .mv-tbl thead th {
    background: #e8eef5; padding: 8px 11px;
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.8px;
    color: #64748b; text-align: left;
    border-bottom: 1px solid #d0dbe8; white-space: nowrap;
}
.member-view .mv-tbl tbody tr { border-bottom: 1px solid rgba(0,0,0,0.05); transition: background 0.1s; }
.member-view .mv-tbl tbody tr:hover { background: #f5f8fc; }
.member-view .mv-tbl tbody td { padding: 8px 11px; font-size: 12px; color: #334155; }

/* ── Empty table ──────────────────────────────────────────── */
.member-view .mv-empty { text-align: center; padding: 24px; color: #64748b; font-size: 13px; }

/* ── Transaction type / status mini-badges ────────────────── */
.member-view .mv-tx-type {
    background: rgba(37,99,235,0.1); color: #2563eb;
    padding: 1px 7px; border-radius: 8px; font-size: 10px; font-weight: 700;
}
.member-view .mv-tx-status {
    background: rgba(5,150,105,0.1); color: #059669;
    padding: 1px 7px; border-radius: 8px; font-size: 10px; font-weight: 700;
}

/* ── Member view print ────────────────────────────────────── */
@media print {
    .member-view .no-print { display: none !important; }
    .member-view .mv-card  { box-shadow: none; border: 1px solid #bbb; margin-bottom: 10px; page-break-inside: avoid; }
    .member-view .mv-card-head { background: #f0f0f0 !important; }
    .member-view .mv-f-val { background: #f9f9f9; }
    .member-view .mv-tbl thead th { background: #e0e0e0 !important; }
    .member-view .mv-photo-box img,
    .member-view .mv-sig-box img { max-width: 100%; }
}
/* ============================================================
   CSS Custom Properties (Design Tokens)
   Used by share pages (additional share, part repayment)
   and available globally for inline styles / JS references
   ============================================================ */
:root {
    --bg:          #f0f4f8;
    --bg2:         #ffffff;
    --bg3:         #e8eef5;
    --panel:       #ffffff;
    --panel2:      #f5f8fc;
    --border:      #d0dbe8;
    --accent:      #1d4ed8;
    --accent2:     #2563eb;
    --gold:        #d97706;
    --gold2:       #b45309;
    --green:       #059669;
    --red:         #dc2626;
    --purple:      #7c3aed;
    --cyan:        #0891b2;
    --text:        #1e293b;
    --text2:       #334155;
    --text3:       #64748b;
    --input-bg:    #f8fafc;
    --input-border:#cbd5e1;
    --input-focus: #2563eb;
    --radius:      8px;
    --shadow:      0 4px 24px rgba(0,0,0,0.08);
}
 
/* ============================================================
   Share Form Layout
   — Used by: additional-share.php, part-repayment.php
   — .form-panel / .form-header / .form-body / .form-actions
   — .form-grid / .field / .btn variants
   — .share-search-dropdown (live member search)
   ============================================================ */
 
/* ── Panel shell ── */
.form-panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
 
/* ── Panel header ── */
.form-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(90deg, var(--panel2), var(--panel));
    display: flex; align-items: center; gap: 12px;
}
.form-header .fh-icon {
    width: 36px; height: 36px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
}
.form-header h3 { font-size: 15px; font-weight: 700; color: var(--text); margin: 0; }
.form-header p  { font-size: 11px; color: var(--text3); margin: 0; }
 
/* ── Panel body ── */
.form-body { padding: 20px; }
 
/* ── Footer actions (share pages use Tailwind classes inline,
      this is the fallback for any non-Tailwind usage) ── */
.form-actions {
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    display: flex; gap: 10px;
    justify-content: space-between; align-items: center;
    background: var(--panel2);
}
 
/* ── Section title override
      (different from global .section-title — no grey bg/border)
      Both share pages use this transparent style ── */
.form-body .section-title {
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    color: var(--accent2);
    margin-bottom: 12px;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-left: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    display: block;
}
 
/* ── Divider ── */
.form-body .divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 18px 0;
}
 
/* ── Grid layouts ── */
.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
@media (max-width: 1100px) {
    .form-grid   { grid-template-columns: repeat(2, 1fr); }
    .form-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .form-grid,
    .form-grid-2 { grid-template-columns: 1fr; }
}

/* Voucher maker: Amount / Mode / denomination or UTR — fixed 3 columns (only one of denom/UTR visible at a time) */
.form-body .form-grid.ve-maker-amount-row {
    align-items: start;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.form-body .form-grid.ve-maker-amount-row #ve-instrument {
    width: 100%;
}
.form-body .form-grid.ve-maker-amount-row .ve-denom-row {
    min-height: 38px;
    align-items: center;
}
@media (max-width: 640px) {
    .form-body .form-grid.ve-maker-amount-row {
        grid-template-columns: 1fr;
    }
}

/* ── Field (label + input wrapper) ── */
.form-body .field {
    display: flex; flex-direction: column; gap: 5px;
}
.form-body .field label {
    font-size: 11px; font-weight: 600;
    color: var(--text3);
    text-transform: uppercase; letter-spacing: 0.5px;
}
.form-body .field input,
.form-body .field select,
.form-body .field textarea {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 6px;
    padding: 8px 12px;
    color: var(--text);
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px; font-weight: 500;
    width: 100%;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
}
.form-body .field select {
    appearance: auto;
    -webkit-appearance: auto;
    cursor: pointer;
}
.form-body .field input:focus,
.form-body .field select:focus {
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.form-body .field input[readonly] {
    opacity: 0.65; cursor: not-allowed;
}
.form-body .field .help-text {
    font-size: 10px; color: var(--text3); margin-top: 2px;
}
/* hide number spinners inside form-body fields */
.form-body .field input[type="number"]::-webkit-outer-spin-button,
.form-body .field input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.form-body .field input[type="number"] { -moz-appearance: textfield; }
 
/* ── Required star ── */
.required { color: var(--red); }
 
/* ── Buttons ── */
.form-body .btn,
.form-header .btn,
.form-actions .btn {
    padding: 9px 20px; border-radius: 6px; border: none;
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px; font-weight: 700;
    cursor: pointer; letter-spacing: 0.5px;
    transition: all 0.15s;
    display: inline-flex; align-items: center; gap: 6px;
    white-space: nowrap; text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #1d4ed8; box-shadow: 0 4px 12px rgba(37,99,235,0.4); }
.btn-outline { background: transparent; color: var(--text2); border: 1px solid var(--border); }
.btn-outline:hover { background: var(--panel2); color: var(--text); }
.btn-success { background: var(--green); color: #fff; }
.btn-success:hover { background: #047857; }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
 
/* ── Live Search Dropdown (shared base for as-* and ps-* pages) ──
      Both pages position their dropdown identically.
      Use these base classes via .share-search-dropdown,
      or keep as-dropdown / ps-dropdown — both inherit same spec  ── */
.as-dropdown,
.ps-dropdown {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 100;
    background: #fff;
    border: 1px solid var(--border); border-top: 0;
    max-height: 220px; overflow-y: auto;
    box-shadow: var(--shadow);
    border-radius: 0 0 6px 6px;
    display: none;
}
.as-dropdown.open,
.ps-dropdown.open { display: block; }
 
.as-dd-item,
.ps-dd-item {
    padding: 8px 12px; cursor: pointer;
    font-size: 12px;
    border-bottom: 1px solid #f1f5f9;
    display: flex; justify-content: space-between; gap: 12px;
}
.as-dd-item:hover, .as-dd-item.active,
.ps-dd-item:hover, .ps-dd-item.active { background: #eff6ff; }
 
.as-dd-empty,
.ps-dd-empty {
    padding: 10px 12px; font-size: 12px;
    color: var(--text3); font-style: italic; text-align: center;
}

/* ── Member info card (director create, part repayment, etc.) ── */
.ps-member-shell {
    background: linear-gradient(135deg, #eff6ff, #f0fdf4);
    border: 1.5px solid #93c5fd;
    border-radius: 12px;
    padding: 16px 18px;
}
.ps-member-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.ps-member-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    color: #fff;
    font-weight: 700;
}
.ps-member-title {
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}
.ps-member-subtitle {
    font-size: 13px;
    font-weight: 600;
    color: #059669;
    font-family: 'Tiro Kannada', sans-serif;
    margin-top: 2px;
}
.ps-member-meta {
    display: flex;
    gap: 14px;
    margin-top: 4px;
    flex-wrap: wrap;
}
.ps-member-meta span {
    font-size: 12px;
    color: #64748b;
}
.ps-member-badge {
    margin-left: auto;
    background: #dcfce7;
    color: #166534;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}
.ps-member-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.ps-info-card {
    background: #fff;
    border-radius: 8px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
}
.ps-info-label {
    font-size: 10px;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}
.ps-info-value {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}
.ps-info-mono {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-weight: 700;
}
.ps-col-2 {
    grid-column: span 2;
}
.ps-member-body {
    display: flex;
    gap: 16px;
    align-items: stretch;
}
.ps-member-main {
    flex: 1;
    min-width: 0;
}
.ps-member-docs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
    width: 120px;
    padding-left: 16px;
    border-left: 1px solid rgba(147, 197, 253, 0.6);
}
.ps-doc-block {
    text-align: center;
}
.ps-doc-label {
    font-size: 9px;
    color: #b45309;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 5px;
}
.ps-doc-thumb {
    width: 100px;
    height: 110px;
    border-radius: 8px;
    border: 2px solid #fcd34d;
    background: #fefce8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    overflow: hidden;
    margin: 0 auto;
}
.ps-doc-sig {
    width: 100px;
    height: 54px;
    border-radius: 6px;
    border: 2px solid #fcd34d;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #94a3b8;
    overflow: hidden;
    margin: 0 auto;
}
.ps-member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
@media (max-width: 1024px) {
    .ps-member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .ps-member-shell { padding: 14px; }
    .ps-member-title { font-size: 15px; }
    .ps-member-meta span { font-size: 11px; }
    .ps-member-body { flex-direction: column; }
    .ps-member-docs {
        width: 100%;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid rgba(147, 197, 253, 0.6);
        padding-top: 12px;
        flex-direction: row;
        justify-content: center;
        gap: 16px;
    }
    .ps-member-grid { grid-template-columns: 1fr; }
    .ps-col-2 { grid-column: span 1; }
}
 
/* ── Shared animation ── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
/* ============================================================
   Alert Boxes  — used by member-close and other pages
   ============================================================ */
.alert {
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
}
.alert-info    { background: rgba(59,130,246,0.1);  border: 1px solid rgba(59,130,246,0.3);  color: var(--accent2); }
.alert-warn    { background: rgba(245,158,11,0.1);  border: 1px solid rgba(245,158,11,0.3);  color: var(--gold); }
.alert-success { background: rgba(16,185,129,0.1);  border: 1px solid rgba(16,185,129,0.3);  color: var(--green); }
.alert-danger  { background: rgba(220,38,38,0.1);   border: 1px solid rgba(220,38,38,0.3);   color: var(--red); }
 
/* ── form-grid-full — spans all columns in a form-grid ── */
.form-grid-full { grid-column: 1 / -1; }
 
/* ============================================================
   Share Settlement Summary Cards
   — used by member-close.php (unique layout, not in part-repayment)
   ============================================================ */
.settle-card {
    border-radius: 10px;
    overflow: hidden;
}
.settle-card-head {
    padding: 8px 14px;
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.settle-card-body {
    padding: 12px 14px;
}
.settle-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.settle-card-row:last-child { margin-bottom: 0; }
.settle-card-lbl {
    font-size: 11px; color: #64748b; font-weight: 600;
}
.settle-card-val {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-weight: 700;
}
 
/* ── Denomination grid (inline in member-close, reused style) ── */
.denom-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 10px 12px;
}
.denom-row {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    display: grid;
    grid-template-columns: 60px 1fr 80px;
    align-items: center;
    gap: 10px;
}
.denom-note-badge {
    border-radius: 6px;
    padding: 5px;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px; font-weight: 700;
}
.denom-footer {
    background: #1e3a5f;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* ── Clear Button ── */
.btn-clear {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  color: #374151;
  font-family: 'Rajdhani', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.btn-clear:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

/* ============================================================
   Form validation error (share suspense, suspense repayment)
   ============================================================ */
.form-error {
  display: none;
  margin-top: 12px;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  padding: 10px 16px;
  color: #dc2626;
  font-size: 13px;
  font-weight: 600;
}
.form-error.is-visible {
  display: block;
  margin-bottom: 12px;
}

/* Cash denomination modal — confirm validation banner (inside .cd-denom-modal) */
.cd-denom-modal .cd-denom-modal-confirm-error.form-error {
  margin-top: 12px;
}
.err-box {
  display: none;
  background: #fef2f2;
  border: 1.5px solid #fca5a5;
  border-radius: 8px;
  padding: 10px 14px 10px 12px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #991b1b;
  align-items: flex-start;
  gap: 8px;
}
.err-box.show { display: flex; }
.err-icon  { font-size: 15px; flex-shrink: 0; margin-top: 1px; }
.err-close {
  margin-left: auto; flex-shrink: 0; background: none; border: none;
  color: #991b1b; font-size: 16px; cursor: pointer; padding: 0 2px; line-height: 1;
}
/* ══ SCREEN: hide print area ══ */
#pb-print-area { visibility: hidden; position: fixed; top: -9999px; left: -9999px; }

/* ══ PASSBOOK PAGE STYLES ══ */
.pb-page {
  width: 148mm;
  min-height: 210mm;
  padding: 6mm 7mm;
  box-sizing: border-box;
  font-family: 'JetBrains Mono', monospace;
  font-size: 7.5pt;
  background: #fff;
  page-break-after: always;
}
.pb-bank-header { display:flex; align-items:center; gap:3mm; margin-bottom:2mm; }
.pb-bank-logo   { font-size:18pt; }
.pb-bank-name   { font-size:11pt; font-weight:700; color:#1e293b; }
.pb-bank-sub    { font-size:7pt; color:#64748b; margin-top:0.5mm; }
.pb-divider     { border:none; border-top:0.5pt solid #94a3b8; margin:2mm 0; }
.pb-details-wrap{ display:flex; gap:3mm; align-items:flex-start; }
.pb-details-left{ flex:1; }
.pb-detail-row  { display:flex; gap:1mm; margin-bottom:1.2mm; }
.pb-dl          { min-width:28mm; font-size:6.5pt; color:#64748b; font-weight:600; flex-shrink:0; }
.pb-dv          { font-size:7pt; font-weight:700; color:#1e293b; }
.pb-photo-box   { text-align:center; flex-shrink:0; }
.pb-photo-label { font-size:6pt; color:#64748b; margin-top:1mm; }
.pb-nom-title   { font-size:7pt; font-weight:700; color:#1e293b; margin-bottom:1.5mm; text-transform:uppercase; letter-spacing:0.3pt; }
.pb-nom-row     { display:flex; gap:4mm; margin-bottom:1mm; font-size:6.5pt; }
.pb-nom-name    { font-weight:700; color:#1e293b; min-width:32mm; }
.pb-nom-rel     { color:#475569; }
.pb-nom-pct     { color:#64748b; }
.pb-sig-row     { display:flex; justify-content:space-between; margin-top:5mm; }
.pb-sig-box     { text-align:center; }
.pb-sig-line    { width:38mm; border-top:0.5pt solid #1e293b; margin-bottom:1mm; }
.pb-sig-label   { font-size:6pt; color:#64748b; }

/* Account passbook — page 1 (reference: fistpage.pdf, 19cm × 18.4cm) */
.pb-details-page,
.pb-ref-page {
  width: 190mm;
  height: 184mm;
  min-height: 184mm;
  max-height: 184mm;
  padding: 0;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10pt;
  font-weight: 400;
  color: #000;
  background: #fff;
  break-after: page;
  page-break-after: always;
}
/* Positions for 190×184mm passbook — mm offsets (reference column alignment, no A4 vertical offset) */
.pb-ref-val {
  position: absolute;
  font-size: 10pt;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 44%;
}
.pb-ref-lbl { font-weight: 700; color: #000; }
.pb-ref-l1, .pb-ref-l2, .pb-ref-l3, .pb-ref-l4 { left: 10mm; }
.pb-ref-r1, .pb-ref-r2, .pb-ref-r3 { left: 118mm; max-width: 68mm; }
.pb-ref-l1, .pb-ref-r1 { top: 10mm; }
.pb-ref-l2, .pb-ref-r2 { top: 17.5mm; }
.pb-ref-l3, .pb-ref-r3 { top: 25mm; }
.pb-ref-l4 { top: 32mm; max-width: 100mm; }
.pb-ref-address {
  position: absolute;
  left: 10mm;
  top: 39mm;
  width: 168mm;
}
.pb-ref-addr {
  font-size: 10pt;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pb-ref-addr2 { margin-top: 1.2mm; }
.pb-ref-addr3 { margin-top: 1.2mm; }

/* Transaction pages (reference: entries.pdf, 19cm × 18.4cm) */
.pb-txn-page,
.pb-ref-txn-page {
  width: 190mm;
  height: 184mm;
  min-height: 184mm;
  max-height: 184mm;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 8pt;
  font-weight: 400;
  color: #000;
  background: #fff;
  overflow: hidden;
  break-after: page;
  page-break-after: always;
}
.pb-ref-txn-rows {
  padding-top: 4mm;
  padding-left: 0;
  padding-right: 0;
}
.pb-ref-txn-row {
  position: relative;
  height: 3.1mm;
  line-height: 3.1mm;
  font-size: 8pt;
}
.pb-ref-txn-date {
  position: absolute;
  left: 7mm;
  top: 0;
  white-space: nowrap;
}
.pb-ref-txn-part {
  position: absolute;
  left: 27mm;
  top: 0;
  max-width: 78mm;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pb-ref-txn-withdraw {
  position: absolute;
  left: 114mm;
  top: 0;
  width: 18mm;
  text-align: right;
  white-space: nowrap;
}
.pb-ref-txn-deposit {
  position: absolute;
  left: 134mm;
  top: 0;
  width: 22mm;
  text-align: right;
  white-space: nowrap;
}
.pb-ref-txn-balance {
  position: absolute;
  left: 158mm;
  top: 0;
  width: 24mm;
  text-align: right;
  white-space: nowrap;
}
/* Column header band (labels) for transaction pages */
.pb-ref-txn-head {
  position: relative;
  height: 5mm;
  line-height: 5mm;
  font-size: 6.5pt;
  font-weight: 700;
  letter-spacing: 0.2pt;
  text-transform: uppercase;
  border-bottom: 0.6pt solid #000;
  margin-bottom: 1.2mm;
}
.pb-ref-txn-head .pb-ref-txn-date,
.pb-ref-txn-head .pb-ref-txn-part,
.pb-ref-txn-head .pb-ref-txn-withdraw,
.pb-ref-txn-head .pb-ref-txn-deposit,
.pb-ref-txn-head .pb-ref-txn-balance {
  top: 0;
  overflow: hidden;
}

/* ══ PRINT ══ */
@media print {
  @page { size: 190mm 184mm; margin: 0; }
  html:has(body.passbook-printing),
  body.passbook-printing {
    margin: 0 !important;
    padding: 0 !important;
    width: 190mm !important;
    background: #fff !important;
  }
  /* #pb-print-area is reparented to <body> at print time — hide every sibling */
  body.passbook-printing > *:not(#pb-print-area) { display: none !important; }
  body.passbook-printing #pb-print-area {
    visibility: visible !important;
    position: static !important;
    inset: auto !important;
    top: auto !important;
    left: auto !important;
    width: 190mm !important;
    max-width: 190mm !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    z-index: auto !important;
  }
  body.passbook-printing #pr-txn-pages { display: contents !important; }
  body.passbook-printing .pb-details-page,
  body.passbook-printing .pb-txn-page {
    width: 190mm !important;
    max-width: 190mm !important;
    height: 184mm !important;
    margin: 0 !important;
    break-after: page !important;
    page-break-after: always !important;
  }
  /* No trailing blank page after the final sheet */
  body.passbook-printing #pb-print-area > :last-child,
  body.passbook-printing .pb-txn-page:last-child {
    break-after: auto !important;
    page-break-after: auto !important;
  }
}

/* ══ SCREEN: hide print area ══ */
#stmt-print-area {
    visibility: hidden;
    position: fixed;
    top: -9999px;
    left: -9999px;
}
/* Inputs: bold + uppercase; selects keep medium weight (readable option text, same as member form) */
.form-body .field input {
  font-weight: 700 !important;
  text-transform: uppercase !important;
  color: #1e293b !important;
}
.form-body .field input::placeholder {
  font-weight: 400 !important;
  text-transform: none !important;
  color: #94a3b8 !important;
}
 
/* ══ STATEMENT PRINT STYLES ══ */
@media print {
    @page { size: A4 portrait; margin: 12mm 14mm; }
 
    .statement-page body * { visibility: hidden !important; }
 
    .statement-page #stmt-print-area,
    .statement-page #stmt-print-area * { visibility: visible !important; }
 
    .statement-page #stmt-print-area {
        visibility: visible !important;
        position: fixed !important;
        inset: 0 !important;
        background: #fff !important;
        z-index: 99999 !important;
        font-size: 9pt;
        padding: 0;
    }
 
    /* ── Statement table ── */
    .sp-table {
        width: 100%;
        border-collapse: collapse;
    }
 
    .sp-table th {
        background: #f1f5f9 !important;
        font-size: 8pt;
        font-weight: 700;
        text-transform: uppercase;
        padding: 5px 8px;
        border: 1px solid #cbd5e1;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
 
    .sp-table td {
        padding: 5px 8px;
        border: 1px solid #e2e8f0;
        font-size: 8.5pt;
    }
 
    .sp-table td.r   { text-align: right; }
    .sp-table td.dr  { color: #dc2626 !important; font-weight: 700; }
    .sp-table td.cr  { color: #059669 !important; font-weight: 700; }
    .sp-table td.bal { font-weight: 800; color: #1e3a5f !important; }
 
    .sp-table tr.sp-closing td {
        background: #f0fdf4 !important;
        font-weight: 800;
        border-top: 2pt solid #059669;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
 
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}
@media print {
    .app-entity-view-page * { visibility: visible !important; }
    .app-entity-view-page   { visibility: visible !important; position: static !important; }
}
@media print {
  .no-print { display:none !important; }
  .form-panel { box-shadow:none !important; border:none !important; }
  .print-header { display:block !important; }
  body { background:#fff !important; }
}
.print-header { display:none; }
.ip-tab { padding:8px 20px;border-radius:6px;font-size:13px;font-weight:700;cursor:pointer;border:1.5px solid #e2e8f0;background:#f8fafc;color:#64748b;transition:all .15s; }
.ip-tab.active { background:#1e3a5f;color:#fff;border-color:#1e3a5f; }
.ip-section { display:none; }
.ip-section.active { display:block; }
.stmt-table { width:100%;border-collapse:collapse;font-size:12px; }
.stmt-table th { background:#e8eef5;padding:8px 12px;font-size:10px;font-weight:700;text-transform:uppercase;color:#64748b;text-align:left;border-bottom:2px solid #d0dbe8;white-space:nowrap; }
.stmt-table td { padding:7px 12px;border-bottom:1px solid #f1f5f9; }
.stmt-table tr:hover td { background:#f8fafc; }
.stmt-table tr.interest-row td { background:#f5f3ff; }
.stmt-table tr.withdraw-row td { background:#fef2f2; }
.stmt-table tr.deposit-row td { background:#f0fdf4; }
/* ============================================================
   TOP NAVBAR — Yashaswini Style
   app.css alli ee section paste maadi
   ============================================================ */
 
.top-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  box-shadow: 0 3px 12px rgba(0,0,0,0.25);
  overflow: visible;
}
 
/* ── ROW 0: Logo top center, bank name below ── */
.top-navbar-row0 {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 50%, #ffffff 100%);
  padding: 10px 24px;
  border-bottom: 2px solid #e5e7eb;
  flex-shrink: 0;
}
 
/* Brand block: logo on top, name below — column layout */
.nb-brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
 
.nb-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
 
/* Uploaded logo image */
.nb-logo-img {
  height: 65px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  border-radius: 6px;
}
 
/* Fallback emoji icon */
.nb-logo-icon {
  width: 65px; height: 65px;
  border-radius: 50%;
  background: linear-gradient(135deg, #eff6ff, #f5f3ff);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  border: 2px solid #bfdbfe;
  box-shadow: 0 2px 10px rgba(37,99,235,0.15);
}
 
.nb-logo-text { text-align: center; }
 
.nb-bank-name-en {
  font-size: 22px; font-weight: 800;
  line-height: 1.2; letter-spacing: 0.5px;
  text-align: center;
  background: linear-gradient(90deg, #000000 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.08));
}
 
.nb-bank-name-kn {
  font-family: 'Tiro Kannada', sans-serif;
  font-size: 18px; font-weight: 700; margin-top: 3px;
  text-align: center;
  background: linear-gradient(90deg, #7c3aed, #0891b2, #059669);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
 
.nb-bank-addr {
  font-size: 18px; color: #000000 ; margin-top: 2px; text-align: center;
}
 
/* ── ROW 1: Menus (left/center) + Right Panel (right) ── */
.top-navbar-row1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  padding: 0 24px;
  height: 46px;
  border-top: 1px solid #fca5a5;
  border-bottom: 2px solid #e5e7eb;
  flex-shrink: 0;
}
 
/* ── Menu container ── */
.nb-menu {
  display: flex;
  align-items: center;
  flex: 1;
  overflow: visible;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 0;
}
.nb-menu::-webkit-scrollbar { display: none; }
 
/* ── Menu Items ── */
.nb-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0 10px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Rajdhani', sans-serif;
  color: #374151;
  cursor: pointer;
  white-space: nowrap;
  height: 46px;
  border-bottom: 3px solid transparent;
  transition: all 0.15s;
  user-select: none;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  text-decoration: none;
}
.nb-item:hover   { color: #991b1b; border-bottom-color: #991b1b; }
.nb-item--active { color: #991b1b !important; border-bottom-color: #991b1b !important; }
 
/* ── Right Panel — in Row 1 ── */
.nb-right-panel {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  border-left: 1px solid #e5e7eb;
  padding-left: 14px;
}
 
.nb-timebox {
  text-align: center;
  background: #fff1f2;
  border: 1px solid #fecaca;
  border-radius: 5px;
  padding: 3px 10px;
}
.nb-timebox-lbl { font-size: 8px; color: #991b1b; font-weight: 700; text-transform: uppercase; }
.nb-timebox-val { font-size: 11px; font-weight: 700; color: #7f1d1d; font-family: 'JetBrains Mono', monospace; }
/* Posting date differs from calendar today (Date Change) */
.nb-timebox--accent {
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #fbbf24;
}
.nb-timebox--accent .nb-timebox-lbl { color: #b45309; }
.nb-timebox--accent .nb-timebox-val { color: #92400e; }
 
.nb-user-box {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #fff1f2;
  border: 1px solid #fecaca;
  border-radius: 5px;
  padding: 4px 10px;
}
.nb-user-avatar {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #991b1b;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; color: #fff;
}
.nb-user-name { font-size: 11px; font-weight: 700; color: #7f1d1d; text-transform: uppercase; }
 
.nb-status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #10b981;
  animation: nbPulse 2s infinite;
}
@keyframes nbPulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
 
.nb-logout-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #991b1b;
  border: none;
  border-radius: 5px;
  padding: 6px 14px;
  cursor: pointer;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(153,27,27,0.3);
  transition: background 0.15s;
  font-family: 'Rajdhani', sans-serif;
}
.nb-logout-btn:hover { background: #7f1d1d; color: #fff; }
 
/* ── Page content offset ── */
/* Row0 ≈ 82px + Row1 ≈ 46px = 128px */
.navbar-offset { padding-top: 200px; }

/* Director view Page */
.dv-pro-wrap { display:flex; gap:16px; align-items:stretch; max-width:100%; margin-top:12px; padding:0 2px; }

/* Sidebar */
.dv-pro-sidebar { width:260px; min-width:260px; background:#fff; border:1px solid #e2e8f0; border-radius:12px; overflow:hidden; box-shadow:0 1px 6px rgba(0,0,0,0.07); }
.dv-pro-sidebar-top { background:linear-gradient(135deg,#1e3a5f,#1d4ed8); padding:20px 16px 18px; text-align:center; }
.dv-avatar { width:80px; height:80px; border-radius:50%; margin:0 auto 12px; border:3px solid rgba(255,255,255,0.35); box-shadow:0 4px 14px rgba(0,0,0,0.25); overflow:hidden; display:flex; align-items:center; justify-content:center; font-size:24px; font-weight:700; color:#fff; }
.dv-avatar img { width:100%; height:100%; object-fit:cover; border-radius:50%; }
.dv-sidebar-name { font-size:16px; font-weight:700; color:#fff; line-height:1.35; margin-bottom:4px; }
.dv-sidebar-name-kn { font-size:12px; color:#bfdbfe; margin-bottom:10px; font-family:'Tiro Kannada','Noto Sans Kannada',sans-serif; }
.dv-sidebar-body { padding:14px; }
.dv-sidebar-row { display:flex; flex-direction:column; gap:2px; margin-bottom:12px; }
.dv-sidebar-row:last-child { margin-bottom:0; }
.dv-sidebar-lbl { font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:0.8px; color:#94a3b8; }
.dv-sidebar-val { font-size:15px; font-weight:600; color:#1e293b; }
.dv-sidebar-divider { border:none; border-top:1px solid #f1f5f9; margin:10px 0; }
.dv-status-pill { display:inline-flex; align-items:center; gap:5px; font-size:10px; font-weight:700; padding:3px 10px; border-radius:20px; }
.dv-status-pill.active  { background:#f0fdf4; border:1px solid #bbf7d0; color:#15803d; }
.dv-status-pill.inactive{ background:#f8fafc; border:1px solid #e2e8f0; color:#64748b; }
.dv-status-dot { width:6px; height:6px; border-radius:50%; }
.dv-status-dot.active  { background:#22c55e; }
.dv-status-dot.inactive{ background:#94a3b8; }
.dv-kyc-sig { height:50px; max-width:160px; object-fit:contain; border-radius:6px; border:1px solid #e2e8f0; background:#f8fafc; padding:4px; }

/* Main box */
.dv-main-box { flex:1; min-width:0; background:#fff; border:1px solid #e2e8f0; border-radius:12px; overflow:hidden; box-shadow:0 1px 6px rgba(0,0,0,0.06); }
.dv-grid { display:grid; grid-template-columns:1fr 1fr 1fr 1fr; }
.dv-cell { padding:12px 16px; border-right:1px solid #f1f5f9; border-bottom:1px solid #f1f5f9; }
.dv-cell:nth-child(4n) { border-right:none; }
.dv-cell.full { grid-column:1/-1; border-right:none; }
.dv-lbl { font-size:15px; font-weight:600; text-transform:uppercase; letter-spacing:0.7px; color:#1e293b; margin-bottom:5px; }
.dv-val { font-size:18px; font-weight:700; color:#94a3b8; }
.dv-val.mono { font-family:'JetBrains Mono',ui-monospace,monospace; font-size:15px; }
.dv-val.kn   { font-family:'Tiro Kannada','Noto Sans Kannada',sans-serif; font-size:15px; }

/* Action buttons */
.dv-act-btn { display:inline-flex; align-items:center; gap:5px; font-size:11px; font-weight:600; padding:6px 14px; border-radius:7px; text-decoration:none; transition:all 0.18s; border:1.5px solid; }
.dv-act-btn.outline { border-color:#cbd5e1; background:#fff; color:#475569; }
.dv-act-btn.outline:hover { background:#f1f5f9; text-decoration:none; color:#1e293b; }
.dv-act-btn.primary { border-color:#1d4ed8; background:#1d4ed8; color:#fff; }
.dv-act-btn.primary:hover { background:#1e40af; border-color:#1e40af; text-decoration:none; color:#fff; }
.dv-act-btn.muted { border-color:#e2e8f0; background:#f8fafc; color:#64748b; }
.dv-act-btn.muted:hover { background:#f1f5f9; text-decoration:none; color:#334155; }

/* ═══════════════════════════════════════════════════════════════
   LOGIN PAGE STYLES — Co-op Bank Staff Login
   File: public/assets/css/login.css (or wherever your CSS lives)
   Scoped under .login-page to avoid affecting other pages
═══════════════════════════════════════════════════════════════ */
 
.login-page,
.login-page * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
 
.login-page {
    height: 100%;
    width: 100%;
    overflow: hidden;
    font-family: 'Segoe UI', Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
 
.login-page .bg-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
}
 
.login-page .bg-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(5, 20, 50, 0.62);
}
 
.login-page .login-card {
    position: relative;
    z-index: 10;
    width: 380px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 18px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 2.5rem 2.25rem 2rem;
}
 
.login-page .bank-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.75rem;
    justify-content: center;
}
 
.login-page .logo-mark {
    width: 46px;
    height: 46px;
    background: #c0392b;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 10px;
    line-height: 1.3;
    text-align: center;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}
 
.login-page .logo-text-main {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.01em;
}
 
.login-page .logo-text-sub {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    margin-top: 2px;
}
 
.login-page .divider {
    height: 1px;
    background: rgba(255,255,255,0.15);
    margin-bottom: 1.75rem;
}
 
.login-page .alert-error {
    background: rgba(192,57,43,0.25);
    border: 1px solid rgba(192,57,43,0.5);
    color: #fca5a5;
    font-size: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 1.25rem;
}
.login-page .alert-error ul { padding-left: 14px; margin-top: 4px; }
.login-page .alert-error li { margin-bottom: 2px; }
 
.login-page .field { margin-bottom: 1.35rem; }
.login-page .field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.65);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 7px;
}
.login-page .field label .req { color: #f87171; margin-left: 2px; }
 
.login-page .inp-wrap { position: relative; }
.login-page .inp-wrap input {
    width: 100%;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    padding: 11px 38px 11px 14px;
    font-size: 14px;
    color: #1a1a2e;
    outline: none;
    transition: border-color 0.18s, background 0.18s;
}
.login-page .inp-wrap input::placeholder { color: rgba(0,0,0,0.3); }
.login-page .inp-wrap input:focus {
    border-color: #c0392b;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(192,57,43,0.15);
}
.login-page .inp-wrap input.upper { text-transform: uppercase; }
 
.login-page .eye-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(0,0,0,0.35);
    padding: 3px;
    display: flex;
    align-items: center;
    transition: color 0.15s;
}
.login-page .eye-btn:hover { color: #c0392b; }
.login-page .eye-btn svg { width: 17px; height: 17px; }
 
.login-page .btn-login {
    width: 100%;
    padding: 12px;
    background: #c0392b;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.15s, transform 0.1s;
}
.login-page .btn-login:hover { background: #a93226; }
.login-page .btn-login:active { transform: scale(0.98); }

/* ============================================================
   REPORT PRINT — Column-based orientation + common styles
   ============================================================ */

.rpt-print-header { display: none; }
.rpt-print-foot   { display: none; }

@media print {

    @page {
    size: A4 portrait;
    margin: 10mm 12mm 25mm;
    }

    @page rpt-ls {
    size: A4 landscape;
    margin: 8mm 10mm 22mm;
    }

    body.rpt-landscape { page: rpt-ls; }

    /* ── Hide UI chrome ── */
    .no-print,
    .top-navbar,
    .admin-navbar,
    .form-header,
    .report-toolbar-grid,
    #report-err,
    #report-loading,
    #report-note,
    #summary-cards,
    #summary-dynamic,
    .app-list-toolbar,
    .app-list-pager,
    #btn-excel,
    a[href*="report-dashboard"] {
        display: none !important;
    }

    body {
        background: #fff !important;
        font-size: 9pt !important;
        color: #000 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    main, .navbar-offset {
        padding: 0 !important;
        margin: 0 !important;
    }

    .form-panel,
    .app-list-panel,
    .app-list-panel.content-area {
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    .form-body { padding: 0 !important; }

    /* ── Print header ── */
    .rpt-print-header {
        display: block !important;
        text-align: center;
        margin-bottom: 10px;
        padding-bottom: 8px;
        border-bottom: 2px solid #000;
    }

    .rpt-print-header .rph-org {
        font-weight: 800;
        color: #000;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        line-height: 1.2;
        white-space: nowrap;
        overflow: visible;
        text-overflow: clip;
        /* font-size: JS set maduttade */
    }

    .rpt-print-header .rph-tagline {
        font-size: 8.5pt;
        color: #000;
        margin-top: 2px;
    }

    .rpt-print-header .rph-addr {
        font-size: 8pt;
        color: #000;
        margin-top: 2px;
    }

    .rpt-print-header .rph-phone {
        font-size: 8pt;
        color: #000;
    }

    .rpt-print-header .rph-rule {
        border: none;
        border-top: 1px solid #000;
        margin: 5px 0 4px;
    }

    .rpt-print-header .rph-title {
        font-size: 11pt;
        font-weight: 800;
        color: #000;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .rpt-print-header .rph-sub {
        font-size: 7.5pt;
        color: #000;
        margin-top: 2px;
    }

    /* ── Print footer ── */
    .rpt-print-foot {
        display: flex !important;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        height: 4mm;
        justify-content: space-between;
        align-items: center;
        font-size: 7.5pt;
        color: #000;
        padding: 0 12mm;
        font-family: 'Times New Roman', Georgia, serif;
        border-top: 0.5pt solid #000;
        background: #fff !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .rpt-print-foot .rpt-pager {
        display: none !important;
    }

    /* ── Tables ── */
    .app-list-table,
    #report-table,
    #dyn-table,
    #members-table,
    #summary-table {
        width: 100% !important;
        min-width: 0 !important;
        border-collapse: collapse !important;
        page-break-inside: auto;
    }

    .app-list-table thead,
    #report-table thead,
    #dyn-table thead,
    #members-table thead,
    #summary-table thead {
        display: table-header-group;
    }

    /* ── Table header — white, black border ── */
    .app-list-table thead th,
    #report-table thead th,
    #members-table thead th,
    #summary-table thead th,
    #dyn-table thead tr.lr-col-head-row th {
        background: #fff !important;
        color: #000 !important;
        padding: 3px 5px !important;
        font-size: 7pt !important;
        font-weight: 700 !important;
        border: 1px solid #000 !important;
        white-space: nowrap;
        text-transform: uppercase;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* ── Body cells ── */
.app-list-table tbody td,
#report-table tbody td,
#dyn-table tbody td,
#members-table tbody td,
#summary-table tbody td {
    height: 7mm !important;
    padding: 0 5px !important;
    font-size: 7.5pt !important;
    line-height: 7mm !important;
    border: 1px solid #000 !important;
    color: #000 !important;
    background: #fff !important;
    vertical-align: middle !important;
    overflow: hidden !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    /* max-width: 0 beda — ellipsis beda, truncate beda */
}

/* ── Rows ── */
.app-list-table tbody tr,
#report-table tbody tr,
#dyn-table tbody tr,
#members-table tbody tr {
    height: 7mm !important;
    max-height: 7mm !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
}

    /* ── Zebra beda — pure white ── */
    .app-list-table tbody tr:nth-child(even) td,
    #report-table tbody tr:nth-child(even) td,
    #dyn-table tbody tr:nth-child(even) td,
    #members-table tbody tr:nth-child(even) td {
        background: #fff !important;
    }

    /* ── Secondary line hide ── */
    .app-list-secondary,
    .app-list-primary + *,
    .app-list-table tbody td div + div,
    #report-table tbody td div + div,
    #dyn-table tbody td div + div,
    #members-table tbody td div + div {
        display: none !important;
    }

    /* ── Amount / numeric ── */
    .app-list-amount, .lr-num {
        text-align: right !important;
        font-family: 'Courier New', monospace !important;
        white-space: nowrap !important;
        color: #000 !important;
    }

    /* ── SL ── */
    .app-list-sl, .app-list-col-sl {
        text-align: center !important;
        color: #000 !important;
        font-size: 7pt !important;
    }

    /* ── Code ── */
    .app-list-code {
        font-family: 'Courier New', monospace !important;
        font-size: 7pt !important;
        color: #000 !important;
    }

    /* ── Force show ── */
    .lr-sheet   { display: block !important; }
    #cert-panel { display: block !important; }

    /* ── Loans: banner thead ── */
    .lr-sheet thead tr.lr-banner-thead-row {
        display: table-row !important;
    }

    .lr-banner-thead-cell {
        background: #fff !important;
        color: #000 !important;
        border: 1px solid #000 !important;
    }

    .lr-banner-thead-inner .lr-org-title,
    .lr-banner-thead-inner .lr-org-sub,
    .lr-banner-thead-inner .lr-org-addr,
    .lr-banner-thead-inner .lr-doc-title,
    .lr-banner-thead-inner .lr-doc-sub,
    .lr-banner-thead-inner .lr-doc-note {
        color: #000 !important;
    }

    .lr-banner-thead-inner .lr-rule {
        border-top-color: #000 !important;
    }

    /* ── Loans: grand total ── */
    .lr-grand-ft td {
        background: #fff !important;
        color: #000 !important;
        border: 1px solid #000 !important;
        font-weight: 700 !important;
        height: auto !important;
        line-height: 1.4 !important;
        white-space: nowrap !important;
    }

    /* ── Loans: print foot ── */
    .lr-print-foot {
        display: flex !important;
        color: #000 !important;
        border-top-color: #000 !important;
        background: #fff !important;
    }
}
/* ============================================================
   LIST PAGE PRINT — shared rules for all app-list-page views
   Add this block at the very END of app.css
   ============================================================ */

/* Screen: hide the print-only society header block */
.print-report-header { display: none; }

@media print {

    /* Society header — shown only when printing list pages */
    .print-report-header {
        display: block !important;
        text-align: center;
        margin-bottom: 10px;
        padding-bottom: 6px;
        border-bottom: 2px solid #000;
        font-family: 'Times New Roman', Times, serif;
    }
    .print-report-header .prh-society-name {
        font-size: 16pt;
        font-weight: 800;
        color: #000 !important;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    .print-report-header .prh-society-addr {
        font-size: 8.5pt;
        color: #000 !important;
        margin-top: 2px;
    }
    .print-report-header .prh-report-title {
        font-size: 11pt;
        font-weight: 800;
        text-transform: uppercase;
        color: #000 !important;
        margin-top: 4px;
        letter-spacing: 0.5px;
    }
    .print-report-header .prh-meta {
        font-size: 7.5pt;
        color: #333 !important;
        margin-top: 2px;
    }

    /* Dark header row for app-list-table — overrides the REPORT PRINT
       section's white header (that section targets report tables;
       this targets the standard list-page table specifically) */
    .app-list-page .app-list-table thead th {
        background: #1e293b !important;
        color: #fff !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        border: 1px solid #000 !important;
        font-size: 7pt !important;
        padding: 4px 6px !important;
    }

    /* Table body — clean black borders, no color backgrounds */
    .app-list-page .app-list-table tbody td {
        border: 1px solid #000 !important;
        color: #000 !important;
        background: #fff !important;
        font-size: 7.5pt !important;
        padding: 3px 6px !important;
    }

    /* Overflow fix — no horizontal scroll clipping on print */
    .app-list-page .app-list-table-wrap {
        overflow: visible !important;
        width: 100% !important;
    }
    .app-list-page .app-list-table {
        width: 100% !important;
        min-width: 0 !important;
        table-layout: auto !important;
    }

    /* Hide toolbar, pager, action column, summary cards */
    .app-list-page .app-list-toolbar,
    .app-list-page .app-list-pager,
    .app-list-page .app-list-col-actions,
    .app-list-page .app-list-actions,
    .app-list-page .no-print,
    .acc-summary-cards { display: none !important; }

    /* Landscape via body class — add class="... app-list-landscape"
       to <body> in layouts/admin.php when rendering list pages,
       OR add locally in each list view's <style> block */
    body.app-list-landscape {
        /* intentionally empty — @page below handles it */
    }
}

/* Landscape @page — scoped so it only fires on list pages.
   Each list view adds this in its own local <style> tag:
   <style>@media print { @page { size: A4 landscape; margin: 10mm 12mm; } }</style>
   This way form pages (create/edit) keep portrait. */

/* Remove colored badge boxes on print — plain black text only */
.app-list-badge,
.app-list-type-badge {
    background: none !important;
    border: none !important;
    color: #000 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    font-weight: 700 !important;
}