/* AKTA Hotel-Cockpit: Ergänzungen zu tms.css und cockpit.css (TREVALON-CI) */
.brandplate { display: block; background: var(--ivory); border-radius: var(--radius-sm); padding: .9rem .9rem .7rem; margin: 0 .2rem 1.4rem; text-decoration: none; }
.brandplate > img { display: block; width: 100%; max-width: 200px; height: auto; }
.brandplate .by { display: flex; align-items: center; justify-content: space-between; gap: .35rem; margin-top: .6rem; font: 500 .62rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--stone); white-space: nowrap; }
.brandplate .by span { display: inline-flex; align-items: center; gap: .3rem; text-transform: none; letter-spacing: 0; font-size: .7rem; }
.brandplate .by img { height: 10px; width: auto; }
.mobile-logo { background: var(--ivory); padding: 4px 6px; border-radius: 4px; height: auto; }
@media (max-width: 900px) { .brandplate { display: none; } }

.demo-switch { display: flex; align-items: center; gap: .5rem; color: var(--ivory); font-size: .9rem; margin-bottom: .6rem; cursor: pointer; }
.demo-switch input { width: 18px; height: 18px; accent-color: var(--champ); }
.demo-banner { background: #FCE8B2; color: #5A4300; border: 1px solid #E9C96B; border-radius: var(--radius-sm); padding: .7rem 1rem; margin-bottom: 1.2rem; display: flex; gap: 1rem; justify-content: space-between; align-items: center; flex-wrap: wrap; }

.periodbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1.2rem; }
.periodbar .chipbtn { --h: 34px; padding: 0 .95rem; font-size: .86rem; }
.periodbar .chipbtn[aria-pressed=true] { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.periodbar input[type=date] { width: auto; padding: .4rem .6rem; }
.periodbar .asof { margin-left: auto; font-size: .82rem; color: var(--stone); }

.kpi .sub { display: block; font-size: .8rem; color: var(--stone); margin-top: .3rem; }
.kpi.neg .num { color: #9C0006; }

table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th, table.data td { padding: .6rem .55rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.data th { white-space: nowrap; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data tbody tr.click { cursor: pointer; }
table.data tbody tr.click:hover td { background: rgba(201, 168, 110, .08); }
table.data tbody tr.click:focus-visible { outline: 2px solid var(--brass); outline-offset: -2px; }
table.data tfoot td { font-weight: 600; border-top: 2px solid var(--line-2); }
.neg { color: #9C0006; }
.pos { color: #1E5E2A; }
.muted-row td { color: var(--stone-light); }

.ampel { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600; }
.ampel::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: #B9B3A8; flex: none; }
.ampel.rot::before { background: #C0392B; }
.ampel.gelb::before { background: #E0A800; }
.ampel.gruen::before { background: #2E8B57; }

.bar { position: relative; height: 8px; background: var(--line); border-radius: 4px; min-width: 80px; overflow: hidden; }
.bar span { position: absolute; top: 0; bottom: 0; border-radius: 4px; }
.bar span.p { left: 50%; background: #2E8B57; }
.bar span.n { right: 50%; background: #C0392B; }
.bar::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--stone-light); }

.recs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.recs li { border-left: 4px solid var(--line-2); padding: .55rem .8rem; background: var(--panel); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.recs li.kritisch { border-color: #C0392B; background: #FBEDEB; }
.recs li.warnung { border-color: #E0A800; background: #FDF6E0; }
.recs li.gut { border-color: #2E8B57; background: #ECF6EF; }
.recs li .who { font-weight: 600; margin-right: .4rem; }

.waterfall { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; }
.waterfall div { padding: .45rem 0; border-bottom: 1px solid var(--line); }
.waterfall .t { font-weight: 600; border-bottom: 2px solid var(--line-2); }
.waterfall .num { text-align: right; font-variant-numeric: tabular-nums; }
.waterfall .ind { padding-left: 1.2rem; color: var(--stone); font-size: .88rem; }

.chart { display: flex; align-items: flex-end; gap: 6px; height: 180px; padding: 0 0 1.6rem; position: relative; border-bottom: 1px solid var(--line-2); }
.chart .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; position: relative; }
.chart .col .b { width: 70%; border-radius: 3px 3px 0 0; min-height: 2px; }
.chart .col .b.p { background: #2E8B57; }
.chart .col .b.n { background: #C0392B; }
.chart .col .m { position: absolute; bottom: -1.4rem; font-size: .7rem; color: var(--stone); }

.toolbar { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.toolbar input[type=search], .toolbar select, .toolbar input[type=date] { width: auto; padding: .45rem .8rem; }
.toolbar .spacer { flex: 1; }
.formgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 1.2rem; }
.formgrid .wide { grid-column: 1 / -1; }
.req::after { content: " *"; color: #9C0006; }
.mapping td select { min-width: 220px; }
.mapping .ex { color: var(--stone); font-size: .82rem; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.errlist { max-height: 260px; overflow: auto; font-size: .86rem; }
.steps-nav { display: flex; gap: .6rem; margin-bottom: 1rem; color: var(--stone); font-size: .86rem; }
.steps-nav b { color: var(--ink); }
@media print { .side, .mobilebar, .noprint, .periodbar { display: none !important; } body.cockpit { display: block; } }

/* Breite Tabellen scrollen innerhalb der Karte statt die Seite zu verbreitern */
body.cockpit { grid-template-columns: 264px minmax(0, 1fr); }
.table-wrap { overflow-x: auto; max-width: 100%; }
table.data td.hotel { min-width: 180px; }
.kpi .num { font-size: clamp(1.5rem, 2.1vw, 2.1rem); white-space: nowrap; }