/* Единый движок выбора дат (DateRangePickerEngine): стилизованные кнопки в TMA и Admin, однострочный заголовок и серая подпись */
.lh-dp-trigger {
  width: 100%; height: var(--control-height, 42px); padding: 0 12px;
  border: 0; border-radius: var(--radius-control, 12px);
  background: var(--field, #ededf2); color: var(--text, #1d1d1f);
  font-size: 13.5px; font-weight: 500; font-family: inherit;
  display: inline-flex; align-items: center; justify-content: space-between; gap: 8px;
  cursor: pointer; user-select: none; white-space: nowrap;
  transition: background-color 120ms ease;
}
.lh-dp-trigger:hover { background: var(--hover, #e5e6ec); }
.lh-dp-trigger.is-open { background: var(--hover, #e5e6ec); outline: 2px solid #007aff; outline-offset: -2px; }
.lh-dp-trigger-lead { display: inline-flex; align-items: center; gap: 7px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.lh-dp-trigger-ico { color: #007aff; font-size: 17px; flex-shrink: 0; }
.lh-dp-trigger-hint { font-size: 11.5px; color: var(--secondary-text, #6e6e73); font-weight: 500; flex-shrink: 0; }

.lh-dp-backdrop {
  position: fixed; inset: 0; z-index: 980;
  background: rgba(15, 23, 42, 0.32); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 14px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}
.lh-dp-backdrop.is-open { opacity: 1; visibility: visible; pointer-events: auto; }

.lh-dp-card {
  width: min(636px, 95vw); background: #ffffff; border-radius: 24px;
  padding: 16px 16px 14px; box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
  display: flex; flex-direction: column; gap: 11px;
  user-select: none; touch-action: none; position: relative;
  transform: scale(0.95) translateY(6px);
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}
.lh-dp-backdrop.is-open .lh-dp-card { transform: scale(1) translateY(0); }

.lh-dp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.lh-dp-head-titles { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.lh-dp-month-title { font-size: 16px; line-height: 20px; font-weight: 600; color: #1d1d1f; letter-spacing: -0.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lh-dp-head-sub { font-size: 12px; line-height: 15px; color: #86868b; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lh-dp-nav-btns { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; }
.lh-dp-nav-btn { width: 32px; height: 32px; border: 0; border-radius: 10px; background: #f2f3f7; color: #1d1d1f; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 600; }
.lh-dp-nav-btn:hover { background: #e5e6ec; }

.lh-dp-summary-bar {
  background: #f5f5f7; border-radius: 12px; padding: 8px 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 12.5px; color: #616166;
}
.lh-dp-summary-bar strong { color: #1d1d1f; font-weight: 600; }
.lh-dp-nights-tag { background: rgba(0, 122, 255, 0.12); color: #007aff; font-weight: 600; font-size: 11.5px; padding: 2px 9px; border-radius: 999px; flex-shrink: 0; }

.lh-dp-hscroll {
  width: 100%; overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 10px, #000 calc(100% - 10px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 10px, #000 calc(100% - 10px), transparent 100%);
}
.lh-dp-hscroll::-webkit-scrollbar { display: none; }
.lh-dp-months-track { display: inline-flex; align-items: flex-start; gap: 18px; padding: 2px 6px 4px; }
.lh-dp-month-pane { width: min(278px, calc(90vw - 44px)); flex-shrink: 0; display: flex; flex-direction: column; gap: 6px; }
.lh-dp-pane-caption { font-size: 13.5px; font-weight: 600; color: #1d1d1f; text-align: center; padding-bottom: 2px; }

.lh-dp-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 11px; font-weight: 600; color: #86868b; text-transform: uppercase; }
.lh-dp-weekdays span.is-wknd { color: #dc2626; }
.lh-dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 3px; column-gap: 0; }

.lh-dp-cell {
  position: relative; height: 36px; border: 0; background: transparent; padding: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #1d1d1f; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums;
}
.lh-dp-cell.is-outside { color: #c7c7cc; pointer-events: none; }
.lh-dp-cell.is-occupied { color: #c7c7cc; cursor: not-allowed; }
.lh-dp-cell.is-occupied .lh-dp-day-num { text-decoration: line-through; background: rgba(255, 59, 48, 0.08); color: #b91c1c; opacity: 0.65; }

.lh-dp-cell::before {
  content: ""; position: absolute; top: 6px; bottom: 6px; left: 0; right: 0;
  background: transparent; z-index: 1; pointer-events: none;
  transition: background-color 140ms cubic-bezier(0.22, 1, 0.36, 1), border-radius 140ms ease;
}
.lh-dp-cell.is-in-range::before { background: rgba(0, 122, 255, 0.16); }
.lh-dp-cell.is-range-start:not(.is-range-single)::before { background: rgba(0, 122, 255, 0.16); left: 4px; border-radius: 999px 0 0 999px; }
.lh-dp-cell.is-range-end:not(.is-range-single)::before { background: rgba(0, 122, 255, 0.16); right: 4px; border-radius: 0 999px 999px 0; }

.lh-dp-day-num {
  position: relative; z-index: 2; width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color 140ms cubic-bezier(0.22, 1, 0.36, 1), color 140ms ease, transform 140ms cubic-bezier(0.22, 1, 0.36, 1);
}
.lh-dp-cell:hover:not(.is-occupied):not(.is-range-start):not(.is-range-end) .lh-dp-day-num { background: rgba(0, 0, 0, 0.06); }
.lh-dp-cell.is-today .lh-dp-day-num { box-shadow: inset 0 0 0 1.5px #007aff; font-weight: 600; }
.lh-dp-cell.is-range-start .lh-dp-day-num,
.lh-dp-cell.is-range-end .lh-dp-day-num { background: #007aff !important; color: #ffffff !important; font-weight: 600; cursor: ew-resize; transform: scale(1.06); }

.lh-dp-drag-glider {
  position: fixed; top: 0; left: 0; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0, 122, 255, 0.28); border: 2px solid #007aff;
  pointer-events: none; z-index: 999; opacity: 0;
  transform: translate3d(-999px, -999px, 0) scale(0.75);
  transition: opacity 120ms ease;
}
.lh-dp-drag-glider.is-active { opacity: 1; }

.lh-dp-presets { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-top: 2px; }
.lh-dp-presets::-webkit-scrollbar { display: none; }
.lh-dp-preset-chip { height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: #f2f3f7; color: #1d1d1f; font-size: 12px; font-weight: 500; cursor: pointer; white-space: nowrap; flex-shrink: 0; font-family: inherit; }
.lh-dp-preset-chip:hover { background: #e5e6ec; }

.lh-dp-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid rgba(60, 60, 67, 0.1); }
.lh-dp-btn, .lh-dp-footer .lh-btn {
  height: 38px; padding: 0 18px; border: 0 !important; outline: 0 !important;
  border-radius: 12px; font-size: 13.5px; font-weight: 600; font-family: inherit;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: background-color 120ms ease, transform 100ms ease;
}
.lh-dp-btn:active, .lh-dp-footer .lh-btn:active { transform: scale(0.97); }
.lh-dp-btn-secondary, .lh-dp-footer .lh-btn-secondary { background: #f2f3f7; color: #1d1d1f; }
.lh-dp-btn-secondary:hover, .lh-dp-footer .lh-btn-secondary:hover { background: #e5e6ec; }
.lh-dp-btn-primary, .lh-dp-footer .lh-btn-primary { background: #1d1d1f; color: #ffffff; }
.lh-dp-btn-primary:hover, .lh-dp-footer .lh-btn-primary:hover { background: #333336; }
