.booking-heading {
  margin-bottom: 25px;
}
.booking-heading p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ds-muted);
  margin: 9px 0 0;
}
.booking-counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.booking-counts > div {
  background: var(--ds-paper);
  border: 1px solid var(--ds-line);
  border-radius: 14px;
  padding: 15px;
}
.booking-counts small {
  font-size: 12px;
  color: var(--ds-muted);
}
.booking-counts strong {
  display: block;
  font-size: 28px;
  margin-top: 6px;
}
.booking-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 17px;
}
.booking-filters label:not(.ds-multi-option) {
  font: 680 12px/1.4 var(--ds-font);
  color: var(--ds-muted);
}
.booking-filters input:not([type='checkbox']),
.booking-filters select {
  width: 100%;
  min-height: 43px;
  padding: 11px;
  border: 1px solid var(--ds-line);
  border-radius: 10px;
  background: var(--ds-paper);
  color: var(--ds-ink);
  font: 400 14px/1.4 var(--ds-font);
}
.booking-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 16px;
  font-size: 13px;
}
.booking-shell .request-card {
  border-radius: 19px;
}
.request-stay-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.8fr);
  padding: 15px;
  border-radius: 16px;
  background: var(--ds-dashboard-free);
  margin: 20px 0 16px;
}
.request-stay-part {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 11px 6px 5px;
}
.request-stay-part + .request-stay-part {
  border-left: 1px solid var(--ds-line);
  padding-left: 18px;
}
.request-stay-part .stay-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ds-action-soft);
  color: var(--ds-action);
}
.request-stay-part small {
  display: block;
  font-size: 11px;
  color: var(--ds-muted);
  margin-bottom: 5px;
}
.request-stay-part strong {
  font-size: 15px;
  display: block;
}
.request-stay-part .stay-sub {
  font-size: 12px;
  color: var(--ds-muted);
  margin-top: 4px;
  display: block;
}
/* «Обрано» (booking-extras-v1 v0.3): a full row under the dates and guests, lighter than both, a line per item. */
.request-chosen {
  grid-column: 1 / -1;
  display: grid;
  gap: var(--ds-space-1);
  margin-top: var(--ds-space-2);
  padding: var(--ds-space-3) var(--ds-space-2) 0;
  border-top: 1px solid var(--ds-line);
}
.request-chosen > small {
  color: var(--ds-muted);
  font-size: var(--ds-text-xs);
}
.request-chosen ul {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.request-chosen li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: var(--ds-space-3);
  padding: var(--ds-space-2) 0;
  font-size: var(--ds-text-sm);
}
.request-chosen li + li {
  border-top: 1px solid var(--ds-line);
}
.request-chosen-mark {
  display: grid;
  place-items: center;
  width: var(--ds-space-6);
  height: var(--ds-space-6);
  border-radius: var(--ds-radius-pill);
  background: var(--ds-paper);
  color: var(--ds-muted);
}
.request-chosen-text {
  display: grid;
}
.request-chosen-text small {
  color: var(--ds-muted);
  font-size: var(--ds-text-sm);
}
.request-chosen-amount {
  white-space: nowrap;
}
.request-chosen-amount[data-minus='true'] {
  color: var(--ds-status-booked-ink);
}
.request-chosen-total {
  margin: var(--ds-space-1) 0 0;
  color: var(--ds-muted);
  font-size: var(--ds-text-sm);
}
.request-guest-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0 0;
  border-top: 1px solid var(--ds-line);
  text-decoration: none;
}
.request-guest-link .stay-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ds-action-soft);
  color: var(--ds-action);
  flex-shrink: 0;
}
.request-guest-link strong,
.request-guest-link small {
  display: block;
}
.request-guest-link strong {
  font-size: 15px;
}
.request-guest-link small {
  font-size: 12px;
  margin-top: 4px;
  color: var(--ds-action);
}
.request-guest-link > .ds-icon {
  margin-left: auto;
}
.request-big-price {
  font-size: 38px;
  font-weight: 770;
  letter-spacing: -1.2px;
  margin: 5px 0 18px;
}
.request-money-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  border-top: 1px solid var(--ds-line);
  padding-top: 18px;
}
.request-money-grid small {
  display: block;
  font-size: 12px;
  color: var(--ds-muted);
  margin-bottom: 6px;
}
.request-money-grid strong {
  font-size: 20px;
}
.request-money-grid .received {
  color: var(--ds-accent);
}
.request-payment-progress {
  width: 100%;
  height: 7px;
  accent-color: var(--ds-accent);
  margin-top: 17px;
}
.request-times {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.request-times > div {
  padding: 14px;
  background: var(--ds-dashboard-free);
  border-radius: 11px;
}
.request-times small {
  display: block;
  font-size: 12px;
  color: var(--ds-muted);
  margin-bottom: 7px;
}
.request-guest-summary {
  font-size: 13px;
  color: var(--ds-muted);
  margin: 4px 0 0;
}
.request-section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}
.request-section-heading .ds-icon {
  color: var(--ds-action);
}
@media (max-width: 760px) {
  .booking-counts > div {
    padding: 10px;
  }
  .booking-counts small {
    font-size: 10px;
  }
  .booking-counts strong {
    font-size: 24px;
  }
  .booking-filters {
    grid-template-columns: 1fr;
  }
  .request-stay-summary {
    padding: 11px;
    margin: 15px 0 12px;
  }
  .request-stay-part {
    gap: 7px;
    padding: 5px;
    align-items: flex-start;
  }
  .request-stay-part + .request-stay-part {
    padding-left: 10px;
  }
  .request-stay-part .stay-icon {
    width: 29px;
    height: 29px;
    flex-basis: 29px;
  }
  .request-stay-part .stay-icon .ds-icon {
    width: 16px;
    height: 16px;
  }
  .request-stay-part small {
    font-size: 10px;
  }
  .request-stay-part strong {
    font-size: 12px;
  }
  .request-stay-part .stay-sub {
    font-size: 11px;
  }
  .request-big-price {
    font-size: 32px;
  }
  .request-money-grid strong {
    font-size: 18px;
  }
  .request-guest-link strong {
    font-size: 14px;
  }
  .request-guest-link small {
    font-size: 12px;
    line-height: 1.5;
  }
}
/* Flow02 v1.2 uses the supplied wider content grid. Shared header stays canonical. The bookings list takes the
   width of «Огляд» (.overview-wrap, Vadym 16.11.2026); the request page keeps its two-column grid width. */
.request-shell:not(.booking-shell) .overview-body {
  max-width: 1190px;
}
.request-shell .request-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
}
.request-heading h1 {
  font-size: 35px;
}
.request-card h2 {
  font-size: 19px;
}
.request-property-name {
  font-size: 17px;
  display: block;
  margin-bottom: 4px;
}
.request-big-price {
  overflow-wrap: anywhere;
}
.request-payment-progress::-webkit-progress-bar {
  background: var(--ds-line);
  border-radius: 8px;
}
.request-payment-progress::-webkit-progress-value {
  background: var(--ds-accent);
  border-radius: 8px;
}
.request-payment-progress::-moz-progress-bar {
  background: var(--ds-accent);
  border-radius: 8px;
}
@media (max-width: 760px) {
  .request-shell .request-grid {
    grid-template-columns: 1fr;
  }
  .request-heading h1 {
    font-size: 28px;
  }
  .request-card h2 {
    font-size: 17px;
  }
}
.request-payment-progress {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  border: 0;
  border-radius: 8px;
  background: var(--ds-line);
}

.booking-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.booking-create {
  text-decoration: none;
}
.booking-source {
  color: var(--ds-muted);
  font-size: 12px;
  line-height: 1.5;
}
@media (max-width: 760px) {
  .booking-list-heading {
    align-items: stretch;
    flex-direction: column;
  }
}
.booking-filters > div {
  min-width: 0;
}
.booking-filters .ds-label {
  font: 680 12px/1.4 var(--ds-font);
  color: var(--ds-muted);
}
.booking-filters .ds-select {
  min-height: 44px;
}
.booking-filter-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--ds-muted);
}
.booking-filter-actions .ds-button {
  min-height: 44px;
  font-size: 12px;
}
.booking-filter-actions .ds-button:disabled {
  opacity: 0.45;
  cursor: default;
}

.booking-filter-toggle {
  display: none;
}
.booking-filter-sheet {
  box-sizing: border-box;
  border: 1px solid var(--ds-line);
  background: var(--ds-paper);
  color: var(--ds-ink);
  border-radius: var(--ds-radius-control);
  padding: 0;
  width: min(480px, 100%);
  max-height: 90dvh;
  overflow: auto;
  font: 14px/1.5 var(--ds-font);
}
.booking-filter-sheet::backdrop {
  background: rgb(0 0 0 / 0.35);
}
.booking-filter-sheet header,
.booking-filter-sheet footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  background: var(--ds-paper);
}
.booking-filter-sheet header {
  border-bottom: 1px solid var(--ds-line);
}
.booking-filter-sheet h2 {
  margin: 0;
  font-size: 20px;
}
.booking-filter-sheet header .ds-button {
  min-width: 44px;
  min-height: 44px;
}
.booking-filter-sheet-body {
  display: grid;
  gap: 18px;
  padding: 20px 16px;
}
.booking-filter-sheet footer {
  position: sticky;
  bottom: 0;
  border-top: 1px solid var(--ds-line);
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}
.booking-filter-sheet footer .ds-button {
  min-height: 44px;
}
.booking-filter-sheet [data-apply] {
  flex: 1;
}
.booking-filter-sheet [data-reset]:disabled {
  opacity: 0.45;
}
@media (max-width: 760px) {
  .booking-filters {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    margin-bottom: 8px;
  }
  .booking-filters > [data-filter-slot],
  .booking-filter-actions {
    display: none;
  }
  .booking-filter-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 44px;
    min-height: 44px;
    padding: 8px;
  }
  .booking-filter-toggle > span:first-child {
    font-size: 24px;
    line-height: 1;
  }
  .booking-filter-toggle [data-filter-badge]:not(:empty) {
    background: var(--ds-action);
    color: var(--ds-paper);
    border-radius: 99px;
    min-width: 18px;
    padding: 2px;
    font-size: 11px;
  }
  .booking-filter-sheet {
    position: fixed;
    inset: auto 0 0;
    margin: 0 auto;
    max-width: 100%;
    border-radius: 18px 18px 0 0;
    animation: booking-filter-in var(--ds-motion-fast) ease-out;
  }
}
@keyframes booking-filter-in {
  from {
    transform: translateY(24px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .booking-filter-sheet {
    animation: none;
  }
}

/* One cabin: no «Об’єкт» filter, the other three share the row. */
@media (min-width: 761px) {
  .booking-filters:not(:has([data-filter-slot='scope'])) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Bookings list v0.7 (prototype bookings-list-v1, Vadym 16.11.2026): the tabs, then rows of three columns — the
   guest with the dates, the state badge with its words, the sum. */
.booking-list-heading + .booking-counts + .request-card [data-tabs-slot] {
  margin-top: var(--ds-space-4);
}
/* «Знайдено» and, on «Актуальні», the sort order above the rows. */
.booking-list-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--ds-space-2) var(--ds-space-3);
  margin-top: var(--ds-space-3);
}
.booking-list-bar:not(:has(> p:not(:empty), > [data-sort-slot]:not([hidden]))) {
  display: none;
}
.booking-list-bar .request-help {
  margin: 0;
}
.booking-list-bar [data-sort-slot] {
  display: flex;
  align-items: center;
  gap: var(--ds-space-2);
  min-width: 0;
}
.booking-list-bar [data-sort-slot] .ds-label {
  margin: 0;
  color: var(--ds-muted);
  font-size: var(--ds-text-xs);
}
.booking-shell .ds-tabpanel {
  outline: 0;
}
.booking-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) calc(var(--ds-space-16) * 3.5) calc(var(--ds-space-16) * 1.5) var(--ds-space-6);
  align-items: start;
  gap: var(--ds-space-4);
  width: 100%;
  padding: var(--ds-space-4) 0;
  border-bottom: 1px solid var(--ds-line);
  color: var(--ds-ink);
  text-decoration: none;
}
.booking-row:last-child {
  border: 0;
}
.booking-row > .ds-icon,
.booking-row > svg {
  align-self: center;
  color: var(--ds-muted);
}
.booking-row-main {
  display: grid;
  gap: var(--ds-space-1);
  min-width: 0;
}
.booking-row-main > strong {
  font-size: var(--ds-text-md);
}
.booking-row-dates {
  font-size: var(--ds-text-sm);
  font-weight: var(--ds-weight-semibold);
}
.booking-row-cabin {
  display: flex;
  align-items: center;
  gap: var(--ds-space-2);
  min-width: 0;
  color: var(--ds-muted);
  font-size: var(--ds-text-sm);
}
.booking-row-cabin > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.booking-row .booking-clash {
  display: flex;
}
.booking-row-status {
  display: grid;
  justify-items: start;
  gap: var(--ds-space-1);
}
.booking-row-status small {
  color: var(--ds-muted);
  font-size: var(--ds-text-sm);
}
.booking-row-total {
  font-size: var(--ds-text-md);
  text-align: right;
}
/* What already happened or did not happen reads quieter than what is coming. */
.booking-row:is([data-state='done'], [data-state='cancelled'], [data-state='rejected'])
  :is(.booking-row-main > strong, .booking-row-dates, .booking-row-total) {
  color: var(--ds-muted);
}
.booking-elsewhere {
  margin-top: var(--ds-space-2);
}
/* With the status filter hidden («Минулі»), the other filters share the row. */
@media (min-width: 761px) {
  .booking-filters[data-status-hidden='true']:not(:has([data-filter-slot='scope'])) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .booking-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--ds-space-2) var(--ds-space-3);
  }
  .booking-row-main {
    grid-column: 1 / -1;
  }
  .booking-row-total {
    align-self: end;
  }
  .booking-row > .ds-icon,
  .booking-row > svg {
    display: none;
  }
  .booking-shell .ds-tabs[data-variant='segmented'] > .ds-tablist {
    display: flex;
    width: 100%;
  }
  .booking-shell .ds-tabs[data-variant='segmented'] .ds-tab {
    flex: 1;
    min-width: 0;
    padding-inline: var(--ds-space-1);
    font-size: var(--ds-text-sm);
    white-space: nowrap;
  }
}

/* «⋯» beside a row (hide, delete) and «Повернути» on a hidden one (16.11.2026). The column is kept in every row,
   so the states and sums line up. */
.booking-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--ds-space-2);
  border-bottom: 1px solid var(--ds-line);
}
.booking-item:last-of-type {
  border-bottom: 0;
}
.booking-item > .booking-row {
  flex: 1;
  min-width: 0;
  border: 0;
}
.booking-row-actions {
  display: flex;
  flex: 0 0 var(--ds-space-10);
  justify-content: center;
  width: var(--ds-space-10);
}
.booking-row-actions:has(> .ds-button:not([data-icon-only])) {
  flex-basis: auto;
  width: auto;
}
.booking-item[data-hidden='true'] > .booking-row {
  opacity: 0.6;
}
.booking-hidden-toggle {
  margin-top: var(--ds-space-3);
}
.booking-sheet {
  display: grid;
  gap: var(--ds-space-3);
}
.booking-sheet p {
  margin: 0;
}
.booking-sheet-note {
  color: var(--ds-muted);
  font-size: var(--ds-text-sm);
}
.booking-sheet-error {
  color: var(--ds-danger);
  font-size: var(--ds-text-sm);
}
.booking-sheet-error:empty {
  display: none;
}
@media (max-width: 760px) {
  .booking-row-actions {
    position: absolute;
    top: var(--ds-space-3);
    right: 0;
    width: auto;
  }
  .booking-item > .booking-row .booking-row-main {
    padding-right: var(--ds-space-8);
  }
}
/* «Змінено …» (booking-changed-v1 v0.1): the same lighter full row as «Обрано», under the dates and guests. */
.request-changed {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: var(--ds-space-3);
  margin-top: var(--ds-space-2);
  padding: var(--ds-space-3) var(--ds-space-2) 0;
  border-top: 1px solid var(--ds-line);
  font-size: var(--ds-text-sm);
}
.request-changed .request-chosen-mark .ds-icon {
  width: var(--ds-space-4);
  height: var(--ds-space-4);
}
.request-changed-text {
  display: grid;
  gap: var(--ds-space-1);
}
.request-changed-text small,
.request-changed-text s {
  color: var(--ds-muted);
  font-size: var(--ds-text-sm);
}
.request-changed-link {
  justify-self: start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ds-ink);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.request-change-history {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.request-change-history li {
  display: grid;
  gap: var(--ds-space-1);
  padding: var(--ds-space-3) 0;
  font-size: var(--ds-text-sm);
}
.request-change-history li + li {
  border-top: 1px solid var(--ds-line);
}
.request-change-history small,
.request-change-history s {
  color: var(--ds-muted);
}
