/* 
 * Rapport-System - Custom CSS
 * Eigene Stile für das Rapport-System
 */

/* Allgemeine Stile */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.footer {
    margin-top: auto;
}

/* Verbesserte Formulare */
.form-control:focus, .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Badge Stile für Auftragsstatus */
.badge-neu {
    background-color: #6c757d;
}

.badge-zugewiesen {
    background-color: #0d6efd;
}

.badge-in_arbeit {
    background-color: #fd7e14;
}

.badge-abgeschlossen {
    background-color: #198754;
}

.badge-rechnung_erstellt {
    background-color: #6610f2;
}

/* Karten-Stile */
.card-header-primary {
    background-color: #0d6efd;
    color: white;
}

/* Tabellenstile */
.table-actions {
    white-space: nowrap;
}

/* Mobile Optimierungen */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .btn-sm-mobile {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    /* Auf kleineren Bildschirmen bestimmte Tabellenspalten ausblenden */
    .mobile-hide {
        display: none;
    }
}

/* Signature Pad Styling */
.signature-pad {
    position: relative;
    display: block;
    width: 100%;
    height: 200px;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    background-color: #fff;
}

.signature-pad canvas {
    width: 100%;
    height: 100%;
}

.signature-clear {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 100;
}

/* Custom Checkboxen für abgeschlossene Aufgaben */
.form-check-completed .form-check-input:checked ~ .form-check-label {
    text-decoration: line-through;
    opacity: 0.6;
}

/* Anpassungen für Druckansicht */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-only {
        display: block !important;
    }
    
    body {
        padding: 0;
        margin: 0;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .card {
        border: none;
    }
    
    .card-header, .card-footer {
        background-color: transparent !important;
    }
}

/* Verbesserte Buttons */
.btn-icon {
    display: inline-flex;
    align-items: center;
}

.btn-icon i {
    margin-right: 0.5rem;
}

/* ============================================
   Mega-Dropdown für Firma (zweispaltig)
   ============================================ */
.dropdown-menu.dropdown-mega {
    min-width: 420px;
    padding: 0.5rem;
}

.dropdown-mega .dropdown-mega-row {
    display: flex;
    gap: 0.25rem;
}

.dropdown-mega .dropdown-mega-col {
    flex: 1;
    min-width: 0;
}

@media (max-width: 767.98px) {
    .dropdown-menu.dropdown-mega {
        min-width: auto;
    }
    .dropdown-mega .dropdown-mega-row {
        flex-direction: column;
    }
}