/* =========================================================

   APP TICKET SUMMARY

   ========================================================= */
 
/*

   Your first upper ticker already has:

   CSS Classes:

   app-ticket-summary
 
   Keep that class on the region.

*/
 
 
/* =========================================================

   TICKET DIALOG

   Static ID: ticket

   ========================================================= */
 
.ui-dialog:has(#ticket) {

    left: 50% !important;

    top: 50% !important;

    width: calc(100vw - 230px) !important;

    max-width: 1600px !important;

    height: 550px !important;

    transform: translate(-50%, -50%) !important;

}
 
.ui-dialog:has(#ticket) .ui-dialog-content {

    width: 100% !important;

    height: calc(100% - 40px) !important;

    max-height: none !important;

    overflow-y: auto !important;

}
 
 
/* Ticket table width */
 
#ticket table.a-IRR-table {

    width: 100% !important;

    table-layout: auto !important;

}
 
#ticket table.a-IRR-table th,

#ticket table.a-IRR-table td {

    white-space: normal !important;

    overflow-wrap: anywhere !important;

    word-break: break-word !important;

}
 
 
/* =========================================

   TICKET DIALOG - VISUAL ENHANCEMENTS ONLY

   ========================================= */
 
/* Dialog appearance */

.ui-dialog:has(#ticket) {

    border: none !important;

    border-radius: 16px !important;

    overflow: hidden !important;

    background: #ffffff !important;
 
    box-shadow:

        0 20px 60px rgba(0, 0, 0, 0.18),

        0 8px 20px rgba(0, 0, 0, 0.08) !important;

}
 
 
/* Dialog header */

.ui-dialog:has(#ticket) .ui-dialog-titlebar {

    border: none !important;

    border-bottom: 1px solid #e5e7eb !important;
 
    background: #ffffff !important;
 
    padding: 14px 18px !important;
 
    border-radius: 16px 16px 0 0 !important;

}
 
 
/* Dialog title */

.ui-dialog:has(#ticket) .ui-dialog-title {

    font-size: 18px !important;

    font-weight: 600 !important;

    color: #1f2937 !important;

}
 
 
/* Close button */

.ui-dialog:has(#ticket) .ui-dialog-titlebar-close {

    border: none !important;

    border-radius: 8px !important;

    background: transparent !important;
 
    transition: all 0.2s ease !important;

}
 
.ui-dialog:has(#ticket) .ui-dialog-titlebar-close:hover {

    background: #f1f5f9 !important;

}
 
 
/* Content background */

.ui-dialog:has(#ticket) .ui-dialog-content {

    background: #f8fafc !important;

}
 
 
/* Ticket table container */

#ticket table.a-IRR-table {

    border-radius: 10px !important;

    overflow: hidden !important;
 
    border: 1px solid #e2e8f0 !important;
 
    background: #ffffff !important;
 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;

}
 
 
/* Table header */

#ticket table.a-IRR-table th {

    background: #f1f5f9 !important;

    color: #334155 !important;
 
    font-weight: 600 !important;

}
 
 
/* Table rows */

#ticket table.a-IRR-table tbody tr {

    transition: background 0.15s ease !important;

}
 
#ticket table.a-IRR-table tbody tr:hover {

    background: #f8fafc !important;

}
 
 
/* Cell borders */

#ticket table.a-IRR-table th,

#ticket table.a-IRR-table td {

    border-color: #e5e7eb !important;

}
 
 
/* Better scrollbar */

.ui-dialog:has(#ticket) .ui-dialog-content::-webkit-scrollbar {

    width: 8px !important;

}
 
.ui-dialog:has(#ticket) .ui-dialog-content::-webkit-scrollbar-track {

    background: transparent !important;

}
 
.ui-dialog:has(#ticket) .ui-dialog-content::-webkit-scrollbar-thumb {

    background: #cbd5e1 !important;

    border-radius: 10px !important;

}
 
.ui-dialog:has(#ticket) .ui-dialog-content::-webkit-scrollbar-thumb:hover {

    background: #94a3b8 !important;

}
 
 
/*--------------------------------*/

/* =========================================================

   UPPER TICKER CHARTS

   MODERN DASHBOARD STYLE

   ========================================================= */
 
.app-ticker-chart {

    position: relative !important;
 
    background:

        linear-gradient(

            145deg,

            #ffffff 0%,

            #f8fafc 100%

        ) !important;
 
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
 
    border-radius: 20px !important;
 
    padding: 0 !important;
 
    overflow: hidden !important;
 
    box-shadow:

        0 8px 30px rgba(15, 23, 42, 0.07),

        0 2px 8px rgba(15, 23, 42, 0.04) !important;
 
    transition:

        transform 0.25s ease,

        box-shadow 0.25s ease,

        border-color 0.25s ease !important;

}
 
 
/* =========================================================

   TOP ACCENT LINE

   ========================================================= */
 
/* .app-ticker-chart::before {

    content: "" !important;
 
    position: absolute !important;
 
    top: 0 !important;

    left: 0 !important;

    right: 0 !important;
 
    height: 4px !important;
 
    background:

        linear-gradient(

            90deg,

            #2563eb,

            #6366f1,

            #8b5cf6

        ) !important;
 
    z-index: 10 !important;

} */
 
 
/* =========================================================

   HOVER EFFECT

   ========================================================= */
 
.app-ticker-chart:hover {

    transform: translateY(-5px) !important;
 
    border-color: rgba(148, 163, 184, 0.7) !important;
 
    box-shadow:

        0 18px 40px rgba(15, 23, 42, 0.12),

        0 5px 15px rgba(15, 23, 42, 0.06) !important;

}
 
 
/* =========================================================

   REGION HEADER

   ========================================================= */
 
.app-ticker-chart .t-Region-header {

    background: transparent !important;
 
    border: none !important;
 
    padding:

        18px 20px 8px 20px !important;

}
 
 
/* =========================================================

   REGION TITLE

   ========================================================= */
 
.app-ticker-chart .t-Region-title {

    font-size: 17px !important;
 
    font-weight: 700 !important;
 
    letter-spacing: -0.2px !important;
 
    color: #0f172a !important;

}
 
 
/* =========================================================

   REGION BODY

   ========================================================= */
 
.app-ticker-chart .t-Region-body {

    background: transparent !important;
 
    border: none !important;
 
    padding:

        8px 18px 18px 18px !important;

}
 
 
/* =========================================================

   CHART CONTAINER

   ========================================================= */
 
.app-ticker-chart .oj-chart {

    margin-top: 4px !important;
 
    border-radius: 14px !important;

}
 
 
/* =========================================================

   REMOVE EXTRA APEX VISUAL BORDERS

   ========================================================= */
 
.app-ticker-chart .t-Region-bodyWrap {

    background: transparent !important;
 
    border: none !important;

}
 
 
/* =========================================================

   CHART AREA

   ========================================================= */
 
.app-ticker-chart .oj-chart-container {

    border-radius: 14px !important;

}
 
 
/* =========================================================

   RESPONSIVE

   ========================================================= */
 
@media (max-width: 768px) {
 
    .app-ticker-chart {

        border-radius: 16px !important;

    }
 
    .app-ticker-chart .t-Region-header {

        padding:

            15px 15px 7px 15px !important;

    }
 
    .app-ticker-chart .t-Region-body {

        padding:

            6px 12px 14px 12px !important;

    }
 
    .app-ticker-chart .t-Region-title {

        font-size: 15px !important;

    }
 
}
 
/*-------------------------------------------------------------------------------------------------*/


 /* =========================================================
   TRAINING SCHEDULE CARD
   Rounded card that still maximizes properly
   ========================================================= */

.app-training-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    border-radius: 20px !important;
    box-shadow:
        0 8px 30px rgba(15, 23, 42, 0.07),
        0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

.app-training-card .t-Region-header {
    background: transparent !important;
    border: none !important;
}

.app-training-card .t-Region-title {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

.app-training-card .t-Region-body {
    background: transparent !important;
}

/* When maximized: full screen, square corners, no shadow */
.app-training-card.is-maximized {
    border-radius: 0 !important;
    box-shadow: none !important;
}