/* =========================================================
   HIDE default APEX navigation
   ========================================================= */
.t-Header-nav {
    display: none !important;
}

/* =========================================================
   MAIN CUSTOM TAB NAVIGATION
   ========================================================= */
.custom-tab-nav {
    background: #f2f2f2;              /* Neutral grey */
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #dddddd; /* subtle divider */
}

/* List items */
.custom-tab-nav li {
    margin: 0;
    padding: 0;
}

/* INACTIVE main tabs → WHITE */
.custom-tab-nav li a {
    display: block;
    padding: 12px 20px;
    background: #ffffff;
    color: #61223b;
   /* font-weight: bold;*/
    text-decoration: none;
    border-right: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.25s ease;
}

/* Hover on inactive tabs */
.custom-tab-nav li a:hover {
    background: #f5f5f5;
       padding: 8px 18px;   /* was 12px 20px */
    color: #61223b;
}

/* ACTIVE main tab → DARK MAROON */
.custom-tab-nav li.active a {
    background: #61223b;
       padding: 8px 18px;   /* was 12px 20px */
    color: #ffffff;
    box-shadow: inset 0 -3px 0 0 #3f1626;
}

/* =========================================================
   SUB-TABS CONTAINER (GREY)
   ========================================================= */
#subtabs-container {
    display: none;
    background: #f6f6f6;              /* Light grey */
    padding: 8px 10px;
    border-bottom: 1px solid #e0e0e0;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

#subtabs-container.show {
    display: flex;
}

/* =========================================================
   SUB-TABS (GREY THEME)
   ========================================================= */

/* Inactive sub-tabs */
.subtab-item {
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 3px;
    color: #61223b;
    text-decoration: none;
    transition: all 0.2s ease;
        padding: 6px 14px;    /* was 8px 16px */
    display: inline-block;
}

/* Hover sub-tabs */
.subtab-item:hover {
    background: #eeeeee;
    border-color: #b0b0b0;
        padding: 6px 14px;    /* was 8px 16px */
    color: #61223b;
}

/* Active sub-tab → darker grey (NOT maroon) */
.subtab-item.active {
    background: #dcdcdc;
    color: #61223b;
        padding: 6px 14px;    /* was 8px 16px */
    border-color: #a0a0a0;
}
/* Make main tab text match sub-tab text size */
.custom-tab-nav li a,
.subtab-item {
    font-size: 15px;
}
/* Hide custom global tabs ONLY on page 101 */
html.page-101 .custom-tab-nav,
html.page-101 #subtabs-container {
    display: none !important;
}
/* Smooth page loading - prevent flash */
.apex-page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

.apex-page-transition.loaded {
    opacity: 0;
    pointer-events: none;
}

/* Alternative: Fade in the entire page */
.t-PageBody {
    animation: fadeIn 0.2s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}