:root {
    --accent: 0 0 0;
    --light-accent: rgb(245, 247, 251);
    --text-muted: rgba(var(--foreground), 0.6);
    --ag-selected-row-background-color: rgb(242 255 226) !important;
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 76px;
    --sidebar-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --purple: 107, 33, 168;
    --indigo: 55, 48, 163;
    --bg-dark: #252525;
    --grid-column-width: 260px
}

.tabs-style {
    scrollbar-width: none;
}

.alert {
    gap: 1rem;
}

.badge {
    font-weight: 400;
    line-height: normal;
    border-radius: 999px;
    border: none;
}

.badge-secondary {
    background: rgba(var(--foreground), 0.05);
    border-color: rgba(var(--foreground), 0.05);
    color: rgba(var(--foreground), 1);
}

.badge-warning {
    background: rgba(var(--pending), 0.2);
    border-color: rgba(var(--pending), 0.2);
    color: rgba(var(--pending), 1);
}

.badge-info {
    background: rgba(var(--info), 0.2);
    border-color: rgba(var(--info), 0.5);
    color: rgba(var(--foreground), 0.9);
}

.badge-primary {
    background: rgba(var(--foreground), 0.1);
    border-color: rgba(var(--foreground), 0.1);
    color: rgba(var(--foreground), 1);
}

.badge-light {
    background-color: rgba(var(--foreground), 0.04);
    color: rgba(var(--foreground), 0.7);
    border-color: rgba(var(--foreground), 0.2);
}

.badge-purple {
    background-color: rgba(var(--purple), 0.05);
    color: rgb(var(--purple));
    border: var(--border-width) solid rgba(var(--purple), 0.1);
}

.badge-indigo {
    background-color: rgba(var(--indigo), 0.05);
    color: rgb(var(--indigo));
    border: var(--border-width) solid rgba(var(--indigo), 0.1);
}

.bg-primary {
    background: var(--bg-dark);
    color: var(--bg-primary);
}

.bg-primary:hover {
    background: rgba(var(--foreground), 0.8);
}

.bg-danger {
    background: rgba(var(--danger), 1);
    color: var(--bg-primary);
}

.bg-danger:hover {
    background: rgba(var(--danger), 0.8);
}

.sidebar-layout .main-container {
    flex: 1;
    min-width: 0;
    padding: var(--space-2);
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
}

.main-content {
    background: var(--bg-primary);
    border-radius: var(--rounded-md);
    box-shadow: var(--shadow-sm);
    padding: var(--space-2);
    border: var(--border-width) solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.header {
    padding: 0.75rem 0;
    border-bottom: var(--border-width) solid var(--border-color);
    margin-bottom: var(--space-5);
    width: 100%;
}

.main-body {
    width: 100%;
}

body .btn[class*=" bg-"] {
    border: none;
}

.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: var(--text-xs);
    opacity: 0.5;
    font-weight: var(--font-medium);
}

.checkbox input {
    margin: 0;
    width: 16px;
    height: 16px;
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--rounded-sm);
    background-color: var(--bg-primary);
    color: rgba(var(--foreground), 0.8);
    transition: var(--transition-all);
    font-family: inherit;
    font-size: var(--text-xs);
}

.input,
.textarea,
.form-control {
    padding: 0 var(--space-3);
    display: inline-flex;
    align-items: center;
    flex: 1;
    outline: none;
    width: 100%;
    border-radius: var(--rounded-sm);
    border: var(--border-width) solid var(--border-color);
    background-color: var(--bg-primary);
    color: rgba(var(--foreground), 0.8);
    transition: var(--transition-all);
    font-family: inherit;
    min-height: var(--h-control);
    height: var(--h-control);
    font-size: calc(var(--text-sm) - 1px);
}

.input::placeholder,
.textarea::placeholder,
.form-control::placeholder,
input::placeholder {
    font-family: inherit;
    font-size: calc(var(--text-sm) - 1px);
    color: rgba(var(--foreground), 0.5);
    opacity: 1;
}

input[type="date"].input,
input[type="date"].form-control,
input[type="date"] {
    font-family: inherit;
    font-size: calc(var(--text-sm) - 1px);
    color: rgba(var(--foreground), 0.8);
}

.input input {
    border: none;
    outline: none;
    width: fit-content;
}

.textarea {
    padding: var(--space-3);
    resize: none;
}

input[type="file"].input {
    padding-left: 0;
}

input[type="file"].input::-webkit-file-upload-button,
input[type="file"].input::file-selector-button {
    background: rgba(var(--foreground), 0.03);
    border-radius: var(--rounded-sm);
    padding: 5px 10px;
    transition: background 0.2s;
    height: calc(var(--h-control) - 2px);
    cursor: pointer;
}

input[type="file"].input::-webkit-file-upload-button:hover,
input[type="file"].input::file-selector-button:hover {
    background: rgba(var(--foreground), 0.06);
}

input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none !important;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: auto;
    opacity: 1 !important;
    margin: 0;
}

td input[type=number] {
    min-width: 80px;
}

.menu-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-parent {
    gap: var(--space-3);
    font-size: calc(var(--text-sm) - 1px);
    padding: var(--space-2);
    border-radius: var(--rounded-sm);
    text-decoration: none;
    position: relative;
    opacity: .8;
    font-weight: var(--font-medium);
    display: flex;
    align-items: center;
    cursor: pointer;
}

.menu-parent:hover,
.menu-group.open>.menu-parent,
.active.menu-parent {
    color: rgba(var(--foreground), 1);
    opacity: 1;
    background: rgba(var(--foreground), 0.04);
}

.chevron {
    margin-left: auto;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(-45deg);
    transition: transform 200ms;
    opacity: 0.5;
    flex-shrink: 0;
    margin-right: 6px;
}

.menu-group.open>.menu-parent .chevron {
    transform: rotate(45deg);
}

.submenu {
    display: grid;
    grid-template-rows: 0fr;
    padding-bottom: 0;
    padding-left: 10px;
    transition: grid-template-rows 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding-bottom 0.3s ease;
}

.submenu-inner {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.menu-group.open>.submenu {
    grid-template-rows: 1fr;
}

.menu-section-label {
    padding: 20px 16px 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(var(--foreground), 0.6);
}

.search-dropdown-container {
    position: relative;
    outline: none;
}

.search-dropdown-results {
    position: absolute;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border: var(--border-width) solid var(--border-color);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    display: none;
    border-radius: var(--rounded-sm);
}

.search-dropdown-results.below {
    top: 100%;
    border-top: none;
    margin-top: 5px;
}

.search-dropdown-results.above {
    bottom: 100%;
    border-bottom: none;
    margin-bottom: 5px;
}

.search-dropdown-results.open,
.search-dropdown-container:has(.input:focus) .search-dropdown-results {
    display: block;
}

.search-dropdown-item {
    padding: var(--space-2) var(--space-3);
    cursor: pointer;
    font-size: var(--text-xs);
    border-bottom: var(--border-width) solid var(--border-color);
}

.search-dropdown-item:hover {
    background-color: rgba(var(--foreground), 0.04);
}

.search-dropdown-item.selected {
    background-color: rgba(var(--foreground), 0.08);
}

.dialog {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--bg-primary);
    border-radius: var(--rounded-sm);
    padding: 1rem;
    border: var(--border-width) solid var(--border-color);
    width: 500px;
    max-height: 95vh;
    max-width: 95vw;
    overflow: visible;
}

.dialog::backdrop {
    position: fixed;
    background-color: rgba(var(--foreground), 0.1);
    backdrop-filter: blur(10px);
}

.asterisk {
    color: rgba(var(--danger), 1);
    font-size: var(--text-xs);
    height: 100%;
    display: inline-flex;
    align-items: center;
}

.button-bar {
    display: flex;
    gap: 5px;
    justify-content: flex-end;
}

.form-check.form-check-inline {
    display: inline-flex;
    align-items: center;
    margin-top: 4px;
    gap: 6px;
    vertical-align: middle;
}

.form-check-label {
    margin-bottom: 0;
    cursor: pointer;
    font-size: var(--text-xs);
    color: rgba(var(--foreground), 0.8);
}

.form-check-input {
    margin-top: 0;
    cursor: pointer;
    width: 14px;
    height: 14px;
}

.input-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    min-height: 20px;
}

.input-chips-container .chip {
    display: inline-flex;
    align-items: center;
    background: rgba(var(--foreground), 0.02);
    border: var(--border-width) solid var(--border-color);
    border-radius: 16px;
    padding: 4px 8px;
    font-size: 10px;
    gap: 4px;
    max-width: calc(100% - 40px);
}

.input-chips-container .chip-remove {
    cursor: pointer;
    color: rgba(var(--foreground), 0.6);
    font-weight: bold;
    padding: 0 2px;
}

.input-chips-container .chip-remove:hover {
    color: rgba(var(--foreground), 1);
}

.grid-link {
    color: rgba(var(--foreground), 1);
    text-decoration: underline;
    cursor: pointer;
    font-weight: var(--font-medium);
}

.grid-link:hover {
    color: rgba(var(--foreground), 1);
    text-decoration: none;
}

h2 {
    font-size: 1.5em;
}

h3 {
    font-size: 1.1rem;
}

h4 {
    font-size: 1rem;
}

.main-alert {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
    width: 100%;
}

select,
multi-search-dropdown .input,
search-dropdown .input {
    appearance: none;
    background: url(/img/arrow.svg) no-repeat right 10px center / 10px 10px #fff;
}

.data-table-container {
    flex: 1;
    min-height: 0;
    flex-basis: 0;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-wrapper .material-symbols-rounded {
    position: absolute;
    right: 10px;
    top: 50%;
    width: 20px;
    height: 24px;
    user-select: none;
    transform: translateY(-50%);
    cursor: pointer;
}

.btn-cancel {
    background-color: transparent !important;
    border-color: rgba(var(--danger), 1) !important;
    color: rgba(var(--danger), 1) !important;
    font-weight: var(--font-semibold) !important;
}

.btn-cancel:hover {
    background-color: rgba(var(--danger), 0.1) !important;
    color: var(--bg-primary) !important;
    box-shadow: 0 4px 12px rgba(var(--danger), 0.2) !important;
}

/* --- Premium Login Portal Styles --- */
.login-body {
    background: radial-gradient(circle at 0% 0%, rgba(var(--foreground), 0.1) 0%, rgba(var(--foreground), 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

/* Toast Messages */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100001;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast-container[popover] {
    border: none;
    padding: 0;
    margin: 0;
    background: transparent;
    overflow: visible;
    color: inherit;
    width: auto;
    height: auto;
    inset: auto;
    top: 20px;
    right: 20px;
}

/* AG Grid Premium Compact Theme */
.ag-theme-alpine {
    --ag-grid-size: 4px;
    --ag-list-item-height: 28px;
    --ag-font-size: 13px;
    --ag-font-family: 'Inter', sans-serif;
    --ag-header-height: 36px !important;
    --ag-row-height: 32px !important;
}

.ag-theme-alpine .ag-header-cell-label {
    font-weight: var(--font-semibold);
    color: rgba(var(--foreground), 0.6);
}

.ag-theme-alpine .ag-row {
    font-size: 12.5px;
}

/* Action Icons */
.ag-center-header .ag-header-cell-label {
    justify-content: center;
}

.ag-center-cell {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.ag-theme-alpine .ag-center-cell .ag-cell-wrapper,
.ag-theme-alpine .ag-center-cell .ag-cell-edit-wrapper {
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
}

.ag-theme-alpine .ag-center-cell .ag-cell-edit-wrapper .ag-checkbox,
.ag-theme-alpine .ag-center-cell .ag-cell-edit-wrapper .ag-checkbox-input-wrapper,
.ag-theme-alpine .ag-center-cell .ag-cell-edit-wrapper .ag-input-wrapper {
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 !important;
}

/* Status Indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: var(--font-medium);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.active {
    background: rgba(var(--success), 1);
    box-shadow: 0 0 8px rgba(var(--success), 0.4);
}

.status-dot.inactive {
    background: rgba(var(--danger), 1);
    box-shadow: 0 0 8px rgba(var(--danger), 0.4);
}

.status-icon {
    font-size: 18px !important;
}

.status-active {
    color: rgba(var(--success), 1);
}

.status-inactive {
    color: rgba(var(--danger), 1);
}

/* Anti-Flicker Animations */
.login-card {
    animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-label.ast-required {
    display: inline-flex;
    align-items: center;
}

.small-icon {
    font-size: 14px !important;
    line-height: 14px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 16;
}

.grid-fill-height {
    flex: 1;
    height: 100%;
    min-height: 0;
}

.grid-full-width {
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
}

.child-grid-container {
    width: 100% !important;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.child-grid-container .ag-theme-alpine {
    min-width: 100%;
}

.form-group-custom {
    margin-bottom: 1.25rem;
}

.form-label-custom {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: rgba(var(--foreground), 1);
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(var(--foreground), 0.6);
    font-size: 18px !important;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-control-custom {
    width: 100%;
    padding: 0.625rem 0.75rem;
    padding-left: 2.5rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--rounded-md);
    font-size: var(--text-sm);
    color: rgba(var(--foreground), 1);
    background: var(--bg-primary);
    transition: var(--transition-focus);
    outline: none;
}

.form-control-custom:focus {
    border-color: rgba(var(--info), 1);
    box-shadow: 0 0 0 4px rgba(var(--info), 0.15);
    transform: translateY(-1px);
}

.form-control-custom:disabled {
    background: rgba(var(--foreground), 0.04);
    cursor: not-allowed;
}

.btn-dlg {
    padding: 0.625rem 1.5rem;
    border-radius: var(--rounded-md);
    font-weight: var(--font-semibold);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: var(--transition-all);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
}

.btn-close-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 16;
    width: 32px;
    height: 32px;
    border-radius: var(--rounded-sm);
    background: rgba(var(--info), 0.1);
    color: rgba(var(--foreground), 0.8);
    border: 2px solid rgba(var(--info), 0.2);
    cursor: pointer;
    transition: var(--transition-all);
    padding: 0;
}

.btn-close-custom span {
    font-size: 18px;
    font-weight: bold;
}

.password-wrapper {
    position: relative;
}

.toggle-password-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: rgba(var(--foreground), 0.5);
}

.ag-header-cell-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.ag-header-cell-text {
    flex: 1;
}

.ag-header-checkbox {
    display: flex;
    align-items: center;
}

.ag-header-checkbox input {
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    width: 14px !important;
    height: 14px !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin: 0;
    cursor: pointer;
    accent-color: rgba(var(--foreground), 1);
}

/* Menu highlighting and no-results */
mark.menu-highlight {
    background: rgba(125, 210, 249, 0.35) !important;
    color: #7DD2F9 !important;
    border-radius: 2px;
    padding: 0 1px;
}

.menu-no-results {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
    color: rgba(var(--foreground), 0.4);
    gap: 8px;
    font-size: 12.5px;
    text-align: center;
}

.menu-no-results span.material-symbols-rounded {
    font-size: 24px !important;
    opacity: 0.6;
}

/* Handle open state for matching submenus during search filtering */
.menu-group.filtered-open>.submenu {
    max-height: 800px;
    padding-bottom: 8px;
}

.bg-custom-gradient {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.glass-card {
    background: rgba(var(--foreground), 0.05);
    border: var(--border-width) solid var(--border-color) !important;
    border-radius: var(--rounded-sm);
}

/* Force Code and Short fields to display in uppercase in the UI */
input[id$="code" i],
input[id$="short" i],
input[name$="code" i],
input[name$="short" i] {
    text-transform: uppercase;
}

/* Prevent placeholder text from being transformed to uppercase */
input[id$="code" i]::placeholder,
input[id$="short" i]::placeholder,
input[name$="code" i]::placeholder,
input[name$="short" i]::placeholder {
    text-transform: none;
}

/* Reusable Collapsible Filters Styling */
.filter-header {
    user-select: none;
    transition: background-color 0.15s ease-in-out;
}

.filter-header:hover {
    background-color: rgba(var(--foreground), 0.02) !important;
}

.collapse-chevron {
    transition: transform 0.2s ease-in-out;
}

[aria-expanded="true"] .collapse-chevron {
    transform: rotate(180deg);
}

.paysoft-filter-collapse {
    visibility: visible !important;
}

.text-primary {
    color: rgba(var(--foreground), 1) !important;
}

[class*=ag-theme-],
.ag-chart,
.ag-dnd-ghost,
.ag-external,
.ag-popup,
.ag-root-wrapper,
[class^=ag-],
[class^=ag-]:focus,
[class^=ag-]:after,
[class^=ag-]:before {
    font-family: 'Poppins', sans-serif !important;
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: normal;
}

input,
select,
textarea,
body .select2-container--default .select2-selection--multiple {
    color: rgba(var(--foreground), 1);
}

.toggle-password-icon {
    font-size: 18px;
    position: absolute;
    right: 12px;
}

.w-full {
    width: 100%;
}

.bg-transparent {
    background-color: transparent;
}

/* Header & Global Search Dropdown */
.header-search-wrapper {
    position: relative;
    max-width: 320px;
}

.header-search-input {
    height: var(--h-control);
    border-radius: 20px;
    padding: 0 60px 0 36px;
    width: 100%;
    border: var(--border-width) solid var(--border-color);
}

.header-search-shortcut {
    position: absolute;
    right: var(--space-2);
    top: 50%;
    transform: translateY(-50%);
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--rounded-sm);
    padding: 2px var(--space-1);
    background: rgba(var(--foreground), 0.05);
    color: rgba(var(--foreground), 0.6);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    pointer-events: none;
}

.global-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 400px;
    overflow-y: auto;
    margin-top: var(--space-2);
    z-index: 1050;
    background: var(--bg-primary);
    border-radius: var(--rounded-md);
    box-shadow: var(--shadow-md);
    border: var(--border-width) solid var(--border-color);
}

.global-search-category {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: rgba(var(--foreground), 0.5);
    text-transform: uppercase;
    padding: var(--space-2) var(--space-3) var(--space-1) var(--space-3);
    letter-spacing: 0.5px;
}

.global-search-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3);
    cursor: pointer;
    text-decoration: none;
    color: rgba(var(--foreground), 1);
    transition: background var(--transition-all);
}

.global-search-item:hover,
.global-search-item.active {
    background: rgba(var(--foreground), 0.04);
}

.global-search-item-icon {
    background: rgba(var(--foreground), 0.05);
    padding: var(--space-1);
    border-radius: var(--rounded-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.global-search-item-icon .material-symbols-rounded {
    font-size: 18px;
    color: rgba(var(--foreground), 0.5);
}

.global-search-item-text {
    display: flex;
    flex-direction: column;
}

.global-search-item-title {
    font-weight: var(--font-semibold);
    font-size: var(--text-sm);
}

.global-search-item-path {
    opacity: 0.6;
    font-size: var(--text-xs);
}

#global-loader {
    position: fixed;
    inset: 0;
    background: rgba(var(--foreground), 0.3);
    backdrop-filter: blur(2px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: var(--space-4);
}

.loader-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--bg-primary);
    border-top-color: rgba(var(--foreground), 1);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.modal-header .modal-close {
    padding: 0;
    box-shadow: none;
    border: none;
}

.modal-header {
    padding-block: 10px;
    margin: 0;
}

.form-group {
    margin-bottom: 10px;
}

.modal-actions {
    padding-top: 5px;
}

.fields .form-group {
    margin: 0;
}

div .select2-container .select2-selection--single {
    width: 100%;
    height: var(--h-control);
    padding: 6px var(--space-3);
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--rounded-sm);
    font: inherit;
    font-size: calc(var(--text-sm) - 1px);
    color: rgba(var(--foreground), 0.5);
    outline: none;
    transition: var(--transition-focus);
    display: inline-flex;
    align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-left: 0;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    display: none;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    background: url(img/arrow.svg) no-repeat right var(--space-3) center / 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 30px;
    cursor: pointer;
    top: auto;
}

.select2-selection__rendered:has(.select2-selection__choice) {
    margin-right: 20px;
}

.select2-container--default .select2-selection--multiple {
    width: 100%;
    min-width: 0;
    padding-right: 30px;
    background: url(img/arrow.svg) no-repeat right var(--space-3) center / 10px;
    overflow: hidden;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex;
    flex-wrap: nowrap;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 4px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    overflow: initial;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.select2-container--default .select2-results__option--selected,
.select2-results__option {
    font-size: var(--text-sm);
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: rgba(var(--foreground), 1);
}

span.selection {
    position: relative;
}

.select2-container .select2-search--inline .select2-search__field {
    margin: 0;
    font-family: inherit;
    height: 20px;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border: var(--border-width) solid var(--border-color);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    margin-top: 0;
}

.select2-container .select2-selection--multiple .select2-selection__rendered {
    overflow: auto;
    scrollbar-width: none;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice:first-child {
    margin-left: 0;
}

.select2-search.select2-search--inline {
    cursor: pointer;
    width: 100%;
}

input[type="search"] {
    background: url(shared-components/assets/img/search.svg) no-repeat left var(--space-3) center / 10px;
}

#sidebar.collapsed .submenu {
    max-height: 0;
    overflow: hidden;
    padding-bottom: 0;
}

#sidebar.collapsed .menu-parent {
    justify-content: center;
    padding: 12px 0;
    width: 100%;
}

#sidebar.collapsed .menu-icon {
    margin: 0;
}

.sidebar-tooltip {
    position: fixed;
    background: rgba(var(--foreground), 1);
    color: var(--bg-primary);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--rounded-md);
    font-size: calc(var(--text-sm) - 1px);
    font-weight: var(--font-medium);
    pointer-events: auto;
    z-index: 9999;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-all);
    border: var(--border-width) solid var(--border-color);
}

.sidebar-tooltip a {
    display: flex;
    align-items: center;
    padding: var(--space-1) 0;
    color: inherit;
    text-decoration: none;
    transition: opacity var(--transition-all), padding var(--transition-all);
    position: relative;
}

.sidebar-tooltip a:hover {
    opacity: 0.7;
}

.sidebar-tooltip a.active {
    font-weight: var(--font-semibold);
    padding-left: 14px;
    opacity: 1;
}

.sidebar-tooltip a.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--bg-primary);
    border-radius: 50%;
}

.sidebar-tooltip.show {
    opacity: 1;
    visibility: visible;
}

.sidebar-tooltip::before {
    content: "";
    position: absolute;
    top: var(--arrow-top, 50%);
    left: -6px;
    transform: translateY(-50%);
    border-width: 5px 5px 5px 0;
    border-style: solid;
    border-color: transparent rgba(var(--foreground), 1) transparent transparent;
}

.sidebar-tooltip-label {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.5;
    margin-bottom: var(--space-1);
    padding-bottom: var(--space-1);
    border-bottom: var(--border-width) solid rgba(var(--bg-primary), 0.1);
}

.sidebar-tooltip-caret {
    margin-left: auto;
    font-size: 16px;
    opacity: 0.5;
    line-height: 1;
    flex-shrink: 0;
    padding-left: 10px;
}

.tooltip-item {
    display: flex;
    align-items: center;
}

.tooltip-item>a {
    flex: 1;
}

.tooltip-body {
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--foreground), 0.15) transparent;
}

.tooltip-body::-webkit-scrollbar {
    width: 3px;
}

.tooltip-body::-webkit-scrollbar-thumb {
    background: rgba(var(--foreground), 0.15);
    border-radius: var(--rounded-sm);
}

.layout.collapsed .toggle_sidebar {
    transform: rotate(180deg);
}

div .toggle_sidebar {
    user-select: none;
    color: rgba(var(--foreground), 0.4);
    transition: transform var(--transition-all), color var(--transition-all);
}

#sidebar.collapsed .logo a {
    display: none;
}

.sidebar {
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), min-width 0.3s cubic-bezier(0.4, 0, 0.2, 1), flex 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.content {
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.layout.full>#sidebar.collapsed {
    min-width: 80px;
    width: 80px;
}

body:has(#sidebar.collapsed) .content {
    margin-left: 80px;
}

#sidebar.collapsed .toggle_sidebar {
    transform: rotate(180deg);
}

#sidebar.collapsed .logo {
    justify-content: center;
}

.sidebar-toggle-btn {
    background: rgba(var(--foreground), 0.05);
    border: none;
    color: inherit;
    width: 32px;
    height: 32px;
    border-radius: var(--rounded-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-all);
}

.sidebar-toggle-btn:hover {
    background: rgba(var(--foreground), 0.1);
}

.sidebar-toggle-btn span {
    font-size: 20px;
}

.menu-scroller {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: none;
    margin-inline: -5px;
}

.menu-scroller::-webkit-scrollbar {
    width: 4px;
}

.menu-scroller::-webkit-scrollbar-thumb {
    background: rgba(var(--foreground), 0.1);
    border-radius: var(--rounded-sm);
}

div .menu-icon {
    width: 18px;
    text-align: right;
    font-size: 18px;
}

.menu-parent:hover .menu-icon {
    opacity: 1;
}

.sidebar-footer {
    margin-inline: -5px;
}

.devider {
    margin-inline: calc(var(--space-4) * -1);
    opacity: .5;
    min-height: 1px;
}

.menu-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.breadcrumbs li.separator {
    margin: 0 var(--space-1);
    color: rgba(var(--foreground), 0.4);
    font-size: var(--text-xs);
}

.profile-toggle {
    opacity: 0.6;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--rounded-sm);
    transition: all 0.2s ease;
    cursor: pointer;
}

.profile-toggle:hover {
    opacity: 1;
    background-color: rgba(var(--foreground), 0.05);
}

.profile-username-text {
    font-size: var(--text-sm);
    font-weight: 500;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: rgba(var(--foreground), 1);
}

/* Responsive: hide username on smaller screens */
@media (max-width: 768px) {
    .profile-username-text {
        display: none;
    }
}

.wrapper,
.content,
.content-body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.wrapper .layout,
.content-body {
    flex: 1;
}

.btn.secondary:hover {
    border: var(--border-width) solid var(--border-color);
}

.custom-dropdown-menu {
    max-width: 260px;
}

.profile-menu {
    width: 290px;
    padding: var(--space-4);
    border-radius: var(--rounded-md);
    background: var(--bg-primary);
    box-shadow: var(--shadow-md);
    border: var(--border-width) solid var(--border-color);
}

/* Header */
.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-avatar-wrapper {
    margin-bottom: var(--space-2);
}

.profile-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: var(--border-width) solid var(--border-color);
}

/* Dividers */
.profile-divider {
    height: var(--border-width);
    background-color: rgba(var(--foreground), 0.15);
    margin: var(--space-3) 0;
}

/* Company & Branch Card Items */
.profile-info-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.info-card {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: rgba(var(--foreground), 0.03);
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--rounded-sm);
    transition: background var(--transition-all);
}

.info-card:hover {
    background: rgba(var(--foreground), 0.06);
}

.info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: var(--rounded-sm);
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.info-icon .material-symbols-rounded {
    font-size: 18px;
}

.info-content {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.info-label {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(var(--foreground), 0.45);
    line-height: 1.2;
}

.info-value {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: rgba(var(--foreground), 1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

/* Action Items */
.profile-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.profile-action-btn {
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: transparent;
}

.profile-action-btn .material-symbols-rounded {
    font-size: 18px;
    color: rgba(var(--foreground), 0.5);
    transition: color var(--transition-all);
}

.profile-action-btn:hover {
    background: rgba(var(--foreground), 0.05);
    color: rgba(var(--foreground), 1);
}

.table-grid {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.table-grid .table-responsive {
    margin: -1px;
    margin-bottom: -7px;
}

.table-grid>.table-responsive,
.table-grid>.table-design {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.table-grid .ag-theme-alpine {
    flex: 1;
    min-height: 290px;
    margin: 0;
}

#salaryGridWrapper.salary-grid-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 360px;
    height: calc(100vh - 300px);
    margin-top: var(--space-3);
}

#salaryGridWrapper.salary-grid-wrapper #salaryGrid {
    width: 100%;
    min-height: 360px;
    flex: 1 1 auto;
}

#salaryGridWrapper.salary-grid-wrapper.d-none {
    display: none !important;
}

#salaryGrid .ag-cell.ag-center-cell {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
}

#salaryGrid .ag-cell.ag-center-cell .ag-checkbox-input-wrapper,
#salaryGrid .ag-cell.ag-center-cell .icon-btn {
    margin-inline: auto;
}

#salaryGrid .ag-header-cell:first-child .ag-header-cell-label {
    justify-content: center;
    padding: 0 !important;
}

#salaryGrid .ag-header-cell:first-child .ag-header-cell-comp-wrapper,
#salaryGrid .ag-header-cell:first-child .ag-header-select-all {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 0;
}

#salaryGrid .ag-header-cell:first-child .ag-checkbox-input-wrapper {
    margin: 0 !important;
}

#salaryGrid .ag-pinned-left-cols-container .ag-row .ag-cell:first-child {
    justify-content: flex-start;
    padding-left: 12px !important;
}

#salaryGrid .ag-pinned-left-header .ag-header-cell:first-child .ag-header-cell-label {
    justify-content: flex-start;
    padding-left: 12px !important;
}

.ag-selection-checkbox {
    margin: 0;
}

.ag-theme-alpine {
    --ag-header-height: 36px;
    --ag-row-height: 40px;
    --ag-font-family: inherit;
    --ag-font-size: var(--text-sm);
    --ag-header-foreground-color: rgba(var(--foreground), 0.8);
    --ag-data-color: rgba(var(--foreground), 0.9);
    --ag-row-hover-color: rgba(var(--foreground), 0.03);
    --ag-odd-row-background-color: rgba(var(--foreground), 0.01);
    --ag-selected-row-background-color: rgba(var(--foreground), 0.07);
    --ag-border-color: var(--border-color);
    min-height: 350px;
}

.ag-theme-alpine .ag-header {
    height: 36px !important;
    min-height: 36px !important;
    border-bottom: var(--border-width) solid var(--border-color) !important;
    background: rgba(var(--foreground), 0.03) !important;
}

.ag-theme-alpine .ag-header-row {
    height: 36px !important;
}

.ag-theme-alpine .ag-header-cell {
    border-right: var(--border-width) solid var(--border-color) !important;
    padding-inline: var(--space-3);
}

.ag-theme-alpine .ag-header-cell-text {
    font-size: calc(var(--text-sm) - 1px);
    font-weight: var(--font-semibold);
    text-transform: capitalize;
    color: rgba(var(--foreground), 0.9);
}

.ag-theme-alpine .ag-row {
    border-bottom: var(--border-width) solid var(--border-color);
    transition: background-color var(--transition-all);
    background-color: transparent;
}

.ag-theme-alpine .ag-cell {
    border-right: var(--border-width) solid var(--border-color) !important;
    padding: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    line-height: normal;
}

.ag-theme-alpine input.ag-input[type="date"],
.ag-theme-alpine input.ag-input[type="datetime-local"] {
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: var(--ag-font-size, 13px);
    color: inherit;
    outline: none;
    box-shadow: none;
    line-height: normal;
}

.ag-theme-alpine .ag-cell:last-child,
.ag-theme-alpine .ag-header-cell:last-child {
    border-right: none !important;
}

.ag-theme-alpine .ag-paging-panel>* {
    margin-inline: 0px;
}

.ag-cell-focus:not(.ag-cell-range-selected):focus-within,
.ag-cell-range-single-cell,
.ag-cell-range-single-cell.ag-cell-range-handle,
.ag-context-menu-open .ag-cell-focus:not(.ag-cell-range-selected),
.ag-context-menu-open .ag-full-width-row.ag-row-focus .ag-cell-wrapper.ag-row-group,
.ag-full-width-row.ag-row-focus:focus .ag-cell-wrapper.ag-row-group {
    border-color: var(--border-color);
}

body div .ag-checkbox-input-wrapper input {
    opacity: 1;
    appearance: auto;
}

body div .ag-checkbox-input-wrapper::before,
body div .ag-checkbox-input-wrapper::after {
    display: none;
}

.ag-checked {
    border: none !important;
}

.ag-checkbox-input-wrapper {
    box-shadow: none !important;
    background: transparent;
    border: none;
}

.ag-icon-small-down::before,
.ag-icon-small-down::after {
    display: none;
}

.ag-icon-small-down {
    background: url(/img/arrow.svg) no-repeat right center / 10px;
}

.ag-cell {
    font-size: 13px;
}

.btn:hover .delete-btn {
    color: rgba(var(--danger), 1);
}

.ag-header-cell-resize:after {
    height: 35%;
    width: 6px;
    top: auto;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: rgba(var(--foreground), 0.06);
    border: 1px solid var(--border-color);
    font-size: 12px;
}

span.selection:has(.select2-selection__choice) .select2-search--inline {
    display: none;
}

body div:where(.swal2-container) div:where(.swal2-popup) {
    width: 100%;
    max-width: 26rem;
}

body div:where(.swal2-icon) {
    margin-top: 20px;
    margin-bottom: 0;
}

div div.swal2-icon {
    border-color: rgba(var(--danger), 1);
    color: rgba(var(--danger), 1);
    margin-top: 10px;
    transform: scale(.7);
    animation: none !important;
}

.swal2-title {
    font-size: 22px;
    padding-top: 10px;
}

.swal2-html-container {
    padding: 0;
    font-size: 14px;
}

.swal2-actions {
    gap: 6px;
}

.swal2-actions button {
    margin: 0;
}

div .btn.active-month,
div .btn.active-month:hover {
    background: rgba(var(--foreground), 1);
    color: #fff;
}

.btn.active-toggle,
.btn.active-toggle:hover {
    opacity: 1;
    color: rgba(var(--foreground), 1);
    background: rgba(var(--foreground), 0.08);
}

.ast-required::after {
    content: '*';
    color: rgba(var(--danger), 1);
    font-size: 1rem;
    margin-left: 2px;
    line-height: 0;
}

.ag-header-cell.ast-required::after {
    content: none;
}

.ag-header-cell.ast-required .ag-header-cell-text::after {
    content: '*';
    color: rgba(var(--danger), 1);
    font-size: 1rem;
    margin-left: 2px;
    line-height: 0;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    padding: 0;
    margin-right: 6px;
}

.footer {
    text-align: center;
    font-size: 12px;
    margin-top: 6px;
    opacity: 0.4;
    margin-bottom: -6px;
}

input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: #000;
}

.grid-action-btns {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.tabs-style .nav-link.active {
    border: var(--border-width) solid var(--border-color);
}

.select2-search--dropdown .select2-search__field {
    padding-left: 28px;
}

.error,
.field-validation-error {
    font-size: 12px;
    color: rgba(var(--danger), 1);
    display: block;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.form-select:focus {
    box-shadow: 0 2px 0px 0px rgba(var(--foreground), 0.1);
    border: var(--border-width) solid var(--border-color);
    outline: none;
}

.no-data {
    align-content: center;
}

.ag-overlay-no-rows-center,
.no-data-found {
    display: flex;
    align-items: center;
    flex-direction: column;
    opacity: .4;
}

.ag-overlay-no-rows-center::before,
.no-data-found:before {
    content: "";
    display: block;
    background-image: url(../img/no-data.jpg);
    width: 150px;
    height: 125px;
    z-index: 1;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    filter: grayscale(1);
    margin: auto;
}

.close-modal {
    all: inherit;
    cursor: pointer;
    font-size: 20px;
    padding: 0;
    border: none;
    height: 20px;
    line-height: 1.3;
}

.form-check {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 0;
    margin-top: 5px;
}

.ag-paging-panel {
    gap: 10px;
}

.ag-paging-panel * {
    font-size: 13px;
}

.tile-style {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--grid-column-width)), 1fr));
    list-style: none;
    gap: var(--space-2);
}

.celebrationsReel:has(> .no-data) {
    grid-template-columns: minmax(0, 1fr) !important;
}

.leave-card-pl {
    --card-accent: 79, 70, 229;
}

.leave-card-sl {
    --card-accent: 16, 185, 129;
}

.leave-card-cl {
    --card-accent: 245, 158, 11;
}

.leave-card-co {
    --card-accent: 139, 92, 246;
}

.leave-card-tl {
    --card-accent: 239, 68, 68;
}

.hidden {
    display: none;
}

/* Base Card Container */
.leave-card {
    position: relative;
    background: var(--bg-primary);
    border: var(--border-width) solid rgba(var(--card-accent), 0.3);
    border-radius: var(--rounded-md);
    padding: var(--space-3) var(--space-4);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    overflow: hidden;
}

/* Header & Title */
.leave-badge {
    font-size: 12px;
    color: rgb(var(--foreground));
    background: var(--bg-primary);
    padding: 4px 10px;
    border-radius: 4px;
    display: none;
    margin-bottom: 2px;
    border: var(--border-width) solid rgba(var(--card-accent), 0.3);
}

.leave-card-title {
    font-size: 18px;
    color: rgba(var(--foreground), 0.85);
}

/* Icon Box */
.leave-icon-box {
    width: 36px;
    height: 36px;
    border-radius: var(--rounded-sm);
    background: rgba(var(--card-accent), 0.1);
    color: rgb(var(--card-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Body / Numeric Display */
.leave-value {
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
    color: rgba(var(--foreground), 0.9);
    letter-spacing: -0.5px;
    margin-right: 2px;
}

.leave-unit {
    font-size: calc(var(--text-xs) + 2px);
    font-weight: var(--font-medium);
    color: rgba(var(--foreground), 0.5);
}

/* Footer Section */
.leave-footer {
    padding-top: var(--space-2);
    border-top: 1px dashed var(--border-color);
    margin-top: var(--space-3);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.meta-label {
    font-size: calc(var(--text-xs) + 2px);
    color: rgba(var(--foreground), 0.5);
    margin-bottom: 2px;
}

.meta-value {
    font-size: calc(var(--text-sm) + 6px);
    font-weight: var(--font-semibold);
    color: rgba(var(--foreground), 0.8);
    line-height: 1;
    margin-top: -3px;
}

.meta-divider {
    width: 1px;
    height: 22px;
    background-color: var(--border-color);
}

.btn.primary:hover {
    color: var(--bg-primary);
}

.accordion-item:has(.accordion-button:not(.collapsed)) .accordion-header,
.accordion-item:hover .accordion-header {
    background: rgba(var(--foreground), 0.03) !important;
}

.accordion-item:has(.accordion-button:not(.collapsed)) .accordion-header .accordion-button {
    color: inherit;
}

div .max-w-full {
    max-width: 100%;
}

.switch-ui {
    position: relative;
    display: flex;
    align-items: center;
    padding: 2px;
    background: rgba(var(--foreground), 0.03);
    border: var(--border-width) solid var(--border-color);
    border-radius: 8px;
}

.switch-ui .form-check {
    position: relative;
    z-index: 2;
    flex: 1;
    margin: 0;
    padding: 0;
}

.switch-ui input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.switch-ui label {
    display: block;
    width: 100%;
    padding: 5.7px 10px;
    margin: 0;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: rgba(var(--foreground), 0.6);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.switch-ui input:checked+label {
    color: rgba(var(--foreground), 1);
    background: var(--bg-primary);
    box-shadow: 0 1px 4px rgba(var(--foreground), 0.12);
}

.switch-ui label:hover {
    color: rgba(var(--foreground), 0.9);
}

.switch-ui .form-check input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
}

.grid-sm {
    --grid-scale: 210px;
}

.card-subtitle {
    font-size: 14px;
}

div input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: rgba(var(--foreground), 1);
    min-width: 16px;
}

.form-section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.form-section-title:first-child {
    margin-top: 0;
}

.form-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

input[type="time"] {
    display: block;
}

div .toast-msg {
    padding: 8px 14px;
    background: var(--bg-primary);
    border-left: 4px solid #4f46e5;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    min-width: 260px;
    animation: slideIn 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 12px;
    font-family: inherit;
}

.toast-msg.error {
    border-left-color: rgba(var(--danger), 1);
}

.toast-msg.success {
    border-left-color: rgba(var(--success), 1);
}

.swal2-popup {
    padding-inline: 20px;
}

input[type="file"] {
    padding: 4px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.feedback-page {
    flex: 1;
    align-content: center;
}

.feedback-wrapper {
    width: 100%;
    max-width: 1120px;
    min-height: 650px;
    display: grid;
    grid-template-columns: 44% 56%;
    background: var(--bg-primary);
    border: var(--border-width) solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin: auto;
}

.feedback-visual {
    position: relative;
    overflow: hidden;
    background: rgba(var(--foreground), 0.02);
    border-right: var(--border-width) solid var(--border-color);
}

.feedback-visual::before {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(var(--foreground), 0.02);
    top: -100px;
    left: -80px;
}

.feedback-visual::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(var(--foreground), 0.02);
    bottom: -90px;
    right: -70px;
}

.visual-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 52px 42px 38px;
    display: flex;
    flex-direction: column;
}

.visual-badge {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 30px;
    background: var(--bg-primary);
    border: var(--border-width) solid var(--border-color);
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.visual-badge .material-symbols-rounded {
    font-size: 16px;
}

.visual-content h1 {
    margin: 28px 0 14px;
    font-size: 36px;
    line-height: 1.15;
    letter-spacing: -1.2px;
    font-weight: 750;
}

.visual-content h1 span {
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.visual-content>p {
    max-width: 390px;
    margin: 0;
    color: rgba(var(--foreground), 0.8);
    font-size: 14px;
    line-height: 1.7;
}

.feedback-illustration {
    width: 100%;
    margin-top: 24px;
}

.feedback-illustration svg {
    display: block;
    width: 100%;
    height: auto;
}

.visual-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(var(--foreground), 0.8);
    font-size: 11px;
    font-weight: 500;
}

.footer-avatar-group {
    display: flex;
    align-items: center;
}

.footer-avatar-group span {
    width: 26px;
    height: 26px;
    margin-left: -6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border: 2px solid var(--bg-primary);
    color: rgba(var(--foreground), 0.8);
    font-size: 11px;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.footer-avatar-group span:first-child {
    margin-left: 0;
}

.feedback-form-panel {
    padding: 48px 52px;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 30px;
}

.form-icon .material-symbols-rounded {
    font-size: 23px;
}

.form-header h2 {
    margin: 0;
    color: rgba(var(--foreground), 1);
    font-size: 20px;
    font-weight: 750;
    letter-spacing: -.4px;
}

.form-header p {
    margin: 4px 0 0;
    color: rgba(var(--foreground), 0.8);
    font-size: 12px;
    line-height: 1.5;
}

.feedback-field {
    margin-bottom: 21px;
}

.feedback-label {
    display: block;
    margin-bottom: 8px;
    color: rgba(var(--foreground), 1);
    font-size: 12px;
    font-weight: 700;
}

.feedback-label>span {
    color: rgba(var(--danger), 1);
    margin-left: 2px;
}

.feedback-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.feedback-type-option {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.feedback-type-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.type-card {
    min-height: 70px;
    padding: 11px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    border: 1.5px solid rgba(var(--foreground), 0.1);
    border-radius: 11px;
    background: var(--bg-primary);
    transition: all .2s ease;
}

.type-card:hover {
    border-color: var(--border-color);
    background: var(--bg-primary);
}

.feedback-type-option input:checked+.type-card {
    border-color: var(--border-color);
    background: var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .07);
}

.type-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.type-icon .material-symbols-rounded {
    font-size: 19px;
}

.generic-icon,
.service-icon {
    background: rgba(var(--foreground), 0.04);
    color: rgba(var(--foreground), 0.8);
}

.type-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.type-content strong {
    font-size: 14px;
}

.type-content small {
    font-size: 10px;
    line-height: 1.3;
}

.type-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    color: rgba(var(--foreground), 0.8);
    opacity: 0;
    transform: scale(.7);
    transition: all .2s ease;
}

.type-check .material-symbols-rounded {
    font-size: 12px;
    color: inherit;
}

.feedback-type-option input:checked+.type-card .type-check {
    opacity: 1;
    transform: scale(1);
    background: rgba(var(--foreground), 1);
    color: var(--bg-primary);
}

.feedback-hidden-select {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.input-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(var(--foreground), 0.8);
    font-size: 18px;
    pointer-events: none;
}

.feedback-input {
    height: 44px;
}

.feedback-input::placeholder,
.feedback-textarea::placeholder {
    color: rgba(var(--foreground), 0.8);
    font-weight: 400;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.optional-hint {
    color: rgba(var(--foreground), 0.8);
    font-size: 10px;
}

.textarea-wrapper {
    position: relative;
    border: 1.5px solid rgba(var(--foreground), 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: all .2s ease;
}

.textarea-wrapper:focus-within {
    box-shadow: 0 2px 0px 0px rgba(var(--foreground), 0.1);
}

.feedback-textarea {
    min-height: 125px;
    padding: 12px 14px;
    display: block;
    resize: vertical;
    border: none;
    border-radius: 0;
}

.feedback-textarea:focus {
    box-shadow: none;
    border: none;
}

.textarea-footer {
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(var(--foreground), 0.1);
    background: var(--bg-primary);
    color: rgba(var(--foreground), 0.8);
    font-size: 10px;
}

.textarea-footer #charCounter {
    font-weight: 600;
}

.form-actions {
    padding-top: 22px;
    margin-top: 4px;
    border-top: 1px solid rgba(var(--foreground), 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.dashboard-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: rgba(var(--foreground), 0.8);
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    transition: color .2s ease;
}

.dashboard-link .material-symbols-rounded {
    font-size: 16px;
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.success-container {
    min-height: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 35px;
}

.success-animation {
    margin-bottom: 22px;
}

.success-circle {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--success), 0.2);
    color: rgba(var(--foreground), 1);
    box-shadow: var(--shadow-md);
    animation: scaleIn .35s ease-out;
}

.success-circle .material-symbols-rounded {
    font-size: 45px;
    font-weight: 700;
}

.success-content {
    max-width: 390px;
}

.success-badge {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 20px;
    background: rgba(var(--success), 0.2);
    color: rgba(var(--foreground), 1);
    margin-bottom: 12px;
}

.success-content h2 {
    margin: 0 0 8px;
    color: rgba(var(--foreground), 1);
    font-size: 25px;
    font-weight: 750;
}

.success-content p {
    margin: 0;
    color: rgba(var(--foreground), 0.8);
    font-size: 12px;
    line-height: 1.7;
}

.success-actions {
    margin-top: 28px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.was-validated .feedback-input:invalid,
.was-validated .feedback-textarea:invalid {
    border-color: rgba(var(--danger), 1);
}

.was-validated .feedback-type-option input:invalid+.type-card {
    border-color: rgba(var(--danger), 1);
}

.select2-selection--multiple button.select2-selection__clear {
    display: none;
}

.fields label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 1px;
    display: block;
}

@keyframes scaleIn {
    0% {
        transform: scale(.75);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.sidebar.collapsed .menu-text,
.sidebar.collapsed .chevron {
    display: none;
}

:is(.login-page, .change-password-page) .main,
.quiz-form,
body:has(.otp) .main,
.component-card,
.change-password,
.signup-page .main,
.password-reset-page .main {
    width: 100%;
}

input[type="datetime-local"] {
    display: block;
}

.emp-page-wrapper {
    display: flex;
    flex: 1;
    background: rgba(var(--foreground), 0.02);
    overflow: hidden;
    border-radius: var(--rounded-md);
    border: var(--border-width) solid var(--border-color);
}

.emp-sidebar-col {
    width: 210px;
    min-width: 210px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-right: var(--border-width) solid var(--border-color);
    background: var(--bg-primary);
}

.emp-content-col {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow-y: auto;
    overflow-x: auto;
}

.emp-content-col>div {
    min-width: 0;
}

.btn-cancel {
    color: rgba(var(--danger), 1);
}

.btn-cancel:hover {
    background-color: rgba(var(--danger), 0.05);
    border-color: rgba(var(--danger), 0.3);
}

.text-nowrap {
    white-space: nowrap !important;
}

.emp-sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(var(--foreground), 0.9);
    color: var(--bg-primary);
    position: relative;
    overflow: hidden;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.emp-sidebar-header::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.emp-sidebar-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.emp-sidebar-title {
    font-size: 16px;
    word-break: break-word;
    white-space: normal;
    font-weight: 600;
}

.emp-sidebar-sub {
    font-size: 13px;
    font-weight: 500;
    margin-top: 2px;
    word-break: break-word;
    white-space: normal;
    justify-content: space-between;
    display: flex;
    align-items: center;
    opacity: .8;
}

.menus li a {
    border-radius: 0;
}

.emp-btn-back .material-symbols-rounded {
    font-size: 18px;
}

.menus {
    padding: 0;
    margin: 0;
}

.accordion-button {
    padding: 10px;
    gap: 10px;
    font-size: var(--text-sm);
    font-weight: 500;
}

.accordion-button::after {
    margin-left: 0;
    width: 16px;
    height: 16px;
    background-size: 16px;
}

.accordion-body {
    padding: 10px;
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-button:is(.collapsed) b {
    opacity: .6;
}

.kpi-grid .label {
    font-size: 13px;
    opacity: 0.5;
    font-weight: 500;
    display: flex;
    margin-bottom: 5px;
    align-items: center;
    gap: 5px;
}

.kpi-grid .table .money {
    text-align: right !important;
}

.table-design th,
.table-design td {
    vertical-align: middle;
}

.data-grid-body {
    margin-bottom: 10px;
    container-type: inline-size;
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    row-gap: 10px;
    column-gap: 1rem;
}

@container (max-width: 600px) {
    .data-grid {
        grid-template-columns: 1fr;
    }
}

.data-grid .form-group {
    margin: 0;
    display: flex;
    justify-content: space-between;
    padding: 6px 10px;
    background: rgba(var(--foreground), 0.04);
    border-radius: var(--rounded-sm);
    align-items: center;
    gap: 1rem;
}

.data-grid-body .grid-title {
    margin-bottom: 10px;
}

.data-grid .form-group strong,
.data-grid .form-group span {
    font-size: var(--text-sm);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.data-grid .form-group strong {
    font-weight: 400;
}

.data-grid .form-group span {
    font-weight: 500;
}

/* Monthly salary detail layout */
.mega-grid .detail-body {
    color: rgba(var(--foreground), 0.85);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
}

.mega-grid .detail-body>.row {
    --bs-gutter-x: var(--space-2);
    --bs-gutter-y: var(--space-2);
    margin-inline: 0;
    padding: var(--space-1) 0;
}

.mega-grid .detail-body>.row>[class*="col-"] {
    min-width: 0;
}

.mega-grid .detail-body>.row>[class*="col-"]:has(> input),
.mega-grid .detail-body>.row>[class*="col-"]:has(> select) {
    display: flex;
    align-items: center;
}

.mega-grid .detail-body>.row>.text-end {
    justify-content: flex-end;
    color: rgba(var(--foreground), 0.72);
    font-size: var(--text-xs);
    white-space: nowrap;
}

.mega-grid input,
.mega-grid select {
    min-width: 0;
    height: 32px;
    padding: 5px var(--space-2);
    background-color: var(--bg-primary);
    color: rgba(var(--foreground), 0.82);
    font-size: var(--text-xs);
}

.mega-grid input[readonly] {
    background-color: rgba(var(--foreground), 0.045) !important;
    color: rgba(var(--foreground), 0.68);
}

.mega-grid .bottom-border-dark {
    margin-top: var(--space-2);
    padding-bottom: var(--space-3) !important;
    border-bottom: var(--border-width) solid rgba(var(--foreground), 0.2);
}

.mega-grid .border-dark-1 {
    overflow: hidden;
    border: var(--border-width) solid rgba(var(--foreground), 0.14);
    border-radius: var(--rounded-sm);
    background: var(--bg-primary);
}

.mega-grid .border-right-dark {
    border-right: var(--border-width) solid rgba(var(--foreground), 0.14);
}

.mega-grid .bg-grey-light {
    background: var(--bg-primary);
}

.mega-grid .border-bottom-dark {
    background: rgba(var(--foreground), 0.045);
    color: rgba(var(--foreground), 0.82);
    font-size: var(--text-xs);
}

.mega-grid #earningsContainer,
.mega-grid #deductionsContainer {
    min-height: 120px;
}

.mega-grid #earningsContainer .row,
.mega-grid #deductionsContainer .row,
.mega-grid .bg-grey-light>.p-2>.row {
    --bs-gutter-x: var(--space-2);
    --bs-gutter-y: var(--space-2);
    align-items: center;
    margin-inline: 0;
}

.mega-grid .bg-grey-light>.p-2 {
    padding: var(--space-3) !important;
}

.mega-grid .text-danger {
    color: rgba(var(--danger), 1) !important;
}

.mega-grid .text-primary {
    color: rgba(var(--foreground), 0.78) !important;
}

.mega-grid .btn-process {
    min-width: 76px;
    height: 32px;
    border-radius: var(--rounded-sm);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
}

.mega-grid hr.hr-dark {
    margin: var(--space-2) 0;
    border-color: rgba(var(--foreground), 0.18);
}

.ag-number-field-input,
.ag-text-field-input {
    padding-left: calc(var(--ag-spacing) * 1.5 + 12px) !important;
}

.ag-number-field-input,
.ag-text-field-input:focus {
    box-shadow: 0 2px 0px 0px rgb(223 223 223) !important;
    border: var(--border-width) solid var(--border-color);
}


/* Employee dashboard */
.employee-dashboard-wrapper {
    min-height: 100%;
    padding: var(--space-5);
    background: linear-gradient(135deg, rgba(var(--foreground), 0.035), var(--bg-primary) 42%, rgba(var(--info), 0.035));
}

.employee-dashboard-shell {
    width: min(1420px, 100%);
    margin: 0 auto;
}

.employee-dashboard-header,
.employee-dashboard-overview,
.employee-dashboard-content {
    animation: employeeDashboardReveal 0.45s ease both;
}

.employee-dashboard-overview {
    display: grid;
    grid-template-columns: minmax(220px, 1.05fr) minmax(280px, 1.35fr) minmax(210px, .8fr);
    gap: var(--space-3);
    margin-top: var(--space-5);
}

.employee-dashboard-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-3) 0;
}

.employee-dashboard-header h1 {
    margin: 4px 0 5px;
    color: rgba(var(--foreground), 1);
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    font-weight: var(--font-semibold);
}

.employee-dashboard-header p {
    margin: 0;
    color: rgba(var(--foreground), 0.55);
    font-size: var(--text-sm);
}

.employee-dashboard-eyebrow {
    display: block;
    color: rgba(var(--foreground), 0.48);
    font-size: 10px;
    font-weight: var(--font-semibold);
    letter-spacing: .11em;
    line-height: 1.2;
    text-transform: uppercase;
}

.employee-dashboard-date {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 8px 12px;
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--rounded-sm);
    background: var(--bg-primary);
    color: rgba(var(--foreground), 0.62);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    white-space: nowrap;
}

.employee-dashboard-date .material-symbols-rounded {
    color: rgba(var(--info), 1);
    font-size: 17px;
}

.employee-identity-panel,
.employee-time-panel,
.employee-manager-panel {
    min-height: 150px;
    padding: var(--space-4);
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--rounded-md);
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
}

.employee-identity-panel {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    position: relative;
    overflow: hidden;
}

.employee-identity-panel::after {
    position: absolute;
    right: -38px;
    bottom: -48px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(var(--info), 0.06);
    content: "";
}

.employee-avatar-wrap {
    position: relative;
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
}

.employee-avatar-wrap img,
.employee-manager-profile img {
    width: 100%;
    height: 100%;
    border-radius: var(--rounded-sm);
    object-fit: cover;
}

.employee-avatar-wrap img {
    border: 3px solid rgba(var(--info), 0.12);
}

.employee-avatar-status {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 13px;
    height: 13px;
    border: 3px solid var(--bg-primary);
    border-radius: 50%;
    background: rgba(var(--success), 1);
}

.employee-identity-copy,
.employee-manager-profile div {
    min-width: 0;
}

.employee-identity-copy h2,
.employee-time-heading h2 {
    margin: 4px 0 2px;
    color: rgba(var(--foreground), 1);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
}

.employee-identity-copy p {
    margin: 0;
    overflow: hidden;
    color: rgba(var(--foreground), 0.55);
    font-size: var(--text-xs);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.employee-status-badge {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border: var(--border-width) solid rgba(var(--success), 0.2);
    border-radius: 999px;
    background: rgba(var(--success), 0.08);
    color: rgba(var(--success), 1);
    font-size: 10px;
    font-weight: var(--font-semibold);
}

.employee-status-badge span,
.employee-time-footer i,
.employee-manager-status i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.employee-time-panel {
    background: rgba(var(--foreground), 0.97);
    color: var(--bg-primary);
}

.employee-time-panel .employee-dashboard-eyebrow,
.employee-time-panel h2 {
    color: rgba(var(--bg-primary), 0.66);
}

.employee-time-heading,
.employee-time-footer,
.employee-manager-profile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

.employee-time-icon {
    color: rgba(var(--bg-primary), 0.7);
    font-size: 22px;
}

.employee-clock b {
    color: rgba(var(--bg-primary), 0.38);
    font-size: 20px;
    font-weight: var(--font-regular);
    margin-top: -4px;
}

.employee-time-footer {
    color: rgba(var(--bg-primary), 0.62);
    font-size: 10px;
}

.employee-time-footer span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.employee-time-footer i {
    color: rgba(var(--success), 1);
}

.employee-check-button {
    min-height: 30px;
    padding: 5px 11px;
    border: 1px solid rgba(var(--bg-primary), 0.3) !important;
    background: transparent !important;
    color: var(--bg-primary) !important;
    font-size: 10px;
}

.employee-check-button:hover {
    border-color: var(--bg-primary) !important;
    background: var(--bg-primary) !important;
    color: rgba(var(--foreground), 1) !important;
}

.employee-manager-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.employee-manager-profile {
    justify-content: flex-start;
    margin-top: 15px;
}

.employee-manager-profile img {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: var(--rounded-sm);
}

.employee-manager-profile strong,
.employee-manager-profile span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.employee-manager-profile strong {
    color: rgba(var(--foreground), 0.9);
    font-size: var(--text-sm);
}

.employee-manager-profile span,
.employee-manager-status,
.employee-manager-empty {
    color: rgba(var(--foreground), 0.5);
    font-size: var(--text-xs);
}

.employee-manager-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 12px;
}

.employee-manager-status i {
    color: rgba(var(--success), 1);
}

.employee-manager-empty {
    margin-top: 16px;
    font-style: italic;
}

.employee-dashboard-content {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: var(--space-4);
    align-items: start;
    margin-top: var(--space-4);
    animation-delay: .08s;
}

.employee-dashboard-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: var(--space-2);
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--rounded-md);
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
}

.employee-dashboard-nav .tab-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 11px;
    border: 1px solid transparent;
    border-radius: var(--rounded-sm);
    background: transparent;
    color: rgba(var(--foreground), 0.55);
    cursor: pointer;
    font: inherit;
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    text-align: left;
    transition: var(--transition-all);
}

.employee-dashboard-nav .tab-btn .material-symbols-rounded {
    color: rgba(var(--foreground), 0.45);
    font-size: 18px;
}

.employee-dashboard-nav .tab-btn:hover {
    background: rgba(var(--foreground), 0.04);
    color: rgba(var(--foreground), 1);
}

.employee-dashboard-nav .tab-btn.is-active {
    border-color: rgba(var(--info), 0.16);
    background: rgba(var(--info), 0.08);
    color: rgba(var(--info), 1);
    font-weight: var(--font-semibold);
}

.employee-dashboard-nav .tab-btn.is-active .material-symbols-rounded {
    color: rgba(var(--info), 1);
}

.employee-dashboard-panels {
    min-width: 0;
}

.today-date .t-icon {
    font-size: 50px;
    opacity: .4;
}

@keyframes employeeDashboardReveal {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Dashboard summary rail and tab workspace */
.employee-dashboard-body {
    display: grid;
    grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
    gap: var(--space-4);
    align-items: start;
}

.employee-summary-card,
.employee-summary-card>.card {
    min-width: 0;
    margin: 0;
}

.employee-summary-card {
    padding: var(--space-4);
}

.employee-summary-card+.employee-summary-card {
    border-top: var(--border-width) solid var(--border-color);
}

div .employee-summary-card>.card {
    padding: 0;
}

.employee-profile-card {
    overflow: hidden;
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--rounded-md);
    background: var(--bg-primary);
}

.employee-profile-cover {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    height: 90px;
    padding: 12px;
    background: linear-gradient(135deg, #e1f0f1, #c7d0cf);
}

.employee-profile-cover .material-symbols-rounded {
    font-size: 38px;
}

.employee-profile-card-body {
    position: relative;
    padding: 0 var(--space-4) var(--space-4);
}

.employee-profile-avatar-wrap {
    position: relative;
    width: 76px;
    height: 76px;
    margin-top: -38px;
}

.employee-profile-avatar {
    width: 80px;
    height: 80px;
    border: 3px solid var(--bg-primary);
    border-radius: 999px;
    background: var(--light-accent);
    box-shadow: var(--shadow-md);
    object-fit: cover;
}

.employee-profile-online {
    position: absolute;
    right: -1px;
    bottom: 2px;
    width: 14px;
    height: 14px;
    border: 3px solid var(--bg-primary);
    border-radius: 50%;
    background: rgba(var(--success), 1);
}

.employee-profile-offline {
    position: absolute;
    right: -1px;
    bottom: 2px;
    width: 14px;
    height: 14px;
    border: 3px solid var(--bg-primary);
    border-radius: 50%;
    background: rgba(var(--danger), 1);
}

.employee-profile-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-2);
    margin: var(--space-3) 0;
    padding-top: 20px;
}

.employee-profile-heading h2 {
    margin: 0;
    font-size: 16px;
    font-weight: var(--font-semibold);
    line-height: 1;
}

.employee-profile-heading p,
.employee-profile-designation {
    margin: 4px 0 0;
    font-size: 12px;
}

.badge-ui {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    padding: 1px 5px;
    border: var(--border-width) solid rgba(var(--success), 0.2);
    border-radius: var(--rounded-sm);
    background: rgba(var(--success), 0.08);
    color: rgba(var(--success), 1);
    font-size: var(--text-xs);
    margin-top: 5px;
    margin-left: auto;
}

.badge-ui-success {
    background: rgba(var(--success), 0.08);
    color: rgba(var(--success), 1);
    border: var(--border-width) solid rgba(var(--success), 0.2);
}

.badge-ui-danger {
    background: rgba(var(--danger), 0.08);
    color: rgba(var(--danger), 1);
    border: var(--border-width) solid rgba(var(--danger), 0.2);
}

.employee-profile-designation {
    margin-top: 2px;
}

.employee-profile-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    margin-top: var(--space-4);
    padding: var(--space-3) 0;
    border-top: var(--border-width) solid var(--border-color);
    border-bottom: var(--border-width) solid var(--border-color);
}

.employee-profile-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.employee-profile-detail>.material-symbols-rounded {
    color: rgba(var(--info), 1);
    font-size: 21px;
}

.employee-profile-detail-label,
.employee-profile-section-label {
    display: block;
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    opacity: .6;
}

.employee-profile-detail .employee-clock {
    display: flex;
    gap: 2px;
    margin: 3px 0 0;
    color: rgba(var(--foreground), 1);
    font-size: calc(var(--text-sm) + 6px);
    letter-spacing: .04em;
    align-items: center;
}

.employee-profile-manager {
    padding: var(--space-4);
    margin: calc(var(--space-4) * -1);
    background: rgba(var(--foreground), 0.02);
    margin-top: 0;
    border-top: var(--border-width) solid var(--border-color);
}

.employee-profile-manager-row {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 10px;
    min-width: 0;
}

.employee-profile-manager-row img {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 6px;
    object-fit: cover;
}

.employee-profile-manager-row>div {
    min-width: 0;
}

.employee-profile-manager-row strong,
.employee-profile-manager-row div span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.employee-profile-manager-row strong {
    font-size: var(--text-sm);
}

.employee-profile-manager-row div span {
    margin-top: 2px;
    font-size: var(--text-sm);
}

.employee-dashboard-main {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    min-width: 0;
}

.employee-dashboard-tabbar {
    margin: 0;
}

.employee-dashboard-panels {
    min-width: 0;
}

.tab-btn.is-active{
    background: rgba(var(--foreground), 1);
    color: #fff;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.fixed-card {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    width: 100%;
    text-align: center;
    justify-content: center;
}

.employee-month-calendar {
    overflow: visible;
    background: transparent;
}

.employee-month-weekdays,
.employee-month-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
    padding-bottom: 20px;
}

.employee-month-weekdays {
    gap: 2px;
    padding: 0;
    margin-bottom: 10px;
}

.employee-month-weekdays>div {
    font-weight: var(--font-semibold);
    text-align: center;
}

.employee-month-cell {
    min-width: 0;
    min-height: 112px;
    border: var(--border-width) solid rgba(var(--foreground), 0.1);
    border-radius: 14px;
    background: var(--bg-primary);
    transition: background var(--transition-all), box-shadow var(--transition-all);
}

.employee-month-cell:hover {
    position: relative;
    z-index: 1;
    background: rgba(var(--info), 0.035);
    box-shadow: inset 0 0 0 1px rgba(var(--info), 0.18);
}

.employee-month-cell.is-adjacent {
    background: rgba(var(--foreground), 0.018);
}

.employee-month-cell.is-adjacent .employee-month-day {
    color: rgba(var(--foreground), 0.3);
}

.employee-month-cell.is-today {
    background: rgba(var(--foreground), 0.04);
}

.employee-month-cell-inner {
    display: flex;
    flex-direction: column;
    min-height: 112px;
    padding: 9px 10px;
    cursor: pointer;
    overflow: hidden;
}

.employee-month-cell-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 24px;
    margin-bottom: 5px;
}

.employee-month-day {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: rgba(var(--foreground), 0.78);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
}

.employee-month-day.is-today {
    background: rgba(var(--foreground), 1);
    color: var(--bg-primary);
    box-shadow: 0 2px 6px rgba(var(--info), 0.25);
}

.employee-month-task-list {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    overflow: hidden;
}

.employee-month-task {
    min-width: 0;
    padding: 4px 7px;
    overflow: hidden;
    border-left: 2px solid rgba(var(--foreground), 0.4);
    border-radius: var(--rounded-sm);
    background: rgba(var(--foreground), 0.035);
    color: rgba(var(--foreground), 0.82);
    font-size: 11px;
    font-weight: var(--font-medium);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.employee-month-task:hover {
    background: rgba(var(--info), 0.11);
}

.employee-month-more {
    padding: 2px 4px;
    color: rgba(var(--foreground), 1);
    cursor: pointer;
    font-size: 10px;
    font-weight: var(--font-semibold);
}

.employee-week-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
}

.employee-week-day {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 260px;
    padding: 9px;
    border: 2px solid rgba(var(--foreground), 0.1);
    border-radius: 14px;
    background: var(--bg-primary);
    transition: background var(--transition-all), box-shadow var(--transition-all);
}

.employee-week-day:hover {
    background: rgba(var(--info), 0.035);
    box-shadow: inset 0 0 0 1px rgba(var(--info), 0.18);
}

.employee-week-day.is-today {
    border-color: rgba(var(--foreground), 0.8);
    background: rgba(var(--foreground), 0.02);
}

.employee-week-day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding-bottom: 8px;
    border-bottom: var(--border-width) solid var(--border-color);
    cursor: pointer;
}

.employee-week-day-header span {
    color: rgba(var(--foreground), 0.48);
    font-size: 10px;
    font-weight: var(--font-semibold);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.employee-week-day-header strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: rgba(var(--foreground), 0.8);
    font-size: var(--text-xs);
}

.employee-week-day.is-today .employee-week-day-header strong {
    background: rgba(var(--foreground), 0.8);
    color: var(--bg-primary);
}

.employee-week-task-list {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    max-height: 380px;
    padding-top: 9px;
    overflow-y: auto;
}

.employee-week-task {
    min-width: 0;
    padding: 8px;
    border-left: 2px solid rgba(var(--foreground), 0.2);
    border-radius: var(--rounded-sm);
    background: rgba(var(--foreground), 0.035);
    cursor: pointer;
    transition: background var(--transition-all), transform var(--transition-all);
}

.employee-week-task:hover {
    background: rgba(var(--info), 0.09);
    transform: translateY(-1px);
}

.employee-week-task-project,
.employee-week-task-name,
.employee-week-task-meta {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.employee-week-task-project {
    font-size: 12px;
    opacity: .6;
}

.employee-week-task-name {
    margin-top: 4px;
    color: rgba(var(--foreground), 0.9);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
}

.employee-week-task-meta {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    margin-top: 8px;
    padding-top: 6px;
    border-top: var(--border-width) solid var(--border-color);
    color: rgba(var(--foreground), 0.5);
    font-size: 10px;
}

.employee-week-empty {
    padding: 24px 4px;
    color: rgba(var(--foreground), 0.38);
    font-size: var(--text-xs);
    font-style: italic;
    text-align: center;
}

/* Leave balance workspace */
.leave-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-3);
}

.leave-year-control {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-shrink: 0;
}

.leave-balance-board {
    overflow: hidden;
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--rounded-md);
    background: var(--bg-primary);
}

.leave-annual-summary {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: var(--space-4);
    background: rgba(var(--info), 0.055);
    border-bottom: var(--border-width) solid var(--border-color);
}

.leave-summary-icon,
.leave-balance-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 19px;
}

.leave-summary-icon {
    background: rgba(var(--info), 0.12);
    color: rgba(var(--info), 1);
}

.leave-annual-summary>div:nth-child(2) {
    min-width: 0;
}

.leave-annual-summary>div:nth-child(2)>strong {
    display: block;
    color: rgba(var(--foreground), 1);
    font-size: 20px;
    font-weight: var(--font-semibold);
}

.leave-annual-summary small {
    color: rgba(var(--foreground), 0.5);
    font-size: var(--text-xs);
    font-weight: 400;
}

.leave-summary-booked {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-left: auto;
    padding-left: var(--space-4);
    border-left: var(--border-width) solid var(--border-color);
    color: rgba(var(--foreground), 0.48);
    font-size: 14px;
    text-transform: uppercase;
}

.leave-summary-booked strong {
    color: rgba(var(--foreground), 0.82);
    font-size: var(--text-sm);
    text-transform: none;
}

span.material-symbols-rounded.text-xl {
    font-size: 28px !important;
    margin: 0 !important;
}

.leave-balance-list {
    display: flex;
    flex-direction: column;
}

.leave-balance-row {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-3) var(--space-4);
}

.leave-balance-row+.leave-balance-row {
    border-top: var(--border-width) solid var(--border-color);
}

.leave-balance-row>div:first-child {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-width: 0;
}

.leave-balance-row>div:first-child>div:last-child {
    flex: 1;
    min-width: 180px;
}

.leave-balance-row>div:first-child>div:last-child {
    min-width: 0;
}

.leave-balance-row h3 {
    margin: 0;
    color: rgba(var(--foreground), 0.86);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
}

.leave-balance-row h3 small {
    color: rgba(var(--foreground), 0.48);
    font-size: var(--text-xs);
}

.leave-balance-row>div:first-child span,
.leave-eyebrow {
    display: block;
    margin-top: 3px;
    color: rgba(var(--foreground), 0.45);
    font-size: 14px;
}

.leave-icon-sky {
    background: rgba(14, 165, 233, .1);
    color: #0284c7;
}

.leave-icon-blue {
    background: rgba(59, 130, 246, .1);
    color: #2563eb;
}

.leave-icon-emerald {
    background: rgba(16, 185, 129, .1);
    color: #059669;
}

.leave-icon-amber {
    background: rgba(245, 158, 11, .12);
    color: #d97706;
}

.leave-balance-row>div:last-child {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-shrink: 0;
    width: auto !important;
}

.leave-balance-row>div:last-child>div {
    display: flex;
    gap: var(--space-4);
    text-align: right;
    justify-content: flex-end;
    flex: 1;
}

.leave-balance-row>div:last-child>div>div {
    min-width: 58px;
}

.leave-balance-row>div:last-child h3 {
    margin: 0;
    color: rgba(var(--foreground), 0.45);
    font-size: 12px;
    font-weight: var(--font-medium);
}

.leave-balance-row>div:last-child h3+h3 {
    margin-top: 3px;
    color: rgba(var(--foreground), 0.86);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    white-space: nowrap;
}

.leave-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    background: rgba(var(--foreground), .38);
    backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.leave-modal-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.leave-modal-card {
    width: min(500px, 100%);
    overflow: hidden;
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--rounded-md);
    background: var(--bg-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(8px) scale(.98);
    transition: transform .2s ease;
}

.leave-modal-backdrop.is-open .leave-modal-card {
    transform: translateY(0) scale(1);
}

.leave-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4);
    background: rgba(var(--foreground), .96);
    color: var(--bg-primary);
}

.leave-modal-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
}

.leave-modal-header h3 .material-symbols-rounded {
    font-size: 18px;
}

.leave-modal-close {
    border: 0;
    background: transparent;
    color: rgba(var(--bg-primary), .65);
    cursor: pointer;
}

.leave-modal-close:hover {
    color: var(--bg-primary);
}

.leave-modal-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-4);
}

.leave-modal-form label {
    display: block;
    margin-bottom: 5px;
    color: rgba(var(--foreground), .5);
    font-size: 10px;
    font-weight: var(--font-semibold);
    letter-spacing: .07em;
    text-transform: uppercase;
}

.leave-modal-form input,
.leave-modal-form select,
.leave-modal-form textarea {
    width: 100%;
    min-height: var(--h-control);
    padding: 8px 10px;
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--rounded-sm);
    background: rgba(var(--foreground), .025);
    color: rgba(var(--foreground), .86);
    font: inherit;
    font-size: var(--text-xs);
}

.leave-modal-form textarea {
    min-height: 76px;
    resize: vertical;
}

.leave-modal-form input:focus,
.leave-modal-form select:focus,
.leave-modal-form textarea:focus {
    border-color: rgba(var(--info), .6);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--info), .1);
}

.leave-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-2);
    padding-top: var(--space-2);
}

.note-icon span {
    font-size: 16px;
    opacity: .8;
    display: block;
    cursor: pointer;
}

.grid-style {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-3);
    display: grid;
}

.profile-row .label {
    opacity: .6;
}

.profile-row .value {
    font-weight: 600;
}

.modal-footer {
    gap: .25rem;
}

.modal-footer .btn {
    margin: 0;
}

/* --- Chat Bubble Component Styles --- */
.chat-msg-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.5rem;
}

.chat-msg-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    max-width: 80%;
    width: 100%;
}

.chat-bubble {
    background: rgba(var(--foreground), 0.01);
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: 12px 12px 0 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    word-break: break-word;
    width: 100%;
}

.chat-sender-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.chat-sender-name.is-me {
    color: rgba(var(--foreground), 1);
}

.chat-sender-name.is-other {
    color: #3b82f6;
}

.chat-msg-body {
    font-size: 14px;
}

.chat-meta {
    text-align: right;
    margin-top: 0.25rem;
    font-size: 10px;
    line-height: 1.25;
    font-weight: 500;
    opacity: .6;
}

.chat-company {
    font-size: 10px;
    font-style: italic;
    margin-top: 2px;
}

.ag-cell-value:has(input.ag-input),
.ag-cell-value:has(.ag-input-wrapper .ag-input-field-input),
.ag-cell-value:has(.ag-cell-editor) {
    padding: 0;
}

.ag-cell-value .ag-input-wrapper .ag-input-field-input {
    padding: 8px !important;
}

.select2-container--default.select2-container--disabled .select2-selection__choice__remove {
    display: block;
}

.btn-icon {
    width: 30px;
    height: 30px;
    justify-content: center;
    padding: 0;
    border-radius: 999px;
}

.approval-notification .count-info {
    position: absolute;
    top: -4px;
    right: -4px;
    border-radius: 999px;
    width: 14px;
    height: 14px;
    padding: 0;
    font-size: 10px;
    text-align: center;
}

.errorlist {
    display: block;
    font-size: 11px;
    line-height: 1.3;
    margin-top: 3px;
    word-break: break-word;
    white-space: normal;
}

.uppercase-only,
#pano,
#panNo {
    text-transform: uppercase;
}

.table-design .btn.btn-sm {
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 500;
}

.box-border {
    border-left: 4px solid #fff;
    border-top: 1px solid var(--border-color) !important;
    border-right: 1px solid var(--border-color) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.avatar {
    min-width: 32px;
    height: 32px;
    width: 32px;
    border-radius: 50%;
    background: rgba(var(--foreground), 0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
}

.avatar.large {
    min-width: 54px;
    height: 54px;
    width: 54px;
    font-size: x-large;
}

.last_mb-0:last-child {
    margin-bottom: 0;
}

.profile-online .employee-profile-online {
    position: initial;
}

.profile-online {
    margin-left: -2px;
}

.chat-footer {
    border-top: solid 1px var(--border-color);
    margin-inline: calc(var(--space-4) * -1);
    margin-bottom: calc(var(--space-4) * -1);
    padding: var(--space-4);
}

.chat-footer .input-group {
    align-items: stretch;
}

.chat-footer .input-group .searchbox {
    flex: 1;
    min-height: 50px;
    padding-inline: 18px;
}

.chat-footer .input-group .agent-btn {
    height: auto;
    min-width: 100px;
    justify-content: center;
    gap: 10px;
}

.info-card h2 {
    font-size: 22px;
}

.info-card p {
    font-size: var(--text-sm);
    opacity: .8;
}

.grid-3-1-cols {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-2);
}

.grid-2-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
}

.scrollable-dept-list {
    max-height: 320px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.icon_btn {
    width: 38px;
    padding: 0;
    justify-content: center;
}

.icon_btn .material-symbols-rounded {
    font-size: 20px;
}

.ag-picker-field-wrapper {
    min-width: 60px;
    outline: none !important;
    box-shadow: none !important;
    min-height: 26px;
}

small.text-muted {
    font-size: 10px;
    margin-top: 3px;
    display: block;
    font-weight: 500;
    opacity: .6;
}

.badge .material-symbols-rounded {
    font-size: 14px;
}

.btn.grid-btn {
    width: 30px;
    height: 30px;
    justify-content: center;

    &:after {
        display: none;
    }
}

.ag-horizontal-left-spacer,
.ag-horizontal-right-spacer {
    overflow-x: auto;
}

.dropdown-item.active,
.dropdown-item:active {
    color: var(--bs-dropdown-link-hover-color);
    background-color: var(--bs-dropdown-link-hover-bg);
    outline: none;
}

.form-check-input:focus,
.form-check-input:checked {
    border-color: rgba(var(--foreground), 0.2);
    outline: 0;
    box-shadow: none;
}

.form-check-input:checked {
    background-color: rgba(var(--foreground), 1);
}

.form-switch .form-check-input:focus {
    filter: grayscale(1);
}

.table-auto-scroll {
    flex: 1;
    overflow-y: auto;
    min-height: 280px !important;
}

.btn.disabled,
.btn:disabled,
fieldset:disabled .btn {
    border-color: var(--border-color);
    opacity: 1;
    filter: contrast(0.5) contrast(0.5);
}

.page-section{
    background: var(--light-accent); 
    border: 1px solid var(--border-color);
    flex-direction: row;
    flex-wrap: wrap;
}

.page-section h2{
    font-size: 22px;
}

.step-panel {
    margin-top: 5px;
}

.field-title {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    min-width: 0;
    display: block;
}

.cursor-default {
    cursor: default;
}

.page-section p {
    font-size: 14px;
    opacity: .6;
}

.unavailable {
    filter: grayscale(1);
}

.button-group .btn {
    border-radius: 0;
    margin: -1px;
}

.button-group {
    border: 1px solid var(--border-color);
    border-radius: var(--rounded-sm);
    overflow: hidden;
    display: flex;
}

.button-group .btn.active,
.button-group .btn:hover {
    border-color: var(--border-color);
    background-color: rgba(var(--foreground), 0.04);
}

/* responsive media queries */
@media (max-width: 1600px) {
    :root {
        --w-sidebar: 240px;
    }
    .feedback-page {
        zoom: .8;
    }
}

@media (max-width: 1400px) {
    .field-title{
        font-size: 20px;
    }
    .apple-leave {
        --grid-scale: 280px;
    }
    .avatar.large {
        min-width: 40px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    .info-card h2 {
        font-size: 20px;
    }
}

@media (max-width: 1199px) {

    .homeburg-style,
    .sidebar_active .close_icon_menu,
    .md-block,
    :is(.login-page, .signup-page) .breadcrumbs,
    .homeburg {
        display: flex !important;
    }

    .toggle_sidebar {
        display: none;
    }
}

@media (max-width: 1024px) {
    .emp-sidebar-col {
        width: 60px;
        min-width: 60px;
    }

    .emp-sidebar-col .nav-text,
    .emp-sidebar-col span:not(.material-symbols-rounded),
    .emp-sidebar-title {
        display: none;
    }

    div .emp-sidebar-sub,
    div .menus li a {
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .feedback-page {
        zoom: 1;
    }
    .employee-dashboard-body {
        grid-template-columns: 1fr;
    }

    .employee-dashboard-overview {
        grid-template-columns: 1fr 1fr;
    }

    .employee-manager-panel {
        grid-column: 1 / -1;
    }

    .head-top {
        flex-wrap: wrap;
        margin-bottom: 15px;
    }

    .feedback-wrapper {
        grid-template-columns: 1fr;
        max-width: 650px;
    }

    .feedback-visual {
        min-height: auto;
        border-right: none;
        border-bottom: var(--border-width) solid var(--border-color);
    }

    .visual-content {
        padding: 32px;
    }

    .visual-content h1 {
        font-size: 30px;
    }

    .feedback-illustration {
        max-width: 430px;
        margin: 15px auto 0;
    }

    .visual-footer {
        margin-top: 10px;
    }

    .feedback-form-panel {
        padding: 35px;
    }

    .mega-grid {
        padding: var(--space-3);
    }

    .mega-grid .detail-body>.row>.text-end {
        justify-content: flex-start;
        text-align: left !important;
    }

    .mega-grid .detail-body>.row>[class*="col-"] {
        margin-bottom: var(--space-1);
    }
}

@media (max-width: 768px) {
    .employee-dashboard-wrapper {
        padding: var(--space-3);
    }

    .employee-dashboard-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .employee-dashboard-overview,
    .employee-dashboard-content {
        grid-template-columns: 1fr;
    }

    .employee-manager-panel {
        grid-column: auto;
    }

    .employee-dashboard-nav {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .employee-dashboard-nav .tab-btn {
        align-items: center;
        flex-direction: column;
        gap: 4px;
        padding: 8px 4px;
        text-align: center;
    }

    div .emp-page-wrapper .menus {
        flex-direction: row !important;
        align-items: center;
    }

    .emp-page-wrapper {
        flex-direction: column;
    }

    .emp-sidebar-col {
        flex-direction: row;
        width: 100%;
        min-width: 100%;
        height: auto;
        border-right: none;
        border-bottom: var(--border-width) solid var(--border-color);
    }

    .emp-content-col {
        padding: 8px 10px;
    }

    .mega-grid {
        padding: var(--space-2);
    }

    .mega-grid .border-right-dark {
        border-right: 0;
        border-bottom: var(--border-width) solid rgba(var(--foreground), 0.14);
    }

    .mega-grid .row.g-0.text-center.border-dark-1>[class*="col-"] {
        width: 100%;
        border-right: 0;
        border-bottom: var(--border-width) solid rgba(var(--foreground), 0.14);
    }

    .mega-grid .row.g-0.text-center.border-dark-1>[class*="col-"]:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 700px) {

    .employee-month-cell,
    .employee-month-cell-inner {
        min-height: 86px;
    }

    .employee-month-cell-inner {
        padding: 6px;
    }

    .employee-month-weekdays>div {
        padding: 7px 2px;
        font-size: 9px;
    }

    .employee-month-task {
        padding: 3px 4px;
        font-size: 9px;
    }

    .employee-week-grid {
        overflow-x: auto;
        grid-template-columns: repeat(7, minmax(150px, 1fr));
    }

    .employee-week-day {
        min-height: 220px;
    }
}

@media (max-width: 600px) {
    .leave-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .leave-year-control {
        justify-content: space-between;
    }

    .leave-year-control select {
        flex: 1;
    }

    .leave-balance-row {
        grid-template-columns: 1fr;
        align-items: flex-start;
        gap: var(--space-2);
    }

    .leave-balance-row>div:last-child {
        width: 100% !important;
        justify-content: space-between;
    }

    .leave-summary-booked {
        padding-left: var(--space-2);
    }
}

@media (max-width: 576px) {
    .feedback-wrapper {
        border-radius: 18px;
    }

    .visual-content {
        padding: 28px 22px 25px;
    }

    .visual-content h1 {
        margin-top: 20px;
        font-size: 27px;
    }

    .visual-content>p {
        font-size: 12px;
    }

    .feedback-illustration {
        display: none;
    }

    .feedback-form-panel {
        padding: 28px 20px;
    }

    .form-header {
        margin-bottom: 24px;
    }

    .form-header h2 {
        font-size: 18px;
    }

    .form-header p {
        font-size: 11px;
    }

    .feedback-type-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-link {
        align-self: flex-start;
    }

    .action-buttons {
        width: 100%;
    }

    .success-container {
        min-height: 400px;
        padding: 20px;
    }

    .success-actions {
        width: 100%;
        flex-direction: column;
    }
}
