/* 
    loader
*/
.loader {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999;
    background-color: #f1f1f2;
}

#ApplicationContainer>div:first-child:not(:only-child) {
    display: none !important;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

:root {
    --lpx-logo: url('/images/logo/leptonxlite/logo-light-thumbnail.png') !important;
    --lpx-logo-icon: url('/images/logo/leptonxlite/logo-light-thumbnail.png') !important;
    --gradient-green: linear-gradient(to bottom, #1b5e20, #66bb6a);
    --gradient-red: linear-gradient(to bottom, #7f0000, #ef5350);
    --flash-green: linear-gradient(to bottom, rgba(27, 94, 32, 0.45), rgba(102, 187, 106, 0.04));
    --flash-red: linear-gradient(to bottom, rgba(127, 0, 0, 0.45), rgba(239, 83, 80, 0.04));
}

:root .abp-account-layout .lpx-brand-logo {
    --lpx-logo: url('/images/logo/leptonxlite/logo-dark-thumbnail.png') !important;
    background-position: left;
}

.demo-drawer .dxbl-drawer-content {
    font-size: var(--dxbl-drawer-panel-font-size);
    line-height: var(--dxbl-drawer-panel-line-height);
    overflow: auto;
    padding: var(--dxbl-drawer-panel-padding-y) var(--dxbl-drawer-panel-padding-x);
}

.demo-drawer:has(.demo-drawer-menu) {
    --dxbl-drawer-panel-body-padding-x: 0;
    --dxbl-drawer-panel-body-padding-y: 0;
}

.dxbl-menu.demo-drawer-menu {
    --dxbl-menu-top-left-border-radius: 0;
    --dxbl-menu-top-right-border-radius: 0;
    --dxbl-menu-bottom-left-border-radius: 0;
    --dxbl-menu-bottom-right-border-radius: 0;
}

/* XAF toolbar ikon boyutlandirmasi (ERPPROV3 kurali: 16x16 sabit) */
.xaf-toolbar-item-icon {
    max-width: 16px;
    max-height: 16px;
    width: 16px;
    height: 16px;
    filter: none !important;
}

/* Primary toolbar butonu (Kaydet) disabled durumu:
   Fluent temada varsayılan olarak griye dönen arka planı ezerek tema renginin yarı saydam halini uygularız. */
.dxbl-toolbar .dxbl-btn-primary:disabled,
.dxbl-toolbar .dxbl-btn-primary.dxbl-disabled,
.dxbl-btn-primary:disabled,
.dxbl-btn-primary.dxbl-disabled {
    background-color: var(--tx-theme-primary, var(--bs-primary, #0d6efd)) !important;
    border-color: var(--tx-theme-primary, var(--bs-primary, #0d6efd)) !important;
    color: #fff !important;
    opacity: 0.5 !important;
}

/* Disabled toolbar ikon görünümü: Plain mode + RenderStyle None ile DevExpress artık disabled item'ın
   ikonunu (XAF SVG img VE FontAwesome <i>) soluklaştırmıyor → hepsini %50 soluk göster (Sil/Prev/Next
   = img; Undo/Redo/Reset = fa). Böylece disabled durumu ikon üzerinden net anlaşılır. */
.dxbl-toolbar .dxbl-btn:disabled img,
.dxbl-toolbar .dxbl-btn:disabled .fa,
.dxbl-toolbar .dxbl-btn:disabled .fas,
.dxbl-toolbar .dxbl-btn[disabled] img,
.dxbl-toolbar .dxbl-btn[disabled] .fa,
.dxbl-toolbar .dxbl-btn[disabled] .fas,
.dxbl-toolbar-item .dxbl-disabled img,
.dxbl-toolbar-item .dxbl-disabled .fa,
.dxbl-toolbar-item .dxbl-disabled .fas {
    opacity: 0.4 !important;
}

/* Toolbar drill action butonlari — renkli ikonlar (Bootstrap utility yok, custom renk). */
.toolbar-action-branches {
    color: #2563eb !important;
}

/* sube → mavi */
.toolbar-action-vaults {
    color: #16a34a !important;
}

/* kasa → yesil */

/* MDI sekme host'u — app-content bolgesini tam doldurur; sekme seridi sabit, icerik kayar. */
.mdi-host {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.mdi-host .mdi-tabs {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* DevExpress DxTabs ic yapisi: basliklar sabit, content alani esner + kendi scroll'u.
   GERÇEK sınıf adı .dxbl-tabs-content-panel (eski .dxbl-tabs-content/.dxbl-tabs-page DEĞİL —
   onlar hiç eşleşmiyordu). Panel flex:1 1 auto + min-height:auto olduğundan flexbox min-height
   tuzağına düşüp içeriğe (grid) göre şişiyor, parent'ı aşıyor → pager fold altına iniyordu.
   min-height:0 ile panel parent'a sığacak şekilde küçülür; grid kendi iç scroll'unu kullanır. */
.mdi-host .mdi-tabs>.dxbl-tabs-tablist {
    flex: 0 0 auto;
}

.mdi-host .mdi-tabs>.dxbl-tabs-content-panel {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.mdi-host .mdi-tabs>.dxbl-tabs-content-panel>.dxbl-tabs-content {
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

/* Alt sekmelerin (nested DxTabs) de h-100 verilince tam esnemesi için fix */
.tx-tabs-stretched {
    display: flex !important;
    min-height: 0 !important;
    height: 100% !important;
}
.tx-tabs-stretched .dxbl-tabs-tablist {
    flex: 0 0 auto !important;
}
.tx-tabs-stretched .dxbl-tabs-content-panel {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}
.tx-tabs-stretched .dxbl-tabs-content-panel .dxbl-tabs-content {
    flex: 1 1 auto !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

/* Grid'in parent flex-kutusunu doldurması (DrillList/TxGrid/voucher gridleri) — tek kaynak.
   Eski inline "height:100%!important; flex:1 1 auto!important; min-height:0!important" string'inin yerine. */
.tx-grid-fill {
    height: 100% !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

/* Fiş süreç panellerinde salt-okunur değer / net bacak gösterimi — inline stil tekilleştirme (DRY, tek kaynak).
   .tx-readonly-value = salt-okunur alan değeri; .tx-leg-value.pos/.neg = özet bacak (pozitif yeşil / negatif kırmızı). */
.tx-readonly-value { font-weight: 600; }
.tx-readonly-value.danger { color: var(--dxbl-danger, #c62828); }
.tx-leg-value { font-weight: 600; }
.tx-leg-value.pos { color: var(--dxbl-success, #2e7d32); }
.tx-leg-value.neg { color: var(--dxbl-danger, #c62828); }

.mdi-empty {
    padding: 1rem;
    color: #888;
}

.mdi-external-placeholder {
    padding: 1rem;
    color: #555;
}

/* --- Festive Loader (Şenlik) --- */
.festive-loader-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    z-index: 9999;
}

.festive-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.festive-loader .dots {
    display: flex;
    gap: 10px;
}

.festive-loader span {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff007f, #7f00ff);
    animation: festive-bounce 1s infinite alternate;
    animation-delay: calc(0.1s * var(--i));
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.5);
}

@keyframes festive-bounce {
    0% {
        transform: translateY(0) scale(1);
        filter: hue-rotate(0deg);
    }

    100% {
        transform: translateY(-30px) scale(1.2);
        filter: hue-rotate(360deg);
    }
}

.festive-text {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: bold;
    font-size: 1.5rem;
    color: #4a4a4a;
    letter-spacing: 2px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.6;
        transform: scale(0.98);
    }

    50% {
        opacity: 1;
        transform: scale(1.02);
    }

    100% {
        opacity: 0.6;
        transform: scale(0.98);
    }
}

/* --- TradeXpress Style Loader --- */
.int-loader-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #f3f3f4;
    /* Light gray background like XAF */
    z-index: 9999;
}

.int-loader-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.int-loader-circle {
    width: 132px;
    height: 132px;
    background-color: var(--bs-primary, #0d6efd);
    /* Theme primary color */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.int-loader-initials {
    color: white;
    font-size: 52px;
    font-weight: 600;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 1px;
}

.int-loader-spinner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: var(--bs-primary, #0d6efd);
    border-right-color: var(--bs-primary, #0d6efd);
    border-radius: 50%;
    animation: int-spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    z-index: 1;
}

@keyframes int-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.int-loader-text {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.4rem;
    color: #4a4a4a;
}

/* XAF Search Icon */
.xaf-search-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('/images/xaf/action_search.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* XAF Edit Icon */
.xaf-edit-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('/images/xaf/action_edit.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: none !important;
}

/* XAF New Icon */
.xaf-new-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('/images/xaf/action_new.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: none !important;
}

/* XAF Delete Icon */
.xaf-delete-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('/images/xaf/action_delete.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: none !important;
}

/* Edit popup (.crud-edit-popup): özel CSS YOK — saf DevExpress baseline kullanılır.
   Eskiden buradaki override'lar (overflow-x:hidden → overflow-y'yi auto'ya zorlayıp modal-content'e
   yalnız-sağ native scrollbar = sağ>sol asimetri; + width/box-sizing) soruna yol açıyordu. Kaldırıldı.
   Mobil genişlik DxPopup'ın kendi Width="95%"/MaxWidth="720px" ayarıyla zaten responsive.
   Gerekirse mobil için yalnızca minimal/hedefli (asimetri yaratmayan) kural eklenebilir. */

/* Onay diyaloğu (DxWindow) — mobilde "minnacık" çıkmasın. Width="92vw"+MaxWidth zaten viewport-tabanlı;
   bu kurallar dialog kutusunun gerçek genişliğini garantiler ve yatay taşma scrollbar'ını keser. */
.confirm-delete-dialog-window .dxbl-window-dialog {
    width: min(450px, 92vw) !important;
    max-width: 92vw !important;
}

.confirm-delete-dialog-window .dxbl-window-body {
    overflow-x: hidden;
}

/* Liste layout — grid yatay kayınca toolbar onunla SÜRÜKLENMESİN.
   Flexbox tuzağı: grid (flex çocuğu) min-width:auto yüzünden geniş içerikte container'ı zorla
   genişletir → container yatay kayar → toolbar da kayar. Fix: container'ı yatay clip + flex
   çocuklarına min-width:0 (grid kendi iç scrollbar'ıyla kaysın, toolbar sabit kalır). */
.crud-layout-container {
    max-width: 100%;
    overflow-x: hidden;
}

.crud-layout-container>* {
    min-width: 0;
}

/* Layout YÜKSEKLİK zinciri — Bootstrap h-100/d-flex/flex-grow-1/overflow-hidden bu app'te
   ETKİSİZ olduğundan gerçek CSS flex ile kurulur. Yoksa grid içeriğine göre büyüyüp (block)
   mobilde viewport'u aşar ve html/body overflow:hidden yüzünden pager/page-size ekran-dışı
   kalır. Zincir: html(100vh) → .page → .app-body-region → DevExpress drawer → .app-content →
   .crud-layout-container → grid (flex:1 + iç scroll → pager hep dipte sabit). */
.page {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.app-body-region {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
}

.app-body-region .dxbl-drawer {
    height: 100%;
}

.app-content {
    height: 100%;
    overflow: auto;
}

.crud-layout-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.crud-layout-container>.dxbl-grid {
    flex: 1 1 auto;
    min-height: 0;
}

/* Mobil dar ekranda pager içeriği (sayfa butonları + page-size seçici) yatay taşıp
   overflow-x:hidden ile kırpılmasın → sarılsın, hepsi görünür kalsın. */
.dxbl-grid .dxbl-grid-bottom-panel,
.dxbl-grid .dxbl-pager-container {
    flex-wrap: wrap;
    row-gap: 0.25rem;
}

/* ERP ikonları — mask tabanlı (renk currentColor'dan gelir, temayla uyumlu).
   ERPPROV3 paritesi: span'a .erp-icon + .erp-icon-<ad>, SVG wwwroot/images/ altında. */
.erp-icon {
    display: inline-block;
    background-color: currentColor;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

.erp-icon-hamburger {
    -webkit-mask-image: url('images/hamburger.svg');
    mask-image: url('images/hamburger.svg');
}

.erp-icon-settings {
    -webkit-mask-image: url('images/settings.svg');
    mask-image: url('images/settings.svg');
}

/* Kullanıcı avatarı — baş harfler temaya uygun renkli dairede (ERPPROV3 paritesi).
   Renk aktif temayı takip eder: DX Fluent accent → Bootstrap primary → mavi fallback. */
.erp-avatar-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--dxds-color-surface-primary-default-rest, var(--bs-primary, #0d6efd));
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.5px;
    user-select: none;
}

.erp-avatar-initials.erp-avatar-lg {
    width: 44px;
    height: 44px;
    font-size: 0.95rem;
}

/* Avatar butonu — chrome'suz, dokunma dostu hedef. */
.user-avatar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    min-width: 31px;
    min-height: 31px;
}

.user-avatar-btn:focus-visible {
    outline: 2px solid var(--bs-primary, #0d6efd);
    outline-offset: 2px;
    border-radius: 50%;
}

.user-avatar-flyout-body {
    padding: 4px 4px 2px;
}

/* Büyük avatar flyout'ta yatay ortalansın (inline-flex → blok ortalama). */
.user-avatar-flyout-body .erp-avatar-lg {
    display: flex;
    margin-left: auto;
    margin-right: auto;
}

/* Loading Overlay */
.crud-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ─── Ayarlar paneli (tema/boyut/dil) — ERPPRO3'ten portlanıp .settings-panel altına scope'landı ─── */
.settings-panel {
    padding: 4px 0;
}

.settings-panel .themes-menu {
    font-size: 0.875rem;
    overflow: visible;
}

.settings-panel .themes-menu .nav-link {
    font-size: 0.875rem;
}

.settings-panel .themes-menu-tms .nav-link {
    white-space: nowrap;
    font-weight: 400;
    border: 0;
    border-radius: 0;
    padding: .5rem;
    display: flex;
    align-items: center;
    color: var(--bs-body-color);
    text-decoration: none;
    background: 0 0;
}

.settings-panel .themes-menu-tms .nav-link.active {
    background-color: var(--bs-nav-pills-link-active-bg, rgba(13, 110, 253, 0.12));
}

.settings-panel .themes-menu-tms .nav-link:hover {
    background-color: var(--bs-tertiary-bg, rgba(0, 0, 0, 0.04));
}

.settings-panel .themes-menu-tms .nav-item {
    width: 50%;
    margin: 0;
}

.settings-panel .themes-menu .nav-item.theme-group {
    width: 100%;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    color: var(--bs-secondary-color, #6c757d);
}

.settings-panel .themes-menu-tms .nav-item.theme-group {
    border-radius: 0;
}

.settings-panel .themes-menu-tms-hdr,
.settings-panel .themes-fluent-header {
    padding: 0;
}

.settings-panel .themes-menu .nav.nav-pills {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.settings-panel .themes-menu .nav-link .image {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.2);
    margin-right: 8px;
    flex: 0 0 16px;
}

.settings-panel .themes-menu .theme-name {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Özel renk satırı */
.settings-panel .themeswitcher-custom-color {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
}

.settings-panel .themeswitcher-custom-color .themeswitcher-custom-color-button {
    position: relative;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    padding: 0;
}

.settings-panel .themeswitcher-custom-color .themeswitcher-custom-color-button-icon {
    width: 18px;
    height: 18px;
    margin: auto;
    border-radius: 3px;
    border: 1px solid var(--bs-border-color, rgba(0, 0, 0, .15));
}

.settings-panel .themeswitcher-custom-color .themeswitcher-custom-color-button input[type="color"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    border: 0;
    padding: 0;
    background: transparent;
}

/* ── Login page ────────────────────────────────────────────────────────── */

.erp-login-shell {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.erp-login-banner {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .6rem 1rem;
    background: var(--bs-body-bg);
    border-bottom: 1px solid var(--bs-border-color);
}

.erp-login-appname {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--bs-body-color);
    letter-spacing: .05em;
}

.erp-login-main {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow: auto;
}

.erp-login-card {
    width: 410px;
    max-width: 100%;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,.18);
}

.erp-login-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .75rem 1rem 0;
}

.erp-login-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--bs-body-color);
    margin: 0;
}

.erp-login-lang-combo {
    max-width: 170px;
}

.erp-login-card-body {
    padding: 1rem;
}

.erp-login-intro {
    color: var(--bs-body-color);
    font-size: .9rem;
    margin: 0 0 1rem;
}

.erp-login-toolbar {
    padding-top: 1rem;
}

.erp-login-btn {
    width: 100%;
}

.erp-login-error {
    background: #fff5f5;
    border: 1px solid #fca5a5;
    color: #991b1b;
    border-radius: 8px;
    padding: .6rem .9rem;
    font-size: .875rem;
    margin-bottom: 1rem;
}

.erp-login-tenant-error {
    color: #991b1b;
    background: #fff5f5;
    border: 1px solid #fca5a5;
    border-radius: 6px;
    padding: .4rem .7rem;
    font-size: .8rem;
    margin: .25rem 0 0;
}

.erp-login-popup-footer {
    display: flex;
    gap: .5rem;
    justify-content: flex-end;
    padding: .5rem;
}

/* ── Grid linkli hücre butonu (GridLinkColumn) ──
   Projede Bootstrap yüklü olmadığından "btn btn-link" etkisiz → link görünümünü burada veriyoruz.
   DevExpress link stiline yakın: mavi, çerçevesiz/şeffaf, el imleci, hover'da altçizgi. */
.grid-btn-link {
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    font: inherit;
    color: #0d6efd;
    cursor: pointer;
    text-decoration: underline;
}
.grid-btn-link:hover,
.grid-btn-link:focus {
    color: #0a58ca;
}

/* Clickable menu items in sidebar (Madenler, Hurdalar, Nakitler parent menus) underline styling */
.underline-menu-item a,
.underline-menu-item .lpx-menu-item-link,
.underline-menu-item .lpx-menu-item-text,
.underline-menu-item .lpx-menu-link,
.underline-menu-item .lpx-nav-link,
.lpx-sidebar a[href="/cashes"],
.lpx-sidebar a[href="/scraps"],
.lpx-sidebar a[href="/metals"],
.lpx-navbar a[href="/cashes"],
.lpx-navbar a[href="/scraps"],
.lpx-navbar a[href="/metals"],
.lpx-nav-menu a[href="/cashes"],
.lpx-nav-menu a[href="/scraps"],
.lpx-nav-menu a[href="/metals"] {
    text-decoration: underline !important;
}
.underline-menu-item a i,
.underline-menu-item a svg,
.underline-menu-item a img,
.underline-menu-item a .lpx-menu-item-icon,
.underline-menu-item a .lpx-menu-item-icon-wrapper,
.lpx-sidebar a[href="/cashes"] i,
.lpx-sidebar a[href="/scraps"] i,
.lpx-sidebar a[href="/metals"] i,
.lpx-navbar a[href="/cashes"] i,
.lpx-navbar a[href="/scraps"] i,
.lpx-navbar a[href="/metals"] i {
    text-decoration: none !important;
    display: inline-block;
}


/* Custom Toolbar SVG Icons */
/* Base configuration for ALL custom icons */
[class^="custom-icon-"],
[class*=" custom-icon-"] {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    filter: none !important;
    -webkit-filter: none !important;
}

/* Base sizes */
.custom-2x { width: 32px !important; height: 32px !important; }
.custom-lg { width: 24px !important; height: 24px !important; }
.custom-3x { width: 48px !important; height: 48px !important; }
.custom-spin { animation: spin 1.5s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* ========================================================= */
/* COLORFUL ENTITY ICONS (Use Background Image)              */
/* ========================================================= */
.custom-icon-metal { background-image: url('/images/custom/metal.svg'); background-color: transparent; -webkit-mask-image: none; mask-image: none; }
.custom-icon-scrap { background-image: url('/images/custom/scrap.svg'); background-color: transparent; -webkit-mask-image: none; mask-image: none; }
.custom-icon-cash { background-image: url('/images/custom/cash.svg'); background-color: transparent; -webkit-mask-image: none; mask-image: none; }
.custom-icon-convert { background-image: url('/images/custom/convert.svg'); background-color: transparent; -webkit-mask-image: none; mask-image: none; }
.custom-icon-service { background-image: url('/images/custom/service.svg'); background-color: transparent; -webkit-mask-image: none; mask-image: none; }
.custom-icon-future { background-image: url('/images/custom/future.svg'); background-color: transparent; -webkit-mask-image: none; mask-image: none; }
.custom-icon-stone { background-image: url('/images/custom/stone.svg'); background-color: transparent; -webkit-mask-image: none; mask-image: none; }
.custom-icon-jewelry { background-image: url('/images/custom/jewelry.svg'); background-color: transparent; -webkit-mask-image: none; mask-image: none; }
.custom-icon-list { background-image: url('/images/custom/list.svg'); background-color: transparent; -webkit-mask-image: none; mask-image: none; }
.custom-icon-bullion { background-image: url('/images/custom/bullion.svg'); background-color: transparent; -webkit-mask-image: none; mask-image: none; }
.custom-icon-company { background-image: url('/images/custom/company.svg'); background-color: transparent; -webkit-mask-image: none; mask-image: none; }
.custom-icon-branch { background-image: url('/images/custom/branch.svg'); background-color: transparent; -webkit-mask-image: none; mask-image: none; }
.custom-icon-vault { background-image: url('/images/custom/vault.svg'); background-color: transparent; -webkit-mask-image: none; mask-image: none; }
.custom-icon-country { background-image: url('/images/custom/country.svg'); background-color: transparent; -webkit-mask-image: none; mask-image: none; }
.custom-icon-currency-unit { background-image: url('/images/custom/currency-unit.svg'); background-color: transparent; -webkit-mask-image: none; mask-image: none; }
.custom-icon-account { background-image: url('/images/custom/account.svg'); background-color: transparent; -webkit-mask-image: none; mask-image: none; }
.custom-icon-accounts { background-image: url('/images/custom/accounts.svg'); background-color: transparent; -webkit-mask-image: none; mask-image: none; }
.custom-icon-currency-margin { background-image: url('/images/custom/currency-margin.svg'); background-color: transparent; -webkit-mask-image: none; mask-image: none; }
.custom-icon-home { background-image: url('/images/custom/home.svg'); background-color: transparent; -webkit-mask-image: none; mask-image: none; }
.custom-icon-identity { background-image: url('/images/custom/identity.svg'); background-color: transparent; -webkit-mask-image: none; mask-image: none; }
.custom-icon-commodities { background-image: url('/images/custom/commodities.svg'); background-color: transparent; -webkit-mask-image: none; mask-image: none; }
.custom-icon-current-transactions { background-image: url('/images/custom/current-transactions.svg'); background-color: transparent; -webkit-mask-image: none; mask-image: none; }
.custom-icon-definitions { background-image: url('/images/custom/definitions.svg'); background-color: transparent; -webkit-mask-image: none; mask-image: none; }
.custom-icon-financial { background-image: url('/images/custom/financial.svg'); background-color: transparent; -webkit-mask-image: none; mask-image: none; }
.custom-icon-organizations { background-image: url('/images/custom/organizations.svg'); background-color: transparent; -webkit-mask-image: none; mask-image: none; }
.custom-icon-parity { background-image: url('/images/custom/parity.svg'); background-color: transparent; -webkit-mask-image: none; mask-image: none; }
.custom-icon-price-board { background-image: url('/images/custom/price-board.svg'); background-color: transparent; -webkit-mask-image: none; mask-image: none; }
.custom-icon-role { background-image: url('/images/custom/role.svg'); background-color: transparent; -webkit-mask-image: none; mask-image: none; }
.custom-icon-settings { background-image: url('/images/custom/settings.svg'); background-color: transparent; -webkit-mask-image: none; mask-image: none; }
.custom-icon-tenant { background-image: url('/images/custom/tenant.svg'); background-color: transparent; -webkit-mask-image: none; mask-image: none; }
.custom-icon-user { background-image: url('/images/custom/user.svg'); background-color: transparent; -webkit-mask-image: none; mask-image: none; }
/* ========================================================= */
/* ACTION / SYSTEM ICONS (Use Mask + currentColor)           */
/* ========================================================= */
.custom-icon-add { -webkit-mask-image: url('/images/custom/add.svg'); mask-image: url('/images/custom/add.svg'); background-color: currentColor; background-image: none; }
.custom-icon-delete { -webkit-mask-image: url('/images/custom/delete.svg'); mask-image: url('/images/custom/delete.svg'); background-color: currentColor; background-image: none; }
.custom-icon-download { -webkit-mask-image: url('/images/custom/download.svg'); mask-image: url('/images/custom/download.svg'); background-color: currentColor; background-image: none; }
.custom-icon-spinner { -webkit-mask-image: url('/images/custom/spinner.svg'); mask-image: url('/images/custom/spinner.svg'); background-color: currentColor; background-image: none; }
.custom-icon-comments { -webkit-mask-image: url('/images/custom/comments.svg'); mask-image: url('/images/custom/comments.svg'); background-color: currentColor; background-image: none; }
.custom-icon-report { -webkit-mask-image: url('/images/custom/report.svg'); mask-image: url('/images/custom/report.svg'); background-color: currentColor; background-image: none; }
.custom-icon-save { -webkit-mask-image: url('/images/custom/save.svg'); mask-image: url('/images/custom/save.svg'); background-color: currentColor; background-image: none; }
.custom-icon-sliders { -webkit-mask-image: url('/images/custom/sliders.svg'); mask-image: url('/images/custom/sliders.svg'); background-color: currentColor; background-image: none; }
.custom-icon-back { -webkit-mask-image: url('/images/custom/back.svg'); mask-image: url('/images/custom/back.svg'); background-color: currentColor; background-image: none; }
.custom-icon-swap { -webkit-mask-image: url('/images/custom/swap.svg'); mask-image: url('/images/custom/swap.svg'); background-color: currentColor; background-image: none; }
.custom-icon-address-card { -webkit-mask-image: url('/images/custom/address-card.svg'); mask-image: url('/images/custom/address-card.svg'); background-color: currentColor; background-image: none; }
.custom-icon-check { -webkit-mask-image: url('/images/custom/check.svg'); mask-image: url('/images/custom/check.svg'); background-color: currentColor; background-image: none; }
.custom-icon-check-circle { -webkit-mask-image: url('/images/custom/check-circle.svg'); mask-image: url('/images/custom/check-circle.svg'); background-color: currentColor; background-image: none; }
.custom-icon-refresh { -webkit-mask-image: url('/images/custom/refresh.svg'); mask-image: url('/images/custom/refresh.svg'); background-color: currentColor; background-image: none; }
.custom-icon-warning { -webkit-mask-image: url('/images/custom/warning.svg'); mask-image: url('/images/custom/warning.svg'); background-color: currentColor; background-image: none; }
.custom-icon-percent { -webkit-mask-image: url('/images/custom/percent.svg'); mask-image: url('/images/custom/percent.svg'); background-color: currentColor; background-image: none; }
.custom-icon-history { -webkit-mask-image: url('/images/custom/history.svg'); mask-image: url('/images/custom/history.svg'); background-color: currentColor; background-image: none; }
.custom-icon-close { -webkit-mask-image: url('/images/custom/close.svg'); mask-image: url('/images/custom/close.svg'); background-color: currentColor; background-image: none; }
.custom-icon-eye { -webkit-mask-image: url('/images/custom/eye.svg'); mask-image: url('/images/custom/eye.svg'); background-color: currentColor; background-image: none; }
.custom-icon-eye-off { -webkit-mask-image: url('/images/custom/eye-off.svg'); mask-image: url('/images/custom/eye-off.svg'); background-color: currentColor; background-image: none; }
.custom-icon-sign-out { -webkit-mask-image: url('/images/custom/sign-out.svg'); mask-image: url('/images/custom/sign-out.svg'); background-color: currentColor; background-image: none; }
.custom-icon-server { -webkit-mask-image: url('/images/custom/server.svg'); mask-image: url('/images/custom/server.svg'); background-color: currentColor; background-image: none; }
.custom-icon-permission { -webkit-mask-image: url('/images/custom/permission.svg'); mask-image: url('/images/custom/permission.svg'); background-color: currentColor; background-image: none; }
.custom-icon-bug { -webkit-mask-image: url('/images/custom/bug.svg'); mask-image: url('/images/custom/bug.svg'); background-color: currentColor; background-image: none; }
.custom-icon-copy { -webkit-mask-image: url('/images/custom/copy.svg'); mask-image: url('/images/custom/copy.svg'); background-color: currentColor; background-image: none; }
.custom-icon-chevron-down { -webkit-mask-image: url('/images/custom/chevron-down.svg'); mask-image: url('/images/custom/chevron-down.svg'); background-color: currentColor; background-image: none; }
.custom-icon-lightbulb { -webkit-mask-image: url('/images/custom/lightbulb.svg'); mask-image: url('/images/custom/lightbulb.svg'); background-color: currentColor; background-image: none; }
.custom-icon-edit { -webkit-mask-image: url('/images/custom/edit.svg'); mask-image: url('/images/custom/edit.svg'); background-color: currentColor; background-image: none; }
.custom-icon-search { -webkit-mask-image: url('/images/custom/search.svg'); mask-image: url('/images/custom/search.svg'); background-color: currentColor; background-image: none; }
.custom-icon-more { -webkit-mask-image: url('/images/custom/more.svg'); mask-image: url('/images/custom/more.svg'); background-color: currentColor; background-image: none; }
.custom-icon-info { -webkit-mask-image: url('/images/custom/info.svg'); mask-image: url('/images/custom/info.svg'); background-color: currentColor; background-image: none; }
.custom-icon-eraser { -webkit-mask-image: url('/images/custom/eraser.svg'); mask-image: url('/images/custom/eraser.svg'); background-color: currentColor; background-image: none; }
.custom-icon-maximize { -webkit-mask-image: url('/images/custom/maximize.svg'); mask-image: url('/images/custom/maximize.svg'); background-color: currentColor; background-image: none; }
.custom-icon-minimize-corner { -webkit-mask-image: url('/images/custom/minimize-corner.svg'); mask-image: url('/images/custom/minimize-corner.svg'); background-color: currentColor; background-image: none; }
.custom-icon-restore-min { -webkit-mask-image: url('/images/custom/restore-min.svg'); mask-image: url('/images/custom/restore-min.svg'); background-color: currentColor; background-image: none; }
.custom-icon-minimize { -webkit-mask-image: url('/images/custom/minimize.svg'); mask-image: url('/images/custom/minimize.svg'); background-color: currentColor; background-image: none; }
/* Fullscreen Popup overrides */
.fullscreen-popup {
    width: 100vw !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
}
.fullscreen-popup > .dxbs-popup {
    width: 100vw !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
}
.fullscreen-popup > .dxbs-popup .modal-content {
    border-radius: 0 !important;
    border: none !important;
    height: 100% !important;
}
/* Minimized Popup */
.minimized-popup {
    width: 350px !important;
    height: auto !important;
    min-width: 350px !important;
    min-height: 0 !important;
    z-index: 1055 !important;
}

.minimized-popup .dxbs-popup-footer,
.minimized-popup .modal-body,
.minimized-popup .modal-footer,
.minimized-popup .dxbl-popup-body,
.minimized-popup .dxbl-popup-content,
.minimized-popup .dxbl-popup-footer {
    display: none !important;
}












}












.minimized-popup .dxbl-popup-header,
.minimized-popup .modal-header {
    padding-top: 0.2rem !important;
    padding-bottom: 0.2rem !important;
    min-height: 32px !important;
}


.minimized-popup .dxbl-popup-content-panel {
    padding: 0 !important;
}

/* DevExpress Popup Header flex container stretching */
.dxbl-popup-header .dxbl-modal-header-default,
.crud-edit-popup .dxbl-modal-header-default {
    display: flex !important;
    width: 100% !important;
    align-items: center !important;
}

.dxbl-popup-header .dxbl-modal-header-default > :first-child,
.crud-edit-popup .dxbl-modal-header-default > :first-child {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: 100% !important;
}
