/* Mietverwaltung - Stylesheet */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
}

body {
    font-size: 14px;
    line-height: 1.5;
}

/* Kompaktere Buttons */
.btn {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
}

/* Button Icons sichtbar machen */
.btn i {
    color: white;
    font-size: 1rem;
}

.btn-primary i,
.btn-success i,
.btn-danger i,
.btn-warning i,
.btn-info i {
    color: white !important;
}

.btn-secondary i {
    color: white !important;
}

.btn-info i {
    color: white !important;
}

.btn-outline-primary i,
.btn-outline-secondary i {
    color: inherit;
}

.form-control, .form-select {
    font-size: 0.95rem;
    padding: 0.4rem;
}

/* Excel-ähnliche Tabellen */
.excel-table {
    font-size: 0.85rem;
    border-collapse: collapse;
}

.excel-table th {
    background-color: #e9ecef;
    font-weight: 600;
    padding: 0.4rem;
    border: 1px solid #dee2e6;
}

.excel-table td {
    padding: 0.3rem 0.4rem;
    border: 1px solid #dee2e6;
    vertical-align: middle;
}

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

.excel-table tfoot th {
    background-color: #e9ecef;
    font-weight: 700;
}

/* Inputs in Excel-Tabellen */
.excel-table input.form-control {
    padding: 0.25rem 0.4rem;
    font-size: 0.85rem;
    border: 1px solid #ced4da;
}

.excel-table input.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.1rem rgba(13, 110, 253, 0.25);
}

/* Bezahlte Zeilen leicht grün */
.table-success-light {
    background-color: #d1e7dd !important;
}

.table-success-light:hover {
    background-color: #c3e0d1 !important;
}

.card {
    margin-bottom: 1.5rem;
}

.card-header {
    font-size: 1rem;
    font-weight: 600;
    background-color: #f8f9fa;
    padding: 0.5rem 0.75rem;
}

/* Tabellen */
.table {
    font-size: 0.9rem;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
    padding: 0.4rem;
}

.table td {
    padding: 0.4rem;
}

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

/* Kompakte Badges */
.badge {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 600;
}

.nav-link {
    font-size: 1.1rem;
}

/* Dashboard-Karten */
.dashboard-card {
    border-left: 4px solid var(--primary-color);
}

.dashboard-card.success {
    border-left-color: var(--success-color);
}

.dashboard-card.warning {
    border-left-color: var(--warning-color);
}

.dashboard-card.danger {
    border-left-color: var(--danger-color);
}

.dashboard-number {
    font-size: 2.5rem;
    font-weight: 700;
}

/* Buttons mit größeren Icons */
.btn i {
    font-size: 1.2rem;
}

/* Alerts kompakter */
.alert {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
}

/* Überschriften kleiner */
h1 {
    font-size: 1.75rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

/* Eingabefelder mit besserem Fokus */
.form-control:focus, .form-select:focus {
    border-width: 2px;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

/* Labels kompakter */
.form-label {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

/* Kompakte Breadcrumbs */
.breadcrumb {
    font-size: 0.85rem;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
}

/* Links in Tabellen */
.excel-table a {
    text-decoration: none;
    color: #0d6efd;
}

.excel-table a:hover {
    text-decoration: underline;
}

/* Responsive Verbesserungen */
@media (max-width: 768px) {
    .table {
        font-size: 0.8rem;
    }
    
    .btn {
        font-size: 0.85rem;
        padding: 0.3rem 0.6rem;
    }
}

/* Druck-Optimierung */
@media print {
    .navbar, .btn, .no-print {
        display: none;
    }
}

