.checks-overview {
    margin: 20px 0;
}

.checks-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    
    border: 1px solid var(--gray);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.stat-card.overdue {
    border-left: 4px solid #dc3545;
}

.stat-card.upcoming {
    border-left: 4px solid #ffc107;
}

.stat-card.passed {
    border-left: 4px solid #28a745;
}

.stat-card.total {
    border-left: 4px solid #007bff;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.stat-card.overdue .stat-number {
    color: #dc3545;
}

.stat-card.upcoming .stat-number {
    color: #ffc107;
}

.stat-card.passed .stat-number {
    color: #28a745;
}

.stat-card.total .stat-number {
    color: #007bff;
}

.stat-label {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
}

/* Prüflisten Styling */
.checks-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.checks-section {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
}

.checks-section h3 {
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e1e5e9;
}

.checks-section.overdue h3 {
    color: #dc3545;
    border-bottom-color: #dc3545;
}

.checks-section.upcoming h3 {
    color: #ffc107;
    border-bottom-color: #ffc107;
}

.checks-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.checks-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checks-list li:last-child {
    border-bottom: none;
}

.check-item-info {
    flex: 1;
}

.check-item-name {
    font-weight: 600;
    color: #495057;
    display: block;
    margin-bottom: 4px;
}

.check-item-details {
    font-size: 0.8rem;
    color: #6c757d;
}

.check-date-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

.check-date-badge.overdue {
    background: #f8d7da;
    color: #721c24;
}

.check-date-badge.upcoming {
    background: #fff3cd;
    color: #856404;
}

/* Formular-Styling für Prüfungen */
.check-form .tl_formbody_edit {
    max-width: none;
}

.checklist-widget {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
}

.checklist-widget .widget-label {
    font-weight: 600;
    margin-bottom: 15px;
    color: #495057;
}

.checklist-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
}

.checklist-item {
    display: flex;
    align-items: center;
    padding: 8px;
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
}

.checklist-item input[type="checkbox"] {
    margin-right: 8px;
}

.checklist-item label {
    margin: 0;
    cursor: pointer;
}

/* PDF-Button Styling */
.pdf-button {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: #dc3545;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.875rem;
    transition: background 0.2s;
}

.pdf-button:hover {
    background: #c82333;
    color: white;
}

.pdf-button.disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.pdf-button img {
    margin-right: 5px;
    width: 16px;
    height: 16px;
}

/* Status-Badges */
.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge.bestanden {
    background: #d4edda;
    color: #155724;
}

.status-badge.mangelhaft {
    background: #fff3cd;
    color: #856404;
}

.status-badge.defekt {
    background: #f8d7da;
    color: #721c24;
}

/* Responsive Design */
@media (max-width: 768px) {
    .checks-grid {
        grid-template-columns: 1fr;
    }

    .checks-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .checklist-items {
        grid-template-columns: 1fr;
    }
}

/* Backend Module Icons */
.mod_checks_overview {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjxwYXRoIGQ9Ik05IDEyaDYiLz48cGF0aCBkPSJNOSAxNmg2Ii8+PHBhdGggZD0iTTkgOGg2Ii8+PHJlY3Qgd2lkdGg9IjE4IiBoZWlnaHQ9IjE4IiB4PSIzIiB5PSIzIiByeD0iMiIgcnk9IjIiLz48L3N2Zz4=');
}

.mod_checks_calendar {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjxyZWN0IHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCIgeD0iMyIgeT0iNCIgcng9IjIiIHJ5PSIyIi8+PGxpbmUgeDE9IjE2IiB4Mj0iMTYiIHkxPSIyIiB5Mj0iNiIvPjxsaW5lIHgxPSI4IiB4Mj0iOCIgeTE9IjIiIHkyPSI2Ii8+PGxpbmUgeDE9IjMiIHgyPSIyMSIgeTE9IjEwIiB5Mj0iMTAiLz48L3N2Zz4=');
}

/* Dashboard Widget specific styles */
.be_widget_checks_dashboard {
    margin: 20px 0;
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.be_widget_checks_dashboard .tl_box {
    border: none;
    margin: 0;
    padding: 20px;
}

.be_widget_checks_dashboard h3 {
    margin: 0 0 20px 0;
    padding: 0 0 10px 0;
    border-bottom: 2px solid #007bff;
    color: #495057;
}