.dropdown-roommap.show {
    padding: var(--px-20);
    display: flex !important;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 2px 20px #d1d1d1;
    border-radius: var(--px-12);
    left: -176px;
    top: 40px;
    /*width: var(--px-240);*/
}

.btn-filter-roomMap span {
    font: normal normal 600 var(--s-14);
}

.dropdown-roommap .form--input {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font: normal normal 400 var(--s-13);
}

    .dropdown-roommap .form--input span {
        color: var(--bs-gray-700);
    }

    .dropdown-roommap .form--input input {
        all: unset;
        width: var(--px-160);
        height: 100%;
        padding-left: var(--px-12);
        font-size: 14px;
    }

.dropdown-roommap .btn-group {
    border-top: 1px solid var(--bs-gray-300);
    display: flex;
    align-items: center;
    justify-content: end;
    gap: var(--px-12);
    padding-top: var(--px-12);
}

.dropdown-roommap .btn-filter-pop {
    flex: 1;
    font: normal normal 500 var(--s-14);
}

    .dropdown-roommap .btn-filter-pop.btn-clear {
        color: var(--bs-gray-800);
        background: unset;
    }

.dropdown-roommap .group-fil {
    display: flex;
    gap: var(--px-12);
    align-items: center;
    margin: 8px 0;
    flex-wrap: wrap;
}

    .dropdown-roommap .group-fil .checkbox-group-room {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

.dropdown-roommap .header-adv {
    color: black;
    font: normal normal 500 var(--s-16);
    border-bottom: 1px solid var(--bs-gray-300);
    padding-bottom: 12px;
}

/* ========================================================== */
.menu-section {
    background: white;
    padding: var(--px-4);
    border-radius: var(--px-12);
    max-width: 320px;
    display: flex;
    flex-direction: column;
}

    .menu-section .slider-container {
        gap: var(--px-12);
        width: 100%;
    }

    .menu-section .slider-labels {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font: normal normal 600 var(--s-14);
        color: #6b7280;
        margin-bottom: 20px;
    }

    .menu-section .slider-value {
        font: normal normal 600 var(--s-16);
        color: #111827;
        margin: 0 20px;
    }

    .menu-section .slider-wrapper {
        position: relative;
        width: 100%;
    }

    .menu-section .slider {
        position: relative;
        z-index: 2;
        -webkit-appearance: none;
        appearance: none;
        width: 100%;
        height: 16px;
        border-radius: var(--px-16);
        outline: none;
        cursor: pointer;
        background: #e5e7eb;
    }

        .menu-section .slider:before {
            content: "";
            position: absolute;
            width: 16px;
            height: 16px;
            left: 2px;
            top: 2px;
            background-color: transparent;
            border-radius: 50%;
            transition: 0.3s;
        }
        /* Track filled */
        .menu-section .slider::-webkit-slider-runnable-track {
            height: 6px;
            border-radius: 3px;
        }

        .menu-section .slider::-moz-range-track {
            height: 6px;
            border-radius: 3px;
            background: #e5e7eb;
        }

        /* Thumb - Chrome/Safari */
        .menu-section .slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: #e91e63;
            cursor: pointer;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
            margin-top: -7px;
            transition: transform 0.1s ease;
        }

            .menu-section .slider::-webkit-slider-thumb:hover {
                transform: scale(1.1);
            }

            .menu-section .slider::-webkit-slider-thumb:active {
                transform: scale(1.2);
            }

        /* Thumb - Firefox */
        .menu-section .slider::-moz-range-thumb {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: #e91e63;
            cursor: pointer;
            border: none;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
            transition: transform 0.1s ease;
        }

            .menu-section .slider::-moz-range-thumb:hover {
                transform: scale(1.1);
            }

            .menu-section .slider::-moz-range-thumb:active {
                transform: scale(1.2);
            }

    /* Progress bar effect */
    .menu-section .slider-wrapper::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        height: 6px;
        border-radius: 3px 0 0 3px;
        background: #e91e63;
        width: var(--slider-progress, 50%);
        pointer-events: none;
        z-index: 1;
    }

/* Overlay styles for room-status when opened via mobile menu */
.pms--roommap .room-status.overlay-open {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: none;
    height: 100vh;
    z-index: 9999;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.24);
    overflow-y: auto;
    padding: 16px;
}

/* Optional: backdrop */
.pms--roommap .room-status-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 9998;
}

/* Close button for overlay header (reuse existing status header layout) */
.pms--roommap .room-status.overlay-open .status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Smooth close for room-status overlay (mobile) */
.pms--roommap .room-status.overlay-open {
    /* ensure we can animate from visible state */
    transform: translateX(0);
    opacity: 1;
    transition: transform 220ms ease, opacity 220ms ease;
}

.pms--roommap .room-status.overlay-closing {
    transform: translateX(100%); /* slide out to the right */
    opacity: 0;
}

/* Backdrop fade-out */
.pms--roommap .room-status-backdrop {
    animation: none; /* default when opening */
    background: rgba(0, 0, 0, 0.25);
}

    .pms--roommap .room-status-backdrop.overlay-fade-out {
        animation: roomStatusBackdropFadeOut 220ms ease forwards;
    }

@keyframes roomStatusBackdropFadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}


/* style post item */
.post-item-popup .popup-content {
    min-width: 40vw;
    max-width: 40vw;
}

.post-item-modal {
    background: white;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.post-item-modal-header {
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    flex-shrink: 0;
    width: 100%;
}

.post-item-modal-header-left {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--px-32);
    padding: var(--px-12);
}

.post-item-modal-header .post-item-modal-title {
    font: normal normal 600 var(--s-18);
    color: var(--bs-dark);
    margin: 0;
}

.post-item-modal-info {
    display: flex;
    align-items: center;
    gap: var(--px-24);
    font: normal normal 500 var(--s-14);
}

.post-item-modal-info-item {
    display: flex;
    align-items: center;
    gap: var(--px-8);
}

.post-item-modal-info-label {
    color: #9ca3af;
    font: normal normal 600 var(--s-12);
    text-transform: uppercase;
}

.post-item-modal-info-value {
    font: normal normal 600 var(--s-12);
    color: #111827;
}

.post-item-modal-info-value-primary {
    font: normal normal 600 var(--s-12);
    color: #059669;
}

.post-item-modal-info-value-text {
    font: normal normal 500 var(--s-12);
    color: #6b7280;
}

.post-item-modal-header-right {
    display: flex;
    align-items: center;
    gap: var(--px-8);
}

.post-item-modal-icon-btn {
    padding: var(--px-8);
    color: #9ca3af;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .post-item-modal-icon-btn:hover {
        color: #6b7280;
        background: #f3f4f6;
    }

.post-item-modal-icon-btn-close:hover {
    color: #ef4444;
    background: #fef2f2;
}

.post-item-modal-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: white;
    min-height: 0;
    min-width: 0;
}

/* ── Horizontal Categories ── */
.post-item-modal-categories {
    flex-shrink: 0;
    overflow-x: auto;
    padding: var(--px-8) var(--px-12);
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    min-width: 0;
    box-sizing: border-box;
}

.post-item-modal-categories::-webkit-scrollbar {
    height: 4px;
}

.post-item-modal-categories::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.post-item-modal-categories .post-item-modal-groups {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--px-12);
    overflow: visible;
    padding: 0;
    flex: none;
}

.post-item-btn_next.pi-summary.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    padding: var(--px-12);
    height: auto;
}

.post-item-btn_next.pi-summary {
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--px-8);
    font: normal normal 500 var(--s-14);
    background-color: white;
    color: var(--text-color);
}

.post-item-btn_next.back {
    border: 1px solid var(--fdc-border);
}

.post-item-btn_next.next {
    border: 1px solid var(--bs-main);
    background-color: var(--bs-main);
    color: white;
}

.post-item-modal-groups {
    flex: 1;
    overflow-y: auto;
    padding: var(--px-8) 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: max-content;
    align-content: start;
    gap: var(--px-12);
    min-height: 0;
}

.post-item-modal-group-item {
position: relative;
    display: flex;
    flex-direction: column;
    text-align: left;
    padding: var(--px-12);
    border-radius: var(--px-12);
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    transition: all 0.2s ease;
    cursor: pointer;
    font: normal normal 500 var(--s-14);
    color: var(--text-color);
    flex: 1;
    min-width: 180px;
    min-height: 92px;
}

.post-item-modal-group-item-active {
    background: #fff;
    border: 2px solid var(--bs-main);
}

.post-item-modal-group-item:hover {
    border-color: var(--bs-main-400);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.post-item-modal-group-item .roomcat-item__meta {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

    .post-item-modal-group-item .roomcat-item__meta .roomcat-item__meta-box {
        display: inline-flex;
        align-items: center;
        padding: 0.125rem 0.375rem;
        border-radius: var(--px-4);
        font-size: 10px;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        border: 1px solid #e2e8f0;
        background-color: #f1f5f9;
        color: #64748b;
        transition: background-color 0.2s ease;
    }

        .post-item-modal-group-item .roomcat-item__meta .roomcat-item__meta-box svg {
            width: 0.75rem;
            height: 0.75rem;
            margin-right: 0.125rem;
            flex-shrink: 0;
        }

    .post-item-modal-group-item .roomcat-item__meta .roomcat-item__meta-price {
        display: flex;
        align-items: center;
        font: normal normal 500 var(--s-10);
        color: var(--bs-orange);
        background: 0;
        padding: 0.125rem 0.375rem;
        border-radius: 0.25rem;
        border: 1px solid #d1fae5;
    }

        .post-item-modal-group-item .roomcat-item__meta .roomcat-item__meta-price svg {
            width: 0.75rem;
            height: 0.75rem;
            margin-right: 0.125rem;
            flex-shrink: 0;
        }

.post-item-modal-group-item .roomcat-item__name {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

    .post-item-modal-group-item .roomcat-item__name span {
        font: normal normal 600 var(--s-14);
        color: var(--bs-gray-600);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .post-item-modal-group-item .roomcat-item__name svg {
        width: 1.25rem;
        height: 1.25rem;
        color: var(--bs-main-400);
        flex-shrink: 0;
        animation: zoomIn 0.2s ease;
    }

@keyframes zoomIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.post-item-modal-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: white;
}

.post-item-modal-search-bar {
    width: 100%;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--px-16);
    padding: var(--px-12);
    min-width: 0;
    box-sizing: border-box;
}

.post-item-modal-search-bar .post-item-row-gap{
    display: flex;
    gap: var(--px-16);
    align-items: center;
    min-width: 0;
    flex: 1;
}

.post-item-modal-search-wrapper {
    position: relative;
    flex: 1;
    min-width: 0;
}

.post-item-modal-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    color: #9ca3af;
}

.post-item-modal-search-input {
    padding: var(--px-8) var(--px-12) var(--px-8) var(--px-40);
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: var(--px-8);
    font: normal normal 500 var(--s-14);
    outline: none;
    transition: all 0.2s;
    color: var(--text-color);
}

    .post-item-modal-search-input:focus {
        background: white;
        border-color: #d1d5db;
    }

    .post-item-modal-search-input::placeholder {
        color: #9ca3af;
    }

.post-item-modal-item-count {
    font: normal normal 500 var(--s-14);
    color: #6b7280;
}

.post-item-modal-table-wrapper {
    flex: 1;
    overflow: auto;
    position: relative;
    padding: 0.5rem;
    min-width: 0;
    box-sizing: border-box;
}

/* ── Card grid container ── */
.post-item-modal-card-grid,
.post-item-modal-table-body {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 0.625rem;
    background: transparent;
    align-content: start;
}

/* ── Individual card ── */
.post-item-modal-table-row.pi-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.75rem;
    cursor: default;
    transition: box-shadow 0.18s ease, border-color 0.18s ease;
    position: relative;
    overflow: hidden;
    min-height: 110px;
}

.post-item-modal-table-row.pi-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.09);
    border-color: #c7d2e0;
}

/* Active card (qty > 0) */
.post-item-modal-table-row.pi-card.has-qty {
    border-color: #4ade80;
    background: #f0fdf4;
}

/* ── Item name ── */
.pi-card__name {
    font: normal normal 600 var(--s-13);
    color: #1e293b;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.2rem;
    margin-bottom: 0.25rem;
}

/* ── Price area: price + amount (when qty>0) ── */
.pi-card__price-area {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.pi-card__price-label {
    font: normal normal 700 var(--s-15);
    color: #0f172a;
    letter-spacing: -0.01em;
}

/* ── Quick-add "+" button ── */
.pi-card__add-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: #16a34a;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    flex-shrink: 0;
}

.pi-card__add-btn svg {
    width: 14px;
    height: 14px;
    stroke: white;
}

.pi-card__add-btn:hover {
    background: #15803d;
    transform: scale(1.1);
}

/* ── Qty row (hidden until qty > 0) ── */
.pi-card__qty-row {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 0.375rem;
    border-top: 1px solid #e2e8f0;
}

.pi-card.has-qty .pi-card__qty-row {
    display: flex;
}

/* ── Amount label inside card ── */
.pi-card__amount {
    font: normal normal 600 var(--s-13);
    color: #16a34a;
    white-space: nowrap;
}

/* Repurpose existing classes that are still needed */
.post-item-modal-table-td-name {
    font: normal normal 600 var(--s-14);
    color: var(--text-color);
}

.post-item-modal-table-td-price {
    display: flex;
    align-items: center;
}

.post-item-modal-table-td-price .post-item-modal-openprice-input {
    border: 1px solid var(--bs-main-400);
    border-radius: 6px;
    padding: 4px;
    width: 100px;
    text-align: right;
    font-size: 0.8rem;
}

.post-item-modal-table-td-amount {
    color: #16a34a;
    font-weight: 600;
}

.post-item-modal-checkbox {
    width: 1rem;
    height: 1rem;
    border: 1.5px solid #d1d5db;
    border-radius: 0.25rem;
    cursor: pointer;
    appearance: none;
    transition: all 0.15s;
    position: relative;
}

    .post-item-modal-checkbox:checked {
        background: #059669;
        border-color: #059669;
    }

        .post-item-modal-checkbox:checked::after {
            content: '';
            position: absolute;
            left: 4px;
            top: 1px;
            width: 4px;
            height: 8px;
            border: solid white;
            border-width: 0 2px 2px 0;
            transform: rotate(45deg);
        }

.post-item-modal-quantity-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    background: white;
    overflow: hidden;
}

.post-item-modal-quantity-btn {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .post-item-modal-quantity-btn:hover {
        background: #f9fafb;
        color: #059669;
    }

.post-item-modal-quantity-input {
    width: 48px;
    text-align: center;
    font: normal normal 500 var(--s-14);
    border: none;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    height: 32px;
    color: #111827;
    outline: none;
}

/* Compact qty control inside item cards */
.pi-card .post-item-modal-quantity-control {
    flex: 1;
}

.pi-card .post-item-modal-quantity-btn {
    width: 26px;
    height: 26px;
    font-size: 0.875rem;
}

.pi-card .post-item-modal-quantity-input {
    flex: 1;
    width: 100%;
    height: 26px;
    font-size: 0.8125rem;
}

.post-item-modal-footer-wrapper {
    background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    margin: 0;
    overflow: hidden;
}

.post-item-modal-footer-wrapper .post-item-modal-footer-content {
    flex: 1;
    min-height: 0;
}

.post-item-modal-footer-content {
    overflow-y: auto;
    background: #f3f4f6;
}

.post-item-modal-footer-wrapper .post-item-modal-footer-content {
    flex: 1;
    min-height: 0;
}

.receipt-inner {
    background: #ffffff;
    margin: 12px;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ── Header ── */
.receipt-header {
    text-align: center;
}

.receipt-hotel {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    letter-spacing: 0.02em;
}

.receipt-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-size: 0.8125rem;
    color: #6b7280;
}

.receipt-meta-label {
    color: #9ca3af;
}

.receipt-meta-sep {
    color: #d1d5db;
}

.receipt-divider {
    height: 1px;
    background: #e5e7eb;
}

.receipt-section-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9ca3af;
}

/* ── Items list ── */
.post-item-modal-footer-content .list-post-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 140px;
    overflow-y: auto;
}

.post-item-modal-footer-content .list-post-item .post-item-selected {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    background: #f9fafb;
    border-radius: 6px;
    gap: 8px;
}

.post-item-modal-footer-content .list-post-item .post-item-selected .item-text {
    font-size: 0.8125rem;
    color: #374151;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-item-modal-footer-content .list-post-item .post-item-selected .item-value {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    font-family: monospace;
}

.post-item-modal-footer-content .list-post-item .post-item-selected-empty {
    border: 1px dashed #d1d5db;
    background: #f9fafb;
}

.post-item-modal-footer-content .list-post-item .post-item-selected-empty .item-text {
    color: #9ca3af;
    font-weight: 400;
}

.post-item-modal-footer-content .list-post-item .post-item-selected-empty .item-value {
    color: #9ca3af;
    font-weight: 400;
}

/* ── SUR / DISC side by side ── */
.receipt-surdisc-row {
    display: flex;
    gap: 10px;
}

.receipt-surdisc-row .post-item-modal-percent-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 6px 10px;
    gap: 6px;
}

.receipt-surdisc-row .post-item-modal-percent-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6b7280;
    white-space: nowrap;
}

.receipt-surdisc-row .post-item-modal-percent-input {
    flex: 1;
    min-width: 0;
    text-align: right;
    font-size: 0.8125rem;
    outline: none;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    color: #111827;
    padding: 2px 6px;
    background: #ffffff;
    width: 50px;
}

.receipt-surdisc-row .post-item-modal-percent-value {
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
    min-width: 44px;
    text-align: right;
    font-family: monospace;
}

/* ── Summary ── */
.post-item-modal-footer-content .post-item-modal-summary {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.post-item-modal-footer-content .post-item-modal-summary-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.post-item-modal-footer-content .post-item-modal-summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    color: #6b7280;
}

.post-item-modal-footer-content .post-item-modal-summary-value {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    font-family: monospace;
}

/* ── Total row ── */
.receipt-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-item-modal-footer-content .post-item-modal-summary-total-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-item-modal-footer-content .post-item-modal-summary-total-label {
    font-size: 0.9375rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #111827;
}

.post-item-modal-foc-label {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
}

.post-item-modal-foc-checkbox {
    height: 14px !important;
    width: 14px !important;
    visibility: visible !important;
    border: 1.5px solid #d1d5db;
    border-radius: 3px;
    cursor: pointer;
    appearance: none;
    transition: all 0.15s;
    position: relative;
}

.post-item-modal-foc-checkbox:checked {
    background: #059669;
    border-color: #059669;
}

.post-item-modal-foc-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 0;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.receipt-total-row .post-item-modal-price {
    font-size: 1.125rem;
    font-weight: 700;
    font-family: monospace;
    color: var(--bs-main, #2563eb);
    letter-spacing: -0.01em;
}

/* ── Bill No + Payment ── */
.receipt-input-row {
    display: flex;
    gap: 10px;
}

.receipt-input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.receipt-input-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6b7280;
}

.receipt-input {
    width: 100%;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 0.8125rem;
    color: #111827;
    outline: none;
    transition: border 0.15s;
    height: 36px;
    box-sizing: border-box;
}

.receipt-input:focus {
    border-color: #2563eb;
}

.receipt-input::placeholder {
    color: #9ca3af;
}

.post-item-modal-footer-content .post-item-modal-select {
    width: 100%;
    appearance: none;
    background: #f9fafb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 8px 28px 8px 10px;
    font-size: 0.8125rem;
    color: #111827;
    outline: none;
    cursor: pointer;
    height: 36px;
    transition: border 0.15s;
}

.post-item-modal-footer-content .post-item-modal-select:focus {
    border-color: #2563eb;
}

/* ── Notes ── */
.receipt-notes-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.post-item-modal-footer-content .post-item-modal-notes {
    width: 100%;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 0.8125rem;
    color: #111827;
    outline: none;
    resize: none;
    min-height: 54px;
    font-family: inherit;
    transition: border 0.15s;
    box-sizing: border-box;
}

.post-item-modal-footer-content .post-item-modal-notes:focus {
    border-color: #2563eb;
}

.post-item-modal-footer-content .post-item-modal-notes::placeholder {
    color: #9ca3af;
}

/* ── Base styles for mobile billing panel ── */
.post-item-modal-percent-inputs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.post-item-modal-percent-input-wrapper {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    height: 38px;
    justify-content: space-between;
}

.post-item-modal-percent-label {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 600;
    white-space: nowrap;
    flex: 1;
    max-width: 20%;
    text-align: left;
}

.post-item-modal-percent-value {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 600;
    white-space: nowrap;
    flex: 1;
    max-width: 12%;
    text-align: right;
}

.post-item-modal-percent-input {
    flex: 1;
    text-align: right;
    font-size: 0.875rem;
    outline: none;
    border: 1px solid var(--bs-main-300);
    color: #111827;
    min-width: 16px;
    max-width: 55%;
    border-radius: 6px;
    padding: 2px 10px;
}

/* ── Base summary styles (shared with mobile) ── */
.post-item-modal-summary-items {
    display: flex;
    flex-direction: column;
    gap: var(--px-12);
    margin-top: var(--px-16);
}

.post-item-modal-summary-item {
    display: flex;
    justify-content: space-between;
    font: normal normal 500 var(--s-16);
    color: #6b7280;
    border-bottom: 1px dashed #e5e7eb;
    padding-bottom: 0.375rem;
}

.post-item-modal-summary-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.post-item-modal-summary-value {
    font-family: monospace;
    color: var(--text-color);
    font: normal normal 500 var(--s-16);
}

.post-item-modal-check-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #10b981;
    background: #d1fae5;
    border-radius: 9999px;
    padding: 0.125rem;
}

.post-item-modal-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--px-8);
    margin: 0;
    padding: var(--px-12) var(--px-16);
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
}

.post-item-modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--px-8);
    font: normal normal 500 var(--s-14);
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

    .post-item-modal-btn:active {
        transform: scale(0.98);
    }

.post-item-modal-btn-close {
    background: transparent;
    color: #6b7280;
    border: 1px solid transparent;
}

    .post-item-modal-btn-close:hover {
        color: var(--text-color);
        background: #f9fafb;
    }

.post-item-modal-btn-cancel {
    background: white;
    border: 1px solid #e5e7eb;
    color: var(--text-color);
    padding: var(--px-12) var(--px-14);
}

    .post-item-modal-btn-cancel:hover {
        background: #f9fafb;
    }

.post-item-modal-btn-primary {
    background: var(--bs-main);
    color: white;
    gap: var(--px-8);
    padding: var(--px-12) var(--px-14);
    cursor: pointer;
}

.post-item-modal-btn-icon {
    width: 1rem;
    height: 1rem;
}

/* Scrollbar */
.post-item-modal-groups::-webkit-scrollbar,
.post-item-modal-table-wrapper::-webkit-scrollbar {
    width: 6px;
}

.post-item-modal-groups::-webkit-scrollbar-track,
.post-item-modal-table-wrapper::-webkit-scrollbar-track {
    background: #f3f4f6;
}

.post-item-modal-groups::-webkit-scrollbar-thumb,
.post-item-modal-table-wrapper::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

    .post-item-modal-groups::-webkit-scrollbar-thumb:hover,
    .post-item-modal-table-wrapper::-webkit-scrollbar-thumb:hover {
        background: #9ca3af;
    }

/* ── Footer bar (Cancel + Next) ── */
.post-item-modal-footer {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--px-12);
    border-top: 1px solid #e5e7eb;
    background: white;
    min-width: 0;
    box-sizing: border-box;
}

.post-item-modal-footer-left {
    display: flex;
    align-items: center;
    gap: var(--px-8);
    font: normal normal 500 var(--s-14);
    color: #374151;
}

.post-item-modal-footer-count {
    font-weight: 600;
}

.post-item-modal-footer-total-sep {
    color: #d1d5db;
}

.post-item-modal-footer-total {
    font-weight: 600;
    color: #059669;
}

.post-item-modal-footer-right {
    display: flex;
    align-items: center;
    gap: var(--px-8);
}

.roomcat-item__indicator {
    position: absolute;
    left: 0;
    top: 0.75rem;
    bottom: 0.75rem;
    width: 0.25rem;
    border-radius: 0 9999px 9999px 0;
    background-color: var(--bs-main);
    opacity: 1;
    transition: all 0.3s ease;
}

.custom-tooltip {
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    max-width: 300px;
    display: none;
}

    .custom-tooltip div {
        margin-bottom: 4px;
    }

        .custom-tooltip div:last-child {
            margin-bottom: 0;
        }

    .custom-tooltip strong {
        color: #7fad49;
        margin-right: 8px;
    }

/* Highlight animation cho room card */
.card-room.highlight-room {
    animation: highlightPulse 2s ease-in-out;
    box-shadow: 0 0 0 4px rgba(127, 173, 73, 0.4);
    transform: scale(1.02);
    transition: all 0.3s ease;
}

@keyframes highlightPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(127, 173, 73, 0);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(127, 173, 73, 0.3);
    }
}

.card-room.highlight-room {
    box-shadow: 0 0 0 4px rgba(127, 173, 73, 0.35);
    transform: scale(1.015);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Mobile rules */
@media (max-width: 768px) {
    .filter-group-roomMap .group-filter-box:first-child {
        display: none !important;
    }

    .header_room_container .group-filter-box.mobile {
        display: block !important;
    }

    .header_room_container {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px;
        padding: 0 !important;
    }

        .header_room_container .filter-group-roomMap {
            width: 100%;
            display: flex;
            flex-wrap: wrap;
            gap: var(--px-8);
            justify-content: flex-start;
        }

    .pms--roommap .header_room_container .filter-group-roomMap > .group-filter-box .dropdown.have-txt-icon button[onclick*="RoomMap.renderRoomStatus"] {
        /* target the specific button provided in markup */
        display: inline-flex !important;
    }

    /* The wrapper group-filter-box containing the menu should be visible on mobile */
    .pms--roommap .header_room_container .filter-group-roomMap > .group-filter-box.dis-none:has(button[onclick*="RoomMap.renderRoomStatus"]) {
        display: block !important;
    }

    /* Hide the first desktop chip/filter group if needed (keeps your mobile chip visible) */
    .pms--roommap .header_room_container .filter-group-roomMap > .group-filter-box:first-child {
        display: none !important;
    }

    .pms--roommap .group-filter-box {
        max-width: var(--px-180);
        justify-content: flex-start;
    }

    .roomMap-container .roomMap_room {
        padding: 0 !important;
    }

    .dropdown-roommap.show {
        width: auto;
    }

    .room-content .list-room {
        display: flex;
        flex-direction: column;
        gap: var(--px-12);
        overflow: hidden;
        /*overflow-x: hidden;*/
        width: 100%;
        height: 100%;
        border-radius: 12px;
        padding: 0 !important;
        background: transparent;
    }

        /* Custom scrollbar */
        .room-content .list-room::-webkit-scrollbar {
            width: 0px;
        }

        .room-content .list-room::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 10px;
        }

        .room-content .list-room::-webkit-scrollbar-thumb {
            background: #888;
            border-radius: 10px;
        }

            .room-content .list-room::-webkit-scrollbar-thumb:hover {
                background: #555;
            }

    .room-content .body-list-room .card-room {
        border: 1px solid var(--bs-main-100);
    }

    .pms--roommap .room-status .room--body .room-status-item.active,
    .pms--roommap .room-status-office .room-status-item.active {
        /* neutralize active state */
        background: inherit !important;
        border-color: inherit !important;
        box-shadow: none !important;
    }

    .pms--roommap .room-status .status-header.active {
        /* neutralize any active styles */
        background: inherit !important;
        box-shadow: none !important;
        border-color: inherit !important;
        /* if active toggles hidden titles, force them visible */
    }

    /* Ensure the title stays visible on mobile even if active would hide it */
    .pms--roommap .room-status .status-header .status-title {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* If active state changes layout, undo it for mobile */
    .pms--roommap .room-status .status-header.active,
    .pms--roommap .room-status .status-header {
        align-items: center !important;
        justify-content: space-between !important;
        flex-direction: row;
        padding: 0;
    }

    .room-status .room--body .room-status-item {
        padding: var(--px-8);
    }

    /* style post item */
    .post-item-modal {
        width: 100vw;
        max-width: 97vw;
        height: 100vh;
        background: #fff;
        border-radius: 14px;
        padding: var(--px-16);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

        .post-item-modal .post-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

            .post-item-modal .post-header h3 {
                font: normal normal 600 var(--s-18);
                color: var(--text-color);
            }

        .post-item-modal .btn-close {
            border: none;
            background: none;
            font-size: var(--px-20);
            cursor: pointer;
        }

        .post-item-modal .post-meta {
            display: flex;
            gap: var(--px-8);
            font: normal normal 500 var(--s-14);
            color: var(--bs-gray-500);
            margin: var(--px-8) 0 var(--px-12);
        }

            .post-item-modal .post-meta b {
                color: var(--text-color);
            }

        .post-item-modal .groups {
            display: flex;
            gap: 8px;
            overflow-x: auto;
        }

            .post-item-modal .groups::-webkit-scrollbar {
                display: none;
            }

        .post-item-modal .group {
            padding: 18px 8px;
            border-radius: var(--px-8);
            border: 1px solid #ddd;
            background: #fff;
            font: normal normal 500 var(--s-12);
            cursor: pointer;
            position: relative;
            max-width: 160px;
            color: var(--bs-gray-500);
            min-width: 170px;
            align-items: center;
            justify-content: space-between;
        }

            .post-item-modal .group.active {
                border-color: var(--bs-main);
                background: var(--bs-main-100);
                color: var(--text-color);
            }

        .post-item-modal .title_category {
            font: normal normal 600 var(--s-14);
            color: var(--bs-gray-600);
            display: -webkit-box;
            -webkit-line-clamp: 1;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .post-item-modal .net {
            background: #3dbb7d;
            color: #fff;
            font-size: 9px;
            padding: 2px 6px;
            border-radius: 8px;
            display: flex;
        }

            .post-item-modal .net svg {
                width: 0.75rem;
                height: 0.75rem;
                margin-right: 0.125rem;
                flex-shrink: 0;
            }

        .post-item-modal .search-box {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin: 12px 0;
            gap: 12px;
            width: 100%;
        }

            .post-item-modal .search-box input {
                width: 80%;
                padding: 12px;
                border-radius: 8px;
                border: 1px solid #ddd;
            }

            .post-item-modal .search-box .count {
                width: 20%;
                text-align: center;
                font: normal normal 500 var(--s-16);
            }

        .post-item-modal .empty-state {
            flex: 1;
            text-align: center;
            color: #999;
            padding: 12px 0;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 2px;
            width: 100%;
        }

            .post-item-modal .empty-state img {
                width: 100px;
                height: var(--px-60);
                margin-bottom: var(--px-8)
            }

        .post-item-modal .billing-details {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

            .post-item-modal .billing-details label {
                font: normal normal 500 var(--s-14);
                color: #111827;
            }

        .post-item-modal .billnote-textarea {
            flex: 1;
            min-height: 60px;
            border-radius: 10px;
            border: 1px solid #ddd;
            padding: 8px;
        }

        .post-item-modal .post-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin: 10px 0px;
        }

            .post-item-modal .post-footer .foc {
                display: flex;
                justify-content: center;
                align-items: center;
                gap: 8px;
                font: normal normal 500 var(--s-16);
                color: #111827;
            }

                .post-item-modal .post-footer .foc input {
                    width: 16px !important;
                    height: 16px !important;
                    visibility: visible !important;
                }

            .post-item-modal .post-footer .total {
                font: normal normal 500 var(--s-16);
                color: #111827;
            }

                .post-item-modal .post-footer .total b {
                    color: var(--bs-main);
                }

        .post-item-modal .btn-post {
            background: #3dbb7d;
            color: #fff;
            border: none;
            padding: 16px 18px;
            border-radius: 8px;
            font: normal normal 600 var(--s-16);
            cursor: pointer;
        }

    .post-item-modal-percent-inputs {
        margin-bottom: 8px;
    }

    .post-item-modal-percent-input-wrapper {
        border: none;
        padding: 0px;
        height: 24px;
    }

        .post-item-modal-percent-input-wrapper .post-item-modal-percent-label {
            font: normal normal 500 var(--s-14);
            color: #6b7280;
        }

        .post-item-modal-percent-input-wrapper .post-item-modal-percent-value-mobile {
            font-size: 14px;
            font-weight: 500;
            color: #6b7280;
        }

    .post-item-modal-summary-value-mobile {
        font-size: 14px;
        font-weight: 500;
        color: #6b7280;
    }

    .post-item-modal .mobile-items {
        flex: 1;
        overflow: auto;
        gap: 12px;
        display: flex;
        flex-direction: column;
    }

        .post-item-modal .mobile-items .mobile-item-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 10px;
            gap: 8px;
            border-radius: 10px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            background: white;
            border: 1px solid var(--bs-gray-300);
        }

            .post-item-modal .mobile-items .mobile-item-row .mobile-item-header {
                display: flex;
                justify-content: space-between;
                gap: 12px;
                align-items: center;
                font: normal normal 600 var(--s-16);
                width: 100%
            }

                .post-item-modal .mobile-items .mobile-item-row .mobile-item-header .mobile-item-name {
                    color: var(--bs-gray-600);
                }

                .post-item-modal .mobile-items .mobile-item-row .mobile-item-header .mobile-item-price {
                    color: var(--bs-black);
                }

            .post-item-modal .mobile-items .mobile-item-row .mobile-item-controls {
                display: flex;
                align-items: center;
                gap: 12px;
            }

                .post-item-modal .mobile-items .mobile-item-row .mobile-item-controls .post-item-modal-quantity-control .post-item-modal-quantity-input {
                    border: none;
                    color: var(--bs-main-700);
                }

                    .post-item-modal .mobile-items .mobile-item-row .mobile-item-controls .post-item-modal-quantity-control .post-item-modal-quantity-input[readonly] {
                        color: var(--bs-main-700);
                        opacity: 1;
                    }
}

/* ── View Toggle ── */
.post-item-view-toggle {
    display: flex;
    align-items: center;
    gap: 2px;
    background: #f3f4f6;
    border-radius: 6px;
    padding: 2px;
}

.btn-view-toggle {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #9ca3af;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 0.8125rem;
}

.btn-view-toggle.active {
    background: #ffffff;
    color: #374151;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.btn-view-toggle:hover:not(.active) {
    color: #6b7280;
}

/* ── List mode ── */
.post-item-modal-table-body.list-mode {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.post-item-modal-table-row.pi-list {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: #ffffff;
    border-bottom: 1px solid #f3f4f6;
    cursor: default;
    transition: background 0.15s;
    min-height: 48px;
}

.post-item-modal-table-row.pi-list:hover {
    background: #f9fafb;
}

.post-item-modal-table-row.pi-list.has-qty {
    background: #f0fdf4;
}

.pi-list__name {
    flex: 1;
    min-width: 0;
    font: normal normal 500 var(--s-13);
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pi-list__price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    width: 160px;
}

.pi-list__price .post-item-modal-table-td-price {
    flex: 1;
}

.pi-list__price-label {
    font: normal normal 600 var(--s-13);
    color: #0f172a;
}

.pi-list__amount {
    font: normal normal 600 var(--s-12);
    color: #16a34a;
    white-space: nowrap;
    min-width: 60px;
    text-align: right;
}

.pi-list__stepper {
    flex-shrink: 0;
}

.pi-list .post-item-modal-quantity-control {
    display: inline-flex;
}

.pi-list .post-item-modal-quantity-btn {
    width: 26px;
    height: 26px;
    font-size: 0.8125rem;
}

.pi-list .post-item-modal-quantity-input {
    width: 40px;
    height: 26px;
    font-size: 0.8125rem;
}

.pi-list .post-item-modal-openprice {
    display: inline-flex;
}

.pi-list .post-item-modal-openprice-input {
    width: 100px;
    padding: 2px 6px;
    font-size: 0.8125rem;
}

@media (min-width: 769px) {
    .pms--roommap .header_room_container .filter-group-roomMap > .group-filter-box:has(button[onclick*="RoomMap.renderRoomStatus"]) {
        display: none !important;
    }
}
