/* Facility-Manager – Oberfläche */
.fcm {
	--fcm-green: #1f5673;
	--fcm-green-2: #2f7a8f;
	--fcm-green-soft: #e6eff4;
	--fcm-bg: #f4f7f9;
	--fcm-card: #ffffff;
	--fcm-text: #1f2a22;
	--fcm-muted: #5f6b62;
	--fcm-border: #d7ddd5;
	--fcm-danger: #b3261e;
	--fcm-warning: #a15c00;
	--fcm-info: #1f5f99;
	--fcm-radius: 8px;
	--fcm-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 1px 6px rgba(0, 0, 0, .04);
	color: var(--fcm-text);
	font-size: 15px;
	line-height: 1.45;
	box-sizing: border-box;
	max-width: 100%;
}
.fcm *, .fcm *::before, .fcm *::after { box-sizing: border-box; }
.fcm a { color: var(--fcm-green); }
.fcm h2 { font-size: 1.35em; margin: 0 0 .4em; line-height: 1.25; }
.fcm h3 { font-size: 1.08em; margin: 0 0 .6em; }
.fcm [hidden] { display: none !important; }
.fcm-muted { color: var(--fcm-muted); font-size: .92em; }
.fcm-desc { color: var(--fcm-muted); margin: 0 0 1em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

/* App-Rahmen */
.fcm-app { background: var(--fcm-bg); border: 1px solid var(--fcm-border); border-radius: var(--fcm-radius); overflow: hidden; }
.fcm-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 16px; background: var(--fcm-green); color: #fff; }
.fcm-top a { color: #fff; }
.fcm-brand { font-size: 1.05em; }
.fcm-user { margin-left: auto; font-size: .92em; }
.fcm-sync { font-size: .88em; background: rgba(255, 255, 255, .15); padding: 3px 10px; border-radius: 99px; }
.fcm-lang-form { margin: 0; }
.fcm-lang-select { min-height: 30px; padding: 2px 6px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .12); color: #fff; font: inherit; font-size: .9em; }
.fcm-lang-select option { color: #1f2a22; }
.fcm-login-lang { text-align: right; margin-bottom: 6px; }
.fcm-login-lang .fcm-lang-select { background: #fff; color: var(--fcm-text); border-color: var(--fcm-border); }
.fcm-nav-toggle { display: none; background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .5); border-radius: 6px; padding: 4px 10px; cursor: pointer; font: inherit; }
.fcm-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 70vh; }
.fcm-nav { background: #fff; border-right: 1px solid var(--fcm-border); padding: 10px 0; font-size: .95em; }
.fcm-nav ul { list-style: none; margin: 0; padding: 0; }
.fcm-nav-group { margin: 0 0 6px; }
.fcm-nav-title { display: block; padding: 8px 16px 4px; font-size: .78em; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--fcm-muted); cursor: pointer; list-style: none; }
.fcm-nav-title::-webkit-details-marker { display: none; }
.fcm-nav li a { display: block; padding: 7px 16px; text-decoration: none; color: var(--fcm-text); border-left: 3px solid transparent; }
.fcm-nav li a:hover, .fcm-nav li a:focus { background: var(--fcm-green-soft); }
.fcm-nav li.is-active a { border-left-color: var(--fcm-green); background: var(--fcm-green-soft); font-weight: 600; }
.fcm-main { padding: 18px 20px 30px; min-width: 0; }
.fcm-single { background: transparent; }

/* Köpfe & Karten */
.fcm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.fcm-head-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.fcm-count { display: inline-block; min-width: 1.8em; padding: 1px 8px; font-size: .7em; vertical-align: middle; background: var(--fcm-green-soft); color: var(--fcm-green); border-radius: 99px; text-align: center; }
.fcm-card { background: var(--fcm-card); border: 1px solid var(--fcm-border); border-radius: var(--fcm-radius); padding: 14px 16px; margin: 0 0 14px; box-shadow: var(--fcm-shadow); }
.fcm-breadcrumb { margin: 0 0 6px; font-size: .92em; }
.fcm-breadcrumb a { text-decoration: none; }
.fcm-empty { padding: 30px; text-align: center; color: var(--fcm-muted); background: #fff; border: 1px dashed var(--fcm-border); border-radius: var(--fcm-radius); }

/* Buttons */
.fcm-btn, .fcm .button-like { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 6px 14px; border: 1px solid var(--fcm-border); border-radius: 6px; background: #fff; color: var(--fcm-text) !important; font: inherit; font-size: .95em; line-height: 1.2; cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.fcm-btn:hover, .fcm-btn:focus-visible { border-color: var(--fcm-green); background: var(--fcm-green-soft); }
.fcm-btn:focus-visible, .fcm-input:focus-visible { outline: 2px solid var(--fcm-green-2); outline-offset: 1px; }
.fcm-btn-primary { background: var(--fcm-green); border-color: var(--fcm-green); color: #fff !important; }
.fcm-btn-primary:hover, .fcm-btn-primary:focus-visible { background: var(--fcm-green-2); color: #fff !important; }
.fcm-btn-danger { color: var(--fcm-danger) !important; border-color: #e6b8b5; }
.fcm-btn-small { min-height: 30px; padding: 3px 10px; font-size: .88em; }
.fcm-btn-large { min-height: 54px; padding: 10px 28px; font-size: 1.15em; }
.fcm-btn-link { border-color: transparent; background: transparent; }
.fcm-btn.is-active { background: var(--fcm-green-soft); border-color: var(--fcm-green); }
.fcm-link-btn { background: none; border: 0; padding: 0; color: var(--fcm-green); text-decoration: underline; cursor: pointer; font: inherit; font-size: .92em; }
.fcm-inline-form { display: inline; margin: 0; }

/* Formulare */
.fcm-input, .fcm select.fcm-input, .fcm textarea.fcm-input { width: 100%; max-width: 100%; min-height: 38px; padding: 6px 10px; border: 1px solid var(--fcm-border); border-radius: 6px; background: #fff; color: var(--fcm-text); font: inherit; font-size: 15px; }
.fcm textarea.fcm-input { min-height: 80px; }
.fcm select[multiple].fcm-input { min-height: 110px; }
.fcm-input-short { width: 110px; }
.fcm-input-unit { display: flex; align-items: stretch; }
.fcm-input-unit .fcm-input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.fcm-unit { display: inline-flex; align-items: center; padding: 0 10px; background: var(--fcm-green-soft); border: 1px solid var(--fcm-border); border-left: 0; border-radius: 0 6px 6px 0; font-size: .88em; color: var(--fcm-muted); white-space: nowrap; }
.fcm-fieldset { border: 1px solid var(--fcm-border); border-radius: var(--fcm-radius); padding: 12px 16px 6px; margin: 0 0 16px; background: #fff; }
.fcm-fieldset legend { padding: 0 6px; font-weight: 700; color: var(--fcm-green); }
.fcm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px 16px; }
.fcm-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; min-width: 0; }
.fcm-field > label { font-weight: 600; font-size: .92em; }
.fcm-field.fcm-wide { grid-column: 1 / -1; }
.fcm-req { color: var(--fcm-danger); }
.fcm-help { color: var(--fcm-muted); font-size: .84em; }
.fcm-error { color: var(--fcm-danger); font-size: .88em; font-weight: 600; }
.fcm-field.has-error .fcm-input { border-color: var(--fcm-danger); }
.fcm-ro { padding: 7px 10px; background: #f3f5f2; border-radius: 6px; min-height: 38px; }
.fcm-checks { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.fcm-check { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; cursor: pointer; min-height: 30px; }
.fcm-check input { width: 18px; height: 18px; }
.fcm-form-actions { display: flex; gap: 8px; flex-wrap: wrap; position: sticky; bottom: 0; padding: 10px 0; background: linear-gradient(to top, var(--fcm-bg) 75%, rgba(246, 247, 244, 0)); }
.fcm-inline { display: inline-flex; align-items: center; gap: 6px; font-size: .9em; }
.fcm-select-filter { margin-bottom: 4px; min-height: 32px; font-size: .9em; }

/* Toolbar */
.fcm-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 10px; padding: 10px; background: #fff; border: 1px solid var(--fcm-border); border-radius: var(--fcm-radius); }
.fcm-toolbar .fcm-input { width: auto; min-width: 140px; max-width: 220px; }
.fcm-toolbar .fcm-search { min-width: 200px; flex: 1 1 200px; max-width: none; }
.fcm-adv { flex-basis: 100%; }
.fcm-adv summary, .fcm-saved summary { cursor: pointer; color: var(--fcm-green); font-size: .92em; }
.fcm-adv-rule { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.fcm-adv-rule .fcm-input { max-width: 230px; }
.fcm-saved { margin: 0 0 12px; font-size: .95em; }
.fcm-saved-list { margin: 6px 0; padding-left: 18px; }
.fcm-saved-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.fcm-saved-form .fcm-input { max-width: 260px; }
.fcm-dropdown { position: relative; display: inline-block; }
.fcm-dropdown > summary { list-style: none; }
.fcm-dropdown > summary::-webkit-details-marker { display: none; }
.fcm-dropdown-menu { position: absolute; right: 0; z-index: 1001; min-width: 190px; background: #fff; border: 1px solid var(--fcm-border); border-radius: 6px; box-shadow: 0 6px 20px rgba(0, 0, 0, .12); padding: 4px 0; }
.fcm-dropdown-menu a { display: block; padding: 8px 14px; text-decoration: none; color: var(--fcm-text); }
.fcm-dropdown-menu a:hover { background: var(--fcm-green-soft); }

/* Tabellen */
.fcm-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.fcm-table { width: 100%; border-collapse: collapse; background: #fff; font-size: .94em; margin: 0 0 12px; }
.fcm-table th, .fcm-table td { padding: 8px 10px; border-bottom: 1px solid var(--fcm-border); text-align: left; vertical-align: top; }
.fcm-table thead th { background: #eef2ec; font-weight: 700; white-space: nowrap; position: sticky; top: 0; }
.fcm-table thead th a { color: var(--fcm-text); text-decoration: none; }
.fcm-table tbody tr:hover { background: #fafbf9; }
.fcm-table tfoot td { background: #f3f5f2; }
.fcm-table-compact th, .fcm-table-compact td { padding: 5px 8px; }
.fcm-num { text-align: right !important; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fcm-cb { width: 34px; }
.fcm-cb input { width: 18px; height: 18px; }
.fcm-row-link { font-weight: 600; }
.fcm-row-actions { white-space: nowrap; font-size: .9em; }
.fcm-row-danger td { background: #fdecea !important; }
.fcm-row-warning td { background: #fff4e0 !important; }
.fcm-sum td { font-weight: 700; background: #f3f5f2; }
.fcm-pos td { color: #1b5e20; }
.fcm-neg td { color: var(--fcm-danger); }
.fcm-bulkbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 8px; font-size: .92em; }
.fcm-bulkbar .fcm-input { width: auto; max-width: 260px; }
.fcm-bulk-value .fcm-input { min-width: 160px; }
.fcm-pagination { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0; }
.fcm-page { display: inline-block; min-width: 34px; padding: 5px 9px; border: 1px solid var(--fcm-border); border-radius: 5px; text-align: center; text-decoration: none; background: #fff; }
.fcm-page.is-current { background: var(--fcm-green); color: #fff; border-color: var(--fcm-green); }

/* Badges */
.fcm-badge { display: inline-block; padding: 1px 9px; border-radius: 99px; font-size: .85em; font-weight: 600; color: var(--fcm-badge, #555); background: color-mix(in srgb, var(--fcm-badge, #555) 13%, white); border: 1px solid color-mix(in srgb, var(--fcm-badge, #555) 35%, white); white-space: nowrap; }

/* Meldungen */
.fcm-notice { padding: 10px 14px; border-radius: 6px; margin: 0 0 12px; border-left: 4px solid var(--fcm-info); background: #eef5fb; }
.fcm-notice ul { margin: 6px 0 0 18px; }
.fcm-notice-success { border-color: #2e7d32; background: #edf7ee; }
.fcm-notice-error { border-color: var(--fcm-danger); background: #fdecea; }
.fcm-notice-warning { border-color: var(--fcm-warning); background: #fff4e0; }

/* Details */
.fcm-detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0 14px; }
.fcm-dl { display: grid; grid-template-columns: minmax(110px, 40%) 1fr; gap: 6px 12px; margin: 0; }
.fcm-dl dt { color: var(--fcm-muted); font-size: .9em; }
.fcm-dl dd { margin: 0; overflow-wrap: anywhere; }
.fcm-dl .fcm-dl-wide { grid-column: 1 / -1; }
.fcm-actions-bar { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 10px; background: var(--fcm-green-soft); border-radius: var(--fcm-radius); }
.fcm-child { margin: 0 0 14px; }
.fcm-child .fcm-head h3 { margin: 0; }
.fcm-history summary { cursor: pointer; font-weight: 600; }
.fcm-delete-form { margin: 18px 0 0; text-align: right; }
.fcm-signature-img { max-width: 320px; max-height: 120px; border: 1px solid var(--fcm-border); background: #fff; }

/* Dateien */
.fcm-file-grid { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.fcm-file { display: flex; flex-direction: column; gap: 3px; font-size: .85em; }
.fcm-file img { width: 100%; height: 110px; object-fit: cover; border-radius: 6px; border: 1px solid var(--fcm-border); }
.fcm-file-video { width: 100%; max-height: 220px; border-radius: 6px; background: #000; }
/* Wildkamera-Bilder */
.fcm-thumb { position: relative; display: inline-block; width: 96px; height: 64px; border-radius: 6px; overflow: hidden; background: var(--fcm-green-soft); vertical-align: middle; }
.fcm-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fcm-thumb-video { display: inline-flex; align-items: center; justify-content: center; color: var(--fcm-green); font-size: 22px; }
.fcm-thumb-count { position: absolute; right: 3px; bottom: 3px; background: rgba(0, 0, 0, .65); color: #fff; border-radius: 999px; padding: 0 6px; font-size: 11px; line-height: 16px; }
.fcm-cam-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.fcm-cam-grid a { display: block; color: inherit; text-decoration: none; }
.fcm-cam-grid .fcm-thumb { width: 100%; height: 100px; }
.fcm-cam-grid span:last-child { display: block; font-size: .8em; color: var(--fcm-muted); margin-top: 2px; }
.fcm-file-icon { display: flex; align-items: center; justify-content: center; height: 110px; border-radius: 6px; background: var(--fcm-green-soft); font-weight: 700; text-decoration: none; }
.fcm-file-title { font-weight: 600; overflow-wrap: anywhere; }
.fcm-upload-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fcm-upload-form .fcm-input { max-width: 240px; }

/* Karten */
.fcm-map { width: 100%; height: 340px; border-radius: var(--fcm-radius); border: 1px solid var(--fcm-border); z-index: 0; }
.fcm-map-large { height: 68vh; min-height: 420px; }
.fcm-map-small { height: 300px; }
.fcm-geo-map { width: 100%; height: 360px; border-radius: var(--fcm-radius); border: 1px solid var(--fcm-border); z-index: 0; }
.fcm-geo-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0; }
.fcm-geo-info { font-weight: 600; }
.fcm-geo-rawbox summary { cursor: pointer; font-size: .88em; color: var(--fcm-muted); }
.fcm-map-locate { width: 34px; height: 34px; border: 2px solid rgba(0, 0, 0, .2); border-radius: 4px; background: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.fcm-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; margin: 0 0 8px; padding: 0; font-size: .88em; }
.fcm-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.fcm .leaflet-container a { color: var(--fcm-green); }

/* Positionen, Checkliste, Unterschrift */
.fcm-lines-table td { min-width: 90px; }
.fcm-lines-table td[data-sub="beschreibung"] { min-width: 220px; }
.fcm-lines-total { margin-left: 10px; }
.fcm-cl-row { display: grid; grid-template-columns: minmax(180px, 1fr) auto minmax(140px, 220px); gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--fcm-border); }
.fcm-cl-opts { display: flex; gap: 10px; }
.fcm-cl-opts label { display: inline-flex; gap: 4px; align-items: center; cursor: pointer; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--fcm-border); }
.fcm-cl-opts .fcm-cl-ok:has(input:checked) { background: #edf7ee; border-color: #2e7d32; }
.fcm-cl-opts .fcm-cl-mangel:has(input:checked) { background: #fdecea; border-color: var(--fcm-danger); }
.fcm-checklist-view { list-style: none; margin: 0; padding: 0; }
.fcm-checklist-view li { padding: 4px 0; border-bottom: 1px dotted var(--fcm-border); }
.fcm-cl-status { display: inline-block; min-width: 70px; font-weight: 700; font-size: .85em; }
.fcm-cl-ok .fcm-cl-status { color: #2e7d32; }
.fcm-cl-mangel .fcm-cl-status { color: var(--fcm-danger); }
.fcm-cl-open .fcm-cl-status { color: var(--fcm-warning); }
.fcm-sig-canvas { width: 100%; max-width: 600px; height: auto; aspect-ratio: 3 / 1; border: 1px dashed #9aa89d; border-radius: 6px; background: #fff; touch-action: none; cursor: crosshair; display: block; }

/* Dashboard */
.fcm-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 0 0 16px; }
.fcm-tile { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: #fff; border: 1px solid var(--fcm-border); border-radius: var(--fcm-radius); text-decoration: none !important; color: var(--fcm-text) !important; box-shadow: var(--fcm-shadow); }
.fcm-tile:hover { border-color: var(--fcm-green); }
.fcm-tile-value { font-size: 1.6em; font-weight: 700; color: var(--fcm-green); font-variant-numeric: tabular-nums; }
.fcm-tile-label { color: var(--fcm-muted); font-size: .9em; }
.fcm-quick { display: flex; flex-wrap: wrap; gap: 8px; }
.fcm-due, .fcm-activity, .fcm-today { list-style: none; margin: 0; padding: 0; }
.fcm-due li, .fcm-activity li, .fcm-today li { padding: 6px 0; border-bottom: 1px solid var(--fcm-border); }
.fcm-due li.fcm-row-danger { color: var(--fcm-danger); }
.fcm-due-date { display: inline-block; min-width: 52px; font-variant-numeric: tabular-nums; color: var(--fcm-muted); }
.fcm-report-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.fcm-report-grid ul { margin: 0; padding-left: 18px; }
.fcm-report-grid li { margin: 4px 0; }

/* Login */
.fcm-login { max-width: 460px; margin: 20px auto; }
.fcm-login input[type="text"], .fcm-login input[type="password"] { width: 100%; min-height: 40px; padding: 6px 10px; border: 1px solid var(--fcm-border); border-radius: 6px; }
.fcm-login .button, .fcm-login input[type="submit"] { min-height: 40px; padding: 6px 18px; background: var(--fcm-green); color: #fff; border: 0; border-radius: 6px; cursor: pointer; }

/* App-QR */
.fcm-qr svg { width: 100%; height: auto; max-width: 260px; display: block; }
.fcm-qr-large svg { max-width: 320px; }

/* Backend */
.fcm-admin-wrap .fcm-app { margin-top: 10px; }
.fcm-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.fcm-admin-box { border: 1px solid #dcdcde; padding: 8px 12px; background: #fff; margin: 0 0 10px; }
.fcm-matrix td, .fcm-matrix th { text-align: center; }
.fcm-matrix td:first-child { text-align: left; }

/* Mobil */
@media (max-width: 900px) {
	.fcm-layout { grid-template-columns: 1fr; }
	.fcm-nav-toggle { display: inline-block; }
	.fcm-nav { display: none; border-right: 0; border-bottom: 1px solid var(--fcm-border); }
	.fcm-nav-open .fcm-nav { display: block; }
	.fcm-main { padding: 14px 12px 24px; }
	.fcm-user { margin-left: 0; flex-basis: 100%; }
}
@media (max-width: 640px) {
	.fcm { font-size: 16px; }
	.fcm-toolbar .fcm-input, .fcm-toolbar .fcm-search { max-width: none; width: 100%; flex: 1 1 100%; }
	.fcm-list thead { display: none; }
	.fcm-list, .fcm-list tbody, .fcm-list tr, .fcm-list td, .fcm-list tfoot { display: block; width: 100%; }
	.fcm-list tr { border: 1px solid var(--fcm-border); border-radius: var(--fcm-radius); margin: 0 0 10px; background: #fff; padding: 4px 0; }
	.fcm-list td { border: 0; padding: 4px 12px; text-align: left !important; }
	.fcm-list td[data-label]::before { content: attr(data-label) ": "; color: var(--fcm-muted); font-size: .88em; }
	.fcm-list td.fcm-cb { float: right; width: auto; }
	.fcm-grid { grid-template-columns: 1fr; }
	.fcm-dl { grid-template-columns: 1fr; gap: 0 0; }
	.fcm-dl dt { margin-top: 6px; }
	.fcm-cl-row { grid-template-columns: 1fr; }
	.fcm-map-large { height: 60vh; min-height: 320px; }
	.fcm-btn { min-height: 44px; }
	.fcm-lines-table thead { display: none; }
	.fcm-lines-table tr { display: block; border: 1px solid var(--fcm-border); border-radius: 6px; margin: 0 0 8px; padding: 6px; }
	.fcm-lines-table td { display: block; border: 0; padding: 3px; }
	.fcm-lines-table td[data-label]::before { content: attr(data-label); display: block; font-size: .8em; color: var(--fcm-muted); }
}

/* Druck aus dem Portal */
@media print {
	.fcm-nav, .fcm-top, .fcm-toolbar, .fcm-head-actions, .fcm-bulkbar, .fcm-saved, .fcm-actions-bar, .fcm-delete-form, .fcm-upload-form, .fcm-form-actions, .fcm-cb, .fcm-row-actions { display: none !important; }
	.fcm-layout { display: block; }
	.fcm-app { border: 0; }
}

/* Lizenz / Editionen */
.fcm-tier-badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 1.6; vertical-align: middle; background: #e6ece7; color: #2f4a35; }
.fcm-tier-premium { background: #fff1d6; color: #7a4b00; }
.fcm-tier-professional { background: #1f4d2b; color: #fff; }
.fcm-upgrade { border-left-width: 4px; }
.fcm-upgrade a { font-weight: 600; margin-left: .35em; }
.fcm-license-page .fcm-admin-box { max-width: 900px; background: #fff; border: 1px solid #dcdcde; border-radius: 6px; padding: 12px 18px; margin: 16px 0; }
.fcm-license-facts th { width: 38%; }
.fcm-license-status { font-weight: 600; }
.fcm-license-error { color: #b32d2e; }
.fcm-license-warning { color: #8a5a00; }
.fcm-license-compare { max-width: 900px; margin-top: 8px; }
.fcm-license-compare th, .fcm-license-compare td { text-align: center; }
.fcm-license-compare th:first-child, .fcm-license-compare td:first-child { text-align: left; }
.fcm-license-compare thead th.is-current { background: #1f4d2b; color: #fff; }
.fcm-license-compare .fcm-compare-group th { background: #f0f3f1; text-align: left; font-weight: 600; }
.fcm-license-compare .fcm-yes { color: #1f7a3a; font-weight: 700; }
.fcm-license-compare .fcm-no { color: #a7aaad; }

/* Datensicherung (Backend) */
.fcm-backup-page .fcm-admin-box { max-width: 1000px; background: #fff; border: 1px solid #dcdcde; border-radius: 6px; padding: 10px 18px; margin: 16px 0; }
.fcm-backup-page .fcm-backup-dest legend { padding: 0 6px; font-size: 14px; }
.fcm-backup-ok { color: #1f7a3a; font-weight: 600; }
.fcm-backup-fail { color: #b32d2e; font-weight: 600; }
.fcm-backup-log li { margin-bottom: 8px; }
.fcm-backup-page form { display: inline; }
.fcm-backup-page .fcm-admin-box > form, .fcm-backup-page > form { display: block; }


/* Facility-Manager: Ampel, Ansitzübersicht, Leitstand */
.fcm-ampel { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px; }
.fcm-ampel-item { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .9em; border: 1px solid transparent; }
.fcm-ampel-gruen { background: #e3f1e0; color: #1b5e20; border-color: #a5d6a7; }
.fcm-ampel-rot { background: #fdecea; color: #b3261e; border-color: #f5c2bd; }
.fcm-row-ok td { background: #eef7ec; }
.fcm-rules { margin: 0 0 8px; padding-left: 18px; }
.fcm-inline-form { display: inline; margin: 0; }
.fcm-leitstand-meta { font-weight: 600; }
.fcm-leitstand-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.fcm-feed { list-style: none; margin: 0; padding: 0; max-height: 560px; overflow: auto; }
.fcm-feed li { padding: 6px 8px; border-left: 4px solid #90a4ae; margin-bottom: 4px; background: #fafafa; border-radius: 4px; }
.fcm-feed-sichtung { border-left-color: #1565c0 !important; }
.fcm-feed-erlegung { border-left-color: #2e7d32 !important; }
.fcm-feed-anschuss { border-left-color: #ef6c00 !important; background: #fff4e5 !important; }
.fcm-feed-notfall { border-left-color: #b3261e !important; background: #fdecea !important; font-weight: 700; }
.fcm-feed-done { opacity: .55; }
/* Kartenfeld: Position per Klick */
.fcm-geo-pick.leaflet-container { cursor: crosshair; }
.fcm-geo-hint { margin: 4px 0 2px; }
.fcm-child-more { margin: 8px 0 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
/* Bearbeitungsfenster: Löschen rechts in der Knopfleiste */
.fcm-form-delete { margin-left: auto; }

/* Filterleiste der Kartenübersicht */
.fcm-mapfilter { margin: 0 0 8px; padding: 8px 10px; border: 1px solid var(--fcm-border, #dcdcde); border-radius: 8px; background: #fff; font-size: .92em; }
.fcm-mf-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.fcm-mf-row input[type="search"] { flex: 1 1 200px; min-width: 0; }
.fcm-mf-row input, .fcm-mf-row select { min-height: 34px; padding: 4px 8px; border: 1px solid var(--fcm-border, #dcdcde); border-radius: 6px; background: #fff; font: inherit; max-width: 100%; }
.fcm-mf-row .fcm-btn { min-height: 34px; padding: 4px 10px; }
.fcm-mf-custom { display: inline-flex; align-items: center; gap: 4px; }
.fcm-mf-check { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.fcm-mf-count { margin-left: auto; color: #50575e; white-space: nowrap; }
.fcm-mapfilter.is-empty .fcm-mf-count { color: #b32d2e; font-weight: 600; }
.fcm-mf-layers, .fcm-mf-catrow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 8px; }
.fcm-mf-catrow { margin-top: 4px; }
.fcm-mf-catlabel { font-weight: 600; margin-right: 2px; }
.fcm-mf-chip, .fcm-mf-cat { display: inline-flex; align-items: center; gap: 2px; padding: 3px 9px; border: 1px solid var(--fcm-border, #dcdcde); border-radius: 999px; background: #fff; color: inherit; font: inherit; font-size: .95em; line-height: 1.3; cursor: pointer; }
.fcm-mf-chip small { color: #646970; }
.fcm-mf-chip.is-on { background: var(--fcm-green-soft, #eaf1eb); border-color: var(--fcm-green, #2e7d32); }
.fcm-mf-chip:not(.is-on) { opacity: .6; }
.fcm-mf-chip:not(.is-on) .fcm-swatch { background: #c3c4c7 !important; }
.fcm-mf-cat { font-size: .88em; padding: 2px 8px; }
.fcm-mf-cat.is-off { opacity: .5; text-decoration: line-through; }
.fcm-mf-catall { border: 0; background: none; padding: 2px 4px; font: inherit; font-size: .85em; color: var(--fcm-green, #2e5e3a); text-decoration: underline; cursor: pointer; }
.fcm-mf-chip:focus-visible, .fcm-mf-cat:focus-visible { outline: 2px solid var(--fcm-green-2, #1b5e20); outline-offset: 1px; }
.fcm-map-photo { display: block; width: 220px; max-width: 100%; height: auto; margin: 6px 0 2px; border-radius: 4px; }
@media (max-width: 600px) {
	.fcm-mf-row input[type="search"] { flex-basis: 100%; }
	.fcm-mf-count { margin-left: 0; width: 100%; }
}

/* Wildkamera-Bilder: groß oben in der Detailansicht, neue Bilder auf der Übersicht. */
.fcm-media { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 10px; }
.fcm-media a { display: block; }
.fcm-media img, .fcm-media video { display: block; width: 100%; max-height: 70vh; object-fit: contain; background: #111; border-radius: 6px; }
.fcm-media-cap { margin: 6px 0 0; }
.fcm-dash-cams .fcm-cam-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fcm-dash-cams .fcm-cam-grid .fcm-thumb { height: auto; aspect-ratio: 4 / 3; }
@media (max-width: 600px) { .fcm-dash-cams .fcm-cam-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fcm-dash-cams-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }

/* ---------- Facility-Manager ---------- */
.fcm-light { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: .86em; line-height: 1.6; border: 1px solid transparent; white-space: nowrap; }
.fcm-light-gruen { background: #e3f1e0; color: #1b5e20; border-color: #a5d6a7; }
.fcm-light-gelb { background: #fff4d6; color: #7a4f00; border-color: #f2d27a; }
.fcm-light-rot { background: #fdecea; color: #b3261e; border-color: #f5c2bd; }
.fcm-light-grau { background: #eef0f1; color: #4d5559; border-color: #d3d8db; }
.fcm-tile-alert { border-color: #f5c2bd; background: #fff8f7; }
.fcm-tile-alert .fcm-tile-value { color: var(--fcm-danger); }
.fcm-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 6px 0 10px; }
.fcm-kpi { display: flex; flex-direction: column; padding: 10px 12px; border: 1px solid var(--fcm-border); border-radius: var(--fcm-radius); background: #fff; }
.fcm-kpi strong { font-size: 1.5em; color: var(--fcm-green); font-variant-numeric: tabular-nums; }
.fcm-kpi span { color: var(--fcm-muted); font-size: .9em; }
.fcm-timer { font-weight: 600; color: var(--fcm-green); margin: 0 0 6px; }
.fcm-timer-card { border-left: 4px solid var(--fcm-green); }
.fcm-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.fcm-thumbs img { width: 120px; height: 90px; object-fit: cover; border-radius: 6px; border: 1px solid var(--fcm-border); }
.fcm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.fcm-task { border-left: 5px solid var(--fcm-border); }
.fcm-task h3 { margin: 0 0 6px; font-size: 1.05em; }
.fcm-task p { margin: 4px 0; }
.fcm-prio-dringend { border-left-color: #c62828; }
.fcm-prio-hoch { border-left-color: #ef6c00; }
.fcm-prio-normal { border-left-color: #1565c0; }
.fcm-prio-niedrig { border-left-color: #9e9e9e; }
.fcm-input-small { width: auto; min-width: 7em; max-width: 100%; display: inline-block; }
.fcm-field-error { display: block; color: var(--fcm-danger); font-size: .9em; margin-top: 2px; }
.fcm-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Öffentliche Formulare */
.fcm-public { max-width: 820px; }
.fcm-public .fcm-card { padding: 18px 20px; }
.fcm-public h2 { margin-top: 0; }
.fcm-pub-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 14px; }
.fcm-pub-row > p { margin: 0 0 12px; }
.fcm-pub-form fieldset { border: 1px solid var(--fcm-border); border-radius: var(--fcm-radius); padding: 8px 12px 10px; margin: 0 0 14px; }
.fcm-pub-form legend { font-weight: 600; padding: 0 4px; }
.fcm-pub-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 4px 14px; }
.fcm-pub-ort { padding: 10px 12px; background: var(--fcm-green-soft); border-radius: var(--fcm-radius); margin: 0 0 12px; }
.fcm-pub-ds { font-size: .85em; }
.fcm-pub-katalog input { width: 6em; }
.fcm-pub-status dd { margin-bottom: 8px; }

/* Grundriss */
.fcm-plan-svg { border: 1px solid var(--fcm-border); border-radius: var(--fcm-radius); background: #fff; padding: 6px; overflow: auto; }
.fcm-plan-svg svg { width: 100%; height: auto; max-height: 75vh; display: block; }
.fcm-plan-svg polygon { stroke: #37474f; stroke-width: .06; vector-effect: non-scaling-stroke; fill: #eef3f6; }
.fcm-plan-svg a:hover polygon, .fcm-plan-svg a:focus polygon { fill: #cfe3ee; }
.fcm-plan-svg polygon.fcm-plan-rot { fill: #f8c9c4; }
.fcm-plan-svg polygon.fcm-plan-orange { fill: #ffd9a8; }
.fcm-plan-svg polygon.fcm-plan-aus { fill: #e0e0e0; }
.fcm-plan-svg text { fill: #263238; font-family: inherit; pointer-events: none; }
.fcm-plan-img { position: relative; display: inline-block; max-width: 100%; border: 1px solid var(--fcm-border); border-radius: var(--fcm-radius); overflow: hidden; background: #fff; }
.fcm-plan-img img { display: block; max-width: 100%; height: auto; }
.fcm-plan-editable img { cursor: crosshair; }
.fcm-plan-pin { position: absolute; transform: translate(-50%, -50%); min-width: 22px; padding: 1px 5px; border-radius: 11px; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; text-decoration: none !important; color: #fff !important; background: #2e7d32; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.fcm-plan-pin.fcm-plan-rot { background: #c62828; }
.fcm-plan-pin.fcm-plan-orange { background: #ef6c00; }
.fcm-plan-pin.fcm-plan-aus { background: #9e9e9e; }
.fcm-plan-pin.fcm-plan-neu { background: var(--fcm-green); }
.fcm-plan-legend { font-size: .9em; color: var(--fcm-muted); }
.fcm-plan-key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-left: 8px; background: #eef3f6; border: 1px solid #90a4ae; }
.fcm-plan-key.fcm-plan-rot { background: #f8c9c4; }
.fcm-plan-key.fcm-plan-orange { background: #ffd9a8; }
.fcm-plan-form { margin-top: 8px; }

/* Sicherheitsdienst & Pforte */
.fcm-btn-danger.fcm-btn { background: #c62828; color: #fff !important; border-color: #c62828; }
.fcm-sos-form { margin-top: .6rem; }
.fcm-duty-card .fcm-actions-bar { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.fcm-duty-end .fcm-input { min-width: 14rem; }
.fcm-progress { height: .55rem; background: #e3ecef; border-radius: 999px; overflow: hidden; margin: .4rem 0; }
.fcm-progress span { display: block; height: 100%; background: var(--fcm-primary, #1f5673); }
.fcm-checkpoints .fcm-checkpoint.is-done { opacity: .75; border-left: 4px solid #2e7d32; }
.fcm-checkpoints .fcm-checkpoint.is-scanned { outline: 3px solid #f9a825; opacity: 1; }
.fcm-scan-form .fcm-input { width: 100%; margin: .3rem 0; }
.fcm-scan-form .fcm-actions-bar { display: flex; flex-wrap: wrap; gap: .35rem; }
.fcm-rounds, .fcm-list-plain { list-style: none; margin: 0; padding: 0; }
.fcm-rounds li, .fcm-list-plain li { padding: .45rem 0; border-bottom: 1px solid #e6edf0; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.fcm-contacts a { font-weight: 600; }

/* Dienstplan (Wochenansicht) */
.fcm-plan-week th, .fcm-plan-week td { vertical-align: top; min-width: 7.5rem; }
.fcm-plan-week tbody th { white-space: nowrap; }
.fcm-plan-item { display: block; font-size: .82rem; line-height: 1.25; padding: .2rem .35rem; margin: 0 0 .2rem; border-radius: .3rem; background: #e3eef3; color: #12384b; text-decoration: none; border-left: 3px solid #1f5673; }
.fcm-plan-item.fcm-plan-im_dienst { background: #e3f3e6; border-left-color: #2e7d32; }
.fcm-plan-item.fcm-plan-beendet { background: #eef0f1; border-left-color: #757575; color: #455a64; }
.fcm-plan-item.fcm-plan-abw { background: #fdeceb; border-left-color: #c62828; color: #8e1c1c; }

/* Veranstaltungslage */
.fcm-va-stand { border-left: 6px solid #9e9e9e; }
.fcm-va-stand.fcm-va-gruen { border-left-color: #2e7d32; }
.fcm-va-stand.fcm-va-gelb { border-left-color: #f9a825; }
.fcm-va-stand.fcm-va-rot { border-left-color: #c62828; background: #fdecea; }
.fcm-va-zahl { font-size: 2.6rem; font-weight: 700; line-height: 1.1; margin: .2rem 0 .5rem; }
.fcm-va-zahl small { font-size: 1.1rem; font-weight: 600; color: #5b6573; }
.fcm-va-bar { position: relative; height: 14px; border-radius: 7px; background: #e6eaef; overflow: hidden; margin-bottom: .6rem; }
.fcm-va-bar span { display: block; height: 100%; background: #2e7d32; }
.fcm-va-gelb .fcm-va-bar span { background: #f9a825; }
.fcm-va-rot .fcm-va-bar span { background: #c62828; }
.fcm-va-bar i { position: absolute; top: 0; bottom: 0; width: 2px; background: #1b2f4b; }
.fcm-va-count { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .5rem 0; }
.fcm-va-count label { display: inline-flex; gap: .3rem; align-items: center; }
