/* loading */
.loader {
    margin-top: 2px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top: 2px solid var(--green);
    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-content table thead tr td {
    font-weight: bold;
}

.table-child-text {
    font-weight: bold;
}

.table-child-line {
    font-weight: bold;
}

.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.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: 70px;
    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;
    width: 158px;
    height: 40px;
    font-size: 14px;
    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;
}

/* modal elements */
.modal-header.hidden {
    display: none;
}

.modal-title {
    font-weight: 500;
}

.modal-body {
    position: relative;
}

.modal-body.hidden {
    display: none;
}

.modal-footer.hidden {
    display: none;
}

/* dashboard */
.dashboard-box-title {
    font-weight: 500;
}

.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(--green);
}

.invoice-issuance-left-button {
    width: 100px;
    border-radius: 8px;
    background-color: var(--green);
    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-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(--green);
}

.invoice-issuance-right-text.border {
   border-bottom: 1px solid var(--green);
}

/* invoice inssuarance -- table elements */
.invoice-issuance-table {
    height: calc(100vh - 365px);
    margin-top: 25px;
}

.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);
}

.invoice-issuance-table .table-child-line {
    color: var(--white);
    border-bottom: 1px solid var(--silver-chalice);
}

.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(--green);
    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-items-product .input-items-scroll {
    max-height: calc(70px * 4);
    overflow-y: auto;
    transition: all 0.3s;
}

/* 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(--green);
    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 - 265px);
}

/* 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);
}