﻿.main-wrapper {
/*    margin-left: 122px;*/
    margin-top: -50px;
    min-height: calc(100vh - var(--header-height));
    padding: 2rem;
}

.main-content {
    margin-top: 90px;
    padding: 2rem;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

.page-header {
    margin-bottom: 2rem;
}

    .page-header h2 {
        color: var(--primary-color);
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

.card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-sm);
    margin-top: 1rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

    .data-table thead {
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
        color: white;
    }

    .data-table th {
        padding: 1rem;
        text-align: left;
        font-weight: 600;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .data-table td {
        padding: 0.85rem 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .data-table tbody tr {
        transition: background 0.3s;
        cursor: pointer;
    }

        .data-table tbody tr:hover {
            background: #f8f9fa;
        }

        .data-table tbody tr.selected {
            background: #e3f2fd;
        }

.expand-icon {
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary-color);
    user-select: none;
}

.nested-row {
    background: #f8f9fa !important;
}

.nested-table {
    margin: 0.5rem 0;
    width: 100%;
    background: white;
    border-radius: var(--radius-sm);
}

    .nested-table th {
        background: #e9ecef;
        color: var(--text-primary);
        padding: 0.75rem;
        font-size: 0.85rem;
    }

    .nested-table td {
        padding: 0.65rem;
        font-size: 0.9rem;
    }

.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-success {
    background: var(--secondary-color);
    color: white;
}

.filter-section {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.form-group {
    margin-bottom: 0;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
}

    .form-control:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(44, 95, 124, 0.1);
    }

@media (max-width: 768px) {
    .filter-grid {
        grid-template-columns: 1fr;
    }
}
