/* Bookings TV Page Styles - ASCII only in comments (Opera Presto) */

/* FontAwesome icons in navigation image span */
nav.main .items a span.image i {
  font-size: 8em;
  line-height: 173px;
  display: block;
  text-align: center;
}

.bookings-container {
  text-align: center;
  padding: 2em 2.5em;
  margin: 3% auto;
  max-width: 60%;
  border-radius: 20px;
}

/* Active tokens list */
.bookings-list {
  margin-bottom: 2em;
}

#bookings-packages-area {
  max-width: 94%;
}

/* Packages table */
.bookings-packages-table {
  padding-left: 5em;
  text-align: left;
  overflow: hidden;
}

/* =============================================================
   PAKET-BAUM: Tariff-Gruppen (Header) + Duration-Kinder.
   Die alte flache <table>-Darstellung ist abgeloest.
   Room-Verify-Overlay nutzt die generische Komponente
   (assets/css/room_verify.css, Klassen .room-verify, .rv-*).
   ============================================================= */

.bookings-pkg-tree {
  font-size: 1.8em;
}

/* Gruppen-Header (klickbar, oeffnet/schliesst Children) */
.bookings-pkg-group {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 0.6em 1em;
  margin-bottom: 0.4em;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  -webkit-transition: background 0.15s, -webkit-box-shadow 0.15s;
          transition: background 0.15s, box-shadow 0.15s;
}

/* Active-Hintergrund (Imperator-Primary) und Focus-Ring kommen zentral aus
   mixins/color.css (.primaryColorScheme.active / .focusRing.focused).
   Die Gruppen-Headerzeile bekommt die Klassen im JS-Render mit. */

.bookings-pkg-group-name {
  font-weight: 600;
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
}

.bookings-pkg-group-summary {
  margin-left: auto;
  margin-right: 0.8em;
  opacity: 0.7;
  font-size: 0.85em;
  white-space: nowrap;
}

.bookings-pkg-group-caret {
  -webkit-transition: -webkit-transform 0.15s;
       -o-transition: -o-transform 0.15s;
          transition: transform 0.15s;
  opacity: 0.6;
}

.bookings-pkg-group[data-open="1"] .bookings-pkg-group-caret {
  -webkit-transform: rotate(180deg);
       -o-transform: rotate(180deg);
          transform: rotate(180deg);
}

/* Children-Container - eingerueckt unter dem Header */
.bookings-pkg-group-children {
  margin-left: 1.5em;
  margin-bottom: 0.6em;
}

/* Einzelne Duration-Zeile (Leaf) */
.bookings-pkg-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 0.5em 0.8em;
  margin-bottom: 0.2em;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  -webkit-transition: background 0.15s, -webkit-box-shadow 0.15s;
          transition: background 0.15s, box-shadow 0.15s;
}

/* Active-Hintergrund und Focus-Ring kommen zentral aus mixins/color.css
   (.primaryColorScheme.active / .focusRing.focused). */

.bookings-pkg-name {
  font-weight: 600;
}

.bookings-pkg-desc {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.35;
  margin: 0 0.8em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bookings-pkg-duration {
  width: 25%;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
}

.bookings-pkg-price {
  width: 18%;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

/* Aktiv-Badge (sowohl im Gruppen-Header als auch in der exakten Duration).
   Gruen markiert die gebuchte Zeile - kontrastiert zum weissen Cursor-Ring
   und ist farblich vom Rot-Akzent (Theme) klar getrennt. */
.bookings-pkg-badge {
  display: inline-block;
  margin-left: 0.6em;
  padding: 0.08em 0.55em;
  font-size: 0.72em;
  border-radius: 8px;
  background: rgba(20, 180, 80, 0.75);
  color: #fff;
  vertical-align: middle;
  letter-spacing: 0.02em;
}

.bookings-empty {
  text-align: center;
  font-size: 2em;
  background: rgba(78, 87, 84, 0.95);
  padding: 2em 0;
  border-radius: 12px;
  width: 40%;
  margin-left: 30%;
  margin-right: 30%;
}

.bookings-item {
  display: block;
  background: rgba(78, 87, 84, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 1.2em 1.8em;
  margin-bottom: 0.8em;
  position: relative;
  overflow: hidden;
}

.bookings-item.selected {
  border-color: rgba(100, 180, 255, 0.6);
  background: rgba(100, 180, 255, 0.1);
}

.bookings-item-top {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-bottom: 0.3em;
}

.bookings-item-name {
  font-size: 2em;
  font-weight: 600;
  text-align: left;
}

.bookings-item-description {
  font-size: 1.8em;
  text-align: left;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.4em;
}

.bookings-item-countdown {
  font-size: 2.4em;
  font-weight: 300;
  font-family: 'montserratmedium', monospace;
  text-align: left;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.bookings-item-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: -webkit-linear-gradient(left, #4fc3f7, #29b6f6);
  background: linear-gradient(90deg, #4fc3f7, #29b6f6);
  -webkit-transition: width 1s linear;
          transition: width 1s linear;
}

/* Input area - same styling as container, toggled via display */
.bookings-input-area {
  text-align: center;
  padding: 2em 2.5em;
  margin: 3% auto;
  max-width: 60%;
  background: rgba(78, 87, 84, 0.95);
  border-radius: 20px;
}

.bookings-input-header {
  font-size: 3em;
  margin-bottom: 1.2em;
  color: rgba(255, 255, 255, 0.95);
}

/* Digit spinner (same pattern as Roomservice) */
.bookings-digits {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin-bottom: 1.8em;
}

.bookings-digit-col {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin: 0 0.5em;
  padding: 0.65em 0.8em;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  -webkit-transition: border-color 0.15s, background 0.15s, -webkit-box-shadow 0.15s;
          transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

.bookings-digit-col.focused {
  -webkit-box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15), 0 0 20px rgba(255, 255, 255, 0.12);
          box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15), 0 0 20px rgba(255, 255, 255, 0.12);
}

/* Up/down arrows */
.bookings-digit-arrow {
  font-size: 3.3em;
  opacity: 0.3;
  padding: 0.2em;
  -webkit-transition: opacity 0.12s;
          transition: opacity 0.12s;
}

.bookings-digit-col.focused .bookings-digit-arrow {
  opacity: 0.8;
}

/* SVG-Chevron in den Digit-Arrows: ueberschreibt die Default 1em-Regel.
   Der FA-Chevron-Pfad fuellt nur ~55% seiner viewBox, deshalb hier groesser
   skalieren, damit die sichtbare Glyphe an die alte FA-Darstellung herankommt. */
.bookings-digit-arrow > svg {
  width: 1.6em;
  height: 1.6em;
}

/* The digit value */
.bookings-digit-val {
  font-size: 8.0em;
  font-weight: 300;
  line-height: 1.2em;
  min-width: 0.8em;
  letter-spacing: -0.02em;
}

/* Token display field (alphanumeric mode) */
.bookings-display {
  text-align: center;
  margin-bottom: 1.5em;
  padding: 0.5em 1em;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.bookings-display-text {
  font-size: 5em;
  font-weight: 300;
  font-family: 'montserratmedium', monospace;
  letter-spacing: 0.15em;
  color: #fff;
}

/* QWERTZ keyboard */
.bookings-keyboard {
  max-width: 900px;
  margin: 0 auto 1.5em auto;
}

.bookings-kb-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin-bottom: 0.4em;
}

.bookings-key {
  display: inline-block;
  font-size: 4em;
  font-weight: 500;
  min-width: 1.8em;
  padding: 0.3em 0.4em;
  margin: 0 0.15em;
  text-align: center;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  -webkit-transition: background 0.15s, border-color 0.15s;
          transition: background 0.15s, border-color 0.15s;
}

.bookings-key.focused {
  -webkit-box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15), 0 0 20px rgba(255, 255, 255, 0.12);
          box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15), 0 0 20px rgba(255, 255, 255, 0.12);
}

.bookings-key-del {
  min-width: 2.5em;
}

/* Action buttons (Cancel / OK) - same pattern as Roomservice */
.bookings-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin-top: 1.5em;
}

.bookings-action-btn {
  display: inline-block;
  font-size: 2.5em;
  padding: 0.5em 1.5em;
  margin: 0 0.6em;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  -webkit-transition: border-color 0.15s, background 0.15s, -webkit-box-shadow 0.15s;
          transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.bookings-action-btn.focused {
  -webkit-box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15), 0 0 20px rgba(255, 255, 255, 0.12);
          box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15), 0 0 20px rgba(255, 255, 255, 0.12);
}

/* Message area */
.bookings-message {
  font-size: 2em;
  text-align: center;
  margin-top: 1.2em;
  min-height: 1.5em;
}

.bookings-message-success {
  color: #66bb6a;
}

.bookings-message-error {
  color: #ef5350;
}

/* Deactivate confirmation */
.bookings-confirm-icon {
  font-size: 5em;
  color: rgba(255, 180, 50, 0.85);
  margin-bottom: 0.3em;
}

/* SVG-Icons in den Icon-Wrapper-Divs (Default-Regel matcht nur button/a/span > svg). */
.bookings-confirm-icon > svg,
.bookings-success-icon > svg,
.bookings-error-icon > svg {
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  fill: currentColor;
}

.bookings-confirm-text {
  font-size: 2em;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  margin-bottom: 1em;
}

/* Guest bookings (from pl_guests_bookings) */
.bookings-item-guest {
  border-left: 3px solid rgba(100, 200, 120, 0.5);
}

.bookings-item-actions {
  margin-top: 0.5em;
  text-align: right;
}

.bookings-extend-btn {
  display: inline-block;
  font-size: 1.6em;
  padding: 0.3em 1em;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  -webkit-transition: border-color 0.15s, background 0.15s, -webkit-box-shadow 0.15s;
          transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.bookings-extend-btn.focused {
  -webkit-box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15), 0 0 20px rgba(255, 255, 255, 0.12);
          box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15), 0 0 20px rgba(255, 255, 255, 0.12);
}

/* Error overlay */
.bookings-error-icon {
  color: #ef5350;
}

/* Success overlay */
.bookings-success-icon {
  font-size: 5em;
  color: #66bb6a;
  margin-bottom: 0.3em;
}
