html.th-dir-rtl {
    direction: rtl;
}

html.th-dir-rtl body {
    direction: rtl;
    text-align: right;
}

html.th-dir-rtl input,
html.th-dir-rtl textarea,
html.th-dir-rtl select,
html.th-dir-rtl button {
    direction: rtl;
}

html.th-dir-rtl input,
html.th-dir-rtl textarea,
html.th-dir-rtl select,
html.th-dir-rtl .form-control,
html.th-dir-rtl .form-select {
    text-align: right;
}

html.th-dir-rtl input[type="email"],
html.th-dir-rtl input[type="tel"],
html.th-dir-rtl input[type="url"],
html.th-dir-rtl input[type="number"],
html.th-dir-rtl input[type="password"],
html.th-dir-rtl code,
html.th-dir-rtl pre,
html.th-dir-rtl .text-uppercase,
html.th-dir-rtl .th-lang-code {
    direction: ltr;
}

html.th-dir-rtl .text-start {
    text-align: right !important;
}

html.th-dir-rtl .text-end {
    text-align: left !important;
}

html.th-dir-rtl .float-start {
    float: right !important;
}

html.th-dir-rtl .float-end {
    float: left !important;
}

html.th-dir-rtl .ms-auto {
    margin-left: 0 !important;
    margin-right: auto !important;
}

html.th-dir-rtl .me-auto {
    margin-right: 0 !important;
    margin-left: auto !important;
}

html.th-dir-rtl .ms-0 { margin-right: 0 !important; margin-left: 0 !important; }
html.th-dir-rtl .ms-1 { margin-right: .25rem !important; margin-left: 0 !important; }
html.th-dir-rtl .ms-2 { margin-right: .5rem !important; margin-left: 0 !important; }
html.th-dir-rtl .ms-3 { margin-right: 1rem !important; margin-left: 0 !important; }
html.th-dir-rtl .ms-4 { margin-right: 1.5rem !important; margin-left: 0 !important; }
html.th-dir-rtl .ms-5 { margin-right: 3rem !important; margin-left: 0 !important; }

html.th-dir-rtl .me-0 { margin-left: 0 !important; margin-right: 0 !important; }
html.th-dir-rtl .me-1 { margin-left: .25rem !important; margin-right: 0 !important; }
html.th-dir-rtl .me-2 { margin-left: .5rem !important; margin-right: 0 !important; }
html.th-dir-rtl .me-3 { margin-left: 1rem !important; margin-right: 0 !important; }
html.th-dir-rtl .me-4 { margin-left: 1.5rem !important; margin-right: 0 !important; }
html.th-dir-rtl .me-5 { margin-left: 3rem !important; margin-right: 0 !important; }

html.th-dir-rtl .ps-0 { padding-right: 0 !important; padding-left: 0 !important; }
html.th-dir-rtl .ps-1 { padding-right: .25rem !important; padding-left: 0 !important; }
html.th-dir-rtl .ps-2 { padding-right: .5rem !important; padding-left: 0 !important; }
html.th-dir-rtl .ps-3 { padding-right: 1rem !important; padding-left: 0 !important; }
html.th-dir-rtl .ps-4 { padding-right: 1.5rem !important; padding-left: 0 !important; }
html.th-dir-rtl .ps-5 { padding-right: 3rem !important; padding-left: 0 !important; }

html.th-dir-rtl .pe-0 { padding-left: 0 !important; padding-right: 0 !important; }
html.th-dir-rtl .pe-1 { padding-left: .25rem !important; padding-right: 0 !important; }
html.th-dir-rtl .pe-2 { padding-left: .5rem !important; padding-right: 0 !important; }
html.th-dir-rtl .pe-3 { padding-left: 1rem !important; padding-right: 0 !important; }
html.th-dir-rtl .pe-4 { padding-left: 1.5rem !important; padding-right: 0 !important; }
html.th-dir-rtl .pe-5 { padding-left: 3rem !important; padding-right: 0 !important; }

html.th-dir-rtl .dropdown-menu {
    text-align: right;
}

html.th-dir-rtl .dropdown-menu-end {
    right: auto !important;
    left: 0 !important;
}

html.th-dir-rtl .dropdown-menu-start {
    right: 0 !important;
    left: auto !important;
}

html.th-dir-rtl .dropdown-item,
html.th-dir-rtl .nav-link,
html.th-dir-rtl .btn,
html.th-dir-rtl .alert,
html.th-dir-rtl .card,
html.th-dir-rtl .modal,
html.th-dir-rtl .table th,
html.th-dir-rtl .table td {
    text-align: right;
}

html.th-dir-rtl .input-icon .input-icon-addon {
    right: 0;
    left: auto;
}

html.th-dir-rtl .input-icon .form-control {
    padding-right: 2.5rem;
    padding-left: .75rem;
}

html.th-dir-rtl .th-header-actions {
    margin-left: 0;
    margin-right: auto;
}

html.th-dir-rtl .th-header-menu {
    right: auto;
    left: 0;
    text-align: right;
}

html.th-dir-rtl .th-language-menu a small,
html.th-dir-rtl .th-footer-language-button i {
    margin-left: 0;
    margin-right: auto;
}

html.th-dir-rtl .th-nav a.is-active::after {
    left: 0;
    right: 0;
}

html.th-dir-rtl .th-home-floating-panel {
    right: auto;
    left: 18px;
}

html.th-dir-rtl .th-home-section-head,
html.th-dir-rtl .th-home-property-grid footer,
html.th-dir-rtl .th-results-bar,
html.th-dir-rtl .th-results-actions,
html.th-dir-rtl .th-list-card-actions,
html.th-dir-rtl .th-detail-topbar,
html.th-dir-rtl .th-detail-tabs,
html.th-dir-rtl .th-booking-summary-row,
html.th-dir-rtl .th-account-sidebar a,
html.th-dir-rtl .th-account-table th,
html.th-dir-rtl .th-account-table td {
    text-align: right;
}

html.th-dir-rtl .th-list-card,
html.th-dir-rtl .th-grid-card,
html.th-dir-rtl .th-detail-layout,
html.th-dir-rtl .th-booking-layout {
    direction: rtl;
}

html.th-dir-rtl .th-map-shell,
html.th-dir-rtl .th-map,
html.th-dir-rtl .leaflet-container,
html.th-dir-rtl .th-mapbox {
    direction: ltr;
    text-align: left;
}

html.th-dir-rtl .th-gallery-modal,
html.th-dir-rtl .th-photo-gallery {
    direction: ltr;
}

html.th-dir-rtl .layout-combo .navbar-brand a {
    display: inline-flex;
    align-items: center;
}

html.th-dir-rtl .th-admin-logo,
html.th-dir-rtl .th-admin-brand-logo {
    margin-right: 0;
    margin-left: 8px;
}

html.th-dir-rtl .layout-combo .navbar-vertical {
    border-right: 0;
    border-left: 1px solid rgba(255, 255, 255, .08);
}

html.th-dir-rtl .layout-combo .navbar-vertical .nav-link {
    text-align: right;
}

html.th-dir-rtl .layout-combo .navbar-vertical .nav-link-icon {
    margin-right: 0;
    margin-left: 8px;
}

html.th-dir-rtl .th-admin-auth-language {
    right: auto;
    left: 14px;
}

html.th-dir-rtl .th-admin-search-menu,
html.th-dir-rtl .th-country-dropdown,
html.th-dir-rtl .th-autosuggest-menu {
    direction: rtl;
    text-align: right;
}

html.th-dir-rtl .th-country-dropdown button,
html.th-dir-rtl .th-autosuggest-menu button {
    text-align: right;
}

html.th-dir-rtl .th-studio-shell {
    grid-template-columns: 245px minmax(0, 1fr);
}

html.th-dir-rtl .th-studio-summary {
    order: -1;
}

html.th-dir-rtl .th-field,
html.th-dir-rtl .th-room-manager,
html.th-dir-rtl .th-room-manager .th-agent-form,
html.th-dir-rtl .th-room-planner,
html.th-dir-rtl .th-planner-filters,
html.th-dir-rtl .th-planner-card,
html.th-dir-rtl .th-planner-booking-list,
html.th-dir-rtl .th-planner-reservation-form {
    direction: rtl;
    text-align: right;
}

html.th-dir-rtl .th-autosuggest-menu button,
html.th-dir-rtl .th-inline-calendar button,
html.th-dir-rtl .th-room-modern-table th,
html.th-dir-rtl .th-room-modern-table td {
    text-align: right;
}

html.th-dir-rtl .th-room-actions-head,
html.th-dir-rtl .th-room-modern-table td:last-child {
    text-align: left;
}

html.th-dir-rtl .th-room-modal-close {
    right: auto;
    left: 12px;
}

html.th-dir-rtl .th-room-assignment-left {
    border-right: 0;
    border-left: 1px solid #e4e9ef;
    box-shadow: -1px 0 0 rgba(15, 23, 42, .04);
}

html.th-dir-rtl .th-room-assignment-date,
html.th-dir-rtl .th-room-assignment-day,
html.th-dir-rtl .th-room-assignment-table th,
html.th-dir-rtl .th-room-assignment-table td {
    border-right: 0;
    border-left: 1px solid #edf1f5;
}

html.th-dir-rtl .th-room-assignment-day small::before {
    margin-right: 0;
    margin-left: 4px;
}

html.th-dir-rtl .th-room-assignment-table .th-room-assignment-room-col {
    left: auto;
    right: 0;
    text-align: right;
    box-shadow: -1px 0 0 rgba(15, 23, 42, .05);
}

html.th-dir-rtl .th-room-assignment-table,
html.th-dir-rtl .th-room-assignment-grid,
html.th-dir-rtl .th-room-assignment-scroll {
    direction: rtl;
}

html.th-dir-rtl .th-planner-grid {
    direction: rtl;
}

html.th-dir-rtl .th-planner-grid th,
html.th-dir-rtl .th-planner-grid td {
    border-right: 0;
    border-left: 1px solid #e5eaf0;
}

html.th-dir-rtl .th-planner-room-head,
html.th-dir-rtl .th-planner-room-cell,
html.th-dir-rtl .th-planner-category-head {
    left: auto;
    right: 0;
    text-align: right !important;
}

html.th-dir-rtl .th-planner-room-cell strong {
    padding-left: 0;
    padding-right: 8px;
}

html.th-dir-rtl .th-planner-room-head.disp-title {
    padding-left: 0;
    padding-right: 15px;
}

html.th-dir-rtl .th-planner-toast {
    right: auto;
    left: 22px;
}

@media (max-width: 920px) {
    html.th-dir-rtl .th-filter-panel {
        inset: 0 0 0 auto;
        transform: translateX(105%);
        box-shadow: -22px 0 52px rgba(16, 24, 40, .22);
    }

    html.th-dir-rtl .th-filter-panel.is-open {
        transform: translateX(0);
    }
}

@media (max-width: 860px) {
    html.th-dir-rtl .th-studio-shell {
        grid-template-columns: 1fr;
    }

    html.th-dir-rtl .th-studio-summary {
        order: 0;
    }
}
