/* ============================================================
   Lobby — views/BEngine/N/lobby.php
   Scoped under .lb. Replaces lobbyadmin / lobbyacc / lobbycashback with one
   shell; the panes inside still carry the old markup, so anything not
   prefixed .lb- here is a restyle of that markup, not new structure.
   ============================================================ */

body.lb-body { margin: 0; background: #f4f7fa; }

.lb {
  --ink:       #0c2439;
  --navy:      #123a5c;
  --navy-2:    #0e2c46;
  --blue:      #2b74b0;
  --blue-600:  #225d8f;
  --blue-50:   #e7f0f8;
  --slate-50:  #f4f7fa;
  --slate-100: #eaf0f6;
  --slate-200: #dbe4ec;
  --slate-300: #c2d0dd;
  --slate-400: #8296aa;
  --slate-600: #546b82;
  --danger:    #c0392b;
  --ok:        #2f8f5b;
  --warn:      #b7791f;

  --bar:  62px;
  --nav:  256px;
  --r:    7px;
  --r-lg: 11px;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --serif: "Merriweather", Georgia, serif;

  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: "Open Sans", sans-serif;
  color: var(--ink);
  background: var(--slate-50);
}

.lb *, .lb *::before, .lb *::after { box-sizing: border-box; }

/* ---------- top bar ---------- */

.lb-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  flex: 0 0 var(--bar);
  height: var(--bar);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  box-shadow: 0 1px 3px rgba(12, 36, 57, .18);
}

.lb-burger {
  display: none;
  width: 38px;
  height: 38px;
  margin-left: -8px;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.lb-brand { display: flex; align-items: center; gap: 10px; }

.lb-brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), #6aa6d8);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 2px 8px rgba(43, 116, 176, .45);
}

.lb-brand-name {
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: .2px;
  color: #fff;
}

.lb-brand-sub {
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  border-left: 1px solid rgba(255, 255, 255, .18);
  padding-left: 10px;
}

.lb-spacer { flex: 1 1 auto; }

/* get_hot_button() emits a bare <input>; this is the only place it lands */
.lb-testing .btn-danger {
  height: 32px;
  margin: 0 !important;
  padding: 0 12px !important;
  float: none !important;
  font-size: 12px;
  font-weight: 600;
  color: #ffd98a !important;
  background: rgba(183, 121, 31, .18);
  border: 1px solid rgba(255, 217, 138, .35);
  border-radius: var(--r);
}

.lb-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 10px 4px 4px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .07);
}

.lb-avatar {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.lb-avatar-lg { width: 38px; height: 38px; font-size: 13px; }

.lb-user-txt { display: flex; flex-direction: column; line-height: 1.15; }
.lb-user-name { font-size: 12px; font-weight: 600; color: #fff; }
.lb-user-role { font-size: 9.5px; letter-spacing: .7px; text-transform: uppercase; color: #8fc0e6; }

.lb-logout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, .85);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--r);
  text-decoration: none;
  transition: background .16s var(--ease);
}

.lb-logout:hover,
.lb-logout:focus { background: rgba(255, 255, 255, .1); color: #fff; text-decoration: none; }

/* ---------- shell ---------- */

.lb-shell { flex: 1 1 auto; display: flex; min-height: 0; }

.lb-scrim { display: none; }

.lb-nav {
  flex: 0 0 var(--nav);
  width: var(--nav);
  padding: 12px 10px 24px;
  background: #fff;
  border-right: 1px solid var(--slate-200);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lb-nav-user { display: none; }

.lb-nav-head {
  padding: 14px 12px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .9px;
  text-transform: uppercase;
  color: var(--slate-400);
}

.lb-nav-head:first-of-type { padding-top: 8px; }

.lb-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 9px;
  font-family: var(--serif);
  font-size: 13.5px;
  color: #33506b;
  text-decoration: none;
  transition: background .16s var(--ease), color .16s var(--ease);
}

.lb-nav-item > svg { flex: 0 0 18px; color: #6b8098; transition: color .16s var(--ease); }
.lb-nav-txt { flex: 1 1 auto; }

.lb-nav-item:hover { background: var(--slate-50); color: var(--navy); text-decoration: none; }
.lb-nav-item:hover > svg { color: var(--blue); }

.lb-nav-item.is-on { background: var(--blue-50); color: var(--navy); font-weight: 700; }
.lb-nav-item.is-on > svg { color: var(--blue); }
.lb-nav-item.is-on::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--blue);
}

.lb-out { color: var(--slate-300); }

.lb-count {
  font-family: "Open Sans", sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--slate-600);
  background: var(--slate-100);
  border-radius: 20px;
  padding: 1px 8px;
}

.lb-nav-item.is-on .lb-count { color: var(--blue-600); background: #fff; }

.lb-nav-foot {
  margin: auto 2px 0;
  padding: 13px 14px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 9px;
}

.lb-nav-foot-h {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--slate-600);
}

.lb-nav-foot p { margin: 6px 0 0; font-size: 12px; line-height: 1.5; color: var(--slate-600); }

/* ---------- main ---------- */

.lb-main { flex: 1 1 auto; min-width: 0; padding: 20px 22px 28px; }

.lb-pane { display: none; }

.lb-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--slate-200);
}

.lb-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
}

.lb-sub { margin: 4px 0 0; font-size: 13px; color: var(--slate-600); }

/* ---------- recently opened ---------- */

.lb-recent:empty { display: none; }
.lb-recent { margin-top: 18px; }

.lb-recent-h {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--slate-600);
  margin-bottom: 9px;
}

.lb-recent-row { display: flex; flex-wrap: wrap; gap: 10px; }

.lb-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 9px;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 9px;
  text-decoration: none;
  transition: border-color .16s var(--ease);
}

.lb-chip:hover { border-color: var(--blue); text-decoration: none; }

.lb-chip-mark {
  position: relative;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 700;
}

.lb-chip-name { font-size: 13px; font-weight: 600; color: var(--ink); }

/* ---------- picker filter ---------- */

.lb-filter {
  margin-top: 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.lb-search { position: relative; flex: 1 1 320px; max-width: 420px; }

.lb-search > svg {
  position: absolute;
  left: 12px;
  top: 11px;
  color: var(--slate-400);
  pointer-events: none;
}

.lb-search input {
  width: 100%;
  height: 38px;
  padding: 8px 11px 8px 36px;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--slate-300);
  border-radius: var(--r);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}

.lb-search input:focus,
.lb .lb-select:focus {
  outline: 0;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(43, 116, 176, .16);
}

.lb .lb-select {
  height: 38px;
  padding: 8px 11px;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--slate-300);
  border-radius: var(--r);
}

.lb-count-txt { font-size: 12px; white-space: nowrap; color: var(--slate-600); }

/* ---------- property list ---------- */

.lb-list {
  margin-top: 16px;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-lg);
  /* no overflow:hidden — it would break position:sticky on .lb-list-head, so
     the corners are rounded on the first and last children instead */
}

.lb-list-head { border-radius: var(--r-lg) var(--r-lg) 0 0; }
.lb-row:last-child { border-radius: 0 0 var(--r-lg) var(--r-lg); }

.lb-list-head,
.lb-row {
  display: grid;
  /* the header and the rows are separate grid containers, so an `auto` track
     would size differently in each (empty header slot vs two buttons) and the
     1fr column would absorb the difference. Every track is explicit. */
  grid-template-columns: 38px 84px minmax(0, 1fr) 150px 150px 140px 190px 22px;
  align-items: center;
  gap: 14px;
}

.lb-list-head {
  position: sticky;
  top: var(--bar);            /* the page bar is sticky too, so clear it */
  z-index: 4;
  padding: 11px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--slate-600);
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
}

/* ---------- sortable headers ---------- */

.lb .lb-sort {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  transition: color .14s var(--ease);
}

.lb .lb-sort:hover { color: var(--navy); }
.lb .lb-sort:focus { outline: 0; color: var(--navy); text-decoration: underline; }

/* faint caret on hover, solid and pointed once the column is the active sort */
.lb .lb-sort > i {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 5px solid var(--slate-300);
  opacity: 0;
  transition: opacity .14s var(--ease), transform .14s var(--ease);
}

.lb .lb-sort:hover > i { opacity: .6; }
.lb .lb-sort.is-asc > i,
.lb .lb-sort.is-desc > i { opacity: 1; border-bottom-color: var(--blue); }
.lb .lb-sort.is-desc > i { transform: rotate(180deg); }
.lb .lb-sort.is-asc, .lb .lb-sort.is-desc { color: var(--navy); }

.lb-row {
  padding: 10px 16px;
  border-top: 1px solid var(--slate-100);
  cursor: pointer;
  transition: background .14s var(--ease);
}

.lb-row:first-of-type { border-top: 0; }
.lb-row:hover { background: var(--blue-50); }
.lb-row:hover .lb-go { color: var(--blue); }
.lb-row:hover .lb-row-name { color: var(--blue-600); }

.lb-mark {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3px;
}

/* the logo covers the initials; if it fails to load the img is removed */
.lb-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  padding: 2px;
}

.lb-chip-mark .lb-logo { padding: 3px; }

.lb-row-main { min-width: 0; }

.lb-row-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  transition: color .14s var(--ease);
}

.lb-row-cell {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: var(--slate-600);
}

.lb-row-cell:empty::before { content: "—"; color: var(--slate-300); }

.lb-code {
  justify-self: start;
  font-family: Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--slate-600);
  background: var(--slate-100);
  border-radius: 5px;
  padding: 3px 8px;
}

.lb-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 20px;
  padding: 3px 9px;
  white-space: nowrap;
}

.lb-on      { color: var(--ok); background: #e4f3ea; }
.lb-neutral { color: var(--slate-600); background: var(--slate-100); }

.lb-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.lb-visit,
.lb-set {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 30px;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 600;
  color: var(--slate-600);
  background: #fff;
  border: 1px solid var(--slate-300);
  border-radius: var(--r);
  text-decoration: none;
  transition: color .14s var(--ease), border-color .14s var(--ease), background .14s var(--ease);
}

.lb-visit:hover,
.lb-visit:focus {
  color: var(--blue-600);
  border-color: var(--blue);
  background: var(--blue-50);
  text-decoration: none;
}

.lb-set {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
  cursor: pointer;
}

.lb-set:hover,
.lb-set:focus {
  color: #fff;
  background: var(--blue-600);
  border-color: var(--blue-600);
}

.lb-ico { width: 14px; height: 14px; flex: 0 0 14px; }
.lb-go  { width: 16px; height: 16px; color: var(--slate-300); transition: color .14s var(--ease); }

.lb-noresult {
  display: none;
  margin-top: 16px;
  padding: 44px 20px;
  text-align: center;
  font-size: 14px;
  color: var(--slate-600);
  background: #fff;
  border: 1px dashed var(--slate-300);
  border-radius: var(--r-lg);
}

/* ---------- empty state ---------- */

.lb-empty {
  margin-top: 22px;
  padding: 56px 40px;
  text-align: center;
  background: #fff;
  border: 1px dashed var(--slate-300);
  border-radius: var(--r-lg);
}

.lb-empty-ico {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--slate-50);
  color: var(--slate-400);
}

.lb-empty h3 {
  margin: 18px 0 0;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
}

.lb-empty p {
  max-width: 420px;
  margin: 8px auto 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--slate-600);
}

/* ---------- filter cards (ported panes) ---------- */

.lb-card-panel {
  margin-top: 18px;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-lg);
  /* no overflow:hidden — the hotel multiselect's menu has to escape the card */
}

.lb-card-head {
  padding: 13px 18px;
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}

.lb-card-head h4 {
  margin: 0;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}

.lb-card-inner { padding: 18px; }

.lb-card-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 18px;
  background: var(--slate-50);
  border-top: 1px solid var(--slate-200);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}

.lb-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  align-items: end;
}

.lb-field label {
  display: block;
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--slate-600);
}

.lb .form-control {
  width: 100%;
  height: auto;
  min-height: 38px;
  padding: 8px 11px;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--slate-300);
  border-radius: var(--r);
  box-shadow: none;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}

.lb .form-control:focus {
  outline: 0;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(43, 116, 176, .16);
}

.lb-sub-block { margin-top: 18px; }

.lb-sub-block > label {
  display: block;
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--slate-600);
}

.lb-checks { display: flex; flex-wrap: wrap; gap: 8px; }

.lb-check {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 20px;
  cursor: pointer;
  transition: border-color .14s var(--ease), background .14s var(--ease);
}

.lb-check:hover { border-color: var(--blue); background: var(--blue-50); }
.lb-check input { margin: 0; }

.lb-multi-label {
  display: block;
  margin: 14px 0 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--slate-600);
}

/* bootstrap-multiselect, injected by box.get_all_hotels() into .hotel-list */
.lb-multi { position: relative; z-index: 5; margin-top: 6px; max-width: 420px; }
.lb-multi:empty { display: none; }
/* bootstrap floats .btn-group>.btn; display:block would not contain that float
   and the button would escape the card. flex makes the float moot. */
.lb-multi .btn-group { display: flex; width: 100%; }

/* inc-js.php loads bootstrap-multiselect's JS from a CDN but not its stylesheet,
   which is what normally hides the original <select>. Without this the raw
   multi-select renders as a white block beside the generated button. */
/* .lb .form-control is (0,2,0), so this needs the extra class to win */
.lb .lb-multi select {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  min-height: 0;
}

.lb .multiselect.dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 38px;
  padding: 8px 11px;
  font-size: 14px;
  font-weight: 400;
  text-align: left;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--slate-300);
  border-radius: var(--r);
  box-shadow: none;
}

.lb .multiselect.dropdown-toggle:hover { border-color: var(--blue); }
.lb .multiselect.dropdown-toggle[disabled] { opacity: .5; background: var(--slate-50); }
.lb .multiselect.dropdown-toggle .caret { color: var(--slate-400); }

.lb .multiselect-container {
  width: 100%;
  min-width: 0;
  max-height: 320px;
  overflow-y: auto;
  padding: 6px;
  margin-top: 4px;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-lg);
  box-shadow: 0 12px 32px rgba(12, 36, 57, .16);
}

.lb .multiselect-container > li > a { padding: 0; }

.lb .multiselect-container > li > a > label {
  display: block;
  position: relative;
  /* bootstrap pulls .checkbox inputs out with margin-left:-20px, so the left
     padding has to leave room for it */
  padding: 8px 10px 8px 32px;
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink);
  border-radius: 6px;
}

.lb .multiselect-container > li > a > label > input { margin-top: 1px; }

.lb .multiselect-container > li > a > label:hover { background: var(--blue-50); }
.lb .multiselect-container > li.active > a > label { background: var(--blue-50); font-weight: 600; }

.lb .multiselect-container > li.multiselect-item.filter { padding: 2px 2px 8px; }
.lb .multiselect-container .multiselect-search { min-height: 34px; border-radius: var(--r) 0 0 var(--r); }
.lb .multiselect-container .input-group-addon { background: var(--slate-50); border-color: var(--slate-300); }

.lb .btn {
  min-height: 38px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--r);
  border: 1px solid transparent;
  box-shadow: none;
}

.lb .btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.lb .btn-primary:hover,
.lb .btn-primary:focus { background: var(--blue-600); border-color: var(--blue-600); }
.lb .btn-success { background: var(--ok); border-color: var(--ok); color: #fff; }
.lb .btn[disabled] { opacity: .45; }

/* ---------- result surfaces ---------- */

.lb-result { margin-top: 20px; }
.lb-result:empty { display: none; }

/* DataTables computes explicit table widths whenever scrollX/scrollY is on.
   Forcing width here is what makes its cloned header drift from the body, so
   only plain (non-DataTables) tables get stretched. */
.lb-result table {
  background: #fff;
  border-collapse: separate;
  border-spacing: 0;
}

/* DataTables manages margins too (it uses them for scroll alignment), so the
   reset only applies to tables it is not driving */
.lb-result table:not(.dataTable) {
  width: 100%;
  margin: 0;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-lg);
  overflow: hidden;
}

/* the card chrome moves to the wrapper so the scroll containers stay intact */
.lb-result .dataTables_wrapper {
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-lg);
}

.lb-result .dataTables_scrollHead,
.lb-result .dataTables_scrollBody { background: #fff; }

.lb-result thead th {
  padding: 11px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--slate-600);
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
}

.lb-result tbody td {
  padding: 11px 12px;
  font-size: 13px;
  border-top: 1px solid var(--slate-100);
}

.lb-result tbody tr:hover td { background: var(--slate-50); }

/* the DataTables bootstrap integration puts .form-control on its own search
   box and length menu, so .lb .form-control{width:100%} was stretching them */
.lb .dataTables_filter input,
.lb .dataTables_length select {
  width: auto;
  min-height: 34px;
  padding: 6px 11px;
  font-size: 13px;
  border: 1px solid var(--slate-300);
  border-radius: var(--r);
}

.lb .dataTables_filter input { min-width: 200px; }
.lb .dataTables_filter, .lb .dataTables_length { font-size: 13px; color: var(--slate-600); }

.lb .dataTables_paginate .paginate_button {
  padding: 5px 11px;
  font-size: 13px;
  border-radius: var(--r);
}

/* ---------- mobile ---------- */

@media (max-width: 991px) {
  .lb { --bar: 56px; }

  .lb-burger { display: grid; place-items: center; }
  .lb-brand-name, .lb-brand-sub { display: none; }
  .lb-user .lb-user-txt { display: none; }

  .lb-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 80;
    width: 296px;
    padding: 0 10px 16px;
    transform: translateX(-100%);
    transition: transform .22s var(--ease);
    overflow-y: auto;
    box-shadow: 4px 0 24px rgba(12, 36, 57, .28);
  }

  .lb.is-drawer .lb-nav { transform: none; }

  .lb-nav-user {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 -10px 8px;
    padding: 16px;
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  }

  .lb.is-drawer .lb-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(12, 36, 57, .52);
  }

  .lb-nav-item { min-height: 46px; font-size: 14px; }

  .lb-main { padding: 16px 14px 24px; }

  .lb-list-head { display: none; }

  .lb-row {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 11px 12px;
    min-height: 60px;
  }

  /* the code column folds back under the name on a phone */
  .lb-code {
    grid-row: 1;
    grid-column: 2;
    justify-self: start;
    align-self: end;
    font-size: 11px;
  }

  .lb-row-main { grid-row: 1; grid-column: 2; align-self: start; }
  .lb-row-cell { display: none; }
  /* name + actions win the width here; the connector badge is desktop-only */
  .lb-go { display: none; }
  .lb-actions { gap: 6px; }
  .lb-visit, .lb-set { width: 36px; height: 36px; padding: 0; }
  .lb-visit span, .lb-set span { display: none; }

  .lb-card-foot .btn { flex: 1 1 auto; }
}

/* ============================================================
   Booking / cashback results — 20 columns of operational data.
   Staff work these in bulk, so the priority is fitting as much on
   screen as possible and making status readable at a glance.
   ============================================================ */

/* Collapse the nav to an icon rail to give these tables ~190px more room.
   Mirrors body.nav-collapsed in nav-newbng.css, which the rest of the admin
   already uses. */
.lb.is-rail { --nav: 68px; }
.lb.is-rail .lb-nav { padding-left: 6px; padding-right: 6px; }
.lb.is-rail .lb-nav-txt,
.lb.is-rail .lb-nav-head,
.lb.is-rail .lb-count,
.lb.is-rail .lb-out,
.lb.is-rail .lb-nav-foot { display: none; }
.lb.is-rail .lb-nav-item { justify-content: center; padding-left: 0; padding-right: 0; }

.lb-rail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: rgba(255, 255, 255, .75);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--r);
  cursor: pointer;
  transition: background .16s var(--ease);
}

.lb-rail-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.lb.is-rail .lb-rail-btn { background: rgba(255, 255, 255, .16); color: #fff; }

/* these panes are data-dense; claw back some page padding too */
.lb-pane[data-pane="reservations"],
.lb-pane[data-pane="cashback"] { margin: 0 -12px; }

/* denser cells so more columns fit before anything scrolls */
.lb .table-book-reser,
.lb .table-cashback { font-size: 12px; }

.lb .table-book-reser th,
.lb .table-book-reser td,
.lb .table-cashback th,
.lb .table-cashback td {
  padding: 7px 6px;
  vertical-align: middle;
}

/* Values that must never break mid-character: row numbers, money, counts,
   booking ids, dates. break-word was splitting "17" into "1 / 7" and
   "4200.00" into "4200. / 00". */
.lb .cell-res-no,
.lb .cell-res-no-room,
.lb .cell-res-no-pri,
.lb .cell-res-no-policy,
.lb .cell-res-booknum,
.lb .cell-res-no-pay-met,
.lb .cell-res-no-pay-st,
.lb .cell-res-ck-in,
.lb .cell-res-ck-out,
.lb .cell-res-glpm-no-pri,
.lb .cell-res-glpm-booknum,
.lb .cell-res-glpm-no-pay-met,
.lb .cell-res-glpm-no-pay-st { white-space: nowrap; }

/* Text that may wrap, but only between words */
.lb .cell-res-bookdate,
.lb .cell-res-hname,
.lb .cell-res-des,
.lb .cell-res-product,
.lb .cell-res-glpm-title,
.lb .cell-res-glpm-bookdate,
.lb .cell-res-glpm-hname,
.lb .cell-res-glpm-des { white-space: normal; word-break: normal; overflow-wrap: break-word; }

/* Minimum widths so nothing is squeezed into a column of its own making */
.lb .cell-res-ck-box    { min-width: 30px; }
.lb .cell-res-no        { min-width: 36px; text-align: center; }
.lb .cell-res-bookdate  { min-width: 88px; }
.lb .cell-res-product   { min-width: 84px; }
.lb .cell-res-hname     { min-width: 124px; }
.lb .cell-res-booknum   { min-width: 104px; }
.lb .cell-res-des       { min-width: 74px; }
.lb .cell-res-glpm-title { min-width: 150px; }
.lb .cell-res-ck-in,
.lb .cell-res-ck-out    { min-width: 82px; }
.lb .cell-res-no-room   { min-width: 46px; text-align: center; }
.lb .cell-res-no-pri    { min-width: 76px; text-align: right; }
.lb .cell-res-no-policy { min-width: 48px; }
.lb .cell-res-no-pay-met { min-width: 88px; }
.lb .cell-res-no-pay-st { min-width: 76px; }

.lb .table-book-reser thead th,
.lb .table-cashback thead th {
  font-size: 10px;
  letter-spacing: .03em;
  line-height: 1.25;
}

/* the two editable status columns get real room (complaint #2) */
.lb .cell-res-st-book-mkt,
.lb .cell-res-glpm-st-book-mkt { min-width: 148px; }
.lb .cell-res-st-book-acc,
.lb .cell-res-glpm-st-book-acc { min-width: 158px; }
.lb .cell-res-comment { min-width: 130px; }

.lb .table-book-reser select,
.lb .table-cashback select {
  width: 100%;
  min-width: 0;
  min-height: 30px;
  padding: 4px 6px;
  font-size: 12px;
  border-radius: 5px;
}

.lb .table-book-reser td input[type="text"] {
  width: 100%;
  min-height: 30px;
  padding: 4px 6px;
  font-size: 12px;
  border-radius: 5px;
}

/* --- status colours (complaint #3) --------------------------------
   data-v is written by lb.paint_status(); the values come from
   BEngineN_m: MKT 0 Pending / 1 Submitted, ACC 2 Waiting / 3 Processing
   / 4 Paid. Submitted greys out so finished rows recede. */

.lb .table-book-reser select[data-v="0"] {          /* MKT pending */
  color: #8a5a12;
  background: #fdf3e3;
  border-color: #e6cfa4;
}

.lb .table-book-reser select[data-v="1"] {          /* MKT submitted — done */
  color: var(--slate-600);
  background: var(--slate-100);
  border-color: var(--slate-300);
}

.lb .table-book-reser select[data-v="2"] {          /* ACC waiting */
  color: #8a5a12;
  background: #fdf3e3;
  border-color: #e6cfa4;
}

.lb .table-book-reser select[data-v="3"] {          /* ACC processing */
  color: var(--blue-600);
  background: var(--blue-50);
  border-color: #a9cbe6;
}

.lb .table-book-reser select[data-v="4"] {          /* ACC paid */
  color: var(--ok);
  background: #e4f3ea;
  border-color: #b6ddc5;
}

.lb .table-book-reser select[disabled] { opacity: 1; cursor: default; }

/* the identity columns stay put while scrolling right, so a row stays
   recognisable when reaching the status columns */
.lb .table-book-reser .cell-res-ck-box,
.lb .table-book-reser .cell-res-no {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
}

.lb .table-book-reser .cell-res-no { left: 42px; }
.lb .table-book-reser thead .cell-res-ck-box,
.lb .table-book-reser thead .cell-res-no { background: var(--slate-50); z-index: 3; }

/* Payment-link status: Expired has to be unmissable (complaint #7) */
.lb .cell-res-no-pay-st,
.lb .cell-res-glpm-no-pay-st { font-weight: 700; white-space: nowrap; }

@media (max-width: 1400px) {
  .lb-pane[data-pane="reservations"] .lb-result,
  .lb-pane[data-pane="cashback"] .lb-result { margin-left: 0; }
}
