.mt-4{
    margin-top: 42px !important;
}
.modal-content{
    max-width:100% !important
}
body.rtl .modal-header .close {
    margin: -1rem auto -1rem -1rem;
    float: left;
}
body.rtl .dataTables_wrapper thead .sorting:before,
body.rtl .dataTables_wrapper thead .sorting:after{
    right: auto;
    left: 0;
}
body.rtl .dataTables_wrapper .dataTables_length {
    float: right;
}
body.rtl .dataTables_wrapper .dataTables_filter {
    float: left;
}
.modal.full {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-inline-end: 0 !important;
}
.pagination {
    flex-wrap: wrap;
}
.v-text-field .v-label {
    top: -10px !important;
}
#left-sidebar .menu_option {
    display: none !important
}
.table{
    width: 100% !important;
    margin-bottom: 10px !important;
}
.table-responsive {
    padding-bottom: 10px;

}
.table-responsive::-webkit-scrollbar {
    height: 10px;
    background: #eee;
}
.table-responsive::-webkit-scrollbar-thumb {
    background: #004660 !important;
}
.avatar {
    width: 35px;
    height: 35px;
}
#chart-bar{
   direction: ltr !important;
   text-align: left !important;
}
.header-action {
    margin-bottom: 20px;
}
label{
    margin-top: 10px;
}
.form-control, .dataTables_wrapper .dataTables_filter {
    display: inline-block;
    margin: 2px;
}
.btn.w-100{
    margin: 2px;
}
body.rtl .page-item:first-child .page-link {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}
body.rtl .page-item:last-child .page-link {
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.table td, .table th {
    font-size: 13px;
}
svg{
    max-width: 100%;
}
.auth .auth_left .card {
    min-width: auto !important;
    max-width: 100%;
    margin: 0 auto;
    left: 0 !important;
    right: 0 !important;
}
.page-header div.avatar.avatar-blue {
    width: 48px;
    height: 48px;
    overflow: hidden;
}
.page-header img.avatar.avatar-blue {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media only screen and (max-width: 1200px){
    body.rtl.offcanvas-active #left-sidebar {
        right: 0;
        left: auto;
        position: fixed;
        z-index: 99;
    }
}
@media screen and (max-width: 991px){
    .page-header {
        position: relative;
        display: block;
    }
    .page-header p{
        right: 60px;
        top: 50%;
        transform: translateY(-50%);
    }
    .table td, .table th {
        font-size: 11px;
    }
}
@media screen and (max-width: 767px){
    .header_top .hright{
        display: flex;
        align-items: center;
    }
}

.text-green, .text-info, .text-success, .text-danger, .text-primary, .text-warning, .mail-star.active {
    color:#dc3545 !important;
}

body {
    font-family: Arial, sans-serif;
}

.invoice-container {
    width: 100%;
    margin: 0 auto;
    border: 1px solid #000;
    padding: 0;
}

.header, .footer {
    text-align: center;
}

.header{
    width: 100%;
}

.amount-details {
    width: 100%;
    margin-top: 20px;
}

.invoice-details {
    width: 55%;
    margin-top: 20px;
}

.qr-details {
    width: 40%;
    margin-top: 20px;
}

.customer-details {
    width: 49%;
    margin-top: 20px;
}

.invoice-details th, .invoice-details td, .customer-details th, .customer-details td, .amount-details th, .amount-details td {
    padding: 8px;
    text-align: center;
    border: 1px solid #00000024;
    width: 10%;
    font-size: small;
}

thead {
    background-color: #f2f2f2;
    font-size: small;
}

.amount-details {
    margin-top: 20px;
}

.status-indicator {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: green;
    display: inline-block;
}

.offline {
    background-color: red;
}

/* ── Fixed Navbar ── */
#page_top {
    position: fixed;
    top: 0;
    right: 280px;
    left: 0;
    z-index: 1050;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

/* Push content down so it isn't hidden under the fixed navbar */
#main_content {
    padding-top: 55px;
}

/* Ensure all SweetAlert2 popups appear on top of fixed header and navbar elements */
.swal2-container {
    z-index: 99999 !important;
}

/* ── Warehouse Sales Custom Enhancements ── */
.ctd {
    text-align: center;
}

.table-wrapper {
    overflow-y: auto;
    border: 1px solid #dee2e6;
    position: relative;
}

.table-wrapper thead th,
#item_table thead th {
    position: sticky;
    top: 0;
    z-index: 99;
    background-color: #f8f9fa;
    box-shadow: 0 2px 2px -1px rgba(0,0,0,.4);
}

.table-wrapper tfoot tr {
    position: sticky;
    bottom: 0;
    z-index: 99;
    background-color: #fff;
}

.totals-footer-bar {
    background-color: #113f50;
    color: white;
    position: fixed;
    bottom: 0;
    left: 50px;
    right: 317px;
    z-index: 1050;
    padding: 8px 24px;
    box-shadow: 0 -3px 12px rgba(0,0,0,0.35);
}

.totals-footer-bar .totals-item {
    padding: 2px 16px;
    border-right: 1px solid rgba(255,255,255,0.25);
}

.totals-footer-bar .totals-item:last-of-type {
    border-right: none;
}

.totals-footer-bar .totals-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
    font-weight: 400;
}

.totals-footer-bar .totals-value {
    font-size: 15px;
    font-weight: 700;
}

.totals-footer-bar .totals-value-input {
    background: transparent;
    border: none;
    color: white;
    font-size: 15px;
    font-weight: 700;
    width: 120px;
    padding: 0;
}

/* Purchase Request Specific Totals Footer Bar */
.totals-footer-bar-request {
    background-color: #E8EDF5 !important;
    color: #004660 !important;
    position: fixed;
    bottom: 0;
    left: 50px;
    right: 317px;
    z-index: 1050;
    padding: 8px 24px;
    box-shadow: 0 -3px 12px rgba(0,0,0,0.35);
}

.totals-footer-bar-request .totals-item {
    padding: 2px 24px;
    border-right: 1px solid rgba(255,255,255,0.25);
    display: inline-block;
}

.totals-footer-bar-request .totals-item:last-of-type {
    border-right: none;
}

.totals-footer-bar-request .totals-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
    font-weight: normal;
}

.totals-footer-bar-request .totals-value {
    font-size: 20px;
    font-weight: bold;
}

#app {
    padding-bottom: 80px;
}

/* Purchase Request Main Header and Body Position Overrides */
.request-main-card-header {
    padding: 20px 20px 10px 20px;
    border: 0;
    background: #004660 !important;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 20px;
    position: fixed;
    top: 65px;
    left: 50px;
    right: 317px;
    z-index: 1040;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.request-main-card-body {
    padding-top: 65px !important;
}

/* ── Tabs Navigation Styling ── */
body.has-tabs-navigation #page_top {
    height: 150px;
    background: #fff;
    border-bottom: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.has-tabs-navigation #main_content {
    padding-top: 150px;
}

body.has-tabs-navigation .purchase-tabs-nav {
    position: fixed;
    top: 75px;
    right: 280px;
    left: 0;
    z-index: 1051;
    background: #fff;
    padding: 0 20px;
    margin: 0;
    border-bottom: none;
    height: 75px;
    display: flex;
    align-items: flex-end;
}

body.has-tabs-navigation:not(.rtl) .purchase-tabs-nav {
    left: 280px;
    right: 0;
}

body.has-tabs-navigation .request-main-card-header {
    top: 150px;
}

.modal-backdrop {
    z-index: 1 !important;
}


