/* Admin dashboard + bookings shell — global (Interactive Server does not use Client scoped CSS) */
/* Home dashboard (.db-*) */
.db {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.25rem 0.15rem 2rem;
    color: #0f172a;
}

.db-loader {
    margin-bottom: 1rem;
    border-radius: 999px;
}

.db-alert {
    margin-bottom: 1rem;
}

/* AI Lead Actions — main dashboard notification (uses db-card base) */
.db-ai-card {
    margin-bottom: 1.35rem;
}

.db-ai-card--attention {
    border-color: #93c5fd;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 60%);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.08), 0 8px 24px rgba(59, 130, 246, 0.1);
}

.db-ai-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem 1rem;
}

.db-ai-card__title-row {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    min-width: 0;
    flex: 1 1 16rem;
}

.db-ai-card__icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 1.2rem;
}

.db-ai-card--attention .db-ai-card__icon {
    background: #2563eb;
    color: #fff;
}

.db-ai-card__lead {
    margin: 0.2rem 0 0;
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.4;
}

.db-ai-card__btns {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 0.85rem;
}

.db-ai-card__breakdown {
    margin: 0 0 0.85rem;
    padding-left: 1.15rem;
    color: #475569;
    font-size: 0.875rem;
    line-height: 1.45;
}

.db-ai-card__warn {
    margin: 0 0 0.85rem;
    display: inline-block;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-size: 0.8rem;
    font-weight: 600;
}

.db-ai-card__metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.65rem;
}

.db-ai-card__metric {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.7rem 0.75rem;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    min-width: 0;
}

.db-ai-card__metric-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    line-height: 1.2;
}

.db-ai-card__metric-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

@media (max-width: 900px) {
    .db-ai-card__metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .db-ai-card__metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Legacy AI Lead Actions selectors (kept for safety) */
.db-ai {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
    gap: 1rem 1.25rem;
    align-items: center;
    margin-bottom: 1.35rem;
    padding: 1rem 1.15rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.db-ai--attention {
    border-color: #93c5fd;
    background: linear-gradient(135deg, #eff6ff 0%, #fff 55%);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.08), 0 8px 24px rgba(59, 130, 246, 0.08);
}

.db-ai__main {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    min-width: 0;
}

.db-ai__icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 1.2rem;
}

.db-ai--attention .db-ai__icon {
    background: #2563eb;
    color: #fff;
}

.db-ai__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.db-ai__lead {
    margin: 0.25rem 0 0;
    color: #334155;
    font-size: 0.925rem;
}

.db-ai__breakdown {
    margin: 0.45rem 0 0;
    padding-left: 1.1rem;
    color: #475569;
    font-size: 0.85rem;
    line-height: 1.45;
}

.db-ai__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.db-ai__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    min-width: 4.5rem;
    padding: 0.45rem 0.6rem;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.db-ai__stat span,
.db-ai__stat-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.db-ai__stat strong,
.db-ai__stat-value {
    display: block;
    margin-top: 0.15rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
}

.db-ai__hint {
    margin: 0.45rem 0 0;
    display: inline-block;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-size: 0.8rem;
    font-weight: 600;
}

.db-ai__actions {
    justify-self: end;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

@media (max-width: 960px) {
    .db-ai {
        grid-template-columns: 1fr;
    }

    .db-ai__actions {
        justify-self: start;
    }
}

/* Hero — main dashboard only (AppDashboard) */
.db-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-bottom: 1.25rem;
}

.db-hero--toolbar {
    gap: 0.75rem;
    margin-bottom: 1rem;
}

@media (min-width: 901px) {
    .db-hero--toolbar .db-hero__actions .tm-dept--dashboard {
        flex: 0 0 auto;
        min-width: 0;
    }
}

.db-hero__title {
    margin: 0;
    font-size: clamp(1.55rem, 2.2vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #0f172a;
}

.db-hero__sub {
    margin: 0.28rem 0 0;
    color: #64748b;
    font-size: 0.95rem;
}

.db-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
}

.db-datechip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    height: 2.55rem;
    padding: 0 0.9rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e6edf5;
    color: #1e293b;
    font-size: 0.9rem;
    font-weight: 650;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.db-datechip i {
    color: #64748b;
    font-size: 0.95rem;
}

.db-date-hit {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 0;
    cursor: pointer;
    font-weight: 650;
    color: #1e293b;
}

.db-date-hit .db-date-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    border: 0;
    padding: 0;
    min-width: 0;
}

.db-date-sep {
    color: #94a3b8;
    font-weight: 600;
    user-select: none;
}

.db-date-all {
    margin-right: 0.35rem;
    padding-right: 0.55rem;
    border-right: 1px solid #e2e8f0;
    color: #0f172a;
    font-weight: 700;
    white-space: nowrap;
}

.db-date-placeholder {
    color: #94a3b8;
    font-weight: 600;
}

.db-date-hit:hover span {
    color: #2563eb;
}

.db-datechip.is-filtered {
    border-color: #93c5fd;
    background: #eff6ff;
}

.db-date-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4rem;
    height: 1.4rem;
    margin-left: 0.2rem;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    cursor: pointer;
}

.db-date-clear i {
    color: inherit;
    font-size: 0.65rem;
}

.db-date-clear:hover {
    background: #bfdbfe;
}

/* Lead / Booking dashboard view switch */
.db-tabbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.15rem;
}

.db-viewtabs {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    height: 2.65rem;
    padding: 0.25rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e6edf5;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.db-viewtab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    height: 100%;
    padding: 0 0.8rem;
    border-radius: 9px;
    color: #334155;
    font-size: 0.86rem;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

.db-viewtab i {
    color: #64748b;
    font-size: 0.9rem;
}

.db-viewtab:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.db-viewtab.is-active {
    background: #1e3a5f;
    color: #fff;
}

.db-viewtab.is-active i {
    color: #fff;
}

/* Lead / Booking dashboard panels */
.db-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.15rem;
}

.db-kpi {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
        "icon label"
        "value value";
    align-items: center;
    column-gap: 0.65rem;
    row-gap: 0.55rem;
    min-width: 0;
    padding: 1rem 1.05rem;
    background: #fff;
    border: 1px solid #e8eef5;
    border-top: 3px solid var(--m-color);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03), 0 10px 28px rgba(15, 23, 42, 0.04);
}

.db-kpi__icon {
    grid-area: icon;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--m-color) 14%, #fff);
    color: var(--m-color);
    font-size: 1rem;
}

.db-kpi__label {
    grid-area: label;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #334155;
}

.db-kpi__value {
    grid-area: value;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.db-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    gap: 1rem;
    align-items: start;
    margin-bottom: 1rem;
}

.db-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.db-table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid #e8eef5;
}

.db-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.db-table thead th {
    padding: 0.6rem 0.75rem;
    background: #1e3a5f;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}

.db-table tbody td {
    padding: 0.55rem 0.75rem;
    border-top: 1px solid #f1f5f9;
    color: #1e293b;
}

.db-table tbody tr:nth-child(even) td {
    background: #f8fafc;
}

.db-table tbody tr:hover td {
    background: #eff6ff;
}

.db-table .is-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.db-table__empty {
    color: #94a3b8;
    text-align: center;
    padding: 1rem 0.75rem !important;
}

@media (max-width: 1100px) {
    .db-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .db-split {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .db-kpis {
        grid-template-columns: 1fr;
    }

    .db-viewtabs {
        width: 100%;
    }

    .db-viewtab {
        flex: 1 1 0;
        justify-content: center;
    }
}

.db-add {
    position: relative;
}

.db-add__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    height: 2.55rem;
    padding: 0 0.95rem;
    border: none;
    border-radius: 12px;
    background: #2979ff;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(41, 121, 255, 0.28);
}

.db-add__btn:hover {
    background: #1c64e0;
}

.db-add__chev {
    font-size: 0.72rem;
    margin-left: 0.1rem;
}

.db-add__backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: transparent;
}

.db-add__menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 50;
    min-width: 11.5rem;
    padding: 6px;
    background: #fff;
    border: 1px solid #e6edf5;
    border-radius: 12px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

.db-add__menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    color: #0f172a;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 650;
}

.db-add__menu a:hover {
    background: #f0fdf4;
    color: #166534;
}

.db-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    border-radius: 12px;
    background: #3b82f6;
    color: #fff !important;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.28);
    transition: background 0.15s ease, transform 0.15s ease;
}

.db-btn-primary:hover {
    background: #2563eb;
    color: #fff !important;
    transform: translateY(-1px);
}

.tm-dept.tm-dept--inline {
    flex-direction: row;
    align-items: center;
}

.tm-dept.tm-dept--inline .tm-dept__trigger {
    min-width: 0;
    min-height: 2.55rem;
    height: 2.55rem;
    padding: 0.3rem 0.7rem 0.3rem 0.4rem;
    border-radius: 12px;
}

/* Department / module selector (dashboard) */
.tm-dept {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.28rem;
    min-width: 0;
    z-index: 30;
}

.tm-dept__backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: transparent;
    cursor: default;
}

.tm-dept__eyebrow {
    margin: 0 0.15rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
}

.tm-dept__trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 13.5rem;
    max-width: 100%;
    min-height: 2.65rem;
    padding: 0.45rem 0.75rem 0.45rem 0.55rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.tm-dept__trigger:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.tm-dept.is-open .tm-dept__trigger,
.tm-dept__trigger:focus-visible {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.tm-dept__trigger-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 9px;
    background: linear-gradient(145deg, #eff6ff, #dbeafe);
    color: #2563eb;
    font-size: 0.95rem;
}

.tm-dept__trigger-text {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}

.tm-dept__trigger-value {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tm-dept__chevron {
    flex: 0 0 auto;
    color: #94a3b8;
    font-size: 0.78rem;
    transition: transform 0.18s ease;
}

.tm-dept.is-open .tm-dept__chevron {
    transform: rotate(180deg);
}

.tm-dept__menu {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    right: 0;
    min-width: 15.5rem;
    max-height: min(22rem, 70vh);
    overflow-y: auto;
    padding: 0.4rem;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.04);
    z-index: 41;
    animation: tm-dept-in 0.14s ease-out;
}

@keyframes tm-dept-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tm-dept__option {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    margin: 0;
    padding: 0.55rem 0.6rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #334155;
    text-align: left;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
}

.tm-dept__option:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.tm-dept__option.is-active {
    background: #eff6ff;
    color: #1d4ed8;
}

.tm-dept__option-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 8px;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.9rem;
}

.tm-dept__option.is-active .tm-dept__option-icon {
    background: #dbeafe;
    color: #2563eb;
}

.tm-dept__option-label {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
}

.tm-dept__option-check {
    flex: 0 0 auto;
    color: #2563eb;
    font-size: 1rem;
}

@media (max-width: 900px) {
    .tm-dept--dashboard {
        flex: 1 1 12rem;
        min-width: 11rem;
    }

    .tm-dept__trigger {
        min-width: 0;
        width: 100%;
    }

    .tm-dept__menu {
        right: 0;
        left: 0;
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .tm-dept--dashboard {
        flex: 1 1 100%;
        width: 100%;
        order: -1;
    }

    .tm-dept__trigger {
        min-height: 2.85rem;
    }

    .tm-dept__menu {
        max-height: min(18rem, 55vh);
    }
}

/* Metric cards */
.db-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.15rem;
}

.db-metric {
    position: relative;
    background: #fff;
    border: 1px solid #e8eef5;
    border-radius: 16px;
    padding: 1rem 1.05rem 0.65rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03), 0 10px 28px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    min-width: 0;
}

.db-metric__top {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.7rem;
}

.db-metric__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--m-color) 14%, #fff);
    color: var(--m-color);
    font-size: 1rem;
}

.db-metric__menu {
    margin-left: auto;
    color: #94a3b8;
    font-size: 1.1rem;
    line-height: 1;
    letter-spacing: 0.05em;
}

.db-metric__label {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #334155;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.db-metric__value {
    display: block;
    margin-top: 0.1rem;
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
    line-height: 1.1;
}

.db-metric__trend {
    margin-top: 0.35rem;
}

.db-metric__delta {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
}

.db-metric__delta.is-up {
    color: #16a34a;
}

.db-spark {
    display: block;
    width: calc(100% + 2.1rem);
    height: 36px;
    margin: 0.55rem -1.05rem -0.65rem;
}

.db-spark__line {
    fill: none;
    stroke: var(--m-color);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.db-spark__area {
    fill: color-mix(in srgb, var(--m-color) 16%, transparent);
    stroke: none;
}

/* Cards / grid */
.db-main,
.db-lower {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

.db-main {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.db-lower {
    grid-template-columns: 1.4fr 1fr;
}

.db-card {
    background: #fff;
    border: 1px solid #e8eef5;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03), 0 10px 28px rgba(15, 23, 42, 0.04);
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.db-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.15rem 0.35rem;
}

.db-card__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 750;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.db-card__link {
    font-size: 0.85rem;
    font-weight: 650;
    color: #3b82f6;
    text-decoration: none;
    white-space: nowrap;
}

.db-card__link:hover {
    text-decoration: underline;
}

.db-card__body {
    padding: 0.65rem 1.15rem 1.15rem;
    flex: 1 1 auto;
}

.db-card__body--scroll {
    max-height: 340px;
    overflow-y: auto;
}

.db-card__body--chart {
    position: relative;
}

.db-empty {
    margin: 0.5rem 0 0;
    color: #94a3b8;
    font-size: 0.9rem;
}

.db-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 180px;
    color: #94a3b8;
    text-align: center;
}

.db-empty-state i {
    font-size: 1.75rem;
    color: #cbd5e1;
}

.db-empty-state p {
    margin: 0;
    font-size: 0.92rem;
}

/* Pipeline */
.db-pipe {
    list-style: none;
    margin: 0;
    padding: 0.25rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.db-pipe__row {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "meta pct"
        "track track";
    gap: 0.25rem 0.65rem;
    align-items: center;
}

.db-pipe__meta {
    grid-area: meta;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
}

.db-pipe__label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
}

.db-pipe__count {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
}

.db-pipe__track {
    grid-area: track;
    height: 8px;
    border-radius: 999px;
    background: #f1f5f9;
    overflow: hidden;
}

.db-pipe__fill {
    height: 100%;
    border-radius: 999px;
    min-width: 0;
    transition: width 0.35s ease;
}

.db-pipe__pct {
    grid-area: pct;
    font-size: 0.8rem;
    font-weight: 650;
    color: #64748b;
    text-align: right;
}

/* Donut + legend */
.db-donut-wrap {
    position: relative;
}

.db-donut-center {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

.db-donut-center strong {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.db-donut-center span {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 600;
}

.db-legend {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.db-legend li {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.55rem;
    align-items: center;
    font-size: 0.86rem;
}

.db-legend__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.db-legend__name {
    color: #475569;
    font-weight: 550;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.db-legend__pct {
    color: #0f172a;
    font-weight: 700;
}

/* Activity feed */
.db-feed {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.db-feed__item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.7rem;
    align-items: start;
    padding: 0.65rem 0.15rem;
    border-bottom: 1px solid #f1f5f9;
}

.db-feed__item:last-child {
    border-bottom: 0;
}

.db-feed__avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.db-feed__avatar.is-info {
    background: #dcfce7;
    color: #16a34a;
}

.db-feed__avatar.is-success {
    background: #dbeafe;
    color: #2563eb;
}

.db-feed__title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
}

.db-feed__desc {
    margin: 0.15rem 0 0;
    font-size: 0.8rem;
    color: #64748b;
}

.db-feed__time {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 600;
    white-space: nowrap;
}

/* Tasks */
.db-tasks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.db-tasks__item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.7rem 0.75rem;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
}

.db-tasks__badge {
    flex: 0 0 auto;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: #fef3c7;
    color: #b45309;
}

.db-tasks__text {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.4;
}

@media (max-width: 1100px) {
    .db-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .db-main {
        grid-template-columns: 1fr 1fr;
    }

    .db-main .db-card:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .db-metrics,
    .db-main,
    .db-lower {
        grid-template-columns: 1fr;
    }

    .db-main .db-card:last-child {
        grid-column: auto;
    }

    .db-hero__title {
        font-size: 1.35rem;
    }
}

/* â”€â”€ Admin Bookings â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.bk {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    padding: 0.5rem 0.25rem 2rem;
    min-width: 0;
    box-sizing: border-box;
}

.bk .bi {
    font-size: 1rem !important;
    line-height: 1;
    vertical-align: middle;
}

.bk-shell {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04), 0 16px 48px rgba(15, 23, 42, 0.07);
    /* Do not clip horizontal scroll inside table bodies */
    overflow: visible;
}

.bk-shell__body {
    padding: 0 1.5rem 1.5rem;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.bk-shell__foot {
    padding: 0.85rem 0 0.25rem;
    border-top: 1px solid #eef2f7;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: #64748b;
}

.bk-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.bk-pagination__summary strong {
    color: #0f172a;
}

.bk-pagination__controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.bk-pagination__page {
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    padding: 0 0.35rem;
    white-space: nowrap;
}

.bk-select-wrap--pager {
    width: auto;
    min-width: 7.5rem;
}

.bk-select--pager {
    height: 36px;
    min-height: 36px;
    max-height: 36px;
    line-height: 36px;
    font-size: 0.82rem;
    padding-left: 0.65rem;
}

.bk-header {
    margin-bottom: 0;
    padding-top: 0.35rem;
}

.bk-header--inset {
    padding: 1.35rem 1.5rem 1.15rem;
    border-bottom: 1px solid #eef2f7;
    background: linear-gradient(180deg, #fafbfd 0%, #fff 100%);
    border-radius: 18px 18px 0 0;
}

.bk-header--with-action {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.bk-header--detail {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.bk-header__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.bk-header__title {
    margin: 0;
    font-size: clamp(1.45rem, 2.5vw, 1.85rem);
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.bk-header__sub {
    margin: 0.45rem 0 0;
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.45;
}

.bk-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.65rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}

.bk-back:hover {
    text-decoration: underline;
}

.bk-panel {
    background: #f8fafc;
    border: 1px solid #e8eef5;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.bk-panel--highlight {
    background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
    border-color: #bfdbfe;
}

.bk-panel__head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.15rem;
    border-bottom: 1px solid #e8eef5;
    background: #fff;
}

.bk-panel__icon {
    flex-shrink: 0;
    width: 2.35rem;
    height: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    color: #2563eb;
    font-size: 1.05rem;
}

.bk-panel__icon .bi {
    font-size: 1.05rem !important;
    line-height: 1;
}

.bk-panel__icon--accent {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: #fff;
}

.bk-panel__head h2 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.bk-panel__body {
    padding: 1.1rem 1.15rem 1.15rem;
}

.bk-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.bk-card--section {
    margin-bottom: 1rem;
}

.bk-card--summary {
    margin-bottom: 1rem;
    border-color: #bfdbfe;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.08);
}

.bk-card__head {
    padding: 0.95rem 1.25rem;
    border-bottom: 1px solid #eef2f7;
    background: linear-gradient(180deg, #fafbfd 0%, #fff 100%);
}

.bk-card__head h2 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bk-card__head h2 i {
    color: #2563eb;
    font-size: 1rem;
}

.bk-card__body {
    padding: 1.15rem 1.25rem 1.25rem;
}

.bk-card__foot {
    padding: 0.85rem 1.25rem;
    border-top: 1px solid #eef2f7;
    background: #fafbfd;
    font-size: 0.85rem;
    color: #64748b;
}

.bk-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eef2f7;
    background: #fff;
    align-items: center;
}

.bk-toolbar__search {
    flex: 1 1 220px;
    position: relative;
    min-width: 0;
}

.bk-toolbar__search i {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.bk-toolbar__search .bk-input {
    padding-left: 2.35rem;
}

.bk-select-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.bk-select-wrap--toolbar {
    min-width: 170px;
    max-width: 200px;
}

.bk-select-wrap--full,
.bk-field .bk-select-wrap {
    display: flex;
    width: 100%;
}

.bk-select-wrap__chevron {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #64748b;
    font-size: 0.85rem !important;
}

.bk-input,
.bk-select {
    width: 100%;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 0 0.85rem;
    font: inherit;
    font-size: 0.9rem;
    color: #0f172a;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bk-input {
    height: 42px;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.bk-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    height: 42px;
    min-height: 42px;
    max-height: 42px;
    line-height: 42px;
    padding-right: 2.35rem;
    cursor: pointer;
}

.bk-select option {
    color: #0f172a;
    background: #fff;
}

.bk-input--area {
    height: auto;
    min-height: 88px;
    max-height: none;
    line-height: 1.45;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    resize: vertical;
}

.bk-input:focus,
.bk-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.bk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 1.1rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}

.bk-btn--primary {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.bk-btn--primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
}

.bk-btn--outline {
    background: #fff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.bk-btn--outline:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

.bk-btn--sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.82rem;
}

.bk-btn--block {
    width: 100%;
}

.bk-toolbar .bk-btn {
    height: 42px;
    flex-shrink: 0;
}

.bk-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

/* Shared horizontal scroll host for MudBlazor + HTML tables */
.bk-table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

.bk-table-wrap--flush .bk-table thead th:first-child,
.bk-table-wrap--flush .bk-table tbody td:first-child {
    padding-left: 1.25rem;
}

.bk-table-wrap--flush .bk-table thead th:last-child,
.bk-table-wrap--flush .bk-table tbody td:last-child {
    padding-right: 1.25rem;
}

.bk-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.bk-table thead th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.bk-table tbody td {
    padding: 0.95rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.bk-table tbody tr:hover {
    background: #f8fafc;
}

.bk-table tbody tr:last-child td {
    border-bottom: 0;
}

.bk-table--compact thead th,
.bk-table--compact tbody td {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
}

.bk-table__primary {
    display: block;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
}

.bk-table__secondary {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.35;
}

.bk-table__ref {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.82rem;
    font-weight: 600;
    color: #2563eb;
}

.bk-table__link {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
}

.bk-table__link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.bk-table__money {
    font-weight: 600;
}

.bk-table__money--paid {
    color: #15803d;
}

.bk-table__money--pending {
    color: #b45309;
}

.bk-table__money-sep {
    margin: 0 0.25rem;
    color: #cbd5e1;
}

.bk-table__actions {
    text-align: right;
    white-space: nowrap;
}

.bk-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.bk-badge--lg {
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
}

.bk-badge--muted {
    background: #f1f5f9;
    color: #475569;
}

.bk-badge--neutral {
    background: #e2e8f0;
    color: #334155;
}

.bk-badge--warning {
    background: #fef3c7;
    color: #b45309;
}

.bk-badge--info {
    background: #dbeafe;
    color: #1d4ed8;
}

.bk-badge--success {
    background: #dcfce7;
    color: #15803d;
}

.bk-badge--danger {
    background: #fee2e2;
    color: #b91c1c;
}

.bk-badge--purple {
    background: #ede9fe;
    color: #6d28d9;
}

.bk-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 3rem 1.5rem;
    color: #64748b;
}

.bk-spinner {
    width: 2rem;
    height: 2rem;
    border: 3px solid #e2e8f0;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: bk-spin 0.7s linear infinite;
}

@keyframes bk-spin {
    to { transform: rotate(360deg); }
}

.bk-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 3rem 1.5rem;
    text-align: center;
    color: #64748b;
}

.bk-empty i {
    font-size: 2rem;
    color: #cbd5e1;
    margin-bottom: 0.35rem;
}

.bk-empty p {
    margin: 0;
    font-weight: 600;
    color: #334155;
}

.bk-empty span {
    font-size: 0.88rem;
}

.bk-alert {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 0.92rem;
}

.bk-alert--warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.bk-alert--danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    margin-bottom: 1rem;
}

.bk-alert--success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
    margin-bottom: 1rem;
}

.bk-empty .bk-btn {
    margin-top: 0.85rem;
}

.bk-empty--compact {
    padding: 2rem 1rem;
    margin-top: 0.5rem;
}

.bk-empty--compact i {
    font-size: 1.75rem !important;
}

.bk-tenant-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.bk-tenant-grid__full {
    grid-column: 1 / -1;
}

.bk-info-grid--compact {
    margin-bottom: 0.25rem;
}

.bk-info--wide {
    grid-column: 1 / -1;
}

.bk-form--divider {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eef2f7;
}

.bk-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
    margin-bottom: 1.25rem;
}

.bk-form-row .bk-field {
    flex: 1 1 240px;
    min-width: 0;
}

.bk-form-row > .bk-btn {
    height: 42px;
    margin-bottom: 0;
}

.bk-btn--danger-outline {
    background: #fff;
    color: #dc2626;
    border-color: #fecaca;
}

.bk-btn--danger-outline:hover:not(:disabled) {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fca5a5;
}

.bk-btn--danger-outline:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.bk-header__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
}

.bk-form-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.65rem;
    margin-top: 0.35rem;
    padding-top: 0.25rem;
}

.bk-alert--info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font-size: 0.875rem;
    line-height: 1.45;
}

.bk-photo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
}

.bk-photo__avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px #e2e8f0, 0 6px 16px rgba(15, 23, 42, 0.08);
    background: #f8fafc;
}

.bk-photo__placeholder {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #eff6ff;
    color: #2563eb;
    font-size: 1.75rem;
    border: 1px dashed #93c5fd;
}

.bk-photo .bk-input {
    height: auto;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
    font-size: 0.82rem;
}

/* Bootstrap / Mud controls inside booking shell â€” match rounded inputs */
.bk .form-control,
.bk .form-select,
.bk-shell .form-control,
.bk-shell .form-select {
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    min-height: 42px;
    font-size: 0.9rem;
    color: #0f172a;
}

.bk .form-control:focus,
.bk .form-select:focus,
.bk-shell .form-control:focus,
.bk-shell .form-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.bk .mud-table,
.bk-shell .mud-table {
    background: transparent;
    box-shadow: none !important;
    width: 100%;
    max-width: 100%;
}

.bk .mud-table-container,
.bk-shell .mud-table-container {
    border-radius: 12px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch;
}

/* Force a usable column width so extra columns scroll instead of squashing/clipping */
.bk .mud-table table,
.bk-shell .mud-table table,
.bk .mud-table-root,
.bk-shell .mud-table-root {
    width: max-content;
    min-width: 100%;
    table-layout: auto;
}

.bk .mud-table th,
.bk-shell .mud-table th,
.bk .mud-table td,
.bk-shell .mud-table td {
    white-space: nowrap;
    vertical-align: middle;
}

.bk .mud-table th,
.bk-shell .mud-table th {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b !important;
}

/* Lead / primary label columns may wrap slightly */
.bk .mud-table td .bk-table__primary,
.bk-shell .mud-table td .bk-table__primary {
    white-space: normal;
    max-width: 16rem;
}

.leads-table .mud-table th:first-child,
.leads-table .mud-table td:first-child,
.packages-table .mud-table th:first-child,
.packages-table .mud-table td:first-child {
    min-width: 12rem;
    max-width: 18rem;
    white-space: normal;
}

.leads-table .mud-table th,
.leads-table .mud-table td,
.packages-table .mud-table th,
.packages-table .mud-table td {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.bk .mud-button-filled,
.bk-shell .mud-button-filled {
    border-radius: 10px !important;
}

.bk-spinner--sm {
    width: 0.95rem;
    height: 0.95rem;
    border-width: 2px;
}

/* Multi-color / gradient company brand name */
.brand-name__seg {
    display: inline;
}

.brand-name__seg--gradient {
    background-image: linear-gradient(180deg, var(--bn-c1, #ff8a00) 0%, var(--bn-c2, #ffd54a) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

.bk-muted {
    margin: 0;
    color: #64748b;
    font-size: 0.92rem;
}

.bk-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 1.15rem;
    align-items: start;
}

.bk-layout__main {
    min-width: 0;
}

.bk-layout__aside {
    min-width: 0;
    position: sticky;
    top: 1rem;
}

.bk-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.bk-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.85rem 1rem;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 12px;
}

.bk-info__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
}

.bk-info__value {
    font-size: 0.92rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
    word-break: break-word;
}

.bk-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bk-list__item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}

.bk-list__item:last-child {
    border-bottom: 0;
}

.bk-list__avatar {
    flex-shrink: 0;
    width: 2.35rem;
    height: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    color: #2563eb;
    border-radius: 10px;
}

.bk-list__avatar .bi {
    font-size: 1rem !important;
    line-height: 1;
}

.bk-list__content {
    min-width: 0;
}

.bk-list__content strong {
    display: block;
    font-size: 0.92rem;
    color: #0f172a;
    line-height: 1.35;
}

.bk-list__content span {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.35;
}

.bk-list__item strong {
    display: block;
    font-size: 0.92rem;
    color: #0f172a;
}

.bk-list__item span {
    display: block;
    margin-top: 0.1rem;
    font-size: 0.82rem;
    color: #64748b;
}

.bk-timeline {
    list-style: none;
    margin: 0;
    padding: 1rem 1.25rem 1.25rem;
}

.bk-timeline__item {
    display: flex;
    gap: 0.85rem;
    padding-bottom: 1.1rem;
    position: relative;
}

.bk-timeline__item:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 0.45rem;
    top: 1.1rem;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}

.bk-timeline__dot {
    flex-shrink: 0;
    width: 0.95rem;
    height: 0.95rem;
    margin-top: 0.2rem;
    border-radius: 50%;
    background: #2563eb;
    box-shadow: 0 0 0 4px #dbeafe;
}

.bk-timeline__body {
    min-width: 0;
}

.bk-timeline__body time {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bk-timeline__body p {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.45;
}

.bk-timeline__body p strong {
    color: #0f172a;
}

.bk-timeline__arrow {
    font-size: 1.1rem !important;
    color: #94a3b8;
    vertical-align: middle;
    margin: 0 0.1rem;
}

.bk-timeline__note {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.45;
}

.bk-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0;
    font-size: 0.92rem;
    color: #475569;
}

.bk-summary-row + .bk-summary-row {
    border-top: 1px dashed #e2e8f0;
}

.bk-summary-row strong {
    font-size: 1rem;
    color: #0f172a;
}

.bk-summary-row--success strong {
    color: #15803d;
}

.bk-summary-row--danger strong {
    color: #b91c1c;
    font-size: 1.1rem;
}

.bk-summary-row--muted {
    font-size: 0.85rem;
    color: #64748b;
}

.bk-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.bk-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.bk-field > span {
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
}

.bk-field-hint {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 500;
    color: #94a3b8;
    line-height: 1.35;
}

.bk-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
    gap: 0.45rem;
}

.bk-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0.55rem 0.65rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    font-size: 0.84rem;
    font-weight: 600;
    color: #334155;
    transition: border-color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}

.bk-check:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.bk-check:has(input:checked) {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.bk-check input {
    width: 1rem;
    height: 1rem;
    accent-color: #2563eb;
    flex: 0 0 auto;
}

.bk-check span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.bk-check i {
    font-size: 0.9rem;
    opacity: 0.85;
}

@media (max-width: 640px) {
    .bk-check-grid {
        grid-template-columns: 1fr;
    }
}

.bk-link-result {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
}

.bk-link-result span {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #15803d;
    margin-bottom: 0.25rem;
}

.bk-link-result a {
    font-size: 0.82rem;
    word-break: break-all;
}

.bk-code {
    font-size: 0.78rem;
    color: #475569;
    background: #f1f5f9;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

@media (max-width: 991px) {
    .bk-layout {
        grid-template-columns: 1fr;
    }

    .bk-layout__aside {
        position: static;
    }

    .bk-tenant-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .bk {
        padding: 0.25rem 0.15rem 1.5rem;
    }

    .bk-shell__body {
        padding: 0 1rem 1rem;
    }

    .bk-header--inset {
        padding: 1.1rem 1rem 1rem;
    }

    .bk-toolbar {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
    }

    .bk-select-wrap--toolbar {
        min-width: 0;
        max-width: none;
        width: 100%;
    }

    .bk-info-grid {
        grid-template-columns: 1fr;
    }

    .bk-header--detail {
        flex-direction: column;
    }

    .bk-pagination {
        flex-direction: column;
        align-items: stretch;
    }

    .bk-pagination__controls {
        justify-content: space-between;
    }

    .bk-table--tenants thead {
        display: none;
    }

    .bk-table--tenants tbody tr {
        display: block;
        border: 1px solid #e8eef5;
        border-radius: 12px;
        margin-bottom: 0.75rem;
        padding: 0.35rem 0;
        background: #fff;
    }

    .bk-table--tenants tbody td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0.55rem 1rem;
        border: none;
        border-bottom: 1px solid #f1f5f9;
    }

    .bk-table--tenants tbody td:last-child {
        border-bottom: none;
        justify-content: flex-end;
        padding-top: 0.65rem;
    }

    .bk-table--tenants tbody td::before {
        content: attr(data-label);
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: #94a3b8;
        flex-shrink: 0;
    }

    .bk-table--tenants tbody td[data-label=""]::before {
        content: none;
    }

    .bk-table--domains thead {
        display: none;
    }

    .bk-table--domains tbody tr {
        display: block;
        border: 1px solid #e8eef5;
        border-radius: 12px;
        margin-bottom: 0.75rem;
        padding: 0.35rem 0;
        background: #fff;
    }

    .bk-table--domains tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.75rem;
        padding: 0.55rem 1rem;
        border: none;
        border-bottom: 1px solid #f1f5f9;
    }

    .bk-table--domains tbody td:last-child {
        border-bottom: none;
        justify-content: flex-end;
    }

    .bk-table--domains tbody td::before {
        content: attr(data-label);
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: #94a3b8;
    }

    .bk-table--domains tbody td[data-label=""]::before {
        content: none;
    }

    .bk-table--payments thead {
        display: none;
    }

    .bk-table--payments tbody tr {
        display: block;
        border: 1px solid #e8eef5;
        border-radius: 12px;
        margin-bottom: 0.75rem;
        padding: 0.35rem 0;
        background: #fff;
    }

    .bk-table--payments tbody td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0.55rem 1rem;
        border: none;
        border-bottom: 1px solid #f1f5f9;
    }

    .bk-table--payments tbody td:last-child {
        border-bottom: none;
        justify-content: flex-end;
        padding-top: 0.65rem;
    }

    .bk-table--payments tbody td::before {
        content: attr(data-label);
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: #94a3b8;
        flex-shrink: 0;
        padding-top: 0.1rem;
    }

    .bk-table--payments tbody td[data-label=""]::before {
        content: none;
    }

    .bk-form-row {
        flex-direction: column;
        align-items: stretch;
    }

    .bk-form-row > .bk-btn {
        width: 100%;
    }
}

/* Subscription lock / renew experience */
.sub-lock__body {
    max-width: 720px;
    margin: 0 auto;
}

.sub-lock__grid {
    display: grid;
    gap: 1rem;
}

.sub-lock__card {
    border-radius: 16px;
}

.sub-lock__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 1.75rem;
}

.sub-lock__icon--warn {
    background: #fff7ed;
    color: #c2410c;
}

.sub-lock__icon--success {
    background: #ecfdf5;
    color: #059669;
}

.sub-lock__icon--danger {
    background: #fef2f2;
    color: #dc2626;
}

.sub-lock__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.25rem;
}

.sub-lock__desc {
    margin: 1.25rem 0;
}

.sub-lock__renew-form {
    display: grid;
    gap: 0.85rem;
    margin-top: 0.5rem;
}

.sub-lock__quote {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.9rem 1rem;
    background: #f8fafc;
}

.sub-lock__quote-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.35rem;
}

.sub-lock__quote-row--success {
    color: #059669;
}

.sub-lock__quote-row--total {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e2e8f0;
    font-size: 1.05rem;
}

.sub-lock__safe {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-top: 1.25rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: #eff6ff;
    color: #1e3a5f;
}

.sub-lock__safe i {
    font-size: 1.25rem;
    color: #2563eb;
    margin-top: 0.15rem;
}

.sub-lock__safe p {
    margin: 0.2rem 0 0;
    font-size: 0.92rem;
    color: #475569;
}

.sub-lock__quick {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.92rem;
}

.sub-lock__quick a {
    color: #2563eb;
    text-decoration: none;
}

.sub-lock__quick a:hover {
    text-decoration: underline;
}

.sub-lock__success-grid {
    text-align: left;
    margin: 1.25rem auto;
    max-width: 420px;
}

.bk-btn--block {
    width: 100%;
    justify-content: center;
}

.bk-grace-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: #fff7ed;
    border: 1px solid #fdba74;
    color: #9a3412;
}

.bk-grace-banner__text {
    margin: 0;
    flex: 1 1 240px;
    font-size: 0.95rem;
}

.bk-grace-banner__text strong {
    display: block;
    margin-bottom: 0.15rem;
}

.bk-grace-banner--readonly {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1e3a8a;
}

.tm-nav__link--locked,
.tm-nav__group-btn--locked {
    opacity: 0.55;
    cursor: not-allowed !important;
    pointer-events: none;
}

/* Expired plan: locked look, but click still opens the payment page. */
a.tm-nav__link--locked {
    pointer-events: auto;
    cursor: pointer !important;
}

.tm-nav__lock {
    margin-left: auto;
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Operations bookings dashboard */
.bk-ops { display: grid; gap: 1rem; }
.bk-ops__kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.85rem; }
.bk-ops__kpi { background: #fff; border: 1px solid #e6edf5; border-radius: 16px; padding: 1rem 1.1rem; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04); }
.bk-ops__kpi span { display: block; color: #64748b; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.bk-ops__kpi strong { display: block; margin-top: 0.35rem; font-size: 1.55rem; color: #0f172a; letter-spacing: -0.02em; }
.bk-ops__kpi small { color: #94a3b8; font-size: 0.78rem; }
.bk-ops__panel { background: #fff; border: 1px solid #e6edf5; border-radius: 16px; padding: 1rem 1.1rem 1.15rem; }
.bk-ops__panel h2 { margin: 0; font-size: 1rem; font-weight: 800; color: #0f172a; }
.bk-ops__panel > p { margin: 0.2rem 0 0.85rem; color: #64748b; font-size: 0.84rem; }
.bk-ops__panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.85rem; }
.bk-ops__panel-head p { margin: 0.2rem 0 0; color: #64748b; font-size: 0.84rem; }
.bk-ops__import { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.bk-ops__import-btn { position: relative; overflow: hidden; cursor: pointer; margin: 0; }
.bk-ops__import-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.bk-ops__import-btn.is-busy { opacity: 0.7; pointer-events: none; }
.bk-ops__import-result { border-radius: 12px; padding: 0.7rem 0.9rem; margin-bottom: 0.85rem; font-size: 0.84rem; }
.bk-ops__import-result.is-ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.bk-ops__import-result.is-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.bk-ops__import-result ul { margin: 0.4rem 0 0; padding-left: 1.1rem; max-height: 180px; overflow: auto; }
.bk-ops__import-result-head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.bk-ops__import-close { background: none; border: 0; font-size: 1.2rem; line-height: 1; color: inherit; cursor: pointer; }
.bk-ops__imported { display: inline-block; margin-left: 0.35rem; padding: 0.05rem 0.45rem; border-radius: 999px; background: #f1f5f9; color: #475569; font-size: 0.68rem; font-weight: 700; vertical-align: middle; }
.bk-ops__filters { display: grid; grid-template-columns: 160px 160px minmax(180px, 1fr) auto; gap: 0.75rem; align-items: end; }
.bk-ops__filters--quick { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 0.85rem; padding-top: 0.85rem; border-top: 1px solid #eef2f7; }
.bk-ops__filters label { display: grid; gap: 0.3rem; font-size: 0.78rem; font-weight: 700; color: #475569; }
.bk-ops__filter-actions { display: flex; gap: 0.45rem; }
.bk-ops__table-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.bk-ops__table-head span { color: #64748b; font-size: 0.82rem; }
.bk-ops__pin { color: #0284c7; margin-right: 0.2rem; }
.bk-ops__status { display: inline-flex; padding: 0.18rem 0.65rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.bk-ops__status.is-new { background: #ffe4e6; color: #be123c; }
.bk-ops__status.is-progress { background: #dbeafe; color: #1d4ed8; }
.bk-ops__status.is-done { background: #dcfce7; color: #15803d; }
.bk-ops__status.is-cancelled { background: #f1f5f9; color: #64748b; }
.bk-ops__actions { display: flex; gap: 0.35rem; white-space: nowrap; }
.bk-ops__action { display: inline-flex; align-items: center; gap: 0.25rem; border: 1px solid #e2e8f0; background: #fff; color: #334155; border-radius: 999px; padding: 0.28rem 0.65rem; font-size: 0.78rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.bk-ops__action--danger { color: #dc2626; border-color: #fecaca; }
.bk-ops__pager { display: flex; justify-content: space-between; align-items: center; margin-top: 0.85rem; color: #64748b; font-size: 0.84rem; }
.bk-ops__pager div { display: flex; gap: 0.4rem; }
.bk-ops__modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(15, 23, 42, 0.45); }
.bk-ops__modal-card { width: min(100%, 440px); background: #fff; border-radius: 16px; padding: 1.25rem; }
.bk-ops__modal-card h3 { margin: 0 0 0.5rem; }
.bk-ops__modal-actions { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 1rem; }
.bk-ops__modal-error { color: #dc2626; margin: 0.6rem 0 0; font-size: 0.85rem; }
@media (max-width: 1100px) {
    .bk-ops__kpis, .bk-ops__filters, .bk-ops__filters--quick { grid-template-columns: 1fr 1fr; }
}

.trip-ops { display: grid; gap: 0.9rem; }
.trip-ops__top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.trip-ops__brand { font-weight: 800; font-size: 1.25rem; color: #0f766e; }
.trip-ops__ref { border: 1px solid #e2e8f0; border-radius: 999px; padding: 0.35rem 0.8rem; font-size: 0.82rem; font-weight: 700; color: #334155; background: #fff; }
.trip-ops__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.trip-ops__stat, .trip-ops__card { background: #fff; border: 1px solid #e6edf5; border-radius: 16px; padding: 0.95rem 1rem; }
.trip-ops__stat span, .trip-ops__card h2 { display: block; color: #64748b; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.trip-ops__stat strong { display: block; margin-top: 0.25rem; color: #0f172a; }
.trip-ops__split { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 0.75rem; }
.trip-ops__line { display: flex; justify-content: space-between; gap: 1rem; padding: 0.4rem 0; border-bottom: 1px solid #f1f5f9; font-size: 0.9rem; }
.trip-ops__line span { color: #64748b; }
.trip-ops__due { color: #c2410c; font-weight: 800; }
.trip-ops__pay { display: inline-flex; margin-top: 0.8rem; background: linear-gradient(135deg, #0f766e, #0ea5e9); color: #fff; text-decoration: none; border-radius: 999px; padding: 0.7rem 1rem; font-weight: 800; }
@media (max-width: 900px) {
    .trip-ops__stats, .trip-ops__split { grid-template-columns: 1fr; }
}

.pay-link-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.85rem; margin-bottom: 1rem; }
.pay-link-kpi { display: flex; gap: 0.8rem; align-items: center; background: #fff; border: 1px solid #e6edf5; border-radius: 16px; padding: 0.95rem 1rem; }
.pay-link-kpi strong { display: block; font-size: 1.35rem; color: #0f172a; }
.pay-link-kpi span { color: #64748b; font-size: 0.82rem; }
.pay-link-kpi i { width: 2.4rem; height: 2.4rem; border-radius: 12px; display: grid; place-items: center; font-size: 1.1rem; }
.pay-link-kpi i.is-blue { background: #e0f2fe; color: #0369a1; }
.pay-link-kpi i.is-amber { background: #ffedd5; color: #c2410c; }
.pay-link-kpi i.is-green { background: #dcfce7; color: #15803d; }
.pay-opt { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; }
.pay-opt label { border: 1px solid #e2e8f0; border-radius: 12px; padding: 0.7rem 0.4rem; text-align: center; cursor: pointer; font-size: 0.78rem; font-weight: 700; color: #334155; background: #fff; }
.pay-opt label.is-on { border-color: #2563eb; box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15); color: #1d4ed8; }
.pay-opt input { display: none; }
.pay-modal-note { margin: 0.45rem 0 0; color: #64748b; font-size: 0.78rem; }
.pay-confirm { background: #16a34a !important; border-color: #16a34a !important; }
.bk-ops__status.is-overdue { background: #ffedd5; color: #c2410c; }
.bk-ops__status.is-link { background: #fef9c3; color: #a16207; }
.bk-ops__status.is-paid { background: #dcfce7; color: #15803d; }
@media (max-width: 900px) {
    .pay-link-kpis, .pay-opt { grid-template-columns: 1fr 1fr; }
}

/* Booking detail — card layout */
.bk-shell--canvas {
    background: #f4f7fb;
    border: none;
    box-shadow: none;
}
.bd { display: grid; gap: 14px; }
.bd-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    margin: 0.2rem 0 0.35rem;
}
.bd-back:hover { color: #0f172a; }
.bd-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bd-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bd-brand img { height: 42px; width: auto; max-width: 180px; object-fit: contain; }
.bd-brand .brand-name { font-weight: 800; font-size: 1.45rem; line-height: 1; }
.bd-ref {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: none;
    border: 1px solid #e6edf5;
    background: #fff;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.84rem;
    font-weight: 700;
    color: #1e293b;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.bd-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.bd-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #e7eef6;
    border-radius: 18px;
    padding: 16px 18px;
    min-width: 0;
}
.bd-stat__icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex: none;
}
.bd-stat__icon .bi { font-size: 1.25rem !important; }
.bd-stat__icon--ok { background: #e8f8ef; color: #16a34a; }
.bd-stat__icon--date { background: #eef2ff; color: #4f46e5; }
.bd-stat__icon--pax { background: #ecfdf5; color: #059669; }
.bd-stat__label {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
}
.bd-stat__value {
    display: block;
    margin-top: 2px;
    font-size: 1.02rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
}
.bd-trip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
}
.bd-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.92fr);
    gap: 14px;
    align-items: start;
}
.bd-aside { position: sticky; top: 12px; }
.bd-card {
    background: #fff;
    border: 1px solid #e7eef6;
    border-radius: 18px;
    padding: 16px 18px 14px;
    margin-bottom: 14px;
}
.bd-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bd-card__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 1.02rem;
    font-weight: 800;
    color: #0f172a;
}
.bd-card__head .bd-card__title { margin-bottom: 0; }
.bd-card__title .bi { color: #0f766e; font-size: 1.05rem !important; }
.bd-card__bar { width: 3px; height: 16px; border-radius: 2px; background: #0f766e; flex: none; }
.bd-kv {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr) 28px;
    gap: 8px;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.92rem;
}
.bd-kv span { color: #64748b; }
.bd-kv strong { text-align: right; color: #0f172a; font-weight: 700; word-break: break-word; }
.bd-eye {
    border: 0;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
    justify-self: end;
}
.bd-links { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0 0; font-size: 0.84rem; }
.bd-links a { color: #2563eb; font-weight: 700; text-decoration: none; }
.bd-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.bd-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #d7e4f2;
    background: #f7fbff;
    color: #1e3a5f;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    line-height: 1.2;
}
.bd-pill .bi { font-size: 0.9rem !important; }
.bd-pill--link { background: transparent; border-color: transparent; color: #2563eb; }
.bd-pill--danger { background: #fff; border-color: #fecaca; color: #dc2626; }
.bd-add, .bd-textbtn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 0;
    background: transparent;
    color: #2563eb;
    font-weight: 700;
    font-size: 0.84rem;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}
.bd-empty { text-align: center; padding: 18px 8px 8px; color: #64748b; }
.bd-empty .bi { font-size: 1.6rem !important; color: #94a3b8; }
.bd-empty strong { display: block; margin-top: 6px; color: #0f172a; }
.bd-empty p { margin: 4px auto 0; max-width: 420px; font-size: 0.86rem; }
.bd-city {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    color: #0f766e;
    margin: 0 0 12px;
    font-size: 1.02rem;
}
.bd-hotel {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr);
    gap: 14px;
    padding-bottom: 12px;
    margin-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}
.bd-hotel__photo {
    width: 168px;
    height: 118px;
    border-radius: 12px;
    object-fit: cover;
    background: #e8eef5;
}
.bd-hotel__photo--empty {
    display: grid;
    place-items: center;
    color: #94a3b8;
    font-size: 1.6rem;
}
.bd-hotel__name { margin: 0; font-size: 1.05rem; font-weight: 800; color: #0f172a; }
.bd-hotel__addr { color: #64748b; font-size: 0.82rem; margin: 2px 0 8px; }
.bd-hotel__facts { display: flex; flex-wrap: wrap; gap: 8px 14px; color: #334155; font-size: 0.82rem; }
.bd-hotel__facts .bi { color: #64748b; margin-right: 4px; }
.bd-hotel__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; color: #64748b; font-size: 0.82rem; }
.bd-voucher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #16a34a;
    color: #fff;
    border-radius: 999px;
    padding: 7px 12px;
    font-weight: 700;
    font-size: 0.8rem;
    text-decoration: none;
    white-space: nowrap;
}
.bd-voucher:hover { color: #fff; background: #15803d; }
.bd-inc {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 2px;
    border-bottom: 1px solid #f1f5f9;
}
.bd-inc__name { display: flex; gap: 8px; align-items: flex-start; font-weight: 700; color: #0f172a; min-width: 0; }
.bd-inc__name .bi { color: #16a34a; margin-top: 2px; flex: none; }
.bd-inc__meta { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.bd-addon {
    margin-left: 6px;
    font-style: normal;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    color: #b45309;
    background: #fef3c7;
    border-radius: 999px;
    padding: 1px 6px;
}
.bd-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}
.bd-tag--hot { color: #e11d48; background: #fff1f2; }
.bd-tag--pending { color: #b45309; background: #fef3c7; }
.bd-tag--ok { color: #15803d; background: #dcfce7; }
.bd-tag--info { color: #1d4ed8; background: #dbeafe; }
.bd-tag--muted { color: #475569; background: #f1f5f9; }
.bd-arr { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bd-arr__col { background: #f8fafc; border: 1px solid #eef2f7; border-radius: 14px; padding: 12px 14px; }
.bd-arr__col h3 { margin: 0 0 10px; font-size: 0.95rem; display: flex; align-items: center; gap: 6px; color: #0f766e; }
.bd-arr dt { color: #64748b; font-size: 0.75rem; margin-top: 8px; }
.bd-arr dd { margin: 2px 0 0; font-weight: 700; color: #0f172a; font-size: 0.88rem; }
.bd-day { background: #f8fafc; border: 1px solid #e7eef6; border-radius: 14px; padding: 12px 14px 4px; margin-top: 12px; }
.bd-dayhead { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid #e7eef6; }
.bd-dayhead strong { color: #0f172a; font-size: 0.95rem; }
.bd-dayhead span { color: #64748b; font-size: 0.82rem; font-weight: 700; }
.bd-act { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: start; padding: 12px 0; }
.bd-act + .bd-act { border-top: 1px solid #e7eef6; }
.bd-act__media { width: 120px; height: 84px; border-radius: 12px; overflow: hidden; background: #e8eef5; flex: none; }
.bd-act__media img, .bd-act__ph { width: 120px; height: 84px; object-fit: cover; display: block; }
.bd-act__ph { display: grid; place-items: center; color: #94a3b8; }
.bd-act__body { min-width: 0; }
.bd-act h3 { margin: 0; font-size: 0.98rem; font-weight: 800; color: #0f172a; line-height: 1.35; }
.bd-act__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.bd-act__head h3 { flex: 1; min-width: 0; }
.bd-act__edit {
    border: 1px solid #dbe3ee; background: #fff; color: #0f766e; border-radius: 999px;
    padding: 4px 10px; font-size: 0.75rem; font-weight: 700; cursor: pointer; white-space: nowrap; line-height: 1.2;
}
.bd-act__edit:hover { background: #f0fdfa; }
.bd-act__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.bd-chiplet { display: inline-flex; align-items: center; gap: 4px; background: #f1f5f9; color: #334155; border-radius: 999px; padding: 3px 8px; font-size: 0.75rem; font-weight: 700; }
.bd-chiplet .bi { font-size: 0.78rem !important; color: #64748b; }
.bd-chiplet--hot { background: #fff1f2; color: #e11d48; }
.bd-chiplet--hot .bi { color: #e11d48; }
.bd-act p { margin: 8px 0 0; color: #475569; font-size: 0.86rem; line-height: 1.55; }
.bd-act__note { color: #0f172a !important; }
.bd-act__note strong { font-weight: 800; }
.bd-act__form {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
    margin-top: 10px; padding: 10px; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
}
.bd-act__form label { display: flex; flex-direction: column; gap: 4px; min-width: 0; margin: 0; }
.bd-act__form label span { font-size: 0.72rem; font-weight: 700; color: #64748b; }
.bd-act__form .bk-input { width: 100%; min-height: 36px; }
.bd-act__form-notes, .bd-act__form-actions, .bd-act__err { grid-column: 1 / -1; }
.bd-act__form-actions { display: flex; gap: 8px; }
.bd-act__form-actions .bk-btn { width: auto; }
.bd-act__err { margin: 0; color: #b91c1c; font-size: 0.8rem; }
@media screen and (max-width: 900px) {
    .bd-act__form { grid-template-columns: 1fr 1fr; }
}
.bd-travcount { margin: 0 0 10px; font-weight: 800; color: #0f172a; }
.bd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bd-chip { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 999px; padding: 6px 10px; font-size: 0.82rem; color: #0f172a; }
.bd-chip span { color: #64748b; }
.bd-policies { margin: 0; padding-left: 1.1rem; color: #334155; }
.bd-policies li { margin: 6px 0; }
.bd-expert { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.bd-expert__avatar {
    width: 48px; height: 48px; border-radius: 50%; background: #e8eef5;
    display: grid; place-items: center; color: #64748b; flex: none;
}
.bd-expert__avatar .bi { font-size: 1.35rem !important; }
.bd-expert strong { display: block; color: #0f172a; }
.bd-expert small { color: #64748b; }
.bd-payrow, .bd-balance { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 0.9rem; color: #334155; }
.bd-payrow strong, .bd-balance strong { color: #0f172a; white-space: nowrap; }
.bd-payrow--minus strong { font-weight: 700; }
.bd-balance { align-items: baseline; margin-top: 4px; }
.bd-balance span { font-weight: 800; color: #0f172a; }
.bd-balance strong { font-size: 1.35rem; }
.bd-paystate {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0 12px;
    background: #fef3c7;
    color: #b45309;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 800;
}
.bd-paystate .bi { font-size: 0.45rem !important; }
.bd-paystate.is-paid { background: #dcfce7; color: #15803d; }
.bd-paystate.is-unpaid { background: #f1f5f9; color: #64748b; }
.bd-pay, .bd-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    border-radius: 999px;
    padding: 12px 16px;
    font-weight: 800;
    text-decoration: none;
    border: 0;
    margin-top: 8px;
    cursor: pointer;
    font-size: 0.92rem;
}
.bd-pay { background: #0e8fbe; color: #fff; }
.bd-pay:hover { color: #fff; background: #0b7aa3; }
.bd-btn--gray { background: #6b7280; color: #fff; }
.bd-btn--gray:hover { color: #fff; background: #4b5563; }
.bd-btn--soft { background: #e7f3fb; color: #0f172a; }
.bd-btn--soft:hover { color: #0f172a; background: #d7ebf8; }
.bd-btn--outline { background: #fff; color: #334155; border: 1px solid #e2e8f0; margin-bottom: 14px; }
.bd-btn:disabled { opacity: 0.65; cursor: not-allowed; }
.bd-note { margin: 8px 0 0; color: #b45309; font-size: 0.82rem; }
.bd-doc { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid #f1f5f9; font-size: 0.9rem; color: #0f172a; }
.bd-doc span { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.bd-doc .bi { color: #0f766e; }
.bd-doc a { color: #64748b; font-weight: 700; font-size: 0.82rem; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.bd-pnl { margin: 0 0 8px; color: #334155; }
.bd-pnl strong { color: #15803d; font-size: 1.15rem; }
.bd-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.bd-table th { text-align: left; color: #64748b; font-weight: 700; font-size: 0.75rem; padding: 8px 6px; border-bottom: 1px solid #eef2f7; }
.bd-table td { padding: 8px 6px; border-bottom: 1px solid #f8fafc; color: #0f172a; vertical-align: top; }
.bd-table th:not(:first-child), .bd-table td:not(:first-child) { text-align: right; white-space: nowrap; }
.bd-table tr.is-total td { font-weight: 800; border-top: 1px solid #e2e8f0; }
.bd-assist p { margin: 0 0 6px; color: #64748b; font-size: 0.86rem; }
.bd-assist a { color: #0f766e; font-weight: 700; text-decoration: none; }
.bd-send { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-end; margin-top: 1rem; }
@media (max-width: 980px) {
    .bd-stats, .bd-grid, .bd-arr, .bd-hotel { grid-template-columns: 1fr; }
    .bd-aside { position: static; }
    .bd-hotel__photo, .bd-hotel__photo--empty { width: 100%; height: 160px; }
    .bd-top { flex-wrap: wrap; }
}
