/* loading */
.loader {
    margin-top: 2px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top: 2px solid var(--primary-blue);
    border-radius: 50%;
    width: 25px;
    height: 25px;
    animation: spin 1s linear infinite;
    display: none;
}

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

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

/* form elements */
.input-text.error {
    border-color: #f27474 !important;
    box-shadow: 0 0 2px #f27474
}

.button.width2 {
    width: auto;
    min-width: 127px;
}

.button.width3 {
    width: auto;
    min-width: 145px;
}

.button.width4 {
    width: auto;
    min-width: 170px;
}

/* navigation bar */
.nav-profile-image {
    object-fit: cover;
    background-color: var(--chinese-white);
}

.nav-item {
    transition: none;
}

.nav-item-text {
    transition: none;
}

.nav-title-text {
    transition: all 0.3s;
    font-weight: 500;
}

.nav-scroll {
    position: relative;
}

.nav-content {
    position: relative;
}

/* table elements */
.table-header {
    position: relative;
    z-index: 10;
}

.table-input-items {
    z-index: 20;
}

.table-content table.dataTable thead tr td,
.table-content table thead tr td {
    font-weight: bold;
    z-index: 1;
    padding: 14.5px 16px;
}

.table-content table.dataTable thead tr td.padding,
.table-content table thead tr td.padding {
    padding-top: 30px;
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 14.5px;
}

.table-content table.dataTable tbody tr td,
.table-content table tbody tr td {
    padding: 8px 16px;
}

.table-content table.dataTable thead tr td.table-group-lead,
.table-content table thead tr td.table-group-lead {
    z-index: 5;
}

.table-content table.dataTable thead tr td.table-unit-col,
.table-content table thead tr td.table-unit-col {
    min-width: 80px;
    width: 80px;
}

.table-content table.dataTable thead tr td.table-actions-col,
.table-content table thead tr td.table-actions-col,
.table-content table.dataTable tbody tr td.table-actions-col,
.table-content table tbody tr td.table-actions-col {
    min-width: 70px;
    width: 70px;
}

.table-child-text {
    font-weight: bold;
    color: var(--onyx);
    border-bottom: 1px solid var(--silver-chalice);
    width: calc(100% - 15px);
    white-space: nowrap;
    z-index: 2;
    pointer-events: none;
}

.table-child-line {
    font-weight: bold;
    color: transparent;
    user-select: none;
    border-bottom: 1px solid var(--silver-chalice);
    width: calc(100% + 1px);
    z-index: 1;
    pointer-events: none;
}

.table-child-line.end {
    width: calc(100% - 16px);
}

.table-button.disabled {
    background-color: var(--bright-gray);
    pointer-events: none;
}

.table-button.disabled p {
    color: var(--dark-silver);
}

.table-content table tbody tr td.primary-blue {
    font-weight: bold;
    color: var(--primary-blue);
}

.table-content table tbody tr td.green {
    font-weight: bold;
    color: var(--green);
}

.table-content table tbody tr td.orange {
    font-weight: bold;
    color: var(--orange);
}

.table-content table tbody tr td.red {
    color: #e74c3c;
}

.table-button-data {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 48px;
    right: 110px;
    border-radius: 8px;
    border: 1px solid var(--gray);
    background-color: var(--white);
    box-shadow: rgba(14, 63, 126, 0.04) 0px 0px 0px 1px, rgba(42, 51, 69, 0.04) 0px 1px 1px -0.5px, rgba(42, 51, 70, 0.04) 0px 3px 3px -1.5px, rgba(42, 51, 70, 0.04) 0px 6px 6px -3px, rgba(14, 63, 126, 0.04) 0px 12px 12px -6px, rgba(14, 63, 126, 0.04) 0px 24px 24px -12px;
    z-index: 2;
    transition: all 0.3s;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
}

.table-button-data.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.table-button-data-item {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 15px;
}

.table-button-data-item:hover {
    background-color: var(--bright-gray)
}

.table-button-data-item P {
    font-size: 14px;
    color: var(--dark-silver);
}

.table-button-data-item div {
    width: 100%;
    height: 1px;
    background-color: var(--gray);
}

.table-button-data-item:last-of-type div {
    display: none;
}

.table-button-data-no-result {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 158px;
    width: auto;
    height: 40px;
    padding: 0 14px;
    font-size: 14px;
    white-space: nowrap;
    color: var(--dark-silver);
}

.table-input-item-no-result {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
    min-height: 44px;
    color: var(--dark-silver);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.input-icon.cursor {
    cursor: pointer;
}

/* modal elements */
.settings-modal-content {
    width: 600px;
    max-width: 100%;
}

.settings-modal-content .modal-right {
    width: 100%;
}

.modal-header.hidden {
    display: none;
}

.modal-title {
    font-weight: 500;
}

.modal-body {
    position: relative;
}

.modal-body.hidden {
    display: none;
}

.modal-footer.hidden {
    display: none;
}

.input-field.hidden {
    display: none;
}

.hidden {
    display: none !important;
}

/* dashboard */
.dashboard-box-title {
    font-weight: 500;
    line-height: 24px;
}

.dashboard-box-content-column-text {
    font-weight: 500;
}

/* sweetalert2 */
.swal2-default-outline {
    border-color: none !important;
    box-shadow: none !important;
}

/* invoice inssuarance */
.invoice-issuance-left {
    width: 60%;
    padding: 25px;
}

.invoice-issuance-left-header {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.invoice-issuance-left-info {
    flex: 1;
    background-color: var(--anti-flash-white);
    padding: 20px 25px;
    border-radius: 8px;
}

.invoice-issuance-left-text {
    font-weight: 500;
    font-size: 16px;
    color: var(--dark-silver);
}

.invoice-issuance-left-text.title {
    font-weight: bold;
    font-size: 25px;
    color: var(--primary-blue);
}

.invoice-issuance-left-button {
    width: 100px;
    border-radius: 8px;
    background-color: var(--primary-blue);
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.invoice-issuance-left-button:hover {
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1));
}

.invoice-issuance-left-button:active {
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
}

.invoice-issuance-left-button img {
    width: 45px;
    height: 45px;
}

.invoice-issuance-left-button p {
    font-size: 16px;
    color: var(--white);
}

.invoice-issuance-left .table-input-field {
    width: 250px;
}

.invoice-issuance-left .table-input-field.right {
    margin-left: 12px;
}

.invoice-issuance-left .table-header .table-input-field:first-child {
    margin-left: 0;
}

@media (max-width: 1450px) {
    .invoice-issuance-left .table-input-field {
        width: 210px;
    }
}

@media (max-width: 1280px) {
    .invoice-issuance-left .table-input-field {
        width: 180px;
    }
}

.invoice-issuance-right {
    width: 40%;
    padding: 25px;
    padding-left: 0;
}

.invoice-issuance-right-border {
    width: 100%;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--silver-chalice);
}

.invoice-issuance-right-header {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding-bottom: 25px;
    border-bottom: 1px dotted var(--silver-chalice);
}

.invoice-issuance-right-logo {
    width: 62px;
    height: 62px;
    object-fit: contain;
}

.invoice-issuance-right-text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.invoice-issuance-right-text {
    font-size: 16px;
    color: var(--dark-silver);
}

.invoice-issuance-right-text.title {
    font-weight: bold;
    color: var(--dark-silver);
}

.invoice-issuance-right-text.price {
    font-weight: bold;
    font-size: 20px;
    color: var(--primary-blue);
}

.invoice-issuance-right-text.border {
    border-bottom: 1px solid var(--primary-blue);
}

/* invoice inssuarance -- table elements */
.invoice-issuance-table {
    height: calc(100vh - 365px);
    margin-top: 25px;
}

.table-1,
.table-2 {
    position: relative;
}

.table-1 .loading,
.table-2 .loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.invoice-issuance-table table thead tr td.width {
    min-width: 80px;
}

.invoice-issuance-table table thead tr td {
    color: var(--dark-silver);
    border-bottom: 1px dotted var(--silver-chalice);
}

.invoice-issuance-table .table-child-text {
    font-weight: bold;
    color: var(--dark-silver);
    border-bottom: 1px solid var(--silver-chalice);
    width: calc(100% - 15px);
}

.invoice-issuance-table .table-child-line {
    color: transparent;
    user-select: none;
    border-bottom: 1px solid var(--silver-chalice);
    width: calc(100% + 1px);
}

.invoice-issuance-table .table-child-line.end,
.invoice-issuance-table table thead tr td:nth-child(9) .table-child-line {
    width: calc(100% - 16px);
}

.invoice-issuance-table table tbody tr td {
    color: var(--dark-silver);
    border-bottom: 1px dotted var(--silver-chalice);
}

.invoice-issuance-right-footer {
    display: flex;
    gap: 10px;
    padding-top: 25px;
    border-top: 1px dotted var(--silver-chalice);
}

/* invoice inssuarance summary */
.invoice-inssuarance-summary-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    border-bottom: 1px dotted var(--silver-chalice);
    padding-bottom: 25px;
}

.invoice-inssuarance-summary-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.invoice-inssuarance-summary-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
    margin-bottom: -10px;
}

.invoice-inssuarance-summary-line {
    width: 1px;
    height: 80px;
    background-color: var(--silver-chalice);
}

.invoice-issuance-summary-footer {
    padding-top: 25px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    border-top: 1px dotted var(--silver-chalice);
}

.invoice-issuance-summary-text-container {
    display: flex;
    gap: 10px
}

.invoice-issuance-summary-button {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 11px;
    border-radius: 8px;
    background-color: var(--primary-blue);
    width: 120px;
    cursor: pointer;
}

.invoice-issuance-summary-button.left {
    margin-left: auto;
}

.invoice-issuance-summary-button:hover {
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1));
}

.invoice-issuance-summary-button:active {
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
}

.invoice-issuance-summary-button p {
    color: var(--white);
    text-wrap: nowrap;
    font-size: 16px;
}

.invoice-issuance-summary-button img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

/* invoice inssuarance summary -- table elements */
.invoice-issuance-summary-table table tbody tr:last-child td {
    border: 1px solid white;
}

/* invoice archive -- table elements */
.invoice-archive-table table tbody tr:last-child td {
    border: none;
}

/* invoice archive -- modal */
.invoice-archive-summary-modal .modal-scroll {
    padding: 30px;
    padding-bottom: 126px;
}

.invoice-archive-summary-modal .modal-content {
    padding: 25px;
    padding-bottom: 30px;
    width: 1000px;
}

.invoice-archive-outlet-modal .modal-scroll {
    padding: 30px;
    padding-bottom: 126px;
}

.invoice-archive-outlet-modal .modal-content {
    padding: 25px;
    width: 400px;
}

/* invoice archive -- 58mm thermal printer */
.invoice-archive-outlet-modal .receipt-header {
    margin-bottom: 15px;
}

.invoice-archive-outlet-modal .receipt-header.border {
    border-top: 1px solid black;
    border-bottom: 1px solid black;
    padding: 11px 0;
}

.invoice-archive-outlet-modal .receipt-logo {
    margin-bottom: 3px;
    width: 59px;
    height: 59px;
}

.invoice-archive-outlet-modal .receipt-text.large {
    font-size: 19px;
}

.invoice-archive-outlet-modal .receipt-body {
    gap: 15px;
}

.invoice-archive-outlet-modal .receipt-row {
    border-bottom: 1px dotted black;
    gap: 15px;
    padding-bottom: 15px;
}

.invoice-archive-outlet-modal .receipt-row:last-child {
    border: 1px solid white;
}

.invoice-archive-outlet-modal .receipt-footer {
    gap: 5px;
    margin-bottom: 15px;
}

.invoice-archive-outlet-modal .receipt-footer.margin {
    margin-bottom: 0;
}

.invoice-archive-outlet-modal .receipt-footer.border {
    border-top: 1px dotted black;
    border-bottom: 1px dotted black;
    padding: 13px 0;
}

/* products -- form elements */
.input-field.active {
    z-index: 100 !important;
}

/* Prevent closed autocomplete dropdowns from creating phantom scroll overflow / extra space */
.input-items:not(.active),
.table-input-items:not(.active) {
    display: none !important;
}

/* All dropdowns and autocomplete fields always stay at the bottom */
.input-items,
.table-input-items,
.input-items.dropup,
.table-input-items.dropup,
#field-supplier .input-items {
    top: calc(44px + 5px) !important;
    bottom: auto !important;
    box-shadow: rgba(14, 63, 126, 0.04) 0px 0px 0px 1px,
        rgba(42, 51, 69, 0.04) 0px 1px 1px -0.5px,
        rgba(42, 51, 70, 0.04) 0px 3px 3px -1.5px,
        rgba(42, 51, 70, 0.04) 0px 6px 6px -3px,
        rgba(14, 63, 126, 0.04) 0px 12px 12px -6px,
        rgba(14, 63, 126, 0.04) 0px 24px 24px -12px !important;
}

.input-items-scroll,
.table-input-items-scroll,
.input-items-product .input-items-scroll {
    max-height: calc(45px * 4) !important;
    overflow-y: auto;
    transition: all 0.3s;
}

/* Textarea inputs styling */
textarea.input-text {
    height: 137px;
    min-height: 137px;
    max-height: 200px;
    padding: 23px 7px 7px 7px;
    font-family: 'Gilroy', sans-serif;
    font-size: 16px;
    line-height: 1.4;
    resize: none;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-y: auto;
}

textarea.input-text+.input-placeholder {
    top: 13px;
    left: 8px;
    transform: translateY(0);
    font-size: 16px;
}

textarea.input-text:focus+.input-placeholder,
textarea.input-text:not(:placeholder-shown)+.input-placeholder {
    top: 7px;
    left: 8px;
    transform: translateY(0);
    font-size: 12px;
}

.modal-image-thumbnail.square {
    position: relative;
    flex: 1 1 0;
    width: calc((100% - 26px) / 2);
    min-width: 0;
    height: 177px;
    border-radius: 8px;
    background-color: var(--anti-flash-white);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-image: none;
    border: 1px solid var(--chinese-white);
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.modal-left .modal-image-thumbnail.square {
    width: 150px;
    height: 150px;
    flex: none;
    border-radius: 8px;
}

.modal-image-thumbnail .thumbnail-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--dark-silver);
    pointer-events: none;
}

.modal-image-thumbnail .thumbnail-placeholder svg,
.modal-image-thumbnail .thumbnail-placeholder i {
    width: 48px;
    height: 48px;
    stroke: currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image-thumbnail .thumbnail-placeholder svg *,
.modal-image-thumbnail .thumbnail-placeholder svg path,
.modal-image-thumbnail .thumbnail-placeholder svg rect,
.modal-image-thumbnail .thumbnail-placeholder svg circle {
    vector-effect: non-scaling-stroke !important;
    stroke-width: 1.5px !important;
}

.modal-image-thumbnail.has-image .thumbnail-placeholder,
.modal-image-thumbnail[style*="url("]:not([style*="no_image.png"]) .thumbnail-placeholder {
    display: none !important;
}

.modal-image-thumbnail.disabled {
    pointer-events: none;
}

.modal-image-thumbnail.square .remove-photo-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(231, 76, 60, 0.9);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: none;
    z-index: 10;
}

.modal-image-thumbnail.square .remove-photo-btn svg,
.modal-image-thumbnail.square .remove-photo-btn i {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 1.5 !important;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image-thumbnail.square .remove-photo-btn:hover {
    background: #c0392b;
}

.modal-image-thumbnail.square .remove-photo-btn.hidden,
.view-mode .remove-photo-btn {
    display: none !important;
}

.table-image-thumbnail {
    width: 42px;
    height: 42px;
    background-position: center;
    background-size: cover;
    border-radius: 6px;
    border: 1px solid var(--chinese-white);
    background-color: var(--anti-flash-white);
    margin: 0 auto;
}

.product-image-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 26px;
    width: 100%;
    margin-top: 0;
    margin-bottom: 0;
}

/* modal-header & close icon matching PSMS */
.modal-header {
    position: relative;
    padding: 17px 20px;
    border-bottom: 1px solid var(--chinese-white);
}

.modal-close {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);

    width: 32px;
    height: 32px;
    border-radius: 50%;

    color: var(--dark-silver);
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;

    padding: 7px;
    stroke-width: 1.9px;
    box-sizing: border-box;
}

.modal-close:hover {
    color: #c44569;
    background-color: var(--bright-gray);
}

.modal-close:active {
    background-color: var(--gainsboro);
}

.modal-body {
    display: flex;
    padding: 5px;
}

#modal-map .modal-body {
    padding: 0;
}

#modal-form .modal-body-scroll>.modal-right:first-child:not(:last-child) {
    padding-right: 0;
}


.modal-body-scroll {
    overflow-y: auto;
    max-height: calc(100vh - 200px);
    scroll-behavior: smooth;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

.modal-body-scroll.no-scroll,
#modal-form:has(#input-customer-number) .modal-body-scroll,
.settings-modal-content .modal-body-scroll {
    overflow: visible;
    max-height: none;
}

/* modal restock */
#modal-restock .modal-body {
    display: flex;
    padding: 5px;
}

#modal-restock .modal-body-scroll {
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    max-height: calc(100vh - 200px);
    padding: 0;
}

.modal-restock-columns {
    display: flex;
    width: 100%;
}

.modal-restock-columns>.modal-right:first-child:not(:last-child) {
    padding-right: 0;
}

.stock-history-table-container {
    width: 100%;
    height: auto;
    max-height: 280px;
    overflow-y: auto;
    overflow-x: auto;
    background-color: var(--white);
    border: none;
    border-radius: 0;
    cursor: -webkit-grab;
    cursor: grab;
}

.stock-history-table-container table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.stock-history-table-container table thead tr td {
    position: sticky;
    top: 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--chinese-white);
    font-size: 15px;
    font-weight: bold;
    color: var(--onyx);
    padding: 14.5px 16px;
    z-index: 2;
    white-space: nowrap;
    text-align: left;
    vertical-align: bottom;
}

.stock-history-table-container table thead tr td.padding {
    padding-top: 30px;
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 14.5px;
}

.stock-history-table-container table thead tr td.table-group-lead {
    z-index: 5;
}

.stock-history-table-container table thead tr td.table-unit-col {
    min-width: 80px;
    width: 80px;
}

.stock-history-table-container table tbody tr {
    transition: none;
    cursor: -webkit-grab;
    cursor: grab;
}

.stock-history-table-container table tbody tr td {
    transition: none;
    font-size: 15px;
    color: var(--dark-silver);
    border-bottom: 1px solid var(--chinese-white);
    padding: 5px 16px;
    height: 48px;
    vertical-align: middle;
    white-space: nowrap;
    text-align: start;
}

@media (max-width: 992px) {
    .modal-body-scroll {
        flex-direction: column;
        align-items: center;
    }

    .modal-restock-columns {
        flex-direction: column !important;
        align-items: center;
    }

    #modal-restock .modal-right {
        width: 100% !important;
        max-width: 450px;
        padding-left: 26px !important;
        padding-right: 26px !important;
    }
}


/* tracker */
.tracker-header {
    position: relative;
    width: 100%;
    display: flex;
    gap: 20px;
    overflow: auto;
    padding-bottom: 20px;
    scroll-behavior: smooth;
}

.tracker-items {
    display: flex;
    gap: 20px;
}

.tracker-item {
    position: relative;
    display: flex;
    gap: 15px;
    align-items: center;
    background-color: var(--anti-flash-white);
    min-width: 200px;
    max-width: 200px;
    padding: 10px;
    padding-right: 15px;
    border-radius: 8px;
    cursor: pointer;
}

.tracker-item:hover {
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1));
}

.tracker-item:active {
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
}

.tracker-item.center {
    min-width: 140px;
    justify-content: center;
}

.tracker-item.center p {
    font-size: 16px;
}

.tracker-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 50%;
}

.tracker-item p {
    font-size: 18px;
    font-weight: 500;
    color: var(--dark-silver);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tracker-item-status {
    position: absolute;
    top: 45px;
    left: 5px;
}

.tracker-item-status p {
    background-color: rgba(39, 174, 96, 0.9);
    font-weight: normal;
    color: var(--white);
    font-size: 10px;
    padding: 3px 5px;
    border-radius: 8px;
}

.tracker-item-status p.red {
    background-color: rgba(192, 57, 43, 0.8);
}

.tracker-body-show-faces {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 500;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
}

.tracker-body-show-faces:hover {
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1));
}

.tracker-body-show-faces:active {
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
}

.tracker-body-show-faces img {
    width: 100%;
    height: 100%;
    image-rendering: optimizeSpeed;
}

.tracker-header-indicator {
    position: absolute;
    left: 0;
    bottom: 8px;
    width: 140px;
    height: 2px;
    background-color: var(--primary-blue);
    transition: 0.3s all;
}

.tracker-body {
    position: relative;
    margin-top: 10px;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--anti-flash-white);
    height: calc(100vh - 250px);
}

/* print */
.print-buttons {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 4000;
}

.print-buttons.bottom {
    bottom: 33px;
}

.print-button {
    width: 25px;
    height: 25px;
    cursor: pointer;
}

.print-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* print -- table elements */
.print-header {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.print-header p {
    font-weight: 500;
    font-size: 18px;
}

.print-table table thead tr td {
    font-size: 10px;
    color: black;
    border-color: black;
}

.print-table table tbody tr td {
    font-size: 10px;
    color: black;
    border-color: black;
}

.print-table table thead tr td.padding {
    padding-top: 40px;
}

.print-table .table-child-text {
    font-size: 10px;
    color: black;
}

.print-table .table-child-line {
    font-size: 10px;
}

/* map */
.map-search {
    position: absolute;
    top: 15px;
    left: 20px;
    right: 20px;
    z-index: 500;
    background-color: white;
    padding: 0 7px;
    padding-right: 13px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.25);
}

.button-map-search {
    min-width: 30px;
    min-height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.button-map-search:active {
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
}

.button-map-search.disabled {
    pointer-events: none;
}

.button-map-search.disabled img {
    display: none;
}

.button-map-search.disabled .loader {
    margin-top: 0;
    display: block;
}

.button-map-search img {
    width: 17px;
    height: 17px;
    object-fit: contain;
}

.map-search input {
    width: 100%;
    text-overflow: ellipsis;
    border: 0;
    font-size: 16px;
    outline: none;
    color: var(--dark-silver);
}

.map-search input::placeholder {
    color: var(--gray);
}

/* Hide Leaflet attribution badge / watermark */
.leaflet-control-attribution {
    display: none !important;
}

/* Store-Specific Product Discount Styles */
.modal-discount-content {
    max-width: 900px;
    width: 95%;
}

.modal-discount-col-1 {
    width: 450px;
    padding-right: 0;
}

.modal-discount-col-2 {
    width: 450px;
    padding-left: 31px;
}

@media (max-width: 992px) {

    .modal-discount-col-1,
    .modal-discount-col-2 {
        width: 100% !important;
        max-width: 450px !important;
        padding-left: 26px !important;
        padding-right: 26px !important;
    }
}

.discount-type-tabs {
    display: flex;
    gap: 8px;
    margin-top: 0;
    margin-bottom: 20px;
    background-color: var(--anti-flash-white);
    padding: 4px;
    border-radius: 8px;
}

.discount-tab {
    flex: 1;
    text-align: center;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--dark-silver);
    transition: all 0.2s ease-in-out;
}

.discount-tab:hover {
    color: var(--onyx);
}

.discount-tab.active {
    background-color: var(--white);
    color: var(--primary-blue);
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.tier-tabs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 15px;
    background-color: var(--anti-flash-white);
    padding: 4px;
    border-radius: 8px;
}

.tier-tab {
    flex: 1;
    text-align: center;
    padding: 7px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--dark-silver);
    transition: all 0.2s ease-in-out;
}

.tier-tab:hover {
    color: var(--onyx);
}

.tier-tab.active {
    background-color: var(--white);
    color: var(--primary-blue);
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.modal-right-text {
    font-weight: 500;
}

.selected-stores-badge {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 12px;
    background-color: var(--alice-blue);
    color: var(--primary-blue);
    font-weight: 500;
}

.store-selection-actions {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
}

.store-action-btn,
.store-action-btn.secondary {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid var(--chinese-white);
    background-color: var(--white);
    color: var(--dark-silver);
    transition: all 0.2s ease-in-out;
}

.store-action-btn:hover,
.store-action-btn.secondary:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
}

.stores-list-container {
    height: calc(100vh - 270px);
    overflow-y: auto;
    border: 1px solid var(--chinese-white);
    border-radius: 8px;
    background-color: var(--white);
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stores-list-container.amount-mode,
.modal-body-scroll:has(#tab-discount-amount.active) .stores-list-container {
    height: calc(100vh - 335px);
}

.store-select-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    background-color: var(--white);
    border: 1px solid transparent;
}

.store-select-item:hover {
    background-color: var(--anti-flash-white);
}

.store-select-item.selected {
    background-color: var(--alice-blue);
    border-color: rgba(40, 116, 166, 0.3);
}

.store-select-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid var(--dark-silver);
    background-color: var(--white);
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s ease-in-out;
}

.store-select-item.selected .store-select-checkbox {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.store-select-checkbox-svg {
    display: none;
    width: 12px;
    height: 12px;
    stroke: #FFFFFF;
    stroke-width: 2.5;
    fill: none;
}

.store-select-item.selected .store-select-checkbox-svg {
    display: block;
}

.store-select-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    overflow: hidden;
}

.store-select-name {
    font-size: 14px;
    font-weight: normal;
    color: var(--onyx);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.store-select-details {
    font-size: 12px;
    color: var(--dark-silver);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stores-empty-message {
    padding: 24px 12px;
    text-align: center;
    color: var(--dark-silver);
    font-size: 13px;
}

/* Applicable Stores & Assigned Price Table Badges */
.store-pill,
.price-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.store-pill.green,
.price-pill.green {
    background-color: #e8f8f0;
    color: var(--green);
}

.store-pill.blue,
.price-pill.blue {
    background-color: var(--alice-blue);
    color: var(--primary-blue);
}

.store-pill.orange,
.price-pill.orange {
    background-color: #FFF3EB;
    color: var(--orange);
}

.store-pill.gray,
.price-pill.gray {
    background-color: var(--anti-flash-white);
    color: var(--dark-silver);
}

.store-pill.red,
.price-pill.red {
    background-color: #feebe8;
    color: var(--red);
}

/* Dashboard Analysis Filters */
.analysis-filter-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    background-color: var(--white);
    border: 1px solid var(--gray);
    border-radius: 8px;
    padding: 12px 20px;
    width: 100%;
}

.analysis-filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.analysis-filter-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--dark-silver);
    white-space: nowrap;
}

.analysis-filter-pills {
    display: inline-flex;
    align-items: center;
    background-color: var(--anti-flash-white);
    border: 1px solid var(--gainsboro);
    border-radius: 6px;
    padding: 3px;
    gap: 2px;
    height: 36px;
    box-sizing: border-box;
}

.analysis-filter-btn {
    border: none;
    background: transparent;
    color: var(--dark-silver);
    padding: 0 12px;
    height: 28px;
    line-height: 28px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.analysis-filter-btn:hover:not(.active) {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--onyx);
}

.analysis-filter-btn.active {
    background-color: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.analysis-filter-divider {
    height: 28px;
    width: 1px;
    background-color: var(--gainsboro);
}

@media (max-width: 900px) {
    .analysis-filter-divider {
        display: none;
    }
}



/* Dashboard Box Header 2-Row Layout */
.dashboard-box-header.table {
    min-height: 38px;
}

.dashboard-box-divider {
    width: calc(100% + 50px);
    margin-left: -25px;
    margin-right: -25px;
    height: 0;
    min-height: 0;
    border: none;
    border-top: 1px solid var(--gray);
    line-height: 0;
    font-size: 0;
    box-sizing: content-box;
    margin-top: 20px;
    margin-bottom: 20px;
}

.dashboard-box-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    min-height: 36px;
    box-sizing: border-box;
}

.dashboard-box-divider.bottom {
    margin-top: 20px;
    margin-bottom: 10px;
}

/* ==========================================================================
   Driver Tracker (Map Truck Markers + Travel History Table)
   ========================================================================== */

/* Custom Leaflet Truck Marker */
.driver-truck-div-icon {
    background: transparent !important;
    border: none !important;
}

.driver-truck-marker-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    user-select: none;
    will-change: transform;
}

.marker-pin-stage {
    position: relative;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.driver-truck-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(39, 174, 96, 0.45);
    animation: driverTruckPulse 1.8s ease-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes driverTruckPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.85);
        opacity: 0.9;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.65);
        opacity: 0;
    }
}

.marker-direction-pointer {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 68px;
    height: 68px;
    transform: translate(-50%, -50%) rotate(0deg);
    transform-origin: 50% 50%;
    pointer-events: none;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.2s ease;
    will-change: transform;
}

.marker-direction-pointer.has-bearing {
    opacity: 1;
}

.marker-heading-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
}

.marker-direction-pointer .marker-heading-cone {
    fill: rgba(41, 128, 185, 0.22);
}

.marker-direction-pointer.ongoing .marker-heading-cone {
    fill: rgba(39, 174, 96, 0.26);
}

.marker-direction-pointer .marker-heading-fin {
    fill: #2980b9;
    stroke: #ffffff;
    stroke-width: 1.8px;
    stroke-linejoin: round;
}

.marker-direction-pointer.ongoing .marker-heading-fin {
    fill: #27ae60;
    stroke: #ffffff;
}

.driver-truck-pin {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #2980b9;
    border: 2.5px solid #ffffff;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    z-index: 2;
    overflow: hidden;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.driver-truck-pin.ongoing {
    background: #27ae60;
}

.driver-truck-pin.profile-view {
    width: 38px;
    height: 38px;
    border: 2.5px solid #ffffff;
}

.driver-truck-pin.profile-view.ongoing {
    border-color: #27ae60;
}

.driver-truck-pin svg {
    width: 17px;
    height: 17px;
    fill: #ffffff;
    transition: transform 0.15s ease;
}

.driver-truck-pin img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.driver-truck-marker-wrap:hover .marker-pin-stage {
    transform: scale(1.14);
}

.driver-truck-label {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-top: 2px;
    padding: 1px 6px;
    border-radius: 6px;
    background: rgba(44, 62, 80, 0.88);
    color: #ffffff;
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    z-index: 4;
    pointer-events: none;
}

/* Route Start & Destination Pins */
.route-endpoint-icon {
    background: transparent !important;
    border: none !important;
}

.route-endpoint-pin {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2.5px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
}

.route-endpoint-pin.start {
    background-color: #2874A6;
}

.route-endpoint-pin.end {
    background-color: #e74c3c;
}

/* Travel History Table Box below Map */
.driver-history-box .table-input-field {
    width: 220px;
}

.driver-history-box .table-input-field.right {
    width: 200px;
    margin-left: 16px;
}

@media (max-width: 1400px) {
    .driver-history-box .table-input-field {
        width: 195px;
    }

    .driver-history-box .table-input-field.right {
        width: 175px;
        margin-left: 12px;
    }
}

.driver-history-box .table-input-text.right {
    pointer-events: auto;
    cursor: pointer;
}

.driver-history-box .table-filter-radio-circle::after {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-blue);
}

.driver-history-box .table-content table.dataTable thead tr td,
.driver-history-box .table-content table thead tr td {
    padding: 14.5px 6px;
}

.driver-history-box .table-content table.dataTable tbody tr td,
.driver-history-box .table-content table tbody tr td {
    padding: 8px 6px;
}

.driver-history-box .table-content table.dataTable thead tr td.table-actions-col,
.driver-history-box .table-content table thead tr td.table-actions-col,
.driver-history-box .table-content table.dataTable tbody tr td.table-actions-col,
.driver-history-box .table-content table tbody tr td.table-actions-col {
    min-width: 60px;
    width: 60px;
}

/* Floating Banner when inspecting a specific trip route on Leaflet Map */
.map-route-banner {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #FFFFFF;
    padding: 6px 14px 6px 16px;
    border-radius: 30px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--chinese-white, #E5E5E5);
    transition: all 0.2s ease;
}

.map-route-banner-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--onyx, #333333);
}

.map-route-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-color, #2874A6);
}

.map-route-exit-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #F3F4F6;
    border: none;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #4B5563;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.map-route-exit-btn:hover {
    background: #E5E7EB;
    color: #1F2937;
}

.map-route-exit-btn img {
    width: 12px;
    height: 12px;
}

/* Floating Bottom Map Controls (Satellite Toggle & Profile View Toggle) */
.map-floating-controls {
    position: absolute;
    bottom: 16px;
    left: 16px;
    z-index: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
}

.map-ctrl-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FFFFFF;
    color: var(--onyx, #333333);
    border: 1px solid var(--chinese-white, #E5E5E5);
    border-radius: 20px;
    padding: 7px 13px;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    transition: all 0.2s ease;
    user-select: none;
    outline: none;
}

.map-ctrl-icon {
    width: 15px;
    height: 15px;
    stroke: var(--dark-silver, #707070);
    stroke-width: 2;
    fill: none;
    flex-shrink: 0;
    transition: stroke 0.2s ease;
}

.map-ctrl-btn:hover:not(.active) {
    background: #F8FAFC;
    border-color: var(--dark-silver, #B0B0B0);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
    transform: translateY(-1px);
}

.map-ctrl-btn:hover:not(.active) .map-ctrl-icon {
    stroke: var(--onyx, #333333);
}

.map-ctrl-btn:active:not(.active) {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.map-ctrl-btn.active,
.map-ctrl-btn.active:hover,
.map-ctrl-btn.active:focus {
    background: var(--primary-blue, #2874A6) !important;
    color: #FFFFFF !important;
    border-color: var(--primary-blue, #2874A6) !important;
    box-shadow: 0 3px 12px rgba(40, 116, 166, 0.35);
}

.map-ctrl-btn.active .map-ctrl-icon,
.map-ctrl-btn.active:hover .map-ctrl-icon,
.map-ctrl-btn.active:focus .map-ctrl-icon {
    stroke: #FFFFFF !important;
}

.map-ctrl-label {
    white-space: nowrap;
    line-height: 1;
}


/* ==========================================================================
   ANDROID APP DOWNLOAD LANDING PAGE & SIGN-IN VIEW SWITCHER
   ========================================================================== */

/* Single scrollbar normalization for signin & Android landing page */
html.signin-page:not(.app-landing-active),
body.signin-page:not(.app-landing-active) {
    height: 100%;
    overflow: hidden;
}

html.app-landing-active,
body.app-landing-active {
    height: auto !important;
    min-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    background-color: var(--white);
}

body.app-landing-active .scrollbar-padding {
    padding: 0 !important;
    height: auto !important;
    min-height: 100% !important;
}

body.app-landing-active .scrollbar-container {
    height: auto !important;
    min-height: 100% !important;
    overflow: visible !important;
    display: block !important;
}

body.app-landing-active .app-landing-wrapper {
    padding: 16px !important;
    margin-bottom: 0 !important;
}

.web-signin-wrapper {
    width: 100%;
    height: 100%;
    min-height: 100%;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.web-signin-wrapper.hidden,
.app-landing-wrapper.hidden {
    display: none !important;
}

.app-landing-wrapper {
    width: 100%;
    margin: 0 auto;
    padding: 16px;
    margin-bottom: 0 !important;
}

.app-landing-container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 0 !important;
}

/* Hero Banner Card */
.app-landing-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--blue-dark) 100%);
    border-radius: 8px;
    padding: 20px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.app-landing-hero::after {
    content: "";
    position: absolute;
    right: -45px;
    bottom: -55px;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.app-landing-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.app-landing-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.app-landing-brand-logo {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    background-color: var(--white);
    padding: 3px;
    flex-shrink: 0;
}

.app-landing-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.app-landing-brand-name {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: var(--white);
}

.app-landing-hero-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.16);
    margin: 18px 0;
}

.app-landing-hero-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.app-landing-hero-copy {
    max-width: 760px;
}

.app-landing-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--white);
    margin: 0;
    padding: 0;
    line-height: 1.4;
}

/* Application Cards Grid */
.app-landing-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 0 !important;
}

.app-download-card {
    background-color: var(--white);
    border-radius: 8px;
    border: 1px solid var(--gainsboro);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.app-download-card.salesman,
.app-download-card:last-child {
    margin-bottom: 0 !important;
}

.app-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.app-card-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.app-card-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.app-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--onyx);
}

.app-card-meta {
    font-size: 12px;
    font-weight: 400;
    color: var(--dark-silver);
}

.app-card-divider {
    width: 100%;
    height: 1px;
    background-color: var(--gainsboro);
    margin: 18px 0;
}

.app-card-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.app-card-desc {
    font-size: 14px;
    font-weight: 400;
    color: var(--dark-silver);
    line-height: 1.5;
}

.app-download-btn {
    width: 100%;
    height: 44px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--white);
    background-color: var(--primary-blue);
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
    user-select: none;
}

.app-download-btn:hover {
    background-color: var(--blue-dark);
}

.app-download-btn.downloading {
    background-color: var(--primary-blue) !important;
    opacity: 0.85;
    cursor: wait !important;
    pointer-events: none !important;
}

.app-download-btn.success,
.app-download-btn.disabled {
    background-color: var(--green) !important;
    color: var(--white) !important;
    cursor: default !important;
    pointer-events: none !important;
    box-shadow: none !important;
}

/* ==========================================================================
   Salesperson Tracker & Store Markers
   ========================================================================== */

/* Custom Leaflet Salesperson Marker */
.salesperson-marker-div-icon {
    background: transparent !important;
    border: none !important;
}

.salesperson-marker-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    user-select: none;
    will-change: transform;
}

.salesperson-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(39, 174, 96, 0.45);
    animation: spPulse 1.8s ease-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes spPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.85);
        opacity: 0.9;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.65);
        opacity: 0;
    }
}

.salesperson-pin {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #2980b9;
    border: 2.5px solid #ffffff;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    z-index: 2;
    overflow: hidden;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.salesperson-pin.ongoing {
    background: #27ae60;
}

.salesperson-pin.profile-view {
    width: 38px;
    height: 38px;
    border: 2.5px solid #ffffff;
}

.salesperson-pin.profile-view.ongoing {
    border-color: #27ae60;
}

.salesperson-pin svg {
    width: 17px;
    height: 17px;
    fill: #ffffff;
    transition: transform 0.15s ease;
}

.salesperson-pin img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.salesperson-marker-wrap:hover .marker-pin-stage {
    transform: scale(1.14);
}

.salesperson-label {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-top: 2px;
    padding: 1px 6px;
    border-radius: 6px;
    background: rgba(44, 62, 80, 0.88);
    color: #ffffff;
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    z-index: 4;
    pointer-events: none;
}

/* Custom Store House Markers: Blue for Unvisited, Gray for Visited */
.store-marker-div-icon {
    background: transparent !important;
    border: none !important;
}

.store-marker-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transform: translateY(-4px);
}

.store-marker-pin {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2.5px solid #ffffff;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    z-index: 2;
}

.store-marker-wrap:hover .store-marker-pin {
    transform: scale(1.15);
}

/* Blue house icon for unvisited stores */
.store-marker-pin.unvisited {
    background: #2980b9;
    color: #ffffff;
}

/* Gray house icon for visited stores */
.store-marker-pin.visited {
    background: #7f8c8d;
    color: #ffffff;
}

.store-marker-pin svg {
    width: 17px;
    height: 17px;
    fill: #ffffff;
}

.store-marker-label {
    margin-top: 2px;
    padding: 1px 6px;
    border-radius: 6px;
    background: rgba(44, 62, 80, 0.85);
    color: #ffffff;
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    z-index: 3;
}

/* Salesperson History Table Box */
.salesperson-history-box .table-input-field {
    width: 220px;
}

.salesperson-history-box .table-input-field.right {
    width: 200px;
    margin-left: 16px;
}

@media (max-width: 1400px) {
    .salesperson-history-box .table-input-field {
        width: 195px;
    }
}

.salesperson-history-box .table-filter-radio-circle::after {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-blue);
}

.salesperson-history-box .table-content table.dataTable thead tr td,
.salesperson-history-box .table-content table thead tr td {
    padding: 14.5px 6px;
}

.salesperson-history-box .table-content table.dataTable tbody tr td,
.salesperson-history-box .table-content table tbody tr td {
    padding: 8px 6px;
}

.salesperson-history-box .table-content table.dataTable thead tr td.table-actions-col,
.salesperson-history-box .table-content table thead tr td.table-actions-col,
.salesperson-history-box .table-content table.dataTable tbody tr td.table-actions-col,
.salesperson-history-box .table-content table tbody tr td.table-actions-col {
    min-width: 60px;
    width: 60px;
}

/* Modal Store Visit Table */
.modal-visit-table-wrap {
    width: 100%;
    max-height: 240px;
    overflow-y: auto;
    border: 1px solid var(--chinese-white);
    border-radius: 8px;
    background-color: var(--white);
}

.modal-visit-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.modal-visit-table thead tr th {
    background-color: var(--white);
    color: var(--dark-silver);
    font-weight: 500;
    font-size: 13px;
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--chinese-white);
    position: sticky;
    top: 0;
    z-index: 5;
}

.modal-visit-table tbody tr td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--chinese-white);
    color: var(--onyx);
    font-size: 13px;
    vertical-align: middle;
}

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

.modal-visit-status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: capitalize;
}

.modal-visit-status-badge.completed {
    background-color: #e8f8f0;
    color: #27ae60;
}

.modal-visit-status-badge.cancelled {
    background-color: #fbeee8;
    color: #e74c3c;
}

.modal-visit-status-badge.in-progress {
    background-color: #fef9e7;
    color: #f39c12;
}

.modal-visit-status-badge.unvisited {
    background-color: #ebf5fb;
    color: #2874A6;
}
