body, html { 
    height: 100%; 
    margin: 0; 
    background: #f4f6f9; 
}

.hidden { 
    display: none !important; 
}

#loginOverlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(255, 255, 255, 0.4); 
    backdrop-filter: blur(15px); 
    z-index: 9999; 
    display: none; 
    justify-content: center; 
    align-items: center; 
}

#appWrapper { 
    transition: filter 0.3s; 
}

.blurred { 
    filter: blur(15px); 
    pointer-events: none; 
    user-select: none; 
}

.task-row { 
    transition: background-color 0.2s; 
    border-left: 4px solid transparent; 
}

.task-row:hover { 
    background-color: #f8f9fa; 
}

.urgent-task { 
    border-left: 4px solid #dc3545 !important; 
    animation: pulse-red 2s infinite; 
}

@keyframes pulse-red { 
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4); } 
    70% { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); } 
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); } 
}

.log-entry { 
    font-size: 0.8rem; 
    border-left: 3px solid #dee2e6; 
    padding-left: 10px; 
    margin-bottom: 5px; 
    position: relative; 
    white-space: pre-wrap; 
}

.log-status { 
    color: #6c757d; 
    font-style: italic; 
}

.log-comment { 
    font-weight: 500; 
}

.delete-log { 
    position: absolute; 
    right: 0; 
    top: 0; 
    cursor: pointer; 
    color: #dc3545; 
    opacity: 0.3; 
}

.delete-log:hover { 
    opacity: 1; 
}

/* Druck-Layout (Ausblenden von Menüs beim Drucken von Zählbögen) */
@media print {
    @page { margin: 1cm; }
    #loginOverlay, nav, #appTabs, .nav-pills, #view-dashboard, #view-stats, #view-import, #view-setup, #view-tasks, .btn, .print-hide { display: none !important; }
    #appWrapper, #view-inventory { display: block !important; filter: none !important; }
    #volumeAuditTable, #volumeAuditTable h6, .card:has(#volumeAuditTable) { display: none !important; }
    .container { max-width: 100% !important; padding: 0 !important; width: 100% !important; }
    .col-md-8, .col-md-4, .col-md-6 { width: 100% !important; flex: 0 0 100% !important; max-width: 100% !important; padding: 0 !important; }
    .card { border: none !important; box-shadow: none !important; margin-bottom: 5px !important; padding: 0 !important; page-break-inside: avoid; }
    .card-body { padding: 0 !important; }
    .table-responsive { max-height: none !important; overflow: visible !important; margin-bottom: 0 !important; }
    .table { margin-bottom: 10px !important; }
    .table > :not(caption) > * > * { padding: 0.1rem 0.2rem !important; font-size: 0.75rem !important; line-height: 1.1 !important; }
    td, th, span, div, input { font-size: 0.75rem !important; }
    input[type="number"] { border: none !important; border-bottom: 1px solid #000 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; color: #000 !important; width: 50px !important; height: 16px !important; font-weight: bold; text-align: center; padding: 0 !important; }
    .shop-qty-input { border: none !important; }
    .input-group-text { display: none !important; }
    #inventoryAuditTable th:nth-child(5), #inventoryAuditTable td:nth-child(5) { display: none !important; }
    #nonTrackableTable th:nth-child(3), #nonTrackableTable td:nth-child(3) { display: none !important; }
    #invModeTitle, #nonTrackableTitle, #shoppingDraftCard h6 { font-size: 1rem !important; color: #000 !important; margin-bottom: 5px !important; font-weight: bold !important;}
}