/* Interactive sales, shipments and sell-return views. Print templates are intentionally excluded. */
.sales-page-header {
    padding-top: 20px;
    padding-bottom: 12px;
}

.sales-page-header > h1 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: #102348;
    font-size: 27px;
    font-weight: 700;
}

.sales-page-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: 1px solid #cfe0fb;
    border-radius: 12px;
    color: #1463df;
    background: #eaf2ff;
    font-size: 17px;
}

.sales-return-title-icon {
    border-color: #fed7aa;
    color: #d97706;
    background: #fff7ed;
}

.sell-return-add-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.sell-return-add-header::before,
.sell-return-add-header::after {
    display: none;
    content: none;
}

.sell-return-back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-left: auto;
    padding: 9px 15px;
    border: 1px solid #c9d7e8;
    border-radius: 8px;
    color: #365379;
    background: #fff;
    box-shadow: 0 3px 9px rgba(15, 23, 42, 0.05);
    font-size: 12px;
    font-weight: 600;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.sell-return-back-button:hover,
.sell-return-back-button:focus {
    border-color: #1463df;
    color: #1463df;
    background: #f4f8ff;
}

.sales-page-header h1 small {
    margin-left: 5px;
    color: #718096;
    font-size: 13px;
    font-weight: 500;
}

.sales-modern-page {
    padding-top: 8px;
}

.sales-modern-page .box {
    overflow: visible;
    margin-bottom: 18px;
    border: 1px solid #e1e8f2;
    border-top-width: 1px;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.045);
}

.sales-modern-page .box::before,
.sales-modern-page .box::after {
    display: table;
    content: '';
}

.sales-modern-page .box::after { clear: both; }

.sales-modern-page .box-header {
    min-height: 58px;
    padding: 17px 20px;
    border-bottom: 1px solid #e7edf5;
}

.sales-modern-page .box-header.with-border { border-bottom-color: #e7edf5; }

.sales-modern-page .box-header .box-title {
    color: #183153;
    font-size: 17px;
    font-weight: 700;
}

.sales-modern-page .box-body {
    padding: 19px 20px;
}

.sales-modern-page .box-tools {
    top: 10px;
    right: 13px;
}

.sales-modern-page .box-tools .btn-primary {
    padding: 9px 15px;
    border-color: #1463df;
    border-radius: 8px;
    background: #1463df;
    box-shadow: 0 5px 12px rgba(20, 99, 223, 0.18);
    font-weight: 600;
}

.sales-modern-page .form-group > label {
    margin-bottom: 7px;
    color: #29446b;
    font-size: 12px;
    font-weight: 600;
}

.sales-modern-page .form-control,
.sales-modern-page .select2-container .select2-selection--single {
    min-height: 40px;
    border-color: #d5dfec;
    border-radius: 8px;
    color: #263d60;
    background-color: #fff;
    box-shadow: none;
}

.sales-modern-page textarea.form-control { min-height: 74px; }

.sales-modern-page .form-control:focus,
.sales-modern-page .select2-container--focus .select2-selection--single {
    border-color: #69a2f4;
    box-shadow: 0 0 0 3px rgba(20, 99, 223, 0.1);
}

.sales-modern-page .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 38px;
}

.sales-modern-page .select2-container .select2-selection--single .select2-selection__arrow {
    height: 38px;
}

.sales-modern-page .input-group-addon,
.sales-modern-page .input-group-btn > .btn {
    min-height: 40px;
    border-color: #d5dfec;
    color: #1463df;
    background: #f4f8ff;
}

.sales-modern-page .input-group-addon:first-child,
.sales-modern-page .input-group-btn:first-child > .btn {
    border-radius: 8px 0 0 8px;
}

.sales-modern-page .input-group-btn:last-child > .btn {
    border-radius: 0 8px 8px 0;
}

.sales-modern-page .help-block {
    color: #8290a6;
    font-size: 10px;
}

.sales-modern-page input[type='file'] {
    width: 100%;
    padding: 8px;
    border: 1px dashed #b9c9dd;
    border-radius: 8px;
    color: #526179;
    background: #f8fafc;
}

.sales-modern-page .table-responsive {
    border: 0;
    border-radius: 10px;
}

.sales-modern-page table.table {
    margin-bottom: 0;
    color: #223a5e;
}

.sales-modern-page table.table > thead > tr > th {
    padding: 12px 10px;
    border-color: #dbe4f0;
    color: #304c75;
    background: #f5f8fc;
    font-size: 11px;
    font-weight: 700;
    vertical-align: middle;
    text-transform: uppercase;
}

.margin-top-10 {
    margin-top: 10px;
}

.sales-modern-page table.table > tbody > tr > td,
.sales-modern-page table.table > tfoot > tr > td,
.sales-modern-page table.table > tfoot > tr > th {
    padding: 11px 10px;
    border-color: #e1e8f1;
    vertical-align: middle;
}

.sales-modern-page table.table > tbody > tr:hover > td {
    background: #f7faff;
}

.sales-modern-page table.table > tfoot > tr {
    color: #183153;
    background: #eef4fb;
}

.sales-reference-link {
    display: inline;
    padding: 0;
    border: 0;
    color: #365379;
    background: transparent;
    font-weight: 600;
    line-height: inherit;
    text-decoration: none;
}

.sales-reference-link:hover,
.sales-reference-link:focus {
    color: #1463df;
    text-decoration: underline;
}

/* POS sales lists */
.sales-quotation-title-icon {
    border-color: #c7d2fe;
    color: #4f46e5;
    background: #eef2ff;
}

.sales-draft-title-icon {
    border-color: #fde68a;
    color: #b45309;
    background: #fffbeb;
}

.sales-subscription-title-icon {
    border-color: #bbf7d0;
    color: #15803d;
    background: #f0fdf4;
}

.sales-order-title-icon {
    border-color: #bfdbfe;
    color: #1d4ed8;
    background: #eff6ff;
}

.sale-pos-list-page .sale-pos-list-card {
    overflow: visible;
}

.sale-pos-list-page .sale-pos-list-card > .box-body {
    padding-top: 16px;
}

.sale-pos-table-wrap {
    /*border: 1px solid #dce5f0 !important;*/
    background: #fff;
}

.sale-pos-list-page .sale-pos-add-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 125px;
}

.sale-subscriptions-page .box-title > i {
    margin-right: 7px;
    color: #15803d;
}

.sale-subscriptions-filter {
    margin-bottom: 7px;
    padding: 14px 2px 2px;
    border-bottom: 1px solid #e7edf5;
}

.sale-subscriptions-page #subscriptions_table_wrapper {
    margin-top: 4px;
}

.sales-order-list-card .box-title {
    display: inline-flex;
    align-items: center;
}

.sales-order-table-wrap {
    box-shadow: 0 2px 7px rgba(30, 64, 105, 0.03);
}

.sales-order-page #sell_table > thead > tr > th:first-child,
.sales-order-page #sell_table > tbody > tr > td:first-child {
    min-width: 95px;
    text-align: center;
}

.sales-order-page #sell_table .label {
    display: inline-block;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
}

.sell-form-page .box-solid {
    position: relative;
}

.sales-order-form-header .sales-page-title-icon {
    border-color: #bfdbfe;
    color: #1d4ed8;
    background: #eff6ff;
}

.sales-order-create-page {
    padding-top: 2px;
}

.sales-order-location-row {
    margin-bottom: 12px;
}

.sales-order-location-row .form-group {
    margin-bottom: 0;
}

.sales-order-location-row .input-group {
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
}

.sales-order-location-row .input-group-addon:first-child {
    width: 40px;
}

.sales-order-create-page .box-header {
    min-height: 54px;
    padding: 15px 18px;
    background: #fbfdff;
}

.sales-order-create-page .box-header .box-title {
    font-size: 15px;
}

.sales-order-create-page .box-body {
    padding: 18px;
}

.sales-order-details-card .checkbox {
    min-height: 40px;
    margin: 0;
    padding: 9px 12px;
    border: 1px solid #dce5f0;
    border-radius: 8px;
    background: #f8fbff;
}

.sales-order-details-card .checkbox .btn-link {
    padding: 0 6px;
}

.sales-order-details-card .multi-input {
    display: flex;
    flex-wrap: wrap;
}

.sales-order-details-card .multi-input > label {
    width: auto;
    margin-right: 5px;
}

.sales-order-details-card .multi-input > br {
    flex-basis: 100%;
}

.sales-order-details-card .multi-input .width-40 {
    width: 40% !important;
    border-radius: 8px 0 0 8px;
}

.sales-order-details-card .multi-input .width-60 {
    width: 60% !important;
    border-left: 0;
    border-radius: 0 8px 8px 0;
}

.sales-order-address-row {
    display: flex;
    clear: both;
    margin: 3px 0 14px;
    gap: 12px;
}

.sales-order-address-card {
    display: flex;
    width: 50%;
    min-height: 70px;
    padding: 12px 14px;
    border: 1px solid #e0e8f2;
    border-radius: 10px;
    color: #64748b;
    background: #f8fafc;
    font-size: 11px;
    line-height: 1.55;
    gap: 10px;
}

.sales-order-address-card > div {
    min-width: 0;
}

.sales-order-address-card strong {
    display: block;
    margin-bottom: 3px;
    color: #29446b;
    font-size: 11px;
}

.sales-order-address-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    border-radius: 8px;
    color: #1463df;
    background: #eaf2ff;
}

.sales-order-upload-field .file-input .input-group,
.sales-order-upload-field .file-input .form-control {
    min-height: 40px;
}

.sales-order-upload-field .btn-file {
    min-height: 40px;
    border-color: #d5dfec;
    border-radius: 0 8px 8px 0;
    color: #1463df;
    background: #f4f8ff;
}

.sales-order-related-field {
    min-width: 360px;
}

.sales-order-products-card .box-body {
    padding-top: 20px;
}

.sales-order-products-card .col-sm-10.col-sm-offset-1 {
    width: 100%;
    margin-left: 0;
}

.sales-order-products-card #search_product {
    height: 44px;
}

.sales-order-products-card .pos_product_div {
    width: 100%;
    margin: 5px 0 0;
    padding: 0;
}

.sales-order-products-card #pos_table {
    overflow: hidden;
    border-color: #dce5f0;
}

.sales-order-products-card #pos_table > thead > tr > th {
    height: 44px;
    background: #f3f7fc;
}

.sales-order-products-card .pos_product_div > .table-responsive:last-child {
    margin-top: -1px;
    border-radius: 0 0 9px 9px;
}

.sales-order-products-card .pos_product_div > .table-responsive:last-child td {
    padding: 10px 14px;
    background: #f8fafc;
}

.sales-order-notes-card textarea {
    min-height: 84px;
}

.sales-order-shipping-card textarea {
    min-height: 86px;
}

.sales-order-actions {
    margin: 2px 0 18px;
    padding: 15px;
    border: 1px solid #e0e8f2;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.04);
}

.sales-order-actions .btn {
    min-width: 145px;
    padding: 10px 17px;
    border-radius: 8px;
    font-weight: 600;
}

.sales-order-actions .btn i {
    margin-right: 6px;
}

.sell-form-page #search_product {
    height: 44px;
    font-size: 13px;
}

.sell-form-page .pos_product_div {
    margin: 4px 0 0;
    padding: 0 15px 10px;
}

.sell-form-page #pos_table {
    border: 1px solid #dce5f0;
    border-radius: 10px;
}

.sell-form-page #pos_table > thead > tr > th {
    min-width: 105px;
    text-align: center;
}

.sell-form-page #pos_table > thead > tr > th:first-child { min-width: 230px; }

.sell-form-page .btn-primary,
.sell-return-form-page button[type='submit'] {
    border-color: #1463df;
    border-radius: 8px;
    background: #1463df;
    box-shadow: 0 5px 12px rgba(20, 99, 223, 0.18);
    font-weight: 600;
}

.sell-parent-sale-card {
    border-left: 4px solid #1463df !important;
}

.sell-parent-sale-card .box-body {
    color: #526179;
    line-height: 1.75;
}

.sell-parent-sale-card .box-body strong { color: #183153; }

.sell-return-entry-card #sell_return_table {
    overflow: hidden;
    border: 1px solid #dce5f0;
    border-radius: 10px;
    background: #fff;
}

.sell-return-entry-card #sell_return_table .bg-green > th {
    color: #304c75 !important;
    background: #f1f6fc !important;
}

.sell-return-entry-card #sell_return_table .return_qty {
    min-width: 95px;
    text-align: center;
}

.sell-return-entry-card .text-right > strong {
    color: #405a7c;
}

.sell-return-entry-card #net_return {
    display: inline-block;
    min-width: 110px;
    margin-top: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    color: #b45309;
    background: #fff7ed;
    font-size: 18px;
    font-weight: 700;
}

/* Shared interactive sales modals */
.sales-modal-dialog {
    width: min(940px, calc(100% - 30px));
    margin: 28px auto;
}

.sales-shipping-dialog,
.sell-return-view-dialog {
    width: min(1120px, calc(100% - 30px));
}

.sales-modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 15px;
    box-shadow: 0 24px 65px rgba(15, 23, 42, 0.24);
}

.sales-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 76px;
    padding: 15px 20px;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
}

.sales-modal-header::before,
.sales-modal-header::after {
    display: none;
    content: none;
}

.sales-modal-heading {
    display: flex;
    align-items: center;
    min-width: 0;
    margin-right: auto;
    gap: 12px;
    text-align: left;
}

.sales-modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 11px;
    color: #1463df;
    background: #eaf2ff;
}

.sales-return-modal-icon {
    color: #d97706;
    background: #fff3df;
}

.sales-modal-heading .modal-title {
    margin: 0;
    overflow: hidden;
    color: #102348;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
    text-overflow: ellipsis;
}

.sales-modal-title-group {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.sales-modal-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.sales-modal-header .sales-modal-close {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    float: none;
    flex: 0 0 36px;
    margin: 0 0 0 auto;
    border-radius: 9px;
    color: #526179;
    background: #f1f5f9;
    opacity: 1;
    font-size: 24px;
    font-weight: 400;
    text-shadow: none;
}

.sales-modal-header .sales-modal-close:hover {
    color: #dc2626;
    background: #fee2e2;
}

.sales-modal-body {
    max-height: calc(100vh - 190px);
    padding: 20px;
    overflow: auto;
    color: #405a7c;
    background: #f8fafc;
}

.sales-modal-body .form-group > label {
    margin-bottom: 7px;
    color: #29446b;
    font-size: 12px;
    font-weight: 600;
}

.sales-modal-body .form-control,
.sales-modal-body .select2-container .select2-selection--single {
    min-height: 40px;
    border-color: #d5dfec;
    border-radius: 8px;
    box-shadow: none;
}

.sales-modal-body .row-cuadro,
.sell-return-view-body > .row {
    margin-bottom: 14px;
    padding: 15px;
    border: 1px solid #e0e8f2;
    border-radius: 11px;
    background: #fff;
}

.sales-modal-body .row-cuadro .col-header {
    margin: -15px -15px 14px;
    padding: 11px 15px;
    border-radius: 10px 10px 0 0;
    color: #26456f;
    background: #f1f6fc;
    font-weight: 700;
}

.sales-shipping-body {
    padding: 18px 20px 22px;
}

.sales-shipping-body .shipping-status-card {
    margin-bottom: 18px;
    padding-top: 14px;
    border-color: #e0e8f2;
    background: #fff;
}

.sales-shipping-body .shipping-status-card .form-group {
    margin-bottom: 11px;
}

.sales-shipping-body .shipping-section-title {
    margin: 20px 0 9px;
}

.sales-shipping-body .shipping-status-title {
    margin-top: 0;
}

.sales-shipping-body .shipping-section-title h4 {
    display: flex;
    align-items: center;
    margin: 0;
    color: #17345d;
    font-size: 14px;
    font-weight: 700;
    gap: 9px;
}

.sales-shipping-body .shipping-section-title h4 > span,
.shipping-extra-heading > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    border-radius: 8px;
    color: #1463df;
    background: #eaf2ff;
}

.sales-shipping-body .shipping-section-title-secondary {
    margin-top: 20px;
}

.sales-shipping-body .shipping-section-card {
    margin-right: 0;
    margin-left: 0;
    padding: 16px 10px 3px;
    box-shadow: 0 2px 5px rgba(30, 64, 105, 0.03);
}

.sales-shipping-body .shipping-section-card > [class*='col-'] {
    padding-right: 8px;
    padding-left: 8px;
}

.sales-shipping-body .shipping-section-card .form-group {
    margin-bottom: 13px;
}

.sales-shipping-body .shipping-section-card.shipping-change-card {
    border-style: dashed;
    background: #fbfcfe;
}

.sales-shipping-body .shipping-section-card .col-header {
    margin: -16px -10px 15px;
    padding: 11px 18px;
    border-bottom: 1px solid #e1e9f3;
}

.sales-shipping-body .shipping-section-card .col-header i {
    margin-right: 7px;
    color: #1463df;
}

.shipping-extras-grid {
    display: flex;
    margin-top: 20px;
}

.shipping-extras-grid > [class*='col-'] {
    display: flex;
}

.shipping-extra-card,
.shipping-activities-card {
    width: 100%;
    padding: 15px;
    border: 1px solid #e0e8f2;
    border-radius: 11px;
    background: #fff;
}

.shipping-extra-heading {
    display: flex;
    align-items: center;
    margin-bottom: 13px;
    color: #183153;
    gap: 9px;
}

.shipping-extra-heading > span {
    color: #5b6ef5;
    background: #eef0ff;
}

.shipping-extra-heading strong {
    font-size: 13px;
}

.shipping-extra-card textarea.form-control {
    min-height: 125px;
    resize: vertical;
}

.shipping-documents-card .dropzone {
    min-height: 125px;
    padding: 18px;
    border: 1px dashed #9fb8db;
    border-radius: 10px;
    background: #f8fbff;
}

.shipping-media-table {
    margin-top: 14px;
}

.shipping-media-table:empty {
    display: none;
}

.shipping-activities-card {
    margin: 16px 15px 0;
    width: calc(100% - 30px);
}

.sales-shipping-dialog .sales-modal-footer .btn-primary {
    border-color: #1463df;
    background: #1463df;
    box-shadow: 0 5px 14px rgba(20, 99, 223, 0.2);
}

.pos-shipping-status-card .input-group-addon {
    border-color: #d5dfec;
    border-radius: 8px 0 0 8px;
    color: #1463df;
    background: #eef5ff;
}

.pos-shipping-status-card .input-group .form-control {
    border-radius: 0 8px 8px 0;
}

.sales-shipping-dialog .sales-modal-footer .btn i {
    margin-right: 5px;
}

/* Sale detail modal */
.sales-detail-dialog {
    width: min(1240px, calc(100% - 30px));
}

.sales-detail-modal-icon {
    color: #0f766e;
    background: #e7f8f5;
}

.sales-detail-body {
    padding-top: 14px;
}

.sale-detail-summary {
    display: flex;
    flex-wrap: wrap;
    margin-right: -7px;
    margin-left: -7px;
}

.sale-detail-summary-card {
    min-height: 190px;
    padding: 18px 20px;
    border: 7px solid transparent;
    border-radius: 18px;
    color: #526179;
    background: #fff;
    background-clip: padding-box;
    box-shadow: inset 0 0 0 1px #e0e8f2;
    font-size: 12px;
    line-height: 1.7;
}

.sale-detail-summary-card > b:first-child,
.sale-detail-summary-card > strong:first-child {
    color: #183153;
}

.sale-detail-card-heading {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #183153;
    font-size: 13px;
    font-weight: 700;
    gap: 7px;
}

.sale-detail-card-heading i {
    color: #1463df;
    font-size: 15px;
}

.sale-detail-summary-card .btn {
    margin-top: 8px;
    border-radius: 7px;
}

.sale-detail-notes,
.sale-detail-activities {
    margin: 16px 0 0;
    padding: 15px;
    border: 1px solid #e0e8f2;
    border-radius: 11px;
    background: #fff;
}

.sale-detail-section {
    margin-top: 15px;
}

.sale-detail-section h4 {
    display: flex;
    align-items: center;
    margin: 0 0 13px;
    color: #183153;
    font-size: 14px;
    font-weight: 700;
    gap: 9px;
}

.sale-detail-section h4 > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 8px;
    color: #1463df;
    background: #eaf2ff;
}

.sale-detail-products-section .sale-product-image-frame {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    padding: 3px;
    overflow: hidden;
    border: 1px solid #d8e2ee;
    border-radius: 10px;
    background: linear-gradient(145deg, #fff, #f3f7fb);
    box-shadow: 0 3px 8px rgba(30, 64, 175, 0.08);
    vertical-align: middle;
}

.sale-detail-products-section .sale-product-image {
    display: block;
    width: 46px;
    height: 46px;
    border-radius: 7px;
    object-fit: cover;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.sale-detail-products-section .product-image-clickable {
    cursor: zoom-in;
}

.sale-detail-products-section .product-image-clickable:hover {
    opacity: 0.9;
    transform: scale(1.06);
}

.sale-detail-products-section .sale-product-image-placeholder {
    padding: 6px;
    object-fit: contain;
    opacity: 0.72;
}

.sale-detail-products-section table.table > tbody > tr > td:nth-child(2),
.sale-detail-products-section table.table > tbody > tr > th:nth-child(2) {
    width: 68px;
    text-align: center;
}

.sales-detail-body .table-responsive {
    margin-bottom: 13px;
    border: 1px solid #dce5f0;
    border-radius: 9px;
}

.sales-detail-body table.table {
    margin-bottom: 0;
    color: #29446b;
    background: #fff !important;
}

.sales-detail-body table.table > tbody > tr > th,
.sales-detail-body table.table > tbody > tr > td,
.sales-detail-body table.table > thead > tr > th {
    padding: 9px 10px;
    border-color: #e0e8f2;
    vertical-align: middle;
}

.sales-detail-body table.table > thead > tr > th,
.sales-detail-body table.table > tbody > tr:first-child > th {
    color: #304c75 !important;
    background: #f1f6fc !important;
    font-size: 11px;
    text-transform: uppercase;
}

.sale-detail-subheading {
    display: flex;
    align-items: center;
    margin: 14px 0 9px;
    color: #183153;
    font-size: 13px;
    font-weight: 700;
    gap: 7px;
}

.sale-detail-subheading i {
    color: #5b6ef5;
}

.sale-detail-payment-section > .col-md-6:last-child table tr:nth-last-child(-n + 3) {
    background: #f7faff;
}

.sale-detail-payment-section > .col-md-6:last-child table tr:last-child {
    color: #0f5d49;
    background: #ecfdf5;
    font-size: 14px;
}

.sale-detail-notes .well {
    min-height: 62px;
    margin: 7px 0 0;
    border: 1px solid #e0e8f2;
    border-radius: 9px;
    color: #526179;
    background: #f8fafc;
}

.sale-detail-notes strong {
    color: #29446b;
    font-size: 12px;
}

.sale-detail-activities {
    color: #526179;
}

.sales-detail-footer {
    flex-wrap: wrap;
}

.sales-detail-footer .btn {
    min-width: auto;
}

.sales-detail-footer .btn i {
    margin-right: 5px;
}

/* Sales order status modal */
.sales-order-status-dialog {
    width: min(520px, calc(100% - 30px));
}

.sales-order-modal-icon {
    color: #4f46e5;
    background: #eef2ff;
}

.sales-order-status-body {
    padding: 20px;
}

.sales-order-status-card {
    margin: 0;
    padding: 16px 10px 5px;
    border: 1px solid #e0e8f2;
    border-radius: 11px;
    background: #fff;
}

.sales-order-status-dialog .sales-modal-footer .btn i {
    margin-right: 5px;
}

.sell-return-view-body h4 {
    margin-top: 0;
    color: #183153;
    font-size: 14px;
    font-weight: 700;
}

.sell-return-view-body table.table {
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid #dce5f0;
    border-radius: 9px;
    background: #fff;
}

.sell-return-view-body table.table > thead > tr > th {
    padding: 10px;
    border-color: #dce5f0;
    color: #304c75 !important;
    background: #f1f6fc !important;
    font-size: 11px;
    text-transform: uppercase;
}

.sell-return-view-body table.table > tbody > tr > td,
.sell-return-view-body table.table > tbody > tr > th {
    padding: 9px 10px;
    border-color: #e2e8f0;
    vertical-align: middle;
}

.sales-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 13px 20px;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}

.sales-modal-footer::before,
.sales-modal-footer::after {
    display: none;
}

.sales-modal-footer .btn {
    min-width: 96px;
    padding: 9px 15px;
    border-radius: 8px;
    font-weight: 600;
}

@media (max-width: 767px) {
    .sales-page-header { padding-top: 14px; }

    .sales-page-header > h1 { font-size: 22px; }

    .sales-page-title-icon {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .sell-return-add-header {
        align-items: stretch;
        flex-direction: column;
    }

    .sell-return-back-button {
        align-self: flex-start;
        margin-left: 0;
    }

    .sales-modern-page .box-header,
    .sales-modern-page .box-body { padding: 14px; }

    .sales-modern-page .box-tools {
        position: static;
        margin-top: 10px;
    }

    .sales-modal-dialog,
    .sales-shipping-dialog,
    .sales-detail-dialog,
    .sell-return-view-dialog {
        width: calc(100% - 16px);
        margin: 8px auto;
    }

    .sales-modal-header { padding: 12px 14px; }

    .sales-modal-heading .modal-title { font-size: 16px; }

    .sales-modal-body {
        max-height: calc(100vh - 145px);
        padding: 14px;
    }

    .shipping-extras-grid {
        display: block;
    }

    .sales-order-address-row {
        display: block;
    }

    .sales-order-address-card {
        width: 100%;
    }

    .sales-order-address-card + .sales-order-address-card {
        margin-top: 10px;
    }

    .sales-order-related-field {
        min-width: 0;
    }

    .shipping-extras-grid > [class*='col-'] + [class*='col-'] {
        margin-top: 14px;
    }

    .sale-detail-summary {
        display: block;
    }

    .sale-detail-summary-card {
        min-height: 0;
    }

    .sale-detail-section,
    .sale-detail-notes,
    .sale-detail-activities {
        padding: 12px;
    }

    .sales-modal-footer { padding: 11px 14px; }
}
