/* Раздел «Управление проживанием» */

#view-stay { display: flex; height: calc(100vh - 64px); background: #f8fafc; }
.stay-layout { display: flex; width: 100%; height: 100%; }

/* Левая панель */
.stay-list { width: 384px; min-width: 320px; border-right: 1px solid #e2e8f0; background: #fff; display: flex; flex-direction: column; }
.stay-list-head { padding: 16px 16px 8px; }
.stay-list-title { font-size: 16px; font-weight: 700; color: #0f172a; }
.stay-list-count { font-size: 12px; color: #64748b; margin-top: 2px; }
.stay-search { margin: 8px 16px; padding: 9px 12px; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 13px; }
.stay-select { margin: 0 16px 10px; padding: 8px 10px; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 13px; background: #fff; }
.stay-dialogs { flex: 1; overflow-y: auto; padding: 0 10px; }
.stay-dialog { display: flex; gap: 10px; padding: 11px 10px; border-radius: 12px; cursor: pointer; border: 1px solid transparent; }
.stay-dialog:hover { background: #f8fafc; }
.stay-dialog.active { background: #eff6ff; border-color: #bfdbfe; }

/* Есть непрочитанные — выделяем строку, чтобы не потерялась в списке */
.stay-dialog.has-unread { background: #eff6ff; border-color: #bfdbfe; border-left: 3px solid #2563eb; }
.stay-dialog.has-unread .stay-dialog-name { color: #1d4ed8; font-weight: 700; }
.stay-dialog.has-unread .stay-dialog-preview { color: #334155; font-weight: 500; }
.stay-dialog.has-unread:hover { background: #e8f2ff; }

/* Текущие проживания: заезд / проживает / выезд сегодня */
.stay-dialog.is-today { background: #f8fafc; border-left: 3px solid #3b82f6; }
.stay-dialog.is-today.is-checkin { border-left-color: #10b981; }
.stay-dialog.is-today.is-checkout { border-left-color: #f59e0b; }
.stay-dialog.is-today:hover { background: #f1f5f9; }
.stay-dialog.is-today.active { background: #eff6ff; }

.stay-badge-today.checkin { background: #dcfce7; color: #15803d; }
.stay-badge-today.inhouse { background: #dbeafe; color: #1d4ed8; }
.stay-badge-today.checkout { background: #ffedd5; color: #c2410c; }

/* Фильтр «Непрочитанные» */
.stay-unread-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
}
.stay-unread-chip:hover { background: #f8fafc; }
.stay-unread-chip.active { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.stay-unread-dot { width: 7px; height: 7px; border-radius: 50%; background: #2563eb; display: inline-block; }
.stay-unread-chip-count {
    background: #2563eb;
    color: #fff;
    border-radius: 999px;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    padding: 0 5px;
}
.stay-avatar { width: 38px; height: 38px; border-radius: 50%; background: #e2e8f0; color: #475569; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.stay-dialog-body { flex: 1; min-width: 0; }
.stay-dialog-top { display: flex; justify-content: space-between; gap: 8px; }
.stay-dialog-name { font-size: 14px; font-weight: 600; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stay-dialog-time { font-size: 11px; color: #94a3b8; flex-shrink: 0; }
.stay-dialog-sub { font-size: 12px; color: #64748b; margin-top: 1px; }
.stay-dialog-badges { display: flex; gap: 4px; margin-top: 4px; flex-wrap: wrap; align-items: center; }
.stay-step-badge { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 999px; }
.stay-badge { font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 999px; }
.stay-badge.unread { background: #3b82f6; color: #fff; }
.stay-badge.debt { background: #fee2e2; color: #b91c1c; }
.stay-badge.deposit { background: #ede9fe; color: #6d28d9; }
.stay-dialog-preview { font-size: 12px; color: #94a3b8; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stay-pager { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-top: 1px solid #e2e8f0; font-size: 11px; color: #64748b; }
.stay-pager button { border: 1px solid #e2e8f0; background: #fff; border-radius: 8px; padding: 4px 8px; font-size: 11px; cursor: pointer; }
.stay-pager button:disabled { opacity: .4; cursor: default; }

/* Рабочее пространство */
.stay-workspace { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.stay-placeholder { margin: auto; color: #94a3b8; font-size: 14px; }
.stay-ws-head { display: flex; justify-content: space-between; gap: 16px; padding: 16px 20px 10px; flex-wrap: wrap; }
.stay-ws-left h2 { margin: 0; font-size: 19px; color: #0f172a; }
.stay-ws-phone { font-size: 13px; color: #2563eb; cursor: pointer; margin-top: 2px; }
.stay-ws-meta { font-size: 12px; color: #64748b; margin-top: 4px; }

/* Дата и объект — это кнопка «О брони» */
.stay-ws-meta-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    border: 0;
    background: none;
    padding: 0;
    margin: 4px 0 0;
    font: inherit;
    font-size: 12px;
    color: #64748b;
    cursor: pointer;
    text-align: left;
}
.stay-ws-meta-link:hover { color: #2563eb; }
.stay-ws-meta-link .stay-booking-chevron { color: #94a3b8; }
.stay-ws-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Кнопка «О брони» в шапке — открывает карточку как в шахматке */
.stay-booking-card {
    margin-left: auto;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 10px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    white-space: nowrap;
}
.stay-booking-card:hover { background: #f8fafc; border-color: #cbd5e1; }
.stay-booking-chevron { color: #94a3b8; font-size: 15px; line-height: 1; }
.stay-btn { padding: 8px 12px; border-radius: 10px; border: 1px solid #e2e8f0; background: #fff; font-size: 13px; font-weight: 600; cursor: pointer; color: #334155; }
.stay-btn:hover { background: #f8fafc; }
.stay-btn.primary { background: #2563eb; color: #fff; border-color: #2563eb; }
.stay-btn.primary:hover { background: #1d4ed8; }

/* Workflow */
.stay-workflow { display: flex; align-items: center; gap: 4px; padding: 4px 20px 14px; overflow-x: auto; }
.stay-wf-step { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 76px; }
.stay-wf-dot { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: #e2e8f0; color: #94a3b8; }
.stay-wf-step.done .stay-wf-dot { background: #10b981; color: #fff; }
.stay-wf-step.current .stay-wf-dot { background: #3b82f6; color: #fff; box-shadow: 0 0 0 4px rgba(59,130,246,.2); }
.stay-wf-label { font-size: 10px; color: #64748b; text-align: center; }
.stay-wf-line { flex: 1; height: 2px; background: #e2e8f0; min-width: 14px; }
.stay-wf-line.done { background: #10b981; }

/* Табы */
.stay-tabs { display: flex; gap: 4px; padding: 0 20px; border-bottom: 1px solid #e2e8f0; }
.stay-tab { padding: 9px 14px; border: 0; background: none; font-size: 13px; font-weight: 600; color: #64748b; border-bottom: 2px solid transparent; cursor: pointer; }
.stay-tab.active { color: #2563eb; border-bottom-color: #2563eb; }
.stay-tab-content { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; padding: 14px 20px 16px; }

/* Сообщения: переписка скроллится, поле ввода и кнопки — всегда внизу */
.stay-tab-content.tab-messages { overflow: hidden; }
.stay-msgs { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.stay-tab-content.tab-messages .stay-events { overflow-y: auto; min-height: 0; }
.stay-tab-content.tab-messages .stay-composer { flex-shrink: 0; }

/* Прогресс заселения внутри вкладки — не сжимается по высоте */
.stay-tab-content .stay-workflow { flex-shrink: 0; }

/* Бейдж непрочитанных на вкладке «Сообщения» */
.stay-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    margin-left: 6px;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    vertical-align: top;
}

/* Прогресс и кнопки заселения внутри вкладки */
.stay-tab-content .stay-workflow {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 14px 10px;
    margin-bottom: 12px;
    background: #fff;
}
.stay-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }

/* Сообщения */
.msg-filters { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.msg-filter-btn { border-radius: 20px; border: 1px solid #e2e8f0; background: #fff; padding: 5px 11px; font-size: 12px; cursor: pointer; color: #475569; }
.msg-filter-btn.active { background: #3b82f6; color: #fff; border-color: #3b82f6; }
.filter-count { background: rgba(0,0,0,.08); border-radius: 10px; padding: 0 5px; font-size: 10px; }
.stay-events { flex: 1; display: flex; flex-direction: column; gap: 8px; padding-bottom: 12px; }
.ev-row { display: flex; }
.ev-row.right { justify-content: flex-end; }
.ev-in, .ev-out { max-width: 78%; padding: 9px 12px; border-radius: 12px; font-size: 14px; line-height: 1.4; }
.ev-in { background: #f1f5f9; }
.ev-out { background: #2563eb; color: #fff; }
.ev-meta { font-size: 10px; opacity: .65; margin-bottom: 3px; }
.ev-system { align-self: center; background: #fef3c7; color: #92400e; border-radius: 8px; padding: 5px 10px; font-size: 12px; display: flex; gap: 8px; }
.ev-time { opacity: .6; }
.ev-note { background: #f1f5f9; border-left: 3px solid #64748b; padding: 8px 12px; border-radius: 6px; font-size: 13px; }
.ev-note-head { font-size: 10px; color: #64748b; margin-bottom: 3px; text-transform: uppercase; letter-spacing: .04em; }
.ev-housekeeping { background: #ecfdf5; border: 1px solid #bbf7d0; color: #166534; border-radius: 10px; padding: 8px 12px; font-size: 13px; align-self: center; }

/* Композер */
.stay-composer { border-top: 1px solid #e2e8f0; padding-top: 10px; }
.stay-composer-tools { display: flex; gap: 8px; margin-bottom: 8px; }
.stay-composer-tools button { border: 1px solid #e2e8f0; background: #fff; border-radius: 8px; padding: 5px 10px; font-size: 12px; cursor: pointer; color: #475569; }
.stay-composer-row { display: flex; gap: 8px; align-items: flex-end; }
.stay-composer-row textarea { flex: 1; border: 1px solid #e2e8f0; border-radius: 10px; padding: 9px 12px; font-size: 14px; font-family: inherit; resize: none; }
.stay-send { width: 42px; height: 42px; border: 0; border-radius: 10px; background: #2563eb; color: #fff; cursor: pointer; font-size: 16px; }

/* Заселение */
.stay-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.stay-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 14px; }
.stay-card-title { font-size: 13px; font-weight: 700; color: #0f172a; margin-bottom: 10px; }
.stay-card-row { display: flex; justify-content: space-between; font-size: 13px; color: #475569; padding: 5px 0; }
.stay-card-row.debt b { color: #b91c1c; }
.stay-progress { height: 6px; background: #f1f5f9; border-radius: 999px; overflow: hidden; margin-bottom: 10px; }
.stay-progress > div { height: 100%; background: #10b981; }
.stay-code { font-family: ui-monospace, Menlo, monospace; font-size: 26px; font-weight: 700; letter-spacing: .12em; margin: 6px 0 12px; }
.stay-muted { color: #94a3b8; font-size: 13px; }
.stay-empty { color: #94a3b8; font-size: 13px; text-align: center; padding: 24px 0; }

/* Возврат залога: проверка уборки */
.stay-warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: 12px; padding: 10px 12px; font-size: 12px; line-height: 1.45; margin-bottom: 12px; }
.stay-warn b { color: #78350f; }
.stay-ok { background: #ecfdf5; border: 1px solid #bbf7d0; color: #166534; border-radius: 12px; padding: 10px 12px; font-size: 12px; line-height: 1.45; margin-bottom: 12px; }
.stay-hk-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 4px; }
.stay-hk-status { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.stay-hk-status.ok { background: #dcfce7; color: #166534; }
.stay-hk-status.warn { background: #fef3c7; color: #92400e; }
.stay-hk-list { list-style: none; margin: 6px 0 0; padding: 0; font-size: 12px; color: #64748b; }
.stay-hk-list li { padding: 2px 0; }
.stay-hk-list li.done { color: #16a34a; }
.stay-dep-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dashed #e2e8f0; }
.stay-dep-row:last-child { border-bottom: 0; }
.stay-dep-key { font-size: 10px; color: #94a3b8; text-transform: uppercase; letter-spacing: .04em; }
.stay-dep-val { font-size: 13px; font-weight: 600; color: #0f172a; word-break: break-all; }
.stay-copy { border: 1px solid #e2e8f0; background: #fff; border-radius: 8px; padding: 4px 8px; font-size: 11px; cursor: pointer; color: #475569; white-space: nowrap; }
.stay-copy:hover { background: #f8fafc; }

/* Быстрые ответы */
.qr-item { border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; }
.qr-item:hover { background: #f8fafc; border-color: #cbd5e1; }
.qr-title { font-size: 13px; font-weight: 600; color: #0f172a; }
.qr-preview { font-size: 12px; color: #64748b; margin-top: 2px; }

@media (max-width: 640px) {
    .stay-list-head { padding: 12px 12px 6px; }
    .stay-search { margin: 6px 12px; }
    .stay-select { margin: 0 12px 8px; }
    .stay-dialogs { padding: 0 6px; }
    .stay-list { max-height: 46vh; }
    .stay-ws-head { padding: 12px 14px 8px; }
    .stay-ws-left h2 { font-size: 17px; }
    .stay-workflow { padding: 2px 14px 10px; gap: 2px; }

    /* Прогресс заселения на телефоне: сетка в 6 равных колонок,
       кружочки на одном уровне, всё влезает без горизонтального скролла */
    .stay-tab-content .stay-workflow {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(0, 1fr);
        align-items: start;
        gap: 0;
        padding: 8px 2px 6px;
        overflow: visible;
    }
    .stay-tab-content .stay-wf-line { display: none; }
    .stay-tab-content .stay-wf-step { min-width: 0; gap: 3px; }
    .stay-tab-content .stay-wf-dot { width: 20px; height: 20px; font-size: 10px; }
    .stay-tab-content .stay-wf-step.current .stay-wf-dot { box-shadow: 0 0 0 3px rgba(59,130,246,.2); }
    .stay-tab-content .stay-wf-label { font-size: 8px; line-height: 1.1; overflow-wrap: anywhere; }

    .stay-ws-meta-link { font-size: 11px; }
    .stay-booking-card { padding: 6px 8px; font-size: 11px; }

    .stay-wf-step { min-width: 58px; }
    .stay-wf-label { font-size: 9px; }
    .stay-tabs { padding: 0 14px; }
    .stay-tab { padding: 8px 10px; font-size: 12px; }
    .stay-tab-content { padding: 12px 14px 14px; }
    .stay-cards { grid-template-columns: 1fr; }
    .stay-btn { padding: 8px 10px; font-size: 12px; }

    /* Фильтры сообщений — в одну строку */
    .tab-messages .msg-filters { flex-wrap: nowrap; overflow-x: auto; gap: 5px; }
    .tab-messages .msg-filter-btn { padding: 5px 8px; font-size: 11px; white-space: nowrap; flex-shrink: 0; }
}

.stay-back {
    display: none;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.stay-back:hover { background: #f8fafc; border-color: #cbd5e1; }

@media (max-width: 900px) {
    /* Рабочая область ограничена высотой экрана: заголовок + вкладки +
       сообщения, поле ввода всегда внизу без прокрутки страницы */
    #view-guests { height: calc(100vh - 64px); height: calc(100dvh - 64px); }
    #view-guests { height: calc(100vh - 64px); }
    .stay-layout { flex-direction: column; height: 100%; }
    .stay-list { width: 100%; min-width: 0; border-right: 0; border-bottom: 1px solid #e2e8f0; flex: 1; max-height: none; }

    /* На телефоне список и рабочая область — два экрана, как master-detail */
    .stay-workspace { min-height: 0; flex: 1; display: none; }
    #view-guests.stay-mobile-detail .stay-list { display: none; }
    #view-guests.stay-mobile-detail .stay-workspace { display: flex; }
    .stay-back { display: inline-flex; }
    .stay-tab-content { padding-bottom: 20px; }
}

/* Авито в чате */
.stay-avito-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #0369a1; font-weight: 600; cursor: pointer; }
.ev-avito-badge { display: inline-block; font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 6px; background: #e0f2fe; color: #0369a1; }
.ev-avito-sent { color: #0369a1; font-weight: 600; }

/* Контрастная метка «Отправлено в Авито» */
.ev-avito-sent { display: inline-block; font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 5px; background: #dbeafe; color: #1e40af; }

/* Компактная карточка брони в списке чатов */
.stay-dialog { align-items: center; }
.stay-dialog-more { margin-left: auto; flex: 0 0 auto; font-size: 11px; font-weight: 700; padding: 6px 9px; border-radius: 8px; border: 1px solid #e2e8f0; background: #fff; color: #334155; cursor: pointer; white-space: nowrap; }
.stay-dialog-more:hover { background: #f1f5f9; }
.stay-dialog-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Сообщения в «Управлении проживанием» — как в предпросмотре брони */
.stay-chat-row { display: flex; margin-bottom: 8px; }
.stay-chat-row.incoming { justify-content: flex-start; }
.stay-chat-row.outgoing { justify-content: flex-end; }
.stay-chat-bubble { max-width: 85%; border-radius: 14px; padding: 8px 12px; background: #f1f5f9; }
.stay-chat-row.outgoing .stay-chat-bubble { background: #eff6ff; }
.stay-chat-meta { font-size: 10px; color: #94a3b8; margin-bottom: 2px; }
.stay-chat-text { font-size: 13px; color: #334155; white-space: pre-line; word-break: break-word; }

/* Группы проживания */
.stay-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 2px 4px;
    padding: 6px 8px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.stay-group-head b { color: #1e293b; font-size: 12px; }
.stay-badge-today { background: #f1f5f9; color: #475569; }
.stay-badge.problem { background: #fee2e2; color: #b91c1c; }

/* Конфликты дат */
.stay-conflicts { margin: 10px 8px; padding: 8px; border: 1px solid #fecaca; border-radius: 12px; background: #fff7f7; }
.stay-conflicts-head { display:flex; justify-content:space-between; color:#b91c1c; font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.05em; margin-bottom:6px; }
.stay-conflicts-head b { font-size:12px; }
.stay-conflict-card { display:flex; align-items:center; gap:8px; width:100%; padding:7px; border:0; border-radius:9px; background:transparent; text-align:left; cursor:pointer; }
.stay-conflict-card:hover { background:#fee2e2; }
.stay-conflict-icon { display:flex; align-items:center; justify-content:center; width:20px; height:20px; border-radius:50%; background:#dc2626; color:#fff; font-size:12px; font-weight:900; flex-shrink:0; }
.stay-conflict-body { display:flex; flex-direction:column; min-width:0; flex:1; }
.stay-conflict-body b { color:#7f1d1d; font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.stay-conflict-body small { color:#991b1b; font-size:10px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.stay-conflict-opponent { opacity:.75; }
.stay-conflict-chevron { color:#b91c1c; font-size:18px; }
.stay-conflict-panel { border:1px solid #e2e8f0; border-radius:12px; padding:12px; margin-bottom:10px; background:#fff; }
.stay-conflict-panel.pending { border-color:#fcd34d; background:#fffbeb; }
.stay-conflict-panel-title { font-size:13px; color:#334155; margin-bottom:4px; }
.stay-conflict-panel-dates { font-size:11px; color:#64748b; margin-bottom:9px; }
.stay-conflict-keep { width:100%; padding:8px 10px; border:0; border-radius:8px; background:#1e293b; color:#fff; font-size:12px; font-weight:700; cursor:pointer; }
.stay-conflict-keep.pending { background:#d97706; }
.stay-conflict-keep:hover { opacity:.9; }
.stay-conflict-hint { font-size:11px; color:#64748b; margin:2px 0 12px; line-height:1.4; }

.stay-conflict-details { border-top: 1px solid #f1f5f9; margin: 4px 0 10px; padding-top: 6px; }
.stay-conflict-row { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; font-size: 11px; line-height: 1.35; }
.stay-conflict-row span { color: #94a3b8; flex-shrink: 0; }
.stay-conflict-row b { color: #334155; text-align: right; font-weight: 600; word-break: break-word; }
.stay-conflict-row.note { flex-direction: column; gap: 2px; }
.stay-conflict-row.note b { text-align: left; white-space: pre-line; font-weight: 400; color: #475569; }

/* Просьбы и поручения в брони */
.stay-request-row {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 7px 0; border-top: 1px solid #f1f5f9; cursor: pointer;
}
.stay-request-row:first-of-type { border-top: 0; }
.stay-request-row > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.stay-request-row b { font-size: 12px; color: #334155; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stay-request-row span { font-size: 10px; color: #94a3b8; }
.stay-request-row em { font-style: normal; font-size: 11px; font-weight: 700; color: #0f766e; white-space: nowrap; }

/* Список оплат проживания */
.stay-payment-list { margin-top: 10px; border-top: 1px solid #E2E8F0; padding-top: 8px; }
.stay-payment-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px solid #F1F5F9; }
.stay-payment-row > div { min-width: 0; }
.stay-payment-row b { display: block; font-size: 13px; color: #0F172A; }
.stay-payment-row span { display: block; font-size: 10px; color: #64748B; }
.stay-payment-archive { flex-shrink: 0; font-size: 10px; font-weight: 700; color: #64748B; border: 1px solid #E2E8F0; background: #fff; border-radius: 7px; padding: 4px 6px; }
.stay-payment-archive:hover { color: #B91C1C; border-color: #FCA5A5; background: #FEF2F2; }
html[data-theme="dark"] .stay-payment-list { border-color: #334155; }
html[data-theme="dark"] .stay-payment-row { border-color: #1E293B; }
html[data-theme="dark"] .stay-payment-row b { color: #E2E8F0; }
html[data-theme="dark"] .stay-payment-row span { color: #94A3B8; }
html[data-theme="dark"] .stay-payment-archive { background: #1E293B; border-color: #475569; color: #CBD5E1; }

/* Dark theme: compact stay list actions */
html[data-theme="dark"] .stay-dialog-more {
    background: #1e3137;
    border-color: #2a4148;
    color: #eaf1f2;
}
html[data-theme="dark"] .stay-dialog-more:hover {
    background: #2a4148;
    color: #fff;
}