﻿#supportFab {
    position: fixed;
    right: 20px;
    bottom: 50px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #0b1a33;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    cursor: pointer;
    transition: transform 0.2s ease;
}
#supportFab i { color: #fff; font-size: 18px; }
#supportFab:hover { transform: scale(1.05); }

#supportBottomClose {
    position: fixed;
    right: 20px;
    bottom: 50px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #0b1a33;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    z-index: 9999 !important;
    cursor: pointer;
}
#supportBottomClose i {
    color: #fff;
    font-size: 16px;
    pointer-events: none;
}

.support-popup {
    position: fixed !important;
    top: auto !important;
    left: auto !important;
    right: 24px !important;
    bottom: 100px !important;
    width: 400px !important;
    height: 480px !important;
    max-width: 90vw;
    max-height: 80vh;
    z-index: 10000 !important;
    overflow: hidden !important;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.support-popup-header {
    background: #0b1a33 !important;
    color: #fff !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 40px;
}
.support-header-bar {
    display: flex;
    align-items: center;
    padding-left: 14px;
    flex: 1;
}
.support-header-icon { font-size: 14px; margin-right: 8px; color: #fff; }
.support-header-title { font-size: 13px; font-weight: 500; color: #fff; }

.support-header-actions {
    display: flex;
    align-items: center;
    padding-right: 8px;
    gap: 2px;
}
.support-header-btn {
    color: #fff;
    font-size: 14px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
}
.support-header-btn:hover { background: rgba(255, 255, 255, 0.15); }

.support-minimized .support-header-btn#btnSupportMinimize {
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
}

.support-popup .dxpc-content {
    padding: 0 !important;
    height: calc(480px - 40px) !important;
    max-height: calc(480px - 40px) !important;
    overflow: hidden !important;
}
.support-popup .dxpc-content iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    display: block;
    overflow:hidden !important;
}
.support-popup .dxpc-content > div {
    height: 100%;
    overflow-y: auto;
    padding: 16px;
    box-sizing: border-box;
}

.support-minimized {
    height: 40px !important;
    max-height: 40px !important;
}
.support-minimized .dxpc-content {
    display: none !important;
}

.support-form { padding: 0; }
.support-form-row { display: flex; gap: 16px; margin-bottom: 16px; }
.support-form-col { flex: 1; }
.support-form label {
    font-size: 13px; font-weight: 500; color: #333;
    display: block; margin-bottom: 6px;
}
.support-form .req { color: #d32f2f; }
.support-hint { font-size: 12px; color: #888; margin: 4px 0 8px; }
.support-input { width: 100% !important; }
.support-editor {
    width: 100%; min-height: 140px; border: 1px solid #ddd;
    border-radius: 6px; padding: 10px; font-family: inherit;
    font-size: 13px; resize: vertical; box-sizing: border-box;
}
.support-submit-row { justify-content: flex-end; display: flex; }
.support-submit-btn {
    background: #0b1a33 !important; color: #fff !important; border: none !important;
    padding: 9px 22px !important; border-radius: 6px !important; font-size: 13px !important;
}

/*@media (min-width: 1440px) {
    .support-popup { width: 420px !important; height: 520px !important; }
    .support-popup .dxpc-content { height: calc(520px - 40px) !important; max-height: calc(520px - 40px) !important; }
}
@media (max-width: 1024px) {
    .support-popup { width: 340px !important; height: 460px !important; }
    .support-popup .dxpc-content { height: calc(460px - 40px) !important; max-height: calc(460px - 40px) !important; }
}
@media (max-width: 768px) {
    .support-popup {
        width: 100vw !important; height: 85vh !important; max-width: 100vw !important;
        left: 0 !important; right: 0 !important; bottom: 0 !important; top: auto !important;
        border-radius: 12px 12px 0 0 !important;
    }
    .support-popup .dxpc-content { height: calc(85vh - 40px) !important; max-height: calc(85vh - 40px) !important; }
    .support-form-row { flex-direction: column; gap: 10px; }
    #supportFab, #supportBottomClose { width: 42px; height: 42px; right: 16px; bottom: 110px; }
}
@media (max-width: 480px) {
    #supportFab, #supportBottomClose { width: 38px; height: 38px; right: 12px; bottom: 100px; }
    .support-form label { font-size: 12px; }
}*/

.maximizeminw1440 {
    width: 30vw !important;
    min-height: 70vh !important;
    height: 70vh !important;
}
.maximizeminw1440 .dxpc-content {
    height: calc(70vh - 40px) !important;
    max-height: calc(70vh - 40px) !important;
}

.maximizemax1024 {
    width: 50vw !important;
    height: 75vh !important;
}
.maximizemax1024 .dxpc-content {
    height: calc(75vh - 40px) !important;
    max-height: calc(75vh - 40px) !important;
}

.maximizemax768 {
    width: 100vw !important;
    height: 95vh !important;
    max-width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    border-radius: 12px 12px 0 0 !important;
}
.maximizemax768 .dxpc-content {
    height: calc(95vh - 40px) !important;
    max-height: calc(95vh - 40px) !important;
}

.maximizedefault {
    width: 35vw !important;
    height: 80vh !important;
}
.maximizedefault .dxpc-content {
    height: calc(80vh - 40px) !important;
    max-height: calc(80vh - 40px) !important;
}

/* ===== MINIMIZE ===== */
.minimizeminw1440 { width: 300px !important; height: 45px !important; min-height: 45px !important; }
.minimizeminw1440 .dxpc-content { display: none !important; }

.minimizemax1024 { width: 260px !important; height: 45px !important; min-height: 45px !important; }
.minimizemax1024 .dxpc-content { display: none !important; }

.minimizemax768 {
    width: 60vw !important; height: 45px !important; min-height: 45px !important;
    max-width: 60vw !important; left: 0 !important; right: 0 !important;
    bottom: 0 !important; top: auto !important; border-radius: 8px 8px 0 0 !important;
    margin: 0 auto !important;
}
.minimizemax768 .dxpc-content { display: none !important; }

.minimizedefault { width: 240px !important; height: 45px !important; min-height: 45px !important; }
.minimizedefault .dxpc-content { display: none !important; }

/*==== initila open popup===========*/
.support-popup.opennormalmax768 {
    width: 100vw !important; height: 95vh !important; max-width: 100vw !important;
    left: 0 !important; right: 0 !important; bottom: 0 !important; top: auto !important;
    border-radius: 12px 12px 0 0 !important; position: fixed !important;
}
.support-popup.opennormalmax768 .dxpc-content {
    height: calc(95vh - 40px) !important; max-height: calc(95vh - 40px) !important;
}

.support-popup.opennormalmax1024 {
    width: 50vw !important; height: 75vh !important;
    /*position: fixed !important; right: 24px !important; bottom: 24px !important;*/
}
.support-popup.opennormalmax1024 .dxpc-content {
    height: calc(75vh - 40px) !important; max-height: calc(75vh - 40px) !important;
}

.support-popup.opennormalminw1440 {
    width: 30vw !important; height: 70vh !important;
    /*position: fixed !important; right: 24px !important; bottom: 24px !important;*/
}
.support-popup.opennormalminw1440 .dxpc-content {
    height: calc(70vh - 40px) !important; max-height: calc(70vh - 40px) !important;
}

.support-popup.opennormaldefault {
    width: 35vw !important; height: 80vh !important;
    /*position: fixed !important; right: 24px !important; bottom: 24px !important;*/
}
.support-popup.opennormaldefault .dxpc-content {
    height: calc(80vh - 40px) !important; max-height: calc(80vh - 40px) !important;
}