/**
 * Belegmanagement - Custom Styles
 * GLAESS Software & Automation GmbH
 */

/* ============================================================
   ALLGEMEIN
   ============================================================ */

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* ============================================================
   NAVBAR
   ============================================================ */

.navbar-brand {
    font-weight: 600;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
}

/* ============================================================
   CARDS
   ============================================================ */

.card {
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    font-weight: 600;
}

/* ============================================================
   TABELLEN
   ============================================================ */

.table th {
    font-weight: 600;
    white-space: nowrap;
}

.table th a {
    color: inherit;
}

.table th a:hover {
    color: var(--bs-primary);
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* ============================================================
   FORMULARE
   ============================================================ */

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

.form-control:focus,
.form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

/* ============================================================
   LOGIN-SEITE
   ============================================================ */

.auth-page .card {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.letter-spacing-3 {
    letter-spacing: 0.3em;
}

/* ============================================================
   DASHBOARD KACHELN
   ============================================================ */

.card.border-danger,
.card.border-warning,
.card.border-primary,
.card.border-success {
    border-width: 2px;
}

/* ============================================================
   BADGES
   ============================================================ */

.badge {
    font-weight: 500;
}

/* ============================================================
   DROPDOWN
   ============================================================ */

.dropdown-menu {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    font-size: 0.9rem;
}

.dropdown-item i {
    width: 1.25rem;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
    margin-top: auto;
}

/* ============================================================
   ALERTS
   ============================================================ */

.alert {
    border-radius: 0.5rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
    font-weight: 500;
}

.btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
}

/* ============================================================
   BELEGLISTE
   ============================================================ */

.line-row td {
    padding: 0.25rem;
}

.line-row .form-control,
.line-row .form-select {
    font-size: 0.875rem;
}

/* ============================================================
   PAGINATION
   ============================================================ */

.pagination .page-link {
    font-weight: 500;
}

/* ============================================================
   WIEDERVORLAGE-FARBEN
   ============================================================ */

.wiedervorlage-ueberfaellig {
    color: #dc3545;
    font-weight: 600;
}

.wiedervorlage-warnung {
    color: #fd7e14;
    font-weight: 500;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .btn-group-sm .btn {
        padding: 0.125rem 0.25rem;
    }
}

/* ============================================================
   PRINT
   ============================================================ */

@media print {
    .navbar,
    .footer,
    .btn,
    .pagination {
        display: none !important;
    }
    
    .card {
        border: 1px solid #000;
        box-shadow: none;
    }
}
