/* ============================================================
   SUPPLIERS APP - MODERN INDIGO & VIOLET THEME BUNDLE
   High-Contrast Top Bar + Clean Sub-menu Tree Navigation
   Matching Login Page Color Palette (#6366f1 -> #8b5cf6)
   ============================================================ */

/* ------------------------------------------------------------
   1. GLOBAL SYSTEM VARIABLES
   ------------------------------------------------------------ */
/* ============================================================
   T-BODY BACKGROUND ONLY
   ============================================================ */
.a-IconList-item:hover
{
    background-color: #6366f1 !important;
}
#t_Footer
{
    display: none !important;
}
.t-Body {
    background-color: #cbcbdd !important;
}
:root {
    --ut-header-background-color: #0f172a !important;
    --ut-header-text-color: #f8fafc !important;
    --ut-header-icon-color: #6366f1 !important;
    --ut-body-nav-background-color: #ffffff !important;
    --ut-tree-node-text-color: #334155 !important;
    --ut-tree-node-icon-color: #64748b !important;
    --ut-tree-node-hover-background-color: #eef2ff !important;
    --ut-tree-node-hover-text-color: #4f46e5 !important;
    --ut-tree-node-selected-background-color: #6366f1 !important;
    --ut-tree-node-selected-text-color: #ffffff !important;
}

/* ------------------------------------------------------------
   2. TOP HEADER - DEEP SLATE & INDIGO GLOW CAPSULE
   ------------------------------------------------------------ */
header#t_Header,
header.t-Header,
.t-Header-branding {
    /* Dark Slate Background for High Contrast */
    background: rgba(15, 23, 42, 0.92) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    
    /* Indigo Gradient Border */
    border: 1px solid rgba(99, 102, 241, 0.3) !important;
    border-radius: 16px !important;
    
    /* Subtle Ambient Shadow */
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.3),
                0 4px 15px -2px rgba(99, 102, 241, 0.18) !important;
    
    width: calc(100% - 24px) !important;
    margin: 12px auto !important;
    position: sticky !important;
    top: 12px !important;
    z-index: 1000 !important;
}

/* Logo Indigo to Violet Gradient Text */
.t-Header-logo-link,
.t-Header-logo-link:hover,
.t-Header-logo-link .a-AppIcon,
.t-Header-logo-text {
    background: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 800 !important;
    font-size: 1.3rem !important;
    letter-spacing: -0.02em !important;
}

/* Toggle Hamburger Button */
#t_Button_navControl,
.t-Header-controls .a-Button {
    color: #94a3b8 !important;
    background: rgba(30, 41, 59, 0.8) !important;
    border: 1px solid rgba(51, 65, 85, 0.8) !important;
    border-radius: 10px !important;
    transition: all 0.25s ease !important;
}

#t_Button_navControl:hover,
.t-Header-controls .a-Button:hover {
    color: #818cf8 !important;
    background: rgba(51, 65, 85, 0.9) !important;
    border-color: #818cf8 !important;
    transform: scale(1.03) !important;
}

/* ------------------------------------------------------------
   3. TOP RIGHT USER MENU - CAPSULE ACCENTS
   ------------------------------------------------------------ */
.t-Header-navBar,
ul.t-Header-navBar-list {
    box-shadow: none !important;
    gap: 8px !important;
}

/* Focus Ring Removal */
.t-Header-navBar .a-MenuBar-item:focus,
.t-Header-navBar .a-Button:focus,
.t-Header-navBar-item > a:focus,
.t-Header-navBar-item .t-Button:focus,
.t-Header-navBar *:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: transparent !important;
}

/* Dark Pill Buttons in Top Bar */
.t-Header-navBar .a-MenuBar-item,
.t-Header-navBar .a-Button,
.t-Header-navBar-item > a,
.t-Header-navBar-item .t-Button {
    color: #f1f5f9 !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    background: rgba(30, 41, 59, 0.8) !important;
    border: 1px solid rgba(51, 65, 85, 0.8) !important;
    padding: 6px 16px !important;
    border-radius: 100px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.25s ease !important;
}

/* Top Right Icons */
.t-Header-navBar .fa,
.t-Header-navBar .a-Icon,
.t-Header-navBar-item .fa,
.t-Header-navBar .a-Menu-statusIcon {
    color: #818cf8 !important;
    font-size: 1rem !important;
}

.t-Header-navBar .a-MenuBar-item:hover,
.t-Header-navBar .a-Button:hover,
.t-Header-navBar-item > a:hover {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35) !important;
    transform: translateY(-1px) !important;
}

.t-Header-navBar .a-MenuBar-item:hover .fa,
.t-Header-navBar .a-Button:hover .fa,
.t-Header-navBar-item > a:hover .fa {
    color: #ffffff !important;
}

/* Dropdown Menu Box */
.a-Menu,
.a-Menu-content {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(16px) !important;
    border: 1px solid #1e293b !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3) !important;
    padding: 8px !important;
}

.a-Menu-item {
    border-radius: 8px !important;
}

.a-Menu-item.is-focused,
.a-Menu-item:hover {
    background: rgba(99, 102, 241, 0.15) !important;
}

.a-Menu-item.is-focused .a-Menu-label,
.a-Menu-item:hover .a-Menu-label {
    color: #818cf8 !important;
    font-weight: 600 !important;
}

/* ------------------------------------------------------------
   4. SIDE NAVIGATION MENU & SUB-MENU STRUCTURE
   ------------------------------------------------------------ */
#t_Body_nav,
.t-Body-nav,
.apex-side-nav,
.t-TreeNav,
.a-TreeView {
    color :#1e293b !important;
    background-color: #ffffff !important;
    background: #ffffff !important;
    border-right: 1px solid #e2e8f0 !important;
    padding-top: 10px !important;
}

/* Clear Dark Overlays on Parent Nodes */
.t-TreeNav .a-TreeView-node .a-TreeView-content,
.t-TreeNav .a-TreeView-node.is-expandable > .a-TreeView-content {
    background-color: transparent !important;
    background: transparent !important;
    border: none !important;
    border-radius: 10px !important;
    margin: 2px 10px !important;
    width: calc(100% - 20px) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Remove Vertical Left Strip */
.t-TreeNav .a-TreeView-node .a-TreeView-content::before,
.t-TreeNav .a-TreeView-node .a-TreeView-content.is-selected::before {
    display: none !important;
    background: none !important;
    border: none !important;
}

/* Tree Connector Lines for Sub-Menu Items */
.t-TreeNav .a-TreeView-node .a-TreeView-group {
    background-color: transparent !important;
    background: transparent !important;
    border-left: 2px dashed #c7d2fe !important;
    margin-left: 24px !important;
    padding-left: 4px !important;
}

.t-TreeNav .a-TreeView-group .a-TreeView-content {
    width: calc(100% - 10px) !important;
    margin: 2px 4px !important;
}

/* Sidebar Icons Base Color */
.t-TreeNav .a-TreeView-node .fa,
.t-TreeNav .a-TreeView-node .a-Icon,
.t-TreeNav .a-TreeView-toggle {
    color: #64748b !important;
    transition: all 0.2s ease !important;
}

/* Hover State */
.t-TreeNav .a-TreeView-node .a-TreeView-content:hover,
.t-TreeNav .a-TreeView-node.is-expandable > .a-TreeView-content:hover {
    background-color: #eef2ff !important;
    color: #4f46e5 !important;
    transform: translateX(3px) !important;
}

.t-TreeNav .a-TreeView-node:hover > .a-TreeView-content .fa,
.t-TreeNav .a-TreeView-node:hover > .a-TreeView-content .a-Icon,
.t-TreeNav .a-TreeView-node:hover > .a-TreeView-content .a-TreeView-toggle {
    color: #4f46e5 !important;
}

/* Active / Selected Item Indigo-Violet Gradient Pill */
.t-TreeNav .a-TreeView-node .a-TreeView-content.is-selected,
.t-TreeNav .a-TreeView-node .a-TreeView-content.is-selected:hover {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 18px -4px rgba(99, 102, 241, 0.4) !important;
    transform: translateX(0) !important;
}

.t-TreeNav .a-TreeView-node .a-TreeView-content.is-selected .a-TreeView-label,
.t-TreeNav .a-TreeView-node .a-TreeView-content.is-selected .fa,
.t-TreeNav .a-TreeView-node .a-TreeView-content.is-selected .a-Icon {
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* ------------------------------------------------------------
   5. FOOTER
   ------------------------------------------------------------ */
.t-Footer {
    background-color: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
    color: #94a3b8 !important;
}


.t-TreeNav--styleA .a-TreeView-node--topLevel .a-TreeView-row.is-current--top, 
.t-TreeNav--styleA .a-TreeView-node--topLevel .a-TreeView-row.is-current--top~ul .a-TreeView-row 
{
    box-shadow: none !important;
}


* {
     outline-color: none !important;
}



/* ============================================================
   CLASSIC REPORT - HEADER BACKGROUND & TEXT COLOR FIX
   ============================================================ */

/* 1. Header Background */
table.t-Report-report th.t-Report-colHead {
    background-color: #6366f1 !important;
    border: none !important;
    padding: 12px 16px !important;
}

/* 2. Header Text & Link Color (Change #ffffff to any color) */
table.t-Report-report th.t-Report-colHead,
table.t-Report-report th.t-Report-colHead a,
table.t-Report-report th.t-Report-colHead a:visited,
table.t-Report-report th.t-Report-colHead span {
    color: #ffffff !important; /* Header Text Color */
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    text-decoration: none !important;
}

/* 3. Header Hover Effect (Optional) */
table.t-Report-report th.t-Report-colHead a:hover {
    color: #f1f5f9 !important;
    text-decoration: underline !important;
}

/* 4. Table Cells & Zebra Striping */
table.t-Report-report td.t-Report-cell {
    padding: 10px 16px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    font-size: 0.9rem !important;
}

table.t-Report-report tr:nth-child(even) td.t-Report-cell {
    background-color: #f8fafc !important;
}

table.t-Report-report tr:hover td.t-Report-cell {
    background-color: #e0e7ff !important;
}

.t-Form-inputText, .t-Form-password, .t-Form-textarea, 
.t-Form-select, .apex-item-text, .apex-item-password, 
.apex-item-textarea, .apex-item-select, .apex-item-datepicker, 
.apex-item-popup-lov, .t-PageBody input[type="text"], .t-PageBody input[type="password"], 
.t-PageBody input[type="number"], .t-PageBody input[type="email"] {

    padding-top: 10px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    font-weight: normal !important;
}
.t-Form-label
{
    font-size: 12px !important;
}