Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/**
 * EveryCRT Advanced Search Styles
 * Light mode is default; dark mode applied via skin-theme-clientpref-night class
 */

/* Utility cards (above search) */
.crt-card-subtitle {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Container */
.crt-search-wrapper {
    display: flex;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px;
}

/* Mobile filter toggle */
.crt-mobile-filter-toggle {
    display: none;
    width: 100%;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 16px;
}

.crt-mobile-filter-toggle:hover {
    background: #f0f0f0;
}

.crt-mobile-filter-toggle .crt-filter-icon {
    margin-right: 8px;
}

/* Filters Sidebar */
.crt-search-filters {
    width: 280px;
    flex-shrink: 0;
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 12px;
    position: sticky;
    top: 80px;
    align-self: flex-start;
    max-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
}

.crt-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #ddd;
    flex-shrink: 0;
}

.crt-filters-header h2 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.crt-mobile-close-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.crt-mobile-close-btn:hover {
    color: #333;
}

.crt-reset-btn {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid #aaa;
    border-radius: 6px;
    color: #666;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.crt-reset-btn:hover {
    background: #e8e8e8;
    color: #333;
    border-color: #888;
}

/* Scrollable filters body */
.crt-filters-body {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: visible;
    padding: 12px;
    min-height: 0;
}

/* Filter sections */
.crt-filter-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: visible;
}

.crt-filter-section:last-child {
    margin-bottom: 0;
}

.crt-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    cursor: pointer;
    background: #6B5B95;
    border-radius: 8px 8px 0 0;
    transition: background 0.2s;
}

.crt-filter-section.collapsed .crt-section-header {
    border-radius: 8px;
}

.crt-section-header:hover {
    background: #5a4a84;
}

.crt-section-title {
    font-weight: 600;
    font-size: 13px;
    color: #fff;
}

.crt-section-toggle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 10px;
    transition: transform 0.2s;
}

.crt-filter-section.collapsed .crt-section-toggle {
    transform: rotate(-90deg);
}

.crt-section-content {
    padding: 12px;
    background: #fff;
    border-radius: 0 0 8px 8px;
}

.crt-filter-section.collapsed .crt-section-content {
    display: none;
}

/* Filter items */
.crt-filter-item {
    margin-bottom: 12px;
}

.crt-filter-item:last-child {
    margin-bottom: 0;
}

.crt-filter-item label {
    display: block;
    font-size: 12px;
    color: #555;
    margin-bottom: 4px;
}

.crt-filter-select,
.crt-filter-number {
    width: 100%;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    color: #333;
    font-size: 13px;
    box-sizing: border-box;
}

.crt-filter-select:focus,
.crt-filter-number:focus {
    border-color: #6B5B95;
    outline: none;
}

.crt-filter-number::placeholder {
    color: #999;
}

/* Checkbox styles */
.crt-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
}

.crt-checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.crt-checkbox-label {
    font-size: 13px;
    color: #333;
    cursor: pointer;
}

/* Multi-select widget */
.crt-multiselect {
    position: relative;
}

.crt-multiselect-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    min-height: 36px;
    padding: 4px 8px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: text;
    align-items: center;
}

.crt-multiselect-tag {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    background: #6B5B95;
    border-radius: 4px;
    font-size: 12px;
    color: #fff;
}

.crt-multiselect-tag-remove {
    cursor: pointer;
    opacity: 0.7;
    font-size: 14px;
    line-height: 1;
}

.crt-multiselect-tag-remove:hover {
    opacity: 1;
}

.crt-multiselect-input {
    flex: 1;
    min-width: 80px;
    border: none;
    outline: none;
    font-size: 13px;
    padding: 4px 0;
    background: transparent;
    color: #333;
}

.crt-multiselect-input::placeholder {
    color: #999;
}

.crt-multiselect-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-top: 4px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
}

.crt-multiselect.open .crt-multiselect-dropdown {
    display: block;
}

.crt-multiselect-option {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
}

.crt-multiselect-option:hover {
    background: #f0f0f0;
}

.crt-multiselect-option.selected {
    background: rgba(107, 91, 149, 0.15);
}

.crt-option-check {
    color: #6B5B95;
    font-size: 12px;
}

.crt-multiselect-empty {
    padding: 12px;
    text-align: center;
    color: #999;
    font-size: 13px;
}

/* Apply button (hidden on desktop with auto-apply) */
.crt-apply-filters {
    display: none;
    padding: 12px;
    border-top: 1px solid #ddd;
    background: #f8f8f8;
    flex-shrink: 0;
}

.crt-apply-btn {
    width: 100%;
    padding: 10px;
    background: #6B5B95;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.crt-apply-btn:hover {
    background: #5a4a84;
}

/* Results area */
.crt-search-results {
    flex: 1;
    min-width: 0;
}

.crt-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #ddd;
    flex-wrap: wrap;
    gap: 12px;
}

.crt-results-count {
    font-size: 14px;
    color: #666;
}

.crt-results-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.crt-results-sort {
    display: flex;
    align-items: center;
    gap: 8px;
}

.crt-results-sort label {
    font-size: 13px;
    color: #666;
}

.crt-results-sort select {
    padding: 6px 10px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    color: #333;
    font-size: 13px;
}

.crt-view-toggle {
    display: flex;
    gap: 4px;
}

.crt-view-btn {
    padding: 6px 10px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.crt-view-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.crt-view-btn.active {
    background: #6B5B95;
    border-color: #6B5B95;
    color: #fff;
}

/* Active filters display */
.crt-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.crt-active-filter {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 16px;
    font-size: 12px;
    color: #333;
}

.crt-af-label {
    color: #666;
}

.crt-af-remove {
    cursor: pointer;
    color: #888;
    font-size: 14px;
    line-height: 1;
}

.crt-af-remove:hover {
    color: #c44;
}

.crt-clear-all-filters {
    padding: 4px 12px;
    background: transparent;
    border: 1px solid #aaa;
    border-radius: 16px;
    color: #666;
    font-size: 12px;
    cursor: pointer;
}

.crt-clear-all-filters:hover {
    background: #e8e8e8;
    color: #333;
}

/* Results grid */
.crt-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.crt-results-grid.list-view {
    grid-template-columns: 1fr;
}

/* Result cards */
.crt-result-card {
    display: block;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

.crt-card-image {
    position: relative;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    background: #f5f5f5;
    overflow: hidden;
}

.crt-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.crt-no-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: #ccc;
}

.crt-card-info {
    padding: 12px;
}

.crt-card-brand {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.crt-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.crt-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.crt-card-meta span {
    padding: 2px 6px;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 11px;
    color: #666;
}

.crt-meta-type {
    background: rgba(107, 91, 149, 0.15) !important;
    color: #6B5B95 !important;
}

/* List view specific styles */
.crt-results-grid.list-view .crt-result-card {
    display: flex;
    flex-direction: row;
}

.crt-results-grid.list-view .crt-card-image {
    width: 120px;
    min-width: 120px;
    padding-bottom: 0;
    height: 90px;
}

.crt-results-grid.list-view .crt-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Pagination */
.crt-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #ddd;
    flex-wrap: wrap;
}

.crt-pagination-info {
    font-size: 13px;
    color: #666;
    margin-right: 16px;
}

.crt-page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    color: #333;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.crt-page-btn:hover {
    background: #f0f0f0;
    border-color: #aaa;
}

.crt-page-btn.active {
    background: #6B5B95;
    border-color: #6B5B95;
    color: #fff;
}

.crt-page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.crt-page-ellipsis {
    padding: 0 4px;
    color: #999;
}

/* Loading state */
.crt-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px;
    color: #666;
}

.crt-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #ddd;
    border-top-color: #6B5B95;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

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

/* No results state */
.crt-no-results {
    text-align: center;
    padding: 48px;
    color: #666;
}

.crt-no-results-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.crt-no-results-text {
    font-size: 18px;
    margin-bottom: 8px;
    color: #555;
}

.crt-no-results-hint {
    font-size: 14px;
}

.crt-no-results-hint a {
    color: #6B5B95;
}

/* Error state */
.crt-error {
    text-align: center;
    padding: 48px;
    color: #c44;
}

.crt-error-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

/* Mobile responsive */
@media (max-width: 900px) {
    .crt-search-wrapper {
        flex-direction: column;
    }

    .crt-card-subtitle {
        display: none;
    }

    .crt-mobile-filter-toggle {
        display: block;
    }
    
    .crt-mobile-close-btn {
        display: block;
    }
    
    .crt-search-filters {
        display: none;
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100vh;
        max-height: none;
        border-radius: 0;
        z-index: 10000;
        background: #f8f8f8;
        flex-direction: column;
    }
    
    .crt-search-filters.mobile-open {
        display: flex;
    }
    
    .crt-filters-body {
        flex: 1 1 0;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .crt-apply-filters {
        display: block;
    }
    
    .crt-results-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    
    .crt-results-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .crt-results-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .crt-card-info {
        padding: 8px;
    }
    
    .crt-card-title {
        font-size: 13px;
    }
}

/* Notifications */
.crt-notifications {
    position: fixed;
    top: 60px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
}

.crt-notification {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    margin-bottom: 10px;
    border-radius: 8px;
    background: #1e1e22;
    border: 1px solid #3a3a3e;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.crt-notification-warning {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #292524 0%, #1c1917 100%);
}

.crt-notification-error {
    border-color: #ef4444;
    background: linear-gradient(135deg, #292524 0%, #1c1917 100%);
}

.crt-notification-info {
    border-color: #3b82f6;
}

.crt-notification-icon {
    flex-shrink: 0;
    font-size: 16px;
}

.crt-notification-message {
    flex: 1;
    font-size: 14px;
    color: #e5e5e5;
    line-height: 1.4;
}

.crt-notification-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #888;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.crt-notification-close:hover {
    color: #fff;
}





/* ============================================
   DARK MODE OVERRIDES
   Applied when .skin-theme-clientpref-night is on html
   ============================================ */

html.skin-theme-clientpref-night .crt-mobile-filter-toggle {
    background: #2a2a2e;
    border-color: #3a3a3e;
    color: #fff;
}

html.skin-theme-clientpref-night .crt-mobile-filter-toggle:hover {
    background: #3a3a3e;
}

html.skin-theme-clientpref-night .crt-mobile-close-btn {
    color: #aaa;
}

html.skin-theme-clientpref-night .crt-mobile-close-btn:hover {
    color: #fff;
}

html.skin-theme-clientpref-night .crt-search-filters {
    background: #1a1a1e;
    border-color: #3a3a3e;
}

html.skin-theme-clientpref-night .crt-filters-header {
    border-bottom-color: #3a3a3e;
}

html.skin-theme-clientpref-night .crt-filters-header h2 {
    color: #fff;
}

html.skin-theme-clientpref-night .crt-reset-btn {
    border-color: #666;
    color: #999;
}

html.skin-theme-clientpref-night .crt-reset-btn:hover {
    background: #333;
    color: #fff;
    border-color: #888;
}

html.skin-theme-clientpref-night .crt-filter-section {
    background: #2a2a2e;
    border-color: #3a3a3e;
}

html.skin-theme-clientpref-night .crt-section-header {
    background: #3a3a3e;
}

html.skin-theme-clientpref-night .crt-section-header:hover {
    background: #4a4a4e;
}

html.skin-theme-clientpref-night .crt-section-content {
    background: #2a2a2e;
}

html.skin-theme-clientpref-night .crt-filter-item label {
    color: #aaa;
}

html.skin-theme-clientpref-night .crt-filter-select,
html.skin-theme-clientpref-night .crt-filter-number {
    background: #1a1a1e;
    border-color: #4a4a4e;
    color: #fff;
}

html.skin-theme-clientpref-night .crt-filter-select:focus,
html.skin-theme-clientpref-night .crt-filter-number:focus {
    border-color: #6B5B95;
}

html.skin-theme-clientpref-night .crt-filter-number::placeholder {
    color: #666;
}

html.skin-theme-clientpref-night .crt-checkbox-label {
    color: #ccc;
}

html.skin-theme-clientpref-night .crt-multiselect-container {
    background: #1a1a1e;
    border-color: #4a4a4e;
}

html.skin-theme-clientpref-night .crt-multiselect-input {
    color: #fff;
}

html.skin-theme-clientpref-night .crt-multiselect-input::placeholder {
    color: #666;
}

html.skin-theme-clientpref-night .crt-multiselect-dropdown {
    background: #2a2a2e;
    border-color: #4a4a4e;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

html.skin-theme-clientpref-night .crt-multiselect-option {
    color: #fff;
}

html.skin-theme-clientpref-night .crt-multiselect-option:hover {
    background: #3a3a3e;
}

html.skin-theme-clientpref-night .crt-multiselect-option.selected {
    background: rgba(107, 91, 149, 0.3);
}

html.skin-theme-clientpref-night .crt-apply-filters {
    background: #1a1a1e;
    border-top-color: #3a3a3e;
}

html.skin-theme-clientpref-night .crt-results-header {
    border-bottom-color: #3a3a3e;
}

html.skin-theme-clientpref-night .crt-results-count {
    color: #aaa;
}

html.skin-theme-clientpref-night .crt-results-sort label {
    color: #aaa;
}

html.skin-theme-clientpref-night .crt-results-sort select {
    background: #2a2a2e;
    border-color: #4a4a4e;
    color: #fff;
}

html.skin-theme-clientpref-night .crt-view-btn {
    background: #2a2a2e;
    border-color: #4a4a4e;
    color: #aaa;
}

html.skin-theme-clientpref-night .crt-view-btn:hover {
    background: #3a3a3e;
    color: #fff;
}

html.skin-theme-clientpref-night .crt-view-btn.active {
    background: #6B5B95;
    border-color: #6B5B95;
    color: #fff;
}

html.skin-theme-clientpref-night .crt-active-filter {
    background: #2a2a2e;
    border-color: #4a4a4e;
    color: #fff;
}

html.skin-theme-clientpref-night .crt-af-label {
    color: #888;
}

html.skin-theme-clientpref-night .crt-af-remove {
    color: #888;
}

html.skin-theme-clientpref-night .crt-af-remove:hover {
    color: #f66;
}

html.skin-theme-clientpref-night .crt-clear-all-filters {
    border-color: #666;
    color: #aaa;
}

html.skin-theme-clientpref-night .crt-clear-all-filters:hover {
    background: #333;
    color: #fff;
}

html.skin-theme-clientpref-night .crt-result-card {
    background: #2a2a2e;
    border-color: #3a3a3e;
    box-shadow: none;
}

html.skin-theme-clientpref-night .crt-result-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

html.skin-theme-clientpref-night .crt-card-image {
    background: #1a1a1e;
}

html.skin-theme-clientpref-night .crt-no-image {
    color: #4a4a4e;
}

html.skin-theme-clientpref-night .crt-card-brand {
    color: #888;
}

html.skin-theme-clientpref-night .crt-card-title {
    color: #fff;
}

html.skin-theme-clientpref-night .crt-card-meta span {
    background: #3a3a3e;
    color: #aaa;
}

html.skin-theme-clientpref-night .crt-meta-type {
    background: rgba(107, 91, 149, 0.3) !important;
    color: #a99bc9 !important;
}

html.skin-theme-clientpref-night .crt-pagination {
    border-top-color: #3a3a3e;
}

html.skin-theme-clientpref-night .crt-pagination-info {
    color: #aaa;
}

html.skin-theme-clientpref-night .crt-page-btn {
    background: #2a2a2e;
    border-color: #4a4a4e;
    color: #fff;
}

html.skin-theme-clientpref-night .crt-page-btn:hover {
    background: #3a3a3e;
    border-color: #5a5a5e;
}

html.skin-theme-clientpref-night .crt-page-btn.active {
    background: #6B5B95;
    border-color: #6B5B95;
}

html.skin-theme-clientpref-night .crt-page-ellipsis {
    color: #666;
}

html.skin-theme-clientpref-night .crt-loading {
    color: #aaa;
}

html.skin-theme-clientpref-night .crt-spinner {
    border-color: #4a4a4e;
    border-top-color: #6B5B95;
}

html.skin-theme-clientpref-night .crt-no-results {
    color: #aaa;
}

html.skin-theme-clientpref-night .crt-no-results-text {
    color: #ccc;
}

html.skin-theme-clientpref-night .crt-no-results-hint a {
    color: #a99bc9;
}
MediaWiki Appliance - Powered by TurnKey Linux