/* Stays list — premium PMS dashboard (extends reports-dashboard.css) */

.stays-list-page {
    --stays-shell-max: 96rem;
}

.stays-list-shell.reports-shell {
    max-width: var(--stays-shell-max);
    gap: 0.875rem;
}

/* KPI cards */
.stays-kpi-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .stays-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .stays-kpi-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.stays-kpi {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid transparent;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
    min-height: 5.5rem;
}

.stays-kpi--blue { background: linear-gradient(145deg, #eff6ff 0%, #f8fbff 100%); border-color: #dbeafe; }
.stays-kpi--green { background: linear-gradient(145deg, #ecfdf5 0%, #f6fef9 100%); border-color: #bbf7d0; }
.stays-kpi--amber { background: linear-gradient(145deg, #fffbeb 0%, #fffdf5 100%); border-color: #fde68a; }
.stays-kpi--red { background: linear-gradient(145deg, #fef2f2 0%, #fff8f8 100%); border-color: #fecaca; }
.stays-kpi--violet { background: linear-gradient(145deg, #f5f3ff 0%, #faf8ff 100%); border-color: #ddd6fe; }
.stays-kpi--slate { background: linear-gradient(145deg, #f8fafc 0%, #fcfcfd 100%); border-color: #e2e8f0; }

.stays-kpi__icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(255 255 255 / 0.75);
    color: #334155;
}

.stays-kpi__icon svg {
    width: 1.125rem;
    height: 1.125rem;
}

.stays-kpi__value {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #0f172a;
}

.stays-kpi__label {
    margin-top: 0.125rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.stays-kpi__hint {
    margin-top: 0.2rem;
    font-size: 0.6875rem;
    color: #94a3b8;
    line-height: 1.3;
}

/* Filter bar */
.stays-filter-card {
    padding: 0.875rem 1rem;
}

.stays-filter__row {
    display: grid;
    gap: 0.625rem 0.75rem;
    align-items: end;
    grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
    .stays-filter__row {
        grid-template-columns: minmax(12rem, 2fr) 9rem 7rem minmax(14rem, 1.4fr) auto auto;
    }
}

.stays-filter__search input {
    min-width: 0;
}

.stays-filter__date-range {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.stays-filter__date-range input {
    flex: 1;
    min-width: 0;
}

.stays-filter__date-sep {
    color: #94a3b8;
    font-size: 0.75rem;
}

.stays-filter__due-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
    padding-bottom: 0.5rem;
    white-space: nowrap;
}

.stays-filter__actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding-bottom: 0.125rem;
}

/* Table card */
.stays-table-card {
    overflow: hidden;
}

.stays-table-card .fi-ta-ctn {
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.stays-table-card .fi-ta-header,
.stays-table-card .fi-ta-header-toolbar,
.stays-table-card .fi-ta-search-field {
    display: none !important;
}

/* Status tabs */
.stays-table-card .fi-sc-tabs,
.stays-table-card .fi-tabs {
    padding: 0.625rem 0.875rem 0;
    border-bottom: 1px solid #e5e7eb;
    background: #fafbfc;
}

.stays-table-card .fi-tabs-item,
.stays-table-card .fi-tabs-tab,
.stays-table-card button[role="tab"] {
    border-radius: 9999px !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    padding: 0.4rem 0.85rem !important;
    color: #64748b !important;
    gap: 0.35rem;
}

.stays-table-card .fi-tabs-item.fi-active,
.stays-table-card .fi-tabs-tab.fi-active,
.stays-table-card button[role="tab"][aria-selected="true"] {
    background: #fff !important;
    color: #1d4ed8 !important;
    box-shadow: 0 1px 3px rgb(15 23 42 / 0.08) !important;
}

.stays-table-card .fi-badge {
    font-size: 0.6875rem !important;
    font-weight: 700 !important;
    padding: 0.1rem 0.4rem !important;
    border-radius: 9999px !important;
    background: #f1f5f9 !important;
    color: #475569 !important;
}

.stays-table-card .fi-tabs-item.fi-active .fi-badge,
.stays-table-card button[role="tab"][aria-selected="true"] .fi-badge {
    background: #dbeafe !important;
    color: #1d4ed8 !important;
}

/* Table body — compact rows */
.stays-table-card .fi-ta-table {
    font-size: 0.8125rem;
}

.stays-table-card .fi-ta-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: #f1f5f9;
    font-size: 0.625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #475569;
    padding: 0.55rem 0.875rem;
    box-shadow: 0 1px 0 #e2e8f0;
}

.stays-table-card .fi-ta-table tbody td {
    padding: 0.5rem 0.875rem;
    vertical-align: middle;
    line-height: 1.35;
}

.stays-table-card .fi-ta-table tbody tr:nth-child(even) td {
    background: #fafbfc;
}

.stays-table-card .fi-ta-table tbody tr:hover td {
    background: #f1f5f9;
}

.stays-table-card .fi-ta-col-wrp {
    gap: 0.1rem;
}

.stays-table-card .fi-ta-text-item,
.stays-table-card .fi-ta-text {
    line-height: 1.35;
}

.stays-table-card .fi-ta-text-description {
    margin-top: 0.1rem;
    line-height: 1.25;
}

/* Guest meta */
.stays-guest-meta {
    font-size: 0.6875rem;
    color: #64748b;
}

.stays-guest-meta__booking {
    color: #94a3b8;
}

/* Stay period cell */
.stays-period-cell {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 11rem;
    max-width: 16rem;
    white-space: nowrap;
}

.stays-period-cell__line,
.stays-period-cell__arrow {
    font-size: 0.75rem;
    color: #334155;
    line-height: 1.3;
}

.stays-period-cell__arrow {
    color: #64748b;
}

.stays-period-cell__nights {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #94a3b8;
    margin-top: 0.1rem;
}

/* Payment cell */
.stays-payment-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    min-width: 5.5rem;
}

.stays-payment-cell__amount {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

.stays-payment-cell__amount--due {
    color: #c2410c;
}

.stays-pay-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.12rem 0.5rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.stays-pay-badge--due {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.stays-pay-badge--paid {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #bbf7d0;
}

/* Row actions */
.stays-table-card .fi-ta-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.25rem;
    justify-content: flex-end;
}

.stays-table-card .fi-ta-actions .fi-ac-btn-action,
.stays-table-card .fi-ta-actions .fi-ac-action {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    padding: 0.3rem 0.55rem !important;
    border-radius: 0.375rem !important;
    border: 1px solid #e2e8f0 !important;
    background: #fff !important;
    white-space: nowrap;
}

.stays-table-card .fi-ta-actions .fi-ac-btn-action:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}

.stays-table-card .fi-ta-actions .fi-ac-btn-action[data-color="primary"],
.stays-table-card .fi-ta-actions a.fi-color-primary {
    border-color: #93c5fd !important;
    background: #eff6ff !important;
    color: #1d4ed8 !important;
}

.stays-list-page .fi-header-subheading {
    max-width: 42rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.stays-list-page .fi-main-ctn {
    padding-inline: 1rem;
}

@media (max-width: 1023px) {
    .stays-filter__actions {
        grid-column: 1 / -1;
    }

    .stays-table-card .fi-ta-ctn {
        overflow-x: auto;
    }

    .stays-period-cell {
        min-width: 9rem;
    }
}
