﻿/* =========================================================
   RoomDataInfo.css (DE-DUPED)
   Preserves:
   - Current markup expectations (RoomDataComponent)
   - Offcanvas overlay/panel behavior (mobile)
   - Sticky "Room Data" chip styles
   - Item details panel, uploader, thumbnails, confirms, skeleton
   - Suggestions UI
   - Bottom "z-panel" design-system overrides (kept + tightened spacing)
   ========================================================= */


/* =========================================================
   Offcanvas: lower nav z-indexes when open
   ========================================================= */
body:has(.room-info-data.offcanvas-open) .web-topnav,
body:has(.room-info-data.offcanvas-open) .navbar.sticky-top,
body:has(.room-info-data.offcanvas-open) .navbar-bottom,
body:has(.room-info-data.offcanvas-open) .bottom-nav,
body:has(.room-info-data.offcanvas-open) .mobile-nav,
body:has(.room-info-data.offcanvas-open) [class*="nav-bottom"],
body:has(.room-info-data.offcanvas-open) header,
body:has(.room-info-data.offcanvas-open) nav,
body:has(.room-info-data.offcanvas-open) .project-topbar,
/* iOS Safari fallback */
body.roomdata-offcanvas-open .web-topnav,
body.roomdata-offcanvas-open .navbar.sticky-top,
body.roomdata-offcanvas-open .navbar-bottom,
body.roomdata-offcanvas-open .bottom-nav,
body.roomdata-offcanvas-open .mobile-nav,
body.roomdata-offcanvas-open [class*="nav-bottom"],
body.roomdata-offcanvas-open header,
body.roomdata-offcanvas-open nav,
body.roomdata-offcanvas-open .project-topbar {
    position: static !important;
    z-index: auto !important;
}


/* =========================================================
   Base container
   ========================================================= */
.room-info-data {
    border: 1px solid rgba(15,23,42,.10);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    overflow: hidden;
    box-shadow: 0 16px 42px rgba(15,23,42,.10);
    margin: 14px auto 0 auto;
    position: relative;
    z-index: 1010;
}

.room-info-data__panel {
    position: relative;
    height: 100%;
    min-height: 0;
}


/* =========================================================
   Header
   ========================================================= */
.room-info-data__header {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "top      close"
        "tabs-row tabs-row"
        "meta     meta";
    align-items: center;
    gap: 9px 12px;
    padding: 12px 14px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.07), rgba(15, 23, 42, 0.02));
    border-bottom: 1px solid rgba(15,23,42,.08);
}

.room-info-data__hdr-top {
    grid-area: top;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.room-info-data__title-stack {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.room-info-data__titlewrap {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.room-info-data__title {
    flex: 0 1 auto;
    font-weight: 900;
    font-size: 1.05rem;
    line-height: 1.2;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.02em;
}

.room-info-data__title-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.room-info-data__delete-inline {
    min-height: 26px;
    border-radius: 999px;
    padding: 4px 8px;
    border: 1px solid rgba(185, 28, 28, 0.16);
    background: rgba(255, 255, 255, 0.48);
    color: rgba(153, 27, 27, 0.78);
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, transform 120ms ease;
}

    .room-info-data__delete-inline:hover:not(:disabled) {
        transform: translateY(-1px);
        border-color: rgba(185, 28, 28, 0.28);
        background: rgba(254, 242, 242, 0.72);
        color: rgba(127, 29, 29, 0.92);
    }

    .room-info-data__delete-inline:focus-visible {
        outline: none;
        box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
    }

    .room-info-data__delete-inline:disabled {
        opacity: .55;
        cursor: not-allowed;
        transform: none;
    }

.room-info-data__subtitle {
    color: rgba(71, 85, 105, 0.86);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.room-info-data__title-input {
    width: min(360px, 70vw);
    max-width: 100%;
    border: 1px solid rgba(0,0,0,0.14);
    border-radius: 10px;
    padding: 8px 10px;
    font-weight: 800;
    font-size: 1rem;
    outline: none;
}

.room-info-data__name-editor {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
}

.room-info-data__name-error {
    margin-top: 6px;
    color: #b91c1c;
    font-size: 12px;
    font-weight: 700;
}

    .room-info-data__title-input:focus {
        border-color: rgba(37,99,235,0.45);
        box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
    }

.room-info-data__iconbtn {
    min-width: 30px;
    width: auto;
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.12);
    background: #fff;
    color: #0f172a;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 12px;
    font-weight: 800;
}

    .room-info-data__iconbtn:hover {
        background: #f8fafc;
    }

.room-info-data__close {
    grid-area: close;
    position: relative;
    z-index: 2;
}

.room-info-data__tabs-row {
    grid-area: tabs-row;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.room-info-data__tabs {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.05);
    border: 1px solid rgba(2, 6, 23, 0.08);
}

.room-info-data__tab {
    border: 0;
    background: transparent;
    padding: 7px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    color: rgba(15, 23, 42, 0.72);
    transition: background 140ms ease, color 140ms ease, transform 120ms ease, box-shadow 140ms ease;
}

    .room-info-data__tab:hover {
        background: rgba(255, 255, 255, 0.60);
        color: rgba(15, 23, 42, 0.88);
    }

.room-info-data__tab--active {
    background: #fff;
    color: rgba(15, 23, 42, 0.95);
    font-weight: 900;
    box-shadow: 0 1px 2px rgba(2, 6, 23, 0.14);
}

.room-info-data__tab:active {
    transform: translateY(1px);
}

@media (prefers-reduced-motion: reduce) {
    .room-info-data__tab {
        transition: none !important;
    }
}

.room-info-data__hdr-total-desktop {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.room-info-data__header-actions {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.room-info-data__header-action {
    min-height: 28px;
    border-radius: 999px;
    padding: 5px 10px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255,255,255,.70);
    color: #334155;
    font-size: 11px;
    font-weight: 760;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(15,23,42,.04);
    transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, transform 120ms ease;
}

    .room-info-data__header-action:hover:not(:disabled) {
        transform: translateY(-1px);
    }

    .room-info-data__header-action:disabled {
        opacity: .55;
        cursor: not-allowed;
    }

.room-info-data__header-action--add {
    border-color: rgba(37,99,235,.20);
    background: rgba(239,246,255,.72);
    color: #1d4ed8;
}

    .room-info-data__header-action--add:hover:not(:disabled) {
        border-color: rgba(37,99,235,.32);
        background: rgba(219,234,254,.84);
    }

.room-info-data__header-action--danger {
    border-color: rgba(185,28,28,.16);
    background: rgba(255,255,255,.58);
    color: #9f1239;
    font-weight: 700;
}

    .room-info-data__header-action--danger:hover:not(:disabled) {
        border-color: rgba(185,28,28,.26);
        background: rgba(254,242,242,.78);
        color: #7f1d1d;
    }

.room-info-data__hdr-meta {
    grid-area: meta;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.room-info-data__totals {
    display: flex;
    align-items: center;
    gap: 10px;
}

.room-info-data__totals--mobile {
    display: none;
}

/* Total pill */
.room-info-data__total-pill {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(37,99,235,.14);
}

.room-info-data__total-label {
    font-size: 12px;
    font-weight: 700;
    color: rgba(0,0,0,.55);
}

.room-info-data__total-value {
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
    color: rgba(0,0,0,.9);
}

/* Buttons (single source of truth) */
.room-info-data__btn {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: #fff;
    color: rgba(15, 23, 42, 0.92);
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .01em;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    transition: transform .14s ease, box-shadow .14s ease, filter .14s ease, background .14s ease, border-color .14s ease, color .14s ease;
}

    .room-info-data__btn:hover:not(:disabled) {
        background: rgba(15, 23, 42, 0.03);
        border-color: rgba(15, 23, 42, 0.20);
    }

    .room-info-data__btn:active:not(:disabled) {
        transform: translateY(1px);
    }

    .room-info-data__btn:focus-visible {
        outline: none;
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
    }

    .room-info-data__btn:disabled {
        opacity: .6;
        cursor: not-allowed;
        transform: none;
        filter: none;
    }

/* Primary button in the Info tab action bar (Update) */
.room-info-data__actions > .room-info-data__btn {
    border-color: rgba(37, 99, 235, 0.35);
    background: linear-gradient(180deg, rgba(37,99,235,1), rgba(29,78,216,1));
    color: #fff;
    box-shadow: 0 10px 22px rgba(37,99,235,.22);
}

    .room-info-data__actions > .room-info-data__btn:hover:not(:disabled) {
        transform: translateY(-1px);
        filter: brightness(1.02);
        border-color: rgba(37, 99, 235, 0.45);
        box-shadow: 0 14px 30px rgba(37,99,235,.26);
        background: linear-gradient(180deg, rgba(37,99,235,1), rgba(30,64,175,1));
    }

    .room-info-data__actions > .room-info-data__btn:active:not(:disabled) {
        transform: translateY(0);
    }

    .room-info-data__actions > .room-info-data__btn:focus-visible {
        box-shadow: 0 0 0 4px rgba(37,99,235,.22), 0 14px 30px rgba(37,99,235,.26);
    }

.room-info-data__btn--ghost {
    background: transparent;
}

.room-info-data__btn--danger {
    border-color: rgba(220,38,38,.35);
    background: #dc2626;
    color: #fff;
}

    .room-info-data__btn--danger:hover:not(:disabled) {
        background: #b91c1c;
        border-color: rgba(185,28,28,.45);
    }

.room-info-data__btn--danger-outline {
    background: transparent;
    border-color: rgba(220,38,38,.35);
    color: rgba(185,28,28,.95);
}

    .room-info-data__btn--danger-outline:hover:not(:disabled) {
        background: rgba(220,38,38,.06);
        border-color: rgba(220,38,38,.45);
    }

.room-info-data__image-guidance {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px;
    border: 1px solid rgba(37,99,235,.13);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(239,246,255,.72), rgba(255,255,255,.86));
    box-shadow: 0 8px 20px rgba(15,23,42,.04);
}

.room-info-data__image-guidance-title {
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
}

.room-info-data__image-guidance-text {
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
}

.room-info-data__image-count {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border: 1px solid rgba(37,99,235,.16);
    border-radius: 999px;
    background: #fff;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 850;
    white-space: nowrap;
}

/* Header responsive tweaks */
@media (max-width: 768px) {
    .room-info-data__hdr-total-desktop {
        display: none;
    }

    .room-info-data__totals--mobile {
        display: flex;
    }

    .room-info-data__header {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "top   close"
            "tabs-row tabs-row"
            "meta  meta";
        gap: 10px 10px;
    }

    .room-info-data__title-input {
        width: 100%;
    }

    .room-info-data__image-guidance {
        flex-direction: column;
        gap: 8px;
    }

    .room-info-data__subtitle {
        white-space: normal;
    }

    .room-info-data__hdr-meta {
        width: 100%;
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    .room-info-data__btn--danger-outline {
        padding: 8px 10px;
        border-radius: 12px;
        font-weight: 800;
        white-space: nowrap;
    }

    .room-info-data__header-actions {
        width: 100%;
        order: 3;
    }

    .room-info-data__header-action {
        min-height: 32px;
        padding: 7px 10px;
    }

    .room-info-data__iconbtn {
        min-width: 32px;
        width: auto;
        height: 32px;
    }

    .room-info-data__title-actions {
        gap: 5px;
    }

    .room-info-data__delete-inline {
        min-height: 30px;
        padding: 5px 8px;
    }
}

/* Visibility helpers */
.room-info-data__mobile-only {
    display: none;
}

.room-info-data__desktop-only {
    display: inline-flex;
}

.room-info-data__mobile-upload-copy {
    display: none;
}

body.platform-mobile .room-info-data__desktop-upload-copy {
    display: none;
}

body.platform-mobile .room-info-data__mobile-upload-copy {
    display: inline;
}

@media (max-width: 768px) {
    .room-info-data__mobile-only {
        display: inline-flex;
    }

    .room-info-data__desktop-only {
        display: none;
    }
}


/* =========================================================
   Body + common blocks
   ========================================================= */
.room-info-data__body {
    padding: 12px 14px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.72), #fff 30%);
}

.room-info-data__section {
    display: block;
}

.room-info-data__empty {
    padding: 22px 16px;
    color: rgba(71, 85, 105, .92);
    background: linear-gradient(180deg, #fff, #f8fafc);
    border: 1px dashed rgba(37,99,235,.20);
    border-radius: 16px;
    text-align: center;
    line-height: 1.4;
}

.room-info-data__status {
    margin-left: 6px;
    font-size: 12px;
    font-weight: 650;
    color: rgba(0,0,0,.60);
}

/* Skeleton */
.room-info-data__skeleton {
    padding: 18px;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 16px;
    background: #fff;
}

.room-info-data__loading-copy {
    margin-bottom: 12px;
    color: rgba(0,0,0,.62);
    font-size: 13px;
    font-weight: 650;
}

.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: room-info-loading 1.5s ease-in-out infinite;
    border-radius: 999px;
    margin-bottom: 12px;
}

.skeleton--header {
    height: 32px;
    width: 60%;
}

.skeleton--line {
    height: 16px;
    width: 100%;
}

@keyframes room-info-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* KV (supports both spellings used historically) */
.room-info-data__kv {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 10px 14px;
}

.room-info-data__k {
    color: rgba(0,0,0,.55);
    font-weight: 600;
    font-size: 13px;
}

.room-info-data__v,
.room_info_data__v {
    color: rgba(0,0,0,.9);
    font-weight: 600;
    font-size: 13px;
}


/* =========================================================
   Info tab (measurement form)
   ========================================================= */
.room-info-data__info {
    display: grid;
    gap: 12px;
}

.room-info-data__info-card {
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 12px;
    padding: 12px;
    background: rgba(0,0,0,.015);
}

.room-info-data__info-card-title {
    font-size: 12px;
    font-weight: 750;
    color: rgba(0,0,0,.60);
    margin-bottom: 10px;
}

.room-info-data__grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 24px;
    gap: 10px 12px;
}

.room-info-data__grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
}

.room-info-data__field {
    display: grid;
    gap: 6px;
}

.room-info-data__label {
    font-size: 12px;
    font-weight: 650;
    color: rgba(0,0,0,.60);
}

.room-info-data__input {
    width: 100%;
    height: 34px;
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,.12);
    background: #fff;
    outline: none;
    font-size: 13px;
}

    .room-info-data__input:focus {
        border-color: rgba(0,0,0,.25);
        box-shadow: 0 1px 2px rgba(0,0,0,.10);
    }

.room-info-data__section-title {
    margin: 14px 0 8px;
    font-size: 12px;
    font-weight: 800;
    color: rgba(0,0,0,.70);
    letter-spacing: .02em;
}

.room-info-data__actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(0,0,0,.08);
}

.room-info-data__scanbtn {
    margin-left: auto;
}

.room-info-data__spacer {
}

@media (max-width: 520px) {
    .room-info-data__grid-3 {
        grid-template-columns: 1fr 1fr;
    }

    .room-info-data__grid-2 {
        grid-template-columns: 1fr;
    }

    .room-info-data__spacer {
        grid-column: 1 / -1;
        height: 0;
    }
}


/* =========================================================
   Images tab (uploader + thumbs + modal)
   ========================================================= */
.room-info-data__uploader {
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px;
    background: #fff;
    padding: 14px 14px 12px;
    margin-bottom: 12px;
}

.room-info-data__uploader-title {
    font-size: 13px;
    font-weight: 800;
    color: rgba(0,0,0,.85);
    margin-bottom: 2px;
}

.room-info-data__uploader-sub {
    font-size: 12px;
    font-weight: 600;
    color: rgba(0,0,0,.55);
    margin-bottom: 10px;
}

.room-info-data__dropzone {
    position: relative;
    display: grid;
    place-items: center;
    border: 2px dashed rgba(0,0,0,.14);
    border-radius: 14px;
    background: rgba(0,0,0,.015);
    min-height: 88px;
    cursor: pointer;
    overflow: hidden;
}

    .room-info-data__dropzone:hover {
        background: rgba(0,0,0,.02);
        border-color: rgba(0,0,0,.20);
    }

    .room-info-data__dropzone.is-dragover {
        background: rgba(0,0,0,.03);
        border-color: rgba(0,0,0,.28);
    }

.room-info-data__file-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.room-info-data__dropzone-text {
    text-align: center;
    padding: 10px;
    pointer-events: none;
}

.room-info-data__dropzone-strong {
    font-size: 13px;
    font-weight: 800;
    color: rgba(0,0,0,.85);
}

.room-info-data__dropzone-muted {
    margin-top: 2px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(0,0,0,.55);
}

.room-info-data__upload-actions {
    display: inline-flex;
    gap: 8px;
    margin-top: 10px;
}

.room-info-data__pending {
    margin: 12px 0;
}

.room-info-data__pending-title {
    font-size: 12px;
    font-weight: 750;
    color: rgba(0,0,0,.60);
    margin: 0 0 8px 2px;
}

.room-info-data__thumb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.room-info-data__thumb-grid--pending {
    opacity: .95;
}

.room-info-data__thumb-wrap {
    position: relative;
}

.room-info-data__thumb {
    width: 100%;
    display: block;
    border: 1px solid rgba(0,0,0,.10);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0,0,0,.02);
    aspect-ratio: 1 / 1;
    box-shadow: 0 1px 2px rgba(0,0,0,.05);
    transition: transform .10s ease, box-shadow .10s ease;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

    .room-info-data__thumb:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 10px rgba(0,0,0,.10);
    }

    .room-info-data__thumb:active {
        transform: translateY(0);
    }

    .room-info-data__thumb:focus-visible {
        outline: 3px solid rgba(37, 99, 235, 0.30);
        outline-offset: 2px;
    }

.room-info-data__thumb--pending {
    cursor: default;
}

.room-info-data__thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.room-info-data__thumb-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 12px;
    color: rgba(0,0,0,.55);
}

.room-info-data__thumb-delete {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.14);
    background: rgba(255,255,255,.92);
    color: rgba(15, 23, 42, 0.95);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 0;
    font-size: 18px;
    font-weight: 900;
    box-shadow: 0 4px 12px rgba(0,0,0,.18);
    opacity: 0.95;
    transition: opacity .12s ease, transform .12s ease, background .12s ease;
}

.room-info-data__thumb-wrap:hover .room-info-data__thumb-delete {
    opacity: 1;
    transform: scale(1.05);
}

.room-info-data__thumb-delete:hover {
    background: #fff;
}

.room-info-data__thumb-delete:active {
    transform: scale(0.98);
}

.room-info-data__thumb-delete:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.30);
    outline-offset: 2px;
}

.room-info-data__thumb-delete:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Image modal */
.room-info-data__imgmodal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.room-info-data__imgmodal {
    position: relative;
    width: min(960px, 96vw);
    max-height: 90dvh;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0,0,0,.35);
}

.room-info-data__imgmodal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.14);
    background: rgba(255,255,255,.92);
    cursor: pointer;
    font-size: 22px;
    font-weight: 900;
    line-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.room-info-data__imgmodal-img {
    width: 100%;
    height: auto;
    max-height: 90dvh;
    object-fit: contain;
    display: block;
    background: #0b1220;
}


/* =========================================================
   Scope tab (list)
   ========================================================= */
.room-info-data__section.room-info-data__scope {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
}

.room-info-data__scope-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-right: 6px;
    scrollbar-gutter: stable;
}

.room-info-data__scope-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    margin: 10px 0 14px 0;
    padding: 0;

}

/* Trade group */
.room-info-data__trade-card {
    border: 1px solid rgba(15,23,42,.09);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    box-shadow: 0 8px 24px rgba(15,23,42,.05);
}

.room-info-data__trade-hdr {
    flex: 0 0 auto;
    padding: 11px 14px;
    background: linear-gradient(180deg, #f8fafc, #fff);
    border-bottom: 1px solid rgba(15,23,42,.07);
}

.room-info-data__trade-title {
    color: #475569;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.room-info-data__trade-body {
    display: grid;
    gap: 8px;
    padding: 10px;
}

.room-info-data__trade-rowwrap {
    display: block;
    scroll-margin: 18px;
    border-radius: 14px;
}

.room-info-data__trade-rowwrap--focused {
    outline: 2px solid rgba(37, 99, 235, .42);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(37, 99, 235, .08);
    animation: room-data-focus-pulse 1.4s ease-out 2;
}

.room-info-data__trade-rowwrap--focused > .room-info-data__trade-row {
    border-color: rgba(37, 99, 235, .32) !important;
    background: linear-gradient(90deg, rgba(37, 99, 235, .08), rgba(255, 255, 255, .96) 28%) !important;
    box-shadow: inset 4px 0 0 rgba(37, 99, 235, .72), 0 10px 24px rgba(37, 99, 235, .08) !important;
}

@keyframes room-data-focus-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, .20);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(37, 99, 235, .05);
    }

    100% {
        box-shadow: 0 0 0 6px rgba(37, 99, 235, .08);
    }
}

/* Row */
.room-info-data__trade-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 14px;
    background: #fff;
    transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

    .room-info-data__trade-row:last-child {
        border-bottom: none;
    }

    .room-info-data__trade-row:hover {
        background-color: #f8fafc;
        border-color: rgba(37, 99, 235, 0.16);
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
    }

.room-info-data__trade-row--compact {
    padding: 10px 12px;
}

.room-info-data__trade-row--warning {
    background-color: #fffbeb;
    border-color: rgba(245, 158, 11, 0.32);
    box-shadow: inset 3px 0 0 rgba(245, 158, 11, 0.70);
}

    .room-info-data__trade-row--warning:hover {
        background-color: #fef3c7;
    }

.room-info-data__trade-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.room-info-data__trade-item-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
}

.room-info-data__scope-item-narrative-leaf {
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 550;
    line-height: 1.28;
    margin-top: -2px;
    overflow-wrap: anywhere;
}

.room-info-data__scope-item-narrative-leaf span {
    color: #94a3b8;
    font-weight: 700;
}

/* legacy typo class support */
.room_info_data__trade-item-title--compact {
    font-size: 13px;
    font-weight: 750;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.room-info-data__trade-item-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    flex-wrap: wrap;
}

/* Qty */
.room-info-data__qty {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    background-color: #f8fafc;
    color: #475569;
    font-weight: 750;
    font-size: 12px;
    border: 1px solid #e5e7eb;
}

.room-info-data__qty--zero {
    background-color: #fef3c7;
    color: #92400e;
    border-color: #fbbf24;
    font-weight: 700;
    animation: room-info-attention-pulse 2s ease-in-out infinite;
}

@keyframes room-info-attention-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }

    50% {
        box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.3);
    }
}

.room-info-data__qty--editable {
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 999px;
    display: inline-block;
    border: 1px solid transparent;
    transition: background-color .12s ease, border-color .12s ease, box-shadow .12s ease, transform .12s ease, color .12s ease;
}

@media (hover: hover) and (pointer: fine) {
    .room-info-data__qty--editable:hover {
        background: rgba(37, 99, 235, 0.16);
        border-color: rgba(37, 99, 235, 0.55);
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18), 0 0 0 5px rgba(37, 99, 235, 0.22);
        color: rgba(15, 23, 42, 0.98);
    }
}

.room-info-data__qty-input {
    width: 120px;
    padding: 4px 8px;
    border: 1px solid #007bff;
    border-radius: 4px;
    font-size: inherit;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

    .room-info-data__qty-input:focus {
        outline: none;
        border-color: #0056b3;
    }

/* Amount */
.room-info-data__trade-amt {
    font-weight: 850;
    color: #047857;
    font-size: 14px;
    white-space: nowrap;
}

.room_info_data__trade-amt--compact {
    font-size: 12px;
    font-weight: 750;
}

.room-info-data__trade-amt--zero,
.room_info_data__trade-amt--zero {
    color: #dc2626;
    font-weight: 700;
}

@media (max-width: 640px) {
    .room-info-data__trade-row {
        align-items: flex-start;
        gap: 10px;
    }

    .room-info-data__trade-item-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .room-info-data__row-actions {
        flex-direction: column;
    }
}

/* Right actions */
.room-info-data__row-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.room-info-data__details-btn {
    border: 1px solid rgba(15,23,42,.10);
    background: #f8fafc;
    border-radius: 999px;
    height: 30px;
    width: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .room-info-data__details-btn:hover {
        background: rgba(0,0,0,.03);
    }

.room-info-data__chev {
    display: inline-block;
    transform: rotate(-90deg);
    transition: transform .15s ease;
    font-size: 14px;
    line-height: 1;
    opacity: .75;
}

.room-info-data__chev--open,
.roominfo_data__chev--open {
    transform: rotate(0deg);
}

/* Delete button */
.room-info-data__delete-btn {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(220,38,38,.16);
    background: #fff;
    color: #dc2626;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

    .room-info-data__delete-btn:hover:not(:disabled) {
        background: #fef2f2;
        border-color: #dc2626;
        transform: translateY(-1px);
        box-shadow: 0 6px 14px rgba(220, 38, 38, 0.10);
    }

    .room-info-data__delete-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

/* Price spinner */
.room-info-data__price-spinner {
    display: inline-flex;
    align-items: center;
}

.room-info-data__spinner-icon {
    width: 16px;
    height: 16px;
    animation: room-info-spin 1s linear infinite;
}

.room-info-data__spinner-circle {
    fill: none;
    stroke: #007bff;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 60;
    stroke-dashoffset: 45;
}

@keyframes room-info-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   Item details drop panel
   ========================================================= */
.room-info-data__item-panel {
    margin: 0 10px 10px 10px;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 16px;
    background: #f8fafc;
    padding: 10px;
}

.room-info-data__item-panel-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.room-info-data__panel-section {
    background: #fff;
    border: 1px solid rgba(15,23,42,.07);
    border-radius: 14px;
    padding: 12px;
}

.room-info-data__panel-section--note {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.room-info-data__panel-title {
    font-size: 12px;
    font-weight: 850;
    color: #334155;
    letter-spacing: .02em;
    margin-bottom: 8px;
}

.room-info-data__narrative-debug {
    margin: 2px 0 4px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
}

.room-info-data__narrative-debug-summary {
    cursor: pointer;
    padding: 7px 9px;
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    list-style: none;
}

.room-info-data__narrative-debug-summary::-webkit-details-marker {
    display: none;
}

.room-info-data__narrative-debug-body,
.room-info-data__narrative-debug-empty {
    padding: 0 9px 9px;
}

.room-info-data__narrative-debug-body {
    display: grid;
    gap: 8px;
}

.room-info-data__narrative-debug-empty {
    color: #61758a;
    font-size: 0.74rem;
    line-height: 1.35;
}

.room-info-data__narrative-debug-path {
    color: #334e68;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.72rem;
    line-height: 1.35;
    word-break: break-word;
}

.room-info-data__narrative-debug-tablewrap {
    overflow-x: auto;
}

.room-info-data__narrative-debug-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
    color: #334e68;
    font-size: 0.7rem;
    line-height: 1.35;
}

.room-info-data__narrative-debug-table th,
.room-info-data__narrative-debug-table td {
    padding: 5px 7px;
    border-bottom: 1px solid #e5edf5;
    text-align: left;
    vertical-align: top;
}

.room-info-data__narrative-debug-table th {
    background: #eef4fb;
    color: #243b53;
    font-weight: 800;
    white-space: nowrap;
}

.room-info-data__narrative-debug-table tr.is-selected {
    background: #fff8db;
    font-weight: 700;
}

.room-info-data__narrative-debug-item {
    display: inline-flex;
    gap: 4px;
    min-width: 0;
}

.room-info-data__narrative-debug-branch {
    color: #9fb3c8;
    font-weight: 800;
    white-space: nowrap;
}

.room-info-data__narrative-debug-chiprow {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
}

.room-info-data__narrative-debug-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 2px 7px;
    background: #e6eef8;
    color: #1f3a56;
    font-size: 0.66rem;
    font-weight: 800;
    line-height: 1.2;
}

.room-info-data__narrative-debug-chip--selected {
    background: #dbeafe;
    color: #1d4f91;
}

.room-info-data__allow-row {
    padding: 10px 0;
    border-top: 1px dashed rgba(0,0,0,.10);
}

    .room-info-data__allow-row:first-child {
        border-top: none;
        padding-top: 0;
    }

.room-info-data__allow-name {
    font-size: 12px;
    font-weight: 700;
    color: rgba(0,0,0,.80);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.room-info-data__panel-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.room-info-data__money {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.room-info-data__money-prefix,
.room_info_data__money-prefix {
    font-weight: 700;
    opacity: .7;
}

.room-info-data__panel-textarea {
    width: 100%;
    border: 1px solid rgba(0,0,0,.18);
    border-radius: 10px;
    padding: 10px;
    font-size: 13px;
    resize: vertical;
}

.room-info-data__panel-actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
}

.room-info-data__panel-btn {
    border: 1px solid rgba(0,0,0,.16);
    background: #fff;
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 650;
}

.room-info-data__panel-btn--primary {
    border: 1px solid rgba(37, 99, 235, 0.35);
    background: linear-gradient(180deg, rgba(37,99,235,1), rgba(29,78,216,1));
    color: #fff;
    box-shadow: 0 10px 22px rgba(37,99,235,.18);
}

    .room-info-data__panel-btn--primary:hover {
        box-shadow: 0 14px 30px rgba(37,99,235,.22);
        transform: translateY(-1px);
    }

/* Inline save state */
.room-info-data__mini-saving {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .room-info-data__mini-saving::before {
        content: "";
        width: 10px;
        height: 10px;
        border: 2px solid rgba(107,114,128,.35);
        border-top-color: rgba(107,114,128,.9);
        border-radius: 50%;
        animation: room-info-spin .8s linear infinite;
    }

.room-info-data__mini-error {
    font-size: 11px;
    font-weight: 700;
    color: #b91c1c;
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .room-info-data__mini-error::before {
        content: "!";
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 14px;
        height: 14px;
        font-size: 11px;
        font-weight: 900;
        color: #fff;
        background: #b91c1c;
        border-radius: 50%;
    }


/* =========================================================
   Confirm dialogs
   ========================================================= */
.room-info-data__confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: room-info-fadeIn 0.2s ease-out;
    padding: 16px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.room-info-data__confirm-dialog {
    background: #fff;
    border-radius: 8px;
    width: min(400px, 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: room-info-slideUp 0.2s ease-out;
    max-height: calc(100dvh - 32px);
    display: flex;
    flex-direction: column;
    padding: 0;
}

/* Header */
.room-info-data__confirm-header {
    padding: 24px 24px 0 24px;
    flex: 0 0 auto;
}

    .room-info-data__confirm-header h3 {
        margin: 0 0 16px 0;
        font-size: 18px;
        font-weight: 600;
        color: #111827;
    }

/* Body becomes the scroll area */
.room-info-data__confirm-body {
    padding: 0 24px;
    color: #6b7280;
    line-height: 1.5;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1 1 auto;
    min-height: 0; 
}

    .room-info-data__confirm-body strong {
        color: #111827;
        font-weight: 600;
    }

.room-info-data__confirm-warning {
    margin-top: 12px;
    font-size: 14px;
    color: #dc2626;
}

/* Actions stay visible at the bottom */
.room-info-data__confirm-actions {
    padding: 16px 24px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex: 0 0 auto;
}

/* Mobile: full-width buttons for thumb reach */
@media (max-width: 576px) {
    .room-info-data__confirm-actions {
        justify-content: stretch;
        padding: 14px 16px 16px 16px;
    }

        .room-info-data__confirm-actions .room-info-data__btn {
            flex: 1 1 0;
            min-height: 44px;
        }

    .room-info-data__confirm-header {
        padding: 16px 16px 0 16px;
    }

    .room-info-data__confirm-body {
        padding: 0 16px;
    }
}

/* Preview: cap height so it can’t push actions off-screen */
.room-info-data__confirm-preview {
    margin-top: 10px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.10);
    background: rgba(0,0,0,.02);
    max-height: clamp(140px, 30dvh, 240px);
}

    .room-info-data__confirm-preview img {
        width: 100%;
        height: 100%;
        object-fit: cover; 
        display: block;
    }


@keyframes room-info-fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes room-info-slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}


/* =========================================================
   Suggestions
   ========================================================= */
.room-info-data__suggestion-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.10);
    background: #f8fafc;
    font-size: 12px;
    font-weight: 700;
    color: rgba(0,0,0,.72);
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

    .room-info-data__suggestion-chip:hover {
        background: #f1f3f5;
        border-color: rgba(0,0,0,0.14);
        box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    }

    .room-info-data__suggestion-chip:active {
        background: #e9ecef;
        box-shadow: none;
    }

    .room-info-data__suggestion-chip:focus-visible {
        outline: 2px solid rgba(13,110,253,0.35);
        outline-offset: 2px;
    }

.room-info-data__suggestion-chip-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(0,0,0,0.08);
    color: rgba(0,0,0,.85);
    font-size: 11px;
    font-weight: 800;
    line-height: 18px;
}

.room-info-data__suggestions-panel {
    margin-top: 0.6rem;
    padding: 0.65rem 0.75rem;
    background: #fff;
    border-radius: 1rem;
    border: 1px solid rgba(37,99,235,0.14);
    border-left: 4px solid #2563eb;
    box-shadow: 0 8px 18px rgba(15,23,42,.05);
}

.room-info-data__suggestions-header {
    margin: 0 0 0.5rem 0;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    font-size: 13px;
    font-weight: 750;
    color: #212529;
    line-height: 1.2;
}

.room-info-data__suggestion-item {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 0.75rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    min-width: 0;
}

    .room-info-data__suggestion-item:last-child {
        border-bottom: 0;
    }

.room-info-data__suggestion-content {
    min-width: 0;
}

.room-info-data__suggestion-name {
    font-size: 13px;
    font-weight: 400;
    color: rgba(0,0,0,.92);
    line-height: 1.2;
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.room-info-data__suggestion-actions {
    display: flex;
    gap: 0.5rem;
}

.room-info-data__suggestion-add {
    justify-self: end;
    padding: 0.25rem 0.4rem;
    border: 0;
    background: transparent;
    font-size: 13px;
    font-weight: 700;
    color: #0d6efd;
    line-height: 1;
    border-radius: 0.4rem;
    cursor: pointer;
}

    .room-info-data__suggestion-add:hover {
        background: rgba(13,110,253,0.08);
    }

    .room-info-data__suggestion-add:active {
        background: rgba(13,110,253,0.14);
    }

.room-info-data__suggestion-dismiss {
    padding: 0.375rem 0.75rem;
    background: transparent;
    border: 1px solid #dc3545;
    border-radius: 4px;
    color: #dc3545;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    transition: all 0.15s ease;
}

    .room-info-data__suggestion-dismiss:hover {
        background: #dc3545;
        color: #fff;
    }

.room-info-data__suggestions-empty {
    padding: 1rem;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

@media (max-width: 576px) {
    .room-info-data__suggestion-item {
        grid-template-columns: 1fr;
        row-gap: 0.35rem;
        padding: 0.6rem 0;
    }

    .room-info-data__suggestion-add {
        justify-self: start;
        padding: 0.3rem 0.5rem;
    }

    .room-info-data__suggestion-name {
        -webkit-line-clamp: 3;
    }
}


/* =========================================================
   Offcanvas (mobile)
   ========================================================= */
@media (min-width: 769px) {
    .room-info-data__close {
        display: none;
    }
}

@media (max-width: 768px) {
    /* elevate the subtree above sticky headers */
    .room-info-data.offcanvas-open {
        position: fixed;
        inset: 0;
        z-index: 2147483000;
        pointer-events: none;
        isolation: isolate;
    }

        .room-info-data.offcanvas-open .offcanvas-overlay,
        .room-info-data.offcanvas-open .room-info-data__panel {
            pointer-events: auto;
        }

    .room-info-data .offcanvas-overlay {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.50);
        z-index: 2147483001;
        opacity: 0;
        pointer-events: none;
        transition: opacity 260ms cubic-bezier(.2,.9,.2,1);
    }

    .room-info-data.offcanvas-open .offcanvas-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .room-info-data__panel {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        height: 100vh;
        height: 100svh;
        height: 100dvh;
        width: min(95vw, 420px);
        max-width: 420px;
        background: #fff;
        z-index: 2147483002;
        box-shadow: -12px 0 28px rgba(0,0,0,0.18);
        transform: translate3d(100%, 0, 0);
        visibility: hidden;
        pointer-events: none;
        transition: transform 320ms cubic-bezier(.2,.9,.2,1), visibility 0s linear 320ms;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        will-change: transform;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        box-sizing: border-box;
    }

    .room-info-data.offcanvas-open .room-info-data__panel {
        transform: translate3d(0, 0, 0);
        visibility: visible;
        pointer-events: auto;
        transition: transform 320ms cubic-bezier(.2,.9,.2,1);
    }

    /* safe-area padding goes on header/body */
    .room-info-data__header {
        padding-top: calc(12px + env(safe-area-inset-top, 0px));
    }

    .room-info-data__body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        touch-action: pan-y;
        padding: 12px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    }

    .room-info-data__close {
        border: 1px solid rgba(0,0,0,0.12);
        background: #fff;
        color: #0f172a;
        width: 44px;
        height: 44px;
        border-radius: 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        line-height: 0;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        pointer-events: auto;
        min-width: 44px;
        min-height: 44px;
        touch-action: manipulation;
        transition: background 150ms ease, transform 100ms ease;
    }

        .room-info-data__close:hover {
            background: #f8fafc;
        }

        .room-info-data__close:active {
            background: #e2e8f0;
            transform: scale(0.95);
        }

    @media (prefers-reduced-motion: reduce) {
        .room-info-data__panel,
        .room-info-data .offcanvas-overlay {
            transition: none !important;
        }
    }
}


/* =========================================================
   Sticky chip (mobile)
   ========================================================= */
.roomdata-sticky {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    padding: 8px 12px 10px 12px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.roomdata-chip {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 0;
    cursor: pointer;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
    transition: box-shadow 160ms ease, transform 120ms ease, border-color 160ms ease, background 160ms ease;
}

    .roomdata-chip.roomdata-chip--primary {
        background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
        border: 2px solid rgba(37, 99, 235, 0.30);
        box-shadow: 0 10px 22px rgba(2, 6, 23, 0.10);
        border-radius: 14px;
        padding: 12px 12px;
        color: #0f172a;
    }

        .roomdata-chip.roomdata-chip--primary:hover {
            background: #ffffff;
            border-color: rgba(37, 99, 235, 0.45);
            box-shadow: 0 12px 26px rgba(2, 6, 23, 0.14);
        }

        .roomdata-chip.roomdata-chip--primary:active {
            transform: translateY(1px);
        }

        .roomdata-chip.roomdata-chip--primary:focus-visible {
            outline: 3px solid rgba(37, 99, 235, 0.30);
            outline-offset: 2px;
        }

.roomdata-chip__left {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
}

.roomdata-chip__room {
    font-size: 1.02rem;
    font-weight: 900;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.roomdata-chip__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 750;
    color: rgba(15, 23, 42, 0.72);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.roomdata-chip__dot {
    opacity: 0.5;
}

.roomdata-chip__hint {
    opacity: 0.85;
}

.roomdata-chip__count-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.10);
    border: 1px solid rgba(37, 99, 235, 0.18);
}

.roomdata-chip__count {
    color: rgba(37, 99, 235, 0.98);
    font-weight: 900;
}

.roomdata-chip__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    padding-left: 10px;
    margin-left: 10px;
    border-left: 1px solid rgba(2, 6, 23, 0.10);
    flex: 0 0 auto;
}

.roomdata-chip__total-label {
    font-size: 0.78rem;
    font-weight: 800;
    color: rgba(15, 23, 42, 0.70);
    line-height: 1.1;
}

.roomdata-chip__total-value {
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0.01em;
    color: #0f172a;
    line-height: 1.1;
}

.roomdata-chip.is-total-updated {
    animation: roomdataChipPulse 520ms cubic-bezier(.2,.9,.2,1);
}

@keyframes roomdataChipPulse {
    0% {
        transform: translateY(0) scale(1);
        box-shadow: 0 10px 22px rgba(2, 6, 23, 0.10);
        border-color: rgba(37, 99, 235, 0.30);
    }

    40% {
        transform: translateY(-1px) scale(1.01);
        box-shadow: 0 16px 34px rgba(2, 6, 23, 0.16);
        border-color: rgba(37, 99, 235, 0.55);
    }

    100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 10px 22px rgba(2, 6, 23, 0.10);
        border-color: rgba(37, 99, 235, 0.30);
    }
}

.roomdata-chip__count-pill.is-pulsing {
    animation: roomdataCountPillPulse 650ms cubic-bezier(.2,.9,.2,1);
}

    .roomdata-chip__count-pill.is-pulsing .roomdata-chip__count {
        animation: roomdataCountTextPop 650ms cubic-bezier(.2,.9,.2,1);
    }

@keyframes roomdataCountPillPulse {
    0% {
        transform: scale(1);
        background: rgba(37, 99, 235, 0.10);
        border-color: rgba(37, 99, 235, 0.18);
        box-shadow: 0 0 0 rgba(37, 99, 235, 0);
    }

    35% {
        transform: scale(1.06);
        background: rgba(37, 99, 235, 0.18);
        border-color: rgba(37, 99, 235, 0.45);
        box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18);
    }

    100% {
        transform: scale(1);
        background: rgba(37, 99, 235, 0.10);
        border-color: rgba(37, 99, 235, 0.18);
        box-shadow: 0 0 0 rgba(37, 99, 235, 0);
    }
}

@keyframes roomdataCountTextPop {
    0% {
        transform: scale(1);
    }

    35% {
        transform: scale(1.10);
    }

    100% {
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .roomdata-chip,
    .roomdata-chip.is-total-updated,
    .roomdata-chip__count-pill.is-pulsing,
    .roomdata-chip__count-pill.is-pulsing .roomdata-chip__count {
        transition: none !important;
        animation: none !important;
    }
}


/* =========================================================
   Z-PANEL design system overrides (KEEP AT BOTTOM)
   ========================================================= */

/* Outer card off inside z-panel */
.z-panel .room-info-data {
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.z-panel .room-info-data__panel {
    height: 100%;
    min-height: 0;
}

/* Header feels like a subtle surface */
.z-panel .room-info-data__header {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.07), rgba(15, 23, 42, 0.02)) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--r-16) !important;
    padding: 12px !important;
    gap: 10px !important;
    position: relative;
}

.z-panel .room-info-data__title {
    color: var(--text-primary) !important;
    font-weight: var(--fw-bold) !important;
    letter-spacing: -0.01em;
}

.z-panel .room-info-data__subtitle {
    color: var(--text-secondary) !important;
}

/* Tabs: lighter + modern */
.z-panel .room-info-data__tabs {
    background: var(--bg-surface-2) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--r-pill) !important;
    padding: 4px !important;
}

/*.z-panel .room-info-data__tab {
    color: var(--text-muted) !important;
}*/

    .z-panel .room-info-data__tab--active,
    .z-panel .room-info-data__tabs > button[aria-selected="true"] {
        background: var(--bg-surface) !important;
        color: var(--text-primary) !important;
        border: 1px solid var(--border) !important;
        box-shadow: none !important;
        border-radius: var(--r-pill);
        border-radius: var(--r-pill);
    }

/* Total pill */
.z-panel .room-info-data__total-pill {
    background: var(--bg-surface-2) !important;
    border: 1px solid var(--border) !important;
    border-radius: 999px !important;
}

.z-panel .room-info-data__total-value {
    color: var(--text-primary) !important;
    font-weight: var(--fw-bold) !important;
}

/* IMPORTANT: removes the weird band under header */
.z-panel .room-info-data__body {
    padding: 10px 0 0 0 !important;
    margin-top: 0 !important;
}

.z-panel .room-info-data__empty {
    background: linear-gradient(180deg, #fff, var(--bg-surface-2)) !important;
    border-color: rgba(0, 102, 204, 0.18) !important;
    color: var(--text-secondary) !important;
}

.z-panel .room-info-data__loading-copy {
    color: var(--text-secondary) !important;
}

.z-panel .room-info-data__tabs-row {
    margin: 0 !important;
}

/* Scope spacing fixes */
.z-panel .room-info-data__section.room-info-data__scope {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.z-panel .room-info-data__scope-scroll {
    border-top: 0 !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.z-panel .room-info-data__scope-actions {
    display: flex;
    justify-content: flex-end;
    margin: 10px 0 14px 0 !important;
    padding: 0 !important;
    border-bottom: 0 !important;
}

/* Trade card */
.z-panel .room-info-data__trade-card {
    border: 1px solid rgba(15, 23, 42, 0.09) !important;
    border-radius: var(--r-16) !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05) !important;
    overflow: hidden;
    background: var(--bg-surface) !important;
}

/* Trade header */
.z-panel .room-info-data__trade-hdr {
    background: linear-gradient(180deg, var(--bg-surface-2), var(--bg-surface)) !important;
    border-bottom: 1px solid var(--border) !important;
    padding: 12px 14px !important;
}

.z-panel .room-info-data__trade-title {
    font-size: 12px !important;
    font-weight: var(--fw-bold) !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: var(--text-muted) !important;
}

/* Rows */
.z-panel .room-info-data__trade-row {
    background: var(--bg-surface) !important;
    border: 1px solid rgba(15, 23, 42, 0.06) !important;
    border-radius: var(--r-12) !important;
    padding: 11px 12px !important;
}

    .z-panel .room-info-data__trade-row:hover {
        background: var(--bg-surface-2) !important;
    }

.z-panel .room-info-data__trade-row--warning {
    background: rgba(245, 158, 11, 0.10) !important;
    border-color: rgba(245, 158, 11, 0.32) !important;
    box-shadow: inset 3px 0 0 rgba(245, 158, 11, 0.65) !important;
}

/* Item typography */
.z-panel .room-info-data__trade-item-title,
.z-panel .room_info_data__trade-item-title--compact {
    font-size: 13px !important;
    font-weight: var(--fw-semibold) !important;
    color: var(--text-primary) !important;
}

/* Qty pill */
.z-panel .room-info-data__qty {
    background: var(--bg-surface-2) !important;
    border: 1px solid var(--border) !important;
    border-radius: 999px !important;
    color: var(--text-muted) !important;
    font-weight: var(--fw-semibold) !important;
    padding: 4px 9px !important;
}

@media (hover: hover) and (pointer: fine) {
    .z-panel .room-info-data__qty--editable:hover {
        background: rgba(0, 102, 204, 0.10) !important;
        border-color: rgba(0, 102, 204, 0.30) !important;
        box-shadow: none !important;
        transform: translateY(-1px) !important;
        color: var(--text-primary) !important;
    }
}

/* Price */
.z-panel .room-info-data__trade-amt,
.z-panel .room-info-data__trade-amt--compact,
.z-panel .room_info_data__trade-amt--compact {
    color: #047857 !important;
    font-weight: var(--fw-bold) !important;
    font-variant-numeric: tabular-nums;
    font-size: 14px !important;
}

/* Action buttons */
.z-panel .room-info-data__details-btn,
.z-panel .room-info-data__delete-btn {
    background: var(--bg-surface-2) !important;
    border: 1px solid var(--border) !important;
    box-shadow: none !important;
}

.z-panel .room-info-data__delete-btn {
    color: #dc2626 !important;
}

    .z-panel .room-info-data__details-btn:hover,
    .z-panel .room-info-data__delete-btn:hover:not(:disabled) {
        background: var(--bg-surface-2) !important;
    }

/* Suggestions */
.z-panel .room-info-data__suggestion-chip {
    background: var(--bg-surface-2) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-muted) !important;
}

.z-panel .room-info-data__suggestion-chip-count {
    background: rgba(0,0,0,0.06) !important;
    border: 1px solid rgba(0,0,0,0.06) !important;
}

.z-panel .room-info-data__suggestions-panel {
    border: 1px solid var(--border) !important;
    border-left: 4px solid var(--brand-primary) !important;
    border-radius: var(--r-16) !important;
    box-shadow: 0 8px 18px rgba(15,23,42,.05) !important;
}

.z-panel .room-info-data__suggestion-add {
    color: var(--brand-primary) !important;
}

    .z-panel .room-info-data__suggestion-add:hover {
        background: rgba(0, 102, 204, 0.10) !important;
    }

/* Delete outline button (room + delete all) */
.z-panel .room-info-data__btn--danger-outline {
    background: transparent !important;
    color: #dc2626 !important;
    border: 1px solid rgba(220,38,38,0.55) !important;
    box-shadow: none !important;
}

    .z-panel .room-info-data__btn--danger-outline:hover:not(:disabled) {
        background: rgba(220,38,38,0.08) !important;
        border-color: rgba(220,38,38,0.70) !important;
    }

/* z-panel close button */
.z-panel .room-info-data__close {
    position: absolute;
    top: 10px;
    right: 0;
    width: 38px;
    height: 38px;
    border-radius: var(--r-12);
    border: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: none;
    transition: background 120ms ease, border-color 120ms ease, transform 80ms ease;
}

    .z-panel .room-info-data__close:hover {
        background: var(--bg-surface-2);
    }

    .z-panel .room-info-data__close:active {
        transform: translateY(1px);
    }


/* =========================================================
   OFFCANVAS: fix left/right padding (remove double-inset)
   ========================================================= */
@media (max-width: 768px) {

    /* One source of horizontal padding: the panel header + body */
    .room-info-data.offcanvas-open .room-info-data__header,
    .room-info-data.offcanvas-open .room-info-data__body {
        padding-left: calc(14px + env(safe-area-inset-left, 0px)) !important;
        padding-right: calc(14px + env(safe-area-inset-right, 0px)) !important;
    }

    /* Kill extra horizontal insets coming from inner containers/cards */
    .room-info-data.offcanvas-open .room-info-data__trade-card,
    .room-info-data.offcanvas-open .room-info-data__item-panel,
    .room-info-data.offcanvas-open .room-info-data__scope-actions,
    .room-info-data.offcanvas-open .room-info-data__trade-row,
    .room-info-data.offcanvas-open .room-info-data__trade-rowwrap {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* If any rows were using margin as "spacing", keep spacing via padding instead */
    .room-info-data.offcanvas-open .room-info-data__trade-body {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /*
     * z-panel overrides set .room-info-data__header { padding: 14px 0 10px 0 !important }
     * which resets padding-top and loses the safe-area inset.
     * This more-specific rule restores it when the offcanvas is open.
     *
     * The close button uses position: absolute; top: 10px (from .z-panel .room-info-data__close)
     * so it also needs its own safe-area offset, otherwise it stays behind the status bar.
     */
    .z-panel .room-info-data.offcanvas-open .room-info-data__header {
        padding-top: calc(12px + env(safe-area-inset-top, 0px)) !important;
    }

    .z-panel .room-info-data.offcanvas-open .room-info-data__close {
        top: calc(10px + env(safe-area-inset-top, 0px)) !important;
    }
}


/* =========================================================
   OFFCANVAS: make scope-scroll the real scroller (Android-safe)
   ========================================================= */

.room-info-data.offcanvas-open .room-info-data__panel {
    position: fixed;
    inset: 0 0 0 auto; /* right panel */
    height: 100dvh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
}

/* header stays fixed */
.room-info-data.offcanvas-open .room-info-data__header {
    flex: 0 0 auto;
}

/* body becomes a flex column container (not the scroller) */
.room-info-data.offcanvas-open .room-info-data__body {
    flex: 1 1 auto;
    min-height: 0; /* REQUIRED or scroll will clip */
    display: flex;
    flex-direction: column;
}

/* THIS is the scroller */
.room-info-data.offcanvas-open .room-info-data__scope {
    flex: 1 1 auto;
    min-height: 0; /* REQUIRED */
    display: flex;
    flex-direction: column;
}

.room-info-data.offcanvas-open .room-info-data__scope-scroll {
    flex: 1 1 auto;
    min-height: 0; /* REQUIRED */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* prevents last items hiding under Android nav bar / gesture area */
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
}

/* fallback for browsers without dvh */
@supports not (height: 100dvh) {
    .room-info-data.offcanvas-open .room-info-data__panel {
        height: 100vh;
        max-height: 100vh;
    }
}


.roomplan-preview {
    width: 100%;
    height: min(60vh, 520px); /* responsive height on phones/tablets */
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

    .roomplan-preview svg {
        width: 100%;
        height: 100%;
        display: block;
    }


/* =========================================================
   RoomScanOverlay: ensure it sits above offcanvas panel
   ========================================================= */
.rp-scan-ovl {
    z-index: 2147483003 !important;
}


/* Card header: title + inline Update button */
.room-info-data__info-card-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

    .room-info-data__info-card-hdr .room-info-data__info-card-title {
        margin-bottom: 0;
    }

/* Small button variant (used in card headers) */
.room-info-data__btn--sm {
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 10px;
}

/* Blue primary style for Update button in card header */
.room-info-data__info-card-hdr > .room-info-data__btn {
    border-color: rgba(37, 99, 235, 0.35);
    background: linear-gradient(180deg, rgba(37,99,235,1), rgba(29,78,216,1));
    color: #fff;
    box-shadow: 0 6px 16px rgba(37,99,235,.22);
}

    .room-info-data__info-card-hdr > .room-info-data__btn:hover:not(:disabled) {
        transform: translateY(-1px);
        filter: brightness(1.02);
        box-shadow: 0 10px 22px rgba(37,99,235,.28);
    }

/* Scan banner row */
.room-info-data__scan-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 10px;
    margin-bottom: 10px;
    border-radius: 10px;
    background: rgba(37,99,235,.04);
    border: 1px solid rgba(37,99,235,.12);
}

.room-info-data__scan-badge {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Both action buttons sit on one row */
.room-info-data__scan-banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}


/* =========================================================
   Room Data workbench polish
   ========================================================= */
.room-info-data__header {
    box-shadow: inset 0 1px 0 rgba(255,255,255,.78);
}

.room-info-data__titlewrap {
    max-width: 100%;
}

.room-info-data__title {
    max-width: min(420px, 100%);
}

.room-info-data__subtitle {
    max-width: 520px;
}

.room-info-data__tabs-row {
    align-items: center;
}

.room-info-data__total-pill {
    box-shadow: 0 1px 2px rgba(15,23,42,.05);
}

.room-info-data__btn--primary {
    border-color: rgba(37, 99, 235, 0.36);
    background: linear-gradient(180deg, #2563eb, #1d4ed8);
    color: #fff;
    box-shadow: 0 10px 22px rgba(37,99,235,.18);
}

    .room-info-data__btn--primary:hover:not(:disabled) {
        background: linear-gradient(180deg, #2563eb, #1e40af);
        border-color: rgba(37, 99, 235, 0.48);
        box-shadow: 0 12px 26px rgba(37,99,235,.22);
        transform: translateY(-1px);
    }

.room-info-data__scope-actions {
    align-items: center;
    justify-content: flex-start;
    padding: 8px !important;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.90));
    box-shadow: 0 8px 20px rgba(15,23,42,.04);
}

.room-info-data__scope-action-danger {
    margin-left: auto;
}

.room-info-data__btn--danger-subtle {
    min-height: 28px;
    padding: 5px 9px !important;
    border-radius: 999px !important;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .01em;
    background: rgba(255,255,255,.62);
    border-color: rgba(220,38,38,.22) !important;
    color: #b91c1c;
    box-shadow: none !important;
}

    .room-info-data__btn--danger-subtle:hover:not(:disabled) {
        background: rgba(254,242,242,.88);
        border-color: rgba(220,38,38,.34) !important;
        color: #991b1b;
    }

.room-info-data__trade-card {
    border-color: rgba(15,23,42,.08);
    border-radius: 18px;
    background: linear-gradient(180deg, #fff, rgba(248,250,252,.88));
    box-shadow: 0 10px 22px rgba(15,23,42,.04);
}

.room-info-data__trade-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 14px;
    background: linear-gradient(180deg, rgba(248,250,252,.96), rgba(241,245,249,.72));
    border-bottom: 1px solid rgba(15,23,42,.065);
}

.room-info-data__trade-title-wrap {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.room-info-data__trade-title {
    color: #1e293b;
    font-size: 13px;
    font-weight: 950;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.room-info-data__trade-count {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 21px;
    padding: 3px 8px;
    border: 1px solid rgba(15,23,42,.07);
    border-radius: 999px;
    background: rgba(255,255,255,.74);
    color: #475569;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0;
    text-transform: none;
}

.room-info-data__trade-subtotal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(15,23,42,.08);
    background: #fff;
    color: #0f172a;
    font-size: 12px;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.room-info-data__trade-body {
    gap: 8px;
    padding: 8px;
    background: rgba(248,250,252,.58);
}

.room-info-data__trade-row {
    align-items: flex-start;
    border-color: rgba(15,23,42,.075);
    box-shadow: 0 1px 0 rgba(15,23,42,.02);
}

    .room-info-data__trade-row:hover {
        transform: translateY(-1px);
    }

.room-info-data__trade-row--warning {
    background-color: #fff !important;
    border-color: rgba(245, 158, 11, 0.24) !important;
    box-shadow: inset 3px 0 0 rgba(245, 158, 11, 0.72), 0 1px 0 rgba(15,23,42,.02) !important;
}

    .room-info-data__trade-row--warning:hover {
        background-color: #fffaf0 !important;
        border-color: rgba(245, 158, 11, 0.34) !important;
    }

.room-info-data__trade-item-info {
    gap: 6px;
}

.room-info-data__trade-item-title,
.room-info-data__trade-item-title--compact,
.room_info_data__trade-item-title--compact {
    font-size: 13px;
    font-weight: 760;
    line-height: 1.28;
    white-space: normal;
}

.room-info-data__trade-item-meta {
    gap: 7px;
}

.room-info-data__qty,
.room-info-data__trade-amt {
    min-height: 26px;
}

.room-info-data__qty--zero {
    animation: none;
    background-color: #fff7ed;
    border-color: rgba(245, 158, 11, 0.34);
    color: #9a3412;
}

.room-info-data__trade-amt {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.09);
    border: 1px solid rgba(16, 185, 129, 0.14);
    line-height: 1;
}

.room-info-data__trade-amt--zero,
.room_info_data__trade-amt--zero {
    background: #fff7ed;
    border-color: rgba(245, 158, 11, 0.30);
    color: #9a3412;
}

.room-info-data__issue-chips {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.room-info-data__issue-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #fffbeb;
    border: 1px solid rgba(245, 158, 11, 0.26);
    color: #92400e;
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
}

.room-info-data__issue-chip--action {
    min-height: 24px;
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
    cursor: pointer;
    background: rgba(0,102,204,.08);
    border-color: rgba(0,102,204,.22);
    color: #0b5cad;
    transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, transform 120ms ease;
}

    .room-info-data__issue-chip--action:hover:not(:disabled) {
        transform: translateY(-1px);
        background: rgba(0,102,204,.12);
        border-color: rgba(0,102,204,.34);
        color: #084f9d;
    }

    .room-info-data__issue-chip--action:focus-visible {
        outline: 3px solid rgba(0,102,204,.18);
        outline-offset: 2px;
    }

    .room-info-data__issue-chip--action:disabled {
        cursor: wait;
        opacity: .68;
        transform: none;
    }

.room-info-data__row-actions {
    padding-top: 1px;
}

.room-info-data__details-btn,
.room-info-data__delete-btn {
    width: 30px;
    height: 30px;
    transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.room-info-data__details-btn {
    color: #475569;
}

.room-info-data__delete-btn {
    color: #b91c1c;
}

.room-info-data__suggestion-chip {
    vertical-align: middle;
    margin-top: 2px;
    background: #f8fafc;
}

.room-info-data__empty,
.room-info-data__skeleton {
    box-shadow: 0 8px 22px rgba(15,23,42,.04);
}

.room-info-data__narrative-debug {
    opacity: .86;
}

/* Match the z-panel shell used by the Room Coach workspace. */
.z-panel .room-info-data__header {
    background: linear-gradient(135deg, rgba(0,102,204,.06), rgba(15,23,42,.018)) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.75) !important;
}

.z-panel .room-info-data__scope-actions {
    justify-content: flex-start !important;
    padding: 8px !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--r-16) !important;
    background: linear-gradient(180deg, var(--bg-surface), var(--bg-surface-2)) !important;
    box-shadow: 0 8px 20px rgba(15,23,42,.04) !important;
}

.z-panel .room-info-data__scope-action-danger {
    margin-left: auto !important;
}

.z-panel .room-info-data__btn--danger-subtle {
    min-height: 28px !important;
    padding: 5px 9px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    background: rgba(255,255,255,.62) !important;
    border-color: rgba(220,38,38,.22) !important;
    color: #b91c1c !important;
    box-shadow: none !important;
}

    .z-panel .room-info-data__btn--danger-subtle:hover:not(:disabled) {
        background: rgba(254,242,242,.88) !important;
        border-color: rgba(220,38,38,.34) !important;
        color: #991b1b !important;
    }

.z-panel .room-info-data__btn--primary {
    border-color: rgba(0, 102, 204, 0.38) !important;
    background: linear-gradient(180deg, var(--brand-primary), #0b5cad) !important;
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(0,102,204,.16) !important;
}

.z-panel .room-info-data__trade-card {
    border-color: var(--border) !important;
    border-radius: var(--r-16) !important;
    background: linear-gradient(180deg, var(--bg-surface), var(--bg-surface-2)) !important;
    box-shadow: 0 10px 22px rgba(15,23,42,.04) !important;
}

.z-panel .room-info-data__trade-hdr {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 11px 12px !important;
    background: linear-gradient(180deg, rgba(248,250,252,.96), rgba(241,245,249,.72)) !important;
    border-bottom: 1px solid var(--border) !important;
}

.z-panel .room-info-data__trade-count {
    display: inline-flex !important;
    width: fit-content !important;
    min-height: 21px !important;
    padding: 3px 8px !important;
    border: 1px solid var(--border) !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.74) !important;
    color: var(--text-secondary) !important;
}

.z-panel .room-info-data__trade-subtotal {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-primary) !important;
}

.z-panel .room-info-data__trade-body {
    padding: 8px !important;
    background: rgba(248, 250, 252, 0.58) !important;
}

.z-panel .room-info-data__trade-row {
    align-items: flex-start !important;
    box-shadow: 0 1px 0 rgba(15,23,42,.02) !important;
}

.z-panel .room-info-data__trade-row--warning {
    background: var(--bg-surface) !important;
    border-color: rgba(245, 158, 11, 0.24) !important;
    box-shadow: inset 3px 0 0 rgba(245, 158, 11, 0.72), 0 1px 0 rgba(15,23,42,.02) !important;
}

    .z-panel .room-info-data__trade-row--warning:hover {
        background: rgba(245, 158, 11, 0.055) !important;
    }

.z-panel .room-info-data__trade-rowwrap--focused > .room-info-data__trade-row {
    border-color: rgba(37, 99, 235, 0.32) !important;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.08), var(--bg-surface) 28%) !important;
    box-shadow: inset 4px 0 0 rgba(37, 99, 235, 0.72), 0 10px 24px rgba(37, 99, 235, 0.08) !important;
}

.z-panel .room-info-data__qty--zero {
    animation: none !important;
    background: rgba(245, 158, 11, 0.10) !important;
    border-color: rgba(245, 158, 11, 0.30) !important;
    color: #92400e !important;
}

.z-panel .room-info-data__trade-amt {
    background: rgba(16, 185, 129, 0.09) !important;
    border: 1px solid rgba(16, 185, 129, 0.14) !important;
    border-radius: 999px !important;
    padding: 4px 9px !important;
}

.z-panel .room-info-data__trade-amt--zero,
.z-panel .room_info_data__trade-amt--zero {
    background: rgba(245, 158, 11, 0.10) !important;
    border-color: rgba(245, 158, 11, 0.30) !important;
    color: #92400e !important;
}

.z-panel .room-info-data__issue-chip {
    background: rgba(245, 158, 11, 0.10) !important;
    border-color: rgba(245, 158, 11, 0.24) !important;
    color: #92400e !important;
}

.z-panel .room-info-data__issue-chip--action {
    background: rgba(0,102,204,.08) !important;
    border-color: rgba(0,102,204,.22) !important;
    color: var(--brand-primary-2) !important;
}

    .z-panel .room-info-data__issue-chip--action:hover:not(:disabled) {
        background: rgba(0,102,204,.12) !important;
        border-color: rgba(0,102,204,.34) !important;
        color: var(--brand-primary) !important;
    }

@media (max-width: 700px) {
    .room-info-data__scope-actions,
    .z-panel .room-info-data__scope-actions {
        align-items: stretch !important;
    }

    .room-info-data__scope-actions .room-info-data__btn {
        display: inline-flex;
        align-items: center;
        flex: 1 1 auto;
        justify-content: center;
    }

    .room-info-data__scope-action-danger,
    .z-panel .room-info-data__scope-action-danger {
        margin-left: 0 !important;
    }

    .room-info-data__trade-hdr {
        align-items: flex-start;
    }

    .room-info-data__trade-row {
        flex-direction: column;
    }

    .room-info-data__row-actions {
        align-self: flex-end;
        flex-direction: row;
    }
}

@media (max-width: 520px) {
    .room-info-data__trade-hdr {
        flex-direction: column;
        align-items: flex-start;
    }

    .room-info-data__trade-subtotal {
        align-self: flex-start;
    }

    .room-info-data__trade-item-meta {
        align-items: flex-start;
    }
}


/* =========================================================
   Scope tab visual polish
   ========================================================= */

.room-info-data__trade-card {
    position: relative;
    margin-bottom: 14px;
}

.room-info-data__trade-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, rgba(37,99,235,.72), rgba(14,165,233,.30));
    opacity: .72;
    pointer-events: none;
}

.room-info-data__trade-title-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.room-info-data__trade-title {
    color: #0f172a;
    font-size: 14px;
    font-weight: 950;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.room-info-data__trade-count {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    padding: 3px 9px;
    border: 1px solid rgba(37,99,235,.14);
    border-radius: 999px;
    background: rgba(37,99,235,.07);
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
}

.room-info-data__trade-subtotal {
    display: inline-flex;
    align-items: center;
    min-height: 29px;
    padding: 5px 11px;
    border: 1px solid rgba(16,185,129,.18);
    border-radius: 999px;
    background: rgba(16,185,129,.09);
    color: #047857;
    font-size: 13px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.room-info-data__trade-row {
    background:
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.78));
    border-color: rgba(15,23,42,.08);
    box-shadow: 0 4px 12px rgba(15,23,42,.028);
    transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background 140ms ease;
}

.room-info-data__trade-row:hover {
    background:
        linear-gradient(180deg, rgba(255,255,255,1), rgba(239,246,255,.78));
    border-color: rgba(37,99,235,.18);
    box-shadow: 0 10px 24px rgba(15,23,42,.055);
}

.room-info-data__trade-item-title {
    color: #0f172a;
    font-size: 13px;
    font-weight: 760;
    letter-spacing: -.01em;
}

.room-info-data__scope-item-narrative-leaf {
    margin-top: 5px;
    color: #64748b;
    font-size: .75rem;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.room-info-data__scope-item-narrative-text {
    color: #64748b;
    font-weight: 600;
}

.room-info-data__qty {
    border-color: rgba(37,99,235,.14);
    background: rgba(37,99,235,.07);
    color: #1d4ed8;
    font-weight: 850;
}

.room-info-data__trade-amt {
    border-color: rgba(16,185,129,.18);
    background: rgba(16,185,129,.09);
    color: #047857;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.62);
}

.room-info-data__issue-chip {
    border-radius: 999px;
    background: rgba(245,158,11,.10);
    border-color: rgba(245,158,11,.26);
    color: #92400e;
}

.room-info-data__issue-chip--action {
    background: rgba(245,158,11,.13);
    border-color: rgba(245,158,11,.32);
    color: #92400e;
    box-shadow: 0 8px 18px rgba(245,158,11,.08);
}

.room-info-data__issue-chip--action:hover:not(:disabled) {
    background: rgba(245,158,11,.18);
    border-color: rgba(245,158,11,.42);
    color: #78350f;
}

.room-info-data__details-btn,
.room-info-data__delete-btn {
    background: rgba(255,255,255,.82);
    box-shadow: 0 5px 14px rgba(15,23,42,.06);
}

.room-info-data__details-btn:hover {
    background: rgba(239,246,255,.96);
    border-color: rgba(37,99,235,.24);
    color: #1d4ed8;
    box-shadow: 0 8px 18px rgba(37,99,235,.10);
}

.room-info-data__delete-btn:hover:not(:disabled) {
    background: rgba(254,242,242,.98);
    border-color: rgba(220,38,38,.34);
    color: #991b1b;
}

.room-info-data__delete-btn--remove {
    width: auto;
    min-width: 68px;
    gap: 4px;
    padding: 0 9px;
    border-color: rgba(185,28,28,.16);
    background: rgba(255,255,255,.76);
    color: #9f1239;
    font-size: 12px;
    font-weight: 650;
    box-shadow: none;
}

.room-info-data__delete-btn--remove:hover:not(:disabled) {
    background: rgba(254,242,242,.78);
    border-color: rgba(185,28,28,.26);
    color: #7f1d1d;
    box-shadow: 0 5px 12px rgba(185,28,28,.07);
}

.room-info-data__delete-btn-icon {
    font-size: 13px;
    line-height: 1;
    opacity: .82;
}

.room-info-data__delete-btn-text {
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .01em;
}

.room-info-data__trade-rowwrap--focused > .room-info-data__trade-row {
    background: linear-gradient(90deg, rgba(37,99,235,.10), rgba(255,255,255,.98) 32%) !important;
    box-shadow:
        inset 4px 0 0 rgba(37,99,235,.78),
        0 16px 38px rgba(37,99,235,.13) !important;
}

.z-panel .room-info-data__scope-summary,
.z-panel .room-info-data__trade-card,
.z-panel .room-info-data__trade-row {
    border-color: var(--border) !important;
}

.z-panel .room-info-data__scope-summary {
    background:
        radial-gradient(circle at 0% 0%, rgba(0,102,204,.10), transparent 14rem),
        linear-gradient(180deg, var(--bg-surface), var(--bg-surface-2)) !important;
    box-shadow: 0 10px 24px rgba(15,23,42,.045) !important;
}

.z-panel .room-info-data__trade-card {
    position: relative !important;
    margin-bottom: 14px !important;
    border-radius: 18px !important;
    background: linear-gradient(180deg, var(--bg-surface), var(--bg-surface-2)) !important;
    box-shadow: 0 16px 34px rgba(15,23,42,.055) !important;
}

.z-panel .room-info-data__trade-card::before {
    background: linear-gradient(180deg, rgba(0,102,204,.72), rgba(14,165,233,.28)) !important;
}

.z-panel .room-info-data__trade-hdr {
    background:
        radial-gradient(circle at 0% 0%, rgba(0,102,204,.10), transparent 12rem),
        linear-gradient(180deg, var(--bg-surface), var(--bg-surface-2)) !important;
}

.z-panel .room-info-data__trade-title {
    color: var(--text-primary) !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    letter-spacing: .04em !important;
}

.z-panel .room-info-data__trade-count {
    border-color: rgba(0,102,204,.16) !important;
    background: rgba(0,102,204,.07) !important;
    color: var(--brand-primary-2) !important;
}

.z-panel .room-info-data__trade-subtotal {
    border-color: rgba(16,185,129,.18) !important;
    background: rgba(16,185,129,.09) !important;
    color: #047857 !important;
}

.z-panel .room-info-data__trade-row {
    background: linear-gradient(180deg, var(--bg-surface), rgba(248,250,252,.86)) !important;
    box-shadow: 0 8px 20px rgba(15,23,42,.035) !important;
}

.z-panel .room-info-data__trade-row:hover {
    background: linear-gradient(180deg, var(--bg-surface), rgba(239,246,255,.72)) !important;
    border-color: rgba(0,102,204,.18) !important;
    box-shadow: 0 14px 32px rgba(15,23,42,.075) !important;
}

.z-panel .room-info-data__scope-item-narrative-text {
    color: var(--text-secondary) !important;
}

@media (max-width: 700px) {
    .room-info-data__trade-title-wrap {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .room-info-data__trade-subtotal {
        width: auto;
    }
}


/* =========================================================
   Expanded item details polish
   ========================================================= */
.room-info-data__item-panel {
    margin: 0 10px 12px 10px;
    padding: 9px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(248,250,252,.86), rgba(241,245,249,.70));
    box-shadow: inset 3px 0 0 rgba(37,99,235,.18), 0 8px 20px rgba(15,23,42,.04);
}

.room-info-data__item-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 1px 2px 8px;
}

.room-info-data__item-panel-title {
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: -0.01em;
}

.room-info-data__item-panel-subtitle,
.room-info-data__panel-helper {
    color: #64748b;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
}

.room-info-data__item-panel-grid {
    display: grid;
    grid-template-columns: minmax(320px, 1.2fr) minmax(280px, .8fr);
    gap: 10px;
    align-items: start;
}

.room-info-data__panel-section {
    border-color: rgba(15,23,42,.08);
    padding: 11px;
    box-shadow: 0 1px 0 rgba(15,23,42,.02);
}

.room-info-data__panel-heading {
    display: grid;
    gap: 3px;
    margin-bottom: 7px;
}

.room-info-data__panel-title {
    margin-bottom: 0;
    color: #1e293b;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .01em;
}

.room-info-data__panel-section--allowance {
    background: linear-gradient(180deg, #fff, #fbfdff);
}

.room-info-data__panel-section--allowance .room-info-data__allow-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.room-info-data__panel-section--allowance .room-info-data__allow-name {
    margin-bottom: 0;
    white-space: normal;
    color: #334155;
    line-height: 1.3;
}

.room-info-data__panel-section--allowance .room-info-data__panel-row {
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.room-info-data__panel-section--allowance .room-info-data__qty {
    background: rgba(37,99,235,.07);
    border-color: rgba(37,99,235,.16);
    color: #1d4ed8;
}

.room-info-data__panel-section--note {
    gap: 8px;
}

.room-info-data__item-panel-grid > .room-info-data__panel-section--note:first-child {
    grid-column: 1 / -1;
}

.room-info-data__panel-textarea {
    min-height: 76px;
    border-color: rgba(15,23,42,.12);
    border-radius: 12px;
    background: #fff;
    color: #0f172a;
    line-height: 1.45;
    transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

    .room-info-data__panel-textarea:focus {
        outline: none;
        border-color: rgba(37,99,235,.42);
        box-shadow: 0 0 0 4px rgba(37,99,235,.12);
    }

.room-info-data__panel-actions {
    justify-content: flex-end;
    margin-top: 0;
}

.room-info-data__panel-btn {
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 800;
}

.room-info-data__panel-section--photos {
    grid-column: 1 / -1;
    display: grid;
    gap: 8px;
}

.room-info-data__images--item-details {
    display: grid;
    gap: 8px;
}

.room-info-data__images--item-details .room-info-data__uploader {
    margin-bottom: 0;
    padding: 10px;
    border-color: rgba(15,23,42,.08);
    background: #fff;
}

.room-info-data__images--item-details .room-info-data__uploader-title {
    font-size: 12px;
}

.room-info-data__images--item-details .room-info-data__uploader-sub {
    margin-bottom: 7px;
    font-size: 11px;
}

.room-info-data__images--item-details .room-info-data__dropzone {
    min-height: 54px;
    border-width: 1.5px;
    background: rgba(248,250,252,.76);
}

.room-info-data__images--item-details .room-info-data__dropzone-text {
    padding: 6px;
}

.room-info-data__images--item-details .room-info-data__dropzone-strong {
    font-size: 12px;
}

.room-info-data__images--item-details .room-info-data__dropzone-muted {
    font-size: 11px;
}

.room-info-data__images--item-details .room-info-data__upload-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-top: 7px;
    gap: 7px;
}

.room-info-data__images--item-details .room-info-data__empty {
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 12px;
}

.room-info-data__images--item-details .room-info-data__pending {
    margin-top: 0;
}

.room-info-data__images--item-details .room-info-data__pending-title {
    margin-bottom: 6px;
}

.room-info-data__images--item-details .room-info-data__thumb-grid {
    grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
    gap: 8px;
}

.room-info-data__details-btn {
    position: relative;
}

    .room-info-data__details-btn:hover {
        border-color: rgba(37,99,235,.22);
        color: #1d4ed8;
    }

.room-info-data__chev {
    transform-origin: center;
}

.room-info-data__chev--open,
.roominfo_data__chev--open {
    color: #1d4ed8;
}

.z-panel .room-info-data__item-panel {
    background: linear-gradient(180deg, var(--bg-surface-2), rgba(248,250,252,.68)) !important;
    border-color: var(--border) !important;
    box-shadow: inset 3px 0 0 rgba(0,102,204,.18), 0 8px 20px rgba(15,23,42,.04) !important;
}

.z-panel .room-info-data__item-panel-title {
    color: var(--text-primary) !important;
}

.z-panel .room-info-data__item-panel-subtitle,
.z-panel .room-info-data__panel-helper {
    color: var(--text-secondary) !important;
}

.z-panel .room-info-data__panel-section {
    border-color: var(--border) !important;
    background: var(--bg-surface) !important;
}

.z-panel .room-info-data__panel-title {
    color: var(--text-primary) !important;
}

.z-panel .room-info-data__panel-textarea {
    border-color: var(--border) !important;
}

.z-panel .room-info-data__images--item-details .room-info-data__uploader,
.z-panel .room-info-data__images--item-details .room-info-data__dropzone {
    border-color: var(--border) !important;
}

.z-panel .room-info-data__delete-btn--remove {
    border-color: rgba(185,28,28,.16) !important;
    background: var(--bg-surface) !important;
    color: #9f1239 !important;
    box-shadow: none !important;
}

.z-panel .room-info-data__delete-btn--remove:hover:not(:disabled) {
    border-color: rgba(185,28,28,.26) !important;
    background: rgba(254,242,242,.78) !important;
    color: #7f1d1d !important;
}

@media (max-width: 900px) {
    .room-info-data__item-panel-grid {
        grid-template-columns: 1fr;
    }

    .room-info-data__panel-section--photos {
        grid-column: auto;
    }
}

@media (max-width: 640px) {
    .room-info-data__item-panel {
        margin: 0 0 12px 0;
        padding: 9px;
    }

    .room-info-data__panel-section--allowance .room-info-data__allow-row {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .room-info-data__panel-section--allowance .room-info-data__panel-row,
    .room-info-data__panel-actions,
    .room-info-data__images--item-details .room-info-data__upload-actions {
        justify-content: flex-start;
    }

    .room-info-data__images--item-details .room-info-data__upload-actions .room-info-data__btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}


/* =========================================================
   Info tab measurement polish
   ========================================================= */
.room-info-data__measurement-card,
.room-info-data__calculated-card {
    background: linear-gradient(180deg, #fff, rgba(248,250,252,.72));
    border-color: rgba(15,23,42,.08);
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(15,23,42,.04);
}

.room-info-data__measurement-card {
    display: grid;
    gap: 12px;
}

.room-info-data__info-card-hdr {
    align-items: flex-start;
}

.room-info-data__info-card-title {
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: -0.01em;
    margin-bottom: 0;
}

.room-info-data__info-card-helper,
.room-info-data__measurement-group-helper {
    color: #64748b;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
}

.room-info-data__measurement-group {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 14px;
    background: #fff;
}

.room-info-data__measurement-group--dimensions {
    background: linear-gradient(180deg, #fff, #fbfdff);
}

.room-info-data__measurement-group-hdr {
    display: grid;
    gap: 3px;
}

.room-info-data__measurement-group-title {
    color: #1e293b;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .01em;
}

.room-info-data__dimension-list {
    display: grid;
    gap: 8px;
}

.room-info-data__dimension-row {
    display: grid;
    grid-template-columns: minmax(94px, 0.42fr) minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 9px;
    border: 1px solid rgba(15,23,42,.07);
    border-radius: 12px;
    background: rgba(248,250,252,.72);
}

.room-info-data__dimension-label {
    display: grid;
    gap: 2px;
    min-width: 0;
}

    .room-info-data__dimension-label span {
        color: #0f172a;
        font-size: 13px;
        font-weight: 900;
    }

    .room-info-data__dimension-label small {
        color: #64748b;
        font-size: 11px;
        font-weight: 650;
    }

.room-info-data__dimension-inputs {
    display: grid;
    grid-template-columns: repeat(2, minmax(82px, 1fr));
    gap: 8px;
}

.room-info-data__field--unit {
    gap: 4px;
}

.room-info-data__measurement-card .room-info-data__label {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .01em;
}

.room-info-data__measurement-card .room-info-data__input {
    height: 38px;
    border-color: rgba(15,23,42,.12);
    border-radius: 11px;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}

    .room-info-data__measurement-card .room-info-data__input:focus {
        border-color: rgba(37,99,235,.42);
        box-shadow: 0 0 0 4px rgba(37,99,235,.12);
    }

.room-info-data__measurement-hint {
    padding: 9px 11px;
    border: 1px solid rgba(37,99,235,.14);
    border-radius: 12px;
    background: rgba(37,99,235,.06);
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.35;
}

.room-info-data__measurement-secondary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.room-info-data__measurement-grid {
    gap: 8px;
}

.room-info-data__measurement-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-top: 2px;
}

.room-info-data__info-update-btn {
    min-height: 38px;
}

.room-info-data__calculated-card {
    display: grid;
    gap: 12px;
}

.room-info-data__calculated-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
}

.room-info-data__calc-tile {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 11px;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 14px;
    background: #fff;
}

.room-info-data__calc-tile .room-info-data__k {
    color: #64748b;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.room-info-data__calc-tile .room-info-data__v {
    color: #0f172a;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
}

.z-panel .room-info-data__measurement-card,
.z-panel .room-info-data__calculated-card,
.z-panel .room-info-data__measurement-group,
.z-panel .room-info-data__calc-tile {
    border-color: var(--border) !important;
}

.z-panel .room-info-data__measurement-card,
.z-panel .room-info-data__calculated-card {
    background: linear-gradient(180deg, var(--bg-surface), var(--bg-surface-2)) !important;
    box-shadow: 0 8px 22px rgba(15,23,42,.04) !important;
}

.z-panel .room-info-data__measurement-group,
.z-panel .room-info-data__calc-tile {
    background: var(--bg-surface) !important;
}

.z-panel .room-info-data__dimension-row {
    background: var(--bg-surface-2) !important;
    border-color: var(--border) !important;
}

.z-panel .room-info-data__info-card-title,
.z-panel .room-info-data__measurement-group-title,
.z-panel .room-info-data__dimension-label span,
.z-panel .room-info-data__calc-tile .room-info-data__v {
    color: var(--text-primary) !important;
}

.z-panel .room-info-data__info-card-helper,
.z-panel .room-info-data__measurement-group-helper,
.z-panel .room-info-data__dimension-label small,
.z-panel .room-info-data__calc-tile .room-info-data__k {
    color: var(--text-secondary) !important;
}

@media (max-width: 820px) {
    .room-info-data__calculated-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .room-info-data__measurement-secondary-grid {
        grid-template-columns: 1fr;
    }

    .room-info-data__dimension-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
}

@media (max-width: 460px) {
    .room-info-data__dimension-inputs,
    .room-info-data__calculated-grid {
        grid-template-columns: 1fr;
    }

    .room-info-data__measurement-actions {
        justify-content: stretch;
    }

    .room-info-data__info-update-btn {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================================
   ScopeBuilder Theme Rollout: Room Data
   Keeps room-info-data selectors for behavior and scopes the
   blue-card treatment to components opted into sb-* classes.
   ========================================================= */

.room-info-data__panel.sb-card {
    background: var(--sb-card-bg) !important;
    border: 1px solid var(--sb-card-border) !important;
    border-radius: var(--sb-radius) !important;
    box-shadow: var(--sb-shadow) !important;
    color: var(--sb-text);
    overflow: hidden;
}

.z-panel .room-info-data__panel.sb-card {
    background: var(--sb-card-bg) !important;
    border: 1px solid var(--sb-card-border) !important;
    border-radius: var(--sb-radius) !important;
    box-shadow: var(--sb-shadow) !important;
}

.room-info-data__header.sb-gradient-header,
.z-panel .room-info-data__header.sb-gradient-header {
    background: linear-gradient(135deg, var(--sb-blue-start) 0%, var(--sb-blue-end) 100%) !important;
    border: 0 !important;
    border-radius: calc(var(--sb-radius) - 1px) calc(var(--sb-radius) - 1px) 0 0 !important;
    color: #ffffff !important;
    padding: 14px !important;
}

.room-info-data__header.sb-gradient-header .room-info-data__title,
.room-info-data__header.sb-gradient-header .room-info-data__title.sb-card-title,
.z-panel .room-info-data__header.sb-gradient-header .room-info-data__title,
.z-panel .room-info-data__header.sb-gradient-header .room-info-data__title.sb-card-title {
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 800 !important;
    letter-spacing: 0;
}

.room-info-data__header.sb-gradient-header .room-info-data__subtitle,
.room-info-data__header.sb-gradient-header .room-info-data__subtitle.sb-card-subtitle,
.z-panel .room-info-data__header.sb-gradient-header .room-info-data__subtitle,
.z-panel .room-info-data__header.sb-gradient-header .room-info-data__subtitle.sb-card-subtitle {
    color: rgba(255, 255, 255, 0.84) !important;
    font-size: 12px;
    font-weight: 600;
}

.room-info-data__header.sb-gradient-header .room-info-data__tabs,
.z-panel .room-info-data__header.sb-gradient-header .room-info-data__tabs {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(255, 255, 255, 0.26) !important;
    border-radius: var(--sb-radius) !important;
}

.room-info-data__header.sb-gradient-header .room-info-data__tab,
.z-panel .room-info-data__header.sb-gradient-header .room-info-data__tab {
    color: rgba(255, 255, 255, 0.86) !important;
    border-radius: var(--sb-radius) !important;
}

.room-info-data__header.sb-gradient-header .room-info-data__tab:hover,
.z-panel .room-info-data__header.sb-gradient-header .room-info-data__tab:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    color: #ffffff !important;
}

.room-info-data__header.sb-gradient-header .room-info-data__tab--active,
.room-info-data__header.sb-gradient-header .room-info-data__tabs > button[aria-selected="true"],
.z-panel .room-info-data__header.sb-gradient-header .room-info-data__tab--active,
.z-panel .room-info-data__header.sb-gradient-header .room-info-data__tabs > button[aria-selected="true"] {
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: var(--sb-navy) !important;
    box-shadow: none !important;
}

.room-info-data__header.sb-gradient-header .room-info-data__total-pill,
.z-panel .room-info-data__header.sb-gradient-header .room-info-data__total-pill {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(255, 255, 255, 0.28) !important;
}

.room-info-data__header.sb-gradient-header .room-info-data__total-label,
.room-info-data__header.sb-gradient-header .room-info-data__total-value,
.z-panel .room-info-data__header.sb-gradient-header .room-info-data__total-label,
.z-panel .room-info-data__header.sb-gradient-header .room-info-data__total-value {
    color: #ffffff !important;
}

.room-info-data__header.sb-gradient-header .room-info-data__iconbtn.sb-action-btn,
.room-info-data__header.sb-gradient-header .room-info-data__header-action.sb-action-btn,
.room-info-data__header.sb-gradient-header .room-info-data__delete-inline.sb-action-btn,
.room-info-data__header.sb-gradient-header .room-info-data__close.sb-action-btn,
.z-panel .room-info-data__header.sb-gradient-header .room-info-data__iconbtn.sb-action-btn,
.z-panel .room-info-data__header.sb-gradient-header .room-info-data__header-action.sb-action-btn,
.z-panel .room-info-data__header.sb-gradient-header .room-info-data__delete-inline.sb-action-btn,
.z-panel .room-info-data__header.sb-gradient-header .room-info-data__close.sb-action-btn {
    min-height: 30px;
    border-radius: var(--sb-radius) !important;
    box-shadow: none !important;
    font-size: 12px;
    font-weight: 700;
}

.room-info-data__header.sb-gradient-header .room-info-data__iconbtn.sb-action-btn,
.room-info-data__header.sb-gradient-header .room-info-data__header-action.sb-action-btn,
.room-info-data__header.sb-gradient-header .room-info-data__close.sb-action-btn,
.z-panel .room-info-data__header.sb-gradient-header .room-info-data__iconbtn.sb-action-btn,
.z-panel .room-info-data__header.sb-gradient-header .room-info-data__header-action.sb-action-btn,
.z-panel .room-info-data__header.sb-gradient-header .room-info-data__close.sb-action-btn {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(255, 255, 255, 0.38) !important;
    color: #ffffff !important;
}

.room-info-data__header.sb-gradient-header .room-info-data__iconbtn.sb-action-btn:hover:not(:disabled),
.room-info-data__header.sb-gradient-header .room-info-data__header-action.sb-action-btn:hover:not(:disabled),
.room-info-data__header.sb-gradient-header .room-info-data__close.sb-action-btn:hover:not(:disabled),
.z-panel .room-info-data__header.sb-gradient-header .room-info-data__iconbtn.sb-action-btn:hover:not(:disabled),
.z-panel .room-info-data__header.sb-gradient-header .room-info-data__header-action.sb-action-btn:hover:not(:disabled),
.z-panel .room-info-data__header.sb-gradient-header .room-info-data__close.sb-action-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.24) !important;
    border-color: rgba(255, 255, 255, 0.60) !important;
}

.room-info-data__header.sb-gradient-header .room-info-data__delete-inline.sb-action-btn,
.room-info-data__header.sb-gradient-header .room-info-data__header-action--danger.sb-action-btn,
.z-panel .room-info-data__header.sb-gradient-header .room-info-data__delete-inline.sb-action-btn,
.z-panel .room-info-data__header.sb-gradient-header .room-info-data__header-action--danger.sb-action-btn {
    background: rgba(255, 255, 255, 0.92) !important;
    border-color: rgba(185, 28, 28, 0.24) !important;
    color: #991b1b !important;
}

.room-info-data__header.sb-gradient-header .room-info-data__delete-inline.sb-action-btn:hover:not(:disabled),
.room-info-data__header.sb-gradient-header .room-info-data__header-action--danger.sb-action-btn:hover:not(:disabled),
.z-panel .room-info-data__header.sb-gradient-header .room-info-data__delete-inline.sb-action-btn:hover:not(:disabled),
.z-panel .room-info-data__header.sb-gradient-header .room-info-data__header-action--danger.sb-action-btn:hover:not(:disabled) {
    background: #fef2f2 !important;
    border-color: rgba(185, 28, 28, 0.44) !important;
    color: #7f1d1d !important;
}

.room-info-data__body.sb-card-body,
.z-panel .room-info-data__body.sb-card-body {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
    padding: 14px !important;
    margin-top: 0 !important;
}

.room-info-data__info-card,
.room-info-data__measurement-group,
.room-info-data__dimension-row,
.room-info-data__calc-tile,
.room-info-data__image-guidance,
.room-info-data__empty,
.z-panel .room-info-data__info-card,
.z-panel .room-info-data__measurement-group,
.z-panel .room-info-data__dimension-row,
.z-panel .room-info-data__calc-tile,
.z-panel .room-info-data__image-guidance,
.z-panel .room-info-data__empty {
    border-color: var(--sb-card-border) !important;
    border-radius: var(--sb-radius) !important;
}

.room-info-data__info-card,
.room-info-data__measurement-group,
.room-info-data__calc-tile,
.z-panel .room-info-data__info-card,
.z-panel .room-info-data__measurement-group,
.z-panel .room-info-data__calc-tile {
    background: #ffffff !important;
    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.05) !important;
}

.room-info-data__dimension-row,
.z-panel .room-info-data__dimension-row {
    background: #f8fbff !important;
}

.room-info-data__btn.sb-action-btn,
.room-info-data__scanbtn.sb-action-btn,
.room-info-data__panel-btn.sb-action-btn,
.z-panel .room-info-data__btn.sb-action-btn,
.z-panel .room-info-data__scanbtn.sb-action-btn,
.z-panel .room-info-data__panel-btn.sb-action-btn {
    min-height: 30px;
    border-radius: var(--sb-radius) !important;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    box-shadow: none !important;
}

.room-info-data__btn.sb-action-btn:not(.room-info-data__btn--ghost):not(.room-info-data__btn--danger),
.room-info-data__btn--primary.sb-action-btn,
.z-panel .room-info-data__btn.sb-action-btn:not(.room-info-data__btn--ghost):not(.room-info-data__btn--danger),
.z-panel .room-info-data__btn--primary.sb-action-btn {
    background: var(--sb-navy) !important;
    border-color: var(--sb-navy) !important;
    color: #ffffff !important;
}

.room-info-data__btn--ghost.sb-action-btn,
.room-info-data__scanbtn.sb-action-btn,
.z-panel .room-info-data__btn--ghost.sb-action-btn,
.z-panel .room-info-data__scanbtn.sb-action-btn {
    background: #ffffff !important;
    border-color: rgba(30, 58, 138, 0.30) !important;
    color: var(--sb-navy) !important;
}

.room-info-data__btn--danger.sb-action-btn,
.z-panel .room-info-data__btn--danger.sb-action-btn {
    background: #ffffff !important;
    border-color: rgba(185, 28, 28, 0.35) !important;
    color: #991b1b !important;
}

.room-info-data__btn--danger.sb-action-btn:hover:not(:disabled),
.z-panel .room-info-data__btn--danger.sb-action-btn:hover:not(:disabled) {
    background: #fef2f2 !important;
    border-color: rgba(185, 28, 28, 0.55) !important;
    color: #7f1d1d !important;
}

@media (max-width: 768px) {
    .room-info-data__header.sb-gradient-header {
        gap: 10px !important;
    }

    .room-info-data__header.sb-gradient-header .room-info-data__tabs-row,
    .room-info-data__header.sb-gradient-header .room-info-data__hdr-meta {
        min-width: 0;
    }

    .room-info-data__header.sb-gradient-header .room-info-data__header-actions {
        justify-content: flex-start;
    }
}

/* =========================================================
   ScopeBuilder Theme Polish: Room Data scope categories
   Refines nested scope cards and price pills without changing
   scope behavior selectors.
   ========================================================= */

.room-info-data .room-info-data__trade-card.sb-card,
.z-panel .room-info-data .room-info-data__trade-card.sb-card {
    border-color: var(--sb-card-border) !important;
    border-radius: var(--sb-radius) !important;
    background: var(--sb-card-bg) !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .06) !important;
    overflow: hidden;
}

.room-info-data .room-info-data__trade-card.sb-card::before,
.z-panel .room-info-data .room-info-data__trade-card.sb-card::before {
    width: 3px !important;
    background: linear-gradient(180deg, var(--sb-blue-start), var(--sb-blue-end)) !important;
    opacity: .9 !important;
}

.room-info-data .room-info-data__trade-hdr.sb-card-header,
.z-panel .room-info-data .room-info-data__trade-hdr.sb-card-header {
    align-items: center;
    border-bottom: 1px solid var(--sb-card-border) !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
    padding: 12px 14px 12px 16px;
}

.room-info-data .room-info-data__trade-title.sb-card-title,
.z-panel .room-info-data .room-info-data__trade-title.sb-card-title {
    color: var(--sb-text) !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    letter-spacing: .03em !important;
}

.room-info-data .room-info-data__trade-count.sb-summary-tile,
.room-info-data .room-info-data__trade-subtotal.sb-summary-tile,
.room-info-data .room-info-data__qty.sb-summary-tile,
.room-info-data .room-info-data__trade-amt.sb-summary-tile,
.z-panel .room-info-data .room-info-data__trade-count.sb-summary-tile,
.z-panel .room-info-data .room-info-data__trade-subtotal.sb-summary-tile,
.z-panel .room-info-data .room-info-data__qty.sb-summary-tile,
.z-panel .room-info-data .room-info-data__trade-amt.sb-summary-tile {
    border-radius: var(--sb-inner-radius) !important;
    box-shadow: none !important;
    line-height: 1 !important;
}

.room-info-data .room-info-data__trade-count.sb-summary-tile,
.z-panel .room-info-data .room-info-data__trade-count.sb-summary-tile {
    border-color: rgba(14, 165, 233, .24) !important;
    background: #eff6ff !important;
    color: var(--sb-navy) !important;
}

.room-info-data .room-info-data__trade-subtotal.sb-summary-tile,
.room-info-data .room-info-data__trade-amt.sb-summary-tile,
.z-panel .room-info-data .room-info-data__trade-subtotal.sb-summary-tile,
.z-panel .room-info-data .room-info-data__trade-amt.sb-summary-tile {
    border-color: rgba(30, 58, 138, .22) !important;
    background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%) !important;
    color: var(--sb-navy) !important;
    font-weight: 900 !important;
}

.room-info-data .room-info-data__qty.sb-summary-tile,
.z-panel .room-info-data .room-info-data__qty.sb-summary-tile {
    border-color: rgba(14, 165, 233, .24) !important;
    background: #f0f9ff !important;
    color: #075985 !important;
}

.room-info-data .room-info-data__trade-row.sb-card,
.z-panel .room-info-data .room-info-data__trade-row.sb-card {
    border-color: var(--sb-card-border) !important;
    border-radius: var(--sb-radius) !important;
    background: #ffffff !important;
    box-shadow: 0 5px 16px rgba(15, 23, 42, .045) !important;
}

.room-info-data .room-info-data__trade-row.sb-card:hover,
.z-panel .room-info-data .room-info-data__trade-row.sb-card:hover {
    border-color: rgba(14, 165, 233, .34) !important;
    background: #f8fbff !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .075) !important;
}

.room-info-data .room-info-data__trade-row--warning.sb-card,
.z-panel .room-info-data .room-info-data__trade-row--warning.sb-card {
    border-color: rgba(245, 158, 11, .30) !important;
    background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%) !important;
}

.room-info-data .room-info-data__scope-item-narrative-leaf,
.z-panel .room-info-data .room-info-data__scope-item-narrative-leaf {
    color: var(--sb-muted) !important;
}

.room-info-data .room-info-data__details-btn.sb-action-btn,
.room-info-data .room-info-data__delete-btn.sb-action-btn,
.z-panel .room-info-data .room-info-data__details-btn.sb-action-btn,
.z-panel .room-info-data .room-info-data__delete-btn.sb-action-btn {
    min-height: 30px;
    border-radius: var(--sb-inner-radius) !important;
    padding: 6px 9px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    box-shadow: none !important;
}

.room-info-data .room-info-data__details-btn.sb-action-btn,
.z-panel .room-info-data .room-info-data__details-btn.sb-action-btn {
    background: #ffffff !important;
    border-color: rgba(30, 58, 138, .30) !important;
    color: var(--sb-navy) !important;
}

.room-info-data .room-info-data__delete-btn.sb-action-btn,
.z-panel .room-info-data .room-info-data__delete-btn.sb-action-btn {
    background: #ffffff !important;
    border-color: rgba(185, 28, 28, .30) !important;
    color: #991b1b !important;
}

.room-info-data .room-info-data__total-pill,
.z-panel .room-info-data .room-info-data__total-pill {
    border-color: rgba(30, 58, 138, .24) !important;
    border-radius: var(--sb-inner-radius) !important;
    background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%) !important;
    color: var(--sb-navy) !important;
    box-shadow: none !important;
}

.room-info-data .room-info-data__total-value,
.z-panel .room-info-data .room-info-data__total-value {
    color: var(--sb-navy) !important;
}

@media (max-width: 520px) {
    .room-info-data .room-info-data__trade-hdr.sb-card-header {
        align-items: flex-start;
    }

    .room-info-data .room-info-data__trade-subtotal.sb-summary-tile {
        align-self: flex-start;
    }
}
