fluent-text-input input:-webkit-autofill,
fluent-text-input input:-webkit-autofill:hover,
fluent-text-input input:-webkit-autofill:focus,
fluent-text-input input:-webkit-autofill:active,
fluent-text-input::part(control):-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px var(--colorNeutralBackground1, #292929) inset !important;
    box-shadow: 0 0 0 1000px var(--colorNeutralBackground1, #292929) inset !important;
    -webkit-text-fill-color: var(--colorNeutralForeground1, #ffffff) !important;
    caret-color: var(--colorNeutralForeground1, #ffffff);
    transition: background-color 5000s ease-in-out 0s;
}


/* Container centered on the screen */
.fluent-loader-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    /* Uses system background colors (White in light mode, Dark Gray/Black in dark mode) */
    /*background-color: Canvas;
    color: CanvasText;*/
    background-color: #292929;
    color: #ffffff;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
}

/* Spinner base styling */
.fluent-spinner {
    animation: rotate 2s linear infinite;
    z-index: 2;
    width: 48px;
    height: 48px;
}

/* The muted background track of the spinner */
.fluent-spinner-bg {
    fill: none;
    /*stroke: CanvasText;*/
    stroke: #ffffff;
    stroke-width: 4;
    opacity: 0.1; /* Subtle track */
}

/* The animated, colored accent dash */
.fluent-spinner-dash {
    fill: none;
    stroke: LinkText; /* System accent/brand color (Fluent Blue) */
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
    animation: dash 1.5s ease-in-out infinite;
}

/* Typography matching Fluent UI standards */
.fluent-loader-text {
    margin-top: 16px;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.3px;
    opacity: 0.85;
}

/* Keyframes for spinning and stretching the ring */
@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }

    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }

    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

.fluent-layout-item[area=nav] {
    min-width: 200px;
}

fluent-drawer,
fluent-drawer[size="medium"] {
    --drawer-width: 300px !important;
}

.inactive {
    opacity: 0.5 !important;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.spin-icon {
    animation: spin 1s linear infinite;
    display: inline-block;
}

.grid-container {
    width: 100%;
    min-width: 100%;
    padding: 0;
    margin: 0;
}

    .grid-container .column-filter {
        padding: 10px;
        min-width: 220px;
    }

        .grid-container .column-filter .clear-button {
            float: right !important;
            margin-top: 5px;
        }

.fluent-data-grid-row.highlighted-row > td {
    background-color: var(--colorNeutralBackground4Selected) !important;
}

/* Optional: Slight color shift when hovering over the already selected row */
.fluent-data-grid-row.highlighted-row:hover > td {
    background-color: var(--colorNeutralBackground3Selected) !important;
}

.fluent-data-grid-row.highlighted-row > td.highlighted-row {
    background-color: var(--colorNeutralBackground4Selected) !important;
}

.fluent-data-grid-row.highlighted-row:hover > td.highlighted-row {
    background-color: var(--colorNeutralBackground3Selected) !important;
}

color: #9CA3AF;
}

.actions-column {
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
}

.row-actions-floating {
}

/* Show the buttons on hover or selection */
.fluent-data-grid-row.highlighted-row .row-actions-floating,
.fluent-data-grid-row:hover .row-actions-floating {
    opacity: 1;
    pointer-events: auto;
}

.stretched-input {
    width: 100% !important;
    min-width: 100% !important;
}

.hidden {
    display: none;
}

table.fluent-data-grid thead,
table.fluent-data-grid thead tr,
table.fluent-data-grid thead th {
    height: 32px !important;
    min-height: 32px !important;
}

    table.fluent-data-grid thead th > div:first-child {
        height: 32px;
        align-items: center;
    }

    table.fluent-data-grid thead th,
    table.fluent-data-grid tbody td {
        font-size: 0.95em;
        padding: 0 6px;
    }

table.fluent-data-grid .hidden-col {
    display: none;
    width: 0px;
}

table.fluent-data-grid thead th button,
table.fluent-data-grid thead th .col-sort-button,
table.fluent-data-grid [col-justify=start] [col-sort-button],
table.fluent-data-grid [col-justify=end] [col-sort-button] {
    padding: 0 4px;
    min-width: auto;
    font-size: 0.9em;
}

table.fluent-data-grid [col-justify=start] [col-title],
table.fluent-data-grid [col-justify=end] [col-title] {
    padding: 6px 4px;
    min-width: auto;
    font-size: 0.9em;
}


table.fluent-data-grid thead th .col-options-button {
    width: 20px;
    min-width: 20px;
    height: 20px;
    min-height: 20px;
    padding: 0;
}

table.fluent-data-grid thead th fluent-button[col-options-button] {
    width: 20px;
    min-width: 20px;
    height: 20px;
    min-height: 20px;
    padding: 0;
}

table.fluent-data-grid thead th fluent-button[col-sort-button] {
    height: 20px;
    min-height: 20px;
    padding: 0 4px;
    font-size: 16px;
}

    table.fluent-data-grid thead th fluent-button[col-options-button] svg,
    table.fluent-data-grid thead th fluent-button[col-sort-button] svg {
        width: 16px !important;
        height: 16px !important;
    }

table.fluent-data-grid tbody td[col-select="true"] {
    align-content: start !important;
    padding-top: 4px !important;
}
