body:not(.erp-login-body){
background:var(--erp-bg);
font-size:15px;
color:var(--erp-text);
font-family:'Segoe UI',sans-serif;
overflow-x:hidden;
}

/* =====================================================
PAGE LOADER
===================================================== */

.erp-page-loader{
position:fixed;
inset:0;
background:rgba(255,255,255,.65);
display:flex;
align-items:center;
justify-content:center;
z-index:99999;
opacity:0;
visibility:hidden;
transition:.2s ease;
}

.erp-page-loader.active{
opacity:1;
visibility:visible;
}

.erp-loader-spinner{
width:36px;
height:36px;
border:3px solid var(--erp-border);
border-top-color:var(--erp-primary);
border-radius:50%;
animation:erpSpin .7s linear infinite;
}

@keyframes erpSpin{
to{transform:rotate(360deg);}
}

/* =====================================================
AUTOFILL FIX
===================================================== */

input:-webkit-autofill{
-webkit-text-fill-color:var(--erp-text);
-webkit-box-shadow:0 0 0 1000px #fff inset;
transition:background-color 9999s ease-in-out 0s;
}

/* =====================================================
FLOAT BUTTON
===================================================== */

.erp-fab{
position:fixed;
bottom:20px;
right:20px;
width:52px;
height:52px;
border-radius:50%;
background:var(--erp-primary);
color:#fff;
display:flex;
align-items:center;
justify-content:center;
font-size:22px;
box-shadow:0 4px 14px rgba(0,0,0,.25);
z-index:999;
transition:.2s ease;
}

.erp-fab:hover{
transform:scale(1.05);
box-shadow:0 6px 18px rgba(0,0,0,.3);
}

/* =====================================================
GRID SELECT FIX
===================================================== */
.erp-grid .select2-container--default .select2-selection--single{
height:34px!important;
min-height:34px!important;
}

/* =====================================================
DELETE BUTTON OPACITY
===================================================== */

.erp-grid-delete,
.btn-delete,
button[data-action="delete"]{
opacity:.5;
transition:opacity .2s ease;
}

.erp-grid-delete:hover,
.btn-delete:hover,
button[data-action="delete"]:hover{
opacity:1;
}

/* =====================================================
SMALL MOBILE UI IMPROVEMENTS
===================================================== */

@media(max-width:768px){

.erp-fab{
bottom:16px;
right:16px;
width:48px;
height:48px;
font-size:20px;
}

}



/* =====================================================
SELECT2 GLOBAL ERP STYLE
===================================================== */

/* hide native select */
select.select2{
visibility:hidden;
}

.select2-hidden-accessible{
visibility:visible;
}

/* container */

.select2-container{
width:100%!important;
max-width:100%;
font-size:13px;
z-index:1025!important;
}

/* modal support */
.modal .select2-container{
z-index:1060!important;
}

/* =====================================================
SELECTION FIELD
===================================================== */

.select2-container--default .select2-selection--single{
height:var(--erp-control-height)!important;
min-height:var(--erp-control-height)!important;
border:1px solid var(--erp-border);
border-radius:6px;
background:#fff;
display:flex;
align-items:center;
padding:0 10px;
box-sizing:border-box;
}

/* text */

.select2-container--default .select2-selection__rendered{
line-height:var(--erp-control-height)!important;
padding-left:0!important;
font-size:13px;
color:var(--erp-text);
}


/* arrow */

.select2-container--default .select2-selection__arrow{
height:var(--erp-control-height)!important;
right:6px;
}

/* focus */

.select2-container--focus .select2-selection{
border-color:var(--erp-primary);
box-shadow:0 0 0 2px rgba(37,99,235,.10);
}

/* disabled */

.select2-container--disabled .select2-selection{
background:#f3f4f6;
cursor:not-allowed;
}

/* =====================================================
DROPDOWN
===================================================== */

.select2-dropdown{
border-radius:6px;
border:1px solid var(--erp-border);
background:#fff;
font-size:13px;
box-shadow:0 8px 20px rgba(0,0,0,.15);
z-index:1035!important;
}

/* search box */

.select2-search__field{
font-size:13px;
padding:4px;
}

/* results */

.select2-results__option{
padding:6px 8px;
font-size:13px;
}

/* hover */

.select2-results__option--highlighted{
background:var(--erp-primary-light);
color:#111827;
}

/* selected */

.select2-results__option[aria-selected=true]{
background:#eef2ff;
}

/* open state */

.select2-container--open{
z-index:1055!important;
}


