/* RUESS Hub 2.79.2 - Bewerbungen → Personio. Alles unter #bewerbungenView (ID schlaegt die globale button:not(...)-Regel: Knoepfe kompakt, keine langen gruenen Balken).
   Dunkelmodus macht der globale Invert-Filter (theme-2703.css), daher nur helle Farben. */
#bewerbungenView .bw-page { display: flex; flex-direction: column; gap: 14px; position: relative; }
#bewerbungenView .seiten-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
#bewerbungenView .seiten-kopf h2 { margin: 0; }
#bewerbungenView button { width: auto; margin: 0; padding: 0 12px; min-height: 32px; border-radius: 8px; font-size: 13px; font-weight: 600; transform: none; box-shadow: none; }
#bewerbungenView button:hover { transform: none; }
#bewerbungenView .bw-btn { border: 1px solid #d7ddd0; background: #fff; color: #2f3a33; }
#bewerbungenView .bw-btn:hover { background: #f4f7f1; border-color: #c4ccbc; }
#bewerbungenView .bw-btn.primary { border-color: var(--primary, #a2bf13); background: var(--primary, #a2bf13); color: #1f2a06; }
#bewerbungenView .bw-btn.primary:hover { background: var(--primary-hover, #95b011); }
#bewerbungenView .bw-btn.klein { min-height: 26px; padding: 0 9px; font-size: 12px; }
#bewerbungenView .bw-btn.an { border-color: var(--primary, #a2bf13); background: #eef4d6; }
#bewerbungenView .bw-btn:disabled { opacity: .55; cursor: not-allowed; }
#bewerbungenView .bw-kopf-aktionen { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: -6px; }
#bewerbungenView .bw-hint { color: #667174; font-size: 12.5px; }
#bewerbungenView .bw-banner { margin: 0; padding: 8px 12px; border-radius: 8px; font-size: 13px; border: 1px solid #e4e9e2; background: #f5f7f2; color: #3a443e; }
#bewerbungenView .bw-banner.danger { background: #fde8e6; border-color: #f3c3bd; color: #a42e24; }
#bewerbungenView .bw-banner.warn { background: #fdf1dc; border-color: #f0d6a6; color: #8a5300; }
#bewerbungenView .bw-banner.muted { background: #f5f7f2; color: #5f6a6c; }
#bewerbungenView .bw-kacheln { display: flex; flex-wrap: wrap; gap: 10px; }
#bewerbungenView .bw-kachel { flex: 1 1 140px; min-width: 0; border: 1px solid #e4e9e2; border-radius: 10px; background: #fff; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
#bewerbungenView .bw-kachel small { color: #667174; font-size: 11.5px; }
#bewerbungenView .bw-kachel strong { font-size: 20px; font-variant-numeric: tabular-nums; color: #23292a; }
#bewerbungenView .bw-kachel strong.bw-ok { color: #2f7a3d; font-size: 15px; padding-top: 4px; }
#bewerbungenView .bw-kachel strong.bw-warn { color: #9a5b00; font-size: 15px; padding-top: 4px; }
#bewerbungenView .bw-kachel strong.bw-aus { color: #5f6a6c; font-size: 15px; padding-top: 4px; }
#bewerbungenView .bw-kachel.attn { border-color: #e2b45c; background: #fdf1dc; }
#bewerbungenView .bw-kachel.attn strong { color: #9a5b00; }
#bewerbungenView .bw-karte { border: 1px dashed #d7ddd0; border-radius: 10px; background: #fff; }
#bewerbungenView .bw-karte > summary { cursor: pointer; padding: 9px 12px; font-size: 13px; color: #5f6a6c; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
#bewerbungenView .bw-karte > summary b { color: #23292a; }
#bewerbungenView .bw-link { margin-left: auto; color: #5e7a08; text-decoration: underline; text-underline-offset: 2px; }
#bewerbungenView .bw-form { display: grid; gap: 12px; padding: 4px 12px 12px; max-width: 760px; }
#bewerbungenView .bw-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: #323a3b; }
#bewerbungenView .bw-form input[type="text"], #bewerbungenView .bw-form input[type="datetime-local"], #bewerbungenView .bw-form select { width: 100%; max-width: 520px; min-height: 32px; padding: 4px 8px; border: 1px solid #d7ddd0; border-radius: 6px; font: inherit; font-weight: 400; }
#bewerbungenView .bw-form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
#bewerbungenView .bw-form legend { font-size: 13px; font-weight: 600; color: #323a3b; padding: 0 0 4px; }
#bewerbungenView .bw-form .bw-radio { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
#bewerbungenView .bw-form .bw-radio input { width: 16px; height: 16px; margin: 0; }
#bewerbungenView .bw-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 400; }
#bewerbungenView .bw-form-aktionen { display: flex; justify-content: flex-end; max-width: 520px; }
#bewerbungenView .bw-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 38px; padding: 0 8px; border: 1px solid #e4e9e2; border-radius: 8px; background: #f5f7f2; }
#bewerbungenView .bw-toolbar label { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #5f6a6c; }
#bewerbungenView .bw-toolbar select { min-height: 26px; padding: 0 6px; border: 1px solid #d7ddd0; border-radius: 5px; font: inherit; }
#bewerbungenView .bw-filter { display: flex; flex-wrap: wrap; gap: 6px; }
#bewerbungenView .bw-table-wrap { overflow-x: auto; border: 1px solid #e4e9e2; border-radius: 8px; background: #fff; }
#bewerbungenView .bw-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
#bewerbungenView .bw-table th, #bewerbungenView .bw-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #e4e9e2; vertical-align: top; }
#bewerbungenView .bw-table th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #667174; background: #f5f7f2; font-weight: 600; }
#bewerbungenView .bw-table tr:last-child td { border-bottom: 0; }
#bewerbungenView .bw-table tr.bw-attn td { background: #fdf6e8; }
#bewerbungenView .bw-table .nowrap { white-space: nowrap; }
#bewerbungenView .bw-sub { display: block; color: #667174; font-size: 11.5px; }
#bewerbungenView .bw-fehler { display: block; color: #8a5300; font-size: 12.5px; }
#bewerbungenView .bw-actions { text-align: right; white-space: nowrap; }
#bewerbungenView .bw-leer { color: #667174; text-align: center; padding: 18px; }
#bewerbungenView .bw-chip { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: #eef1ee; color: #3a443e; }
#bewerbungenView .bw-chip.ok { background: #e3f1d2; color: #2f5b0b; }
#bewerbungenView .bw-chip.warn { background: #fdf1dc; color: #8a5300; }
#bewerbungenView .bw-chip.info { background: #e6eef8; color: #2b4d76; }
#bewerbungenView .bw-chip.muted { background: transparent; border: 1px solid #d7ddd0; color: #5f6a6c; font-weight: 500; }
#bewerbungenView .bw-toast { position: fixed; right: 18px; bottom: 18px; z-index: 50; max-width: min(460px, calc(100vw - 36px)); padding: 10px 14px; border-radius: 8px; background: #23292a; color: #fff; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .2s; }
#bewerbungenView .bw-toast.show { opacity: 1; }
#bewerbungenView .bw-toast.success { background: #2f5b0b; }
#bewerbungenView .bw-toast.danger { background: #a42e24; }
@media (max-width: 640px) { #bewerbungenView .bw-link { margin-left: 0; } #bewerbungenView .bw-kopf-aktionen { justify-content: flex-start; } }
/* 2.79.3: Aktionen je Mail (Nach Personio, Antworten, Erledigt, Löschen) und Mail-Angaben bei offenen Eintraegen */
#bewerbungenView .bw-aktionen { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
#bewerbungenView a.bw-btn { display: inline-flex; align-items: center; min-height: 26px; padding: 0 9px; border-radius: 8px; font-size: 12px; font-weight: 600; text-decoration: none; }
#bewerbungenView .bw-btn.gefahr { color: #a42e24; border-color: #f3c3bd; }
#bewerbungenView .bw-btn.gefahr:hover { background: #fde8e6; }
#bewerbungenView .bw-mail { display: block; margin-bottom: 2px; }
#bewerbungenView .bw-mail b { font-weight: 600; }
#bewerbungenView .bw-table td.bw-actions { min-width: 210px; }
/* 2.79.4: Mail ansehen - Fenster an document.body, Regeln eng auf #bwMailDialog (globale button-Regel ist sonst staerker) */
#bwMailDialog.bw-mail-dialog { position: fixed; inset: 0; z-index: 1200; background: rgba(20, 26, 22, .45); display: flex; align-items: flex-start; justify-content: center; padding: 5vh 12px; }
#bwMailDialog .bw-mail-karte { background: #fff; color: #2f3a33; border-radius: 10px; box-shadow: 0 12px 40px rgba(0,0,0,.25); width: min(860px, 100%); max-height: 90vh; overflow: auto; padding: 14px 16px; }
#bwMailDialog .bw-mail-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
#bwMailDialog .bw-mail-kopf b { display: block; font-size: 15px; }
#bwMailDialog .bw-sub { display: block; color: #6b756d; font-size: 12px; }
#bwMailDialog button.bw-mail-zu { flex: 0 0 auto; width: 28px; height: 28px; min-height: 0; padding: 0; border: 1px solid #d7ddd0; border-radius: 6px; background: #fff; color: #2f3a33; font-size: 14px; line-height: 1; box-shadow: none; }
#bwMailDialog button.bw-mail-zu:hover { background: #f4f7f1; }
#bwMailDialog .bw-mail-anhaenge { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
#bwMailDialog .bw-mail-anhaenge li { display: flex; align-items: baseline; gap: 6px; }
#bwMailDialog .bw-mail-anhaenge .bw-sub { display: inline; }
#bwMailDialog button.bw-mail-anhang { width: auto; min-height: 26px; padding: 0 9px; border: 1px solid #d7ddd0; border-radius: 6px; background: #fff; color: #2f3a33; font-size: 12px; font-weight: 500; box-shadow: none; }
#bwMailDialog button.bw-mail-anhang:hover { background: #f4f7f1; border-color: #c4ccbc; }
#bwMailDialog .bw-mail-text { white-space: pre-wrap; word-break: break-word; font: 13px/1.5 inherit; font-family: inherit; background: #f7f9f5; border: 1px solid #e3e8de; border-radius: 6px; padding: 10px 12px; margin: 0; }
#bwMailDialog .bw-banner.danger { color: #a42e24; }

/* 2.79.6: Betreff oeffnet die Mail; Entscheiden direkt im Mail-Fenster; Aktionen ohne Umbruch */
#bewerbungenView button.bw-mail-link { display: inline; width: auto; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: inherit; font: inherit; font-weight: 600; text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(140, 198, 63, .6); text-underline-offset: 3px; }
#bewerbungenView button.bw-mail-link:hover, #bewerbungenView button.bw-mail-link:focus-visible { background: none; color: #6f9a1f; }
#bewerbungenView .bw-aktionen { flex-wrap: nowrap; }
#bwMailDialog .bw-mail-fuss { display: flex; justify-content: flex-end; gap: 8px; padding-top: 12px; margin-top: 12px; border-top: 1px solid #e3e8de; }
#bwMailDialog .bw-mail-fuss .bw-btn { display: inline-flex; align-items: center; width: auto; flex: 0 0 auto; min-height: 30px; margin: 0; padding: 0 12px; border: 1px solid #d7ddd0; border-radius: 6px; background: #fff; color: #2f3a33; font-size: 13px; font-weight: 600; text-decoration: none; box-shadow: none; transform: none; cursor: pointer; }
#bwMailDialog .bw-mail-fuss .bw-btn:hover { background: #f4f7f1; }
#bwMailDialog .bw-mail-fuss .bw-btn.primary { border-color: var(--primary, #a2bf13); background: var(--primary, #a2bf13); color: #1f2a06; }
#bwMailDialog .bw-mail-fuss .bw-btn.gefahr { border-color: #f0c2bc; background: #fff; color: #b3261e; }
