@charset "utf-8";
/* modern.css - visual refresh layer.
   Loaded last in head_content.php. Contains only additive overrides:
   no markup or JS changes, so all legacy behaviour is preserved. */

:root {
	--accent: #f5b301;        /* modern take on the legacy #fce01b yellow */
	--accent-dark: #d99e00;
	--ink: #1f2937;           /* primary text */
	--muted: #6b7280;
	--line: #d7dce3;          /* borders */
	--bg: #eef1f5;            /* page background */
	--card: #ffffff;
	--danger: #dc2626;
	--radius: 8px;
	--shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
	--shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.22);
}

/* ---------- Base ---------- */
html, body {
	font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	background-color: var(--bg);
	color: var(--ink);
}
a:link, a:visited { color: #1d4ed8; }
a:hover { color: #1e40af; text-decoration: underline; }
hr { border-bottom: 1px solid var(--line); }
fieldset {
	border: 1px solid var(--line);
	border-radius: var(--radius);
}
legend { color: var(--muted); padding: 0 4px; }
::selection { background: #fde68a; }
/* no visible scrollbars anywhere - scrolling stays functional */
* { scrollbar-width: none; }
::-webkit-scrollbar { display: none; }

/* ---------- Buttons & inputs ---------- */
.button,
.basicbtn,
div a.basicbtn,
input[type="submit"],
input[type="button"],
input[type="reset"],
button {
	display: inline-block;
	padding: 6px 14px;
	border: 1px solid #c9a227;
	border-radius: 6px;
	background: linear-gradient(#ffd24d, var(--accent));
	color: #222 !important;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
}
.button:hover,
.basicbtn:hover,
div a.basicbtn:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
button:hover {
	background: linear-gradient(#ffdc70, var(--accent-dark));
	text-decoration: none;
}
.button:active, .basicbtn:active, input[type="submit"]:active,
input[type="button"]:active, input[type="reset"]:active, button:active {
	transform: translateY(1px);
}
input[type="text"], input[type="number"], input[type="date"],
input[type="password"], input[type="email"], input[type="tel"],
input[type="search"], input[type="url"], select, textarea {
	border: 1px solid var(--line);
	border-radius: 5px;
	padding: 4px 6px;
	background: #fff;
}
input:focus, select:focus, textarea:focus {
	outline: 2px solid rgba(245, 179, 1, 0.55);
	outline-offset: 0;
	border-color: var(--accent-dark);
}
/* ---------- Modern dropdowns ---------- */
select:not([multiple]) {
	-webkit-appearance: none;
	appearance: none;
	padding-right: 26px;
	background-color: #fff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' fill='none' stroke='%2364748b' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 9px center;
	cursor: pointer;
}
select:not([multiple]):hover { border-color: #9aa5b1; }
/* multi-selects stay listboxes: no chevron, just cleaner rows */
select[multiple] { padding: 4px; }
select[multiple] option {
	padding: 5px 9px;
	border-radius: 4px;
}
select[multiple] option:checked {
	background: linear-gradient(var(--accent), var(--accent));
	color: #1f2937;
}
/* timepicker dropdown (ul overlay) to match the new select look */
.ui-timepicker-wrapper {
	border: 1px solid var(--line);
	border-radius: 8px;
	box-shadow: var(--shadow-lg);
	padding: 4px;
	max-height: 220px;
}
.ui-timepicker-list li {
	padding: 6px 12px;
	border-radius: 5px;
}
li.ui-timepicker-selected,
.ui-timepicker-list li:hover,
.ui-timepicker-list .ui-timepicker-selected:hover {
	background: var(--accent);
	color: #1f2937;
}

/* ---------- Top bar ---------- */
#topbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 210; /* above sidenav(200) so the burger stays clickable */
	display: flex;
	align-items: center;
	gap: 8px;
	height: 50px;
	padding: 0;
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(6px);
	border-bottom: 1px solid var(--line);
	box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}
/* page content starts below the 50px top bar so the bar
   never sits on top of headings, cards or the calendar header */
#bodydiv { padding-top: 50px; }
/* Hauptmenü page: the nav is redundant (the page IS the menu) - hide the
   top bar + drawer and reclaim the reserved space */
body:has(#indexmenu) #topbar,
body:has(#indexmenu) #sidenav,
body:has(#indexmenu) #navoverlay { display: none; }
body:has(#indexmenu) #bodydiv { padding-top: 0; }
/* door-icon logout in the top bar (the text link stays in the slide-out menu) */
.topbar_logout { display: inline-flex; align-items: center; }
.topbar_logout svg { display: block; }
#brand {
	display: inline-flex;
	align-items: center;
	padding: 0 6px;
	font-size: 13pt;
	font-weight: 700;
	letter-spacing: 0.3px;
	color: var(--ink) !important;
	text-decoration: none;
}
#brand::before {
	content: "";
	display: inline-block;
	width: 12px;
	height: 12px;
	margin-right: 7px;
	border-radius: 3px;
	background: var(--accent);
}
.topbar_logout {
	margin-left: auto;
	margin-right: 10px;
	padding: 8px 10px;
	border-radius: 6px;
	color: var(--muted);
	font-size: 9.5pt;
}
.topbar_logout:hover {
	background-color: var(--danger);
	color: #fff;
	text-decoration: none;
}
/* hamburger */
#navtoggle {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	gap: 10px;
	box-sizing: border-box;
	width: 109px; /* ends at the DATUM | first car column line */
	height: 50px;
	padding: 0;
	border: none;
	border-right: 1px solid var(--accent-dark);
	border-radius: 0;
	background: var(--accent);
	box-shadow: none;
	font-size: 12pt;
	font-weight: 700;
	letter-spacing: 0.5px;
	color: var(--ink);
	cursor: pointer;
}
#navtoggle .nb-bars {
	display: flex;
	flex-direction: column;
	gap: 5px;
}
#navtoggle span {
	display: block;
	width: 20px;
	height: 2px;
	border-radius: 2px;
	background: var(--ink);
	transition: transform 0.2s, opacity 0.2s;
}
#navtoggle:hover { background: #fff7dd; border-color: var(--accent-dark); }
body.nav-open #navtoggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open #navtoggle span:nth-child(2) { opacity: 0; }
body.nav-open #navtoggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* search field + button, moved into the top bar by calendar.php */
#topsearch {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	padding: 0 10px;
}
#topsearch .dt-search {
	flex: 0 1 460px;
	display: flex;
	min-width: 0;
}
/* DT renders the label next to the input; its text is stripped by JS */
#topsearch .dt-search label { display: none; }
#topsearch .dt-search input {
	flex: 1;
	box-sizing: border-box;
	min-width: 0;
	height: 34px;
	padding: 4px 14px;
	border: 1px solid var(--line);
	border-right: none;
	border-radius: 20px 0 0 20px;
	font-size: 10.5pt;
}
#topsearch .dt-search input:focus {
	outline: 2px solid rgba(245, 179, 1, 0.55);
	outline-offset: -1px;
	border-color: var(--accent-dark);
}
#topsearchbtn {
	flex: 0 0 auto;
	height: 34px;
	min-height: 0;
	padding: 0 16px;
	border: 1px solid var(--line);
	border-radius: 0 20px 20px 0;
	background: #f1f5f9;
	font-size: 10.5pt;
	font-weight: 600;
	color: var(--ink);
	cursor: pointer;
}
#topsearchbtn:hover {
	background: var(--accent);
	border-color: var(--accent-dark);
}
/* logged-in user at the right edge of the bar */
#topuser {
	padding: 0 14px 0 4px;
	font-size: 9.5pt;
	color: var(--muted);
	white-space: nowrap;
}

/* ---------- Slide-out sidebar ---------- */
#sidenav {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	z-index: 200;
	width: min(280px, 85vw);
	padding-top: 56px; /* clear the floating burger button */
	background: #fff;
	box-shadow: var(--shadow-lg);
	transform: translateX(-105%);
	transition: transform 0.25s ease;
	overflow-y: auto;
}
body.nav-open #sidenav { transform: translateX(0); }
/* section header, matches the "Filter" caption above #calcontrols */
#sidenav .navhead {
	padding: 14px 20px 6px;
	font-size: 8pt;
	font-weight: 700;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	color: var(--muted);
}
#sidenav a {
	display: flex;
	align-items: center;
	min-height: 44px;
	margin: 2px 10px;
	padding: 0 13px;
	border: none;
	border-left: 3px solid transparent;
	border-radius: 8px;
	color: var(--ink) !important;
	font-size: 11pt;
	font-weight: 500;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}
#sidenav a:hover {
	background: #fff7dd;
	border-left-color: var(--accent);
}
#sidenav a.menu_logout {
	margin-top: 18px;
	color: var(--danger) !important;
}
#sidenav a.menu_logout:hover {
	background: #fee2e2;
	border-left-color: var(--danger);
}
/* signed-in user footer at the bottom of the drawer */
#sidenav .navuser {
	margin-top: 20px;
	padding: 12px 24px;
	border-top: 1px solid var(--line);
	font-size: 8.5pt;
	color: var(--muted);
}
/* backdrop above content, below drawer */
#navoverlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 150;
	background: rgba(15, 23, 42, 0.45);
}
body.nav-open #navoverlay { display: block; }

/* ---------- Calendar controls (moved into the sidebar by nav.js) ---------- */
#sidenav #calcontrols {
	position: static;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
	padding: 12px 16px 18px;
	background: #f8fafc;
	border-bottom: 2px solid var(--line);
	font-size: 10pt;
}
#sidenav #calcontrols::before {
	content: "Filter";
	font-size: 8pt;
	font-weight: 700;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	color: var(--muted);
}
#sidenav #calcontrols > label { font-weight: 600; margin-bottom: -8px; }
#sidenav #calcontrols select,
#sidenav #calcontrols input[type="text"] {
	box-sizing: border-box;
	min-height: 36px;
}
/* multi-select car dropdown (checkbox list under a toggle button) */
#sidenav #carmultibtn {
	box-sizing: border-box;
	width: 100%;
	min-height: 36px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 6px 10px;
	background: #fff;
	font-size: 10pt;
	font-weight: 600;
	text-align: left;
}
#sidenav #carmultibtn::after {
	content: "";
	flex: 0 0 auto;
	width: 8px;
	height: 8px;
	border-right: 2px solid var(--muted);
	border-bottom: 2px solid var(--muted);
	transform: rotate(45deg);
	transition: transform 0.15s ease;
}
#sidenav #carmultisel.open #carmultibtn::after { transform: rotate(-135deg); }
#sidenav .cms-list {
	display: none;
	box-sizing: border-box;
	margin-top: 4px;
	padding: 4px;
	max-height: 220px;
	overflow-y: auto;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #fff;
}
#sidenav #carmultisel.open .cms-list { display: block; }
#sidenav .cms-list .caropt {
	display: block;
	padding: 6px 8px;
	margin: 2px 0;
	border-radius: 6px;
	background: #f8fafc;
	font-weight: 400;
	font-size: 10pt;
	white-space: normal;
	cursor: pointer;
}
#sidenav .cms-list .caropt:hover { background: #fff7dd; }
#sidenav .cms-list .caropt input { margin-right: 6px; accent-color: var(--accent-dark); }
/* single-select location dropdown inside the term dialog -
   same button + expandable list pattern as the car filter above */
#applocsel { margin: 3px 0 10px; }
#applocbtn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 6px 10px;
	text-align: left;
	font-weight: 600;
}
#applocbtn::after {
	content: "";
	flex: 0 0 auto;
	width: 8px;
	height: 8px;
	border-right: 2px solid var(--muted);
	border-bottom: 2px solid var(--muted);
	transform: rotate(45deg);
	transition: transform 0.15s ease;
}
#applocsel.open #applocbtn::after { transform: rotate(-135deg); }
#applocsel .cms-list {
	display: none;
	box-sizing: border-box;
	margin-top: 4px;
	padding: 4px;
	max-height: 180px;
	overflow-y: auto;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #fff;
}
#applocsel.open .cms-list { display: block; }
#applocsel .cms-list .caropt {
	display: block;
	padding: 6px 8px;
	margin: 2px 0;
	border-radius: 6px;
	background: #f8fafc;
	font-weight: 400;
	font-size: 0.9em;
	white-space: normal;
	cursor: pointer;
}
#applocsel .cms-list .caropt input { margin-right: 6px; accent-color: var(--accent-dark); }
/* date row: year + month side by side, day/month counts on the next line,
   submit button full width below */
#sidenav #calcontrols form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}
#sidenav #calcontrols form select {
	flex: 1 1 auto;
	min-width: 5.5em; /* keep year/month labels readable - flex:1 1 0 squeezed them to ~30px */
}
#sidenav #calcontrols form input[type="text"] {
	width: 3em !important;
	text-align: center;
}
#sidenav #calcontrols form input[type="submit"],
#sidenav #btn_assign_place {
	flex: 1 1 100%;
	min-height: 36px;
}
#sidenav #btn_assign_place {
	background: #f1f5f9;
	border-color: var(--line);
}
#sidenav #btn_assign_place:hover { background: #e2e8f0; }
#calcontrols select { font-size: 11pt; min-height: 40px; padding: 4px 8px; }
#calcontrols input[type="text"] { text-align: center; min-height: 40px; font-size: 11pt; }
#calcontrols input[type="submit"],
#calcontrols button { min-height: 40px; padding: 6px 18px; font-size: 10.5pt; }

/* ---------- Main menu (#indexmenu / #menubox) ---------- */
#indexmenu, #logindiv, #userdiv, #locationsdiv,
#carsdiv, #blacklistdiv, #placelistdiv, #profilediv {
	margin: 40px auto;
	width: 720px;
	max-width: 94vw;
	padding: 28px 32px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 12px;
	box-shadow: var(--shadow);
	box-sizing: border-box;
}
#blacklistdiv, #placelistdiv { width: 820px; }
#indexmenu h1 { margin-top: 0; }
#indexmenu small { color: var(--muted); }

#menubox { margin-top: 14px; }
#menubox ul { padding: 0; margin: 0; }
#menubox li {
	margin: 0;
	border: none;
	border-bottom: 1px solid var(--line);
	width: auto;
	background-color: transparent;
	text-align: left;
}
#menubox li:first-child { border-radius: var(--radius) var(--radius) 0 0; }
#menubox li:last-child { border-bottom: none; border-radius: 0 0 var(--radius) var(--radius); }
#menubox li a {
	display: block;
	font-size: 1.1em;
	padding: 12px 16px;
	border: none;
	background: none;
	font-weight: 500;
	color: var(--ink) !important;
}
#menubox li:hover { background-color: #fff7dd; }
#menubox li:hover a { font-weight: 600; }
#menubox li.logoutlink { border-top: 2px solid var(--line); }
#menubox li.logoutlink:hover { background-color: #fee2e2 !important; }
#menubox li.logoutlink:hover a { color: var(--danger) !important; }

/* ---------- Login ---------- */
#logindiv h2 { margin-top: 0; }
.loginfields {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 10px 12px;
	align-items: center;
	max-width: 420px;
	font-size: 11pt;
	margin-bottom: 12px;
}
.loginfields input { width: 100%; box-sizing: border-box; padding: 8px 10px; }

/* ---------- Profile page (#profilediv) ---------- */
.prof-sect {
	margin: 26px 0 10px;
	padding-bottom: 6px;
	border-bottom: 1px solid var(--line);
	font-size: 1.05em;
}
.prof-grid {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 10px 12px;
	align-items: center;
	max-width: 480px;
	margin-bottom: 14px;
	font-size: 11pt;
}
.prof-grid input { width: 100%; box-sizing: border-box; padding: 8px 10px; }
.prof-hint { color: var(--muted); font-size: 0.85em; margin: 0 0 10px; max-width: 480px; }
#profilediv .uperm-table { max-width: 640px; }
.prof-btnrow { display: flex; justify-content: space-between; max-width: 480px; }
button.prof-discard {
	border-color: var(--line);
	background: #f1f5f9;
	font-weight: 500;
}
button.prof-discard:hover { background: #e2e8f0; }
#permssavebar .prof-discard { margin-left: auto; }

/* ---------- Tables (generic / management / coupon lists) ---------- */
table {
	background: #fff;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}
th {
	border: none;
	border-bottom: 2px solid var(--line);
	background: #f8fafc;
	color: var(--muted);
	font-size: 0.85em;
	font-weight: 600;
	text-align: left;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	padding: 8px 12px;
}
td {
	border: none !important;
	border-bottom: 1px solid var(--line) !important;
	padding: 7px 12px !important;
}
tbody tr:last-child td { border-bottom: none !important; }
tbody tr:nth-child(even) td { background-color: #fafbfc; }
tbody tr:hover td { background-color: #fff7dd; }
/* link cells keep readable link color */
td a { color: #1d4ed8; }

/* ---------- Calendar grid keeps its full cell borders ---------- */
#tableDiv_General { font-size: 12px; }
#tableDiv_General table {
	box-shadow: none;
	border-radius: 0;
	background: transparent;
}
#tableDiv_General td {
	border: 1px solid #cfd4db !important;
	padding: 1px !important;
}
#tableDiv_General tbody tr:nth-child(even) td,
#tableDiv_General tbody tr:hover td { background-color: inherit; }
#assignappoint td { border: none !important; padding: 4px !important; }
#assignappoint { box-shadow: none; }
/* named management lists get a card frame */
#userlist, #usercarlist, #locationslist, #carslist, #blacklist, .basictable {
	border: 1px solid var(--line) !important;
}

/* ---------- Calendar data table ---------- */
#tableDiv_General table.dataTable > thead > tr > th {
	background: #374151;
	color: #fff;
	border: 1px solid #4b5563;
	font-size: 13px;
	line-height: 1.25;
	padding: 8px 10px;
}
/* DATUM header sits at the bottom edge of its (taller) header row */
#tableDiv_General thead th.datecol { vertical-align: bottom; }
/* the empty FixedColumns spacer th in the header row sits on top of the
   date column - hide it so the dates underneath stay visible */
#tableDiv_General thead th:empty {
	opacity: 0;
	pointer-events: none;
}
#tableDiv_General thead .carname {
	font-size: 10px;
	font-weight: 400;
	color: #d1d5db;
}
#tableDiv_General {
	background: #fff;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font-size: 13px;
}
/* readable, touch-friendly booking chips */
#tableDiv_General .termname {
	display: inline-block;
	padding: 5px 9px;
	margin: 3px 1px;
	border-radius: 11px;
	background-color: rgba(255, 255, 255, 0.92) !important;
	border: 1px solid rgba(0, 0, 0, 0.28);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
	font-size: 13px;
	color: #111 !important;
	text-decoration: none;
}
#tableDiv_General .termname:hover {
	background-color: #fff7dd !important;
	border-color: var(--accent-dark);
}
/* CSS status dots (replaced the status_*.gif images) */
.stled {
	display: inline-block;
	width: 10px;
	height: 10px;
	margin-right: 5px;
	border-radius: 50%;
	vertical-align: -1px;
}
.st0 { background: #dc2626; }   /* Anfrage  (was status_rot.gif)  */
.st1 { background: #eab308; }   /* Angebot  (was status_gelb.gif) */
.st2 { background: #16a34a; }   /* Bestaetigt (was status_gruen.gif) */
.st3 { background: #9ca3af; }   /* grau */
/* CSS delete icon (replaced action-delete-sharp-thick.png) */
.icn-del {
	display: inline-block;
	padding: 0 5px;
	border-radius: 4px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	color: #dc2626;
}
.icn-del:hover { background: #fee2e2; }
#tableDiv_General .datecol { font-size: 12px; padding: 5px 8px !important; }
#tableDiv_General td { padding: 3px 4px !important; }
/* weekend rows (Sa/So): slight red hue over the per-cell location colors.
   .dynbg pins background-color via !important, so tint with a bg-image overlay */
#tableDiv_General tbody tr.day-weekend td.dynbg {
	background-image: linear-gradient(rgba(220, 38, 38, 0.09), rgba(220, 38, 38, 0.09));
}
/* date cell of a weekend row: the even-row "background:inherit" rule above
   would otherwise override td.datecol.day-holiday's #ffdddd */
#tableDiv_General tbody tr.day-weekend td.datecol { background-color: #ffdddd; }
/* calendar page fills the viewport; only the DataTable scrolls internally.
   The filter bar is a fixed overlay, so the scroll body height is constant. */
html:has(#tableDiv_General), body:has(#tableDiv_General) {
	overflow: hidden;
	height: 100%;
}
#tableDiv_General div.dt-scroll-body {
	/* deliberately under-size: head + container chrome + the 50px top
	   offset for the MENÜ button must stay inside the viewport */
	max-height: calc(100vh - 130px) !important;
}
/* virtual overlay scrollbars for the calendar grid (nav.js injects the markup) */
.vscroll-wrap { position: relative; }
.vbar-y, .vbar-x {
	position: absolute;
	z-index: 40;
	border-radius: 6px;
	background: rgba(148, 163, 184, 0.18);
}
.vbar-y { top: 2px; right: 2px; bottom: 2px; width: 8px; }
.vbar-x { left: 2px; right: 2px; bottom: 2px; height: 8px; }
.vbar-thumb {
	position: absolute;
	border-radius: 6px;
	background: rgba(100, 116, 139, 0.7);
}
.vbar-y .vbar-thumb { left: 0; right: 0; top: 0; min-height: 24px; }
.vbar-x .vbar-thumb { top: 0; bottom: 0; left: 0; min-width: 24px; }
.vbar-thumb:hover { background: rgba(71, 85, 105, 0.9); }
/* the filter bar lives in the sidebar now; nothing collapses on the page */
/* every day cell is at least as tall as a row holding one appointment chip */
#tableDiv_General tbody td { height: 34px; }

/* ---------- Floating layer forms (term + management dialogs) ---------- */
.layerform {
	position: relative; /* anchor for .lf-close when no inline position is set */
	border: 1px solid var(--line);
	border-radius: 10px;
	box-shadow: var(--shadow-lg);
	padding: 0;
}
.layerform fieldset { border: none; padding: 0 16px 16px; }
/* bootstrap-style modal header */
.layerform legend {
	display: block;
	box-sizing: border-box;
	width: calc(100% + 32px);
	margin: 0 -16px 14px;
	padding: 12px 44px 12px 16px;
	background: var(--accent);
	border-bottom: 1px solid var(--accent-dark);
	font-size: 1.05em;
	font-weight: 600;
	color: var(--ink);
	cursor: default;
}
/* close button injected by nav.js */
.lf-close {
	position: absolute;
	top: 8px;
	right: 10px;
	z-index: 5;
	width: 30px;
	height: 30px;
	min-height: 0;
	padding: 0;
	border: none;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.35);
	font-size: 18px;
	line-height: 1;
	font-weight: 700;
	color: var(--ink);
}
.lf-close:hover { background: rgba(255, 255, 255, 0.75); }
/* assign-location drawer uses an h2 instead of a fieldset legend -
   style it like the amber legend header of the other dialogs */
#new_appoint h2 {
	margin: 0 0 14px;
	padding: 12px 44px 12px 16px;
	background: var(--accent);
	border-bottom: 1px solid var(--accent-dark);
	font-size: 1.05em;
	font-weight: 600;
}
#new_appoint form {
	padding: 0 16px 16px;
	box-sizing: border-box;
}
#new_appoint .carmulti {
	max-height: 200px;
	overflow-y: auto;
	margin-bottom: 10px;
	padding: 4px;
	border: 1px solid var(--line);
	border-radius: 8px;
}
#new_appoint .caropt {
	display: block;
	padding: 6px 9px;
	margin: 3px 0;
	border-radius: 6px;
	background: #f1f5f9;
	font-weight: 400;
	white-space: normal;
}
#new_appoint .dateselect { width: 100% !important; }
#new_appoint #assignappoint { width: 100%; }
#new_appoint #assignappoint td:first-child {
	width: 1%;
	white-space: nowrap;
	padding-right: 10px !important;
}
/* bootstrap-ish vertical form layout */
.layerform form { display: block !important; }
.layerform input[type="text"],
.layerform input[type="password"],
.layerform input[type="date"],
.layerform select,
.layerform textarea {
	box-sizing: border-box;
	width: 100%;
	margin: 3px 0 10px;
	padding: 8px 10px;
}
.layerform textarea { min-height: 64px; }
/* date + time pairs share a row */
.layerform input.dateselect { width: 58% !important; margin-right: 2%; }
.layerform input[id$="Time"] { width: 36% !important; }
/* native color swatch + hex field combo (.colorfield wraps both) */
.layerform .colorfield {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 3px 0 10px;
}
.layerform .colorfield .loccolor { flex: 1 1 0; min-width: 0; margin: 0; }
.layerform input[type="color"].cfswatch {
	-webkit-appearance: none;
	appearance: none;
	flex: 0 0 46px;
	box-sizing: border-box;
	width: 46px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: none;
	cursor: pointer;
}
.layerform .cfswatch::-webkit-color-swatch-wrapper { padding: 3px; }
.layerform .cfswatch::-webkit-color-swatch { border: none; border-radius: 5px; }
.layerform .cfswatch::-moz-color-swatch { border: none; border-radius: 5px; }
/* consistent bootstrap-style action row: full-width stacked buttons */
.layerform input[type="submit"],
.layerform input[type="reset"],
.layerform button:not(.lf-close) {
	display: block;
	box-sizing: border-box;
	width: 100% !important;
	margin: 8px 0 0;
}
/* secondary/cancel actions stay neutral */
.layerform button:not(.lf-close) {
	background: #f1f5f9;
	border-color: var(--line);
}
.layerform button:not(.lf-close):hover { background: #e2e8f0; }
/* delete action is clearly destructive */
.layerform #chgbtndel {
	background: #fee2e2;
	border-color: #fca5a5;
	color: #991b1b !important;
}
.layerform #chgbtndel:hover { background: #fecaca; }
.layerform hr { margin: 8px 0 12px; border-color: var(--line); }
/* section captions ("Mieter" etc.) */
.layerform strong {
	display: block;
	margin: 2px 0 10px;
	font-size: 0.8em;
	font-weight: 700;
	letter-spacing: 0.7px;
	text-transform: uppercase;
	color: var(--muted);
}
/* real field labels sit tight above their input, click focuses the field */
.layerform label.lfield {
	display: block;
	margin: 6px 0 -2px;
	font-size: 0.78em;
	font-weight: 600;
	letter-spacing: 0.3px;
	color: var(--muted);
	cursor: pointer;
}
/* bigger, more readable dialog text */
.layerform,
.layerform input,
.layerform select,
.layerform textarea,
.layerform button { font-size: 15px; }
/* collapsible Mieter section: full-width "mehr anzeigen" row with a green + */
.layerform .mieter-toggle {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	box-sizing: border-box;
	width: 100% !important;
	min-height: 40px;
	padding: 8px 14px;
	margin: 6px 0 14px;
	border: 1px dashed var(--line);
	border-radius: 8px;
	background: #f8fafc;
	color: var(--muted) !important;
	font-size: 0.85em;
	font-weight: 600;
	letter-spacing: 0.3px;
}
.layerform .mieter-toggle:hover {
	background: #f1f5f9;
	border-color: #16a34a;
	color: var(--ink) !important;
}
.mieter-body { display: none; }
/* status radios become labelled segmented chips.
   The German label comes from the span's title attribute. */
.layerform label span.cstat {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 20px;
	margin: 2px 6px 10px 0;
	color: #fff;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
	font-weight: 600;
	cursor: pointer;
	transition: transform 0.08s, box-shadow 0.15s;
}
.layerform label span.cstat::after {
	content: attr(title);
	font-size: 12px;
}
.layerform label span.cstat.cstat-y {
	color: #713f12;
	text-shadow: none;
}
.layerform label span.cstat input[type="radio"] {
	margin: 0;
	width: 14px;
	height: 14px;
}
.layerform label span.cstat:hover { filter: brightness(1.06); }
.layerform label span.cstat:has(input:checked) {
	outline: 2px solid #111;
	outline-offset: 1px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
/* "Stornieren" toggle rendered as a matching neutral chip */
.layerform label span[title="Stornieren"] {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 20px;
	margin: 2px 6px 10px 0;
	background: #f1f5f9;
	border: 1px solid var(--line);
	font-weight: 600;
	cursor: pointer;
}
.layerform label span[title="Stornieren"]:has(input:checked) {
	background: #fee2e2;
	border-color: #fca5a5;
	color: #991b1b;
}
.layerform input.termCustStorno { accent-color: var(--danger); margin: 0; }
#chgtermAdmin { font-weight: 600; color: var(--muted); }
.layerform input[type="radio"], .layerform input[type="checkbox"] { margin: 0 4px 0 0; }

/* right-side drawer on desktop (below the 50px top bar) */
@media (min-width: 761px) {
	.layerform:not(#aTermInfo) {
		position: fixed !important;
		top: 50px !important;
		right: 0 !important;
		bottom: 0 !important;
		left: auto !important;
		width: min(400px, 96vw) !important;
		height: calc(100vh - 50px) !important;
		max-height: calc(100vh - 50px);
		margin: 0 !important;
		border: none;
		border-left: 1px solid var(--line);
		border-radius: 0;
		overflow-y: auto;
		animation: lfSlideRight 0.22s ease;
	}
	.layerform:not(#aTermInfo) legend { border-radius: 0; }
}
/* transform-only: jQuery fadeIn()/show() animates opacity itself */
@keyframes lfSlideRight {
	from { transform: translateX(48px); }
	to   { transform: none; }
}
/* bottom sheet on mobile */
@media (max-width: 760px) {
	.layerform:not(#aTermInfo) {
		position: fixed !important;
		top: auto !important;
		right: 0 !important;
		bottom: 0 !important;
		left: 0 !important;
		width: 100vw !important;
		max-width: none !important;
		height: auto !important;
		max-height: 86vh;
		margin: 0 !important;
		border: none;
		border-top: 1px solid var(--line);
		border-radius: 18px 18px 0 0;
		overflow-y: auto;
		animation: lfSlideUp 0.22s ease;
	}
	/* drag-handle look */
	.layerform:not(#aTermInfo)::before {
		content: "";
		display: block;
		width: 42px;
		height: 4px;
		margin: 8px auto 0;
		border-radius: 4px;
		background: var(--line);
	}
}
@keyframes lfSlideUp {
	from { transform: translateY(48px); }
	to   { transform: none; }
}

/* ---------- jQuery UI polish ---------- */
.ui-widget { font-family: inherit; }
.ui-dialog { border-radius: 10px; box-shadow: var(--shadow-lg); }
.ui-dialog .ui-dialog-titlebar {
	background: #374151;
	color: #fff;
	border: none;
	border-radius: 10px 10px 0 0;
}
.ui-widget-content { border-color: var(--line); }
.ui-state-default, .ui-widget-content .ui-state-default {
	border: 1px solid var(--line);
	background: #f9fafb;
}
.ui-state-hover, .ui-widget-content .ui-state-hover {
	background: var(--accent);
	border-color: var(--accent-dark);
}
.ui-state-active, .ui-widget-content .ui-state-active {
	background: var(--accent-dark);
	border-color: var(--accent-dark);
}
.ui-state-highlight, .ui-widget-content .ui-state-highlight {
	background: #fff7dd;
	border-color: var(--accent);
}

/* ---------- Touch targets ---------- */
.button, .basicbtn, div a.basicbtn,
input[type="submit"], input[type="button"], input[type="reset"],
button { min-height: 34px; }
#menubox li a { min-height: 44px; box-sizing: border-box; display: flex; align-items: center; }
.layerform input[type="radio"], .layerform input[type="checkbox"] {
	width: 18px; height: 18px; vertical-align: middle;
}

/* ---------- Mobile / small screens ---------- */
@media (max-width: 760px) {
	/* slim top bar: just the MENÜ button + the search field */
	#brand, #topuser { display: none; }
	#topsearch { padding: 0 6px; }
	#topsearchbtn { padding: 0 10px; }
	#indexmenu, #logindiv, #userdiv, #locationsdiv,
	#carsdiv, #blacklistdiv, #placelistdiv, #profilediv {
		width: auto;
		margin: 14px 8px;
		padding: 18px 16px;
	}
	#indexmenu img, #logindiv img { max-width: 100%; height: auto; }
	#calmenu { font-size: 10pt; }
	#calmenu a { padding: 10px 12px; }
	/* wrapped filter controls need more room before clipping */
	/* info tooltip stays a compact card on phones */
	#aTermInfo.layerform {
		left: 3vw !important;
		width: 94vw !important;
		max-width: 360px;
		box-sizing: border-box;
	}
	/* 16px inputs stop iOS auto-zoom on focus */
	input, select, textarea { font-size: 16px !important; }
	#tableDiv_General .termname { font-size: 13px; }
	/* registration fieldset no longer fixed-width */
	#logindiv fieldset { width: auto !important; }
}

/* ---------- Coupon pages (Gutscheine / Gutschein bearbeiten) ---------- */
#couponpage {
	padding: 0 14px 24px;
	box-sizing: border-box;
}
#couponpage h3 { margin: 4px 0 12px; font-size: 14pt; }
/* action + filter bar above the coupon list */
#couponbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}
#couponfilters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	flex: 1 1 auto;
	padding: 10px 14px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 10px;
	box-shadow: var(--shadow);
}
#couponfilters label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 9pt;
	font-weight: 600;
	color: var(--muted);
	white-space: nowrap;
}
#couponfilters label.chkstrict { color: var(--ink); font-weight: 500; }
#couponfilters input[type="text"], #couponfilters input[type="date"],
#couponfilters input[type="number"], #couponfilters select {
	min-height: 36px;
	font-size: 10pt;
}
#couponfilters #search { width: 9em; }
#couponfilters #maxRows { width: 5.5em; }
#couponfilters input[name="filter_refresh"] { margin-left: auto; }
/* coupon list: sticky header keeps the 50px MENÜ clearance while scrolling */
table.coupontable { min-width: 100%; }
table.coupontable thead th {
	position: sticky;
	top: 50px;
	z-index: 10;
}
table.coupontable td { white-space: nowrap; }
/* Bemerkung column wraps long remarks */
table.coupontable td:nth-child(13) { white-space: normal; min-width: 160px; }
/* sum row stands out and keeps its colour on striped rows */
.coupontable tr.sumrow td {
	background-color: #fff7dd !important;
	border-top: 2px solid var(--accent-dark) !important;
	font-weight: 700;
}
/* coupon edit form: muted label columns, roomier fields */
.couponform td:nth-child(odd) {
	color: var(--muted);
	font-weight: 600;
	white-space: nowrap;
}
.couponform input[type="text"], .couponform input[type="date"],
.couponform select, .couponform textarea {
	min-height: 36px;
	font-size: 10pt;
}
.couponform td.btnrow { padding-top: 14px !important; }
.couponform td.btnrow input, .couponform td.btnrow a.button { min-height: 40px; }
/* delete action is clearly destructive */
.couponform #delbtn {
	background: #fee2e2;
	border-color: #fca5a5;
	color: #991b1b !important;
}
.couponform #delbtn:hover { background: #fecaca; }

/* small action buttons inside management tables (Bearbeiten/Löschen) */
a.tblbtn {
	display: inline-block;
	min-height: 0;
	padding: 4px 10px;
	border: 1px solid var(--line);
	border-radius: 5px;
	background: #f1f5f9;
	color: var(--ink) !important;
	font-size: 0.85em;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}
a.tblbtn:hover {
	background: #e2e8f0;
	text-decoration: none;
}
a.tblbtn-del {
	background: #fee2e2;
	border-color: #fca5a5;
	color: #991b1b !important;
}
a.tblbtn-del:hover { background: #fecaca; }
/* car assignment action: orange-yellow accent */
a.tblbtn-assign {
	background: var(--accent);
	border-color: var(--accent-dark);
	color: #422006 !important;
}
a.tblbtn-assign:hover { background: #ffc933; }

/* ---------- Right-side iframe drawer (generic) ---------- */
#draweroverlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 300;
	background: rgba(15, 23, 42, 0.45);
}
#iframedrawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 310;
	width: min(600px, 96vw);
	background: var(--bg);
	box-shadow: var(--shadow-lg);
	transform: translateX(105%);
	transition: transform 0.25s ease;
}
body.drawer-open #draweroverlay { display: block; }
body.drawer-open #iframedrawer { transform: translateX(0); }
#drawerframe { display: block; width: 100%; height: 100%; border: 0; }
#drawerclose {
	position: absolute;
	top: 8px;
	right: 10px;
	z-index: 5;
	width: 34px;
	height: 34px;
	min-height: 0;
	padding: 0;
	border: none;
	border-radius: 8px;
	background: var(--card);
	box-shadow: var(--shadow);
	font-size: 20px;
	line-height: 1;
	font-weight: 700;
	color: var(--ink);
}
#drawerclose:hover { background: var(--accent); }
/* pages rendered inside the drawer iframe: no app chrome */
body.in-drawer #topbar,
body.in-drawer #sidenav,
body.in-drawer #navoverlay { display: none; }
body.in-drawer #bodydiv { padding-top: 10px; }
body.in-drawer .mg-actionbox,
body.in-drawer img.logo { display: none; }

/* ---------- Management page headers (title + description + add button) ---------- */
.mgheader {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 18px;
	margin-bottom: 16px;
}
.mgheader h1 { flex: 1 1 100%; margin: 0 0 2px; }
.mgdesc {
	flex: 1 1 auto;
	max-width: 62ch;
	margin: 0;
	color: var(--muted);
	font-size: 0.92em;
	line-height: 1.45;
	text-align: left;
}
div a.mg-addbtn {
	flex: none;
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 0;
	padding: 9px 20px;
	border: none;
	border-radius: 10px;
	background: linear-gradient(#ffc93d, var(--accent));
	box-shadow: 0 1px 2px rgba(66, 32, 6, .25), inset 0 1px 0 rgba(255, 255, 255, .45);
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: .2px;
	text-align: center;
	text-decoration: none;
	transition: transform .12s ease, box-shadow .12s ease;
}
div a.mg-addbtn::before {
	content: "+";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 19px;
	height: 19px;
	flex: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, .85);
	color: #a97a00;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	box-shadow: inset 0 0 0 1px rgba(169, 122, 0, .35);
}
div a.mg-addbtn:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 10px rgba(66, 32, 6, .28), inset 0 1px 0 rgba(255, 255, 255, .45);
	text-decoration: none;
}
div a.mg-addbtn:active { transform: translateY(0); }

/* ---------- User -> car assignment (drag & drop lists) ---------- */
#permssavebar {
	display: none;
	align-items: center;
	gap: 10px;
	position: sticky;
	top: 8px;
	z-index: 20;
	width: fit-content;
	margin: 0 0 12px;
	padding: 8px 12px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}
.uperm-dirtymsg { color: #92400e; font-size: 0.85em; font-weight: 600; }
#availbox {
	max-height: 330px;
	overflow-y: auto;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--card);
	box-shadow: var(--shadow);
	scrollbar-width: thin;
	scrollbar-color: #cbd5e1 transparent;
}
#availbox::-webkit-scrollbar { display: block; width: 8px; }
#availbox::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
#availbox::-webkit-scrollbar-track { background: transparent; }
#availbox .uperm-table { border: none !important; box-shadow: none; border-radius: 0; }
#availbox thead th { position: sticky; top: 0; z-index: 2; background: #f8fafc; }
.uperm-hint { color: var(--muted); font-size: 0.9em; margin: 8px 0 4px; }
.uperm-warn { color: #991b1b; }
.uperm-head { font-size: 1.05em; margin: 22px 0 4px; }
.uperm-count {
	display: inline-block;
	min-width: 1.4em;
	padding: 1px 8px;
	border-radius: 10px;
	background: var(--accent);
	color: #422006;
	font-size: 0.8em;
	font-weight: 700;
	text-align: center;
}
.uperm-sub { color: var(--muted); font-size: 0.85em; margin: 0 0 10px; }
.uperm-table { width: 100%; border: 1px solid var(--line) !important; }
.uperm-table th.col-pos { width: 62px; }
.uperm-table th.col-access { width: 128px; }
.uperm-table th.col-act { width: 108px; text-align: right; }
.uperm-table td.uperm-pos { white-space: nowrap; }
.uperm-table td.uperm-actions { text-align: right; white-space: nowrap; }
.uperm-type { color: var(--muted); font-size: 0.85em; }
/* per-state buttons: only visible in the matching list */
.uperm-row .drag-handle,
.uperm-row .pos-num,
.uperm-row .mv-btn,
.uperm-row .car-remove { display: none; }
.uperm-row.is-assigned .drag-handle,
.uperm-row.is-assigned .pos-num,
.uperm-row.is-assigned .mv-btn,
.uperm-row.is-assigned .car-remove { display: inline-block; }
.uperm-row.is-assigned .car-add { display: none; }
.drag-handle {
	cursor: grab;
	margin-right: 5px;
	color: var(--muted);
	font-size: 14px;
	vertical-align: middle;
}
.drag-handle:active { cursor: grabbing; }
.pos-num {
	display: inline-block;
	min-width: 20px;
	padding: 1px 0;
	border-radius: 10px;
	background: var(--accent);
	color: #422006;
	font-size: 0.8em;
	font-weight: 700;
	text-align: center;
	vertical-align: middle;
}
.mv-btn {
	min-height: 0;
	padding: 2px 7px;
	border-color: var(--line);
	background: #f1f5f9;
	font-size: 10px;
	line-height: 1.5;
}
.mv-btn:hover:not(:disabled) { background: #e2e8f0; }
.mv-btn:disabled { opacity: 0.35; cursor: default; }
.car-add {
	min-height: 0;
	padding: 4px 10px;
	border-color: var(--accent-dark);
	background: var(--accent);
	font-size: 0.85em;
}
.car-add:hover { background: #ffc933; }
.car-remove {
	min-height: 0;
	padding: 2px 9px;
	border-color: #fca5a5;
	background: #fee2e2;
	color: #991b1b !important;
	font-size: 0.9em;
}
.car-remove:hover { background: #fecaca; }
.f-access { width: 100%; padding: 4px 6px; }
.f-access:disabled { opacity: 0.55; }
.access-label { color: var(--ink); }
#availfilter {
	width: 100%;
	box-sizing: border-box;
	margin: 0 0 8px;
	padding: 7px 10px;
}
.uperm-empty {
	padding: 14px;
	border: 1px dashed var(--line);
	border-radius: var(--radius);
	color: var(--muted);
	text-align: center;
	font-size: 0.9em;
}
/* jQuery UI sortable on the assigned tbody */
tr.uperm-ph {
	height: 40px;
	background: #fef3c7;
	outline: 2px dashed var(--accent-dark);
	outline-offset: -2px;
}
#assignedcars .ui-sortable-helper {
	background: #fff;
	box-shadow: var(--shadow);
}

@media (max-width: 760px) {
	.prof-grid { grid-template-columns: 1fr; gap: 4px 0; }
	.prof-grid label { margin-top: 6px; }
	#couponbar, #couponfilters { flex-direction: column; align-items: stretch; }
	#couponfilters label { justify-content: space-between; }
	#couponfilters input:not([type="checkbox"]), #couponfilters select { flex: 1; }
	/* checkbox + caption stay together instead of stretching the box */
	#couponfilters label.chkstrict { justify-content: flex-start; }
	#couponfilters input[name="filter_refresh"] { margin-left: 0; }
	/* sticky header off on phones: the row is wider than the viewport */
	table.coupontable thead th { position: static; }
}

/* ---------- Toast notifications (js/notify.js) ---------- */
#mobnotes {
	position: fixed;
	left: 14px;
	bottom: 14px;
	z-index: 400; /* above drawer (310) and nav overlay (150) */
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-width: min(360px, calc(100vw - 28px));
	pointer-events: none;
}
.mob-note {
	pointer-events: auto;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	box-sizing: border-box;
	background: var(--card);
	border: 1px solid var(--line);
	border-left: 4px solid var(--muted);
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	padding: 10px 12px;
	font-size: 0.9em;
	line-height: 1.4;
	color: var(--ink);
	opacity: 0;
	transform: translateX(-12px);
	transition: opacity 0.18s ease, transform 0.18s ease;
}
.mob-note.mob-note-in { opacity: 1; transform: translateX(0); }
.mob-note.mob-note-out { opacity: 0; transform: translateX(-12px); }
.mob-note-error { border-left-color: var(--danger); }
.mob-note-ok { border-left-color: #16a34a; }
.mob-note-text { flex: 1; overflow-wrap: break-word; }
.mob-note-close {
	all: unset;
	flex: none;
	color: var(--muted);
	font-size: 17px;
	line-height: 1;
	cursor: pointer;
	padding: 0 2px;
}
.mob-note-close:hover { color: var(--ink); }
.req-missing { outline: 2px solid var(--danger) !important; outline-offset: 1px; }
div.req-missing { border: 1px solid var(--danger); border-radius: 6px; }

/* ---------- Readonly term dialog (view-only cars) ---------- */
#chgTermInput.term-readonly input[type="submit"],
#chgTermInput.term-readonly #chgbtndel,
#chgTermInput.term-readonly .lnkdel { display: none !important; }
#chgTermInput.term-readonly input,
#chgTermInput.term-readonly select,
#chgTermInput.term-readonly textarea {
	opacity: 0.65;
	cursor: pointer;
}
