:root {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --secondary: #3a0ca3;
    --success: #4cc9f0;
    --info: #4895ef;
    --warning: #f72585;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #212529;
    --license-default: #4e00ff;
    --border-radius: 8px;
    --card-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    --transition: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fb;
    /*f5f5f5*/
    color: var(--dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

.main-content {
    flex: 1;
}

.main-content>.container {
    padding-bottom: 20px;
}

/* .card {
    border-radius: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem;
}

.card-title {
    margin-bottom: 0;
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark);
} */

.search-input {
    position: relative;
}

.search-input .form-control {
    padding-left: 2.25rem;
    height: 36px;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    font-size: 0.875rem;
    z-index: 3;
}

.dropdown-date {
    position: relative;
}

.dropdown-date .form-control {
    padding-left: 2.25rem;
    height: 36px;
}

.date-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    font-size: 0.875rem;
    z-index: 3;
}

.custom-btn {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    height: 36px;
}

.btn-icon {
    width: 28px;
    height: 28px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
}

.custom-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.badge-b2b {
    background-color: var(--primary-light);
    color: var(--primary);
}

.badge-retail {
    background-color: #e0f2fe;
    color: #0284c7;
}

.badge-paid {
    background-color: var(--success-light);
    color: var(--success);
}

.badge-due {
    background-color: var(--warning-light);
    color: var(--warning);
}

.invoice-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.invoice-link:hover {
    text-decoration: underline;
}

.action-btn-group {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
}

.popover {
    max-width: 250px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
}

.popover-header {
    background-color: var(--primary);
    color: white;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.popover-body {
    padding: 0.75rem;
}

.popover-body ol {
    margin-bottom: 0;
    padding-left: 1.25rem;
}

.popover-body li {
    margin-bottom: 0.25rem;
}

.popover-body li:last-child {
    margin-bottom: 0;
}

.filter-row {
    margin-bottom: 1rem;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.status-collected {
    color: var(--success);
    font-weight: 600;
}

/* Compact Footer Styles */
.footer-wrapper {
    margin-top: auto;
}

.info-bar {
    display: none;
    text-align: center;
    padding: 6px 15px;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.license-bar {
    color: white;
    text-align: center;
    padding: 6px 15px;
    font-size: 13px;
    font-weight: 500;
    border-top: 1px solid rgba(0, 0, 0, 10%);
}

.license-bar.default {
    color: var(--primary);
    background-color: var(--white);
}

.license-bar.danger {
    color: white;
    background-color: var(--danger);
}

.footer {
    background-color: var(--primary);
    padding: 5px 15px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    border-top: 1px solid var(--light-gray);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    color: white;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
}

.footer-center {
    font-size: 13px;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.footer-logo {
    height: 45px;
    border-radius: 4px;
}

.company-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.company-name {
    font-weight: 600;
    font-size: 16px;
    color: var(--dark);
}

.company-tagline {
    font-size: 12px;
    color: #6c757d;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
}

.contact-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* background-color: #f8f9fa; */
    color: var(--white);
    border-radius: 50%;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 11px;
    color: #6c757d;
    font-weight: 600;
}

.contact-value {
    font-size: 13px;
    font-weight: 500;
    color: var(--white);
}

.contact-value a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.contact-value a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.copyright {
    text-align: center;
    font-size: 12px;
    color: #6c757d;
    padding: 10px 0 5px;
    border-top: 1px solid #f0f2f5;
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 15px auto 0;
}

.powered-by {
    display: flex;
    align-items: center;
    gap: 6px;
}

.powered-text {
    font-size: 12px;
    color: #6c757d;
}

.powered-logo {
    height: 20px;
    border-radius: 3px;
}

/* Top Navigation Bar */
.custom-navbar {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: 60px;
}

.navbar-menu {
    display: flex;
    align-items: center;
    height: 100%;
}

.menu-item {
    height: 100%;
    position: relative;
}

.menu-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    transition: var(--transition);
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
}

a.menu-link {
    text-decoration: none;
}

.menu-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.menu-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.15);
    font-weight: 600;
}

.menu-link .icon {
    margin-right: 6px;
}

.menu-link .badge {
    position: absolute;
    top: 12px;
    right: 5px;
    background-color: var(--warning);
    color: white;
    font-size: 0.6rem;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 15px;
    text-align: center;
}

.menu-link .dropdown-arrow {
    margin-left: 5px;
    font-size: 10px;
    transition: transform 0.2s ease;
}

.menu-item.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu:not(.datepicker-dropdown) {
    position: absolute;
    top: 60px;
    left: 0;
    background-color: white;
    min-width: 220px;
    box-shadow: var(--card-shadow);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.menu-item.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
    max-height: 500px;
    overflow-y: auto;
}

.dropdown-item {
    color: var(--dark);
    padding: 6px 15px;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: var(--transition);
    font-weight: 400;
    font-size: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--primary);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item .icon {
    margin-right: 10px;
    width: 16px;
    color: #6c757d;
}

/* Right Side Navigation */
.navbar-right {
    display: flex;
    align-items: center;
    height: 100%;
}

.action-item {
    height: 100%;
    position: relative;
    font-size: 14px;
}

.action-button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    height: 100%;
    padding: 0 15px;
    display: flex;
    align-items: center;
    transition: var(--transition);
    position: relative;
}

.action-button:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.action-button .badge {
    position: absolute;
    top: 12px;
    right: 8px;
    background-color: var(--warning);
    color: white;
    font-size: 0.6rem;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 15px;
    text-align: center;
}

/* User Profile */
.user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    padding: 0 15px;
    cursor: pointer;
    transition: var(--transition);
}

.user-profile:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.user-name {
    color: white;
    font-weight: 500;
}

.user-dropdown {
    position: absolute;
    top: 60px;
    right: 0;
    background-color: white;
    min-width: 220px;
    box-shadow: var(--card-shadow);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.action-item.open .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
    max-height: 500px;
    overflow-y: auto;
    left: auto;
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    width: 45px;
    height: 45px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: var(--transition);
}

.mobile-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.breadcrumb-container {
    margin-top: 60px;
}

.breadcrumb {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 30px;
    background-color: white;
    padding: 12px 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.breadcrumb-item {
    color: #6c757d;
    font-size: 14px;
}

.breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--dark);
    font-weight: 500;
}

.breadcrumb-separator {
    margin: 0 5px;
    color: #6c757d;
}

.content-box {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 30px;
    text-align: center;
}

.content-box h1 {
    margin-bottom: 15px;
    color: var(--dark);
}

.content-box p {
    color: #6c757d;
    margin-bottom: 0;
}

.flex-scroll-x {
    overflow-x: auto;
    white-space: nowrap;
    flex-wrap: nowrap;
}

.btn-file {
    position: relative;
    overflow: hidden;
}

.btn-file input[type=file] {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    font-size: 100px;
    text-align: right;
    filter: alpha(opacity=0);
    opacity: 0;
    background: red;
    cursor: inherit;
    display: block;
}

.file-input-label {
    padding: 0px 10px;
    display: table-cell;
    vertical-align: middle;
    border: 1px solid #ddd;
    border-right: none;
    /*border-radius: 4px;*/
}

.file-input-label1 {
    padding: 0px 10px;
    display: table-cell;
    vertical-align: middle;
    border: 1px solid #ddd;
    border-left: none;
    /*border-radius: 4px;*/
}

#excel_modal {
    max-width: calc(100% - 25px);
}

#excel_modal_content {
    /*80% of window height */
    height: 80%;
}

#excel_modal_dialog {
    /*80% of window height */
    height: 80%;
}

#excel_modal_body {
    /* 100% = dialog height, 120px = header + footer */
    max-height: calc(100% - 120px);
    overflow-y: auto;
    overflow-x: auto;
}

/* Start by setting display:none to make this hidden.
     Then we position it in relation to the viewport window
     with position:fixed. Width, height, top and left speak
     for themselves. Background we set to 80% white with
     our animation centered, and no-repeating */

#loading {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    width: 150px;
    height: 150px;
    margin: -75px 0 0 -75px;
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid #3498db;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#loader-icon {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(255, 255, 255, .8) url('../images/Preloader.gif') 50% 50% no-repeat;
}

#cover-spin {
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    display: none;
}

@-webkit-keyframes spin {
    from {
        -webkit-transform: rotate(0deg);
    }

    to {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

#cover-spin::after {
    content: '';
    display: block;
    position: absolute;
    left: 48%;
    top: 40%;
    width: 60px;
    height: 60px;
    border-style: solid;
    border-color: #034184;
    border-top-color: transparent;
    border-width: 8px;
    border-radius: 50%;
    -webkit-animation: spin .8s linear infinite;
    animation: spin .8s linear infinite;
}

/* When the body has the loading class, we turn
     the scrollbar off with overflow:hidden */
body.loading #loader-icon {
    overflow: hidden;
}

/* Anytime the body has the loading class, our
     modal element will be visible */
body.loading #loader-icon {
    display: block;
}

@media (max-width: 576px) {
    .form-inline .form-control {
        width: 100%;
    }

    .form-inline .form-check {
        justify-content: left;
    }
}

/*Media query for table*/
@media screen and (max-width: 600px) {
    /* .dropdown-menu {
      max-height: 105px;
    } */

    .pre-scrollable-right-side {
        max-height: 50px;
        overflow-y: scroll;
    }

    .navbar-nav-scroll {
        max-height: 50vh;
        overflow-y: auto;
    }

    .responsive-table {
        border: 0;
    }

    .responsive-table caption {
        font-size: 1.3em;
    }

    .responsive-table thead {
        border: none;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }

    .responsive-table tr {
        border-bottom: 3px solid #ddd;
        display: block;
        margin-bottom: .625em;
    }

    .responsive-table td {
        border-bottom: 1px solid #ddd;
        display: block;
        font-size: .8em;
        text-align: right;
    }

    .responsive-table td.desktop {
        display: none;
    }

    .responsive-table td.desktop-show {
        display: inherit;
    }

    .responsive-table td::before {
        /*
      * aria-label has no advantage, it won't be read inside a .responsive-table
      content: attr(aria-label);
      */
        content: attr(data-label);
        float: left;
        font-weight: bold;
        text-transform: uppercase;
    }

    .responsive-table td:empty {
        visibility: hidden;
    }

    .responsive-table td:empty::before {
        visibility: hidden;
        margin-left: -30rem;
    }

    .responsive-table td:last-child {
        border-bottom: 0;
    }

    .responsive-table td.text-center {
        text-align: right !important;
    }
}

.responsive-text {
    font-size: 1rem;
}

@media (min-width: 500px) {
    .responsive-text {
        font-size: 0.3rem;
    }
}

@media (min-width: 768px) {
    .responsive-text {
        font-size: 0.5rem;
    }
}

@media (min-width: 991px) {
    .responsive-text {
        font-size: 0.8rem;
    }
}

@media (min-width: 1200px) {
    .responsive-text {
        font-size: 1rem;
    }
}

@media (max-width: 992px) {
    .action-btn-group {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
}

@media (max-width: 767.98px) {
    .filter-row {
        flex-direction: column;
        gap: 0.75rem;
    }

    .filter-row>div {
        width: 100%;
    }

    .filter-row .btn {
        width: 100%;
    }

    .table-responsive {
        max-height: 500px;
    }
}

.dropdown-toggle::after {
    content: none;
}

.quantity {
    display: inline-block;
}

.quantity .input-text.qty {
    width: 35px;
    height: 31px;
    padding: 0 5px;
    text-align: center;
    background-color: transparent;
    border: 1px solid #efefef;
    font-size: 13px;
}

.quantity.buttons_added {
    text-align: left;
    position: relative;
    white-space: nowrap;
    vertical-align: top;
}

.quantity.buttons_added input {
    display: inline-block;
    margin: 0;
    vertical-align: top;
    box-shadow: none;
}

.quantity.buttons_added .minus,
.quantity.buttons_added .plus {
    padding: 7px 10px 8px;
    height: 31px;
    background-color: #ffffff;
    border: 1px solid #efefef;
    cursor: pointer;
    margin-left: -3px;
    margin-right: -3px;
}

.quantity.buttons_added .minus {
    border-right: 0;
    background-color: #f98a95 !important;
}

.quantity.buttons_added .plus {
    border-left: 0;
    background-color: #6dbd80 !important;
}

.quantity.buttons_added .minus:hover,
.quantity.buttons_added .plus:hover {
    background: #eeeeee;
}

.quantity input::-webkit-outer-spin-button,
.quantity input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    -moz-appearance: none;
    margin: 0;
}

.quantity.buttons_added .minus:focus,
.quantity.buttons_added .plus:focus {
    outline: none;
}

ul.pagination>li.page-item>a {
    cursor: pointer;
}

.cursor-pointer {
    cursor: pointer;
}

/**    Table Section*/
/* .table {
    margin-bottom: 0;
} */

.table thead th {
    /* background-color: #f8f9fa; */
    /* color: #495057; */
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.625rem;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.table tbody td {
    font-size: 0.75rem;
    padding: 0.625rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
    color: #495057;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table tbody tr:hover {
    /* background-color: rgba(67, 97, 238, 0.03); */
    background-color: white;
}

.table-bordered>thead>tr>td,
.table-bordered>thead>tr>th {
    border-bottom-width: 1px;
}

.table>tbody>tr>td,
.table>tbody>tr>th,
.table>tfoot>tr>td,
.table>tfoot>tr>th,
.table>thead>tr>td,
.table>thead>tr>th {
    padding: 8px;
    padding-bottom: 2px;
    padding-top: 3px;
}

.table-responsive {
    overflow: auto
}

.table-responsive>.table tr th,
.table-responsive>.table tr td {
    white-space: normal !important
}

/*********************************** Float Label *************************************/

.has-float-label {
    display: block;
    position: relative
}

.has-float-label label,
.has-float-label>span {
    position: absolute;
    cursor: text;
    font-size: 85%;
    opacity: 1;
    -webkit-transition: all .2s;
    transition: all .2s;
    top: -.5em;
    left: .75rem;
    z-index: 3;
    line-height: 1;
    padding: 0 1px;
    font-weight: bold;
}

.has-float-label label::after,
.has-float-label>span::after {
    content: " ";
    display: block;
    position: absolute;
    background: #fff;
    height: 2px;
    top: 50%;
    left: -.2em;
    right: -.2em;
    z-index: -1
}

.has-float-label .form-control::-webkit-input-placeholder {
    opacity: 1;
    -webkit-transition: all .2s;
    transition: all .2s
}

.has-float-label .form-control:placeholder-shown:not(:focus)::-webkit-input-placeholder {
    opacity: 0
}

.has-float-label .form-control:placeholder-shown:not(:focus)+* {
    font-size: 100%;
    opacity: .5;
    top: .7em
}

.has-float-label .form-control.form-control-lg:placeholder-shown:not(:focus)+* {
    font-size: 100%;
    opacity: .5;
    top: .9em
}

.input-group .has-float-label {
    display: table-cell
}

.input-group .has-float-label .form-control {
    border-radius: .25rem
}

.input-group .has-float-label:not(:last-child),
.input-group .has-float-label:not(:last-child) .form-control {
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
    border-right: 0
}

.input-group .has-float-label:not(:first-child),
.input-group .has-float-label:not(:first-child) .form-control {
    border-bottom-left-radius: 0;
    border-top-left-radius: 0
}

.has-float-label>input:focus::placeholder {
    color: transparent;
}

.has-float-label>input,
.has-float-label>select {
    /* min-width: 150px; */
    max-width: 250px;
}

.has-float-label>input,
.has-float-label>.form-control {
    min-width: 150px;
    max-width: 250px;
}

.has-float-label>input.full-width,
.has-float-label>select.full-width {
    max-width: 100%;
}

/** Remove Number Input arrow**/
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 0;
}

.select2-selection {
    border-color: #ced4da !important;
    padding-left: 10px;
}

.select2-search__field::-webkit-input-placeholder,
.select2-search__field::placeholder {
    color: #495057 !important;
}

/*====================================================== */
.table.table-only-header-full-width>thead>tr>th {
    white-space: nowrap !important;
}

.expiry_bg {
    background-color: pink;
    color: white;
}

/*** Table Row Selection***/
tr.normal td {
    color: black;
    background-color: white;
}

tr.highlighted td {
    color: black;
    background-color: #ededed;
}


td.line-1 {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.font-10 {
    font-size: 10px !important;
}

/* Small devices (landscape phones, 576px and up)*/
@media (min-width: 576px) {
    .w-sm-100 {
        width: 100% !important;
    }

    .w-sm-75 {
        width: 75% !important;
    }

    .w-sm-50 {
        width: 50% !important;
    }

    .w-sm-25 {
        width: 25% !important;
    }

    .h-sm-100 {
        height: 100% !important;
    }

    .h-sm-75 {
        height: 75% !important;
    }

    .h-sm-50 {
        height: 50% !important;
    }

    .h-sm-25 {
        height: 25% !important;
    }
}

/* Medium devices (tablets, 768px and up)*/
@media (min-width: 768px) {
    .w-md-100 {
        width: 100% !important;
    }

    .w-md-75 {
        width: 75% !important;
    }

    .w-md-50 {
        width: 50% !important;
    }

    .w-md-25 {
        width: 25% !important;
    }

    .h-md-100 {
        height: 100% !important;
    }

    .h-md-75 {
        height: 75% !important;
    }

    .h-md-50 {
        height: 50% !important;
    }

    .h-md-25 {
        height: 25% !important;
    }
}

/* Large devices (desktops, 992px and up)*/
@media (min-width: 992px) {
    .w-lg-100 {
        width: 100% !important;
    }

    .w-lg-75 {
        width: 75% !important;
    }

    .w-lg-50 {
        width: 50% !important;
    }

    .w-lg-25 {
        width: 25% !important;
    }

    .h-lg-100 {
        height: 100% !important;
    }

    .h-lg-75 {
        height: 75% !important;
    }

    .h-lg-50 {
        height: 50% !important;
    }

    .h-lg-25 {
        height: 25% !important;
    }
}

/* Extra large devices (large desktops, 1200px and up)*/
@media (min-width: 1200px) {
    .w-xl-100 {
        width: 100% !important;
    }

    .w-xl-75 {
        width: 75% !important;
    }

    .w-xl-50 {
        width: 50% !important;
    }

    .w-xl-25 {
        width: 25% !important;
    }

    .h-xl-100 {
        height: 100% !important;
    }

    .h-xl-75 {
        height: 75% !important;
    }

    .h-xl-50 {
        height: 50% !important;
    }

    .h-xl-25 {
        height: 25% !important;
    }
}

.input-group>.date_input {
    max-width: 15%;
}

@media (max-width: 576px) {
    .input-group>.date_input {
        max-width: 100%;
    }
}


/* Validation Required Sign */
.required:after {
    content: "*";
    color: red;
    position: absolute;
    padding-left: 3px;
    margin: -2px;
    font-size: larger;
    font-weight: 900;
}

/*=========================GARMENT PURCHASE============================= */
.garment-purchase-qty>input,
.has-float-label>.product-qty {
    min-width: 80px !important;
}

/*=========================BOOK POS============================= */

.book_pos>.has-float-label label,
.has-float-label>span {
    padding: 0px;
}

.book_pos>.has-float-label>#search_category {
    min-width: 180px !important;
    max-width: 180px !important;
}

.book_pos>.has-float-label>#search_product {
    min-width: 377px !important;
    max-width: 377px !important;
}

.book_pos>.has-float-label>#product_qty {
    min-width: 60px !important;
    max-width: 60px !important;
}

.book_pos>.has-float-label>#free_qty {
    min-width: 85px !important;
    max-width: 85px !important;
}

.book_pos>.has-float-label>#product_price {
    min-width: 125px !important;
    max-width: 125px !important;
}

.book_pos>.has-float-label>#discount_percentage {
    min-width: 100px !important;
    max-width: 100px !important;
}

.book_pos>.has-float-label>#discount_amount {
    min-width: 115px !important;
    max-width: 115px !important;
}

.book_pos>.has-float-label>#amount {
    min-width: 100px !important;
    /* max-width: 100px !important; */
}

/*=========================BOOK POS============================= */


.mobile_mv {
    width: 130px !important;
}

.name_mv {
    width: 130px !important;
}

.search_product_package_mv {
    min-width: 280px !important;
}

.search_product_small_mv {
    min-width: 340px !important;
}

.search_product_category_small_mv {
    min-width: 100px !important;
}

.search_product_mv {
    min-width: 642px !important;
}

@media(max-width: 600px) {
    .search_product_package_mv {
        min-width: 295px !important;
    }

    .search_product_mv {
        min-width: 295px !important;
    }

    .search_product_small_mv {
        min-width: 100px !important;
    }

    .search_product_category_small_mv {
        min-width: 80px !important;
    }

    .mobile_mv {
        width: 100px !important;
    }

    .name_mv {
        width: 100px !important;
    }

    .has-float-label .form-control.form-control-lg.search_product_mv:placeholder-shown:not(:focus)+* {
        font-size: 14px;
    }

}

/*=========================POS============================= */

@media(max-width: 600px) {
    .search_product_mv {
        min-width: 200px;
    }
}

/* Responsive Styles */
@media (max-width: 765px) {

    .has-float-label>input,
    .has-float-label>select {
        width: 100% !important;
        min-width: 0;
        border-right: 1px solid green !important;
        display: block;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-left {
        flex-direction: column;
    }

    .footer-right {
        flex-direction: column;
        gap: 15px;
    }

    .copyright {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 830px) {
    .form-inline {
        flex-direction: column;
        align-items: stretch;
        margin: 5px auto;
    }

    .main-content {
        margin-top: 60px;
    }
}

@media (max-width: 992px) {

    .has-float-label>input,
    .has-float-label>select {
        min-width: 150px;
        max-width: 100% !important;
    }

    .navbar-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 280px;
        height: calc(100vh - 60px);
        background-color: white;
        box-shadow: var(--card-shadow);
        flex-direction: column;
        align-items: flex-start;
        transition: left 0.3s ease;
        overflow-y: auto;
        z-index: 1000;
    }

    .navbar-menu.open {
        left: 0;
    }

    .menu-item {
        width: 100%;
        height: auto;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .menu-link {
        color: var(--dark);
        padding: 15px;
        width: 100%;
        justify-content: flex-start;
        height: auto;
        /* Fix for too big height */
    }

    .menu-link:hover {
        background-color: #f8f9fa;
        color: var(--primary);
    }

    .menu-link.active {
        background-color: rgba(67, 97, 238, 0.05);
        color: var(--primary);
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
        max-height: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: max-height 0.3s ease;
        border: none;
        overflow: hidden;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        display: block;
        /* Ensure the dropdown is visible */
    }

    .dropdown-item {
        padding: 12px 15px 12px 30px;
        color: var(--dark);
    }

    .mobile-toggle {
        display: flex;
    }

    .user-name {
        display: none;
        width: 0;
        /* Fix for still taking space */
        margin: 0;
        /* Remove any margin */
        padding: 0;
        /* Remove any padding */
    }

    /* Fix for dropdown placement */
    .user-profile .dropdown-arrow {
        margin-left: 0;
        /* Remove margin when user-name is hidden */
    }

    /* Fix for action items */
    .action-item {
        position: relative;
        /* Keep relative positioning */
    }

    /* Fix for action item dropdowns */
    .user-dropdown {
        position: absolute;
        top: 60px;
        right: 0;
        left: auto;
        width: 220px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
        display: block;
        /* Make sure it displays */
    }

    .action-item.open .user-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        max-height: none;
        /* Override any max-height constraints */
    }
}

@media (max-width: 768px) {
    .navbar-container {
        padding: 0 15px;
    }

    .menu-link .badge {
        right: 15px;
    }

    .main-content {
        padding: 15px;
    }

    /* Additional fixes for smaller screens */
    .user-dropdown {
        min-width: 200px;
        right: 0;
        left: auto;
        /* Adjust position for better visibility */
    }
}

.f-left {
    float: left;
}

.f-right {
    float: right;
}

/* .pagination {
    margin-top: 5px;
} */
