
/* =====================
   Layout & Container
   ===================== */

.pms--setting {
    padding: 0px !important;
}

.setting-page-appending {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container-scroll {
    height: calc(100% - 70px);
    overflow: auto;
    display: flex;
    width: 100%;
    justify-content: center;
}

.max-view {
    max-width: 1100px;
    width: 100%;
    padding: 2rem 1.5rem 2rem;
}

.max-view-900 {
    max-width: 900px;
    width: 100%;
    padding: 2rem 1.5rem 2rem;
    position: relative;
}

/* =====================
   Tabs
   ===================== */
.tabs {
    display: flex;
    gap: 1rem;
    padding: 10px 20px;
    width: 100%;
    max-width: 1100px;
    height: 60px;
}

.tab {
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    padding: 10px 20px;
    position: relative;
    transition: color 0.2s;
    height: 40px;
    border-radius: 30px;
    min-width: 150px;
    border: 1px solid #fff;
    min-width: fit-content;
}

    .tab:hover {
        color: #000;
        border: 1px solid #fff;
        background: #e1dbdb;
        border-radius: 30px;
        transition: 0.1s;
    }

    .tab.active {
        color: #fff;
        font-weight: 600;
        background: Var(--bs-main);
        border: 1px solid Var(--bs-main);
        border-radius: 30px;
    }

button.btn-hotel_parameter {
    height: 60px;
    border: 1px solid var(--bs-main);
    background: #fff;
    color: #000;
    font-weight: 500;
}

    button.btn-hotel_parameter:hover {
        background: linear-gradient(0deg, rgb(234 255 233) 0%, rgb(229 255 224 / 38%) 36% 100%);
        color: var(--bs-main);
    }
/* =====================
   Card Grid
   ===================== */
.setting-page-appending h2 {
    margin: 2rem 0 1rem;
    font-size: 1.25rem;
    color: #000;
    font-weight: 600;
}

.setting-page-appending .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.setting-page-appending .card {
    background: #fff;
    border-radius: 10px;
    padding: 1.25rem;
    cursor: pointer;
    min-height: 160px;
}

    .setting-page-appending .card:hover {
        background: #f3f3f3;
    }

.setting-page-appending .card-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 17px;
    color: #000;
}

.setting-page-appending .card-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
}

/* =====================
   Detail Page & Sidebar
   ===================== */
.setting-page-detail-appending {
    display: flex;
    justify-content: center;
    height: 100%;
    overflow: auto;
}

.setting-detail-header {
    display: flex;
    gap: 10px;
    height: 60px;
    align-items: center;
    position: sticky;
    top: 0px;
    left: 1.5rem;
    width: 100%;
    justify-content: space-between;
    padding: 0 1.5rem;
}

.back-btn {
    border: 1px solid #696969;
    padding: 5px 10px;
    border-radius: 20px;
    cursor: pointer;
    width: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

    .back-btn:hover {
        border: 1px solid #000;
        color: #000;
    }

.setting-detail-header .setting-btn-header {
    height: 40px;
    width: 100px;
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

    .setting-detail-header .setting-btn-header.btn-back {
        border: 1px solid #858585;
        background: #fff;
        color: #000;
        border-radius: 20px;
    }

    .setting-detail-header .setting-btn-header.btn-save {
        color: #fff;
    }

.page_name {
    width: calc(100% - 200px);
    padding-left: 20px;
    position: relative;
}

    .page_name::before {
        content: "";
        color: #888;
        font-size: 17px;
        width: 4px;
        height: 4px;
        display: flex;
        border-radius: 50%;
        background: #000;
        top: 50%;
        position: absolute;
        left: 10px;
    }

.setting-detail-page {
    height: calc(100% - 60px);
}

    .setting-detail-page .settings-layout {
        display: flex;
        gap: 30px;
        height: 100%;
    }

    .setting-detail-page .settings-sidebar {
        width: 300px;
        background: #fff;
        border: 1px solid #e5e5e5;
        border-radius: 10px;
        padding: 20px;
        height: max-content;
    }

        .setting-detail-page .settings-sidebar h3 {
            font-size: 16px;
            font-weight: 700;
            margin-bottom: 15px;
        }

        .setting-detail-page .settings-sidebar ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

            .setting-detail-page .settings-sidebar ul li {
                display: block;
                text-decoration: none;
                font-size: 14px;
                padding: 8px 12px;
                border-radius: 6px;
                color: #222;
                cursor: pointer;
                height: 40px;
                display: flex;
                align-items: center;
            }

                .setting-detail-page .settings-sidebar ul li:hover {
                    background: #f4f2ff;
                }

                .setting-detail-page .settings-sidebar ul li.active {
                    background: #f5fff3;
                    color: #000;
                    font-weight: 500;
                    border-left: 4px solid #7fad49;
                    border-bottom: 1px solid #7fad49;
                    border-radius: 0px;
                }

    .setting-detail-page .settings-content {
        flex: 1;
        height: 100%;
    }

    .setting-detail-page .content-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 20px;
    }

        .setting-detail-page .content-header h2 {
            font-size: 20px;
            font-weight: 700;
            margin: 0;
        }

        .setting-detail-page .content-header p {
            font-size: 14px;
            color: #666;
        }

        .setting-detail-page .content-header a {
            color: #6a3ff0;
            text-decoration: none;
        }

            .setting-detail-page .content-header a:hover {
                text-decoration: underline;
            }

    .setting-detail-page .btn {
        padding: 8px 14px;
        border-radius: 6px;
        font-size: 14px;
        cursor: pointer;
        border: none;
    }

    .setting-detail-page .btn-primary {
        background: #000;
        color: #fff;
    }

    .setting-detail-page .content-box {
        background: #fff;
        border: 1px solid #e5e5e5;
        border-radius: 10px;
        padding: 10px 20px;
        text-align: center;
        height: 100%;
        overflow: auto;
        display: none;
    }

        .setting-detail-page .content-box.active {
            display: flex;
            flex-direction: column;
        }

    .setting-detail-page .empty-state .icon {
        font-size: 40px;
        margin-bottom: 10px;
    }

    .setting-detail-page .empty-state h3 {
        font-size: 16px;
        font-weight: 700;
        margin: 10px 0;
    }

    .setting-detail-page .empty-state p {
        font-size: 14px;
        color: #666;
    }

/* =====================
   Form & Input
   ===================== */
.settings-content .form-input {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    flex-direction: column;
    margin-top: 10px;
}

.form-input input[type="text"], .form-input input[type="tel"], .form-input input[type="password"], .form-input input[type="number"] {
    width: 100%;
    border: 1px solid #d3d3d3;
    height: 40px;
    padding: 5px 10px;
    border-radius: 5px !important;
    outline: 0px;
}

.lst-btn-hotel_parameter, .lst-btn-guest_config {
    padding-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.pms--setting .form-input select {
    width: 100%;
    border: 1px solid #d3d3d3;
    height: 40px;
    padding: 5px 10px;
    border-radius: 5px !important;
    outline: 0px;
}

.form-input.row {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    flex-direction: row-reverse;
    margin-top: 10px;
    justify-content: flex-end;
    margin: 0px;
    height: 100%;
    max-height: 60px;
}

    .form-input.row .input-label {
        width: max-content !important;
        min-width: max-content;
    }

.setting-detail-page .label-for-checkbox {
    position: relative;
    top: 25px;
    left: 10px;
    padding: unset;
}

.pms--setting .form-input .label-for-checkbox {
    width: 25px !important;
    height: 25px !important;
    border: 1px solid #d3d3d3;
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    top: unset;
    transform: unset;
    left: unset;
}

.pms--setting .form-input input[type="checkbox"]:checked + .label-for-checkbox::before {
    content: "";
    position: absolute;
    inset: 2px;
    background: #4caf50;
    border-radius: 2px;
}

.pms--setting .form-input input[type="checkbox"]:checked + .label-for-checkbox::after {
    content: "";
    position: absolute;
    left: 8px;
    top: 2px;
    width: 8px;
    height: 13px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.form-input input[type="radio"]:checked + .label-for-checkbox::before {
    content: "";
    position: absolute;
    inset: 2px;
    background: #4caf50;
    border-radius: 2px;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
}

.form-input input[type="radio"]:checked + .label-for-checkbox::after {
    content: "";
    position: absolute;
    left: 8px;
    top: 2px;
    width: 8px;
    height: 13px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* =====================
   Modal & Table
   ===================== */
.currency-modal {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 900px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

.modal-title {
    font-weight: bold;
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #333;
}

    .modal-close:hover {
        color: red;
    }


.currency-form .form-input.row {
    align-items: center;
}

    .currency-form .form-input.row .label-for-checkbox {
        transform: unset;
        position: relative;
        width: 25px;
        height: 25px;
        left: unset;
        top: unset;
    }

/* =====================
   Misc
   ===================== */
.pms--setting input[readonly] {
    background-color: #f9f9f9;
    color: #555;
    cursor: unset;
}

.pointer-events-none {
    pointer-events: none;
}

    .pointer-events-none .label-for-checkbox:before {
        background: #afafaf !important;
    }

.search-paraname-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 16px;
}

.search-paraname {
    width: 100%;
    padding: 5px 5px 5px 40px;
    height: 40px;
    border: 1px solid #bdbdbd;
    border-radius: 5px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

    .search-paraname:focus {
        border-color: #4c7549;
        background: #f4f8f4;
    }

.search-paraname-wrap .search-icon {
    position: absolute;
    right: 16px;
    color: #888;
    font-size: 20px;
    pointer-events: none;
}

#globalpara_string {
    width: 100%;
    min-height: 80px;
    padding: 8px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
    box-sizing: border-box;
}

.locktype-fields {
    margin-top: 24px;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 24px 32px;
    background: #fafafa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.locktype-title {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 18px;
    color: #2d4c2d;
}

.locktype-form-row {
    display: flex;
    gap: 32px;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.locktype-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 140px;
}

    .locktype-form-group label {
        font-size: 15px;
        color: #333;
        font-weight: 500;
    }

    .locktype-form-group input[type="text"] {
        border: 1px solid #bbb;
        border-radius: 5px;
        padding: 7px 12px;
        font-size: 15px;
        background: #fff;
        transition: border-color 0.2s;
    }

        .locktype-form-group input[type="text"]:focus {
            border-color: #4c7549;
            background: #f4f8f4;
            outline: none;
        }

.locktype-ok {
    height: 40px;
    min-width: 80px;
    background: var(--bs-main, #4c7549);
    color: #fff;
    border-radius: 5px;
    border: none;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 24px;
    transition: background 0.2s;
}

    .locktype-ok:hover {
        background: #3a5c38;
    }

.locktype-desc {
    margin-top: 24px;
}

.locktype-table-desc {
    width: 100%;
    min-height: 120px;
    background: #f4f4f4;
    border-radius: 6px;
    border: 1px solid #ccc;
    padding: 10px;
    font-size: 13px;
    resize: none;
}


.form-input-group {
    margin-top: 30px;
    border: 1px solid #d3d3d3;
    border-radius: 10px;
    padding: 15px 10px 10px 10px;
    position: relative;
}

label.label-form-input-group {
    position: absolute;
    top: -13px;
    left: 20px;
    background: #fff;
    padding: 0 5px;
}

.night-audit-status .input-label {
    width: max-content;
    min-width: 120px;
    text-align: left;
}

.categories-table td:last-child, .categories-table th:last-child {
    min-width: 30px;
    padding: 0px;
    position: sticky;
    right: 0;
    text-align: center;
    background: white;
}

.categories-table th:last-child {
    background: var(--bs-main-50);
}

.categories-table tbody tr {
    transition: background 0.2s;
    position: relative;
    height: 45px;
}

    .categories-table tbody tr:hover {
        background: #f4f8f4;
        box-shadow: 0 2px 8px rgba(76,117,73,0.07);
        border-radius: 6px;
    }

.categories-table .row-actions .dropdown {
    display: flex;
    position: absolute;
    opacity: 0;
    right: 0px;
    transition: 0.3s;
    top: 2px;
    padding: 0px;
    width: 0px;
}

    .categories-table .row-actions .dropdown .edit, .categories-table .row-actions .dropdown .delete {
        padding: 0px;
    }


.categories-table tbody tr:hover .row-actions .dropdown {
    opacity: 1;
    display: flex;
    top: 2px;
    padding: 0px;
    right: 8px;
    transition: 0.3s;
    width: min-content;
    align-items: center;
    justify-content: center;
}

    .categories-table tbody tr:hover .row-actions .dropdown .edit, .categories-table tbody tr:hover .row-actions .dropdown .delete {
        padding: 0 var(--px-16) !important;
    }

.dropdown .delete {
    background: #f77a7a;
}

.categories-table .row-actions .dots {
    display: inline-block;
    cursor: pointer;
}

.categories-table .row-actions {
    position: relative;
}

.categories-table thead,
.categories-table tbody tr {
    transition: 0.3s;
}

.categories-table .label-for-checkbox {
    top: calc(50% + 12px);
}

.categories-div {
    height: 100%;
    display: flex;
    width: var(--px-690);
    gap: var(--px-8);
    flex-direction: column;
    padding: var(--px-16);
    border-radius: var(--px-12);
    background: white;
    box-shadow: 0 12px 28px 0 rgba(0, 0, 0, .2), 0 2px 4px 0 rgba(0, 0, 0, .1);
    /*max-height: calc(100vh - 120px);*/
    min-height: calc(100vh - 120px);
}

.table-currency th:nth-child(3),
.table-currency th:nth-child(4),
.table-currency td:nth-child(3),
.table-currency td:nth-child(4) {
    width: 50px;
}

.table-currency .label-for-checkbox {
    transform: unset !important;
    top: unset !important;
    left: unset !important;
}

.table-currency td:nth-child(3) .form-input,
.table-currency td:nth-child(4) .form-input {
    display: flex;
    justify-content: center;
    align-items: center;
}

.table-currency th:nth-child(5),
.table-currency td:nth-child(5) {
    width: 100px;
}

.categories-edit {
    right: 12px !important;
    left: unset !important;
    top: var(--px-68) !important;
    height: min-content;
}

    .categories-edit .menu-sidebar-append-manual-quick {
        display: flex;
        flex-direction: column;
        overflow: auto;
        overflow-x: hidden;
    }

    .categories-edit .form-input .label-for-checkbox {
        width: 25px;
        height: 25px;
        border: 1px solid #9f9f9f;
        border-radius: 3px;
        top: unset !important;
        left: unset !important;
        transform: unset !important;
        position: relative;
        cursor: pointer;
        background: #edf2f3ff;
        z-index: 10;
    }

    .categories-edit .lst-btn {
        display: flex;
        justify-content: flex-end;
        gap: 10px;
    }

        .categories-edit .lst-btn .btn {
            width: 146px;
            border-radius: 5px;
        }

            .categories-edit .lst-btn .btn.btn-cancel {
                background: #fff;
                color: var(--black);
                max-width: max-content;
                font: normal normal 500 var(--s-13);
            }

            .categories-edit .lst-btn .btn.btn-save {
                font: normal normal 500 var(--s-13);
                color: #fff;
                background: #7fad49;
            }

div.pms-general.pms--setting input:read-only {
    background: #e3e3e3;
}

.form-input-image {
    padding: 10px 30px;
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 20px;
}

.hotel-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

span.hotel-name {
    font-size: 25px;
}

.form-input-image .form-input {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 1px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    cursor: pointer;
    position: relative;
    padding: 0px;
    transition: 0.3s;
}

    .form-input-image .form-input:hover::after {
        content: "\f030";
        font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free";
        font-weight: 400;
        font-size: 46px;
        color: #666;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        pointer-events: none;
        background: #ffffffd4;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: 0.3s;
    }

.form-input-image input {
    display: none;
}

.image-logo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.form-input.row.userdefine .label-for-checkbox {
    height: 25px;
    width: 25px;
    top: unset;
    left: unset;
    position: relative;
    transform: unset;
}

.btn-open-userdefine {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
}

i.fas.fa-bars.colapse-setting-sidebar {
    display: none;
}

.table-marketBusiness td:nth-child(3) .form-input .label-for-checkbox,
.table-marketBusiness td:nth-child(4) .form-input .label-for-checkbox {
    width: 25px;
    height: 25px;
    border: 1px solid #d3d3d3;
    border-radius: 3px;
    top: calc(50% + 12px);
    left: calc(50% - 12px);
    transform: translate(-50%, calc(-50% - 12px));
    position: absolute;
    cursor: pointer;
}

.colapse-setting-sidebar {
    gap: 10px;
    display: flex;
}

.table-marketSegment th {
    padding: 20px 5px;
}

    .table-marketSegment th:nth-child(2),
    .table-marketSegment td:nth-child(2) {
        width: 250px
    }

    .table-marketSegment th:nth-child(7),
    .table-marketSegment td:nth-child(7) {
        width: 30px
    }

.table-marketSegment td .form-input .label-for-checkbox {
    top: calc(50% + 12px);
}

@media only screen and (max-width: 800px) {
    .table-marketSegment th {
        padding: 20px 5px;
    }

        .table-marketSegment th:nth-child(2),
        .table-marketSegment td:nth-child(2) {
            width: unset;
        }

        .table-marketSegment th:nth-child(7),
        .table-marketSegment td:nth-child(7) {
            width: unset;
        }

    .max-view {
        padding: 0px 10px 10px !important;
        position: relative;
    }

    .setting-detail-header {
        position: absolute;
        display: flex;
        align-items: center;
        width: calc(100% - 58px);
        justify-content: space-between;
        left: 50px;
    }
        /*
        .setting-detail-header .page_name {
            display: none;
        }
*/
        .setting-detail-header .setting-btn-header.btn-save {
            width: 90%;
            max-width: 200px;
        }

    .settings-layout {
        display: flex;
        gap: 0px;
        position: relative;
    }

    .settings-sidebar {
        position: absolute;
        top: 0px;
        width: 100% !important;
        max-width: 400px;
        left: 0px;
        height: 100% !important;
        z-index: 2;
        box-shadow: 0 16px 22px 10px #d3d3d3;
    }

    i.fas.fa-bars {
        margin: 0 20px 0 0;
        font-size: 20px;
        cursor: pointer;
        display: inline-block;
    }

    .settings-sidebar.colapsed .colapse-setting-sidebar h3 i {
        font-size: 27px;
    }

    .settings-sidebar.colapsed {
        width: 50px !important;
        height: 50px !important;
        top: -55px;
        left: 0px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 3px 4px 3px #d3d3cf70;
        padding: 0px;
    }

    .settings-sidebar h3 {
        display: flex;
    }

        .settings-sidebar h3 label {
            display: block
        }

    .settings-sidebar ul {
        display: block
    }

    .settings-sidebar.colapsed h3, .settings-sidebar.colapsed h3 i {
        margin: 0px !important;
        font-size: 27px;
    }

        .settings-sidebar.colapsed h3 label {
            display: none
        }

    .settings-sidebar.colapsed ul {
        display: none
    }

    .setting-detail-page {
        top: 60px;
        position: absolute;
        width: calc(100% - 20px);
    }

        .setting-detail-page .settings-content {
            flex: 1;
            height: 100%;
        }

    .settings-sidebar:not(.colapsed) .fas.fa-bars::before {
        content: "\f106";
    }

    .setting-btn-header.btn-back {
        min-width: 100px;
    }

    .setting-detail-page .settings-sidebar ul {
        list-style: none;
        padding: 0;
        margin: 0;
        overflow: auto;
        height: calc(100% - 25px);
    }

    .popup-content {
        width: 100%;
    }

    .categories-div {
        max-width: 100%;
    }
}

@media only screen and (max-width: 450px) {

    .setting-btn-header.btn-save {
        min-width: 150px;
    }

    .setting-detail-header .page_name {
        display: none;
    }

    .form-input-image {
        padding: 0px;
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    /*
    .categories-div {
        max-width: calc(100vw - 15px);
    }*/

    .categories-table th, .categories-table td {
        font-size: 12px;
        padding: 5px;
    }

    .categories-table .table-currency th:nth-child(3),
    .categories-table .table-currency th:nth-child(4),
    .categories-table .table-currency th:nth-child(5),
    .categories-table .table-currency td:nth-child(3),
    .categories-table .table-currency td:nth-child(4),
    .categories-table .table-currency td:nth-child(5) {
        width: 40px;
    }

    .categories-table td:last-child, .categories-table th:last-child {
        width: 10px;
        padding: 0px;
    }

    .categories-edit {
        right: 10px !important;
        width: calc(100vw - 15px) !important;
    }

        .categories-edit .popup-content {
            width: 100%
        }

            .categories-edit .popup-content .categories-div-edit {
                width: 100%;
                padding: 10px !important;
            }
}

.categories-table {
    display: flex;
    overflow: auto;
    max-height: 100%;
    height: 100%;
    border: 1px solid var(--bs-gray-300);
    border-radius: 8px;
    flex-direction: column;
}

    .categories-table .group_list_btn {
        display: flex;
        justify-content: flex-end;
        gap: var(--px-12);
        margin: var(--px-12);
        min-width: var(--px-56);
    }

        .categories-table .group_list_btn .btn_add_user {
            border: 1px solid #d3d3d3;
            background-color: white;
            color: var(--black);
        }

        .categories-table .group_list_btn .btn_remove_user {
            border: 1px solid #d3d3d3;
            background-color: var(--bs-danger);
            color: #fff;
        }

    .categories-table table {
        font: normal normal 400 var(--s-12);
        width: 100%;
    }

    .categories-table thead {
        position: sticky;
        top: 0;
        left: 0;
        height: max-content;
        background: #f4f8ed !important;
        z-index: 9;
    }

    .categories-table table thead th {
        background: var(--bs-main-50);
        font: normal normal 600 var(--s-14);
        border-radius: 0;
        padding: var(--px-12);
        border: 0;
        white-space: nowrap;
    }

    .categories-table table tr {
        border: 0;
        border-bottom: 1px dashed var(--bs-gray-300);
    }

    .categories-table table td {
        padding: var(--px-8);
        border: 0;
        vertical-align: middle;
    }

    .categories-table table .table-secondary td {
        background: var(--bg-room-type);
        border: 0;
    }

.ratecode-view-body {
    display: flex;
    overflow: auto;
    max-height: 100%;
    height: 100%;
    flex-direction: column;
}

.page-ratecode {
    font-family: 'Sora', sans-serif;
    color: #333;
}


    /* Overlay */
    .page-ratecode .popup-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1000;
    }


    /* Popup container */
    .page-ratecode .popup-container {
        background: #fff;
        width: 90%;
        max-width: 800px;
        border-radius: 14px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        overflow: hidden;
        animation: fadeIn 0.3s ease;
    }


    /* Header */
    .page-ratecode .popup-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 20px;
        background: #f7f8fa;
        border-bottom: 1px solid #e5e7eb;
    }


        .page-ratecode .popup-header h2 {
            font-size: 18px;
            font-weight: 600;
            margin: 0;
            color: #222;
        }


        .page-ratecode .popup-header button {
            background: none;
            border: none;
            font-size: 22px;
            cursor: pointer;
            color: #666;
        }


    .page-ratecode .popup-body {
        max-height: 80vh;
        overflow-y: auto;
        padding: 20px;
        background: #f9fafb;
    }


    .page-ratecode .form-display-group {
        background: #ffffff;
        border-radius: 10px;
        border: 1px solid #e5e7eb;
        margin-bottom: 10px;
        border: 1px solid #d3d3d3;
        overflow: auto;
        min-height: 33%;
        position: relative;
    }

    .page-ratecode label.label-form-input-group {
        background: #edf2f3;
    }


    .page-ratecode h3 {
        font-size: 16px;
        font-weight: 600;
        color: #222;
        margin-bottom: 12px;
    }


.page-ratecode {
    display: flex;
    overflow: auto;
    max-height: 100%;
    height: 100%;
    flex-direction: column;
    gap: 10px;
}

    .page-ratecode table {
        font: normal normal 400 var(--s-12);
        width: 100%;
    }

    .page-ratecode thead {
        position: sticky;
        top: 0;
        left: 0;
        height: max-content;
        background: #f4f8ed !important;
        z-index: 9;
    }

    .page-ratecode table thead th {
        background: var(--bs-main-50);
        font: normal normal 600 var(--s-14);
        border-radius: 0;
        padding: var(--px-12);
        border: 0;
    }

    .page-ratecode table tr {
        border: 0;
        border-bottom: 1px dashed var(--bs-gray-300);
    }

    .page-ratecode table td {
        padding: var(--px-8);
        border: 0;
        vertical-align: middle;
    }

    .page-ratecode table .table-secondary td {
        background: var(--bg-room-type);
        border: 0;
    }

.form-input.checkbox-form {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.checkbox-form .label-for-checkbox {
    width: 25px;
    height: 25px;
    border: 1px solid #d3d3d3;
    border-radius: 3px;
    top: unset;
    left: unset;
    transform: unset;
    position: relative;
    cursor: pointer;
    background: #fff;
}

.form-input-group-row {
    display: flex;
    flex-direction: column;
}

    .form-input-group-row .form-input {
        padding: 0px;
    }

        .form-input-group-row .form-input.row {
            display: flex;
            flex-wrap: nowrap;
            width: 100%;
            margin: 0px;
            flex-direction: row-reverse;
        }

            .form-input-group-row .form-input.row label {
                width: min-content;
            }

.lst-buttons {
    display: flex;
    padding: 10px 0px;
    gap: 10px;
    justify-content: flex-end;
}

.btn-rate-period-for {
    border: 0;
    display: flex;
    gap: var(--px-12);
    align-items: center;
    height: var(--px-36);
    color: var(--bs-white);
    justify-content: center;
    padding: 0 var(--px-16);
    background: var(--bs-main);
    border-radius: var(--px-8);
    font: normal normal 400 var(--s-13);
    text-transform: capitalize;
    box-shadow: unset;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.ratecode-view-body .label-for-checkbox {
    top: unset;
    left: unset;
    transform: unset;
    position: relative;
}

.ratecode-view-body #ratecode_body tr:hover {
    background: #f4f8f4;
    box-shadow: 0 2px 8px rgba(76,117,73,0.07);
    border-radius: 6px;
    cursor: pointer;
}

.ratecode-view-body #ratecode_body tr.row-selected {
    background: #c7d5c7;
}


.popupdailyrate {
    width: 100%;
    max-width: 650px;
    margin: 10px auto;
    font-family: Arial, sans-serif;
    font-size: 13px;
}



    .popupdailyrate input.wide {
        flex: 1;
        min-width: 200px;
    }

    .popupdailyrate input.small {
        width: 80px;
    }

    .popupdailyrate input.tiny {
        width: 40px;
    }


    .popupdailyrate fieldset {
        border: 1px solid #ccc;
        border-radius: 4px;
        padding: 10px;
        margin: 10px;
        position: relative;
    }


    .popupdailyrate legend {
        padding: 0 6px;
        font-weight: bold;
        font-size: 14px;
        position: absolute;
        top: -10px;
        background: #edf2f3;
        width: max-content;
    }


    .popupdailyrate .weekdays {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        margin-top: 6px;
        padding: 15px 10px;
    }

        .popupdailyrate .weekdays label {
            display: flex;
            gap: 5px;
            align-items: center;
        }

        .popupdailyrate .weekdays input {
            display: flex;
            border: 1px solid #d3d3d3;
            visibility: visible;
        }


    .popupdailyrate .btn {
        background: #eee;
        border: 1px solid #aaa;
        border-radius: 4px;
        padding: 4px 10px;
        cursor: pointer;
        font-size: 13px;
    }


        .popupdailyrate .btn:hover {
            background: #ddd;
        }

        .popupdailyrate .btn.primary {
            background: #1976d2;
            color: #fff;
            border: none;
        }

            .popupdailyrate .btn.primary:hover {
                background: #1565c0;
            }




@media (max-width: 700px) {
    .popupdailyrate .row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .popupdailyrate input.wide {
        width: 100%;
    }

    .popupdailyrate .btn {
        width: 100%;
        text-align: center;
    }
}

.popupdailyrate {
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}


    .popupdailyrate label {
        font-size: 14px;
        font-weight: 500;
    }


    .popupdailyrate input,
    .popupdailyrate select {
        border: 1px solid #ccc;
        border-radius: 5px;
        padding: 5px 8px;
        font-size: 14px;
    }


        .popupdailyrate input[type="checkbox"] {
            width: 16px;
            height: 16px;
        }


    .popupdailyrate .btn {
        padding: 6px 10px;
        border: none;
        border-radius: 6px;
        background: #007bff;
        color: #fff;
        cursor: pointer;
        font-size: 14px;
    }


        .popupdailyrate .btn:hover {
            background: #0056b3;
        }



    .popupdailyrate legend {
        padding: 0 6px;
        font-weight: bold;
        font-size: 14px;
    }


/* Responsive cho điện thoại */
@media (max-width: 768px) {
    .popupdailyrate {
        padding: 10px;
        border-radius: 0;
        box-shadow: none;
    }


        .popupdailyrate h3 {
            font-size: 16px;
            text-align: center;
        }


        .popupdailyrate .form-row,
        .popupdailyrate .checkbox-group {
            flex-direction: column;
            align-items: flex-start;
        }


        .popupdailyrate label {
            width: 100%;
            margin-bottom: 4px;
        }


        .popupdailyrate input,
        .popupdailyrate select {
            width: 100%;
        }


        .popupdailyrate .btn {
            width: 100%;
            margin-top: 5px;
        }


        .popupdailyrate fieldset {
            padding: 8px;
        }


        .popupdailyrate legend {
            font-size: 13px;
        }
}

.ratedaily-table th {
    text-align: center;
    border: 1px solid #d3d3d3;
}

.ratedaily-table tr:nth-child(1) th:nth-child(1),
.ratedaily-table tr:nth-child(1) th:nth-child(2),
.ratedaily-table tr:nth-child(1) td:nth-child(1),
.ratedaily-table tr:nth-child(1) td:nth-child(2) {
    min-width: 100px;
}

.ratedaily-table th:nth-child(n+3),
.ratedaily-table td:nth-child(n+3) {
    min-width: 40px;
    width: unset;
}

.lst-tab-security {
    height: 40px;
    border-bottom: 1px solid #d3d3d3;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tab-security {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    cursor: pointer;
    height: 100%;
}

    .tab-security:hover {
        background: #f4f8f4;
        color: #7fad49;
    }

    .tab-security.active {
        background: #e6f0d7;
        color: #7fad49;
    }

.lst-bodytab-security {
    overflow-y: hidden;
    height: 100%;
    width: 200%;
    display: flex;
    flex-direction: row;
}

.body-tab-security {
    height: 100%;
    width: 50%;
    overflow: auto;
    display: none;
}

    .body-tab-security.active {
        display: block;
    }

.table_security_user, .table_security_group {
    height: calc(100% - 150px);
    overflow: auto;
}

.lst-button-securityuser {
    height: 150px;
    display: grid;
    align-items: center;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    padding: 10px;
}

    .lst-button-securityuser button {
        border: 1px solid #d3d3d3;
        height: 50px;
        font-size: 14px;
    }

#table_security_user tbody tr.selected, #table_security_group tbody tr.selected {
    background: #e6f0d7;
    font-weight: 600;
}

.categories-table td:last-child, .categories-table th:last-child {
    width: 0px;
    max-width: 0px;
    min-width: 0px !important;
}

.popup-sidebar-append-id.categories-div-edit {
/*    max-height: calc(100vh - 120px);*/
}

.form-input input[type="checkbox"]:checked + .label-for-checkbox::after {
    left: 9px;
    top: 4px;
}

.tab-container {
    /*border: 1px solid #ccc;*/
    border-radius: 6px;
    font-family: Arial, sans-serif;
    height: 100%;
}


.tab-header {
    display: flex;
    /*border-bottom: 1px solid #ccc;*/
}


    .tab-header button {
        flex: 1;
        padding: 10px;
        background: #fff;
        border: none;
        /*  border-right: 1px solid #ccc;*/
        cursor: pointer;
        transition: background 0.3s;
        font-size: 14px;
        color: #000000;
    }


        .tab-header button:last-child {
            border-right: none;
        }


        .tab-header button.active {
            background: #e6f0d7;
            color: #83b04f;
            font-weight: bold;
        }


.tab-container .tab-content {
    padding: 15px;
    display: none;
    overflow: auto;
    height: calc(100% - 40px);
}


    .tab-container .tab-content.active {
        display: block;
    }

.report-security-div-edit {
    width: 60%;
    min-width: 400px;
    max-width: 800px;
}

    .report-security-div-edit .popup-content, .report-security-div-edit .categories-div {
        width: 100%;
    }

    .report-security-div-edit .menu-sidebar-append-manual-quick {
        height: calc(100% - 40px);
        display: flex;
        flex-direction: row;
    }

        .report-security-div-edit .menu-sidebar-append-manual-quick .report-group {
            width: 30%;
            height: 100%;
            border-right: 1px solid #d3d3d3;
            overflow: auto;
        }

        .report-security-div-edit .menu-sidebar-append-manual-quick .report-list {
            width: 70%;
            height: 100%;
            overflow: auto;
        }

.report-group-item {
    height: 40px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f5f2f2;
    cursor: pointer;
    padding-left: 10px;
}

    .report-group-item.selected {
        background: #e6f0d7;
        color: #7fad49;
    }

.report-list tr {
    border-bottom: 1px solid #f5f2f2;
    height: 40px;
}

.report-security-div-edit .lst-btn .btn {
    font-size: 13px;
}

.openpopup_itempackage {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    border-radius: 5px;
    background: #7fad49;
    color: #fff;
    cursor: pointer;
}

#categoriesTable tr.selected {
    background: #e6f0d7;
}

#search-roomname, #search_roomtype {
    width: 100%;
    border: 1px solid #d3d3d3;
    border-radius: 5px;
    padding: 5px;
    margin: 5px;
    height: 40px;
    outline: 0px;
}

.categories-table tr.selected {
    background: #e6f0d7;
}

input[type="radio"] {
    display: none;
}

input[readonly] {
    background: #d3d3d300;
}

.col-md-12.chill {
    padding-left: 46px;
    position: relative;
}

    .col-md-12.chill::before {
        content: '';
        position: absolute;
        height: 52px;
        width: 24px;
        border-left: 2px solid var(--bs-gray-400);
        border-bottom: 2px solid var(--bs-gray-400);
        border-radius: 0 0 0 16px;
        left: 34px;
        bottom: 16px;
        z-index: 6;
    }

.permision-open {
    width: 30px;
    cursor: pointer;
    transition: 0.3s;
}

    .permision-open:hover {
        color: blue;
    }

    .permision-open.open {
        transform: rotate(90deg);
        transition: 0.3s;
    }

.rate-param-top .label-for-checkbox {
    width: 25px !important;
    height: 25px !important;
    border: 1px solid #d3d3d3;
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    top: unset;
    transform: unset;
    left: unset;
}

.table-ratebreakdown tbody input {
    height: 35px;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #d3d3d3;
    outline: 0px;
}

#tablerate tr {
    cursor: pointer;
}

    #tablerate tr.active {
        background: #c5d7af;
    }

.openpopup_buttonpackage {
    background: #7eac48;
    height: 40px;
    width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 5px;
    cursor:pointer;
}

#itemTablePackage tbody tr {
    cursor: pointer;
}

    #itemTablePackage tbody tr.active {
        background: #e6f0d7;
        color: #7eac48;
    }
#itemTablePackageDetail tbody tr {
    cursor: pointer;
}

    #itemTablePackageDetail tbody tr.active {
        background: #e6f0d7;
        color: #7eac48;
    }
#search-item {
    width: 100%;
    border: 1px solid #d3d3d3;
    border-radius: 5px;
    padding: 5px;
    margin: 5px;
    height: 40px;
    outline: 0px;
}