/*
 * Frontend der Stundenerfassung (Elektro Steinberg) — Layout 1 (Sidebar + Tabelle).
 * Alles unter #rsw-zeit-app gescopet, Praefix rsw-zeit-, damit das WP-Theme nicht kollidiert.
 * Cockpit-Designsprache (vgl. public/rsw-login.css): navy #0b1e3f, blau #046bd2, gold #c9a24a.
 * Selektoren bewusst nach aufsteigender Spezifitaet sortiert (Stylelint no-descending-specificity).
 * Wird nur auf der eigenstaendigen App-Seite geladen (eigenes Template ohne Theme).
 */

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

#rsw-zeit-app {
	--navy: #0b1e3f;
	--navy2: #13294d;
	--blue: #046bd2;
	--blue-d: #035caa;
	--gold: #c9a24a;
	--bg: #f9fafb;
	--line: #e5e7eb;
	--muted: #64748b;
	--faint: #94a3b8;
	--ink: #1a2332;

	font-family: Helvetica, Arial, sans-serif;
	color: var(--ink);
	background: var(--bg);
	display: flex;
	height: 100vh;
	overflow: hidden;
}

#rsw-zeit-app.rsw-zeit-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--muted);
}

#rsw-zeit-app *,
#rsw-zeit-app *::before,
#rsw-zeit-app *::after {
	box-sizing: border-box;
}

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.rsw-zeit-sidebar {
	width: 230px;
	background: var(--navy);
	color: #fff;
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
}

.rsw-zeit-brand {
	padding: 22px 22px 18px;
}

.rsw-zeit-brand .mark {
	font-weight: 700;
	font-size: 20px;
	letter-spacing: .5px;
	border-bottom: 2px solid var(--gold);
	padding-bottom: 4px;
	display: inline-block;
}

.rsw-zeit-brand .sub {
	font-size: 11px;
	color: #8ba0bf;
	margin-top: 10px;
}

.rsw-zeit-nav {
	flex: 1;
	padding: 10px 0;
}

.rsw-zeit-nav button {
	display: flex;
	align-items: center;
	gap: 11px;
	width: 100%;
	padding: 12px 22px;
	color: #c4d0e2;
	background: none;
	border: none;
	border-left: 3px solid transparent;
	font-size: 14px;
	font-family: inherit;
	text-align: left;
	cursor: pointer;
}

.rsw-zeit-nav button:hover {
	background: var(--navy2);
}

.rsw-zeit-nav button.active {
	background: var(--navy2);
	color: #fff;
	border-left-color: var(--gold);
	font-weight: 600;
}

.rsw-zeit-user {
	padding: 16px 22px;
	border-top: 1px solid #22375a;
	font-size: 13px;
}

.rsw-zeit-user .name {
	font-weight: 600;
}

.rsw-zeit-cockpit {
	display: flex;
	gap: 11px;
	align-items: center;
	margin-bottom: 6px;
	padding: 12px 22px;
	border-left: 3px solid transparent;
	border-bottom: 1px solid #22375a;
	color: #c4d0e2;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.rsw-zeit-cockpit:hover {
	background: var(--navy2);
}

.rsw-zeit-logout {
	margin-top: 6px;
	background: none;
	border: none;
	color: #8ba0bf;
	font-size: 11px;
	font-family: inherit;
	cursor: pointer;
	padding: 0;
	text-decoration: underline;
}

/* ── Main ────────────────────────────────────────────────────────────────── */
.rsw-zeit-main {
	flex: 1;
	display: flex;
	flex-direction: column;
	background: var(--bg);
	min-width: 0;
}

.rsw-zeit-topbar {
	background: #fff;
	border-bottom: 1px solid var(--line);
	padding: 18px 26px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
}

.rsw-zeit-topbar h1 {
	font-size: 19px;
	color: var(--navy);
	margin: 0;
}

.rsw-zeit-topbar .right {
	display: flex;
	align-items: center;
	gap: 12px;
}

.rsw-zeit-content {
	padding: 22px 26px;
	overflow-y: auto;
}

/* ── KPIs ────────────────────────────────────────────────────────────────── */
.rsw-zeit-kpis {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-bottom: 22px;
}

.rsw-zeit-kpi {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 16px 18px;
}

.rsw-zeit-kpi .l {
	font-size: 12px;
	color: var(--muted);
}

.rsw-zeit-kpi .v {
	font-size: 24px;
	font-weight: 700;
	color: var(--navy);
	margin-top: 6px;
}

.rsw-zeit-kpi .v.accent {
	color: var(--gold);
}

/* ── Panel + Tabelle ─────────────────────────────────────────────────────── */
.rsw-zeit-panel {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 12px;
	overflow: hidden;
}

.rsw-zeit-panel h2 {
	font-size: 14px;
	color: var(--navy);
	margin: 0;
	padding: 15px 18px;
	border-bottom: 1px solid var(--line);
}

.rsw-zeit-table {
	width: 100%;
	border-collapse: collapse;
}

.rsw-zeit-table th {
	background: #f6f8fb;
	text-align: left;
	font-size: 11px;
	color: var(--muted);
	font-weight: 600;
	padding: 11px 14px;
	text-transform: uppercase;
	letter-spacing: .3px;
}

.rsw-zeit-table td {
	padding: 13px 14px;
	font-size: 13px;
	border-top: 1px solid var(--line);
}

.rsw-zeit-table tfoot td {
	background: #f6f8fb;
	font-weight: 700;
	color: var(--navy);
	border-top: 2px solid var(--line);
}

.rsw-zeit-table th.r,
.rsw-zeit-table td.r {
	text-align: right;
}

.rsw-zeit-table td.date {
	font-weight: 600;
	color: var(--navy);
}

.rsw-zeit-table td.h {
	font-weight: 700;
	color: var(--blue);
	text-align: right;
}

.rsw-zeit-table td.betrag {
	text-align: right;
	font-weight: 600;
	color: var(--gold);
}

.rsw-zeit-table tbody tr:hover {
	background: #fafcff;
}

/* Zwei Blöcke (Apken / Elektro Steinberg) untereinander: Abstand + Akzent am Block-Titel. */
.rsw-zeit-panel + .rsw-zeit-panel {
	margin-top: 22px;
}

.rsw-zeit-panel h2.rsw-zeit-blocktitle {
	border-left: 4px solid var(--gold);
	padding-left: 14px;
}

/* „Unfertige Einträge" (Entwürfe mit gesichertem Foto): warnend umrandet + abgehoben, damit sie
   oben auffallen und nicht mit den fertigen Einträgen verschwimmen. */
.rsw-zeit-panel.rsw-zeit-drafts {
	margin-bottom: 22px;
	border-color: #f0b970;
	box-shadow: 0 0 0 1px #f0b970;
}

.rsw-zeit-panel.rsw-zeit-drafts h2.rsw-zeit-blocktitle {
	background: #fff4e5;
	border-left-color: #d97700;
	color: #8a4b00;
}

/* Jahressicht: Monatszeile öffnet den Monat. */
.rsw-zeit-table tbody tr[title="Diesen Monat öffnen"] {
	cursor: pointer;
}

.rsw-zeit-table td.rsw-zeit-monthlink {
	font-weight: 600;
	color: var(--blue);
}

.rsw-zeit-table .act {
	color: var(--muted);
	cursor: pointer;
	margin-left: 8px;
	background: none;
	border: 1px solid var(--line);
	border-radius: 8px;
	font-size: 16px;
	line-height: 1;
	padding: 7px 11px;
}

.rsw-zeit-table .act:hover {
	color: var(--blue);
	border-color: var(--blue);
}

.rsw-zeit-empty {
	padding: 40px 18px;
	text-align: center;
	color: var(--faint);
	font-size: 14px;
}

/* ── Formular ────────────────────────────────────────────────────────────── */
.rsw-zeit-formcard {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 12px;
	max-width: 760px;
}

.rsw-zeit-formcard h2 {
	font-size: 15px;
	color: var(--navy);
	margin: 0;
	padding: 16px 22px;
	border-bottom: 1px solid var(--line);
}

.rsw-zeit-form {
	padding: 20px 22px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px 18px;
}

.rsw-zeit-form .full {
	grid-column: 1 / -1;
}

.rsw-zeit-hint {
	grid-column: 1 / -1;
	font-size: 12px;
	color: var(--muted);
	background: #eef4fb;
	border: 1px solid #cfe2f6;
	border-radius: 8px;
	padding: 10px 12px;
	line-height: 1.5;
}

.rsw-zeit-field label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: var(--navy);
	margin-bottom: 6px;
}

.rsw-zeit-field .auto {
	font-size: 11px;
	color: var(--faint);
	font-weight: 400;
}

.rsw-zeit-field input,
.rsw-zeit-field textarea {
	width: 100%;
	padding: 10px 12px;
	font-size: 14px;
	line-height: 1.4;
	height: auto;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #fff;
	color: var(--ink);
	font-family: inherit;
}

.rsw-zeit-field input:focus,
.rsw-zeit-field textarea:focus {
	outline: none;
	border-color: var(--blue);
	box-shadow: 0 0 0 3px rgb(4 107 210 / 12%);
}

.rsw-zeit-field input[readonly] {
	background: #f1f5fb;
	color: var(--muted);
}

.rsw-zeit-field input[type="file"] {
	width: 100%;
	padding: 16px 12px;
	border: 1.5px dashed var(--gold);
	border-radius: 8px;
	background: #fffdf7;
	color: var(--muted);
	font-size: 13px;
	cursor: pointer;
}

.rsw-zeit-two {
	display: flex;
	gap: 14px;
}

.rsw-zeit-two .grow {
	flex: 1;
}

.rsw-zeit-two .sm {
	flex: 0 0 120px;
}

/* ── Kunden-Combobox (Autocomplete am Feld "Kunde / Ansprechpartner") ──────── */
.rsw-zeit-acwrap {
	position: relative;
}

.rsw-zeit-ac {
	display: none;
	position: absolute;
	z-index: 50;
	top: 100%;
	right: 0;
	left: 0;
	margin-top: 4px;
	max-height: 260px;
	overflow-y: auto;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 8px;
	box-shadow: 0 8px 24px rgb(11 30 63 / 12%);
}

.rsw-zeit-ac.open {
	display: block;
}

.rsw-zeit-ac-item {
	padding: 9px 12px;
	border-top: 1px solid var(--line);
	cursor: pointer;
}

.rsw-zeit-ac-item:first-child {
	border-top: none;
}

.rsw-zeit-ac-item:hover {
	background: #f1f5fb;
}

.rsw-zeit-ac-item .n {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--ink);
}

.rsw-zeit-ac-item .a {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	color: var(--muted);
}

/* ── Fotos ───────────────────────────────────────────────────────────────── */
.rsw-zeit-photos {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 10px;
}

.rsw-zeit-thumb {
	position: relative;
	width: 84px;
	height: 84px;
	border-radius: 9px;
	overflow: hidden;
	border: 1px solid var(--line);
	background: #dbe4ef;
}

.rsw-zeit-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	cursor: zoom-in;
}

.rsw-zeit-thumb-del {
	position: absolute;
	top: 3px;
	right: 3px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: none;
	background: rgb(11 30 63 / 80%);
	color: #fff;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}

.rsw-zeit-fotobadge {
	color: var(--muted);
	font-size: 12px;
	white-space: nowrap;
}

/* Verwendetes Material: sekundaere Zeile unter der Arbeitsbeschreibung (Spalte „Taetigkeit"). */
.rsw-zeit-material {
	display: block;
	margin-top: 2px;
	color: var(--muted);
	font-size: 12px;
}

/* Neue Auftraege / Angebot erstellen: sekundaere Zeile in der Spalte „Taetigkeit", leicht
   farblich abgesetzt (Merker fuer offene Angebote/Folgeauftraege). */
.rsw-zeit-angebot {
	display: block;
	margin-top: 2px;
	color: #b26a00;
	font-size: 12px;
	font-weight: 600;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.rsw-zeit-btn {
	padding: 10px 18px;
	font-size: 14px;
	font-weight: 600;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	font-family: inherit;
	background: var(--blue);
	color: #fff;
}

.rsw-zeit-btn:hover {
	background: var(--blue-d);
}

.rsw-zeit-btn:disabled {
	background: var(--faint);
	cursor: not-allowed;
}

.rsw-zeit-btn.ghost {
	background: #fff;
	color: var(--muted);
	border: 1px solid var(--line);
}

.rsw-zeit-btn.ghost:hover {
	background: #f1f5fb;
}

.rsw-zeit-monthsel {
	background: #eef4fb;
	color: var(--navy);
	font-weight: 600;
	font-size: 14px;
	padding: 9px 14px;
	border-radius: 8px;
	border: none;
	font-family: inherit;
	cursor: pointer;
}

/* „Jahr (gesamt)"-Optionen je <optgroup> sollen sich im Dropdown abheben. */
.rsw-zeit-monthsel optgroup {
	font-weight: 700;
	color: var(--navy);
}

.rsw-zeit-monthsel option {
	font-weight: 400;
	color: #1c2b45;
}

.rsw-zeit-formfoot {
	padding: 18px 22px;
	border-top: 1px solid var(--line);
	display: flex;
	justify-content: flex-end;
	gap: 12px;
}

/* ── Meldungen + Views ───────────────────────────────────────────────────── */
.rsw-zeit-msg {
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 13px;
	margin-bottom: 14px;
}

.rsw-zeit-msg.ok {
	background: #e7f7ed;
	color: #1f7a44;
	border: 1px solid #b6e6c8;
}

.rsw-zeit-msg.err {
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #fca5a5;
}

/* Auto-Save-Status (kein Speichern-Knopf mehr). */
.rsw-zeit-msg.saving {
	background: #eef4fc;
	color: #1b4e8a;
	border: 1px solid #bcd6f5;
}

.rsw-zeit-msg.hint {
	background: #f6f8fb;
	color: #5b6b80;
	border: 1px solid var(--line);
}

.rsw-zeit-msg.warn {
	background: #fff7e6;
	color: #8a5a00;
	border: 1px solid #f3d79a;
}

/* Persistentes „nicht gespeichert"-Banner im Erfassen-Formular (auffälliger als ein Hinweis;
   ueberdauert die fluechtigen Status-Meldungen, bis der Eintrag vollwertig gespeichert ist). */
.rsw-zeit-savebanner {
	display: none;
}

.rsw-zeit-savebanner.show {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin-bottom: 14px;
	padding: 12px 14px;
	background: #fff4e5;
	border: 1px solid #f0b970;
	border-left: 4px solid #d97700;
	border-radius: 8px;
	font-size: 13px;
	line-height: 1.5;
	color: #8a4b00;
}

.rsw-zeit-savebanner .ic {
	flex-shrink: 0;
	font-size: 16px;
	line-height: 1.3;
}

.rsw-zeit-view {
	display: none;
}

.rsw-zeit-view.active {
	display: block;
}

.rsw-zeit-note {
	font-size: 13px;
	color: var(--muted);
	line-height: 1.6;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 18px;
}

/* ── Zeiten (Beginn/Ende + Pause + berechnete Dauer) ─────────────────────── */
.rsw-zeit-select {
	width: 100%;
	padding: 10px 12px;
	font-size: 14px;
	line-height: 1.4;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #fff;
	color: var(--ink);
	font-family: inherit;
}

.rsw-zeit-select:focus {
	outline: none;
	border-color: var(--blue);
	box-shadow: 0 0 0 3px rgb(4 107 210 / 12%);
}

.rsw-zeit-timerow {
	display: flex;
	gap: 10px;
	align-items: flex-end;
}

/* S/E-Schnellbutton (trägt die aktuelle Uhrzeit ein). Auf Desktop per Media-Query ausgeblendet. */
.rsw-zeit-qbtn {
	display: flex;
	flex: 0 0 52px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 46px;
	border: none;
	border-radius: 8px;
	background: var(--navy);
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	cursor: pointer;
}

.rsw-zeit-qbtn small {
	font-size: 8px;
	font-weight: 600;
	color: #8ba0bf;
}

.rsw-zeit-calc {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	background: #f6f8fb;
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 12px 14px;
}

.rsw-zeit-calc .l {
	font-size: 12px;
	color: var(--muted);
}

.rsw-zeit-calc .v {
	font-size: 20px;
	font-weight: 700;
	color: var(--blue);
}

.rsw-zeit-calc .v.warn {
	font-size: 13px;
	color: #991b1b;
}

/* ── Standort-Knopf (auf Desktop per Media-Query ausgeblendet) ───────────── */
.rsw-zeit-geo {
	width: 100%;
	padding: 12px;
	border: 1.5px dashed var(--gold);
	border-radius: 8px;
	background: #fffdf7;
	color: var(--navy);
	font-size: 14px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
}

.rsw-zeit-geo-status {
	font-size: 12px;
	color: var(--muted);
	margin-top: 8px;
	min-height: 16px;
}

/* ── Foto-Aufnahme / -Auswahl ────────────────────────────────────────────── */
.rsw-zeit-hiddenfile {
	display: none;
}

.rsw-zeit-photobtns {
	display: flex;
	gap: 10px;
	margin-bottom: 12px;
}

.rsw-zeit-pbtn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border: 1.5px dashed var(--gold);
	border-radius: 8px;
	background: #fffdf7;
	color: var(--navy);
	font-size: 13px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
}

.rsw-zeit-pbtn.cam {
	background: var(--navy);
	color: #fff;
	border-style: solid;
	border-color: var(--navy);
}

/* ── Foto-Lightbox (Vollbild-Anzeige) ────────────────────────────────────── */
.rsw-zeit-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgb(11 30 63 / 88%);
	cursor: zoom-out;
}

.rsw-zeit-lightbox img {
	max-width: 100%;
	max-height: 100%;
	border-radius: 8px;
	box-shadow: 0 10px 40px rgb(0 0 0 / 40%);
	cursor: default;
}

/* Galerie-Navigation (nur bei mehreren Bildern eingehängt). */
.rsw-zeit-lb-nav {
	position: fixed;
	top: 50%;
	width: 52px;
	height: 52px;
	transform: translateY(-50%);
	border: none;
	border-radius: 50%;
	background: rgb(255 255 255 / 90%);

	/* Fallback-Literal: Die Lightbox hängt am <body>, außerhalb von #rsw-zeit-app, und erbt
	   die dort definierte --navy nicht. */
	color: var(--navy, #0b1e3f);
	font-size: 30px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 16px rgb(0 0 0 / 35%);
}

.rsw-zeit-lb-nav.prev {
	left: 16px;
}

.rsw-zeit-lb-nav.next {
	right: 16px;
}

.rsw-zeit-lb-nav:hover {
	background: #fff;
}

.rsw-zeit-lb-counter {
	position: fixed;
	top: 18px;
	left: 50%;
	transform: translateX(-50%);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.02em;
	background: rgb(11 30 63 / 70%);
	padding: 5px 12px;
	border-radius: 999px;
}

/* S/E-, Standort- und Kamera-Knopf sind nur am Handy gedacht — auf größeren Viewports
   ausblenden (Desktop erfasst Fotos ausschließlich über die Galerie-Auswahl). */
@media (width > 720px) {
	.rsw-zeit-qbtn,
	.rsw-zeit-geowrap {
		display: none;
	}

	.rsw-zeit-pbtn.cam {
		display: none;
	}
}

/* ── Responsive (iPhone) ─────────────────────────────────────────────────── */
@media (width <= 720px) {
	#rsw-zeit-app {
		flex-direction: column;
		height: auto;
		min-height: 100vh;
		overflow: visible;
	}

	.rsw-zeit-sidebar {
		width: 100%;
		flex-direction: column;
	}

	.rsw-zeit-brand {
		padding: 12px 16px 6px;
	}

	.rsw-zeit-brand .sub {
		display: none;
	}

	.rsw-zeit-user {
		order: 2;
		border-top: none;
		padding: 0 16px 8px;
		font-size: 12px;
	}

	.rsw-zeit-nav {
		order: 3;
		flex: 0 0 auto;
		flex-direction: row;
		overflow-x: auto;
		padding: 0 6px;
	}

	.rsw-zeit-nav button {
		width: auto;
		border-left: none;
		border-bottom: 3px solid transparent;
		white-space: nowrap;
		padding: 11px 14px;
	}

	.rsw-zeit-nav button.active {
		border-left: none;
		border-bottom-color: var(--gold);
	}

	.rsw-zeit-topbar {
		padding: 14px 16px;
	}

	.rsw-zeit-content {
		padding: 16px;
	}

	.rsw-zeit-kpis {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.rsw-zeit-form {
		grid-template-columns: 1fr;
	}

	/* iPhone: 16px verhindert das Auto-Zoom beim Fokus; min-height sichert einen vollen
	   Tap-Bereich, damit der native Datums-/Zeit-Picker (input[type=date]/[time]) zuverlässig
	   öffnet und sich verändern lässt. */
	.rsw-zeit-field input,
	.rsw-zeit-field textarea,
	.rsw-zeit-select {
		font-size: 16px;
	}

	.rsw-zeit-field input,
	.rsw-zeit-select {
		min-height: 46px;
	}

	/* Tabelle -> Karten: eine Karte je Eintrag, Beschriftung links, Wert rechts. */
	.rsw-zeit-table thead {
		display: none;
	}

	.rsw-zeit-table,
	.rsw-zeit-table tbody,
	.rsw-zeit-table tfoot,
	.rsw-zeit-table tr,
	.rsw-zeit-table td {
		display: block;
		width: auto;
	}

	.rsw-zeit-table tr {
		border-bottom: 8px solid #eef1f5;
		padding: 4px 14px 10px;
	}

	.rsw-zeit-table td {
		display: flex;
		justify-content: space-between;
		gap: 14px;
		padding: 6px 0;
		border: none;
		border-top: 1px solid #f0f2f5;
		font-size: 13px;
		text-align: right;
	}

	.rsw-zeit-table td:first-child {
		border-top: none;
	}

	.rsw-zeit-table td::before {
		content: attr(data-label);
		font-weight: 600;
		color: var(--muted);
		text-align: left;
		flex-shrink: 0;
	}

	.rsw-zeit-table tfoot tr {
		background: #f6f8fb;
	}

	.rsw-zeit-table tbody tr:hover {
		background: transparent;
	}

	.rsw-zeit-table tfoot td[colspan] {
		justify-content: flex-start;
		font-weight: 700;
		color: var(--navy);
	}

	/* Bearbeiten/Löschen am Handy als große, sicher tippbare Knöpfe. */
	.rsw-zeit-table .act {
		flex: 1;
		margin-left: 0;
		font-size: 20px;
		padding: 12px 18px;
	}

	.rsw-zeit-table td.rsw-zeit-actions {
		justify-content: flex-end;
		gap: 12px;
		padding-top: 12px;
	}

	.rsw-zeit-table td.rsw-zeit-actions::before {
		content: none;
	}
}

/* ── Einstellungen: Karten-Stapel + Apken-Standorte ──────────────────────── */
.rsw-zeit-formcard + .rsw-zeit-formcard {
	margin-top: 18px;
}

.rsw-zeit-cardnote {
	margin: 0;
	padding: 12px 22px 0;
	font-size: 12px;
	line-height: 1.5;
	color: var(--muted);
}

.rsw-zeit-stdlist {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 14px 22px 0;
}

.rsw-zeit-stdrow {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 12px;
	border: 1px solid var(--line);
	border-radius: 8px;
}

.rsw-zeit-stdrow.inaktiv {
	opacity: 0.55;
}

.rsw-zeit-stdrow .meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.rsw-zeit-stdrow .b {
	font-size: 14px;
	font-weight: 600;
	color: var(--navy);
}

.rsw-zeit-stdrow .a {
	font-size: 12px;
	color: var(--muted);
}

.rsw-zeit-stdrow .tag {
	font-size: 11px;
	color: var(--faint);
}

.rsw-zeit-stdact {
	display: flex;
	flex-shrink: 0;
	gap: 8px;
}

.rsw-zeit-sact {
	padding: 7px 11px;
	font-size: 16px;
	line-height: 1;
	color: var(--muted);
	cursor: pointer;
	background: none;
	border: 1px solid var(--line);
	border-radius: 8px;
}

.rsw-zeit-sact:hover {
	color: var(--blue);
	border-color: var(--blue);
}

.rsw-zeit-check {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--navy);
}
