﻿/* Expiry Banner */
.expiry-banner {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.expired-banner {
    border: 1px solid #f9a8d4;
}

.expiring-banner {
    border: 1px solid #ffc107;
}

.expiry-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.expiry-text {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0;
}

.expired-color {
    color: #db2777;
}

.expiring-color {
    color: #d39e00;
}

.expiry-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.expired-icon {
    background-color: #fce7f3;
}

.expiring-icon {
    background-color: #fff3cd;
}

.expiry-icon i {
    font-size: 1.2rem;
}
/* End Expiry Banner */


.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.status-badge i {
    font-size: 1.1rem;
}

.valid-color {
    color: #28a745;
}

.deleted-color {
    color: #D20103;
}

/*Detail Modal*/
.addon-section {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
}

.addon-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 0.95rem;
    color: #6c757d;
    font-weight: 400;
}

.detail-value {
    font-size: 0.95rem;
    color: #1a1a1a;
    font-weight: 500;
    text-align: right;
}

.section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 1.5rem 0 0.5rem 0;
}

/*Cart Modal*/
.cart-content {
    flex: 1;
}

.cart-item {
    position: relative;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.cart-item:last-of-type {
    border-bottom: none;
}

.discount-input {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 0.75rem;
    background: #f8f9fa;
    display: flex;
    align-items: center;
}

.discount-input input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 0.95rem;
}

.btn-apply {
    color: #007bff;
    font-weight: 500;
    text-decoration: none;
    border: 1.5px solid #007bff;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-apply:hover {
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
}

.discount-icon {
    color: #6c757d;
    font-size: 1.25rem;
    margin-right: 0.75rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    font-size: 0.95rem;
}

.summary-label {
    color: #6c757d;
}

.summary-value {
    color: #1a1a1a;
    font-weight: 500;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    border-top: 1px solid #e9ecef;
    margin-top: 0.5rem;
    color: #1a1a1a;
}

.button-container {
    position: sticky;
    bottom: 0;
    background: white;
    padding-top: 1rem;
    margin-top: 1rem;
}

.btn-continue {
    background: transparent;
    color: #28a745;
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 6px;
    border: 1.5px solid #28a745;
    transition: all 0.3s ease;
}

.btn-continue:hover {
    background: #28a745;
    color: #fff;
}

.item-subtitle {
    color: #6c757d;
    font-size: 0.875rem;
}

.item-price {
    font-size: 0.95rem;
    font-weight: 500;
    color: #1a1a1a;
    text-align: right;
}

.item-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}
/*Cart Modal End*/

.selected-row {
    color: red;
    background-color: yellow;
}

.pointer {
    cursor: pointer;
}

.upload-message {
    color: #adb5bd;
    font-size: 1.1rem;
    padding: 1.5rem;
    text-align: center;
}

.text-red {
    color: #d92550;
}

.total-cell {
    font-weight: bold;
    text-align: right;
}

.number-cell {
    text-align: right;
}

.scroller {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #00000020;
}

.popup-form-body {
    margin: 0px 16px 0px 16px;
}

.input-validation-error {
    border-color: #d92550;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23d92550'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23d92550' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

input.number-field {
    text-align: right;
}

.text-danger {
    font-size: 0.8em;
}

.field-validation-valid:empty:before {
    content: "\200b";
}

td.dt-body-right {
    text-align: right;
}

td.dt-right, th.dt-right {
    text-align: right;
}

td.dt-body-center, th.dt-body-center {
    text-align: center;
}

td.dt-center, th.dt-center {
    text-align: center;
}

/*Modal*/
.modal.left_modal, .modal.right_modal {
    position: fixed;
    z-index: 99999;
}

.modal.left_modal .modal-dialog,
.modal.right_modal .modal-dialog {
    position: fixed;
    margin: auto;
    top: 61px;
    width: 410px;
    -webkit-transform: translate3d(0%, 0, 0);
    -ms-transform: translate3d(0%, 0, 0);
    -o-transform: translate3d(0%, 0, 0);
    transform: translate3d(0%, 0, 0);
}

.modal-dialog {
    /* max-width: 100%; */
    margin: 1.75rem auto;
}

@media (min-width: 576px) {
    .left_modal .modal-dialog {
        max-width: 100%;
    }

    .right_modal .modal-dialog {
        max-width: 100%;
    }
}

.modal.left_modal .modal-content,
.modal.right_modal .modal-content {
    /*overflow-y: auto;
    overflow-x: hidden;*/
    height: calc(100vh - 61px) !important;
}

.modal.left_modal .modal-body,
.modal.right_modal .modal-body {
    padding: 1.5rem;
    max-height: calc(100vh - 61px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/*.modal.left_modal  {
    pointer-events: none;
    background: transparent;
}*/

.modal-backdrop {
    display: none;
}

/*Left*/
.modal.left_modal.fade .modal-dialog {
    left: -50%;
    -webkit-transition: opacity 0.3s linear, left 0.3s ease-out;
    -moz-transition: opacity 0.3s linear, left 0.3s ease-out;
    -o-transition: opacity 0.3s linear, left 0.3s ease-out;
    transition: opacity 0.3s linear, left 0.3s ease-out;
}

.modal.left_modal.fade.show .modal-dialog {
    left: 0;
    box-shadow: 0px 0px 19px rgba(0,0,0,.5);
}

/*Right*/
.modal.right_modal.fade .modal-dialog {
    right: -50%;
    -webkit-transition: opacity 0.3s linear, right 0.3s ease-out;
    -moz-transition: opacity 0.3s linear, right 0.3s ease-out;
    -o-transition: opacity 0.3s linear, right 0.3s ease-out;
    transition: opacity 0.3s linear, right 0.3s ease-out;
}


.modal.right_modal.fade.show .modal-dialog {
    right: 0;
    box-shadow: 0px 0px 19px rgba(0,0,0,.5);
}

/* ----- MODAL STYLE ----- */
.modal-content {
    border-radius: 0;
    border: none;
}


.modal-header.left_modal, .modal-header.right_modal {
    padding: 10px 15px;
    border-bottom-color: #EEEEEE;
    background-color: #FAFAFA;
}


.modal_outer .modal-body {
    /*height:90%;*/
    overflow-y: auto;
    overflow-x: hidden;
    height: calc(91vh - 61px)
}