/* MVZ Medical HR – Frontend-Design
   Primärfarbe Dunkelblau #004775, Akzentfarbe Hellblau #39A8DC, Schrift schwarz.
   Kontraste: Weiß auf #004775 = 9,9:1 · Schwarz auf #39A8DC = 7,8:1 · Schwarz auf Weiß = 21:1.
   Der Akzent wird nie als Textfarbe auf Weiß verwendet (nur als Fläche mit schwarzer Schrift, Rahmen oder Fokusring). */

:root {
	--primary: #004775;
	--primary-dark: #00314f;
	--accent: #39A8DC;
	--accent-soft: #e4f4fb;
	--text: #000;
	--muted: #1f2d3a;
	--bg: #f2f6f9;
	--panel: #fff;
	--line: #b9c7d3;
	--line-strong: #5c6f7f;
	--ok: #1b7a3a; --ok-bg: #dcf2e3;
	--warn: #a86b00; --warn-bg: #fff1c9;
	--bad: #b3261e; --bad-bg: #fde3e0;
	--radius: 10px;
	--shadow: 0 1px 2px rgba(0, 49, 79, .08), 0 4px 14px rgba(0, 49, 79, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.mmhr-body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.mmhr-skip { position: absolute; left: -999px; top: 8px; background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.mmhr-skip:focus { left: 8px; }

a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
a:hover { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--primary); box-shadow: 0 0 0 5px var(--accent); outline-offset: 1px; }

/* ---------- Kopfzeile ---------- */
.mmhr-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px; height: 60px; padding: 0 20px; background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); border-bottom: 4px solid var(--accent); }
.mmhr-top a { color: #fff; }
.mmhr-top a:hover { background: rgba(255, 255, 255, .14); }
.mmhr-brand { white-space: nowrap; font-size: 20px; font-weight: 700; text-decoration: none; letter-spacing: .2px; padding: 4px 8px; border-radius: 6px; }
.mmhr-logo { display: inline-block; background: var(--accent); color: #000; padding: 1px 8px; border-radius: 6px; margin-right: 4px; }
.mmhr-version { font-size: 13px; font-weight: 600; color: #fff; border: 1.5px solid var(--accent); border-radius: 999px; padding: 1px 10px; white-space: nowrap; }
.mmhr-user { margin-left: auto; display: flex; gap: 16px; align-items: center; font-size: 15px; }
.mmhr-user span { font-weight: 600; }
.mmhr-user a.mmhr-clock { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #000; font-weight: 700; font-size: 14px; padding: 5px 12px; border-radius: 999px; text-decoration: none; border: 2px solid #fff; }
.mmhr-user a.mmhr-clock:hover { background: #fff; }
.mmhr-user a.mmhr-clock-old { background: #fff; border-color: #ffb000; box-shadow: 0 0 0 2px #ffb000; }
.mmhr-user a.mmhr-clock-off { background: #fff; border-color: #fff; }
.mmhr-user a.mmhr-clock-off:hover { background: var(--accent); }
.mmhr-clock-off .mmhr-clock-dot { background: #5c6f7f; animation: none; }
.mmhr-clock-dot { width: 10px; height: 10px; border-radius: 50%; background: #b00020; flex: none; animation: mmhr-pulse 1.6s ease-in-out infinite; }
@keyframes mmhr-pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .mmhr-clock-dot { animation: none; } }
.mmhr-top :focus-visible { outline-color: #fff; box-shadow: 0 0 0 5px var(--accent); }
.mmhr-nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.mmhr-burger { display: none; width: 40px; height: 40px; flex-direction: column; justify-content: center; gap: 5px; cursor: pointer; padding: 0 8px; border-radius: 8px; }
.mmhr-burger span { display: block; height: 3px; background: #fff; border-radius: 2px; }
.mmhr-nav-toggle:focus-visible + .mmhr-top .mmhr-burger { outline: 2px solid #fff; box-shadow: 0 0 0 5px var(--accent); }

/* ---------- Gerüst ---------- */
.mmhr-shell { display: flex; align-items: flex-start; min-height: calc(100vh - 60px - 52px); background: linear-gradient(to right, var(--panel) 0, var(--panel) 279px, var(--line) 279px, var(--line) 280px, transparent 280px); }
.mmhr-nav { width: 280px; flex: 0 0 280px; position: sticky; top: 64px; max-height: calc(100vh - 64px); overflow-y: auto; padding: 12px 10px 24px; }
.mmhr-nav details { margin: 2px 0 6px; }
.mmhr-nav summary { cursor: pointer; padding: 8px 10px; font-weight: 700; font-size: 13px; letter-spacing: .6px; text-transform: uppercase; color: var(--primary); border-radius: 6px; list-style: none; }
.mmhr-nav summary::-webkit-details-marker { display: none; }
.mmhr-nav summary::after { content: "▾"; float: right; transition: transform .15s; }
.mmhr-nav details:not([open]) summary::after { transform: rotate(-90deg); }
.mmhr-nav summary:hover { background: var(--accent-soft); }
.mmhr-nav ul { list-style: none; margin: 2px 0 0; padding: 0; }
.mmhr-nav li a { display: block; padding: 7px 12px; margin: 1px 0; border-radius: 8px; color: #000; text-decoration: none; font-size: 15px; }
.mmhr-nav li a:hover { background: var(--accent-soft); }
.mmhr-nav li a.is-current { background: var(--accent); color: #000; font-weight: 700; }
.mmhr-main { flex: 1; min-width: 0; padding: 28px clamp(16px, 3vw, 40px) 48px; }
.mmhr-footer { padding: 14px 20px; text-align: center; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); background: var(--panel); }

/* ---------- Überschriften ---------- */
.wrap { margin: 0; max-width: 1280px; }
h1 { margin: 0 0 18px; font-size: 28px; line-height: 1.2; color: var(--primary); font-weight: 750; }
h1::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 2px; background: var(--accent); margin-top: 8px; }
h2 { margin: 30px 0 12px; font-size: 21px; color: var(--primary); }
h3 { margin: 22px 0 8px; font-size: 17px; color: #000; }
p { margin: 0 0 12px; }
.description, small { color: var(--muted); font-size: 14px; }
code { background: #e9eff4; padding: 1px 6px; border-radius: 4px; font-size: 90%; color: #000; }
hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.wp-header-end { display: none; }

/* ---------- Brotkrumen ---------- */
.mmhr-crumbs { margin: -6px 0 20px; font-size: 14px; }
.mmhr-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; }
.mmhr-crumbs li { display: inline-flex; align-items: center; margin: 0; color: var(--muted); }
.mmhr-crumbs li + li::before { content: "›"; margin: 0 8px; color: var(--line-strong); font-weight: 700; font-size: 16px; }
.mmhr-crumbs a { color: var(--primary); }
.mmhr-crumbs [aria-current="page"] { color: #000; font-weight: 700; }
.mmhr-crumbs span { color: var(--muted); }

/* ---------- Karten und Boxen ---------- */
.card, .mmhr-box, .mmhr-card, details.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 18px; margin: 12px 0; max-width: none; }
.mmhr-box h2 { margin-top: 12px; }
details.card summary { color: var(--primary); }
.mmhr-cards { display: flex; flex-wrap: wrap; gap: 14px; margin: 14px 0 22px; }
.mmhr-card { border-top: 4px solid var(--accent); min-width: 190px; margin: 0; }
.mmhr-card.mmhr-expired { border-top-color: var(--bad); }
.mmhr-card.mmhr-due_soon { border-top-color: var(--warn); }
.mmhr-card-value { font-size: 30px; font-weight: 750; line-height: 1.2; color: var(--primary); }
.mmhr-card-label { color: var(--muted); }

/* ---------- Hinweise ---------- */
.notice { margin: 14px 0; padding: 12px 16px; border-radius: 8px; border: 1px solid var(--line); border-left: 6px solid var(--accent); background: var(--accent-soft); color: #000; }
.notice p { margin: 4px 0; }
.notice-success { background: var(--ok-bg); border-left-color: var(--ok); }
.notice-error { background: var(--bad-bg); border-left-color: var(--bad); }
.notice-warning { background: var(--warn-bg); border-left-color: var(--warn); }
.notice-info { background: var(--accent-soft); border-left-color: var(--accent); }

/* ---------- Schaltflächen ---------- */
.button, .page-title-action, button.button-link { appearance: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 16px; border-radius: 8px; border: 2px solid var(--primary); background: #fff; color: var(--primary); font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; line-height: 1.2; }
.button:hover, .page-title-action:hover { background: var(--accent-soft); }
.button-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.button-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.button-hero { min-height: 52px; font-size: 18px; padding: 10px 26px; }
.button-link, .button-link-delete { border: 0; background: none; min-height: 0; padding: 2px 4px; text-decoration: underline; font-weight: 500; }
.button-link-delete, .mmhr-delete, a.delete { color: var(--bad); }
.button[disabled], .button:disabled { opacity: .55; cursor: not-allowed; }
.mmhr-inline { display: inline-block; margin: 0 8px 4px 0; }
.mmhr-filter { margin: 14px 0 20px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- Formulare ---------- */
input[type="text"], input[type="email"], input[type="number"], input[type="date"], input[type="time"], input[type="month"], input[type="password"], input[type="url"], input[type="search"], input[type="tel"], select, textarea {
	font: inherit; color: #000; background: #fff; border: 1.5px solid var(--line-strong); border-radius: 8px; padding: 8px 10px; min-height: 40px; max-width: 100%;
}
textarea { min-height: 90px; width: 100%; }
select { padding-right: 28px; }
input[type="file"] { font: inherit; padding: 6px 0; max-width: 100%; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--primary); vertical-align: -3px; margin-right: 6px; }
input:disabled, select:disabled, textarea:disabled { background: #e9eff4; }
.regular-text { width: min(100%, 26em); }
.large-text { width: 100%; }
.small-text { width: 6.5em; }
label { cursor: pointer; }
.form-table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 14px; }
.form-table th { width: 250px; text-align: left; vertical-align: top; padding: 14px 16px; font-weight: 650; background: #f7fafc; border-bottom: 1px solid var(--line); }
.form-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.form-table tr:last-child th, .form-table tr:last-child td { border-bottom: 0; }
.form-table .description { margin: 6px 0 0; }
.mmhr-multi { min-width: 320px; }
form p.submit { margin-top: 16px; }

/* ---------- Tabellen ---------- */
.widefat { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin: 10px 0 18px; }
.widefat th, .widefat td { padding: 10px 12px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.widefat thead th { background: var(--primary); color: #fff; font-weight: 650; font-size: 14px; white-space: nowrap; border-bottom: 3px solid var(--accent); }
.widefat tbody tr:last-child td, .widefat tbody tr:last-child th { border-bottom: 0; }
.widefat.striped tbody tr:nth-child(even), .striped > tbody > tr:nth-child(even) { background: #f1f7fb; }
.widefat tbody tr:hover { background: var(--accent-soft); }
.widefat tfoot th { background: #f7fafc; }
.mmhr-table td { vertical-align: middle; }
main table { max-width: 100%; }
.wrap > table, .mmhr-box > table, details > div > table { display: table; }

/* ---------- Reiter ---------- */
.nav-tab-wrapper { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 3px solid var(--primary); margin: 18px 0 18px; padding: 0; }
h2.nav-tab-wrapper { font-size: inherit; color: inherit; }
.nav-tab { padding: 9px 18px; border-radius: 8px 8px 0 0; background: #e4edf3; color: #000; text-decoration: none; font-weight: 600; border: 1px solid var(--line); border-bottom: 0; }
.nav-tab:hover { background: var(--accent-soft); }
.nav-tab-active, .nav-tab-active:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- Status ---------- */
.mmhr-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 650; color: #000; border: 1.5px solid #5c6f7f; background: #e3ecf3; }
.mmhr-valid { background: var(--ok-bg); border-color: var(--ok); }
.mmhr-due_soon { background: var(--warn-bg); border-color: var(--warn); }
.mmhr-expired { background: var(--bad-bg); border-color: var(--bad); }
.mmhr-unlimited { background: #e3ecf3; border-color: #5c6f7f; }
.mmhr-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 7px; vertical-align: -1px; background: #8696a4; border: 1.5px solid #000; }
.mmhr-dot.red { background: #d93025; } .mmhr-dot.yellow { background: #f5b800; } .mmhr-dot.green { background: #1fa045; }
.mmhr-over { color: var(--bad); font-weight: 750; }
.mmhr-swatch { display: inline-block; width: 16px; height: 16px; border-radius: 4px; vertical-align: middle; border: 1px solid #000; }

/* ---------- Ampel / Kennzahlen ---------- */
.mmhr-ampel { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 14px 0 24px; }
.mmhr-ampel .card { margin: 0; max-width: none; border-top: 6px solid #8696a4; padding: 14px 18px; }
.mmhr-ampel .card.red { border-top-color: var(--bad); }
.mmhr-ampel .card.yellow { border-top-color: #e0a800; }
.mmhr-ampel .card.green { border-top-color: var(--ok); }
.mmhr-ampel .card.hidden { border-top-color: var(--line); background: #f1f4f7; }
.mmhr-ampel .card h3 { margin: 0 0 6px; font-size: 14px; color: var(--primary); text-transform: none; }
.mmhr-ampel .card .st { font-weight: 700; font-size: 17px; }

/* ---------- Dienstplan ---------- */
.mmhr-roster-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0; }
.mmhr-roster-title { font-size: 18px; margin: 0 8px; color: var(--primary); }
.mmhr-roster-scroll { overflow-x: auto; border-radius: var(--radius); }
.mmhr-grid { min-width: 980px; border-collapse: collapse; width: 100%; background: var(--panel); }
.mmhr-grid th, .mmhr-grid td { border: 1px solid var(--line); vertical-align: top; padding: 6px; }
.mmhr-grid thead th { background: var(--primary); color: #fff; text-align: center; }
.mmhr-col-emp { min-width: 180px; background: #f1f7fb; font-weight: 600; }
.mmhr-cell { min-width: 104px; background: #fff; }
.mmhr-weekend, .mmhr-cell.mmhr-weekend { background: #eef2f5; }
.mmhr-cell.mmhr-sev-error { box-shadow: inset 0 0 0 3px var(--bad); background: #fff3f2; }
.mmhr-cell.mmhr-sev-warning { box-shadow: inset 0 0 0 3px #e0a800; background: #fffaea; }
.mmhr-chip { display: block; margin-bottom: 4px; padding: 3px 8px; border-left: 5px solid var(--accent); background: var(--accent-soft); border-radius: 4px; color: #000; text-decoration: none; font-size: 13px; font-weight: 650; }
a.mmhr-chip:hover { background: #c9e9f7; }
.mmhr-chip-abs { border-left-color: #5c6f7f; background: #e9eef2; font-weight: 500; }
.mmhr-add { display: inline-block; color: var(--primary); text-decoration: none; font-size: 20px; line-height: 1; padding: 0 6px; border-radius: 6px; }
.mmhr-add:hover { background: var(--accent); color: #000; }
.mmhr-hours { min-width: 120px; white-space: nowrap; }
.mmhr-daytable td { vertical-align: middle; }
.mmhr-daytable tr.mmhr-weekend td { background: #eef2f5; }
.mmhr-daytable .mmhr-chip { display: inline-block; margin: 0 4px 0 0; }
.mmhr-bar { display: flex; width: 150px; height: 14px; background: #d6dfe6; border-radius: 7px; overflow: hidden; border: 1px solid var(--line-strong); }
.mmhr-bar-done { background: var(--primary); }
.mmhr-bar-plan { background: var(--accent); }

/* ---------- Mein MVZ ---------- */
.mmhr-me label { margin-right: 12px; display: inline-block; }
.mmhr-me .button-hero { margin-top: 4px; }

/* ---------- Hilfe ---------- */
details > summary { cursor: pointer; }
dt { font-weight: 700; margin-top: 12px; }
dd { margin: 4px 0 0 0; }
.mmhr-body ol, .mmhr-body ul { padding-left: 24px; }
.mmhr-body li { margin: 4px 0; }

/* ---------- Anmeldung ---------- */
.mmhr-login { max-width: 420px; margin: 40px auto; background: var(--panel); border: 1px solid var(--line); border-top: 6px solid var(--accent); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 30px; }
.mmhr-login form p { margin: 0 0 14px; }
.mmhr-login label { display: block; font-weight: 650; margin-bottom: 4px; }
.mmhr-login input[type="text"], .mmhr-login input[type="password"] { width: 100%; }
.mmhr-login input[type="submit"] { appearance: none; min-height: 44px; width: 100%; border: 0; border-radius: 8px; background: var(--primary); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.mmhr-login input[type="submit"]:hover { background: var(--primary-dark); }

/* ---------- Schreiben ---------- */
.mmhr-letter { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); max-width: 800px; margin: 20px 0; padding: 48px 56px; font-size: 15px; line-height: 1.65; }
.mmhr-letter-head { margin-bottom: 32px; }
.mmhr-letter-date { text-align: right; }

/* ---------- Tablet und Handy ---------- */
.mmhr-overlay { display: none; }
.mmhr-nav-head { display: none; }
@media (max-width: 960px) {
	.mmhr-burger { display: flex; }
	.mmhr-shell { background: none; }
	.mmhr-nav-head { display: flex; align-items: center; justify-content: space-between; margin: -12px -10px 10px; padding: 14px 16px; background: var(--primary); color: #fff; font-weight: 750; font-size: 18px; cursor: pointer; border-bottom: 4px solid var(--accent); position: sticky; top: -12px; z-index: 1; }
	.mmhr-nav-x { font-size: 22px; line-height: 1; }
	.mmhr-nav { border-right: 5px solid var(--accent); display: none; background: var(--panel); position: fixed; top: 60px; left: 0; bottom: 0; z-index: 25; width: min(86vw, 330px); max-height: none; box-shadow: 8px 0 32px rgba(0, 0, 0, .55); padding-bottom: 80px; }
	.mmhr-nav-toggle:checked ~ .mmhr-shell .mmhr-nav { display: block; }
	.mmhr-nav-toggle:checked ~ .mmhr-overlay { display: block; position: fixed; inset: 60px 0 0 0; z-index: 20; background: rgba(0, 20, 35, .78); backdrop-filter: blur(2px); }
	.mmhr-nav li a, .mmhr-nav summary { padding-top: 12px; padding-bottom: 12px; font-size: 16px; }
	.mmhr-user a:not(:last-child):not(.mmhr-clock):not(.mmhr-bell), .mmhr-user span { display: none; }
	.mmhr-user .mmhr-bell .mmhr-bell-n:not([hidden]) { display: block; }
	.mmhr-user a.mmhr-clock { font-size: 12px; padding: 4px 9px; }
	.mmhr-version { font-size: 12px; padding: 0 7px; }
	.mmhr-main { padding: 20px 16px 40px; }
	.form-table th, .form-table td { display: block; width: 100%; }
	.form-table th { border-bottom: 0; padding-bottom: 4px; background: transparent; }
	.mmhr-letter { padding: 24px; }
}

@media (max-width: 720px) {
	body.mmhr-body { font-size: 16px; }
	.mmhr-top { height: 56px; padding: 0 12px; gap: 10px; }
	.mmhr-nav { top: 56px; }
	.mmhr-nav-toggle:checked ~ .mmhr-overlay { inset: 56px 0 0 0; }
	.mmhr-brand { font-size: 18px; }
	.mmhr-version { display: none; }
	.mmhr-main { padding: 16px 12px 36px; }
	h1 { font-size: 24px; margin-bottom: 14px; }
	.mmhr-crumbs { margin-bottom: 14px; font-size: 13px; }
	.mmhr-crumbs li { min-height: 28px; }
	h2 { font-size: 19px; margin-top: 24px; }
	.wrap { max-width: 100%; }

	/* Bedienelemente: große Tippflächen, volle Breite */
	.button, .page-title-action { min-height: 46px; padding: 10px 16px; }
	.mmhr-inline { display: block; margin: 0 0 8px; }
	.mmhr-inline .button, form.mmhr-inline button { width: 100%; justify-content: center; }
	p > .button, form > p > .button, .wrap > p > .button { max-width: 100%; }
	input[type="text"], input[type="email"], input[type="number"], input[type="date"], input[type="time"], input[type="month"], input[type="password"], input[type="url"], input[type="search"], input[type="tel"], select, textarea { width: 100%; min-height: 46px; font-size: 16px; }
	.regular-text, .small-text, .large-text { width: 100%; }
	input[type="checkbox"], input[type="radio"] { width: 22px; height: 22px; }
	.mmhr-filter, .mmhr-roster-nav { flex-direction: column; align-items: stretch; }
	.mmhr-filter > *, .mmhr-roster-nav > * { width: 100%; }
	.mmhr-roster-title { margin: 4px 0; text-align: center; }
	.nav-tab-wrapper { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
	.nav-tab { white-space: nowrap; }
	.mmhr-ampel { grid-template-columns: 1fr; }
	.mmhr-cards { flex-direction: column; }
	.mmhr-card { min-width: 0; }
	.mmhr-box, .card, details.card { padding: 12px 14px; }
	details.mmhr-fold > summary { padding: 14px; font-size: 17px; }
	.mmhr-fold-body { padding: 4px 14px 14px; }
	.notice { padding: 10px 12px; }
	.mmhr-login { margin: 16px auto; padding: 20px 18px; }

	/* Tabellen als Karten (Beschriftung je Zelle aus der Kopfzeile) */
	table.widefat.mmhr-stack { display: block; border: 0; background: transparent; box-shadow: none; overflow: visible; }
	table.widefat.mmhr-stack thead { position: absolute; left: -9999px; }
	table.widefat.mmhr-stack tbody, table.widefat.mmhr-stack tfoot { display: block; }
	table.widefat.mmhr-stack tr { display: block; background: var(--panel); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: var(--radius); box-shadow: var(--shadow); margin: 0 0 12px; padding: 4px 0; }
	table.widefat.mmhr-stack tr:hover, table.widefat.striped.mmhr-stack tr:nth-child(even) { background: var(--panel); }
	table.widefat.mmhr-stack th, table.widefat.mmhr-stack td { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; border: 0; border-bottom: 1px solid #e3ebf1; padding: 9px 14px; text-align: right; }
	table.widefat.mmhr-stack td:last-child, table.widefat.mmhr-stack th:last-child { border-bottom: 0; }
	table.widefat.mmhr-stack td[data-label]::before { content: attr(data-label); flex: 0 0 42%; text-align: left; font-weight: 700; color: var(--primary); }
	table.widefat.mmhr-stack td:empty { display: none; }
	table.widefat.mmhr-stack td:not([data-label]) { text-align: left; justify-content: flex-start; flex-wrap: wrap; }
	/* Aktionsspalte (Bearbeiten | Löschen …) über die volle Breite */
	table.widefat.mmhr-stack td:last-child { flex-wrap: wrap; justify-content: flex-start; text-align: left; }
	/* Aktionsspalte: Links als Schaltflächen, Trennstriche ausblenden */
	table.widefat.mmhr-stack td.mmhr-actions { font-size: 0; flex-direction: row; flex-wrap: wrap; gap: 0; }
	table.widefat.mmhr-stack td.mmhr-actions::before { font-size: 16px; flex: 0 0 100%; margin-bottom: 8px; }
	table.widefat.mmhr-stack td.mmhr-actions > * { font-size: 16px; }
	table.widefat.mmhr-stack td.mmhr-actions a, table.widefat.mmhr-stack td.mmhr-actions button { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; margin: 0 8px 8px 0; border: 1.5px solid var(--line-strong); border-radius: 8px; background: #fff; text-decoration: none; font-weight: 600; }
	table.widefat.mmhr-stack td.mmhr-actions a:hover { background: var(--accent-soft); }
	/* Tabellen ohne Kopfzeile (Schlüssel/Wert) bleiben Tabellen und scrollen bei Bedarf */
	table.widefat:not(.mmhr-stack) { display: block; overflow-x: auto; }

	/* Dienstplan: horizontal scrollbar mit Hinweis */
	.mmhr-roster-scroll { border: 1px solid var(--line); }
	.mmhr-grid { min-width: 860px; }
	.mmhr-roster-scroll::before { content: "← seitlich wischen →"; display: block; text-align: center; font-size: 13px; padding: 4px; background: var(--accent-soft); }
	.mmhr-letter { padding: 18px; font-size: 14px; }
	.mmhr-footer { font-size: 12px; padding: 12px; }
}

@media (max-width: 380px) {
	.mmhr-brand { font-size: 16px; }
	.mmhr-user a { font-size: 14px; }
	h1 { font-size: 21px; }
}

/* ---------- Druck ---------- */
@media print {
	body.mmhr-body { background: #fff; }
	.mmhr-top, .mmhr-nav, .mmhr-footer, .notice, .mmhr-noprint, .mmhr-filter, .mmhr-skip, h1::after { display: none !important; }
	.mmhr-main { padding: 0; }
	h1 { color: #000; }
	.mmhr-letter { border: 0; box-shadow: none; margin: 0; padding: 0; max-width: none; }
	.widefat thead th { background: #fff; color: #000; border-bottom: 2px solid #000; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

select[multiple] { padding-right: 10px; }
select[multiple] option { padding: 3px 8px; }
select[multiple] option:checked { background: var(--accent) linear-gradient(0deg, var(--accent), var(--accent)); color: #000; font-weight: 700; }

/* ---------- Aufklappbare Bereiche (Mein MVZ) ---------- */
details.mmhr-fold { padding: 0; overflow: hidden; }
details.mmhr-fold > summary { list-style: none; cursor: pointer; padding: 14px 18px; font-size: 19px; font-weight: 700; color: var(--primary); background: #fff; display: flex; align-items: center; justify-content: space-between; }
details.mmhr-fold > summary::-webkit-details-marker { display: none; }
details.mmhr-fold > summary::after { content: "▾"; font-size: 18px; transition: transform .15s; }
details.mmhr-fold:not([open]) > summary::after { transform: rotate(-90deg); }
details.mmhr-fold > summary:hover { background: var(--accent-soft); }
details.mmhr-fold[open] > summary { border-bottom: 3px solid var(--accent); }
.mmhr-fold-body { padding: 4px 18px 16px; }
details.mmhr-subfold { border: 1px solid var(--line); border-radius: 8px; margin: 8px 0; background: #fff; }
details.mmhr-subfold > summary { cursor: pointer; padding: 10px 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
details.mmhr-subfold > summary:hover { background: var(--accent-soft); }
details.mmhr-subfold[open] > summary { border-bottom: 1px solid var(--line); }
.mmhr-quote { background: #f1f7fb; border-left: 5px solid var(--accent); border-radius: 6px; padding: 10px 14px; margin: 0 0 12px; white-space: normal; }

/* Berechtigungen zuordnen */
.mmhr-check { display: inline-block; margin: 3px 16px 3px 0; white-space: nowrap; }
.mmhr .mmhr-check input { margin-right: 6px; }
details.mmhr-fold ul { margin: 0; padding: 4px 16px 14px 36px; }
@media (max-width: 720px) { .mmhr-check { white-space: normal; display: block; margin: 8px 0; } }

/* Klickbare Kennzahlen-Karten */
a.mmhr-card-link { display: block; color: inherit; text-decoration: none; cursor: pointer; transition: box-shadow .15s, transform .15s, border-color .15s; }
a.mmhr-card-link:hover { box-shadow: 0 4px 16px rgba(0, 71, 117, .25); border-color: var(--accent); transform: translateY(-2px); }
a.mmhr-card-link:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
a.mmhr-card-link h3 { color: var(--primary); }
.mmhr-card-more { margin-top: 8px; font-size: 13px; font-weight: 650; color: var(--primary); }
a.mmhr-card-link:hover .mmhr-card-more { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { a.mmhr-card-link { transition: none; } a.mmhr-card-link:hover { transform: none; } }
.mmhr-subline { font-size: 13px; color: var(--muted); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Datenschutzdokumentation */
.mmhr-dpdoc-body { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 24px 24px; box-shadow: var(--shadow); }
.mmhr-dpdoc-body table { border-collapse: collapse; width: 100%; margin: 10px 0 16px; }
.mmhr-dpdoc-body th, .mmhr-dpdoc-body td { border: 1px solid var(--line-strong); padding: 7px 9px; text-align: left; vertical-align: top; font-size: 14px; }
.mmhr-dpdoc-body th { background: #e3ecf3; }
.mmhr-dpdoc-body .small { font-size: 13px; color: #222; }
.mmhr-dpdoc-body .st-ok::before { content: "✔ "; }
.mmhr-dpdoc-body .st-warn::before, .mmhr-dpdoc-body .st-fail::before { content: "✖ "; font-weight: 700; }
.mmhr-dpdoc-body .st-fail { font-weight: 650; }
@media print { .mmhr-dpdoc-body { border: 0; box-shadow: none; padding: 0; overflow: visible; } .mmhr-dpdoc-body tr { page-break-inside: avoid; } .mmhr-dpdoc-body h2 { page-break-after: avoid; } .mmhr-dpdoc-body th, .mmhr-dpdoc-body td { font-size: 11px; } }

/* Mitteilungen */
.mmhr-bell { position: relative; display: inline-flex; align-items: center; color: #fff; padding: 4px 6px; border-radius: 8px; }
.mmhr-bell:hover { background: rgba(255, 255, 255, .15); }
.mmhr-bell-n { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #000; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; border: 2px solid var(--primary); box-sizing: content-box; }
.mmhr-bell-n[hidden] { display: none; }
tr.mmhr-unread td { background: var(--accent-soft); }

/* Listen: Suche und Seitenaufteilung */
.mmhr-search{margin:0 0 .8em}
.mmhr-search input[type=search]{min-width:16em;max-width:100%}
.mmhr-pager{margin:.8em 0}
