* {
    -webkit-tap-highlight-color: transparent;
}









 

 
* {
    scrollbar-width: thin;
    scrollbar-color: #b6c2d3 #eef2f7;
}

 
*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-track {
    background: #eef2f7;
    border-radius: 10px;
}

*::-webkit-scrollbar-thumb {
    background: #b6c2d3;
    border-radius: 10px;
    border: 2px solid #eef2f7;
    background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
    border: 2px solid #eef2f7;
    background-clip: padding-box;
}

*::-webkit-scrollbar-corner {
    background: transparent;
}

 
body.dark-mode::selection,
body.dark-mode *::selection {
    background: rgba(40, 181, 181, 0.4);
    color: #fff;
}

body.dark-mode,
body.dark-mode * {
    scrollbar-width: thin;
    scrollbar-color: #33415a #101a26;
}

body.dark-mode *::-webkit-scrollbar-track {
    background: #101a26;
}

body.dark-mode *::-webkit-scrollbar-thumb {
    background: #33415a;
    border: 2px solid #101a26;
    background-clip: padding-box;
}

body.dark-mode *::-webkit-scrollbar-thumb:hover {
    background: #47597a;
    border: 2px solid #101a26;
    background-clip: padding-box;
}

body.dark-mode *::-webkit-scrollbar-corner {
    background: #101a26;
}

 
.es-wrap select.es-native,
.es-wrap .es-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -1 !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
}

 

.es-wrap {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 100%;
    vertical-align: middle;
}

 
.es-wrap.accountant-holder-neq,
.es-wrap.form-control-holder,
.es-wrap .form-select,
.es-wrap select {
    box-sizing: border-box;
}

 
.es-trigger {
    --es-border: var(--border-color, #e2e8f0);
    --es-bg: var(--card-bg, #ffffff);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 14px;
    border: 1.5px solid var(--es-border);
    border-radius: 10px;
    background: var(--es-bg);
    color: var(--text-main, #1e293b);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    text-align: right;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.es-trigger:hover {
    border-color: var(--secondary, #28b5b5);
}

.es-trigger:focus-visible,
.es-trigger.open {
    outline: none;
    border-color: var(--secondary, #28b5b5);
    box-shadow: 0 0 0 3px rgba(40, 181, 181, 0.18);
}

.es-trigger:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.es-value {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.es-trigger[data-empty="true"] .es-value {
    color: var(--text-muted, #8b99ad);
    font-weight: 500;
}

 
.es-trigger::after {
    content: "";
    flex: none;
    width: 8px;
    height: 8px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-14%);
    opacity: 0.6;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

 
.es-trigger.open::after {
    transform: rotate(-45deg) translateY(-14%);
    opacity: 1;
}



.filter-bar .es-trigger {
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 8px;
}

.filter-bar .es-trigger::after {
    margin-left: 8px;
    margin-right: 0;
}

body.dark-mode .filter-bar .es-trigger::after {
    margin-left: 8px;
    margin-right: 0;
}

 
.filter-bar .es-list {
    min-width: 180px;
}



.filter-bar .es-wrap {
    width: auto;
    flex: 0 1 360px;
    min-width: 0;
    max-width: none;
    white-space: nowrap;
}

.filter-bar .es-trigger {
    width: 100%;
}

 
@media (max-width: 860px) {
    .filter-bar .es-wrap { flex: 1 1 100%; max-width: none; }
}

.filter-bar { align-items: flex-start; }



.filter-bar-actions {
    margin-inline-start: autoellow;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

 
@media (min-width: 1200px) {
    .filter-bar {
        flex-wrap: nowrap;
        align-items: center;
    }
    .filter-bar .form-input-sm#apptSearchInput,
    .filter-bar input#apptFilterDate {
        flex: 0 0 auto;
    }
}

 
@media (max-width: 1199px) {
    .filter-bar-actions {
        margin-inline-start: 0;
    }
}

 
.es-list {
    position: fixed;
    z-index: 3200;
    max-height: 14em;
    overflow-y: auto;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
    padding: 6px;
    margin: 0;
    list-style: none;
    min-width: 170px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.98) translateY(-4px);
    transition: transform 0.18s ease, opacity 0.18s ease, visibility 0.18s ease;
}

.es-list.open {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
}

 
.es-option {
    padding: 10px 13px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-main, #1e293b);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.es-option:hover,
.es-option.hl {
    background: #f1f5f9;
    color: var(--secondary, #28b5b5);
}

.es-option.disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

 
.es-option .es-check {
    margin-left: auto;
    opacity: 0;
    transform: scale(0.5);
    color: var(--secondary, #28b5b5);
    font-weight: 800;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.es-option.selected .es-check {
    opacity: 1;
    transform: scale(1);
}

.es-option:focus-visible {
    outline: 2px solid var(--secondary, #28b5b5);
    outline-offset: -2px;
}

 
.es-empty {
    padding: 14px;
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
}

 
body.dark-mode .es-list {
    background: #151f2d;
    border-color: #2a3748;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}

body.dark-mode .es-option {
    color: #cbd5e1;
}

body.dark-mode .es-option:hover,
body.dark-mode .es-option.hl {
    background: #1f2c3f;
    color: #28b5b5;
}

body.dark-mode .es-option.selected {
    background: rgba(40, 181, 181, 0.12);
    color: #28b5b5;
}

body.dark-mode .es-option.selected .es-check {
    color: #28b5b5;
}

body.dark-mode .es-empty {
    color: #64748b;
}

 

.modal-overlay.closing,
.modal-overlay-public.closing {
    animation: uiModalFadeOut 0.24s ease forwards;
    pointer-events: none;
}

@keyframes uiModalFadeOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}
