/* ==========================================================================
   GWA ETL Tool - Clean Executive Dashboard & Infographic KPI Cards
   ========================================================================== */

:root {
    /* Exact Color Swatch Match: User Provided Soft Corporate Blue (#4575C3) */
    --vivid-blue: #4575C3;
    --vivid-blue-dark: #3761A6;
    
    --primary: #4575C3;
    --primary-hover: #3761A6;  
    --primary-light: #F0F4FA;  
    --primary-border: #9BB8E5;
    
    --success: #10B981;
    --success-hover: #059669;
    --success-light: #ECFDF5;
    
    --teal: #0D9488;
    --teal-light: #F0FDFA;
    
    --secondary: #64748B;
    --warning: #D97706;
    --danger: #DC2626;
    
    /* Unified Canvas Background */
    --bg-page: #F8FAFC;
    --bg-header: #F8FAFC;      
    --bg-card: #FFFFFF;
    --bg-panel-header: #FAFAFA;
    
    --text-main: #0F172A;
    --text-muted: #475569;
    --text-light: #94A3B8;
    
    --border-color: #E2E8F0;
    --border-radius-sm: 0px;
    --border-radius: 0px;
    --border-radius-lg: 0px;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.03);
    --shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', Consolas, monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.45;
    font-size: 0.85rem;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   TOP NAVIGATION BAR (SEAMLESS UNIFIED HEADER - NO UNDERLINE)
   ========================================================================== */
.top-nav {
    background-color: var(--bg-header);
    color: var(--text-main);
    padding: 0.85rem 2rem;
    border-bottom: none;
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1350px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

/* Brand Title Left */
.brand {
    display: flex;
    align-items: center;
}

.brand-name {
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-main);
    line-height: 1;
}

/* Entire Menu Bar Tab Container - Solid Cobalt Blue (NO GLOW / NO SHADOW) */
.pill-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--vivid-blue);
    padding: 0.28rem;
    border-radius: 0;
    gap: 0.25rem;
    border: none;
    box-shadow: none;
}

.pill-tab {
    background: transparent;
    border: none;
    outline: none;
    color: #FFFFFF;
    padding: 0.45rem 1rem;
    font-family: var(--font-main);
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.pill-tab i {
    color: #FFFFFF;
    font-size: 0.88rem;
    transition: color 0.15s ease;
}

.pill-tab:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.18);
}

/* Active Selected Tab - Flat Crisp White Card (NO GLOW / NO SHADOW) */
.pill-tab.active {
    background: #FFFFFF;
    color: var(--vivid-blue);
    font-weight: 700;
    box-shadow: none;
    border: none;
    border-radius: 0;
}

.pill-tab.active i {
    color: var(--vivid-blue);
}

/* Header Right: Console Logs Button */
.header-right {
    display: flex;
    align-items: center;
}

.btn-console {
    background: #FFFFFF;
    color: var(--text-main);
    border: 1px solid #CBD5E1;
    padding: 0.45rem 0.9rem;
    border-radius: 0;
    font-family: var(--font-main);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.15s ease;
    box-shadow: var(--shadow-sm);
}

.btn-console:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary-border);
}

.console-pulse {
    width: 6px;
    height: 6px;
    background: var(--warning);
    border-radius: 50%;
    display: none;
}

.console-pulse.active {
    display: block;
    animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    from { opacity: 0.3; }
    to { opacity: 1; }
}

/* ==========================================================================
   MAIN APP CONTENT & STATUS STRIP
   ========================================================================== */
.app-main {
    max-width: 1350px;
    margin: 0.5rem auto 3.5rem auto;
    padding: 0 1.5rem;
}

/* Status & Alert Banner Bars (Directly Matched to User Swatch #4575C3 - Zero Rounded Corners) */
.status-strip {
    background: #4575C3; /* User Swatch Soft Corporate Blue */
    color: #FFFFFF;
    border: none;
    border-radius: 0; /* Completely sharp square corners - no rounded edges */
    padding: 0.75rem 1.25rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 500;
}

.strip-left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #FFFFFF;
}

.strip-left i {
    color: #FFFFFF !important;
    font-size: 0.95rem;
}

.strip-left strong {
    color: #FFFFFF;
    font-weight: 700;
}

.strip-right {
    font-size: 0.84rem;
    color: #FFFFFF;
}

.strip-right span,
.strip-right a {
    color: #FFFFFF !important;
    text-decoration: none;
    font-weight: 500;
}

.strip-right strong {
    color: #FFFFFF !important;
    font-weight: 700;
}

.strip-right i {
    color: #FFFFFF !important;
    margin-right: 0.35rem;
}


/* Alert Banner Variants (Image 2 Style Palette) */
.status-strip-success { background: #4EA346; }
.status-strip-error   { background: #E55347; }
.status-strip-warning { background: #F0A238; }
.status-strip-info    { background: #5A5A5A; }

/* TAB CONTENT PANES */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.15s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(2px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   INFOGRAPHIC KPI CARDS (NO BACKGROUND BOX FOR ICONS, ZERO OVERFLOW)
   ========================================================================== */
.kpi-banner-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 1100px) {
    .kpi-banner-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .kpi-banner-grid {
        grid-template-columns: 1fr;
    }
}

.kpi-banner-card {
    border-radius: 12px;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.kpi-banner-card.glassmorphic {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 24px rgba(31, 38, 135, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.kpi-banner-card.glassmorphic:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(31, 38, 135, 0.08);
}

/* Top Solid Header Color Block */
.kpi-top {
    padding: 1.1rem 1.1rem 1.6rem 1.1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    color: #FFFFFF;
    flex: 1;
}

/* Clean Direct Icon - NO BACKGROUND BOX */
.kpi-direct-icon {
    font-size: 1.65rem;
    color: #FFFFFF;
    flex-shrink: 0;
    margin-top: 0.05rem;
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.kpi-info {
    flex: 1;
    min-width: 0; /* Prevents flex text overflow */
}

.kpi-title {
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #FFFFFF;
    margin-bottom: 0.2rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kpi-desc {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.25;
}

/* Flat White Bottom Ribbon Badge (No rounded corners) */
.kpi-ribbon {
    background: #FFFFFF;
    margin-top: 0;
    border-radius: 0;
    height: 46px;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.kpi-label {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    white-space: nowrap;
}

.kpi-val {
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1;
}

/* Dedicated Multi-line Timing Ribbon */
.kpi-ribbon-time {
    min-height: 52px;
    height: auto;
    padding: 0.5rem 1rem;
}

.kpi-val-time {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    width: 100%;
}



/* Formatted Timestamp - No Overflow Issue */
.kpi-timestamp {
    font-size: 0.76rem !important;
    font-family: var(--font-mono);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 145px;
}

/* Professional Color Palette */
.kpi-green .kpi-top { background: linear-gradient(135deg, #10B981, #059669); }
.kpi-green .kpi-val { color: #059669; }

.kpi-blue .kpi-top { background: linear-gradient(135deg, #3B82F6, #2563EB); }
.kpi-blue .kpi-val { color: #2563EB; }

.kpi-orange .kpi-top { background: linear-gradient(135deg, #F59E0B, #D97706); }
.kpi-orange .kpi-val { color: #D97706; }

.kpi-purple .kpi-top { background: linear-gradient(135deg, #8B5CF6, #7C3AED); }
.kpi-purple .kpi-val { color: #7C3AED; }

.kpi-red .kpi-top { background: linear-gradient(135deg, #EF4444, #DC2626); }
.kpi-red .kpi-val { color: #DC2626; }

.kpi-teal .kpi-top { background: linear-gradient(135deg, #14B8A6, #0D9488); }
.kpi-teal .kpi-val { color: #0D9488; }

.kpi-indigo .kpi-top { background: linear-gradient(135deg, #6366F1, #4F46E5); }
.kpi-indigo .kpi-val { color: #4F46E5; }

.kpi-rose .kpi-top { background: linear-gradient(135deg, #F43F5E, #E11D48); }
.kpi-rose .kpi-val { color: #E11D48; }

.kpi-slate .kpi-top { background: linear-gradient(135deg, #64748B, #475569); }
.kpi-slate .kpi-val { color: #475569; }

/* ==========================================================================
   STREAMLINED EXECUTIVE LAUNCHPAD (ZERO DUPLICATE SECTIONS)
   ========================================================================== */
.main-launchpad-card {
    margin-bottom: 1.5rem;
}

.quick-flow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.flow-step-card {
    background: #FAFAFA;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.85rem;
}

.flow-step-card.highlight-step {
    background: #F0F7FF;
    border-color: #BAE6FD;
}

.step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #E2E8F0;
    color: var(--text-muted);
    font-weight: 800;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-active {
    background: var(--primary);
    color: #FFFFFF;
}

.step-details h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.step-details p {
    font-size: 0.76rem;
    color: var(--text-muted);
}

/* ==========================================================================
   PANEL CARDS & TABLES
   ========================================================================== */
.panel-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.max-width-center {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   CORPORATE STEPPER WORKFLOW UI (ZERO AI GLOW / WIDE LAYOUT)
   ========================================================================== */
.stepper-workflow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.25rem;
}

.stepper-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.25rem;
    transition: border-color 0.15s ease;
}

.stepper-card:hover {
    border-color: var(--vivid-blue);
}

.stepper-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border-color);
}

.step-num {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--vivid-blue);
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
}

.stepper-icon {
    font-size: 1.25rem;
    color: var(--text-main);
}

.stepper-body h4 {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.45rem;
}

.stepper-body p {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.stepper-footer {
    margin-top: 0.5rem;
}

.stepper-footer .btn {
    width: 100%;
}

.panel-header {
    padding: 0.9rem 1.25rem;
    background: var(--bg-panel-header);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.panel-title h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
}

.panel-badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.15rem 0.55rem;
    background: #F1F5F9;
    color: var(--secondary);
    border-radius: 0;
}

.badge-active {
    background: var(--success-light);
    color: var(--success);
}

.panel-body {
    padding: 1.25rem;
}

.panel-desc {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* ==========================================================================
   DATE PICKERS & FORM CONTROLS
   ========================================================================== */
.date-presets {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
}

.preset-btn {
    background: #F1F5F9;
    border: 1px solid var(--border-color);
    color: var(--secondary);
    padding: 0.3rem 0.65rem;
    border-radius: 0;
    font-family: var(--font-main);
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.preset-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary-border);
}

.date-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.field-group label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-main);
}

.input-control {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-main);
    font-size: 0.84rem;
    color: var(--text-main);
    background-color: #FFFFFF;
    transition: border-color 0.15s ease;
}

.input-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 98, 210, 0.15);
}

.form-footer {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.save-toast {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--success);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.55rem 1.25rem;
    font-family: var(--font-main);
    font-size: 0.84rem;
    font-weight: 700;
    border-radius: 0;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-sm { padding: 0.35rem 0.85rem; font-size: 0.78rem; border-radius: 0; }
.btn-giant { padding: 0.75rem 1.75rem; font-size: 0.95rem; border-radius: 0; }

.btn-primary { background: var(--vivid-blue); color: #FFFFFF; border: none; }
.btn-primary:hover { background: var(--vivid-blue-dark); color: #FFFFFF; }

.btn-secondary { background: #1E293B; color: #FFFFFF; border: none; }
.btn-secondary:hover { background: #0F172A; color: #FFFFFF; }

.btn-success { background: #36B37E; color: #FFFFFF; border: none; }
.btn-success:hover { background: #2EAD67; color: #FFFFFF; }

/* WORKFLOW & HERO CARDS */
.workflow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.workflow-card {
    background: #FAFAFA;
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 1.25rem;
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.wf-icon {
    width: 38px;
    height: 38px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.wf-content h4 { font-size: 0.92rem; font-weight: 700; margin-bottom: 0.25rem; }
.wf-content p { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.85rem; }

.hero-action-box {
    background: #FAFAFA;
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-text h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.35rem; }
.hero-text p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.85rem; }

.features-list { display: flex; gap: 1rem; font-size: 0.8rem; font-weight: 500; }

/* FILE CARDS & TABLES */
.file-cards-list { display: flex; flex-direction: column; gap: 0.55rem; }

.file-item-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.85rem;
    background: #FAFAFA;
    border: 1px solid var(--border-color);
    border-radius: 0;
    font-size: 0.82rem;
}

.file-item-title { font-weight: 600; color: var(--text-main); }
.file-item-sub { font-size: 0.74rem; color: var(--text-light); }

.table-container { overflow-x: auto; }

.styled-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
    text-align: left;
}

.styled-table th {
    background: #F8FAFC;
    color: var(--text-muted);
    font-weight: 700;
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
}

.styled-table td {
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid var(--border-color);
}

.styled-table tr:hover td { background: #F8FAFC; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-muted { color: var(--text-muted); }

/* ==========================================================================
   CONSOLE LOG DRAWER
   ========================================================================== */
.console-drawer {
    position: fixed;
    bottom: -450px;
    left: 0;
    right: 0;
    height: 400px;
    background: #0F172A;
    color: #F8FAFC;
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.3);
    z-index: 200;
    transition: bottom 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    border-top: 1px solid #334155;
}

.console-drawer.open {
    bottom: 0;
}

.console-drawer-header {
    background: #1E293B;
    padding: 0.55rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #334155;
}

.console-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.84rem;
    font-weight: 600;
}

.pill-status {
    padding: 0.18rem 0.55rem;
    border-radius: 0;
    font-size: 0.7rem;
    font-weight: 600;
}

.pill-status.idle { background: #334155; color: #94A3B8; }
.pill-status.running { background: rgba(0, 98, 210, 0.2); color: #38BDF8; border: 1px solid rgba(0, 98, 210, 0.4); }
.pill-status.success { background: rgba(16, 185, 129, 0.2); color: #34D399; }
.pill-status.failed { background: rgba(239, 68, 68, 0.2); color: #F87171; }

.console-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.btn-icon {
    background: #334155;
    border: none;
    color: #94A3B8;
    padding: 0.25rem 0.55rem;
    font-size: 0.75rem;
    border-radius: 0;
    cursor: pointer;
}

.btn-icon:hover { color: #FFFFFF; background: #475569; }

.console-drawer-body {
    flex: 1;
    padding: 0.85rem 1rem;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.5;
    background: #090D16;
}

.console-drawer-body pre {
    white-space: pre-wrap;
    word-break: break-all;
    color: #CBD5E1;
}

/* ==========================================================================
   TEMPLATE MANAGEMENT & DROPZONE STYLING (ZERO ROUNDED CORNERS)
   ========================================================================== */
.template-status-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.95rem 1.15rem;
    background: #F8FAFC;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--vivid-blue);
    border-radius: 0;
    margin-bottom: 1.1rem;
}

.template-info-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.template-icon-wrap {
    font-size: 1.5rem;
}

.template-details h4 {
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.15rem;
}

.template-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.template-upload-zone {
    border: 2px dashed var(--vivid-blue);
    background: #F0F4FA;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    border-radius: 0;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.template-upload-zone:hover {
    background: #E8F0FA;
    border-color: var(--vivid-blue-dark);
}

.upload-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.upload-icon {
    font-size: 1.8rem;
    color: var(--vivid-blue);
    margin-bottom: 0.25rem;
}

.upload-zone-content h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
}

.upload-zone-content p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ==========================================================================
   DISTINCT SECTION HIGHLIGHT BACKGROUNDS & COMPACT LAYOUT (NO OVER-SCROLL)
   ========================================================================== */

/* Layout Grid for Run Data ETL (3 Columns Side-by-Side Zero Scroll) */
.etl-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    align-items: stretch;
}

.etl-2col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr !important;
    gap: 1.25rem;
    align-items: stretch;
}

@media (max-width: 768px) {
    .etl-2col-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Card Section 1: Date Config (Corporate Blue Tint) */
.panel-card-blue {
    background: #F8FAFC;
    border: 1px solid #CBD5E1;
}
.panel-card-blue .panel-header {
    background: #EFF6FF;
    border-bottom: 1px solid #BFDBFE;
}
.panel-card-blue .panel-title i {
    color: #2563EB;
}
.panel-card-blue .panel-badge {
    background: #DBEAFE;
    color: #1D4ED8;
    border: 1px solid #93C5FD;
}

/* Card Section 2: Master Client Template Manager (Corporate Teal / Emerald Tint) */
.panel-card-emerald {
    background: #FBFDFB;
    border: 1px solid #A7F3D0;
}
.panel-card-emerald .panel-header {
    background: #ECFDF5;
    border-bottom: 1px solid #A7F3D0;
}
.panel-card-emerald .panel-title i {
    color: #059669;
}
.panel-card-emerald .panel-badge {
    background: #D1FAE5;
    color: #047857;
    border: 1px solid #6EE7B7;
}

/* Card Section 3: Main Data ETL Engine (Corporate Royal Indigo / Slate Tint) */
.panel-card-indigo {
    background: #F9FAFB;
    border: 1px solid #C7D2FE;
    display: flex;
    flex-direction: column;
}
.panel-card-indigo .panel-header {
    background: #EEF2FF;
    border-bottom: 1px solid #C7D2FE;
}
.panel-card-indigo .panel-title i {
    color: #4F46E5;
}
.panel-card-indigo .panel-badge {
    background: #E0E7FF;
    color: #3730A3;
    border: 1px solid #A5B4FC;
}
.panel-card-indigo .panel-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Card Section 4: Audit & Reconciliation (Warm Slate Amber Tint) */
.panel-card-amber {
    background: #FFFEF9;
    border: 1px solid #FDE68A;
}
.panel-card-amber .panel-header {
    background: #FFFBEB;
    border-bottom: 1px solid #FDE68A;
}
.panel-card-amber .panel-title i {
    color: #D97706;
}
.panel-card-amber .panel-badge {
    background: #FEF3C7;
    color: #B45309;
    border: 1px solid #FCD34D;
}

/* ==========================================================================
   CORPORATE TABLE STYLING (NTH-CHILD ROW EFFECTS, TOOLBAR, PAGINATION)
   ========================================================================== */

.table-toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.toolbar-search {
    position: relative;
    display: flex;
    align-items: center;
}

.toolbar-search .search-icon {
    position: absolute;
    left: 0.65rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.toolbar-search input {
    padding-left: 2rem !important;
    width: 220px;
}

.input-sm {
    padding: 0.35rem 0.65rem !important;
    font-size: 0.8rem !important;
    height: 32px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.corporate-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
    text-align: left;
}

.corporate-table th {
    background: #F1F5F9;
    color: #475569;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid #CBD5E1;
}

.corporate-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #E2E8F0;
    color: var(--text-main);
    vertical-align: middle;
}

/* NTH ROW STRIPING & HOVER HIGHLIGHT EFFECTS */
.corporate-table tbody tr:nth-child(odd) {
    background-color: #FFFFFF;
}

.corporate-table tbody tr:nth-child(even) {
    background-color: #F8FAFC;
}

.corporate-table tbody tr:hover {
    background-color: #EFF6FF !important;
    transition: background-color 0.15s ease;
}

/* Status Pill Badges */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.6rem;
    font-size: 0.73rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: 0;
}

.status-pill.status-success {
    background: #D1FAE5;
    color: #047857;
    border: 1px solid #6EE7B7;
}

.status-pill.status-failed {
    background: #FEE2E2;
    color: #B91C1C;
    border: 1px solid #FCA5A5;
}

.status-pill.status-running {
    background: #DBEAFE;
    color: #1D4ED8;
    border: 1px solid #93C5FD;
}

/* Pagination Bar */
.table-pagination-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #F8FAFC;
    border-top: 1px solid #E2E8F0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.pagination-controls {
    display: flex;
    gap: 0.25rem;
}

.page-btn {
    border: 1px solid #CBD5E1;
    background: #FFFFFF;
    color: var(--text-main);
    padding: 0.3rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0;
    transition: all 0.15s ease;
}

.page-btn:hover:not(:disabled) {
    background: #EFF6FF;
    border-color: #93C5FD;
    color: #1D4ED8;
}

.page-btn.active {
    background: #2563EB;
    border-color: #2563EB;
    color: #FFFFFF;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==========================================================================
   GLOBAL RUNNING BANNER
   ========================================================================== */
.global-running-banner {
    background: #FEF3C7; /* Amber background */
    border-bottom: 2px solid #F59E0B; /* Amber border */
    color: #92400E; /* Dark amber text */
    padding: 0.75rem 1.5rem;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    margin-bottom: 1rem;
    box-sizing: border-box;
}

.global-running-banner .banner-icon {
    font-size: 1rem;
    color: #D97706;
}
