* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    font-size: 12px;
}

.reports-container {
    max-width: 100%;
    margin: 0 auto;
    background: white;
}

/* Tabs */
.tabs {
    display: flex;
    background-color: #e8e8e8;
    border-bottom: 2px solid #ccc;
}

.tab-button {
    padding: 12px 24px;
    background-color: #e8e8e8;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    border-right: 1px solid #ccc;
    transition: background-color 0.2s;
}

.tab-button:hover {
    background-color: #d0d0d0;
}

.tab-button.active {
    background-color: white;
    border-bottom: 2px solid white;
    margin-bottom: -2px;
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 20px;
}

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

/* Main Reports Layout */
.reports-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.reports-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.left-column {
    border-right: 1px solid #ddd;
    padding-right: 20px;
}

/* Report Sections */
.report-section {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
}

.report-section h3 {
    font-size: 14px;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 5px;
}

/* Filter Controls */
.filter-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.filter-row label {
    min-width: 140px;
    font-size: 12px;
    color: #555;
}

.filter-row select,
.filter-row input[type="text"] {
    flex: 1;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 12px;
}

.filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.filter-grid .filter-row {
    margin-bottom: 0;
}

.filter-grid .filter-row label {
    min-width: 80px;
}

/* Date Range */
.date-range-inline {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 8px;
}

.date-range-inline label {
    font-size: 12px;
    color: #555;
}

.date-range-inline input[type="date"] {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 12px;
}

.date-range-inline span {
    font-size: 12px;
    color: #777;
}

/* Partial Name Field */
.partial-name-field {
    margin: 15px 0;
}

.partial-name-field label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    color: #555;
}

.partial-name-field input {
    width: 100%;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 12px;
}

/* Checklist */
.report-types-checklist {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 15px 0;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 10px;
    background-color: white;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.checklist-item input[type="checkbox"] {
    cursor: pointer;
}

.checklist-item label {
    font-size: 11px;
    color: #555;
    cursor: pointer;
}

/* Checkbox Groups */
.checkbox-group {
    display: flex;
    align-items: center;
    margin: 10px 0;
    gap: 5px;
}

.checkbox-group input[type="checkbox"] {
    cursor: pointer;
}

.checkbox-group label {
    font-size: 12px;
    color: #555;
    cursor: pointer;
}

.checkbox-group-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 10px 0;
}

.checkbox-group-columns > div {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Radio Groups */
.radio-group {
    display: flex;
    gap: 15px;
    margin: 10px 0;
}

.radio-group input[type="radio"] {
    cursor: pointer;
}

.radio-group label {
    font-size: 12px;
    color: #555;
    cursor: pointer;
}

/* Inline Select */
.inline-select {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}

.inline-select label {
    font-size: 12px;
    color: #555;
    white-space: nowrap;
}

.inline-select select {
    flex: 1;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 12px;
}

/* Inline Field */
.inline-field {
    margin-bottom: 10px;
}

.inline-field label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    color: #555;
}

.inline-field input {
    width: 100%;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 12px;
}

/* Actions */
.actions {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

.action-link {
    background: none;
    border: none;
    color: #2196F3;
    cursor: pointer;
    font-size: 12px;
    text-decoration: underline;
}

.action-link:hover {
    color: #1976D2;
}

/* Generate Button */
.generate-btn {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    margin-top: 10px;
    transition: background-color 0.2s;
}

.generate-btn:hover {
    background-color: #45a049;
}

.generate-btn:active {
    background-color: #3d8b40;
}

/* Note Text */
.note {
    margin-top: 10px;
    font-size: 11px;
    color: #888;
    font-style: italic;
}

/* Schedule Options */
.schedule-options {
    margin: 10px 0;
}

.date-input {
    margin: 10px 0;
}

.date-input input[type="date"] {
    width: 100%;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 12px;
}

/* Single Column Layout */
.single-column-layout {
    max-width: 800px;
    margin: 0 auto;
}

/* Report Results */
.report-results {
    margin-top: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.report-results h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
}

/* Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 12px;
}

.data-table th,
.data-table td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
}

.data-table th {
    background-color: #4CAF50;
    color: white;
    font-weight: bold;
}

.data-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.data-table tbody tr:hover {
    background-color: #f0f0f0;
}

.data-table tfoot {
    background-color: #e8e8e8;
    font-weight: bold;
}

.data-table tfoot td {
    border-top: 2px solid #333;
}

/* Analytics Layout */
.analytics-layout {
    max-width: 1400px;
    margin: 0 auto;
}

.analytics-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.analytics-card {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    transition: box-shadow 0.2s;
}

.analytics-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.analytics-card h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #2196F3;
    padding-bottom: 8px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .reports-layout {
        grid-template-columns: 1fr;
    }
    
    .left-column {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid #ddd;
        padding-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .filter-grid {
        grid-template-columns: 1fr;
    }
    
    .report-types-checklist {
        grid-template-columns: 1fr;
    }
    
    .checkbox-group-columns {
        grid-template-columns: 1fr;
    }
    
    .analytics-cards {
        grid-template-columns: 1fr;
    }
    
    .date-range-inline {
        flex-direction: column;
        align-items: flex-start;
    }
}
