﻿.img-thumbnail {
    border: none !important;
}

.xaf-component-image {
    transition: transform .2s;
}

    .xaf-component-image:hover {
        transform: scale(2.0);
    }

.DxGrid .dx-header-filter {
    display: none !important;
}

.dx-datagrid td:hover .dx-header-filter {
    display: inline-block !important;
}

/*
.dxbl-btn-toolbar {
    display: none !important;
}
*/

/* =========================================================
   Home Page Layout
   ========================================================= */

.homecontainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 200px;
    height: auto;
    padding-left: 5px;
    padding-right: 5px;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
    text-align: center;
}

@media screen and (min-width: 768px) {
    .homecontainer {
        padding-left: 50px;
        padding-right: 50px;
    }
}

@media only screen and (min-width: 1200px) {
    .homecontainer {
        padding-left: 80px;
        padding-right: 80px;
    }
}

.homecontainer-footer {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 25px;
}

/* =========================================================
   Header Logo
   ========================================================= */

#header-logo {
    margin: 10px;
    opacity: .70;
}

/* =========================================================
   Welcome Area
   ========================================================= */

.homecontainer h3 {
    font-weight: 600;
    color: #222;
    margin-bottom: 10px;
}

.homecontainer .lead {
    color: #444;
}

/* =========================================================
   Company Information Area
   ========================================================= */

.homecontainer .jumbotron {
    width: 100%;
    max-width: 900px;
}

    .homecontainer .jumbotron p {
        color: #444;
    }

/* =========================================================
   Home Page Notice
   ========================================================= */

.qgems-notice {
    width: 100%;
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
    text-align: left;
    background: #f7ebd2;
    border: 1px solid #e4c68a;
    border-left: 5px solid #ff7a00;
    border-radius: 6px;
    padding: 18px 22px;
    box-sizing: border-box;
    box-shadow: 0 3px 10px rgba(0,0,0,.06);
}

    .qgems-notice h4 {
        color: #6a4700;
        font-size: 20px;
        font-weight: 700;
        margin-bottom: 10px;
    }

    .qgems-notice p {
        color: #5c3d00;
        margin-bottom: 8px;
        line-height: 1.5;
    }

    .qgems-notice .text-danger {
        color: #d93025 !important;
        margin-top: 8px;
        font-weight: 700;
    }

    .qgems-notice a {
        color: #6a4700;
        font-weight: 700;
        text-decoration: underline;
    }

/* =========================================================
   Buttons
   ========================================================= */

.homecontainer .btn-primary {
    background: #ff7a00;
    border-color: #ff7a00;
    border-radius: 4px;
    padding: 8px 18px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(255,122,0,.18);
}

    .homecontainer .btn-primary:hover {
        background: #e96f00;
        border-color: #e96f00;
    }

    .homecontainer .btn-primary:focus,
    .homecontainer .btn-primary:active {
        background: #d96400;
        border-color: #d96400;
    }

/* =========================================================
   QGems Logo
   ========================================================= */

.homecontainer img {
    opacity: .45 !important;
    max-width: 320px;
    width: 100%;
    height: auto;
    margin-top: 18px;
}

/* =========================================================
   QGems Footer Panel
   Theme Aware + Centered Caption
   ========================================================= */

.qgems-footer-panel {
    width: 100% !important;
    min-width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background-color: var(--bs-secondary-bg, var(--bs-body-bg, #f8f9fa)) !important;
    border-top: 1px solid var(--bs-border-color, #dcdcdc) !important;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, .04) !important;
    box-sizing: border-box !important;
}

.qgems-footer-panel {
    width: 100%;
    padding: 0;
}

.qgems-footer-caption,
.ftcaption {
    width: 100% !important;
    min-height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px 14px !important;
    text-align: center !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: var(--bs-body-color, #212529) !important;
    background: transparent !important;
    letter-spacing: .4px !important;
    text-transform: uppercase !important;
    box-sizing: border-box !important;
}

/* Desktop - single line */
@media (min-width: 768px) {
    .qgems-footer-caption,
    .ftcaption {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}

/* Mobile / Tablet - allow wrapping to 2 lines */
@media (max-width: 767px) {
    .qgems-footer-caption,
    .ftcaption {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: unset !important;
        word-break: normal !important;
        line-height: 1.35 !important;
        max-width: 100% !important;
        padding: 8px 12px !important;
        font-size: 12px !important;
    }
}

/* =========================================================
   Responsive
   ========================================================= */

@media screen and (max-width: 768px) {
    .homecontainer {
        margin-left: 15px;
        margin-right: 15px;
    }

    .homecontainer-footer {
        margin-top: 20px;
    }

    .qgems-notice {
        max-width: 100%;
        padding: 15px;
    }

    .homecontainer img {
        max-width: 220px;
    }

    .homecontainer h3 {
        font-size: 1.5rem;
    }
}

.dxbl-popup a,
.dxbl-dropdown a,
.dxbl-grid a {
    pointer-events: none !important;
    color: inherit !important;
    text-decoration: none !important;
    cursor: default !important;
}


/* =========================================================
   AI Chat Window
   ========================================================= */

.qgems-ai-chat-wrapper {
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.qgems-ai-chat {
    width: 100%;
    height: 100%;
    /* DevExpress Chat UI Variables */
    --dxbl-chatui-message-font-size: 15px;
    --dxbl-chatui-message-line-height: 1.5;
}

    /* Assistant & User Messages */
    .qgems-ai-chat .dxbl-chatui-message-text {
        font-size: 15px !important;
        line-height: 1.5 !important;
    }

    /* Input Area */
    .qgems-ai-chat textarea,
    .qgems-ai-chat .dxbl-text-editor-input,
    .qgems-ai-chat .dxbl-texteditor-input {
        font-size: 14px !important;
    }

    /* Send Button */
    .qgems-ai-chat .dxbl-chatui-editor {
        font-size: 14px !important;
    }

    /* Message Containers */
    .qgems-ai-chat .dxbl-chatui-message {
        font-size: 15px !important;
    }

    /* Better readability for AI analysis */
    .qgems-ai-chat .dxbl-chatui-message-text {
        white-space: pre-wrap;
        word-break: break-word;
    }

    /* Optional - slightly larger assistant responses */
    .qgems-ai-chat .dxbl-chatui-message-assistant .dxbl-chatui-message-text {
        font-size: 15px !important;
    }

/* ==============================
   QGems Public Approval Layout
   ============================== */

.public-approval-page {
    min-height: 100vh;
}

.approval-content {
    flex: 1 0 auto;
}

/* ==============================
   QGems Common Wait Overlay
   ============================== */

.qgems-wait-overlay {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
    background: rgba(255, 255, 255, .65);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.qgems-wait-box {
    min-width: 200px;
    background: #fff;
    padding: 22px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
    text-align: center;
    font-weight: 600;
}

.qgems-wait-text {
    margin-top: 12px;
}

.logon-main.card:has(.company-picker) {
    width: 600px !important;
    max-width: 90vw !important;
}

.home-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 18px 0;
    flex-wrap: nowrap; /* Keep horizontal */
}

    .home-actions .btn {
        min-width: 145px;
        height: 42px;
        font-size: 0.95rem;
        font-weight: 500;
        border-radius: 7px;
    }

/* Hide Dashboards on phones */
@media (max-width: 768px) {
    .home-actions .mobile-hide {
        display: none;
    }

    .home-actions {
        gap: 10px;
    }

        .home-actions .btn {
            min-width: 140px;
        }
}
/* =========================================================
   Progress Overlay
   ========================================================= */

.progress-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, .45);
    backdrop-filter: blur(2px);
}

/* =========================================================
   Dialog
   ========================================================= */

.progress-dialog {
    width: 600px;
    max-width: 92vw;
    display: flex;
    gap: 24px;
    padding: 30px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,.30);
}

/* =========================================================
   Spinner
   ========================================================= */

.progress-spinner {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin-top: 8px;
    border: 4px solid #d7e7ff;
    border-top-color: #0d6efd;
    border-radius: 50%;
    animation: progress-spin .8s linear infinite;
}

@keyframes progress-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* =========================================================
   Content
   ========================================================= */

.progress-content {
    flex: 1;
    min-width: 0;
}

    .progress-content h3 {
        margin: 0 0 10px;
        font-size: 1.8rem;
        font-weight: 600;
        line-height: 1.2;
        color: #222;
    }

.progress-message {
    margin-bottom: 18px;
    color: #555;
    font-size: 1rem;
    line-height: 1.5;
}

/* =========================================================
   Progress Bar
   ========================================================= */

.qgems-progress-track {
    height: 24px;
    margin-bottom: 18px;
    overflow: hidden;
    border-radius: 12px;
    background: #e9ecef;
}

.qgems-progress-bar {
    height: 100%;
    min-width: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d6efd;
    color: #fff;
    font-size: .85rem;
    font-weight: 600;
    transition: width .25s ease;
}

/* =========================================================
   Warning
   ========================================================= */

.progress-warning {
    padding: 11px 14px;
    background: #edf4ff;
    border-radius: 8px;
    color: #0d47a1;
    font-size: .9rem;
    line-height: 1.4;
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width:768px) {

    .progress-dialog {
        width: 640px;
        max-width: 92vw;
        display: flex;
        gap: 24px;
        padding: 30px;
        background: #fff;
        border-radius: 14px;
        box-shadow: 0 20px 60px rgba(0,0,0,.30);
    }

    .progress-spinner {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        margin-top: 6px;
    }

    .progress-content h3 {
        margin: 0 0 8px;
        font-size: 1.30rem; 
        font-weight: 500;
        line-height: 1.2;
        color: #222;
    }

    .progress-message {
        margin-bottom: 20px;
        color: #555;
        font-size: 1rem;
        line-height: 1.6;
    }

    .progress-warning {
        font-size: .85rem;
    }
}


/* =========================================================
   FIX REPORT VIEWER ICON - NOT SHOWING ISSUE IN XAF 26.1.3 --
   RECHECK IN FUTURE VERSIONS OF XAF IF THIS IS STILL NEEDED ~ JIMMY
   ========================================================= */
.dxbrv-icon-AITabPanel::before {
    content: "✨" !important;
    font-family: "Segoe UI Emoji", "Segoe UI Symbol", sans-serif !important;
    font-size: 18px !important;
    line-height: 20px !important;
}