﻿:root {
    /* Brand Colors */
    --brand-red: #C13636;
    --brand-red-glow: rgba(193, 54, 54, 0.15);
    --input-border: #cbd5e1;
    --input-focus: #94a3b8;
    --card-bg: #ffffff;
    --body-bg: #f1f5f9;

    /* Typography - Enterprise Standard */
    --font-family: "Segoe UI", Arial, sans-serif;
    /* Responsive scaling: ~1.0rem at 1024px, ~0.875rem at 1920px */
    --form-font-size: clamp(0.6525rem, calc(1.124rem - 0.014vw), 0.80rem);
    --form-control-height: 32px;
    --button-height: 32px;
    --control-text-padding-x: 0.35rem;
    --control-text-padding-y: 0.15rem;
    --control-text-line-height: 1.2;
    --control-margin-bottom: 0.08rem;


    --font-size-small: 0.75rem;
    --font-size-large: 1.125rem;
    --line-height: 1.5;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Control Heights - Enterprise Standard */
    --height-std: 36px;
    --height-compact: 32px;
    --height-large: 40px;
    --grid-row-height: 40px;

    /* Spacing & Borders */
    --border-radius: 4px;
    --padding-xs: 4px;
    --padding-sm: 8px;
    --padding-md: 12px;
    --padding-lg: 16px;
    --spacing: 1rem;

    /* Compatibility Variables (Mapping to new system) */
    --form-font-size: var(--font-size-base);
    --form-control-height: var(--height-std);
    --button-height: var(--height-std);
    --card-padding: var(--padding-lg);
    --form-gap: var(--padding-sm);
    --form-font-weight: var(--font-weight-medium);
    --form-font-color: #475569;

        --rz-form-field-label-floating-top:-0.75rem;
        --rz-form-field-label-textarea-top:-0.75rem;
}

html, body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height);
    background-color: var(--body-bg);
}

/* Ensure ALL controls inherit the same font */
body, div, span, label, input, textarea, select, button, 
[type="checkbox"], [type="radio"], .rz-tabview, .rz-datagrid, 
.rz-autocomplete, .rz-spinner, .rz-html-editor, .rz-dialog, 
.rz-navigation-menu, .rz-dropdown-panel, .rz-menu, .rz-grid-table {
    font-family: inherit;
    font-size: inherit;
}
body .rz-header{
    background-color:transparent;
}

body .rz-state-disabled .rz-form-field-content>.rz-form-field-label
 {
    color: #414a4c !important;
    background-color: #f3f4f6 !important;
}

body .rz-form-field-label,
body .rz-text,
body .rz-dropdown-label,
body .rz-tabview-nav li .rz-tabview-nav-link,
body .rz-grid-table thead th,
body .rz-data-row td,
body .rz-dropdown-item,
body .rz-autocomplete-item,
body .rz-dialog-title,
body .rz-navigation-item-link {
    font-family: inherit;
    font-size: var(--form-font-size);
    line-height: var(--line-height);
}

body .rz-menuitem, .rz-autocomplete-list-item, .rz-multiselect-item, .rz-autocomplete-items li, .rz-dropdown-items li, .rz-multiselect-items li, .rz-dropdown-item
 {
    padding: var(--rz-dropdown-item-padding);
    transition: var(--rz-dropdown-item-transition);
    cursor: default;
    /* font-size: var(--rz-dropdown-item-font-size); */
}

/* Spinning animation for processing indicator */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

    /* CSS for Disabled components */
    body .rz-state-disabled,
    body .rz-disabled,
    body input:disabled,
    body textarea:disabled,
    body select:disabled {
        background-color: #f3f4f6 !important;
        color: #6b7280 !important;
        border-color: #d1d5db !important;
        cursor: not-allowed !important;
        opacity: 1 !important;
    }
/*****************************/

/*** CSS for Required Fields ***/
/*.isRequiredField,
.isRequiredField {
    border: 1.5px solid #dc2626 !important;
    box-shadow: 0 0 0 1px #dc2626 !important;
}
*/
    body .rz-form-field-label {
        color: #334155 !important;
        text-decoration: none;
        font-size: var(--form-font-size) !important;
        font-weight: var(--font-weight-medium) !important;
    }

body .rz-form-field.isRequiredField .rz-label,
body .rz-form-field:has(.isRequiredField) .rz-form-field-label,
body .rz-stack:has(> .isRequiredField) > .rz-form-field-label {
    color: #dc2626 !important;
    font-weight: bold;
}
/*********************************/

.topbar__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mainnav {
    flex: 1 1 auto;
}

.topbar,
.topbar .mainnav__button,
.topbar .mainnav__link,
.topbar .mega-menu__link,
.topbar .dropdown-menu__link,
.current-branch-label,
.current-branch-label__text {
    font-family: var(--font-family) !important;
    font-size: var(--form-font-size) !important;
    line-height: var(--line-height);
}

.logout-link {
    margin-left: auto;
    border: 0;
    right: 0;
    background: transparent;
    color: var(--brand-red);
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
}

    .logout-link:hover {
        background: rgba(255,255,255,0.12);
    }

/* --- High-End Global Overrides --- */
/* (Variables Moved to System Root) */


/* 1. Main Page Layout - Professional Neutral Background - Solid, not gradient to avoid blur */
body .rz-layout {
    background-color: #f5f7fa !important; /* Solid soft blue-gray - no gradient blur */
}

/* 2. Elevated Form Cards - Clean White with Professional Shadow */
body .rz-card.rz-variant-flat {
    border-radius: 12px !important;
    border: 1px solid #e8ecf1 !important;
    background: #ffffff !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04) !important;
    padding: var(--card-padding) !important;
    margin-bottom: 0.2rem !important;
}

/* Modern form input section - Clean with subtle shadow */
body .rz-card.rz-variant-outlined {
    border-radius: 10px !important;
    border: 1px solid #e8ecf1 !important;
    background: #ffffff !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
    padding: var(--card-padding) !important;
    margin-top: 0.15rem !important;
}


/* 5. Buttons (Add, Save, etc.) */
body .rz-button {
    border-radius: var(--border-radius) !important;
    font-weight: 600 !important;
    height: var(--button-height) !important;
    min-height: var(--button-height) !important;
    font-size: var(--form-font-size) !important;
    padding: 0.25rem 0.75rem !important;
    box-shadow: 0 2px 6px rgba(0, 210, 255, 0.1) !important;
    transition: all 0.2s ease !important;
}

    body .rz-button::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%) !important;
        border-radius: 10px !important;
        pointer-events: none !important;
    }

    body .rz-button:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 18px rgba(97, 144, 232, 0.2) !important;
    }

    body .rz-button:active {
        transform: translateY(0) !important;
    }

/* 6. Modern Grid Overrides */
body .rz-datagrid {
    border: none !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(97, 144, 232, 0.08) !important;
}

body .rz-tabview-panel{padding:.25rem !important}

body .rz-grid-table thead th {
    background: linear-gradient(to right, rgb(97, 144, 232), rgb(167, 191, 232)) !important;
    padding: clamp(0.25rem, 0.5vw + 0.2rem, 0.5rem) !important;
    border-bottom: 2px solid rgba(97, 144, 232, 0.3) !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    font-size: var(--form-font-size) !important;
}

body .rz-data-row td {
    padding: clamp(0.35rem, 0.75vw + 0.25rem, 0.75rem) clamp(0.5rem, 1vw + 0.35rem, 1rem) !important;
    border-bottom: 1px solid rgba(116, 235, 213, 0.15) !important;
    font-size: var(--form-font-size) !important;
}

body .rz-data-row:hover td {
    background: linear-gradient(to right, rgba(116, 235, 213, 0.05), rgba(172, 182, 229, 0.03)) !important;
}

/* 7. Action Bar Adjustments with Turquoise to Honey Dew Gradient */
.master-header-wrapper {
    background: linear-gradient(to right, rgb(67, 198, 172), rgb(248, 255, 174)) !important;
    ;
}

.action-bar-container {
    border-radius: 12px;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(67, 198, 172, 0.3);
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(67, 198, 172, 0.15);
    color: #2d3748;
}

/* Modern header styling with gradient */
body .rz-card.rz-variant-flat:first-of-type {
    background: linear-gradient(to right, rgb(67, 198, 172), rgb(248, 255, 174)) !important;
    border-bottom: 2px solid rgba(97, 144, 232, 0.5) !important;
    border-radius: 12px 12px 0 0 !important;
    box-shadow: 0 8px 16px rgba(97, 144, 232, 0.15) !important;
}

body .rz-main,
body .rz-body {
    padding-top: 0 !important; /* Removes the large gap at the top of the layout */
}

/* ========================================
   MODERN ENTERPRISE GRID STYLING
   ======================================== */

/* Modern Grid Container with Shadow and Border Radius */
.modern-grid-container {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e8ecf1;
}

/* Modern Enterprise Grid - Flat Professional Header */
.modern-enterprise-grid .rz-grid-table thead th {
    background: #f8f9fa !important;
    background-image: none !important; /* Remove any gradient */
    color: #1e293b !important;
    font-weight: 600 !important;
    font-size: clamp(0.70rem, 0.5vw + 0.65rem, 0.825rem) !important;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    padding: clamp(0.35rem, 0.75vw + 0.25rem, 0.65rem) clamp(0.25rem, 0.5vw + 0.2rem, 0.5rem) !important;
    border-bottom: 2px solid #e2e8f0 !important;
}

/* Alternating Row Color - Very Subtle Gray */
.modern-enterprise-grid .rz-data-row:nth-child(even) td {
    background-color: #f9fafb !important;
}

.modern-enterprise-grid .rz-data-row:nth-child(odd) td {
    background-color: #ffffff !important;
}

/* Row Hover State */
.modern-enterprise-grid .rz-data-row:hover td {
    background-color: #f1f5f9 !important;
}

/* Increased Cell Padding for Compact Density */
.modern-enterprise-grid .rz-data-row td {
    padding: clamp(0.35rem, 0.75vw + 0.25rem, 0.65rem) clamp(0.5rem, 1vw + 0.35rem, 0.75rem) !important;
    border-bottom: 1px solid #e8ecf1 !important;
    font-size: clamp(0.70rem, 0.5vw + 0.65rem, 0.825rem);
    color: #334155;
}

/* Employee Name Column - Bolder Font */
.modern-enterprise-grid .employee-name-text {
    font-weight: 600;
    color: #0f172a;
}

/* Text Truncation for Customer and Location */
.modern-enterprise-grid .rz-text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    max-width: 100%;
}

/* Checkbox Column Styling - Smaller and Centered */
.modern-enterprise-grid .checkbox-column {
    text-align: center;
    vertical-align: middle;
}

.modern-enterprise-grid .compact-checkbox {
    transform: scale(0.9);
}

/* Filter Icon Styling */
.modern-enterprise-grid .rz-grid-header .rz-column-filter-icon {
    color: #64748b;
}

.modern-enterprise-grid .rz-grid-header .rz-column-filter-icon:hover {
    color: #334155;
}

/* Pager Styling */
.modern-enterprise-grid .rz-pager {
    padding: clamp(0.35rem, 0.75vw + 0.25rem, 0.65rem) clamp(0.75rem, 1.5vw + 0.5rem, 1rem);
    background-color: #f8f9fa;
    border-top: 1px solid #e2e8f0;
}

.modern-enterprise-grid .rz-paginator-element {
    color: #475569;
    font-weight: 500;
    font-size: var(--form-font-size);
}

/* Remove old grid gradient styles for modern grids */
.modern-enterprise-grid .rz-grid-table thead th::before,
.modern-enterprise-grid .rz-grid-table thead th::after {
    display: none !important;
}

/* Frozen Column Styling */
.modern-enterprise-grid .rz-frozen-cell {
    background-color: inherit !important;
    box-shadow: 2px 0 4px rgba(15, 23, 42, 0.06);
}

.modern-enterprise-grid .rz-numeric-button{
    padding: 0.20rem 0 !important;
    min-height: 0 !important;
}

/* Target the header cell content */
body .rz-column-title {
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.2; /* Adjust spacing between wrapped lines */
}

/* Optional: Ensure the header has enough height to show multiple lines */
body .rz-grid-table thead th {
    height: auto !important;
    vertical-align: top;
}

/* ======================================== */

body .rz-content {
    padding-top: 0.15rem !important; /* Tightens the main content area */
}

body .rz-card.rz-variant-flat:first-of-type {
    margin-top: 0 !important;
    padding-top: 0.2rem !important;
    padding-bottom: 0.2rem !important;
}

.rz-stack.rz-mb-2 {
    margin-bottom: 0.15rem !important;
}

/* ===== MODERN COMPACT FORM LAYOUT ===== */
body .rz-card.rz-variant-outlined .rz-row {
    padding: 0 0 0 clamp(0.2rem, 0.4vw + 0.15rem, 0.35rem);
    margin-bottom: 0.1rem !important;
}

body .rz-card.rz-variant-outlined .rz-col {
    margin-bottom: 0 !important;
}

body .rz-card.rz-variant-outlined .rz-stack {
    gap: 0.1rem !important;
}

body .rz-templateform .rz-row {
    gap: var(--form-gap) !important;
    column-gap: clamp(0.25rem, 0.5vw + 0.2rem, 0.65rem) !important;
    margin-bottom: 0.1rem !important;
}

body .form-stack-gap {
    gap: 0.1rem !important;
    column-gap: 0.25rem !important;
}

body .form-row-gap {
    gap: 0.1rem !important;
    column-gap: 0.25rem !important;
}

body .rz-templateform .rz-col {
    margin-bottom: 0 !important;
}

body .rz-templateform .rz-stack {
    gap: 0.1rem !important;
}

body .rz-templateform {
    background: linear-gradient(to right, rgb(67, 198, 172), rgb(248, 255, 174)) !important;
    border-radius: 10px !important;
    padding: clamp(0.25rem, 0.5vw + 0.15rem, 0.35rem) !important;
    margin-bottom: 0.1rem !important;
}

body .rz-form-field input,
body .rz-form-field textarea,
body .rz-form-field .rz-autocomplete,
body .rz-form-field .rz-dropdown,
body .rz-form-field .rz-datepicker,
body .rz-form-field .rz-numeric {
    width: 100% !important;
}

body .rz-form-field input,
body .rz-form-field textarea,
body .rz-form-field .rz-inputtext,
body .rz-form-field .rz-autocomplete,
body .rz-form-field .rz-dropdown,
body .rz-form-field .rz-datepicker,
body .rz-form-field .rz-numeric {
    min-height: var(--form-control-height) !important;
    height: var(--form-control-height) !important;
    color: black !important;
    font-size: var(--form-font-size) !important;
    line-height: 1.2 !important;
    font-family: inherit;
}

/*body .rz-timespanpicker > .rz-inputtext,
body .rz-colorpicker, body .rz-lookup-search input,
body .rz-numeric, body .rz-datepicker > .rz-inputtext,
body .rz-multiselect,
body .rz-dropdown, .mask,
body .rz-autocomplete
body .rz-textarea, body .rz-textbox {
    height: var(--rz-input-height);
    font-family: inherit;
    font-size: var(--rz-input-font-size);
    transition: var(--rz-input-transition);
    color: #334155 !important;
}*/

body .rz-form-field input,
body .rz-form-field textarea,
body .rz-form-field .rz-inputtext {
    padding-top: clamp(0.2rem, 0.4vw + 0.15rem, 0.3rem) !important;
    padding-bottom: clamp(0.2rem, 0.4vw + 0.15rem, 0.3rem) !important;
    padding-left: clamp(0.4rem, 0.75vw + 0.3rem, 0.6rem) !important;
    padding-right: clamp(0.4rem, 0.75vw + 0.3rem, 0.6rem) !important;
}

body .rz-form-field {
    width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 0.08rem !important;
}

body .rz-form-field-content{
    border-radius: var(--border-radius) !important;
}

/* Fix DatePicker icon clipping and position */
body .rz-datepicker {
    overflow: visible !important;
}

body .rz-datepicker .rz-datepicker-trigger {
    right: 10px !important;
    padding: 0 !important;
    background: transparent !important;
}

body .rz-datepicker .rz-button:hover {
    transform: translateY(-10px) !important;
}


body .rz-datepicker .rz-inputtext {
    padding-right: 2.5rem !important;
}

body .rz-form-field-label {
    font-size: var(--form-font-size) !important;
    margin-bottom: 0.08rem !important;
}

body .rz-form-field-content .rz-text-caption,
body .rz-form-field-content input[type="file"],
body .rz-form-field-content .rz-text-body2 {
    padding-block: var(--rz-input-padding-block) !important;
    padding-inline: var(--rz-input-padding-inline) !important;
}

body .rz-stack:has(> .rz-chkbox):has(> .rz-label) {
    width: 100% !important;
    min-height: var(--form-control-height) !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: clamp(0.35rem, 0.75vw + 0.25rem, 0.65rem) !important;
    padding: clamp(0.3rem, 0.6vw + 0.2rem, 0.55rem) clamp(0.5rem, 1vw + 0.35rem, 0.85rem) !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03) !important;
}

body .rz-stack:has(> .rz-chkbox):has(> .rz-label) > .rz-label {
    margin: 0 !important;
    padding: 0 !important;
    color: #334155 !important;
    font-size: var(--form-font-size) !important;
    font-weight: 500 !important;
    white-space: nowrap;
}

body .rz-stack:has(> .rz-chkbox):has(> .rz-label) > .rz-chkbox {
    flex-shrink: 0 !important;
}

body .rz-stack:has(> .rz-chkbox):has(> .rz-label) .rz-chkbox-box {
    width: clamp(2rem, 2vw + 1.75rem, 2.5rem) !important;
    height: clamp(1.1rem, 1.25vw + 0.95rem, 1.4rem) !important;
    border-radius: 9999px !important;
    border: 1px solid #cbd5e1 !important;
    background-color: #e2e8f0 !important;
    background-image: none !important;
    box-shadow: none !important;
    position: relative !important;
}

body .rz-stack:has(> .rz-chkbox):has(> .rz-label) .rz-chkbox-box::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 2px;
    width: clamp(0.8rem, 1vw + 0.7rem, 1rem);
    height: clamp(0.8rem, 1vw + 0.7rem, 1rem);
    border-radius: 50%;
    background-color: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.3);
    transform: translateY(-50%);
    transition: transform 0.2s ease;
}

body .rz-stack:has(> .rz-chkbox):has(> .rz-label) .rz-chkbox-box.rz-state-active {
    background-color: #3b82f6 !important;
    border-color: #3b82f6 !important;
}

body .rz-stack:has(> .rz-chkbox):has(> .rz-label) .rz-chkbox-box.rz-state-active::before {
    transform: translate(1.1rem, -50%);
}


    body .rz-form-field .rz-icon,
    body .rz-form-field .rzi,
    body .rz-form-field .rz-button-icon-left,
    body .rz-form-field .rz-button-icon-right {
        font-size: clamp(0.9rem, 1vw + 0.8rem, 1.1rem) !important;
        width: clamp(1.4rem, 1.5vw + 1.2rem, 1.75rem) !important;
        height: clamp(1.4rem, 1.5vw + 1.2rem, 1.75rem) !important;
        min-width: clamp(1.4rem, 1.5vw + 1.2rem, 1.75rem) !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    body .rz-card.rz-variant-outlined .rz-label,
    body .rz-templateform .rz-label {
        margin: clamp(0.25rem, 0.5vw + 0.2rem, 0.35rem) 0 clamp(-0.3rem, -0.4vw - 0.25rem, -0.2rem) 0 !important;
        padding-left: clamp(0.15rem, 0.3vw + 0.1rem, 0.25rem) !important;
        font-size: var(--form-font-size) !important;
    }

.modern-form-section {
    border-radius: 10px !important;
    border: 1.5px solid rgba(116, 235, 213, 0.3) !important;
    background: linear-gradient(135deg, #ffffff 0%, rgba(116, 235, 213, 0.05) 50%, rgba(172, 182, 229, 0.03) 100%) !important;
    box-shadow: 0 4px 12px rgba(116, 235, 213, 0.08) !important;
    padding: clamp(0.6rem, 1.2vw + 0.4rem, 1.2rem) !important;
}

body .rz-card.rz-variant-outlined {
    padding: clamp(0.4rem, 0.8vw + 0.3rem, 0.75rem) !important;
}

    /* ===== SECTION HEADER STYLING WITH GRADIENTS ===== */
    body .rz-card.rz-variant-outlined .rz-text,
    .rz-text[textstyle="Subtitle2"] {
        background: linear-gradient(to right, rgb(67, 198, 172), rgb(97, 144, 232)) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
        font-weight: 700 !important;
    }

hr {
    margin: 0.2rem 0 !important;
    border: none !important;
    height: 1px !important;
    background: linear-gradient(to right, rgba(116, 235, 213, 0.3), rgba(172, 182, 229, 0.1)) !important;
}


/* ===== GENERIC BUTTON SIZE MATCHING ACTION BAR ===== */
.action-history-btn,
.action-search-btn,
.action-bar-size-btn {
    height: var(--height-large) !important;
    padding: 0 var(--padding-md) !important;
    border-radius: var(--border-radius) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: var(--padding-sm) !important;
}

    .action-history-btn .rz-button-text,
    .action-search-btn .rz-button-text,
    .action-bar-size-btn .rz-button-text {
        font-weight: 600 !important;
        font-size: var(--form-font-size) !important;
    }

    .action-history-btn .rz-icon,
    .action-search-btn .rz-icon,
    .action-bar-size-btn .rz-icon {
        font-size: 1.1rem !important;
    }

hr {
    margin: 10px 0 !important;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

h1:focus {
    outline: none;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOS41Mjk1IDI2Ni4xMTYgOTMuNTI5NSAyNjcuMzg3IDkyLjI4MzcgMjY3LjM4NyA4OS43OTIxIDI2Ny4zODcgODcuMzAwNSAyNjYuMTE2IDg2LjA1NDcgMjYzLjU3NiA4Ni4wNTQ3WiIgZmlsbD0iI0ZGRTUwMCIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9nPjwvc3ZnPg==) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }

.rz-layout,
.rz-body,
.rz-sidebar,
.rz-header {
    font-family: var(--font-family);
}

.rz-body {
    padding: 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.metric-title {
    color: #64748B;
    font-size: 0.9rem;
}

.metric-value {
    font-size: 1.65rem;
    font-weight: 700;
    margin-top: 0.4rem;
}

.bis-section {
    margin-bottom: 2rem;
}

.bis-button-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.bis-button.rz-button {
    border-radius: 8px;
    min-width: 110px;
    font-weight: 600;
}

.bis-dropdown,
.bis-radio-group {
    min-width: 280px;
}

.bis-grid {
    border: 1px solid #d9e1ec;
    border-radius: 12px;
    overflow: hidden;
}

    .bis-grid .rz-datatable-thead th {
        background-color: #f3f6fb;
        color: #1e334d;
        font-weight: 600;
    }

.bis-html-table-wrapper {
    border: 1px solid #d9e1ec;
    border-radius: 12px;
    overflow-x: auto;
}

.bis-html-table {
    width: 100%;
    border-collapse: collapse;
}

    .bis-html-table th,
    .bis-html-table td {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #e7edf5;
        text-align: left;
    }

    .bis-html-table thead {
        background-color: #f3f6fb;
        color: #1e334d;
    }

.bis-empty-row {
    text-align: center;
    color: #5b6c80;
}

/* Custom Circular Action Button */
.btn-edit-circle {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    background-color: #f8fafc !important;
    color: #64748b !important;
    border: 1px solid #e2e8f0 !important;
    transition: all 0.2s ease-in-out !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

    .btn-edit-circle:hover {
        background-color: var(--brand-red) !important;
        color: #ffffff !important;
        border-color: var(--brand-red) !important;
        transform: translateY(-2px);
    }

    .btn-edit-circle .rz-button-icon-left {
        margin: 0 !important;
        font-size: 18px !important;
    }

/********************/
.master-header-wrapper {
    width: 100%;
    background-color: #ffffff;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
    z-index: 5;
}

.master-form-action-bar {
    background: linear-gradient(to right, rgb(67, 198, 172), rgb(248, 255, 174)) !important;
    border-bottom: 2px solid rgba(97, 144, 232, 0.5) !important;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 8px 16px rgba(97, 144, 232, 0.12);
    overflow: hidden;
}

.master-header-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(0.4rem, 0.8vw + 0.3rem, 0.75rem);
    width: 100%;
    padding: clamp(0.35rem, 0.7vw + 0.25rem, 0.55rem) clamp(0.5rem, 1vw + 0.35rem, 0.75rem);
    flex-wrap: nowrap;
    min-width: 0;
}

.master-header-title {
    display: flex;
    align-items: center;
    gap: clamp(0.4rem, 0.8vw + 0.3rem, 0.75rem);
    flex: 0 1 clamp(200px, 25vw, 280px);
    min-width: 0;
}

.master-header-title-icon {
    width: clamp(24px, 4vw + 25px, 32px);
    height: clamp(24px, 4vw + 25px, 32px);
    border-radius: clamp(6px, 0.75vw + 5px, 10px);
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.master-header-title-icon .rz-icon {
    font-size: clamp(1rem, 1.5vw + 0.8rem, 1.35rem);
}

.master-header-title-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.1;
}

.master-header-title-main {
    font-weight: 700;
    font-size: clamp(0.75rem, 1.2vw + 0.6rem, 1rem);
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.master-header-title-sub {
    color: rgba(255, 255, 255, 0.86);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: clamp(0.65rem, 1vw + 0.5rem, 0.85rem);
}

.master-header-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
    overflow: hidden;
}

.master-header-extra-actions {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.master-header-status {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    flex: 0 0 auto;
    min-width: 0;
}

.master-header-status-text {
    font-weight: 600;
    white-space: nowrap;
}

.header-section-border {
    border-right: 1px solid #e2e8f0;
}

.action-btn-modern {
    height: clamp(32px, 3.5vw + 25px, 42px) !important;
    padding: 0 clamp(8px, 1.5vw + 5px, 14px) !important;
    border-radius: clamp(6px, 0.75vw + 5px, 10px) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    transition: all 0.2s ease-in-out !important;
    font-size: var(--form-font-size) !important;
}

.action-btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.3rem, 0.6vw + 0.2rem, 0.5rem);
    min-width: 0;
}

.action-btn-icon {
    flex: 0 0 auto;
    font-size: clamp(0.85rem, 1.3vw + 0.65rem, 1.05rem);
}

.action-btn-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
    min-width: 0;
}

.action-btn-label {
    font-size: var(--form-font-size);
    font-weight: 800;
}

.action-btn-label-short {
    display: none;
}

.action-btn-shortcut {
    font-size: var(--form-font-size);
    opacity: 0.7;
    font-weight: 400;
    letter-spacing: 0.04em;
}

/* 1200px and up: premium full labels */
@media (min-width: 1200px) {
    .action-btn-modern {
        padding: 0 16px !important;
    }

    .action-btn-label-full,
    .action-btn-shortcut {
        display: inline-block;
    }

    .action-btn-label-short {
        display: none;
    }
}

/* 900px - 1199px: compact labels, slightly tighter buttons */
@media (min-width: 900px) and (max-width: 1199.98px) {
    .master-header-layout {
        padding: 0.45rem 0.6rem;
        gap: 0.5rem;
    }

    .master-header-title {
        flex-basis: 240px;
    }

    .action-btn-modern {
        height: 38px !important;
        padding: 0 10px !important;
    }

    .action-btn-icon {
        font-size: 0.98rem;
    }

    .action-btn-label,
    .action-btn-shortcut {
        font-size: 0.66rem;
    }
}

/* 700px - 899px: icon + short text, shortcut hidden */
@media (min-width: 700px) and (max-width: 899.98px) {
    .master-header-layout {
        padding: 0.4rem 0.5rem;
        gap: 0.45rem;
    }

    .master-header-title {
        flex-basis: 220px;
    }

    .master-header-title-sub,
    .master-header-status-text {
        display: none;
    }

    .action-btn-modern {
        height: 36px !important;
        padding: 0 9px !important;
    }

    .action-btn-copy {
        gap: 0;
    }

    .action-btn-label-full {
        display: none;
    }

    .action-btn-label-short {
        display: inline-block;
    }

    .action-btn-shortcut {
        display: none;
    }
}

/* below 700px: icon only, tooltip carries the text/shortcut */
@media (max-width: 699.98px) {
    .master-header-layout {
        padding: 0.35rem 0.45rem;
        gap: 0.35rem;
    }

    .master-header-title {
        flex-basis: auto;
        gap: 0.55rem;
    }

    .master-header-title-sub,
    .master-header-status-text,
    .action-btn-copy {
        display: none !important;
    }

    .action-btn-modern {
        width: 42px !important;
        min-width: 42px !important;
        padding: 0 !important;
    }

    .action-btn-content {
        gap: 0;
    }

    .action-btn-icon {
        font-size: 1.05rem;
    }
}

.search-mode-btn {
    border-radius: 20px !important;
    font-size: var(--form-font-size) !important;
    font-weight: 700 !important;
}

.btn-delete.rz-button-danger {
    background-color: var(--brand-red) !important;
}

/****** Search section on page expand collapse */

body .rz-card.rz-variant-flat:first-of-type.search-card {
    padding-top: 0 !important;
}

body .rz-card.rz-variant-flat.search-card {
    padding: 0 !important;
    margin-bottom: 0 !important;
}

.page-shell {
    position: relative;
    min-height: calc(100vh - 120px);
}

.form-panel {
    position: relative;
    z-index: 1;
}

.list-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background: #fff;
    border-left: 1px solid #dcdcdc;
    box-shadow: -10px 20px 6px 0px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, width 0.25s ease;
}

    .list-panel.normal {
        width: 25%;
        min-width: 250px;
    }

    .list-panel.wide {
        width: 50%;
        min-width: 300px;
    }

    .list-panel.open {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    .list-panel.closed {
        transform: translateX(100%);
        opacity: 0;
        pointer-events: none;
    }

.list-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #e9e9e9;
    background: #fafafa;
    min-height: 42px;
}

.list-panel-body {
    flex: 1;
    overflow: hidden;
    padding: 0.10rem;
    min-height: 0;
}

.full-search-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
}

.grid-wrapper {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

    .grid-wrapper .rz-datatable,
    .grid-wrapper .rz-data-grid,
    .grid-wrapper .rz-grid-table {
        width: 100%;
    }

    .grid-wrapper > * {
        flex: 1;
        min-height: 0;
    }

.panel-title {
    font-size: var(--form-font-size);
    font-weight: 600;
    line-height: 1.1;
}

.panel-subtitle {
    font-size: var(--form-font-size);
    color: #777;
    margin-top: 2px;
}

.panel-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.panel-icon-btn {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    padding: 0 !important;
    border-radius: 6px !important;
}

    .panel-icon-btn .rzi {
        font-size: 16px !important;
    }

.search-card {
    height: 100%;
}

.grid-state {
    display: flex;
    min-height: 220px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #666;
}

.floating-open-button {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 60;
}

.floating-open-button .rz-button {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    padding: 0 !important;
    border-radius: 9999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.floating-open-button .rz-button .rz-button-text {
    display: none !important;
}

.floating-open-button .rz-button .rz-icon,
.floating-open-button .rz-button .rzi {
    font-size: 1.5rem !important;
}

@media (max-width: 1199px) {
    body .rz-card.rz-variant-outlined .rz-row,
    body .rz-templateform .rz-row {
        display: flex !important;
        flex-wrap: wrap !important;
        row-gap: 0.6rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

        body .rz-card.rz-variant-outlined .rz-row > [class*="rz-col"],
        body .rz-templateform .rz-row > [class*="rz-col"] {
            /* Snaps to 2 columns on 800px screens, wraps nicely on others */
            min-width: 210px !important;
            flex-grow: 1 !important;
            flex-basis: 0 !important;
            max-width: 100% !important;
            padding-left: 5px !important;
            padding-right: 5px !important;
        }

    .list-panel.normal {
        width: 25%;
    }

    .list-panel.wide {
        width: 50%;
    }
}

@media (max-width: 992px) {
    .list-panel.normal,
    .list-panel.wide {
        width: 85%;
        min-width: unset;
    }
}

/***********************/

/* ====== GRID CONTAINER ====== */
.search-card.full-search-card {
    border-radius: 12px;
    border: 1px solid #eef0f4;
    border-radius: 12px;
    box-shadow: -25px 15px 10px 10px rgba(0,0,0,0.08);
    border: 1px solid #eef0f4;
    background: linear-gradient(to bottom, #ffffff, #fafafa);
}

/* ====== GRID BASE ====== */
.compact-grid {
    font-size: var(--form-font-size);
    color: #2c3e50;
}

    /* ====== HEADER ====== */
    .compact-grid .rz-grid-table thead {
        background: #f8fafc;
        border-bottom: 1px solid #e5e7eb;
    }

        .compact-grid .rz-grid-table thead th {
            font-size: var(--form-font-size);
            font-weight: 600;
            height: 30px !important;
        }

            .compact-grid .rz-grid-table thead th > div {
                padding: 0 !important;
            }

    .compact-grid th .rz-column-title {
        line-height: 20px !important;
        display: flex;
        align-items: center;


    }

    .compact-grid .rz-header-cell-content {
        padding: 0 !important;
    }

    /* ====== ROWS ====== */
    .compact-grid .rz-grid-table tbody tr {
        height: 42px !important;
        transition: all 0.2s ease;
    }

    .compact-grid .rz-data-row,
    .compact-grid .rz-grid-table tbody tr {
        height: 20px !important;
    }

        .compact-grid .rz-grid-table tbody tr:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 10px rgba(0,0,0,0.06);
        }

    .compact-grid .rz-pager-item {
        box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    }

        .compact-grid .rz-pager-item.rz-state-active {
            box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3), inset 0 -1px 0 rgba(0,0,0,0.1);
        }

    .compact-grid .rz-cell-data {
        padding: 0 !important;
    }

    .compact-grid .rz-button.grid-action-btn {
        width: 18px !important;
        height: 18px !important;
        min-width: 18px !important;
        padding: 0 !important;
    }

    .compact-grid .rz-badge {
        border-radius: 6px;
        padding: 3px 8px;
        font-size: 11px;
        line-height: 1.1 !important;
    }

    .compact-grid .rz-datatable-pager-summary {
        float: left;
        margin-left: 10px;
        font-size: 12px !important;
        opacity: 0.7;
        order: 1;
    }

    .compact-grid .rz-grid-table tbody tr:nth-child(even) td {
        background-color: #d8e1ed !important;
    }

    .compact-grid .rz-grid-table tbody tr:hover td {
        background-color: deepskyblue !important;
    }

    .compact-grid .rz-state-highlight td {
        background-color: lightgrey !important;
    }

    /* ====== CELLS ====== */
    .compact-grid .rz-grid-table tbody td {
        padding: 8px 12px !important;
        font-size: var(--form-font-size);
    }

    /* ====== INPUTS ====== */
    .compact-grid .rz-inputtext,
    .compact-grid .rz-dropdown {
        height: 34px !important;
        border-radius: 6px;
    }

    /* ====== ACTION BUTTON ====== */
    .compact-grid .grid-action-btn {
        width: 28px !important;
        height: 28px !important;
        border-radius: 6px;
    }

/* ====== GRID WRAPPER ====== */
.grid-wrapper {
    overflow: auto;
    font-family: var(--font-family);
    max-height: calc(100vh - 100px);
}

/* ====== FOOTER ====== */
.grid-footer-modern {
    display: flex;
    font-family: var(--font-family);
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    padding: 8px 6px;
    font-size: var(--form-font-size);
    border-top: 1px dotted lightgray;
    gap: 8px;
    width: 100%;
    min-height: 42px;
}

.footer-left {
    display: flex;
    align-items: center;
    margin: 0 10px;
    flex: 0 0 auto;
    order: 1;
}

.footer-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
    padding: 2px 4px;
    order: 2;
    flex-wrap: nowrap;
}

.footer-right {
    text-align: right;
    color: #6b7280;
    margin: 0 10px;
    flex: 0 0 auto;
    white-space: nowrap;
    order: 3;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .grid-footer-modern {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 6px 4px;
        gap: 6px;
    }

    .footer-left {
        justify-content: flex-start;
        margin: 4px 6px;
    }

    .footer-center {
        justify-content: flex-start;
        margin: 0;
        padding: 4px 6px;
        flex-wrap: wrap;
        gap: 4px;
    }

    .footer-right {
        justify-content: flex-start;
        text-align: left;
        margin: 4px 6px;
    }
}

/* ====== PAGER ====== */
.compact-grid .rz-pager {
    display: flex !important;
    justify-content: center;
    align-items: center;
    padding: 5px 6px;
    border-top: 1px dotted lightgray;
    gap: 4px;
    flex-wrap: nowrap;
    width: 100%;
    flex-direction: row;
}

.compact-grid .rz-pager-pages {
    display: flex;
    gap: 1px;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
}

/* ===== PAGE BUTTON ===== */
.compact-grid .rz-pager-item {
    min-width: clamp(20px, 3vw, 30px) !important;
    width: clamp(20px, 3vw, 30px) !important;
    height: clamp(20px, 3vw, 30px) !important;
    display: inline-flex !important;
    align-items: center;11  
    justify-content: center;
    border-radius: 50%;
    background: #dcdcdc;
    color: #000000 !important;
    font-size: clamp(12px, 1.2vw, 14px) !important;
    font-weight: 500;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0 !important;
    line-height: 1;
    vertical-align: middle;
}

    .compact-grid .rz-pager-item *,
    .compact-grid .rz-pager-item span {
        font-size: clamp(12px, 1.5vw, 15px) !important;
        line-height: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    }

    .compact-grid .rz-pager-item:hover {
        background: #c7d2fe;
    }

.compact-grid .rz-pager-element {
    min-height: clamp(28px, 2.5vw, 36px) !important;
    min-width: clamp(28px, 2.5vw, 36px) !important;
    height: clamp(28px, 2.5vw, 36px) !important;
    width: clamp(28px, 2.5vw, 36px) !important;
    flex-shrink: 0;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    line-height: 1;
}

    .compact-grid .rz-pager-element.rz-state-active {
        background: #2563eb !important;
        color: #ffffff !important;
        box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
    }

.compact-grid .rz-pager-nav-button {
    width: clamp(28px, 2.8vw, 36px) !important;
    height: clamp(28px, 2.8vw, 36px) !important;
    font-size: clamp(13px, 1.3vw, 16px) !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0 !important;
    border-radius: 50%;
    line-height: 1;
}

    .compact-grid .rz-pager-nav-button .rz-icon {
        font-size: clamp(14px, 1.5vw, 18px) !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .compact-grid .rz-pager-nav-button:hover {
        background: #eef2ff;
    }

/* ===== RESPONSIVE PAGER STYLES ===== */
@media (max-width: 768px) {
    /* Collapse mode small screens */
    .compact-grid .rz-pager {
        justify-content: center;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 2px;
        min-height: 44px;
    }

    .compact-grid .rz-pager-pages {
        justify-content: center;
        gap: 2px;
        flex-wrap: nowrap;
    }

    .compact-grid .rz-pager-item,
    .compact-grid .rz-pager-element {
        min-width: 32px !important;
        width: 32px !important;
        height: 32px !important;
        min-height: 32px !important;
        font-size: 12px !important;
        flex-shrink: 0;
    }

    .compact-grid .rz-pager-nav-button {
        width: 32px !important;
        height: 32px !important;
        font-size: 13px !important;
        flex-shrink: 0;
    }

    .grid-footer-modern {
        flex-wrap: nowrap;
        width: 100%;
        justify-content: center;
        gap: 4px;
    }

    .footer-center {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 2px;
    }
}

@media (max-width: 600px) {
    /* Medium tablets - tighter spacing */
    .compact-grid .rz-pager-pages {
        gap: 1px;
    }

    .footer-center {
        gap: 1px;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    .compact-grid .rz-pager {
        gap: 1px;
        justify-content: center;
        overflow-x: auto;
        min-height: 40px;
    }

    .compact-grid .rz-pager-pages {
        gap: 1px;
        flex-wrap: nowrap;
    }

    .compact-grid .rz-pager-item,
    .compact-grid .rz-pager-element {
        min-width: 28px !important;
        width: 28px !important;
        height: 28px !important;
        min-height: 28px !important;
        font-size: 11px !important;
        flex-shrink: 0;
    }

    .compact-grid .rz-pager-nav-button {
        width: 28px !important;
        height: 28px !important;
        font-size: 12px !important;
        flex-shrink: 0;
    }

    .grid-footer-modern {
        flex-wrap: nowrap;
        min-height: 40px;
        gap: 2px;
    }

    .footer-center {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 1px;
    }
}

/*************Notification CSS ********/
body .rz-notification {
    inset-block-start: auto !important;
    inset-block-end: 1.25rem !important;
    inset-inline-end: 1.25rem !important;
    left: auto !important;
    right: 1.25rem !important;
    transform: none !important;
    width: 35vw;
    min-width: 20rem;
    max-width: calc(100vw - 2rem);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
}

body .rz-notification-item-wrapper {
    width: 100% !important;
    min-width: 100% !important;
    margin: 0 !important;
}

body .rz-notification-item {
    border-radius: 16px !important;
    border: 1px solid rgba(148, 163, 184, 0.18) !important;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18) !important;
    padding: 1rem 1.1rem !important;
    backdrop-filter: blur(8px);
}

body .rz-notification-message-summary {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

body .rz-notification-message-detail {
    font-size: 0.9rem;
    line-height: 1.45;
    opacity: 0.96;
}

body .rz-notification-info .rz-notification-item {
    color: #1e3a5f !important;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
    border-inline-start: 5px solid #2563eb !important;
}

body .rz-notification-success .rz-notification-item {
    color: #0f5132 !important;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%) !important;
    border-inline-start: 5px solid #16a34a !important;
}

body .rz-notification-warn .rz-notification-item {
    color: #7c4a03 !important;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%) !important;
    border-inline-start: 5px solid #f59e0b !important;
}

body .rz-notification-error .rz-notification-item {
    color: #7f1d1d !important;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%) !important;
    border-inline-start: 5px solid #dc2626 !important;
}

body .rz-notification .rz-icon {
    font-size: 1.2rem !important;
}

body .rz-notification .rz-notification-close {
    opacity: 0.7;
}

    body .rz-notification .rz-notification-close:hover {
        opacity: 1;
    }

@media (max-width: 991.98px) {
    body .rz-notification {
        width: min(35vw, calc(100vw - 1.5rem));
        min-width: 18rem;
        inset-inline-end: 0.75rem !important;
        right: 0.75rem !important;
        inset-block-end: 0.75rem !important;
    }
}

@media (max-width: 640.98px) {
    body .rz-notification {
        width: calc(100vw - 1rem);
        min-width: 0;
        inset-inline-end: 0.5rem !important;
        right: 0.5rem !important;
        inset-block-end: 0.5rem !important;
    }
}


/* Tier 3 & 4 Combined — 1024px and below: stack label above input, kill padding */
@media (max-width: 1024px) {
    :root {
        /*--form-font-size: clamp(0.76rem, 0.1vw + 0.50rem, 0.65rem);*/
        --form-font-weight: 550;
        /*--form-control-height: clamp(1.75rem, 0.3vw + 1.65rem, 1.9rem);*/
    }
    /* 1. Completely remove left padding on rows for tight screens */
    body .rz-card.rz-variant-outlined .rz-row,
    body .rz-templateform .rz-row {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    /* 2. Reduce card padding to the absolute minimum */
    body .rz-card.rz-variant-outlined,
    .modern-form-section {
        padding: 0.5rem !important;
    }
    /* Force the grid to become a single column (vertical stack) with no left padding */
    body .rz-stack:has(> .rz-label):has(> :is(.rz-textbox, .rz-autocomplete, .rz-dropdown, .rz-datepicker, .rz-numeric, .rz-textarea)):not(:has(> .rz-chkbox)) {
        grid-template-columns: 1fr !important;
        row-gap: 0.15rem !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
        /* Reset the label and input to flow naturally in the new single column */
        body .rz-stack:has(> .rz-label):has(> :is(.rz-textbox, .rz-autocomplete, .rz-dropdown, .rz-datepicker, .rz-numeric, .rz-textarea)):not(:has(> .rz-chkbox)) > .rz-label,
        body .rz-stack:has(> .rz-label):has(> :is(.rz-textbox, .rz-autocomplete, .rz-dropdown, .rz-datepicker, .rz-numeric, .rz-textarea)):not(:has(> .rz-chkbox)) > :not(.rz-label) {
            grid-column: 1 !important;
            width: 100% !important;
        }
            /* Remove the appended colon since the label is now above the input */
            body .rz-stack:has(> .rz-label):has(> :is(.rz-textbox, .rz-autocomplete, .rz-dropdown, .rz-datepicker, .rz-numeric, .rz-textarea)):not(:has(> .rz-chkbox)) > .rz-label::after {
                content: "";
                margin-left: 0;
            }
}

/** ####################################################  */
/**** User Permission Grid **********/

.job-role-permission-page {
    position: relative;
}

    .job-role-permission-page::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 32%), radial-gradient(circle at top left, rgba(16, 185, 129, 0.08), transparent 28%);
        pointer-events: none;
    }

.permission-shell-card {
    position: relative;
    background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(248,250,252,0.98) 100%);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 1rem;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
    animation: permission-fade-in 0.45s ease-out;
    overflow: hidden;
}

.permission-filter-card,
.permission-grid-card {
    border-radius: 1rem;
    border-color: rgba(191, 219, 254, 0.9) !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

    .permission-filter-card:hover,
    .permission-grid-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 16px 34px rgba(15, 23, 42, 0.09);
    }

.permission-info-box {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1rem;
    border-radius: 0.9rem;
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
    animation: permission-fade-in 0.5s ease-out;
}

.permission-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
    flex-shrink: 0;
    animation: permission-pulse 2.8s ease-in-out infinite;
}

.permission-info-title {
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 0.15rem;
}

.permission-info-text {
    color: #475569;
    line-height: 1.45;
}

.permission-grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--rz-base-300);
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}

.permission-grid-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.permission-action-btn {
    border-radius: 0.75rem !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

    .permission-action-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 18px rgba(37, 99, 235, 0.12);
    }

.permission-module-badge {
    animation: permission-fade-in 0.55s ease-out;
}

.permission-grid-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.permission-grid-subtitle {
    font-size: 0.85rem;
    color: #64748b;
}

.permission-grid-wrapper {
    overflow-x: auto;
    animation: permission-slide-up 0.35s ease-out;
}

.permission-grid-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

    .permission-grid-table th,
    .permission-grid-table td {
        border: 1px solid #dbeafe;
        padding: 0.5rem;
        transition: background-color 0.2s ease, border-color 0.2s ease;
    }

    .permission-grid-table thead th {
        position: sticky;
        top: 0;
        z-index: 1;
        background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
        color: #fff;
        text-align: center;
        font-weight: 600;
        box-shadow: inset 0 -1px 0 rgba(255,255,255,0.15);
    }

        .permission-grid-table thead th:first-child {
            text-align: left;
        }

.permission-row {
    animation: permission-row-in 0.28s ease-out;
}

    .permission-row.permission-root-row td {
        background: linear-gradient(180deg, #dbeafe 0%, #eff6ff 100%);
        font-weight: 700;
        border-top: 2px solid #60a5fa;
    }

        .permission-row.permission-root-row td:first-child {
            border-left: 4px solid #2563eb;
        }

    .permission-row.permission-child-row td {
        background: #f9fafb;
    }

    .permission-row.permission-level-1 td {
        background: linear-gradient(180deg, #ecfdf5 0%, #f0fdf4 100%);
    }

        .permission-row.permission-level-1 td:first-child {
            border-left: 4px solid #10b981;
        }

    .permission-row.permission-level-2 td {
        background: linear-gradient(180deg, #fffbeb 0%, #fefce8 100%);
    }

        .permission-row.permission-level-2 td:first-child {
            border-left: 4px solid #f59e0b;
        }

    .permission-row.permission-level-3 td,
    .permission-row.permission-level-4 td,
    .permission-row.permission-level-5 td {
        background: linear-gradient(180deg, #f5f3ff 0%, #faf5ff 100%);
    }

        .permission-row.permission-level-3 td:first-child,
        .permission-row.permission-level-4 td:first-child,
        .permission-row.permission-level-5 td:first-child {
            border-left: 4px solid #8b5cf6;
        }

.permission-grid-table tbody tr:hover td {
    border-color: #93c5fd;
}

.permission-module {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 280px;
}

.permission-expand-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    border: 1px solid #60a5fa;
    border-radius: 0.45rem;
    background: #ffffff;
    color: #1d4ed8;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

    .permission-expand-btn:hover {
        background: #dbeafe;
        transform: scale(1.05);
        box-shadow: 0 6px 14px rgba(37, 99, 235, 0.12);
    }

.permission-expand-symbol {
    display: inline-block;
    transform: translateY(-1px);
}

.permission-expand-spacer {
    display: inline-block;
    width: 1.5rem;
    flex-shrink: 0;
}

.permission-name {
    white-space: nowrap;
}

.permission-cell {
    text-align: center;
    width: 90px;
}

.permission-empty {
    text-align: center;
    color: #64748b;
    padding: 2rem;
}

@keyframes permission-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes permission-slide-up {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes permission-row-in {
    from {
        opacity: 0;
        transform: translateX(-6px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes permission-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.18);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 8px rgba(37, 99, 235, 0);
    }
}

/**********************************************************/

body .rz-chkbox {
    width: inherit !important;
    height: inherit !important;
}

    body .rz-chkbox .rz-chkbox-box {
        width: clamp(1.8rem, 3vw + 1.2rem, 2.5rem);
        height: clamp(1rem, 1.5vw + 0.8rem, 1.4rem);
        border-radius: 9999px;
        border: 1px solid #cbd5e1;
        background-color: #e2e8f0;
        position: relative;
        transition: background-color 0.2s ease, border-color 0.2s ease;
        background-image: none !important;
        box-shadow: none !important;
    }

    body .rz-chkbox .rz-chkbox-icon {
        display: none;
    }

    body .rz-chkbox .rz-chkbox-box::before {
        content: "";
        position: absolute;
        top: 50%;
        left: clamp(1px, 0.2vw + 0.8px, 2px);
        width: clamp(0.75rem, 1.2vw + 0.6rem, 1rem);
        height: clamp(0.75rem, 1.2vw + 0.6rem, 1rem);
        border-radius: 50%;
        background-color: #ffffff;
        box-shadow: 0 1px 2px rgba(15, 23, 42, 0.3);
        transform: translateY(-50%);
        transition: transform 0.2s ease;
    }

    body .rz-chkbox .rz-chkbox-box.rz-state-active {
        background-color: #3b82f6;
        border-color: #3b82f6;
        background-image: none !important;
        box-shadow: none !important;
    }

        body .rz-chkbox .rz-chkbox-box.rz-state-active::before {
            transform: translate(clamp(0.8rem, 1.3vw + 0.6rem, 1.1rem), -50%);
        }

body .rz-stack:has(> .rz-chkbox):has(> .rz-label) {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 0px;
    gap: clamp(0.05rem, 0.1vw + 0.04rem, 0.10rem) !important;
    /* Squeezes the box to fit the label text perfectly */
    width: fit-content !important;
    /* Ensures very short labels like "Active" still have a nice uniform button shape */
    min-width: clamp(80px, 10vw + 50px, 110px) !important;
    text-align: center;
    border: 1px solid #e5e7eb !important;
    border-radius: clamp(6px, 0.75vw + 5px, 10px) !important;
    background: #f3f4f6 !important;
    /* Slightly wider padding for a cleaner pill shape */
    padding: clamp(0.1rem, 0.2vw + 0.08rem, 0.15rem) clamp(0.65rem, 1.2vw + 0.5rem, 1rem) !important;
}

    body .rz-stack:has(> .rz-chkbox):has(> .rz-label) > .rz-label {
        order: 1;
        font-size: inherit !important;
    }

    body .rz-stack:has(> .rz-chkbox):has(> .rz-label) > .rz-chkbox {
        order: 2;
    }

body .rz-chkbox:hover .rz-chkbox-box,
body .rz-chkbox .rz-chkbox-box:hover {
    box-shadow: none !important;
    outline: none !important;
}

body .rz-chkbox .rz-chkbox-box::after {
    display: none !important;
}

body .rz-chkbox.rz-state-disabled {
    opacity: 0.65;
}

body .rz-chkbox.rz-state-focus .rz-chkbox-box,
body .rz-chkbox:focus-within .rz-chkbox-box {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

body .rz-stack:has(> .rz-label):has(> :is(.rz-textbox, .rz-autocomplete, .rz-dropdown, .rz-datepicker, .rz-numeric, .rz-textarea)):not(:has(> .rz-chkbox)) {
    display: grid !important;
    grid-template-columns: minmax(min-content, clamp(72px, 7vw, 120px)) minmax(0, 1fr);
    column-gap: 0.3rem !important;
    row-gap: 0.25rem !important;
    align-items: center !important;
    width: 100%;
    min-width: 100% !important;
}

    body .rz-stack:has(> .rz-label):has(> :is(.rz-textbox, .rz-autocomplete, .rz-dropdown, .rz-datepicker, .rz-numeric, .rz-textarea)):not(:has(> .rz-chkbox)) > .rz-label {
        grid-column: 1;
        margin: 0 !important;
        padding-left: 0 !important;
        display: inline-flex !important;
        align-items: flex-start;
        justify-content: flex-start;
        white-space: nowrap;
        word-break: normal;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.3 !important;
        font-size: var(--form-font-size) !important;
    }

        body .rz-stack:has(> .rz-label):has(> :is(.rz-textbox, .rz-autocomplete, .rz-dropdown, .rz-datepicker, .rz-numeric, .rz-textarea)):not(:has(> .rz-chkbox)) > .rz-label::after {
            content: ":";
            margin-left: 0.35rem;
        }

    body .rz-stack:has(> .rz-label):has(> :is(.rz-textbox, .rz-autocomplete, .rz-dropdown, .rz-datepicker, .rz-numeric, .rz-textarea)):not(:has(> .rz-chkbox)) > :not(.rz-label) {
        grid-column: 2;
        width: 100%;
        min-width: 0;
        align-self: center;
    }


/* =========================================================
   FLUID RESPONSIVE FORM GRID (FINAL CLEAN VERSION)
   Applies fluid wrapping ONLY to screens smaller than 1200px.
   Above 1200px, Radzen's native SizeMD rules apply perfectly.
   ========================================================= */

@media (max-width: 1199px) {
    body .rz-card.rz-variant-outlined .rz-row,
    body .rz-templateform .rz-row {
        display: flex !important;
        flex-wrap: wrap !important;
        row-gap: 0.75rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

        body .rz-card.rz-variant-outlined .rz-row > [class*="rz-col"],
        body .rz-templateform .rz-row > [class*="rz-col"] {
            /* Snaps to 2 columns on 800px screens, wraps nicely on others */
            min-width: 210px !important;
            flex-grow: 1 !important;
            flex-basis: 0 !important;
            max-width: 100% !important;
            padding-left: 5px !important;
            padding-right: 5px !important;
        }
}

/* =========================================================
   AUTO-WIDTH GRID - Reusable Grid Column Sizing
   Apply "auto-width-grid" class to any RadzenDataGrid to:
   - Auto-size columns (120-300px min/max)
   - Compact numeric columns (80-100px)
   - Fixed checkbox columns (60px)
   - Respect explicit Width attributes and frozen columns
   - Viewport-based max height with scrolling
   - Horizontal & Vertical scrolling for any screen size
   ========================================================= */

/* Grid container - limit height to viewport and enable scrolling */
.auto-width-grid {
    display: flex !important;
    flex-direction: column !important;
    max-height: calc(100vh - 320px) !important; /* Adjust 320px based on your page header/footer space */
    overflow: hidden !important;
    width: 100% !important;
}

.auto-width-grid-withoutheightAdjusment {
    display: flex !important;
    flex-direction: column !important;
    max-height: calc(100vh - 30px) !important; /* Adjust 320px based on your page header/footer space */
    overflow: hidden !important;
    width: 100% !important;
}
    .auto-width-grid-withoutheightAdjusment .rz-datatable-data {
        overflow-y: auto !important;
        overflow-x: auto !important;
        max-height: calc(100vh - 30px) !important; /* Slightly less than container for pager */
        width: 100% !important;
    }
    .auto-width-grid-withoutheightAdjusment  .rz-grid-table-fixed
    {
        table-layout:auto;
    }
    /* Grid table wrapper - enable both vertical and horizontal scrolling */
    .auto-width-grid .rz-datatable-data {
        overflow-y: auto !important;
        overflow-x: auto !important;
        max-height: calc(100vh - 380px) !important; /* Slightly less than container for pager */
        width: 100% !important;
    }

/* Force table to NOT compress - allow natural width with horizontal scroll */
.auto-width-grid .rz-grid-table {
    width: max-content !important; /* Allow table to be wider than container */
    min-width: 100% !important;
}

/* Sticky header - keeps header visible while scrolling */
.auto-width-grid .rz-grid-table thead {
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
    background: #f8fafc !important;
}

/* Auto-width columns: apply min-width only, remove max-width to prevent compression */
.auto-width-grid .rz-datatable-data td:not(.checkbox-column):not(.compact-col):not(.rz-frozen-cell),
.auto-width-grid .rz-datatable-data th:not(.checkbox-column):not(.compact-col):not(.rz-frozen-cell) {
    min-width: 120px !important; /* Minimum width to ensure readability */
    white-space: nowrap !important; /* Prevent text wrapping */
    overflow: visible !important; /* Show full content */
    text-overflow: clip !important; /* Don't truncate with ellipsis */
}

/* Compact columns for numeric/short values - explicit width control */
.auto-width-grid .compact-col {
    width: 120px;
    min-width: 120px;
    max-width: 180px;
}

/* Checkbox column - fixed width */
.auto-width-grid .checkbox-column {
    width: 60px;
    min-width: 60px;
    max-width: 60px;
}

/* Row height reduction (15% smaller) and alignment fixes */
.auto-width-grid .rz-grid-table tbody tr {
    height: 34px !important; /* Reduced from ~40px (15% reduction) */
    line-height: 1.2 !important;
}

.auto-width-grid .rz-grid-table thead tr {
    height: 36px !important; /* Reduced header height */
    line-height: 1.2 !important;
}

/* CRITICAL: Remove all inner padding/margin from header cells */
.auto-width-grid .rz-grid-table thead th > div {
    padding: 0 !important;
    margin: 0 !important;
}

/* Minimal cell padding for better data visibility - CONSISTENT padding */
/*.auto-width-grid .rz-datatable-data td {
    padding: 3px 8px !important;*/ /* Same padding for alignment */
    /*vertical-align: middle !important;
    line-height: 1.3 !important;
    text-align: left !important;*/ /* Default left alignment for text columns */
/*}*/

/* Minimal header padding - EXACTLY same as data cells for perfect alignment */
/*.auto-width-grid .rz-datatable-data th {
    padding: 3px 8px !important;*/ /* Same as td for perfect alignment */
    /*vertical-align: middle !important;
    line-height: 1.3 !important;
    text-align: left !important;*/ /* Default left alignment */
/*}*/

/* Tighter padding for frozen columns - same as regular cells */
/*.auto-width-grid .rz-frozen-cell {
    padding: 3px 8px !important;
    vertical-align: middle !important;
}*/

.rz-grid-table thead th .rz-column-title {
    font-size: inherit;
}

    /* Remove flexbox from column title - use simple inline-block for better alignment */
    .auto-width-grid .rz-column-title {
        display: inline-block !important;
        line-height: 1.3 !important;
        vertical-align: middle !important;
        padding: 0 !important;
        margin: 0 !important;
        
    }
    /* Header cell content wrapper - remove all padding */
    .auto-width-grid .rz-header-cell-content {
        padding: 0 !important;
        margin: 0 !important;
    }
    /* Right-aligned numeric columns */
    .auto-width-grid .rz-grid-table thead th[style*="text-align: right"],
    .auto-width-grid .rz-grid-table thead th[style*="text-align:right"],
    .auto-width-grid .rz-grid-table tbody td[style*="text-align: right"],
    .auto-width-grid .rz-grid-table tbody td[style*="text-align:right"] {
        text-align: right !important;
    }
    /* Center-aligned columns */
    .auto-width-grid .rz-grid-table thead th[style*="text-align: center"],
    .auto-width-grid .rz-grid-table thead th[style*="text-align:center"],
    .auto-width-grid .rz-grid-table tbody td[style*="text-align: center"],
    .auto-width-grid .rz-grid-table tbody td[style*="text-align:center"] {
        text-align: center !important;
    }
    /* Fix filter row alignment - match header padding exactly */
    .auto-width-grid .rz-grid-table thead .rz-filter-row td {
        padding: 2px 8px !important; /* Match data cell horizontal padding */
        vertical-align: middle !important;
    }
        /* Fix filter input alignment in right-aligned columns */
        .auto-width-grid .rz-grid-table thead .rz-filter-row td[style*="text-align: right"] input,
        .auto-width-grid .rz-grid-table thead .rz-filter-row td[style*="text-align:right"] input {
            text-align: right !important;
        }



    body .rz-tabview-nav li button {
        display: flex;
        align-items: center;
        color: inherit;
        padding-block: 0.15rem;
        padding-inline: 0.5rem;
        font-size: var(--form-font-size);
        line-height: var(--rz-tabs-tab-line-height);
        font-weight: 750;
        text-transform: var(--rz-tabs-tab-text-transform);
        letter-spacing: var(--rz-tabs-tab-letter-spacing);
        text-decoration: none;
        cursor: pointer;
        background: none;
        border: none;
        font-family: inherit;
    }


.