/* GEMAXX Bookingsoftware – Anpassungen */
.navbar.bg-primary { background: linear-gradient(90deg, #0B1B33 0%, #16325C 100%) !important; }
/* Seite passt ins Fenster: kein waagerechtes Herausragen */
html, body { max-width: 100%; overflow-x: clip; }
.navbar > .container-fluid { flex-wrap: nowrap; min-width: 0; }
.navbar .navbar-nav .nav-link { white-space: nowrap; }
@media (min-width: 1200px) and (max-width: 1499.98px) {
    .navbar .navbar-nav .nav-link { padding-left: .55rem !important; padding-right: .55rem !important; font-size: .92rem; }
}
.gx-dashlink { color: #fff !important; font-weight: 600; letter-spacing: .02em; padding: .35rem .8rem; margin-right: .75rem; border-radius: 8px; white-space: nowrap; }
.gx-dashlink:hover, .gx-dashlink.active { background: rgba(255,255,255,.14); }
.gx-logo-small img { display: block; opacity: .95; }
.gx-logo-small:hover img { opacity: 1; }
@media (max-width: 1399.98px) { .gx-logo-small img { height: 20px; } }

/* Heutiger Tag in der Belegungsübersicht */
#reservation-table th.gx-today {
    background: #F7B84B !important;
    color: #3B2A08 !important;
    font-weight: 700;
    box-shadow: inset 0 -3px 0 #D9861A;
}
.gx-today-col {
    position: absolute;
    pointer-events: none;
    background: rgba(247, 184, 75, .16);
    border-left: 2px solid rgba(217, 134, 26, .75);
    border-right: 2px solid rgba(217, 134, 26, .75);
    z-index: 2;
}
.gx-today-badge {
    position: absolute;
    pointer-events: none;
    z-index: 3;
    transform: translateX(-50%);
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #fff;
    background: #D9861A;
    border-radius: 6px;
    padding: 1px 6px;
}

/* Login */
.gx-login-logo { max-width: 300px; width: 100%; height: auto; }

/* Reservierungsfenster */
.gx-doc-btn { background: #fff; color: #16325C; border: 1px solid rgba(22,50,92,.25); border-radius: 8px; }
.gx-doc-btn:hover { background: #16325C; color: #fff; border-color: #16325C; }
.gx-doc-btn .fa-file-pdf { color: #C0392B; }
.gx-doc-btn:hover .fa-file-pdf { color: #fff; }
.modal-footer { gap: .5rem; }

/* Aktives Hotel in der Menüleiste */
.gx-hotel-pill { display:inline-flex; align-items:center; color:#fff !important; text-decoration:none; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.25); border-radius:999px; padding:.25rem .75rem; font-size:.88rem; white-space:nowrap; }
.gx-hotel-pill:hover { background:rgba(255,255,255,.22); }

/* Gruppenbuchung */
.gx-group-card { border:1px solid rgba(22,50,92,.18); border-left:4px solid #E3A33B; border-radius:10px; padding:.6rem .8rem; background:#fffaf0; }
.gx-group-icon { width:34px; height:34px; border-radius:10px; background:#16325C; color:#fff; display:inline-flex; align-items:center; justify-content:center; }
.gx-room-chip { display:inline-block; min-width:2.2rem; text-align:center; font-weight:700; border-radius:7px; padding:.05rem .4rem; background:rgba(22,50,92,.08); color:#16325C; }

/* Zahlungen im Reservierungsfenster */
.gx-pay-card { border:1px solid rgba(15,157,138,.25); border-left:4px solid #0F9D8A; border-radius:10px; padding:.6rem .8rem; background:#f3fbf9; }
/* GoBD: Rechnungen nicht löschen, Nummern nicht ändern (Korrektur nur per Storno im Bereich Kasse) */
[data-url*="/edit/number/show"], [data-bs-content*="/invoices/invoice/delete"] { display:none !important; }

/* Globale Suche */
.gx-search-input { width: 15rem; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color:#fff; }
.gx-search-input::placeholder { color: rgba(255,255,255,.7); }
.gx-search-input:focus { background:#fff; color:#1d2433; width: 22rem; }
.gx-search-results { top: 100%; right: 0; left: auto; min-width: 26rem; max-height: 70vh; overflow:auto; }
.gx-search-results .dropdown-item { white-space: normal; }
@media (max-width: 991px) { .gx-search-input { width: 9rem; } .gx-search-input:focus { width: 14rem; } .gx-search-results { min-width: 18rem; } }
.gx-room-i { font-size: .8rem; }

/* Navigation 2026-11-25: Haus-Symbol, Mega-Menüs, zweite Zeile mit Suche */
.navbar .gx-dashlink { font-size:1.25rem; padding:.2rem .6rem; border-radius:10px; }
.navbar .gx-dashlink.active, .navbar .gx-dashlink:hover { background: rgba(255,255,255,.15); }
.gx-mega { padding:.5rem; }
@media (min-width: 1200px) { .gx-mega { display:none; } .gx-mega.show { display:flex; gap:.5rem; } .gx-mega-col { min-width: 15rem; } }
.gx-mega .dropdown-header { text-transform:uppercase; font-size:.7rem; letter-spacing:.05em; color:#16325C; font-weight:700; }
.gx-subbar { background:#fff; border-bottom:1px solid #e3e8ef; box-shadow:0 2px 6px rgba(16,40,80,.04); }
.gx-subbar .gx-search-input { background:#f3f6fa; border-color:#e3e8ef; color:#1d2433; padding-left:2.2rem; width:100%; }
.gx-subbar .gx-search-input:focus { background:#fff; width:100%; }
.gx-subbar .gx-search-input::placeholder { color:#7b879a; }
.gx-subbar .gx-search-ico { position:absolute; left:.8rem; top:50%; transform:translateY(-50%); color:#7b879a; pointer-events:none; }
.gx-subbar .gx-search-results { left:0; right:auto; min-width:100%; }
.gx-hotel-chip { display:inline-flex; align-items:center; text-decoration:none; color:#16325C; background:rgba(22,50,92,.07); border-radius:999px; padding:.3rem .8rem; font-weight:600; font-size:.9rem; }
.gx-hotel-chip:hover { background:rgba(22,50,92,.13); }
@media print { .gx-subbar { display:none !important; } }

/* Reservierungsfenster: neuer Kopf */
.gx-rescard { display:grid; grid-template-columns: auto 1fr auto; gap:1rem; align-items:stretch; background:#fff; border:1px solid #e3e8ef; border-radius:14px; padding:.9rem; box-shadow:0 1px 3px rgba(16,40,80,.06); }
@media (max-width: 767px) { .gx-rescard { grid-template-columns: auto 1fr; } .gx-stay { grid-column: 1 / -1; text-align:left !important; } }
.gx-room-box { background:#16325C; color:#fff; border-radius:12px; padding:.6rem 1rem; min-width:7.5rem; text-align:center; display:flex; flex-direction:column; justify-content:center; }
.gx-room-lbl { font-size:.7rem; text-transform:uppercase; letter-spacing:.08em; opacity:.75; }
.gx-room-nr { font-size:2.4rem; font-weight:800; line-height:1; }
.gx-room-cat { font-size:.8rem; opacity:.9; margin-top:.15rem; }
.gx-room-info { color:#F7B84B; font-size:.75rem; text-decoration:none; margin-top:.35rem; }
.gx-room-info:hover { color:#fff; }
.gx-guest-name { font-size:1.35rem; font-weight:700; color:#16325C; line-height:1.2; }
.gx-guest-company { font-weight:600; color:#495A73; }
.gx-guest-contact { display:flex; flex-wrap:wrap; gap:.25rem 1rem; font-size:.88rem; color:#495A73; margin-top:.25rem; }
.gx-guest-contact a { color:#16325C; text-decoration:none; }
.gx-guest-flags { margin-top:.35rem; }
.gx-stay { text-align:right; display:flex; flex-direction:column; gap:.2rem; align-items:flex-end; }
.gx-stay-dates { font-weight:700; color:#16325C; white-space:nowrap; }
.gx-sum-total { font-size:1.35rem; font-weight:800; color:#16325C; }
.gx-native-actions .reservation-card { background:none; border:0; padding:0; margin:0 0 .5rem; box-shadow:none; }
.gx-native-actions .reservation-card > :not(.row) { display:none !important; }
.gx-native-actions .reservation-card > .row { margin-top:0 !important; }
.gx-doc-menu { min-width: 22rem; }
/* ⓘ am Zimmer im Belegungsplan */
td.room-info { position:relative; white-space:nowrap; }
td.room-info .gx-room-i { display:inline-block; margin-left:.3rem; font-size:.85rem; color:#1F6FEB !important; vertical-align:middle; }
td.room-info .gx-room-i:hover { color:#16325C !important; }

/* ===== Kompakte Ansicht: Menüleiste, Unterleiste, Belegungsplan ===== */
.navbar.bg-primary { padding-top: .15rem !important; padding-bottom: .15rem !important; min-height: 0; }
.navbar.bg-primary .nav-link { padding-top: .3rem !important; padding-bottom: .3rem !important; font-size: .9rem; }
.navbar.bg-primary .navbar-brand { padding-top: .15rem; padding-bottom: .15rem; font-size: 1.05rem; }
.navbar.bg-primary .gx-dashlink { padding: .2rem .6rem; }
.gx-subbar > .container-fluid { padding-top: .2rem !important; padding-bottom: .2rem !important; gap: .4rem !important; }
.gx-subbar .gx-search-input { height: 30px; padding-top: .15rem; padding-bottom: .15rem; font-size: .88rem; }
.gx-subbar .btn-sm { padding: .12rem .5rem; font-size: .82rem; }
.gx-hotel-chip { padding: .15rem .65rem; font-size: .82rem; }
/* Kopf der Belegungsübersicht dichter */
body:has(#reservation-table) main h1, body:has(#reservation-table) .container-fluid > h1 { font-size: 1.25rem; margin-bottom: .25rem; }
body:has(#reservation-table) #start, body:has(#reservation-table) input[name="interval"] { height: 30px; padding-top: .1rem; padding-bottom: .1rem; font-size: .88rem; }
body:has(#reservation-table) .js-shift-date { padding-left: .6rem !important; padding-right: .6rem !important; }
/* Zeilen im Belegungsplan niedriger */
#reservation-table thead td, #reservation-table thead th { padding: 1px 2px !important; font-size: .74rem; line-height: 1.15; }
#reservation-table tbody td { padding-top: 1px !important; padding-bottom: 1px !important; line-height: 1.1; }
#reservation-table tbody td.room-info, #reservation-table tbody th { font-size: .8rem; padding: 1px 4px !important; }
#reservation-table .reservation { padding: 1px 2px !important; }
#reservation-table .reservation-inner { font-size: .74rem; line-height: 1.25; padding-top: 1px !important; padding-bottom: 1px !important; min-height: 0; }
#reservation-table .td-empty { height: 21px; }
/* Heute-Knopf */
.gx-today-btn { font-weight: 700; white-space: nowrap; border-color: #D9861A !important; color: #8A5300 !important; background: #FFF4E0 !important; padding: .1rem .6rem !important; font-size: .82rem !important; }
.gx-today-btn:hover { background: #F7B84B !important; color: #3B2A08 !important; }

/* Eingabedialog */
.gx-ask-overlay { position:fixed; inset:0; background:rgba(11,27,51,.45); z-index:3000; display:flex; align-items:center; justify-content:center; padding:1rem; }
.gx-ask { width:100%; max-width:520px; border:0; border-radius:12px; overflow:hidden; }
/* Gästeliste */
.gx-gl-badge { font-size:.7rem; font-weight:600; border-radius:999px; padding:.1rem .5rem; margin-left:.3rem; white-space:nowrap; }
.gx-gl-stamm { background:#F7B84B; color:#3B2A08; }
.gx-gl-neu { background:#E3F0FF; color:#1F6FEB; }
.gx-gl-sperre { background:#C0392B; color:#fff; }
.gx-gl-actions a, .gx-gl-actions button { margin-right:.45rem; }
.gx-gl-actions button { border:0; background:none; padding:0; }
tr.gx-gl-gesperrt > td { background:#FDECEA !important; }

.gx-st { display:inline-flex; align-items:center; justify-content:center; width:1.45rem; height:1.45rem; border-radius:50%; font-size:.72rem; font-weight:800; margin:0 .1rem; cursor:help; }
.gx-st-s { background:#F7B84B; color:#3B2A08; } .gx-st-n { background:#E3F0FF; color:#1F6FEB; } .gx-st-x { background:#C0392B; color:#fff; font-size:.65rem; } .gx-st-i { background:#212529; color:#fff; }
