/* ==========================================================================
   BM DASHBOARD — UNIFIED STYLES
   Single source of truth replacing app.css + dashboard-admin.css.

   Rules followed while rewriting:
     - Every color value below is copied as-is from the previous :root
       blocks (app.css had two of them). Not one hex/rgba value was
       invented or changed — only how they're *used* changed.
     - Every id/class the JS touches (classList, className, innerHTML
       templates, getElementById) is preserved exactly. Nothing renamed.
     - Layout-critical mechanics (sticky headers, z-index stacking,
       grid breakpoints, mobile/desktop card-vs-table swap) preserved.
     - Visual language redrawn deliberately: bigger radii, clearer
       shadows, calmer spacing, obvious hover/active feedback.
     - The old per-feature "fix1...fix35" patch layers are gone —
       this file IS the resolved result of that cascade, written once.

   NOTE: a separate ~105KB of CSS is injected at runtime by
   dashboard-admin.js and messages.js (chat UI, add-contract/SPO forms,
   profile menu). That layer is intentionally left untouched in this
   pass and is planned for a follow-up rewrite. It still loads after
   this file and keeps working exactly as before.
   ========================================================================== */

:root{
  /* ---- Original color tokens (app.css, block 1) — UNCHANGED ---- */
  --bg:#EAE9E4;
  --panel:#ffffff;
  --panel2:#ffffff;
  --line:rgba(62,61,86,.22);
  --text:#262638;
  --muted:#7A7888;
  --good:#9BC39A;
  --warn:#DDC9C4;
  --bad:#D96B6B;
  --accent:#2A2737;
  --accent2:#3F3C57;
  --chip:#ECE9E2;
  --font:'Manrope', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  /* ---- Original color tokens (app.css, block 2) — UNCHANGED ----
     Kept side-by-side with block 1 because both are referenced
     (directly or via fallback) elsewhere in the live app. */
  --page-bg:#EAE9E3;
  --card:#FFFFFF;
  --hdr:#272630;
  --hdr-ctl:#2D2A42;
  --hdr-btn:#494662;
  --ink:#2C2B36;
  --muted2:#8C8A98;          /* renamed from a second, conflicting --muted */
  --bar:#3F3B56;
  --spo:#9AC398;
  --inc:#BAE0E6;
  --opening:#5A86C5;
  --closure:#FFB54C;
  --contracts:#A8CFDF;
  --contacts:#CFD3DF;
  --media:#DFB8A8;

  /* ---- NEW, purely structural tokens (no color) ----
     This is the one consistent shape language the whole UI now shares. */
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 28px;
  --space-7: 36px;

  --shadow-sm: 0 2px 10px rgba(27,27,46,.06);
  --shadow-md: 0 14px 30px rgba(27,27,46,.10);
  --shadow-lg: 0 24px 56px rgba(27,27,46,.16);
  --shadow-xl: 0 40px 90px rgba(27,27,46,.22);
  --shadow-inset: inset 0 1px 0 rgba(255,255,255,.6);

  --ease: cubic-bezier(.22,.61,.18,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --dur-fast: .15s;
  --dur: .24s;
  --dur-slow: .42s;

  /* legacy aliases some inline JS styles still read */
  --shadow: var(--shadow-md);
  --radius: var(--radius-xl);
  --radiusSm: var(--radius-md);
  --radiusXs: var(--radius-sm);
  --dark: var(--accent2);
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin:0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  position:relative;
  isolation:isolate;
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

a{ color: inherit; }

/* ==========================================================================
   LAYOUT — page container + sticky topbar
   ========================================================================== */
.wrap{
  max-width: 1840px;
  margin: 0 auto;
  padding: var(--space-5);
}
body > .wrap{ position: relative; z-index: 1; }

.topbar{
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--accent2);
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #fff;
  min-height: 60px;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
}
.topbar .wrap{
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: nowrap;
  width: 100%;
  max-width: none;
  padding: 10px var(--space-5);
}
.topbar .btn{
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.18);
  color:#fff;
  box-shadow: 0 6px 16px rgba(0,0,0,.16);
}
.topbar .btn:hover{ background: rgba(255,255,255,.20); box-shadow: 0 10px 22px rgba(0,0,0,.22); }
.topbar .search::placeholder{ color: rgba(255,255,255,.65); }
.topbar .pill{
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.18);
  color: rgba(255,255,255,.92);
}
.topbar .muted{ color: rgba(255,255,255,.72); }

.brand{
  display:flex; align-items:center; gap: var(--space-3);
  min-width: 56px; flex: 0 0 auto;
}
.brand .t{ display:none; }
.logoWrap{
  position:relative; display:inline-flex; align-items:center; justify-content:center;
  width:40px; height:40px; flex:0 0 auto;
  border-radius: var(--radius-sm);
  transition: transform var(--dur) var(--ease-out);
}
.logoWrap:hover{ transform: scale(1.06); }
.logo{
  width:100%; height:100%; display:block;
  background-image:url('/icon.ico');
  background-size:contain; background-position:center; background-repeat:no-repeat;
  border:0; box-shadow:none; background-color:transparent;
}
body.bm-style-spring .logoWrap .logo{ background-image:url('/spring.ico'); }
body.bm-style-winter .logoWrap .logo{ background-image:url('/winter.ico'); }

.globalSearchWrap{
  position: relative;
  display:flex; align-items:center;
  flex: 1 1 420px;
  min-width: 220px;
  max-width: 460px;
}
.globalSearchIcon{
  position:absolute; left:16px; top:50%; width:15px; height:15px;
  transform: translateY(-50%);
  opacity:.55; pointer-events:none;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' viewBox='0 0 24 24' stroke='%233F3C57' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.2-3.2'/%3E%3C/svg%3E");
}
.search{
  flex: 1; min-width: 0; width: 100%;
  height: 42px;
  border: 1px solid rgba(255,255,255,.20);
  background: rgba(255,255,255,.97);
  color: var(--text);
  padding: 0 16px 0 42px;
  border-radius: var(--radius-pill);
  outline: none;
  font: inherit;
  font-weight: 500;
  letter-spacing: .1px;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.7);
  transition: box-shadow var(--dur) ease, transform var(--dur-fast) ease;
}
.search::placeholder{ color: rgba(38,38,56,.45); }
.search:focus{
  box-shadow: 0 0 0 4px rgba(255,255,255,.22), var(--shadow-md);
}
.globalSearchWrap .search{ padding-left: 42px; }

.spacer{ flex:1; }

.pill{
  display:inline-flex; align-items:center; gap: var(--space-2);
  border:1px solid var(--line);
  background: var(--chip);
  padding: 9px 14px; border-radius: var(--radius-pill);
  color:var(--muted); font-size:12px; font-weight:700;
  box-shadow: var(--shadow-sm);
}

.headerAnimBtn{
  display:none; align-items:center; gap: var(--space-2);
  height:40px; padding:0 16px;
  border-radius: var(--radius-pill);
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.14);
  color:#fff; font-weight:700;
  justify-content:center; white-space:nowrap; min-width:42px;
  transition: background var(--dur) ease, transform var(--dur-fast) ease;
}
.headerAnimBtn:hover{ background: rgba(255,255,255,.20); }
.headerAnimBtn .dot{ width:8px;height:8px;border-radius:50%; background:currentColor; opacity:.8; flex:0 0 auto; }
.headerAnimBtn[data-enabled="0"]{ opacity:.72; }

/* ==========================================================================
   BUTTONS — one consistent pill language everywhere
   ========================================================================== */
.btn{
  border: 1px solid var(--line);
  background: var(--chip);
  color: var(--text);
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur) ease,
              background var(--dur) ease, border-color var(--dur) ease, opacity var(--dur) ease;
}
.btn:hover{ box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn:active{ transform: translateY(1px) scale(.99); }
.btn:disabled{ opacity:.5; cursor:not-allowed; transform:none; box-shadow:none; }
.btn.primary{ background: var(--accent); border-color: transparent; color:#fff; box-shadow: var(--shadow-md); }
.btn.primary:hover{ box-shadow: var(--shadow-lg); }
.btn.ghost{ background: transparent; box-shadow:none; }
.btn.ghost:hover{ background: rgba(61,61,88,.08); box-shadow:none; }

.iconBtn{
  width:40px; height:40px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.10);
  color:#fff;
  display:inline-flex; align-items:center; justify-content:center;
  cursor:pointer; font-size:20px; line-height:1;
  transition: background var(--dur) ease, transform var(--dur-fast) ease;
}
.iconBtn:hover{ background: rgba(255,255,255,.18); transform: translateY(-1px); }

.btnRow{ display:flex; gap: var(--space-3); align-items:center; flex-wrap:wrap; }

.detailsBtn{
  background: var(--accent2);
  border: 0;
  color:#fff;
  border-radius: var(--radius-pill);
  padding: 9px 16px;
  font-weight:800;
  font-size:12px;
  line-height:1;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur) ease, filter var(--dur) ease;
}
.detailsBtn:hover{ filter:brightness(1.08); box-shadow: var(--shadow-lg); transform: translateY(-1px); }

/* ==========================================================================
   INPUTS
   ========================================================================== */
.input{
  width:100%;
  height:44px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(44,43,59,.22);
  background: #ffffff;
  padding: 0 16px;
  outline: none;
  font: inherit;
  font-size: 14px;
  color: rgba(20,20,30,.92);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur) ease, box-shadow var(--dur) ease;
}
.input:focus{
  border-color: rgba(44,43,59,.55);
  box-shadow: 0 0 0 4px rgba(44,43,59,.12), var(--shadow-sm);
}

/* ==========================================================================
   KPI ROW
   ========================================================================== */
.kpis{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
@media (min-width: 960px){
  .kpis{ grid-template-columns: repeat(4, 1fr); }
}
.card{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: var(--space-5);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.kpis .card{
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.kpis .card:hover{
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
@keyframes bmRise{
  from{ opacity:0; transform: translateY(8px); }
  to{ opacity:1; transform: translateY(0); }
}
.kpis .card{ animation: bmRise var(--dur-slow) var(--ease-out) backwards; }
.kpis .card:nth-child(1){ animation-delay: .00s; }
.kpis .card:nth-child(2){ animation-delay: .04s; }
.kpis .card:nth-child(3){ animation-delay: .08s; }
.kpis .card:nth-child(4){ animation-delay: .12s; }

.kpi{ display:flex; justify-content:space-between; align-items:flex-start; gap: var(--space-3); }
.kpi .n{ font-size:28px; font-weight:900; line-height:1; letter-spacing:-.01em; }
.kpi .l{ color:var(--muted); font-size:12.5px; margin-top: var(--space-2); font-weight:600; }
.kpiValue{ font-size:24px; font-weight:900; line-height:1.1; }
.kpiLabel{ color:var(--muted); font-size:12px; margin-top:6px; font-weight:600; }

.badge{
  font-size:11.5px;
  font-weight:700;
  border-radius: var(--radius-pill);
  padding:7px 13px;
  border:0;
  background:#D1D3E0;
  color:#262638;
  white-space:nowrap;
  box-shadow: var(--shadow-sm);
}
.badge.good{ background:#9BC39A; color:#ffffff; font-weight:800; }
.badge.warn{ background:#DDC9C4; color:#262638; font-weight:800; }
.badge.bad{ background:#D96B6B; color:#ffffff; font-weight:800; }
.badge.info{ background:#A9CFDE; color:#262638; font-weight:800; }
.badge.contacts{ background:#D1D3E0; color:#262638; font-weight:800; }
.badge.media{ background:#DDC9C4; color:#262638; font-weight:800; }
.badge.contracts{ background:#A9CFDE; color:#262638; font-weight:800; }
.badge.spo{ background:#9BC39A; color:#ffffff; font-weight:800; }
.badge.inc{ background:#BAE0E6; color:#262638; font-weight:800; }

/* ==========================================================================
   FILTER CHIPS
   ========================================================================== */
.chips{ display:flex; flex-wrap:wrap; gap: var(--space-2); margin-top: var(--space-4); }
.chip{
  display:inline-flex; align-items:center; gap: var(--space-2);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(62,61,86,.45);
  background: #fff;
  color: var(--text);
  font-size:12.5px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: background var(--dur) ease, border-color var(--dur) ease, transform var(--dur-fast) ease;
}
.chip:hover{ background: rgba(62,61,86,.06); border-color: rgba(62,61,86,.65); transform: translateY(-1px); }
.chip .x{ opacity:.65; font-weight:900; cursor:pointer; transition: opacity var(--dur-fast) ease, transform var(--dur-fast) ease; }
.chip .x:hover{ opacity:1; transform: scale(1.2); }

/* ==========================================================================
   CHARTS — toggle row, grid, legends, list-style bar charts
   ========================================================================== */
.chartsToggle{
  display:flex;
  align-items:center;
  min-height:48px;
  margin-top: var(--space-4);
  padding:12px 16px;
  border-radius:var(--radius-xl);
  cursor: pointer;
  user-select: none;
}
.chartsToggle, .chartsToggle *{ cursor: pointer !important; -webkit-user-select:none; user-select:none; }
.chartsToggleRow{ width:100%; display:flex; align-items:center; gap:10px; }
.chartsToggle .title{ margin:0; flex:none; }
.chartsToggleHint{ color:var(--muted); font-size:13px; display:flex; align-items:center; gap: var(--space-2); font-weight:700; margin-left:auto; margin-right:0; flex:none; }
.chartsGearBtn{
  width:28px; height:28px; border-radius:50%;
  border:1px solid rgba(62,61,86,.15);
  background:rgba(62,61,86,.06);
  color:#5d53b4;
  font-size:14px;
  cursor:pointer !important;
  display:inline-flex; align-items:center; justify-content:center;
  transition:background .15s, border-color .15s;
  flex:none; padding:0; line-height:1;
}
.chartsToggleHint .chev{ display:inline-block; transition: transform var(--dur) var(--ease); }
#chartsToggle[aria-expanded="true"] .chartsToggleHint .chev{ transform: rotate(180deg); }

.chartsGrid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: var(--space-4);
  align-items:stretch;
  margin-top: var(--space-4);
}
.chartsGrid.isCollapsed{ display:none; }
.chartsGrid > .card{ display:flex; flex-direction:column; height:100%; position:relative; }
@media (max-width:1200px){ .chartsGrid{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width:760px){ .chartsGrid{ grid-template-columns: 1fr; } }

.title{
  font-size:12.5px; color:var(--muted);
  font-weight:800; letter-spacing:.08em;
  text-transform:uppercase;
  margin:0 0 var(--space-3) 0;
}
.hint{
  font-size:12px; color:var(--muted); opacity:.9;
  margin:-4px 0 var(--space-3) 0;
  display:flex; align-items:center; gap: var(--space-2);
  user-select:none;
}
.hint:before{ content:'ⓘ'; color:var(--accent); font-weight:800; }

.chartBox{ height:260px; display:flex; align-items:center; justify-content:center; flex:1 1 auto; min-width:0; }
.chartBox > canvas{ display:block; }
#pie{ max-width:220px!important; max-height:220px!important; width:220px!important; height:220px!important; }
#bar, #spo, #market, #transfer{ width:100%!important; height:100%!important; }
.chartBox.tall{ height:260px; }
.chartBox.scrollY{ max-height:520px; overflow:auto; padding:6px 6px 6px 0; display:block; }
@media (min-width:960px){ .chartBox{ height:300px; } }

.legendRow{ display:flex; flex-wrap:wrap; gap: var(--space-2); margin:-2px 0 var(--space-3) 0; min-height:52px; align-content:flex-start; }
.legendBtn{
  font-weight:700;
  display:inline-flex; align-items:center; gap: var(--space-2);
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  border:1px solid var(--line);
  background: var(--chip);
  color:var(--text);
  font-size:12px;
  cursor:pointer; user-select:none;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-fast) ease, background var(--dur) ease, border-color var(--dur) ease, color var(--dur) ease, opacity var(--dur) ease, box-shadow var(--dur) ease;
}
.legendBtn:hover{ background: rgba(46,46,64,.14); border-color: rgba(60,60,75,.30); box-shadow: var(--shadow-md); }
.legendBtn:active{ transform: translateY(1px); }
.legendBtn.off{ opacity:.45; }
.legendBtn.solid{ border:0; color:#fff; }
.legendBtn.solid .legendSwatch{ display:none; }
.legendSwatch{ width:10px; height:10px; border-radius: var(--radius-pill); display:inline-block; box-shadow: 0 0 0 1px rgba(0,0,0,.25) inset; }

.yearPill{
  display:inline-flex; align-items:center; gap: var(--space-2);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border:0;
  background:#ffffff;
  color:#262638;
  font-size:12px; font-weight:700;
  box-shadow: var(--shadow-sm);
  cursor:pointer;
  transition: background var(--dur) ease, box-shadow var(--dur) ease, transform var(--dur-fast) ease;
}
.yearPill:hover{ background: rgba(46,46,64,.14); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.yearPill.on{ border:1px solid rgba(168,207,224,.55); background: rgba(168,207,224,.14); }
.yIcon{ width:8px; height:8px; border-radius: var(--radius-pill); display:inline-block; background:#D1D3E0; }
.yIcon.active{ background:#9AC399; }
.yIcon.pending{ background:#F3BC6C; }

.listBars{ width:100%; display:flex; flex-direction:column; gap: var(--space-2); padding:6px 0 2px; }
.listRow{
  display:flex; align-items:center; gap: var(--space-3);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border:1px solid rgba(46,46,64,.12);
  background: #fff;
  cursor:pointer; user-select:none;
  transition: background var(--dur) ease, border-color var(--dur) ease, transform var(--dur) var(--ease-out), box-shadow var(--dur) ease;
}
.listRow:hover{ background: rgba(46,46,64,.045); transform: translateX(2px); box-shadow: var(--shadow-sm); }
.listRow.active{
  border-color: rgba(168,207,224,.65);
  background: rgba(168,207,224,.12);
  box-shadow: 0 0 0 1px rgba(168,207,224,.24) inset;
}
.listLabel{ flex:0 0 170px; max-width:170px; font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.listBarTrack{ flex:1; height:10px; border-radius: var(--radius-pill); background: rgba(46,46,64,.08); overflow:hidden; }
.listBarFill{ height:100%; border-radius: var(--radius-pill); background: rgba(62,61,86,.92); transition: width var(--dur-slow) var(--ease-out); }
.listValue{ width:38px; text-align:right; font-size:12px; color:var(--muted); font-weight:600; }

/* ==========================================================================
   HOTELS — compact, stable toolbar above the table/cards
   ========================================================================== */
.hotelsTableCard{
  padding:16px 20px 20px;
  overflow:visible;
}
.hotelHeaderBar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:var(--space-4);
}
.hotelHeaderLeft{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:var(--space-3);
  min-width:0;
  flex:1 1 auto;
}
.hotelHeaderTitleRow{
  display:flex;
  align-items:center;
  gap:8px;
  flex:0 0 auto;
  white-space:nowrap;
}
.hotelHeaderTitleRow .muted{
  display:inline-flex;
  align-items:center;
  min-height:26px;
  padding:0 10px;
  border-radius:var(--radius-pill);
  background:rgba(62,61,86,.055);
  color:#777486;
  font-size:12px;
  font-weight:700;
}
.hotelHeaderSearch{
  width:100%;
  max-width:none;
  min-width:0;
  height:42px;
  border:1px solid rgba(62,61,86,.20);
  border-radius:14px;
  background-color:#faf9fc;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' viewBox='0 0 24 24' stroke='%237A7888' stroke-width='2.1' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.2-3.2'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:15px center;
  background-size:17px 17px;
  padding:0 15px 0 43px;
  box-shadow:inset 0 1px 2px rgba(27,27,46,.025), 0 1px 2px rgba(27,27,46,.025);
  transition:border-color var(--dur-fast) ease, background-color var(--dur-fast) ease, box-shadow var(--dur) ease;
}
.hotelHeaderSearch:hover{
  border-color:rgba(62,61,86,.31);
  background-color:#fff;
}
.hotelHeaderSearch:focus{
  border-color:rgba(93,83,180,.48);
  background-color:#fff;
  box-shadow:0 0 0 4px rgba(93,83,180,.10), 0 6px 16px rgba(27,27,46,.07);
}
.riSearchStatus{
  display:flex;
  align-items:center;
  gap:var(--space-2);
  min-width:0;
  min-height:18px;
  font-size:12px;
  color:var(--muted);
}
.riSearchStatus.busy{ color:var(--ink); }

@media (min-width:821px){
  .hotelHeaderBar{
    display:grid;
    grid-template-columns:max-content minmax(300px,520px) minmax(0,1fr) max-content;
    grid-template-areas:'title search status actions';
    align-items:center;
    gap:16px;
    min-height:42px;
  }
  .hotelHeaderLeft{ display:contents; }
  .hotelHeaderTitleRow{ grid-area:title; }
  .hotelHeaderSearch{ grid-area:search; }
  .riSearchStatus{
    grid-area:status;
    height:42px;
    min-height:42px;
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
  }
  .riSearchStatus > span:last-child{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .hotelHeaderBar .dbMainAddActions{
    grid-area:actions;
    margin-left:0;
    flex-wrap:nowrap!important;
    align-self:center;
  }
}

/* ==========================================================================
   HOTELS TABLE — reimagined: status rail, zebra rows, generous click targets
   ========================================================================== */
.tableWrap{
  overflow:auto;
  border-radius: var(--radius-lg);
  border:1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  min-width:1320px;
  background: var(--panel);
}
th, td{
  padding: 14px 16px;
  font-size:13px;
  text-align:left;
  vertical-align:middle;
  color: var(--text);
}
th{
  position:sticky; top:0; z-index:2;
  background: var(--accent);
  color: rgba(255,255,255,.88);
  font-size:11.5px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  padding: 16px;
  border-bottom: 0;
}
th:first-child{ border-top-left-radius: var(--radius-lg); }
th:last-child{ border-top-right-radius: var(--radius-lg); }
th:last-child, td:last-child{ width:140px; min-width:140px; text-align:right; white-space:nowrap; }
td:last-child{ position:sticky; right:0; background: var(--panel); }

tbody tr{
  border-bottom: 1px solid rgba(46,46,64,.08);
  transition: background-color var(--dur) ease, box-shadow var(--dur) ease;
}
tbody tr:nth-child(even){ background: rgba(46,46,64,.025); }
tbody tr:nth-child(even) td:last-child{ background: #f7f6f2; }
tbody tr:hover td{ background: #f3f1ea; }
tbody tr:hover td:last-child{ background: #f3f1ea; }
tbody tr:last-child td{ border-bottom: 0; }
tbody tr:last-child td:first-child{ border-bottom-left-radius: var(--radius-lg); }
tbody tr:last-child td:last-child{ border-bottom-right-radius: var(--radius-lg); }
tr.closed td{ opacity:.5; transition: opacity var(--dur) ease; }
tr.closed td:nth-child(2) b{ text-decoration: line-through; }

/* Status dot becomes a small glowing pill instead of a flat circle */
.dot{
  display:inline-block; width:10px; height:10px; border-radius: var(--radius-pill);
  margin-right:9px; vertical-align:middle;
  box-shadow: 0 0 0 3px currentColor; opacity: 1;
}
.dot.good{ background: var(--good); color: rgba(155,195,154,.22); }
.dot.warn{ background: var(--warn); color: rgba(221,201,196,.30); }
.dot.bad{ background: var(--bad); color: rgba(217,107,107,.22); }

.hotelCell{ display:flex; flex-direction:column; align-items:flex-start; gap: var(--space-1); }
.hotelNameRow, .hotelCardNameRow{ display:flex; align-items:center; gap: var(--space-2); }
.hotelNameLink{
  appearance:none; border:0; background:transparent; padding:0;
  text-align:left; cursor:pointer; font: inherit; font-weight:800;
  color: inherit; letter-spacing:.01em;
  transition: opacity var(--dur-fast) ease;
}
.hotelNameLink:hover{ opacity:.75; text-decoration: underline; }

.hotelMapBtn{
  width:24px; height:24px; min-width:24px;
  border:0; border-radius: var(--radius-sm);
  background: rgba(63,59,86,.06);
  color: rgba(63,59,86,.55);
  display:inline-flex; align-items:center; justify-content:center;
  cursor:pointer; flex:0 0 auto; padding:0;
  transition: background var(--dur) ease, color var(--dur) ease, transform var(--dur-fast) ease;
}
.hotelMapBtnIcon{
  width:14px; height:14px; display:block;
  background: currentColor;
  -webkit-mask: url('/img/icon_map.png') center / contain no-repeat;
  mask: url('/img/icon_map.png') center / contain no-repeat;
  flex:0 0 auto;
}
.hotelMapBtn:hover{
  background: rgba(63,59,86,.14);
  color: rgba(63,59,86,.92);
  transform: translateY(-1px);
}
.hotelMapBtn:active{ transform: translateY(0) scale(.94); }

.hotelBadges{ display:flex; align-items:flex-start; gap: var(--space-2); flex-wrap:wrap; margin-top: var(--space-1); max-width:min(100%,680px); }
.countryBadge{
  display:inline-flex; align-items:center; height:22px;
  border-radius: var(--radius-pill);
  padding:0 10px;
  background: rgba(169,207,222,.20);
  color:#2c3f56;
  border:1px solid rgba(169,207,222,.5);
  font-size:10px; font-weight:800; letter-spacing:.04em; text-transform:uppercase;
  line-height:1;
}
.customHotelBadge{
  display:inline-flex; align-items:flex-start; min-height:22px; height:auto; max-width:min(100%,420px);
  border-radius:14px; padding:4px 10px;
  background: var(--badgeColor,#ECE9E2);
  border:1px solid color-mix(in srgb, var(--badgeColor,#ECE9E2) 72%, #8f8b80);
  color:#3f3c57; font-size:10px; font-weight:800; letter-spacing:.02em; line-height:1.25;
  white-space:normal; overflow:visible; cursor:pointer;
  gap:6px;
}
.customBadgeLabel{ min-width:0; overflow:visible; text-overflow:clip; white-space:normal; overflow-wrap:anywhere; word-break:break-word; }
.customHotelBadge::after{
  content:''; width:18px; height:18px; min-width:18px; border-radius:999px;
  background:rgba(255,255,255,.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235045a0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.12 2.12 0 0 1 3 3L8 18l-4 1 1-4Z'/%3E%3C/svg%3E") center/10px 10px no-repeat;
  box-shadow:0 1px 5px rgba(18,20,35,.16); opacity:0; transform:translateX(2px);
  transition:opacity var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.customHotelBadge:hover::after,
.customHotelBadge:focus-visible::after{ opacity:1; transform:translateX(0); }
.customBadgeHost{ display:inline-flex; align-items:center; }
.customBadgeAddBtn{
  height:22px; border-radius: var(--radius-pill);
  border:1px dashed rgba(63,60,87,.30);
  background: rgba(255,255,255,.6);
  color: rgba(63,60,87,.7);
  font-size:10px; font-weight:800; padding:0 10px; cursor:pointer;
  transition: background var(--dur) ease, border-style var(--dur) ease, color var(--dur) ease;
}
.customBadgeAddBtn:hover{ background:#fff; color: var(--accent2); border-style:solid; }

.badgeRow{ display:flex; flex-wrap:wrap; gap: var(--space-2); }
.spoBadge, .incBadge{
  display:inline-flex; align-items:center; justify-content:center;
  height:26px; padding:0 11px;
  border-radius: var(--radius-pill);
  font-size:11.5px; font-weight:800; line-height:1;
  box-shadow: var(--shadow-sm);
}
.spoBadge{ background: var(--spo); color:#fff; }
.incBadge{ background: var(--inc); color: var(--bar); }
.spoBadge.p, .incBadge.p{ background:#F3BC6C; color:#fff; }
.spoBadge.e, .incBadge.e{ background:#FF6769; color:#fff; }

.muted{ color:var(--muted); }
.calcShort{ cursor:pointer; border-bottom: 1px dashed rgba(62,61,86,.3); }

/* Hotel name + map button inline row used inside both table and cards */
.hotelNameWrap{ display:inline-block; max-width:100%; }

/* ==========================================================================
   HOTEL CARDS — the mobile/tablet replacement for the table
   ========================================================================== */
.hotelCards{ display:none; }
.hotelCard{
  background:#ffffff;
  border:1px solid rgba(62,61,86,.08);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--dur) ease, transform var(--dur) var(--ease-out);
}
.hotelCard:hover{ box-shadow: var(--shadow-lg); }
.hotelCard.closed{ opacity:.85; }
.hotelCardTop{ display:flex; gap: var(--space-3); align-items:flex-start; justify-content:space-between; }
.hotelCardLeft{ min-width:0; flex:1; }
.hotelCardName{ font-weight:900; letter-spacing:.01em; line-height:1.25; word-break:break-word; font-size:15px; }
.hotelStatusRow{ display:flex; align-items:center; gap: var(--space-2); margin-top: 6px; }
.hotelStatusRow .muted{ font-size:12px; font-weight:600; }
.hotelCardGrid{ display:grid; grid-template-columns:1fr; gap: var(--space-3); margin-top: var(--space-3); }
.hotelField{
  background: rgba(46,46,64,.03);
  border:1px solid rgba(62,61,86,.08);
  border-radius: var(--radius-md);
  padding: var(--space-3);
}
.hotelFieldLabel{ font-size:10.5px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); font-weight:800; margin-bottom: var(--space-2); }
.hotelFieldValue{ font-size:13px; color:var(--text); }
.hotelFieldValue .pill{ margin-right: var(--space-2); margin-bottom: var(--space-2); }

.hotelCardActions{ display:flex; gap: var(--space-2); align-items:center; justify-content:flex-end; flex-wrap:wrap; }
.hotelMoreBtn{
  height:38px; padding:0 16px;
  border-radius: var(--radius-pill);
  border:1px solid rgba(62,61,86,.16);
  background: #fff;
  cursor:pointer; font-weight:800; color:var(--text);
  white-space:nowrap;
  transition: background var(--dur) ease, transform var(--dur-fast) ease;
}
.hotelMoreBtn:hover{ background: rgba(46,46,64,.05); }
.hotelMoreWrap{ display:none; margin-top: var(--space-3); }
.hotelCard.isOpen .hotelMoreWrap{ display:block; animation: bmRise var(--dur) var(--ease-out); }

@media (max-width:760px){
  .tableWrap table{ display:none; }
  .hotelCards{ display:block; }
}

/* ==========================================================================
   SIDE PANEL — hotel details drawer
   ========================================================================== */
.backdrop{
  position:fixed; inset:0;
  background: rgba(15,15,26,.50);
  backdrop-filter: blur(3px);
  opacity:0; pointer-events:none;
  transition: opacity var(--dur) ease;
  z-index:49;
}
.backdrop.show{ opacity:1; pointer-events:auto; }

.side{
  position:fixed; top:14px; right:14px;
  width:min(760px, calc(100% - 28px));
  height:calc(100% - 28px);
  background:#f1efe9;
  border:1px solid rgba(62,61,86,.16);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  transform: translateX(110%);
  transition: transform var(--dur-slow) var(--ease-out);
  z-index:50;
  display:flex; flex-direction:column;
  overflow:hidden;
}
.side.open{ transform: translateX(0); }
body.detailsOpen{ overflow:hidden !important; }

.sideHeader{
  padding: 24px 24px 20px;
  background: var(--accent2);
  color:#fff;
  display:flex; align-items:flex-start; gap: var(--space-3);
}
.sideHeader .h{ flex:1; }
.sideHeader .h .name{ font-weight:700; letter-spacing:.12em; text-transform:uppercase; font-size:21px; display:flex; gap: var(--space-2); align-items:center; flex-wrap:wrap; }
.sideHeader .h .sub{ font-size:12px; color:rgba(255,255,255,.78); margin-top: var(--space-2); }
.close{
  width:40px; height:40px; border-radius: var(--radius-md);
  display:grid; place-items:center;
  border:1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.10);
  color:#fff; cursor:pointer;
  transition: background var(--dur) ease, transform var(--dur-fast) ease;
}
.close:hover{ background: rgba(255,255,255,.18); transform: translateY(-1px); }

.sideBody{ padding:0; overflow:auto; background: var(--bg); overscroll-behavior:contain; -webkit-overflow-scrolling:touch; }

.sideLoading{
  position:absolute; inset:0; z-index:60; display:none;
  align-items:center; justify-content:center;
  background: rgba(11,16,32,.55);
  backdrop-filter: blur(6px);
}
.sideLoading.show{ display:flex; }
.sideLoadingInner{ display:flex; flex-direction:column; align-items:center; gap: var(--space-3); padding: var(--space-4); }
.sideLoadingText{ font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:rgba(255,255,255,.78); text-align:center; }
.sideLoadingText:empty{ display:none; }

.tabs{
  position:sticky; top:0; z-index:5;
  display:flex; gap: var(--space-3); flex-wrap:wrap;
  padding: 18px 24px 16px;
  margin: -18px -22px 18px;
  background:#ffffff;
}
#sideBody .tabs{
  position:sticky; top:0; z-index:6; margin:0;
  padding: 16px 24px 12px;
  background: var(--bg);
  border-bottom: 1px solid rgba(28,29,37,.10);
}
#sideBody .pane{ padding: 20px 24px 26px; }
.tabBtn{
  appearance:none;
  border:1px solid var(--accent2);
  background:#ffffff;
  color: var(--accent2);
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-size:13.5px;
  font-weight:700;
  cursor:pointer; user-select:none;
  transition: background var(--dur) ease, color var(--dur) ease, transform var(--dur-fast) ease, box-shadow var(--dur) ease;
}
.tabBtn:hover{ background: rgba(62,61,86,.06); transform: translateY(-1px); }
.tabBtn:active{ transform: translateY(1px); }
.tabBtn.active{ background: var(--accent2); color:#ffffff; box-shadow: var(--shadow-md); }
.pane{ display:none; }
.pane.active{ display:block; animation: bmFade var(--dur) var(--ease-out); }
@keyframes bmFade{ from{ opacity:0; } to{ opacity:1; } }

.section{
  border:1px solid rgba(62,61,86,.14);
  border-radius: var(--radius-lg);
  padding: 20px 20px 18px;
  background:#f7f6f2;
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-sm);
}
.sectionHeader{
  display:flex; align-items:center; justify-content:space-between; gap: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(46,46,64,.12);
  margin-bottom: var(--space-3);
}
.sectionTitle{ margin:0; font-size:11.5px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); font-weight:800; }
.chipRow{ display:flex; flex-wrap:wrap; gap: var(--space-2); }

.itemCard{
  border:1px solid rgba(62,61,86,.08);
  background: rgba(255,255,255,.78);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-top: var(--space-3);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur) ease, transform var(--dur) var(--ease-out);
}
.itemCard:hover{ box-shadow: var(--shadow-md); }
.itemTop{ display:flex; align-items:flex-start; justify-content:space-between; gap: var(--space-3); }
.itemTitle{ font-weight:900; }
.itemMeta{ font-size:12px; color:var(--muted); margin-top: var(--space-1); }
.incentItem{ padding: 14px 0; border-top:1px solid rgba(46,46,64,.12); }
.incentTop{ display:flex; gap: var(--space-3); align-items:center; flex-wrap:wrap; }
.incentTitle{ font-weight:800; }

.kv{ display:flex; flex-direction:column; gap: var(--space-2); margin-top: var(--space-3); }
.kvRow{ display:grid; grid-template-columns:140px 1fr; gap: var(--space-3); align-items:flex-start; }
.kvKey{ font-size:10.5px; letter-spacing:.04em; text-transform:uppercase; color:var(--muted); font-weight:800; }
.kvVal{ font-weight:700; line-height:1.45; color:var(--text); min-width:0; white-space:normal; overflow-wrap:anywhere; word-break:break-word; }
@media (min-width:960px){
  .kv.kvResort .kvRow{ grid-template-columns: minmax(150px,210px) minmax(0,1fr); gap: var(--space-3); }
  .kv.kvResort .kvVal{ padding-left: var(--space-3); border-left:1px dashed rgba(62,61,86,.18); }
}

.contactRow{ display:flex; gap: var(--space-3); align-items:flex-start; }
.avatar{
  width:38px; height:38px; border-radius: var(--radius-sm);
  display:grid; place-items:center;
  border:1px solid rgba(62,61,86,.10);
  background: rgba(46,46,64,.05);
  font-weight:900; color:var(--text); flex:0 0 auto;
}

.acc{ border:1px solid rgba(62,61,86,.10); background: rgba(255,255,255,.78); border-radius: var(--radius-md); overflow:hidden; margin-top: var(--space-3); }
.accHead{ display:flex; align-items:center; justify-content:space-between; gap: var(--space-3); padding: 12px 14px; cursor:pointer; user-select:none; transition: background var(--dur) ease; }
.accHead:hover{ background: rgba(46,46,64,.035); }
.accBody{ display:none; padding: 0 14px 14px; }
.acc.open .accBody{ display:block; animation: bmFade var(--dur) ease; }
.caret{ width:10px; height:10px; border-right:2px solid rgba(62,61,86,.55); border-bottom:2px solid rgba(62,61,86,.55); transform: rotate(-45deg); transition: transform var(--dur) var(--ease); }
.acc.open .caret{ transform: rotate(45deg); }

.block{ border:1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-3); background: var(--panel); margin-bottom: var(--space-3); }
.block h3{ margin:0 0 var(--space-3) 0; font-size:11.5px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); }
.mono{ white-space:pre-wrap; font-family: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace; font-size:12px; }
.link{ color:#3f6fb3; text-decoration:none; }
.row{ display:flex; gap: var(--space-3); flex-wrap:wrap; align-items:center; }

/* ==========================================================================
   LOADING OVERLAY + WAVE LOADER HOST
   ========================================================================== */
.loadingOverlay{
  position:fixed; inset:0; z-index:50;
  display:none; align-items:center; justify-content:center;
  background: rgba(19,22,34,.62);
  backdrop-filter: blur(7px) saturate(1.05);
  transition: opacity var(--dur) ease;
}
.loadingOverlay.show{ display:flex; }
.waveLoaderHost{ --loader-size:84px; width:var(--loader-size); height:var(--loader-size); display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto; position:relative; border-radius: var(--radius-pill); background:transparent; overflow:visible; }
.loadingOverlay .waveLoaderHost::before{ display:none; }
.waveLoaderHost.sm{ --loader-size:22px; }
.waveLoaderHost.md{ --loader-size:44px; }
.waveLoaderHost.lg{ --loader-size:96px; }
.waveLoaderFrame{ width:100%; height:100%; border:0; display:block; background:transparent; border-radius:inherit; pointer-events:none; color-scheme:light; }
.loadingShell{ min-width:188px; min-height:188px; padding: var(--space-5); border-radius: 32px; display:flex; align-items:center; justify-content:center; background:transparent; border:0; box-shadow:none; }
.sideLoading .waveLoaderHost{ --loader-size:64px; }
.inlineLoading{ display:flex; align-items:center; gap: var(--space-3); margin-top: var(--space-2); }
.inlineLoading .muted{ font-size:12px; }

/* ==========================================================================
   TOOLTIP
   ========================================================================== */
#bmTooltip{
  position:fixed; z-index:9999; max-width:360px;
  background: rgba(15,18,32,.96); color:#fff;
  padding: 11px 14px; border-radius: var(--radius-md);
  font-size:13px; line-height:1.4;
  box-shadow: var(--shadow-lg);
  display:none;
  transition: opacity var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
}
#bmTooltip .ttTitle{ font-weight:800; margin-bottom: var(--space-1); }
#bmTooltip .ttLine{ opacity:.95; }

/* ==========================================================================
   SEASONAL FX LAYER (snow/flowers) — unchanged behaviour, refreshed visuals
   ========================================================================== */
#seasonFxLayer{ position:fixed; inset:0; pointer-events:none; overflow:hidden; z-index:0; }
.seasonFxItem{
  position:absolute; top:-16vh; left:0; will-change: transform, opacity;
  user-select:none; pointer-events:none;
  animation-name: bmSeasonFall; animation-timing-function:linear; animation-iteration-count:infinite; animation-fill-mode:both;
  backface-visibility:hidden; transform: translateZ(0);
}
.seasonFxItem img{ display:block; width:100%; height:100%; object-fit:contain; filter: drop-shadow(0 3px 6px rgba(0,0,0,.10)); }
body.bm-style-spring .seasonFxItem img{ opacity:.78; }
body.bm-style-winter .seasonFxItem img{ opacity:.92; filter: drop-shadow(0 2px 8px rgba(123,164,255,.28)); }
@keyframes bmSeasonFall{
  0%{ transform: translate3d(var(--sx,0),-18vh,0) rotate(0deg); opacity:0; }
  6%{ opacity: var(--op,.8); }
  94%{ opacity: var(--op,.8); }
  100%{ transform: translate3d(calc(var(--sx,0) + var(--dx,24px)),118vh,0) rotate(var(--rot,240deg)); opacity:0; }
}

/* ==========================================================================
   MODALS — auth + settings
   ========================================================================== */
.modalOverlay{
  position:fixed; inset:0;
  background: rgba(12,13,20,.55);
  backdrop-filter: blur(4px);
  display:flex; align-items:center; justify-content:center;
  z-index:9999;
  animation: bmFade var(--dur) ease;
}
.modalCard{
  width:min(520px, calc(100vw - 32px));
  background: var(--card, #fff);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  animation: bmModalIn var(--dur-slow) var(--ease-out);
}
@keyframes bmModalIn{
  from{ opacity:0; transform: translateY(14px) scale(.97); }
  to{ opacity:1; transform: translateY(0) scale(1); }
}
.modalCard.modalWide{ width:min(1120px, calc(100vw - 28px)); }
.modalCard.modalSmall{ width:min(460px, calc(100vw - 32px)); }
.modalHead{
  background: var(--dark, var(--accent2));
  color:#fff;
  padding: 20px 24px;
  font-size:17px;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-weight:700;
  display:flex; align-items:center; justify-content:space-between;
}
.modalTitle{ font-weight:800; letter-spacing:.5px; text-transform:uppercase; }
.modalBody{ padding: 22px 24px 26px; background: var(--bg, #EAE7E2); }
.field{ margin: var(--space-3) 0 14px; }
.field label{ display:block; font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:rgba(0,0,0,.55); margin:0 0 var(--space-2); }
.field input{
  width:100%; height:46px; border-radius: var(--radius-md);
  border:1px solid rgba(58,57,82,.22);
  background:#fff;
  padding:0 16px; outline:none; font-size:15px;
  transition: border-color var(--dur) ease, box-shadow var(--dur) ease;
}
.field input:focus{ border-color: rgba(58,57,82,.55); box-shadow: 0 0 0 4px rgba(58,57,82,.12); }
.modalActions{ display:flex; align-items:center; justify-content:space-between; gap: var(--space-3); margin-top: var(--space-4); }
.modalActions .btn{ height:44px; border-radius: var(--radius-pill); }
.authError{
  margin-top: var(--space-3); padding:11px 14px;
  background: rgba(217,107,107,.12); border:1px solid rgba(217,107,107,.35);
  border-radius: var(--radius-md); color:#b24b4b; font-size:14px; display:none;
}
body.modalOpen{ overflow:hidden !important; }

/* Settings modal: own layout so the long table panels fit a fixed-height card */
#settingsModal .modalCard{
  width:min(1120px, calc(100vw - 28px));
  height:min(900px, calc(100vh - 24px));
  max-height:calc(100vh - 24px);
  display:flex; flex-direction:column;
}
#settingsModal .modalHead{ flex:0 0 auto; }
#settingsModal .modalBody{
  flex:1 1 auto; min-height:0; overflow:hidden;
  display:flex; flex-direction:column; gap: var(--space-3);
}
@media (max-height:760px){
  #settingsModal .modalCard{ height:calc(100vh - 12px); max-height:calc(100vh - 12px); }
}

.tabs.settingsTabs{
  position:static; margin:0; padding:0; background:transparent; border:0;
  display:flex; gap: var(--space-3); flex-wrap:nowrap; flex:0 0 auto;
}
#settingsModal .tabBtn{
  border:1px solid rgba(62,61,86,.3);
  background:#fff; color:var(--ink);
  padding: 9px 16px; border-radius: var(--radius-pill);
  font-weight:700; font-size:13px; line-height:1; cursor:pointer;
  transition: background var(--dur) ease, border-color var(--dur) ease, color var(--dur) ease;
}
#settingsModal .tabBtn.active{ background: var(--accent2); border-color: var(--accent2); color:#fff; }
#settingsModal .tabBtn:not(.active):hover{ border-color: rgba(62,61,86,.6); }

#settingsModal #settingsUsers,
#settingsModal #settingsUsage{
  flex:1 1 auto; min-height:0; height:100%;
  display:flex; flex-direction:column; gap: var(--space-4);
}
#settingsModal #settingsUsers .btnRow{ flex:0 0 auto; }
#settingsModal .tableWrap{
  flex:1 1 auto; min-height:0; overflow:auto;
  overscroll-behavior:contain; background:#fff;
}
#settingsModal table{ width:100%; table-layout:fixed; min-width:980px; }
#settingsModal th, #settingsModal td{ white-space:nowrap; }
#settingsModal th:last-child, #settingsModal td:last-child{ width:220px; }
#settingsModal td:last-child .btn{ padding:8px 12px; height:auto; }
@media (max-width:760px){ #settingsModal table{ min-width:1100px; } }

#settingsModal .usageInnerTabs{ display:flex; align-items:center; gap: var(--space-2); flex-wrap:wrap; flex:0 0 auto; }
#settingsModal .usageInnerTab{ display:inline-flex; align-items:center; gap: 7px; }
#settingsModal .usageBadge{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:20px; height:20px; padding:0 7px;
  border-radius: var(--radius-pill);
  background: rgba(73,67,104,.10); color:var(--ink);
  font-size:11px; font-weight:800; line-height:1;
}
#settingsModal .usageInnerTab.active .usageBadge{ background: rgba(255,255,255,.22); color:#fff; }
#settingsModal .usageLoadStatus{
  display:none; flex:0 0 auto; padding:9px 12px;
  border-radius:var(--radius-sm); border:1px solid rgba(62,61,86,.10);
  background:rgba(255,255,255,.72); color:var(--muted); font-size:12px;
}
#settingsModal .usageLoadStatus.show{ display:block; }
#settingsModal .usageLoadStatus.error{ border-color:rgba(196,73,73,.22); background:rgba(196,73,73,.07); color:#9d3d3d; }
#settingsModal .usagePanel{ display:none; min-height:0; }
#settingsModal .usagePanel.active{ display:flex; flex-direction:column; gap: var(--space-3); flex:1 1 auto; }
#settingsModal #usagePanelOverview.active,
#settingsModal #usagePanelFailed.active,
#settingsModal #usagePanelBlocked.active{
  display:grid; gap: var(--space-3); grid-template-rows:auto minmax(0,1fr); height:100%; min-height:0;
}
#settingsModal .usageSubhead{ display:flex; align-items:center; justify-content:space-between; gap: var(--space-3); margin:0; font-weight:800; color:var(--ink); flex:0 0 auto; }
#settingsModal .usageMainWrap,
#settingsModal .usageFailedWrap,
#settingsModal .usageBlockedWrap{
  flex:1 1 auto; min-height:0; overflow:auto; border-radius: var(--radius-md);
  overscroll-behavior:contain; -webkit-overflow-scrolling:touch;
}
#settingsModal #usageKpis{ margin:0; display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--space-3); flex:0 0 auto; }
#settingsModal #usageKpis .kpi{
  background:#fff; border:1px solid rgba(62,61,86,.18);
  border-radius: var(--radius-md); padding: 12px 14px;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; min-height:60px;
}
#settingsModal #usageKpis .kpiValue{ font-size:19px; font-weight:800; line-height:1.1; color:var(--ink); }
#settingsModal #usageKpis .kpiLabel{ margin-top: var(--space-1); font-size:12px; color:var(--muted); }

/* Failed logins table — readable columns, soft inline pills */
#settingsModal #failedLoginTable{ width:100% !important; min-width:900px; table-layout:fixed; }
#settingsModal #failedLoginTable th, #settingsModal #failedLoginTable td{ vertical-align:middle; overflow:hidden; }
#settingsModal #failedLoginTable td{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#settingsModal #failedLoginTable tr.failedUaRow td{ padding:0 14px 12px; background: rgba(255,255,255,.7); color:var(--muted); font-size:12px; white-space:nowrap; border-top:0; }
#settingsModal #failedLoginTable tr.failedLoginMainRow td{ border-bottom:0; padding-bottom:8px; }
#settingsModal #failedLoginTable tr.failedUaRow + tr.failedLoginMainRow td{ border-top:1px solid rgba(62,61,86,.13); }
.failedLoginCell{ min-width:0; display:flex; align-items:center; gap: var(--space-2); overflow:hidden; }
.failedLoginName{ min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:800; }
.failedTimeCell{ color:var(--muted); }
.failedEmptyCell{ height:170px; text-align:center; }
.failedDeleteBtn{ height:30px; padding:0 10px; border-radius: var(--radius-sm); }
.attemptsMini{ display:inline-flex; margin-left: var(--space-2); padding:2px 8px; border-radius: var(--radius-pill); background: rgba(73,67,104,.08); color:var(--muted); font-size:11px; font-weight:800; }
.uaText{ display:block; min-width:0; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--muted); }
.miniDangerBtn{ height:30px; padding:0 11px; border-radius: var(--radius-sm); border:1px solid rgba(255,96,108,.32); background: rgba(255,96,108,.10); color:#a91f2b; font-size:12px; font-weight:800; cursor:pointer; transition: background var(--dur) ease; }
.miniDangerBtn:hover{ background: rgba(255,96,108,.18); }
.ipAction{
  display:inline-flex; align-items:center; gap: 6px; max-width:100%;
  border:1px solid rgba(62,61,86,.18); background:#fff; color:var(--ink);
  border-radius: var(--radius-pill); padding:6px 12px; font:inherit; font-weight:700; cursor:pointer;
  box-shadow: var(--shadow-sm); transition: border-color var(--dur) ease, background var(--dur) ease;
}
.ipAction:hover{ border-color: rgba(62,61,86,.45); background:#fff; }
.ipAction.isBlocked{ border-color: rgba(255,95,105,.45); background: rgba(255,95,105,.08); }
.ipBlockedBadge, .eventPill{
  display:inline-flex; align-items:center; border-radius: var(--radius-pill); padding:3px 8px;
  font-size:10.5px; line-height:1; font-weight:800; text-transform:uppercase; letter-spacing:.02em;
}
.ipBlockedBadge, .eventPill.blocked{ color:#a91f2b; background: rgba(255,95,105,.16); }
.eventPill.failed{ color:#8b5b00; background: rgba(255,177,66,.18); }
.ipActionMenu{ position:absolute; z-index:100000; min-width:190px; border:1px solid rgba(62,61,86,.18); background:#fff; color:var(--ink); border-radius: var(--radius-md); padding: var(--space-2); box-shadow: var(--shadow-lg); }
.ipActionTitle{ font-weight:800; font-size:12px; padding:6px 8px 8px; color:rgba(30,27,48,.72); word-break:break-all; }
.ipActionMenuBtn{ width:100%; border:0; border-radius: var(--radius-sm); padding:10px 12px; background:var(--ink); color:#fff; font-weight:800; cursor:pointer; text-align:left; }
.ipActionMenuBtn:hover{ filter:brightness(1.08); }
.passwordInfoPill{
  display:inline-flex; align-items:center; max-width:100%; padding:5px 10px;
  border-radius: var(--radius-pill); border:1px solid rgba(73,67,104,.18); background: rgba(73,67,104,.07);
  color:var(--ink); font-size:12px; font-weight:800; line-height:1;
}
.passwordInfoPill.empty, .passwordInfoPill.short{ background: rgba(255,184,77,.14); border-color: rgba(255,184,77,.36); }
.passwordInfoPill.common-pattern, .passwordInfoPill.contains-login{ background: rgba(255,96,108,.12); border-color: rgba(255,96,108,.32); }
.passwordInfoPill.normal-length{ background: rgba(151,204,160,.14); border-color: rgba(151,204,160,.34); }
.loginMatchBadge{ flex:0 0 auto; display:inline-flex; align-items:center; height:20px; padding:0 7px; border-radius: var(--radius-pill); font-size:10px; line-height:1; font-weight:800; text-transform:uppercase; letter-spacing:.02em; }
.loginMatchBadge.existing{ background: rgba(151,204,160,.16); color:#367542; }
.loginMatchBadge.similar{ background: rgba(255,184,77,.16); color:#8b5b00; }
.loginMatchBadge.unknown{ background: rgba(255,96,108,.13); color:#a91f2b; }

/* Settings → Data / Notifications native panels */
.settingsNativePane{ flex:1 1 auto; min-height:0; overflow:auto; }
.settingsNativeLayout{ display:grid; grid-template-columns:220px minmax(0,1fr); gap: var(--space-4); height:100%; }
.settingsNativeSide{ display:flex; flex-direction:column; gap: var(--space-2); }
.settingsNativeTitle{ font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); font-weight:800; margin-bottom: var(--space-2); }
.settingsNativeNav{
  appearance:none; text-align:left; border:1px solid transparent; background:transparent;
  border-radius: var(--radius-sm); padding: 11px 14px; font-weight:700; color: var(--ink);
  cursor:pointer; transition: background var(--dur) ease, border-color var(--dur) ease;
}
.settingsNativeNav:hover{ background: rgba(46,46,64,.05); }
.settingsNativeNav.active{ background:#fff; border-color: rgba(62,61,86,.14); box-shadow: var(--shadow-sm); }
.settingsNativeMain{ min-width:0; overflow:auto; }
.settingsNativeMain.full{ grid-column:1 / -1; }
.settingsNativeHeader{ display:flex; align-items:flex-start; justify-content:space-between; gap: var(--space-4); margin-bottom: var(--space-4); }
.settingsNativeHeader h3{ margin:0; font-size:18px; font-weight:800; color: var(--ink); }
.settingsNativeHeader p{ margin: var(--space-2) 0 0; font-size:13px; color:var(--muted); max-width:560px; line-height:1.5; }
.settingsNativeGrid{ display:grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: var(--space-4); }
.settingsNativeCard{
  display:flex; flex-direction:column; gap: var(--space-2); text-align:left;
  border:1px solid rgba(62,61,86,.12); background:#fff; border-radius: var(--radius-lg);
  padding: var(--space-4); box-shadow: var(--shadow-sm); cursor:pointer; color:var(--text); font:inherit;
  transition: box-shadow var(--dur) ease, border-color var(--dur) ease, transform var(--dur) var(--ease-out);
}
.settingsNativeCard b{ font-size:15px; font-weight:900; }
.settingsNativeCard span{ font-size:13px; line-height:1.45; color:var(--muted); }
.settingsNativeCard:hover{ border-color: rgba(63,60,87,.3); box-shadow: var(--shadow-md); transform: translateY(-2px); }
@media (max-width:900px){ .settingsNativeLayout{ grid-template-columns:1fr; } }

/* Style picker (seasonal theme) */
#settingsStyle{ display:none; flex-direction:column; gap: var(--space-4); }
.styleGrid{ display:grid; grid-template-columns: repeat(2,minmax(280px,1fr)); gap: var(--space-4); }
.styleCard{
  border:1px solid var(--line); background:#fff; border-radius: var(--radius-lg);
  padding: var(--space-4); display:flex; flex-direction:column; gap: var(--space-3);
  box-shadow: var(--shadow-sm); transition: box-shadow var(--dur) ease, border-color var(--dur) ease, transform var(--dur) var(--ease-out);
}
.styleCard:hover{ transform: translateY(-2px); box-shadow: var(--shadow-md); }
.styleCard.active{ border-color: rgba(62,61,86,.5); box-shadow: var(--shadow-md); }
.styleCardHead{ display:flex; align-items:flex-start; justify-content:space-between; gap: var(--space-3); }
.styleTitle{ font-size:15px; font-weight:800; color:var(--text); }
.styleDesc{ font-size:12px; line-height:1.45; color:var(--muted); }
.stylePreview{ height:90px; border-radius: var(--radius-md); background: linear-gradient(180deg,#f8f7f4,#efede8); border:1px solid rgba(62,61,86,.08); position:relative; overflow:hidden; }
.stylePreview img{ position:absolute; object-fit:contain; opacity:.9; }
.stylePreview.flowers img:nth-child(1){ width:36px; left:18px; top:16px; transform:rotate(-12deg); }
.stylePreview.flowers img:nth-child(2){ width:28px; right:24px; top:20px; transform:rotate(10deg); }
.stylePreview.flowers img:nth-child(3){ width:24px; left:46%; bottom:10px; transform:translateX(-50%) rotate(18deg); }
.stylePreview.snow img:nth-child(1){ width:26px; left:20px; top:14px; }
.stylePreview.snow img:nth-child(2){ width:18px; right:26px; top:24px; }
.stylePreview.snow img:nth-child(3){ width:22px; left:48%; bottom:12px; transform:translateX(-50%); }
.styleCard input[type="radio"]{ width:18px; height:18px; accent-color: var(--accent2); cursor:pointer; flex:0 0 auto; }
.styleActions{ display:flex; flex-wrap:wrap; gap: var(--space-3); align-items:center; }

.toggleRow{ display:flex; align-items:center; justify-content:space-between; gap: var(--space-3); padding: 12px 14px; border:1px solid var(--line); background:#fff; border-radius: var(--radius-md); }
.switch{ position:relative; display:inline-block; width:52px; height:30px; flex:0 0 auto; }
.switch input{ opacity:0; width:0; height:0; }
.switchSlider{ position:absolute; inset:0; border-radius: var(--radius-pill); background:#d8d5cf; transition: background var(--dur) ease; box-shadow: inset 0 0 0 1px rgba(62,61,86,.12); }
.switchSlider:before{ content:""; position:absolute; width:24px; height:24px; left:3px; top:3px; border-radius:50%; background:#fff; transition: transform var(--dur) var(--ease-out); box-shadow: var(--shadow-sm); }
.switch input:checked + .switchSlider{ background: var(--accent2); }
.switch input:checked + .switchSlider:before{ transform: translateX(22px); }


/* ==========================================================================
   RESTORED LEGACY STRUCTURE — base modal/workbench rules from old dashboard CSS
   These must load before the unified DB component styling below.
   ========================================================================== */
.dbOverlay{position:fixed;inset:0;z-index:10050;background:rgba(21,18,34,.42);display:none;align-items:center;justify-content:center;padding:20px;backdrop-filter:blur(10px)}.dbOverlay.open{display:flex}.dbModalOpen{overflow:hidden}.dbPanel{width:min(1280px,100%);height:min(90vh,900px);background:rgba(255,255,255,.98);border:1px solid rgba(63,59,86,.12);border-radius:30px;box-shadow:0 34px 90px rgba(18,20,35,.3);overflow:hidden;display:grid;grid-template-columns:246px minmax(0,1fr)}.dbSide{background:linear-gradient(180deg,#f7f6fb,#eeecf8);border-right:1px solid rgba(63,59,86,.08);padding:20px;display:flex;flex-direction:column;gap:18px}.dbBrandBlock{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.dbBrand{font-size:18px;font-weight:1000;color:#302d46}.dbRole{font-size:11px;font-weight:900;text-transform:uppercase;color:#5d53b4;background:#fff;border:1px solid rgba(63,59,86,.08);border-radius:999px;padding:5px 8px}.dbTabs{display:flex;flex-direction:column;gap:8px}.dbTab{height:44px;border:1px solid transparent;background:transparent;text-align:left;border-radius:15px;padding:0 12px;color:#4b4766;font-weight:900;cursor:pointer}.dbTab:hover{background:rgba(255,255,255,.56)}.dbTab.active{background:#fff;border-color:rgba(63,59,86,.1);box-shadow:0 12px 20px rgba(32,36,58,.06);color:#2e2b42}.dbMain{min-width:0;display:flex;flex-direction:column;max-height:90vh}.dbHead{min-height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 24px;border-bottom:1px solid rgba(63,59,86,.08)}.dbTitle{font-size:20px;font-weight:1000;color:#302d46}.dbClose{width:40px;height:40px;border:0;border-radius:15px;background:#f3f1f9;color:#3f3b56;font-size:22px;font-weight:900;cursor:pointer}.dbClose:hover{background:#ebe7f6}.dbBody{overflow:auto;padding:22px;background:linear-gradient(180deg,#fff,#fbfbff)}.dbPane{display:none}.dbPane.active{display:block}.dbGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.dbGrid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.dbCard,.dbMetric{border:1px solid rgba(63,59,86,.09);background:#fff;border-radius:22px;padding:16px;box-shadow:0 12px 28px rgba(32,36,58,.045)}.dbCard.flat{box-shadow:none}.dbCard.wide,.dbGrid .wide{grid-column:1/-1}.dbCardHead{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:10px}.dbCardTitle{font-size:14px;font-weight:1000;color:#302d46}.dbMetricGrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}.dbMetricLabel{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:#77728b;font-weight:900}.dbMetricValue{font-size:28px;line-height:1.1;font-weight:1000;color:#302d46;margin-top:7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dbMetricHint{font-size:12px;color:#77728b;margin-top:4px}.dbInfoStrip{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}.dbInfoStrip span{background:#fafaff;border:1px solid rgba(63,59,86,.08);border-radius:14px;padding:9px 11px;font-size:12px;color:#77728b}.dbActions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}.dbBtn{height:40px;border-radius:13px;border:1px solid rgba(63,59,86,.13);background:#fff;color:#3f3b56;font-weight:900;padding:0 14px;cursor:pointer}.dbBtn:hover:not(:disabled){border-color:rgba(93,83,180,.28);box-shadow:0 10px 18px rgba(32,36,58,.06)}.dbBtn:disabled,.dbIconBtn:disabled,.dbTinyBtn:disabled{opacity:.48;cursor:not-allowed}.dbBtn.primary{border:0;background:linear-gradient(180deg,#5d53b4,#4b448c);color:#fff}.dbBtn.danger{border:0;background:linear-gradient(180deg,#dd7e7e,#c35a5a);color:#fff}.dbPill{display:inline-flex;align-items:center;gap:6px;min-height:25px;border-radius:999px;background:rgba(93,83,180,.08);color:#544d97;font-size:11px;font-weight:900;padding:3px 9px;white-space:nowrap}.dbPill.ok{background:rgba(51,160,111,.1);color:#277852}.dbPill.warn{background:rgba(214,154,57,.12);color:#8a5c17}.dbPill.danger{background:rgba(211,89,89,.12);color:#a83e3e}.dbNotice{font-size:12px;color:#655f7a;background:#fafaff;border:1px solid rgba(63,59,86,.08);border-radius:16px;padding:11px 12px;line-height:1.45;margin:12px 0}.dbNotice.ok{background:rgba(51,160,111,.08);border-color:rgba(51,160,111,.18);color:#277852}.dbNotice.danger{background:rgba(211,89,89,.08);border-color:rgba(211,89,89,.18);color:#934141}.dbNotice code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;background:rgba(255,255,255,.74);border:1px solid rgba(0,0,0,.06);border-radius:8px;padding:1px 5px}.dbEmpty{font-size:13px;color:#77728b;padding:14px;border:1px dashed rgba(63,59,86,.16);border-radius:16px;background:#fbfbff}.dbEmpty.big{padding:42px;text-align:center}.dbTimeline{display:flex;flex-direction:column;gap:8px}.dbTimelineRow{border:1px solid rgba(63,59,86,.08);background:#fbfbff;border-radius:16px;padding:10px;display:flex;gap:10px;text-align:left;cursor:pointer}.dbTimelineRow b{display:block;font-size:13px;color:#302d46}.dbTimelineRow em{display:block;font-style:normal;font-size:11px;color:#77728b;margin-top:3px}
.dbWorkbench{display:grid;grid-template-columns:330px minmax(0,1fr);gap:16px;min-height:calc(90vh - 140px)}.dbListPane{border:1px solid rgba(63,59,86,.09);background:#fff;border-radius:24px;padding:14px;min-width:0;display:flex;flex-direction:column;box-shadow:0 12px 28px rgba(32,36,58,.04)}.dbListHead{display:grid;grid-template-columns:minmax(0,1fr) 42px;gap:10px;margin-bottom:8px}.dbSearch,.dbInput,.dbInlineInput{width:100%;border:1px solid rgba(63,59,86,.13);border-radius:14px;background:#fff;color:#302d46;font:inherit;padding:10px 12px;min-height:42px}.dbSearch:focus,.dbInput:focus,.dbInlineInput:focus{outline:none;border-color:rgba(93,83,180,.44);box-shadow:0 0 0 4px rgba(93,83,180,.09)}.dbIconBtn{height:42px;border-radius:14px;border:0;background:#5d53b4;color:#fff;font-size:20px;font-weight:900;cursor:pointer}.dbHotelList{overflow:auto;margin-top:10px;display:flex;flex-direction:column;gap:7px;padding-right:2px}.dbHotelRow{border:1px solid transparent;background:transparent;border-radius:16px;padding:10px 11px;display:flex;align-items:flex-start;justify-content:space-between;gap:10px;text-align:left;cursor:pointer}.dbHotelRow:hover{background:#f7f5fc}.dbHotelRow.active{background:#fff;border-color:rgba(93,83,180,.2);box-shadow:0 12px 22px rgba(32,36,58,.07)}.dbHotelRow b{display:block;color:#302d46;font-size:13px;line-height:1.25}.dbHotelRow em{display:block;font-style:normal;color:#77728b;font-size:11px;margin-top:4px}.dbHotelRow small{border-radius:999px;background:#f1eef8;color:#5d53b4;font-size:10px;font-weight:900;padding:4px 7px;white-space:nowrap}.dbDetailPane{min-width:0;border:1px solid rgba(63,59,86,.09);background:#fff;border-radius:24px;padding:18px;box-shadow:0 12px 28px rgba(32,36,58,.04)}.dbDetailHeader{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:16px}.dbDetailTitle{font-size:22px;font-weight:1000;color:#302d46;line-height:1.15}.dbDetailSub{font-size:12px;color:#77728b;margin-top:6px}.dbFieldsGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:16px}.dbEditable{border:1px solid rgba(63,59,86,.08);background:linear-gradient(180deg,#fff,#fcfcff);border-radius:17px;padding:11px 12px;min-width:0}.dbEditable:hover{border-color:rgba(93,83,180,.22);box-shadow:0 10px 18px rgba(32,36,58,.045)}.dbEditableLabel{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:#77728b;font-weight:900;margin-bottom:6px}.dbEditableValue{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:28px}.dbEditableValue span{font-size:14px;font-weight:850;color:#302d46;overflow:hidden;text-overflow:ellipsis}.dbEditBtn{opacity:0;transform:translateX(3px);transition:.14s ease;border:0;border-radius:10px;background:#f0edf8;color:#5d53b4;width:28px;height:28px;cursor:pointer;font-weight:900}.dbEditable:hover .dbEditBtn{opacity:1;transform:none}.dbOkBtn,.dbCancelBtn{border:0;border-radius:10px;width:30px;height:30px;cursor:pointer;font-weight:1000}.dbOkBtn{background:#e8f6ef;color:#277852}.dbCancelBtn{background:#f7eded;color:#a83e3e}.dbInlineInput{min-height:34px;padding:7px 10px;border-radius:11px}.dbDetailSplit{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.dbDetailSplit.big{margin-top:14px}.dbInlineList{display:flex;flex-direction:column;gap:10px}.dbInlineItem{border:1px solid rgba(63,59,86,.08);border-radius:18px;background:#fbfbff;padding:12px}.dbInlineTop{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.dbInlineTop b{color:#302d46}.dbInlineFields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.dbTinyBtn{height:32px;border-radius:11px;border:1px solid rgba(63,59,86,.12);background:#fff;color:#5d53b4;font-weight:900;padding:0 10px;cursor:pointer}.dbFormCard{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.dbFormCard.compact{grid-template-columns:1fr}.dbFormCard label{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:#77728b;font-weight:900;display:flex;flex-direction:column;gap:6px}.dbContractPicker{display:flex;align-items:flex-end;justify-content:space-between;gap:16px}.dbContractPicker>div:first-child{min-width:280px;flex:1}.dbRegionList{display:flex;flex-direction:column;gap:8px}.dbRegionRow{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid rgba(63,59,86,.08);background:#fbfbff;border-radius:15px;padding:10px 12px}.dbSwitches{border:1px solid rgba(63,59,86,.08);border-radius:18px;overflow:hidden;background:#fff}.dbSwitchRow{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 13px;border-bottom:1px solid rgba(63,59,86,.08);font-size:13px;color:#302d46}.dbSwitchRow:last-child{border-bottom:0}.dbSwitchRow input{width:18px;height:18px}.dbChartControls{display:flex;flex-direction:column;gap:8px}.dbChartRow{display:flex;align-items:center;gap:9px;border:1px solid rgba(63,59,86,.09);background:#fafaff;border-radius:15px;padding:10px 11px;color:#302d46;font-weight:850}.dbDrag{cursor:grab;color:#77728b}.dbProfileLayout{display:flex;gap:18px;align-items:flex-start;flex-wrap:wrap}.dbProfileAvatar{width:96px;height:96px;border-radius:28px;background:#eeeaf8;object-fit:cover;border:1px solid rgba(63,59,86,.12)}.dbSkeleton{display:flex;flex-direction:column;gap:12px}.dbSkeleton div{height:58px;border-radius:16px;background:linear-gradient(90deg,#f2f0f7,#faf9fd,#f2f0f7);background-size:200% 100%;animation:dbSk 1.2s infinite}@keyframes dbSk{to{background-position:-200% 0}}.dbToast{position:fixed;right:22px;bottom:22px;z-index:10080;background:rgba(41,39,56,.96);color:#fff;border-radius:18px;box-shadow:0 24px 44px rgba(0,0,0,.22);padding:13px 15px;max-width:440px;font-size:13px;display:none;line-height:1.35}.dbToast.show{display:block}.dbToast.danger{background:rgba(126,45,55,.97)}

/* ==========================================================================
   DB COMPONENTS — cards/metrics/pills used inside Settings → Data/Notifications
   ========================================================================== */
.dbMetricGrid{ display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--space-3); margin-bottom: var(--space-4); }
.dbMetricGrid.compact{ grid-template-columns: repeat(4, minmax(0,1fr)); }
.dbCard, .dbMetric{
  border:1px solid rgba(63,59,86,.10);
  background:#fff;
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur) ease, transform var(--dur) var(--ease-out);
}
.dbCard:hover{ box-shadow: var(--shadow-md); }
.dbCard.flat{ box-shadow:none; }
.dbCard.wide{ grid-column: 1 / -1; }
.dbCardHead{ display:flex; align-items:flex-start; justify-content:space-between; gap: var(--space-3); margin-bottom: var(--space-3); }
.dbCardTitle{ font-size:14px; font-weight:900; color:#302d46; }
.dbMetricLabel{ font-size:10.5px; text-transform:uppercase; letter-spacing:.05em; color:#8b889c; font-weight:800; }
.dbMetricValue{ font-size:26px; line-height:1.1; font-weight:900; color:#302d46; margin-top: var(--space-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dbMetricHint{ font-size:12px; color:#8b889c; margin-top: var(--space-1); }
.dbMiniText, .dbMuted{ font-size:12px; color:var(--muted); line-height:1.4; }
.dbMiniLabel{ display:block; font-size:11px; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); font-weight:800; margin-bottom: var(--space-2); }
.dbGrid{ display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--space-3); }
.dbGrid.two{ grid-template-columns: repeat(2,minmax(0,1fr)); }
.dbActions{ display:flex; flex-wrap:wrap; gap: var(--space-3); margin-top: var(--space-4); }
.dbBtn{
  height:42px; border-radius: var(--radius-pill);
  border:1px solid rgba(63,59,86,.16);
  background:#fff; color:#3f3b56; font-weight:800; padding:0 18px; cursor:pointer;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur) ease, border-color var(--dur) ease, transform var(--dur-fast) ease;
}
.dbBtn:hover:not(:disabled){ border-color: rgba(93,83,180,.32); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.dbBtn:disabled{ opacity:.5; cursor:not-allowed; transform:none; box-shadow:none; }
.dbBtn.primary{ border:0; background: var(--accent2); color:#fff; }
.dbBtn.danger{ border:0; background:#dd7e7e; color:#fff; }
.dbPill{
  display:inline-flex; align-items:center; gap: 6px; min-height:26px;
  border-radius: var(--radius-pill); background: rgba(93,83,180,.08); color:#544d97;
  font-size:11px; font-weight:800; padding: 4px 11px; white-space:nowrap;
}
.dbPill.ok{ background: rgba(51,160,111,.10); color:#277852; }
.dbPill.warn{ background: rgba(214,154,57,.12); color:#8a5c17; }
.dbPill.danger{ background: rgba(211,89,89,.12); color:#a83e3e; }
.dbNotice{ font-size:12.5px; color:#655f7a; background:#fafaff; border:1px solid rgba(63,59,86,.08); border-radius: var(--radius-md); padding: 12px 14px; line-height:1.5; margin: var(--space-3) 0; }
.dbNotice.ok{ background: rgba(51,160,111,.08); border-color: rgba(51,160,111,.18); color:#277852; }
.dbNotice.danger{ background: rgba(211,89,89,.08); border-color: rgba(211,89,89,.18); color:#934141; }
.dbNotice code{ font-family: ui-monospace,SFMono-Regular,Menlo,monospace; background: rgba(255,255,255,.8); border:1px solid rgba(0,0,0,.06); border-radius: 8px; padding:1px 6px; }
.dbEmpty{ font-size:13px; color:#8b889c; padding: var(--space-4); border:1px dashed rgba(63,59,86,.2); border-radius: var(--radius-md); background:#fbfbff; }
.dbEmpty.big{ padding:42px; text-align:center; }
.dbTimeline{ display:flex; flex-direction:column; gap: var(--space-2); }
.dbTimelineRow{ border:1px solid rgba(63,59,86,.08); background:#fbfbff; border-radius: var(--radius-md); padding: var(--space-3); display:flex; gap: var(--space-3); text-align:left; cursor:pointer; transition: box-shadow var(--dur) ease, transform var(--dur) var(--ease-out); }
.dbTimelineRow:hover{ box-shadow: var(--shadow-sm); transform: translateX(2px); }
.dbTimelineRow b{ display:block; font-size:13px; color:#302d46; }
.dbTimelineRow em{ display:block; font-style:normal; font-size:11px; color:#8b889c; margin-top: var(--space-1); }
.dbSkeleton{ display:flex; flex-direction:column; gap: var(--space-3); }
.dbSkeleton div{ height:58px; border-radius: var(--radius-md); background: linear-gradient(90deg,#f2f0f7,#faf9fd,#f2f0f7); background-size:200% 100%; animation: dbSk 1.2s infinite; }
@keyframes dbSk{ to{ background-position:-200% 0; } }
.dbStatus{ font-size:13px; color:var(--muted); }
.dbFormCard{ display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--space-3); }
.dbFormCard.compact{ grid-template-columns:1fr; }
.dbFormCard label{ font-size:11px; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); font-weight:800; display:flex; flex-direction:column; gap: var(--space-2); }
.dbInput{
  width:100%; border:1px solid rgba(63,59,86,.16); border-radius: var(--radius-md);
  background:#fff; color:var(--ink); font:inherit; padding:11px 14px; min-height:44px;
  transition: border-color var(--dur) ease, box-shadow var(--dur) ease;
}
.dbInput:focus{ outline:none; border-color: rgba(93,83,180,.45); box-shadow: 0 0 0 4px rgba(93,83,180,.10); }
.dbRegionList{ display:flex; flex-direction:column; gap: var(--space-2); }
.dbRegionRow{ display:flex; align-items:center; justify-content:space-between; gap: var(--space-3); border:1px solid rgba(63,59,86,.08); background:#fbfbff; border-radius: var(--radius-md); padding: 11px 14px; }
.dbContractPicker{ display:flex; align-items:flex-end; justify-content:space-between; gap: var(--space-4); }
.dbContractPicker > div:first-child{ min-width:280px; flex:1; }
.dbDetailSplit{ display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--space-3); }
.dbDetailSplit.big{ margin-top: var(--space-3); }
.dbSwitches{ border:1px solid rgba(63,59,86,.08); border-radius: var(--radius-md); overflow:hidden; background:#fff; }
.dbSwitchRow{ display:flex; align-items:center; justify-content:space-between; gap: var(--space-3); padding: 11px 14px; border-bottom:1px solid rgba(63,59,86,.08); font-size:13px; color:#302d46; }
.dbSwitchRow:last-child{ border-bottom:0; }
.dbSwitchRow input{ width:18px; height:18px; accent-color: var(--accent2); }
.dbProfileLayout{ display:flex; gap: var(--space-4); align-items:flex-start; flex-wrap:wrap; }
.dbProfileAvatar{ width:96px; height:96px; border-radius: var(--radius-lg); background:#eeeaf8; object-fit:cover; border:1px solid rgba(63,59,86,.12); }
@media (max-width:760px){
  .dbGrid, .dbGrid.two, .dbDetailSplit, .dbFormCard, .dbMetricGrid{ grid-template-columns:1fr; }
  .dbContractPicker{ display:block; }
  .dbContractPicker .dbActions{ margin-top: var(--space-3); }
}

/* SPO Reminder settings — group-by-type layout */
.spoRemSection{ display:flex; flex-direction:column; gap:10px; }
.spoRemRow{
  display:grid; grid-template-columns:90px 1fr; gap:14px; align-items:stretch;
  background:#fff; border:1px solid rgba(63,59,86,.09); border-radius:var(--radius-md);
  padding:14px 16px; transition:box-shadow var(--dur) ease, border-color var(--dur) ease;
}
.spoRemRow:hover{ box-shadow:var(--shadow-sm); border-color:rgba(63,59,86,.15); }
.spoRemBadge{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:6px; text-align:center; border-radius:var(--radius-sm); padding:12px 8px;
  font-size:9.5px; font-weight:900; text-transform:uppercase; letter-spacing:.07em; line-height:1.2;
}
.spoRemBadge i{ font-size:22px; font-style:normal; display:block; line-height:1; }
.spoRemBadge--release{ background:rgba(51,160,111,.08); color:#277852; }
.spoRemBadge--expiring{ background:rgba(214,154,57,.10); color:#8a5c17; }
.spoRemBadge--expired{ background:rgba(211,89,89,.08); color:#934141; }
.spoRemFields{ display:grid; grid-template-columns:1fr 1fr; gap:10px; align-items:end; }
.spoRemField{ display:flex; flex-direction:column; gap:5px; }
.spoRemField > span{ font-size:10.5px; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); font-weight:800; line-height:1.35; }
@media (max-width:760px){
  .spoRemRow{ grid-template-columns:1fr; }
  .spoRemBadge{ flex-direction:row; border-radius:var(--radius-pill); padding:5px 14px; justify-content:flex-start; gap:8px; }
  .spoRemBadge i{ font-size:14px; }
  .spoRemFields{ grid-template-columns:1fr; }
}

/* Chart manager (Settings → Data → Charts) */
.dbChartControls{ display:flex; flex-direction:column; gap: var(--space-2); }
.dbChartRow.native{
  height:46px; border-radius: var(--radius-md); border:1px solid rgba(62,61,86,.10);
  background:#fff; padding:0 12px; display:grid; grid-template-columns:28px minmax(0,1fr) auto;
  gap: var(--space-2); align-items:center; cursor:grab;
  transition: box-shadow var(--dur) ease, opacity var(--dur) ease;
}
.dbChartRow.native:hover{ box-shadow: var(--shadow-sm); }
.dbChartRow.native.dragging{ opacity:.5; }
.dbDrag{ cursor:grab; color: var(--muted); }
.dbDrag:active{ cursor:grabbing; }
.dbTinyBtn{ height:30px; border-radius: var(--radius-pill); border:1px solid rgba(62,61,86,.14); background:#fff; color: var(--accent2); padding:0 11px; font-weight:800; cursor:pointer; transition: background var(--dur) ease; }
.dbTinyBtn:hover{ background: rgba(46,46,64,.05); }
.dbRestoreList{ display:flex; flex-direction:column; gap: var(--space-2); }
.dbRestoreList.inline{ flex-direction:row; flex-wrap:wrap; align-items:center; }
.dbRestoreChart, .dbCustomChartChip{
  height:32px; border-radius: var(--radius-pill); border:1px solid rgba(62,61,86,.14);
  background:#fff; color: var(--text); display:inline-flex; align-items:center; gap:6px;
  padding:0 12px; font-size:12px; font-weight:800;
}
.dbCustomChartChip button{ border:0; background:transparent; color:#b54646; font-size:16px; line-height:1; cursor:pointer; }
.dbCustomChartRow{ display:grid; grid-template-columns: minmax(0,1fr) auto auto; gap: var(--space-2); align-items:center; min-height:42px; border-bottom:1px solid rgba(62,61,86,.08); }
.dbChartQuickBtn{
  height:34px; border-radius: var(--radius-pill); padding:0 16px;
  background: rgba(63,60,87,.08); border:1px solid rgba(63,60,87,.14);
  color:#3f3c57; font-weight:800; cursor:pointer; transition: background var(--dur) ease, color var(--dur) ease;
}
.dbChartQuickBtn:hover{ background:#efedf8; border-color:rgba(93,83,180,.22); color:#5d53b4; }
.dbChartQuickPanel{
  position:absolute; z-index:6; margin-top:-4px; right:0;
  width:min(560px, calc(100vw - 56px));
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border:1px solid rgba(62,61,86,.12);
  background:#fff;
  box-shadow: var(--shadow-lg);
  animation: bmModalIn var(--dur) var(--ease-out);
}
.dbChartQuickPanel[hidden]{ display:none; }
.dbChartQuickHead{ display:flex; justify-content:space-between; align-items:center; margin-bottom: var(--space-3); color:var(--text); }
.dbChartQuickHead span{ font-size:12px; color:var(--muted); }
.dbChartQuickSections{ display:grid; gap: var(--space-3); }
.dbChartQuickGrid{ display:grid; grid-template-columns: minmax(180px,1fr) minmax(220px,280px) auto auto; gap: var(--space-3); align-items:center; margin-top: var(--space-3); }
@media (max-width:900px){ .dbChartQuickGrid{ grid-template-columns:1fr; } .dbChartQuickPanel{ width:calc(100vw - 56px); } }

.dbChartCardTools{
  position:absolute; right: var(--space-3); top: var(--space-3);
  display:flex; gap: var(--space-2);
  opacity:0; transform: translateY(-3px);
  transition: opacity var(--dur-fast) ease, transform var(--dur-fast) ease;
  z-index:4;
}
.chartsGrid > .card:hover .dbChartCardTools{ opacity:1; transform: translateY(0); }
.dbChartDrag, .dbChartHide{
  width:32px; height:32px; border-radius: var(--radius-sm);
  display:inline-flex; align-items:center; justify-content:center;
  border:1px solid rgba(62,61,86,.12); background: rgba(255,255,255,.94);
  color: var(--accent2); box-shadow: var(--shadow-sm); font-weight:800; cursor:pointer;
}
.dbChartHide{ font-size:17px; }
.chartsGrid > .card.dragging{ opacity:.55; outline:2px dashed rgba(63,60,87,.34); }

/* Custom badge color editor */
.dbBadgeEditor{
  position:fixed; z-index:9999; display:grid; gap: var(--space-3);
  width:min(360px, calc(100vw - 24px)); padding: var(--space-4);
  border-radius: var(--radius-lg); border:1px solid rgba(62,61,86,.12);
  background:#fff; box-shadow: var(--shadow-xl);
  animation: bmModalIn var(--dur) var(--ease-out);
}
.dbBadgeEditorHead{ font-weight:800; font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:#858595; }
.dbBadgeEditor .input{ height:46px; border-radius: var(--radius-md); font-size:15px; }
.dbBadgePalette{ display:grid; grid-template-columns: repeat(10,1fr); gap: var(--space-2); align-items:center; }
.dbBadgeColorBtn{
  appearance:none; width:26px; height:26px; border-radius: var(--radius-pill);
  border:1px solid rgba(62,61,86,.14); background: var(--badge-pick);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.75); cursor:pointer;
  transition: transform var(--dur-fast) ease, box-shadow var(--dur) ease;
}
.dbBadgeColorBtn:hover{ transform: translateY(-1px); box-shadow: inset 0 0 0 2px rgba(255,255,255,.75), var(--shadow-md); }
.dbBadgeColorBtn.active{ border-color:#5045a0; box-shadow: inset 0 0 0 3px rgba(255,255,255,.9), 0 0 0 3px rgba(88,74,186,.2); }
.dbBadgeActions{ display:flex; justify-content:flex-end; gap: var(--space-2); align-items:center; }
.dbBadgeEditor .btn{ height:40px; border-radius: var(--radius-pill); padding:0 18px; }
.dbBadgeEditor .btn.danger{ margin-right:auto; background:#fff; color:#b54646; border:1px solid rgba(181,70,70,.22); }

/* Inline meta badge (table) pencil-to-edit affordance */
.badge.metaTag{ min-height:26px; height:auto; max-width:min(100%,520px); display:inline-flex; align-items:flex-start; gap:6px; white-space:normal; overflow:visible; text-overflow:clip; line-height:1.25; }
.metaBadgeLabel{ min-width:0; overflow:visible; text-overflow:clip; white-space:normal; overflow-wrap:anywhere; word-break:break-word; }
.metaBadgePencil{
  width:16px; height:16px; min-width:16px; border-radius: var(--radius-pill);
  display:inline-flex; align-items:center; justify-content:center;
  background: rgba(255,255,255,.85); color:#3f3c57; font-size:9px; line-height:1; font-weight:900;
  box-shadow: 0 1px 4px rgba(18,20,35,.14); opacity:.85;
  transition: opacity var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.badge.metaTag:hover .metaBadgePencil{ opacity:1; transform: translateY(-1px); }
.dbLiveEditable{
  position:relative; border-radius: var(--radius-sm); padding:6px 32px 6px 8px; margin:-6px -8px;
  min-height:32px; transition: background var(--dur) ease, box-shadow var(--dur) ease;
}
.dbLiveEditable:hover{ background: rgba(255,255,255,.8); box-shadow: inset 0 0 0 1px rgba(62,61,86,.08); }
td.dbLiveEditable{ display:table-cell; margin:0; padding:9px 32px 9px 10px; }
.dbLiveEditBtn{
  position:absolute; right:6px; top:50%; transform: translateY(-50%) translateX(4px);
  width:26px; height:26px; border-radius: var(--radius-sm); border:0;
  background:rgba(63,60,87,.10) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235045a0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.12 2.12 0 0 1 3 3L8 18l-4 1 1-4Z'/%3E%3C/svg%3E") center/12px 12px no-repeat;
  color:var(--accent2); font-size:0; font-weight:900; opacity:0; cursor:pointer;
  transition:opacity var(--dur-fast) ease, transform var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.dbLiveEditable:hover > .dbLiveEditBtn,
.dbLiveEditable > .dbLiveEditBtn:focus-visible{ opacity:1; transform: translateY(-50%); }
.dbLiveEditBtn:hover{ background-color:rgba(63,60,87,.16); }
.dbLiveEditable.editing{ background:#fff; box-shadow:0 0 0 2px rgba(63,60,87,.14); z-index:3; }
.dbQuickEditor{ display:flex; align-items:center; gap: var(--space-2); min-width:220px; }
.dbQuickInput{ height:36px; min-width:120px; padding:0 10px; }
.dbQuickOk, .dbQuickCancel{ width:34px; height:34px; border-radius: var(--radius-sm); border:0; font-weight:900; cursor:pointer; }
.dbQuickOk{ background: rgba(155,195,154,.30); color:#2f723f; }
.dbQuickCancel{ background: rgba(217,107,107,.18); color:#9b3a3a; }

/* ==========================================================================
   RESORT MAP overlay + launcher
   ========================================================================== */
.resortMapLauncher{
  position:fixed; right: var(--space-5); bottom: var(--space-5); z-index:780;
  border:1px solid rgba(255,255,255,.6); border-radius: var(--radius-pill);
  background: rgba(63,59,86,.55); color:#fff;
  width:50px; height:50px; padding:0;
  display:inline-flex; align-items:center; justify-content:center;
  cursor:pointer; box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px) saturate(1.1);
  opacity:.78;
  transition: opacity var(--dur) ease, transform var(--dur) ease, background var(--dur) ease, box-shadow var(--dur) ease;
}
.resortMapLauncher[hidden]{ display:none !important; }
.resortMapLauncher:hover{ opacity:1; transform: translateY(-2px); background: rgba(63,59,86,.74); box-shadow: var(--shadow-xl); }
.resortMapLauncher:active{ transform: translateY(0) scale(.96); }
.resortMapLauncherIcon{
  width:24px; height:24px; display:block; background: currentColor;
  -webkit-mask: url('/img/icon_map.png') center / contain no-repeat;
  mask: url('/img/icon_map.png') center / contain no-repeat;
}
.resortMapOverlay{ position:fixed; inset:0; z-index:1060; display:none; }
.resortMapOverlay.open{ display:block; }
.resortMapBackdrop{ position:absolute; inset:0; background: rgba(3,7,18,.55); backdrop-filter: blur(4px); }
.resortMapPanel{
  position:absolute; inset: var(--space-5);
  display:flex; flex-direction:column; overflow:hidden;
  border-radius: var(--radius-xl); background:#fff;
  box-shadow: var(--shadow-xl);
  border:1px solid rgba(255,255,255,.6);
  animation: bmModalIn var(--dur-slow) var(--ease-out);
}
.resortMapHead{
  flex:0 0 auto; min-height:60px; padding: var(--space-3) var(--space-4) var(--space-3) var(--space-5);
  display:flex; align-items:center; justify-content:space-between; gap: var(--space-4);
  background: linear-gradient(135deg, var(--hdr,#272630), var(--bar,#3F3B56));
  color:#fff;
}
.resortMapTitle{ font-size:15px; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.resortMapClose{
  width:38px; height:38px; border:0; border-radius: var(--radius-pill);
  background: rgba(255,255,255,.14); color:#fff; font-size:24px; line-height:1; cursor:pointer;
  transition: background var(--dur) ease;
}
.resortMapClose:hover{ background: rgba(255,255,255,.24); }
.resortMapFrame{ flex:1 1 auto; min-height:0; width:100%; border:0; background:#082f49; }
body.resortMapOpen{ overflow:hidden; }
@media (max-width:760px){
  .resortMapLauncher{ right: var(--space-3); bottom: var(--space-3); width:48px; height:48px; }
  .resortMapPanel{ inset: var(--space-2); border-radius: var(--radius-lg); }
}

/* ==========================================================================
   INLINE RESORT INFO (search results inside Hotels table search)
   ========================================================================== */
.inlineResortInf{ margin-top: var(--space-3); padding: var(--space-4); border:1px solid var(--line); border-radius: var(--radius-lg); background:#ffffff; text-align:left; overflow:hidden; }
.inlineResortInf .riTitle{ font-size:14px; font-weight:800; margin-bottom: var(--space-2); color: var(--ink); }
.inlineResortInf .riGrid{ display:grid; gap: var(--space-3); grid-template-columns:1fr; min-width:0; }
@media (min-width:980px){ .inlineResortInf .riGrid{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
.inlineResortInf .riItem{ padding: var(--space-3); border:1px solid var(--line); border-radius: var(--radius-md); background:#fbfbfd; min-width:0; max-width:100%; overflow:hidden; }
.inlineResortInf .riItemHead{ display:flex; align-items:center; justify-content:space-between; gap: var(--space-3); user-select:none; min-width:0; }
.inlineResortInf .riItemTitle{ font-size:12px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; margin:0; color: var(--ink); min-width:0; }
.inlineResortInf .riBody{ margin-top: var(--space-1); min-width:0; max-width:100%; }
.inlineResortInf .riKV{ display:grid; grid-template-columns: minmax(110px,180px) minmax(0,1fr); gap: var(--space-2); padding:3px 0; align-items:start; min-width:0; max-width:100%; }
.inlineResortInf .riKV > .k, .inlineResortInf .riKV > .v{ min-width:0; max-width:100%; white-space:normal; overflow-wrap:anywhere; word-break:break-word; }
.inlineResortInf .riKV .k{ font-size:12.5px; color: var(--muted); font-weight:650; }
.inlineResortInf .riKV .v{ font-size:13px; color: var(--ink); line-height:1.4; }
.inlineResortInf .riLine{ font-size:13px; color: var(--ink); line-height:1.4; min-width:0; max-width:100%; white-space:normal; overflow-wrap:anywhere; word-break:break-word; }
.inlineResortInf .riLine b{ color: var(--muted); font-weight:650; }
@media (max-width:520px){ .inlineResortInf .riKV{ grid-template-columns:1fr; gap: var(--space-1); } }
.riSearchMeta{ margin-top: var(--space-2); font-size:12px; color: var(--muted); }
.riSearchEmpty{ margin-top: var(--space-3); padding: 14px 16px; border-radius: var(--radius-md); border:1px dashed rgba(62,61,86,.2); color: var(--muted); background: rgba(255,255,255,.6); }
.riSearchStatus mark, .inlineResortInf mark, .section mark{ background: rgba(255,181,76,.36); color:inherit; padding:0 .14em; border-radius:4px; }

/* ==========================================================================
   DELETE HOTEL confirm dialog
   ========================================================================== */
.bmDetailsDeleteHotelBtn{
  width:40px; height:40px; border-radius: var(--radius-md);
  display:grid; place-items:center;
  border:1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.10); color:#fff;
  cursor:pointer; padding:0; flex:0 0 auto;
  transition: background var(--dur) ease, border-color var(--dur) ease, transform var(--dur-fast) ease, opacity var(--dur) ease;
}
.bmDetailsDeleteHotelBtn svg{ width:18px; height:18px; fill:currentColor; opacity:.92; }
.bmDetailsDeleteHotelBtn:hover{ background: rgba(255,107,107,.20); border-color: rgba(255,180,180,.5); transform: translateY(-1px); }
.bmDetailsDeleteHotelBtn:disabled{ opacity:.55; cursor:wait; transform:none; }
.bmDetailsConfirmOverlay{
  position:fixed; inset:0; z-index:2147483600;
  display:flex; align-items:center; justify-content:center; padding: var(--space-5);
  background: rgba(18,18,28,.5); backdrop-filter: blur(8px);
  animation: bmFade var(--dur) ease;
}
.bmDetailsConfirm{
  width:min(440px, calc(100vw - 36px)); background:#fff; color:#171729;
  border:1px solid rgba(38,37,55,.10); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl); padding: var(--space-5); position:relative;
  animation: bmModalIn var(--dur-slow) var(--ease-out);
}
.bmDetailsConfirmClose{
  position:absolute; right: var(--space-3); top: var(--space-3);
  width:36px; height:36px; border-radius: var(--radius-sm);
  border:1px solid rgba(38,37,55,.10); background:#fff; cursor:pointer; font-size:20px; line-height:1;
}
.bmDetailsConfirmTitle{ font-weight:900; font-size:20px; margin-right: var(--space-6); margin-bottom: var(--space-2); }
.bmDetailsConfirmText{ font-size:14px; line-height:1.5; color:#66647a; margin-bottom: var(--space-4); }
.bmDetailsConfirmActions{ display:flex; justify-content:flex-end; gap: var(--space-3); }
.bmDetailsConfirmCancel, .bmDetailsConfirmYes{
  min-height:44px; border-radius: var(--radius-pill); border:1px solid rgba(38,37,55,.14);
  background:#fff; padding:0 18px; font-weight:800; cursor:pointer;
  transition: transform var(--dur-fast) ease, box-shadow var(--dur) ease;
}
.bmDetailsConfirmCancel:hover, .bmDetailsConfirmYes:hover{ transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.bmDetailsConfirmYes{ background: var(--accent); border-color: var(--accent); color:#fff; }
.bmDetailsConfirmYes.danger{ background:#fff; border-color: rgba(255,107,107,.4); color:#c92238; }
.bmDetailsConfirmYes.danger:hover{ background: #fff3f5; }

/* Inline editable hotel name chip (table + card variants) */
.bmInlineChip{ display:inline-flex; align-items:center; gap: 7px; }
.bmInlineChip.dbLiveEditable{ padding:8px 34px 8px 10px; margin:0; }
.bmInlineChip.dbLiveEditable .dbLiveEditBtn{ right: var(--space-2); }
.hotelCardNameEditable{ display:inline-block; max-width:100%; }

/* ==========================================================================
   RESPONSIVE — topbar, kpis, table/cards switch, side panel, modals
   ========================================================================== */
@media (max-width:980px){
  .wrap{ padding: 14px; }
  .kpis{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  #settingsModal .modalCard.modalWide{ width:min(720px, calc(100vw - 24px)); }
}

@media (max-width:900px){
  .globalSearchWrap{ order:2; flex-basis:100%; max-width:none; }
  .topbar .wrap{ flex-wrap:wrap; }
}

@media (max-width:760px){
  .wrap{ padding: var(--space-3); overflow-x:hidden; }
  body{ overflow-x:hidden; }

  .topbar .wrap{
    display:grid;
    grid-template-columns: auto minmax(0,1fr) auto auto;
    grid-template-areas: "logo search search search" "logout logout anim anim";
    gap: 10px 12px;
    align-items:center;
    overflow-x:hidden;
  }
  .topbar .spacer, #updatedPill, #settingsBtn{ display:none !important; }
  .topbar .brand{ grid-area:logo; justify-self:start; }
  #q{ grid-area:search; width:100%; max-width:100%; min-width:0; }
  #logoutBtn{
    grid-area:logout; justify-self:start; display:flex; align-items:center; justify-content:center;
    line-height:1; padding:0 18px; height:42px; min-width:110px;
  }
  #headerAnimationToggle{ grid-area:anim; justify-self:end; min-width:0; padding:0 14px; max-width:none; }
  #headerAnimationToggleText{ display:inline !important; }

  .kpis{ grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--space-3); }
  .kpi{ padding: 0; }

  .chartsGrid{ grid-template-columns:1fr; gap: var(--space-3); }
  .chartBox{ min-height:220px; }
  .chartBox.tall{ min-height:220px; }
  .legendRow{ min-height:0; }

  .side{ top:0; right:0; width:100%; height:100%; border-radius:0; }
  .sideHeader{ padding: var(--space-4); }
  .sideHeader .h .name{ font-size:18px; letter-spacing:.1em; }
  .tabs{ flex-wrap:nowrap; overflow-x:auto; gap: var(--space-2); padding: var(--space-3) var(--space-4); margin: -14px -16px var(--space-4); -webkit-overflow-scrolling:touch; }
  .tabBtn{ padding: 9px 16px; font-size:13px; white-space:nowrap; }
  .section{ border-radius: var(--radius-md); padding: var(--space-3); }
  .kvRow{ grid-template-columns:1fr; gap: var(--space-1); }
  .chipRow{ gap: var(--space-2); }
  .chip{ width:100%; justify-content:space-between; }

  .hotelCard{ padding: var(--space-3); }
  .hotelCardGrid{ grid-template-columns: 1fr 1fr; gap: var(--space-2); }
  .hotelField.full{ grid-column: 1 / -1; }
  .hotelCardNameRow{ flex-direction:row; flex-wrap:wrap; }
  .btn{ min-height:42px; }
  .close{ width:44px; height:44px; }

  .resortMapSub{ display:none; }
  .settingsGrid, .styleGrid{ grid-template-columns:1fr; }
}

html.bm-force-mobile .tableWrap{ display:block !important; border:none; }
html.bm-force-mobile .hotelCards{ display:block !important; }
html.bm-force-mobile .tableWrap table{ display:none !important; }
html.bm-force-mobile body, html.bm-force-mobile .wrap{ overflow-x:hidden; }

/* ==========================================================================
   GAP FILL — a few classes used by app.js that need explicit rules
   ========================================================================== */

/* Meta status badges: hotel opening soon / temporary closure */
.badge.metaTag.opening, .badge.opening{ background: var(--badgeColor, var(--opening)); color:#fff; }
.badge.metaTag.closure, .badge.closure{ background: var(--badgeColor, var(--closure)); color:#fff; }

/* Map-pin button variants: inline (next to name) vs action-row (card footer) */
.hotelMapBtnInline{
  width:24px; height:24px; min-width:24px; border-radius: var(--radius-sm);
  color: rgba(63,59,86,.7); background: rgba(63,59,86,.05);
}
.hotelMapBtnInline .hotelMapBtnIcon{ width:14px; height:14px; }
.hotelMapBtnAction{ display:none; }
@media (max-width:760px){
  .hotelCardNameRow .hotelMapBtnInline{ display:none; }
  .hotelCardActions .hotelMapBtnAction{
    display:inline-flex !important; width:38px; height:38px; min-width:38px;
    border:1px solid rgba(62,61,86,.16); border-radius: var(--radius-md);
    background:#fff; color: rgba(63,59,86,.78);
  }
  .hotelCardActions .hotelMapBtnAction .hotelMapBtnIcon{ width:16px; height:16px; }
}
html.bm-force-mobile .hotelCardNameRow .hotelMapBtnInline{ display:none; }
html.bm-force-mobile .hotelCardActions .hotelMapBtnAction{
  display:inline-flex !important; width:38px; height:38px; min-width:38px;
  border:1px solid rgba(62,61,86,.16); border-radius: var(--radius-md);
  background:#fff; color: rgba(63,59,86,.78);
}

/* Calculation / markup rows shown inside hotel detail item cards */
.markupRows{ display:flex; flex-direction:column; gap: var(--space-2); margin-top: var(--space-2); }
.markupRow{
  display:grid; grid-template-columns: minmax(120px,160px) minmax(0,1fr); gap: var(--space-3);
  padding: 10px 12px; border:1px solid rgba(62,61,86,.08); border-radius: var(--radius-sm);
  background: rgba(46,46,64,.025); font-size:13px;
}
.markupMarket{ font-weight:800; color: var(--muted); }
.markupRule{ color: var(--text); line-height:1.45; }
.samoCalcRows{ margin-top: var(--space-2); }
.contractCalcRows{ margin-top: var(--space-2); }

/* Failed-login row helpers */
.failedUaLabel{ color: var(--ink); font-weight:800; opacity:.78; }
.ipQuickUnblock{ height:32px !important; padding:0 12px !important; border-radius: var(--radius-pill) !important; }

/* Resort-info inline search input (distinct from the header search pill) */
.riSearchInput{
  width:100%; height:44px; padding:0 16px;
  border-radius: var(--radius-pill);
  border:1px solid rgba(62,61,86,.16);
  background: rgba(255,255,255,.92);
  color: var(--text); outline:none; font-size:13.5px;
  box-shadow: var(--shadow-inset);
  transition: border-color var(--dur) ease, box-shadow var(--dur) ease;
}
.riSearchInput:focus{ border-color: rgba(62,61,86,.32); box-shadow: 0 0 0 4px rgba(169,207,222,.2); }

/* ==========================================================================
   RIGHT-SIDE "Recent updates" FEED DOCK (dashboard)
   Element itself is created by dashboard-admin.js; default geometry and
   card styling live here so the dashboard layout is correct even before
   the JS-injected refinement layer (next pass) runs.
   ========================================================================== */
:root{ --bm-feed-w: 360px; --bm-feed-gap: 28px; }
@media (min-width: 1561px){
  body > .wrap{ padding-right: calc(var(--bm-feed-w) + var(--bm-feed-gap) + 20px); }
}
.dbFeedDock{
  position:fixed; right: var(--space-5); top:76px;
  width: var(--bm-feed-w); z-index:6; pointer-events:auto;
}
.dbFeedDock .dbFeed, .dbFeedDock .card.dbFeed{
  display:block; width:100%;
  max-height: calc(100vh - 126px); overflow:hidden;
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border:1px solid rgba(62,61,86,.10);
  box-shadow: var(--shadow-lg);
  padding: var(--space-4);
}
.dbFeedTop{ display:flex; align-items:flex-start; justify-content:space-between; gap: var(--space-3); }
.dbMiniIconBtn{
  width:34px; height:34px; border-radius: var(--radius-sm);
  border:1px solid rgba(62,61,86,.10); background:#fff; color: var(--accent2);
  font-weight:900; cursor:pointer; transition: background var(--dur) ease, transform var(--dur-fast) ease;
}
.dbMiniIconBtn:hover{ background: rgba(46,46,64,.05); transform: rotate(-25deg); }
.dbFeedList{ margin-top: var(--space-3); display:flex; flex-direction:column; gap: var(--space-2); max-height: calc(100vh - 220px); overflow:auto; padding-right:2px; }
.dbFeedItem{
  width:100%; border:1px solid rgba(62,61,86,.08); background:#fbfbff;
  border-radius: var(--radius-md); padding: var(--space-3);
  display:grid; grid-template-columns:30px minmax(0,1fr); gap: var(--space-3);
  text-align:left; cursor:pointer; color: var(--text);
  transition: border-color var(--dur) ease, box-shadow var(--dur) ease, transform var(--dur) var(--ease-out);
}
.dbFeedItem:hover{ border-color: rgba(63,60,87,.22); box-shadow: var(--shadow-sm); transform: translateX(2px); }
.dbFeedIcon{ width:30px; height:30px; border-radius:50%; background:#ece9e2; color: var(--accent2); font-weight:900; font-size:11px; display:flex; align-items:center; justify-content:center; }
.dbFeedContent{ min-width:0; }
.dbFeedTitle{ display:block; font-weight:900; font-size:12px; line-height:1.3; }
.dbFeedMeta{ display:block; margin-top: var(--space-1); color:var(--muted); font-size:11px; line-height:1.35; }
@media (max-width:1560px){
  .dbFeedDock{ position:static; width:auto; margin: var(--space-4) 0 0; }
  .dbFeedDock .dbFeed{ max-height:none; }
}


/* ==========================================================================
   RESTORED LEGACY STRUCTURE — profile menu, SPO chat, alerts, attachments
   Recovered from the old public CSS because these elements are created by JS
   and require base display/position rules outside JS-injected patch layers.
   ========================================================================== */

/* Profile popup */
.bmProfileHolder{position:relative;display:inline-flex;align-items:center}.bmProfileBtn{width:40px;height:40px;border-radius:15px;border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.13);color:#fff;display:inline-flex;align-items:center;justify-content:center;overflow:hidden;font-weight:1000;cursor:pointer}.bmProfileBtn img{width:100%;height:100%;object-fit:cover;display:block}.bmProfileMenu{position:absolute;right:0;top:calc(100% + 10px);width:320px;border-radius:24px;background:#fff;color:var(--text);box-shadow:0 28px 70px rgba(15,18,35,.28);border:1px solid rgba(62,61,86,.10);padding:16px;display:none;z-index:10020}.bmProfileMenu.open{display:block}.bmProfileMenu label{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);font-weight:900;display:flex;flex-direction:column;gap:6px;margin-top:11px}.bmProfileMenuHead{display:flex;align-items:center;gap:12px;padding-bottom:12px;border-bottom:1px solid rgba(62,61,86,.08)}.bmProfileMenuHead b{display:block;font-size:14px;color:var(--text)}.bmProfileMenuHead span{display:block;margin-top:3px;font-size:12px;color:var(--muted)}.bmProfileMenuAvatar{width:52px;height:52px;border-radius:18px;display:flex;align-items:center;justify-content:center;background:#ece9e2;color:#3f3c57;font-weight:1000;overflow:hidden}.bmProfileMenuAvatar img{width:100%;height:100%;object-fit:cover}.bmProfileActions{margin-top:12px;display:flex;justify-content:flex-end}

/* Attachment tray base */
.bmFileBtn{height:54px;width:54px;border-radius:18px;border:1px solid rgba(62,61,86,.12);background:#fff;color:var(--text);font-size:20px;box-shadow:0 10px 22px rgba(28,32,54,.05);cursor:pointer}.bmAttachTray{display:flex;flex-wrap:wrap;gap:8px}.bmAttachChip{display:inline-flex;align-items:center;gap:8px;border:1px solid rgba(62,61,86,.1);background:#fff;border-radius:12px;padding:7px 9px;font-size:12px;color:var(--text);max-width:240px}.bmAttachChip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bmAttachChip button{border:0;background:rgba(63,59,86,.08);width:20px;height:20px;border-radius:8px;cursor:pointer}.bmComposerRow.hasAttach{grid-template-columns:auto auto minmax(0,1fr) auto}.bmComposerAttachWrap{display:flex;flex-direction:column;gap:8px;align-items:flex-start}


/* Native dashboard alerts / sheets */
.fix7Editable{position:relative!important;padding-right:30px!important;border-radius:10px!important}.fix7Editable:hover{background:rgba(93,83,180,.055)!important}.fix7Pencil{position:absolute;right:4px;top:4px;width:24px;height:24px;border:0;border-radius:9px;background:#fff;color:#3f3c57;box-shadow:0 4px 12px rgba(28,32,54,.08);opacity:0;cursor:pointer;font-size:12px}.fix7Editable:hover>.fix7Pencil{opacity:1}.fix7Editor{display:flex!important;align-items:center!important;gap:6px!important;width:100%}.fix7Input{width:100%;min-height:38px;border:1px solid rgba(62,61,86,.14);border-radius:14px;background:#fff;padding:8px 12px;font:inherit;color:#16152a;box-sizing:border-box}.fix7Editor textarea.fix7Input{min-height:96px;resize:vertical}.fix7Save,.fix7Cancel{width:32px;height:32px;border-radius:12px;border:1px solid rgba(62,61,86,.12);background:#fff;color:#3f3c57;font-weight:900;cursor:pointer}.fix7Save{background:#5d53b4;color:#fff}.fix7AddBtn{height:30px;border-radius:999px;border:1px solid rgba(62,61,86,.12);background:#fff;color:#3f3c57;font-size:11px;font-weight:900;padding:0 12px;cursor:pointer}.fix7AddBtn:hover{background:#3f3c57;color:#fff}.fix7SheetOverlay{position:fixed;inset:0;z-index:10040;background:rgba(20,21,32,.42);backdrop-filter:blur(10px);display:flex;align-items:center;justify-content:center}.fix7Sheet{width:min(560px,calc(100vw - 36px));max-height:calc(100vh - 50px);overflow:auto;background:#f7f6f2;border-radius:28px;box-shadow:0 28px 90px rgba(18,20,35,.32);padding:24px;position:relative}.fix7Sheet h3{font-size:22px;margin:0 0 18px}.fix7Sheet label{display:flex;flex-direction:column;gap:7px;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.08em;color:#8b889c;margin-bottom:12px}.fix7SheetClose{position:absolute;right:16px;top:16px;width:38px;height:38px;border-radius:15px;border:1px solid rgba(62,61,86,.10);background:#fff;font-size:22px}.fix7SheetActions{display:flex;justify-content:flex-end;gap:10px;margin-top:14px}.fix7Btn{height:40px;border-radius:16px;border:1px solid rgba(62,61,86,.12);background:#fff;color:#3f3c57;font-weight:900;padding:0 16px}.fix7Btn.primary{background:#3f3c57;color:#fff}.fix7CalendarBtn{margin-top:6px;height:32px;border-radius:12px;border:1px solid rgba(62,61,86,.12);background:#fff;color:#3f3c57;font-weight:900}.fix7AlertsBtn{width:40px;height:40px;border-radius:16px;border:1px solid rgba(255,255,255,.14);background:#2c2940;color:#fff;font-weight:1000;position:relative}.fix7AlertsBtn span{position:absolute;right:-5px;top:-6px;min-width:18px;height:18px;border-radius:99px;background:#ff6868;color:#fff;font-size:10px;display:none;align-items:center;justify-content:center}.fix7AlertsBtn.hasItems span{display:flex}.fix7AlertsPanel{position:fixed;right:20px;top:62px;width:380px;max-height:calc(100vh - 90px);background:#fff;border:1px solid rgba(62,61,86,.12);border-radius:24px;box-shadow:0 24px 80px rgba(18,20,35,.22);z-index:10030;overflow:hidden}.fix7AlertsHead{height:54px;background:#3f3c57;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 16px}.fix7AlertsHead button{width:34px;height:34px;border-radius:12px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.1);color:#fff}.fix7AlertTabs{display:flex;gap:6px;padding:10px;overflow:auto}.fix7AlertTabs button{height:32px;border-radius:999px;border:1px solid rgba(62,61,86,.10);background:#f7f6f2;color:#3f3c57;font-weight:900;font-size:11px;padding:0 10px;white-space:nowrap}.fix7AlertTabs button.active{background:#3f3c57;color:#fff}.fix7AlertBody{padding:0 12px 12px;max-height:430px;overflow:auto}.fix7AlertItem{border:1px solid rgba(62,61,86,.10);border-radius:16px;background:#fbfbff;padding:12px;margin-bottom:8px;display:flex;flex-direction:column;gap:4px}.fix7AlertItem b{font-size:13px}.fix7AlertItem span{font-weight:800}.fix7AlertItem em{font-size:12px;color:#8b889c;font-style:normal}.fix7AlertItem p{margin:4px 0 0;font-size:12px;color:#3f3c57;line-height:1.35}.fix7AlertItem button{align-self:flex-start;margin-top:6px;height:30px;border-radius:12px;border:0;background:#3f3c57;color:#fff;font-weight:900;padding:0 12px}.fix7Empty{padding:28px;text-align:center;color:#8b889c}

/* Settings / data minor base rules */
.settingsDataGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px;}
.settingsDataCard{border:1px solid rgba(62,61,86,.12);background:#fff;border-radius:18px;padding:16px;box-shadow:0 12px 28px rgba(28,32,54,.055);}
.bmFix30ContractCard .itemTop,
.bmFix30OfferCard .itemTop{
  align-items:center!important;
}
.bmFix30CardMain{
  min-width:0!important;
  flex:1 1 auto!important;
}
.bmFix30StatusSlot{
  flex:0 0 auto!important;
}
.bmFix30TypeBadge{
  font-size:11px!important;
  padding:4px 10px!important;
}



/* Restored inline-add and topbar utility rules */
.dbMainAddActions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-left:auto}
.dbMainAddActions .dbBtn{height:36px;padding:0 12px}
.dbInlineAddPanel{margin-top:12px;margin-bottom:12px;border:1px solid rgba(62,61,86,.10);background:rgba(255,255,255,.78);border-radius:22px;padding:13px;box-shadow:0 12px 28px rgba(28,32,54,.05)}
.dbInlineAddHead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.dbInlineAddHead b{font-size:14px;color:var(--text)}
.dbInlineAddGrid{display:grid;grid-template-columns:repeat(5,minmax(130px,1fr));gap:10px;align-items:start}
.dbInlineAddGrid .wide{grid-column:span 2}
.dbInlineAddGrid textarea.dbInput{height:76px;padding-top:10px;resize:vertical}
.bmUnifiedSettingsBtn{height:38px;border-radius:13px!important;white-space:nowrap;}
.bmPaperclipIcon{width:19px;height:19px;display:block;background:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' viewBox='0 0 24 24' stroke='%233F3C57' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.4 11.6-8.5 8.5a6 6 0 0 1-8.5-8.5l9.2-9.2a4 4 0 1 1 5.7 5.7l-9.2 9.2a2 2 0 1 1-2.8-2.8l8.5-8.5'/%3E%3C/svg%3E");}
@media(max-width:980px){.dbMainAddActions{width:100%;margin-left:0}.dbInlineAddGrid{grid-template-columns:1fr}.dbInlineAddGrid .wide{grid-column:auto}}

/* Restored small rules used by resort info / badge editor / data modal */
.dbFab{height:38px;border:1px solid rgba(63,59,86,.14);border-radius:14px;background:linear-gradient(180deg,#fff,#f7f6fb);color:#3f3b56;font-weight:900;padding:0 14px;box-shadow:0 10px 20px rgba(32,36,58,.06);cursor:pointer;display:inline-flex;align-items:center;gap:8px}
.dbFab:before{content:'✦';font-size:14px;color:#5d53b4}
.dbFab:hover{transform:translateY(-1px);box-shadow:0 14px 24px rgba(32,36,58,.1)}
.riSearchWrap{margin:12px 0 14px;}
.dbBadgeEditor .dbBadgeLabelInput{height:44px!important;border-radius:16px!important;font-size:16px!important;}

/* SPO in progress chat — full base block */
/* SPO in progress chat */
.spoDesktopOnly{display:inline-flex}
.spoMobileOnly{display:none !important}
@media (max-width:760px){
  .spoDesktopOnly{display:none !important}
  .spoMobileOnly{display:inline-flex !important}
  .spoBtnWrap{position:relative;display:inline-flex;align-items:center;justify-content:center}
  .spoBtn{
    width:40px;height:40px;padding:0;min-width:40px;border-radius:12px;
  }
  .spoBtn .spoBtnLabel{display:none !important}
  .spoBtn .spoBtnIcon{display:inline-flex !important}
}
.spoBtn .spoBtnIcon{display:inline-flex;align-items:center;justify-content:center;width:20px;min-width:20px;height:20px;flex:0 0 20px;font-size:18px;line-height:1}
.spoBtnWrap{position:relative;display:none;align-items:center;justify-content:center;overflow:visible;isolation:isolate;flex:0 0 auto}
.spoBtn{position:relative;display:inline-flex;align-items:center;gap:10px;height:40px;min-width:40px;padding:0 14px;border-radius:13px;border:1px solid rgba(62,61,86,.12);background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(244,241,255,.92));color:var(--text);font-weight:800;letter-spacing:.01em;box-shadow:0 10px 24px rgba(42,52,84,.08), inset 0 1px 0 rgba(255,255,255,.65);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);transition:box-shadow .18s ease, border-color .18s ease, background .18s ease;overflow:visible;flex:0 0 auto;white-space:nowrap}
.spoBtn:hover{box-shadow:0 16px 28px rgba(42,52,84,.12), inset 0 1px 0 rgba(255,255,255,.7);border-color:rgba(62,61,86,.22)}
.spoBtnDot{width:10px;height:10px;flex:0 0 10px;border-radius:50%;background:linear-gradient(180deg,#8c7bff,#5d53b4);box-shadow:0 0 0 5px rgba(130,110,255,.12)}
.spoUnreadBadge{position:absolute;top:-10px;right:-8px;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#ff5b7d;color:#fff;font-size:11px;line-height:1;font-weight:900;display:none;align-items:center;justify-content:center;box-shadow:0 8px 16px rgba(255,91,125,.32);z-index:6;pointer-events:none}
.spoUnreadBadge.show{display:flex;animation:spoPulse 1.6s ease infinite}
@keyframes spoPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.08)}}
html.bm-spo-lock,body.bm-spo-lock{overflow:hidden !important}
.spoOverlay{position:fixed;inset:0;z-index:1200;display:none;pointer-events:none;overscroll-behavior:contain}
.spoOverlay.open{display:block;pointer-events:auto}
.spoBackdrop{position:absolute;inset:0;background:rgba(14,18,35,.28);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);opacity:0;transition:opacity .22s ease}
.spoOverlay.open .spoBackdrop{opacity:1}
.spoPanel{position:absolute;top:70px;right:20px;width:min(500px,calc(100vw - 28px));height:min(82vh,840px);border-radius:26px;border:1px solid rgba(62,61,86,.12);background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(247,245,255,.96));box-shadow:0 30px 80px rgba(19,24,40,.24);overflow:hidden;display:flex;flex-direction:column;transform:translateY(-8px) scale(.98);opacity:0;transition:transform .24s ease, opacity .24s ease;overscroll-behavior:contain}
.spoOverlay.open .spoPanel{transform:translateY(0) scale(1);opacity:1}
.spoHead{padding:16px 16px 12px;border-bottom:1px solid rgba(62,61,86,.08);background:linear-gradient(180deg,rgba(245,242,255,.95),rgba(255,255,255,.82));display:flex;flex-direction:column;gap:12px}
.spoHeadTop{display:flex;align-items:center;justify-content:space-between;gap:12px}.spoHeadBottom{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.spoTitleBlock{display:flex;align-items:center;gap:0;min-width:0;flex:0 0 auto}
.spoOrb{width:44px;height:44px;border-radius:16px;background:radial-gradient(circle at 30% 30%,#9f92ff,#5d53b4 72%);box-shadow:0 14px 28px rgba(93,83,180,.28);display:flex;align-items:center;justify-content:center;color:#fff;font-size:20px}
.spoTitleBlock > div:not(.spoOrb){display:none}
.spoPanelTitle{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.spoPanelSub{display:none}
.spoHeadActions{display:flex;align-items:center;gap:10px;flex:0 0 auto;flex-wrap:nowrap;justify-content:flex-end;min-width:0}.spoSearchRow{display:none}.spoSearchRow.open{display:block}.spoSearchField{display:flex;align-items:center;gap:8px;height:38px;padding:0 10px;border-radius:14px;border:1px solid rgba(62,61,86,.12);background:rgba(255,255,255,.88);box-shadow:inset 0 1px 0 rgba(255,255,255,.7)}.spoSearchLens{font-size:14px;opacity:.72}.spoSearchInput{flex:1 1 auto;min-width:0;border:0;outline:none;background:transparent;color:var(--text);font:inherit;font-size:13px}.spoSearchClear{width:24px;height:24px;border:0;border-radius:8px;background:rgba(93,83,180,.08);color:var(--muted);display:none;align-items:center;justify-content:center;font-size:13px;font-weight:900}.spoSearchClear.show{display:inline-flex}
.spoTinyBtn,.spoIconBtn{height:34px;border-radius:12px;border:1px solid rgba(62,61,86,.12);background:rgba(255,255,255,.86);color:var(--text);font-size:12px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 12px;transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease}
.spoTinyBtn:hover,.spoIconBtn:hover{transform:translateY(-1px);border-color:rgba(62,61,86,.22);box-shadow:0 10px 20px rgba(42,52,84,.08)}
.spoIconBtn{width:34px;padding:0;font-size:16px}
.spoTabs{display:flex;flex-wrap:wrap;gap:8px;overflow:visible;padding:2px 0 0;min-width:0;flex:1 1 auto;scrollbar-width:none;-ms-overflow-style:none}.spoTabs::-webkit-scrollbar{display:none}
.spoTab{border:1px solid rgba(62,61,86,.10);background:rgba(255,255,255,.8);color:var(--muted);height:34px;padding:0 12px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:12px;font-weight:800;white-space:nowrap;flex:0 0 auto}
.spoTab.active{background:linear-gradient(180deg,#5d53b4,#4b448c);color:#fff;border-color:transparent;box-shadow:0 14px 24px rgba(93,83,180,.24)}
.spoTabCount{min-width:18px;height:18px;border-radius:999px;padding:0 5px;display:inline-flex;align-items:center;justify-content:center;background:rgba(62,61,86,.08);color:inherit;font-size:10px;font-weight:900}
.spoTab.active .spoTabCount{background:rgba(255,255,255,.18)}
.spoList{flex:1 1 auto;overflow:auto;padding:16px;background:linear-gradient(180deg,rgba(248,247,252,.88),rgba(244,241,250,.94));scrollbar-width:thin;scrollbar-color:rgba(93,83,180,.28) transparent;overscroll-behavior:contain}.spoList::-webkit-scrollbar{width:10px}.spoList::-webkit-scrollbar-track{background:transparent}.spoList::-webkit-scrollbar-thumb{background:rgba(93,83,180,.22);border-radius:999px;border:3px solid transparent;background-clip:padding-box}
.spoEmpty{height:100%;display:flex;align-items:center;justify-content:center;text-align:center;padding:18px;color:var(--muted);font-size:13px;border:1px dashed rgba(62,61,86,.12);border-radius:22px;background:rgba(255,255,255,.55)}
.spoMessage{position:relative;display:flex;gap:10px;margin-bottom:14px;opacity:1;transform:none}
.spoMessage.isNew{opacity:0;transform:translateY(8px);animation:spoMsgIn .22s ease forwards}
@keyframes spoMsgIn{to{opacity:1;transform:translateY(0)}}
.spoAvatar{width:38px;height:38px;min-width:38px;min-height:38px;flex:0 0 38px;border-radius:14px;background:linear-gradient(180deg,#ece8ff,#dcd5ff);color:#4d478b;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:900;box-shadow:inset 0 1px 0 rgba(255,255,255,.75)}
.spoBubble{flex:1 1 auto;min-width:0;background:rgba(255,255,255,.88);border:1px solid rgba(62,61,86,.08);border-radius:20px;padding:12px 14px 11px;box-shadow:0 14px 28px rgba(42,52,84,.06)}
.spoMeta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.spoAuthor{font-size:13px;font-weight:900;color:var(--text)}
.spoTime{font-size:11px;color:var(--muted)}
.spoStatusPill{display:inline-flex;align-items:center;gap:6px;padding:3px 9px;border-radius:999px;background:rgba(93,83,180,.08);color:#4d478b;font-size:11px;font-weight:800}.spoStatusPill.hasHint{position:relative;cursor:help}
.spoReplyPreview{display:none;margin:0 0 9px;padding:8px 10px;border-radius:14px;background:rgba(93,83,180,.06);border-left:3px solid rgba(93,83,180,.42)}
.spoReplyPreview.show{display:block}
.spoReplyAuthor{font-size:11px;font-weight:900;color:#4d478b;margin-bottom:2px}
.spoReplyText{font-size:12px;line-height:1.35;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.spoText{font-size:13px;line-height:1.45;color:var(--text);white-space:pre-wrap;word-break:break-word}
.spoMsgActions{position:relative;flex:0 0 auto;padding-top:4px;display:flex;align-items:flex-start;gap:6px}
.spoStatusBtn,.spoContextBtn{width:34px;height:34px;border-radius:12px;border:1px solid rgba(62,61,86,.1);background:rgba(255,255,255,.82);color:var(--muted);font-size:18px;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 18px rgba(42,52,84,.06);transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease}
.spoContextBtn{font-size:16px;font-weight:900}
.spoStatusBtn:hover,.spoContextBtn:hover{transform:translateY(-1px);border-color:rgba(62,61,86,.18);box-shadow:0 12px 22px rgba(42,52,84,.09)}
.spoStatusMenu,.spoContextMenu{position:absolute;top:40px;width:210px;padding:8px;border-radius:16px;border:1px solid rgba(62,61,86,.12);background:rgba(255,255,255,.98);box-shadow:0 24px 44px rgba(19,24,40,.18);display:none;z-index:4;max-height:min(280px,46vh);overflow:auto}.spoStatusMenu.isUp,.spoContextMenu.isUp{top:auto;bottom:40px}
.spoStatusMenu{right:42px}
.spoContextMenu{right:0;width:170px}
.spoStatusMenu.open,.spoContextMenu.open{display:block;animation:spoMenu .18s ease}
@keyframes spoMenu{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
.spoStatusOption,.spoContextOption{width:100%;border:0;background:transparent;border-radius:12px;padding:9px 10px;display:flex;align-items:center;gap:10px;text-align:left;color:var(--text);font-size:13px;font-weight:700}
.spoStatusOption:hover,.spoContextOption:hover{background:rgba(93,83,180,.08)}
.spoContextOption.isDanger{color:#b24c63}
.spoComposer{padding:14px 16px 16px;border-top:1px solid rgba(62,61,86,.08);background:linear-gradient(180deg,rgba(255,255,255,.82),rgba(243,240,250,.96));display:flex;flex-direction:column;gap:10px}
.spoComposerAssist{display:none}
.spoComposerAssist.show{display:block}
.spoComposerBanner{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:10px 12px;border-radius:16px;background:rgba(93,83,180,.08);border:1px solid rgba(93,83,180,.12)}
.spoComposerBannerTitle{font-size:11px;font-weight:900;color:#4d478b;margin-bottom:3px;text-transform:uppercase;letter-spacing:.04em}
.spoComposerBannerText{font-size:12px;line-height:1.35;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.spoComposerBannerClose{flex:0 0 auto;width:28px;height:28px;border-radius:10px;border:0;background:rgba(255,255,255,.72);color:var(--muted);font-size:15px;font-weight:900;display:flex;align-items:center;justify-content:center}
.spoInputWrap{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:end;gap:10px}
.spoTextarea{width:100%;min-height:52px;height:52px;max-height:130px;resize:none;border-radius:18px;border:1px solid rgba(62,61,86,.12);background:rgba(255,255,255,.95);padding:14px 16px;color:var(--text);font:inherit;line-height:1.4;display:block;box-shadow:inset 0 1px 0 rgba(255,255,255,.75)}
.spoTextarea:focus{outline:none;border-color:rgba(93,83,180,.34);box-shadow:0 0 0 4px rgba(93,83,180,.10)}
.spoSendBtn{height:52px;min-width:96px;padding:0 18px;border-radius:16px;border:0;background:linear-gradient(180deg,#5d53b4,#4b448c);color:#fff;font-size:13px;font-weight:900;align-self:end;box-shadow:0 16px 28px rgba(93,83,180,.26)}
.spoSendBtn[disabled]{opacity:.6;box-shadow:none}
.spoTools{display:flex;align-items:center;gap:10px;justify-content:flex-end;min-height:18px}
.spoEmojiWrap{position:relative}
.spoEmojiBtn{height:38px;width:38px;padding:0;border-radius:12px;border:1px solid rgba(62,61,86,.12);background:rgba(255,255,255,.88);font-size:18px;display:flex;align-items:center;justify-content:center}
.spoEmojiPanel{position:absolute;left:0;bottom:42px;width:280px;max-height:220px;overflow:auto;padding:10px;border-radius:18px;border:1px solid rgba(62,61,86,.12);background:rgba(255,255,255,.98);box-shadow:0 24px 44px rgba(19,24,40,.18);display:none;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px;scrollbar-width:thin;scrollbar-color:rgba(93,83,180,.28) transparent}.spoEmojiPanel::-webkit-scrollbar{width:10px}.spoEmojiPanel::-webkit-scrollbar-track{background:transparent}.spoEmojiPanel::-webkit-scrollbar-thumb{background:rgba(93,83,180,.22);border-radius:999px;border:3px solid transparent;background-clip:padding-box}
.spoEmojiPanel.open{display:grid}
.spoEmojiItem{height:30px;border-radius:10px;border:0;background:rgba(93,83,180,.06);font-size:18px}
.spoComposerMeta{font-size:12px;color:var(--muted)}.spoScrollDown{position:absolute;right:18px;bottom:106px;width:40px;height:40px;border-radius:14px;border:1px solid rgba(62,61,86,.12);background:rgba(255,255,255,.96);color:#4d478b;font-size:20px;font-weight:900;display:none;align-items:center;justify-content:center;box-shadow:0 18px 34px rgba(19,24,40,.16);z-index:5;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}.spoScrollDown.show{display:flex}.spoScrollDown:hover{transform:translateY(-1px)}
.spoUnreadDot{width:8px;height:8px;border-radius:50%;background:#ff5b7d;display:inline-block;margin-left:2px;box-shadow:0 0 0 4px rgba(255,91,125,.12)}
.spoMark{display:inline;padding:0 .18em;border-radius:.42em;background:rgba(255,214,80,.58);color:#3d3207;font-weight:800;box-shadow:inset 0 0 0 1px rgba(255,196,0,.16)}
.spoDiagCard{display:none !important;padding:12px 12px 10px;border-radius:18px;border:1px solid rgba(62,61,86,.12);background:rgba(255,255,255,.9);box-shadow:0 16px 34px rgba(19,24,40,.08)}
.spoDiagCard.open{display:block;animation:spoMenu .18s ease}
.spoDiagTop{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}.spoDiagTitle{font-size:12px;font-weight:900;color:var(--text)}.spoDiagHint{font-size:11px;color:var(--muted)}
.spoDiagGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.spoDiagItem{padding:9px 10px;border-radius:14px;background:rgba(93,83,180,.04);border:1px solid rgba(93,83,180,.08)}
.spoDiagLabel{font-size:10px;font-weight:900;letter-spacing:.04em;text-transform:uppercase;color:#7f78a8;margin-bottom:4px}
.spoDiagValue{font-size:12px;line-height:1.35;font-weight:800;color:var(--text);word-break:break-word}
.spoDiagValue.isOk{color:#1b8f52}.spoDiagValue.isWarn{color:#b26f18}.spoDiagValue.isError{color:#b24c63}
.spoDiagActions{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:10px}.spoDiagBtnMini{height:30px;padding:0 10px;border-radius:10px;border:1px solid rgba(62,61,86,.12);background:rgba(255,255,255,.92);color:var(--text);font-size:12px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:6px}
.spoDiagLogs{margin-top:10px;max-height:126px;overflow:auto;padding-right:2px;scrollbar-width:thin;scrollbar-color:rgba(93,83,180,.28) transparent}.spoDiagLogs::-webkit-scrollbar{width:10px}.spoDiagLogs::-webkit-scrollbar-track{background:transparent}.spoDiagLogs::-webkit-scrollbar-thumb{background:rgba(93,83,180,.22);border-radius:999px;border:3px solid transparent;background-clip:padding-box}
.spoDiagLog{display:flex;gap:8px;padding:8px 10px;border-radius:12px;background:rgba(248,247,252,.92);border:1px solid rgba(62,61,86,.06);font-size:11px;line-height:1.35;color:var(--text);margin-bottom:6px}.spoDiagLog:last-child{margin-bottom:0}.spoDiagLogTs{flex:0 0 auto;color:var(--muted);font-weight:800}.spoDiagLogMsg{flex:1 1 auto;min-width:0;word-break:break-word}.spoDiagLog.isWarn .spoDiagLogMsg{color:#9d6618}.spoDiagLog.isError .spoDiagLogMsg{color:#b24c63}

@media (max-width:1080px){
  .spoPanel{right:16px;width:min(440px,calc(100vw - 24px));height:min(76vh,760px)}
  .spoHeadTop{align-items:flex-start}
  .spoHeadActions{gap:6px}
  .spoTinyBtn{padding:0 10px}
}


/* Unified inline edit affordance for synced table badges */
.badge.metaTag.dbLiveEditable{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:0;
  min-height:26px;
  height:auto;
  max-width:min(100%,520px);
  padding:7px 30px 7px 13px;
  margin:0 8px 0 0;
  overflow:visible;
  border-radius:var(--radius-pill);
  vertical-align:middle;
}
.badge.metaTag.dbLiveEditable:hover{
  box-shadow:var(--shadow-sm);
}
.badge.metaTag.dbLiveEditable .metaBadgeLabel{
  display:block;
  min-width:0;
  overflow:visible;
  text-overflow:clip;
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.badge.metaTag.dbLiveEditable > .metaBadgePencil.dbLiveEditBtn{
  position:absolute;
  right:5px;
  top:50%;
  width:18px;
  height:18px;
  min-width:18px;
  padding:0;
  border:0;
  border-radius:var(--radius-pill);
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235045a0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.12 2.12 0 0 1 3 3L8 18l-4 1 1-4Z'/%3E%3C/svg%3E") center/10px 10px no-repeat;
  color:var(--accent2);
  box-shadow:0 1px 5px rgba(18,20,35,.16);
  opacity:0;
  transform:translateY(-50%) translateX(2px);
  cursor:pointer;
  font-size:0;
  transition:opacity var(--dur-fast) ease, transform var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.badge.metaTag.dbLiveEditable:hover > .metaBadgePencil.dbLiveEditBtn,
.badge.metaTag.dbLiveEditable > .metaBadgePencil.dbLiveEditBtn:focus-visible{
  opacity:1;
  transform:translateY(-50%);
}
.badge.metaTag.dbLiveEditable > .metaBadgePencil.dbLiveEditBtn:hover{
  background-color:#fff;
}
.countryBadge.dbLiveEditable{
  position:relative; min-height:22px; height:22px; padding:0 32px 0 10px; margin:0; overflow:visible;
  border-radius:var(--radius-pill);
}
.countryBadge.dbLiveEditable > .dbLiveEditBtn{
  right:5px; width:18px; height:18px; min-width:18px; padding:0; border-radius:var(--radius-pill);
  background:rgba(255,255,255,.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235045a0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.12 2.12 0 0 1 3 3L8 18l-4 1 1-4Z'/%3E%3C/svg%3E") center/10px 10px no-repeat;
  box-shadow:0 1px 5px rgba(18,20,35,.16); font-size:0;
}

/* ====================================================================
   TOPBAR ICON BUTTONS
   ==================================================================== */
.topbarIconBtn{
  width:38px;height:38px;
  border-radius:var(--radius-sm);
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.10);
  color:rgba(255,255,255,.88);
  display:inline-flex;align-items:center;justify-content:center;
  cursor:pointer;
  transition:background var(--dur-fast) var(--ease),color var(--dur-fast) var(--ease),transform var(--dur-fast) var(--ease);
  flex-shrink:0;
  padding:0;
}
.topbarIconBtn:hover{
  background:rgba(255,255,255,.22);
  color:#fff;
  transform:translateY(-1px);
}
.topbarIconBtn:active{
  transform:translateY(0);
  background:rgba(255,255,255,.15);
}
.topbarIconBtn:disabled{
  opacity:.4;
  cursor:not-allowed;
  transform:none;
}

/* Always hide the standalone logout button — logout lives inside the profile menu */
#logoutBtn.bmTopbarLogoutBtn{
  display:none!important;
}

/* ====================================================================
   PROFILE BUTTON & MENU
   ==================================================================== */
.bmProfileBtn{
  width:38px;height:38px;
  border-radius:var(--radius-sm);
  border:1px solid rgba(255,255,255,.22);
  background:rgba(255,255,255,.13);
  color:#fff;
  display:inline-flex;align-items:center;justify-content:center;
  overflow:hidden;
  font-size:14px;font-weight:700;
  letter-spacing:.02em;
  cursor:pointer;
  transition:background var(--dur-fast) var(--ease),transform var(--dur-fast) var(--ease);
  padding:0;
}
.bmProfileBtn img{
  width:100%;height:100%;
  object-fit:cover;
  display:block;
}
.bmProfileBtn:hover{
  background:rgba(255,255,255,.24);
  transform:translateY(-1px);
}
.bmProfileMenu{
  position:absolute;right:0;top:calc(100% + 10px);
  width:286px;
  border-radius:var(--radius-xl);
  background:#fff;
  box-shadow:var(--shadow-xl);
  display:none;
  z-index:10020;
  overflow:hidden;
  transform-origin:top right;
  padding:0;
  border:none;
}
.bmProfileMenu.open{
  display:block;
  animation:bmMenuIn var(--dur) var(--ease-out) both;
}
@keyframes bmMenuIn{
  from{opacity:0;transform:translateY(-8px) scale(.96);}
  to{opacity:1;transform:translateY(0) scale(1);}
}
.bmProfileMenuHead{
  display:flex;align-items:center;gap:12px;
  padding:18px 18px 16px;
  background:linear-gradient(135deg,var(--accent) 0%,var(--accent2) 100%);
  color:#fff;
}
.bmProfileMenuAvatar{
  width:46px;height:46px;
  border-radius:14px;
  background:rgba(255,255,255,.18);
  border:2px solid rgba(255,255,255,.28);
  display:flex;align-items:center;justify-content:center;
  font-size:17px;font-weight:700;
  overflow:hidden;
  flex-shrink:0;
}
.bmProfileMenuAvatar img{
  width:100%;height:100%;
  object-fit:cover;
  display:block;
}
.bmProfileMenuHead>div:last-child>b{
  display:block;
  font-size:14px;font-weight:700;
  line-height:1.3;
  color:#fff;
}
.bmProfileMenuHead>div:last-child>span{
  font-size:11px;
  opacity:.7;
  text-transform:capitalize;
  color:#fff;
}
.bmProfileMenuBody{
  padding:14px 16px 10px;
  display:flex;flex-direction:column;gap:10px;
}
.bmProfileMenuBody label{
  display:flex;flex-direction:column;gap:4px;
  font-size:11px;font-weight:600;
  color:var(--muted);
  text-transform:uppercase;letter-spacing:.06em;
}
.bmProfileMenuBody .dbInput{
  font-size:13px;
  padding:7px 11px;
  border-radius:var(--radius-sm);
  border:1px solid rgba(0,0,0,.09);
  background:var(--bg);
  transition:border-color var(--dur-fast) ease,background var(--dur-fast) ease;
}
.bmProfileMenuBody .dbInput:focus{
  outline:none;
  border-color:var(--accent2);
  background:#fff;
}
.bmProfileMenuActions{
  padding:4px 16px 12px;
  display:flex;gap:8px;
}
.bmProfileMenuActions .dbBtn{
  flex:1;
}
.bmProfileMenuSep{
  height:1px;
  background:rgba(0,0,0,.07);
  margin:0 16px;
}
/* Hotel details — Status toggle pills */
.bmHotelStatusChip{ gap:7px!important; align-items:center!important; }
.bmHotelStatusToggle{
  display:inline-flex;
  border-radius:999px;
  overflow:hidden;
  border:1px solid rgba(62,61,86,.15);
  background:rgba(62,61,86,.04);
}
.bmHotelStatusPill{
  all:unset;
  padding:2px 9px;
  font-size:11px; font-weight:700;
  cursor:pointer; color:var(--muted);
  transition:background .13s,color .13s;
  line-height:1.6;
}
.bmHotelStatusPill:not(:disabled):not(.active):hover{
  background:rgba(62,61,86,.08); color:var(--ink);
}
.bmHotelStatusPill.active[data-status="active"]{
  background:rgba(51,160,111,.15); color:#1b6038;
}
.bmHotelStatusPill.active[data-status="closed"]{
  background:rgba(211,89,89,.13); color:#8b3232;
}
.bmHotelStatusPill:disabled{ opacity:.45; cursor:default; }

.bmProfileMenuNotif{
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 16px; gap:8px;
}
.bmProfileMenuNotif>span{
  display:flex; align-items:center; gap:7px;
  font-size:13px; font-weight:700; color:var(--ink);
}
.bmProfileMenuNotif>span svg{ opacity:.5; flex-shrink:0; }
.bmProfileMenuLogout{
  display:flex;align-items:center;justify-content:center;gap:7px;
  width:calc(100% - 32px);margin:10px 16px 14px;
  padding:9px 16px;
  border-radius:var(--radius-sm);
  border:1px solid rgba(217,107,107,.25);
  background:transparent;
  color:var(--bad);
  font-size:13px;font-weight:600;
  cursor:pointer;
  transition:background var(--dur-fast) ease,border-color var(--dur-fast) ease;
}
.bmProfileMenuLogout:hover{
  background:rgba(217,107,107,.08);
  border-color:var(--bad);
}

/* ====================================================================
   FEED DOCK — live indicator & improved items
   ==================================================================== */
.dbFeedLiveDot{
  width:7px;height:7px;
  border-radius:999px;
  background:var(--good);
  display:inline-block;
  flex-shrink:0;
  animation:bmPulse 2.6s ease-in-out infinite;
}
@keyframes bmPulse{
  0%,100%{opacity:1;transform:scale(1);}
  50%{opacity:.45;transform:scale(.65);}
}
.dbFeedLiveTag{
  display:flex;align-items:center;gap:6px;
  font-size:11px;font-weight:600;
  color:var(--muted);
  letter-spacing:.04em;
  text-transform:uppercase;
}
.dbFeedTypeIcon{
  width:28px;height:28px;
  border-radius:9px;
  display:flex;align-items:center;justify-content:center;
  font-size:11px;font-weight:800;
  flex-shrink:0;
  letter-spacing:0;
}
.dbFeedTypeIcon.ic-C{background:var(--contracts);color:var(--accent);}
.dbFeedTypeIcon.ic-S{background:var(--spo);color:#1a3a19;}
.dbFeedTypeIcon.ic-R{background:var(--inc);color:#1a3f4f;}
.dbFeedTypeIcon.ic-H{background:var(--chip);color:var(--accent2);}
.dbFeedTime{
  font-size:11px;
  color:var(--muted);
  opacity:.65;
  flex-shrink:0;
  font-variant-numeric:tabular-nums;
  margin-left:auto;
}
.dbFeedItem{
  transition:background var(--dur-fast) var(--ease),transform var(--dur-fast) var(--ease)!important;
}
.dbFeedItem:hover{
  background:var(--bg)!important;
  transform:translateX(2px)!important;
}

/* ====================================================================
   FEED REDESIGN — grouped by hotel (variant C + icons)
   ==================================================================== */
.dbFeedGroup{
  display:flex; flex-direction:column; gap:0;
  border:1px solid rgba(62,61,86,.09); border-radius: var(--radius-md);
  background:#fbfbff; overflow:hidden;
  transition: box-shadow var(--dur) ease;
}
.dbFeedGroup:hover{ box-shadow: var(--shadow-sm); }
.dbFeedGroupHead{
  display:flex; align-items:center; gap:8px;
  padding:8px 10px; cursor:pointer;
  border-bottom:1px solid rgba(62,61,86,.07);
}
.dbFeedGroupHead:hover{ background:rgba(62,61,86,.025); }
.dbFeedAvatar{
  width:26px; height:26px; border-radius:7px; flex-shrink:0;
  background:var(--chip); color:var(--accent2);
  font-size:9px; font-weight:900; letter-spacing:.02em;
  display:flex; align-items:center; justify-content:center;
}
.dbFeedGroupName{
  flex:1; min-width:0; font-size:12px; font-weight:700;
  color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.dbFeedGroupTime{
  font-size:10px; color:var(--muted); flex-shrink:0;
  font-variant-numeric:tabular-nums; opacity:.7;
}
.dbFeedGroupEvents{ display:flex; flex-direction:column; gap:0; }
.dbFeedEvent{
  display:flex; align-items:flex-start; gap:8px;
  padding:6px 10px; cursor:pointer;
  border-bottom:1px solid rgba(62,61,86,.05);
  transition:background var(--dur-fast) ease;
}
.dbFeedEvent:last-child{ border-bottom:none; }
.dbFeedEvent:hover{ background:rgba(62,61,86,.03); }
.dbFeedEvIcon{
  width:22px; height:22px; border-radius:6px; flex-shrink:0; margin-top:1px;
  display:flex; align-items:center; justify-content:center;
}
.dbFgH{ background:var(--chip); color:var(--accent2); }
.dbFgC{ background:var(--contracts); color:var(--accent); }
.dbFgS{ background:var(--spo); color:#1a3a19; }
.dbFgR{ background:var(--inc); color:#1a3f4f; }
.dbFeedEvBody{ flex:1; min-width:0; }
.dbFeedEvDesc{
  display:block; font-size:11px; color:var(--text);
  line-height:1.4; word-break:break-word;
}
.dbFeedFrom{
  text-decoration:line-through; opacity:.55; font-size:11px;
  background:rgba(62,61,86,.07); padding:0 3px; border-radius:3px;
}
.dbFeedArrow{ font-size:10px; opacity:.4; margin:0 2px; }
.dbFeedTo{
  font-weight:700; font-size:11px;
  background:rgba(15,110,86,.1); color:#0a5740; padding:0 3px; border-radius:3px;
}
.dbFeedEvMeta{
  display:flex; align-items:center; gap:4px; flex-wrap:wrap;
  margin-top:3px; font-size:10px; color:var(--muted);
}
.dbFeedEvTime{ opacity:.65; font-variant-numeric:tabular-nums; margin-left:auto; }
.dbFeedBadge{
  font-size:9px; font-weight:700; padding:1px 5px;
  border-radius:4px; letter-spacing:.02em; flex-shrink:0;
}
.dbFeedBadgeEdit{ background:var(--chip); color:var(--accent2); }
.dbFeedBadgeAdd{ background:var(--spo); color:#1a3a19; }
.dbFeedBadgeDel{ background:#fce8e8; color:#8b1a1a; }

/* ====================================================================
   ALERTS BELL BUTTON
   ==================================================================== */
.fix10AlertsBtn,.fix7AlertsBtn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:38px!important;height:38px!important;
  border-radius:var(--radius-sm)!important;
  border:1px solid rgba(255,91,125,.28)!important;
  background:#fff7f9!important;
  color:#b93556!important;
  font-weight:700!important;
  position:relative!important;
  cursor:pointer!important;
  transition:background var(--dur-fast) ease,transform var(--dur-fast) ease!important;
  padding:0!important;
}
.fix10AlertsBtn:hover,.fix7AlertsBtn:hover{
  background:#fee8ed!important;
  transform:translateY(-1px)!important;
}
.fix10AlertIcon{
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:18px!important;height:18px!important;
  position:static!important;
  background:transparent!important;
  color:inherit!important;
  font-size:inherit!important;
  min-width:0!important;
}
.fix10AlertCount{
  display:none!important;
  position:absolute!important;right:-5px!important;top:-6px!important;
  min-width:17px!important;height:17px!important;
  border-radius:999px!important;
  background:#ff5b7d!important;color:#fff!important;
  font-size:10px!important;font-weight:700!important;
  align-items:center!important;justify-content:center!important;
  padding:0 3px!important;
}
.fix10AlertsBtn.hasItems .fix10AlertCount,
.fix7AlertsBtn.hasItems .fix10AlertCount{
  display:flex!important;
}

/* ====================================================================
   TRASH DELETE BUTTONS
   ==================================================================== */
.bmTrashBtn{
  width:32px;height:32px;
  border-radius:var(--radius-sm);
  border:1px solid rgba(217,107,107,.22);
  background:transparent;
  color:var(--bad);
  display:inline-flex;align-items:center;justify-content:center;
  cursor:pointer;
  flex-shrink:0;
  padding:0;
  transition:background var(--dur-fast) ease,transform var(--dur-fast) ease,border-color var(--dur-fast) ease;
}
.bmTrashBtn:hover{
  background:rgba(217,107,107,.09);
  border-color:var(--bad);
  transform:translateY(-1px);
}
.bmTrashBtn:active{transform:translateY(0);}

/* ====================================================================
   ROW EDITORS (Calc / Markup) — visual polish
   ==================================================================== */
.fix10Row{
  animation:bmRowIn var(--dur-fast) var(--ease-out)!important;
}
@keyframes bmRowIn{
  from{opacity:0;transform:translateY(-4px);}
  to{opacity:1;transform:translateY(0);}
}
.fix10Remove{
  transition:background var(--dur-fast) ease,border-color var(--dur-fast) ease!important;
}
.fix10Remove:hover{
  background:rgba(217,107,107,.1)!important;
  border-color:var(--bad)!important;
  color:var(--bad)!important;
}
.fix10SaveBtn{
  transition:background var(--dur-fast) ease,transform var(--dur-fast) ease!important;
}
.fix10SaveBtn:hover{
  transform:translateY(-1px)!important;
  opacity:.9!important;
}
.fix10SmallBtn{
  transition:border-color var(--dur-fast) ease,color var(--dur-fast) ease!important;
}
.fix10SmallBtn:hover{
  border-color:var(--accent2)!important;
  color:var(--accent2)!important;
  background:#f5f4fb!important;
}

/* ====================================================================
   SETTINGS NATIVE CARDS
   ==================================================================== */
.settingsNativeCard{
  transition:box-shadow var(--dur-fast) ease,transform var(--dur-fast) ease,border-color var(--dur-fast) ease!important;
}
.settingsNativeCard:hover{
  box-shadow:var(--shadow-md)!important;
  transform:translateY(-2px)!important;
  border-color:rgba(0,0,0,.12)!important;
}

/* ====================================================================
   SETTINGS NATIVE LAYOUT — full redesign
   ==================================================================== */
.settingsNativeLayout{
  gap:var(--space-5)!important;
  align-items:start!important;
}
.settingsNativeSide{
  gap:2px!important;
  padding:6px!important;
  background:rgba(46,46,64,.033)!important;
  border-radius:var(--radius-md)!important;
  border:1px solid rgba(62,61,86,.07)!important;
  position:sticky!important;
  top:0!important;
}
.settingsNativeTitle{
  font-size:10px!important;
  letter-spacing:.10em!important;
  text-transform:uppercase!important;
  color:var(--muted)!important;
  font-weight:800!important;
  margin:4px 10px 6px!important;
  padding:0!important;
}
.settingsNativeNav{
  width:100%!important;
  text-align:left!important;
  font-size:13px!important;
  font-weight:700!important;
  padding:9px 12px!important;
  border-radius:var(--radius-sm)!important;
  border:none!important;
  color:var(--ink)!important;
  background:transparent!important;
  cursor:pointer!important;
  transition:background var(--dur-fast) ease,color var(--dur-fast) ease!important;
  display:block!important;
}
.settingsNativeNav:hover{ background:rgba(46,46,64,.07)!important; }
.settingsNativeNav.active{
  background:#fff!important;
  color:var(--accent2)!important;
  font-weight:800!important;
  box-shadow:var(--shadow-sm)!important;
  border:none!important;
}
.settingsNativeMain{ overflow:visible!important; }
.settingsNativeHeader{
  align-items:center!important;
  margin-bottom:var(--space-5)!important;
  padding-bottom:var(--space-3)!important;
  border-bottom:1px solid rgba(62,61,86,.07)!important;
}
.settingsNativeHeader h3{
  font-size:15px!important;
  font-weight:800!important;
  letter-spacing:-.01em!important;
}
.settingsNativeHeader p{ display:none!important; }
.settingsReminderHeader{ margin-top:var(--space-6)!important; }
.dbCard.flat{ box-shadow:none!important; }

/* ====================================================================
   GLOBAL MICRO-ANIMATIONS
   ==================================================================== */
.dbBtn{
  transition:background var(--dur-fast) ease,transform var(--dur-fast) ease,box-shadow var(--dur-fast) ease,opacity var(--dur-fast) ease!important;
}
.dbBtn:hover:not(:disabled){
  transform:translateY(-1px)!important;
  box-shadow:var(--shadow-sm)!important;
}
.dbBtn:active:not(:disabled){
  transform:translateY(0)!important;
  box-shadow:none!important;
}
.dbHotelRow,.dbTimelineRow{
  transition:background var(--dur-fast) ease!important;
}
.dbHotelRow:hover{background:var(--bg)!important;}
.dbTab{
  transition:background var(--dur-fast) ease,color var(--dur-fast) ease!important;
}

/* ====================================================================
   SEARCH PLACEHOLDER FIX — white-on-white prevention
   ==================================================================== */
.topbar .search::placeholder{ color:rgba(38,38,56,.55)!important; }
#q::placeholder{ color:rgba(38,38,56,.55)!important; }
.dbSearch::placeholder{ color:var(--muted)!important; }

/* ====================================================================
   DM CHAT — wide panel when in chat mode (Telegram-like)
   ==================================================================== */
.spoPanel.isChatMode{
  width:min(980px,calc(100vw - 40px))!important;
  height:min(88vh,920px)!important;
  right:20px!important;
}
@media(max-width:1060px){
  .spoPanel.isChatMode{ width:calc(100vw - 32px)!important; right:16px!important; }
}

/* ====================================================================
   FEED DOCK — scroll + more items
   ==================================================================== */
.dbFeedDock .dbFeed, .dbFeedDock .card.dbFeed{
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
}
.dbFeedList{
  flex:1 1 auto!important;
  min-height:0!important;
  max-height:min(480px, calc(100vh - 220px))!important;
  overflow-y:auto!important;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
  scrollbar-color:rgba(0,0,0,.12) transparent;
}
.dbFeedList::-webkit-scrollbar{ width:4px; }
.dbFeedList::-webkit-scrollbar-thumb{ background:rgba(0,0,0,.14); border-radius:4px; }
.dbFeedMoreBtn{
  display:block; width:100%; border:none; background:none;
  padding:5px 10px; text-align:left;
  font-size:10px; font-weight:700; color:var(--muted);
  cursor:pointer; letter-spacing:.03em;
  border-top:1px solid rgba(62,61,86,.05);
  transition:color var(--dur-fast) ease, background var(--dur-fast) ease;
}
.dbFeedMoreBtn:hover{ color:var(--accent); background:rgba(108,92,231,.05); }

/* ====================================================================
   PROFILE MENU — avatar hover pencil overlay
   ==================================================================== */
.bmProfileMenuAvatarBtn{
  cursor:pointer;
  position:relative;
}
.bmAvatarPencilOverlay{
  position:absolute;
  inset:0;
  border-radius:12px;
  background:rgba(0,0,0,0);
  display:flex;align-items:center;justify-content:center;
  opacity:0;
  transition:opacity .15s ease,background .15s ease;
  pointer-events:none;
}
.bmProfileMenuAvatarBtn:hover .bmAvatarPencilOverlay{
  opacity:1;
  background:rgba(0,0,0,.4);
}
.bmAvatarPencilOverlay svg{ color:#fff; }

/* ====================================================================
   ADMIN MODAL — polish
   ==================================================================== */
.dbOverlay.open{ backdrop-filter:blur(14px)!important; }
.dbPanel{ border-radius:28px!important; border:none!important; }
.dbSide{ padding:16px 12px!important; gap:4px!important; }
.dbBrandBlock{ padding:4px 8px 14px!important; border-bottom:1px solid rgba(63,59,86,.07)!important; margin-bottom:4px!important; }
.dbBrand{ font-size:14px!important; font-weight:800!important; color:var(--accent)!important; letter-spacing:-.01em!important; }
.dbRole{ font-size:11px!important; text-transform:capitalize!important; color:var(--muted)!important; margin-top:2px!important; }
.dbTab{ height:38px!important; border-radius:11px!important; font-size:13px!important; padding:0 11px!important; }
.dbTab.active{ background:#fff!important; box-shadow:0 6px 16px rgba(32,36,58,.07)!important; color:var(--accent)!important; font-weight:800!important; }
.dbHead{ min-height:58px!important; padding:0 20px!important; }
.dbTitle{ font-size:19px!important; font-weight:800!important; letter-spacing:-.02em!important; }
.dbHeadHint{ font-size:12px!important; color:var(--muted)!important; margin-top:2px!important; }
.dbClose{ width:30px!important; height:30px!important; border-radius:9px!important; font-size:17px!important; display:flex!important; align-items:center!important; justify-content:center!important; border:1px solid rgba(63,59,86,.10)!important; background:rgba(63,59,86,.04)!important; cursor:pointer!important; transition:background var(--dur-fast) ease!important; }
.dbClose:hover{ background:rgba(63,59,86,.09)!important; }
.dbBody{ background:#f8f8fa!important; }
.dbCard{ border-radius:18px!important; border:1px solid rgba(63,59,86,.07)!important; box-shadow:0 6px 20px rgba(32,36,58,.04)!important; }
.dbMetric{ border-radius:16px!important; }
.dbMetricValue{ font-size:26px!important; font-weight:800!important; letter-spacing:-.02em!important; }
.dbHotelRow{ border-radius:11px!important; }
.dbHotelRow.active{ background:rgba(93,83,180,.08)!important; color:var(--accent)!important; }
.dbInfoStrip{ background:var(--bg)!important; border-radius:12px!important; padding:10px 14px!important; }
.dbWorkbench{ gap:14px!important; }

/* ====================================================================
   CONTRACT STATUS PICKER (replaces native <select>)
   ==================================================================== */
.dbStatusPicker{
  display:flex;flex-wrap:wrap;gap:6px;
  padding:2px 0;
}
.dbStatusOpt{
  height:30px;padding:0 12px;
  border-radius:999px;
  border:1.5px solid rgba(0,0,0,.12);
  background:#fff;color:var(--muted);
  font-size:12px;font-weight:700;
  cursor:pointer;
  transition:all var(--dur-fast) ease;
}
.dbStatusOpt.good{ border-color:rgba(51,160,111,.3);color:#277852; }
.dbStatusOpt.good.active{ background:rgba(51,160,111,.13);border-color:#4daf7c;color:#1f6b40; }
.dbStatusOpt.info{ border-color:rgba(52,110,200,.25);color:#2255a4; }
.dbStatusOpt.info.active{ background:rgba(52,110,200,.1);border-color:#3366cc; }
.dbStatusOpt.warn{ border-color:rgba(214,154,57,.35);color:#8a5c17; }
.dbStatusOpt.warn.active{ background:rgba(214,154,57,.12);border-color:#d09a33; }
.dbStatusOpt.bad{ border-color:rgba(211,89,89,.3);color:#a83e3e; }
.dbStatusOpt.bad.active{ background:rgba(211,89,89,.1);border-color:var(--bad); }
.dbStatusOpt:hover{ transform:translateY(-1px);box-shadow:var(--shadow-sm); }
.dbStatusOpt.active{ font-weight:800; }
.dbStatusOpt:not(.good):not(.info):not(.warn):not(.bad).active{ background:rgba(0,0,0,.07);border-color:rgba(0,0,0,.2);color:var(--text); }

/* ====================================================================
   CALC / MARKUP ROW EDITOR IN SHEET
   ==================================================================== */
.bmF19RowsWrap{ display:flex;flex-direction:column;gap:8px;margin-top:8px; }
.bmF19Row{
  display:grid;
  grid-template-columns:1fr 1fr 32px;
  gap:8px;align-items:center;
  animation:bmRowIn var(--dur-fast) var(--ease-out);
}
.bmF19MkRow{ grid-template-columns:1fr 1.4fr 32px; }
.bmF19Del{
  width:32px!important;height:32px!important;
  border-radius:10px!important;
  border:1px solid rgba(217,107,107,.25)!important;
  background:transparent!important;color:var(--bad)!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  cursor:pointer!important;padding:0!important;flex-shrink:0!important;
  transition:background var(--dur-fast) ease!important;
}
.bmF19Del:hover{ background:rgba(217,107,107,.1)!important;border-color:var(--bad)!important; }
.bmF19SectionHead{ display:flex;align-items:center;justify-content:space-between;margin-bottom:6px; }
.bmF19SectionLabel{ font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--muted); }
.bmF19AddBtn{
  height:26px;padding:0 10px;
  border-radius:999px;
  border:1px dashed rgba(0,0,0,.18);
  background:transparent;color:var(--muted);
  font-size:11px;font-weight:600;cursor:pointer;
  transition:border-color var(--dur-fast) ease,color var(--dur-fast) ease;
}
.bmF19AddBtn:hover{ border-color:var(--accent2);color:var(--accent2); }
.bmF19Sep{ height:1px;background:rgba(0,0,0,.07);margin:16px 0 6px; }

/* ====================================================================
   ICON-SIZED EDIT / ACTION BUTTONS
   ==================================================================== */
.bmFix11EditTiny,
.bmFix13EditBtn,
.bmFix17Btn:not(.danger){
  display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;
}
.bmFix17Actions{ display:inline-flex!important;align-items:center!important;gap:6px!important;flex-shrink:0!important; }
.bmFix18ContactActions{ display:inline-flex!important;align-items:center!important;gap:6px!important; }
.bmFix17Btn.danger,.bmFix18Trash{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  width:30px!important;height:30px!important;padding:0!important;
  border-radius:9px!important;
  border:1px solid rgba(217,107,107,.22)!important;
  background:transparent!important;color:var(--bad)!important;
  cursor:pointer!important;
  transition:background var(--dur-fast) ease,border-color var(--dur-fast) ease!important;
  font-size:14px!important;
}
.bmFix17Btn.danger:hover,.bmFix18Trash:hover{
  background:rgba(217,107,107,.1)!important;border-color:var(--bad)!important;
}
/* Remove text from bmFix14Action (edit/delete icons shown via innerHTML) */
.bmFix14Action.danger{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  width:30px!important;height:30px!important;padding:0!important;
}
.bmFix16Btn.danger{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  width:30px!important;height:30px!important;padding:0!important;
}

/* bmFix12 inline edit buttons → icon-only square */
.bmFix12EditBtn{
  width:30px!important;height:30px!important;padding:0!important;
  border-radius:9px!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
}

/* bmFix14 / bmFix16 edit (non-danger) → icon-only */
.bmFix14Action:not(.danger),
.bmFix16Btn:not(.danger){
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  width:30px!important;height:30px!important;padding:0!important;
  border-radius:9px!important;
}

/* bmFix17 pencil edit buttons (data-f17-edit-*) → icon-only square */
.bmFix17Btn[data-f17-edit-contract],
.bmFix17Btn[data-f17-edit-offer],
.bmFix17Btn[data-f17-edit-contact],
.bmFix17Btn[data-f17-overview-edit]{
  width:30px!important;height:30px!important;padding:0!important;border-radius:9px!important;
}

/* Row editor uses existing bmF19 rules above */

/* Status picker inside inline editor */
.dbQuickEditor:has(.dbStatusPicker){
  flex-wrap:wrap;align-items:flex-start;
}
.dbQuickEditor .dbStatusPicker{
  order:0;flex:1 1 100%;
}
.dbQuickEditor .dbQuickOk,
.dbQuickEditor .dbQuickCancel{
  order:1;
}

/* ====================================================================
   SPO BOARD — polish
   ==================================================================== */

/* Cards */
.hotelCard{
  border-radius:16px;
  border:1px solid rgba(0,0,0,.07);
  box-shadow:0 2px 8px rgba(0,0,0,.06);
  transition:box-shadow var(--dur) var(--ease-out),
             transform var(--dur) var(--ease-out),
             border-color var(--dur) ease;
  overflow:hidden;
  background:var(--panel);
  position:relative;
}
.hotelCard::before{
  content:'';
  position:absolute;
  top:0; left:0; right:0;
  height:3px;
  background:linear-gradient(90deg,var(--accent2),var(--accent));
  opacity:0;
  transition:opacity var(--dur) ease;
}
.hotelCard:hover{
  box-shadow:0 6px 24px rgba(0,0,0,.12),0 2px 8px rgba(0,0,0,.06);
  transform:translateY(-2px);
  border-color:rgba(0,0,0,.12);
}
.hotelCard:hover::before{ opacity:1; }

/* Field labels */
.hotelFieldLabel{
  font-size:10.5px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:var(--muted);
  margin-bottom:2px;
}
.hotelFieldValue{
  font-size:13px;
  font-weight:500;
  color:var(--text);
}

/* Badges */
.countryBadge{
  border-radius:999px;
  font-size:11px;
  font-weight:700;
  letter-spacing:.03em;
}

/* Action buttons in card */
.detailsBtn{
  border-radius:10px;
  font-size:12px;
  font-weight:600;
  transition:box-shadow var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.detailsBtn:hover{
  box-shadow:0 4px 12px rgba(var(--accent-rgb, 93,83,180),.28);
  transform:translateY(-1px);
}
.hotelMoreBtn,.hotelMapBtn{
  border-radius:10px;
  font-size:12px;
}

/* Filter chips */
.chip{
  border-radius:999px;
  font-size:12px;
  font-weight:600;
  padding:5px 14px;
  transition:box-shadow var(--dur-fast) ease,
             background var(--dur-fast) ease,
             border-color var(--dur-fast) ease,
             transform var(--dur-fast) ease;
  cursor:pointer;
}
.chip:hover:not(.active){
  transform:translateY(-1px);
  box-shadow:0 2px 8px rgba(0,0,0,.08);
}
.chip.active{
  box-shadow:0 3px 10px rgba(93,83,180,.22);
}

/* Hotel card top area */
.hotelCardTop{
  padding:14px 14px 10px;
  border-bottom:1px solid rgba(0,0,0,.06);
}
.hotelCardGrid{
  padding:10px 14px 12px;
  gap:8px;
}


/* Messages/SPO shared search icon alignment */
.spoIconBtn#spoSearchToggleBtn{font-size:0!important;line-height:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;}
.spoIconBtn#spoSearchToggleBtn .bmSearchSvg,.spoSearchLens .bmSearchSvg{display:block!important;width:17px!important;height:17px!important;}
.spoSearchLens{display:inline-flex!important;align-items:center!important;justify-content:center!important;font-size:0!important;line-height:0!important;color:rgba(38,38,56,.58)!important;}

/* ====================================================================
   SPO ALERTS PANEL — redesign
   ==================================================================== */
.fix7AlertsPanel{
  position:fixed!important; right:20px!important; top:62px!important;
  width:400px!important; max-height:calc(100vh - 84px)!important;
  background:#fff!important;
  border:1px solid rgba(62,61,86,.11)!important;
  border-radius:26px!important;
  box-shadow:0 28px 80px rgba(18,20,35,.24)!important;
  z-index:10030!important; overflow:hidden!important;
  display:flex!important; flex-direction:column!important;
}
.fix7AlertsHead{
  display:flex!important; align-items:center!important; justify-content:space-between!important;
  padding:14px 16px!important; height:auto!important;
  border-bottom:1px solid rgba(62,61,86,.07)!important;
  background:#fff!important;
}
.fix7AlertsHead b{
  font-size:14px!important; font-weight:900!important; color:#2c2b36!important;
  display:flex!important; align-items:center!important; gap:8px!important;
}
.fix7AlertsHead button{
  width:30px!important; height:30px!important; border-radius:999px!important;
  border:1px solid rgba(62,61,86,.10)!important;
  background:rgba(62,61,86,.05)!important; color:#3f3c57!important;
  font-size:14px!important; font-weight:900!important; cursor:pointer!important;
  display:flex!important; align-items:center!important; justify-content:center!important;
}
.fix7AlertsHead button:hover{ background:rgba(62,61,86,.10)!important; }
.fix7AlertTabs{
  display:flex!important; gap:5px!important; padding:10px 12px!important;
  overflow-x:auto!important; flex-shrink:0!important;
  border-bottom:1px solid rgba(62,61,86,.07)!important;
  background:#fafafd!important;
  scrollbar-width:none!important;
}
.fix7AlertTabs::-webkit-scrollbar{ display:none!important; }
.fix7AlertTabs button{
  height:28px!important; border-radius:999px!important;
  border:1px solid rgba(62,61,86,.10)!important;
  background:#fff!important; color:#6b6880!important;
  font-weight:900!important; font-size:11px!important; padding:0 11px!important;
  white-space:nowrap!important; cursor:pointer!important;
  transition:background .14s,border-color .14s,color .14s!important;
}
.fix7AlertTabs button[data-tab="release"].active{
  background:rgba(51,160,111,.11)!important; color:#1f6b40!important; border-color:rgba(51,160,111,.28)!important;
}
.fix7AlertTabs button[data-tab="expiring"].active{
  background:rgba(214,154,57,.12)!important; color:#7a4f0f!important; border-color:rgba(214,154,57,.32)!important;
}
.fix7AlertTabs button[data-tab="expired"].active{
  background:rgba(211,89,89,.10)!important; color:#934141!important; border-color:rgba(211,89,89,.24)!important;
}
.fix7AlertTabs button[data-tab="done"].active{
  background:rgba(62,61,86,.08)!important; color:#3f3c57!important; border-color:rgba(62,61,86,.20)!important;
}
.fix7AlertTabs button:not(.active):hover{
  background:#f3f1f8!important; border-color:rgba(62,61,86,.16)!important;
}
.fix7AlertBody{
  padding:10px!important; overflow-y:auto!important; flex:1!important;
  display:flex!important; flex-direction:column!important; gap:7px!important;
  scrollbar-width:thin!important;
  scrollbar-color:rgba(93,83,180,.20) transparent!important;
  max-height:none!important;
}
.fix7AlertItem{
  border:1px solid rgba(62,61,86,.09)!important;
  border-left:3px solid rgba(62,61,86,.12)!important;
  border-radius:14px!important; background:#fff!important;
  padding:11px 13px!important;
  display:flex!important; flex-direction:column!important; gap:3px!important;
  margin-bottom:0!important;
  transition:box-shadow .14s!important;
}
.fix7AlertItem:hover{ box-shadow:0 4px 18px rgba(28,32,54,.07)!important; }
.fix7AlertBody[data-tab="release"] .fix7AlertItem{ border-left-color:#4fb888!important; }
.fix7AlertBody[data-tab="expiring"] .fix7AlertItem{ border-left-color:#e6a83a!important; }
.fix7AlertBody[data-tab="expired"] .fix7AlertItem{ border-left-color:var(--bad)!important; }
.fix7AlertItem b{ font-size:13px!important; font-weight:900!important; color:#2c2b36!important; }
.fix7AlertItem span{ font-size:12px!important; font-weight:700!important; color:#5a5870!important; }
.fix7AlertItem em{ font-size:11.5px!important; color:#8b889c!important; font-style:normal!important; }
.fix7AlertItem p{ margin:3px 0 0!important; font-size:12px!important; color:#5a5870!important; line-height:1.35!important; }
.fix7AlertItem button{
  align-self:flex-start!important; margin-top:8px!important;
  height:26px!important; border-radius:999px!important;
  border:1px solid rgba(62,61,86,.14)!important;
  background:#fff!important; color:#3f3c57!important;
  font-size:11px!important; font-weight:900!important; padding:0 13px!important;
  cursor:pointer!important;
  transition:background .14s,color .14s!important;
}
.fix7AlertItem button:hover{ background:#3f3c57!important; color:#fff!important; }
.fix7Empty{
  padding:36px 20px!important; text-align:center!important;
  color:#8b889c!important; font-size:13px!important; line-height:1.5!important;
}
@media(max-width:480px){
  .fix7AlertsPanel{ right:10px!important; width:calc(100vw - 20px)!important; }
}

/* ====================================================================
   SETTINGS MODAL — full shell + tab redesign
   ==================================================================== */

/* Modal card shape */
#settingsModal .modalCard{
  border-radius:26px!important;
  overflow:hidden!important;
}

/* Header: light instead of dark */
#settingsModal .modalHead{
  background:#fff!important;
  color:var(--ink)!important;
  border-bottom:1px solid rgba(62,61,86,.08)!important;
  padding:14px 20px!important;
  font-size:15px!important;
  text-transform:none!important;
  letter-spacing:-.01em!important;
  font-weight:800!important;
}
#settingsModal .modalHead .iconBtn{
  color:var(--ink)!important;
  background:rgba(62,61,86,.05)!important;
  border:1px solid rgba(62,61,86,.10)!important;
  border-radius:999px!important;
  width:30px!important; height:30px!important;
  font-size:16px!important;
}
#settingsModal .modalHead .iconBtn:hover{
  background:rgba(62,61,86,.10)!important;
  transform:none!important;
}

/* Body: light background */
#settingsModal .modalBody{
  background:#f6f6f9!important;
  padding:16px 20px 20px!important;
  gap:14px!important;
}

/* Tab bar: segmented-control style */
.tabs.settingsTabs{
  gap:2px!important;
  padding:4px!important;
  background:rgba(62,61,86,.06)!important;
  border-radius:14px!important;
  border:none!important;
  align-self:flex-start!important;
  width:auto!important;
}
#settingsModal .tabBtn{
  border:none!important;
  background:transparent!important;
  color:var(--muted)!important;
  padding:7px 14px!important;
  border-radius:10px!important;
  font-weight:700!important;
  font-size:13px!important;
  transition:background .14s,color .14s,box-shadow .14s!important;
  box-shadow:none!important;
}
#settingsModal .tabBtn.active{
  background:#fff!important;
  color:var(--ink)!important;
  font-weight:800!important;
  box-shadow:0 2px 8px rgba(28,32,54,.09)!important;
}
#settingsModal .tabBtn:not(.active):hover{
  background:rgba(62,61,86,.07)!important;
  color:var(--ink)!important;
}

/* ---- Users tab ---- */
.settingsAddBar{
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  background:#fff;
  border:1px solid rgba(62,61,86,.09);
  border-radius:16px;
  padding:12px 14px;
  flex:0 0 auto;
}
.settingsAddFields{
  display:flex; gap:8px; flex:1; min-width:0; flex-wrap:wrap;
}
.settingsAddFields .input{
  flex:1; min-width:130px;
}
.settingsRoleSelect{
  max-width:130px!important; flex:0 0 130px!important;
}
.settingsAddBtn{
  height:38px!important; flex:0 0 auto!important;
  border-radius:999px!important;
  padding:0 18px!important;
}
#settingsUsers .tableWrap{
  border-radius:16px!important;
  border:1px solid rgba(62,61,86,.09)!important;
  background:#fff!important;
  overflow:hidden!important;
}

/* ---- Usage tab ---- */
#settingsModal .usageInnerTabs{
  gap:2px!important;
  padding:4px!important;
  background:rgba(62,61,86,.06)!important;
  border-radius:14px!important;
  border:none!important;
  width:fit-content!important;
}
#settingsModal .usageInnerTab{
  border:none!important;
  background:transparent!important;
  color:var(--muted)!important;
  padding:6px 13px!important;
  border-radius:10px!important;
  font-weight:700!important;
  font-size:12px!important;
  transition:background .14s,color .14s,box-shadow .14s!important;
}
#settingsModal .usageInnerTab.active{
  background:#fff!important;
  color:var(--ink)!important;
  font-weight:800!important;
  box-shadow:0 2px 8px rgba(28,32,54,.09)!important;
}
#settingsModal .usageInnerTab:not(.active):hover{
  background:rgba(62,61,86,.07)!important;
  color:var(--ink)!important;
}
#settingsModal .usageInnerTab .usageBadge{
  background:rgba(62,61,86,.10)!important;
  color:var(--ink)!important;
}
#settingsModal .usageInnerTab.active .usageBadge{
  background:rgba(62,61,86,.13)!important;
}
#settingsModal #usageKpis .kpi{
  background:#fff!important;
  border-radius:16px!important;
  border:1px solid rgba(62,61,86,.09)!important;
  box-shadow:none!important;
}
#settingsModal .usagePanel .tableWrap{
  border-radius:16px!important;
  border:1px solid rgba(62,61,86,.09)!important;
  background:#fff!important;
  overflow:hidden!important;
}

/* ---- Style tab ---- */
.settingsStyleBtn{
  height:38px!important;
  border-radius:999px!important;
  padding:0 18px!important;
}
#settingsModal .styleCard{
  background:#fff!important;
  border:1px solid rgba(62,61,86,.09)!important;
  border-radius:20px!important;
  box-shadow:none!important;
  transition:box-shadow .18s,border-color .18s!important;
}
#settingsModal .styleCard:hover{
  box-shadow:0 6px 24px rgba(28,32,54,.09)!important;
  border-color:rgba(62,61,86,.16)!important;
}
#settingsModal .styleCard[data-selected="true"],
#settingsModal .styleCard input[type="radio"]:checked{
  border-color:var(--accent2)!important;
}
#settingsStyle .styleActions{
  display:flex!important; align-items:center!important; gap:10px!important; flex-wrap:wrap!important;
  background:#fff!important;
  border:1px solid rgba(62,61,86,.09)!important;
  border-radius:16px!important;
  padding:12px 16px!important;
}
#settingsStyle .styleActions #styleMsg{
  margin-left:auto!important; font-size:12px!important;
}

/* ---- Countries: input + button on one line ---- */
.settingsAddCountryRow{
  display:flex; gap:8px; align-items:center;
}
.settingsAddCountryRow .dbInput{
  width:auto!important;
  flex:1!important;
  min-width:0!important;
}
.settingsAddCountryRow .dbBtn{
  flex-shrink:0;
}

/* ---- Users table: kebab menu ---- */
.userKebabBtn{
  width:32px!important; height:32px!important;
  padding:0!important; border-radius:8px!important;
  font-size:17px!important; line-height:1!important;
  display:inline-flex!important; align-items:center!important; justify-content:center!important;
  letter-spacing:0!important;
}
.userKebabMenu{
  position:fixed; z-index:99999;
  background:#fff;
  border:1px solid rgba(62,61,86,.12);
  border-radius:14px;
  box-shadow:0 12px 40px rgba(18,20,35,.18);
  padding:6px; min-width:160px;
  display:flex; flex-direction:column; gap:2px;
}
.userKebabMenu button{
  all:unset; display:block; width:100%; box-sizing:border-box;
  padding:8px 12px; border-radius:8px;
  font-size:13px; font-weight:700; color:var(--ink);
  cursor:pointer; transition:background .12s;
}
.userKebabMenu button:hover{ background:rgba(62,61,86,.06); }
.userKebabMenu button.danger{ color:#c04040; }
.userKebabMenu button.danger:hover{ background:rgba(192,64,64,.07); }

/* ---- Users table: fixed columns, no overflow ---- */
#settingsUsers .tableWrap{
  overflow-x:auto!important;
}
#usersTable{
  table-layout:fixed!important;
  width:100%!important;
  min-width:460px!important;
}
#usersTable th:nth-child(2){ width:80px!important; }
#usersTable th:nth-child(3){ width:64px!important; }
#usersTable th:last-child{ width:44px!important; }
#usersTable td{
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
#usersTable td:last-child{ white-space:nowrap!important; }
#usersTable td button{
  height:28px!important;
  border-radius:8px!important;
  font-size:12px!important;
  padding:0 10px!important;
}
#usersTable td button[data-act="del"]{
  background:#d96b6b!important;
  color:#fff!important;
  border-color:transparent!important;
}

/* ═══════════════════════════════════════════
   INCENTIVE TRACKER
═══════════════════════════════════════════ */

.incentiveToggle{
  cursor:pointer;
  user-select:none;
  padding:12px 16px;
  display:flex;
  align-items:center;
}
.incentiveToggleRow{
  width:100%;
  display:flex;
  align-items:center;
  gap:10px;
}
.incentiveToggle .title{ flex:none; }
.bmInc_lastUpdate{
  font-size:11px;
  color:var(--muted);
  font-weight:700;
  letter-spacing:.04em;
  margin-right:auto;
}
.incentiveToggleHint{
  color:var(--muted);
  font-size:13px;
  display:flex;
  align-items:center;
  gap:4px;
  font-weight:700;
  flex:none;
}
.incentiveToggleHint .chev{ display:inline-block; transition:transform var(--dur) var(--ease); }
#incentiveToggle[aria-expanded="true"] .incentiveToggleHint .chev{ transform:rotate(180deg); }

.bmInc_importBtn{
  height:32px;
  border-radius:var(--radius-pill);
  border:1px solid #5d53b4;
  background:#5d53b4;
  color:#fff;
  font-size:12px;
  font-weight:800;
  padding:0 14px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:6px;
  flex:none;
  letter-spacing:.03em;
  transition:background .15s,border-color .15s,box-shadow .15s;
}
.bmInc_importIcon{
  width:15px;
  height:15px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:none;
}
.bmInc_importIcon svg{
  width:15px;
  height:15px;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.bmInc_importBtn:hover{ background:#4a42a0; border-color:#4a42a0; box-shadow:0 2px 8px rgba(93,83,180,.25); }
.bmInc_settingsBtn{
  width:32px; height:32px;
  border-radius:50%;
  border:1px solid rgba(62,61,86,.15);
  background:rgba(62,61,86,.06);
  color:var(--muted);
  font-size:15px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:none;
  padding:0;
  transition:background .15s, color .15s, border-color .15s;
}
.bmInc_settingsBtn:hover{ background:#efedf8; border-color:rgba(93,83,180,.22); color:#5d53b4; }

.incentiveGrid{ overflow:hidden; }
.incentiveGrid.bmInc_byMgrOverlay{ position:relative; z-index:60; overflow:visible; }
.incentiveGrid.isCollapsed{ display:none; }

.bmInc_inner{
  background:var(--card);
  border-radius:var(--radius);
  border:1px solid var(--border);
  margin-top:8px;
  padding:0;
  overflow:hidden;
}
.bmInc_inner.bmInc_byMgrOverlay{ overflow:visible; }

/* Tabs */
.bmInc_tabs{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  min-height:50px;
  border-bottom:1px solid var(--border);
  padding:0 14px 0 16px;
  background:var(--bg);
}
.bmInc_tabNav{
  display:flex;
  align-items:stretch;
  align-self:stretch;
  min-width:0;
  flex:none;
}
.bmInc_tabTools{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  min-width:0;
  margin-left:auto;
}
.bmInc_tab{
  height:42px;
  padding:0 14px;
  border:none;
  background:transparent;
  color:var(--muted);
  font-size:12px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
  cursor:pointer;
  border-bottom:2px solid transparent;
  margin-bottom:-1px;
  transition:color .15s, border-color .15s;
}
.bmInc_tab:hover{ color:var(--text); }
.bmInc_tab.active{ color:#5d53b4; border-bottom-color:#5d53b4; }

/* Compact date filter */
.bmInc_dateFilter{
  height:34px;
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:3px 4px 3px 9px;
  border:1px solid rgba(62,61,86,.14);
  border-radius:13px;
  background:rgba(255,255,255,.66);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.72),0 2px 8px rgba(27,27,46,.035);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  transition:border-color .16s,background .16s,box-shadow .16s;
  flex:none;
}
.bmInc_dateFilter:hover,
.bmInc_dateFilter:focus-within{
  border-color:rgba(93,83,180,.28);
  background:rgba(255,255,255,.82);
  box-shadow:0 0 0 3px rgba(93,83,180,.055),inset 0 1px 0 rgba(255,255,255,.84);
}
.bmInc_dateFilter.isActive{
  border-color:rgba(93,83,180,.32);
  background:rgba(248,247,253,.92);
}
.bmInc_dateFilterLabel{
  color:var(--muted);
  font-size:9px;
  line-height:1;
  font-weight:900;
  letter-spacing:.09em;
  text-transform:uppercase;
  margin-right:1px;
  flex:none;
}
.bmInc_dateQuality{
  display:inline-flex;
  align-items:center;
  height:18px;
  padding:0 6px;
  border-radius:999px;
  background:rgba(185,126,36,.10);
  color:#9a681e;
  font-size:8px;
  line-height:1;
  font-weight:900;
  letter-spacing:.05em;
  text-transform:uppercase;
  flex:none;
}
.bmInc_dateFilter.isEstimated{ border-color:rgba(185,126,36,.24); }
.bmInc_dateField{ display:flex; align-items:center; flex:none; }
.bmInc_dateInput{
  width:82px;
  min-width:0;
  border:0;
  outline:0;
  background:transparent;
  color:var(--text);
  font:800 11px/1.2 var(--font);
  font-variant-numeric:tabular-nums;
  letter-spacing:.015em;
  padding:3px 1px;
  text-align:center;
}
.bmInc_dateInput::placeholder{ color:rgba(122,120,136,.62); font-weight:700; }
.bmInc_dateInput.isInvalid{ color:#b84752; }
.bmInc_dateDash{ color:rgba(122,120,136,.72); font-size:11px; font-weight:900; flex:none; }
.bmInc_calendarBtn,
.bmInc_dateReset{
  border:0;
  padding:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  flex:none;
  transition:background .15s,color .15s,transform .15s;
}
.bmInc_calendarBtn{
  width:27px;
  height:27px;
  border-radius:9px;
  background:rgba(62,61,86,.065);
  color:#696579;
}
.bmInc_calendarBtn:hover{ background:rgba(93,83,180,.12); color:#5147a3; }
.bmInc_calendarBtn:active{ transform:scale(.96); }
.bmInc_calendarBtn svg{
  width:15px;
  height:15px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.65;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.bmInc_dateReset{
  width:22px;
  height:22px;
  border-radius:8px;
  background:transparent;
  color:var(--muted);
  font-size:17px;
  line-height:1;
}
.bmInc_dateReset:hover{ background:rgba(62,61,86,.075); color:var(--text); }

/* Dashboard-styled range calendar (never uses the browser's native picker) */
.bmInc_calendar{
  position:fixed;
  z-index:13000;
  width:326px;
  padding:12px;
  border:1px solid rgba(62,61,86,.14);
  border-radius:22px;
  background:rgba(255,255,255,.965);
  color:var(--text);
  box-shadow:0 26px 70px rgba(26,25,42,.22),inset 0 1px 0 rgba(255,255,255,.86);
  backdrop-filter:blur(24px) saturate(1.08);
  -webkit-backdrop-filter:blur(24px) saturate(1.08);
  animation:bmIncCalendarIn .16s var(--ease-out);
}
@keyframes bmIncCalendarIn{
  from{ opacity:0; transform:translateY(-5px) scale(.985); }
  to{ opacity:1; transform:translateY(0) scale(1); }
}
.bmInc_calendarHead{
  min-height:46px;
  display:grid;
  grid-template-columns:34px 1fr 34px;
  align-items:center;
  gap:8px;
  padding:1px 2px 8px;
}
.bmInc_calendarHead > div{ min-width:0; text-align:center; }
.bmInc_calendarHead strong{
  display:block;
  font-size:14px;
  line-height:1.2;
  font-weight:900;
  text-transform:capitalize;
}
.bmInc_calendarHead span{
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-size:9px;
  line-height:1.2;
  font-weight:800;
  letter-spacing:.075em;
  text-transform:uppercase;
}
.bmInc_calendarNav{
  width:34px;
  height:34px;
  border:1px solid rgba(62,61,86,.1);
  border-radius:11px;
  background:rgba(62,61,86,.045);
  color:#5f5b6e;
  font:500 24px/1 var(--font);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 0 2px;
  transition:background .15s,border-color .15s,color .15s;
}
.bmInc_calendarNav:hover:not(:disabled){ background:rgba(93,83,180,.1); border-color:rgba(93,83,180,.18); color:#5147a3; }
.bmInc_calendarNav:disabled{ opacity:.3; cursor:default; }
.bmInc_calendarWeek,
.bmInc_calendarGrid{
  display:grid;
  grid-template-columns:repeat(7,1fr);
}
.bmInc_calendarWeek{ padding:2px 0 5px; }
.bmInc_calendarWeek span{
  text-align:center;
  color:var(--muted);
  font-size:9px;
  font-weight:900;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.bmInc_calendarGrid{ gap:2px 0; }
.bmInc_calendarDay{
  position:relative;
  isolation:isolate;
  height:36px;
  border:0;
  background:transparent;
  color:var(--text);
  font:800 11px/1 var(--font);
  cursor:pointer;
  padding:0;
}
.bmInc_calendarDay::before{
  content:'';
  position:absolute;
  z-index:-1;
  inset:3px;
  border-radius:10px;
  background:transparent;
  transition:background .12s,transform .12s;
}
.bmInc_calendarDay:hover:not(:disabled)::before{ background:rgba(62,61,86,.075); transform:scale(.96); }
.bmInc_calendarDay.isOutside{ color:rgba(122,120,136,.46); }
.bmInc_calendarDay.isDisabled{ color:rgba(122,120,136,.23); cursor:default; }
.bmInc_calendarDay.isInRange::after{
  content:'';
  position:absolute;
  z-index:-2;
  left:0;
  right:0;
  top:6px;
  bottom:6px;
  background:rgba(93,83,180,.09);
}
.bmInc_calendarDay.isStart::before,
.bmInc_calendarDay.isEnd::before{
  background:#5d53b4;
  box-shadow:0 5px 13px rgba(93,83,180,.24);
}
.bmInc_calendarDay.isStart,
.bmInc_calendarDay.isEnd{ color:#fff; }
.bmInc_calendarDay.isStart::after{ left:50%; }
.bmInc_calendarDay.isEnd::after{ right:50%; }
.bmInc_calendarDay.isStart.isEnd::after{ display:none; }
.bmInc_calendarFoot{
  min-height:38px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:8px;
  padding:8px 4px 0;
  border-top:1px solid rgba(62,61,86,.1);
}
.bmInc_calendarFoot span{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--muted);
  font-size:10px;
  font-weight:800;
  font-variant-numeric:tabular-nums;
}
.bmInc_calendarFoot button{
  border:0;
  border-radius:9px;
  background:rgba(93,83,180,.09);
  color:#5147a3;
  padding:7px 9px;
  font:900 10px/1 var(--font);
  cursor:pointer;
  white-space:nowrap;
}
.bmInc_calendarFoot button:hover{ background:rgba(93,83,180,.15); }

.bmInc_tabContent{ padding:18px 16px 16px; }
.bmInc_tabContent.bmInc_byMgrOpen{ position:relative; z-index:70; overflow:visible; }

/* Hotel bars */
.bmInc_hotelList{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
  gap:12px;
  align-items:start;
}
.bmInc_hotelCard{
  position:relative;
  background:var(--bg);
  border-radius:14px;
  border:1px solid var(--border);
  padding:14px;
  height:232px;
  min-height:232px;
  max-height:232px;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.bmInc_hotelHead{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  height:50px;
  min-height:50px;
  max-height:50px;
  margin-bottom:8px;
  gap:10px;
  overflow:visible;
}
.bmInc_hotelTitleBlock{
  min-width:0;
  flex:1;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.bmInc_hotelName{
  font-size:12.5px;
  font-weight:900;
  color:var(--text);
  min-width:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.bmInc_hotelValueBlock{
  flex:none;
  max-width:48%;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:5px;
  text-align:right;
}
.bmInc_hotelNet{
  font-size:13px;
  font-weight:900;
  color:#5d53b4;
  flex:none;
  white-space:nowrap;
}
.bmInc_hotelValidity{
  font-size:11px;
  color:var(--muted);
  font-weight:700;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.bmInc_hotelActual{
  font-size:11px;
  color:var(--muted);
  font-weight:800;
  white-space:nowrap;
}
.bmInc_hotelNightsSold{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:22px;
  border-radius:999px;
  padding:3px 8px;
  background:rgba(82,185,138,.13);
  border:1px solid rgba(82,185,138,.22);
  color:#3a9970;
  font-size:11px;
  font-weight:900;
  line-height:1.1;
  white-space:nowrap;
}
.bmInc_noIncentive .bmInc_hotelNet{ color:var(--muted); }

/* Progress bar */
.bmInc_tiers{
  flex:1;
  min-height:0;
  display:flex;
  flex-direction:column;
  gap:7px;
  overflow:hidden;
  padding-right:0;
}
.bmInc_tier{ display:flex; flex-direction:column; gap:3px; }
.bmInc_tierLabel{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  min-height:18px;
  font-size:11px;
  font-weight:800;
  color:var(--muted);
}
.bmInc_tierLabel > span:first-child{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.bmInc_tierLabel > span:last-child{ flex:none; }
.bmInc_tierRight{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
  white-space:nowrap;
}
.bmInc_tierLabel .bmInc_tierPct{
  color:#5d53b4;
  font-size:12px;
  font-weight:900;
}
.bmInc_tierLabel .bmInc_tierGap{
  color:#d97a3c;
  font-size:11px;
  font-weight:800;
}
.bmInc_tierMeta{ display:flex; flex-direction:column; align-items:flex-end; gap:2px; flex:none; }
.bmInc_tierMeta .bmInc_hotelValidity{ display:block; }
.bmInc_validityHeader{ margin-bottom:6px; }
.bmInc_periodBadge{ display:inline-block; background:rgba(93,83,180,.1); color:#5d53b4; border-radius:4px; padding:0 5px; font-size:10px; font-weight:900; margin-right:5px; }
.bmInc_unitBadge{ display:inline-block; background:rgba(82,185,138,.12); color:#3a9970; border-radius:4px; padding:0 5px; font-size:10px; font-weight:900; margin-right:5px; }
.bmInc_nextHint{ color:var(--muted); font-size:10px; font-weight:700; font-style:italic; }
.bmInc_earnedBadges{
  display:flex;
  align-items:center;
  gap:5px;
  flex:none;
  min-height:18px;
  max-height:18px;
  overflow:hidden;
  white-space:nowrap;
}
.bmInc_earnedBadge{
  display:inline-flex;
  align-items:center;
  flex:none;
  height:16px;
  padding:0 7px;
  border-radius:999px;
  background:rgba(82,185,138,.13);
  border:1px solid rgba(82,185,138,.22);
  color:#3a9970;
  font-size:10px;
  font-weight:900;
  line-height:1;
}
.bmInc_barWrap{
  height:10px;
  background:rgba(62,61,86,.08);
  border-radius:999px;
  overflow:visible;
  position:relative;
}
.bmInc_barPct{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  font-size:9px;
  font-weight:900;
  color:rgba(62,61,86,.55);
  pointer-events:none;
  white-space:nowrap;
  line-height:1;
}
.bmInc_barFill{
  height:100%;
  border-radius:999px;
  transition:width .4s cubic-bezier(.22,.82,.36,1);
  min-width:2px;
}
.bmInc_barFill.reached{ background:linear-gradient(90deg,#7ecfa8,#52b98a); }
.bmInc_barFill.inprogress{ background:linear-gradient(90deg,#a9cfde,#5d8fb4); }
.bmInc_barFill.empty{ background:rgba(62,61,86,.18); }
.bmInc_barFill.over{ background:linear-gradient(90deg,#7ecfa8,#52b98a); width:100%!important; }

/* Single-target bar (one big bar) */
.bmInc_singleBar .bmInc_barWrap{ height:14px; }
.bmInc_singleBar .bmInc_barPct{ font-size:10px; }

/* Totals row */
.bmInc_totalCard{
  background:rgba(93,83,180,.06);
  border-radius:14px;
  border:1px solid rgba(93,83,180,.14);
  padding:12px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}
.bmInc_totalLabel{ font-size:12px; font-weight:900; color:var(--muted); text-transform:uppercase; letter-spacing:.08em; }
.bmInc_totalVal{ font-size:18px; font-weight:900; color:#5d53b4; }
.bmInc_totalStat{ font-size:11px; color:var(--muted); font-weight:700; }

/* Managers tabs */
.bmInc_managerSummary{ margin-bottom:12px; }
.bmInc_summaryStats{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}
.bmInc_summaryPill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:26px;
  padding:5px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.52);
  border:1px solid rgba(93,83,180,.12);
  color:var(--muted);
  font-size:11px;
  font-weight:900;
  white-space:nowrap;
}
.bmInc_managerGrid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(245px,1fr));
  gap:12px;
  align-items:start;
}
.bmInc_managerCard{
  background:var(--bg);
  border:1px solid var(--border);
  border-radius:14px;
  padding:13px;
  min-height:142px;
  display:flex;
  flex-direction:column;
  gap:10px;
  overflow:hidden;
}
.bmInc_managerTop{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.bmInc_managerIdentity{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:5px;
}
.bmInc_managerRank{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:max-content;
  min-height:18px;
  padding:2px 7px;
  border-radius:999px;
  background:rgba(93,83,180,.09);
  color:#5d53b4;
  font-size:10px;
  font-weight:900;
  line-height:1;
}
.bmInc_managerName{
  min-width:0;
  max-width:100%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  color:var(--text);
  font-size:13px;
  font-weight:900;
}
.bmInc_managerNet{
  flex:none;
  color:#5d53b4;
  font-size:13px;
  font-weight:900;
  text-align:right;
  white-space:nowrap;
}
.bmInc_managerShare{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  color:var(--muted);
  font-size:11px;
  font-weight:800;
}
.bmInc_managerBar{
  height:8px;
  border-radius:999px;
  background:rgba(62,61,86,.08);
  overflow:hidden;
}
.bmInc_managerBarFill{
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,#a9cfde,#5d8fb4);
}
.bmInc_managerMetrics{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:7px;
  margin-top:auto;
}
.bmInc_managerMetrics div{
  min-width:0;
  border-radius:10px;
  background:rgba(255,255,255,.48);
  border:1px solid rgba(62,61,86,.06);
  padding:7px 6px;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.bmInc_managerMetrics strong{
  color:var(--text);
  font-size:12px;
  font-weight:900;
  line-height:1.1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.bmInc_managerMetrics span{
  color:var(--muted);
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
}

/* By-manager grouped */
.bmInc_byManagerGrid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(310px,1fr));
  gap:12px;
  align-items:start;
}
.bmInc_mgGroup{
  position:relative;
  border-radius:14px;
  overflow:visible;
  border:1px solid var(--border);
  background:var(--bg);
}
.bmInc_mgGroup.bmInc_open{ z-index:30; }
.bmInc_mgGroupHead{
  cursor:pointer;
  user-select:none;
  min-height:66px;
  padding:13px;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  background:transparent;
  transition:background .15s, border-color .15s;
}
.bmInc_mgGroupHead:hover{ background:rgba(93,83,180,.045); }
.bmInc_byMgrIdentity{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:5px;
}
.bmInc_byMgrName{
  min-width:0;
  max-width:100%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  color:var(--text);
  font-size:13px;
  font-weight:900;
}
.bmInc_byMgrMeta{
  color:var(--muted);
  font-size:11px;
  font-weight:800;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.bmInc_byMgrTotalBlock{
  flex:none;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  text-align:right;
}
.bmInc_mgGroupHead .bmInc_mgGroupTotal{
  color:#5d53b4;
  font-size:13px;
  font-weight:900;
  white-space:nowrap;
}
.bmInc_mgGroupChev{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:22px;
  height:22px;
  border-radius:999px;
  background:rgba(93,83,180,.08);
  color:#5d53b4;
  font-size:11px;
  font-weight:900;
  transition:transform .2s, background .15s;
}
.bmInc_mgGroupHead:hover .bmInc_mgGroupChev{ background:rgba(93,83,180,.12); }
.bmInc_mgGroup.bmInc_collapsed .bmInc_mgGroupChev{ transform:rotate(-90deg); }
.bmInc_mgGroup.bmInc_collapsed .bmInc_mgGroupTable{ display:none; }
.bmInc_mgGroupTable{
  position:absolute;
  top:calc(100% + 6px);
  left:8px;
  right:8px;
  z-index:80;
  max-height:280px;
  overflow:auto;
  border:1px solid rgba(62,61,86,.10);
  border-radius:12px;
  background:var(--card);
  box-shadow:0 14px 34px rgba(20,24,42,.16);
}
.bmInc_byMgrHotelList{
  padding:6px 8px 8px;
}
.bmInc_byMgrHotelRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-height:38px;
  padding:7px 4px;
  border-bottom:1px solid rgba(62,61,86,.06);
}
.bmInc_byMgrHotelRow:last-child{ border-bottom:none; }
.bmInc_byMgrHotelMain{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:3px;
}
.bmInc_byMgrHotelName{
  color:var(--text);
  font-size:12px;
  font-weight:900;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.bmInc_byMgrHotelMeta{
  color:var(--muted);
  font-size:10.5px;
  font-weight:800;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.bmInc_byMgrHotelNet{
  flex:none;
  color:#5d53b4;
  font-size:12px;
  font-weight:900;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}

/* Settings overlay */
.bmInc_overlay{
  position:fixed;
  inset:0;
  background:rgba(20,21,32,.42);
  backdrop-filter:blur(8px);
  z-index:2147483000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  box-sizing:border-box;
  animation:bmInc_fadeIn .18s ease;
}
@keyframes bmInc_fadeIn{ from{opacity:0} to{opacity:1} }
.bmInc_sheet{
  width:min(560px,calc(100vw - 40px));
  background:#f7f6f2;
  border-radius:24px;
  box-shadow:0 28px 80px rgba(18,20,35,.32);
  padding:22px;
  position:relative;
  animation:bmInc_slideUp .22s cubic-bezier(.22,.82,.36,1);
}
@keyframes bmInc_slideUp{ from{transform:translateY(18px);opacity:0} to{transform:none;opacity:1} }
.bmInc_sheetHead{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:18px;
}
.bmInc_sheetHead h3{ margin:0; font-size:20px; letter-spacing:-.02em; }
.bmInc_closeBtn{
  width:36px; height:36px;
  border-radius:12px;
  border:1px solid rgba(62,61,86,.14);
  background:#fff;
  color:#3f3c57;
  font-size:20px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}
.bmInc_section{ margin-bottom:16px; }
.bmInc_sectionLabel{
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--muted);
  margin-bottom:8px;
}
.bmInc_row{ display:flex; align-items:center; gap:10px; }
.bmInc_input{
  height:40px;
  border-radius:13px;
  border:1px solid rgba(62,61,86,.14);
  background:#fff;
  padding:0 12px;
  font:inherit;
  font-size:14px;
  color:#1f2340;
  width:100%;
  box-sizing:border-box;
}
.bmInc_input:focus{ outline:2px solid rgba(93,83,180,.2); outline-offset:1px; }
.bmInc_inputUnit{
  font-size:14px;
  font-weight:900;
  color:var(--muted);
  white-space:nowrap;
}
.bmInc_btnRow{
  display:flex;
  gap:8px;
  margin-top:18px;
  justify-content:flex-end;
}
.bmInc_btn{
  height:40px;
  border-radius:14px;
  border:1px solid rgba(62,61,86,.14);
  background:#fff;
  color:#3f3c57;
  font-weight:900;
  font-size:13px;
  padding:0 16px;
  cursor:pointer;
  transition:background .15s,border-color .15s;
}
.bmInc_btn:hover{ background:#efedf8; border-color:rgba(93,83,180,.22); }
.bmInc_btn.primary{ background:#5d53b4; color:#fff; border-color:transparent; }
.bmInc_btn.primary:hover{ background:#4e45a0; }
.bmInc_btn.danger{ color:#c0392b; border-color:rgba(192,57,43,.2); }
.bmInc_btn.danger:hover{ background:#fdf0ee; }

.bmInc_uploadsList{ display:flex; flex-direction:column; gap:6px; margin-top:6px; }
.bmInc_uploadItem{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  background:#fff;
  border-radius:12px;
  border:1px solid rgba(62,61,86,.10);
  font-size:12px;
}
.bmInc_uploadItem .bmInc_uploadName{ flex:1; font-weight:800; color:var(--text); min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.bmInc_uploadItem .bmInc_uploadDates{ color:var(--muted); font-weight:700; flex:none; }
.bmInc_uploadMode{ flex:none; padding:3px 7px; border-radius:999px; font-size:8px; line-height:1; font-weight:900; letter-spacing:.05em; text-transform:uppercase; }
.bmInc_uploadMode.isExact{ background:rgba(45,143,91,.10); color:#287d51; }
.bmInc_uploadMode.isEstimated{ background:rgba(185,126,36,.10); color:#9a681e; }
.bmInc_uploadItem .bmInc_uploadDel{ flex:none; width:28px; height:28px; border-radius:9px; border:1px solid rgba(192,57,43,.2); background:#fff; color:#c0392b; font-size:16px; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.bmInc_uploadItem .bmInc_uploadDel:hover{ background:#fdf0ee; }
.bmInc_empty{ color:var(--muted); font-size:12.5px; font-weight:700; padding:12px 0; text-align:center; }

/* Import progress */
.bmInc_progressMsg{ font-size:13px; color:var(--muted); font-weight:700; padding:10px 0; }
.bmInc_overlapWarn{
  background:#fff9e6;
  border:1px solid rgba(217,160,60,.3);
  border-radius:12px;
  padding:10px 12px;
  font-size:12px;
  font-weight:800;
  color:#8a6c1a;
  margin-bottom:12px;
}

/* Deduction tooltip hint */
.bmInc_deductHint{
  display:inline-block;
  background:rgba(62,61,86,.08);
  border-radius:8px;
  padding:2px 6px;
  font-size:10.5px;
  font-weight:800;
  color:var(--muted);
  cursor:help;
  white-space:nowrap;
}

@media (max-width:900px){
  .bmInc_hotelList{ grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); }
  .bmInc_hotelHead{ height:auto; min-height:0; max-height:none; flex-wrap:wrap; }
  .bmInc_hotelValueBlock{ max-width:100%; align-items:flex-start; text-align:left; }
  .bmInc_managerGrid{ grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); }
  .bmInc_byManagerGrid{ grid-template-columns:1fr; }
  .bmInc_summaryStats{ justify-content:flex-start; width:100%; }
}

/* By-manager dropdown overlays the page and does not reserve layout space */
.incentiveGrid.bmInc_byMgrOverlay + .card{ position:relative; z-index:1; }

/* ==========================================================================
   POLISH LAYER — toasts, modal forms, unified add menu, attachments, gallery
   ========================================================================== */

/* ---- Toasts ---- */
#bmToastHost{
  position:fixed; right:20px; bottom:20px; z-index:12000;
  display:flex; flex-direction:column; gap:10px; align-items:flex-end;
  pointer-events:none; max-width:min(430px, calc(100vw - 40px));
}
.bmToast{
  pointer-events:auto; position:relative; overflow:hidden;
  display:flex; align-items:flex-start; gap:11px;
  min-width:260px; max-width:100%;
  background:rgba(32,30,46,.97); color:#fff;
  border-radius:16px; padding:13px 14px 15px;
  box-shadow:0 18px 44px rgba(15,15,30,.28);
  font-size:13px; line-height:1.4; font-weight:600;
  opacity:0; transform:translateY(14px) scale(.97);
  transition:opacity .26s var(--ease-out), transform .26s var(--ease-out);
}
.bmToast.in{ opacity:1; transform:none; }
.bmToast.out{ opacity:0; transform:translateY(8px) scale(.97); }
.bmToastIcon{ width:20px; height:20px; flex:0 0 20px; margin-top:1px; display:flex; align-items:center; justify-content:center; }
.bmToastIcon svg{ width:18px; height:18px; }
.bmToast.success .bmToastIcon{ color:#8fdcb2; }
.bmToast.danger .bmToastIcon{ color:#ff9d9d; }
.bmToast.warn .bmToastIcon{ color:#ffd27f; }
.bmToast.info .bmToastIcon{ color:#9fc3ff; }
.bmToastMsg{ flex:1; min-width:0; word-wrap:break-word; padding-right:2px; }
.bmToastClose{
  flex:0 0 auto; width:24px; height:24px; margin:-3px -4px 0 0;
  border:0; border-radius:8px; background:transparent; color:rgba(255,255,255,.55);
  font-size:12px; cursor:pointer; display:flex; align-items:center; justify-content:center;
  transition:background .15s ease, color .15s ease;
}
.bmToastClose:hover{ background:rgba(255,255,255,.12); color:#fff; }
.bmToastBar{
  position:absolute; left:0; bottom:0; height:3px; width:100%;
  background:rgba(255,255,255,.28); transform-origin:left;
  animation:bmToastBar linear forwards;
}
.bmToast.success .bmToastBar{ background:rgba(143,220,178,.75); }
.bmToast.danger .bmToastBar{ background:rgba(255,157,157,.75); }
.bmToast.warn .bmToastBar{ background:rgba(255,210,127,.75); }
.bmToast.info .bmToastBar{ background:rgba(159,195,255,.75); }
@keyframes bmToastBar{ from{ transform:scaleX(1); } to{ transform:scaleX(0); } }
@media (max-width:760px){ #bmToastHost{ right:12px; left:12px; bottom:14px; align-items:stretch; } .bmToast{ min-width:0; } }

/* ---- Modal shell ---- */
.bmModalOverlay{
  position:fixed; inset:0; z-index:11500;
  background:rgba(18,19,30,.45);
  display:flex; align-items:center; justify-content:center;
  padding:24px 18px; overflow-y:auto;
  opacity:0; backdrop-filter:blur(0px);
  transition:opacity .22s ease, backdrop-filter .22s ease;
}
.bmModalOverlay.open{ opacity:1; backdrop-filter:blur(10px); }
body.bmModalOpen{ overflow:hidden; }
.bmModalCard{
  width:min(680px, 100%); max-height:calc(100vh - 48px);
  display:flex; flex-direction:column;
  background:#fff; color:var(--text);
  border:1px solid rgba(63,59,86,.10);
  border-radius:26px; box-shadow:var(--shadow-xl);
  transform:translateY(18px) scale(.965); opacity:0;
  transition:transform .26s var(--ease-out), opacity .22s ease;
  margin:auto;
}
.bmModalOverlay.open .bmModalCard{ transform:none; opacity:1; }
.bmModalCard.small{ width:min(460px, 100%); }
.bmModalCard.preview{ width:min(920px, 100%); }
.bmModalCard.cropper{ width:min(430px, 100%); }
.bmModalHead{
  display:flex; align-items:center; gap:13px;
  padding:20px 22px 16px; border-bottom:1px solid rgba(63,59,86,.08);
}
.bmModalIcon{
  width:42px; height:42px; flex:0 0 42px; border-radius:14px;
  background:linear-gradient(160deg,#f2f0fa,#e7e4f4); color:var(--accent2);
  display:flex; align-items:center; justify-content:center;
}
.bmModalIcon svg{ width:21px; height:21px; }
.bmModalHeadText{ flex:1; min-width:0; }
.bmModalTitle{ font-size:19px; font-weight:900; color:#2c2a3e; line-height:1.2; }
.bmModalSub{ font-size:12.5px; color:var(--muted); margin-top:3px; }
.bmModalClose{
  width:36px; height:36px; flex:0 0 36px; border:1px solid rgba(63,59,86,.12);
  border-radius:999px; background:#fff; color:#3f3b56; font-size:14px; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition:background .15s ease, transform .15s ease;
}
.bmModalClose:hover{ background:#f3f1f9; transform:rotate(90deg); }
.bmModalBody{ padding:20px 22px; overflow-y:auto; }
.bmModalFoot{
  display:flex; justify-content:flex-end; gap:10px;
  padding:15px 22px 20px; border-top:1px solid rgba(63,59,86,.08);
}
.bmConfirmText{ font-size:14px; line-height:1.55; color:#4b4763; }

/* ---- Buttons & fields (polish components) ---- */
.bmBtn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  height:42px; padding:0 18px; border-radius:999px;
  border:1px solid rgba(63,59,86,.16); background:#fff; color:#3f3b56;
  font:800 13.5px var(--font); cursor:pointer; white-space:nowrap;
  box-shadow:var(--shadow-sm);
  transition:transform .15s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.bmBtn svg{ width:15px; height:15px; }
.bmBtn:hover:not(:disabled){ transform:translateY(-1px); box-shadow:var(--shadow-md); border-color:rgba(93,83,180,.32); }
.bmBtn:active:not(:disabled){ transform:none; }
.bmBtn:disabled{ opacity:.55; cursor:not-allowed; }
.bmBtn.primary{ border:0; background:linear-gradient(180deg,#4a4668,#3a3754); color:#fff; }
.bmBtn.primary:hover:not(:disabled){ border:0; box-shadow:0 14px 28px rgba(50,46,84,.32); }
.bmBtn.danger{ border:0; background:linear-gradient(180deg,#d97575,#c25c5c); color:#fff; }
.bmBtn.ghost{ background:transparent; box-shadow:none; }
.bmBtn.small{ height:34px; padding:0 13px; font-size:12.5px; }
.bmBtn.busy{ position:relative; pointer-events:none; }
.bmFormGrid{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:13px; }
.bmField{ display:flex; flex-direction:column; gap:7px; min-width:0; }
.bmField.full{ grid-column:1 / -1; }
.bmFieldLabel{
  font-size:10.5px; font-weight:900; letter-spacing:.09em; text-transform:uppercase;
  color:#807d92; display:flex; align-items:center; gap:7px;
}
.bmFieldOpt{ font-style:normal; font-weight:700; letter-spacing:.02em; text-transform:none; color:#a5a2b5; }
.bmInput{
  width:100%; min-height:42px; border:1px solid rgba(63,59,86,.15); border-radius:13px;
  background:#fff; color:#2c2a3e; padding:10px 13px; font:600 14px var(--font);
  transition:border-color .18s ease, box-shadow .18s ease;
}
.bmInput:focus{ outline:none; border-color:rgba(93,83,180,.5); box-shadow:0 0 0 4px rgba(93,83,180,.10); }
.bmTextarea{ min-height:96px; resize:vertical; line-height:1.45; }
.bmRows{ display:flex; flex-direction:column; gap:8px; }
.bmRow{ display:grid; gap:8px; align-items:center; }
.bmRow.two{ grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr) 34px; }
.bmRow.tier{ grid-template-columns:1fr 1fr minmax(76px,.8fr) 86px 74px 34px; }
.bmRowRemove{
  width:34px; height:34px; border:1px solid rgba(179,38,54,.18); border-radius:11px;
  background:#fff7f7; color:#b23a3a; font-size:12px; font-weight:900; cursor:pointer;
  transition:background .15s ease;
}
.bmRowRemove:hover{ background:#ffecec; }
@media (max-width:760px){ .bmFormGrid{ grid-template-columns:1fr; } .bmRow.tier{ grid-template-columns:1fr 1fr; } .bmRow.two{ grid-template-columns:1fr; } }

/* ---- Hotel combo picker ---- */
.bmCombo{ position:relative; }
.bmComboList{
  position:absolute; top:calc(100% + 6px); left:0; right:0; z-index:40;
  max-height:264px; overflow-y:auto;
  background:#fff; border:1px solid rgba(63,59,86,.13); border-radius:16px;
  box-shadow:var(--shadow-lg); padding:6px;
  opacity:0; transform:translateY(-6px);
  transition:opacity .16s ease, transform .16s var(--ease-out);
}
.bmComboList.open{ opacity:1; transform:none; }
.bmComboRow{
  width:100%; display:flex; flex-direction:column; gap:2px; align-items:flex-start;
  border:0; background:transparent; border-radius:11px; padding:9px 11px;
  text-align:left; cursor:pointer; transition:background .12s ease;
}
.bmComboRow:hover, .bmComboRow.active{ background:#f4f2fa; }
.bmComboRow b{ font-size:13.5px; color:#2c2a3e; }
.bmComboRow em{ font-style:normal; font-size:11px; color:var(--muted); }
.bmComboEmpty{ padding:14px 12px; font-size:12.5px; color:var(--muted); }

/* ---- Unified add menu ---- */
.bmAddWrap{ position:relative; display:inline-flex; }
.bmAddTrigger{ height:42px; min-width:98px; padding:0 16px; }
.bmBtnIcon{ display:flex; }
.bmBtnIcon svg{ width:14px; height:14px; }
.bmBtnChevron{ display:flex; opacity:.7; margin-left:-2px; }
.bmBtnChevron svg{ width:13px; height:13px; transition:transform .18s ease; }
.bmAddTrigger[aria-expanded="true"] .bmBtnChevron svg{ transform:rotate(180deg); }
.bmAddMenu{
  position:absolute; top:calc(100% + 8px); right:0; z-index:900;
  width:250px; padding:7px;
  background:#fff; border:1px solid rgba(63,59,86,.11); border-radius:18px;
  box-shadow:var(--shadow-lg);
  opacity:0; transform:translateY(-7px) scale(.98); transform-origin:top right;
  transition:opacity .17s ease, transform .17s var(--ease-out);
}
.bmAddMenu.open{ opacity:1; transform:none; }
.bmAddItem{
  width:100%; display:flex; align-items:center; gap:11px;
  border:0; background:transparent; border-radius:13px; padding:10px 11px;
  text-align:left; cursor:pointer; transition:background .13s ease;
}
.bmAddItem:hover{ background:#f4f2fa; }
.bmAddItemIcon{
  width:34px; height:34px; flex:0 0 34px; border-radius:11px;
  background:linear-gradient(160deg,#f2f0fa,#e7e4f4); color:var(--accent2);
  display:flex; align-items:center; justify-content:center;
}
.bmAddItemIcon svg{ width:17px; height:17px; }
.bmAddItemText{ display:flex; flex-direction:column; gap:1px; min-width:0; }
.bmAddItemText b{ font-size:13.5px; font-weight:800; color:#2c2a3e; }
.bmAddItemText em{ font-style:normal; font-size:11px; color:var(--muted); }

/* ---- Attachments on contract / SPO cards ---- */
.bmAttachStrip{
  display:flex; flex-wrap:wrap; gap:8px; align-items:center;
  margin-top:12px; padding-top:11px; border-top:1px dashed rgba(63,59,86,.14);
}
.bmAttachChip{
  display:inline-flex; align-items:center; gap:9px;
  max-width:100%; padding:7px 9px 7px 8px;
  background:#f7f6fb; border:1px solid rgba(63,59,86,.10); border-radius:12px;
  cursor:pointer; transition:border-color .15s ease, box-shadow .18s ease, transform .15s ease;
}
.bmAttachChip:hover{ border-color:rgba(93,83,180,.34); box-shadow:var(--shadow-sm); transform:translateY(-1px); }
.bmAttachChipIcon{
  width:30px; height:30px; flex:0 0 30px; border-radius:9px;
  background:#fdeeee; color:#c04747; display:flex; align-items:center; justify-content:center;
}
.bmAttachChipIcon svg{ width:15px; height:15px; }
.bmAttachChipText{ display:flex; flex-direction:column; min-width:0; }
.bmAttachChipText b{ font-size:12px; font-weight:800; color:#2c2a3e; max-width:190px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.bmAttachChipText em{ font-style:normal; font-size:10.5px; color:var(--muted); }
.bmAttachChipActions{ display:flex; gap:4px; margin-left:2px; }
.bmChipBtn{
  width:26px; height:26px; border:0; border-radius:8px;
  background:transparent; color:#6d6a80; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition:background .13s ease, color .13s ease;
}
.bmChipBtn svg{ width:13px; height:13px; }
.bmChipBtn:hover{ background:rgba(93,83,180,.12); color:var(--accent2); }
.bmChipBtn.danger:hover{ background:rgba(211,89,89,.12); color:#b23a3a; }
.bmAttachAdd{
  display:inline-flex; align-items:center; gap:6px;
  height:32px; padding:0 12px;
  border:1px dashed rgba(93,83,180,.4); border-radius:11px;
  background:transparent; color:#5d53b4; font:800 12px var(--font); cursor:pointer;
  transition:background .15s ease, border-style .15s ease;
}
.bmAttachAdd span{ display:flex; }
.bmAttachAdd svg{ width:12px; height:12px; }
.bmAttachAdd:hover:not(:disabled){ background:rgba(93,83,180,.07); border-style:solid; }
.bmAttachAdd:disabled{ opacity:.55; cursor:progress; }

/* ---- PDF / image preview ---- */
.bmPdfFrameWrap{
  border:1px solid rgba(63,59,86,.12); border-radius:16px; overflow:hidden;
  background:#3a3a42; height:min(66vh, 640px);
}
.bmPdfFrame{ width:100%; height:100%; border:0; display:block; }
.bmLightbox{
  display:flex; align-items:center; justify-content:center;
  background:#191921; border-radius:16px; overflow:hidden;
  max-height:min(66vh, 640px);
}
.bmLightbox img{ max-width:100%; max-height:min(66vh, 640px); object-fit:contain; display:block; }
.bmPreviewBar{ display:flex; justify-content:flex-end; gap:10px; margin-top:14px; }

/* ---- Hotel photo gallery ---- */
.bmPhotoGrid{
  display:grid; grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); gap:12px;
}
.bmPhotoCard{
  position:relative; margin:0; border-radius:16px; overflow:hidden; cursor:pointer;
  border:1px solid rgba(63,59,86,.11); background:#f1f0f6; aspect-ratio:1/1;
  transition:transform .18s var(--ease-out), box-shadow .2s ease;
}
.bmPhotoCard:hover{ transform:translateY(-2px); box-shadow:var(--shadow-md); }
.bmPhotoCard img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform .3s var(--ease-out); }
.bmPhotoCard:hover img{ transform:scale(1.04); }
.bmPhotoCard figcaption{
  position:absolute; left:0; right:0; bottom:0; padding:22px 10px 8px;
  background:linear-gradient(transparent, rgba(12,12,20,.72));
  display:flex; flex-direction:column; gap:1px;
  opacity:0; transition:opacity .2s ease;
}
.bmPhotoCard:hover figcaption, .bmPhotoCard:focus figcaption{ opacity:1; }
.bmPhotoCard figcaption b{ font-size:11.5px; color:#fff; font-weight:800; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.bmPhotoCard figcaption em{ font-style:normal; font-size:10px; color:rgba(255,255,255,.72); }
.bmEmptyState{
  display:flex; flex-direction:column; align-items:center; gap:6px;
  padding:38px 20px; text-align:center;
  border:1px dashed rgba(63,59,86,.18); border-radius:18px; background:rgba(255,255,255,.6);
}
.bmEmptyState svg{ width:30px; height:30px; color:#a7a4b8; margin-bottom:4px; }
.bmEmptyState b{ font-size:14px; color:#4b4763; }
.bmEmptyState span{ font-size:12.5px; color:var(--muted); max-width:340px; line-height:1.5; }

/* ---- Avatar cropper ---- */
.bmCropStage{
  position:relative; width:320px; height:320px; margin:0 auto;
  border-radius:20px; overflow:hidden; background:#111;
  touch-action:none;
}
.bmCropStage canvas{ display:block; width:100%; height:100%; cursor:grab; }
.bmCropStage canvas:active{ cursor:grabbing; }
.bmCropMask{
  position:absolute; inset:0; pointer-events:none; border-radius:20px;
  background:radial-gradient(circle at center, transparent 0, transparent 138px, rgba(10,10,16,.62) 139px);
}
.bmCropMask::after{
  content:''; position:absolute; left:50%; top:50%; width:276px; height:276px;
  transform:translate(-50%,-50%); border-radius:50%;
  border:2px solid rgba(255,255,255,.85); box-shadow:0 0 0 1px rgba(0,0,0,.25);
}
.bmCropZoomRow{ display:flex; align-items:center; gap:12px; margin-top:16px; padding:0 6px; }
.bmCropZoomIcon{ font-size:17px; font-weight:900; color:#807d92; width:18px; text-align:center; }
.bmCropZoomRow input[type=range]{ flex:1; accent-color:#5d53b4; height:26px; cursor:pointer; }
@media (max-width:420px){ .bmCropStage{ width:260px; height:260px; } .bmCropMask{ background:radial-gradient(circle at center, transparent 0, transparent 112px, rgba(10,10,16,.62) 113px); } .bmCropMask::after{ width:224px; height:224px; } }

/* ---- Motion polish for existing dialogs ---- */
@keyframes bmFadeIn{ from{ opacity:0; } to{ opacity:1; } }
@keyframes bmPopIn{ from{ opacity:0; transform:translateY(16px) scale(.97); } to{ opacity:1; transform:none; } }
.bmFix17SheetOverlay{ animation:bmFadeIn .2s ease both; }
.bmFix17Sheet{ animation:bmPopIn .26s var(--ease-out) both; }
.dbFix34ConfirmOverlay{ animation:bmFadeIn .18s ease both; }
.dbFix34Confirm{ animation:bmPopIn .24s var(--ease-out) both; }
.dbOverlay.open .dbPanel{ animation:bmPopIn .28s var(--ease-out) both; }
.side .pane.active{ animation:bmFadeIn .22s ease both; }
.itemCard{ transition:box-shadow .2s ease, border-color .2s ease; }
.itemCard:hover{ box-shadow:var(--shadow-sm); }

/* Roles, permission mapping and SPO executor settings */
.settingsAccessPane{padding:2px 0 8px}.accessRoleToolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:4px 0 14px}.settingsSectionTitle{font-size:17px;font-weight:800;margin-bottom:4px}.accessRoleCreate{display:flex;gap:8px;min-width:330px}.accessRoleCreate .input{min-width:210px}.accessRolesGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(330px,1fr));gap:12px;margin-top:12px}.accessRoleCard{border:1px solid var(--line);border-radius:16px;padding:14px;background:var(--card)}.accessRoleHead{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}.accessRoleName{font-weight:800;max-width:220px}.accessRoleKey{font-size:11px;color:var(--muted);margin:4px 0 0 3px}.accessRoleActions{display:flex;gap:7px}.accessPermissionGroups{display:grid;gap:12px}.accessPermissionGroup{border-top:1px solid var(--line);padding-top:10px}.accessPermissionGroupTitle{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin-bottom:7px}.accessPermissionRow{display:flex;align-items:flex-start;gap:9px;padding:5px 2px;font-size:13px;line-height:1.35}.accessPermissionRow input{margin-top:2px}.settingsCheck{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}.userAccessActions{display:flex;align-items:center;justify-content:flex-end;gap:6px}.userRoleEdit{min-width:125px}.userManagerEdit{min-width:180px}#usersTable td{vertical-align:middle}
@media(max-width:900px){.accessRoleToolbar{align-items:stretch;flex-direction:column}.accessRoleCreate{min-width:0}.accessRolesGrid{grid-template-columns:1fr}.settingsAddFields{grid-template-columns:1fr}.tableWrap{overflow:auto}}

/* External photo cloud links */
.bmMediaLinks{margin-top:18px;display:grid;gap:9px}.bmMediaLinksTitle{font-size:12px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);margin-bottom:1px}.bmMediaLinkCard{display:flex;align-items:flex-start;gap:12px;border:1px solid var(--line);border-radius:14px;padding:12px;background:var(--card);min-width:0}.bmMediaLinkIcon{width:38px;height:38px;border-radius:11px;background:rgba(78,91,220,.09);color:#4e5bdc;display:grid;place-items:center;flex:0 0 auto}.bmMediaLinkIcon svg{width:20px;height:20px}.bmMediaLinkBody{min-width:0;flex:1}.bmMediaLinkBody a{font-weight:800;color:inherit;text-decoration:none;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bmMediaLinkBody a:hover{text-decoration:underline}.bmMediaLinkBody p{margin:4px 0 0;font-size:13px;line-height:1.45;color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere}.bmMediaLinkActions{display:flex;gap:5px;flex:0 0 auto}.bmMediaLinkActions .bmChipBtn svg{width:15px;height:15px}.bmTextarea{resize:vertical;min-height:100px}

/* Settings users and roles layout — 2026-07-17 */
#settingsModal #settingsUsers.settingsUsersPane{
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
  min-height:0;
  height:100%;
  gap:10px;
  overflow:hidden;
}
#settingsModal .settingsAddBar{
  display:grid!important;
  grid-template-columns:minmax(170px,1fr) minmax(190px,1fr) minmax(150px,.72fr) auto;
  align-items:end!important;
  gap:12px!important;
  padding:14px!important;
  flex:0 0 auto;
}
#settingsModal .settingsAddField,
#settingsModal .userSettingsField{
  display:flex;
  flex-direction:column;
  gap:7px;
  min-width:0;
}
#settingsModal .settingsAddField > span,
#settingsModal .userSettingsField > span{
  font-size:11px;
  line-height:1;
  font-weight:800;
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--muted);
}
#settingsModal .settingsAddField .input,
#settingsModal .userSettingsField .input{
  width:100%;
  min-width:0;
}
#settingsModal .settingsRoleSelect{
  max-width:none!important;
  width:100%!important;
  flex:auto!important;
}
#settingsModal .settingsAddBtn{
  height:42px!important;
  min-width:112px;
  align-self:end;
}
#settingsModal .settingsStatus{
  min-height:16px;
  padding:0 3px;
  flex:0 0 auto;
}
#settingsModal .settingsUsersList{
  display:flex;
  flex-direction:column;
  gap:10px;
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:1px 6px 8px 1px;
  scrollbar-gutter:stable;
}
#settingsModal .userSettingsCard{
  flex:0 0 auto;
  background:#fff;
  border:1px solid rgba(62,61,86,.10);
  border-radius:17px;
  padding:14px;
  box-shadow:0 2px 10px rgba(28,32,54,.035);
}
#settingsModal .userSettingsHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:13px;
  padding-bottom:12px;
  border-bottom:1px solid rgba(62,61,86,.08);
}
#settingsModal .userSettingsIdentity{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
#settingsModal .userSettingsIdentity strong{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:15px;
}
#settingsModal .userStatusPill{
  display:inline-flex;
  align-items:center;
  min-height:23px;
  padding:0 9px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
  white-space:nowrap;
}
#settingsModal .userStatusPill.isActive{
  color:#28754d;
  background:rgba(53,165,105,.12);
}
#settingsModal .userStatusPill.isInactive{
  color:#9b4545;
  background:rgba(194,78,78,.11);
}
#settingsModal .userSettingsFields{
  display:grid;
  grid-template-columns:minmax(160px,.75fr) minmax(220px,1.08fr) minmax(145px,.48fr) minmax(170px,.78fr);
  gap:12px;
  align-items:start;
}
#settingsModal .userSpoExecutorField,
#settingsModal .userSpoNameControl{
  min-width:0;
}
#settingsModal .userSpoToggle{
  display:flex;
  align-items:center;
  gap:8px;
  height:42px;
  padding:0 12px;
  border:1px solid rgba(62,61,86,.16);
  border-radius:12px;
  background:#fff;
  cursor:pointer;
  white-space:nowrap;
}
#settingsModal .userSpoToggle b{
  font-size:13px;
  font-weight:700;
}
#settingsModal .userSpoNameEdit:disabled{
  opacity:.55;
  cursor:not-allowed;
  background:rgba(62,61,86,.04);
}
#settingsModal .userAccessActions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  flex:0 0 auto;
}
#settingsModal .userAccessActions .btn{
  height:36px;
  padding:0 14px;
}
#settingsModal .userAccessActions .userKebabBtn{
  width:36px;
  padding:0;
  font-size:18px;
}

#settingsModal #settingsAccess.settingsAccessPane{
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
  min-height:0;
  height:100%;
  padding:0;
  overflow:hidden;
}
#settingsModal .accessRoleToolbar{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:18px;
  margin:0 0 10px;
  padding:2px 1px 0;
  flex:0 0 auto;
}
#settingsModal .accessRoleCreate{
  display:grid;
  grid-template-columns:minmax(210px,280px) auto;
  gap:9px;
  min-width:0;
}
#settingsModal .accessRoleCreate .input{
  min-width:0;
  width:100%;
}
#settingsModal #accessRolesMsg{
  min-height:16px;
  flex:0 0 auto;
}
#settingsModal .accessRolesGrid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-content:start;
  gap:12px;
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
  margin:0;
  padding:1px 6px 10px 1px;
}
#settingsModal .accessRoleCard{
  min-width:0;
  align-self:start;
  padding:15px;
  border-radius:17px;
}
#settingsModal .accessRoleHead{
  align-items:flex-start;
  margin-bottom:13px;
}
#settingsModal .accessRoleHead > div:first-child{
  min-width:0;
  flex:1 1 auto;
}
#settingsModal .accessRoleName{
  width:100%;
  max-width:none;
}
#settingsModal .accessRoleActions{
  flex:0 0 auto;
}
#settingsModal .accessPermissionRow{
  padding:6px 2px;
}

@media(max-width:1000px){
  #settingsModal .settingsAddBar{
    grid-template-columns:1fr 1fr;
  }
  #settingsModal .settingsAddBtn{
    width:100%;
  }
  #settingsModal .userSettingsFields{
    grid-template-columns:1fr 1fr;
  }
  #settingsModal .accessRolesGrid{
    grid-template-columns:1fr;
  }
}
@media(max-width:700px){
  #settingsModal .settingsAddBar{
    grid-template-columns:1fr;
  }
  #settingsModal .userSettingsHead{
    align-items:flex-start;
  }
  #settingsModal .userSettingsFields{
    grid-template-columns:1fr;
  }
  #settingsModal .accessRoleToolbar{
    align-items:stretch;
    flex-direction:column;
  }
  #settingsModal .accessRoleCreate{
    grid-template-columns:1fr auto;
  }
}
#settingsModal .userSpoNameControl{
  display:flex;
  flex-direction:column;
  gap:7px;
  min-width:0;
}
#settingsModal .accessRoleActions{
  align-items:flex-start;
}
#settingsModal .accessRoleActions .btn{
  min-height:42px;
}

/* Dashboard settings switches: keep the thumb inside the track at every zoom level. */
label.switch{
  position:relative!important;
  display:inline-block!important;
  width:52px!important;
  min-width:52px!important;
  max-width:52px!important;
  height:30px!important;
  min-height:30px!important;
  flex:0 0 52px!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
  border-radius:999px!important;
  padding:0!important;
  margin:0!important;
}
.dbSwitchRow label.switch input,
label.switch input{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  opacity:0!important;
  pointer-events:none!important;
}
label.switch .switchSlider{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
label.switch .switchSlider:before{
  width:24px!important;
  height:24px!important;
  top:3px!important;
  left:3px!important;
  right:auto!important;
  transform:none!important;
  box-sizing:border-box!important;
}
label.switch input:checked + .switchSlider:before{
  left:calc(100% - 27px)!important;
  transform:none!important;
}

.fix7AlertItem button.danger{
  background:#c95762!important;
  color:#fff!important;
}
.fix7AlertItem button.restore{
  background:#e9f5ef!important;
  color:#24724e!important;
  border:1px solid rgba(36,114,78,.16)!important;
}
.fix7AlertItem button:disabled{opacity:.58;cursor:wait}

/* Resort info row links and compact attachments */
.bmRiValueContent{display:inline-flex;align-items:flex-start;gap:7px;max-width:100%;min-width:0;flex-wrap:wrap;vertical-align:middle}
.bmRiValueLink{color:#4e3ea2;text-decoration:none;border-bottom:1px solid rgba(78,62,162,.28);font-weight:inherit;min-width:0;overflow-wrap:anywhere}
.bmRiValueLink:hover{color:#37277e;border-bottom-color:currentColor}
.bmRiFileChips{display:inline-flex;align-items:center;gap:5px;min-width:0;max-width:100%;flex-wrap:wrap}
.bmRiFileChip{display:inline-flex;align-items:center;min-width:0;max-width:210px;height:24px;border:1px solid rgba(66,57,114,.14);border-radius:8px;background:rgba(87,72,170,.06);font-size:11px;font-weight:750;line-height:1;color:#4b4276;overflow:hidden}
.bmRiFileChip>a{display:inline-flex;align-items:center;gap:4px;min-width:0;max-width:180px;height:100%;padding:0 7px;color:inherit;text-decoration:none}
.bmRiFileChip>a>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bmRiFileChip button{width:23px!important;height:22px!important;min-width:23px!important;padding:0!important;border:0!important;border-left:1px solid rgba(66,57,114,.12)!important;border-radius:0!important;background:transparent!important;color:#a13949!important;font-size:15px!important;line-height:1!important;cursor:pointer!important}
.bmRiPaperclip{display:inline-flex;width:13px;height:13px;opacity:.82;flex:0 0 auto}
.bmRiPaperclip svg{display:block;width:100%;height:100%}
.bmRiEditorRow{display:grid!important;grid-template-columns:minmax(130px,.72fr) minmax(220px,1.55fr) 38px 38px 38px!important;gap:8px!important;align-items:start!important;padding:8px!important;border:1px solid rgba(35,32,52,.08)!important;border-radius:13px!important;background:rgba(250,250,253,.72)!important;overflow:visible!important;position:relative!important;z-index:0!important}
/* Keep the active autocomplete row above every following input row. Without this,
   later row backgrounds are painted over the suggestion menu despite its own z-index. */
.bmRiEditorRow:focus-within{z-index:5200!important}
.bmFix13Rows:has(.bmRiEditorRow:focus-within),.bmFix17Rows:has(.bmRiEditorRow:focus-within){position:relative!important;z-index:5200!important;overflow:visible!important}
.bmRiInputWrap{position:relative;min-width:0;z-index:4}
.bmRiInputWrap>input,.bmRiInputWrap>textarea{width:100%!important;box-sizing:border-box!important}
.bmRiLabelWrap{z-index:5}
.bmRiValueWrap{z-index:4}
.bmRiSuggestions{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:5600;display:flex;flex-direction:column;gap:3px;max-height:230px;overflow:auto;padding:6px;border:1px solid rgba(48,43,79,.14);border-radius:13px;background:rgba(255,255,255,.99);box-shadow:0 18px 44px rgba(23,20,38,.18)}
.bmRiSuggestions[hidden]{display:none!important}
.bmRiSuggestions button{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;width:100%!important;min-height:34px!important;padding:7px 9px!important;border:0!important;border-radius:9px!important;background:transparent!important;color:#27243d!important;text-align:left!important;cursor:pointer!important;font-size:12px!important;font-weight:750!important;line-height:1.25!important}
.bmRiSuggestions button:hover,.bmRiSuggestions button.active{background:rgba(87,72,170,.09)!important;color:#44358f!important}
.bmRiSuggestions button span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bmRiSuggestions button small{flex:0 0 auto;color:#9290a0;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.bmRiEditorRow>.bmRiRowIcon,.bmRiEditorRow>.bmRiRowRemove{width:38px!important;height:38px!important;min-width:38px!important;padding:0!important;border-radius:11px!important;border:1px solid rgba(35,32,52,.1)!important;background:#fff!important;font-weight:850!important;cursor:pointer!important;color:#51479a!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;transition:background .15s,border-color .15s,color .15s,transform .15s!important}
.bmRiEditorRow>.bmRiRowIcon svg,.bmRiEditorRow>.bmRiRowRemove svg{width:17px!important;height:17px!important;display:block!important}
.bmRiEditorRow>.bmRiRowIcon:hover{background:rgba(87,72,170,.07)!important;border-color:rgba(87,72,170,.24)!important;transform:translateY(-1px)!important}
.bmRiEditorRow>.bmRiRowIcon.active{background:rgba(87,72,170,.1)!important;border-color:rgba(87,72,170,.28)!important}
.bmRiEditorRow>.bmRiRowIcon.busy{opacity:.55;cursor:wait!important}
.bmRiEditorRow>.bmRiRowRemove{color:#b32636!important}
.bmRiEditorRow>.bmRiRowRemove:hover{background:rgba(179,38,54,.07)!important;border-color:rgba(179,38,54,.22)!important}
.bmRiUrlWrap{display:none;grid-column:2/-1;min-width:0}
.bmRiUrlWrap.show{display:block}
.bmRiEditorFiles{grid-column:2/-1;display:flex;align-items:center;min-width:0;padding-top:1px}
.bmRiEditorFiles[hidden]{display:none!important}
.bmFix13ResortActions,.bmFix13MediaActions,.bmFix17InlineActions{display:inline-flex!important;align-items:center!important;gap:6px!important;margin-left:auto!important}
.bmFix13ResortActions .bmFix13EditBtn,.bmFix13MediaActions .bmFix13EditBtn,.bmFix17InlineActions .bmFix17Btn{margin-left:0!important}
@media(max-width:760px){.bmRiEditorRow{grid-template-columns:1fr 38px 38px 38px!important}.bmRiLabelWrap,.bmRiValueWrap{grid-column:1/-1}.bmRiUrlWrap,.bmRiEditorFiles{grid-column:1/-1}}


/* Multiline Resort Info values. */
.bmRiValueWrap>textarea{
  display:block!important;
  min-height:42px!important;
  max-height:180px!important;
  padding-top:10px!important;
  padding-bottom:10px!important;
  line-height:1.42!important;
  resize:vertical!important;
  overflow-y:auto!important;
  white-space:pre-wrap!important;
}
.bmRiMultilineValue{
  min-width:0;
  white-space:pre-line!important;
  overflow-wrap:anywhere;
  line-height:1.48;
}
.bmRiEditorRow>.bmRiRowIcon,.bmRiEditorRow>.bmRiRowRemove{margin-top:2px!important}

/* SPO reminder v2 */
#fix7AlertsBtn.bmSpoReminderBtn{
  appearance:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;
  width:auto!important;min-width:40px!important;height:40px!important;padding:0 11px!important;border-radius:14px!important;
  border:1px solid rgba(72,72,96,.13)!important;background:rgba(255,255,255,.84)!important;color:#555267!important;
  box-shadow:0 7px 20px rgba(30,31,48,.08)!important;backdrop-filter:blur(14px)!important;cursor:pointer!important;
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease,background .16s ease,color .16s ease!important;
  position:relative!important;inset:auto!important;font:inherit!important;
}
#fix7AlertsBtn.bmSpoReminderBtn:hover{transform:translateY(-1px)!important;box-shadow:0 10px 26px rgba(30,31,48,.13)!important}
#fix7AlertsBtn.bmSpoReminderBtn[data-tone="release"]{background:rgba(235,249,243,.93)!important;border-color:rgba(27,143,94,.25)!important;color:#167650!important}
#fix7AlertsBtn.bmSpoReminderBtn[data-tone="expired"]{background:rgba(255,241,242,.94)!important;border-color:rgba(183,59,71,.23)!important;color:#a43a47!important}
#fix7AlertsBtn.bmSpoReminderBtn[data-tone="expiring"]{background:rgba(255,248,234,.94)!important;border-color:rgba(178,116,22,.23)!important;color:#996313!important}
#fix7AlertsBtn.bmSpoReminderBtn[data-tone="upcoming"]{background:rgba(244,243,252,.94)!important;border-color:rgba(91,80,169,.2)!important;color:#5a50a6!important}
#fix7AlertsBtn.bmSpoReminderBtn .bmSpoReminderIcon{display:inline-flex!important;width:18px!important;height:18px!important;position:static!important;background:none!important;color:inherit!important}
#fix7AlertsBtn.bmSpoReminderBtn .bmSpoReminderIcon svg{display:block;width:18px;height:18px}
#fix7AlertsBtn.bmSpoReminderBtn .bmSpoReminderLabel{display:none!important;position:static!important;width:auto!important;height:auto!important;min-width:0!important;background:none!important;color:inherit!important;font-size:12px!important;font-weight:900!important;line-height:1!important;white-space:nowrap!important}
#fix7AlertsBtn.bmSpoReminderBtn.hasItems .bmSpoReminderLabel{display:inline!important}
#fix7AlertsBtn.bmSpoReminderBtn .bmSpoReminderSecondary{display:none!important;position:static!important;width:auto!important;height:auto!important;min-width:0!important;background:none!important;color:currentColor!important;opacity:.62;font-size:10px!important;font-weight:800!important;line-height:1!important;white-space:nowrap!important}
#fix7AlertsBtn.bmSpoReminderBtn .bmSpoReminderSecondary:not(:empty){display:inline!important;padding-left:7px!important;border-left:1px solid currentColor!important}
.bmSpoReminderPanel{position:fixed;right:18px;top:64px;z-index:2147482400;width:min(520px,calc(100vw - 28px));max-height:calc(100vh - 78px);display:flex;flex-direction:column;overflow:hidden;border:1px solid rgba(47,45,67,.12);border-radius:24px;background:rgba(251,250,253,.97);box-shadow:0 26px 80px rgba(22,23,38,.25);backdrop-filter:blur(22px);opacity:0;transform:translateY(-7px) scale(.985);transform-origin:top right;transition:opacity .14s ease,transform .14s ease}
.bmSpoReminderPanel.open{opacity:1;transform:none}
.bmSpoPanelHead{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex:0 0 auto;padding:18px 18px 14px;border-bottom:1px solid rgba(47,45,67,.08);background:rgba(255,255,255,.7)}
.bmSpoPanelHead h3{display:flex;align-items:center;gap:8px;margin:2px 0 4px;font-size:17px;color:#252438;letter-spacing:-.015em}
.bmSpoPanelHead h3 svg{width:18px;height:18px;color:#6258aa}
.bmSpoPanelHead p{margin:0;color:#858294;font-size:10.5px;font-weight:750;line-height:1.35}
.bmSpoPanelEyebrow{color:#918da0;font-size:9px;font-weight:950;letter-spacing:.14em}
.bmSpoPanelClose{flex:0 0 auto;width:34px;height:34px;border:1px solid rgba(47,45,67,.1);border-radius:12px;background:#fff;color:#615e70;font-size:20px;line-height:1;cursor:pointer}
.bmSpoReminderTabs{display:flex;gap:6px;flex:0 0 auto;min-height:53px;box-sizing:border-box;padding:10px 12px;overflow-x:auto;overflow-y:hidden;border-bottom:1px solid rgba(47,45,67,.08);background:rgba(248,247,251,.88);scrollbar-width:thin}
.bmSpoReminderTabs button{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;height:32px;padding:0 10px;border:1px solid rgba(47,45,67,.1);border-radius:10px;background:#fff;color:#696677;font-size:10.5px;font-weight:850;cursor:pointer}
.bmSpoReminderTabs button b{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#f0eef5;color:#777386;font-size:9px}
.bmSpoReminderTabs button.active{border-color:rgba(91,80,169,.22);background:#f0eef9;color:#554b9e}
.bmSpoReminderTabs button.active b{background:#5d53a9;color:#fff}
.bmSpoReminderBody{flex:1 1 auto;min-height:0;overflow:auto;padding:12px;overscroll-behavior:contain}
.bmSpoPanelIntro{margin-bottom:10px;padding:10px 11px;border:1px solid rgba(91,80,169,.1);border-radius:13px;background:rgba(239,237,249,.6);color:#666276;font-size:11px;line-height:1.45}
.bmSpoPanelIntro b{color:#333047}
.bmSpoReminderCard{position:relative;margin-bottom:9px;padding:12px;border:1px solid rgba(47,45,67,.1);border-left:3px solid #6bc99c;border-radius:15px;background:#fff;box-shadow:0 5px 16px rgba(25,26,43,.045)}
.bmSpoReminderCard[data-tone="danger"]{border-left-color:#d26a72}.bmSpoReminderCard[data-tone="expiring"]{border-left-color:#d9a445}.bmSpoReminderCard[data-tone="upcoming"]{border-left-color:#9187d4}.bmSpoReminderCard[data-tone="deleted"]{border-left-color:#a6a3af}
.bmSpoCardHead{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.bmSpoCardHead h4{margin:0;color:#222134;font-size:12px;font-weight:950;line-height:1.3}
.bmSpoCardTitle{margin-top:3px;color:#514d61;font-size:11px;font-weight:750;line-height:1.4}
.bmSpoUrgency{flex:0 0 auto;max-width:125px;padding:5px 7px;border-radius:8px;background:#eaf7f0;color:#247651;font-size:9px;font-weight:950;line-height:1.15;text-align:center}
.bmSpoUrgency[data-tone="danger"]{background:#fbecee;color:#a73b48}.bmSpoUrgency[data-tone="expiring"]{background:#fff4df;color:#97600e}.bmSpoUrgency[data-tone="upcoming"]{background:#efedf9;color:#5a50a0}.bmSpoUrgency[data-tone="deleted"]{background:#f0eff2;color:#6d6975}
.bmSpoCardMeta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:10px}
.bmSpoCardMeta>div{min-width:0;padding:7px 8px;border-radius:10px;background:#f8f7fa}
.bmSpoCardMeta span{display:block;margin-bottom:2px;color:#9995a3;font-size:8px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.bmSpoCardMeta b{display:block;color:#595567;font-size:10px;line-height:1.35;overflow-wrap:anywhere}
.bmSpoCardDescription{display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden;margin:9px 0 0;color:#6f6b7a;font-size:10.5px;line-height:1.42;white-space:pre-line}
.bmSpoCardActions{display:flex;align-items:center;justify-content:flex-end;gap:7px;margin-top:10px}
.bmSpoCardBtn{height:30px;padding:0 10px;border:1px solid rgba(47,45,67,.11);border-radius:10px;background:#fff;color:#5e5a6b;font-size:10px;font-weight:900;cursor:pointer}
.bmSpoCardBtn.primary{border-color:rgba(27,143,94,.16);background:#eaf7f0;color:#19744e}.bmSpoCardBtn.danger{border-color:rgba(183,59,71,.15);background:#fae9eb;color:#a43a47}.bmSpoCardBtn.restore{border-color:rgba(91,80,169,.16);background:#eeecf8;color:#574da0}.bmSpoCardBtn:disabled{opacity:.55;cursor:wait}
.bmSpoEmpty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:190px;color:#9793a1;text-align:center}.bmSpoEmpty b{color:#5f5b6c;font-size:13px}.bmSpoEmpty span{margin-top:4px;font-size:10.5px}
.spoRemHelp{margin-top:12px;padding:10px 12px;border:1px solid rgba(44,140,96,.13);border-radius:13px;background:rgba(233,248,240,.7);color:#4f6e5f;font-size:11px;line-height:1.45}
@media(max-width:720px){#fix7AlertsBtn.bmSpoReminderBtn .bmSpoReminderSecondary{display:none!important}.bmSpoReminderPanel{right:8px;top:58px;width:calc(100vw - 16px);max-height:calc(100vh - 66px);border-radius:20px}.bmSpoCardMeta{grid-template-columns:1fr}.bmSpoReminderBody{padding:9px}}

/* ============================================================================
   HOTEL BADGE ALIGNMENT — compact one-line pills, natural growth on wrap
   ============================================================================ */
.hotelBadges{
  align-items:center;
  row-gap:6px;
}
.hotelBadges > :is(.countryBadge,.badge.metaTag,.customHotelBadge,.customBadgeHost){
  align-self:center;
  box-sizing:border-box;
  vertical-align:middle;
}
.countryBadge{
  min-height:22px;
  height:22px;
  line-height:1;
}
.customHotelBadge{
  align-items:center;
  min-height:22px;
  height:auto;
  padding:3px 10px;
  line-height:14px;
  border-radius:999px;
}
.customBadgeLabel{
  line-height:14px;
}
.badge.metaTag,
.badge.metaTag.dbLiveEditable{
  align-items:center;
  min-height:22px;
  height:auto;
  padding:3px 29px 3px 11px;
  margin:0;
  line-height:14px;
  border-radius:999px;
}
.badge.metaTag.dbLiveEditable .metaBadgeLabel{
  line-height:14px;
}


/* Usage tables: keep the full list vertically scrollable inside Settings. */
#settingsModal #settingsUsage{
  overflow:hidden;
}
#settingsModal #settingsUsage .usageMainWrap,
#settingsModal #settingsUsage .usageFailedWrap,
#settingsModal #settingsUsage .usageBlockedWrap{
  min-height:0;
  max-height:100%;
  overflow:auto!important;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
}

/* Compact copy action for the full Release / Upcoming description. */
.bmSpoCopyBtn{
  display:inline-grid;
  place-items:center;
  flex:0 0 auto;
  width:30px;
  height:30px;
  padding:0;
  border:1px solid rgba(91,80,169,.15);
  border-radius:10px;
  background:#f4f2fb;
  color:#6258aa;
  cursor:pointer;
  transition:background .14s ease,border-color .14s ease,color .14s ease,transform .14s ease;
}
.bmSpoCopyBtn svg{width:14px;height:14px;display:block}
.bmSpoCopyBtn:hover{background:#ece9f8;border-color:rgba(91,80,169,.28);color:#51479d;transform:translateY(-1px)}
.bmSpoCopyBtn:focus-visible{outline:2px solid rgba(91,80,169,.35);outline-offset:2px}
.bmSpoCopyBtn.copied{background:#eaf7f0;border-color:rgba(27,143,94,.18);color:#19744e;transform:none}
