.text-overflow-ellipsis {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    word-wrap: break-word;
}
.stepper[data-kt-stepper-previous="false"] [data-kt-stepper-action="previous"] {
    display: none;
}
.stepper[data-kt-stepper-skip="false"] [data-kt-stepper-action="skip"] {
    display: none;
}
.stepper.last[data-kt-stepper-last-action="false"] [data-kt-stepper-action] {
    display: none;
}
.intl-tel-input {
    width: 100%;
}

.photo-actions {
    position: absolute;
    top: 5px;
    right: 5px;
    display: none;
    align-items: center;
    background-color: var(--bs-body-bg);
    border-radius: 8px;
    padding: 3px;
    box-shadow: var(--bs-root-card-box-shadow);
    border: 1px solid var(--bs-card-border-color);
}
.photo-actions i {
    cursor: pointer;
    margin: 0 3px;
}
.facility-photo:hover .photo-actions {
    display: flex;
}
.facility-main-photo {
    top: 0;
    left: 0;
    /*margin-top: -9px;*/
    /*margin-left: -9px;*/
    position: absolute;
    font-size: 15px;
    /*border-top-left-radius: 8px;*/
    border-bottom-right-radius: 8px;
    padding: 3px 6px;
    display: none;
    font-weight: bold;
    /*border: 1px solid var(--bs-card-border-color);*/
}
.facility-main-photo i {
    font-size: 18px;
    margin-right: 5px;
}
.main-photo .set-main-photo {
    display: none;
}
.main-photo .facility-main-photo {
    display: flex;
    align-items: center;
}
[data-MainImageSet] .facility-image, [data-MainImageSet] .facility-icon {
    display: none;
}
[data-MainImageSet="1"] .facility-image {
    display: block;
}
[data-MainImageSet="0"] .facility-icon {
    display: block;
}

/*bs*/
.modal-header, .modal-footer {
    padding-top: 10px;
    padding-bottom: 10px;
}
.btn-group-xs > .btn, .btn-xs {padding: .25rem .4rem; font-size: .875rem; line-height: .5; border-radius: .2rem;}
.btn-badge {
    padding: 0.325rem 0.5rem !important;
    font-size: 0.85rem !important;
    line-height: 1 !important;
}
/*metronic*/
.image-input-empty .image-input-wrapper {
    background-image: none !important;
}
.image-input-placeholder {
    background-image: url('/assets/media/svg/avatars/blank.svg');
}
[data-bs-theme="dark"] .image-input-placeholder {
    background-image: url('/assets/media/svg/avatars/blank-dark.svg');
}
[data-kt-indicator="on"] {
    pointer-events: none;
    opacity: .65;
}
[data-kt-indicator=on]>.indicator-progress {
    white-space: nowrap;
}
.centered[data-kt-indicator="on"] {
    display: flex;
    align-items: center;
    justify-content: center;
}

/*autocomplete*/
.autocomplete-suggestions {background: var(--bs-body-bg); border: 1px solid var(--bs-gray-300); border-radius: .475rem; border-top: none;}
.autocomplete-suggestion, .autocomplete-no-suggestion {padding: 13px 19.5px;}
.autocomplete-selected { background: var(--bs-light)!important; }

.step {
    display: none;
}
.step.active {
    display: block;
}

#period_tables .d-grid .d-flex > span:not(:last-child), #sale_rooms .d-grid .d-flex > span:not(:last-child) {
    flex: none;
    margin-right: 10px;
}
#period_tables .empty {
    height: 34.8px;
}

#sale_rooms_step_2 .d-flex .d-grid {
    height: fit-content;
}
.guest.child .adult-only {
    display: none !important;
}

.fc-event::before, .fc-event::after {
    content: none !important;
}
.fc-event:focus {
    box-shadow: none !important;
}

.empty-fill-level, .lowest-fill-level, .low-fill-level, .medium-fill-level, .high-fill-level, .highest-fill-level {
    position: relative;
    border-radius: .425rem;
    font-weight: bold;
    color: #fff;
}
.empty-fill-level:before, .lowest-fill-level:before, .low-fill-level:before, .medium-fill-level:before, .high-fill-level:before, .highest-fill-level:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    z-index: -1;
    border-radius: .425rem 0 0 .425rem;
    background: #EA1655 !important;
}
.empty-fill-level:after, .lowest-fill-level:after, .low-fill-level:after, .medium-fill-level:after, .high-fill-level:after, .highest-fill-level:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    z-index: -2;
    border-radius: .425rem;
    background: #17C653;
}
.lowest-fill-level:before {
    width: 0;
}
/* Empty State (Green - Yellow Transition) */
.low-fill-level:before {
    width: 25%;
}
/* Low Fill Level (Yellow - Orange Transition) */
.medium-fill-level:before {
    width: 50%;
}
/* Medium Fill Level (Orange - Red Transition) */
.high-fill-level:before {
    width: 75%;
}
/* High Fill Level (Red Only) */
.highest-fill-level:before, .empty-fill-level:before {
    border-radius: .425rem;
    width: 100%;
}
/* empty fill level */
.empty-fill-level:before {
    background: #FFB25F !important;
}

.forecast-date.first-date-of-month:not(.active) {
    background-color: #1DD3E6;
}
.forecast-date.first-date-of-month:not(.active) span {
    color: #fff !important;
}
.forecast-date.monday:not(.active) {
    border-left: 1px solid #f8285a !important;
}
.forecast-date.sunday:not(.active) {
    border-right: 1px solid #f8285a !important;
}

tr.strikeout td {
    position: relative;
}
tr.strikeout, tr.strikeout * {
    color: #99A1B7 !important;
    pointer-events: none;
}
tr.strikeout td:before {
    content: " ";
    position: absolute;
    top: 50%;
    left: 0;
    border-bottom: 1px solid #888;
    width: 100%;
}

.bg-whatsapp {
    background: #25D366 !important;
}
.bg-whatsapp-business {
    background: #075E54 !important;
}
.bg-instagram{
    background: #f09433;
    background: -moz-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    background: -webkit-linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f09433', endColorstr='#bc1888',GradientType=1 );
}
.bg-facebook {
    background: #4267B2 !important;
}
.text-whatsapp {
    color: #25D366 !important;
}
.text-whatsapp-business {
    color: #075E54 !important;
}
.text-instagram{
    color: #f09433;
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f09433', endColorstr='#bc1888',GradientType=1 );
}
.text-facebook {
    color: #4267B2 !important;
}

.customer {
    border-radius: .75rem;
    cursor: pointer;
}
.customer:hover {
    background: rgba(0, 0, 0, .025);
}
.customer.active {
    background: rgba(0, 0, 0, .05);
}
[data-bs-theme=dark] .customer:hover {
    background: rgba(255, 255, 255, .025);
}
[data-bs-theme=dark] .customer.active {
    background: rgba(255, 255, 255, .05);
}
.customer img[src=""],
.customer .avatar-letter:not([data-image=""]),
.customer .unread[data-content="0"],
.customer .agent[data-content=""],
.symbol.avatar img[src=""],
.symbol.avatar .avatar-letter:not([data-image=""]){
    display: none;
}
.unread[data-content], .account-link-item:not(.show) .last-message-dot[data-content] {
    display: inline-flex;
}
.unread[data-content]:after {
    content: attr(data-content);
}

.account-link-item .last-message-dot[data-content] {
    /*margin-top: -.85rem;*/
    margin-right: .25rem;
    padding: .3rem !important;
}

.account-link-item .unread[data-content="0"], .account-link-item .last-message-dot[data-content="0"], .channel-link .unread[data-content="0"] {
    display: none !important;
}

.channel-link:not(.no-connection) .no-connection-text {
    display: none;
}
.channel-link .no-connection-text {
    margin-left: .25rem;
}
.channel-link.no-connection .menu-link {
    background: var(--bs-danger)!important;
}
.channel-link.no-connection * {
    color: var(--bs-text-white) !important;
}

.table-load-more tbody tr:not(.active) {
    display: none;
}
.table-load-more .load-more {
    display: none;
    margin-top: .5rem;
}
.table-load-more:has(tbody tr:not(.active)) .load-more {
    display: inline-block;
}

.table-filters-main:has(.table-filter) .table-filter-apply {
    display: block;
}
.table-filter-add {
    display: flex;
    align-items: center;
    gap: .5rem;
}
.table-filters-div {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}
.table-filters-div:has(.table-filter) {
    margin-top: 1.75rem!important;
}
.table-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}
.table-filter {
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--bs-root-card-border-color);
    padding: 5px 10px;
    border-radius: 1rem;
    background: var(--bs-app-bg-color);
}
.table-filter-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}
.table-filter-remove {
    color: var(--bs-text-danger)!important;
    font-size: 1.4rem;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.table-filter-inputs {
    display: flex;
    gap: .5rem;
}
.table-filter-inputs input {
    width: 120px;
}
.table-filter-apply {
    display: none;
}

.message-actions {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    background: inherit;
    max-height: 100%;
    border-radius: .75rem;
    padding-right: 5px;
}
.message-action-icon {
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 26px;
}
.message-action-icon i {
    font-size: 1.5rem;
}
.chat-message .message-text:hover .message-actions, .message-actions:has(.message-action-icon.show){
    display: block;
}
.image {
    cursor: pointer;
}

.chat_files_previews {
    padding: 0 1rem;
    overflow: auto;
}
.chat_files_previews:has(.file-preview) {
    padding: 1rem;
}
.file-preview {
    position: relative;
    height: 50px;
    flex-shrink: 0;
}
.file-preview:hover .remove {
    display: block;
}
.file-preview .remove {
    position: absolute;
    display: none;
    top: -10px;
    right: -10px;
    cursor: pointer;
    opacity: .75;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.file-preview .remove:hover {
    opacity: 1;
}
.file-preview-main {
    height: 100%;
    border: 1px solid var(--bs-card-border-color);
    border-radius: .75rem;
    overflow: hidden;
    display: flex;
    gap: 1rem;
    align-items: center;
    background: var(--bs-app-bg-color);
}
.file-preview-main:has(.preview-icon) {
    padding: 0 2.25rem 0 .75rem;
}
.file-preview-main img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}
.file-preview-main .preview-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: .75rem;
    background: var(--bs-primary);
    width: 30px;
    height: 30px;
}
.file-preview-main .preview-icon i {
    font-size: 18px;
    color: var(--bs-primary-inverse);
}
.file-preview-main .preview-text {
    user-select: none;
    display: grid;
}
.file-preview-main .preview-text span {
    max-width: 100px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
.file-preview-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: .75rem;
    background: rgba(0,0,0,.5);
}

[data-kt-app-sidebar-stacked=true] {
    --bs-app-sidebar-primary-width: 60px;
}
.app-sidebar-primary {
    background-color: var(--bs-app-header-primary-base-bg-color);
    box-shadow: var(--bs-app-header-primary-base-box-shadow);
    border-bottom: var(--bs-app-header-primary-base-border-bottom);
}
[data-kt-app-header-primary-enabled=true] {
    --bs-app-header-primary-height: 0px;
}
#kt_aside_menu_wrapper .menu-icon i {
    color: #fff;
}
#kt_aside_menu_wrapper .text-icon {
    color: var(--bs-text-gray-900)!important;
}
#kt_aside_menu_wrapper .menu-link:hover .menu-icon i, #kt_aside_menu_wrapper .menu-item.here .menu-icon i {
    color: var(--bs-primary);
}

.mw-300px-select2 {
    max-width: 300px;
}
.mw-300px-select2 .select2-dropdown {
    width: auto !important; /* Dropdown'un genişliğini içeriğe göre ayarlayın */
    max-width: 300px; /* Maksimum genişliği sınırlayın (ihtiyaca göre ayarlayın) */
    overflow-x: auto; /* Taşma durumunda yatay kaydırma çubuğu ekleyin */
}

.mw-300px-select2 .select2-results__option {
    white-space: nowrap; /* Tek satırda göster */
    overflow: hidden; /* Taşan kısmı gizle */
    text-overflow: ellipsis; /* Ellipsis olarak göster */
    max-width: 100%; /* Metinlerin genişliğini sınırlayın */
}


.label-before {
    line-height: 20px;
    font-size: 12px;
    top: -10px;
    background: var(--bs-body-bg);
    padding: 0 6px;
    left: 9px;
}

.field {
    position: relative;
    /*margin-bottom: 15px;*/
}

/* Mobile Header Controls */
.app-header-mobile-controls {
    background-color: #b02a00;
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.app-header-mobile-controls .btn-custom {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.app-header-mobile-controls .btn-custom:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.field label::before {
    content: attr(title);
    position: absolute;
    top: 0;
    left: 15px;
    line-height: 40px;
    font-size: 14px;
    color: var(--bs-gray-700);
    transition: 300ms all;
}

.field input {
    width: 100%;
    line-height: 40px;
    padding: 0 15px;
    box-sizing: border-box;
    font-size: 14px;
    color: var(--bs-gray-700);
    border: 1px solid var(--bs-gray-300);
    border-radius: .75rem;
}

.field input:focus {
    outline: 0;
    border-color: var(--bs-primary);
}

.field input:valid + label::before, .field input:disabled + label::before {
    line-height: 20px;
    font-size: 12px;
    top: -10px;
    background: var(--bs-body-bg);
    padding: 0 6px;
    left: 9px;
    content: attr(data-title);
}

.field input:focus + label::before {
    line-height: 20px;
    font-size: 12px;
    top: -10px;
    background: var(--bs-body-bg);
    padding: 0 6px;
    left: 9px;
    color: var(--bs-primary);
}

.field input[type=date]:required:invalid::-webkit-datetime-edit {
    color: transparent;
}
.field input[type=date]:focus::-webkit-datetime-edit {
    color: var(--bs-gray-700) !important;
}

.field-select, .field-button {
    line-height: 40px;
    padding: 0 15px !important;
    font-size: 14px;
}


.quote-message {
    border: 1px solid #53bdeb;
    border-left-width: 4px;
    width: 100%;
    padding: 5px 10px;
    border-radius: 6px;
    background: rgba(0,0,0,.05);
}
.chat-message .quote-message {
    margin-left: -10px;
    width: calc(100% + 30px);
    margin-bottom: .25rem;
}
.quote-message.quote-in {
    border-color: #06cf9c;
}
.quote-message .quote-name {
    color: #53bdeb;
}
.quote-message.quote-in .quote-name {
    color: #06cf9c;
}

.modal-body .chat_messages {
    max-height: 400px !important;
}
.clear_message_top {
    cursor: pointer;
    margin-right: .5rem;
}

/* Instagram Duyuru Animasyonları */
.instagram-announcement {
    position: relative;
    overflow: hidden;
    animation: slideInFromRight 0.8s ease-out;
}

.instagram-announcement::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

.instagram-announcement .instagram-icon {
    animation: pulse 2s infinite;
    transform-origin: center;
}

.instagram-announcement .announcement-text {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.instagram-announcement .detail-button {
    animation: bounceIn 1s ease-out 0.6s both;
    transition: all 0.3s ease;
}

.instagram-announcement .detail-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 9, 79, 0.3);
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobil Chat Düzenlemeleri */
@media (max-width: 767.98px) {
    #chat_row {
        flex-direction: column;
    }
    
    #chat_contacts {
        width: 100% !important;
        min-width: unset !important;
        margin-bottom: 1rem;
    }
    
    #kt_chat_messenger {
        width: 100% !important;
    }
    
    .customer {
        cursor: pointer;
        transition: background-color 0.2s ease;
    }
    
    .customer:hover {
        background-color: var(--bs-gray-100);
    }
    
    #mobile_back_to_contacts {
        position: sticky;
        top: 0;
        z-index: 10;
        background: var(--bs-body-bg);
        border-bottom: 1px solid var(--bs-border-color);
        margin: -1rem -1rem 1rem -1rem;
        padding: 1rem;
        border-radius: 0;
        cursor: pointer;
        pointer-events: auto;
    }
    
    #mobile_back_to_contacts:hover {
        background-color: var(--bs-gray-100);
    }
}