/**
 * Client Portal Manager - Portal Stylesheet
 * Green gradient color scheme matching payment portal
 */

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
    /* DOC-CHANGE: 2025-10-19 - Claude - Updated from green to blue theme to match payment portal */
    --primary-blue: #2563eb;
    --primary-blue-light: #3b82f6;
    --primary-blue-dark: #1e40af;
    --success-green: #059669;
    --success-green-light: #10b981;
    --warning-orange: #f59e0b;
    --warning-orange-light: #fbbf24;
    --danger-red: #dc2626;
    --danger-red-light: #ef4444;
    --info-blue: #0891b2;
    --info-blue-light: #06b6d4;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

* {
    box-sizing: border-box;
}

/* DOC-CHANGE: 2025-10-21 - Claude - Hide theme header/footer and any content above portal on portal pages */
body:has(#cpm-portal-container) header,
body:has(#cpm-portal-container) .site-header,
body:has(#cpm-portal-container) #header,
body:has(#cpm-portal-container) .header,
body:has(#cpm-portal-container) nav.navbar,
body:has(#cpm-portal-container) .site-footer,
body:has(#cpm-portal-container) footer {
    display: none !important;
}

/* Hide any content/images that appear before the portal container */
body:has(#cpm-portal-container) .entry-content > *:not(#cpm-portal-container) {
    display: none !important;
}

/* DOC-CHANGE: 2025-10-19 - Claude - Phase 3: Consistent focus states for accessibility */
/* DOC-CHANGE: 2025-10-24 - Claude - Added background: transparent to prevent pink focus background */
.cpm-btn:focus,
.cpm-tab:focus,
.cpm-quick-btn:focus,
.cpm-offender-tab:focus,
.cpm-committee-tab:focus,
.cpm-input:focus,
.cpm-textarea:focus,
.cpm-filter-select:focus,
.cpm-filter-input:focus,
.cpm-date-input:focus,
.cpm-checkbox:focus,
a:focus {
    outline: 3px solid var(--primary-blue) !important;
    outline-offset: 2px !important;
}

/* Override any pink/colored backgrounds on tab focus/active states */
.cpm-tab:focus,
.cpm-tab:active,
.cpm-tab:focus-visible {
    background: transparent !important;
}

/* ========================================
   MAIN CONTAINER
   ======================================== */
#cpm-portal-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--gray-50);
    min-height: 100vh;
    padding: 0;
    margin: 0;
}

/* ========================================
   HEADER
   ======================================== */
.cpm-portal-header {
    /* DOC-CHANGE: 2025-10-19 - Claude - Updated to blue gradient and reduced padding */
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    color: white;
    padding: 16px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cpm-header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cpm-logo-section h1 {
    margin: 0;
    font-size: 24px; /* DOC-CHANGE: 2025-10-19 - Claude - Reduced from 32px */
    font-weight: 700;
    color: white;
}

.cpm-tagline {
    font-size: 13px; /* DOC-CHANGE: 2025-10-19 - Claude - Reduced from 14px */
    opacity: 0.9;
    margin-left: 10px;
    font-weight: 400;
}

.cpm-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.cpm-community-name {
    font-weight: 600;
}

.cpm-separator {
    opacity: 0.5;
}

.cpm-logout-btn {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    transition: background 0.2s;
    font-weight: 500;
}

.cpm-logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ========================================
   DATE SELECTOR
   ======================================== */
.cpm-date-selector {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 20px 0;
}

.cpm-date-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cpm-date-content label {
    font-weight: 600;
    color: var(--gray-700);
}

.cpm-quick-dates {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cpm-quick-btn {
    padding: 8px 16px;
    min-height: 44px; /* DOC-CHANGE: 2025-10-23 - Claude - Accessibility: WCAG AA touch target size */
    border: 2px solid var(--gray-300);
    background: white;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    color: var(--gray-700);
}

/* DOC-CHANGE: 2025-10-24 - Claude - Changed hover from blue to light grey */
.cpm-quick-btn:hover {
    border-color: var(--gray-400);
    color: var(--gray-700);
    background: var(--gray-50);
}

.cpm-quick-btn.active {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    border-color: var(--primary-blue);
    color: white;
}

.cpm-custom-dates {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cpm-custom-dates input[type="date"] {
    padding: 8px 12px;
    border: 2px solid var(--gray-300);
    border-radius: 6px;
    font-size: 14px;
}

/* ========================================
   NAVIGATION TABS
   ======================================== */
.cpm-nav-tabs {
    background: white;
    display: flex;
    gap: 4px;
    padding: 0 20px;
    max-width: 1400px;
    margin: 0 auto;
    border-bottom: 2px solid var(--gray-200);
}

.cpm-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 18px;
    border: none;
    background: transparent;
    color: var(--gray-600);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease-in-out;
}

.cpm-tab svg {
    opacity: 0.7;
}

/* DOC-CHANGE: 2025-10-24 - Claude - Changed tab hover/active from blue to grey */
.cpm-tab:hover {
    color: var(--gray-700);
    background: var(--gray-100);
}

.cpm-tab.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

.cpm-tab.active svg {
    opacity: 1;
}

/* ========================================
   TAB CONTENT
   ======================================== */
.cpm-tab-content {
    display: none;
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 24px;
}

.cpm-tab-content.active {
    display: block;
}

/* ========================================
   SECTION HEADERS
   ======================================== */
.cpm-section-header {
    margin-bottom: 32px;
}

.cpm-section-header h2 {
    margin: 0 0 8px 0;
    font-size: 28px;
    color: var(--gray-900);
}

.cpm-section-header p {
    margin: 0;
    color: var(--gray-600);
    font-size: 16px;
}

/* ========================================
   METRICS GRID
   ======================================== */
.cpm-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.cpm-metric-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cpm-metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cpm-metric-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cpm-metric-content {
    flex: 1;
}

.cpm-metric-label {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 8px;
    font-weight: 500;
}

.cpm-metric-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1;
}

.cpm-metric-subtext {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 4px;
}

/* ========================================
   BUTTONS
   ======================================== */
.cpm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    min-height: 44px; /* DOC-CHANGE: 2025-10-23 - Claude - Accessibility: WCAG AA touch target size */
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    /* DOC-CHANGE: 2025-10-19 - Claude - Phase 3: Standardized transition */
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}

.cpm-btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.cpm-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.cpm-btn-secondary {
    background: linear-gradient(135deg, var(--gray-600) 0%, var(--gray-500) 100%);
    color: #ffffff;
    border: 2px solid var(--gray-600);
}

.cpm-btn-secondary:hover {
    background: linear-gradient(135deg, var(--gray-700) 0%, var(--gray-600) 100%);
    border-color: var(--gray-700);
    color: #ffffff;
}

/* ========================================
   DATA TABLES
   ======================================== */
.cpm-table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

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

.cpm-data-table thead {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    color: white;
}

.cpm-data-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px; /* DOC-CHANGE: 2025-10-19 - Claude - Phase 3: Increased from 13px */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cpm-data-table td {
    padding: 16px;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-700);
    font-size: 14px;
}

.cpm-data-table tbody tr {
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.cpm-data-table tbody tr:hover {
    background: var(--gray-50);
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

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

.cpm-loading {
    text-align: center;
    color: var(--gray-400);
    font-style: italic;
    padding: 40px !important;
}

/* ========================================
   OFFENDER TABS
   ======================================== */
.cpm-offender-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.cpm-offender-tab {
    padding: 12px 24px;
    border: 2px solid var(--gray-300);
    background: white;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--gray-700);
}

.cpm-offender-tab:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.cpm-offender-tab.active {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    border-color: var(--primary-blue);
    color: white;
}

/* ========================================
   REPORT CARDS
   ======================================== */
.cpm-reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

.cpm-report-card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.cpm-report-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.cpm-report-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.cpm-report-content h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    color: var(--gray-900);
}

.cpm-report-content p {
    margin: 0 0 16px 0;
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.6;
}

.cpm-report-count {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-green);
    margin: 16px 0;
}

.cpm-report-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* ========================================
   COMMITTEE SECTION
   ======================================== */
.cpm-committee-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.cpm-summary-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    display: flex;
    gap: 16px;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.cpm-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cpm-summary-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cpm-summary-label {
    font-size: 13px;
    color: var(--gray-600);
    margin-bottom: 4px;
    font-weight: 500;
}

.cpm-summary-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--gray-900);
}

.cpm-meeting-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.cpm-meeting-section h3 {
    margin: 0 0 16px 0;
    font-size: 18px;
    color: var(--gray-900);
}

.cpm-meeting-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.cpm-date-input {
    padding: 10px 16px;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    font-size: 14px;
}

.cpm-meeting-info {
    padding: 16px;
    background: var(--gray-50);
    border-radius: 8px;
    color: var(--gray-700);
    font-size: 14px;
}

.cpm-committee-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.cpm-committee-tab {
    padding: 12px 24px;
    border: 2px solid var(--gray-300);
    background: white;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--gray-700);
}

.cpm-committee-tab:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.cpm-committee-tab.active {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    border-color: var(--primary-blue);
    color: white;
}

/* ========================================
   MODAL
   ======================================== */
.cpm-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.cpm-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cpm-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 1200px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.cpm-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 2px solid var(--gray-200);
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.cpm-modal-header h2 {
    margin: 0;
    font-size: 24px;
    color: var(--gray-900);
}

.cpm-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}

.cpm-modal-close:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.cpm-modal-body {
    padding: 24px;
}

.cpm-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

/* ========================================
   FORM ELEMENTS
   ======================================== */
.cpm-form-group {
    margin-bottom: 20px;
}

.cpm-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-700);
}

.cpm-textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}

.cpm-textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

/* ========================================
   LOADING OVERLAY
   ======================================== */
.cpm-loading-overlay {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.cpm-loading-overlay.active {
    display: flex;
}

.cpm-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.cpm-loading-overlay p {
    margin-top: 16px;
    color: var(--gray-700);
    font-size: 16px;
    font-weight: 500;
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* DOC-CHANGE: 2025-10-19 - Claude - Phase 3: Tablet breakpoint optimization */
@media (min-width: 769px) and (max-width: 1024px) {
    .cpm-portal-header {
        padding: 14px 0;
    }

    .cpm-logo-section h1 {
        font-size: 20px;
    }

    .cpm-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cpm-reports-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    /* DOC-CHANGE: 2025-10-19 - Claude - Phase 3: Mobile header optimizations */
    .cpm-portal-header {
        padding: 10px 0;
    }

    .cpm-logo-section h1 {
        font-size: 18px;
    }

    .cpm-tagline {
        font-size: 12px;
    }

    .cpm-header-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 0 16px;
    }

    .cpm-header-info {
        flex-direction: column;
        gap: 8px;
    }

    .cpm-separator {
        display: none;
    }

    .cpm-date-content {
        flex-direction: column;
        align-items: stretch;
    }

    .cpm-nav-tabs {
        overflow-x: auto;
        white-space: nowrap;
    }

    .cpm-metrics-grid {
        grid-template-columns: 1fr;
    }

    .cpm-reports-grid {
        grid-template-columns: 1fr;
    }

    .cpm-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    /* DOC-CHANGE: 2025-10-19 - Claude - Phase 3: Touch target optimizations */
    .cpm-btn,
    .cpm-tab,
    .cpm-quick-btn,
    .cpm-offender-tab,
    .cpm-committee-tab {
        min-height: 48px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .cpm-input,
    .cpm-textarea,
    .cpm-filter-select,
    .cpm-filter-input,
    .cpm-date-input {
        min-height: 48px;
        padding: 12px 16px;
        font-size: 16px; /* Prevents iOS zoom */
    }

    /* DOC-CHANGE: 2025-10-19 - Claude - Phase 3: Spacing optimizations */
    .cpm-section-header {
        margin-bottom: 24px;
    }

    .cpm-metric-card,
    .cpm-report-card {
        margin-bottom: 16px;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.cpm-error {
    background: white;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    color: var(--danger-red);
}
/**
 * DOC-CHANGE: 2025-10-04 - Claude - Added styles for preview citation and plate image modals
 *
 * Add this CSS to the END of portal.css file
 */

/* ============================================
   MODAL STYLES FOR PREVIEW & PLATE IMAGE
   ============================================ */

.cpm-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.2s ease-in;
}

.cpm-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cpm-modal-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease-out;
}

.cpm-modal-large {
    width: 90%;
    max-width: 1200px;
}

.cpm-modal-medium {
    width: 80%;
    max-width: 800px;
}

.cpm-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #2c5530 0%, #3a6e3f 100%);
}

.cpm-modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: white;
}

.cpm-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.cpm-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.cpm-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.cpm-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* DOC-CHANGE: 2025-10-19 - Claude - Added colored status badges with icons */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.status-unprocessed {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: #ffffff;
}

/* DOC-CHANGE: 2025-10-19 - Claude - Changed processed status from blue to green (blue reserved for action buttons) */
.status-processed {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff;
}

.status-sent {
    background: linear-gradient(135deg, #06b6d4 0%, #22d3ee 100%);
    color: #ffffff;
}

.status-paid {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff;
}

.status-past-due {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: #ffffff;
}

.status-in-review {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
    color: #ffffff;
}

.status-declined {
    background: linear-gradient(135deg, #64748b 0%, #94a3b8 100%);
    color: #ffffff;
}

/* DOC-CHANGE: 2025-11-01 - Claude - Added voided status badge style */
.status-voided {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
    color: #ffffff;
    text-decoration: line-through;
    opacity: 0.85;
}

/* DOC-CHANGE: 2025-10-19 - Claude - Made action buttons smaller to fit in one row */
/* Action buttons in search results */
.action-buttons {
    display: flex;
    gap: 4px;
    justify-content: flex-start;
    flex-wrap: nowrap;
}

.action-btn {
    padding: 5px 8px;
    border: 2px solid;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    white-space: nowrap;
    /* ALWAYS VISIBLE: Buttons have colored backgrounds by default */
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
    /* Reduced hover effect - less dramatic */
}

.action-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Icon styling - always visible */
.btn-icon {
    font-size: 16px;
    line-height: 1;
    display: inline-block;
}

.btn-text {
    font-size: 11px;
    line-height: 1;
}

/* Individual button colors - ALL BLUE THEME */
.preview-btn,
.plate-btn,
.download-btn,
.history-btn {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    border-color: #2563eb;
    color: #ffffff;
}

.preview-btn:hover,
.plate-btn:hover,
.download-btn:hover,
.history-btn:hover {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    border-color: #1e40af;
    color: #ffffff;
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5 !important;
    color: #999 !important;
    border-color: #ddd !important;
}

.action-btn:disabled:hover {
    transform: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .action-btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    .btn-icon {
        font-size: 14px;
    }

    .btn-text {
        font-size: 11px;
    }
}

/* ============================================
   ACTIONS COLUMN LAYOUT
   ============================================ */

.cpm-actions-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-start;
    align-items: center;
    min-width: 280px;
}

.cpm-offense-badge {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media screen and (max-width: 768px) {
    .cpm-modal-large,
    .cpm-modal-medium {
        width: 95%;
        max-height: 95vh;
    }

    .cpm-modal-header {
        padding: 16px;
    }

    .cpm-modal-body {
        padding: 16px;
    }

    .cpm-actions-cell {
        flex-direction: column;
        align-items: flex-start;
        min-width: auto;
    }

    .cpm-btn-small {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   PLATE IMAGE SPECIFIC STYLES
   ============================================ */

#plate-image-img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ============================================
   IFRAME PREVIEW SPECIFIC STYLES
   ============================================ */

#citation-preview-iframe {
    background: white;
    border-radius: 4px;
}

/* Loading spinner for iframe */
.cpm-modal-body::before {
    content: '';
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2c5530;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/**
 * ========================================================================
 * PHASE 4: SEARCH TAB - CSS STYLES
 * ========================================================================
 *
 * ADD THIS CODE to portal.css
 *
 * Location: At the end of the file (after all existing styles)
 *
 * These styles provide:
 * 1. Search filters bar layout
 * 2. Search results table styling
 * 3. Action buttons styling
 * 4. History modal styling
 * 5. Pagination controls
 * 6. Mobile responsive breakpoints
 *
 * DOC-CHANGE: 2025-10-05 - Claude - Added Phase 4 search tab styles
 * ========================================================================
 */

/* ========================================================================
   SEARCH FILTERS BAR
   ======================================================================== */

.cpm-search-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
    align-items: flex-end;
}

.cpm-filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cpm-filter-group label {
    font-size: 12px;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cpm-filter-select,
.cpm-filter-input {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    min-width: 140px;
    background: white;
    transition: border-color 0.2s;
}

.cpm-filter-select:focus,
.cpm-filter-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.cpm-search-input-group {
    flex-grow: 1;
    min-width: 200px;
}

.cpm-search-input-group .cpm-filter-input {
    width: 100%;
}

#search-button {
    padding: 8px 20px;
    height: 38px;
    align-self: flex-end;
}

#search-button svg {
    margin-right: 5px;
}

/* Search Results Info Bar */
.cpm-search-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #e9ecef;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #495057;
}

#search-results-count {
    font-weight: 600;
}

#clear-search {
    padding: 6px 12px;
}


/* ========================================================================
   SEARCH RESULTS TABLE
   ======================================================================== */

.cpm-table tbody td {
    vertical-align: middle;
}

/* Badge Styling */
.cpm-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cpm-badge-success {
    background: #d4edda;
    color: #155724;
}

.cpm-badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

.cpm-badge-warning {
    background: #fff3cd;
    color: #856404;
}

.cpm-badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.cpm-badge-secondary {
    background: #e2e3e5;
    color: #383d41;
}

/* Actions Column */
.cpm-actions {
    white-space: nowrap;
}

.cpm-actions .cpm-btn {
    margin-right: 5px;
}

.cpm-actions .cpm-btn:last-child {
    margin-right: 0;
}

/* Action Button Colors - DISTINCT COLORS FOR BETTER UX */
.cpm-btn-info {
    background: linear-gradient(135deg, var(--info-blue) 0%, var(--info-blue-light) 100%);
    border-color: var(--info-blue);
    color: white;
}

.cpm-btn-info:hover {
    background: linear-gradient(135deg, #067a94 0%, var(--info-blue) 100%);
    border-color: #067a94;
}

.cpm-btn-success {
    background: linear-gradient(135deg, var(--success-green) 0%, var(--success-green-light) 100%);
    border-color: var(--success-green);
    color: white;
}

.cpm-btn-success:hover {
    background: linear-gradient(135deg, #047857 0%, var(--success-green) 100%);
    border-color: #047857;
}

.cpm-btn-warning {
    background: linear-gradient(135deg, var(--warning-orange) 0%, var(--warning-orange-light) 100%);
    border-color: var(--warning-orange);
    color: white;
}

.cpm-btn-warning:hover {
    background: linear-gradient(135deg, #d97706 0%, var(--warning-orange) 100%);
    border-color: #d97706;
}

.cpm-btn-danger {
    background: linear-gradient(135deg, var(--danger-red) 0%, var(--danger-red-light) 100%);
    border-color: var(--danger-red);
    color: white;
}

.cpm-btn-danger:hover {
    background: linear-gradient(135deg, #b91c1c 0%, var(--danger-red) 100%);
    border-color: #b91c1c;
}


/* ========================================================================
   PAGINATION CONTROLS
   ======================================================================== */

.cpm-pagination {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.cpm-pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.cpm-pagination-info {
    font-size: 14px;
    color: #495057;
    font-weight: 600;
}

.cpm-pagination .cpm-btn {
    min-width: 100px;
}


/* ========================================================================
   LICENSE PLATE HISTORY MODAL
   ======================================================================== */

.cpm-modal-wide {
    max-width: 800px;
    width: 90%;
}

.cpm-history-table {
    margin-bottom: 0;
}

.cpm-history-table thead th {
    background: #f8f9fa;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.cpm-history-table tbody tr:hover {
    background: #f8f9fa;
}

#history-modal-title {
    margin: 0;
    font-size: 18px;
    color: #212529;
}

#history-modal-title #history-plate {
    color: var(--primary-blue);
    font-weight: 700;
}

#history-loading {
    padding: 40px;
}

#history-empty {
    padding: 40px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

/* Spinner for loading states */
.cpm-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-blue);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* ========================================================================
   MOBILE RESPONSIVE BREAKPOINTS
   ======================================================================== */

/* Tablets and smaller (max-width: 1024px) */
@media (max-width: 1024px) {
    .cpm-search-filters {
        gap: 10px;
    }

    .cpm-filter-group {
        flex: 1 1 calc(50% - 10px);
        min-width: 150px;
    }

    .cpm-search-input-group {
        flex: 1 1 100%;
    }

    #search-button {
        width: 100%;
    }
}

/* Mobile devices (max-width: 768px) */
@media (max-width: 768px) {
    .cpm-search-filters {
        flex-direction: column;
        gap: 12px;
    }

    .cpm-filter-group {
        width: 100%;
    }

    .cpm-filter-select,
    .cpm-filter-input {
        width: 100%;
        min-width: 100%;
    }

    .cpm-search-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    /* Make table scrollable horizontally */
    .cpm-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .cpm-table {
        min-width: 800px; /* Force horizontal scroll */
    }

    /* Stack action buttons on mobile */
    .cpm-actions {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .cpm-actions .cpm-btn {
        width: 100%;
        margin-right: 0;
        margin-bottom: 5px;
    }

    .cpm-actions .cpm-btn:last-child {
        margin-bottom: 0;
    }

    /* Pagination controls */
    .cpm-pagination-controls {
        flex-direction: column;
        gap: 10px;
    }

    .cpm-pagination .cpm-btn {
        width: 100%;
    }

    /* History modal */
    .cpm-modal-wide {
        width: 95%;
        max-width: none;
    }

    .cpm-history-table {
        font-size: 12px;
    }

    .cpm-history-table th,
    .cpm-history-table td {
        padding: 8px 6px;
    }
}

/* Extra small devices (max-width: 480px) */
@media (max-width: 480px) {
    .cpm-search-filters {
        padding: 15px;
    }

    .cpm-filter-group label {
        font-size: 11px;
    }

    .cpm-filter-select,
    .cpm-filter-input {
        font-size: 13px;
        padding: 6px 10px;
    }

    #search-button {
        padding: 10px 16px;
        font-size: 14px;
    }

    .cpm-table {
        font-size: 12px;
    }

    .cpm-badge {
        font-size: 10px;
        padding: 3px 8px;
    }

    .cpm-btn-small {
        padding: 5px 8px;
    }

    .cpm-btn-small svg {
        width: 14px;
        height: 14px;
    }

    #history-modal-title {
        font-size: 16px;
    }

    .cpm-history-table {
        font-size: 11px;
    }

    /* DOC-CHANGE: 2025-10-23 - Claude - Fix horizontal scroll on mobile devices */
    .cpm-quick-dates {
        width: 100%;
    }

    .cpm-quick-btn {
        flex: 1 1 calc(50% - 4px); /* Two buttons per row on small screens */
        min-width: auto;
        font-size: 13px;
        padding: 8px 12px;
    }

    .cpm-custom-dates {
        flex-wrap: wrap;
        width: 100%;
    }

    .cpm-custom-dates input[type="date"] {
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
    }

    .cpm-custom-dates label {
        width: 100%;
        flex-basis: 100%;
    }
}


/* ========================================================================
   ACCESSIBILITY & POLISH
   ======================================================================== */

/* Focus states for keyboard navigation */
.cpm-filter-select:focus,
.cpm-filter-input:focus,
.cpm-btn:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Loading state for table */
.cpm-loading {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-style: italic;
}

/* Empty state styling */
.cpm-table tbody tr td[colspan] {
    text-align: center;
    color: #6c757d;
}

/* Hover effects for better UX */
.cpm-table tbody tr:hover {
    background: #f8f9fa;
    transition: background-color 0.2s;
}

/* Smooth transitions */
.cpm-btn,
.cpm-filter-select,
.cpm-filter-input {
    transition: all 0.2s ease-in-out;
}

/* Print styles (hide interactive elements when printing) */
@media print {
    .cpm-search-filters,
    .cpm-search-info,
    .cpm-pagination,
    .cpm-actions,
    .cpm-modal {
        display: none !important;
    }

    .cpm-table {
        border: 1px solid #000;
    }
}

/* ========================================================================
   COMMITTEE REVIEW TABLE COLORS - LIGHT MODE
   ======================================================================== */
.cpm-citation-number {
    color: #1e40af; /* Blue for citation numbers */
}

.cpm-license-plate {
    color: #374151; /* Dark gray for license plates */
}

.cpm-address {
    color: #6b7280; /* Medium gray for addresses */
}

.cpm-speed {
    color: #dc2626; /* Red for speed */
}

/* ========================================================================
   DARK MODE SUPPORT - COMPREHENSIVE FIX
   ======================================================================== */

@media (prefers-color-scheme: dark) {
    /* Container and backgrounds */
    #cpm-portal-container {
        background: #1a202c;
        color: #e2e8f0;
    }

    /* Headers stay with gradient - good contrast */
    .cpm-portal-header {
        /* Keep existing gradient - it works in dark mode */
    }

    /* Date Selector */
    .cpm-date-selector {
        background: #2d3748;
        border-bottom-color: #4a5568;
    }

    .cpm-date-content label {
        color: #e2e8f0;
    }

    .cpm-quick-btn {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }

    .cpm-quick-btn:hover {
        border-color: var(--primary-green-light);
        color: var(--success-green-light);
        background: #374151;
    }

    .cpm-quick-btn.active {
        /* Keep existing gradient - good contrast */
    }

    .cpm-custom-dates input[type="date"] {
        background: #374151;
        border-color: #4a5568;
        color: #e2e8f0;
        color-scheme: dark; /* This makes the date picker dark */
    }

    /* Navigation Tabs */
    .cpm-nav-tabs {
        background: #2d3748;
        border-bottom-color: #4a5568;
    }

    .cpm-tab {
        color: #9ca3af;
    }

    .cpm-tab:hover {
        color: var(--success-green-light);
        background: #374151;
    }

    .cpm-tab.active {
        color: var(--success-green-light);
        border-bottom-color: var(--success-green-light);
    }

    /* Tab Content */
    .cpm-tab-content {
        background: #1a202c;
    }

    /* Section Headers */
    .cpm-section-header h2 {
        color: #f3f4f6;
    }

    .cpm-section-header p {
        color: #9ca3af;
    }

    /* Metric Cards */
    .cpm-metric-card {
        background: #2d3748;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .cpm-metric-card:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    }

    .cpm-metric-label {
        color: #9ca3af;
    }

    .cpm-metric-value {
        color: #f3f4f6;
    }

    .cpm-metric-subtext {
        color: #6b7280;
    }

    /* Tables */
    .cpm-table-container {
        background: #2d3748;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .cpm-data-table {
        color: #e2e8f0;
    }

    .cpm-data-table td {
        border-bottom-color: #4a5568;
        color: #e2e8f0;
    }

    .cpm-data-table tbody tr:hover {
        background: #374151;
    }

    /* Cards */
    .cpm-report-card,
    .cpm-summary-card,
    .cpm-meeting-section {
        background: #2d3748;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .cpm-report-card:hover,
    .cpm-summary-card:hover {
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    }

    .cpm-report-content h3,
    .cpm-meeting-section h3 {
        color: #f3f4f6;
    }

    .cpm-report-content p {
        color: #ffffff !important; /* Use white for maximum visibility */
    }

    /* Fix dim text in report cards - use white for all text */
    .cpm-report-card p,
    .cpm-report-card span:not(.cpm-report-count),
    .cpm-report-card .cpm-summary-label,
    .cpm-report-card small,
    .cpm-report-card div {
        color: #ffffff !important; /* White for all descriptive text */
    }

    .cpm-summary-label {
        color: #ffffff !important; /* White for labels */
    }

    .cpm-summary-value {
        color: #ffffff !important; /* White for values */
    }

    /* Search Filters */
    .cpm-search-filters {
        background: #2d3748;
    }

    .cpm-filter-group label {
        color: #e2e8f0;
    }

    .cpm-filter-select,
    .cpm-filter-input {
        background: #374151;
        border-color: #4a5568;
        color: #e2e8f0;
    }

    .cpm-search-info {
        background: #374151;
        color: #e2e8f0;
    }

    /* Pagination */
    .cpm-pagination {
        background: #2d3748;
    }

    .cpm-pagination-info {
        color: #e2e8f0;
    }

    /* Buttons - CRITICAL FIX */
    .cpm-btn-secondary {
        background: linear-gradient(135deg, #15803d 0%, #22c55e 100%) !important;
        color: #ffffff !important;
        border-color: #15803d !important;
    }

    .cpm-btn-secondary:hover {
        background: linear-gradient(135deg, #166534 0%, #16a34a 100%) !important;
        border-color: #166534 !important;
        color: #ffffff !important;
    }

    /* Action Buttons - ALWAYS VISIBLE */
    .action-btn {
        border: 2px solid #374151;
        box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    }

    /* Action buttons - ALL GREEN in dark mode */
    .preview-btn,
    .plate-btn,
    .download-btn,
    .history-btn,
    .cpm-btn-info,
    .cpm-btn-success,
    .cpm-btn-warning,
    .cpm-btn-danger {
        background: linear-gradient(135deg, #15803d 0%, #22c55e 100%) !important;
        border-color: #15803d !important;
        color: #ffffff !important;
    }

    .preview-btn:hover,
    .plate-btn:hover,
    .download-btn:hover,
    .history-btn:hover,
    .cpm-btn-info:hover,
    .cpm-btn-success:hover,
    .cpm-btn-warning:hover,
    .cpm-btn-danger:hover {
        background: linear-gradient(135deg, #166534 0%, #16a34a 100%) !important;
        border-color: #166534 !important;
        color: #ffffff !important;
    }

    /* Modals */
    .cpm-modal {
        background-color: rgba(0, 0, 0, 0.85);
    }

    .cpm-modal-content {
        background-color: #2d3748;
        color: #e2e8f0;
    }

    .cpm-modal-header {
        border-bottom-color: #4a5568;
        /* Keep gradient - it works */
    }

    .cpm-modal-body {
        background: #2d3748;
    }

    .cpm-modal-footer {
        border-top-color: #4a5568;
        background: #2d3748;
    }

    /* History Modal Table */
    .cpm-history-table thead th {
        background: #374151 !important;
        color: #e2e8f0 !important;
        border-bottom: 2px solid #4a5568 !important;
    }

    .cpm-history-table tbody tr {
        border-bottom-color: #4a5568;
    }

    .cpm-history-table tbody tr:hover {
        background: #374151 !important;
    }

    .cpm-history-table tbody td {
        color: #e2e8f0;
        border-bottom-color: #4a5568;
    }

    #history-modal-title {
        color: #f3f4f6 !important;
    }

    /* Form Elements */
    .cpm-date-input,
    .cpm-textarea {
        background: #374151;
        border-color: #4a5568;
        color: #e2e8f0;
    }

    .cpm-textarea:focus,
    .cpm-date-input:focus {
        border-color: var(--success-green-light);
    }

    .cpm-meeting-info {
        background: #374151;
        color: #e2e8f0;
    }

    /* Tabs (offender/committee) */
    .cpm-offender-tab,
    .cpm-committee-tab {
        background: #374151;
        border-color: #4a5568;
        color: #e2e8f0;
    }

    .cpm-offender-tab:hover,
    .cpm-committee-tab:hover {
        border-color: var(--success-green-light);
        color: var(--success-green-light);
    }

    /* Error messages */
    .cpm-error {
        background: #2d3748;
        color: #f87171;
    }

    /* Loading states */
    .cpm-loading {
        color: #9ca3af;
    }

    /* Badges */
    .cpm-badge-success {
        background: #064e3b;
        color: #6ee7b7;
    }

    .cpm-badge-info {
        background: #164e63;
        color: #67e8f9;
    }

    .cpm-badge-warning {
        background: #78350f;
        color: #fcd34d;
    }

    .cpm-badge-danger {
        background: #7f1d1d;
        color: #fca5a5;
    }

    .cpm-badge-secondary {
        background: #374151;
        color: #9ca3af;
    }

    .cpm-offense-badge {
        /* Keep gradient - works well */
    }

    /* Loading overlay */
    .cpm-loading-overlay {
        background: rgba(26, 32, 44, 0.95);
    }

    .cpm-loading-overlay p {
        color: #e2e8f0;
    }

    /* Form group labels */
    .cpm-form-group label {
        color: #e2e8f0;
    }
}

/**
 * ========================================================================
 * END OF PHASE 4 SEARCH TAB STYLES
 * ========================================================================
 */

/* Clear filters button */
#clear-search {
    margin-left: 10px;
}

/* Search pagination positioning */
.results-info,
.search-pagination {
    text-align: right;
    margin: 15px 0;
}

.search-pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

/* ========================================================================
   COMMITTEE REVIEW PAGE - ALL GREEN BUTTON THEME
   ======================================================================== */

/* Committee decision select dropdowns - ALWAYS VISIBLE */
.decision-select {
    padding: 6px 10px !important;
    border: 2px solid #4a5568 !important;
    background: #ffffff !important;
    color: #1f2937 !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    min-width: 120px !important;
}

.decision-select:focus {
    border-color: var(--primary-blue) !important;
    outline: 2px solid rgba(37, 99, 235, 0.2) !important;
    outline-offset: 0 !important;
}

/* ALL buttons in committee review - BLUE THEME */
#committee-review-wrap .button,
#committee-review-wrap .button-primary,
#committee-review-wrap .button-secondary,
.wp-list-table .button,
.wp-list-table .button-primary,
.wp-list-table .button-secondary {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%) !important;
    border: 2px solid #2563eb !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    margin: 4px 4px 4px 0 !important;
}

#committee-review-wrap .button:hover,
#committee-review-wrap .button-primary:hover,
#committee-review-wrap .button-secondary:hover,
.wp-list-table .button:hover,
.wp-list-table .button-primary:hover,
.wp-list-table .button-secondary:hover {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%) !important;
    border-color: #1e40af !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* DARK MODE: Committee Review Page */
@media (prefers-color-scheme: dark) {
    #committee-review-wrap {
        background: #1a202c !important;
        color: #e2e8f0 !important;
    }

    #committee-review-wrap .wrap {
        background: #1a202c;
    }

    #committee-review-wrap h1 {
        color: #f3f4f6 !important;
    }

    .decision-select {
        background: #374151 !important;
        color: #e2e8f0 !important;
        border-color: #4a5568 !important;
    }

    #committee-review-wrap .button {
        background: #374151 !important;
        border-color: #22c55e !important;
        color: #22c55e !important;
    }

    #committee-review-wrap .button:hover {
        background: #4b5563 !important;
        border-color: #4ade80 !important;
        color: #4ade80 !important;
    }

    #committee-review-wrap .button-secondary {
        background: #374151 !important;
        border-color: #9ca3af !important;
        color: #e2e8f0 !important;
    }

    #committee-review-wrap .button-secondary:hover {
        background: #4b5563 !important;
        border-color: #d1d5db !important;
        color: #f3f4f6 !important;
    }

    .wp-list-table {
        background: #2d3748 !important;
        color: #e2e8f0 !important;
    }

    .wp-list-table th {
        background: #374151 !important;
        color: #f3f4f6 !important;
        border-color: #4a5568 !important;
    }

    .wp-list-table td {
        background: #2d3748 !important;
        color: #ffffff !important; /* White for visibility */
        border-color: #4a5568 !important;
    }

    .wp-list-table tr:hover td {
        background: #e5e7eb !important; /* Light gray hover */
        color: #000000 !important; /* Black text on hover */
    }

    .wp-list-table textarea {
        background: #374151 !important;
        color: #e2e8f0 !important;
        border-color: #4a5568 !important;
    }

    /* Bulk actions in dark mode */
    .cpm-bulk-actions {
        background: #2d3748 !important;
        border-color: #4a5568 !important;
    }

    .cpm-selected-count {
        color: #9ca3af !important;
    }

    .cpm-checkbox-label span {
        color: #e2e8f0 !important;
    }

    /* Fix citation number links visibility - MAXIMUM SPECIFICITY */
    body #cpm-portal-container #committee-review-wrap .wp-list-table tbody tr td a,
    body #cpm-portal-container #committee-review-wrap .wp-list-table tbody tr td a:link,
    body #cpm-portal-container #committee-review-wrap .wp-list-table tbody tr td a:visited,
    body #cpm-portal-container .wp-list-table tbody tr td a,
    body #cpm-portal-container .wp-list-table tbody tr td a:link,
    body #cpm-portal-container .wp-list-table tbody tr td a:visited,
    body .wp-list-table tbody tr td a,
    body .wp-list-table tbody tr td a:link,
    body .wp-list-table tbody tr td a:visited,
    #committee-review-wrap .wp-list-table tbody tr td a,
    #committee-review-wrap .wp-list-table a,
    #committee-review-wrap .wp-list-table a:link,
    #committee-review-wrap .wp-list-table a:visited,
    .wp-list-table tbody tr td a,
    .wp-list-table a,
    .wp-list-table a:link,
    .wp-list-table a:visited {
        color: #ffffff !important; /* White for maximum visibility */
        text-decoration: none !important;
    }

    body #cpm-portal-container #committee-review-wrap .wp-list-table a:hover,
    body #cpm-portal-container .wp-list-table a:hover,
    #committee-review-wrap .wp-list-table a:hover,
    .wp-list-table a:hover {
        color: #ffffff !important; /* Stay white on hover too */
        text-decoration: underline !important;
    }

    /* Fix license plate, address, and ALL table text - MAXIMUM SPECIFICITY */
    body #cpm-portal-container #committee-review-wrap .wp-list-table tbody tr td,
    body #cpm-portal-container #committee-review-wrap .wp-list-table tbody tr td span,
    body #cpm-portal-container .wp-list-table tbody tr td,
    body #cpm-portal-container .wp-list-table tbody tr td span,
    body .wp-list-table tbody tr td,
    body .wp-list-table tbody tr td span,
    #committee-review-wrap .wp-list-table td,
    #committee-review-wrap .wp-list-table td a,
    #committee-review-wrap .wp-list-table td span,
    .wp-list-table td,
    .wp-list-table td a,
    .wp-list-table td span {
        color: #ffffff !important; /* White for all table text */
    }

    /* Fix table row hover - keep text visible when hovering - MAXIMUM SPECIFICITY */
    body #cpm-portal-container #committee-review-wrap .wp-list-table tbody tr:hover td,
    body #cpm-portal-container #committee-review-wrap .wp-list-table tbody tr:hover td a,
    body #cpm-portal-container #committee-review-wrap .wp-list-table tbody tr:hover td span,
    body #cpm-portal-container .wp-list-table tbody tr:hover td,
    body #cpm-portal-container .wp-list-table tbody tr:hover td a,
    body #cpm-portal-container .wp-list-table tbody tr:hover td span,
    #committee-review-wrap .wp-list-table tr:hover td,
    #committee-review-wrap .wp-list-table tr:hover td a,
    #committee-review-wrap .wp-list-table tr:hover td span,
    .wp-list-table tr:hover td,
    .wp-list-table tr:hover td a,
    .wp-list-table tr:hover td span {
        color: #000000 !important; /* Black text on light hover background */
        background: #e5e7eb !important; /* Light gray hover background */
    }

    /* Fix Search and My Requests table hover */
    .cpm-data-table tbody tr:hover td,
    .cpm-data-table tbody tr:hover td a,
    .cpm-data-table tbody tr:hover td span,
    .cpm-table tbody tr:hover td,
    .cpm-table tbody tr:hover td a,
    .cpm-table tbody tr:hover td span {
        color: #000000 !important; /* Black text on hover */
        background: #e5e7eb !important; /* Light gray hover background */
    }
}

/* ========================================================================
   BULK ACTIONS STYLES
   ======================================================================== */

.cpm-bulk-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 16px;
}

.cpm-bulk-actions-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cpm-bulk-actions-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cpm-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
    color: var(--gray-700);
    user-select: none;
}

.cpm-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-green);
}

.cpm-selected-count {
    font-size: 14px;
    color: var(--gray-600);
    font-weight: 500;
    padding: 4px 12px;
    background: white;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
}

#bulk-approve-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(50%);
}

/* Checkbox column styling */
.cpm-data-table td:first-child,
.cpm-data-table th:first-child {
    text-align: center;
    vertical-align: middle;
}

/* Indeterminate checkbox state (some but not all selected) */
.cpm-checkbox:indeterminate {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}
}

/* ========================================================================
   CLIENT PORTAL LOGIN PAGE STYLES
   DOC-CHANGE: 2025-10-08 - Claude - Added modern login page styling to match dashboard
   ======================================================================== */

.cpm-login-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0 auto;
    width: 100%;
}

.cpm-login-container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

/* Logo Section */
.cpm-login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.cpm-logo-box {
    background: white;
    padding: 24px 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: inline-block;
}

.cpm-logo-box h1 {
    margin: 0;
    font-size: 32px; /* DOC-CHANGE: 2025-10-19 - Claude - Reduced from 36px */
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1;
}

.cpm-logo-tagline {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-500);
    margin-top: 8px;
}

/* Login Card */
.cpm-login-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.cpm-login-card-header {
    padding: 32px 40px 24px;
    text-align: center;
    border-bottom: 2px solid var(--gray-100);
}

.cpm-login-card-header h2 {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
}

.cpm-login-card-header p {
    margin: 0;
    font-size: 14px;
    color: var(--gray-600);
}

.cpm-login-card-body {
    padding: 32px 40px;
}

/* Login Error Message */
.cpm-login-error {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    margin-bottom: 24px;
    background: #fee2e2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    color: #991b1b;
    font-size: 14px;
    font-weight: 500;
}

.cpm-login-error svg {
    flex-shrink: 0;
    color: #dc2626;
}

/* Form Groups */
.cpm-login-card-body .cpm-form-group {
    margin-bottom: 24px;
}

.cpm-login-card-body .cpm-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-700);
}

.cpm-login-card-body .cpm-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s;
    background: white;
    color: var(--gray-900);
}

.cpm-login-card-body .cpm-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Remember Me Checkbox */
.cpm-remember-group {
    margin-bottom: 24px !important;
}

.cpm-login-card-body .cpm-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    color: var(--gray-700);
    user-select: none;
}

.cpm-login-card-body .cpm-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-blue);
}

/* Login Button */
.cpm-login-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%) !important;
    border: none;
    border-radius: 8px;
    color: white !important;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.cpm-login-button:hover {
    background: linear-gradient(135deg, #1e40af 0%, var(--primary-blue) 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    color: white !important;
}

.cpm-login-button:active {
    transform: translateY(0);
}

.cpm-login-button svg {
    flex-shrink: 0;
    fill: white !important;
}

/* Login Footer */
.cpm-login-footer {
    margin-top: 24px;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.cpm-forgot-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.2s;
}

.cpm-forgot-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Support Information */
.cpm-login-support {
    text-align: center;
    margin-top: 32px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.cpm-login-support p {
    margin: 0;
    font-size: 15px;
    color: white;
    font-weight: 500;
}

.cpm-login-support a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

.cpm-login-support a:hover {
    opacity: 0.8;
}

/* TechPro Logo at Bottom */
.cpm-login-wrapper + * img,
.cpm-login-wrapper ~ * img {
    display: block;
    margin: 0 auto !important;
    text-align: center !important;
}

/* Override any theme styles that might interfere */
body .cpm-login-wrapper {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%) !important;
}

/* Hide WordPress theme header/footer on login page */
.page-template-default .cpm-login-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    overflow-y: auto;
}

/* When login wrapper exists, hide theme elements */
body:has(.cpm-login-wrapper) header,
body:has(.cpm-login-wrapper) .site-header,
body:has(.cpm-login-wrapper) nav,
body:has(.cpm-login-wrapper) #header {
    display: none !important;
}

/* Override body background when login is present */
body:has(.cpm-login-wrapper) {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%) !important;
    overflow-x: hidden;
}

/* Center any footer content */
.cpm-login-wrapper ~ div,
.cpm-login-wrapper ~ footer,
.cpm-login-wrapper ~ p {
    text-align: center !important;
    position: fixed !important;
    bottom: 20px !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10000 !important;
    background: transparent !important;
}

/* Make support info more visible */
.cpm-login-support {
    display: block !important;
    visibility: visible !important;
}

/* Additional theme overrides for common WordPress themes */
.cpm-login-wrapper {
    position: relative;
    z-index: 999;
}

/* Hide theme content wrapper backgrounds */
.site-content:has(.cpm-login-wrapper),
.content-area:has(.cpm-login-wrapper),
main:has(.cpm-login-wrapper),
article:has(.cpm-login-wrapper) {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Make the login wrapper's parent full-width */
.cpm-login-wrapper,
.entry-content:has(.cpm-login-wrapper) {
    max-width: 100% !important;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
}

/* Responsive Design */
@media (max-width: 900px) {
    .cpm-login-container {
        max-width: 600px;
    }
}

@media (max-width: 600px) {
    .cpm-login-wrapper {
        padding: 20px 16px;
    }

    .cpm-login-container {
        max-width: 100%;
    }

    .cpm-logo-box {
        padding: 20px 32px;
    }

    .cpm-logo-box h1 {
        font-size: 30px;
    }

    .cpm-login-card-header {
        padding: 24px 24px 20px;
    }

    .cpm-login-card-header h2 {
        font-size: 24px;
    }

    .cpm-login-card-body {
        padding: 24px 24px 32px;
    }

    .cpm-login-card-body .cpm-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .cpm-login-support {
        font-size: 13px;
    }
}

/* Dark Mode Support for Login Page */
@media (prefers-color-scheme: dark) {
    .cpm-login-wrapper {
        background: linear-gradient(135deg, #15803d 0%, #22c55e 100%);
    }

    .cpm-logo-box {
        background: #2d3748;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    }

    .cpm-logo-box h1 {
        color: #22c55e;
    }

    .cpm-logo-tagline {
        color: #9ca3af;
    }

    .cpm-login-card {
        background: #2d3748;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    }

    .cpm-login-card-header {
        border-bottom-color: #4a5568;
    }

    .cpm-login-card-header h2 {
        color: #f3f4f6;
    }

    .cpm-login-card-header p {
        color: #9ca3af;
    }

    .cpm-login-error {
        background: #7f1d1d;
        border-color: #991b1b;
        color: #fca5a5;
    }

    .cpm-login-error svg {
        color: #f87171;
    }

    .cpm-login-card-body .cpm-form-group label {
        color: #e2e8f0;
    }

    .cpm-login-card-body .cpm-input {
        background: #374151;
        border-color: #4a5568;
        color: #e2e8f0;
    }

    .cpm-login-card-body .cpm-input:focus {
        border-color: #22c55e;
        box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
    }

    .cpm-login-card-body .cpm-checkbox-label {
        color: #e2e8f0;
    }

    .cpm-login-button {
        background: linear-gradient(135deg, #15803d 0%, #22c55e 100%);
    }

    .cpm-login-button:hover {
        background: linear-gradient(135deg, #166534 0%, #16a34a 100%);
    }

    .cpm-login-footer {
        border-top-color: #4a5568;
    }

    .cpm-forgot-link {
        color: #22c55e;
    }
}

/* ========================================================================
   END OF LOGIN PAGE STYLES
   ======================================================================== */

/* ========================================================================
   MY REQUESTS TAB STYLES
   DOC-CHANGE: 2025-10-28 - Claude - Styles for appeals and corrections requests tab
   ======================================================================== */

.cpm-requests-header {
    margin-bottom: 25px;
}

.cpm-requests-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 8px 0;
}

.cpm-requests-header .description {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

/* Request Type Tabs (All/Appeals/Corrections) */
.cpm-request-type-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0;
}

.cpm-request-type-tab {
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #64748b;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: -2px;
}

.cpm-request-type-tab:hover {
    color: #2563eb;
    border-bottom-color: #93c5fd;
}

.cpm-request-type-tab.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

/* Status Filter Tabs */
.cpm-request-status-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.cpm-request-status-tab {
    padding: 8px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cpm-request-status-tab:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.cpm-request-status-tab.active {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
}

.cpm-request-status-tab .count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

.cpm-request-status-tab.active .count {
    background: rgba(255, 255, 255, 0.2);
}

/* Request Type Badge */
.request-type-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.request-type-badge.appeal {
    background: #dbeafe;
    color: #1e40af;
}

.request-type-badge.correction {
    background: #fef3c7;
    color: #92400e;
}

/* Status Badge - Button-like appearance with distinct colors */
.status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.status-badge.pending {
    background: #fbbf24;
    color: #78350f;
    border-color: #f59e0b;
}

.status-badge.more-info-needed {
    background: #60a5fa;
    color: #1e3a8a;
    border-color: #3b82f6;
}

.status-badge.approved {
    background: #34d399;
    color: #064e3b;
    border-color: #10b981;
}

.status-badge.denied {
    background: #f87171;
    color: #7f1d1d;
    border-color: #ef4444;
}

/* Request Details Column */
.request-details {
    font-size: 13px;
    line-height: 1.6;
    color: #475569;
}

.request-details strong {
    color: #1e293b;
    font-weight: 600;
}

.request-details br {
    margin-bottom: 4px;
}

/* Admin Notes */
.admin-notes {
    max-width: 200px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.admin-notes.empty {
    color: #cbd5e1;
    font-style: italic;
}

/* Empty State */
.cpm-table tbody tr td[colspan] {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
    font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cpm-request-type-tabs {
        overflow-x: auto;
    }

    .cpm-request-status-tabs {
        gap: 6px;
    }

    .cpm-request-status-tab {
        padding: 6px 12px;
        font-size: 13px;
    }

    .admin-notes {
        max-width: 150px;
    }
}

/* ========================================================================
   END OF MY REQUESTS TAB STYLES
   ======================================================================== */

/* ========================================================================
   DARK MODE: MY REQUESTS TAB
   DOC-CHANGE: 2025-10-30 - Claude - Dark mode support for My Requests tab
   ======================================================================== */

@media (prefers-color-scheme: dark) {
    /* Request Header */
    .cpm-requests-header h2 {
        color: #f3f4f6;
    }

    .cpm-requests-header .description {
        color: #9ca3af;
    }

    /* Request Type Tabs (All/Appeals/Corrections) */
    .cpm-request-type-tabs {
        border-bottom-color: #4a5568;
    }

    .cpm-request-type-tab {
        color: #9ca3af;
    }

    .cpm-request-type-tab:hover {
        color: #22c55e;
        background: #374151;
        border-bottom-color: #4ade80;
    }

    .cpm-request-type-tab.active {
        color: #22c55e;
        border-bottom-color: #22c55e;
    }

    /* Status Filter Tabs */
    .cpm-request-status-tab {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }

    .cpm-request-status-tab:hover {
        background: #374151;
        border-color: #6b7280;
    }

    .cpm-request-status-tab.active {
        background: #22c55e;
        border-color: #22c55e;
        color: #ffffff;
    }

    .cpm-request-status-tab .count {
        background: rgba(255, 255, 255, 0.15);
    }

    .cpm-request-status-tab.active .count {
        background: rgba(255, 255, 255, 0.25);
    }

    /* Request Type Badge */
    .request-type-badge.appeal {
        background: #1e3a8a;
        color: #93c5fd;
    }

    .request-type-badge.correction {
        background: #78350f;
        color: #fde047;
    }

    /* Status Badge - Adjusted for dark mode with better contrast */
    .status-badge.pending {
        background: #854d0e;
        color: #fde047;
        border-color: #a16207;
    }

    .status-badge.more-info-needed {
        background: #1e3a8a;
        color: #93c5fd;
        border-color: #2563eb;
    }

    .status-badge.approved {
        background: #065f46;
        color: #6ee7b7;
        border-color: #059669;
    }

    .status-badge.denied {
        background: #991b1b;
        color: #fca5a5;
        border-color: #dc2626;
    }

    /* Request Details Column */
    .request-details {
        color: #e2e8f0;
    }

    .request-details strong {
        color: #f3f4f6;
    }

    /* Admin Notes */
    .admin-notes {
        color: #9ca3af;
    }

    .admin-notes.empty {
        color: #6b7280;
    }

    /* Empty State */
    .cpm-table tbody tr td[colspan] {
        color: #9ca3af;
    }
}

/* ========================================================================
   FINAL DARK MODE OVERRIDES - ABSOLUTE HIGHEST PRIORITY
   Applied last to ensure maximum cascade priority
   ======================================================================== */
@media (prefers-color-scheme: dark) {
    /* FORCE WHITE TEXT ON ALL TABLE LINKS AND TEXT - FINAL OVERRIDE */
    body #cpm-portal-container #committee-review-wrap .wp-list-table tbody tr td a[href],
    body #cpm-portal-container #committee-review-wrap .wp-list-table tbody tr td a,
    body #cpm-portal-container #committee-review-wrap .wp-list-table tbody tr td,
    body #cpm-portal-container #committee-review-wrap .wp-list-table tbody tr td span,
    body #cpm-portal-container .wp-list-table tbody tr td a[href],
    body #cpm-portal-container .wp-list-table tbody tr td a,
    body #cpm-portal-container .wp-list-table tbody tr td,
    body #cpm-portal-container .wp-list-table tbody tr td span,
    body.logged-in #committee-review-wrap .wp-list-table a[href],
    body.logged-in #committee-review-wrap .wp-list-table a,
    body.logged-in #committee-review-wrap .wp-list-table td,
    body.logged-in #committee-review-wrap .wp-list-table td span,
    body.logged-in .wp-list-table tbody tr td a[href],
    body.logged-in .wp-list-table tbody tr td a,
    body.logged-in .wp-list-table tbody tr td,
    body.logged-in .wp-list-table tbody tr td span {
        color: #ffffff !important;
    }

    /* FORCE WHITE ON HOVER TOO */
    body #cpm-portal-container #committee-review-wrap .wp-list-table tbody tr:not(:hover) td a[href],
    body #cpm-portal-container #committee-review-wrap .wp-list-table tbody tr:not(:hover) td a,
    body #cpm-portal-container .wp-list-table tbody tr:not(:hover) td a[href],
    body #cpm-portal-container .wp-list-table tbody tr:not(:hover) td a,
    body.logged-in #committee-review-wrap .wp-list-table tbody tr:not(:hover) td a[href],
    body.logged-in #committee-review-wrap .wp-list-table tbody tr:not(:hover) td a,
    body.logged-in .wp-list-table tbody tr:not(:hover) td a[href],
    body.logged-in .wp-list-table tbody tr:not(:hover) td a {
        color: #ffffff !important;
        text-decoration: none !important;
    }

    /* BLACK TEXT ON HOVER */
    body #cpm-portal-container #committee-review-wrap .wp-list-table tbody tr:hover td,
    body #cpm-portal-container #committee-review-wrap .wp-list-table tbody tr:hover td a,
    body #cpm-portal-container #committee-review-wrap .wp-list-table tbody tr:hover td span,
    body #cpm-portal-container .wp-list-table tbody tr:hover td,
    body #cpm-portal-container .wp-list-table tbody tr:hover td a,
    body #cpm-portal-container .wp-list-table tbody tr:hover td span,
    body.logged-in #committee-review-wrap .wp-list-table tbody tr:hover td,
    body.logged-in #committee-review-wrap .wp-list-table tbody tr:hover td a,
    body.logged-in #committee-review-wrap .wp-list-table tbody tr:hover td span,
    body.logged-in .wp-list-table tbody tr:hover td,
    body.logged-in .wp-list-table tbody tr:hover td a,
    body.logged-in .wp-list-table tbody tr:hover td span {
        color: #000000 !important;
        background: #e5e7eb !important;
    }

    /* ====================================================================
       COMMITTEE REVIEW - DARK MODE OVERRIDES
       Override the light mode colors for committee table elements
       ==================================================================== */

    /* Citation numbers - white instead of blue */
    #committee-content .cpm-citation-number,
    .cpm-data-table .cpm-citation-number {
        color: #ffffff !important;
    }

    /* License plates - white instead of dark gray */
    #committee-content .cpm-license-plate,
    .cpm-data-table .cpm-license-plate {
        color: #ffffff !important;
    }

    /* Addresses - white instead of medium gray */
    #committee-content .cpm-address,
    .cpm-data-table .cpm-address {
        color: #ffffff !important;
    }

    /* Speed - keep red but brighter for dark mode */
    #committee-content .cpm-speed,
    .cpm-data-table .cpm-speed {
        color: #ef4444 !important; /* Brighter red for dark mode */
    }

    /* Table hover - ensure elements stay visible */
    #committee-content .cpm-data-table tbody tr:hover .cpm-citation-number,
    #committee-content .cpm-data-table tbody tr:hover .cpm-license-plate,
    #committee-content .cpm-data-table tbody tr:hover .cpm-address,
    #committee-content .cpm-data-table tbody tr:hover .cpm-speed {
        color: #000000 !important; /* Black on light hover background */
    }
}
