/* ===================== */
/* Approvals Page Styles  */
/* ===================== */

/* Stats Grid Override — 3 columns */
.ap-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

/* Recent Actions Card */
.ap-recent-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px 24px;
    border: 1px solid #e8ecf1;
    transition: box-shadow 0.2s ease;
}

.ap-recent-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.ap-recent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.ap-recent-title {
    font-size: 14px;
    font-weight: 600;
    color: #2E77AE;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ap-recent-title i {
    font-size: 13px;
}

.ap-recent-refresh {
    background: none;
    border: none;
    color: #2E77AE;
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
    transition: transform 0.3s ease;
}

.ap-recent-refresh:hover {
    transform: rotate(180deg);
}

/* Recent Action Items */
.ap-recent-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ap-recent-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #7F7F7F;
}

.ap-recent-item img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ap-recent-name {
    font-weight: 500;
    color: #1a1a2e;
    white-space: nowrap;
    min-width: 90px;
}

.ap-recent-time {
    color: #7F7F7F;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
}

.ap-recent-time i {
    font-size: 11px;
}

.ap-recent-badge {
    padding: 3px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.ap-recent-badge.approved {
    background: #DEF8EE;
    color: #4AA785;
}

.ap-recent-badge.reupload {
    background: #FFE5E5;
    color: #FF4747;
}

/* ===================== */
/* Filter & Sort Row      */
/* ===================== */

.ap-filters-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    margin-bottom: 20px;
}

.ap-filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #7F7F7F;
    font-weight: 500;
}

.ap-filter-select {
    padding: 7px 32px 7px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 13px;
    font-family: 'Lato', sans-serif;
    color: #333;
    background: #fff;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%238a94a6' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: border-color 0.2s ease;
}

.ap-filter-select:focus {
    outline: none;
    border-color: #2E77AE;
}

.ap-refresh-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #7F7F7F;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ap-refresh-btn:hover {
    border-color: #2E77AE;
    color: #2E77AE;
}

/* ===================== */
/* Approvals Table        */
/* ===================== */

.ap-table-container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-bottom: 0;
    min-height: 340px;
}

.ap-table {
    width: 100%;
    border-collapse: collapse;
}

.ap-table thead th {
    background: #DCE8F0;
    color: #2c3e50;
    font-weight: 600;
    font-size: 13px;
    padding: 14px 18px;
    text-align: left;
    white-space: nowrap;
    border: none;
}

.ap-table tbody td {
    padding: 14px 18px;
    color: #7F7F7F;
    font-size: 13px;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
}

.ap-table tbody tr:last-child td {
    border-bottom: none;
}

.ap-table tbody tr:hover {
    background: #f8fafd;
}

/* Name Cell */
.ap-name-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ap-name-cell img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.ap-name-cell span {
    font-weight: 500;
    color: #1a1a2e;
}

/* Campaign Cell */
.ap-campaign-cell {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ap-campaign-cell i {
    color: #2E77AE;
    font-size: 12px;
}

/* Date Cell */
.ap-date-cell {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ap-date-cell i {
    color: #7F7F7F;
    font-size: 12px;
}

/* Points Cell */
.ap-points-cell {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ap-points-dot {
    width: 8px;
    height: 8px;
    background: #2E77AE;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Actions Cell */
.ap-actions-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ap-btn-view {
    padding: 5px 20px;
    border: 1px solid #2E77AE;
    background: #fff;
    color: #2E77AE;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Lato', sans-serif;
}

.ap-btn-view:hover {
    background: #2E77AE;
    color: #fff;
}

.ap-btn-reject {
    padding: 5px 20px;
    border: none;
    background: #FF4747;
    color: #fff;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Lato', sans-serif;
}

.ap-btn-reject:hover {
    background: #D63030;
}

.ap-btn-approve {
    padding: 5px 20px;
    border: none;
    background: #5EBA41;
    color: #fff;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Lato', sans-serif;
}

.ap-btn-approve:hover {
    background: #4A9633;
}

/* ===================== */
/* Drawer Overrides       */
/* ===================== */

.ap-drawer-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.ap-drawer-badge.active {
    background: #DEF8EE;
    color: #4AA785;
}

/* Drawer Stats */
.ap-drawer-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 4px 0;
}

.ap-drawer-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #7F7F7F;
}

.ap-drawer-stat-row i {
    color: #2E77AE;
    margin-right: 8px;
    font-size: 13px;
}

.ap-drawer-stat-value {
    font-weight: 600;
    color: #1a1a2e;
}

/* Progress Bar */
.ap-progress-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #7F7F7F;
    margin-bottom: 6px;
}

.ap-progress-value {
    font-weight: 600;
    color: #1a1a2e;
}

.ap-progress-bar {
    width: 100%;
    height: 6px;
    background: #e8ecf1;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
}

.ap-progress-fill {
    height: 100%;
    background: #2E77AE;
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* ===================== */
/* Responsive             */
/* ===================== */

@media (max-width: 1200px) {
    .ap-stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .ap-table-container {
        overflow-x: auto;
    }
}

@media (max-width: 768px) {
    .ap-filters-row {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}
