html,
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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;
}

.content {
    padding-top: 0.3rem !important;
    padding-left: 0rem !important;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* =============================================
   Global Grid Action Buttons - Common for all forms
   ============================================= */
.btn-light-primary {
    background: #f0f7ff;
    border: none;
    border-radius: 6px;
    padding: 4px 8px;
    transition: background 0.2s ease;
}

    .btn-light-primary:hover {
        background: #dbeafe;
    }

.btn-light-danger {
    background: #fff5f5;
    border: none;
    border-radius: 6px;
    padding: 4px 8px;
    transition: background 0.2s ease;
}

    .btn-light-danger:hover {
        background: #fee2e2;
    }

/* Status Badge */
.grid-badge {
    padding: 0.35em 0.75em;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.78rem;
}

/* =============================================
   ERP Card System - Dark/Light Mode Compatible
   ============================================= */
.erp-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--theme-transition);
}

.erp-card-header {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    transition: var(--theme-transition);
}

.erp-card-body {
    background-color: var(--bg-primary);
    padding: 1.25rem;
    transition: var(--theme-transition);
}

.erp-card-footer {
    background-color: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
    padding: 0.75rem 1.25rem;
    transition: var(--theme-transition);
}

/* Section title inside form */
.erp-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border-color);
}

/* Form labels - theme aware */
.erp-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}

/* Status Badges */
.erp-status-badge {
    padding: 0.3em 0.75em;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

    .erp-status-badge.badge-active {
        background-color: rgba(16, 185, 129, 0.15);
        color: #10b981;
    }

    .erp-status-badge.badge-future {
        background-color: rgba(59, 130, 246, 0.15);
        color: #3b82f6;
    }

    .erp-status-badge.badge-inactive {
        background-color: rgba(239, 68, 68, 0.15);
        color: #ef4444;
    }

    .erp-status-badge.badge-closed {
        background-color: rgba(107, 114, 128, 0.15);
        color: #6b7280;
    }

    .erp-status-badge.badge-paid {
        background-color: #e6f0ff;
        color: #0d6efd;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .erp-status-badge.badge-paid::before {
        content: '';
        display: inline-block;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background-color: #0d6efd;
    }

    .erp-status-badge.badge-unpaid {
        background-color: #fef3c7;
        color: #d97706;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .erp-status-badge.badge-unpaid::before {
        content: '';
        display: inline-block;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background-color: #d97706;
    }

/* Dark mode overrides for action buttons */
[data-theme="dark"] .btn-light-primary {
    background: rgba(96, 165, 250, 0.12);
    color: #60a5fa !important;
}

    [data-theme="dark"] .btn-light-primary:hover {
        background: rgba(96, 165, 250, 0.25);
    }

[data-theme="dark"] .btn-light-danger {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171 !important;
}

    [data-theme="dark"] .btn-light-danger:hover {
        background: rgba(239, 68, 68, 0.25);
    }

/* =============================================
   Uniform Input - All Syncfusion Controls (Height removed for Floating Labels)
   ============================================= */

/* Inner input element padding/font fix */
.e-outline .e-input,
.e-outline.e-input-group .e-input,
.e-outline.e-input-group.e-control-wrapper .e-input {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    line-height: normal !important;
    font-size: 13px !important;
    vertical-align: middle !important;
}

/* DropDown arrow icon - vertically centered */
.e-outline.e-ddl .e-input-group-icon,
.e-outline.e-ddl .e-ddl-icon {
    width: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* NumericTextBox spin buttons - center */
.e-outline .e-spin-up,
.e-outline .e-spin-down {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Responsive: stack form cols on mobile */
@media (max-width: 767px) {
    .erp-card-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.5rem;
    }

    .erp-card-footer {
        flex-direction: column;
    }

        .erp-card-footer .e-btn {
            width: 100%;
            justify-content: center;
        }

    .form-footer {
        left: 0 !important;
        right: 10px !important;
        padding: 10px 16px !important;
        height: auto;
        min-height: 50px;
        justify-content: flex-end;
        flex-wrap: wrap;
    }
}


/*setting page css*/

.settings-container {
    padding: 0px;
    padding: 0.3rem;
}

.settings-card {
    background: var(--bg-primary);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.tab-pane {
    padding: 16px;
}

.settings-section-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.settings-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

    .settings-option:last-of-type {
        border-bottom: none;
    }

.option-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.option-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
}

.option-desc {
    font-size: 13px;
    color: var(--text-tertiary);
}

.settings-footer {
    padding: 20px 32px;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Syncfusion Tab Styling Overrides */
::deep .e-tab .e-tab-header {
    background: var(--bg-secondary) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

    ::deep .e-tab .e-tab-header .e-toolbar-item .e-tab-text {
        font-weight: 600 !important;
        font-size: 14px !important;
    }

.color-grid-settings {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 16px;
    margin: 20px 0 32px 0;
    padding: 10px;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.color-option-settings {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

    .color-option-settings:hover {
        transform: translateY(-2px);
    }

.color-circle-settings {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.color-option-settings.selected .color-circle-settings {
    border-color: #fff;
    box-shadow: 0 0 0 4px var(--primary-color), 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

.color-circle-settings i {
    color: white;
    font-size: 24px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.color-name-settings {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/*settings.razor style*/

.custom-picker-section {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-top: 1rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px dashed var(--border-color);
}

.picker-wrapper {
    flex-shrink: 0;
}

.picker-preview-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-left: 2rem;
    border-left: 1px solid var(--border-color);
}

.preview-circle {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border: 3px solid white;
    transition: all 0.3s ease;
}

.preview-info {
    display: flex;
    flex-direction: column;
}

.preview-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.preview-hex {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
}

.layout-toggle-container {
    display: flex;
    background: var(--bg-tertiary);
    padding: 4px;
    border-radius: 10px;
    gap: 4px;
}

.layout-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--text-secondary);
}

    .layout-btn.active {
        background: var(--primary-color);
        color: white;
        box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
    }

    .layout-btn:hover:not(.active) {
        background: var(--border-color);
    }

.rotate-center {
    animation: rotate-center 0.6s ease-in-out both;
}

@@keyframes rotate-center {
    0% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(360deg);
    }
}

.form-footer {
    position: fixed;
    bottom: 0;
    left: 260px;
    right: 10px;
    height: 55px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Usually buttons are on the right */
    padding: 0 20px;
    gap: 8px; /* Reduced gap */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 999; /* Higher z-index to stay above everything */
}

    .form-footer .d-flex {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 6px !important;
        width: 100%;
    }

.form-footer .e-btn {
    font-size: 14px;
    padding: 6px 12px;
    margin-right: 0 !important;
}

.sidebar-collapsed ~ * .form-footer,
.sidebar.collapsed ~ * .form-footer {
    left: 70px;
}

/* Make inputs inside tolerances/detail grid compact (ditto Specs.razor style) */
.spec-table-container {
    background-color: var(--bg-primary, #ffffff) !important;
    border-color: var(--border-color, #dee2e6) !important;
}

.table-sm-custom th,
.table-sm-custom td {
    padding: 4px 6px !important;
    vertical-align: middle !important;
    border-color: var(--border-color, #dee2e6) !important;
}

.table-sm-custom {
    background-color: var(--bg-primary, #ffffff) !important;
    color: var(--text-primary, #212529) !important;
    border-color: var(--border-color, #dee2e6) !important;
}

.table-sm-custom td {
    background-color: var(--bg-primary, #ffffff) !important;
    color: var(--text-primary, #212529) !important;
}

.table-sm-custom.table-hover tbody tr:hover td {
    background-color: var(--bg-hover, #f8f9fa) !important;
}

/* Decrease height and padding of Syncfusion DropDownLists, DatePickers, TimePickers, and TextBoxes in the table */
.table-sm-custom .e-input-group.e-small,
.table-sm-custom .e-input-group.e-control-wrapper.e-small,
.table-sm-custom .e-ddl.e-input-group.e-small,
.table-sm-custom .e-datepicker.e-input-group.e-small,
.table-sm-custom .e-timepicker.e-input-group.e-small {
    height: 28px !important;
    min-height: 28px !important;
    background-color: var(--input-bg, #ffffff) !important;
    border-color: var(--input-border, #ced4da) !important;
}

.table-sm-custom .e-input-group.e-small .e-input,
.table-sm-custom .e-input-group.e-control-wrapper.e-small .e-input,
.table-sm-custom .e-ddl.e-input-group.e-small .e-input,
.table-sm-custom .e-datepicker.e-input-group.e-small .e-input,
.table-sm-custom .e-timepicker.e-input-group.e-small .e-input {
    height: 26px !important;
    min-height: 26px !important;
    font-size: 12px !important;
    padding: 0 4px !important;
    color: var(--text-primary, #212529) !important;
    background-color: transparent !important;
}

/* Adjust dropdown/picker icons for compact layout */
.table-sm-custom .e-input-group-icon {
    min-height: 26px !important;
    height: 26px !important;
    width: 24px !important;
    font-size: 10px !important;
    color: var(--text-secondary, #6c757d) !important;
    background-color: transparent !important;
    border-left: 1px solid var(--input-border, #ced4da) !important;
}

/* Compact numerical textbox controls */
.table-sm-custom .e-numeric.e-input-group.e-small {
    height: 28px !important;
    min-height: 28px !important;
}

/* Actions button compacting */
.table-sm-custom .e-btn.e-small.e-danger {
    height: 26px !important;
    width: 30px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

.table-sm-custom .e-btn.e-small.e-danger i {
    font-size: 12px !important;
}

/* Actions outline button compact styling */
.table-sm-custom .e-btn.e-small.e-outline {
    height: 26px !important;
    width: 30px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    background-color: var(--bg-primary, #ffffff) !important;
    border-color: var(--input-border, #ced4da) !important;
    color: var(--text-primary, #212529) !important;
}

.table-sm-custom .e-btn.e-small.e-outline:hover {
    background-color: var(--bg-hover, #e9ecef) !important;
}

.table-sm-custom th {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: var(--text-primary, #212529) !important;
    padding: 6px 6px !important;
    background-color: var(--bg-tertiary, #f8f9fa) !important;
    border-color: var(--border-color, #dee2e6) !important;
}

/* ── Employee Group Pay Group Mapping - Enhanced Panel & Filter Design ── */

/* Segmented Nav Filter Buttons */
.eg-filter-nav {
    display: flex;
    flex-wrap: wrap;
    background: var(--card-inner-bg, rgba(0, 0, 0, 0.04));
    border: 1px solid var(--theme-border-color, rgba(0, 0, 0, 0.08));
    border-radius: 8px;
    padding: 3px;
    gap: 3px;
}

.eg-filter-tab {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 5px 6px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--theme-secondary-color, #64748b);
    font-size: 0.73rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    outline: none !important;
    box-shadow: none !important;
}

    .eg-filter-tab span {
        white-space: nowrap;
    }

    .eg-filter-tab:hover {
        color: var(--theme-primary-color, #0f172a);
        background: rgba(0, 0, 0, 0.03);
    }

    .eg-filter-tab.active {
        background: var(--card-bg, #ffffff);
        color: var(--theme-primary-color, #0d9488);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    }

    .eg-filter-tab .filter-badge {
        font-size: 0.68rem;
        padding: 1px 6px;
        border-radius: 10px;
        background: rgba(100, 116, 139, 0.12);
        color: var(--theme-secondary-color, #64748b);
        font-weight: 700;
        transition: all 0.2s ease;
    }

    .eg-filter-tab.active .filter-badge {
        background: var(--bs-primary, #0d9488);
        color: #ffffff;
    }

    .eg-filter-tab.tab-mapped.active {
        color: #0d9488;
    }

        .eg-filter-tab.tab-mapped.active .filter-badge {
            background: #10b981;
            color: #ffffff;
        }

    .eg-filter-tab.tab-unmapped.active {
        color: #d97706;
    }

        .eg-filter-tab.tab-unmapped.active .filter-badge {
            background: #f59e0b;
            color: #ffffff;
        }

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

    .status-dot.dot-mapped {
        background-color: #10b981;
    }

    .status-dot.dot-unmapped {
        background-color: #f59e0b;
    }

/* Group Card List Items */
.eg-group-card {
    border: 1px solid var(--theme-border-color, #e2e8f0);
    background: var(--card-bg, #ffffff);
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    position: relative;
    overflow: hidden;
    border-left: 3px solid transparent;
}

    .eg-group-card:hover {
        border-color: var(--bs-primary-border-subtle, #99f6e4);
        background: var(--card-inner-bg, rgba(13, 148, 136, 0.03));
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        transform: translateY(-1px);
    }

    .eg-group-card.selected {
        border-color: #0d9488 !important;
        border-left: 4px solid #0d9488 !important;
        background: rgba(13, 148, 136, 0.08) !important;
        box-shadow: 0 2px 8px rgba(13, 148, 136, 0.12);
    }

.eg-group-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--theme-primary-color, #1e293b);
}

.eg-group-card.selected .eg-group-title {
    color: #0d9488;
    font-weight: 700;
}

/* Badges */
.eg-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}

.eg-badge-mapped {
    background-color: rgba(16, 185, 129, 0.12);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.eg-badge-unmapped {
    background-color: rgba(245, 158, 11, 0.12);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.eg-badge-history {
    font-size: 0.68rem;
    color: var(--theme-secondary-color, #94a3b8);
    background: rgba(0,0,0,0.04);
    padding: 1px 6px;
    border-radius: 8px;
}

/* Right Panel Empty & Active States */
.unmapped-empty-banner {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.06) 0%, rgba(251, 191, 36, 0.12) 100%);
    border: 1px dashed rgba(245, 158, 11, 0.4);
    border-radius: 10px;
    padding: 24px;
    text-align: center;
}

.unmapped-icon-box {
    width: 52px;
    height: 52px;
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.active-mapping-banner {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.05) 0%, rgba(16, 185, 129, 0.08) 100%);
    border: 1px solid rgba(13, 148, 136, 0.2);
    border-radius: 10px;
}

/* Remove blue focus ring / highlight on status filter buttons & all buttons */
.btn:focus,
.btn:active,
.btn:focus-visible,
.btn:active:focus,
.btn-xs:focus,
.btn-xs:active,
.btn-xs:focus-visible,
button:focus,
button:focus-visible {
    box-shadow: none !important;
    outline: none !important;
}

/* Syncfusion Numeric Textbox Right Alignment */
.e-right-align input.e-input,
.e-right-align input,
.e-numerictextbox.e-right-align input,
.e-numeric.e-right-align input,
.att-input-cell input.e-input,
.att-input-cell input {
    text-align: right !important;
}


/* Syncfusion Year View Holiday Cell Highlight */
.e-schedule .e-year-view .e-work-cells:has(.e-appointment),
.e-schedule .e-year-view .e-work-cells:has(.e-indicator) {
    background-color: #d1fae5 !important; /* Light green */
    border-radius: 50% !important;
    color: #065f46 !important; /* Dark green text */
    font-weight: bold;
    position: relative;
    box-shadow: inset 0 0 0 1px #a7f3d0;
}

/* Hide the dot but stretch it over the cell so tooltip hover still works perfectly */
.e-schedule .e-year-view .e-work-cells .e-appointment,
.e-schedule .e-year-view .e-work-cells .e-indicator {
    background: transparent !important; /* Hide purple dot */
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.e-schedule .e-year-view .e-other-month {
    visibility: hidden;
}

/* Attendance Policies Page Styles - strictly conforming to InfoHR design system */

.page-title-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 0.375rem;
    background-color: #e6f4f1;
    color: #0d8a72;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.policy-grid-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.policy-grid-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.policy-grid-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.policy-header-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.85rem 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.policy-icon-wrapper {
    width: 42px;
    height: 42px;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #0d8a72 0%, #00a884 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(13, 138, 114, 0.2);
}

.policy-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.badge-active-pill {
    background-color: #dcfce7;
    color: #15803d;
    font-size: 0.725rem;
    font-weight: 600;
    padding: 0.15rem 0.55rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.badge-default-pill {
    background-color: #e6f4f1;
    color: #0d8a72;
    font-size: 0.725rem;
    font-weight: 600;
    padding: 0.15rem 0.55rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.policy-meta-text {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 500;
}

.stat-box {
    text-align: center;
    padding: 0.4rem 0.85rem;
    border-left: 1px solid #f1f5f9;
}

.stat-box:first-child {
    border-left: none;
}

.stat-number {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0d8a72;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #64748b;
    text-transform: uppercase;
    margin-top: 0.1rem;
}

/* Compact Normal Theme Tabs */
.policy-tabs-wrapper {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.policy-tabs-wrapper .nav-tabs {
    border-bottom: 1px solid #e2e8f0;
    gap: 0.2rem;
    margin-bottom: 1rem !important;
}

.policy-tabs-wrapper .nav-tabs .nav-link {
    font-weight: 600;
    font-size: 0.8rem;
    color: #64748b;
    border: 1px solid transparent;
    border-radius: 0.375rem 0.375rem 0 0;
    padding: 0.38rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background-color: #f8fafc;
    transition: all 0.15s ease-in-out;
}

.policy-tabs-wrapper .nav-tabs .nav-link:hover {
    color: #0d8a72;
    background-color: #f1f5f9;
}

.policy-tabs-wrapper .nav-tabs .nav-link.active {
    color: #0d8a72;
    background-color: #ffffff;
    border-color: #e2e8f0 #e2e8f0 #ffffff #e2e8f0;
    box-shadow: 0 -2px 0 #0d8a72 inset;
}

.tab-badge {
    background-color: #e6f4f1;
    color: #0d8a72;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.05rem 0.35rem;
    border-radius: 0.5rem;
    line-height: 1.2;
}

.policy-tabs-wrapper .nav-tabs .nav-link.active .tab-badge {
    background-color: #0d8a72;
    color: #ffffff;
    font-size: 0.65rem;
    padding: 0.05rem 0.35rem;
}

/* Action Buttons */
.icon-action-btn {
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    color: #475569;
    width: 30px;
    height: 30px;
    border-radius: 0.375rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    transition: all 0.15s ease;
}

.icon-action-btn:hover {
    background-color: #e6f4f1;
    color: #0d8a72;
    border-color: #0d8a72;
}

.icon-action-btn-select {
    border: 1px solid #0d8a72;
    background-color: #e6f4f1;
    color: #0d8a72;
    width: 30px;
    height: 30px;
    border-radius: 0.375rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    transition: all 0.15s ease;
}

.icon-action-btn-select.active {
    background-color: #0d8a72;
    color: #ffffff;
}

.icon-action-btn-danger {
    border: 1px solid #fca5a5;
    background-color: #ffffff;
    color: #dc2626;
    width: 30px;
    height: 30px;
    border-radius: 0.375rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    transition: all 0.15s ease;
}

.icon-action-btn-danger:hover {
    background-color: #fef2f2;
    color: #991b1b;
}

/* Status Badges */
.erp-status-badge {
    padding: 0.2rem 0.55rem;
    border-radius: 1rem;
    font-size: 0.725rem;
    font-weight: 600;
}

.badge-active {
    background-color: #dcfce7;
    color: #15803d;
}

.badge-inactive {
    background-color: #f1f5f9;
    color: #64748b;
}

.badge-stop-yes {
    color: #0d8a72;
    font-size: 1rem;
}

.badge-stop-no {
    color: #94a3b8;
    font-size: 1rem;
}

/* Syncfusion Grid Theme Adjustments */
.e-grid .e-headercell {
    background-color: #f8fafc !important;
    color: #475569 !important;
    font-weight: 700 !important;
    font-size: 0.78rem !important;
    text-transform: none !important;
}

.e-grid .e-row:hover {
    background-color: #f0fdf4 !important;
}

/* Disabled Tabs Styling - Normal CSS disable without popup dialog overlay */
.tabs-disabled-wrapper {
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
}

/* Custom OVR (Manual Override) Badge */
.badge-ovr {
    background-color: rgba(245, 158, 11, 0.12) !important;
    color: #b45309 !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    border: 1px solid rgba(245, 158, 11, 0.25) !important;
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    vertical-align: middle;
}
.badge-ovr i {
    font-size: 0.65rem !important;
}
