.gfev-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    color: #1a1a1a;
    width: 100%;
}
.gfev-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}
.gfev-header h2 { margin: 0; font-size: 20px; }

.gfev-btn { display: inline-block; padding: 8px 18px; border-radius: 5px; font-size: 13px; font-weight: 600; text-decoration: none !important; cursor: pointer; }
.gfev-btn--download { background: #1d4ed8; color: #fff !important; }
.gfev-btn--download:hover { background: #1e40af; }

.gfev-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; align-items: center; }
.gfev-filters select,
.gfev-filters input[type="text"] { padding: 7px 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 13px; }
.gfev-filters select { min-width: 220px; }
.gfev-filters input[type="text"] { min-width: 180px; }
.gfev-filters button { padding: 7px 16px; background: #374151; color: #fff; border: none; border-radius: 4px; cursor: pointer; font-size: 13px; }
.gfev-filters button:hover { background: #1f2937; }
.gfev-clear { color: #666; font-size: 13px; text-decoration: underline; }
.gfev-date-range { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #555; }
.gfev-date-range input[type="date"] { padding: 7px 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 13px; }

.gfev-count { color: #555; margin-bottom: 10px; font-size: 13px; }

/* Pagination */
.gfev-pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 12px 0;
    flex-wrap: wrap;
}
.gfev-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 34px;
    padding: 0 10px;
    border: none;
    border-radius: 3px;
    background: #555;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.gfev-page-btn:hover { background: #333; }
.gfev-page-btn.active { background: #e85d25; color: #fff !important; }
.gfev-page-btn.disabled { background: #888; opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.gfev-page-ellipsis { color: #fff; background: #555; display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 34px; border-radius: 3px; font-size: 13px; font-weight: 600; }

/* Table controls bar — pagination left, scroll arrows right */
.gfev-table-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 12px 0;
}
.gfev-table-controls .gfev-pagination { margin: 0; flex: 1; }

.gfev-scroll-arrows { display: flex; gap: 8px; flex-shrink: 0; align-items: center; }
.gfev-scroll-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    -webkit-user-select: none;
    box-shadow: 0 2px 6px rgba(29,78,216,0.3);
}
.gfev-scroll-arrow:hover {
    background: linear-gradient(135deg, #1e40af, #2563eb);
    box-shadow: 0 4px 12px rgba(29,78,216,0.45);
    transform: translateY(-1px);
}
.gfev-scroll-arrow:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(29,78,216,0.3);
}

/* Top mirror scrollbar */
.gfev-scroll-top {
    overflow-x: auto;
    overflow-y: hidden;
    height: 12px;
    margin-bottom: 2px;
}
.gfev-scroll-top-inner {
    height: 12px;
}

/* Table wrapper */
.gfev-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    display: block;
}
.gfev-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    table-layout: auto;
    white-space: nowrap;
}
.gfev-table thead th {
    background: #1d4ed8;
    color: #fff;
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}
.gfev-table tbody tr:nth-child(even) { background: #f9fafb; }
.gfev-table tbody tr:hover { background: #eff6ff; }
.gfev-table td {
    padding: 9px 14px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
    white-space: nowrap;
}
.gfev-table td:nth-child(3),
.gfev-table td:nth-child(7),
.gfev-table td:nth-child(9),
.gfev-table td:nth-child(14) {
    white-space: normal;
    min-width: 160px;
    max-width: 260px;
}
.gfev-table td a { color: #1d4ed8; text-decoration: none; }
.gfev-table td a:hover { text-decoration: underline; }
.gfev-unmatched td:nth-child(9) { color: #d97706; font-style: italic; }

.gfev-badge { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.gfev-badge--approved, .gfev-badge--3 { background: #d1fae5; color: #065f46; }
.gfev-badge--pending,  .gfev-badge--1 { background: #fef3c7; color: #92400e; }
.gfev-badge--denied,   .gfev-badge--2 { background: #fee2e2; color: #991b1b; }

.gfev-notice { padding: 12px 16px; border-radius: 4px; margin-bottom: 12px; }
.gfev-notice--error { background: #fee2e2; border-left: 4px solid #dc2626; color: #991b1b; }
.gfev-empty { color: #888; font-style: italic; }
