/* base.css - Variables, keyframes, global enhancements, toasts, search, tables, footer, responsive */

/* Shake animation for login errors */
@keyframes shakeX {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}

:root {
    --bs-font-sans-serif: 'Futura PT', 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --bs-body-font-family: var(--bs-font-sans-serif);
    --eff-primary: #1E6332;
    --eff-primary-dark: #214A3E;
    --eff-primary-light: #F4F0E9;
    --eff-shadow: 0 2px 8px rgba(0,0,0,0.08);
    --eff-shadow-hover: 0 4px 16px rgba(0,0,0,0.12);
    --eff-transition: all 0.3s ease;
    /* Sidebar variables */
    --sidebar-width-expanded: 210px;
    --sidebar-width-collapsed: 72px;
    --sidebar-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 60px;
}

* {
    font-family: 'Futura PT', 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    background-color: #eef0f3;
}

/* ==================== DATA LOADING PROGRESS BANNER ==================== */
.load-progress-banner {
    position: fixed;
    top: 56px;  /* below header */
    left: 260px; /* sidebar width */
    right: 0;
    height: 32px;
    background: #f8f9fa;
    color: #1E6332;
    display: flex;
    align-items: center;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 500;
    z-index: 1040;
    transition: opacity 0.4s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border-bottom: 1px solid #e9ecef;
}
.load-progress-banner.fade-out {
    opacity: 0;
}
.load-progress-banner.complete {
    background: #F4F0E9;
    color: #214A3E;
}
/* Sidebar collapsed */
body.sidebar-collapsed .load-progress-banner {
    left: 70px;
}
/* Impersonation banner pushes progress banner down */
body.impersonating .load-progress-banner {
    top: 88px; /* 56px header + 32px impersonate banner */
}
.load-progress-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(30, 99, 50,0.2);
    border-top-color: #1E6332;
    border-radius: 50%;
    animation: progressSpin 0.8s linear infinite;
    margin-right: 8px;
    flex-shrink: 0;
}
.load-progress-banner.complete .load-progress-spinner {
    display: none;
}
.load-progress-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@keyframes progressSpin {
    to { transform: rotate(360deg); }
}

/* ==================== SIDEBAR / MOBILE LOADING-DATA STATE ==================== */
.sidebar-link.loading-data {
    opacity: 0.45;
    pointer-events: none;
    cursor: default;
}
.sidebar-link-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(30, 99, 50,0.2);
    border-top-color: #1E6332;
    border-radius: 50%;
    animation: progressSpin 0.8s linear infinite;
    margin-left: auto;
    flex-shrink: 0;
}
/* When spinner sits next to a badge, use gap instead of auto margin */
.sidebar-badge + .sidebar-link-spinner,
.sidebar-badge-new + .sidebar-link-spinner {
    margin-left: 6px;
}

/* ==================== FUNERAL HOME LINKS ==================== */
/* ==================== RESIZABLE COLUMN HANDLES ==================== */
.col-resize-handle {
    position: absolute;
    top: 0;
    right: -2px;
    width: 5px;
    height: 100%;
    cursor: col-resize;
    z-index: 15;
    user-select: none;
    -webkit-user-select: none;
}
.col-resize-handle::after {
    content: '';
    position: absolute;
    top: 25%;
    right: 2px;
    width: 1px;
    height: 50%;
    background: #d1d5db;
    border-radius: 1px;
    transition: background 0.15s, width 0.15s;
}
.col-resize-handle:hover::after,
.col-resize-handle.active::after {
    background: #1E6332;
    width: 2px;
    top: 10%;
    height: 80%;
}
.col-resize-handle.active {
    width: 10px;
    right: -5px;
}

.fh-link {
    color: #1E6332;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease;
}
.fh-link:hover {
    color: #214A3E;
    text-decoration: underline;
}

/* ==================== IC BADGE (Insurance Company Logo) ==================== */
.ic-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    vertical-align: middle;
}
.ic-logo {
    height: 32px;
    max-width: 56px;
    object-fit: contain;
    flex-shrink: 0;
}
.ic-logo-fallback {
    font-size: 18px;
    color: #6b7280;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}
.ic-badge-lg .ic-logo {
    height: 42px;
    max-width: 72px;
}
.ic-badge-lg .ic-logo-fallback {
    font-size: 24px;
    width: 32px;
}
.ic-select-preview {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin-right: 6px;
}
.ic-select-img {
    height: 36px;
    max-width: 64px;
    object-fit: contain;
}

/* ==================== CUSTOM IC DROPDOWN WITH LOGOS ==================== */
.ic-dropdown-wrapper {
    position: relative;
    width: 100%;
}
.ic-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    min-height: 38px;
    background: #fff;
    user-select: none;
}
.ic-dropdown-trigger .ic-dropdown-placeholder {
    color: #6c757d;
}
.ic-dropdown-trigger .ic-dropdown-logo {
    height: 24px;
    max-width: 48px;
    object-fit: contain;
    flex-shrink: 0;
}
.ic-dropdown-trigger .ic-dropdown-shield {
    font-size: 16px;
    color: #6b7280;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}
.ic-dropdown-trigger .ic-dropdown-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ic-dropdown-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1060;
    background: #fff;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    max-height: 520px;
    display: flex;
    flex-direction: column;
}
.ic-dropdown-wrapper.open .ic-dropdown-trigger {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13,110,253,.25);
}
.ic-dropdown-search-wrap {
    position: relative;
    padding: 8px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}
.ic-dropdown-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 13px;
}
.ic-dropdown-search {
    width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 6px 10px 6px 30px;
    font-size: 14px;
    outline: none;
}
.ic-dropdown-search:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 2px rgba(13,110,253,.15);
}
.ic-dropdown-options {
    overflow-y: auto;
    max-height: 460px;
    padding: 4px 0;
}
.ic-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.1s;
    font-size: 14px;
}
.ic-dropdown-item:hover {
    background: #F4F0E9;
}
.ic-dropdown-item.selected {
    background: #F4F0E9;
    font-weight: 600;
}
.ic-dropdown-item .ic-dropdown-logo {
    height: 24px;
    max-width: 48px;
    object-fit: contain;
    flex-shrink: 0;
}
.ic-dropdown-item .ic-dropdown-shield {
    font-size: 16px;
    color: #6b7280;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}
.ic-dropdown-item .ic-dropdown-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}
.ic-dropdown-empty {
    padding: 16px 12px;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

/* ==================== SEARCHABLE FH DROPDOWN ==================== */
.fh-dropdown-wrapper { position: relative; width: 100%; }
.fh-dropdown-trigger {
    display: flex; align-items: center; gap: 8px; cursor: pointer;
    min-height: 38px; background: #fff; user-select: none;
    border: 1px solid #dee2e6; border-radius: 6px; padding: 6px 12px;
    font-size: 14px; color: #212529; transition: border-color 0.15s, box-shadow 0.15s;
}
.fh-dropdown-trigger:hover { border-color: #adb5bd; }
.fh-dropdown-trigger .fh-dropdown-placeholder { color: #6c757d; }
.fh-dropdown-panel {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 1060;
    background: #fff; border: 1px solid #dee2e6; border-top: none;
    border-radius: 0 0 6px 6px; box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    max-height: 360px; display: flex; flex-direction: column;
}
.fh-dropdown-wrapper.open .fh-dropdown-trigger {
    border-bottom-left-radius: 0; border-bottom-right-radius: 0;
    border-color: #1E6332; box-shadow: 0 0 0 0.25rem rgba(30, 99, 50,.2);
}
.fh-dropdown-search-wrap {
    position: relative; padding: 8px; border-bottom: 1px solid #eee; flex-shrink: 0;
}
.fh-dropdown-search-icon {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    color: #9ca3af; font-size: 13px;
}
.fh-dropdown-search {
    width: 100%; border: 1px solid #dee2e6; border-radius: 6px;
    padding: 6px 10px 6px 30px; font-size: 14px; outline: none;
}
.fh-dropdown-search:focus {
    border-color: #1E6332; box-shadow: 0 0 0 2px rgba(30, 99, 50,.15);
}
.fh-dropdown-options { overflow-y: auto; max-height: 300px; padding: 4px 0; }
.fh-dropdown-item {
    display: flex; align-items: center; gap: 10px; padding: 8px 12px;
    cursor: pointer; transition: background 0.1s; font-size: 14px;
}
.fh-dropdown-item:hover { background: #F4F0E9; }
.fh-dropdown-item.selected { background: #F4F0E9; font-weight: 600; }
.fh-dropdown-icon { font-size: 14px; color: #1E6332; width: 20px; text-align: center; flex-shrink: 0; }
.fh-dropdown-item span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fh-dropdown-empty { padding: 16px 12px; text-align: center; color: #9ca3af; font-size: 14px; }
.fh-dropdown-primary-tag {
    margin-left: auto;
    padding: 1px 8px;
    border-radius: 10px;
    background: #fef3c7;
    color: #b45309;
    font-size: 0.7rem;
    font-weight: 600;
    flex-shrink: 0;
}

/* ==================== GLOBAL ENHANCEMENTS ==================== */
.fade-in {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hover-lift {
    transition: var(--eff-transition);
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: var(--eff-shadow-hover);
}

/* Toast Notification System */
.toast-container {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 10300;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
}

.toast-notification {
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 220px;
    max-width: 380px;
    font-size: 0.8rem;
    animation: slideInRight 0.3s ease-out;
    border-left: 3px solid var(--eff-primary);
    background: #f0f9ff;
    color: #1e293b;
}

.toast-notification > span:first-of-type {
    flex: 1;
    min-width: 0;
}

.toast-notification.toast-success { border-left-color: #1E6332; background: #F4F0E9; }
.toast-notification.toast-error { border-left-color: #dc3545; background: #fef2f2; }
.toast-notification.toast-warning { border-left-color: #ffc107; background: #fffbeb; }
.toast-notification.toast-info { border-left-color: #0dcaf0; background: #f0f9ff; }

.toast-notification .toast-icon {
    font-size: 0.9rem;
    flex-shrink: 0;
}

.toast-notification.toast-success .toast-icon { color: #1E6332; }
.toast-notification.toast-error .toast-icon { color: #dc3545; }
.toast-notification.toast-warning .toast-icon { color: #ffc107; }
.toast-notification.toast-info .toast-icon { color: #0dcaf0; }


@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideOutRight {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(100px); }
}

/* Modal Enhancements */
.modal-confirm {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    align-items: center;
    justify-content: center;
}

.modal-confirm.show {
    display: flex;
}

.modal-confirm-content {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    max-width: 400px;
    text-align: center;
    animation: fadeIn 0.2s ease-out;
}

.modal-confirm-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.modal-confirm-icon.success { background: #F4F0E9; color: #1E6332; }
.modal-confirm-icon.warning { background: #fff3cd; color: #664d03; }
.modal-confirm-icon.danger { background: #f8d7da; color: #dc3545; }

/* Notification Dropdown */
.notification-dropdown {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: #fff;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

.notification-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: none;
    z-index: 1000;
    overflow: hidden;
}

.notification-menu.show {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

.notification-header {
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Notification info tooltip */
.notif-info-icon {
    font-size: 12px;
    color: #adb5bd;
    cursor: pointer;
    margin-left: 3px;
    transition: color 0.2s;
}
.notif-info-icon:hover {
    color: #1E6332;
}
.notif-info-tooltip {
    display: none;
    position: fixed;
    width: 290px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0,0,0,.15);
    padding: 16px 18px;
    z-index: 10001;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.55;
    color: #495057;
}
.notif-info-tooltip .tooltip-title {
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #1E6332;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}
.notif-info-tooltip ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.notif-info-tooltip li {
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12.5px;
    color: #4a5568;
}
.notif-info-tooltip li i {
    font-size: 11px;
    flex-shrink: 0;
    width: 14px;
    text-align: center;
}

.notification-item {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    gap: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.notification-item:hover {
    background: #f8f9fa;
}

.notification-item.unread {
    background: #f0fff4;
}

.notification-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-item-icon.success { background: #F4F0E9; color: #1E6332; }
.notification-item-icon.info { background: #cfe2ff; color: #084298; }
.notification-item-icon.warning { background: #fff3cd; color: #664d03; }

.notification-footer {
    padding: 0.75rem;
    text-align: center;
    border-top: 1px solid #dee2e6;
}

/* Search Box Enhancement */
.search-box {
    position: relative;
}

.search-box input {
    padding-left: 2.5rem;
    border-radius: 20px;
    border: 1px solid #dee2e6;
    transition: var(--eff-transition);
}

.search-box input:focus {
    border-color: var(--eff-primary);
    box-shadow: 0 0 0 3px rgba(30, 99, 50, 0.1);
}

.search-box .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

/* Global Search Results */
.global-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1050;
    max-height: 500px;
    overflow-y: auto;
    margin-top: 4px;
}

.search-result-section {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.search-result-section:last-child {
    border-bottom: none;
}

.search-result-section-title {
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-result-item {
    padding: 6px 12px;
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-result-item:hover {
    background: #f8f9fa;
}

.search-result-item .result-icon {
    width: 26px;
    height: 26px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.search-result-item .result-icon.claim { background: #F4F0E9; color: #1E6332; }
.search-result-item .result-icon.draft { background: #fef3c7; color: #d97706; }
.search-result-item .result-icon.deceased { background: #cfe2ff; color: #0d6efd; }

.search-result-item .result-info {
    flex: 1;
    min-width: 0;
}

.search-result-item .result-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: #212529;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-item .result-subtitle {
    font-size: 11px;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-item .result-badge {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: 600;
    flex-shrink: 0;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: #6c757d;
}

/* ==================== TABLE STYLES ==================== */
.table-container {
    background: #fff;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--eff-shadow);
}

.table-header {
    background: #fff;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-header h5 {
    margin: 0;
    font-weight: 600;
    color: #212529;
}

.table {
    margin: 0;
}

.table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    border-bottom: 1px solid #dee2e6;
    padding: 0.875rem 1rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table td {
    padding: 0.875rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
}

.table tbody tr {
    transition: background 0.2s;
}

.table tbody tr:hover {
    background: #f8f9fa;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.status-badge {
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.status-approved { background-color: #F4F0E9; color: #214A3E; }
.status-pending { background-color: #fff3cd; color: #664d03; }
.status-processing { background-color: #fef3c7; color: #92400e; }
.status-in-process { background-color: #fef3c7; color: #92400e; }
.status-denied { background-color: #f8d7da; color: #842029; }
.status-funded { background-color: #F4F0E9; color: #214A3E; }
.status-closed { background-color: #cfe2ff; color: #084298; }
.status-withdrawn { background-color: #f8d7da; color: #842029; }

/* Action buttons in tables */
.table-actions {
    display: flex;
    gap: 0.5rem;
}

.table-actions .btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #6c757d;
    transition: var(--eff-transition);
}

.table-actions .btn-icon:hover {
    border-color: var(--eff-primary);
    color: var(--eff-primary);
    background: #f0fff4;
}

.table-actions .btn-icon.danger:hover {
    border-color: #dc3545;
    color: #dc3545;
    background: #fff5f5;
}

/* ==================== FOOTER STYLES ==================== */
.main-footer {
    background-color: #fff;
    border-top: 1px solid #dee2e6;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    position: fixed;
    bottom: 0;
    left: var(--sidebar-width-expanded);
    right: 0;
    z-index: 100;
    transition: var(--sidebar-transition);
}

.sidebar-collapsed .main-footer {
    left: var(--sidebar-width-collapsed);
}

.footer-logo {
    height: 32px;
}

.footer-brand {
    font-weight: 600;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
    .welcome-banner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .quick-actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 992px) {
    .page-section.flex-section.active {
        flex-direction: column;
    }
    .step-nav {
        width: 100%;
        display: flex;
        overflow-x: auto;
        padding: 1.25rem 1.5rem;
        border-bottom: 1px solid #dee2e6;
        position: static;
        max-height: none;
        left: auto;
        top: auto;
        bottom: auto;
        border-right: none;
    }
    .step-item {
        padding-bottom: 0;
        padding-right: 2rem;
        flex-shrink: 0;
    }
    .step-item::before {
        display: none;
    }
    .form-area {
        padding: 2rem;
    }
    #page-create-claim .form-area {
        margin-left: 0;
    }
    .form-content {
        max-width: 100%;
    }
    .stats-card-content {
        flex-direction: column;
        text-align: center;
    }
    .stats-card-info {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .dashboard-content {
        padding: 1rem;
    }
    .welcome-banner {
        padding: 1rem 1.25rem;
    }
    .quick-actions {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    .quick-action-btn {
        justify-content: center;
        padding: 0.65rem 0.75rem;
        font-size: 0.9rem;
    }
    .stats-card {
        padding: 1rem;
    }
    .stats-card h3 {
        font-size: 1.5rem;
    }
    .table-container {
        margin-bottom: 1rem;
    }
    .main-header {
        padding: 0.5rem;
    }
    .notification-menu {
        position: fixed;
        right: 10px;
        left: 10px;
        width: auto;
    }
    .toast-container {
        left: 10px;
        right: 10px;
    }
    .toast-notification {
        min-width: auto;
    }
}

@media (max-width: 576px) {
    .quick-actions {
        grid-template-columns: 1fr;
    }
    .main-footer {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    .main-footer > div {
        justify-content: center !important;
    }
}

.app-container {
    display: none;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

.app-container.active {
    display: flex;
}

.step-panel {
    display: none;
}

.step-panel.active {
    display: block;
}

/* ==================== LOADING OVERLAY ==================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a1a0f 0%, #0d2818 50%, #0a1a0f 100%);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loading-overlay.active {
    display: flex;
    opacity: 1;
}

.loading-overlay.fade-out {
    opacity: 0;
    transition: opacity 0.6s ease-out;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* Logo wrapper — positions glow, ring, and avatar */
.loading-logo-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Pulsing glow behind the avatar */
.loading-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(47, 133, 66, 0.35) 0%, rgba(30, 99, 50, 0.15) 50%, transparent 70%);
    animation: loadingGlow 3s ease-in-out infinite;
}

@keyframes loadingGlow {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.4); opacity: 0.8; }
}

/* Spinning ring around the avatar */
.loading-ring {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top: 2px solid #18A74B;
    border-right: 2px solid rgba(47, 133, 66, 0.3);
    animation: progressSpin 1.8s linear infinite;
}

/* Second ring — counter-rotating, slower */
.loading-ring::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    border: 1px solid transparent;
    border-bottom: 1px solid rgba(47, 133, 66, 0.2);
    border-left: 1px solid rgba(47, 133, 66, 0.1);
    animation: progressSpin 3s linear infinite reverse;
}

/* The EFF avatar circle */
.loading-avatar {
    position: relative;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1E6332 0%, #214A3E 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(47, 133, 66, 0.3), inset 0 0 20px rgba(255, 255, 255, 0.05);
    animation: loadingPulse 2.5s ease-in-out infinite;
    z-index: 1;
}

.loading-avatar span {
    color: #fff;
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 1.5px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

@keyframes loadingPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 30px rgba(47, 133, 66, 0.3), inset 0 0 20px rgba(255, 255, 255, 0.05); }
    50% { transform: scale(1.06); box-shadow: 0 0 50px rgba(47, 133, 66, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.08); }
}

/* Status text with animated dots */
.loading-status {
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Futura PT', 'Jost', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin: 0;
    min-width: 200px;
    text-align: center;
}

.loading-status::after {
    content: '';
    animation: loadingDots 1.5s steps(4, end) infinite;
}

@keyframes loadingDots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
}

/* Blur the app behind the overlay */
.app-container.loading-blur {
    filter: blur(6px);
    transition: filter 0.3s ease;
}

.app-container.loading-blur-clear {
    filter: none;
    transition: filter 0.6s ease;
}

/* ==================== Google Places Autocomplete + Mini Map ==================== */
.address-map-container {
    display: none;
    margin-top: 8px;
    border-radius: 12px;
    overflow: hidden;
    border: 1.5px solid #e2e8f0;
    transition: all 0.3s ease;
}

.address-map-container.map-visible {
    display: block;
}

.address-mini-map {
    width: 100%;
    height: 200px;
    background: #f8fafc;
}

.map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #94a3b8;
    gap: 8px;
    background: #f8fafc;
}

.map-placeholder i {
    font-size: 28px;
    color: #cbd5e1;
}

.map-placeholder span {
    font-size: 13px;
    font-weight: 500;
}

/* Google Places autocomplete dropdown overrides */
.pac-container {
    z-index: 100000 !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
    margin-top: 4px !important;
    font-family: inherit !important;
    overflow: hidden !important;
}

.pac-item {
    padding: 10px 16px !important;
    font-size: 14px !important;
    cursor: pointer !important;
    border-top: 1px solid #f1f5f9 !important;
    transition: background 0.15s ease !important;
}

.pac-item:first-child {
    border-top: none !important;
}

.pac-item:hover {
    background: #F4F0E9 !important;
}

.pac-item-selected {
    background: #F4F0E9 !important;
}

.pac-icon {
    margin-right: 10px !important;
}

.pac-item-query {
    font-size: 14px !important;
    color: #1e293b !important;
    font-weight: 500 !important;
}

.pac-matched {
    font-weight: 700 !important;
    color: #1E6332 !important;
}

.pac-container::after {
    padding: 8px 16px !important;
    background: #f8fafc !important;
}

/* ── PDF Beneficiary Picker Modal ── */
.pdf-bene-picker {
    background: #fff;
    border-radius: 16px;
    width: 520px;
    max-width: 95vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    animation: pdfPickerIn 0.2s ease-out;
}
@keyframes pdfPickerIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.pdf-bene-picker-header {
    background: linear-gradient(135deg, #1E6332, #214A3E);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.pdf-bene-picker-body {
    padding: 16px 20px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}
.pdf-bene-picker-footer {
    padding: 12px 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    gap: 8px;
}
.pdf-bene-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.pdf-bene-card:hover {
    border-color: #2F8542;
    background: #F4F0E9;
}
.pdf-bene-card:has(.pdf-bene-cb:checked) {
    border-color: #1E6332;
    background: #f0faf4;
}
.pdf-bene-cb {
    margin-top: 4px;
    accent-color: #1E6332;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    cursor: pointer;
}
.pdf-bene-card-inner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.pdf-bene-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1E6332, #2F8542);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}
.pdf-bene-info {
    flex: 1;
    min-width: 0;
}
.pdf-bene-name {
    font-weight: 600;
    font-size: 14px;
    color: #1f2937;
    margin-bottom: 4px;
}
.pdf-bene-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 12px;
    color: #6b7280;
}
.pdf-bene-meta i {
    margin-right: 3px;
    color: #9ca3af;
    font-size: 11px;
}
.pdf-bene-select-btn {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 12px;
    color: #374151;
    cursor: pointer;
    transition: background 0.15s;
}
.pdf-bene-select-btn:hover {
    background: #e5e7eb;
}
.pdf-bene-cancel-btn {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    font-weight: 500;
}
.pdf-bene-cancel-btn:hover {
    background: #e5e7eb;
}
.pdf-bene-download-btn, .pdf-bene-merge-btn {
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    color: #fff;
    cursor: pointer;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.15s;
}
.pdf-bene-download-btn {
    background: linear-gradient(135deg, #1E6332, #2F8542);
}
.pdf-bene-merge-btn {
    background: linear-gradient(135deg, #214A3E, #1E6332);
}
.pdf-bene-download-btn:hover, .pdf-bene-merge-btn:hover {
    opacity: 0.9;
}
.pdf-bene-download-btn:disabled, .pdf-bene-merge-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ═══════════════════════════════════════════════════════════════
   Draft Assignment Form Picker — Policy → Beneficiary selection
   ═══════════════════════════════════════════════════════════════ */

.draft-assign-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10200;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}
.draft-assign-picker {
    background: #fff;
    border-radius: 16px;
    width: 640px;
    max-width: 95vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

/* Header */
.draft-assign-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, #1E6332 0%, #214A3E 100%);
    flex-shrink: 0;
}
.draft-assign-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.draft-assign-header-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
}
.draft-assign-header-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    font-family: 'Futura PT', 'Jost', sans-serif;
}
.draft-assign-header-sub {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}
.draft-assign-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.15s;
}
.draft-assign-close:hover {
    color: #fff;
}

/* Description */
.draft-assign-desc {
    padding: 12px 20px;
    font-size: 12.5px;
    color: #6b7280;
    background: #fafaf8;
    border-bottom: 1px solid #f0eeeb;
    flex-shrink: 0;
}
.draft-assign-desc i {
    color: #1E6332;
    margin-right: 4px;
}

/* Body (scrollable) */
.draft-assign-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
}

/* Policy card */
.draft-assign-policy {
    border: 1px solid #e8e4df;
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.draft-assign-policy:last-child {
    margin-bottom: 0;
}
.draft-assign-policy:hover {
    border-color: #d0ccc6;
}

/* Policy header row */
.draft-assign-pol-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #fafaf8;
}

/* Policy checkbox */
.draft-assign-pol-cb-wrap {
    display: flex;
    align-items: center;
    cursor: pointer;
}
.draft-assign-pol-cb {
    width: 18px;
    height: 18px;
    accent-color: #1E6332;
    cursor: pointer;
}

/* IC badge */
.draft-assign-pol-ic {
    flex-shrink: 0;
    width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.draft-assign-pol-ic img {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    object-fit: contain;
}

/* Policy info */
.draft-assign-pol-info {
    flex: 1;
    min-width: 0;
}
.draft-assign-pol-name {
    font-size: 13px;
    font-weight: 600;
    color: #231F20;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.draft-assign-pol-meta {
    display: flex;
    gap: 12px;
    font-size: 11.5px;
    color: #6b7280;
    margin-top: 2px;
    flex-wrap: wrap;
}

/* Right side badge + chevron */
.draft-assign-pol-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.draft-assign-pol-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
    background: #f0eeeb;
    color: #9ca3af;
    transition: all 0.2s;
}
.draft-assign-pol-badge.active {
    background: #F4F0E9;
    color: #1E6332;
}

/* Beneficiary list (always visible) */
.draft-assign-bene-list {
    border-top: 1px solid #f0eeeb;
}

.draft-assign-bene-empty {
    padding: 16px;
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
}
.draft-assign-bene-empty i {
    margin-right: 4px;
}

/* Beneficiary card */
.draft-assign-bene-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px 10px 42px;
    cursor: pointer;
    transition: background 0.1s;
    border-bottom: 1px solid #f8f7f5;
}
.draft-assign-bene-card:last-child {
    border-bottom: none;
}
.draft-assign-bene-card:hover {
    background: #f8f7f5;
}
.draft-assign-bene-card:has(.draft-assign-bene-cb:checked) {
    background: color-mix(in srgb, #1E6332 4%, #fff);
}
.draft-assign-bene-cb {
    width: 16px;
    height: 16px;
    accent-color: #1E6332;
    cursor: pointer;
    flex-shrink: 0;
}

.draft-assign-bene-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.draft-assign-bene-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #1E6332, #2F8542);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.draft-assign-bene-info {
    flex: 1;
    min-width: 0;
}
.draft-assign-bene-name {
    font-size: 13px;
    font-weight: 600;
    color: #231F20;
}
.draft-assign-bene-meta {
    display: flex;
    gap: 10px;
    font-size: 11px;
    color: #9ca3af;
    margin-top: 1px;
    flex-wrap: wrap;
}
.draft-assign-bene-meta i {
    font-size: 10px;
    margin-right: 2px;
}

/* Footer */
.draft-assign-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-top: 1px solid #e8e4df;
    background: #fafaf8;
    flex-shrink: 0;
    gap: 12px;
}
.draft-assign-count {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}
.draft-assign-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.draft-assign-cancel {
    padding: 8px 18px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
}
.draft-assign-cancel:hover {
    background: #f3f4f6;
}
.draft-assign-download, .draft-assign-merge {
    padding: 8px 18px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.draft-assign-download {
    background: linear-gradient(135deg, #1E6332, #2F8542);
    color: #fff;
}
.draft-assign-download:hover {
    filter: brightness(1.1);
}
.draft-assign-merge {
    background: #475453;
    color: #fff;
}
.draft-assign-merge:hover {
    background: #374140;
}
.draft-assign-download:disabled, .draft-assign-merge:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    filter: none;
}

/* ═══════════════════════════════════════════════════════════════
   eSign Modal — Zoho Sign beneficiary picker
   ═══════════════════════════════════════════════════════════════ */

.esign-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10200;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pdfPickerIn 0.2s ease;
}
.esign-modal {
    background: #fff;
    border-radius: 16px;
    width: 520px;
    max-width: 95vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}
.esign-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, #1E6332, #214A3E);
    color: #fff;
}
.esign-modal-title {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.esign-modal-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    font-size: 22px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}
.esign-modal-close:hover { color: #fff; }

.esign-modal-subheader {
    padding: 10px 20px;
    background: #F4F0E9;
    border-bottom: 1px solid #E8DFD0;
}
.esign-claim-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.esign-claim-name {
    font-weight: 600;
    font-size: 14px;
    color: #1E6332;
}
.esign-claim-meta {
    font-size: 12px;
    color: #666;
}

.esign-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 20px;
}

.esign-select-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 8px;
}
.esign-select-all-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
}
.esign-selected-count {
    font-size: 12px;
    color: #888;
}

.esign-bene-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 8px;
    transition: border-color 0.15s, background 0.15s;
}
.esign-bene-card:hover {
    border-color: #2F8542;
    background: #fafff8;
}
.esign-bene-card.no-email {
    opacity: 0.55;
    border-color: #f0e0e0;
    background: #fef8f8;
}

.esign-bene-row {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}
.esign-bene-card.no-email .esign-bene-row {
    cursor: not-allowed;
}
.esign-bene-cb {
    width: 18px;
    height: 18px;
    accent-color: #1E6332;
    flex-shrink: 0;
}
.esign-bene-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1E6332, #2F8542);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
}
.esign-bene-info {
    flex: 1;
    min-width: 0;
}
.esign-bene-name {
    font-weight: 600;
    font-size: 14px;
    color: #1a1a1a;
}
.esign-bene-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}
.esign-bene-email {
    color: #1E6332;
}
.esign-no-email {
    color: #dc3545;
    font-weight: 500;
}

.esign-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid #eee;
    background: #fafafa;
}
.esign-cancel-btn {
    padding: 8px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #555;
    font-size: 13px;
    cursor: pointer;
}
.esign-cancel-btn:hover { background: #f5f5f5; }

.esign-send-btn {
    padding: 8px 24px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #1E6332, #2F8542);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.15s;
}
.esign-send-btn:hover { opacity: 0.9; }
.esign-send-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ── eSign Confirmation Modal ── */
.esign-confirm-section {
    margin-bottom: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}
.esign-confirm-section-title {
    font-size: 13px;
    font-weight: 600;
    color: #1E6332;
    padding: 10px 14px;
    background: #F4F0E9;
    border-bottom: 1px solid #E8DFD0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.esign-confirm-grid {
    padding: 8px 14px;
}
.esign-confirm-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 5px 0;
    border-bottom: 1px solid #f5f5f5;
}
.esign-confirm-row:last-child { border-bottom: none; }
.esign-confirm-label {
    font-size: 12px;
    color: #888;
    flex-shrink: 0;
    width: 130px;
}
.esign-confirm-val {
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    text-align: right;
}
.esign-confirm-val-na {
    color: #d97706;
    font-style: italic;
}
.esign-confirm-val-email {
    color: #1E6332;
}
.esign-confirm-signers {
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.esign-confirm-signer {
    display: flex;
    align-items: center;
    gap: 12px;
}
.esign-confirm-signer-order {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1E6332, #2F8542);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}
.esign-confirm-signer-email {
    font-size: 12px;
    color: #888;
}
.esign-confirm-warning {
    padding: 10px 14px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    font-size: 12px;
    color: #92400e;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}
.esign-confirm-warning i { margin-top: 2px; }

/* ── eSign Status Section in Claim Detail Panel ── */
.esign-status-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    color: #888;
    font-size: 13px;
}
.esign-status-empty {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    color: #999;
    font-size: 13px;
}
.esign-status-empty i { font-size: 16px; }

.esign-status-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color 0.15s;
}
.esign-status-card:hover { border-color: #ccc; }

.esign-status-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
}
.esign-status-card-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.esign-status-card-time {
    font-size: 11px;
    color: #999;
}
.esign-status-pct {
    font-size: 11px;
    color: #666;
    font-weight: 500;
}

/* Status badges */
.esign-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}
.esign-badge-sent { background: #dbeafe; color: #1d4ed8; }
.esign-badge-viewed { background: #fef3c7; color: #92400e; }
.esign-badge-signed { background: #d1fae5; color: #065f46; }
.esign-badge-completed { background: #d1fae5; color: #065f46; border: 1px solid #065f46; }
.esign-badge-declined { background: #fee2e2; color: #991b1b; }
.esign-badge-expired { background: #f3f4f6; color: #6b7280; }

.esign-status-card-body { padding: 12px 14px; }

.esign-status-recipient {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    margin-bottom: 6px;
}
.esign-status-recipient i { color: #1E6332; font-size: 12px; }
.esign-status-email {
    font-size: 12px;
    color: #888;
    margin-left: 4px;
}
.esign-status-email-row {
    font-size: 12px;
    color: #888;
    padding-left: 22px;
    margin-top: -2px;
    margin-bottom: 4px;
}
.esign-status-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}
.esign-status-meta i { margin-right: 3px; }

/* Progress tracker */
.esign-progress-track {
    display: flex;
    align-items: center;
    gap: 0;
    padding-top: 4px;
}
.esign-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.esign-progress-step span {
    font-size: 10px;
    color: #bbb;
    font-weight: 500;
}
.esign-progress-step.done span { color: #1E6332; }
.esign-progress-step.current span { color: #1E6332; font-weight: 700; }

/* Compact progress steps inside sidebar status cards */
.detail-panel-sidebar .esign-progress-step {
    flex-shrink: 1;
    min-width: 0;
}
.detail-panel-sidebar .esign-progress-dot {
    width: 22px;
    height: 22px;
    font-size: 9px;
}
.detail-panel-sidebar .esign-progress-step span {
    font-size: 9px;
}
.detail-panel-sidebar .esign-progress-ts {
    font-size: 7.5px;
}
.detail-panel-sidebar .esign-progress-line {
    min-width: 6px;
    margin-bottom: 26px;
}

.esign-progress-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: all 0.2s;
}
.esign-progress-step.done .esign-progress-dot {
    background: linear-gradient(135deg, #1E6332, #2F8542);
    color: #fff;
}
.esign-progress-step.current .esign-progress-dot {
    background: linear-gradient(135deg, #1E6332, #2F8542);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(30, 99, 50, 0.2);
    animation: esignPulse 2s ease-in-out infinite;
}
@keyframes esignPulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(30, 99, 50, 0.2); }
    50% { box-shadow: 0 0 0 6px rgba(30, 99, 50, 0.15); }
}

.esign-progress-line {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    min-width: 12px;
    margin: 0 2px;
    margin-bottom: 30px;
}
.esign-progress-line.done { background: #1E6332; }

.esign-progress-declined {
    font-size: 12px;
    color: #dc3545;
    font-weight: 600;
    padding: 4px 0;
}
.esign-progress-declined i { margin-right: 4px; }

/* Progress step timestamps */
.esign-progress-ts {
    display: block;
    font-size: 8.5px;
    color: #999;
    font-weight: 400;
    white-space: nowrap;
    line-height: 1.1;
    margin-top: 1px;
}
.esign-progress-step.done .esign-progress-ts { color: #2F8542; }
.esign-progress-step.current .esign-progress-ts { color: #1E6332; font-weight: 600; }
.esign-progress-declined .esign-progress-ts {
    display: inline;
    font-size: 10px;
    color: #dc3545;
    margin-left: 8px;
    font-weight: 400;
}

/* Expiration badge */
.esign-expires {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: #666;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 8px;
    background: #f5f5f5;
}
.esign-expires i { font-size: 9px; }
.esign-expires.urgent {
    color: #e67700;
    background: #fff8e1;
}
.esign-expires.expired {
    color: #dc3545;
    background: #fef2f2;
}

/* Sent by info */
.esign-sent-by {
    font-size: 11px;
    color: #888;
}
.esign-sent-by i { margin-right: 3px; font-size: 10px; }

/* Beneficiary eSign — compact inline rows */
.ben-esign-section {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed #e5e7eb;
}
/* Beneficiary eSign section */
.ben-esign-section { margin-top: 8px; }
.ben-es-header {
    font-size: 11px;
    font-weight: 600;
    color: #1E6332;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.ben-es-header i { font-size: 10px; }
.ben-es-loading {
    padding: 8px 0;
    text-align: center;
    color: #1E6332;
    font-size: 12px;
}

/* Beneficiary eSign mini-card */
.ben-es-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    background: #fff;
}
.ben-es-card:hover {
    border-color: #1E6332;
    box-shadow: 0 2px 8px rgba(30, 99, 50, 0.1);
}
.ben-es-card.ben-es-completed { border-left: 3px solid #155724; }
.ben-es-card.ben-es-sent { border-left: 3px solid #1a73e8; }
.ben-es-card.ben-es-viewed { border-left: 3px solid #e67700; }
.ben-es-card.ben-es-signed { border-left: 3px solid #1E6332; }
.ben-es-card.ben-es-declined { border-left: 3px solid #dc3545; }
.ben-es-card.ben-es-expired { border-left: 3px solid #888; }

.ben-es-card-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.ben-es-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    flex-shrink: 0;
}
.ben-es-badge i { font-size: 9px; }
.ben-es-sent { background: #e8f4fd; color: #1a73e8; }
.ben-es-viewed { background: #fff8e1; color: #e67700; }
.ben-es-signed { background: #F4F0E9; color: #1E6332; }
.ben-es-completed { background: #d4edda; color: #155724; }
.ben-es-declined { background: #fef2f2; color: #dc3545; }
.ben-es-expired { background: #f5f5f5; color: #888; }

.ben-es-exp {
    font-size: 10px;
    color: #666;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.ben-es-exp i { font-size: 9px; }
.ben-es-exp.urgent { color: #e67700; }
.ben-es-exp.expired { color: #dc3545; }

.ben-es-card-time {
    font-size: 10px;
    color: #999;
    margin-left: auto;
}
.ben-es-card-arrow {
    font-size: 9px;
    color: #ccc;
    transition: transform 0.15s;
}
.ben-es-card:hover .ben-es-card-arrow { color: #1E6332; transform: translateX(2px); }

.ben-es-card-doc {
    font-size: 11.5px;
    color: #444;
    font-weight: 500;
    margin-bottom: 4px;
}
.ben-es-card-doc i { color: #1E6332; font-size: 10px; margin-right: 3px; }

.ben-es-card-waiting {
    font-size: 10.5px;
    color: #b08600;
    font-style: italic;
    margin-bottom: 6px;
}
.ben-es-card-waiting i { font-size: 9px; margin-right: 2px; }

.ben-es-card-sent-by {
    font-size: 10px;
    color: #888;
    margin-top: 4px;
}
.ben-es-card-sent-by i { font-size: 9px; margin-right: 2px; }

/* Mini progress tracker inside ben card */
.ben-es-progress {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 2px 0;
}
.ben-es-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}
.ben-es-step span {
    font-size: 8.5px;
    color: #bbb;
    font-weight: 500;
}
.ben-es-step.done span { color: #1E6332; }
.ben-es-step.current span { color: #1E6332; font-weight: 700; }

.ben-es-step-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
}
.ben-es-step.done .ben-es-step-dot {
    background: linear-gradient(135deg, #1E6332, #2F8542);
    color: #fff;
}
.ben-es-step.current .ben-es-step-dot {
    background: linear-gradient(135deg, #1E6332, #2F8542);
    color: #fff;
    box-shadow: 0 0 0 2px rgba(30, 99, 50, 0.2);
}

.ben-es-step-line {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    min-width: 8px;
    margin: 0 2px;
    margin-bottom: 14px;
}
.ben-es-step-line.done { background: #1E6332; }

/* Clickable status cards */
.esign-clickable { cursor: pointer; }
.esign-clickable:hover { border-color: #1E6332; box-shadow: 0 2px 8px rgba(30,99,50,0.1); }

/* Download buttons on sidebar status cards */
.esign-card-downloads {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}
.esign-card-dl-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 5px 8px;
    font-size: 10px;
    font-weight: 600;
    border: 1px solid #1E6332;
    border-radius: 6px;
    background: #fff;
    color: #1E6332;
    cursor: pointer;
    transition: all 0.15s;
}
.esign-card-dl-btn:hover {
    background: #1E6332;
    color: #fff;
}
.esign-card-dl-btn.cert {
    border-color: #6B4A28;
    color: #6B4A28;
}
.esign-card-dl-btn.cert:hover {
    background: #6B4A28;
    color: #fff;
}

/* Download section in detail overlay */
.esign-header-downloads {
    display: flex;
    gap: 8px;
    margin-left: auto;
}
.esign-header-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    border: 1.5px solid rgba(255,255,255,0.6);
    border-radius: 6px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.esign-header-dl-btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: #fff;
}
.esign-header-dl-btn i { font-size: 13px; }
.esign-header-dl-btn.cert {
    border-color: rgba(255,255,255,0.4);
}
.esign-header-dl-btn.cert:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.3);
}
.esign-header-dl-btn.reminder {
    border-color: rgba(255,220,100,0.6);
    background: rgba(255,200,50,0.15);
}
.esign-header-dl-btn.reminder:hover {
    border-color: rgba(255,220,100,1);
    background: rgba(255,200,50,0.3);
}

/* ── eSign Detail Overlay ── */
/* Status context banner in detail overlay */
.esign-status-context {
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    border-left: 4px solid #ccc;
    background: #f8f8f8;
}
.esign-status-context-now {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    line-height: 1.45;
}
.esign-status-context-now i { margin-right: 6px; }
.esign-status-context-next {
    font-size: 12px;
    color: #555;
    margin-top: 6px;
    line-height: 1.4;
}
.esign-status-context-next i { font-size: 10px; margin-right: 4px; color: #888; }
.esign-ctx-waiting { background: #fffbeb; border-left-color: #f59e0b; }
.esign-ctx-waiting .esign-status-context-now { color: #92400e; }
.esign-ctx-waiting .esign-status-context-now i { color: #f59e0b; }
.esign-ctx-action { background: #eff6ff; border-left-color: #3b82f6; }
.esign-ctx-action .esign-status-context-now { color: #1e3a5f; }
.esign-ctx-action .esign-status-context-now i { color: #3b82f6; }
.esign-ctx-completed { background: #f0fdf4; border-left-color: #18A74B; }
.esign-ctx-completed .esign-status-context-now { color: #14532d; }
.esign-ctx-completed .esign-status-context-now i { color: #18A74B; }
.esign-ctx-declined { background: #fef2f2; border-left-color: #dc2626; }
.esign-ctx-declined .esign-status-context-now { color: #7f1d1d; }
.esign-ctx-declined .esign-status-context-now i { color: #dc2626; }

.esign-detail-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10200;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pdfPickerIn 0.2s ease;
}
.esign-detail-panel {
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: none;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    overflow: hidden;
}
.esign-detail-header {
    background: linear-gradient(135deg, #1E6332, #214A3E);
    color: #fff;
    padding: 16px 20px 14px;
}
.esign-detail-close {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background 0.15s;
    margin-left: auto;
}
.esign-detail-close:hover { background: rgba(255,255,255,0.3); }
.esign-detail-header-info {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}
.esign-detail-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}
.esign-detail-subtitle {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin-top: 2px;
}

.esign-detail-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}

.esign-detail-section {
    margin-bottom: 18px;
}
.esign-detail-section-title {
    font-size: 13px;
    font-weight: 600;
    color: #1E6332;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 7px;
}

/* Two-column layout */
.esign-detail-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 0;
}
.esign-detail-col-left {
    padding-right: 18px;
    border-right: 1px solid #eee;
}
.esign-detail-col-right {
    padding-left: 18px;
}

/* Expiration badge in header */
.esign-detail-exp {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.12);
    padding: 3px 10px;
    border-radius: 8px;
    font-weight: 500;
}
.esign-detail-exp i { font-size: 10px; }
.esign-detail-exp.urgent { color: #ffd700; background: rgba(255,215,0,0.15); }
.esign-detail-exp.expired { color: #ff6b6b; background: rgba(255,107,107,0.15); }

/* Header top with expiration and close */
.esign-detail-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

/* Signers */
.esign-detail-signer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 8px;
}
.esign-detail-signer-order {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1E6332, #2F8542);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}
.esign-detail-signer-info { flex: 1; min-width: 0; }
.esign-detail-signer-name {
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.esign-detail-signer-role {
    font-weight: 400;
    font-size: 11px;
    color: #888;
    background: #f3f4f6;
    padding: 1px 8px;
    border-radius: 10px;
}
.esign-detail-signer-email {
    font-size: 12px;
    color: #888;
}
.esign-detail-signer-status {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.esign-act-pending  { background: #f3f4f6; color: #6b7280; }
.esign-act-viewed   { background: #fef3c7; color: #92400e; }
.esign-act-signed   { background: #d1fae5; color: #065f46; }
.esign-act-declined { background: #fee2e2; color: #991b1b; }
.esign-act-expired  { background: #f3f4f6; color: #6b7280; }
.esign-act-sent     { background: #dbeafe; color: #1d4ed8; }

/* Timeline */
.esign-detail-timeline {
    position: relative;
    padding-left: 20px;
}
.esign-detail-timeline::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: #e5e7eb;
}
.esign-tl-event {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    position: relative;
}
.esign-tl-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    flex-shrink: 0;
    z-index: 1;
    margin-left: -20px;
}
.esign-tl-sent .esign-tl-dot      { background: #dbeafe; color: #1d4ed8; }
.esign-tl-viewed .esign-tl-dot    { background: #fef3c7; color: #92400e; }
.esign-tl-signed .esign-tl-dot    { background: #d1fae5; color: #065f46; }
.esign-tl-completed .esign-tl-dot { background: #1E6332; color: #fff; }
.esign-tl-declined .esign-tl-dot  { background: #fee2e2; color: #991b1b; }
.esign-tl-expired .esign-tl-dot   { background: #f3f4f6; color: #6b7280; }

.esign-tl-content { flex: 1; min-width: 0; }
.esign-tl-title {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
}
.esign-tl-subtitle {
    font-size: 12px;
    color: #888;
    margin-top: 1px;
}
.esign-tl-time {
    font-size: 11px;
    color: #999;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Field values in detail */
.esign-detail-fields {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}
.esign-detail-field-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 7px 14px;
    border-bottom: 1px solid #f5f5f5;
}
.esign-detail-field-row:last-child { border-bottom: none; }
.esign-detail-field-label {
    font-size: 12px;
    color: #888;
    flex-shrink: 0;
    width: 140px;
}
.esign-detail-field-val {
    font-size: 13px;
    color: #1a1a1a;
    text-align: right;
    word-break: break-all;
}
.esign-detail-field-val.na {
    color: #d97706;
    font-style: italic;
}

.esign-detail-footer {
    padding: 14px 20px;
    border-top: 1px solid #eee;
    background: #fafafa;
    display: flex;
    justify-content: flex-end;
}

/* ── eSign Activity History Table ── */
.esign-activity-loading {
    text-align: center;
    padding: 24px 16px;
    color: #1E6332;
    font-size: 13px;
}
.esign-activity-loading i { margin-right: 6px; }
.esign-activity-empty {
    text-align: center;
    padding: 20px 16px;
    color: #888;
    font-size: 13px;
}
.esign-activity-empty i { margin-right: 5px; }

.esign-activity-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}
.esign-activity-table thead th {
    background: #f8f7f5;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #666;
    padding: 8px 12px;
    border-bottom: 2px solid #e5e7eb;
    text-align: left;
    white-space: nowrap;
}
.esign-activity-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.12s;
}
.esign-activity-table tbody tr:last-child { border-bottom: none; }
.esign-activity-table tbody tr:hover { background: #fafaf8; }
.esign-activity-table td {
    padding: 9px 12px;
    vertical-align: middle;
}
.esign-act-time {
    font-size: 11.5px;
    color: #888;
    min-width: 100px;
    max-width: 150px;
    line-height: 1.35;
}
.esign-act-actor {
    font-weight: 500;
    color: #333;
}
.esign-act-desc {
    color: #555;
    line-height: 1.4;
}
.esign-act-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 10px;
    white-space: nowrap;
    letter-spacing: 0.3px;
}
.esign-act-badge i { font-size: 9px; }
.esign-act-drafted   { background: #f3f4f6; color: #475453; }
.esign-act-emailed   { background: #dbeafe; color: #1d4ed8; }
.esign-act-viewed    { background: #fef3c7; color: #92400e; }
.esign-act-signed    { background: #d1fae5; color: #065f46; }
.esign-act-completed { background: #1E6332; color: #fff; }
.esign-act-declined  { background: #fee2e2; color: #991b1b; }
