:root {
    --sidebar-bg: #f8f9fa;
    --border-color: #dee2e6;
}

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
        Arial, sans-serif;
    background-color: #f5f5f5;
}

.sidebar {
    background-color: var(--sidebar-bg);
    min-height: calc(100vh - 56px);
    padding: 1rem 0;
}

.list-group-item {
    border-left: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.list-group-item:hover {
    background-color: #e9ecef;
}

.list-group-item.active {
    background-color: #e7f3ff;
    border-left-color: #0d6efd;
    color: #0d6efd;
}

.content-section {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.table {
    font-size: 0.9rem;
}

.table th {
    font-weight: 600;
    background-color: #f8f9fa;
    border-bottom: 2px solid var(--border-color);
}

.badge {
    font-weight: 500;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid var(--border-color);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.alert {
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

#matrice-table input {
    max-width: 80px;
    margin: 0 auto;
}

@media print {
    .modal-header,
    .modal-footer,
    .navbar,
    .sidebar {
        display: none !important;
    }

    .modal-body {
        padding: 0;
    }

    .card {
        border: 1px solid #000;
        page-break-inside: avoid;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

#proprietarioModal .alert {
    margin-bottom: 1rem;
}

#proprietarioModal .alert ul {
    padding-left: 1.5rem;
}