:root {
    /* 1. Reduce the base sizing (Default is usually 14px or 1rem) */
    --kendo-font-family: Arial, Helvetica, sans-serif !important;
    --kendo-font-size: 12px;
    --kendo-line-height: 1.2;
    /* 2. Tighten the spacing/padding scale */
    --kendo-spacing-md: 4px;
    --kendo-spacing-sm: 2px;
    /* 3. Specifically target the 'Compact' density if using variables */
    --kendo-button-padding-y: 2px;
    --kendo-button-padding-x: 8px;
    /* 4. Soften the background color for all disabled inputs */
    --kendo-disabled-bg: #f5f5f5;
    /* 5. Adjust the text color so it's still readable but 'faded' */
    --kendo-disabled-text: #999999;
    /* 6. Soften the border so it doesn't stand out too much */
    --kendo-disabled-border: #e0e0e0;
    --kendo-color-surface: #F6FAFD;
}

:root {
    --kendo-color-primary: #00A6CE;
    --kendo-color-primary-on-surface: #00A6CE;
}

body {
    font-family: Arial, Helvetica, sans-serif !important;
}

.overflow-auto {
    overflow: auto !important;
}

/* Specific fix for Blazor Textbox/Numeric/Dropdown components */
.k-state-disabled,
.k-disabled,
.k-input:disabled,
.k-input.k-state-disabled {
    background-color: var(--kendo-disabled-bg) !important;
    color: var(--kendo-disabled-text) !important;
    opacity: 1; /* Prevents double-fading if your theme already has opacity */
}

.k-input, .k-picker {
    border-width: 0px;
}

.k-input-inner {
    font-size: 12px;
}

.k-list-item, .k-list-optionlabel {
    font-size: 11px;
    padding-block: 4px !important;
}

.k-button:hover, .k-button:focus {
    box-shadow: none !important;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.text-align-left {
    text-align: left;
}

.text-align-right {
    text-align: right;
}

.text-ellipsis-max-height {
    overflow: hidden;
    max-height: 70px;
    text-overflow: ellipsis;
}

.padding-tent-none {
    padding-top: 0px;
    padding-left: 0px;
    padding-right: 0px;
}

.margin-bottom-12 {
    margin-bottom: 12px;
}

.search-selection-table {
    border-collapse: separate;
    border-spacing: 20px 0px;
    width: 100%;
}

    .search-selection-table td {
        vertical-align: top;
    }

.width-fill {
    width: -webkit-fill-available;
}

.k-grid {
    font-size: 12px;
}

.smaller-header-paddings.k-grid th {
    padding-right: 16px;
}

.smaller-header-paddings .k-grid-header .k-grid-filter {
    right: 2px;
}

.k-grid th, .k-grid td {
    padding: 10px 2px 10px 24px;
}

.msg-notification {
    position: absolute;
    z-index: 2000;
}

    .msg-notification .k-notification {
        width: 530px;
    }

.k-notification-container {
    margin: 6px 0;
}

.login-button {
    width: 100%;
    border-radius: 10px;
}

.login-button {
    background: gray;
    color: white;
    border-radius: 8px;
}

    .login-button:hover {
        background: #00bcd4;
        color: white;
    }

.k-button-solid-primary, .k-button.k-button-solid-primary {
    border-color: #555555;
    color: #fff;
    background-color: #555555;
    line-height: 29px;
}

    .k-button.k-button-solid-primary:hover {
        border-color: #00bcd4;
        color: #fff;
        background-color: #00bcd4;
    }

.content {
    display: flex;
    justify-content: center;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
}

.logo {
    padding: 1.0rem;
}

.k-card {
    box-shadow: none;
}

@media screen and (min-width: 1366px) {
    html {
        background-color: #f6f7f8;
    }

    .login-form {
        transform: translate(-50%, -50%);
        position: absolute;
        top: 50%;
        left: 50%;
        border: 1px #C2BFB8 solid;
    }

    .k-card {
        border-radius: 10px;
    }

    .k-card-body {
        padding: 0px 42px 30px 42px;
    }

    .logo {
        padding: 4.5rem 5.5rem 4.5rem 5.5rem;
        height: 13.5rem;
    }
}

.k-button {
    text-transform: none;
    font-weight: bold;
    font-family: Arial;
}

.k-floating-label-container > .k-label {
    font-size: 14px;
    font-family: arial;
}

label.k-label {
    color: rgba(0,0,0,0.54);
    font-size: 10.5px;
    font-family: arial;
    transform: scale(.75);
    margin-bottom: 0px;
    margin: 4px;
    transform-origin: left bottom;
}

.k-textbox {
    border-bottom-color: transparent !important;
    font-size: 12px;
    border-radius: 8px;
    background-color: #F6FAFD;
    border-width: 2px;
    border-color: transparent;
}

    .k-textbox:focus-within {
        border-color: #00bcd4 !important;
        border-width: 2px;
        border-radius: 8px;
        box-shadow: none;
    }

    .k-textbox:hover, .k-textbox.k-state-hover {
        border-color: transparent;
    }

input.k-textbox {
    padding: 8px 4px;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    background-color: #F6FAFD !important;
    -webkit-box-shadow: 0 0 0px 1000px #F6FAFD inset;
}

#blazor-error-ui.custom-error-overlay {
    display: none; /* Blazor will automatically change this to display: block on error */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.75); /* Darkens the background */
    backdrop-filter: blur(4px); /* Blurs the app behind it */
    z-index: 100000; /* Ensures it sits on top of everything */
    align-items: center;
    justify-content: center;
}

/* Overriding Blazor's default block behavior to use flex centering */
#blazor-error-ui[style*="display: block"] {
    display: flex !important;
}

/* The friendly modal box container */
.error-content-box {
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 450px;
    width: 90%;
    font-family: Arial, sans-serif;
}

    .error-content-box h2 {
        color: #333333;
        margin-top: 0;
        font-size: 24px;
    }

    .error-content-box p {
        color: #666666;
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 25px;
    }

/* Big, obvious call-to-action button */
.reload-btn {
    background-color: #0066cc; /* Adjust to match your Lexel branding */
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .reload-btn:hover {
        background-color: #004c99;
    }