/* Globale Stile */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 95%;
    max-width: 1400px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header {
    background-color: #4285f4; /* Google Blue */
    color: white;
    padding: 15px 0;
    text-align: center;
    margin-bottom: 20px;
    border-radius: 8px 8px 0 0;
}

header h1 {
    margin: 0;
    font-size: 24px;
}

/* Zusammenfassung und Badges */
.summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.badge {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    background-color: #e0e0e0;
}

.badge.ok {
    background-color: #e6f4ea; /* Grün */
    color: #1e8e3e;
}

.badge.running {
    background-color: #e1f5fe; /* Hellblau */
    color: #01579b;
}

.badge.bad {
    background-color: #fce8e6; /* Rot */
    color: #d93025;
}

.badge.small {
    font-weight: normal;
    font-size: 12px;
    color: #777;
}

/* Tabellen-Stil */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

thead th {
    background-color: #f0f0f0;
    color: #555;
    font-weight: 600;
    padding: 10px;
    text-align: left;
    border-bottom: 2px solid #ccc;
    cursor: default; /* Kann für JS-Sortierung entfernt werden */
}

tbody td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
    font-size: 14px;
}

tbody tr:hover td {
    background-color: #f9f9f9;
}

/* Zeilen-Hintergründe */
tr.ok td {
    background-color: inherit;
}
tr.warn td {
    background-color: #fffaf0; /* leicht gelb */
}
tr.bad td {
    background-color: #fff1f1; /* leicht rot */
}
tr.running td {
    background-color: #f7f9fc; /* leicht blau/grau */
}

/* Status-Pills */
td.status {
    font-weight: bold;
    text-align: center;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

/* OK */
tr.ok td.status {
    background: #e6f4ea;
    color: #1e8e3e;
}
tr.ok td.status::before {
    content: "✔ ";
    font-weight: 700;
}

/* Warning */
tr.warn td.status {
    background: #fdf6e3;
    color: #933d02;
}
tr.warn td.status::before {
    content: "⚠️ ";
    font-weight: 700;
}

/* Fehler */
tr.bad td.status {
    background: #fce8e6;
    color: #d93025;
}
tr.bad td.status::before {
    content: "❌ ";
    font-weight: 700;
}

/* NEU: Status Running / Working / Queued */
tr.running td.status {
    background: #e1f5fe; /* Hellblau */
    color: #01579b; /* Dunkelblau */
}
tr.running td.status::before {
    content: "⚙️ "; /* KORRIGIERT: Das Emoji ist nun in Anführungszeichen! */
    font-weight: 700;
}

/* Altersanzeige */
.age {
    font-family: monospace;
}

/* Neue Klasse fuer die Anzeige des Max. Alters in index.php */
.age-limit {
    display: block; /* Neue Zeile in der Tabelle */
    font-size: 10px;
    color: #933d02; /* Etwas dunkler als die Warnfarbe */
    font-weight: 500;
}

/* Neue Klasse fuer die Anzeige des Max. Alters in mail_report.php (inline) */
.age-limit-mail {
    font-size: 10px;
    color: #933d02;
    font-weight: 500;
    margin-left: 5px;
}

.small {
    font-size: 11px;
    color: #777;
}

/* Suchfeld */
.search-box {
    margin-bottom: 20px;
}
#jobFilter {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
    box-sizing: border-box; 
}
#jobFilter:focus {
    border-color: #4285f4;
    outline: none;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
}