/* deceased.css - Deceased cards, detail header */

/* ==================== DECEASED PAGE CARDS ==================== */
.deceased-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.deceased-header-left h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #212529;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.deceased-header-left h2 i {
    color: #1E6332;
}

.deceased-header-left p {
    color: #6c757d;
    margin: 0.25rem 0 0 0;
    font-size: 0.95rem;
}

.deceased-filters-bar {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 1.5rem;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    /* Break out of dashboard-content's 2rem padding — mirrors Claims fixed filter bar flush positioning */
    margin: -2rem -2rem 1.5rem -2rem;
    flex-wrap: wrap;
}

/* Search box — matches .filter-search-box from claims */
.deceased-search-wrapper {
    flex: 1;
    min-width: 220px;
    max-width: 420px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0 1rem;
    transition: all 0.2s ease;
}

.deceased-search-wrapper:focus-within {
    background: #fff;
    border-color: #1E6332;
    box-shadow: 0 0 0 3px rgba(30, 99, 50, 0.1);
}

.deceased-search-wrapper i {
    color: #9ca3af;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.deceased-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.6rem 0.25rem;
    font-size: 0.9rem;
    outline: none;
    min-width: 0;
}

.deceased-search-input::placeholder {
    color: #9ca3af;
}

/* Dropdowns — match sort-trigger-btn / filter-toggle-btn from claims */
.deceased-filter-select {
    padding: 0.5rem 2rem 0.5rem 0.85rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #374151;
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%)
        url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23198754' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e")
        no-repeat right 0.6rem center/11px;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.deceased-filter-select:hover {
    border-color: #1E6332;
    background-color: #fff;
}

.deceased-filter-select:focus {
    outline: none;
    border-color: #1E6332;
    box-shadow: 0 0 0 3px rgba(30, 99, 50, 0.1);
    background-color: #fff;
}

.deceased-filter-group {
    flex-shrink: 0;
}

.deceased-filter-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
    flex-shrink: 0;
}

/* Reset button — only visible when filters active */
.dec-reset-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dec-reset-btn:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
}

/* Sort control — matches Claims sort-trigger-btn + sort-panel */
.dec-sort-control {
    position: relative;
    flex-shrink: 0;
}

.dec-sort-trigger-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dec-sort-trigger-btn:hover {
    border-color: #1E6332;
    background: #fff;
}

.dec-sort-trigger-btn.active {
    border-color: #1E6332;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(30, 99, 50, 0.1);
}

.dec-sort-trigger-btn > i:first-child {
    color: #1E6332;
    font-size: 0.78rem;
}

.dec-sort-chevron {
    font-size: 0.65rem;
    color: #9ca3af;
    transition: transform 0.2s ease;
}

.dec-sort-trigger-btn.active .dec-sort-chevron {
    transform: rotate(180deg);
}

/* Custom Sort Panel */
.dec-sort-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 290px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05);
    z-index: 1000;
    display: none;
    overflow: hidden;
    animation: sortPanelIn 0.2s ease-out;
}

.dec-sort-panel.open {
    display: block;
}

.dec-sort-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #1E6332 0%, #214A3E 100%);
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
}

.dec-sort-panel-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.dec-sort-panel-close:hover {
    background: rgba(255,255,255,0.3);
}

.dec-sort-panel-body {
    padding: 0.875rem;
}

.dec-sort-preset-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.dec-sort-preset-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.6rem 0.4rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.68rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    line-height: 1.2;
}

.dec-sort-preset-btn i {
    font-size: 0.88rem;
    color: #9ca3af;
    transition: color 0.2s ease;
}

.dec-sort-preset-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.dec-sort-preset-btn:hover i {
    color: #1E6332;
}

.dec-sort-preset-btn.active {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-color: #1E6332;
    color: #065f46;
}

.dec-sort-preset-btn.active i {
    color: #1E6332;
}

.deceased-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
    flex: 1;
    overflow-y: auto;
    padding-bottom: 1rem;
}

.deceased-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 14px rgba(0,0,0,0.05);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid #e2e5e9;
}

.deceased-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(30, 99, 50,0.12), 0 4px 12px rgba(0,0,0,0.08);
    border-color: #1E6332;
}

.deceased-card-header {
    background: linear-gradient(135deg, #1E6332 0%, #214A3E 100%);
    color: #fff;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.deceased-card-info {
    flex: 1;
    min-width: 0;
}

.deceased-card-created {
    font-size: 0.7rem;
    opacity: 0.8;
    font-weight: 500;
    margin-bottom: 2px;
}

.deceased-card-name {
    font-size: 1.1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.deceased-card-ssn {
    font-size: 0.85rem;
    opacity: 0.85;
    margin-top: 2px;
}

.deceased-card-status {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.deceased-card-status.funded { background: rgba(255,255,255,0.25); }
.deceased-card-status.in-process { background: rgba(245,158,11,0.3); color: #fff; }
.deceased-card-status.closed { background: rgba(59,130,246,0.3); }

.deceased-card-body {
    padding: 1.25rem;
}

.deceased-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.deceased-card-row:last-child {
    border-bottom: none;
}

.deceased-card-label {
    font-size: 0.85rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.deceased-card-label i {
    width: 16px;
    color: #1E6332;
}

.deceased-card-value {
    font-weight: 500;
    color: #212529;
}

.deceased-card-value.amount {
    color: #1E6332;
    font-weight: 600;
}

.deceased-card-footer {
    padding: 0.75rem 1.25rem;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.deceased-card-policies {
    display: flex;
    gap: 0.5rem;
}

.deceased-card-policy-badge {
    padding: 0.25rem 0.5rem;
    background: #F4F0E9;
    color: #1E6332;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.deceased-card-actions {
    display: flex;
    gap: 0.5rem;
}

.deceased-card-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.deceased-card-btn.view {
    background: #F4F0E9;
    color: #1E6332;
}

.deceased-card-btn.view:hover {
    background: #1E6332;
    color: #fff;
}

.deceased-card-btn.add {
    background: #f0f0f0;
    color: #6c757d;
}

.deceased-card-btn.add:hover {
    background: #1E6332;
    color: #fff;
}

.deceased-card-btn.view,
.deceased-card-btn.add {
    width: auto;
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    gap: 0.35rem;
}

/* Claims count badge in card header */
.deceased-card-policies-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #F4F0E9;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    min-width: 50px;
}

.deceased-card-policies-count .count-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1E6332;
    line-height: 1;
}

.deceased-card-policies-count .count-label {
    font-size: 0.65rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Claims section in decedent card */
.decedent-claims-section {
    padding: 0.5rem 1.25rem 1rem;
    border-top: 1px solid #e0eed8;
    margin-top: 0.5rem;
    background: #f4faf2;
    border-radius: 0 0 12px 12px;
}

.decedent-claims-header {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.decedent-claims-header i {
    color: #1E6332;
}

.decedent-claims-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 150px;
    overflow-y: auto;
    overflow-x: hidden;
}

.decedent-claim-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.85rem;
}

.decedent-claim-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    flex-shrink: 0;
}

.decedent-claim-date {
    font-size: 0.65rem;
    color: #6b7280;
    white-space: nowrap;
}

.decedent-claim-date i {
    font-size: 0.55rem;
    margin-right: 2px;
}

.decedent-claim-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.decedent-claim-name {
    font-weight: 500;
    color: #333;
}

.decedent-claim-amount {
    font-size: 0.8rem;
    color: #1E6332;
    font-weight: 600;
}

.decedent-claim-status {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.decedent-claim-status.success {
    background: #F4F0E9;
    color: #214A3E;
}

.decedent-claim-status.warning {
    background: #fff3cd;
    color: #856404;
}

.decedent-claim-status.info {
    background: #cfe2ff;
    color: #084298;
}

.decedent-claim-status.secondary {
    background: #f8d7da;
    color: #842029;
}

/* Docs needed badge on individual claim rows */
.decedent-claim-docs-badge {
    font-size: 0.6rem;
    font-weight: 700;
    color: #fff;
    background: #dc3545;
    padding: 2px 5px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    line-height: 1;
}
.decedent-claim-docs-badge i {
    font-size: 0.5rem;
}

/* Docs needed alert banner on deceased card */
.deceased-card-docs-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 1.25rem;
    background: #fff4e5;
    border-bottom: 1px solid #fed7aa;
}
.deceased-card-docs-icon {
    color: #c2410c;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.deceased-card-docs-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.deceased-card-docs-text strong {
    font-size: 0.75rem;
    color: #9a3412;
}
.deceased-card-docs-list {
    font-size: 0.68rem;
    color: #78350f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Visual accent on cards with docs needed */
.deceased-card.has-docs-needed {
    border-color: #f97316;
    border-width: 1px 1px 1px 4px;
}
.deceased-card.has-docs-needed .deceased-card-policies-count {
    background: #fff0e0;
}
.deceased-card.has-docs-needed .deceased-card-policies-count .count-number {
    color: #c2410c;
}
.deceased-card.has-docs-needed .deceased-card-policies-count .count-label {
    color: #9a3412;
}

.deceased-pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-radius: 0 0 1rem 1rem;
    gap: 1rem;
    margin-top: 1.5rem;
}

.deceased-per-page {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #6b7280;
    white-space: nowrap;
}

.deceased-per-page select {
    padding: 0.3rem 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    color: #374151;
    background: #fff;
    cursor: pointer;
    outline: none;
}

.deceased-per-page select:focus {
    border-color: #1E6332;
    box-shadow: 0 0 0 2px rgba(30, 99, 50, 0.15);
}

.deceased-pagination-nav {
    flex: 1;
}

.deceased-pagination-nav .pagination {
    margin: 0;
}

.deceased-pagination-nav .page-link {
    color: #1E6332;
    border-color: #d1d5db;
}

.deceased-pagination-nav .page-link:hover {
    background: #e8f5e9;
    color: #146c43;
    border-color: #1E6332;
}

.deceased-pagination-nav .page-item.active .page-link {
    background: #1E6332;
    border-color: #1E6332;
    color: #fff;
}

.deceased-pagination-nav .page-item.disabled .page-link {
    color: #adb5bd;
}

/* ==================== DECEASED DETAIL HEADER COMPACT ==================== */
.deceased-header-compact {
    background: linear-gradient(135deg, #1E6332 0%, #214A3E 100%);
    padding: 1rem 1.5rem !important;
    padding-right: 4rem !important; /* Space for close button */
}

.deceased-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    width: 100%;
}

.deceased-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.deceased-header-compact .deceased-name-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.deceased-header-compact .deceased-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    color: #fff;
    font-weight: 500;
    font-size: 0.8rem;
    margin: 0;
}

.deceased-header-stats-compact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.deceased-stat-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
}

.deceased-stat-chip.highlight {
    background: rgba(255,255,255,0.25);
}

.stat-chip-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.stat-chip-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

@media (max-width: 768px) {
    .deceased-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .deceased-header-stats-compact {
        width: 100%;
        justify-content: flex-start;
    }
}

/* ==================== DECEASED VIEW TOGGLE (Grid / List) ==================== */
.deceased-view-toggle-group {
    display: flex;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 3px;
    gap: 2px;
    flex-shrink: 0;
}

.deceased-view-toggle-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    border-radius: 6px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.deceased-view-toggle-btn:hover {
    color: #1E6332;
    background: rgba(30, 99, 50, 0.12);
}

.deceased-view-toggle-btn.active {
    background: linear-gradient(135deg, #1E6332 0%, #214A3E 100%);
    color: #fff;
    box-shadow: 0 2px 4px rgba(30, 99, 50, 0.3);
}

/* ==================== DECEASED TABLE / LIST VIEW ==================== */
.deceased-table-outer {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-bottom: 0;
}

.deceased-table-wrap {
    overflow-x: auto;
    overflow-y: visible;
}

.deceased-table {
    width: 100%;
    min-width: 960px;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.deceased-table thead th {
    padding: 0.875rem 1rem;
    font-size: 0.73rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f8fafc;
    border-bottom: 2px solid #e5e7eb;
    white-space: nowrap;
}

.deceased-table tbody td {
    padding: 0.875rem 1rem;
    color: #374151;
    vertical-align: middle;
    white-space: nowrap;
    border-bottom: 1px solid #f0f2f5;
}

.deceased-table tbody tr.dec-main-row {
    cursor: pointer;
    transition: background 0.15s ease;
}

.deceased-table tbody tr.dec-main-row td {
    transition: background 0.15s ease;
}

.deceased-table tbody tr.dec-main-row:hover td {
    background: #F4F0E9;
}

.deceased-table tbody tr.dec-main-row.row-expanded td {
    background: #F4F0E9;
    border-bottom-color: transparent;
}

/* Chevron column */
.dec-chevron-cell {
    text-align: center;
    padding: 0 0.5rem !important;
    width: 44px;
}

.dec-row-chevron {
    color: #9ca3af;
    font-size: 0.78rem;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s;
    display: inline-block;
}

.dec-row-chevron.open {
    transform: rotate(90deg);
    color: #1E6332;
}

/* Name cell */
.dec-name-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.dec-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1E6332 0%, #2F8542 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.72rem;
    flex-shrink: 0;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(30, 99, 50, 0.3);
}

.dec-name-text {
    font-weight: 600;
    color: #111827;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dec-created-text {
    font-size: 0.72rem;
    color: #9ca3af;
    margin-top: 1px;
}

/* SSN */
.dec-ssn-cell {
    font-family: monospace;
    font-size: 0.85rem;
    color: #6b7280;
}

/* Claims count badge */
.dec-claims-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 26px;
    padding: 0 8px;
    background: #F4F0E9;
    color: #1E6332;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.82rem;
    border: 1px solid #c3e6cb;
}

/* Total amount */
.dec-amount-cell {
    font-weight: 600;
    color: #1E6332;
    font-size: 0.9rem;
}

/* Docs needed badge */
.dec-docs-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.2rem 0.55rem;
    background: #fff4e5;
    color: #c2410c;
    border: 1px solid #fed7aa;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

/* Sticky actions column */
.deceased-tbl-actions-col,
.deceased-table tbody td:last-child,
.deceased-table thead th:last-child {
    position: sticky;
    right: 0;
    background: #f8fafc;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.06);
    white-space: nowrap;
}

.deceased-table tbody td:last-child {
    background: #fff;
}

.dec-main-row:hover td:last-child {
    background: #F4F0E9;
}

.dec-main-row.row-expanded td:last-child {
    background: #F4F0E9;
}

.dec-action-btn {
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    border: none;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

.dec-action-btn.view {
    background: #F4F0E9;
    color: #1E6332;
}

.dec-action-btn.view:hover {
    background: #1E6332;
    color: #fff;
}

.dec-action-btn.add {
    background: #f3f4f6;
    color: #6b7280;
}

.dec-action-btn.add:hover {
    background: #1E6332;
    color: #fff;
}

/* ==================== EXPAND ROW (Claims per Decedent) ==================== */
.dec-expand-row td {
    padding: 0 !important;
    border-bottom: 2px solid #F4F0E9;
}

.dec-expand-inner {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.dec-expand-inner.open {
    max-height: 700px;
}

.dec-expand-content {
    padding: 0.875rem 1.25rem 0.875rem 3.75rem;
    background: linear-gradient(to right, #F4F0E9 0%, #f8fffe 100%);
    border-top: 1px solid #c6e8d5;
}

.dec-expand-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #1E6332;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 0.625rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.dec-expand-claims-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dec-expand-claim-row {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.6rem 0.875rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.15s ease;
}

.dec-expand-claim-row:hover {
    border-color: #1E6332;
    background: #F4F0E9;
    box-shadow: 0 2px 8px rgba(30, 99, 50, 0.1);
    transform: translateX(3px);
}

.dec-expand-claim-name {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow: hidden;
}

.dec-expand-claim-name-text {
    font-weight: 500;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.875rem;
}

.dec-expand-claim-amount {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1E6332;
    white-space: nowrap;
    flex-shrink: 0;
}

.dec-expand-claim-date {
    font-size: 0.78rem;
    color: #9ca3af;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
}

.dec-expand-claim-status {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
}

.dec-expand-claim-status.status-funded     { background: #F4F0E9; color: #214A3E; }
.dec-expand-claim-status.status-in-process { background: #fff3cd; color: #856404; }
.dec-expand-claim-status.status-closed     { background: #cfe2ff; color: #084298; }
.dec-expand-claim-status.status-withdrawn  { background: #f8d7da; color: #842029; }

.dec-expand-empty {
    text-align: center;
    padding: 1.25rem;
    color: #9ca3af;
    font-size: 0.875rem;
    font-style: italic;
}

/* ==================== SORTABLE COLUMN HEADERS ==================== */
.dec-sortable-th {
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.dec-sortable-th:hover {
    background: #eef7f2 !important;
    color: #1E6332;
}

.dec-sort-indicator {
    display: inline-block;
    margin-left: 3px;
    font-size: 0.6rem;
    color: transparent;
    vertical-align: middle;
    line-height: 1;
    transition: color 0.15s;
}

.dec-sort-indicator::after {
    content: '▲▼';
    letter-spacing: -1px;
    color: #d1d5db;
}

.dec-sort-indicator.asc::after {
    content: '▲';
    color: #1E6332;
    font-size: 0.7rem;
}

.dec-sort-indicator.desc::after {
    content: '▼';
    color: #1E6332;
    font-size: 0.7rem;
}

.dec-sortable-th:hover .dec-sort-indicator::after {
    color: #9ca3af;
}

/* ==================== TABLE TOOLBAR (Expand All) ==================== */
.deceased-table-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #f0f2f5;
    background: #fff;
}

.dec-expand-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #6b7280;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dec-expand-all-btn:hover {
    border-color: #1E6332;
    color: #1E6332;
    background: #F4F0E9;
}

.dec-expand-all-btn i {
    font-size: 0.75rem;
}

/* ==================== STATUS DOTS (Claims summary) ==================== */
.dec-status-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 5px;
}

.dec-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.dec-dot:hover {
    transform: scale(1.4);
}

.dec-dot.funded     { background: #18A74B; box-shadow: 0 0 0 1px rgba(47, 133, 66,0.3); }
.dec-dot.in-process { background: #f59e0b; box-shadow: 0 0 0 1px rgba(245,158,11,0.3); }
.dec-dot.closed     { background: #3b82f6; box-shadow: 0 0 0 1px rgba(59,130,246,0.3); }
.dec-dot.withdrawn  { background: #dc2626; box-shadow: 0 0 0 1px rgba(220,38,38,0.3); }
