.f-outline{
    position: relative;
}
.forminput{
    background-color: white;
    font-size: 13px !important;
    font-family: Arial, Helvetica, sans-serif !important;
}
.formlabel{
    font-size: 13px;
    font-family: Arial, Helvetica, sans-serif !important;
    position: absolute;
    left: 0.2rem;
    top: 0.5rem;
    padding: 0 0.5rem;
    color: black;
    cursor: text;
    transition: top 200ms ease-in, left 200ms ease-in, font-size 200ms ease-in;
}
.forminput:focus{
    background-color: white;
    border-color: #0d1a80;
    border-width: 2px !important;
    box-shadow: none !important;
}
.forminput:focus ~ .form-label,
.forminput:not(:placeholder-shown).forminput:not(:focus)
~.formlabel{
    top: -0.8rem;
    font-size: 0.8rem;
    left: 0.4rem;
    background-color: white;
    color: #0d1a80;
}
input:-webkit-autofill,
input:-webkit-autofill:focus{
    transition: background-color 600000s 0s, color 600000s 0s;
}
input[data-autocompleted]{
    background-color: transparent !important;
}
input, select{
    color: black;
    border-color: black;
    outline: none;
}
.fa-circle-xmark{
    color: red;
}
.chosen-container-single .chosen-single{
    font-size: 13px !important;
    font-family: Arial, Helvetica, sans-serif !important;
    height: 32px !important;
    line-height: 32px !important;
}
.chosen-container-multi{
    font-size: 13px !important;
    font-family: Arial, Helvetica, sans-serif !important;
    height: auto !important;
}
.chosen-single:hover,
.chosen-container-multi,
.chosen-container-active .chosen-choices,
.chosen-container-active .chosen-single,
.chosen-container-active.chosen-with-drop .chosen-single{
    border: 1px solid #dee2e6;
    box-shadow: none !important;
}
form .chosen-container{
    border: 1px solid #0d1a80;
    border-radius: 4px !important;
    height: auto !important;
}
#item_chosen.chosen-container-single .chosen-drop,
#search_by_item_chosen.chosen-container-single .chosen-drop{
    width: 100%;
}
#item_chosen .st-item-chosen-header,
#search_by_item_chosen .st-item-chosen-header{
    display: grid;
    grid-template-columns: minmax(0, 1fr) 70px;
    align-items: center;
    column-gap: 10px;
    width: 100%;
    box-sizing: border-box;
    padding: 5px 8px 5px 10px;
    border-bottom: 1px solid #dee2e6;
    background-color: #fff;
    font-size: 13px;
    font-family: Arial, Helvetica, sans-serif;
}
#item_chosen .st-item-chosen-header .st-item-desc,
#search_by_item_chosen .st-item-chosen-header .st-item-desc{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    color: #999;
}
#item_chosen .chosen-single.chosen-default,
#search_by_item_chosen .chosen-single.chosen-default{
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 70px;
    align-items: center;
    column-gap: 10px;
    padding-right: 26px;
}
#item_chosen .chosen-single.chosen-default > span:first-child,
#search_by_item_chosen .chosen-single.chosen-default > span:first-child{
    margin-right: 0;
    min-width: 0;
    color: #999;
}
#item_chosen .chosen-results,
#search_by_item_chosen .chosen-results{
    width: 100%;
    padding-right: 4px;
}
#item_chosen .chosen-results li.active-result,
#search_by_item_chosen .chosen-results li.active-result{
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 70px;
    align-items: center;
    column-gap: 10px;
    width: 100%;
    box-sizing: border-box;
    padding-right: 8px;
}
#item_chosen .st-item-desc,
#search_by_item_chosen .st-item-desc{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
#item_chosen .st-item-qty,
#item_chosen .st-item-qty-header,
#search_by_item_chosen .st-item-qty,
#search_by_item_chosen .st-item-qty-header{
    width: 70px;
    text-align: right;
    font-weight: bold;
    color: #0d1a80;
    font-size: 13px;
    font-family: Arial, Helvetica, sans-serif;
}
#item_chosen .chosen-single .st-item-qty-header,
#search_by_item_chosen .chosen-single .st-item-qty-header{
    margin-right: 0;
}
#item_chosen .chosen-results li.highlighted .st-item-qty,
#search_by_item_chosen .chosen-results li.highlighted .st-item-qty{
    color: #fff;
}
.select-border{
    border: 1px solid;
    border-radius: 0.375rem;
    width: 101%;
    height: 36px;
    margin-left: -1px;
    margin-top: -34px;
}
.form-control:focus, .form-control-sm:focus{
    border-color: #0d1a80;
    border-width: 2px !important;
    box-shadow: none !important;
}
.defaultInput{
    border: 1px solid #0d1a80;
}
.category-select[value='0'],
.category-select[value='1']{
    color: red;
}
#loading{
    color: #0d1a80;
    line-height: 35vh;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100000;
    width: 100vw;
    height: 100vh;
    background-color: rgba(192, 192, 192, 0.85);
    background-repeat: no-repeat;
    background-position: center;
    text-align: center;
    user-select: none;
    cursor: wait;
}
div.dataTables_processing{
    margin-top: 20px !important;
    zoom: 150%;
}
#btnServer, #btnBarcode, #btnCustomSearch, #btnEmailConfig{
    font-size: 30px;
    color: white;
    cursor: pointer;
}
#btnServer:hover, #btnBarcode:hover, #btnCustomSearch:hover, #btnEmailConfig:hover{
    color: #0dcaf0;
}
#btnReport{
    zoom: 90%;
    background: white;
    border-color: #0d1a80;
    color: #0d1a80;
    height: 30px !important;
    font-size: 12px !important;
    padding: 0px;
}
#btnReport:hover{
    background: #dc3545;
    border-color: #0d1a80;
    color: white;
}
#btnRefresh:hover{
    opacity: .75;
}
a, a:hover, img, thead,
.popover-header, .popover-body, .xD{
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-select: none;
    text-decoration: none;
}
nav{
    background-color: #0d1a80;
}
.n{
    color: white !important;
    font-weight: bold;
    margin-left: 2px;
    margin-right: 2px;
}
.buttons-excel{
    display: none !important;
}
.card{
    border-color: #0d1a80;
    border-radius: 0px;
}
.card-header{
    background-color: #0d1a80;
    border-color: #0d1a80;
    border-radius: 0px !important;
    color: white;
    font-weight: bold;
    text-align: center;
}
#lblChangePassword:hover{
    color: #0d6efd !important;
}
.out:hover{
    background-color: #dc3545 !important;
}
.nav-item>a:hover{
    background-color: #0d6efd;
    color:white !important;
    border:0px;
}
.active{
    background-color: white;
    color: #0d1a80 !important;
}
.bg-default{
    background-color: #0d1a80 !important;
    color:white !important;
}
.text-default{
    color: #0d1a80 !important;
}
.text-default:hover{
    color: #0d6efd !important;
}
.bp{
    font-weight: bold !important;
    background-color: #0d1a80 !important;
    border-color: #0d1a80 !important;
    color: white !important;
}
.btn{
    font-weight: bold !important;
}
.btn-primary:hover{
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: white !important;
}
.btn-success:hover{
    background-color: #198754 !important;
    border-color: #198754 !important;
    color: white !important;
}
.btn-danger, .btn-danger:hover{
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
}
.btn[disabled]{
    cursor: not-allowed;
    pointer-events: auto;
}
table.table-bordered > thead > tr > th{
    border: 1px solid black !important;
}
table.table-bordered > tbody > tr > td{
    border: 1px solid black !important;
}
table.table-bordered > tfoot > tr > th{
    border: 1px solid black !important;
}
.close{
    zoom: 80%;
    color: white;
    opacity: 100%;
}
.swal2-icon.swal2-warning {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
    font-weight: bold !important;
}
.swal2-confirm, .swal2-deny, .swal2-cancel{
    text-transform: uppercase;
}
.swal2-container{
    zoom: 80% !important;
}
.swal2-html-container{
    zoom: 120% !important;
}
.swal2-content{
    zoom: 120% !important;
}
.swal2-actions{
    zoom: 120% !important;
}
.swal-mid{
    width: 700px !important;
}
.swal-wide{
    width: 900px !important;
}
.switch{
    position: relative;
    display: inline-block;
    width: 110px;
    height: 34px;
    user-select: none;
}
.switch input{
    display: none;
}
.slider{
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ca2222;
    -webkit-transition: .4s;
    transition: .4s;
}
.slider:before{
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}
input:checked + .slider{
    background-color: #2ab934;
}
input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}
input:checked + .slider:before{
    -webkit-transform: translateX(75px);
    -ms-transform: translateX(75px);
    transform: translateX(75px);
}
.on{
    display: none;
    color: white;
    position: absolute;
    transform: translate(-50%,-50%);
    top: 50%;
    left: 40%;
    font-size: 13px;
    font-weight: bold;
}
.off{
    color: white;
    position: absolute;
    transform: translate(-50%,-50%);
    top: 50%;
    left: 60%;
    font-size: 13px;
    font-weight: bold;
}
input:checked + .slider .on{
    display: block;
}
input:checked + .slider .off{
    display: none;
}
.slider.round{
    border-radius: 34px;
}
.slider.round:before{
    border-radius: 50%;
}
.spChar{
    text-transform: uppercase;
}
::-webkit-input-placeholder{
    text-transform: initial !important;
}
:-moz-placeholder{
    text-transform: initial !important;
}
::-moz-placeholder{
    text-transform: initial !important;
}
:-ms-input-placeholder{
    text-transform: initial !important;
}
.validation{
    display:none;
    background-color: #dc3545;
    color:white;
    margin-top: 13px;
    margin-bottom: -2px;
    border-radius: 5px;
    padding: 5px;
    position:relative;
    cursor:not-allowed;
    font-size: 15px;
    font-weight: bold !important;
    width: 185px !important;
}
.validation:before{
    position: absolute;
    content:'';
    height: 15px;
    width: 15px;
    background-color: #dc3545;
    top:-6px;
    transform: rotate(45deg);
    border-bottom-right-radius: 20px;
}
.requiredValidation{
    display: inline;
    background-color: #dc3545;
    color:white;
    margin-top: 13px;
    margin-bottom: -2px;
    border-radius: 5px;
    padding: 5px;
    position: relative;
    cursor: not-allowed;
    font-size: 15px;
}
.requiredValidation:before{
    position: absolute;
    content: '';
    height: 15px;
    width: 15px;
    background-color: #dc3545;
    top:-6px;
    transform: rotate(45deg);
    border-bottom-right-radius: 20px;
}
input[type="search"]::-webkit-search-cancel-button{
    -webkit-appearance: none;
    height: 14px;
    width: 14px;
    display: block;
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAn0lEQVR42u3UMQrDMBBEUZ9WfQqDmm22EaTyjRMHAlM5K+Y7lb0wnUZPIKHlnutOa+25Z4D++MRBX98MD1V/trSppLKHqj9TTBWKcoUqffbUcbBBEhTjBOV4ja4l4OIAZThEOV6jHO8ARXD+gPPvKMABinGOrnu6gTNUawrcQKNCAQ7QeTxORzle3+sDfjJpPCqhJh7GixZq4rHcc9l5A9qZ+WeBhgEuAAAAAElFTkSuQmCC);
    background-repeat: no-repeat;
    background-size: 14px;
}
.toast{
    color: white;
    background-color: #dc3545;
    zoom: 120% !important;
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 99999 !important;
    box-shadow: none !important;
}
.item-type-dropdown{
    position: relative;
    width: 100%;
}
.item-type-select{
    color: #212529;
    font-weight: 400;
    text-align: left;
    cursor: pointer;
}
.item-type-select.text-primary{
    color: #0d6efd !important;
    font-weight: 700;
}
.item-type-select.text-success{
    color: #198754 !important;
    font-weight: 700;
}
.item-type-menu{
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,.1);
    overflow: hidden;
}
.item-type-dropdown.open .item-type-menu{
    display: block;
}
.item-type-option{
    display: block;
    width: 100%;
    border: 0;
    background: #fff;
    padding: 0.35rem 0.5rem;
    text-align: left;
    color: #212529;
    font-weight: 400;
    cursor: pointer;
}
.item-type-option:hover{
    background: #f8f9fa;
}
.item-type-option.text-primary{
    color: #0d6efd !important;
    font-weight: 700;
}
.item-type-option.text-success{
    color: #198754 !important;
    font-weight: 700;
}
.stocks_field{
    position: static;
    width: 350px;
    border-width: thin;
}
/* Guest / Login header (desktop defaults) */
.guest-header{
    display: block;
    text-decoration: none;
}
.guest-logo-wrap{
    text-align: center;
    padding: 2.5rem 1rem;
}
.guest-logo{
    display: inline-block;
    width: auto;
    max-width: 100%;
    height: auto;
    zoom: 120%;
}
.guest-title-bar{
    text-align: center;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #0d1a80;
    font-size: 30px;
    font-weight: bold;
    padding: 0.75rem 1rem;
    line-height: 1.25;
}
.login-card-header{
    height: 28px;
    position: relative;
}
.login-user-icon{
    font-size: 4rem;
    padding: 1px;
    margin-top: -30px;
    background-color: ghostwhite;
    color: #0d1a80;
    display: inline-block;
    line-height: 1;
}
.login-error{
    zoom: 80%;
    color: red;
}
.login-options{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.login-show-password{
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.login-show-password #show_password_text{
    font-size: 14px;
}
.login-actions{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}
.login-forgot{
    font-weight: bold;
    cursor: pointer;
}
.login-barcode{
    zoom: 200%;
}
/* Mobile login / Assets shell — driven by server-side Agent (body.is-mobile) */
html:has(body.is-mobile),
body.is-mobile{
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    touch-action: pan-x pan-y;
    /* Reduce browser pull-to-refresh / overscroll navigation (Chrome/Android; partial Safari) */
    overscroll-behavior: none;
    overscroll-behavior-y: none;
    overscroll-behavior-x: none;
}

/* Assets module header */
body.is-mobile .assets-header{
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(13, 26, 128, 0.12);
}
body.is-mobile .assets-header-logo{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 0.75rem 0.65rem;
    background-color: #fff;
    border-bottom: 1px solid rgba(13, 26, 128, 0.12);
}
body.is-mobile .assets-header-logo a{
    display: block;
    width: 100%;
    max-width: 100%;
    line-height: 0;
}
body.is-mobile .assets-logo-img{
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
}
body.is-mobile .assets-header-bar{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    background-color: #0d1a80;
    color: #fff;
}
body.is-mobile .assets-user-profile{
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    flex: 1;
}
body.is-mobile .assets-user-icon{
    font-size: 2.25rem;
    line-height: 1;
    color: #fff;
    flex-shrink: 0;
}
body.is-mobile .assets-user-meta{
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}
body.is-mobile .assets-user-name{
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.is-mobile .assets-user-email{
    font-size: 11px;
    opacity: 0.9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.is-mobile .assets-user-role{
    font-size: 11px;
    font-weight: 700;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.is-mobile .assets-user-company{
    font-weight: 500;
    opacity: 0.9;
}
body.is-mobile .assets-logout-btn{
    flex-shrink: 0;
    background-color: #fff !important;
    color: #0d1a80 !important;
    border: 0 !important;
    border-radius: 6px;
    min-height: 36px;
    padding: 0.35rem 0.75rem;
    font-size: 12px;
    white-space: nowrap;
}
body.is-mobile .assets-logout-btn:active,
body.is-mobile .assets-logout-btn:focus{
    background-color: #e9ecef !important;
    color: #0d1a80 !important;
}
body.is-mobile main.assets-main{
    padding-top: 0.75rem !important;
    padding-bottom: 1.5rem !important;
}
body.is-mobile #app.assets-app{
    height: auto !important;
    min-height: auto !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
}
body.is-mobile .assets-page{
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding-top: 0.5rem;
}
body.is-mobile .assets-page-inner{
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
body.is-mobile .assets-search-wrap{
    width: 100%;
    display: flex;
    align-items: stretch;
}
body.is-mobile .assets-search-wrap .assets-search-input{
    border: 2px solid #0d1a80 !important;
    border-right: 0 !important;
    border-radius: 8px 0 0 8px;
    font-size: 16px !important;
    min-height: 52px;
    padding: 0.75rem 0.9rem;
    flex: 1 1 auto;
}
body.is-mobile .assets-search-btn{
    min-width: 52px;
    min-height: 52px;
    border-radius: 0 8px 8px 0;
    border: 2px solid #0d1a80;
    border-left: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 1.15rem;
}
body.is-mobile .assets-search-input{
    border: 2px solid #0d1a80 !important;
    border-radius: 8px;
    font-size: 16px !important;
    min-height: 52px;
    padding: 0.75rem 0.9rem;
}
body.is-mobile .assets-add-stock-btn{
    width: 100%;
    min-height: 52px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
}

/* Assets ADD STOCK modal */
body.is-mobile .assets-addstock-dialog{
    margin: 0;
    max-width: 100%;
    height: 100%;
}
body.is-mobile #addStock.modal,
body.is-mobile #inputSerialModal.modal{
    z-index: 2000;
}
body.is-mobile #stockDetailsModal.modal,
body.is-mobile #partsAssembly.modal,
body.is-mobile #editSerialModal.modal{
    z-index: 2000;
}
body.is-mobile #assetsHistoryModal.modal{
    z-index: 2100;
}
body.is-mobile #addStock .modal-dialog,
body.is-mobile #inputSerialModal .modal-dialog{
    margin: 0;
    max-width: 100%;
    width: 100%;
    height: 100%;
    min-height: 100%;
}
body.is-mobile #stockDetailsModal .modal-dialog,
body.is-mobile #partsAssembly .modal-dialog{
    margin: 0;
    max-width: 100%;
    width: 100%;
    height: 100%;
    min-height: 100%;
}
body.is-mobile #assetsHistoryModal .modal-dialog{
    margin: 0;
    max-width: 100%;
    width: 100%;
    height: 100%;
    min-height: 100%;
}
body.is-mobile .assets-edit-serial-dialog{
    margin: 0.75rem;
    max-width: calc(100% - 1.5rem);
}
body.is-mobile .assets-stock-details-body .formreadonly,
body.is-mobile .assets-stock-details-body .formfillable{
    background-color: white !important;
    border-color: #0d1a80;
}
body.is-mobile .assets-stock-details-body .stock-details-field-with-edit{
    position: relative;
}
body.is-mobile .assets-stock-details-body .stock-details-input-with-edit{
    padding-right: 2.85rem;
}
body.is-mobile .assets-stock-details-body .btnEditSerialInline{
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    padding: 0;
    line-height: 1;
    z-index: 2;
}
body.is-mobile .assets-stock-details-footer{
    flex-wrap: wrap;
}
body.is-mobile .assets-stock-details-footer .btn,
body.is-mobile .assets-stock-details-footer a.btn{
    flex: 1 1 calc(50% - 0.35rem);
    min-width: calc(50% - 0.35rem);
}
body.is-mobile .assets-parts-meta{
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.75rem;
    background: rgba(13, 26, 128, 0.04);
    border-radius: 10px;
}
body.is-mobile .assets-parts-meta > div{
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
body.is-mobile .assets-parts-meta span{
    font-size: 11px;
    font-weight: 700;
    color: #0d1a80;
    text-transform: uppercase;
}
body.is-mobile .assets-parts-meta strong{
    font-size: 14px;
    font-weight: 600;
    word-break: break-word;
}
body.is-mobile .assets-parts-list{
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
body.is-mobile .assets-part-card{
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem;
    background: #fff;
}
body.is-mobile .assets-part-card .part-title{
    font-weight: 700;
    color: #0d1a80;
    margin-bottom: 0.35rem;
    word-break: break-word;
}
body.is-mobile .assets-part-card .part-meta{
    font-size: 13px;
    color: #333;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.85rem;
}
body.is-mobile .assets-parts-empty{
    text-align: center;
    color: #6c757d;
    padding: 1.5rem 0.75rem;
    font-weight: 600;
}
body.is-mobile .assets-history-meta{
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.65rem 0.75rem;
    background: rgba(25, 135, 84, 0.08);
    border-radius: 10px;
}
body.is-mobile .assets-history-meta > div{
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
body.is-mobile .assets-history-meta span{
    font-size: 11px;
    font-weight: 700;
    color: #198754;
    text-transform: uppercase;
}
body.is-mobile .assets-history-meta strong{
    font-size: 14px;
    word-break: break-word;
}
body.is-mobile .assets-history-body{
    padding-bottom: 0.5rem !important;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
body.is-mobile .assets-history-track{
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.25rem 0.15rem 1rem 0.35rem;
}
body.is-mobile .assets-track-empty{
    text-align: center;
    color: #6c757d;
    font-weight: 600;
    padding: 2rem 1rem;
}
body.is-mobile .assets-track-item{
    display: grid;
    grid-template-columns: 22px 1fr;
    column-gap: 0.75rem;
    position: relative;
    padding-bottom: 1.15rem;
}
body.is-mobile .assets-track-item:last-child{
    padding-bottom: 0.25rem;
}
body.is-mobile .assets-track-rail{
    position: relative;
    display: flex;
    justify-content: center;
}
body.is-mobile .assets-track-rail::before{
    content: '';
    position: absolute;
    top: 14px;
    bottom: -1.15rem;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: #d9dde3;
}
body.is-mobile .assets-track-item:last-child .assets-track-rail::before{
    display: none;
}
body.is-mobile .assets-track-dot{
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #cfd4da;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #cfd4da;
    margin-top: 3px;
    z-index: 1;
    flex-shrink: 0;
}
body.is-mobile .assets-track-item.is-latest .assets-track-dot{
    background: #198754;
    box-shadow: 0 0 0 2px #198754;
}
body.is-mobile .assets-track-item.is-latest .assets-track-rail::before{
    background: linear-gradient(#198754, #d9dde3);
}
body.is-mobile .assets-track-content{
    min-width: 0;
}
body.is-mobile .assets-track-event{
    font-size: 14px;
    font-weight: 700;
    color: #212529;
    line-height: 1.3;
    margin-bottom: 0.2rem;
    word-break: break-word;
}
body.is-mobile .assets-track-item.is-latest .assets-track-event{
    color: #198754;
}
body.is-mobile .assets-track-time{
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 0.35rem;
}
body.is-mobile .assets-track-details{
    font-size: 12.5px;
    color: #495057;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
body.is-mobile .assets-track-details span{
    word-break: break-word;
}
body.is-mobile .assets-track-details b{
    font-weight: 700;
    color: #343a40;
}
body.is-mobile .assets-addstock-content{
    border: 0;
    border-radius: 0;
    min-height: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}
body.is-mobile .assets-modal-header{
    border-radius: 0;
    background-color: #0d1a80;
    color: #fff;
    min-height: 48px;
    padding: 0.65rem 1rem;
    flex-shrink: 0;
}
body.is-mobile .assets-addstock-body{
    background-color: #fff;
    color: #000;
    padding: 1rem 0.9rem 1.25rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1 1 auto;
}
body.is-mobile .assets-addstock-footer{
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: stretch;
    padding: 0.75rem 0.9rem calc(0.75rem + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid #e9ecef;
}
body.is-mobile .assets-addstock-footer .btn{
    flex: 1 1 auto;
    min-height: 44px;
}
body.is-mobile .assets-field-label{
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #0d1a80;
    margin-bottom: 0.35rem;
}
body.is-mobile .assets-field-control{
    width: 100% !important;
    min-height: 46px;
    font-size: 16px !important;
    border-radius: 8px;
}
body.is-mobile .assets-required-icon{
    color: orange;
    margin-left: 0.25rem;
}
body.is-mobile .assets-alert{
    font-size: 13px;
    margin-bottom: 0.85rem;
}
body.is-mobile .assets-item-preview{
    width: 100%;
    min-height: 140px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 123, 255, 0.04);
}
body.is-mobile .assets-preview-empty{
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 2px dashed rgba(0, 123, 255, 0.3);
    border-radius: 12px;
    color: rgba(0, 123, 255, 0.7);
    font-weight: 600;
    font-size: 13px;
    text-align: center;
    padding: 1rem;
}
body.is-mobile .assets-preview-empty i{
    font-size: 2.5rem;
    opacity: 0.7;
}
body.is-mobile .assets-preview-img{
    display: block;
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    background: #fff;
}
body.is-mobile .assets-preview-frame{
    width: 100%;
    height: 220px;
    border: 1px solid #ccc;
}
body.is-mobile .assets-serial-list{
    width: 100%;
}
body.is-mobile .assets-serial-headers,
body.is-mobile .assets-serial-row{
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}
body.is-mobile .assets-serial-headers > div,
body.is-mobile .assets-serial-row > input{
    flex: 1;
}
body.is-mobile .assets-serial-headers > div{
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    color: #0d1a80;
}
body.is-mobile .assets-serial-row > input{
    min-height: 46px;
    font-size: 16px !important;
}
body.is-mobile #modalBundledItems .modal-dialog{
    margin: 0.5rem;
    max-width: calc(100% - 1rem);
}
body.is-mobile #modalBundledItems .modal-body{
    max-height: 70vh;
    overflow-y: auto;
}

/* Searchable Chosen selects inside Assets ADD STOCK */
body.is-mobile #addStock .chosen-container{
    width: 100% !important;
    font-size: 16px;
}
body.is-mobile #addStock .chosen-container-single .chosen-single{
    min-height: 46px;
    line-height: 44px;
    border-radius: 8px;
    padding-left: 12px;
    font-size: 16px;
}
body.is-mobile #addStock .chosen-container-single .chosen-single div{
    top: 8px;
}
body.is-mobile #addStock .chosen-container .chosen-drop{
    z-index: 2100;
    border-radius: 8px;
}
body.is-mobile #addStock .chosen-container .chosen-search input[type="text"]{
    min-height: 42px;
    font-size: 16px !important;
    border-radius: 6px;
}
body.is-mobile #addStock .chosen-container .chosen-results{
    max-height: 220px;
    font-size: 15px;
}
body.is-mobile #addStock .chosen-container .chosen-results li{
    padding: 10px 12px;
}

/* Mobile toasts */
body.is-mobile #global-toast-container,
#global-toast-container{
    position: fixed;
    top: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5100;
    width: min(92vw, 420px);
    max-width: 92vw;
    pointer-events: none;
}
body.is-mobile #global-toast,
#global-toast{
    width: 100%;
    max-width: 100%;
    pointer-events: auto;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    opacity: 1;
}
body.is-mobile #global-toast .toast-body,
#global-toast .toast-body{
    font-size: 14px;
    line-height: 1.35;
    padding: 0.85rem 1rem;
    word-break: break-word;
}
body.is-mobile #global-toast.bg-danger,
body.is-mobile #global-toast.bg-success,
body.is-mobile #global-toast.bg-primary{
    color: #fff !important;
}

/* Mobile SweetAlert — keep above Assets modals (z-index 2000) */
body.is-mobile .swal2-container{
    zoom: normal !important;
    padding: 0.75rem !important;
    z-index: 5000 !important;
    pointer-events: auto !important;
}
body.is-mobile .modal-backdrop{
    z-index: 1990 !important;
}
body.is-mobile .swal2-popup{
    width: min(92vw, 420px) !important;
    max-width: 92vw !important;
    font-size: 14px !important;
    border-radius: 12px !important;
    padding: 1.25rem 1rem !important;
}
body.is-mobile .swal2-title{
    font-size: 1.15rem !important;
    line-height: 1.3 !important;
    padding: 0 !important;
}
body.is-mobile .swal2-html-container,
body.is-mobile .swal2-content{
    zoom: normal !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    margin: 0.75rem 0 0 !important;
    padding: 0 !important;
}
body.is-mobile .swal2-actions{
    zoom: normal !important;
    margin-top: 1rem !important;
    flex-wrap: wrap;
    gap: 0.5rem;
}
body.is-mobile .swal2-confirm,
body.is-mobile .swal2-deny,
body.is-mobile .swal2-cancel{
    min-height: 42px;
    margin: 0 !important;
    font-size: 14px !important;
}

/* Ensure serial modal inputs are always editable on mobile */
body.is-mobile #inputSerialModal input.serials,
body.is-mobile #inputSerialModal input.asset_tags{
    pointer-events: auto !important;
    -webkit-user-select: text !important;
    user-select: text !important;
    touch-action: manipulation;
    font-size: 16px !important;
}
body.is-mobile main.py-3{
    padding-top: 1rem !important;
    padding-bottom: 1.5rem !important;
}
body.is-mobile #app.container-fluid{
    height: auto !important;
    min-height: auto !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    overflow-x: hidden;
}
body.is-mobile .guest-logo-wrap{
    padding: 1.1rem 0.75rem 0.85rem;
    overflow: hidden;
}
body.is-mobile .guest-logo{
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    zoom: normal !important;
    transform: none !important;
}
body.is-mobile .guest-title-bar{
    min-height: 0;
    height: auto;
    font-size: clamp(15px, 4.4vw, 18px);
    padding: 0.9rem 1rem;
    line-height: 1.3;
    word-break: break-word;
}
body.is-mobile .login-page{
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin-top: 0.5rem;
}
body.is-mobile .login-page > .row{
    margin-left: 0;
    margin-right: 0;
    width: 100%;
}
body.is-mobile .login-page [class*="col-"]{
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
}
body.is-mobile .login-card{
    margin-top: 2rem !important;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 100%;
    border-width: 2px;
    box-sizing: border-box;
}
body.is-mobile .login-card-header{
    height: 24px;
}
body.is-mobile .login-user-icon{
    font-size: 3.5rem;
    margin-top: -28px;
}
body.is-mobile .login-card-body{
    padding: 1.5rem 1.1rem 1.15rem;
}
body.is-mobile .login-page .forminput,
body.is-mobile .login-page .formlabel{
    font-size: 16px !important;
}
body.is-mobile .login-page .forminput{
    min-height: 48px;
    padding: 0.75rem 0.85rem;
}
body.is-mobile .login-page .formlabel{
    top: 0.85rem;
}
body.is-mobile .login-page .forminput:focus ~ .form-label,
body.is-mobile .login-page .forminput:not(:placeholder-shown).forminput:not(:focus) ~ .formlabel{
    top: -0.7rem;
    font-size: 0.75rem !important;
}
body.is-mobile .login-options{
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    margin-bottom: 1.25rem !important;
}
body.is-mobile .login-show-password #show_password_text{
    font-size: 13px;
}
body.is-mobile .login-actions{
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
}
body.is-mobile .login-actions .btnLogin{
    width: 100%;
    min-height: 48px;
    font-size: 16px;
}
body.is-mobile .login-forgot{
    width: 100%;
    margin-left: 0 !important;
    padding: 0.5rem 0;
    text-align: center;
    white-space: normal;
    font-size: 14px;
}
body.is-mobile .login-error{
    zoom: 1;
    font-size: 12px;
    display: block;
    margin-top: 0.35rem;
}
body.is-mobile #loading{
    zoom: normal !important;
    color: #0d1a80;
    line-height: normal !important;
    position: fixed;
    inset: 0;
    z-index: 100000;
    width: 100% !important;
    height: 100% !important;
    max-width: 100vw;
    max-height: 100dvh;
    margin: 0;
    padding: 1.25rem;
    box-sizing: border-box;
    background-color: rgba(192, 192, 192, 0.85);
    background-repeat: no-repeat;
    background-position: center;
    text-align: center;
    user-select: none;
    cursor: wait;
    overflow: hidden;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
}
body.is-mobile #loading[style*="display: block"],
body.is-mobile #loading[style*="display:block"],
body.is-mobile #loading.show,
body.is-mobile #loading.is-visible{
    display: flex !important;
}
body.is-mobile #loading > br{
    display: none;
}
body.is-mobile #loading > b:first-of-type{
    font-size: clamp(18px, 5.5vw, 24px) !important;
    line-height: 1.25;
    margin: 0;
}
body.is-mobile #loading .spinner-border{
    zoom: normal !important;
    width: 2.75rem !important;
    height: 2.75rem !important;
    margin: 0;
    border-width: 0.25rem;
}
body.is-mobile #loading_footer{
    font-size: clamp(12px, 3.6vw, 16px) !important;
    line-height: 1.35 !important;
    max-width: 22rem;
    padding: 0 0.5rem;
    margin: 0;
}
@media(max-width: 767.98px){
    .stock_close{
        display: none !important;
    }
    .stocks_field{
        position: static;
        width: 60%;
        border-width: thin;
    }
}
@media print{
    @page{
        size: letter;
        @bottom-center{
            content: "Page " counter(page);
        }
    }
}
.text-control{
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0.25rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.select-active1{
    border: 2px solid #0d1a80;
    border-radius: 0.375rem;
    width: 102%;
    height: 38px;
    margin-left: -2px;
    margin-top: -36px;
}
.select-active0{
    border: 2px solid red;
    border-radius: 0.375rem;
    width: 102%;
    height: 38px;
    margin-left: -2px;
    margin-top: -36px;
}
.requiredInput, .duplicateInput, .invalidInput, .redBorder{
    border: 2px solid red !important;
}

/* Item History: Chosen filters must render above DataTables scrollY body */
#itemhistoryTable_wrapper{
    max-width: 100%;
    overflow-x: clip;
}
#itemhistoryTable_wrapper .dataTables_scrollHead{
    position: relative;
    z-index: 5;
    overflow-x: clip !important;
    overflow-y: visible !important;
}
#itemhistoryTable_wrapper .dataTables_scrollHeadInner,
#itemhistoryTable_wrapper .dataTables_scrollHead table,
#itemhistoryTable_wrapper .dataTables_scrollHead thead th,
#itemhistoryTable_wrapper .dataTables_scrollHead thead td{
    overflow: visible !important;
}
#itemhistoryTable_wrapper .dataTables_scrollBody{
    position: relative;
    z-index: 1;
}
#itemhistoryTable_wrapper .chosen-container{
    position: relative;
    z-index: 2;
}
#itemhistoryTable_wrapper .chosen-container.chosen-with-drop{
    z-index: 20;
}
#itemhistoryTable_wrapper .chosen-container .chosen-drop{
    z-index: 9999 !important;
}