﻿@import "mudblazor-layout-classes.css";
@import "w3.css";

/* Google Fonts Import for Quantico - includes both available weights (400, 700) */
@import url('https://fonts.googleapis.com/css2?family=Quantico:wght@400;700&display=swap');

:root {
    /* Default Palette */
    --color-primary: #326695;
    --color-secondary: #FC6E42;
    --color-body-text: #333333;
    --color-body-text-light: #ffffff;
    --color-disabled: #c0c0c0;
    --color-neutral-1: #FAFAFA;
    --color-neutral-2: #CCCCCC;
    --color-divider: #E0E0E0;
    --color-table-striped-background: rgba(0, 0, 0, 0.02);
    --color-tertiary: #1EC8A5;
    --color-background: #ffffff;
    --color-surface: #ffffff;
    --color-card-background: #f5f5f5;
    --color-link: #326695;
    --color-success: #27AE60;
    --color-warning: #F1C40F;
    --color-danger: #EB5757;
    --default-border-radius: 4px;
    
    /* Tooltip Design System Variables - TIC-751 */
    --tooltip-background: #424242;
    --tooltip-text-color: #ffffff;
    --tooltip-font-family: Inter, sans-serif;
    --tooltip-font-size: 0.875rem;
    --tooltip-font-weight: 500;
    --tooltip-padding: 6px 10px;
    --tooltip-border-radius: 4px;
    --tooltip-border: none;
    --tooltip-shadow: 0 2px 4px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.08);
    --tooltip-max-width: 300px;
    --tooltip-z-index: 999999;
    --tooltip-transition: opacity 120ms ease-in-out;
    
    /* Mobile responsive variables */
    --tooltip-mobile-max-width: 250px;
    --tooltip-mobile-font-size: 0.8125rem;
    --tooltip-mobile-padding: 10px 14px;
    
    /* Data Heavy Table Variables */
    --data-table-font-family: 'Inter', sans-serif;
    --data-table-font-size: 0.825rem;
    --data-table-line-height: 20px;
    --data-table-cell-padding: 8px 16px;
    --data-table-header-height: 28px;
    --data-table-row-height: 24px;
    --data-table-border-color: var(--color-neutral-2);
    --data-table-hover-bg: var(--color-neutral-1);
    --data-table-mobile-font-size: 0.75rem;
    --data-table-mobile-padding: 2px 6px;
    
    /* Layout Variables for proper grid sizing */
    --analysis-page-header-height: 120px;
    --tab-header-height: 48px;
    --export-button-height: 50px;
}

/* =========================
   LIGHT THEME
   ========================= */
.design-light {
    --color-primary: #326695;
    --color-primary-light: #99c8fd;
    --color-secondary: #FC6E42;
    --color-secondary-light: rgba(255, 112, 68, 0.65);
    --color-body-text: #333333;
    --color-body-text-light: #ffffff;
    --color-disabled: #c0c0c0;
    --color-neutral-1: #ffffff;
    --color-neutral-2: #CCCCCC;
    --color-divider: #555555;
    --color-table-striped-background: rgba(255, 255, 255, 0.05);
    --color-tertiary: #66D9C1;
    --color-background: #ffffff;
    --color-surface: #ffffff;
    --color-card-background: #f5f5f5;
    --color-link: #326695;
    --color-error: #E74C3C;
    --color-success: #27AE60;
    --color-warning: #F1C40F;
    --color-danger: #EB5757;
}

/* =========================
   DARK THEME
   ========================= */
.design-dark {
    --color-primary: #326695;
    --color-secondary: #F98D62;
    --color-body-text: #f5f5f5;
    --color-body-text-light: #181818;
    --color-disabled: #333333;
    --color-neutral-1: #222222;
    --color-neutral-2: #555555;
    --color-background: #181818;
    --color-surface: #181818;
    --color-card-background: #2A2A2A;
    --color-link: #F98D62;
    --color-error: #FF6B6B;
    --color-success: #2ECC71;
    --color-warning: #F39C12;
    --color-danger: #EB5757;
}

.e-dropdownbase .e-list-item.e-active,
.e-dropdownbase .e-list-item.e-active.e-hover {
    background-color: var(--color-primary) !important;
    color: var(--color-body-text-light) !important;
}

input.e-input::selection, textarea.e-input::selection, .e-input-group input.e-input::selection, .e-input-group.e-control-wrapper input.e-input::selection, .e-float-input input::selection, .e-float-input.e-control-wrapper input::selection, .e-input-group textarea.e-input::selection, .e-input-group.e-control-wrapper textarea::selection, .e-float-input textarea::selection, .e-float-input.e-control-wrapper textarea::selection, .e-float-input.e-small textarea::selection, .e-float-input textarea::selection,
.e-date-wrapper span.e-input-group-icon.e-date-icon.e-icons.e-active,
.e-btn.e-flat.e-primary,
.e-css.e-btn.e-flat.e-primary {
    background-color: var(--color-primary) !important;
    color: var(--color-body-text-light) !important;
    border: 1px solid var(--color-primary) !important;
    cursor: pointer;
    transition: background-color 0.3s ease, filter 0.3s ease;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

html, body {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 400;
    background-color: var(--color-background);
    color: var(--color-body-text);
}

/* =========================
   HEADINGS
   ========================= */
/* Large headings use Quantico for impact */
h1, h2 {
    font-family: "Quantico", sans-serif;
    margin: 0;
    color: var(--color-body-text);
}

/* Smaller headings use Poppins for readability */
h3, h4, h5, h6 {
    font-family: "Poppins", sans-serif;
    margin: 0;
    color: var(--color-body-text);
}

h1 {
    font-weight: 700;
    font-size: 1.75rem; /* 28px - Starting point for 1.15x scale */
    line-height: 1.3;
    letter-spacing: -0.01rem;
}

h2 {
    font-weight: 700; /* Bold weight for Quantico */
    font-size: 1.5rem; /* 24px */
    line-height: 1.3;
    letter-spacing: -0.01rem;
}

h3 {
    font-weight: 600; /* Semi-bold for Poppins */
    font-size: 1.3rem; /* ~21px - 1.15x scale */
    line-height: 1.35;
    letter-spacing: -0.005rem;
}

h4 {
    font-weight: 500; /* Medium weight works well with Poppins */
    font-size: 1.125rem; /* 18px */
    line-height: 1.35;
    letter-spacing: 0;
}

h5 {
    font-weight: 600; /* Semi-bold for small uppercase headers */
    font-size: 1rem; /* 16px */
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: uppercase;
}

h6 {
    font-weight: 400;
    font-size: 0.875rem; /* 14px - Label headers */
    line-height: 1.4;
    letter-spacing: 0.01rem;
    text-transform: uppercase;
}

.text-danger {
    color: var(--color-danger) !important;
}

.color-primary {
    color: var(--color-primary);
}

.color-secondary {
    color: var(--color-secondary);
}

.content-label {
    color: #808080;
}

.body-large {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1.2rem;
    line-height: 1.625rem; /* 26px/16 */
    letter-spacing: -0.003rem; /* -0.3% ≈ -0.003rem */
}

.body-regular {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.3125rem; /* 21px/15 */
    letter-spacing: 0rem; /* 0% */
}

.body-small {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.8rem;
    line-height: 1.0625rem; /* 17px/16 */
    letter-spacing: 0.01rem; /* 1% ≈ 0.01rem */
}

.body-caption {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.6875rem; /* 11px/16 */
    line-height: 0.875rem; /* 14px/16 */
    letter-spacing: 0.02rem; /* 2% ≈ 0.02rem */
}


/* =========================
   AUXILIARY LAYOUT
   ========================= */

.text-align-center {
    text-align: center;
}

.buttons-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 40px;
}

.button-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 240px;
}

    .button-item span {
        margin-bottom: 8px;
        font-size: 0.9rem;
        color: var(--color-neutral-2);
    }

/* =========================
   BUTTONS (SOLID AND OUTLINE)
   ========================= */
.btn-primary,
button.e-btn.btn-primary {
    background-color: var(--color-primary) !important;
    color: var(--color-body-text-light) !important;
    border: 1px solid var(--color-primary) !important;
    cursor: pointer;
    transition: background-color 0.3s ease, filter 0.3s ease;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

    .btn-primary:hover,
    button.e-btn.btn-primary:hover {
        filter: brightness(0.9);
    }

.btn-secondary,
button.e-btn.btn-secondary {
    background-color: var(--color-secondary) !important;
    color: var(--color-body-text-light) !important;
    border: 1px solid var(--color-secondary) !important;
    cursor: pointer;
    transition: background-color 0.3s ease, filter 0.3s ease;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

    .btn-secondary:hover,
    button.e-btn.btn-secondary:hover {
        filter: brightness(0.9);
    }

.btn-danger,
button.e-btn.danger {
    background-color: var(--color-danger) !important;
    color: var(--color-body-text-light) !important;
    border: 1px solid var(--color-danger) !important;
    cursor: pointer;
    transition: background-color 0.3s ease, filter 0.3s ease;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

    .btn-danger:hover,
    button.e-btn.btn-danger:hover {
        filter: brightness(0.9);
    }

/* Outline */
.btn-primary.outlined,
button.e-btn.btn-primary.outlined {
    background-color: transparent !important;
    color: var(--color-primary) !important;
    border: 1px solid var(--color-primary) !important;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin: 0 !important;
}

    .btn-primary.outlined:hover,
    button.e-btn.btn-primary.outlined:hover {
        background-color: var(--color-primary) !important;
        color: var(--color-body-text-light) !important;
    }

.btn-secondary.outlined,
button.e-btn.btn-secondary.outlined {
    background-color: transparent !important;
    color: var(--color-secondary) !important;
    border: 1px solid var(--color-secondary) !important;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin: 0 !important;
}

    .btn-secondary.outlined:hover,
    button.e-btn.btn-secondary.outlined:hover {
        background-color: var(--color-secondary) !important;
        color: var(--color-body-text-light) !important;
    }

.btn-danger.outlined,
button.e-btn.btn-danger.outlined {
    background-color: transparent !important;
    color: var(--color-danger) !important;
    border: 1px solid var(--color-danger) !important;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin: 0 !important;
}

    .btn-danger.outlined:hover,
    button.e-btn.btn-danger.outlined:hover {
        background-color: var(--color-danger) !important;
        color: var(--color-body-text-light) !important;
    }

/* Flat */
.btn-primary.flat,
button.e-btn.btn-primary.flat {
    background-color: transparent !important;
    color: var(--color-primary) !important;
    border: none !important;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin: 0 !important;
}

    .btn-primary.flat:hover,
    button.e-btn.btn-primary.flat:hover {
        background-color: var(--color-primary) !important;
        color: var(--color-body-text-light) !important;
    }

.btn-secondary.flat,
button.e-btn.btn-secondary.flat {
    background-color: transparent !important;
    color: var(--color-secondary) !important;
    border: none !important;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin: 0 !important;
}

    .btn-secondary.flat:hover,
    button.e-btn.btn-secondary.flat:hover {
        background-color: var(--color-secondary) !important;
        color: var(--color-body-text-light) !important;
    }

.btn-danger.flat,
button.e-btn.btn-danger.flat {
    background-color: transparent !important;
    color: var(--color-danger) !important;
    border: none !important;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin: 0 !important;
}

    .btn-danger.flat:hover,
    button.e-btn.btn-danger.flat:hover {
        background-color: var(--color-danger) !important;
        color: var(--color-body-text-light) !important;
    }


    /* =========================
   BUTTONS (SIZES)
   ========================= */
    .btn-primary.small,
    button.e-btn.btn-primary.small,
    .btn-primary.outlined.small,
    button.e-btn.btn-primary.outlined.small,
    .btn-secondary.small,
    button.e-btn.btn-secondary.small,
    .btn-secondary.outlined.small,
    button.e-btn.btn-secondary.outlined.small,
    .btn-danger.small,
    button.e-btn.btn-danger.small,
    .btn-danger.outlined.small,
    button.e-btn.btn-danger.outlined.small {
        font-family: 'Inter', sans-serif !important;
        font-weight: 700 !important;
        font-size: 12px !important;
        line-height: 17px !important;
        letter-spacing: 1% !important;
        height: 29px !important;
        border-radius: 4px !important;
        box-sizing: border-box !important;
        padding: 6px 12px !important;
        gap: 5px;
    }

    .btn-primary.regular,
    .btn-primary.outlined.regular,
    button.e-btn.btn-primary.regular,
    button.e-btn.btn-primary.outlined.regular,
    .btn-primary.outlined.regular,
    button.e-btn.btn-primary.outlined.regular,
    .btn-secondary.regular,
    .btn-secondary.regular,
    .btn-secondary.outlined.regular,
    button.e-btn.btn-secondary.regular,
    button.e-btn.btn-secondary.outlined.regular,
    .btn-secondary.outlined.regular,
    button.e-btn.btn-secondary.outlined.regular,
    .btn-danger.regular,
    .btn-danger.outlined.regular,
    button.e-btn.btn-danger.regular,
    button.e-btn.btn-danger.outlined.regular,
    .btn-danger.outlined.regular,
    button.e-btn.btn-danger.outlined.regular {
        font-family: 'Inter', sans-serif !important;
        font-weight: 700 !important;
        font-size: 14px !important;
        line-height: 21px !important;
        letter-spacing: 0% !important;
        height: 37px !important;
        border-radius: 6px !important;
        box-sizing: border-box !important;
        padding: 8px 12px !important;
        gap: 5px;
    }

    .btn-primary.large,
    button.e-btn.btn-primary.large,
    .btn-primary.outlined.large,
    button.e-btn.btn-primary.outlined.large,
    .btn-secondary.large,
    button.e-btn.btn-secondary.large,
    .btn-secondary.outlined.large,
    button.e-btn.btn-secondary.outlined.large,
    .btn-danger.large,
    button.e-btn.btn-danger.large,
    .btn-danger.outlined.large,
    button.e-btn.btn-danger.outlined.large {
        font-family: 'Inter', sans-serif !important;
        font-weight: 700 !important;
        font-size: 16px !important;
        line-height: 26px !important;
        letter-spacing: -0.3% !important;
        height: 46px !important;
        border-radius: 8px !important;
        box-sizing: border-box !important;
        padding: 10px 20px !important;
        gap: 5px;
    }

    /* =========================
   OUTLINED BUTTONS ADICIONAIS
   ========================= */
    /* Fit Content */
    .btn-primary.outlined.small.fit-content,
    .btn-secondary.outlined.small.fit-content,
    .btn-danger.outlined.small.fit-content {
        width: fit-content !important;
        min-width: 56px !important;
    }

    .btn-primary.outlined.regular.fit-content,
    .btn-secondary.outlined.regular.fit-content,
    .btn-danger.outlined.regular.fit-content {
        width: fit-content !important;
    }

    .btn-primary.outlined.large.fit-content,
    .btn-secondary.outlined.large.fit-content,
    .btn-danger.outlined.large.fit-content {
        width: fit-content !important;
        min-width: 80px !important;
    }

    /* Full Width */
    .btn-primary.outlined.small.full-width,
    .btn-secondary.outlined.small.full-width,
    .btn-danger.outlined.small.full-width {
        width: 100% !important;
    }

    .btn-primary.outlined.regular.full-width,
    .btn-secondary.outlined.regular.full-width,
    .btn-danger.outlined.regular.full-width {
        width: 100% !important;
    }

    .btn-primary.outlined.large.full-width,
    .btn-secondary.outlined.large.full-width,
    .btn-danger.outlined.large.full-width {
        width: 100% !important;
    }

/* =========================
   TABLE
   ========================= */
.table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--color-neutral-2);
    border-radius: 4px;
    overflow: hidden;
    background-color: var(--color-surface);
    color: var(--color-body-text);
}

    .table th,
    .table td {
        /*border: 1px solid var(--color-neutral-2);*/
        padding: 8px;
    }

.border-dark-darken {
    border-top: 2px solid !important;
}

.simple-data-table tbody td:first-child,
.simple-data-table tfoot td:first-child {
    font-weight: bold;
}

/* =========================
   FIELDS
   ========================= */
.field {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.sf-container {
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sf-field {
    display: flex;
    flex-direction: column;
}

    .sf-field label {
        font-family: 'Inter', sans-serif;
        font-size: 0.9rem;
        margin-bottom: 4px;
        font-weight: 600;
        color: var(--color-body-text) !important;
    }

    .sf-field input:not(.e-numerictextbox),
    .sf-field select {
        background-color: var(--color-background);
        color: var(--color-body-text) !important;
        border: 1px solid var(--color-neutral-2);
        font-size: 1rem;
        box-sizing: border-box;
        border-radius: 4px !important;
        padding: 8px !important;
    }

/* Override styling for multi-select components to prevent double border */
.sf-field .e-multiselect input,
.sf-field .e-multiselect .e-input,
.sf-field .e-multiselect-wrapper input {
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
    box-sizing: content-box !important;
}

/* =========================
   PLACEHOLDER (Dark/Light)
   ========================= */
.design-dark input::placeholder,
.design-dark textarea::placeholder {
    color: var(--color-neutral-2) !important;
    opacity: 1;
}

.design-dark input:-ms-input-placeholder,
.design-dark textarea:-ms-input-placeholder {
    color: var(--color-neutral-2) !important; /* IE 10-11 */
}

.design-dark input::-ms-input-placeholder,
.design-dark textarea::-ms-input-placeholder {
    color: var(--color-neutral-2) !important; /* Edge */
}

.design-light input::placeholder,
.design-light textarea::placeholder {
    color: var(--color-neutral-2) !important;
    opacity: 1;
}

.design-light input:-ms-input-placeholder,
.design-light textarea:-ms-input-placeholder {
    color: var(--color-neutral-2) !important; /* IE 10-11 */
}

.design-light input::-ms-input-placeholder,
.design-light textarea::-ms-input-placeholder {
    color: var(--color-neutral-2) !important; /* Edge */
}

/* =========================
   ICONS
   ========================= */
.icon-container {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.icon-left {
    flex-direction: row;
}

.icon-right {
    flex-direction: row-reverse;
}

.icon-top {
    flex-direction: column;
}

.icon-bottom {
    flex-direction: column-reverse;
}

.icon-text {
    font-size: 14px;
}

.e-notes:before {
    content: "\e85d";
}

.e-library-add-check:before {
    content: "\e90b";
}

.e-pending:before {
    content: "\e71b";
}


/* =========================
   INPUT GROUP (Dark Mode)
   ========================= */
.design-dark .e-input-group:not(.e-float-icon-left):not(.e-float-input)::before,
.design-dark .e-input-group:not(.e-float-icon-left):not(.e-float-input)::after,
.design-dark .e-input-group.e-float-icon-left:not(.e-float-input) .e-input-in-wrap::before,
.design-dark .e-input-group.e-float-icon-left:not(.e-float-input) .e-input-in-wrap::after,
.design-dark .e-input-group.e-control-wrapper:not(.e-float-icon-left):not(.e-float-input)::before,
.design-dark .e-input-group.e-control-wrapper:not(.e-float-icon-left):not(.e-float-input)::after,
.design-dark .e-input-group.e-control-wrapper.e-float-icon-left:not(.e-float-input) .e-input-in-wrap::before,
.design-dark .e-input-group.e-control-wrapper.e-float-icon-left:not(.e-float-input) .e-input-in-wrap::after,
.design-dark .e-float-input.e-input-group:not(.e-float-icon-left) .e-float-line::before,
.design-dark .e-float-input.e-input-group:not(.e-float-icon-left) .e-float-line::after,
.design-dark .e-float-input.e-input-group.e-float-icon-left .e-input-in-wrap .e-float-line::before,
.design-dark .e-float-input.e-input-group.e-float-icon-left .e-input-in-wrap .e-float-line::after,
.design-dark .e-float-input.e-control-wrapper.e-input-group:not(.e-float-icon-left) .e-float-line::before,
.design-dark .e-float-input.e-control-wrapper.e-input-group:not(.e-float-icon-left) .e-float-line::after,
.design-dark .e-float-input.e-control-wrapper.e-input-group.e-float-icon-left .e-input-in-wrap .e-float-line::before,
.design-dark .e-float-input.e-control-wrapper.e-input-group.e-float-icon-left .e-input-in-wrap .e-float-line::after,
.design-dark .e-filled.e-input-group.e-float-icon-left:not(.e-float-input)::before,
.design-dark .e-filled.e-input-group.e-float-icon-left:not(.e-float-input)::after,
.design-dark .e-filled.e-input-group.e-control-wrapper.e-float-icon-left:not(.e-float-input)::before,
.design-dark .e-filled.e-input-group.e-control-wrapper.e-float-icon-left:not(.e-float-input)::after,
.design-dark .e-filled.e-float-input.e-input-group.e-float-icon-left .e-float-line::before,
.design-dark .e-filled.e-float-input.e-input-group.e-float-icon-left .e-float-line::after,
.design-dark .e-filled.e-float-input.e-control-wrapper.e-input-group.e-float-icon-left .e-float-line::before,
.design-dark .e-filled.e-float-input.e-control-wrapper.e-input-group.e-float-icon-left .e-float-line::after {
    background: var(--color-primary) !important;
}

/* =========================
   INPUT GROUP (Light Mode)
   ========================= */
.design-light .e-input-group:not(.e-float-icon-left):not(.e-float-input)::before,
.design-light .e-input-group:not(.e-float-icon-left):not(.e-float-input)::after,
.design-light .e-input-group.e-float-icon-left:not(.e-float-input) .e-input-in-wrap::before,
.design-light .e-input-group.e-float-icon-left:not(.e-float-input) .e-input-in-wrap::after,
.design-light .e-input-group.e-control-wrapper:not(.e-float-icon-left):not(.e-float-input)::before,
.design-light .e-input-group.e-control-wrapper:not(.e-float-icon-left):not(.e-float-input)::after,
.design-light .e-input-group.e-control-wrapper.e-float-icon-left:not(.e-float-input) .e-input-in-wrap::before,
.design-light .e-input-group.e-control-wrapper.e-float-icon-left:not(.e-float-input) .e-input-in-wrap::after,
.design-light .e-float-input.e-input-group:not(.e-float-icon-left) .e-float-line::before,
.design-light .e-float-input.e-input-group:not(.e-float-icon-left) .e-float-line::after,
.design-light .e-float-input.e-input-group.e-float-icon-left .e-input-in-wrap .e-float-line::before,
.design-light .e-float-input.e-input-group.e-float-icon-left .e-input-in-wrap .e-float-line::after,
.design-light .e-float-input.e-control-wrapper.e-input-group:not(.e-float-icon-left) .e-float-line::before,
.design-light .e-float-input.e-control-wrapper.e-input-group:not(.e-float-icon-left) .e-float-line::after,
.design-light .e-float-input.e-control-wrapper.e-input-group.e-float-icon-left .e-input-in-wrap .e-float-line::before,
.design-light .e-float-input.e-control-wrapper.e-input-group.e-float-icon-left .e-input-in-wrap .e-float-line::after,
.design-light .e-filled.e-input-group.e-float-icon-left:not(.e-float-input)::before,
.design-light .e-filled.e-input-group.e-float-icon-left:not(.e-float-input)::after,
.design-light .e-filled.e-input-group.e-control-wrapper.e-float-icon-left:not(.e-float-input)::before,
.design-light .e-filled.e-input-group.e-control-wrapper.e-float-icon-left:not(.e-float-input)::after,
.design-light .e-filled.e-float-input.e-input-group.e-float-icon-left .e-float-line::before,
.design-light .e-filled.e-float-input.e-input-group.e-float-icon-left .e-float-line::after,
.design-light .e-filled.e-float-input.e-control-wrapper.e-input-group.e-float-icon-left .e-float-line::before,
.design-light .e-filled.e-float-input.e-control-wrapper.e-input-group.e-float-icon-left .e-float-line::after {
    background: var(--color-secondary) !important;
}

/* =========================
   NUMERICS
   ========================= */
.design-dark .e-numeric.e-control-wrapper.e-input-group,
.design-dark .e-numeric.e-control-wrapper.e-input-group .e-input {
    color: var(--color-body-text) !important;
    background-color: var(--color-background);
}

    .design-dark .e-numeric.e-control-wrapper.e-input-group .e-input-group-icon,
    .design-dark .e-icons {
        color: var(--color-body-text) !important;
    }

.e-input-group.e-control-wrapper input.e-input,
.design-light .e-ddl.e-input-group input[readonly].e-input,
.design-light .e-ddl.e-input-group input[readonly], .e-ddl.e-input-group .e-dropdownlist
.design-light .e-input-group.e-control-wrapper input.e-input
.design-light .e-numeric.e-control-wrapper.e-input-group,
.design-light .e-numeric.e-control-wrapper.e-input-group .e-input {
    color: var(--color-body-text) !important;
    background-color: var(--color-background);
    font-size: 1rem !important;
    font-family: 'Inter', sans-serif !important;
}

.design-light .e-numeric.e-control-wrapper.e-input-group .e-input-group-icon,
.design-light .e-clear-icon {
    color: var(--color-body-text) !important;
}

input.e-input {
    padding: 5px !important;
    border: none;
}


.e-input-group {
    border: 1px solid var(--color-neutral-2) !important;
    border-radius: 4px !important;
    padding: 4px !important;
    height: 48px;
}

    .e-input-group.underlined {
        border-left: none !important;
        border-top: none !important;
        border-right: none !important;
        border-radius: 0 !important;
    }

/* =========================
   TABS (Dark Mode)
   ========================= */
.design-dark .e-tab-header .e-toolbar-items {
    border-radius: 6px;
    overflow: hidden;
    padding: 0 !important;
}

.design-dark .e-tab-header .e-toolbar-item {
    background-color: #2A2A2A !important;
    color: var(--color-body-text) !important;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding: 8px 16px !important;
}

    .design-dark .e-tab-header .e-toolbar-item:last-child {
        border-right: none !important;
    }

    .design-dark .e-tab-header .e-toolbar-item:hover:not(.e-active) {
        background-color: #333333 !important;
        color: var(--color-primary) !important;
    }

    .design-dark .e-tab-header .e-toolbar-item.e-active.e-select {
        background-color: #444444 !important;
        color: var(--color-primary) !important;
    }

        .design-dark .e-tab-header .e-toolbar-item.e-active.e-select:last-child {
            border-right: none !important;
        }

    .design-dark .e-tab-header .e-toolbar-item.e-disabled {
        background-color: #1A1A1A !important;
        color: #777777 !important;
        pointer-events: none !important;
    }

        .design-dark .e-tab-header .e-toolbar-item.e-disabled:last-child {
            border-right: none !important;
        }

.design-dark .e-indicator {
    border: 2px solid var(--color-primary) !important;
    border-top: none !important;
    border-radius: 0 0 6px 6px !important;
    background-color: transparent !important;
}

.design-dark .e-content,
.design-dark .e-tab-content {
    background-color: var(--color-surface) !important;
    color: var(--color-body-text) !important;
}

/* =========================
   TABS (Light Mode)
   ========================= */
.design-light .e-tab-header .e-toolbar-items {
    border: 1px solid var(--color-secondary) !important;
    border-radius: 6px;
    overflow: hidden;
    padding: 0 !important;
}

.design-light .e-tab-header .e-toolbar-item {
    background-color: #ffffff !important;
    color: var(--color-secondary) !important;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding: 8px 16px !important;
}

    .design-light .e-tab-header .e-toolbar-item:last-child {
        border-right: none !important;
    }

    .design-light .e-tab-header .e-toolbar-item:hover:not(.e-active) {
        background-color: #FFF0E8 !important;
        color: var(--color-secondary) !important;
    }

    .design-light .e-tab-header .e-toolbar-item.e-active.e-select {
        background-color: #FFE6D9 !important;
        color: var(--color-secondary) !important;
    }

        .design-light .e-tab-header .e-toolbar-item.e-active.e-select:last-child {
            border-right: none !important;
        }

    .design-light .e-tab-header .e-toolbar-item.e-disabled {
        background-color: #F5F5F5 !important;
        color: #B9B9B9 !important;
        pointer-events: none !important;
    }

        .design-light .e-tab-header .e-toolbar-item.e-disabled:last-child {
            border-right: none !important;
        }

.design-light .e-indicator {
    border: 2px solid var(--color-secondary) !important;
    border-top: none !important;
    border-radius: 0 0 6px 6px !important;
    background-color: transparent !important;
}

.design-light .e-content,
.design-light .e-tab-content {
    background-color: var(--color-background) !important;
    color: var(--color-body-text) !important;
}

/* In case you need to force the text color within the Light tab content */
.design-light .e-tab .e-tab-header .e-item {
    color: var(--color-body-text) !important;
}

/* =========================
   CUSTOM HEADER (Optional)
   ========================= */
.sf-custom-tab-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sf-tab-badge {
    background-color: var(--color-secondary);
    color: var(--color-body-text-light);
    font-size: 0.75rem;
    border-radius: 4px;
    padding: 2px 6px;
}

.sf-tab-primary .e-indicator.e-ignore {
    background-color: var(--color-primary) !important;
}

.sf-tab-secondary .e-indicator.e-ignore {
    background-color: var(--color-secondary) !important;
}

.sf-tab-secondary .icon-text,
.sf-tab-primary .icon-text {
    color: var(--color-body-text);
}

.sf-tab-primary .e-tab-wrap:hover .icon-text,
.sf-tab-primary .e-toolbar-item.e-active .icon-text,
.sf-tab-primary .e-toolbar-item.e-active .material-symbols-outlined,
.sf-tab-primary .e-toolbar-item.e-active .e-tab-text,
.sf-tab-primary .e-toolbar-item.e-active .e-tab-icon {
    color: var(--color-primary) !important;
}

.sf-tab-secondary .e-toolbar-item.e-active .icon-text,
.sf-tab-secondary .e-toolbar-item.e-active .material-symbols-outlined,
.sf-tab-secondary .e-toolbar-item.e-active .e-tab-text,
.sf-tab-secondary .e-toolbar-item.e-active .e-tab-icon {
    color: var(--color-secondary) !important;
}

.sf-tab-primary .e-tab-wrap:hover .material-symbols-outlined,
.sf-tab-primary .e-tab-wrap:hover .e-tab-text {
    color: var(--color-primary) !important;
}


.sf-tab-secondary .e-tab-wrap:hover .icon-text,
.sf-tab-secondary .e-tab-wrap:hover .material-symbols-outlined,
.sf-tab-secondary .e-tab-wrap:hover .e-tab-text {
    color: var(--color-secondary) !important;
}

.e-disable .icon-text,
.e-disable .e-tab-text,
.e-disable .material-symbols-outlined {
    color: var(--color-neutral-2) !important;
}


.sf-tab-primary .e-tab .e-tab-header .e-toolbar-item.e-active.e-ileft .e-tab-text,
.sf-tab-primary .e-tab .e-tab-header .e-toolbar-item.e-active.e-iright .e-tab-text {
}


/* =========================
   TABS PRIMARY (Dark Mode)
   ========================= */
.design-dark .sf-tab-primary .e-tab-header .e-toolbar-items {
    border-radius: 6px;
    overflow: hidden;
    padding: 0 !important;
}

.design-dark .sf-tab-primary .e-tab-header .e-toolbar-item {
    background-color: #2A2A2A !important;
    color: var(--color-body-text) !important;
    border-right: 1px solid var(--color-primary) !important;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding: 8px 16px !important;
}

    .design-dark .sf-tab-primary .e-tab-header .e-toolbar-item:last-child {
        border-right: none !important;
    }

    .design-dark .sf-tab-primary .e-tab-header .e-toolbar-item:hover:not(.e-active) {
        background-color: #333333 !important;
        color: var(--color-primary) !important;
    }

    .design-dark .sf-tab-primary .e-tab-header .e-toolbar-item.e-active.e-select {
        background-color: #444444 !important;
        color: var(--color-primary) !important;
        border-right: 1px solid var(--color-primary) !important;
    }

        .design-dark .sf-tab-primary .e-tab-header .e-toolbar-item.e-active.e-select:last-child {
            border-right: none !important;
        }

    .design-dark .sf-tab-primary .e-tab-header .e-toolbar-item.e-disabled {
        background-color: #1A1A1A !important;
        color: #777777 !important;
        pointer-events: none !important;
        border-right: 1px solid var(--color-primary) !important;
    }

        .design-dark .sf-tab-primary .e-tab-header .e-toolbar-item.e-disabled:last-child {
            border-right: none !important;
        }

.design-dark .sf-tab-primary .e-indicator {
    border: 2px solid var(--color-primary) !important;
    border-top: none !important;
    border-radius: 0 0 6px 6px !important;
    background-color: transparent !important;
}

.design-dark .sf-tab-primary .e-content,
.design-dark .sf-tab-primary .e-tab-content {
    background-color: var(--color-surface) !important;
    color: var(--color-body-text) !important;
}

/* =========================
   TABS PRIMARY (Light Mode)
   ========================= */
.design-light .sf-tab-primary .e-tab-header .e-toolbar-items {
    border-radius: 6px;
    overflow: hidden;
    padding: 0 !important;
}

.design-light .sf-tab-primary .e-tab-header .e-toolbar-item {
    background-color: #ffffff !important;
    color: var(--color-primary) !important;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding: 8px 16px !important;
}

    .design-light .sf-tab-primary .e-tab-header .e-toolbar-item:last-child {
        border-right: none !important;
    }

    .design-light .sf-tab-primary .e-tab-header .e-toolbar-item:hover:not(.e-active) {
        background-color: #E8F0FF !important; /* light shade related to var(--color-primary) */
        color: var(--color-primary) !important;
    }

    .design-light .sf-tab-primary .e-tab-header .e-toolbar-item.e-active.e-select {
        background-color: #D9E6FF !important; /* light shade related to var(--color-primary) */
        color: var(--color-primary) !important;
        border-right: 1px solid var(--color-primary) !important;
    }

        .design-light .sf-tab-primary .e-tab-header .e-toolbar-item.e-active.e-select:last-child {
            border-right: none !important;
        }

    .design-light .sf-tab-primary .e-tab-header .e-toolbar-item.e-disabled {
        background-color: #F5F5F5 !important;
        color: #B9B9B9 !important;
        pointer-events: none !important;
        border-right: 1px solid var(--color-primary) !important;
    }

        .design-light .sf-tab-primary .e-tab-header .e-toolbar-item.e-disabled:last-child {
            border-right: none !important;
        }

.design-light .sf-tab-primary .e-indicator {
    border: 2px solid var(--color-primary) !important;
    border-top: none !important;
    border-radius: 0 0 6px 6px !important;
    background-color: transparent !important;
}

.design-light .sf-tab-primary .e-content,
.design-light .sf-tab-primary .e-tab-content {
    background-color: var(--color-background) !important;
    color: var(--color-body-text) !important;
}

/* =========================
   TABS SECONDARY (Dark Mode)
   ========================= */
.design-dark .sf-tab-secondary .e-tab-header .e-toolbar-items {
    border: 1px solid var(--color-secondary) !important;
    border-radius: 6px;
    overflow: hidden;
    padding: 0 !important;
}

.design-dark .sf-tab-secondary .e-tab-header .e-toolbar-item {
    background-color: #2A2A2A !important;
    color: var(--color-body-text) !important;
    border-right: 1px solid var(--color-secondary) !important;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding: 8px 16px !important;
}

    .design-dark .sf-tab-secondary .e-tab-header .e-toolbar-item:last-child {
        border-right: none !important;
    }

    .design-dark .sf-tab-secondary .e-tab-header .e-toolbar-item:hover:not(.e-active) {
        background-color: #333333 !important;
        color: var(--color-secondary) !important;
    }

    .design-dark .sf-tab-secondary .e-tab-header .e-toolbar-item.e-active.e-select {
        background-color: #444444 !important;
        color: var(--color-secondary) !important;
        border-right: 1px solid var(--color-secondary) !important;
    }

        .design-dark .sf-tab-secondary .e-tab-header .e-toolbar-item.e-active.e-select:last-child {
            border-right: none !important;
        }

.design-dark .e-tab-header .e-toolbar-item.e-disabled {
    background-color: #1A1A1A !important;
    color: #777777 !important;
    pointer-events: none !important;
    border-right: 1px solid var(--color-secondary) !important;
}

.design-dark .sf-tab-secondary .e-tab-header .e-toolbar-item.e-disabled:last-child {
    border-right: none !important;
}

.design-dark .sf-tab-secondary .e-indicator {
    border: 2px solid var(--color-secondary) !important;
    border-top: none !important;
    border-radius: 0 0 6px 6px !important;
    background-color: transparent !important;
}

.design-dark .sf-tab-secondary .e-content,
.design-dark .sf-tab-secondary .e-tab-content {
    background-color: var(--color-surface) !important;
    color: var(--color-body-text) !important;
}

/* =========================
   TABS SECONDARY (Light Mode)
   ========================= */
.design-light .sf-tab-secondary .e-tab-header .e-toolbar-items {
    border-radius: 6px;
    overflow: hidden;
    padding: 0 !important;
}

.design-light .sf-tab-secondary .e-tab-header .e-toolbar-item {
    background-color: #ffffff !important;
    color: var(--color-secondary) !important;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding: 8px 16px !important;
}

    .design-light .sf-tab-secondary .e-tab-header .e-toolbar-item:last-child {
        border-right: none !important;
    }

    .design-light .sf-tab-secondary .e-tab-header .e-toolbar-item:hover:not(.e-active) {
        background-color: #FFF0E8 !important;
        color: var(--color-secondary) !important;
    }

    .design-light .sf-tab-secondary .e-tab-header .e-toolbar-item.e-active.e-select {
        background-color: #FFE6D9 !important;
        color: var(--color-secondary) !important;
    }

        .design-light .sf-tab-secondary .e-tab-header .e-toolbar-item.e-active.e-select:last-child {
            border-right: none !important;
        }

    .design-light .sf-tab-secondary .e-tab-header .e-toolbar-item.e-disabled {
        background-color: #F5F5F5 !important;
        color: #B9B9B9 !important;
        pointer-events: none !important;
        border-right: 1px solid var(--color-secondary) !important;
    }

        .design-light .sf-tab-secondary .e-tab-header .e-toolbar-item.e-disabled:last-child {
            border-right: none !important;
        }

.design-light .sf-tab-secondary .e-indicator {
    border: 2px solid var(--color-secondary) !important;
    border-top: none !important;
    border-radius: 0 0 6px 6px !important;
    background-color: transparent !important;
}

.design-light .sf-tab-secondary .e-content,
.design-light .sf-tab-secondary .e-tab-content {
    background-color: var(--color-background) !important;
    color: #000000;
}

.e-tab .e-tab-header .e-toolbar-items,
.e-tab .e-tab-header:not(.e-vertical) .e-toolbar-item.e-active,
.e-tab .e-tab-header:not(.e-vertical) .e-toolbar-item.e-active {
    border: none !important;
}


.circled {
    border-radius: 50%;
    border: solid 4px #1C1B1F;
    padding: 2px;
}

.filled {
    font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
}

.search-auto-complete {
}


.custom-grid-wrapper .e-headercell {
    border-bottom: solid 2px black !important;
    border-left: none;
    border-right: none;
}

    .custom-grid-wrapper .e-headercell:hover .e-headertext,
    .custom-grid-wrapper .e-headercell .e-headertext:hover,
    .custom-grid-wrapper .e-headercell .e-headertext {
        color: var(--color-body-text) !important;
        background: transparent !important;
        font-weight: bold;
    }

        .custom-grid-wrapper .e-headercell .e-headertext:hover {
            opacity: .8 !important;
        }


.btn-primary.small.full-width,
.btn-secondary.small.full-width,
.btn-danger.small.full-width,
.btn-primary.large.full-width,
.btn-primary.regular.full-width,
.btn-secondary.large.full-width,
.btn-secondary.regular.full-width,
.btn-danger.large.full-width,
.btn-primary.outlined.large.full-width,
.btn-primary.outlined.small.full-width,
.btn-primary.outlined.regular.full-width,
.btn-secondary.outlined.large.full-width,
.btn-danger.outlined.large.full-width,
.btn-danger.outlined.small.full-width,
.btn-danger.outlined.regular.full-width,
button.e-btn.btn-primary.large.full-width,
button.e-btn.btn-primary.regular.full-width,
button.e-btn.btn-secondary.large.full-width,
button.e-btn.btn-secondary.regular.full-width,
button.e-btn.btn-danger.large.full-width,
button.e-btn.btn-danger.regular.full-width,
button.e-btn.btn-primary.outlined.large.full-width,
button.e-btn.btn-secondary.outlined.large.full-width,
button.e-btn.btn-danger.outlined.large.full-width,
button.e-btn.btn-primary.outlined.small.full-width,
button.e-btn.btn-primary.outlined.regular.full-width {
    width: 100% !important;
}

.btn-primary.small.fit-content,
.btn-secondary.small.fit-content,
.btn-danger.small.fit-content,
.btn-primary.outlined.small.fit-content,
.btn-secondary.outlined.small.fit-content,
.btn-danger.outlined.small.fit-content,
button.e-btn.btn-primary.small.fit-content,
button.e-btn.btn-secondary.small.fit-content,
button.e-btn.btn-danger.small.fit-content,
button.e-btn.btn-primary.outlined.small.fit-content,
button.e-btn.btn-secondary.outlined.small.fit-content,
button.e-btn.btn-danger.outlined.small.fit-content {
    width: fit-content !important;
}



/* =========================
   UNIFIED TOOLTIP STYLES - TIC-751
   ========================= */

/* Base tooltip styles - shared by both SyncFusion and custom components */
.tooltip-base,
.e-tooltip-wrap.e-popup {
    background: var(--tooltip-background) !important;
    color: var(--tooltip-text-color) !important;
    font-family: var(--tooltip-font-family) !important;
    font-size: var(--tooltip-font-size) !important;
    font-weight: var(--tooltip-font-weight) !important;
    padding: var(--tooltip-padding) !important;
    border-radius: var(--tooltip-border-radius) !important;
    box-shadow: var(--tooltip-shadow) !important;
    border: var(--tooltip-border) !important;
    max-width: var(--tooltip-max-width) !important;
    word-wrap: break-word !important;
    transition: var(--tooltip-transition) !important;
    z-index: var(--tooltip-z-index) !important;
    white-space: nowrap !important;
}

.tooltip-content,
.e-tooltip-wrap.e-popup .e-tip-content {
    color: var(--tooltip-text-color) !important;
    font-family: var(--tooltip-font-family) !important;
    font-size: var(--tooltip-font-size) !important;
    font-weight: var(--tooltip-font-weight) !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Arrow/pointer styling */
.tooltip-arrow,
.e-tooltip-wrap .e-arrow-tip {
    background: var(--tooltip-background) !important;
    border: var(--tooltip-border) !important;
}

/* SyncFusion Tooltip Arrow Triangle Color Fix - ensures arrow triangles match tooltip background */
.e-tooltip-wrap .e-arrow-tip,
.e-tooltip-wrap .e-arrow-tip::before,
.e-tooltip-wrap .e-arrow-tip::after {
    background-color: var(--tooltip-background) !important;
    border-color: var(--tooltip-background) !important;
}

/* Ensure arrow triangles match tooltip background for all positions */
.e-tooltip-wrap.e-popup .e-arrow-tip-outer,
.e-tooltip-wrap.e-popup .e-arrow-tip-inner,
.e-tooltip-wrap.e-popup .e-tip-outer,
.e-tooltip-wrap.e-popup .e-tip-inner {
    border-color: var(--tooltip-background) transparent !important;
    background: var(--tooltip-background) !important;
}

/* Position-specific arrow color fixes */
.e-tooltip-wrap.e-popup.e-popup-top .e-arrow-tip,
.e-tooltip-wrap.e-popup.e-popup-bottom .e-arrow-tip,
.e-tooltip-wrap.e-popup.e-popup-left .e-arrow-tip,
.e-tooltip-wrap.e-popup.e-popup-right .e-arrow-tip {
    background: var(--tooltip-background) !important;
}

/* Custom TooltipComponent positioning classes */
.tooltip-wrapper {
    position: relative;
    display: inline-block;
}

.tooltip-base {
    position: absolute;
    z-index: var(--tooltip-z-index);
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    /* Smart max-width that adapts to viewport */
    max-width: min(var(--tooltip-max-width), calc(100vw - 20px));
}

.tooltip-visible {
    opacity: 1;
}

.tooltip-hidden {
    opacity: 0;
}

/* Smart positioning that stays within viewport bounds */
.tooltip-top {
    bottom: 100%;
    left: clamp(
        calc(var(--tooltip-max-width) / -2 + 10px), 
        50%, 
        calc(100vw - var(--tooltip-max-width) / 2 - 10px)
    );
    transform: translateX(-50%);
    margin-bottom: 8px;
}

.tooltip-top::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--tooltip-background);
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.1));
}

.tooltip-bottom {
    top: 100%;
    left: clamp(
        calc(var(--tooltip-max-width) / -2 + 10px), 
        50%, 
        calc(100vw - var(--tooltip-max-width) / 2 - 10px)
    );
    transform: translateX(-50%);
    margin-top: 8px;
}

.tooltip-bottom::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--tooltip-background);
    filter: drop-shadow(0 -1px 1px rgba(0,0,0,0.1));
}

.tooltip-left {
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 8px;
    /* Ensure doesn't overflow left edge */
    left: max(10px, auto);
}

.tooltip-left::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid var(--tooltip-background);
    filter: drop-shadow(1px 0 1px rgba(0,0,0,0.1));
}

.tooltip-right {
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 8px;
    /* Ensure doesn't overflow right edge */
    right: max(10px, auto);
}

.tooltip-right::after {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 6px solid var(--tooltip-background);
    filter: drop-shadow(-1px 0 1px rgba(0,0,0,0.1));
}

/* Auto-flip positioning classes for JavaScript to apply */
.tooltip-auto-flipped-top {
    bottom: 100%;
    margin-bottom: 8px;
    margin-top: 0;
}

.tooltip-auto-flipped-top::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--tooltip-background);
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.1));
}

.tooltip-auto-flipped-bottom {
    top: 100%;
    margin-top: 8px;
    margin-bottom: 0;
}

.tooltip-auto-flipped-bottom::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--tooltip-background);
    filter: drop-shadow(0 -1px 1px rgba(0,0,0,0.1));
}

/* Mobile responsive */
@media (max-width: 768px) {
    .tooltip-base,
    .e-tooltip-wrap.e-popup {
        max-width: var(--tooltip-mobile-max-width) !important;
        font-size: var(--tooltip-mobile-font-size) !important;
        padding: var(--tooltip-mobile-padding) !important;
    }
}

/* Universal tooltip z-index and positioning fixes */
.e-tooltip-wrap {
    z-index: 1000 !important;
}

.e-tooltip-wrap.e-popup {
    position: fixed !important;
    z-index: 1001 !important;
}

/* Ensure proper stacking and visibility */
.e-tooltip-wrap {
    pointer-events: none;
}

.e-tooltip-wrap .e-tip-content {
    pointer-events: auto;
}

/* Enhanced arrow color fixes for all positions and states */
.e-tooltip-wrap .e-arrow-tip-outer,
.e-tooltip-wrap .e-arrow-tip-inner,
.e-tooltip-wrap .e-arrow-tip::before,
.e-tooltip-wrap .e-arrow-tip::after,
.e-tooltip-wrap.e-popup .e-arrow-tip,
.e-tooltip-wrap.e-popup .e-arrow-tip-outer,
.e-tooltip-wrap.e-popup .e-arrow-tip-inner {
    background-color: var(--tooltip-background) !important;
    border-color: var(--tooltip-background) !important;
    display: block !important;
    visibility: visible !important;
}

/* Fix for SyncFusion's internal arrow elements */
.e-tooltip-wrap .e-arrow-tip .e-tip-outer,
.e-tooltip-wrap .e-arrow-tip .e-tip-inner {
    border-color: var(--tooltip-background) transparent !important;
    display: block !important;
    visibility: visible !important;
}

/* Ensure the main arrow tip is always visible */
.e-tooltip-wrap .e-arrow-tip {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

td[style="text-align:left"] {
    padding-left: 12px !important;
}


.e-grid {
    border-width: 0 !important;
}

    .e-grid th.e-headercell:not([aria-label="Header checkbox"]),
    .e-grid td.e-rowcell:not([aria-label="Header checkbox"]) {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .e-grid .e-gridheader .e-sortfilter .e-headercelldiv,
    .e-grid .e-gridheader .e-stackedheadercelldiv {
        padding: 0 15px 0 7px !important;
    }

    .e-grid .e-headercelldiv {
        line-height: 22px !important;
    }

.e-sortnumber {
    display: none;
}

.e-headercell,
.e-detailheadercell,
.e-rowcell,
.e-headercelldiv {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.e-row {
    height: 48px;
}

/* Ensure tooltips work properly in grid rows */
.e-row .tooltip-wrapper,
.e-rowcell .tooltip-wrapper {
    position: relative;
    z-index: 1;
}

.e-row .tooltip-base,
.e-rowcell .tooltip-base {
    z-index: var(--tooltip-z-index) !important;
}

/* Prevent grid overflow from clipping tooltips */
.e-grid .e-content,
.e-grid .e-gridcontent {
    overflow: visible !important;
}

/* Make all tooltip arrows/pointers transparent */
.e-tooltip-wrap .e-arrow-tip,
.e-tooltip-wrap .e-arrow-tip::before,
.e-tooltip-wrap .e-arrow-tip::after,
.e-tooltip-wrap .e-arrow-tip-outer,
.e-tooltip-wrap .e-arrow-tip-inner,
.e-tooltip-wrap .e-tip-outer,
.e-tooltip-wrap .e-tip-inner,
.tooltip-arrow,
.tooltip-top::after,
.tooltip-bottom::after,
.tooltip-left::after,
.tooltip-right::after,
.tooltip-auto-flipped-top::after,
.tooltip-auto-flipped-bottom::after {
    background-color: transparent !important;
    border-color: transparent !important;
}

/* Ensure grid rows don't create new stacking contexts that interfere with tooltips */
.e-row {
    position: relative;
    z-index: auto;
}

.e-grid .e-gridheader {
    border: none;
}

.sf-grid .e-grid {
    border: none;
}

.e-gridheader .e-headercell {
    color: black !important;
    border-width: 0 0 1px 0 !important;
    border-bottom-color: black !important;
}

.e-rowdragheader {
    border-width: 0 0 1px 0 !important;
    border-bottom-color: black !important;
}

/* =========================
   Dialog
   ========================= */

.e-popup.e-popup-open.e-dialog {
    border-radius: 8px !important;
}

.e-dialog .e-dlg-content {
    border-radius: 8px !important;
    padding: 20px !important;
}


/*.e-dlg-header {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    color: var(--color-body-text) !important;
    font-weight: 700 !important;
    font-size: 20px !important;
    height: 26px !important;
    line-height: 26px;
    letter-spacing: -1%;
}*/


.e-dialog .e-footer-content {
    border-radius: 8px !important;
    padding: 0 20px 20px 20px !important;
}

/* =========================
   Radio Buttons
   ========================= */
.e-radio:checked + label::before {
    border-color: var(--color-secondary) !important;
}

.e-radio:checked + label::after {
    background-color: var(--color-secondary) !important;
    color: var(--color-secondary) !important;
}

/* =========================
   Surface
   ========================= */
.hriq-surface {
    color: var(--color-body-text);
    background-color: var(--color-surface);
    border-radius: var(--default-border-radius);
    transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
}

.fields-section {
    flex: 3 1 600px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 0;
}

.fields-column {
    flex: 1 1 280px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 250px;
}

.field-item {
    display: flex;
    flex-direction: column;

    ::deep .e-control-wrapper {
        margin: 0;
    }

    ::deep .validation-message {
        font-size: 0.75rem;
        color: var(--validation-message-color, #dc3545);
        padding-top: 2px;
        min-height: 1.2em;
    }
}

.hriq-surface-square {
    border-radius: 0px;
}

.hriq-surface-outlined {
    border: 1px solid var(--color-neutral-2);
}

/* =========================
   Toast
   ========================= */
.e-toast {
    padding: 0 12px !important;
    width: fit-content;
}

/* =========================
   W3Container
   ========================= */
.w3-container-extender {
    margin: 0 auto !important;
}
    /* =========================
   Switch Buttons
   ========================= */
    .e-switch-wrapper .e-switch-on, .e-switch-wrapper:hover .e-switch-inner.e-switch-active .e-switch-on, .e-switch-wrapper .e-switch-handle.e-switch-active, .e-switch-wrapper:hover .e-switch-handle.e-switch-active {
    background-color: var(--color-secondary) !important;
    color: var(--color-secondary) !important;
}

.e-checkbox-wrapper:hover .e-frame.e-check,
.e-checkbox-wrapper .e-frame.e-check {
    background-color: white !important;
    border-color: #757575 !important;
    color: black !important;
}

/* =========================
   DATA HEAVY GRID LAYOUT SUPPORT
   ========================= */

.hriq-data-heavy-grid .e-grid .e-gridheader .e-table .e-headercell,
.hriq-data-heavy-grid .e-grid .e-gridcontent .e-table .e-rowcell,
.hriq-data-heavy-grid .e-grid .e-gridheader .e-table .e-headercelldiv,
.hriq-data-heavy-grid .e-grid .e-gridcontent .e-table .e-detailheadercell,
.hriq-data-heavy-grid .e-grid tbody tr td.e-rowcell,
.hriq-data-heavy-grid .e-grid thead tr th.e-headercell {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.933rem !important;
    line-height: inherit !important;
}

/* Analysis page layout - flexible height container */
.ViewAnalysisWrapper {
    display: flex;
    flex-direction: column;
    height: calc(100dvh - 130px);
    overflow: hidden;
    border-top: 1px solid #e5e7eb;
}

/* Ensure sticky headers work properly in View Analysis tables */
::deep .ViewAnalysisWrapper .e-grid .e-gridheader {
    position: sticky !important;
    top: 70px !important;
    z-index: 50 !important;
    background-color: white !important;
}

::deep .ViewAnalysisWrapper .e-grid .e-columnheader {
    background-color: white !important;
}

/* SfTab layout for data tables */
.data-table-tabs {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.data-table-tabs .e-tab-header {
    flex-shrink: 0;
    height: var(--tab-header-height);
}

.data-table-tabs .e-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.data-table-tabs .e-item {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Chart sections should not take too much space */
.w3-row {
    flex-shrink: 0;
}

/* Export buttons positioning */
.export-file-btns {
    position: absolute;
    top: 8px;
    right: 20px;
    z-index: 10;
    height: var(--export-button-height);
}

/* =========================
   GRID COLUMN TYPE CLASSES
   ========================= */
/* Grid column type classes for optimal width fitting - can be applied to any table */
.grid-column-currency {
    width: fit-content !important;
    min-width: 100px;
    max-width: 150px;
}

.grid-column-year {
    width: fit-content !important;
    min-width: 70px;
    max-width: 90px;
}

.grid-column-quantity {
    width: fit-content !important;
    min-width: 80px;
    max-width: 120px;
}

.grid-column-date {
    width: fit-content !important;
    min-width: 90px;
    max-width: 110px;
}

.grid-column-percentage {
    width: fit-content !important;
    min-width: 100px;
    max-width: 130px;
}
