@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/*
font-family: 'Inter', sans-serif;
*/

html {
    font-size: 16px; /* Set proper base font-size for rem calculations */
}

body {
    padding: 0;
    margin: 0;
    font-size: 16px;
    color: #282828;
    font-family: 'Inter', sans-serif;
    background-color: #f1f1f1;
}

a, button {
    outline: none !important;
    text-decoration: none;
    box-shadow: none;
    transition: all .1s ease-in-out;
}

a:hover, a:focus, select:focus, button:focus, .btn:focus, btn.focus {
    outline: none;
    text-decoration: none;
    box-shadow: none;
}

* {
    margin: 0;
    padding: 0;
}

img {
    border: none;
    vertical-align: middle;
    max-width: 100%;
    height: auto;
}

li {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    outline: none !important;
}

input, select, textarea, button {
    outline: none !important;
    box-shadow: none;
}

input, textarea, select { /*-moz-appearance: none; -webkit-appearance: none;*/
    box-shadow: none !important;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

/*--------------------
	GLOBAL END HERE
--------------------*/
.comp_head {
    display: flex;
    flex-wrap: nowrap;
    border-bottom: 1px solid #e3e3e3;
}

.component_info .nav-tabs {
    margin: 0;
    padding: 0;
    border: none;
    gap: 0.25rem;
    position: relative;
    z-index: 55;
    flex: 1 1;
}

.component_info .nav-tabs .nav-item {
    margin: 0;
    padding: 0;
}

.component_info .nav-tabs .nav-link {
    padding: calc(.5rem + 0.375rem);
    font-size: 14px;
    font-weight: bold;
    line-height: inherit;
    border-radius: 0;
    color: #4a4a4a;
    display: inline-flex;
    border: none;
    position: relative;
}

.component_info .nav-tabs .nav-link::after {
    content: "";
    width: 100%;
    height: 0.125rem;
    border-radius: 0.25rem;
    background: #d4d4d4;
    opacity: 0;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 5;
}

.component_info .nav-tabs .nav-link:hover {
    color: #4a4a4a;
    background: none;
}

.component_info .nav-tabs .nav-link.active {
    color: #303030;
    background: none;
}

.component_info .nav-tabs .nav-link:hover::after {
    opacity: 1;
}

.component_info .nav-tabs .nav-link.active::after {
    opacity: 1;
    background: rgba(0, 134, 86, 1);
}

.filter_info {
    display: flex;
    gap: 8px;
    padding: 0.375rem;
    align-items: center;
}

.filter_info a {
    min-width: 1.75rem;
    padding: 0.375rem 0.25rem;
    margin: 0;
    display: inline-flex;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: inset 0 -0.0625rem 0 #b5b5b5, inset -0.0625rem 0 0 #e3e3e3, inset 0.0625rem 0 0 #e3e3e3, inset 0 0.0625rem 0 #e3e3e3;
    color: #303030;
    justify-content: center;
}

.filter_info a:hover {
    background: #f7f7f7;
    color: #303030;
}

.component_info {
    margin: 0;
    padding: 0;
    box-shadow: 0rem 0.0625rem 0rem 0rem rgba(26, 26, 26, .07);
    border-radius: 0.75rem;
    background-color: #fff;
}

.component_info .dataTables_wrapper {
    margin: 0;
    padding: 0;
}

.component_info .dataTables_filter {
    display: none;
}

.component_info .dataTables_length {
    display: none;
}

.component_info .dataTables_info {
    display: none;
}

/* .component_info .dataTables_paginate{ display: none;} */
.component_info .dataTables_wrapper.no-footer .dataTables_scrollBody {
    border-bottom: none;
}

.component_info table {
    border-bottom: none !important;
    border-radius: 0 0 0.75rem 0.75rem;
}

.component_info table.dataTable > thead > tr > th {
    padding: 0.375rem;
    border-color: #e3e3e3;
    font-size: 12px;
    background: #f7f7f7;
    color: #000000;
    font-weight: bold;
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
    text-align: center;
    width: auto;
    min-width: 5em;
}

.component_info table.dataTable > thead > tr > th:first-child,
.component_info table.dataTable tbody td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
}

.component_info table.dataTable tbody td {
    padding: 0.375rem;
    font-size: 11px !important;
    white-space: nowrap;
    border-color: #e3e3e3;
    color: #303030;
    background: #fff;
    text-align: center;
}

.component_info table.dataTable tbody tr:hover td {
    background: #f7f7f7 !important;
}

/* Responsive font sizes based on screen width */
@media (max-width: 1400px) {
    .component_info table.dataTable > thead > tr > th {
        font-size: 10px !important;
        font-weight: bold !important;
        min-width: 4.5em;
        white-space: normal;
        word-break: keep-all;
        overflow-wrap: break-word;
    }

    .component_info table.dataTable tbody td {
        font-size: 10px !important;
    }
}

@media (max-width: 1200px) {
    .component_info table.dataTable > thead > tr > th {
        font-size: 9px !important;
        font-weight: bold !important;
        min-width: 4em;
        white-space: normal;
        word-break: keep-all;
        overflow-wrap: break-word;
    }

    .component_info table.dataTable tbody td {
        font-size: 9px !important;
    }
}

@media (max-width: 900px) {
    .component_info table.dataTable > thead > tr > th {
        font-size: 8px !important;
        font-weight: bold !important;
        min-width: 3.5em;
        white-space: normal;
        word-break: keep-all;
        overflow-wrap: break-word;
    }

    .component_info table.dataTable tbody td {
        font-size: 8px !important;
    }
}

/* Table column width controls - automatic sizing */
/* All table columns use automatic width distribution */


.component_info .dataTables_wrapper .dataTables_paginate {
    padding: 0.5rem 0.25rem 1.75rem;
    display: flex;
    justify-content: center;
    width: 100%;
}

.component_info .dataTables_wrapper .dataTables_paginate .paginate_button {
    font-size: 0;
    color: transparent;
    border-radius: 0.5rem 0 0 0.5rem;
    background: #e3e3e3;
    height: 28px;
    width: 28px;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none !important;
}

.component_info .dataTables_wrapper .dataTables_paginate > span {
    display: none;
}

.component_info .dataTables_wrapper .dataTables_paginate .paginate_button.previous::after {
    content: "\f104";
    font-family: 'FontAwesome';
    font-size: 18px;
    color: #4a4a4a;
}

.component_info .dataTables_wrapper .dataTables_paginate .paginate_button.next::after {
    content: "\f105";
    font-family: 'FontAwesome';
    font-size: 18px;
    color: #4a4a4a;
}

.component_info .dataTables_wrapper .dataTables_paginate .paginate_button.next {
    border-radius: 0 0.5rem 0.5rem 0;
}

.component_info .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #d4d4d4;
}

.component_info .dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    background: #0000000d;
}

.component_info .dataTables_wrapper .dataTables_paginate .paginate_button.disabled::after {
    color: #b5b5b5;
}


.action_btn {
    padding: 0 0.5rem;
    font-weight: 600;
    border-radius: 8px;
    color: #008656;
    background: rgba(0, 134, 86, 0.1);
    font-size: 13px;
    display: inline-flex;
}

.action_btn:hover {
    color: #fff;
    background: rgba(0, 134, 86, 1);
}

.action_btn.delete {
    color: #fa0000;
    background: rgba(250, 0, 0, 0.1);
}

.action_btn.delete:hover {
    color: #fff;
    background: rgba(250, 0, 0, 1);
}

..action_group {
    display: flex;
    gap: .5rem;
    flex-direction: column;
}

.quote_info {
    margin: 0;
    padding: 20px 20px 5px 20px;
    background: #F9F9F9;
}

.component_info .input-group {
    margin: 0 0 10px 0;
    padding: 0 0 20px;
    position: relative;
}

.component_info .input-group label {
    padding: 0;
    width: 100%;
    font-size: 15px;
    color: #000;
}

.component_info .input-group input {
    margin-top: 5px;
}

.component_info .input-group .chosen-container {
    margin-top: 5px;
}

.component_info .input-group select {
    margin-top: 5px;
}

.component_info .input-group .form-control {
    width: 100%;
    height: 32px;
    background: #fff;
    border-color: #898f94;
    border-radius: 8px !important;
    font-size: 13px;
}

.component_info .input-group textarea.form-control {
    width: 100%;
    min-height: 90px;
    background: #fff;
    border-color: #898f94;
    border-radius: 8px !important;
    font-size: 13px;
}

.component_info .input-group .form-control:hover {
    background: rgba(250, 250, 250, 1);
    border-color: rgba(97, 97, 97, 1);
}

.component_info .input-group .form-control:focus {
    outline: 2px solid rgba(0, 134, 86, 1) !important;
}

.component_info .invalid-error .form-control:not(:focus) {
    border-color: #dc3545;
}

.component_info .invalid-error .invalid-feedback {
    font-size: 12px;
    font-weight: 600;
    position: absolute;
    left: 0;
    bottom: 0;
}

.component_info .quote_gate {
    margin: 0 0 30px;
    padding: 16px 20px 5px 20px;
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 7px;
    box-shadow: 0rem 0.0625rem 0rem 0rem rgba(26, 26, 26, .07);
}

.component_info .quote_gate .form-check {
    margin: 0 0 15px 0;
}

.component_info .quote_gate .form-check .form-check-label {
    margin: 0;
    padding: 0;
    font-size: 14px;
    color: #45494D;
}

.component_info .quote_gate .form-check .form-check-input {
    border-color: #898F94;
    margin-top: 5px;
}

.component_info .quote_gate .form-check .form-check-input:checked {
    background-color: #008060;
    border-color: #008060;
}

.connection_info {
    background: #F9F9F9;
    padding: 20px 10px;
    border-radius: 0 0 0.75rem 0.75rem;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-column-gap: 10px;
    grid-row-gap: 10px;
}

.plan_info {
    background: #F9F9F9;
    padding: 20px 10px;
    border-radius: 0 0 0.75rem 0.75rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-column-gap: 10px;
    grid-row-gap: 10px;
}

.card_form {
    width: 100%;
    max-width: 500px;
    padding: 30px 50px;
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 0.75rem;
    box-shadow: 0rem 0.0625rem 0rem 0rem rgba(26, 26, 26, .07);
    position: relative;
}

.card_form figure {
    margin: 0 0 30px;
    text-align: center;
    padding: 0px 25px;
    height: 150px;
}

.card_form figure img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    padding: 20px;
}

#subscribe_btn {
    background: #008060;
    color: white;
}

.btns {
    margin: 0;
    padding: 2px 20px;
    border-radius: 0.5rem;
    color: #303030;
    min-height: 1.75rem;
    box-shadow: inset 0 -0.0625rem 0 #b5b5b5, inset -0.0625rem 0 0 #e3e3e3, inset 0.0625rem 0 0 #e3e3e3, inset 0 0.0625rem 0 #e3e3e3;
    border: none;
    font-size: 12px;
    background: #fff;
}

.btns:hover, .btns:focus {
    background: #f7f7f7;
    box-shadow: inset 0 -0.0625rem 0 #b5b5b5, inset -0.0625rem 0 0 #e3e3e3, inset 0.0625rem 0 0 #e3e3e3, inset 0 0.0625rem 0 #e3e3e3;
    color: #303030;
}


.is-sticky {
    z-index: 100;
    position: fixed;
    right: 20px;
    bottom: 10px;
    font-size: 12px;
    width: 90%;
    max-width: 478px;
}

.is-sticky .btn-close {
    box-shadow: none;
}

label.error, label.error-message {
    color: red !important;
    width: 100%;
    letter-spacing: 0;
    font-size: 12px !important;
    font-weight: 600;
    /*position: absolute;*/
    left: 0;
    bottom: 0;
}

.component_info .input-group label.error {
    margin-top: 4px
}

.password-container {
    position: relative;
}

.password-input {
    padding-right: 30px;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translate(0, -50%);
    cursor: pointer;
    z-index: 100;
}

.comp_head {
    position: relative;
}

.navbar-form-search {
    z-index: 55;
}

.search_toggle_btn {
    min-width: 1.75rem;
    padding: 0.375rem 0.5rem;
    margin: 0;
    display: inline-flex;
    gap: 5px;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: inset 0 -0.0625rem 0 #b5b5b5, inset -0.0625rem 0 0 #e3e3e3, inset 0.0625rem 0 0 #e3e3e3, inset 0 0.0625rem 0 #e3e3e3 !important;
    color: #4a4a4a;
    justify-content: center;
    border: none;
}

.search_toggle_btn:hover {
    background: #f7f7f7;
    color: #303030;
}

.navbar-form-search .search-form-container {
    text-align: right;
    position: absolute;
    width: calc(100% - 70px);
    overflow: hidden;
    right: 70px;
    top: 0;
    z-index: 9;
    transition: all 0.3s ease-in-out;
    background: #fff;
    padding: 4px 8px;
    height: 100%;
    opacity: 1;
}

.navbar-form-search .search-form-container.hdn {
    width: 0;
    padding: 4px 0;
    opacity: 0;
}

.navbar-form-search .search-form-container .search-input-group {
    width: 100%;
    display: flex;
    gap: 6px;
    height: 100%;
    align-items: center;
}

.navbar-form-search .order-search-form-container {
    text-align: right;
    position: absolute;
    width: calc(100% - 60px);
    overflow: hidden;
    right: 60px;
    top: 0;
    z-index: 9;
    transition: all 0.3s ease-in-out;
    background: #fff;
    padding: 4px 8px;
    height: 100%;
    opacity: 1;
}

.navbar-form-search .order-search-form-container.hdn {
    width: 0;
    padding: 4px 0;
    opacity: 0;
}

.comp_head.order_filter_container.hdn {
    width: 0;
    height: 0;
    opacity: 0;
}

.navbar-form-search .order-search-form-container .search-input-group {
    width: 100%;
    display: flex;
    gap: 6px;
    height: 100%;
    align-items: center;
}

.navbar-form-search .ready-to-ship-search-form-container {
    text-align: right;
    position: absolute;
    width: calc(100% - 270px);
    overflow: hidden;
    right: 270px;
    top: 0;
    z-index: 9;
    transition: all 0.3s ease-in-out;
    background: #fff;
    padding: 4px 8px;
    height: 100%;
    opacity: 1;
}

.navbar-form-search .ready-to-ship-search-form-container.hdn {
    width: 0;
    padding: 4px 0;
    opacity: 0;
}

.comp_head.ready_to_ship_filter_container.hdn {
    width: 0;
    height: 0;
    opacity: 0;
}

.navbar-form-search .ready-to-ship-search-form-container .search-input-group {
    width: 100%;
    display: flex;
    gap: 6px;
    height: 100%;
    align-items: center;
}

.navbar-form-search .form-control {
    width: 100%;
    height: 28px;
    background: #fff;
    border-color: #898f94;
    border-radius: 0.25rem;
    font-size: 14px;
}

.navbar-form-search .form-control:hover {
    background: rgba(250, 250, 250, 1);
    border-color: rgba(97, 97, 97, 1);
}

.navbar-form-search .form-control:focus {
    outline: 2px solid #005bd3 !important;
    border-color: transparent;
}

.navbar-form-search .form-group {
    flex: 1 1 0;
}

.navbar-form-search .search_cancel_btn {
    min-width: 56px;
    height: 24px;
    margin: 0;
    padding: 0 0.25rem;
    background: #fff;
    color: #4a4a4a;
    border-radius: 0.5rem;
    font-size: 12px;
    font-weight: 500;
    border: none;
}

.navbar-form-search .search_cancel_btn:hover {
    background: #f7f7f7;
    color: #4a4a4a;
}

.navbar-form-search .search_save_btn {
    min-width: 56px;
    height: 24px;
    margin: 0;
    padding: 0 0.25rem;
    background: #0000000d;
    color: #b5b5b5;
    border-radius: 0.5rem;
    font-size: 12px;
    font-weight: 500;
    border: none;
}

.navbar-form-search .search_save_btn:hover {
    background: #f7f7f7;
    color: #303030;
    box-shadow: inset 0 -0.0625rem 0 #b5b5b5, inset -0.0625rem 0 0 #e3e3e3, inset 0.0625rem 0 0 #e3e3e3, inset 0 0.0625rem 0 #e3e3e3 !important;
}

.menu-section {
    padding: 20px;
    font-size: 15px;
}

h5 {
    margin-bottom: 10px;
}

.content {
    border-top: 1px solid #dee2e6;
    padding-top: 10px;
}

.content p {
    margin: 0;
}

#modal-product-edit label.error {
    position: relative;
}

#modal-nfm-connection label.error {
    position: relative;
}

#modal-sendle-connection label.error {
    position: relative;
}

#modal-roadrunner-connection label.error {
    position: relative;
}

#modal-transdirect-connection label.error {
    position: relative;
}

#modal-australiapost-connection label.error {
    position: relative;
}

#modal-mothership-connection label.error {
    position: relative;
}

#modal-randl-connection label.error {
    position: relative;
}

#modal-alliance-connection label.error {
    position: relative;
}

#modal-estes-connection label.error {
    position: relative;
}

#modal-order-edit label.error, #modal-order-edit label.error-message {
    position: relative;
}

#modal-add-depo label.error {
    position: relative;
}

#modal-edit-depo label.error {
    position: relative;
}

#quote-form label.error {
    position: relative;
}

.connection-modal-dialog {
    max-width: 1000px;
    margin: 2rem auto;
}

.connection-info-panel {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #008060;
    height: 100%;
}

.connection-info-panel h6 {
    font-weight: 600;
    font-size: 14px;
}

.connection-info-panel .info-section {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
}

.connection-info-panel .info-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.connection-info-panel .info-section h6.text-primary {
    color: #008060;
    font-size: 13px;
    font-weight: 600;
}

.connection-info-panel p {
    font-size: 12px;
    line-height: 1.6;
    color: #555;
}

.connection-info-panel ul li {
    font-size: 12px;
    line-height: 1.6;
    color: #555;
}

.connection-info-panel strong {
    color: #282828;
    font-weight: 600;
}

.connection-info-panel a {
    color: #008060;
    text-decoration: none;
    word-break: break-all;
}

.connection-info-panel a:hover {
    color: #006b4f;
    text-decoration: underline;
}

.image-fluid-container {
    padding: 0 20px;
}

.modal-content input {
    margin-top: 5px;
}

.img-fluid {
    max-height: 150px
}

.carrier-div, .iconsignit-div, .sendle-div, .roadrunner-div, .transdirect-div, .australiapost-div,
.mothership-div, .randl-div, .alliance-div, .estes-div, .upcoming-carrier-div, .download-label-div,
.bigpost-div, .machship-div, .saia-div, .directfreight-div {
    cursor: pointer
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translate(0, -50%);
    cursor: pointer;
    z-index: 100;
}

#modal-iconsignit-connection label.error {
    position: relative;
}

.drag_drop::before {
    content: "\2630";
    font-size: 19px;
    color: #6b7280;
    cursor: all-scroll;
}

.form-switch.form-switch-md .form-check-input {
    height: 1.5rem;
    width: calc(2rem + 0.75rem);
    border-radius: 3rem;
}

.connect_list {
    padding: 20px;
    margin: 0;
    background: #F9F9F9;
}

.connect_block {
    padding: 14px;
    margin: 0;
    background: #fff;
    position: relative;
    border-radius: 10px;
    border: 1px solid #DEDEDE;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 167px;
}

.connect_block img {
    max-height: 105px;
    object-fit: contain;
}

.connect_block:before {
    content: "";
    width: 50px;
    height: 51px;
    position: absolute;
    top: -2.5px;
    left: -3px;
    display: none;
}

.connect_block.active {
    border-color: #108060;
    box-shadow: 0 2px 5px rgba(16, 128, 96, 0.3);
}

.connect_block.active:before {
    display: block;
    background: url(../images/active_curve.svg) no-repeat center center;
}

.connect_block.inactive:before {
    display: block;
    background: url(../images/inactive_curve.svg) no-repeat center center;
}

.connect_block.request:before {
    display: block;
    background: url(../images/request_curve.svg) no-repeat center center;
}

.connect_block.connected {
    border-color: #108060;
    box-shadow: 0 2px 5px rgba(16, 128, 96, 0.3);
}

/* Carrier Badges Styling */
.carrier-badges {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    justify-content: center;
    margin-top: 12px;
    padding: 0 8px;
    width: 100%;
    align-content: center;
    align-items: center;
    flex-direction: column;
}

.carrier-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.carrier-badge-success {
    background: rgba(0, 128, 96, 0.1);
    color: #008060;
    border: 1px solid rgba(0, 128, 96, 0.2);
}

.carrier-badge-info {
    background: rgba(9, 105, 218, 0.1);
    color: #0969da;
    border: 1px solid rgba(9, 105, 218, 0.2);
}

.carrier-badge-warning {
    background: rgba(185, 80, 0, 0.1);
    color: #B95000;
    border: 1px solid rgba(185, 80, 0, 0.2);
}

.carrier-badge-subdued {
    background: #F3F4F5;
    color: #6D7175;
    border: 1px solid #E1E3E5;
}

.question-icon {
    cursor: pointer;
    font-size: 15px;
    margin-left: 2px;
}

#modal-product-import label.error {
    position: relative;
}

.col-format {
    width: 20% !important;
}

.navbar-form-search .depo-search-form-container {
    text-align: right;
    position: absolute;
    width: calc(100% - 40px);
    overflow: hidden;
    right: 40px;
    top: 0;
    z-index: 9;
    transition: all 0.3s ease-in-out;
    background: #fff;
    padding: 4px 8px;
    height: 100%;
    opacity: 1;
}

.navbar-form-search .depo-search-form-container.hdn {
    width: 0;
    padding: 4px 0;
    opacity: 0;
}

.navbar-form-search .depo-search-form-container .search-input-group {
    width: 100%;
    display: flex;
    gap: 6px;
    height: 100%;
    align-items: center;
}

.text-wrap {
    white-space: normal;
    word-break: break-all;
}

.text-align-center {
    text-align: -webkit-center;
}

.comp_head.filter_container.hdn {
    width: 0;
    height: 0;
    opacity: 0;
}

a.btn.dropdown-toggle::after {
    display: none !important;
}

i.fa.fa-angle-down {
    color: rgba(74, 74, 74, 1);
    font-weight: 600;
    margin-left: 2px
}

.dropdown {
    padding: 3px 0
}

.d-item .form-check-input {
    cursor: pointer
}

.d-item .form-check-label {
    cursor: pointer
}

.d-item a {
    color: rgba(0, 91, 211, 1) !important;
    cursor: pointer;
}

.d-item {
    display: block;
    width: 100%;
    padding: 0rem 1rem;
    clear: both;
    font-weight: 400;
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    font-size: 13px
}

.required-field::before {
    content: "*";
    color: red;
    float: right;
}

a.btn.dropdown-toggle {
    position: relative;
    top: 50%;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    --bs-btn-padding-y: .25rem;
    --bs-btn-padding-x: .5rem;
    --bs-btn-font-size: 12px;
    border-radius: 0.5rem;
    border: rgba(227, 227, 227, 1) dashed .0625rem;
}

select.form-select.form-select-sm {
    width: fit-content;
    background-color: transparent;
    border: 0;
    padding-left: 0px;
}

.loader-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    text-align: center;
    color: white;
    font-size: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.loader {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
    margin-bottom: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.btn-disabled:hover {
    color: #008656 !important;
    background: rgba(0, 134, 86, 0.1) !important;
    cursor: not-allowed !important;
}

.w-10 {
    width: 10% !important
}

.w-5 {
    width: 5% !important
}

.display-inline-block {
    display: inline-block !important;
}

fieldset {
    border: 1px groove #000 !important;
    padding: 0 1.4em 1.4em 1.4em !important;
    margin: 0 0 1.5em 0 !important;
    -webkit-box-shadow: 0px 0px 0px 0px #000;
}

legend {
    float: none !important;
    margin-bottom: 0 !important;
    font-size: 16px !important;
    line-height: normal !important;
    width: auto !important;
    padding: 0 10px !important;
    color: #000000 !important;
}

.review-btn {
    min-width: 2.5rem;
    padding: 0.25rem 0.4rem;
    font-size: 14px;
    margin-top: 8px;
    margin-right: 5px;
    display: inline-flex;
    background: #008060 !important;
    border-radius: 0.3rem;
    color: #fff !important;
    justify-content: center;
    border: none;
}

.drp-bulk-action {
    padding-right: .25rem !important;
    padding-left: .25rem !important;
    padding-top: 0.12rem !important;
    padding-bottom: .12rem !important;
}

.bulk-action-align {
    margin-top: .35rem !important;
}

.text-right {
    text-align: right !important;
}

.manifest {
    padding: 2.5px 7px !important;
    cursor: pointer;
}

/* Search Bar Styling - Always Visible */
.search-bar-container {
    background: #f7f7f7;
    border-bottom: 1px solid #e3e3e3;
    padding: 12px 20px;
    display: flex;
    align-items: center;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.search-input-wrapper .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
    z-index: 1;
}

.search-input-wrapper .search-input {
    width: 120%;
    padding-left: 38px;
    padding-right: 38px;
    height: 36px;
    border: 1px solid #d4d4d4;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    transition: all 0.2s ease;
}

.search-input-wrapper .search-input:focus {
    outline: none;
    border-color: #008060;
    box-shadow: 0 0 0 3px rgba(0, 128, 96, 0.1);
}

.search-input-wrapper .search-input::placeholder {
    color: #999;
}

.search-clear-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #6c757d;
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.search-clear-btn:hover {
    background: #f0f0f0;
    color: #333;
}

/* Show clear button when there's text */
.search-input-wrapper:has(.search-input:not(:placeholder-shown)) .search-clear-btn {
    display: block !important;
}

/* Remove old search toggle button styles */
.search_toggle_btn,
.navbar-form-search,
.search-form-container {
    display: none !important;
}

/* Adjust component info to account for search bar */
.component_info {
    border-radius: 0.75rem;
    overflow: hidden;
}

/* Ensure filter dropdowns work with new layout */
.comp_head.filter_container,
.comp_head.order_filter_container,
.comp_head.ready_to_ship_filter_container,
.comp_head.bulk_booking_filter_container {
    padding: 12px 20px;
    background: #fff;
    border-bottom: 1px solid #e3e3e3;
}

/* Product Import/Export Buttons */
#product-import, #product-export {
    font-size: 12px;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

#product-import {
    color: #007bff;
    border: 1px solid #007bff;
    background: transparent;
}

#product-import:hover {
    color: #fff;
    background: #007bff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

#product-export {
    color: #28a745;
    border: 1px solid #28a745;
    background: transparent;
}

#product-export:hover {
    color: #fff;
    background: #28a745;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

#product-export.btn-success {
    color: #fff;
    background: #28a745;
    border-color: #28a745;
}

/* Inline Editing Styles */
.inline-edit-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.inline-edit {
    border: 1px solid #008060 !important;
    background: #f8fff8 !important;
}

.inline-edit:focus {
    outline: 2px solid #008060 !important;
    box-shadow: 0 0 0 2px rgba(0, 128, 96, 0.1) !important;
}

.edit-display {
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 3px;
    transition: background 0.2s ease;
}

tr:hover .edit-display {
    background: rgba(0, 128, 96, 0.05);
}

.product-inline-edit, .product-edit-advanced {
    font-size: 12px !important;
    padding: 2px 8px !important;
}

.save-inline-edit {
    background: rgba(0, 134, 86, 1) !important;
    color: #fff !important;
}

.cancel-inline-edit {
    background: rgba(220, 53, 69, 0.1) !important;
    color: #dc3545 !important;
}

.cancel-inline-edit:hover {
    background: #dc3545 !important;
    color: #fff !important;
}

/* Product checkbox styling */
.product-select-checkbox,
#select-all-products {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.product-select-checkbox:checked,
#select-all-products:checked {
    background-color: #008060;
    border-color: #008060;
}


/* Ensure buttons align properly in filter_info */
.filter_info button {
    margin: 0;
}

/* Brevo Chat Widget Positioning Fix */
/* Move the chat widget to avoid blocking navigation */
#brevo-conversations-widget {
    bottom: 20px !important;
    right: 20px !important;
    z-index: 999 !important; /* Lower than modal (usually 1050+) but higher than content */
}

/* Adjust chat bubble position */
#brevo-conversations-widget iframe {
    bottom: 0 !important;
    right: 0 !important;
}

/* For mobile devices, position it higher to avoid navigation */
@media (max-width: 768px) {
    #brevo-conversations-widget {
        bottom: 80px !important; /* Move higher on mobile to avoid bottom navigation */
        right: 10px !important;
    }
}

/* If the widget launcher button needs adjustment */
.brevo-conversations-launcher,
[id*="brevo-conversations-launcher"],
[class*="brevo-conversations-launcher"] {
    bottom: 20px !important;
    right: 20px !important;
}

/* Ensure DataTables pagination is not blocked */
.dataTables_wrapper .dataTables_paginate {
    margin-bottom: 60px !important; /* Add space to avoid chat widget overlap */
}

/* Alternative: Move chat widget to the left side if right side is too crowded */
/* Uncomment below if you prefer left-side positioning
#brevo-conversations-widget {
    bottom: 20px !important;
    left: 20px !important;
    right: auto !important;
}
*/


/* ========================================
   Page Header Styles (for App Bridge Navigation)
   ======================================== */

.page-header {
    border-bottom: 1px solid #e1e4e9;
    padding-bottom: 16px;
    margin-bottom: 24px !important;
}

.page-title {
    font-size: 28px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    line-height: 1.2;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-title {
        font-size: 24px;
    }

    .page-header {
        padding-bottom: 12px;
        margin-bottom: 20px !important;
    }
}

/* ========================================
   Main Search & Filter Bar Styles
   ======================================== */

.main-search-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e1e4e9;
    margin: 0 0 20px 0;
    border-radius: 0;
    box-shadow: 0rem 0.0625rem 0rem 0rem rgba(26, 26, 26, .07);
    position: relative;
    z-index: 1000;
}

/* Override the main search filter when it contains visible page filters */
.main-search-filter:has(.page-search-filter:not(.d-none)) {
    justify-content: space-between;
}

.main-search-filter .page-search-filter:not(.d-none) {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Search Section (Left Side) */
.search-section {
    flex: 0 0 auto;
    max-width: 500px;
    margin-right: 20px;
    min-width: 280px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-box .form-control {
    padding: 10px 40px 10px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background-color: white;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.search-box .form-control:focus {
    border-color: #0969da;
    box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.1);
}

.search-box .search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 14px;
    pointer-events: none;
}

/* Filter Section (Right Side) */
.filter-section {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    position: relative;
    z-index: 1001;
}

/* Order page specific: Force single-line layout only when visible */
.page-search-filter:not(.d-none) {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
}

.page-search-filter:not(.d-none) .filter-section {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.page-search-filter:not(.d-none) .nav,
.page-search-filter:not(.d-none) .nav-tabs {
    flex-wrap: nowrap;
}

/* Ensure dropdown menus appear above everything */
.main-search-filter .dropdown-menu {
    z-index: 1050 !important;
}

.filter-section .filter_info {
    margin: 0;
    padding: 0;
    gap: 8px;
}

.filter-btn {
    font-size: 12px;
    padding: 6px 8px;
    border: 1px solid #d1d5db;
    background-color: white;
    color: #374151;
    border-radius: 6px;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    text-decoration: none;
    min-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-btn:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
    color: #374151;
}

.filter-btn.active {
    background-color: #e7f3ff;
    border-color: #b6e3ff;
    color: #0969da;
}

#clear-filters {
    font-size: 13px;
    padding: 8px 12px;
}

/* Responsive Design - keeping main container simple */
@media (max-width: 900px) {
    .main-search-filter {
        padding: 12px 15px;
    }
}

@media (max-width: 768px) {
    .filter-section .filter_info {
        flex-wrap: nowrap;
        gap: 4px;
    }

    .filter-btn {
        font-size: 12px;
        padding: 6px 10px;
    }
}

@media (max-width: 576px) {
    .filter-section .filter_info {
        justify-content: center;
    }

    .search-box .form-control {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* ===========================================
   FILTER DROPDOWN CUSTOMIZATION CONTROLS
   =========================================== */

/* Filter Button Size Controls */
.filter-btn {
    /* Default sizing - you can override these */
    --filter-btn-font-size: 13px;
    --filter-btn-padding-x: 12px;
    --filter-btn-padding-y: 8px;
    --filter-btn-min-width: 120px;
    --filter-btn-height: auto;

    font-size: var(--filter-btn-font-size);
    padding: var(--filter-btn-padding-y) var(--filter-btn-padding-x);
    min-width: var(--filter-btn-min-width);
    height: var(--filter-btn-height);
}

/* Filter Section Vertical Positioning Controls */
.filter-section {
    /* Vertical positioning - you can override these */
    --filter-vertical-offset: 15px;
    --filter-align-items: center; /* center, flex-start, flex-end, baseline */

    align-items: var(--filter-align-items);
    transform: translateY(var(--filter-vertical-offset));
}

/* UTILITY CLASSES FOR EASY CUSTOMIZATION */

/* Size Variants */
.filter-btn-small {
    --filter-btn-font-size: 11px;
    --filter-btn-padding-x: 8px;
    --filter-btn-padding-y: 6px;
}

.filter-btn-medium {
    --filter-btn-font-size: 13px;
    --filter-btn-padding-x: 12px;
    --filter-btn-padding-y: 8px;
}

.filter-btn-large {
    --filter-btn-font-size: 14px;
    --filter-btn-padding-x: 16px;
    --filter-btn-padding-y: 10px;
    --filter-btn-min-width: 120px;
}

.filter-btn-xl {
    --filter-btn-font-size: 16px;
    --filter-btn-padding-x: 20px;
    --filter-btn-padding-y: 12px;
    --filter-btn-min-width: 140px;
}

/* Vertical Position Variants */
.filters-top {
    --filter-vertical-offset: -5px;
    --filter-align-items: flex-start;
}

.filters-center {
    --filter-vertical-offset: 0px;
    --filter-align-items: center;
}

.filters-bottom {
    --filter-vertical-offset: 5px;
    --filter-align-items: flex-end;
}

.filters-up-more {
    --filter-vertical-offset: -10px;
}

.filters-down-more {
    --filter-vertical-offset: 10px;
}

/* Height Variants */
.filter-btn-compact {
    --filter-btn-height: 32px;
}

.filter-btn-comfortable {
    --filter-btn-height: 40px;
}

.filter-btn-spacious {
    --filter-btn-height: 48px;
}

/* PAGE-SPECIFIC CUSTOMIZATIONS - EXAMPLES */
/* You can uncomment and modify these as needed */

/* Make all order page filters larger */
/*
.main-search-filter .page-search-filter:has(.order-package-type-dropdown) .filter-btn {
    --filter-btn-font-size: 14px;
    --filter-btn-padding-x: 16px;
    --filter-btn-padding-y: 10px;
    --filter-btn-min-width: 130px;
}
*/

/* Move order page filters up slightly */
/*
.main-search-filter .page-search-filter:has(.order-package-type-dropdown) .filter-section {
    --filter-vertical-offset: -3px;
}
*/

/* Make products page filters extra large */
/*
.main-search-filter .page-search-filter:has(.product_dropdown) .filter-btn {
    --filter-btn-font-size: 15px;
    --filter-btn-padding-x: 18px;
    --filter-btn-padding-y: 12px;
    --filter-btn-min-width: 140px;
}
*/

/* Weight Filter Specific Styling */
.order-weight-dropdown .filter-btn {
    min-width: 140px;
}

/* Products Page Header Styling */
.comp_head .d-flex.justify-content-between {
    padding: 16px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e1e4e9;
    margin-bottom: 20px;
    border-radius: 0;
    box-shadow: 0rem 0.0625rem 0rem 0rem rgba(26, 26, 26, .07);
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100%;
}

.comp_head .d-flex.justify-content-between .page-title {
    font-size: 28px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    line-height: 1.2;
    flex: 0 0 auto;
}

.comp_head .d-flex.justify-content-between .d-flex.gap-2 {
    gap: 8px;
    flex: 0 0 auto;
    margin-left: auto;
}

/* More specific rule for products page header */
.comp_head .d-flex.justify-content-between:has(.page-title) {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
}

.comp_head .d-flex.justify-content-between:has(.page-title) .page-title {
    flex: 0 0 auto !important;
    margin-right: auto !important;
}

.comp_head .d-flex.justify-content-between:has(.page-title) .d-flex.gap-2 {
    flex: 0 0 auto !important;
    margin-left: auto !important;
}

/* DIRECT CSS VARIABLE OVERRIDES */
/* You can also override these variables directly: */

/* Example: Make ALL filter buttons larger */
/*
:root {
    --filter-btn-font-size: 15px;
    --filter-btn-padding-x: 16px;
    --filter-btn-padding-y: 10px;
    --filter-btn-min-width: 120px;
    --filter-vertical-offset: -2px;
}
*/

/* Enhanced Clear button styles for main-search-filter */
.main-search-filter .search-clear-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #6c757d;
    padding: 6px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: none;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.main-search-filter .search-clear-btn:hover {
    background: #f0f0f0;
    color: #333;
    transform: translateY(-50%) scale(1.1);
}

.main-search-filter .search-clear-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* Show clear button when there's text - multiple selectors for better compatibility */
.main-search-filter .search-box:has(.form-control:not(:placeholder-shown)) .search-clear-btn,
.main-search-filter .search-box:has(input:not([value=""])) .search-clear-btn {
    display: flex !important;
}

/* Fallback for browsers that don't support :has() */
.main-search-filter .search-box.has-text .search-clear-btn {
    display: flex !important;
}

/* Enhanced clear button animations */
.main-search-filter .search-clear-btn i {
    transition: transform 0.15s ease;
}

.main-search-filter .search-clear-btn:hover i {
    transform: rotate(90deg);
}

/* External Clear Button Styling */
.search-clear-external {
    white-space: nowrap;
    font-size: 12px;
    padding: 6px 10px;
    height: 36px;
    border-radius: 6px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.search-clear-external:hover {
    background-color: #e2e6ea;
    border-color: #dae0e5;
    transform: translateY(-1px);
}

.search-clear-external i {
    transition: transform 0.15s ease;
}

.search-clear-external:hover i {
    transform: rotate(90deg);
}

/* Show clear button when there's text - using JavaScript fallback */
.search-section.has-text .search-clear-external,
.search-input-wrapper.has-text .search-clear-external {
    display: inline-flex !important;
}

/* Force show clear button for testing - remove this after verifications */
/* TEMPORARY - to test if clear button appears on New Orders tab */
#order-clear-search-input {
    display: inline-flex !important;
    opacity: 0.3;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-evenly;
    align-content: stretch;
    align-items: center;
}

.search-section.has-text #order-clear-search-input {
    opacity: 1.0;
}

/* Page-specific search and filter layout */
.page-search-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* When no filters are present, allow search to take more space */
.main-search-filter:has(.filter-section:empty) .search-section,
.main-search-filter:has(.filter-section .filter_info:empty) .search-section {
    max-width: 600px;
}

