/**
 * Resource Requisition v3 — Data Cleanup & Purge Styles
 */

.rrv3-cleanup-center {
    margin-top: 10px;
}

.rrv3-cleanup-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    background: #fdfefe;
    border-left: 4px solid #d32f2f;
}

.rrv3-cleanup-hero-text h2 {
    margin: 0 0 6px 0;
    color: #b71c1c;
}

.rrv3-cleanup-modules-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.rrv3-cleanup-module-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s ease-in-out;
    font-size: 13px;
    font-weight: 500;
}

.rrv3-cleanup-module-pill:hover {
    background: #eeeeee;
    border-color: #bdbdbd;
}

.rrv3-cleanup-module-pill input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
}

.rrv3-cleanup-preset-btn {
    cursor: pointer;
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
    padding: 3px 8px;
    font-size: 11px;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.rrv3-cleanup-preset-btn:hover {
    background: #1565c0;
    color: #ffffff;
}

/* Module Results Box */
.rrv3-cleanup-mod-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}

.rrv3-cleanup-mod-card-header {
    background: #fafafa;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
}

.rrv3-cleanup-mod-card-header h4 {
    margin: 0;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rrv3-cleanup-cascade-pill {
    display: inline-block;
    padding: 2px 6px;
    font-size: 11px;
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffe0b2;
    border-radius: 4px;
    margin-right: 4px;
    margin-top: 2px;
}

.rrv3-cleanup-stat-card {
    background: #ffffff;
    border: 1px solid #c8e6c9;
    border-radius: 6px;
    padding: 10px 16px;
    min-width: 140px;
    text-align: center;
}

.rrv3-cleanup-stat-card label {
    display: block;
    font-size: 11px;
    color: #555555;
    text-transform: uppercase;
    font-weight: 600;
}

/* Modal overrides for Cleanup Confirmation */
#rrv3-cleanup-confirm-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 20, 50, 0.65) !important;
    backdrop-filter: blur(3px) !important;
    z-index: 999999 !important;
    display: none;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

#rrv3-cleanup-confirm-modal .rrv3-modal-content {
    background: #ffffff !important;
    border-radius: 10px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4) !important;
    max-width: 580px !important;
    width: 95% !important;
    margin: auto !important;
    padding: 0 !important;
    overflow: hidden !important;
    height: auto !important;
    min-height: auto !important;
    max-height: 90vh !important;
    display: flex !important;
    flex-direction: column !important;
}

#rrv3-cleanup-confirm-modal .rrv3-modal-header {
    background: #d32f2f !important;
    color: #ffffff !important;
    padding: 16px 20px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-radius: 10px 10px 0 0 !important;
}

#rrv3-cleanup-confirm-modal .rrv3-modal-body {
    padding: 20px !important;
    overflow-y: auto !important;
    flex: 1 1 auto !important;
}

#rrv3-cleanup-confirm-modal .rrv3-modal-footer {
    padding: 14px 20px !important;
    background: #fafafa !important;
    border-top: 1px solid #e0e0e0 !important;
    display: flex !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    border-radius: 0 0 10px 10px !important;
}
