/* accounts.css - My Accounts snapshot + insurance info panel + doc requests */

/* ==================== MY ACCOUNTS PAGE ==================== */
#page-my-accounts {
    background: linear-gradient(160deg, #f8fffe 0%, #F4F0E9 40%, #ecfdf5 70%, #f5f3ff 100%);
    padding: 1.5rem;
    border-radius: 0.75rem;
}

/* ==================== SECTION 1: SUMMARY STRIP ==================== */
.acct-summary-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.acct-summary-item {
    background: #fff;
    border-radius: 0.875rem;
    padding: 1.125rem 1.375rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
    border-left: 3px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.acct-summary-item:nth-child(1) { border-left-color: #3b82f6; }
.acct-summary-item:nth-child(2) { border-left-color: #9333ea; }
.acct-summary-item:nth-child(3) { border-left-color: #2F8542; }

.acct-summary-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

.acct-summary-icon {
    width: 46px;
    height: 46px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.acct-summary-icon.blue { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #2563eb; }
.acct-summary-icon.purple { background: linear-gradient(135deg, #f3e8ff, #e9d5ff); color: #7c3aed; }
.acct-summary-icon.green { background: linear-gradient(135deg, #F4F0E9, #E8DFD0); color: #1E6332; }

.acct-summary-body { min-width: 0; }

.acct-summary-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
}

.acct-summary-label {
    font-size: 0.7rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ==================== SECTION 2: CONTROLS ==================== */
.acct-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.acct-search-wrap {
    position: relative;
    flex: 1;
    max-width: 360px;
}

.acct-search-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 0.85rem;
    pointer-events: none;
}

.acct-search-input {
    width: 100%;
    padding: 0.5rem 0.75rem 0.5rem 2.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.625rem;
    font-size: 0.875rem;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.acct-search-input:focus {
    outline: none;
    border-color: #1E6332;
    box-shadow: 0 0 0 3px rgba(30, 99, 50, 0.15);
}

.acct-controls-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.toolbar-btn {
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toolbar-btn:hover {
    background: #F4F0E9;
    border-color: #1E6332;
    color: #1E6332;
}

.toolbar-btn i.spinning {
    animation: progressSpin 1s linear infinite;
}

/* Result count */
.acct-result-count {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 0.75rem;
    padding-left: 0.125rem;
}

.acct-result-count strong {
    color: #6b7280;
    font-weight: 600;
}

/* ==================== ACCOUNT CARD GRID ==================== */
.acct-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.acct-card {
    background: #fff;
    border-radius: 0.875rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
    padding: 1.25rem;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.acct-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1E6332, #18A74B);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.acct-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(30, 99, 50, 0.12), 0 4px 12px rgba(0,0,0,0.06);
    border-color: rgba(30, 99, 50, 0.3);
}

.acct-card:hover::before {
    opacity: 1;
}

.acct-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid #f3f4f6;
}

.acct-card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 0.625rem;
    background: linear-gradient(135deg, #1E6332, #2F8542);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
    letter-spacing: -0.5px;
    box-shadow: 0 2px 6px rgba(30, 99, 50, 0.25);
}

.acct-card-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    line-height: 1.3;
}

.acct-card-arrow {
    color: #d1d5db;
    font-size: 0.75rem;
    transition: color 0.2s, transform 0.2s;
    flex-shrink: 0;
    margin-left: 0.25rem;
}

.acct-card:hover .acct-card-arrow {
    color: #1E6332;
    transform: translateX(3px);
}

/* Primary Account badge — card view */
.acct-primary-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fef3c7;
    color: #f59e0b;
    font-size: 0.65rem;
    margin-left: 6px;
    flex-shrink: 0;
}

/* Primary Account badge — detail panel header */
.acct-detail-primary-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 12px;
    background: #fef3c7;
    color: #b45309;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 8px;
    white-space: nowrap;
}
.acct-detail-primary-badge i {
    color: #f59e0b;
    font-size: 0.6rem;
}

/* Card metrics — 3-column row */
.acct-card-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.375rem;
    margin-bottom: 0.875rem;
}

.acct-card-metric {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0.375rem;
    border-radius: 0.5rem;
    background: #f9fafb;
    text-align: center;
}

.acct-card-metric-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
}

.acct-card-metric-label {
    font-size: 0.6rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 0.125rem;
}

/* Status bar — multi-color horizontal bar */
.acct-status-bar {
    height: 5px;
    border-radius: 3px;
    background: #e5e7eb;
    overflow: hidden;
    display: flex;
    margin-top: auto;
}

.acct-status-seg {
    height: 100%;
    transition: width 0.4s ease;
}

.acct-status-seg.funded { background: #18A74B; }
.acct-status-seg.in-process { background: #f59e0b; }
.acct-status-seg.closed { background: #3b82f6; }
.acct-status-seg.withdrawn { background: #9ca3af; }

/* Status chips row below status bar */
.acct-status-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.5rem;
}

.acct-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.6rem;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    letter-spacing: 0.1px;
}

.acct-status-chip .chip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.acct-status-chip .chip-count {
    font-weight: 700;
}

.acct-status-chip.funded { background: #F4F0E9; color: #166534; }
.acct-status-chip.funded .chip-dot { background: #18A74B; }
.acct-status-chip.in-process { background: #fff7ed; color: #9a3412; }
.acct-status-chip.in-process .chip-dot { background: #f59e0b; }
.acct-status-chip.closed { background: #dbeafe; color: #1e40af; }
.acct-status-chip.closed .chip-dot { background: #3b82f6; }
.acct-status-chip.withdrawn { background: #f3f4f6; color: #6b7280; }
.acct-status-chip.withdrawn .chip-dot { background: #9ca3af; }

/* Empty / no-match state */
.acct-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: #9ca3af;
}

.acct-empty i {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    opacity: 0.3;
    color: #1E6332;
}

.acct-empty p {
    font-size: 0.9rem;
    margin: 0;
    color: #6b7280;
}

/* Responsive grid */
@media (max-width: 1200px) {
    .acct-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
    .acct-summary-strip { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
}

@media (max-width: 768px) {
    .acct-summary-strip { grid-template-columns: 1fr; }
    .acct-grid { grid-template-columns: 1fr; }
}

/* ==================== DETAIL PANEL (slide-in) ==================== */
.acct-detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.35);
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.acct-detail-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.acct-detail-panel {
    position: fixed;
    top: 0;
    right: -560px;
    width: 540px;
    height: 100%;
    background: #fafbfc;
    z-index: 1051;
    box-shadow: -8px 0 30px rgba(0,0,0,0.15);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.acct-detail-panel.show {
    right: 0;
}

.acct-detail-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #F4F0E9 0%, #ecfdf5 60%, #f0f9ff 100%);
    flex-shrink: 0;
}

.acct-detail-header-icon {
    width: 38px;
    height: 38px;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #1E6332, #2F8542);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.acct-detail-back {
    display: none; /* shown on mobile only */
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    color: #374151;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: background 0.2s;
}

.acct-detail-back:hover {
    background: rgba(0,0,0,0.05);
}

.acct-detail-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1f2937;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.acct-detail-close {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    color: #6b7280;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.acct-detail-close:hover {
    background: #fee2e2;
    color: #dc2626;
}

.acct-detail-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
}

/* Account Folder Card */
.acct-folder-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.acct-folder-card:hover {
    border-color: #0d9488;
    background: #f0fdfa;
}

.acct-folder-icon {
    width: 44px;
    height: 44px;
    background: #ccfbf1;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d9488;
    font-size: 18px;
    flex-shrink: 0;
}

.acct-folder-info {
    flex: 1;
    min-width: 0;
}

.acct-folder-name {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #111827;
}

.acct-folder-desc {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

/* Detail KPIs — 3-column row */
.acct-detail-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.acct-detail-kpi {
    background: #fff;
    border-radius: 0.75rem;
    padding: 0.875rem;
    border-left: 3px solid #1E6332;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 2px 8px rgba(0,0,0,0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.acct-detail-kpi:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.acct-detail-kpi:nth-child(1) { border-left-color: #9333ea; }
.acct-detail-kpi:nth-child(2) { border-left-color: #3b82f6; }
.acct-detail-kpi:nth-child(3) { border-left-color: #18A74B; }

.acct-detail-kpi-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.acct-detail-kpi-label {
    font-size: 0.7rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Detail section headers */
.acct-detail-section {
    margin-bottom: 1.25rem;
}

.acct-detail-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 0.625rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.acct-detail-section-title i {
    color: #1E6332;
    font-size: 0.8rem;
}

/* Detail donut */
.acct-detail-donut-wrap {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: #fff;
    border-radius: 0.75rem;
    padding: 1.125rem 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 2px 8px rgba(0,0,0,0.02);
}

.acct-detail-donut {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #e5e7eb;
    position: relative;
    flex-shrink: 0;
}

.acct-detail-donut-hole {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f2937;
}

.acct-detail-legend {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}

.acct-detail-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #374151;
    padding: 0.2rem 0;
}

.acct-detail-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.acct-detail-legend-item strong {
    color: #1f2937;
    margin-left: auto;
    font-weight: 700;
    min-width: 16px;
    text-align: right;
}

.acct-detail-legend-pct {
    font-size: 0.7rem;
    color: #9ca3af;
    font-weight: 500;
    min-width: 32px;
}

/* Detail financial ledger */
.acct-detail-ledger {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 2px 8px rgba(0,0,0,0.02);
}

.acct-detail-ledger-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    border-bottom: 1px solid #f3f4f6;
}

.acct-detail-ledger-row:last-child {
    border-bottom: none;
}

.acct-detail-ledger-label {
    color: #6b7280;
}

.acct-detail-ledger-value {
    font-weight: 600;
    color: #1f2937;
    font-variant-numeric: tabular-nums;
}

.acct-detail-ledger-row.subtract .acct-detail-ledger-value {
    color: #dc2626;
}

.acct-detail-ledger-row.total {
    border-top: 2px solid #1E6332;
    border-bottom: none;
    padding-top: 0.625rem;
    margin-top: 0.25rem;
}

.acct-detail-ledger-row.total .acct-detail-ledger-label {
    color: #1E6332;
    font-weight: 600;
}

.acct-detail-ledger-row.total .acct-detail-ledger-value {
    color: #1E6332;
    font-weight: 700;
    font-size: 1rem;
}

/* Detail recent claims */
.acct-detail-claims-table {
    width: 100%;
    font-size: 0.8rem;
    border-collapse: collapse;
    background: #fff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 2px 8px rgba(0,0,0,0.02);
}

.acct-detail-claims-table th {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #64748b;
    font-weight: 600;
    padding: 0.625rem 0.625rem;
    border-bottom: 2px solid #e5e7eb;
    text-align: left;
    background: #f8fafc;
}

.acct-detail-claims-table td {
    padding: 0.5rem 0.625rem;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
}

.acct-detail-claims-table tr:last-child td {
    border-bottom: none;
}

.acct-detail-claims-table tbody tr {
    transition: background 0.15s ease;
}

.acct-detail-claims-table tbody tr:hover {
    background: #F4F0E9;
}

.acct-claim-link {
    color: #1E6332;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.acct-claim-link:hover {
    text-decoration: underline;
    color: #166534;
}

.acct-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: capitalize;
    white-space: nowrap;
}

.acct-status-badge.funded { background: #F4F0E9; color: #166534; }
.acct-status-badge.in-process { background: #fff7ed; color: #9a3412; }
.acct-status-badge.closed { background: #dbeafe; color: #1e40af; }
.acct-status-badge.withdrawn { background: #fee2e2; color: #991b1b; }

/* Detail "View All" button */
.acct-detail-viewall {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #1E6332;
    border-radius: 0.625rem;
    background: transparent;
    color: #1E6332;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 0.75rem;
}

.acct-detail-viewall:hover {
    background: linear-gradient(135deg, #1E6332, #2F8542);
    color: #fff;
    box-shadow: 0 2px 8px rgba(30, 99, 50, 0.3);
}

.acct-detail-viewall i {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.acct-detail-viewall:hover i {
    transform: translateX(2px);
}

/* ==================== INSURANCE COMPANY INFO PANEL ==================== */
.ic-info-panel {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-top: 1rem;
    display: none;
}

.ic-info-panel.show {
    display: block;
    animation: acctSlideInDown 0.3s ease;
}

@keyframes acctSlideInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.ic-info-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #bae6fd;
}

.ic-info-icon {
    width: 40px;
    height: 40px;
    background: #0284c7;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
}

.ic-info-title {
    font-weight: 600;
    color: #0c4a6e;
    font-size: 1rem;
    margin: 0;
}

.ic-info-subtitle {
    font-size: 0.8rem;
    color: #0369a1;
}

.ic-info-grid {
    display: grid;
    gap: 0.75rem;
}

.ic-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.ic-info-item-label {
    font-size: 0.8rem;
    color: #0369a1;
    font-weight: 500;
    min-width: 200px;
}

.ic-info-item-value {
    font-size: 0.85rem;
    color: #0c4a6e;
    font-weight: 600;
    word-break: break-word;
    overflow-wrap: break-word;
    flex: 1;
    min-width: 0;
}

.ic-info-item-value.yes { color: #1E6332; }
.ic-info-item-value.no { color: #dc3545; }

.ic-info-note {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 0.5rem;
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.4;
}

.ic-info-note i {
    color: #f59e0b;
    margin-right: 0.25rem;
}

.ic-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.ic-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.ic-badge.success { background: #F4F0E9; color: #166534; }
.ic-badge.warning { background: #fef3c7; color: #92400e; }
.ic-badge.info { background: #dbeafe; color: #1e40af; }
.ic-badge.danger { background: #fee2e2; color: #991b1b; }

/* ==================== DOCUMENT REQUESTS SECTION ==================== */
.doc-requests-section {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 1rem;
    padding: 0;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
    overflow: hidden;
}

.doc-requests-header {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

.doc-requests-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.doc-requests-title h4 { margin: 0; font-size: 1.2rem; font-weight: 600; }
.doc-requests-title p { margin: 0; font-size: 0.85rem; opacity: 0.9; }

.doc-requests-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.doc-requests-icon.pulse { animation: acctPulseRing 2s infinite; }

@keyframes acctPulseRing {
    0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.4); }
    70% { box-shadow: 0 0 0 15px rgba(255,255,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

.doc-requests-badge {
    text-align: center;
    background: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
}

.doc-requests-badge .badge-count {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: #dc2626;
    line-height: 1;
}

.doc-requests-badge .badge-label {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.doc-requests-list {
    padding: 0.5rem 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.doc-request-item {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border-left: 4px solid #d1d5db;
    transition: all 0.2s ease;
}

.doc-request-item:last-child { margin-bottom: 0; }
.doc-request-item:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.1); }

.doc-request-item.urgent { border-left-color: #dc2626; background: linear-gradient(to right, #fef2f2, #fff); }
.doc-request-item.high { border-left-color: #f59e0b; background: linear-gradient(to right, #fffbeb, #fff); }
.doc-request-item.medium { border-left-color: #3b82f6; background: linear-gradient(to right, #eff6ff, #fff); }
.doc-request-item.low { border-left-color: #2F8542; background: linear-gradient(to right, #ecfdf5, #fff); }

.doc-request-urgency { flex-shrink: 0; }

.urgency-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.urgency-badge.urgent { background: #dc2626; color: #fff; }
.urgency-badge.high { background: #f59e0b; color: #fff; }
.urgency-badge.medium { background: #3b82f6; color: #fff; }
.urgency-badge.low { background: #2F8542; color: #fff; }

.doc-request-info { flex: 1; }
.doc-request-claim { margin-bottom: 0.5rem; }
.doc-request-claim strong { color: #1f2937; }

.doc-request-ic {
    display: inline-block;
    background: #e0e7ff;
    color: #4f46e5;
    padding: 0.15rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

.doc-request-docs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.doc-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #f3f4f6;
    color: #374151;
    padding: 0.35rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8rem;
    border: 1px dashed #d1d5db;
}

.doc-request-note { font-size: 0.8rem; color: #6b7280; }
.doc-request-note i { color: #3b82f6; }

.doc-request-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-shrink: 0;
}

.doc-requests-footer {
    background: #fffbeb;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #fde68a;
}

.doc-requests-help {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #92400e;
}

.doc-requests-help a { color: #d97706; font-weight: 500; }