/* CarDetailOverview Component Styles */

/* Wide filter card styling */
.home-div-wide {
    gap: 20px;
    width: 95%;
    max-width: 1200px;
}

.home-div-wide .form-div-wide {
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    background-color: white;
    border: solid 1px #eceee6;
}

/* Form row styling for better field alignment */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
}

.form-row .form-field {
    flex: 1;
    min-width: 0;
}

/* Button styling with Request Report color scheme */
.search-button {
    background-color: #0c83ff;
    color: white;
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(12, 131, 255, 0.3);
}

.search-button:hover {
    background-color: #0a6fd9;
    box-shadow: 0 4px 8px rgba(12, 131, 255, 0.4);
    transform: translateY(-1px);
}

.reset-button {
    background-color: #f1f5f9;
    color: #475569;
    padding: 12px 32px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reset-button:hover {
    background-color: #e2e8f0;
    border-color: #cbd5e1;
}

.select-dropdown,
.select-dropdown * {
    margin: 0;
    padding: 0;
    position: relative;
    box-sizing: border-box;
}

.select-dropdown {
    position: relative;
    background-color: #fff;
    border-radius: 4px;
    height: 36px;
}

.input-select {
    font-size: 0.8rem;
    font-weight: normal;
    max-width: 100%;
    padding: 6px 24px 6px 10px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    background-color: white;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.input-select:focus {
    border-color: #0c83ff;
    box-shadow: 0 0 0 3px rgba(12, 131, 255, 0.3);
    outline: none;
}

.mud-input > input.mud-input-root {
    padding: 0 !important;
    font-size: 0.9rem;
}

/* Form field styling */
.form-field label {
    color: #374151;
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
    font-size: 0.875rem;
}

/* Border bottom section styling */
.border-bottom {
    border-bottom: 1px solid #d3dfe1;
    padding: 20px;
    background-color: #f8f9fa;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.text-md {
    color: #0c83ff;
    font-weight: 600;
}

/* Input form styling consistency */
.input-form {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.input-form:focus {
    border-color: #0c83ff;
    box-shadow: 0 0 0 3px rgba(12, 131, 255, 0.2);
    outline: none;
}

/* Typeahead specific styling */
.typeahead-container {
    position: relative;
}

.selected-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background-color: #f3f4f6;
    border-radius: 6px;
    margin: 4px 0;
}

.selected-location {
    color: #374151;
    font-weight: 500;
}

.close-icon {
    color: #6b7280;
    cursor: pointer;
    font-size: 14px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.close-icon:hover {
    background-color: #e5e7eb;
    color: #374151;
}

.result-item {
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.result-item:hover {
    background-color: #f3f4f6;
}

.no-results {
    padding: 8px 12px;
    color: #6b7280;
    font-style: italic;
}

/* Grid header and rows color styling matching Request Report page */
.grid-header {
    background-color: #0c83ff;
    color: white;
    padding: 15px 20px;
    font-size: 1.25rem;
    font-weight: 600;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom: 1px solid #0a6fd9;
}

.caroverview-grid {
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.caroverview-grid .rz-data-grid-header,
.caroverview-grid .rz-data-grid-header .rz-header-row {
    background-color: #0c83ff;
    color: white;
}

.caroverview-grid .rz-data-grid-header .rz-cell,
.caroverview-grid .rz-data-grid-header th,
.caroverview-grid .rz-data-grid-header .rz-column-title {
    color: white;
    font-weight: 600;
    padding: 14px 16px;
    font-size: 0.9rem;
    border-bottom: 1px solid #0a6fd9;
}

.caroverview-grid .rz-data-grid-header {
    border-radius: 8px 8px 0 0;
}

.caroverview-grid .rz-data-row {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.caroverview-grid .rz-data-row:nth-of-type(even) {
    background-color: #ffffff;
}

.caroverview-grid .rz-data-row:nth-of-type(odd) {
    background-color: #f8f9fa;
}

.caroverview-grid .rz-data-row:hover {
    background-color: #e3f2fd;
}

.caroverview-grid .rz-data-row .rz-cell {
    padding: 14px 16px;
    font-size: 0.875rem;
    color: #333333;
}

.caroverview-grid .rz-data-row:last-child {
    border-bottom: none;
}

/* Column picker styling */
.rz-column-picker {
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Filter row styling */
.rz-filter-row input {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 6px 8px;
    font-size: 0.875rem;
}

.rz-filter-row input:focus {
    border-color: #0c83ff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(12, 131, 255, 0.2);
}

/* Pagination styling */
.pagination-button {
    background-color: #0c83ff;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-button:hover:not(:disabled) {
    background-color: #0a6fd9;
    transform: translateY(-1px);
}

.pagination-button:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.pagination-info {
    color: #374151;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0 12px;
}

.page-size-select {
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.875rem;
    background-color: white;
    color: #374151;
}

.page-size-select:focus {
    border-color: #0c83ff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(12, 131, 255, 0.2);
}

/* Warning message styling */
.warning-message {
    background-color: #fef3c7;
    border: 1px solid #f59e0b;
    color: #92400e;
}

/* Results count styling */
.mb-2 .text-xs {
    color: #0c83ff;
    font-weight: 500;
}

/* Please submit search message styling */
.p-4 .text-sm {
    color: #6b7280;
    font-style: italic;
}

/* Loading message styling */
.p-4 .text-sm:contains("Loading") {
    color: #0c83ff;
    font-weight: 500;
}
