/**
 * EasyLoan Professional Theme
 * Micro Finance Management System — consistent UI components
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --el-primary: #0f766e;
    --el-primary-dark: #0d5c56;
    --el-primary-light: #14b8a6;
    --el-nav-bg: #0f172a;
    --el-nav-hover: #1e293b;
    --el-surface: #ffffff;
    --el-bg: #f1f5f9;
    --el-border: #e2e8f0;
    --el-text: #1e293b;
    --el-text-muted: #64748b;
    --el-success: #059669;
    --el-danger: #dc2626;
    --el-warning: #d97706;
    --el-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.08), 0 1px 2px -1px rgb(0 0 0 / 0.08);
    --el-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
    --el-radius: 0.625rem;
    --el-radius-lg: 0.75rem;

    /* Monthly summary report */
    --ms-bg: #f6f8fb;
    --ms-card: #ffffff;
    --ms-border: #e6ebf2;
    --ms-header: #0f766e;
    --ms-header-light: #dff6f3;
    --ms-month1: #f7fafc;
    --ms-month2: #eefbf7;
    --ms-change: #faf5ff;
    --ms-text: #1e293b;
    --ms-muted: #64748b;
    --ms-success: #16a34a;
    --ms-danger: #dc2626;
    --ms-new: #2563eb;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--el-text);
    -webkit-font-smoothing: antialiased;
}

[x-cloak] { display: none !important; }

/* Layout */
.el-body { background: var(--el-bg); min-height: 100vh; }
.el-main { max-width: 80rem; margin: 0 auto; padding: 1.5rem 1rem; }

/* Navigation */
.el-nav {
    background: linear-gradient(180deg, #0c1222 0%, #111827 48%, #0f172a 100%);
    color: #fff;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.35), 0 1px 0 rgba(255,255,255,0.06) inset;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    overflow: visible;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
}
.el-nav-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    min-height: 4.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.el-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border-radius: 0.5rem;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.08);
    color: #f8fafc;
    cursor: pointer;
    flex-shrink: 0;
}
.el-nav-toggle:hover {
    background: rgba(255,255,255,0.14);
}
.el-nav-toggle-icon {
    width: 1.35rem;
    height: 1.35rem;
}
.el-nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.125rem;
    flex: 1;
    min-width: 0;
}
.el-nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}
.el-nav-followup {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    color: #cbd5e1;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
}
.el-nav-followup:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}
.el-nav-followup-icon {
    width: 1.35rem;
    height: 1.35rem;
}
.el-nav-notify-badge {
    position: absolute;
    top: -0.15rem;
    right: -0.15rem;
    min-width: 1.125rem;
    height: 1.125rem;
    padding: 0 0.3rem;
    border-radius: 9999px;
    background: #dc2626;
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1.125rem;
    text-align: center;
    border: 2px solid var(--el-nav-bg, #0f172a);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    pointer-events: none;
    z-index: 2;
}
.el-nav-notify-badge.is-hidden {
    display: none;
}

.el-nav-followup-wrap {
    position: relative;
    flex-shrink: 0;
    z-index: 200;
}

.el-nav-followup-panel {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: min(22rem, calc(100vw - 1.5rem));
    max-height: min(28rem, calc(100vh - 5rem));
    background: #fff;
    border-radius: 0.625rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.22);
    border: 1px solid var(--el-border, #e2e8f0);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    pointer-events: auto;
}

.el-nav-followup-panel.is-fixed {
    position: fixed;
    z-index: 10050;
}

.el-nav-followup-panel.is-hidden {
    display: none;
}

.el-nav-followup-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--el-border, #e2e8f0);
    background: #f8fafc;
}

.el-nav-followup-panel-title {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--el-text, #0f172a);
}

.el-nav-followup-panel-close {
    border: none;
    background: transparent;
    font-size: 1.35rem;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
}

.el-nav-followup-panel-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.el-nav-followup-panel-body {
    overflow-y: auto;
    padding: 0.5rem;
    flex: 1;
}

.el-nav-followup-panel-foot {
    padding: 0.5rem 1rem;
    border-top: 1px solid var(--el-border, #e2e8f0);
    background: #f8fafc;
    text-align: center;
}

.el-nav-followup-foot-link {
    font-size: 0.8125rem;
    color: var(--el-primary, #0f766e);
    text-decoration: none;
    font-weight: 600;
}

.el-nav-followup-foot-link:hover {
    text-decoration: underline;
}

.el-nav-followup-empty {
    margin: 1rem 0.5rem;
    text-align: center;
    font-size: 0.8125rem;
    color: #64748b;
}

.el-nav-followup-item {
    border: 1px solid var(--el-border, #e2e8f0);
    border-radius: 0.5rem;
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.5rem;
    background: #fff;
}

.el-nav-followup-item:last-child {
    margin-bottom: 0;
}

.el-nav-followup-item-head {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.el-nav-followup-item-loan {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--el-primary, #0f766e);
    text-decoration: none;
}

.el-nav-followup-item-loan:hover {
    text-decoration: underline;
}

.el-nav-followup-item-customer {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--el-text, #0f172a);
    margin-bottom: 0.2rem;
}

.el-nav-followup-item-remarks {
    font-size: 0.75rem;
    color: #475569;
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.el-nav-followup-item-meta {
    font-size: 0.6875rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.el-nav-followup-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.el-nav-followup-btn-action {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.3rem 0.55rem;
    border-radius: 0.375rem;
    border: 1px solid transparent;
    cursor: pointer;
    line-height: 1.2;
}

.el-nav-followup-btn-complete {
    background: var(--el-primary, #0f766e);
    color: #fff;
    border-color: var(--el-primary, #0f766e);
}

.el-nav-followup-btn-complete:hover {
    background: var(--el-primary-dark, #0d5c56);
}

.el-nav-followup-btn-complete:disabled,
.el-nav-followup-btn-again:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.el-nav-followup-btn-again {
    background: #fff;
    color: var(--el-primary, #0f766e);
    border-color: var(--el-primary, #0f766e);
}

.el-nav-followup-btn-again:hover {
    background: #f0fdfa;
}

.el-nav-followup-again-form {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--el-border, #e2e8f0);
    display: none;
}

.el-nav-followup-again-form.is-open {
    display: block;
}

.el-nav-followup-again-form label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.15rem;
}

.el-nav-followup-again-form input,
.el-nav-followup-again-form textarea {
    width: 100%;
    font-size: 0.75rem;
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--el-border, #e2e8f0);
    border-radius: 0.375rem;
    margin-bottom: 0.4rem;
    box-sizing: border-box;
}

.el-nav-followup-again-form textarea {
    min-height: 2.5rem;
    resize: vertical;
}

.el-nav-followup-again-submit {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 0.375rem;
    border: none;
    background: var(--el-primary, #0f766e);
    color: #fff;
    cursor: pointer;
}

.el-nav-followup-again-submit:hover {
    background: var(--el-primary-dark, #0d5c56);
}
.el-nav-brand {
    font-weight: 700;
    font-size: 1.0625rem;
    letter-spacing: -0.02em;
    color: #fff;
    padding: 0.375rem 0.625rem 0.375rem 0.375rem;
    margin-right: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    border-radius: 0.625rem;
    transition: background 0.15s ease;
}
.el-nav-brand:hover { background: rgba(255,255,255,0.06); }
.el-nav-brand-text { white-space: nowrap; }
.el-nav-logo {
    height: 2.75rem;
    width: auto;
    max-width: 9rem;
    object-fit: contain;
    border-radius: 0.5rem;
    background: rgba(255,255,255,0.08);
    padding: 0.125rem;
}
.el-nav-logo-fallback {
    background: linear-gradient(135deg, var(--el-primary) 0%, #14b8a6 100%);
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(15, 118, 110, 0.45);
}
.el-nav-link {
    padding: 0.5rem 0.8125rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #94a3b8;
    transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.el-nav-link:hover {
    background: rgba(255,255,255,0.08);
    color: #f8fafc;
    border-color: rgba(255,255,255,0.06);
}
.el-nav-link--menu.is-open {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.el-nav-chevron {
    width: 0.875rem;
    height: 0.875rem;
    opacity: 0.75;
    transition: transform 0.15s ease;
}
.el-nav-link--menu.is-open .el-nav-chevron { transform: rotate(180deg); }
.el-nav-dropdown { position: relative; z-index: 60; }
.el-nav-user-wrap {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.25rem 0.5rem 0.25rem 0.25rem;
    border-radius: 9999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
}
.el-nav-user-menu {
    position: relative;
    z-index: 70;
}
.el-nav-user-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.25rem 0.5rem 0.25rem 0.25rem;
    border-radius: 9999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
    font-family: inherit;
    color: inherit;
    transition: background 0.15s, border-color 0.15s;
}
.el-nav-user-trigger:hover,
.el-nav-user-menu .el-nav-user-trigger[aria-expanded="true"] {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.14);
}
.el-nav-user-trigger .el-nav-chevron {
    width: 0.875rem;
    height: 0.875rem;
    color: #94a3b8;
    flex-shrink: 0;
}
.el-dropdown--user {
    right: 0;
    left: auto;
    min-width: 12rem;
}
.el-nav-user-menu-id {
    padding: 0 0.875rem 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #f1f5f9;
}
.el-nav-user-menu-logout {
    color: #fca5a5 !important;
}
.el-nav-user-menu-logout:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #fecaca !important;
}
.el-nav-user-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
    color: #e2e8f0;
    font-size: 0.8125rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.12);
    flex-shrink: 0;
    overflow: hidden;
}
.el-nav-user-avatar--photo {
    background: #1e293b;
    padding: 0;
}
.el-nav-user-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}
.el-nav-user-avatar-fallback {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #e2e8f0;
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
}
.el-profile-photo-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1.25rem;
}
.el-profile-photo-preview {
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 9999px;
    overflow: hidden;
    border: 2px solid var(--el-border);
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}
.el-profile-photo-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}
.el-profile-photo-fallback {
    font-size: 1.75rem;
    font-weight: 700;
    color: #64748b;
}
.el-profile-details dt {
    margin-bottom: 0.125rem;
}
.el-nav-user-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    padding-right: 0.25rem;
}
.el-nav-user-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #f1f5f9;
    max-width: 10rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.el-nav-user-role {
    font-size: 0.6875rem;
    color: #94a3b8;
    text-transform: capitalize;
}
.el-nav-logout {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #cbd5e1;
    text-decoration: none;
    padding: 0.4375rem 0.875rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.06);
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.el-nav-logout:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-color: rgba(255,255,255,0.22);
}
.el-nav-user { font-size: 0.8125rem; color: #94a3b8; }
.el-dropdown {
    position: absolute;
    top: calc(100% + 0.375rem);
    left: 0;
    background: var(--el-surface);
    color: var(--el-text);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.06);
    border-radius: var(--el-radius-lg);
    border: 1px solid var(--el-border);
    padding: 0.375rem 0;
    width: 13.5rem;
    z-index: 100;
    min-width: 12rem;
}
.el-dropdown--nav { width: 14.5rem; }
.el-dropdown-label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--el-text-muted);
    padding: 0.375rem 1rem 0.25rem;
    margin: 0;
}
.el-dropdown-divider {
    height: 1px;
    background: var(--el-border);
    margin: 0.375rem 0;
}
.el-dropdown a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    color: var(--el-text);
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
}
.el-dropdown a:hover { background: #f0fdfa; color: var(--el-primary); }
.el-dropdown a.active { background: #f0fdfa; color: var(--el-primary); font-weight: 600; }

@media (max-width: 767px) {
    .el-nav {
        position: sticky;
    }

    .el-nav-inner {
        min-height: 3.25rem;
        padding: 0.5rem 0.75rem;
        flex-wrap: nowrap;
        position: relative;
    }

    .el-nav-brand {
        margin-right: 0;
        padding: 0.25rem 0.375rem 0.25rem 0;
        min-width: 0;
        flex: 1;
    }

    .el-nav-toggle {
        display: inline-flex;
        margin-left: 0;
    }

    .el-nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 120;
        flex: none;
        width: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 0.125rem;
        padding: 0.5rem 0.75rem 0.75rem;
        background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
        border-top: 1px solid rgba(255,255,255,0.1);
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
        max-height: calc(100dvh - 3.5rem);
        overflow-y: auto;
    }

    .el-nav-links.is-open {
        display: flex;
    }

    .el-nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 0.625rem 0.75rem;
        border-radius: 0.5rem;
    }

    .el-nav-dropdown {
        width: 100%;
    }

    .el-nav-dropdown .el-dropdown--nav {
        position: static;
        width: 100%;
        min-width: 0;
        margin-top: 0.25rem;
        margin-left: 0.5rem;
        box-shadow: none;
        border: none;
        background: rgba(255,255,255,0.06);
        border-radius: 0.5rem;
        padding: 0.25rem 0;
    }

    .el-nav-dropdown .el-dropdown a {
        color: #e2e8f0;
        padding: 0.5rem 0.875rem;
    }

    .el-nav-dropdown .el-dropdown a:hover {
        background: rgba(255,255,255,0.1);
        color: #fff;
    }

    .el-nav-dropdown .el-dropdown-label {
        color: #94a3b8;
        padding-left: 0.875rem;
    }

    .el-nav-right {
        gap: 0.375rem;
    }

    .el-nav-logout {
        padding: 0.375rem 0.625rem;
        font-size: 0.75rem;
    }

    .el-nav-user-wrap {
        padding: 0.125rem;
    }

    .el-main {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 900px) {
    .el-nav-user-trigger .el-nav-user-meta { display: none; }
    .el-nav-user-trigger .el-nav-chevron { display: none; }
    .el-nav-brand-text { max-width: 8rem; overflow: hidden; text-overflow: ellipsis; }
}

@media (min-width: 768px) {
    .el-nav-inner {
        flex-wrap: nowrap;
    }

    .el-nav-brand {
        flex-shrink: 0;
        margin-right: 0.5rem;
    }

    .el-nav-links {
        flex: 1;
        justify-content: flex-start;
    }
}

/* Typography */
.el-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--el-text);
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}
.el-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.el-page-header .el-page-title { margin-bottom: 0; }
.el-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--el-text);
    margin-bottom: 0.75rem;
}
.el-card-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--el-text);
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--el-border);
}

/* Cards */
.el-card {
    background: var(--el-surface);
    border-radius: var(--el-radius-lg);
    box-shadow: var(--el-shadow);
    border: 1px solid var(--el-border);
    overflow: hidden;
}
.el-card-body { padding: 1.25rem; }
.el-card-padded { padding: 1.25rem; }
/* Filter bars with typeahead — allow dropdown to extend outside the card */
.el-card.el-filter-bar {
    overflow: visible;
}

/* Account list search typeahead (loans / hire purchase index) */
.el-account-list-search-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 40;
    margin-top: 0.25rem;
    border: 1px solid #334155;
    border-radius: var(--el-radius);
    max-height: 16rem;
    overflow-y: auto;
    background: #1e293b;
    box-shadow: 0 10px 28px rgb(0 0 0 / 0.35);
}

.el-account-list-search-item {
    display: block;
    padding: 0.625rem 0.75rem;
    border-bottom: 1px solid #334155;
    text-decoration: none;
    color: #f1f5f9;
}

.el-account-list-search-item:last-child {
    border-bottom: none;
}

.el-account-list-search-item.is-active,
.el-account-list-search-item.el-hover-select:hover {
    background: #334155;
}

.el-account-list-search-item-main {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.5rem;
}

.el-account-list-search-account {
    font-weight: 600;
    font-size: 0.875rem;
    color: #f8fafc;
}

.el-account-list-search-customer {
    font-size: 0.875rem;
    color: #cbd5e1;
    flex: 1;
    min-width: 0;
}

.el-account-list-search-status {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #94a3b8;
    white-space: nowrap;
}

.el-account-list-search-sub {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.35;
}

.el-account-list-search-msg {
    margin: 0;
    padding: 0.625rem 0.75rem;
    font-size: 0.8125rem;
    color: #94a3b8;
    border-bottom: 1px solid #334155;
}

.el-account-list-search-msg:last-child {
    border-bottom: none;
}


/* Tables */
.el-table-wrap { overflow-x: auto; }
.el-table { width: 100%; font-size: 0.8125rem; border-collapse: collapse; }
.el-table thead { background: #f8fafc; }
.el-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--el-text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--el-border);
}
.el-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
/* Dotted row dividers — separate collapse so dots render in browsers */
.el-table--dotted-rows {
    border-collapse: separate;
    border-spacing: 0;
}
.el-table--dotted-rows td {
    border-bottom: 1px dotted #64748b;
}
.el-table .text-right,
.text-right { text-align: right; }
.el-table tbody tr:hover { background: #f8fafc; }
.el-table--striped tbody tr:nth-child(even) td { background: #f1f5f9; }
.el-table--striped tbody tr:hover td { background: #e2e8f0; }
.el-table tbody tr:last-child td { border-bottom: none; }
.el-table--dotted-rows tbody tr td { border-bottom: 1px dotted #64748b; }
.el-table--dotted-rows tbody tr:last-child td { border-bottom: 1px dotted #64748b; }
.el-table--dotted-rows tfoot td {
    border-bottom: none;
    border-top: 1px solid var(--el-border);
}

/* Workflow date stack in list tables */
.el-workflow-dates {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 7.5rem;
}
.el-workflow-dates-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.75rem;
    line-height: 1.35;
}
.el-workflow-dates-label {
    color: var(--el-text-muted);
    font-size: 0.6875rem;
    white-space: nowrap;
}
.el-workflow-dates-value {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.el-workflow-dates-duration {
    color: var(--el-text-muted);
    font-weight: 500;
}

/* Loan / HP show — workflow step timestamps + durations */
.el-workflow-audit__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem 1rem;
}
.el-workflow-audit__grid--hp {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.el-workflow-audit__step {
    min-width: 0;
}
.el-workflow-audit__label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}
.el-workflow-audit__time {
    display: block;
    margin-top: 0.2rem;
    font-weight: 600;
    color: var(--el-text);
    font-variant-numeric: tabular-nums;
}
.el-workflow-audit__user {
    display: block;
    margin-top: 0.1rem;
    color: #64748b;
}
.el-workflow-audit__note {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #94a3b8;
}
.el-workflow-audit__duration {
    display: inline-block;
    margin-top: 0.375rem;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 0.6875rem;
    font-weight: 700;
}
.el-workflow-audit__total {
    margin: 0.75rem 0 0;
    padding-top: 0.625rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.8125rem;
    color: #334155;
}
@media (max-width: 900px) {
    .el-workflow-audit__grid,
    .el-workflow-audit__grid--hp {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 480px) {
    .el-workflow-audit__grid,
    .el-workflow-audit__grid--hp {
        grid-template-columns: 1fr;
    }
}

/* Forms */
.el-form { display: flex; flex-direction: column; gap: 0.875rem; }
.el-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--el-text);
    margin-bottom: 0.375rem;
}
.el-input,
.el-select,
.el-textarea {
    width: 100%;
    border: 1px solid var(--el-border);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: var(--el-text);
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.el-input:focus,
.el-select:focus,
.el-textarea:focus {
    outline: none;
    border-color: var(--el-primary);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}
.el-input-sm { padding: 0.375rem 0.5rem; font-size: 0.8125rem; }
.el-input-money { text-align: right; font-variant-numeric: tabular-nums; }
.el-textarea { resize: vertical; min-height: 4rem; }

/* Loan create — modern form: bold titles, soft input fills, small notes */
.el-loan-form {
    --el-loan-input-bg: #f1f5f9;
    --el-loan-input-bg-hover: #e8eef4;
    --el-loan-input-border: #e2e8f0;
    --el-loan-note-size: 0.6875rem;
}
.el-loan-form > .el-page-title {
    font-weight: 800;
    font-size: 1.625rem;
    margin-bottom: 1.25rem;
}
.el-loan-form .el-form-section {
    margin-bottom: 1.25rem;
}
.el-loan-form .el-form-section.el-card {
    border: 1px solid var(--el-loan-input-border);
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgb(15 23 42 / 0.04);
}
.el-loan-form .el-form-section-title {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    padding-bottom: 0.75rem;
    margin-bottom: 1.125rem;
    border-bottom: 1px solid var(--el-loan-input-border);
}
.el-loan-form .el-form-section-title::before {
    content: '';
    flex-shrink: 0;
    width: 0.25rem;
    height: 1.125rem;
    background: linear-gradient(180deg, var(--el-primary-light), var(--el-primary));
    border-radius: 9999px;
}
.el-loan-form .el-form-section--info {
    background: linear-gradient(180deg, #f0f9ff 0%, #f8fafc 100%);
    border-color: #bae6fd;
}
.el-loan-form .el-form-section--info .el-form-section-title::before {
    background: linear-gradient(180deg, #38bdf8, #0284c7);
}
.el-loan-form .el-form-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding-bottom: 0.75rem;
    margin-bottom: 1.125rem;
    border-bottom: 1px solid var(--el-loan-input-border);
}
.el-loan-form .el-form-section-header .el-form-section-title {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.el-loan-form .el-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.375rem;
    line-height: 1.35;
    letter-spacing: 0.01em;
}
.el-loan-form .el-label-hint {
    font-weight: 500;
    font-size: var(--el-loan-note-size);
    color: var(--el-text-muted);
}
.el-loan-form .el-field {
    display: flex;
    flex-direction: column;
}
.el-loan-form .el-form-grid {
    display: grid;
    gap: 1.125rem;
}
@media (min-width: 768px) {
    .el-loan-form .el-form-grid--2 { grid-template-columns: repeat(2, 1fr); }
}
.el-loan-form .el-field-span-2 { grid-column: 1 / -1; }
.el-loan-form .el-input,
.el-loan-form .el-select,
.el-loan-form textarea.el-input {
    width: 100%;
    border: 1px solid var(--el-loan-input-border);
    border-radius: 0.625rem;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--el-text);
    background: var(--el-loan-input-bg);
    min-height: 2.625rem;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.el-loan-form .el-input::placeholder,
.el-loan-form textarea.el-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}
.el-loan-form .el-input:hover,
.el-loan-form .el-select:hover,
.el-loan-form textarea.el-input:hover {
    border-color: #cbd5e1;
    background: var(--el-loan-input-bg-hover);
}
.el-loan-form .el-input:focus,
.el-loan-form .el-select:focus,
.el-loan-form textarea.el-input:focus {
    outline: none;
    border-color: var(--el-primary);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
    background: #fff;
}
.el-loan-form .el-input[readonly],
.el-loan-form .el-input:read-only {
    background: #cbd5e1;
    border-color: #94a3b8;
    color: #1e293b;
    font-weight: 600;
    cursor: default;
}
.el-loan-form .el-select:disabled {
    background: #cbd5e1;
    border-color: #94a3b8;
    color: #1e293b;
    font-weight: 600;
    cursor: not-allowed;
    opacity: 1;
}
.el-loan-form .el-input:disabled {
    background: #cbd5e1;
    border-color: #94a3b8;
    color: #1e293b;
    font-weight: 600;
    cursor: not-allowed;
    opacity: 1;
}
.el-loan-form .el-input-sm {
    min-height: 2.125rem;
    padding: 0.4375rem 0.625rem;
    font-size: 0.8125rem;
    background: var(--el-loan-input-bg);
}
.el-loan-form .el-form-hint,
.el-loan-form .el-form-note {
    font-size: var(--el-loan-note-size);
    font-weight: 400;
    color: #64748b;
    margin-top: 0.3125rem;
    line-height: 1.45;
}
.el-loan-form .el-form-hint a.el-link {
    font-size: inherit;
}
.el-loan-form .el-form-note--accent {
    color: var(--el-primary);
    font-weight: 500;
}
.el-loan-form .el-form-empty {
    font-size: 0.8125rem;
    color: #94a3b8;
}
.el-loan-form .el-radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}
.el-loan-form .el-radio-row label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border: 1px solid var(--el-loan-input-border);
    border-radius: 9999px;
    background: var(--el-loan-input-bg);
    transition: all 0.15s ease;
}
.el-loan-form .el-radio-row label:hover {
    background: var(--el-loan-input-bg-hover);
    border-color: #cbd5e1;
}
.el-loan-form .el-radio-row label:has(input:checked) {
    background: #ecfdf5;
    border-color: var(--el-primary);
    color: var(--el-primary-dark);
}
.el-loan-form .el-selected-box {
    background: var(--el-loan-input-bg);
    border: 1px solid var(--el-loan-input-border);
    border-radius: 0.625rem;
    padding: 0.875rem 1rem;
}
.el-loan-form .el-selected-box .el-muted {
    font-size: 0.8125rem;
    color: #64748b;
}
.el-loan-form .el-selected-box .el-muted-xs {
    font-size: var(--el-loan-note-size);
    color: #94a3b8;
}
.el-loan-form .el-search-dropdown {
    margin-top: 0.3125rem;
    border: 1px solid var(--el-loan-input-border);
    border-radius: 0.625rem;
    max-height: 14rem;
    overflow-y: auto;
    background: #fff;
    box-shadow: 0 4px 12px rgb(15 23 42 / 0.08);
}
.el-customer-picker-input-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
}
.el-customer-picker-input-wrap .el-input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    padding-right: 2.5rem;
}
.el-customer-picker-toggle {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--el-loan-input-border);
    border-left: none;
    border-radius: 0 0.5rem 0.5rem 0;
    background: #f8fafc;
    color: #64748b;
    cursor: pointer;
}
.el-customer-picker-toggle:hover {
    background: #f1f5f9;
    color: #0f766e;
}
.el-customer-picker-toggle svg {
    width: 1rem;
    height: 1rem;
}
.el-customer-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--el-border);
    background: #f8fafc;
    position: sticky;
    top: 0;
    z-index: 1;
}
.el-customer-dropdown-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}
.el-customer-dropdown-item {
    padding: 0.625rem 0.75rem;
    font-size: 0.8125rem;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
}
.el-customer-dropdown-item:last-child {
    border-bottom: none;
}
.el-customer-dropdown-item--blocked {
    background: #fef2f2;
}
.el-customer-picker-flag {
    margin-top: 0.35rem;
    font-size: 0.75rem;
    line-height: 1.35;
}
.el-customer-picker-flag--blacklist {
    color: #991b1b;
}
.el-customer-picker-flag--reject {
    color: #92400e;
}
.el-customer-dropdown-empty {
    padding: 0.75rem;
    font-size: 0.8125rem;
    color: #94a3b8;
    text-align: center;
}

/* Loan / HP create — customer search dropdown (distinct color) */
.el-loan-form .el-customer-picker .el-customer-picker-input-wrap .el-input {
    background: #f0fdfa;
    border-color: #5eead4;
}
.el-loan-form .el-customer-picker .el-customer-picker-input-wrap .el-input:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
    background: #fff;
}
.el-loan-form .el-customer-picker .el-customer-picker-toggle {
    background: #ccfbf1;
    border-color: #5eead4;
    color: #0f766e;
}
.el-loan-form .el-customer-picker .el-customer-picker-toggle:hover {
    background: #99f6e4;
    color: #0d5c56;
}
.el-loan-form .el-customer-dropdown {
    border: 2px solid #14b8a6;
    border-radius: 0.625rem;
    box-shadow: 0 8px 20px rgb(15 118 110 / 0.12);
}
.el-loan-form .el-customer-dropdown-header {
    background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
    border-bottom: 1px solid #99f6e4;
}
.el-loan-form .el-customer-dropdown-label {
    color: #0f766e;
}
.el-loan-form .el-customer-dropdown-item {
    border-bottom-color: #ecfdf5;
}
.el-loan-form .el-customer-dropdown-item:hover,
.el-loan-form .el-customer-dropdown-item.el-hover-select:hover {
    background: #ecfdf5;
    border-left: 3px solid #0f766e;
    padding-left: calc(0.75rem - 3px);
}
.el-loan-form .el-customer-picker .el-selected-box {
    background: #ecfdf5;
    border: 2px solid #5eead4;
    border-radius: 0.625rem;
    padding: 0.75rem;
}
.el-loan-form .el-subsection-title {
    font-size: 0.8125rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.el-loan-form .el-form-panel {
    border: 1px solid var(--el-loan-input-border);
    border-radius: 0.625rem;
    padding: 1rem;
    background: #f8fafc;
}
.el-loan-form .el-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.25rem 0 1rem;
}
.el-loan-form .el-form-actions .el-btn {
    min-width: 9rem;
    font-weight: 600;
    border-radius: 0.625rem;
}
.el-loan-form .el-charge-totals {
    font-size: 0.8125rem;
    background: var(--el-loan-input-bg);
    border: 1px solid var(--el-loan-input-border);
    border-radius: 0.625rem;
    padding: 0.75rem 1rem;
}
.el-loan-form .el-charge-totals strong {
    font-weight: 700;
    color: #0f172a;
}
.el-loan-form .el-exposure-note {
    font-size: var(--el-loan-note-size);
    color: #c2410c;
    margin-top: 0.25rem;
    line-height: 1.4;
}

/* Buttons */
.el-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    line-height: 1.25;
}
.el-btn-primary {
    background: var(--el-primary);
    color: #fff;
}
.el-btn-primary:hover { background: var(--el-primary-dark); }
.el-btn-secondary {
    background: #fff;
    color: var(--el-text);
    border: 1px solid var(--el-border);
}
.el-btn-secondary:hover { background: #f8fafc; }
.el-btn-ghost {
    background: transparent;
    color: var(--el-primary);
    padding: 0.375rem 0.625rem;
    font-size: 0.8125rem;
}
.el-btn-ghost:hover { background: #f0fdfa; }
.el-btn-danger { background: var(--el-danger); color: #fff; }
.el-btn-danger:hover { background: #b91c1c; }
.el-btn-sm { padding: 0.375rem 0.75rem; font-size: 0.8125rem; }
.el-btn-block { width: 100%; }

/* Links */
.el-link {
    color: var(--el-primary);
    font-weight: 500;
    text-decoration: none;
    font-size: 0.8125rem;
}
.el-link:hover { color: var(--el-primary-dark); text-decoration: underline; }

/* Badges */
.el-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.2rem 0.625rem;
    border-radius: 9999px;
    text-transform: capitalize;
}
.el-badge-active { background: #d1fae5; color: #065f46; }
.el-badge-inactive { background: #fee2e2; color: #991b1b; }
.el-badge-pending { background: #fef3c7; color: #92400e; }
.el-badge-success { background: #d1fae5; color: #065f46; }
.el-badge-danger { background: #fee2e2; color: #991b1b; }

/* Reminder letter template editor — letter preview layout */
.el-letter-template-card {
    max-width: 52rem;
}
.el-letter-preview {
    background: #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.25rem;
}
.el-letter-preview__paper {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    padding: 2rem 2.25rem;
    min-height: 28rem;
}
.el-letter-subject-input {
    width: 100%;
    max-width: 24rem;
    margin: 0 auto;
    display: block;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.el-letter-field {
    margin-bottom: 0.75rem;
}
.el-letter-field__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6b7280;
    margin-bottom: 0.35rem;
}
.el-letter-field--action {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 0.5rem;
    padding: 0.75rem;
}
.el-letter-segment-flow {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.el-letter-text-box {
    width: 100%;
    display: block;
    padding: 0.6rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
    background: #fff;
    font: inherit;
    font-size: 0.875rem;
    line-height: 1.55;
    color: #111827;
    resize: vertical;
    min-height: 2.75rem;
    box-sizing: border-box;
}
.el-letter-text-box:focus {
    outline: none;
    border-color: #0f766e;
    box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.15);
}
.el-letter-text-box--title {
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.el-letter-text-box--section-title {
    font-weight: 700;
    text-transform: none;
    text-align: left;
}
.el-letter-label-input {
    width: 100%;
    padding: 0.4rem 0.55rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
    background: #fff;
    font: inherit;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: #111827;
    box-sizing: border-box;
}
.el-letter-label-input:focus {
    outline: none;
    border-color: #0f766e;
    box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.15);
}
.el-letter-account-table td {
    vertical-align: middle;
}
.el-letter-template-card__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}
.el-template-token {
    display: inline-block;
    background: #e5e7eb;
    color: #374151;
    border: 1px dashed #9ca3af;
    padding: 0.15rem 0.45rem;
    border-radius: 0.375rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.75rem;
    line-height: 1.25rem;
    user-select: none;
    cursor: not-allowed;
    vertical-align: baseline;
    margin: 0 0.1rem;
}
.el-template-token--inline {
    vertical-align: middle;
}
.el-template-token--html {
    background: #dbeafe;
    color: #1e40af;
    border-color: #93c5fd;
    font-size: 0.6875rem;
}
@media (max-width: 640px) {
    .el-letter-preview__paper {
        padding: 1.25rem 1rem;
    }
}

/* Alerts */
.el-alert {
    padding: 0.875rem 1rem;
    border-radius: var(--el-radius);
    margin-bottom: 1rem;
    font-size: 0.875rem;
    border: 1px solid;
}
.el-alert-success { background: #ecfdf5; border-color: #6ee7b7; color: #065f46; }
.el-alert-error { background: #fef2f2; border-color: #fca5a5; color: #991b1b; }

/* Stats (dashboard) */
.el-stat-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}
@media (min-width: 768px) { .el-stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .el-stat-grid { grid-template-columns: repeat(4, 1fr); } }
.el-stat-card {
    background: var(--el-surface);
    border-radius: var(--el-radius-lg);
    padding: 1.25rem;
    border: 1px solid var(--el-border);
    box-shadow: var(--el-shadow);
}
.el-stat-label { font-size: 0.8125rem; color: var(--el-text-muted); margin-bottom: 0.25rem; }
.el-stat-value { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; }
.el-stat-value.primary { color: var(--el-primary); }
.el-stat-value.success { color: var(--el-success); }
.el-stat-value.info { color: #2563eb; }
.el-stat-value.warning { color: var(--el-warning); }
.el-stat-value.danger { color: var(--el-danger); }

.el-stat-grid--compact {
    gap: 0.5rem;
    margin-bottom: 0.875rem;
    grid-template-columns: repeat(auto-fill, minmax(6.75rem, 1fr));
}
@media (min-width: 768px) {
    .el-stat-grid--compact { grid-template-columns: repeat(auto-fill, minmax(7.25rem, 1fr)); }
}
@media (min-width: 1280px) {
    .el-stat-grid--compact { grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); }
}
.el-stat-card--compact {
    padding: 0.5rem 0.625rem;
    min-width: 0;
}
.el-stat-card--compact .el-stat-label {
    font-size: 0.6875rem;
    margin-bottom: 0.125rem;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.el-stat-card--compact .el-stat-value {
    font-size: 0.875rem;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}
.el-stat-card--compact .el-stat-value--money {
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.el-stat-card--compact .text-xs {
    font-size: 0.5625rem;
    margin-top: 0.125rem;
    line-height: 1.1;
}

/* Dashboard layout */
.el-dashboard { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }

.el-dash-row {
    display: grid;
    gap: 0.875rem;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) { .el-dash-row--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .el-dash-row--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) { .el-dash-row--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .el-dash-row--3 { grid-template-columns: repeat(3, 1fr); } }
.el-dash-row--2 {
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .el-dash-row--2 { grid-template-columns: repeat(2, 1fr); }
}

/* Primary KPI cards (Row 1) */
.el-kpi {
    background: var(--el-surface);
    border: 1px solid var(--el-border);
    border-radius: var(--el-radius-lg);
    box-shadow: var(--el-shadow);
    padding: 1.125rem 1.25rem;
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
    min-width: 0;
    transition: box-shadow 0.15s, border-color 0.15s;
}
.el-kpi:hover { box-shadow: var(--el-shadow-md); border-color: #cbd5e1; }
.el-kpi--primary { padding: 1.25rem 1.375rem; }
.el-kpi-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.el-kpi--primary .el-kpi-icon { width: 2.75rem; height: 2.75rem; }
.el-kpi-icon svg { width: 1.25rem; height: 1.25rem; }
.el-kpi-icon--teal { background: #ecfdf5; color: #0f766e; }
.el-kpi-icon--amber { background: #fffbeb; color: #d97706; }
.el-kpi-icon--blue { background: #eff6ff; color: #2563eb; }
.el-kpi-body { min-width: 0; flex: 1; }
.el-kpi-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}
.el-kpi-header .el-kpi-label { margin: 0; flex: 1; min-width: 0; }
.el-kpi-details-link {
    flex-shrink: 0;
    padding: 0;
    border: none;
    background: none;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--el-primary);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.el-kpi-details-link:hover { color: #0d9488; }
.el-kpi-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--el-text-muted);
    margin: 0 0 0.25rem;
    line-height: 1.2;
}
.el-kpi--primary .el-kpi-label { font-size: 0.8125rem; }
.el-kpi-value {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
    margin: 0;
}
.el-kpi--primary .el-kpi-value { font-size: 1.75rem; }
.el-kpi-value--teal { color: var(--el-primary); }
.el-kpi-value--amber { color: var(--el-warning); }
.el-kpi-value--blue { color: #2563eb; }
.el-kpi-desc {
    font-size: 0.6875rem;
    color: var(--el-text-muted);
    margin: 0.375rem 0 0;
    line-height: 1.3;
}
.el-kpi-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f1f5f9;
}
.el-kpi-breakdown-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.6875rem;
    color: var(--el-text-muted);
    line-height: 1.35;
}
.el-kpi-breakdown-amt {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--el-text);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.el-kpi-breakdown-row--warn { color: #b45309; }
.el-kpi-breakdown-row--warn .el-kpi-breakdown-amt { color: #c2410c; }
.el-kpi-trend {
    font-size: 0.6875rem;
    font-weight: 600;
    margin: 0.375rem 0 0;
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
}
.el-kpi-trend--up { color: var(--el-success); }
.el-kpi-trend--down { color: var(--el-danger); }
.el-kpi-trend--flat { color: var(--el-text-muted); }

/* Monthly activity KPIs */
.el-kpi--activity {
    padding: 1.125rem 1.25rem;
}
.el-kpi-dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.25rem;
}
.el-kpi-dual-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--el-text-muted);
    margin-bottom: 0.125rem;
}
.el-kpi-dual-value {
    display: block;
    font-size: 1.375rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
}
.el-kpi--activity .el-kpi-trend {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.6875rem;
}

/* Operational status cards (Row 2) — smaller */
.el-kpi--ops {
    padding: 0.875rem 1rem;
    border-left-width: 3px;
    border-left-style: solid;
}
.el-kpi--ops .el-kpi-icon { width: 2rem; height: 2rem; }
.el-kpi--ops .el-kpi-icon svg { width: 1rem; height: 1rem; }
.el-kpi--ops .el-kpi-value { font-size: 1.25rem; }

/* Combined cash & bank treasury card on dashboard row 2 */
.el-kpi--treasury {
    padding: 1rem 1.125rem;
}
.el-kpi--treasury .el-kpi-icon {
    width: 2.25rem;
    height: 2.25rem;
}
.el-kpi--treasury .el-kpi-icon svg {
    width: 1.125rem;
    height: 1.125rem;
}
.el-kpi--treasury .el-kpi-label {
    font-size: 0.75rem;
    margin-bottom: 0.375rem;
}
.el-kpi-treasury-grid {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}
.el-kpi-treasury-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    min-width: 0;
}
.el-kpi-treasury-label {
    font-size: 0.6875rem;
    color: var(--el-text-muted);
    flex-shrink: 0;
}
.el-kpi-treasury-value {
    font-size: 0.9375rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    text-align: right;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.el-kpi-treasury-value--purple {
    color: #7c3aed;
}
.el-kpi--treasury .el-kpi-desc {
    margin-top: 0.5rem;
}
.el-kpi-desc-sep {
    margin: 0 0.25rem;
    color: var(--el-text-muted);
}
.el-kpi--green { border-left-color: var(--el-success); }
.el-kpi--orange { border-left-color: var(--el-warning); }
.el-kpi--purple { border-left-color: #7c3aed; }
.el-kpi--red { border-left-color: var(--el-danger); }
.el-kpi-value--green { color: var(--el-success); }
.el-kpi-value--orange { color: var(--el-warning); }
.el-kpi-value--purple { color: #7c3aed; }
.el-kpi-value--red { color: var(--el-danger); }

/* Portfolio health panel (Row 3) */
.el-dash-panel {
    background: var(--el-surface);
    border: 1px solid var(--el-border);
    border-radius: var(--el-radius-lg);
    box-shadow: var(--el-shadow);
    overflow: hidden;
}
.el-dash-panel-head {
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--el-border);
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}
.el-dash-panel-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--el-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.el-dash-panel-title svg { width: 1.125rem; height: 1.125rem; color: var(--el-primary); }
.el-dash-health-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}
@media (min-width: 768px) { .el-dash-health-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .el-dash-health-grid { grid-template-columns: repeat(6, 1fr); } }
.el-dash-health-item {
    padding: 1rem 1.125rem;
    border-right: 1px solid var(--el-border);
    border-bottom: 1px solid var(--el-border);
    text-align: center;
}
@media (min-width: 768px) {
    .el-dash-health-item { border-bottom: none; }
    .el-dash-health-item:last-child { border-right: none; }
}
.el-dash-health-label {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--el-text-muted);
    margin: 0 0 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.el-dash-health-value {
    font-size: 1.125rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    margin: 0;
    line-height: 1.2;
}
.el-dash-health-note {
    font-size: 0.6875rem;
    color: var(--el-text-muted);
    margin: 0.375rem 0 0;
    line-height: 1.3;
}

/* Charts */
.el-dash-charts-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.875rem;
}
@media (min-width: 1024px) {
    .el-dash-charts-main { grid-template-columns: 7fr 3fr; }
}
.el-dash-charts-secondary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.875rem;
}
@media (min-width: 768px) {
    .el-dash-charts-secondary { grid-template-columns: 1fr 1fr; }
}
.el-dash-chart-full {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.875rem;
}
.el-chart-card {
    background: var(--el-surface);
    border: 1px solid var(--el-border);
    border-radius: var(--el-radius-lg);
    padding: 1rem 1.125rem;
    box-shadow: var(--el-shadow);
    min-width: 0;
}
.el-chart-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--el-text);
    margin: 0 0 0.75rem;
}
.el-chart-wrap { position: relative; height: 240px; }
.el-chart-wrap--tall { height: 260px; }
.el-chart-wrap--donut { height: 220px; }
.el-chart-wrap--officer { height: 320px; }
.el-chart-wrap--issue-time { height: 300px; }
.el-chart-wrap--report { height: 300px; }
.el-report-chart-card .el-chart-title { font-weight: 600; color: #0f172a; margin-bottom: 0.25rem; }
.el-report-table tbody tr.el-report-row--selected td { background-color: #ecfdf5; }
.el-report-table .col-action { min-width: 5.5rem; text-align: center; white-space: nowrap; }

/* Action widgets (Row 6) */
.el-dash-widgets {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.875rem;
}
@media (min-width: 768px) { .el-dash-widgets { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .el-dash-widgets { grid-template-columns: repeat(4, 1fr); } }
.el-dash-widget {
    background: var(--el-surface);
    border: 1px solid var(--el-border);
    border-radius: var(--el-radius-lg);
    box-shadow: var(--el-shadow);
    overflow: hidden;
}
.el-dash-widget-head {
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border-bottom: 1px solid var(--el-border);
    background: #f8fafc;
}
.el-dash-widget-body { padding: 0.75rem 1rem; }
.el-dash-snapshot-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.8125rem;
    border-bottom: 1px solid #f1f5f9;
}
.el-dash-snapshot-row:last-child { border-bottom: none; font-weight: 700; padding-top: 0.625rem; }
.el-dash-snapshot-label { color: var(--el-text-muted); }
.el-dash-snapshot-value { font-variant-numeric: tabular-nums; font-weight: 600; }
.el-dash-arrears-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.5rem 0;
    font-size: 0.8125rem;
    border-bottom: 1px solid #f1f5f9;
    gap: 0.5rem;
}
.el-dash-arrears-row:last-child { border-bottom: none; }
.el-dash-arrears-name {
    font-weight: 500;
    min-width: 0;
    flex: 1;
}
.el-dash-arrears-name a { color: var(--el-text); text-decoration: none; }
.el-dash-arrears-name a:hover { color: var(--el-primary); }
.el-dash-arrears-meta {
    margin: 0.125rem 0 0;
    font-size: 0.6875rem;
    font-weight: 400;
    line-height: 1.35;
    color: var(--el-text-muted);
}
.el-dash-arrears-amt { color: var(--el-danger); font-weight: 700; font-variant-numeric: tabular-nums; flex-shrink: 0; padding-top: 0.125rem; }
.el-dash-upcoming-row {
    display: flex;
    justify-content: space-between;
    padding: 0.625rem 0;
    font-size: 0.8125rem;
    border-bottom: 1px solid #f1f5f9;
}
.el-dash-upcoming-row:last-child { border-bottom: none; }
.el-dash-upcoming-values {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.125rem;
    text-align: right;
}
.el-dash-upcoming-count {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--el-primary);
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}
.el-dash-upcoming-amount {
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--el-text);
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}
.el-dash-empty { font-size: 0.8125rem; color: var(--el-text-muted); text-align: center; padding: 1rem 0; }

/* Dashboard reference / glossary (page footer) */
.el-dash-glossary-head {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--el-border);
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}
.el-dash-glossary-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--el-text);
    margin: 0 0 0.25rem;
}
.el-dash-glossary-intro {
    font-size: 0.75rem;
    color: var(--el-text-muted);
    margin: 0;
}
.el-dash-glossary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0.5rem 0;
}
@media (min-width: 640px) {
    .el-dash-glossary-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .el-dash-glossary-grid { grid-template-columns: repeat(3, 1fr); }
}
.el-dash-glossary-group {
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}
@media (min-width: 1024px) {
    .el-dash-glossary-group { border-bottom: none; border-right: 1px solid #f1f5f9; }
    .el-dash-glossary-group:nth-child(3n) { border-right: none; }
}
.el-dash-glossary-group-title {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--el-primary);
    margin: 0 0 0.625rem;
}
.el-dash-glossary-list { margin: 0; }
.el-dash-glossary-item {
    margin-bottom: 0.625rem;
}
.el-dash-glossary-item:last-child { margin-bottom: 0; }
.el-dash-glossary-item dt {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--el-text);
    margin: 0 0 0.125rem;
}
.el-dash-glossary-item dd {
    font-size: 0.6875rem;
    color: var(--el-text-muted);
    margin: 0;
    line-height: 1.4;
}

/* Legacy stat helpers (reports etc.) */
.el-stat-sub {
    font-size: 0.6875rem;
    color: var(--el-text-muted);
    margin-top: 0.25rem;
    line-height: 1.1;
}
.el-insight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.el-insight-card {
    background: var(--el-surface);
    border: 1px solid var(--el-border);
    border-radius: var(--el-radius-lg);
    padding: 0.625rem 0.75rem;
    box-shadow: var(--el-shadow);
    min-width: 0;
}
.el-insight-label {
    font-size: 0.6875rem;
    color: var(--el-text-muted);
    line-height: 1.15;
    margin-bottom: 0.125rem;
}
.el-insight-value {
    font-size: 0.875rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}
.el-insight-hint {
    font-size: 0.5625rem;
    color: var(--el-text-muted);
    margin-top: 0.125rem;
    line-height: 1.1;
}

/* Modal / detail table: dark header, top-aligned */
.el-table--header-top thead {
    background: var(--el-nav-bg);
}
.el-table--header-top th {
    vertical-align: top;
    background: var(--el-nav-bg);
    color: #e2e8f0;
    border-bottom: 1px solid #334155;
    padding-top: 0.625rem;
    line-height: 1.3;
}
.el-table--header-top td.align-top,
.el-table--header-top .align-top {
    vertical-align: top;
}

/* Settings tabs */
.el-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--el-border);
    padding-bottom: 0;
    flex-wrap: wrap;
}
.el-tab {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--el-text-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.15s;
}
.el-tab:hover { color: var(--el-primary); }
.el-tab.active {
    color: var(--el-primary);
    border-bottom-color: var(--el-primary);
    font-weight: 600;
}

.el-actions { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }

.el-modal.is-hidden {
    display: none !important;
}

.el-modal--followup-again {
    z-index: 10100;
}

/* Modal */
.el-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}
.el-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
}
.el-modal-panel {
    position: relative;
    z-index: 1;
    background: var(--el-surface);
    border-radius: var(--el-radius-lg);
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    border: 1px solid var(--el-border);
    width: 100%;
    max-width: 32rem;
    max-height: calc(100vh - 2rem);
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin: auto;
    flex-shrink: 0;
}
.el-modal-panel.lg { max-width: 40rem; }
.el-modal-panel.xl { max-width: 56rem; }
/* Form inside modal — body scrolls, footer stays fixed at bottom */
.el-modal-panel > form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}
.el-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--el-border);
    flex-shrink: 0;
}
.el-modal-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--el-text);
    margin: 0;
}
.el-modal-close {
    width: 2rem;
    height: 2rem;
    border: none;
    background: transparent;
    color: var(--el-text-muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.el-modal-close:hover { background: #f1f5f9; color: var(--el-text); }
.el-modal-body {
    padding: 1.25rem;
    overflow-x: hidden;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}
.el-modal-body.el-form,
.el-modal-panel > form.el-form {
    gap: 0;
}
.el-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--el-border);
    background: #f8fafc;
    flex-shrink: 0;
}

/* Auth layout */
.el-auth-bg {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #134e4a 50%, #0f766e 100%);
    padding: 1rem;
}
.el-auth-card {
    background: var(--el-surface);
    border-radius: var(--el-radius-lg);
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    padding: 2rem;
    width: 100%;
    max-width: 26rem;
    border: 1px solid rgba(255,255,255,0.1);
}
.el-auth-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}
.el-auth-logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--el-primary);
    letter-spacing: -0.02em;
}
.el-auth-logo p { color: var(--el-text-muted); font-size: 0.875rem; margin-top: 0.25rem; }
.el-auth-logo img,
.el-auth-brand-logo {
    display: block;
    margin: 0 auto 0.75rem;
    max-height: 6.5rem;
    max-width: min(100%, 18rem);
    width: auto;
    height: auto;
    object-fit: contain;
}
.el-auth-logo .el-brand-icon {
    width: 3rem; height: 3rem;
    background: linear-gradient(135deg, var(--el-primary), var(--el-primary-light));
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}
.el-brand-icon--admin {
    background: linear-gradient(135deg, #7c3aed, #a78bfa) !important;
}
.el-auth-card--wide { max-width: 32rem; }
.el-landing-info {
    background: #f8fafc;
    border: 1px solid var(--el-border);
    border-radius: var(--el-radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}
.el-landing-version {
    font-size: 0.75rem;
    color: var(--el-text-muted);
    margin-bottom: 0.5rem;
}
.el-landing-features {
    list-style: disc;
    padding-left: 1.25rem;
    font-size: 0.8125rem;
    color: var(--el-text);
    line-height: 1.6;
}
.el-landing-footer {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.8125rem;
}
.el-link-muted {
    color: var(--el-text-muted);
    text-decoration: none;
}
.el-link-muted:hover { color: var(--el-primary); text-decoration: underline; }
.el-input-pin {
    font-size: 1.25rem;
    letter-spacing: 0.15em;
    text-align: center;
    font-weight: 600;
}
.el-form-hint {
    font-size: 0.75rem;
    color: var(--el-text-muted);
    margin-top: 0.35rem;
}

/* Repossession panel — prominent header */
.el-repo-panel .el-repo-panel-title,
.el-loan-view .el-repo-panel .el-fin-panel-title.el-repo-panel-title {
    color: #b91c1c;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.65rem 0.85rem;
    margin: -1.25rem -1.25rem 1rem;
    background: linear-gradient(180deg, #fef2f2 0%, #fff5f5 100%);
    border-bottom: 2px solid #fecaca;
    border-left: 4px solid #dc2626;
    border-radius: var(--el-radius-lg) var(--el-radius-lg) 0 0;
}

/* Bad debt write-off panel — adjacent to repossession */
.el-writeoff-panel .el-writeoff-panel-title,
.el-loan-view .el-writeoff-panel .el-fin-panel-title.el-writeoff-panel-title {
    color: #991b1b;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.65rem 0.85rem;
    margin: -1.25rem -1.25rem 1rem;
    background: linear-gradient(180deg, #fff1f2 0%, #fff5f5 100%);
    border-bottom: 2px solid #fda4af;
    border-left: 4px solid #e11d48;
    border-radius: var(--el-radius-lg) var(--el-radius-lg) 0 0;
}

/* Repossession — account snapshot on issue order form */
.el-repo-account-snapshot {
    margin: 0.75rem 0;
    padding: 0.5rem 0.65rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.375rem;
}
.el-repo-account-snapshot__header {
    margin: 0 0 0.35rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #dc2626;
    line-height: 1.3;
}
.el-repo-account-snapshot__body {
    margin: 0;
    font-size: 0.8125rem;
    color: #374151;
    line-height: 1.45;
}
.el-repo-account-snapshot__value {
    color: #dc2626;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.el-field-msg {
    font-size: 0.75rem;
    line-height: 1.4;
    margin-top: 0.35rem;
}
.el-field-msg--hint {
    color: var(--el-text-muted);
}
.el-field-msg--error {
    color: #dc2626;
    font-weight: 500;
}
.el-field-msg--ok {
    color: #16a34a;
    font-weight: 500;
}
.el-form-error {
    font-size: 0.75rem;
    color: #dc2626;
    margin-top: 0.35rem;
}
.el-input--valid {
    border-color: #16a34a;
}
.el-input--invalid {
    border-color: #dc2626;
    box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.15);
}
.el-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.875rem;
}
@media (min-width: 640px) {
    .el-form-grid--2 {
        grid-template-columns: repeat(2, 1fr);
    }
}
.el-form-grid-span-2 {
    grid-column: 1 / -1;
}
.el-form-check {
    display: flex;
    align-items: flex-end;
    padding-bottom: 0.25rem;
}
.el-check-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--el-text);
    cursor: pointer;
}
.el-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 0.25rem;
}
.el-table-plain td {
    border: none;
    padding: 0.5rem 0;
}
.el-table-plain tr.border-t td {
    border-top: 1px solid var(--el-border);
    padding-top: 0.75rem;
}
.el-form-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}
.el-nav-tenant {
    font-size: 0.75rem;
    color: var(--el-text-muted);
    padding: 0.35rem 0.65rem;
    border: 1px solid var(--el-border);
    border-radius: 999px;
    text-decoration: none;
    max-width: 10rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.el-nav-tenant:hover {
    color: var(--el-primary);
    border-color: var(--el-primary);
}
.el-body--super-admin { background: #f1f5f9; }
.el-super-admin-header {
    background: #1e1b4b;
    color: #fff;
    padding: 1rem 1.5rem;
}
.el-super-admin-inner {
    max-width: 72rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.el-super-admin-badge {
    display: inline-block;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(255,255,255,0.15);
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    margin-bottom: 0.35rem;
}
.el-super-admin-title {
    font-size: 1.125rem;
    font-weight: 600;
}
.el-super-admin-actions { display: flex; gap: 0.5rem; }
.el-main--padded { padding: 1.5rem; max-width: 72rem; margin: 0 auto; }
.el-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 900px) {
    .el-grid-2 { grid-template-columns: 1fr 1fr; }
}
.el-form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.el-edit-panel--wide { min-width: 22rem; }
.text-muted { color: var(--el-text-muted); }
.font-mono { font-family: ui-monospace, monospace; }

/* Report detail pages — header, back link, filter panel */
.el-report-page-header {
    margin-bottom: 1.25rem;
}
.el-report-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--el-primary);
    text-decoration: none;
    transition: color 0.15s;
}
.el-report-back-link svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}
.el-report-back-link:hover {
    color: var(--el-primary-dark, #0d5c56);
    text-decoration: underline;
}
.el-report-page-title {
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--el-text);
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.2;
}
.el-report-page-subtitle {
    margin: 0.35rem 0 0;
    font-size: 0.875rem;
    color: var(--el-text-muted);
    line-height: 1.45;
    max-width: 48rem;
}
.el-report-filters {
    background: var(--el-surface);
    border: 1px solid var(--el-border);
    border-radius: var(--el-radius-lg);
    box-shadow: var(--el-shadow);
    margin-bottom: 1.5rem;
    overflow: hidden;
}
.el-report-filters-header {
    padding: 1rem 1.25rem;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid var(--el-border);
}
.el-report-filters-title {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--el-text);
}
.el-report-filters-hint {
    margin: 0.25rem 0 0;
    font-size: 0.75rem;
    color: var(--el-text-muted);
}
.el-report-filters-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.875rem 1rem;
    padding: 1.25rem;
}
@media (min-width: 640px) {
    .el-report-filters-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
    .el-report-filters-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1280px) {
    .el-report-filters-grid { grid-template-columns: repeat(4, 1fr); }
}
.el-report-filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}
.el-report-filter-field--narrow {
    max-width: 10rem;
}
.el-report-filter-row-break {
    grid-column: 1 / -1;
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
}
.el-report-filter-field .el-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--el-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0;
}
.el-report-filters-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem 1.25rem;
    border-top: 1px solid var(--el-border);
    background: #fafbfc;
}
.el-report-detail-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 1.75rem 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--el-border);
}
.el-report-detail-heading .el-section-title {
    margin-bottom: 0;
    font-size: 1.0625rem;
}
.el-report-detail-count {
    font-size: 0.8125rem;
    color: var(--el-text-muted);
    font-weight: 500;
}
.el-report-summary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
@media (min-width: 640px) {
    .el-report-summary-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
    .el-report-summary-grid--3 { grid-template-columns: repeat(3, 1fr); }
    .el-report-summary-grid--4 { grid-template-columns: repeat(4, 1fr); }
    .el-report-summary-grid--5 { grid-template-columns: repeat(5, 1fr); }
    .el-report-summary-grid--6 { grid-template-columns: repeat(6, 1fr); }
}
.el-report-stat-card {
    background: var(--el-surface);
    border: 1px solid var(--el-border);
    border-radius: var(--el-radius-lg);
    padding: 1rem 1.125rem;
    box-shadow: var(--el-shadow);
}
.el-report-stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--el-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0 0 0.35rem;
}
.el-report-stat-value {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--el-text);
    margin: 0;
    line-height: 1.2;
}
.el-report-stat-value--lg { font-size: 1.75rem; }
.el-report-stat-value--success { color: #059669; }
.el-report-stat-value--danger { color: #dc2626; }
.el-report-stat-value--accent { color: #7c3aed; }
.el-report-stat-value--accent-dark { color: #5b21b6; }

/* Reminder letter print */
.el-reminder-print-body { background: #fff; }
.el-reminder-letter {
    padding: 0.5rem 0 2rem;
}
.el-reminder-doc { font-size: 0.9375rem; line-height: 1.5; }

/* Report icons */
.el-report-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
}
.el-report-icon svg {
    width: 1.375rem;
    height: 1.375rem;
}
.el-report-icon--teal { background: #ecfdf5; color: #0f766e; }
.el-report-icon--amber { background: #fffbeb; color: #d97706; }
.el-report-icon--blue { background: #eff6ff; color: #2563eb; }
.el-report-icon--red { background: #fef2f2; color: #dc2626; }
.el-report-icon--purple { background: #f5f3ff; color: #7c3aed; }
.el-report-icon--slate { background: #f1f5f9; color: #475569; }
.el-report-hub-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1.5rem;
}
.el-report-hub-header .el-report-icon {
    width: 3rem;
    height: 3rem;
}
.el-report-hub-header .el-report-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}
.el-report-hub-header .el-report-page-title {
    margin: 0;
}
.el-report-page-title-row {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}
.el-report-page-title-row .el-report-icon {
    width: 2.75rem;
    height: 2.75rem;
}
.el-report-page-title-row .el-report-page-title {
    margin: 0;
}
.el-report-filters-header-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.el-report-filters-header-main .el-report-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.625rem;
}
.el-report-filters-header-main .el-report-icon svg {
    width: 1.125rem;
    height: 1.125rem;
}

/* Reports hub grid — 3 columns on desktop, 4 on wide screens */
.el-reports-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 640px) {
    .el-reports-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
    .el-reports-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1280px) {
    .el-reports-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Report hub cards */
.el-report-hub-card {
    background: var(--el-surface);
    border-radius: var(--el-radius-lg);
    padding: 1.25rem;
    border: 1px solid var(--el-border);
    box-shadow: var(--el-shadow);
    transition: all 0.15s;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.el-report-hub-card .el-report-icon {
    width: 2.75rem;
    height: 2.75rem;
}
.el-report-hub-card:hover {
    border-color: var(--el-primary);
    box-shadow: var(--el-shadow-md);
    transform: translateY(-1px);
}
.el-report-hub-card:hover .el-report-icon--teal { background: #ccfbf1; }
.el-report-hub-card:hover .el-report-icon--blue { background: #dbeafe; }
.el-report-hub-card:hover .el-report-icon--amber { background: #fef3c7; }
.el-report-hub-card:hover .el-report-icon--red { background: #fee2e2; }
.el-report-hub-card:hover .el-report-icon--purple { background: #ede9fe; }
.el-report-hub-card:hover .el-report-icon--slate { background: #e2e8f0; }
.el-report-card-body {
    min-width: 0;
    flex: 1;
}
.el-report-card-body h3 {
    font-weight: 600;
    color: var(--el-primary);
    margin: 0 0 0.25rem;
    font-size: 0.9375rem;
    line-height: 1.35;
}
.el-report-card-body p {
    font-size: 0.8125rem;
    color: var(--el-text-muted);
    margin: 0;
    line-height: 1.45;
}

/* Grid helpers */
.el-grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 1024px) { .el-grid-2 { grid-template-columns: 1fr 1fr; } }
.el-grid-2-wide { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 1024px) { .el-grid-2-wide { grid-template-columns: 2fr 1fr; } }

/* Selected/highlight states */
.el-selected { background: #f0fdfa !important; }
.el-hover-select:hover { background: #f0fdfa; cursor: pointer; }

/* Report tables — horizontal scroll + column widths */
.el-report-stat-grid > .el-card { min-width: 0; }
.el-report-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}
.el-report-stat-value--md { font-size: 1.25rem; }
.el-report-stat-value--sm { font-size: 1.0625rem; }
.el-report-stat-value--xs { font-size: 0.875rem; }

.el-report-sort-link {
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}
.el-report-sort-link:hover { color: var(--el-primary); }
.el-report-sort-link.is-active {
    color: var(--el-primary);
    font-weight: 700;
}
.el-report-sort-arrow {
    font-size: 0.75rem;
    line-height: 1;
}

.el-report-card { margin-bottom: 1.5rem; }
.el-report-scroll {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}
.el-report-table {
    width: max-content;
    min-width: 100%;
    table-layout: auto;
}
.el-report-table th,
.el-report-table td {
    white-space: nowrap;
    vertical-align: middle;
}
.el-report-table .col-date { min-width: 5.5rem; }
.el-report-table .col-loan { min-width: 6.5rem; }
.el-report-table .col-customer { min-width: 9rem; max-width: 14rem; white-space: normal; }
.el-report-table .col-branch { min-width: 6rem; }
.el-report-table .col-officer { min-width: 7rem; }
.el-report-table .col-receipt { min-width: 6.5rem; }
.el-report-table .col-desc { min-width: 10rem; max-width: 18rem; white-space: normal; }
.el-report-table .col-num { min-width: 5.5rem; text-align: right; }
.el-report-table .col-pct { min-width: 4.5rem; text-align: right; }
.el-report-table .col-type { min-width: 5rem; }
.el-report-table .col-user { min-width: 5.5rem; }
.el-report-table .col-reason { min-width: 10rem; max-width: 16rem; white-space: normal; }
.el-report-table .col-address { min-width: 10rem; max-width: 16rem; white-space: normal; }
.el-report-table .col-tel { min-width: 6rem; }
/* Report financial accents — interest (blue) and D/I (teal) */
.el-report-interest { color: #1d4ed8; }

/* Hide interest/profit when tenant or user has no profit access. */
body.el-tenant-no-profits .el-report-interest,
body.el-tenant-no-profits th.el-report-interest-h,
body.el-tenant-no-profits .el-report-interest-kpi,
body.el-tenant-no-profits .el-report-charges-income,
body.el-tenant-no-profits .el-tenant-profit-row,
body.el-tenant-no-profits .el-ledger-interest,
body.el-tenant-no-profits .el-ledger-interest-row,
body.el-tenant-no-profits .el-ledger-capital-col,
body.el-tenant-no-profits .el-ledger-interest-col,
body.el-tenant-no-profits .el-schedule-profit-col {
    display: none !important;
}

@media print {
    body.el-tenant-no-profits .el-ledger-interest,
    body.el-tenant-no-profits .el-ledger-interest-row,
    body.el-tenant-no-profits .el-ledger-capital-col,
    body.el-tenant-no-profits .el-ledger-interest-col,
    body.el-tenant-no-profits .el-schedule-profit-col {
        display: none !important;
    }
}
.el-report-di { color: #0f766e; }
.el-report-table tbody tr.el-report-row--np td { background-color: #fecaca; }

/* Collection timing row highlights */
.el-report-table tr.el-row-late td { background-color: #fef2f2; }
.el-report-table tr.el-row-early td { background-color: #ecfdf5; }
.el-collection-timing-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--el-text-muted);
    margin-bottom: 0.75rem;
}
.el-collection-timing-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}
.el-collection-timing-swatch {
    width: 0.875rem;
    height: 0.875rem;
    border-radius: 0.125rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
}
.el-collection-timing-swatch--late { background: #fef2f2; }
.el-collection-timing-swatch--early { background: #ecfdf5; }
.el-collection-timing-swatch--timely { background: #fff; }

.el-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--el-border);
    background: #f8fafc;
    font-size: 0.8125rem;
}
.el-pagination-links { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.el-pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.5rem;
    border: 1px solid var(--el-border);
    border-radius: 0.375rem;
    background: #fff;
    color: var(--el-text);
    text-decoration: none;
    font-size: 0.8125rem;
}
.el-pagination-btn:hover { border-color: var(--el-primary); color: var(--el-primary); }
.el-pagination-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
button.el-pagination-btn {
    cursor: pointer;
    font-family: inherit;
}
.el-pagination-btn.active {
    background: var(--el-primary);
    border-color: var(--el-primary);
    color: #fff;
    font-weight: 600;
}

@media print {
    .el-report-back-link,
    .el-report-filters,
    .el-report-filters-actions { display: none !important; }
    .el-report-scroll { overflow: visible; }
    .el-report-table { width: 100%; font-size: 9px; }
    .el-pagination { display: none !important; }
}

/* Financial document styling — shared (ledger, loan view, schedules) */
.el-fin-page,
.el-ledger-page {
    font-family: 'Times New Roman', Times, 'Liberation Serif', Georgia, serif;
    font-size: 0.9375rem;
    line-height: 1.35;
    color: #111;
}

/* Keep UI chrome in the app sans-serif */
.el-fin-page .el-page-header,
.el-fin-page .el-page-title,
.el-fin-page .el-btn,
.el-fin-page label,
.el-fin-page .el-modal,
.el-fin-page .el-card.el-card-padded,
.el-fin-page .el-loan-form,
.el-ledger-page .el-page-header,
.el-ledger-page .el-page-title,
.el-ledger-page .el-btn,
.el-ledger-page label,
.el-ledger-page .el-modal,
.el-ledger-page .el-card.el-card-padded,
.el-ledger-page .no-print:not(.el-ledger-table):not(.el-table-wrap) {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.el-fin-wrap,
.el-ledger-page .el-table-wrap {
    border: 1px solid #333;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
    padding: 0;
    overflow-x: auto;
}

/* Table wrap inside cards — no outer border, table cells keep borders */
.el-loan-view .el-fin-panel .el-fin-wrap,
.el-loan-view .el-schedule-block .el-fin-wrap,
.el-loan-form .el-fin-wrap {
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.el-fin-table,
.el-ledger-page .el-ledger-table {
    width: 100%;
    border-collapse: collapse;
    font-size: inherit;
    table-layout: auto;
}

.el-fin-table th,
.el-fin-table td,
.el-ledger-page .el-ledger-table th,
.el-ledger-page .el-ledger-table td {
    border: 1px solid #333;
    padding: 0.4rem 0.55rem;
    vertical-align: middle;
}

.el-fin-table thead th,
.el-ledger-page .el-ledger-table thead th {
    background: #e8e8e8 !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.6875rem;
    letter-spacing: 0.04em;
    color: #000;
    border-bottom: 1px solid #333;
}

.el-fin-table tfoot td,
.el-ledger-page .el-ledger-table tfoot td {
    font-weight: 700;
    background: #f0f0f0 !important;
    border: 1px solid #333;
}

.el-fin-table tfoot .foot-label,
.el-ledger-page .el-ledger-table tfoot .foot-label {
    text-align: right;
    text-transform: uppercase;
    font-size: 0.6875rem;
    letter-spacing: 0.03em;
}

.el-fin-table th.num,
.el-fin-table td.num,
.el-fin-table .text-right,
.el-ledger-page .el-ledger-table th.num,
.el-ledger-page .el-ledger-table td.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.el-fin-table th.text-center,
.el-fin-table td.text-center {
    text-align: center;
    white-space: normal;
}

.el-fin-table td.bal,
.el-fin-table td.num.font-medium,
.el-fin-table tfoot .foot-bal,
.el-ledger-page .el-ledger-table td.bal,
.el-ledger-page .el-ledger-table td.num.font-medium,
.el-ledger-page .el-ledger-table tfoot .foot-bal {
    font-weight: 700;
}

.el-fin-table tbody tr:hover,
.el-ledger-page .el-ledger-table tbody tr:hover {
    background-color: transparent;
}

.el-fin-table tbody tr:last-child td,
.el-ledger-page .el-ledger-table tbody tr:last-child td {
    border-bottom: 1px solid #333;
}

.el-fin-table td.empty,
.el-ledger-page .el-ledger-table td.empty {
    text-align: center;
    padding: 1.25rem;
    color: #666;
    font-style: italic;
}

/* Schedule table row states */
.el-schedule-table .el-schedule-row-paid { background: #f4faf4; }
.el-schedule-table .el-schedule-row-charge { background: #fffef8; }
.el-schedule-table .el-schedule-desc,
.el-ledger-table td.desc {
    white-space: pre-line;
}

/* Loan / HP view page — card boxes with shadow; tables keep financial borders */
.el-loan-view .el-fin-table {
    font-family: 'Times New Roman', Times, 'Liberation Serif', Georgia, serif;
    font-size: 0.9375rem;
    color: #111;
}

/* Account view header — left: title + toolbar; right: customer photo */
.el-page-header.el-account-view-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "title customer"
        "actions customer";
    align-items: start;
    gap: 0.875rem 1.5rem;
    flex-wrap: nowrap;
    padding: 1.25rem 1.35rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.04), 0 8px 24px rgb(15 23 42 / 0.04);
}
.el-account-view-header__main {
    display: contents;
}
.el-account-view-header__title {
    grid-area: title;
    min-width: 0;
}
.el-account-view-header__title .el-page-title {
    letter-spacing: -0.02em;
    color: #0f172a;
}
.el-account-view-header__actions {
    grid-area: actions;
    max-width: 100%;
    min-width: 0;
}

/* Compact remarks under account header title */
.el-account-remarks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.625rem;
}
.el-account-remarks--compact {
    margin: 0.875rem 0 1rem;
    max-width: none;
}
.el-account-remarks--full {
    margin-bottom: 1.5rem;
}
.el-account-remarks__card {
    padding: 0.625rem 0.75rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.625rem;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.03);
}
.el-account-remarks__card--has-content {
    border-color: #fbbf24;
    background: #fffbeb;
}
.el-account-remarks__label {
    margin: 0 0 0.2rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}
.el-account-remarks__text {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #334155;
    white-space: pre-wrap;
}
@media (max-width: 640px) {
    .el-account-remarks {
        grid-template-columns: 1fr;
    }
}

/* Professional segmented account toolbar — uniform button color + soft teal hover */
.el-account-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.625rem;
}
.el-account-toolbar__group {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}
.el-account-toolbar__form {
    display: inline-flex;
    margin: 0;
}
.el-account-toolbar__btn,
.el-account-toolbar .el-btn,
.el-account-toolbar button.el-account-followup-link,
.el-account-toolbar .el-btn-primary,
.el-account-toolbar .el-btn-secondary,
.el-account-toolbar .el-btn-ghost,
.el-account-toolbar__dropdown > .el-account-toolbar__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin: 0;
    box-sizing: border-box;
    width: 10.5rem;
    min-width: 10.5rem;
    max-width: 10.5rem;
    min-height: 2.25rem;
    padding: 0.45rem 0.75rem;
    border: 1px solid #1e293b;
    border-radius: 0.5rem;
    background: #f8fafc;
    color: #0f172a;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: none;
    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}
.el-account-toolbar__btn:hover,
.el-account-toolbar .el-btn:hover,
.el-account-toolbar .el-btn-primary:hover,
.el-account-toolbar .el-btn-secondary:hover,
.el-account-toolbar .el-btn-ghost:hover {
    background: #e2e8f0;
    border-color: #0f172a;
    color: #0f172a;
    text-decoration: none;
    transform: none;
    box-shadow: none;
}
.el-account-toolbar__btn:active,
.el-account-toolbar .el-btn:active,
.el-account-toolbar .el-btn-primary:active,
.el-account-toolbar .el-btn-secondary:active {
    background: #cbd5e1;
    border-color: #0f172a;
    color: #0f172a;
    transform: none;
    box-shadow: none;
}
.el-account-toolbar__btn:focus-visible,
.el-account-toolbar .el-btn:focus-visible {
    outline: 2px solid #64748b;
    outline-offset: 2px;
}
.el-account-toolbar .el-btn-danger {
    background: #fff5f5;
    border-color: #7f1d1d;
    color: #7f1d1d;
}
.el-account-toolbar .el-btn-danger:hover {
    background: #fee2e2;
    border-color: #7f1d1d;
    color: #7f1d1d;
    box-shadow: none;
}
.el-account-toolbar__btn--menu {
    padding-right: 0.55rem;
}
.el-account-toolbar__dropdown {
    display: inline-flex;
    width: 10.5rem;
    min-width: 10.5rem;
    max-width: 10.5rem;
}
.el-account-toolbar__dropdown > .el-account-toolbar__btn {
    width: 100%;
}
.el-account-toolbar__chevron {
    width: 0.875rem;
    height: 0.875rem;
    opacity: 0.75;
    transition: transform 0.18s ease;
}
.el-account-toolbar__btn--menu:hover .el-account-toolbar__chevron {
    opacity: 1;
}
.el-account-toolbar .el-account-approval-actions {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
}
.el-account-toolbar .el-account-approval-inline {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
}
.el-account-toolbar .el-account-approval-inline .el-input {
    width: 9rem;
    min-width: 7rem;
    min-height: 2.05rem;
    border-radius: 0.5rem;
}
.el-account-toolbar .el-account-approval-inline input[type="date"].el-input {
    width: 10.5rem;
    min-width: 9.5rem;
}
.el-account-toolbar--inline {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.125rem;
}
.el-account-toolbar--inline .el-account-toolbar__group {
    flex: 0 0 auto;
}

.el-account-view-header__inline-form {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    white-space: nowrap;
}
.el-account-view-header__inline-form .el-input {
    width: 10rem;
    min-width: 8rem;
    flex: 0 1 auto;
}

/* Legacy follow-up link — still used outside toolbar */
.el-account-followup-link {
    display: inline;
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--el-primary, #0f766e);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    white-space: nowrap;
    flex: 0 0 auto;
}
.el-account-followup-link:hover {
    color: var(--el-primary-dark, #115e59);
}
.el-account-approval-actions {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.375rem;
    flex: 0 0 auto;
}
.el-account-approval-inline {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.375rem;
    flex: 0 0 auto;
}
.el-account-approval-inline .el-input {
    width: 9.5rem;
    min-width: 7rem;
}
.el-account-approval-inline input[type="date"].el-input {
    width: 10.5rem;
    min-width: 9.5rem;
}
.el-account-view-header__customer {
    grid-area: customer;
    align-self: start;
    justify-self: end;
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 7rem;
    max-width: 7rem;
    overflow: hidden;
}
/* Force passport size even when grid column or Tailwind img rules expand */
.el-account-view-header__customer .el-passport-photo-frame,
.el-account-view-header__customer .el-account-header-customer__photo--passport,
.el-account-view-header__customer img {
    width: 7rem;
    height: 9rem;
    max-width: 7rem;
    max-height: 9rem;
    object-fit: cover;
    object-position: center top;
}
.el-account-view-header__meta {
    margin: 0.3rem 0 0;
    font-size: 0.9375rem;
    color: #475569;
    line-height: 1.45;
}
.el-account-view-header__address {
    margin: 0.25rem 0 0;
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.4;
    max-width: 40rem;
}
.el-account-header-customer {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 0.75rem 1rem;
    background: var(--el-surface);
    border: 1px solid var(--el-border);
    border-radius: var(--el-radius-lg);
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
}

/* Header — passport photo only (details are in the customer panel) */
.el-account-header-customer--photo-only {
    display: flex;
    flex-shrink: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    justify-content: flex-end;
    align-items: flex-start;
}

/* Fixed passport-size frame (35×45 mm proportions) — prevents huge uploads from stretching layout */
.el-passport-photo-frame {
    width: 7rem;
    height: 9rem;
    max-width: 7rem;
    max-height: 9rem;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: var(--el-radius);
    border: 2px solid var(--el-border);
    background: #f8fafc;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.06);
}
.el-passport-photo-frame__img {
    width: 100%;
    height: 100%;
    max-width: 7rem;
    max-height: 9rem;
    display: block;
    object-fit: cover;
    object-position: center top;
}
.el-passport-photo-frame__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    background: #f1f5f9;
}
.el-passport-photo-frame__icon {
    width: 2rem;
    height: 2rem;
}

.el-account-header-customer__photo-wrap {
    flex-shrink: 0;
}
.el-account-header-customer__photo {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: var(--el-radius);
    border: 2px solid var(--el-border);
    object-fit: cover;
    background: #f8fafc;
}

/* Legacy passport class — keep for any older markup; same fixed size as el-passport-photo-frame */
.el-account-header-customer__photo--passport {
    width: 7rem;
    height: 9rem;
    max-width: 7rem;
    max-height: 9rem;
    border-radius: var(--el-radius);
    border: 2px solid var(--el-border);
    object-fit: cover;
    object-position: center top;
}
.el-account-header-customer__photo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    background: #f1f5f9;
}
.el-account-header-customer__photo-icon {
    width: 2rem;
    height: 2rem;
}
.el-account-header-customer__details {
    margin: 0;
    min-width: 0;
    flex: 1 1 auto;
    display: grid;
    gap: 0.35rem;
    font-size: 0.8125rem;
    line-height: 1.4;
}
.el-account-header-customer__details dt {
    color: var(--el-text-muted);
    font-weight: 500;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.el-account-header-customer__details dd {
    margin: 0;
    color: var(--el-text);
    word-break: break-word;
}

/* Customer panel on loan / HP account view (right column) */
.el-account-view-customer-panel__head {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
}
.el-account-view-customer-panel__photo-wrap {
    flex-shrink: 0;
}
.el-account-view-customer-panel__info .el-fin-panel-title {
    margin-bottom: 0.375rem;
}
.el-account-view-customer-panel__history .el-customer-history-btn {
    width: 100%;
}

.el-account-customer-bank__title {
    margin: 0 0 0.625rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--el-text);
}
.el-account-customer-bank__dl {
    display: grid;
    gap: 0.5rem;
    margin: 0;
}
.el-account-customer-bank__dl div {
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    gap: 0.5rem;
    align-items: start;
}
.el-account-customer-bank__dl dt {
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--el-text-muted);
}
.el-account-customer-bank__dl dd {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--el-text);
    word-break: break-word;
}
.el-account-customer-bank__passbook {
    margin-top: 0.75rem;
}
.el-account-customer-bank__passbook-label {
    margin: 0 0 0.375rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--el-text-muted);
}
.el-account-customer-bank__passbook-thumb {
    display: block;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    background: #fff;
    overflow: hidden;
    cursor: pointer;
    max-width: 7rem;
}
.el-account-customer-bank__passbook-thumb img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 992px) {
    .el-page-header.el-account-view-header {
        grid-template-columns: 1fr;
        grid-template-areas:
            "customer"
            "title"
            "actions";
    }
    .el-account-view-header__customer {
        align-self: auto;
        justify-self: center;
        height: auto;
        width: 7rem;
        max-width: 7rem;
    }
    .el-account-header-customer--photo-only {
        justify-content: center;
    }
    .el-account-toolbar {
        width: 100%;
    }
    .el-account-toolbar__group {
        width: 100%;
    }
    .el-account-toolbar__btn,
    .el-account-toolbar .el-btn {
        flex: 1 1 auto;
    }
    .el-account-view-header__inline-form {
        width: 100%;
    }
}
@media (max-width: 480px) {
    .el-account-toolbar__group {
        flex-direction: column;
        align-items: stretch;
    }
    .el-account-toolbar__btn,
    .el-account-toolbar .el-btn,
    .el-account-toolbar__form {
        width: 100%;
    }
}

.el-loan-view .el-fin-panel {
    background: var(--el-surface);
    border-radius: var(--el-radius-lg);
    box-shadow: var(--el-shadow);
    border: 1px solid var(--el-border);
    padding: 1.25rem;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 0.875rem;
}

.el-loan-view .el-fin-panel-title {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border-bottom: none;
    text-transform: none;
    letter-spacing: normal;
    padding-bottom: 0;
    margin-bottom: 1rem;
    color: var(--el-text);
}

.el-loan-view .el-fin-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1.5rem;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 0.875rem;
}

.el-loan-view .el-fin-details dt {
    font-size: inherit;
    text-transform: none;
    letter-spacing: normal;
    color: var(--el-text-muted);
    font-weight: normal;
}

.el-loan-view .el-fin-details dd {
    margin: 0;
    font-weight: 500;
    color: var(--el-text);
}

.el-loan-view .el-fin-details .col-span-2 {
    grid-column: span 2 / span 2;
}

/* Installment progress summary on loan / HP view */
.el-loan-view .el-inst-summary {
    padding: 1.25rem 1.25rem 1rem;
}

.el-inst-summary-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.el-inst-summary-hint {
    margin: 0.25rem 0 0;
    font-size: 0.8125rem;
    color: var(--el-text-muted);
}

.el-inst-summary-progress-label {
    font-size: 0.8125rem;
    color: var(--el-text-muted);
    white-space: nowrap;
}

.el-inst-summary-progress-pct {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--el-success);
}

.el-inst-summary-bar {
    display: flex;
    width: 100%;
    height: 0.5rem;
    border-radius: 999px;
    overflow: hidden;
    background: #e2e8f0;
    margin-bottom: 0.5rem;
}

.el-inst-summary-bar-seg {
    display: block;
    height: 100%;
    min-width: 0;
}

.el-inst-summary-bar-seg--paid { background: #16a34a; }
.el-inst-summary-bar-seg--arrears { background: #dc2626; }
.el-inst-summary-bar-seg--future { background: #94a3b8; }

.el-inst-summary-bar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin: 0 0 1rem;
    font-size: 0.75rem;
    color: var(--el-text-muted);
}

.el-inst-summary-swatch {
    display: inline-block;
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 2px;
    margin-right: 0.35rem;
    vertical-align: middle;
}

.el-inst-summary-swatch--paid { background: #16a34a; }
.el-inst-summary-swatch--arrears { background: #dc2626; }
.el-inst-summary-swatch--future { background: #94a3b8; }

.el-inst-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .el-inst-summary-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.el-inst-summary-card {
    border: 1px solid var(--el-border);
    border-radius: var(--el-radius);
    padding: 0.875rem 1rem;
    background: #f8fafc;
}

.el-inst-summary-card-label {
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--el-text-muted);
}

.el-inst-summary-card-value {
    margin: 0.25rem 0 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--el-text);
    font-variant-numeric: tabular-nums;
}

.el-inst-summary-card-meta {
    margin: 0.25rem 0 0;
    font-size: 0.75rem;
    color: var(--el-text-muted);
}

.el-inst-summary-card--paid {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.el-inst-summary-card--paid .el-inst-summary-card-value {
    color: #15803d;
}

.el-inst-summary-card--arrears {
    border-color: #fecaca;
    background: #fef2f2;
}

.el-inst-summary-card--arrears .el-inst-summary-card-value {
    color: #b91c1c;
}

.el-inst-summary-card--future {
    border-color: #cbd5e1;
    background: #fff;
}

.el-inst-summary-card--future .el-inst-summary-card-value {
    color: #475569;
}

.el-loan-view .el-schedule-block {
    background: var(--el-surface);
    border-radius: var(--el-radius-lg);
    box-shadow: var(--el-shadow);
    border: 1px solid var(--el-border);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.el-loan-view .el-schedule-block .el-schedule-head {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--el-border);
}

.el-loan-view .el-schedule-block .el-section-title {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-transform: none;
    letter-spacing: normal;
    color: var(--el-text);
}

/* Schedule preview inside loan forms uses financial font */
.el-loan-form .el-fin-wrap,
.el-loan-form .el-fin-table {
    font-family: 'Times New Roman', Times, 'Liberation Serif', Georgia, serif;
    font-size: 0.875rem;
    color: #111;
}

.el-loan-view .el-fin-notice {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    border: none;
    border-left: 4px solid #2563eb;
    border-radius: var(--el-radius-lg);
    background: #eff6ff;
    padding: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.el-loan-view .el-fin-notice--warning {
    border-left-color: #d97706;
    background: #fffbeb;
}

.el-fin-notice--danger {
    border-left: 4px solid #dc2626;
    border-radius: var(--el-radius-lg);
    background: #fef2f2;
    padding: 1rem;
    font-size: 0.875rem;
}

.el-account-approval-actions {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.375rem;
}

.el-account-reject-form {
    flex-wrap: wrap;
}

.el-ops-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    width: 100%;
    text-align: left;
    padding: 1rem 1.125rem;
    border: 1px solid var(--el-border);
    border-radius: var(--el-radius-lg);
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: var(--el-shadow);
    transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}
.el-ops-card:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}
.el-ops-card.is-active {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}
.el-ops-card__count {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--el-text);
    line-height: 1.1;
}
.el-ops-card__label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--el-text);
}
.el-ops-card__hint {
    display: block;
    font-size: 0.75rem;
    color: var(--el-text-muted);
}

.el-operations-page__tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.el-operations-page__panel[x-cloak] {
    display: none !important;
}
@media (max-width: 768px) {
    .el-operations-page__tabs {
        grid-template-columns: 1fr;
    }
}

.el-loan-view .el-fin-list-item {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    border-bottom: 1px solid var(--el-border);
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.el-loan-view .el-fin-list-item:last-child {
    border-bottom: none;
}

/* HP product / description under account titles and ledgers */
.el-account-hp-desc {
    margin-top: 0.35rem;
}

.el-account-hp-desc__product {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--el-text);
}

.el-account-hp-desc__text {
    margin: 0.15rem 0 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 0.8125rem;
    color: var(--el-text-muted);
    line-height: 1.4;
}

.el-account-hp-desc__text--compact {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.el-ledger-page .el-account-hp-desc__product,
.el-ledger-page .el-account-hp-desc__text {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.el-ledger-page--print .el-account-hp-desc {
    display: none;
}

/* Payment collection — customer card above payment entry */
.el-collect-customer__body {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.el-collect-customer__photo-wrap {
    flex-shrink: 0;
}

.el-collect-customer__photo {
    width: 5.5rem;
    height: 5.5rem;
    border-radius: var(--el-radius);
    border: 2px solid var(--el-border);
    object-fit: cover;
    background: #f8fafc;
}

.el-collect-customer__photo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    background: #f1f5f9;
}

.el-collect-customer__photo-icon {
    width: 2.5rem;
    height: 2.5rem;
}

.el-collect-customer__details {
    min-width: 0;
}

.el-collect-customer__name {
    margin: 0 0 0.35rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--el-text);
}

.el-collect-customer__meta {
    margin: 0;
    font-size: 0.875rem;
    color: var(--el-text-muted);
    line-height: 1.45;
}

/* Payment collection — prominent entry panel */
.el-collect-payment-panel {
    background: linear-gradient(180deg, #f0fdfa 0%, #fff 42%);
    border: 2px solid var(--el-primary);
    border-radius: var(--el-radius-lg);
    box-shadow: var(--el-shadow-md);
    padding: 1.5rem 1.75rem;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.el-collect-payment-panel__title {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--el-primary-dark);
}

.el-collect-payment-panel__hint {
    margin: 0 0 1.25rem;
    font-size: 0.8125rem;
    color: var(--el-text-muted);
}

.el-collect-payment-panel__label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--el-primary-dark);
}

.el-collect-amount {
    width: 100%;
    font-size: 2rem;
    font-weight: 700;
    text-align: right;
    padding: 0.75rem 1rem;
    border: 2px solid var(--el-primary-light);
    border-radius: var(--el-radius);
    background: #fff;
    color: var(--el-text);
    font-variant-numeric: tabular-nums;
}

.el-collect-amount:focus {
    outline: none;
    border-color: var(--el-primary);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
}

.el-collect-submit {
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
}

/* D/I add / deduct inside Account Summary */
.el-collect-di-box {
    border: 2px solid #cbd5e1;
    border-radius: var(--el-radius);
    padding: 0.75rem;
    background: #fff;
}

.el-collect-di-box--add {
    border-color: #059669;
    background: #f0fdf4;
}

.el-collect-di-box--deduct {
    border-color: #dc2626;
    background: #fef2f2;
}

.el-collect-di-box__title {
    margin: 0 0 0.65rem;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.el-collect-di-box--add .el-collect-di-box__title {
    color: #047857;
}

.el-collect-di-box--deduct .el-collect-di-box__title {
    color: #b91c1c;
}

.el-collect-di-input {
    border: 1px solid #94a3b8 !important;
    background: #fff !important;
}

.el-collect-di-input:focus {
    border-color: var(--el-primary) !important;
    box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.15);
}

.el-collect-di-box .el-label {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

.el-loan-view .el-fin-details--single {
    grid-template-columns: 1fr;
    gap: 0.65rem;
}

.el-fin-details--summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1.25rem;
}

@media (min-width: 768px) {
    .el-fin-details--summary {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.el-collect-summary-panel {
    flex: 1 1 auto;
}

.el-collect-summary-panel .el-collection-summary {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.el-collection-summary .el-fin-panel-title {
    margin-bottom: 0.75rem;
}

.el-collection-summary__top {
    margin-bottom: 0;
}

.el-collection-summary__details {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--el-border);
}

.el-ledger-page--print .el-ledger-print-summary {
    font-family: 'Times New Roman', Times, serif;
    font-size: 9px;
    border: 1px solid #333;
    padding: 4px 6px;
    margin-bottom: 4px;
}

.el-ledger-page--print .el-ledger-print-summary .el-fin-panel-title {
    font-size: 9px;
    margin-bottom: 4px;
}

.el-ledger-page--print .el-ledger-print-summary .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px 8px;
    font-size: 8px;
}

/* Loan ledger — screen (extends shared financial styles) */
.el-ledger-row-installment { background: #fff; }
.el-ledger-row-charge { background: #fffef8; }
.el-ledger-row-payment { background: #f4faf4; }
.el-ledger-row-payment td { color: #1a472a; }
.el-ledger-row-rebate { background: #f0fdfa; }
.el-ledger-row-rebate td { color: #0f766e; }
.el-ledger-row-writeoff { background: #fff1f2; }
.el-ledger-row-writeoff td { color: #b91c1c; font-weight: 500; }
.el-ledger-row-rebate-reversed { background: #f7f7f7; color: #555; text-decoration: line-through; opacity: 0.9; }
.el-ledger-row-payment-reversed { background: #f7f7f7; color: #555; text-decoration: line-through; opacity: 0.9; }
.el-ledger-row-reversal { background: #fdf6f6; }
.el-ledger-row-reversal td { color: #7f1d1d; }
.el-ledger-row-di-add { background: #f9f7fc; }
.el-ledger-row-di-add td { color: #4c1d95; }
.el-ledger-row-di-credit { background: #faf8fd; }
.el-ledger-row-di-credit td { color: #5b21b6; }
.el-ledger-row-di-add-cancelled,
.el-ledger-row-di-credit-cancelled { text-decoration: line-through; opacity: 0.75; background: #f5f5f5; }
.el-ledger-row-due-skip-period { background: #9ca3af; }
.el-ledger-row-due-skip-period td { color: #1f2937; font-style: italic; font-weight: 500; }
.el-ledger-row-due-skip-period .desc,
.el-ledger-row-due-skip-period .num { color: #1f2937; }
.el-ledger-actions { vertical-align: middle; text-align: center; white-space: nowrap; }
.el-ledger-cancel-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: none;
    border-radius: 0.375rem;
    background: transparent;
    color: #b91c1c;
    cursor: pointer;
}
.el-ledger-cancel-icon svg { width: 1.125rem; height: 1.125rem; }
.el-ledger-cancel-icon:hover { background: #fef2f2; color: #991b1b; }
.el-ledger-swatch-installment { background: #fff; border: 1px solid var(--el-border); }
.el-ledger-swatch-payment { background: #ecfdf5; border: 1px solid #a7f3d0; }
.el-ledger-swatch-reversal { background: #fef2f2; border: 1px solid #fecaca; }
.el-ledger-swatch-payment-reversed { background: #f7f7f7; border: 1px solid #d1d5db; opacity: 0.85; }
.el-ledger-swatch-due-skip-period { background: #9ca3af; border: 1px solid #6b7280; }

.print-only { display: none; }

/* Loan ledger — compact print sheet */
.el-print-body { padding: 0.75rem; background: #fff; }
.el-ledger-page--print {
    max-width: 100%;
    font-family: 'Times New Roman', Times, 'Liberation Serif', Georgia, serif;
    font-size: 10px;
    line-height: 1.25;
    color: #000;
}
.el-ledger-print-header { margin-bottom: 0.5rem; border-bottom: 1px solid #000; padding-bottom: 0.35rem; }
.el-ledger-print-company-block { text-align: center; margin-bottom: 0.35rem; }
.el-ledger-print-logo-center { max-height: 48px; max-width: 120px; object-fit: contain; margin: 0 auto 0.25rem; display: block; }
.el-ledger-print-company-name { font-size: 14px; display: block; font-weight: 700; }
.el-ledger-print-profile { font-size: 9px; color: #333; margin: 0.15rem 0 0; }
.el-ledger-print-address,
.el-ledger-print-contact { font-size: 9px; color: #333; margin: 0.1rem 0 0; }
.el-ledger-print-brand { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.25rem; }
.el-ledger-print-logo { max-height: 28px; max-width: 48px; object-fit: contain; }
.el-ledger-print-company { font-size: 11px; display: block; }
.el-ledger-print-tel { font-size: 9px; color: #333; }
.el-ledger-print-title { font-size: 12px; font-weight: 700; text-align: center; margin: 0.2rem 0 0.35rem; text-transform: uppercase; letter-spacing: 0.04em; }
.el-ledger-print-meta { width: 100%; border-collapse: collapse; font-size: 9px; margin-bottom: 0.25rem; }
.el-ledger-print-meta td { padding: 1px 6px 1px 0; vertical-align: top; width: 33.33%; }
.el-ledger-print-meta .lbl { font-weight: 600; margin-right: 0.25rem; }
.el-ledger-table--print { width: 100%; border-collapse: collapse; font-size: 9px; table-layout: fixed; }
.el-ledger-table--print thead { display: table-header-group; }
.el-ledger-table--print tfoot { display: table-footer-group; }
.el-ledger-table--print th,
.el-ledger-table--print td { border: 1px solid #333; padding: 2px 4px; vertical-align: top; }
.el-ledger-table--print th { background: #e8e8e8 !important; font-weight: 700; text-align: left; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.el-ledger-table--print th.num,
.el-ledger-table--print td.num { text-align: right; white-space: nowrap; }
.el-ledger-table--print td.date { white-space: nowrap; width: 11%; }
.el-ledger-table--print td.desc { word-wrap: break-word; }
.el-ledger-table--print td.bal { font-weight: 600; }
.el-ledger-table--print td.empty { text-align: center; padding: 1rem; }
.el-ledger-table--print tfoot td { font-weight: 700; background: #f0f0f0 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.el-ledger-table--print tfoot .foot-label { text-align: right; }
.el-ledger-table--print tfoot .foot-bal { font-size: 10px; }
.el-ledger-table--print .rev-tag { font-size: 8px; font-weight: 600; }
.el-ledger-print-legend { margin-top: 0.35rem; font-size: 8px; color: #444; text-align: center; }
.el-ledger-print-legend .rev-sample { text-decoration: line-through; }

/* Print row markers — work on B&W printers */
.el-ledger-page--print .el-ledger-row-payment td { color: #000 !important; background: #e8f5e9 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.el-ledger-page--print .el-ledger-row-rebate td { color: #000 !important; background: #e0f2f1 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.el-ledger-page--print .el-ledger-row-charge td { background: #fff8e1 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.el-ledger-page--print .el-ledger-row-reversal td { background: #ffebee !important; color: #000 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.el-ledger-page--print .el-ledger-row-payment-reversed td { text-decoration: line-through; opacity: 1; background: #f5f5f5 !important; }
.el-ledger-page--print .el-ledger-row-due-skip-period td { background: #9ca3af !important; color: #1f2937 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }

/* Payment receipt — duplicate reprint watermark */
.el-receipt-wrap { position: relative; overflow: hidden; }
.el-receipt-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-35deg);
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: rgba(185, 28, 28, 0.18);
    border: 4px solid rgba(185, 28, 28, 0.22);
    padding: 0.35rem 1.25rem;
    pointer-events: none;
    z-index: 5;
    white-space: nowrap;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

/* POS thermal receipt — compact */
.el-receipt-pos {
    max-width: 80mm;
    font-size: 12px;
}

.el-print-receipt--pos .el-receipt-pos {
    margin-left: auto;
    margin-right: auto;
}

/* A5 formal collection receipt — full paper width */
.el-receipt-a5 {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0.5rem 0.25rem;
    font-family: 'Times New Roman', Times, 'Liberation Serif', Georgia, serif;
    font-size: 11pt;
    line-height: 1.35;
    color: #111;
    box-sizing: border-box;
}

/* Logo left, company name/address right */
.el-print-brand-split {
    display: flex;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.35rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid #333;
}

.el-print-brand-split--no-logo .el-print-brand-split-info {
    width: 100%;
}

.el-print-brand-split-logo {
    flex: 0 0 32%;
    max-width: 40mm;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.el-print-brand-split-logo img {
    display: block;
    max-height: 18mm;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

.el-print-brand-split-info {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.el-print-brand-name {
    font-size: 13pt;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.15rem;
}

.el-print-brand-profile {
    font-size: 9pt;
    color: #333;
    margin: 0 0 0.1rem;
    line-height: 1.3;
}

.el-print-brand-contact {
    font-size: 8.5pt;
    color: #444;
    margin: 0;
    line-height: 1.3;
}

.el-print-doc-title {
    text-align: center;
    font-weight: 700;
    font-size: 11pt;
    margin: 0.2rem 0 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.el-receipt-a5 .text-center h1 {
    font-size: 14pt;
}

.el-receipt-a5-reversed {
    text-align: center;
    color: #b91c1c;
    font-weight: 700;
    font-size: 12pt;
    margin: 0 0 0.5rem;
}

.el-receipt-a5-header-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.2rem 1rem;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    padding: 0.35rem 0;
    margin-bottom: 0.45rem;
    font-size: 10pt;
}

.el-receipt-a5-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.4rem;
    min-width: 0;
}

.el-receipt-a5-meta .lbl {
    font-weight: 700;
    white-space: nowrap;
}

.el-receipt-a5-meta .val {
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

.el-receipt-a5-amount-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.25rem 0 0.4rem;
    font-size: 10.5pt;
}

.el-receipt-a5-amount-table td {
    padding: 0.28rem 0.45rem;
    border-bottom: 1px solid #ccc;
    vertical-align: top;
}

.el-receipt-a5-amount-table td.num {
    text-align: right;
    white-space: nowrap;
    width: 38%;
}

.el-receipt-a5-total-row td {
    border-top: 2px solid #333;
    border-bottom: 2px solid #333;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
}

.el-receipt-a5-settlement {
    font-size: 9.5pt;
    color: #0f766e;
    margin: 0 0 0.5rem;
}

.el-receipt-a5-words {
    margin: 0.4rem 0 0.3rem;
    font-size: 10pt;
    border: 1px solid #999;
    padding: 0.3rem 0.5rem;
    background: #fafafa;
}

.el-receipt-a5-words .lbl {
    font-weight: 700;
    display: block;
    margin-bottom: 0.2rem;
}

.el-receipt-a5-balance {
    margin: 0.25rem 0 0;
    font-size: 11pt;
}

.el-receipt-a5-balance .lbl {
    font-weight: 700;
    margin-right: 0.35rem;
}

.el-receipt-a5-signatures {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.85rem;
    padding-top: 0;
    font-size: 9.5pt;
    text-align: center;
}

.el-receipt-a5-sig-line {
    border-bottom: 1px solid #333;
    height: 1.5rem;
    margin-bottom: 0.25rem;
}

.el-receipt-a5-sig-block p {
    margin: 0;
    font-weight: 600;
}

.el-receipt-a5-thanks {
    text-align: center;
    font-size: 9pt;
    color: #666;
    margin: 0.45rem 0 0;
}

.el-print-receipt--a5 .el-receipt-a5 {
    width: 100%;
    max-width: none;
}

.el-print-receipt--a5 .el-receipt-watermark {
    font-size: 2rem;
    padding: 0.25rem 0.75rem;
    border-width: 3px;
}

.el-print-body.el-print-receipt--a5 {
    max-width: 148mm;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
}

.el-print-body.el-print-receipt--a5 .el-receipt-a5 {
    padding: 0.7cm 1.2cm 1cm 1.2cm;
    box-sizing: border-box;
}

.el-print-body.el-print-receipt--pos {
    max-width: 80mm;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
}

/* Print */
@media print {
    @page { size: A4 portrait; margin: 8mm 10mm; }
    body.el-print-receipt .el-receipt-wrap {
        box-shadow: none !important;
    }
    body.el-print-receipt--a5 .el-receipt-a5 {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0.7cm 1.2cm 1cm 1.2cm !important;
        box-sizing: border-box !important;
        border-width: 0;
        font-size: 10pt;
    }
    body.el-print-receipt--a5 .el-print-brand-split-logo img {
        max-height: 16mm;
    }
    body.el-print-receipt--a5 .el-print-brand-name {
        font-size: 12pt;
    }
    body.el-print-receipt--a5 .el-print-brand-profile {
        font-size: 8.5pt;
    }
    body.el-print-receipt--a5 .el-print-brand-contact {
        font-size: 8pt;
    }
    body.el-print-receipt--a5 .el-receipt-a5-header-grid {
        font-size: 9.5pt;
    }
    body.el-print-receipt--a5 .el-receipt-a5-amount-table {
        font-size: 10pt;
    }
    body.el-print-receipt--a5 .el-receipt-watermark {
        font-size: 1.75rem;
        letter-spacing: 0.1em;
    }
    body.el-print-receipt--pos .el-receipt-pos {
        width: 100% !important;
        max-width: 80mm !important;
        margin: 0 auto !important;
        padding: 0.25rem !important;
        border-width: 0;
        font-size: 10px;
    }
    body.el-print-receipt--pos .el-receipt-watermark {
        font-size: 1.5rem;
    }
    .no-print, .el-nav { display: none !important; }
    .print-only { display: block !important; }
    body, .el-print-body { font-size: 10px; background: #fff !important; padding: 0 !important; margin: 0 !important; }
    .el-ledger-page { font-size: 9px; max-width: 100%; }
    .el-ledger-page--print { font-size: 9px; }
    .el-ledger-page .el-ledger-table { width: 100%; border-collapse: collapse; font-size: 9px; table-layout: fixed; }
    .el-ledger-page .el-ledger-table thead { display: table-header-group; }
    .el-ledger-page .el-ledger-table tfoot { display: table-footer-group; }
    .el-ledger-page .el-ledger-table th,
    .el-ledger-page .el-ledger-table td { border: 1px solid #333; padding: 2px 4px; vertical-align: top; }
    .el-ledger-page .el-ledger-table th { background: #e8e8e8 !important; font-weight: 700; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .el-ledger-page .el-ledger-table th.num,
    .el-ledger-page .el-ledger-table td.num { text-align: right; white-space: nowrap; }
    .el-ledger-page .el-ledger-table tr { page-break-inside: avoid; }
    .el-ledger-page .el-ledger-table thead tr { page-break-after: avoid; }
    .el-ledger-table--print tr { page-break-inside: avoid; }
    .el-ledger-table--print thead tr { page-break-after: avoid; }
    .el-card, .el-table-wrap { box-shadow: none !important; border: none !important; }
}

/* Recovery officer collection — mobile-first 3-column grid */
.el-recovery-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-radius: 0.45rem;
    overflow: hidden;
    border: 1px solid var(--el-border);
}

.el-recovery-head-wrap {
    width: 100%;
    max-width: 100%;
    padding: 0 0.5rem;
    box-sizing: border-box;
}

.el-recovery-head {
    display: flex;
    gap: 6px;
    padding: 0 0.35rem 0.2rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
}

.el-recovery-head__col {
    min-width: 0;
}

.el-recovery-head__col:nth-child(1) { flex: 1.05 1 0; }
.el-recovery-head__col:nth-child(2) { flex: 1 1 0; }
.el-recovery-head__col:nth-child(3) { flex: 0.95 1 0; }

.el-recovery-head__col:last-child {
    text-align: right;
}

.el-recovery-card {
    border: none;
    border-top: 1px dashed #94a3b8;
    border-bottom: 1px dashed #94a3b8;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    overflow: hidden;
}

.el-recovery-card + .el-recovery-card {
    border-top: none;
}

.el-recovery-card__row {
    display: flex;
    align-items: center;
    min-height: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.el-recovery-card__row::-webkit-scrollbar {
    display: none;
}

.el-recovery-card__core {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 2px 0.35rem;
    background: #fff;
    scroll-snap-align: start;
}

.el-recovery-card__col {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.2rem;
}

.el-recovery-card__col--account { flex: 1.05 1 0; }
.el-recovery-card__col--dues { flex: 1 1 0; }
.el-recovery-card__col--amount { flex: 0.95 1 0; }

.el-recovery-loan {
    font-size: 0.72rem;
    font-weight: 700;
    color: #0f766e;
    line-height: 1.2;
    word-break: break-all;
}

.el-recovery-custom {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #b45309;
    line-height: 1.2;
    margin-top: 0.05rem;
}

.el-recovery-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.25;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}

.el-recovery-center {
    font-size: 0.68rem;
    color: #6b7280;
    line-height: 1.25;
    margin-top: 0.125rem;
}

.el-recovery-tel {
    font-size: 0.68rem;
    color: #2563eb;
    text-decoration: none;
    line-height: 1.2;
}

.el-recovery-tel.is-empty {
    color: #9ca3af;
}

.el-recovery-dues-block {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    line-height: 1.2;
}

.el-recovery-dues-block + .el-recovery-dues-block {
    margin-top: 0.35rem;
}

.el-recovery-dues-block.is-arrears .el-recovery-v {
    color: #dc2626;
    font-weight: 700;
}

.el-recovery-k {
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #9ca3af;
    line-height: 1.2;
}

.el-recovery-v {
    font-size: 0.74rem;
    font-weight: 600;
    color: #111827;
    word-break: break-word;
    line-height: 1.2;
}

.el-recovery-amount {
    width: 100%;
    margin: 0;
    padding: 0.5rem 0.55rem;
    min-height: 2.5rem;
    border: 1px solid #0d9488;
    border-radius: 0.3rem;
    font-size: 0.95rem;
    line-height: 1.25;
    font-weight: 700;
    text-align: right;
    color: #065f46;
    background: #f0fdfa;
    box-sizing: border-box;
}

.el-recovery-amount:focus {
    outline: none;
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
}

.el-recovery-amount:disabled {
    opacity: 0.55;
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #6b7280;
}

.el-recovery-card__extras-wrap {
    flex: 0 0 auto;
    min-width: 9rem;
    overflow: visible;
    background: #f9fafb;
    border-left: 2px solid #e5e7eb;
    scroll-snap-align: start;
}

.el-recovery-card__extras {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 2px 0.3rem;
    min-width: max-content;
    justify-content: center;
}

.el-recovery-chip {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    padding: 0.2rem 0.35rem;
    border-radius: 0.4rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    min-width: 5.5rem;
}

.el-recovery-chip--wide {
    min-width: 8.5rem;
}

.el-recovery-chip-k {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #9ca3af;
    letter-spacing: 0.03em;
}

.el-recovery-chip-v {
    font-size: 0.72rem;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

.el-recovery-total-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.5rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid #bbf7d0;
    border-radius: 0.65rem;
    background: #ecfdf5;
}

.el-recovery-total-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #065f46;
}

.el-recovery-total-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #047857;
}

@media (min-width: 768px) {
    .el-recovery-head-wrap {
        width: 58%;
        max-width: 58%;
    }

    .el-recovery-head {
        grid-template-columns: 1.2fr 1fr 0.8fr;
        max-width: 100%;
        font-size: 0.7rem;
    }

    .el-recovery-card__row {
        overflow-x: visible;
        scroll-snap-type: none;
    }

    .el-recovery-card__core {
        flex: 0 0 58%;
        width: 58%;
        min-width: 0;
        max-width: 58%;
        grid-template-columns: 1.2fr 1fr 0.8fr;
        padding: 0.75rem 0.85rem;
        gap: 6px 10px;
        border-right: 2px solid #e5e7eb;
    }

    .el-recovery-loan { font-size: 0.8rem; }
    .el-recovery-custom { font-size: 0.68rem; }
    .el-recovery-name {
        font-size: 0.875rem;
        display: block;
        -webkit-line-clamp: unset;
        overflow: visible;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
    .el-recovery-v { font-size: 0.8rem; }
    .el-recovery-amount {
        min-height: 3rem;
        padding: 0.6rem 0.65rem;
        font-size: 1.05rem;
    }

    .el-recovery-card__extras-wrap {
        flex: 1;
        min-width: 0;
        border-left: none;
    }

    .el-recovery-card__extras {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        min-width: 0;
        padding: 0.75rem;
    }
}

/* Recovery overview — admin/manager daily collection list */
.el-recovery-overview-scroll {
    overflow-x: auto;
    max-width: 100%;
}

.el-recovery-overview-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.el-recovery-overview-table th,
.el-recovery-overview-table td {
    padding: 0.55rem 0.45rem;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}

.el-recovery-overview-table thead th {
    background: #f9fafb;
    border-bottom: 2px solid #d1d5db;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6b7280;
    white-space: normal;
    line-height: 1.25;
    text-align: left;
}

.el-recovery-overview-table tbody tr:hover td {
    background-color: #f9fafb;
}

.el-recovery-overview-table tbody tr.is-confirmed td {
    background-color: #f3f4f6;
}

.el-recovery-overview-table tbody tr.is-confirmed:hover td {
    background-color: #eceff1;
}

.el-recovery-overview .el-recovery-officer-cell {
    width: 6.5rem;
    max-width: 6.5rem;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.35;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: capitalize;
    color: #111827;
    hyphens: auto;
}

.el-recovery-overview .el-recovery-branch-cell {
    width: 5.5rem;
    max-width: 5.5rem;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    font-size: 0.72rem;
    line-height: 1.3;
    color: #4b5563;
}

.el-recovery-overview .col-ro-num {
    width: 2.75rem;
    text-align: center;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.el-recovery-overview .col-ro-amt {
    width: 5.25rem;
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    font-size: 0.75rem;
}

.el-recovery-overview .col-ro-pct {
    width: 2.5rem;
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.el-recovery-overview .col-ro-status {
    width: 3.25rem;
    text-align: center;
}

.el-recovery-overview .col-ro-status .el-badge {
    display: inline-block;
    padding: 0.15rem 0.35rem;
    font-size: 0.625rem;
    line-height: 1.2;
}

.el-recovery-overview .col-ro-actions {
    width: auto;
}

.el-recovery-overview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    align-items: center;
    justify-content: flex-start;
}

.el-recovery-overview-actions .el-btn-sm {
    padding: 0.2rem 0.45rem;
    font-size: 0.6875rem;
    line-height: 1.2;
    min-height: 0;
}

.el-recovery-overview-action-form {
    display: inline;
    margin: 0;
}

.el-recovery-overview-undo {
    position: relative;
    display: inline-block;
}

.el-recovery-overview-undo-form {
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 20;
    margin-top: 0.25rem;
    padding: 0.5rem;
    min-width: 10rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

@media (min-width: 1024px) {
    .el-recovery-overview-scroll {
        overflow-x: visible;
    }

    .el-recovery-overview .el-recovery-officer-cell {
        width: 8%;
    }

    .el-recovery-overview .el-recovery-branch-cell {
        width: 7%;
    }

    .el-recovery-overview .col-ro-num {
        width: 5%;
    }

    .el-recovery-overview .col-ro-amt {
        width: 11%;
    }

    .el-recovery-overview .col-ro-pct {
        width: 5%;
    }

    .el-recovery-overview .col-ro-status {
        width: 6%;
    }

    .el-recovery-overview .col-ro-actions {
        width: 22%;
    }
}

/* Settlement with rebate modal */
.el-settlement-backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.55);
}

.el-settlement-modal {
    width: 100%;
    max-width: 42rem;
    max-height: calc(100vh - 2rem);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--el-radius-lg);
    box-shadow: var(--el-shadow-lg);
    border: 1px solid var(--el-border);
}

.el-settlement-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--el-border);
    background: linear-gradient(180deg, #f0fdfa 0%, #fff 100%);
}

.el-settlement-modal__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--el-primary-dark);
}

.el-settlement-modal__subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    color: var(--el-text-muted);
}

.el-settlement-modal__close {
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
}

.el-settlement-modal__body {
    padding: 1.25rem 1.5rem;
    overflow-y: auto;
}

.el-settlement-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--el-border);
    background: #f8fafc;
}

.el-settlement-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.el-settlement-label {
    display: block;
    font-size: 0.75rem;
    color: var(--el-text-muted);
    margin-bottom: 0.15rem;
}

.el-settlement-value {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.el-settlement-breakdown,
.el-settlement-rebate,
.el-settlement-overpay,
.el-settlement-totals {
    border: 1px solid var(--el-border);
    border-radius: var(--el-radius);
    padding: 0.875rem 1rem;
    background: #fff;
}

.el-settlement-breakdown__title {
    margin: 0 0 0.65rem;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--el-text-muted);
}

.el-settlement-breakdown__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.el-settlement-overpay {
    border-color: #f59e0b;
    background: #fffbeb;
}

.el-settlement-overpay__title {
    margin: 0 0 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #b45309;
}

.el-settlement-totals__row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0;
    font-size: 0.875rem;
}

.el-settlement-totals__row--final {
    margin-top: 0.5rem;
    padding-top: 0.65rem;
    border-top: 1px dashed var(--el-border);
    font-size: 1rem;
    font-weight: 700;
}

.el-settlement-final {
    font-size: 1.25rem;
    color: var(--el-primary-dark);
}

.el-settlement-alert {
    padding: 0.75rem 1rem;
    border-radius: var(--el-radius);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.el-settlement-alert--error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

@media (max-width: 640px) {
    .el-settlement-summary-grid {
        grid-template-columns: 1fr;
    }
}

/* Account view — customer column photo thumbnails */
.el-account-photos__thumb {
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background: #f9fafb;
    overflow: hidden;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.el-account-photos__thumb:hover {
    border-color: #0f766e;
    box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.15);
}

.el-account-photos__label {
    display: block;
    padding: 0.35rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #6b7280;
    background: #fff;
    border-bottom: 1px solid #f3f4f6;
}

.el-account-photos__img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 12rem;
    object-fit: contain;
    background: #f3f4f6;
}

/* Full-screen photo lightbox */
.el-photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.88);
}

.el-photo-lightbox__panel {
    display: flex;
    flex-direction: column;
    width: min(100%, 56rem);
    max-height: calc(100dvh - 2rem);
    background: #fff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
}

.el-photo-lightbox__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.el-photo-lightbox__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
}

.el-photo-lightbox__actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.el-photo-lightbox__body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: #111827;
    min-height: 12rem;
    overflow: auto;
}

.el-photo-lightbox__img {
    display: block;
    max-width: 100%;
    max-height: calc(100dvh - 8rem);
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Dashboard tabs */
.el-dashboard-shell {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.el-dash-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.25rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.el-dash-tabs__btn {
    flex: 1 1 auto;
    min-width: 10rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #4b5563;
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.el-dash-tabs__btn:hover {
    background: #f3f4f6;
    color: #111827;
}

.el-dash-tabs__btn.is-active {
    background: #0f766e;
    color: #fff;
}

.el-table--compare .el-table-section-row td {
    background: #f8fafc;
    font-size: 0.8125rem;
    padding-top: 0.75rem;
}

.el-table--compare .el-table-total-row td {
    border-top: 2px solid #e2e8f0;
    background: #fafafa;
}

.el-monthly-summary {
    background: var(--ms-bg);
    color: var(--ms-text);
    border-radius: 1rem;
    padding: 0.25rem 0 1rem;
}

.el-monthly-summary .row-indent {
    padding-left: 1.25rem;
}

/* Filter toolbar card */
.el-monthly-summary .summary-toolbar {
    background: var(--ms-card);
    border: 1px solid var(--ms-border);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.el-monthly-summary .summary-toolbar__title {
    margin: 0 0 0.25rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ms-text);
}

.el-monthly-summary .summary-toolbar__hint {
    margin: 0;
    font-size: 0.875rem;
    color: var(--ms-muted);
}

.el-monthly-summary .summary-toolbar__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem;
}

.el-monthly-summary .summary-toolbar__btns {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

.el-monthly-summary .btn {
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.25;
    transition: background 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.el-monthly-summary .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.el-monthly-summary .btn-print {
    background: var(--ms-card);
    color: var(--ms-text);
    border: 1px solid #d1d5db;
}

.el-monthly-summary .btn-print:hover:not(:disabled) {
    background: #f8fafc;
}

.el-monthly-summary .btn-pdf {
    background: var(--ms-header);
    color: #fff;
}

.el-monthly-summary .btn-pdf:hover:not(:disabled) {
    background: #0d5c56;
}

/* Rounded report card */
.el-monthly-summary .report-table {
    background: var(--ms-card);
    border: 1px solid var(--ms-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 10px 30px rgba(0, 0, 0, 0.05);
}

.el-monthly-summary .report-table-scroll {
    overflow: auto;
    max-height: calc(100dvh - 16rem);
    -webkit-overflow-scrolling: touch;
}

.el-monthly-summary .report-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.el-monthly-summary .report-table thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ms-muted);
    font-weight: 600;
    padding: 18px 20px;
    background: var(--ms-card);
    border-bottom: 1px solid var(--ms-border);
    white-space: nowrap;
}

.el-monthly-summary .report-table tbody td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--ms-border);
    color: var(--ms-text);
    vertical-align: middle;
}

.el-monthly-summary .report-table tbody tr:nth-child(even):not(.section-row):not(.total-row) td.col-item {
    background: #fafbfd;
}

.el-monthly-summary .report-table tbody tr:hover:not(.section-row) td.col-item {
    background: #f2f7ff;
}

.el-monthly-summary .report-table .col-item {
    color: var(--ms-text);
    font-weight: 500;
    min-width: 11rem;
}

.el-monthly-summary .report-table .amount {
    text-align: right;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.el-monthly-summary .report-table .col-prev {
    background: var(--ms-month1);
    min-width: 7.5rem;
}

.el-monthly-summary .report-table thead th.col-prev {
    background: var(--ms-month1);
}

.el-monthly-summary .report-table .col-current {
    background: var(--ms-month2);
    border-left: 3px solid var(--ms-success);
    color: #000;
    font-weight: 700;
    min-width: 7.5rem;
}

.el-monthly-summary .report-table thead th.col-current {
    background: var(--ms-month2);
    border-left: 3px solid var(--ms-success);
    color: var(--ms-text);
    font-weight: 700;
}

.el-monthly-summary .report-table .col-change {
    background: transparent;
    text-align: right;
    min-width: 4rem;
    max-width: 4.5rem;
    width: 4.5rem;
    padding-left: 8px;
    padding-right: 12px;
    color: var(--ms-danger);
    font-size: 11px;
    font-weight: 600;
}

.el-monthly-summary .report-table thead th.col-change {
    background: var(--ms-card);
    color: var(--ms-danger);
    font-size: 11px;
    padding-left: 8px;
    padding-right: 12px;
}

.el-monthly-summary .badge {
    display: inline-block;
    padding: 0;
    border-radius: 0;
    font-size: 11px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    text-align: right;
    min-width: 0;
    color: var(--ms-danger);
    background: transparent;
}

.el-monthly-summary .badge-up,
.el-monthly-summary .badge-down,
.el-monthly-summary .badge-neutral,
.el-monthly-summary .badge-new {
    background: transparent;
    color: var(--ms-danger);
}

.el-monthly-summary .section-row td {
    background: transparent !important;
    color: var(--ms-text);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 14px 20px 6px;
    border-bottom: 1px solid var(--ms-border);
}

.el-monthly-summary .total-row td {
    font-weight: 700;
    border-top: 2px solid #94a3b8;
    border-bottom: 3px double #94a3b8;
}

.el-monthly-summary .total-row td.amount {
    color: var(--ms-header);
    font-size: 15px;
}

.el-monthly-summary .total-row.net-row td {
    border-top: 2px solid var(--ms-header);
    border-bottom: 3px double var(--ms-header);
}

.el-monthly-summary .total-row td.col-item {
    background: #f8fafc !important;
}

.el-monthly-summary .total-row td.col-prev,
.el-monthly-summary .total-row td.col-current,
.el-monthly-summary .total-row td.col-change {
    background: #f8fafc !important;
}

.el-monthly-summary .total-row.net-row td.col-item {
    background: var(--ms-header-light) !important;
}

.el-monthly-summary .total-row.net-row td.col-prev,
.el-monthly-summary .total-row.net-row td.col-current,
.el-monthly-summary .total-row.net-row td.col-change {
    background: var(--ms-header-light) !important;
}

.el-monthly-summary .report-table-footnote {
    margin: 0;
    padding: 1rem 1.25rem;
    font-size: 0.75rem;
    color: var(--ms-muted);
    border-top: 1px solid var(--ms-border);
    background: #fafbfd;
}

.el-monthly-print-doc .el-monthly-print-meta p {
    margin: 0.25rem 0;
}

@media print {
    .el-monthly-summary {
        background: #fff;
        padding: 0;
    }

    .el-monthly-summary .report-table {
        border: none;
        box-shadow: none;
    }

    .el-monthly-summary .report-table-scroll {
        max-height: none;
        overflow: visible;
    }

    .el-monthly-summary .report-table tbody tr:hover td {
        background: inherit;
    }

    .el-monthly-summary .badge {
        border: none;
        color: var(--ms-danger);
    }
}

.el-dash-row--6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .el-dash-row--6 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .el-dash-row--6 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.el-portfolio-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 16rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.el-portfolio-loading__spinner {
    width: 2.5rem;
    height: 2.5rem;
    border: 3px solid #e5e7eb;
    border-top-color: #0f766e;
    border-radius: 50%;
    animation: el-spin 0.8s linear infinite;
}

@keyframes el-spin {
    to { transform: rotate(360deg); }
}

.el-portfolio-matrix-wrap {
    overflow: hidden;
}

.el-portfolio-matrix-scroll {
    overflow: auto;
    max-height: calc(100dvh - 14rem);
    -webkit-overflow-scrolling: touch;
}

.el-portfolio-matrix {
    width: max-content;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    --pf-w-1: 5.5rem;
    --pf-w-2: 10rem;
    --pf-w-3: 6rem;
    --pf-w-4: 6rem;
    --pf-w-5: 9rem;
    --pf-left-1: 0;
    --pf-left-2: var(--pf-w-1);
    --pf-left-3: calc(var(--pf-w-1) + var(--pf-w-2));
    --pf-left-4: calc(var(--pf-w-1) + var(--pf-w-2) + var(--pf-w-3));
    --pf-left-5: calc(var(--pf-w-1) + var(--pf-w-2) + var(--pf-w-3) + var(--pf-w-4));
    --pf-frozen-width: calc(var(--pf-w-1) + var(--pf-w-2) + var(--pf-w-3) + var(--pf-w-4));
}

.el-portfolio-matrix th,
.el-portfolio-matrix td {
    padding: 0.35rem 0.5rem;
    white-space: nowrap;
    vertical-align: middle;
}

/* Header row stays visible when scrolling down */
.el-portfolio-matrix thead th {
    position: sticky;
    top: 0;
    z-index: 4;
    background: #1f2937;
    color: #f9fafb;
    box-shadow: 0 2px 0 #374151;
    border-color: #374151;
}

/* Frozen left columns (horizontal + vertical scroll) */
.el-portfolio-sticky {
    position: sticky;
    z-index: 2;
    background: #fff;
    box-shadow: 1px 0 0 #e5e7eb;
    overflow: hidden;
    text-overflow: ellipsis;
}

.el-portfolio-matrix tbody .el-portfolio-sticky {
    background: #fff;
}

.el-portfolio-sticky--1 { left: var(--pf-left-1); min-width: var(--pf-w-1); max-width: var(--pf-w-1); }
.el-portfolio-sticky--2 { left: var(--pf-left-2); min-width: var(--pf-w-2); max-width: var(--pf-w-2); white-space: normal; }
.el-portfolio-sticky--3 { left: var(--pf-left-3); min-width: var(--pf-w-3); max-width: var(--pf-w-3); }
.el-portfolio-sticky--4 { left: var(--pf-left-4); min-width: var(--pf-w-4); max-width: var(--pf-w-4); }
.el-portfolio-sticky--5 { left: var(--pf-left-5); min-width: var(--pf-w-5); max-width: var(--pf-w-5); }

/* Header corner cells: frozen top + left */
.el-portfolio-matrix thead .el-portfolio-sticky {
    z-index: 6;
    background: #1f2937;
    color: #f9fafb;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.35), 0 2px 0 #374151;
}

.el-portfolio-matrix thead .el-portfolio-matured-col {
    z-index: 6;
    background: #991b1b !important;
    color: #fff;
    box-shadow: 2px 0 6px rgba(0, 0, 0, 0.4), 0 2px 0 #374151;
}

.el-portfolio-matured-col {
    background: #fee2e2 !important;
    font-weight: 600;
    min-width: var(--pf-w-5);
    max-width: var(--pf-w-5);
    text-align: right;
    border-left: 3px solid #374151;
    border-right: 3px solid #374151;
    box-shadow: 2px 0 4px rgba(15, 23, 42, 0.12);
}

.el-portfolio-matrix tbody .el-portfolio-matured-col {
    background: #fee2e2 !important;
}

.el-portfolio-sticky-frozen {
    position: sticky;
    left: 0;
    z-index: 5;
    min-width: var(--pf-frozen-width);
    max-width: var(--pf-frozen-width);
    box-shadow: 2px 0 4px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.el-portfolio-sticky-frozen--label {
    background: #1f2937 !important;
    color: #fff;
}

.el-portfolio-month-head {
    text-align: center;
    font-weight: 700;
    border-left: 3px solid #374151;
    border-right: 3px solid #374151;
}

.el-portfolio-month-head--due {
    background: #0e7490 !important;
    color: #fff;
}
.el-portfolio-month-head--future {
    background: #4d7c0f !important;
    color: #fff;
}
.el-portfolio-month-head--overflow {
    background: #92400e !important;
    color: #fff;
}

.el-portfolio-month-col {
    text-align: right;
    border-left: 3px solid #374151;
    border-right: 3px solid #374151;
    border-top: 1px solid #d1d5db;
    border-bottom: 1px solid #d1d5db;
    min-width: 4.5rem;
    font-weight: 600;
}

.el-portfolio-cell--due { background: #e0f2fe; }
.el-portfolio-cell--future { background: #ecfccb; }
.el-portfolio-cell--overflow { background: #fef3c7; }

/* Highlight row on hover so the active loan is easy to track across columns */
.el-portfolio-matrix tbody tr {
    transition: background-color 0.12s ease;
}

.el-portfolio-matrix tbody tr:hover td {
    background-color: #ede9fe !important;
}

.el-portfolio-matrix tbody tr:hover .el-portfolio-sticky {
    z-index: 3;
    box-shadow: 2px 0 0 #a78bfa;
}

.el-portfolio-matrix__foot td {
    position: sticky;
    bottom: 0;
    background: #1f2937;
    color: #fff;
    border-color: #374151;
    box-shadow: 0 -1px 0 #374151;
    z-index: 1;
}

/* Month totals scroll horizontally; stay below frozen left footer cells */
.el-portfolio-matrix__foot .el-portfolio-month-col {
    z-index: 1;
}

.el-portfolio-matrix__foot .el-portfolio-sticky-frozen {
    z-index: 10;
    background: #1f2937 !important;
    color: #fff;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.35), 0 -1px 0 #374151;
}

.el-portfolio-matrix__foot .el-portfolio-sticky {
    z-index: 11;
    background: #1f2937 !important;
    color: #fff;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.35), 0 -1px 0 #374151;
}

.el-portfolio-matrix__foot .el-portfolio-matured-col {
    background: #991b1b !important;
    z-index: 12;
    box-shadow: 2px 0 6px rgba(0, 0, 0, 0.4), 0 -1px 0 #374151;
}

.el-portfolio-matrix__foot .el-portfolio-cell--due {
    background: #0e7490;
}

.el-portfolio-matrix__foot .el-portfolio-cell--future {
    background: #4d7c0f;
}

.el-portfolio-matrix__foot .el-portfolio-cell--overflow {
    background: #92400e;
}

/* NPL classification (CBSL) — portfolio tab */
.el-npl-section .el-npl-table-card {
    overflow: hidden;
}

.el-npl-class-table .el-npl-row--pl td {
    background: #f0fdf4;
}

.el-npl-class-table .el-npl-row--npl td {
    background: #fff7ed;
}

.el-npl-code {
    display: inline-block;
    min-width: 2rem;
    padding: 0.15rem 0.45rem;
    border-radius: 0.375rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-align: center;
}

.el-npl-code--pl { background: #dcfce7; color: #15803d; }
.el-npl-code--watch { background: #fef3c7; color: #b45309; }
.el-npl-code--substandard { background: #ffedd5; color: #c2410c; }
.el-npl-code--doubtful { background: #fee2e2; color: #b91c1c; }
.el-npl-code--loss { background: #fecaca; color: #991b1b; }

.el-npl-class-table tfoot td {
    background: #f8fafc;
}

.el-npl-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin: 0;
    padding: 0.75rem;
    list-style: none;
    background: #f8fafc;
    border: 1px solid #e6ebf2;
    border-radius: 0.5rem;
}

.el-npl-chart-legend__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #334155;
}

.el-npl-chart-legend__label {
    font-weight: 500;
}

/* Customer account history panel (loan / HP create) */
.el-customer-picker-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    min-width: 7.5rem;
}

.el-customer-history-btn {
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.el-customer-history-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.42);
}

.el-customer-history-btn:disabled {
    opacity: 0.75;
    cursor: wait;
}

.el-customer-history-modal-panel .el-modal-header {
    align-items: flex-start;
}

.el-customer-history-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}

.el-customer-history-modal-header__main {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    min-width: 0;
}

.el-customer-history-modal-header__photo-wrap {
    flex-shrink: 0;
}

.el-customer-history-modal-header__photo {
    width: 4rem;
    height: 4rem;
}

.el-customer-history-modal-header__text {
    min-width: 0;
}

.el-customer-history-modal-subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.8125rem;
    color: #64748b;
    font-weight: 500;
}

.el-customer-history-modal-subtitle-meta {
    color: #94a3b8;
    font-weight: 400;
}

.el-customer-history-modal-body {
    background: #f8fafc;
}

.el-customer-history-loading {
    padding: 0.5rem 0;
}

.el-customer-history-kpis {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .el-customer-history-kpis {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.el-customer-history-kpi {
    background: #fff;
    border: 1px solid var(--el-border, #e6ebf2);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
}

.el-customer-history-kpi-label {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.el-customer-history-kpi-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.el-customer-history-kpi-value--warn {
    color: #b91c1c;
}

.el-customer-history-timing {
    background: #f8fafc;
    border: 1px solid var(--el-border, #e6ebf2);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.el-customer-history-timing-title {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.5rem;
}

.el-customer-history-timing-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.el-customer-history-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    border: 1px solid transparent;
}

.el-customer-history-chip--early {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}

.el-customer-history-chip--timely {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.el-customer-history-chip--late {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.el-customer-history-timing-note {
    margin: 0;
    font-size: 0.75rem;
    color: #64748b;
}

.el-customer-history-block {
    margin-top: 1.25rem;
}

.el-customer-history-modal-body .el-customer-history-block .el-subsection-title {
    margin: 0 0 0.625rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dbe3ee;
    color: #334155;
    font-size: 0.8125rem;
    letter-spacing: 0.06em;
}

.el-customer-history-table-wrap {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.el-customer-history-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.el-customer-history-table thead {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.el-customer-history-table th {
    padding: 0.625rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    border-bottom: 1px solid #cbd5e1;
    border-right: 1px solid #e2e8f0;
    vertical-align: middle;
}

.el-customer-history-table th:last-child {
    border-right: none;
}

.el-customer-history-table td {
    padding: 0.625rem 0.75rem;
    font-size: 0.8125rem;
    color: #1e293b;
    vertical-align: middle;
    border-bottom: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    background: #fff;
}

.el-customer-history-table td:last-child {
    border-right: none;
}

.el-customer-history-table tbody tr:nth-child(even) td {
    background: #f8fafc;
}

.el-customer-history-table tbody tr:hover td {
    background: #eff6ff;
}

.el-customer-history-table tbody tr:last-child td {
    border-bottom: none;
}

.el-customer-history-table th.text-right,
.el-customer-history-table td.text-right {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.el-customer-history-table th.text-center,
.el-customer-history-table td.text-center {
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.el-customer-history-table td .el-link {
    font-weight: 600;
}

.el-customer-history-timing-cell--early {
    color: #047857;
    font-weight: 600;
}

.el-customer-history-timing-cell--timely {
    color: #1d4ed8;
    font-weight: 600;
}

.el-customer-history-timing-cell--late {
    color: #b91c1c;
    font-weight: 600;
}

.el-customer-history-row--writeoff td {
    background: #fff1f2 !important;
}

.el-customer-history-row--writeoff:hover td {
    background: #ffe4e6 !important;
}

.el-customer-history-badge-writeoff {
    display: inline-block;
    margin-left: 0.375rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    background: #fecaca;
    color: #991b1b;
}

.el-customer-history-empty {
    font-size: 0.875rem;
    color: #64748b;
    padding: 0.5rem 0;
}

.el-customer-center-create {
    background: #f8fafc;
    border: 1px solid #dbe3ee;
    border-radius: 0.5rem;
    padding: 0.875rem 1rem;
}

/* Customer list, create, and edit — shared page theme */
.el-customer-page .el-page-header {
    margin-bottom: 1.25rem;
}
.el-customer-page .el-page-subtitle {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--el-text-muted);
}
.el-customer-page .el-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--el-text-muted);
    text-decoration: none;
    margin-bottom: 0.5rem;
}
.el-customer-page .el-back-link:hover {
    color: var(--el-primary);
}
.el-customer-no {
    display: inline-block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #0f766e;
    background: #f0fdfa;
    border: 1px solid #99f6e4;
    padding: 0.2rem 0.55rem;
    border-radius: 0.375rem;
    white-space: nowrap;
}
.el-customer-page .el-table tbody tr {
    transition: background 0.12s ease;
}
.el-customer-page .el-table tbody tr:hover td {
    background: #f8fafc;
}
.el-customer-page .el-table .el-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
}
.el-customer-page .el-table-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--el-text-muted);
    font-size: 0.875rem;
}
.el-customer-form .el-customer-no-preview {
    background: linear-gradient(180deg, #f0f9ff 0%, #f8fafc 100%);
    border: 1px solid #bae6fd;
    border-radius: 0.75rem;
    padding: 1rem 1.125rem;
}
.el-customer-form .el-customer-no-preview .el-customer-no {
    font-size: 1.0625rem;
    padding: 0.35rem 0.75rem;
}
.el-customer-form .el-guarantor-sequence-option {
    margin-top: 1rem;
    padding: 1rem 1.125rem;
    border: 2px solid #f59e0b;
    border-radius: 0.75rem;
    background: linear-gradient(180deg, #fffbeb 0%, #fff7ed 100%);
    box-shadow: 0 2px 8px rgb(245 158 11 / 0.12);
}
.el-customer-form .el-guarantor-sequence-label {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    cursor: pointer;
    margin: 0;
}
.el-customer-form .el-guarantor-sequence-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
    accent-color: #d97706;
    cursor: pointer;
}
.el-customer-form .el-guarantor-sequence-copy {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    color: #92400e;
}
.el-customer-form .el-guarantor-sequence-copy strong {
    font-size: 1rem;
    color: #78350f;
}
.el-customer-form .el-guarantor-sequence-hint {
    font-size: 0.875rem;
    color: #b45309;
}
.el-profile-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    vertical-align: middle;
}
.el-profile-badge--guarantor {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}
.el-profile-badge--borrower {
    background: #ccfbf1;
    color: #115e59;
    border: 1px solid #5eead4;
}
.el-profile-badge--blacklist {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}
.el-linked-profile-note {
    padding: 0.75rem 0.875rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
}
.el-customer-delete-panel {
    border-color: #fecaca;
    background: #fffbfb;
}
.el-customer-form .el-form-section {
    margin-bottom: 1.25rem;
}
.el-customer-form .el-form-actions-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    padding: 1rem 1.25rem;
    margin-top: 0.5rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgb(15 23 42 / 0.04);
}
.el-customer-form .el-form-actions-bar .el-btn-primary {
    min-width: 9rem;
}
.el-customer-show-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.el-customer-show-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.625rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--el-text-muted);
}
.el-customer-show-meta .el-divider {
    color: #cbd5e1;
}
.el-customer-page .el-status-dot {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
}
.el-customer-page .el-status-dot::before {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: #22c55e;
}
.el-customer-page .el-status-dot--inactive::before {
    background: #94a3b8;
}

/* ==========================================================================
   Marketing / public website
   ========================================================================== */
.el-mkt-body {
    min-height: 100vh;
    background: #f8fafc;
    color: var(--el-text);
    display: flex;
    flex-direction: column;
}
.el-mkt-main { flex: 1; }
.el-mkt-container {
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Header */
.el-mkt-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.el-mkt-header-inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.el-mkt-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #fff;
    flex-shrink: 0;
}
.el-mkt-brand-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, var(--el-primary), var(--el-primary-light));
    border-radius: 0.625rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: #fff;
    flex-shrink: 0;
}
.el-mkt-brand-logo {
    height: 3.5rem;
    width: auto;
    max-width: 12rem;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 0.375rem;
}
.el-mkt-brand-logo--footer {
    height: 2.75rem;
    max-width: 10rem;
}
.el-mkt-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.el-mkt-brand-text strong { font-size: 1rem; font-weight: 700; }
.el-mkt-brand-text small {
    font-size: 0.6875rem;
    color: #94a3b8;
    max-width: 12rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.el-mkt-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    justify-content: center;
}
.el-mkt-nav-link {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.875rem;
    border-radius: 0.5rem;
    transition: color 0.15s, background 0.15s;
}
.el-mkt-nav-link:hover { color: #fff; background: rgba(255,255,255,0.06); }
.el-mkt-nav-link--active { color: #fff; background: rgba(15, 118, 110, 0.35); }
.el-mkt-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}
.el-mkt-login-btn { white-space: nowrap; }
.el-mkt-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.el-mkt-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
}

/* Hero — 1/3 viewport height, container width */
.el-mkt-hero {
    background: linear-gradient(135deg, #0f172a 0%, #134e4a 45%, #0f766e 100%);
    color: #fff;
    height: 33.333vh;
    min-height: 11rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0;
    box-sizing: border-box;
}
.el-mkt-hero-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.el-mkt-hero-content {
    text-align: center;
    width: 100%;
    max-width: 48rem;
    margin: 0 auto;
}
.el-mkt-badge {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 9999px;
    padding: 0.2rem 0.65rem;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 0.35rem;
}
.el-mkt-hero-title {
    font-size: clamp(1.25rem, 3.5vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 0.25rem;
}
.el-mkt-hero-tagline {
    font-size: clamp(0.8125rem, 2vw, 1rem);
    color: #99f6e4;
    font-weight: 600;
    margin-bottom: 0.35rem;
}
.el-mkt-hero-desc {
    color: #cbd5e1;
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    line-height: 1.45;
    max-width: 40rem;
    margin: 0 auto 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.el-mkt-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}
.el-btn-lg { padding: 0.5rem 1rem; font-size: 0.8125rem; }
.el-btn-outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.4);
    color: #fff;
}
.el-btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}
.el-mkt-hero-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 1rem;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.el-mkt-hero-stat {
    text-align: center;
    padding: 1rem;
    background: rgba(0,0,0,0.2);
    border-radius: 0.75rem;
}
.el-mkt-hero-stat strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #5eead4;
}
.el-mkt-hero-stat span {
    font-size: 0.8125rem;
    color: #94a3b8;
}

/* Slider section — container width, taller band for photos */
.el-mkt-hero-slider {
    height: 50vh;
    min-height: 18rem;
    padding: 0.75rem 0 1rem;
    background: #f8fafc;
    box-sizing: border-box;
}
.el-mkt-hero-slider-inner {
    height: 100%;
    display: flex;
    align-items: stretch;
}
.el-mkt-hero-slider .el-mkt-slider {
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: unset;
    border-radius: var(--el-radius-lg);
    border: 1px solid var(--el-border);
    box-shadow: 0 4px 12px rgb(0 0 0 / 0.08);
    overflow: hidden;
    background: #0f172a;
}
.el-mkt-hero-slider .el-mkt-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.el-mkt-hero-slider .el-mkt-slide-caption {
    padding: 1.5rem 1rem 0.75rem;
}
.el-mkt-hero-slider .el-mkt-slide-caption p {
    font-size: clamp(0.75rem, 1.5vw, 0.9375rem);
    max-width: 100%;
    margin: 0;
    text-align: left;
}
.el-mkt-hero-slider .el-mkt-slider-arrow {
    width: 2rem;
    height: 2rem;
    font-size: 1.25rem;
}
.el-mkt-hero-slider .el-mkt-slider-arrow--prev { left: 0.5rem; }
.el-mkt-hero-slider .el-mkt-slider-arrow--next { right: 0.5rem; }
.el-mkt-hero-slider .el-mkt-slider-dots {
    bottom: 0.5rem;
}
.el-mkt-hero-slider .el-mkt-slider-dot {
    width: 0.5rem;
    height: 0.5rem;
}
.el-mkt-hero-slider .el-mkt-slider-placeholder {
    color: #94a3b8;
}

/* Hero photo slider (default) */
.el-mkt-slider {
    position: relative;
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgb(0 0 0 / 0.25);
}
.el-mkt-slider--empty {
    display: flex;
    align-items: center;
    justify-content: center;
}
.el-mkt-slider-placeholder {
    text-align: center;
    color: #94a3b8;
    padding: 2rem;
}
.el-mkt-slider-placeholder-icon {
    display: inline-flex;
    width: 4rem;
    height: 4rem;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--el-primary), var(--el-primary-light));
    border-radius: 1rem;
    font-weight: 800;
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}
.el-mkt-slider-placeholder p {
    margin: 0;
    font-size: 0.9375rem;
}
.el-mkt-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}
.el-mkt-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.el-mkt-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.el-mkt-slide-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2.5rem 1.25rem 1.25rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
}
.el-mkt-slide-caption p {
    margin: 0;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgb(0 0 0 / 0.5);
}
.el-mkt-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.el-mkt-slider-arrow:hover { background: rgba(0, 0, 0, 0.65); }
.el-mkt-slider-arrow--prev { left: 0.75rem; }
.el-mkt-slider-arrow--next { right: 0.75rem; }
.el-mkt-slider-dots {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: 0.5rem;
}
.el-mkt-slider-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    border: none;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    padding: 0;
    transition: background 0.15s, transform 0.15s;
}
.el-mkt-slider-dot--active,
.el-mkt-slider-dot:hover {
    background: #fff;
    transform: scale(1.15);
}
.el-mkt-slide-enter { transition: opacity 0.5s ease; }
.el-mkt-slide-enter-start { opacity: 0; }
.el-mkt-slide-enter-end { opacity: 1; }
.el-mkt-slide-leave { transition: opacity 0.5s ease; position: absolute; inset: 0; }
.el-mkt-slide-leave-start { opacity: 1; }
.el-mkt-slide-leave-end { opacity: 0; }

/* Sections */
.el-mkt-section { padding: 4rem 0; }
.el-mkt-section--alt { background: #fff; }
.el-mkt-section-header {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto 2.5rem;
}
.el-mkt-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--el-text);
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}
.el-mkt-section-lead {
    color: var(--el-text-muted);
    font-size: 1rem;
    line-height: 1.6;
}
.el-mkt-page-hero {
    background: linear-gradient(135deg, #0f172a, #134e4a);
    color: #fff;
    padding: 3rem 0;
    text-align: center;
}
.el-mkt-page-title {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}
.el-mkt-page-lead {
    color: #cbd5e1;
    font-size: 1.0625rem;
    max-width: 40rem;
    margin: 0 auto;
    line-height: 1.6;
}

/* Cards */
.el-mkt-card {
    background: #fff;
    border: 1px solid var(--el-border);
    border-radius: var(--el-radius-lg);
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.06);
}
.el-mkt-section--alt .el-mkt-card { background: #f8fafc; }

/* Module cards */
.el-mkt-module-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.el-mkt-module-card { display: flex; flex-direction: column; }
.el-mkt-module-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.125rem;
    color: #fff;
    margin-bottom: 1rem;
}
.el-mkt-module-icon--loan { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.el-mkt-module-icon--hp { background: linear-gradient(135deg, #1d4ed8, #3b82f6); }
.el-mkt-module-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.el-mkt-module-summary {
    color: var(--el-text-muted);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}
.el-mkt-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    flex: 1;
}
.el-mkt-feature-list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--el-text);
}
.el-mkt-feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--el-primary);
    font-weight: 700;
}
.el-mkt-link {
    color: var(--el-primary);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
}
.el-mkt-link:hover { text-decoration: underline; }

/* Shared features grid */
.el-mkt-shared-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 2rem;
}
.el-mkt-shared-item {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.9375rem;
    line-height: 1.5;
}
.el-mkt-check {
    color: var(--el-primary);
    font-weight: 700;
    flex-shrink: 0;
}

/* Optional features */
.el-mkt-optional-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.el-mkt-optional-card { position: relative; padding-top: 2rem; }
.el-mkt-optional-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.el-mkt-optional-title {
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.el-mkt-optional-card p {
    font-size: 0.8125rem;
    color: var(--el-text-muted);
    line-height: 1.5;
    margin: 0;
}
.el-mkt-cta-inline {
    text-align: center;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.el-mkt-cta-inline p { color: var(--el-text-muted); margin: 0; }

/* Inquiry form */
.el-mkt-inquiry { background: linear-gradient(180deg, #f1f5f9, #e2e8f0); }
.el-mkt-inquiry-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2.5rem;
    align-items: start;
}
.el-mkt-inquiry-benefits {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}
.el-mkt-inquiry-benefits li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    font-size: 0.9375rem;
    color: var(--el-text);
}
.el-mkt-inquiry-benefits li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--el-primary);
    font-weight: 700;
}
.el-mkt-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.el-mkt-form textarea.el-input { resize: vertical; min-height: 6rem; }
.el-required { color: #dc2626; }

/* Feature detail page */
.el-mkt-feature-detail {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
}
.el-mkt-feature-detail-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    color: #fff;
    flex-shrink: 0;
}
.el-mkt-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 2rem;
}
.el-mkt-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.9375rem;
    line-height: 1.5;
}
.el-mkt-capability-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}
.el-mkt-capability-card h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.el-mkt-capability-card > p {
    font-size: 0.875rem;
    color: var(--el-text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* About page */
.el-mkt-about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: start;
}
.el-mkt-prose {
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 1rem;
    color: var(--el-text);
}
.el-mkt-muted { color: var(--el-text-muted); font-style: italic; }
.el-mkt-about-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.el-mkt-values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.el-mkt-value-card {
    text-align: center;
    padding: 1.5rem 1rem;
}
.el-mkt-value-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.el-mkt-value-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.el-mkt-value-card p {
    font-size: 0.875rem;
    color: var(--el-text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Contact page */
.el-mkt-contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
    align-items: start;
}
.el-mkt-contact-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}
.el-mkt-contact-list li {
    margin-bottom: 1.25rem;
}
.el-mkt-contact-list strong {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--el-text-muted);
    margin-bottom: 0.25rem;
}
.el-mkt-contact-list a { color: var(--el-primary); text-decoration: none; }
.el-mkt-contact-list a:hover { text-decoration: underline; }
.el-mkt-contact-login {
    border-top: 1px solid var(--el-border);
    padding-top: 1.25rem;
    margin-top: 1rem;
}
.el-mkt-contact-login h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}
.el-mkt-contact-login p {
    font-size: 0.875rem;
    color: var(--el-text-muted);
    margin-bottom: 1rem;
}
.el-mkt-contact-steps {
    padding-left: 1.25rem;
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--el-text);
}

/* Pricing */
.el-mkt-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}
.el-mkt-pricing-card {
    display: flex;
    flex-direction: column;
    position: relative;
}
.el-mkt-pricing-card--highlight {
    border-color: var(--el-primary);
    box-shadow: 0 8px 24px rgb(15 118 110 / 0.15);
    transform: scale(1.02);
}
.el-mkt-pricing-badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--el-primary);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.el-mkt-pricing-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-align: center;
}
.el-mkt-pricing-price {
    text-align: center;
    margin-bottom: 1rem;
}
.el-mkt-pricing-amount {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--el-primary);
}
.el-mkt-pricing-period {
    font-size: 0.875rem;
    color: var(--el-text-muted);
}
.el-mkt-pricing-desc {
    text-align: center;
    font-size: 0.875rem;
    color: var(--el-text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.5;
    flex: 1;
}
.el-mkt-pricing-card .el-btn { margin-top: auto; }
.el-mkt-addon-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--el-border);
    border-radius: var(--el-radius-lg);
    background: #fff;
}
.el-mkt-addon-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}
.el-mkt-addon-table th,
.el-mkt-addon-table td {
    padding: 0.875rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--el-border);
}
.el-mkt-addon-table th {
    background: #f8fafc;
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--el-text-muted);
}
.el-mkt-addon-table tr:last-child td { border-bottom: none; }
.el-mkt-addon-table td:last-child {
    font-weight: 600;
    color: var(--el-primary);
    white-space: nowrap;
}
.el-mkt-pricing-note {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--el-text-muted);
}
.el-mkt-pricing-section { margin-bottom: 0; }
.el-mkt-section-header--left {
    text-align: left;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}
.el-mkt-pricing-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--el-border);
    border-radius: var(--el-radius-lg);
    background: #fff;
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.06);
}
.el-mkt-section--alt .el-mkt-pricing-table-wrap { background: #f8fafc; }
.el-mkt-pricing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}
.el-mkt-pricing-table th,
.el-mkt-pricing-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--el-border);
    vertical-align: top;
}
.el-mkt-pricing-table th {
    background: #f8fafc;
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--el-text-muted);
}
.el-mkt-section--alt .el-mkt-pricing-table th { background: #fff; }
.el-mkt-pricing-table tr:last-child td { border-bottom: none; }
.el-mkt-pricing-table__num {
    white-space: nowrap;
    text-align: right;
    width: 9rem;
}
.el-mkt-pricing-table__name strong { display: block; margin-bottom: 0.25rem; }
.el-mkt-pricing-table__desc {
    color: var(--el-text-muted);
    font-size: 0.875rem;
    line-height: 1.5;
    min-width: 14rem;
}
.el-mkt-pricing-table__amount {
    display: block;
    font-weight: 700;
    color: var(--el-primary);
}
.el-mkt-pricing-table__row--included .el-mkt-pricing-table__amount { color: var(--el-text); }
.el-mkt-pricing-table__period {
    display: block;
    font-size: 0.75rem;
    color: var(--el-text-muted);
    margin-top: 0.15rem;
}
.el-mkt-pricing-included-badge {
    display: inline-block;
    background: #d1fae5;
    color: #065f46;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-left: 0.35rem;
    vertical-align: middle;
}
.el-mkt-pricing-included-note {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--el-text-muted);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.el-mkt-pricing-dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 1rem 0 1.25rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: var(--el-radius);
    border: 1px solid var(--el-border);
}
.el-mkt-pricing-card--highlight .el-mkt-pricing-dual { background: #f0fdfa; }
.el-mkt-pricing-dual-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--el-text-muted);
    margin-bottom: 0.25rem;
}
.el-mkt-pricing-amount--secondary { font-size: 1.125rem; }

/* Price calculator */
.el-mkt-calculator-section { scroll-margin-top: 5rem; }
.el-mkt-hero-cta { margin-top: 1.25rem; display: inline-flex; }
.el-mkt-calculator {
    display: grid;
    grid-template-columns: 1fr minmax(300px, 380px);
    gap: 2rem;
    align-items: start;
}
.el-mkt-calculator-group {
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--el-border);
}
.el-mkt-calculator-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.el-mkt-calculator-group-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--el-text);
}
.el-mkt-calculator-required { color: #dc2626; }
.el-mkt-calculator-optional {
    font-weight: 500;
    color: var(--el-text-muted);
    font-size: 0.8125rem;
}
.el-mkt-calculator-group-hint {
    font-size: 0.8125rem;
    color: var(--el-text-muted);
    margin: -0.35rem 0 0.75rem;
}
.el-mkt-calculator-radios {
    display: grid;
    gap: 0.625rem;
}
.el-mkt-calculator-option {
    display: block;
    padding: 0.875rem 1rem;
    border: 2px solid var(--el-border);
    border-radius: var(--el-radius);
    cursor: pointer;
    background: #fff;
    transition: border-color 0.15s, background 0.15s;
}
.el-mkt-calculator-option:hover { border-color: #99f6e4; }
.el-mkt-calculator-option--active {
    border-color: var(--el-primary);
    background: #f0fdfa;
}
.el-mkt-calculator-option-title {
    display: block;
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}
.el-mkt-calculator-option-price {
    font-size: 0.8125rem;
    color: var(--el-text-muted);
}
.el-mkt-calculator-option-onetime { display: inline; }
.el-mkt-calculator-checks {
    display: grid;
    gap: 0.5rem;
}
.el-mkt-calculator-check {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--el-border);
    border-radius: var(--el-radius);
    background: #fff;
    cursor: pointer;
    font-size: 0.875rem;
}
.el-mkt-calculator-check:has(input:checked) {
    border-color: var(--el-primary);
    background: #f0fdfa;
}
.el-mkt-calculator-check input {
    margin-top: 0.2rem;
    flex-shrink: 0;
    accent-color: var(--el-primary);
}
.el-mkt-calculator-check strong { display: block; margin-bottom: 0.15rem; }
.el-mkt-calculator-check small {
    display: block;
    color: var(--el-text-muted);
    font-size: 0.75rem;
}
.el-mkt-calculator-qty-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.el-mkt-calculator-qty-btn {
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--el-border);
    border-radius: var(--el-radius);
    background: #fff;
    font-size: 1.125rem;
    cursor: pointer;
    line-height: 1;
}
.el-mkt-calculator-qty-btn:hover { background: #f1f5f9; }
.el-mkt-calculator-qty-input {
    width: 4rem;
    text-align: center;
    padding: 0.5rem;
    border: 1px solid var(--el-border);
    border-radius: var(--el-radius);
    font-weight: 600;
}
.el-mkt-calculator-qty-hint {
    font-size: 0.8125rem;
    color: var(--el-text-muted);
}
.el-mkt-calculator-service-desc {
    font-size: 0.8125rem;
    color: var(--el-text-muted);
    margin: 0.25rem 0 0;
}
.el-mkt-calculator-summary {
    position: sticky;
    top: 5rem;
    background: #fff;
    border: 2px solid var(--el-primary);
    border-radius: var(--el-radius-lg);
    padding: 0;
    overflow: hidden;
    box-shadow: 0 12px 32px rgb(15 118 110 / 0.18), 0 4px 12px rgb(0 0 0 / 0.08);
}
.el-mkt-calculator-summary-head {
    background: linear-gradient(135deg, #0f172a 0%, #134e4a 50%, #0f766e 100%);
    color: #fff;
    padding: 1.25rem 1.5rem;
    margin-bottom: 0;
}
.el-mkt-calculator-summary-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}
.el-mkt-calculator-summary-sub {
    font-size: 0.8125rem;
    color: #99f6e4;
    margin: 0;
}
.el-mkt-calculator-summary-lines {
    list-style: none;
    padding: 1rem 1.5rem 0;
    margin: 0;
    font-size: 0.8125rem;
    max-height: 10rem;
    overflow-y: auto;
}
.el-mkt-calculator-summary-lines li {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.4rem 0;
    border-bottom: 1px dashed var(--el-border);
}
.el-mkt-calculator-summary-lines li span:first-child {
    font-weight: 500;
    color: var(--el-text);
}
.el-mkt-calculator-summary-lines li span:last-child {
    color: var(--el-text-muted);
    text-align: right;
    flex-shrink: 0;
    font-size: 0.75rem;
}
.el-mkt-calculator-summary-empty {
    font-size: 0.875rem;
    color: var(--el-text-muted);
    margin: 1rem 1.5rem;
}
.el-mkt-calculator-totals {
    margin: 1rem 1.5rem 1.25rem;
    padding: 1.25rem 1rem;
    background: linear-gradient(180deg, #f0fdfa 0%, #ecfdf5 100%);
    border: 2px solid #99f6e4;
    border-radius: var(--el-radius-lg);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.8);
}
.el-mkt-calculator-total-block {
    text-align: center;
    padding: 0.35rem 0;
}
.el-mkt-calculator-total-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #0f766e;
    margin-bottom: 0.35rem;
}
.el-mkt-calculator-total-value {
    display: block;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    color: #0f766e;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.el-mkt-calculator-total-value--secondary {
    color: #0f172a;
}
.el-mkt-calculator-total-period {
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #64748b;
}
.el-mkt-calculator-total-block--monthly .el-mkt-calculator-total-value {
    color: #0f766e;
}
.el-mkt-calculator-total-block--onetime .el-mkt-calculator-total-label {
    color: #334155;
}
.el-mkt-calculator-breakdown-heading {
    display: block !important;
    padding-top: 0.5rem !important;
    margin-bottom: 0.15rem;
    font-size: 0.6875rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8 !important;
}
.el-mkt-calculator-breakdown-heading span {
    font-weight: 700;
    color: #94a3b8;
}
.el-mkt-calculator-total-notes {
    list-style: none;
    padding: 0.75rem 0 0;
    margin: 0.75rem 0 0;
    border-top: 1px dashed #99f6e4;
    text-align: left;
}
.el-mkt-calculator-total-notes li {
    position: relative;
    padding-left: 1.125rem;
    margin-bottom: 0.35rem;
    font-size: 0.75rem;
    color: #047857;
    line-height: 1.4;
}
.el-mkt-calculator-total-notes li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: 700;
    color: #0f766e;
}
.el-mkt-calculator-total-breakdown {
    list-style: none;
    padding: 0.75rem 0 0;
    margin: 0.75rem 0 0;
    border-top: 1px dashed #cbd5e1;
    text-align: left;
}
.el-mkt-calculator-total-breakdown li {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--el-text-muted);
    padding: 0.25rem 0;
}
.el-mkt-calculator-total-breakdown li span:last-child {
    font-weight: 600;
    color: var(--el-text);
    white-space: nowrap;
}
.el-mkt-calculator-total-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #5eead4, transparent);
    margin: 0.75rem 0;
}
.el-mkt-calculator-disclaimer {
    font-size: 0.75rem;
    color: var(--el-text-muted);
    line-height: 1.4;
    margin: 0 1.5rem 1rem;
    text-align: center;
}
.el-mkt-calculator-summary .el-btn {
    margin: 0 1.5rem 0.5rem;
    width: calc(100% - 3rem);
}
.el-mkt-calculator-summary .el-btn:last-child {
    margin-bottom: 1.5rem;
}
.el-mkt-calculator-cta {
    font-weight: 700;
    padding: 0.75rem 1rem;
    box-shadow: 0 4px 12px rgb(15 118 110 / 0.35);
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* CTA banner */
.el-mkt-cta-banner {
    background: linear-gradient(135deg, #0f172a, #134e4a);
    color: #fff;
    padding: 3rem 0;
}
.el-mkt-cta-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}
.el-mkt-cta-banner h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}
.el-mkt-cta-banner p {
    color: #94a3b8;
    margin: 0;
    font-size: 0.9375rem;
}

/* Footer */
.el-mkt-footer {
    background: #0f172a;
    color: #94a3b8;
    margin-top: auto;
}
.el-mkt-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    padding: 3rem 1.25rem 2rem;
}
.el-mkt-footer-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: #fff;
    margin-bottom: 0.75rem;
}
.el-mkt-footer-desc {
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}
.el-mkt-footer-title {
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.el-mkt-footer-links,
.el-mkt-footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
}
.el-mkt-footer-links li,
.el-mkt-footer-contact li { margin-bottom: 0.5rem; }
.el-mkt-footer-links a,
.el-mkt-footer-contact a {
    color: #94a3b8;
    text-decoration: none;
}
.el-mkt-footer-links a:hover,
.el-mkt-footer-contact a:hover { color: #5eead4; }
.el-mkt-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1rem 0;
    text-align: center;
    font-size: 0.8125rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .el-mkt-optional-grid { grid-template-columns: repeat(2, 1fr); }
    .el-mkt-values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .el-mkt-menu-toggle { display: flex; }
    .el-mkt-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: #0f172a;
        padding: 0.75rem 1.25rem 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        align-items: stretch;
    }
    .el-mkt-nav--open { display: flex; }
    .el-mkt-header-inner { position: relative; flex-wrap: wrap; }
    .el-mkt-brand-text small { display: none; }
    .el-mkt-module-grid,
    .el-mkt-shared-grid,
    .el-mkt-inquiry-grid,
    .el-mkt-about-grid,
    .el-mkt-contact-grid,
    .el-mkt-capability-list,
    .el-mkt-detail-grid,
    .el-mkt-pricing-grid,
    .el-mkt-footer-grid { grid-template-columns: 1fr; }
    .el-mkt-form-row { grid-template-columns: 1fr; }
    .el-mkt-optional-grid { grid-template-columns: 1fr; }
    .el-mkt-values-grid { grid-template-columns: 1fr; }
    .el-mkt-pricing-card--highlight { transform: none; }
    .el-mkt-calculator { grid-template-columns: 1fr; }
    .el-mkt-calculator-summary { position: static; }
    .el-mkt-pricing-table__num { width: auto; }
    .el-mkt-cta-banner-inner { flex-direction: column; text-align: center; }
}

/* Legal document print & template editor */
.el-legal-print-body {
    font-family: Tahoma, Geneva, sans-serif;
    font-size: 10pt;
    line-height: 1.35;
    text-align: justify;
    text-justify: inter-word;
}
.el-legal-document {
    max-width: 210mm;
    margin: 0 auto;
}
.el-legal-document .heading {
    font-size: 1.3em;
    font-weight: bold;
}
.el-legal-document .right {
    text-align: right;
}
.el-legal-document .box {
    border: 3px solid #73AD21;
    padding: 10px;
    text-align: center;
    display: inline-block;
}
.el-legal-document p {
    margin: 0;
    padding: 0.12cm 0;
    line-height: 1.35;
}
.el-legal-document p.el-legal-fact {
    padding: 0.08cm 0 0.18cm;
}
.el-legal-document ol.el-legal-list {
    margin: 0.15cm 0 0.25cm;
    padding-left: 1.4em;
}
.el-legal-document ol > li,
.el-legal-document ol.el-legal-list > li {
    margin-bottom: 0.22cm;
    padding-bottom: 0.05cm;
}
.el-legal-document ol > li > p,
.el-legal-document ol.el-legal-list > li > p {
    margin: 0;
    padding: 0.08cm 0;
}
.el-legal-document ol > li > p + p,
.el-legal-document ol.el-legal-list > li > p + p {
    margin-top: 0.1cm;
}
.el-legal-document .fill,
.el-legal-document .info {
    font-family: 'Courier New', monospace;
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    padding-left: 4px;
    padding-right: 4px;
}
.el-legal-document table.el-legal-table {
    margin-top: 0.35cm;
    margin-bottom: 0.25cm;
}
.el-legal-document table.el-legal-schedule td {
    vertical-align: top;
}
.el-legal-document table.el-legal-schedule p {
    padding: 0.05cm 0;
}
.el-legal-document table.el-legal-sig-row td {
    text-align: center;
    vertical-align: top;
}
.el-legal-document table.el-legal-table td,
.el-legal-document table.el-legal-table th {
    border: 1px solid #000;
    vertical-align: top;
    padding: 6px 4px;
}
.el-legal-template-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    line-height: 1.6;
}
.el-letter-text-box--legal {
    min-height: 8rem;
    font-family: ui-monospace, 'Courier New', monospace;
    font-size: 0.8125rem;
}
@media print {
    .el-legal-document {
        max-width: none;
        border: none;
    }
    .el-legal-document p {
        page-break-inside: avoid;
    }
}
@media screen {
    .el-legal-document {
        border: 1px solid var(--el-border, #e5e7eb);
        padding: 1rem;
        background: #fff;
    }
}

/* User management — full-width grid + modal */
.el-users-page .el-page-header {
    margin-bottom: 1.25rem;
}
.el-users-page .el-page-subtitle {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--el-text-muted);
}
.el-users-table-card {
    width: 100%;
}
.el-users-table th,
.el-users-table td {
    vertical-align: middle;
}
.el-users-table .el-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}
.el-users-table .el-actions form {
    display: contents;
}
.el-users-actions-col {
    width: 1%;
    min-width: 17rem;
    white-space: nowrap;
}
.el-users-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--el-text-muted);
}
.el-users-modal-backdrop {
    transition: opacity 0.22s ease;
}
.el-users-modal-panel {
    transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease;
}
.el-users-modal-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.el-users-check-row {
    padding: 0.125rem 0;
}
.el-users-access-panel {
    border: 1px solid var(--el-border);
    border-radius: var(--el-radius-md, 0.5rem);
    padding: 0.875rem 1rem;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}
.el-users-access-title {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--el-text);
}
.el-users-access-hint {
    margin: 0;
    font-size: 0.75rem;
    color: var(--el-text-muted);
}
.el-users-check-label {
    align-items: flex-start;
    font-size: 0.875rem;
    line-height: 1.45;
}
.el-input-readonly {
    background: #f8fafc;
    color: var(--el-text-muted);
    cursor: default;
}
.el-users-modal .el-modal-backdrop {
    backdrop-filter: blur(3px);
    background: rgba(15, 23, 42, 0.48);
}
.el-users-modal .el-modal-panel {
    box-shadow: 0 24px 48px -12px rgb(15 23 42 / 0.28);
}
.el-users-modal-enter,
.el-users-modal-leave {
    transition: opacity 0.2s ease;
}
.el-users-modal-enter-start,
.el-users-modal-leave-end {
    opacity: 0;
}
.el-users-modal-enter-end,
.el-users-modal-leave-start {
    opacity: 1;
}
.el-users-modal-enter .el-users-modal-panel,
.el-users-modal-leave .el-users-modal-panel {
    transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}
.el-users-modal-enter-start .el-users-modal-panel {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
}
.el-users-modal-enter-end .el-users-modal-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.el-users-modal-leave-start .el-users-modal-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.el-users-modal-leave-end .el-users-modal-panel {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
}
@media (max-width: 768px) {
    .el-users-page .el-page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    .el-users-page .el-page-header .el-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Disbursement — other customer accounts table */
.el-disburse-other-accounts__head {
    margin-bottom: 0.875rem;
}

.el-disburse-accounts-table-wrap {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.el-disburse-accounts-table {
    width: 100%;
    min-width: 34rem;
    border-collapse: separate;
    border-spacing: 0;
}

.el-disburse-accounts-table thead {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.el-disburse-accounts-table th {
    padding: 0.5rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    vertical-align: middle;
    border-bottom: 1px solid #cbd5e1;
}

.el-disburse-accounts-table td {
    padding: 0.625rem 0.75rem;
    font-size: 0.8125rem;
    color: #1e293b;
    vertical-align: middle;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
}

.el-disburse-accounts-table tbody tr:last-child td {
    border-bottom: none;
}

.el-disburse-accounts-table tbody tr:hover td {
    background: #f8fafc;
}

.el-disburse-accounts-table__account {
    min-width: 9rem;
}

.el-disburse-accounts-table__sub {
    display: block;
    margin-top: 0.125rem;
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.3;
}

.el-disburse-accounts-table__type,
.el-disburse-accounts-table__status {
    white-space: nowrap;
}

.el-disburse-accounts-table__num {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

.el-disburse-accounts-table__num--warn {
    color: #c2410c;
    font-weight: 600;
}

.el-disburse-type-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: #e0f2fe;
    color: #0369a1;
}

.el-disburse-type-badge--hp {
    background: #ede9fe;
    color: #5b21b6;
}

.el-disburse-arrears-badge {
    display: inline-block;
    padding: 0.125rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #b91c1c;
    background: #fef2f2;
}

.el-disburse-accounts-table__row--writeoff td {
    background: #fef2f2;
}

/* Disbursement — customer photo header */
.el-disburse-customer-head {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #f8fafc 0%, #fff 55%, #f0fdf4 100%);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.el-disburse-customer-head__details {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.el-disburse-customer-head__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0f766e;
}

.el-disburse-customer-head__name {
    margin: 0;
    font-size: 1.375rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.el-disburse-customer-head__id {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
}

.el-disburse-customer-head__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin: 1rem 0 0;
}

.el-disburse-customer-head__kpi {
    flex: 1 1 7.5rem;
    min-width: 7rem;
    padding: 0.625rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.9);
}

.el-disburse-customer-head__kpi dt {
    margin: 0;
    color: #64748b;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.el-disburse-customer-head__kpi dd {
    margin: 0.25rem 0 0;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.el-disburse-customer-head__kpi--highlight {
    border-color: #86efac;
    background: linear-gradient(180deg, #ecfdf5 0%, #fff 100%);
}

.el-disburse-customer-head__kpi--highlight dd {
    font-size: 1.125rem;
    color: #047857;
}

.el-disburse-customer-head__hint {
    margin: 0.875rem 0 0;
    font-size: 0.8125rem;
    color: #64748b;
}

.el-disburse-customer-head__photo-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 0.5rem;
    border-left: 1px solid #e2e8f0;
}

.el-disburse-customer-head__photo {
    display: block;
    width: 6.75rem;
    aspect-ratio: 35 / 45;
    border-radius: 0.5rem;
    border: 3px solid #fff;
    outline: 1px solid #cbd5e1;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
    object-fit: cover;
    object-position: center top;
    background: #f8fafc;
}

.el-disburse-customer-head__photo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    background: #f1f5f9;
}

@media (max-width: 640px) {
    .el-disburse-customer-head {
        flex-direction: column-reverse;
    }

    .el-disburse-customer-head__photo-wrap {
        border-left: none;
        border-bottom: 1px solid #e2e8f0;
        padding-left: 0;
        padding-bottom: 1rem;
        justify-content: flex-start;
    }
}

/* Disbursement — bank account + passbook */
.el-disburse-bank-panel {
    padding: 1rem 1.25rem;
    border: 1px solid #bfdbfe;
    border-radius: 0.75rem;
    background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
}

.el-disburse-bank-panel__title {
    margin: 0 0 0.875rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #1e3a8a;
}

.el-disburse-bank-panel__grid {
    display: grid;
    grid-template-columns: 1fr minmax(9rem, 11rem);
    gap: 1.25rem;
    align-items: start;
}

.el-disburse-bank-panel__dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1.25rem;
    margin: 0;
}

.el-disburse-bank-panel__dl dt {
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #3b82f6;
}

.el-disburse-bank-panel__dl dd {
    margin: 0.2rem 0 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
    word-break: break-word;
}

.el-disburse-bank-panel__empty {
    margin: 0;
    font-size: 0.875rem;
    color: #475569;
}

.el-disburse-bank-panel__passbook {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 100%;
}

.el-disburse-bank-panel__passbook-label {
    margin: 0 0 0.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #3b82f6;
    text-align: center;
}

.el-disburse-passbook-thumb {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 0;
    border: 2px solid #fff;
    outline: 1px solid #93c5fd;
    border-radius: 0.5rem;
    background: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
    cursor: zoom-in;
    overflow: hidden;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.el-disburse-passbook-thumb:hover {
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
    transform: translateY(-1px);
}

.el-disburse-passbook-thumb__img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
    background: #f1f5f9;
}

.el-disburse-passbook-thumb__hint {
    padding: 0.375rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #2563eb;
    text-align: center;
    background: #eff6ff;
    border-top: 1px solid #dbeafe;
}

.el-disburse-passbook-thumb--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 8rem;
    padding: 1rem;
    font-size: 0.8125rem;
    color: #64748b;
    text-align: center;
    cursor: default;
    background: #f8fafc;
}

.el-disburse-passbook-thumb--empty:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

@media (max-width: 640px) {
    .el-disburse-bank-panel__grid {
        grid-template-columns: 1fr;
    }

    .el-disburse-bank-panel__passbook {
        max-width: 12rem;
    }
}

/* Settings shell — left sidebar + mobile menu */
.el-settings-shell {
    display: grid;
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
    max-width: 80rem;
    margin: 0 auto;
}
.el-settings-shell__toolbar { display: none; margin-bottom: 0.75rem; }
.el-settings-shell__content { min-width: 0; }
.el-settings-mobile-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 140;
}
.el-settings-sidebar {
    background: #fff;
    border: 1px solid var(--el-border);
    border-radius: 0.75rem;
    padding: 0.75rem 0;
    position: sticky;
    top: 5.5rem;
}
.el-settings-sidebar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem 0.75rem;
    border-bottom: 1px solid var(--el-border);
    margin-bottom: 0.5rem;
}
.el-settings-sidebar__title { font-size: 1rem; font-weight: 600; margin: 0; }
.el-settings-sidebar__close {
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
}
.el-settings-sidebar__section {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9ca3af;
    padding: 0.75rem 1rem 0.25rem;
    margin: 0;
}
.el-settings-sidebar__link {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #374151;
    text-decoration: none;
    border-left: 3px solid transparent;
}
.el-settings-sidebar__link:hover { background: #f9fafb; color: #0f766e; }
.el-settings-sidebar__link.is-active {
    background: #f0fdfa;
    color: #0f766e;
    font-weight: 600;
    border-left-color: #0f766e;
}
@media (max-width: 767px) {
    .el-settings-shell { grid-template-columns: 1fr; }
    .el-settings-shell__toolbar { display: block; }
    .el-settings-sidebar {
        display: none !important;
        position: fixed;
        inset: 0 auto 0 0;
        width: min(18rem, 88vw);
        z-index: 150;
        top: 0;
        bottom: 0;
        height: 100dvh;
        border-radius: 0;
        border-left: none;
        box-shadow: 0 10px 40px rgba(0,0,0,0.15);
        overflow-y: auto;
    }
    .el-settings-sidebar.is-open { display: flex !important; flex-direction: column; }
    .el-settings-sidebar__close { display: inline-flex; }
}
@media (min-width: 768px) {
    .el-settings-sidebar__close { display: none; }
}

/* Loan / HP file folder label print */
.el-file-label-body { background: #fff; }
.el-file-label {
    width: 100%;
    max-width: 11cm;
    border: 2px solid #111;
    padding: 0.55rem 0.65rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #111;
    background: #fff;
}
.el-file-label__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    border-bottom: 1.5px solid #111;
    padding-bottom: 0.35rem;
    margin-bottom: 0.4rem;
}
.el-file-label__doc-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.el-file-label__account-no {
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
}
.el-file-label__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
    line-height: 1.35;
}
.el-file-label__table th,
.el-file-label__table td {
    padding: 0.18rem 0.25rem;
    vertical-align: top;
    border-bottom: 1px dotted #bbb;
}
.el-file-label__table tr:last-child th,
.el-file-label__table tr:last-child td { border-bottom: none; }
.el-file-label__table th {
    width: 38%;
    text-align: left;
    font-weight: 600;
    color: #333;
    padding-right: 0.4rem;
}
.el-file-label__muted {
    color: #555;
    font-weight: 400;
    font-size: 0.72rem;
}
@media print {
    .el-file-label-body { padding: 0 !important; }
    .el-file-label {
        max-width: none;
        width: 10.5cm;
        page-break-inside: avoid;
    }
}
