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

body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: #f5f5f5;
min-height: 100vh;
margin: 0;
padding: 0;
}

.container {
max-width: none;
margin: 0;
background: white;
display: flex;
flex-direction: column;
}

.header {
background: #2c3e50;
color: white;
padding: 30px;
text-align: center;
}

.header h1 {
font-size: 2.5rem;
margin-bottom: 10px;
font-weight: 700;
}

.header p {
font-size: 1.1rem;
opacity: 0.9;
}

.filters-section {
padding: 30px;
background: #f8f9fa;
border-bottom: 1px solid #e9ecef;
}

.filters-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
margin-bottom: 20px;
}

.filter-group {
position: relative;
}

.filter-label {
display: block;
font-weight: 600;
color: #2c3e50;
margin-bottom: 8px;
font-size: 0.95rem;
}

.filter-input {
width: 100%;
padding: 12px 16px;
border: 2px solid #e9ecef;
font-size: 1rem;
transition: all 0.3s ease;
background: white;
}

.filter-input:focus {
outline: none;
border-color: #3498db;
box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.dropdown {
position: relative;
}

.dropdown-toggle {
width: 100%;
padding: 12px 16px;
border: 2px solid #e9ecef;
background: white;
cursor: pointer;
display: flex;
justify-content: space-between;
align-items: center;
font-size: 1rem;
transition: all 0.3s ease;
}

.dropdown-toggle:hover,
.dropdown-toggle.active {
border-color: #3498db;
}

.dropdown-arrow {
transition: transform 0.3s ease;
}

.dropdown-toggle.active .dropdown-arrow {
transform: rotate(180deg);
}

.dropdown-menu {
position: absolute;
top: 100%;
left: 0;
right: 0;
background: white;
border: 2px solid #3498db;
border-top: none;
max-height: 300px;
overflow-y: auto;
z-index: 1000;
display: none;
}

.dropdown-menu.show {
display: block;
}

.dropdown-search {
padding: 12px 16px;
border: none;
border-bottom: 1px solid #e9ecef;
width: 100%;
font-size: 0.95rem;
}

.dropdown-search:focus {
outline: none;
}

.dropdown-item {
padding: 10px 16px;
cursor: pointer;
border-bottom: 1px solid #f8f9fa;
transition: background-color 0.2s ease;
}

.dropdown-item:hover {
background-color: #f8f9fa;
}

.dropdown-item.selected {
background-color: #3498db;
color: white;
}

.controls {
display: flex;
gap: 15px;
flex-wrap: wrap;
}

.btn {
padding: 12px 24px;
border: none;
cursor: pointer;
font-weight: 600;
transition: all 0.3s ease;
font-size: 0.95rem;
}

.btn-primary {
background: linear-gradient(135deg, #3498db, #2980b9);
color: white;
}

.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
background: #95a5a6;
color: white;
}

.btn-secondary:hover {
background: #7f8c8d;
transform: translateY(-2px);
}

.table-container {
padding: 30px;
overflow-x: auto;
flex: 1;
}

.table {
width: 100%;
border-collapse: collapse;
font-size: 0.95rem;
}

.table th {
background: linear-gradient(135deg, #34495e, #2c3e50);
color: white;
padding: 16px 12px;
text-align: left;
font-weight: 600;
position: sticky;
top: 0;
z-index: 10;
}

.table td {
padding: 12px;
border-bottom: 1px solid #e9ecef;
transition: background-color 0.2s ease;
}

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

.row-level-1 {
background-color: #ecf0f1;
font-weight: 700;
color: #2c3e50;
}

.row-level-2 {
background-color: #f7f9fc;
font-weight: 600;
color: #34495e;
}

.row-level-3 {
background-color: #fafbfc;
font-weight: 500;
color: #5d6d7e;
}

.row-level-4 {
background-color: white;
color: #6c757d;
}

.expand-btn {
background: none;
border: none;
cursor: pointer;
padding: 4px 8px;
margin-right: 8px;
transition: all 0.2s ease;
color: #3498db;
font-weight: bold;
}

.expand-btn:hover {
background-color: #3498db;
color: white;
}

.expand-btn.expanded {
color: #e74c3c;
}

.hidden-row {
display: none;
}

.stats {
background: #f8f9fa;
padding: 15px 30px;
border-top: 1px solid #e9ecef;
display: flex;
justify-content: space-between;
align-items: center;
font-size: 0.9rem;
color: #6c757d;
}

.indent-1 {
padding-left: 20px;
}

.indent-2 {
padding-left: 40px;
}

.indent-3 {
padding-left: 60px;
}

@media (max-width: 768px) {
.header h1 {
    font-size: 2rem;
}

.filters-grid {
    grid-template-columns: 1fr;
}

.controls {
    justify-content: center;
}

.table-container {
    padding: 15px;
}

.table {
    font-size: 0.85rem;
}

.table th,
.table td {
    padding: 8px;
}
}