.no-order-yet-at-orderlist{
    padding-top:20px;
    padding-bottom:20px;
    text-align:center;
    font-size:16px;
    font-weight:700;
    background-color:#2e6f69;
    border-radius:35px;
    display:block;
    box-shadow: 0px 0px 24px -2px rgba(79,79,79,1);
}
.custom-order-table {
    width: 100%;
    margin-top: 20px;
}

.custom-order-table table {
    width: 100%;
    border-collapse: collapse;
    background-color: #2c2c2c;
    color: white;
}

.custom-order-table th, .custom-order-table td {
    padding: 10px;
    border: 1px solid #333;
    text-align: center;
}

/* اضافه کردن خط بین ردیف‌ها */
.custom-order-table tr {
    border-bottom: 1px solid #444;
}

.custom-order-table button, .custom-order-table a {
    background-color: transparent;
    color: white;
    border: 1px solid white;
    padding: 5px 10px;
    cursor: pointer;
    margin: 0 5px;
}

.custom-order-table button:hover, .custom-order-table a:hover {
    background-color: #3a867f;
    color: white;
    border: 1px solid #3a867f;
}

/* تنظیم تصاویر محصولات */
.product-image {
    display: inline-block;
    margin-right: 5px;
    width: 50px !important;
}

.product-image img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

/* استایل مودال و سایر عناصر */
.invoice-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease-in-out;
}

.invoice-modal-content {
    background-color: #242636;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 80%;
    overflow-y: auto;
    border-radius: 25px;
    animation: modalFadeIn 0.5s;
    position: relative;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: red;
    text-decoration: none;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 18px;
}

.spinner {
    margin-right: 10px;
    border: 4px solid #f3f3f3;
    border-radius: 50%;
    border-top: 4px solid #3a867f;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.header-details {
    display: flex;
    justify-content: space-between;
    margin: 20px;
    color: #fff;
}

.header-details .left {
    text-align: left;
    width: 55%;
    direction: rtl;
}

.header-details .right {
    text-align: right;
    width: 45%;
}

.logo-section {
    text-align: center;
    margin: 20px 0;
}

.order-details-title {
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    text-align: right;
}

.order-details-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    color: #fff;
    background-color: #2c2c2c;
}

.order-details-table th,
.order-details-table td {
    padding: 10px;
    border: 1px solid #444;
    text-align: center;
}

.order-status-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 10px;
    color: #fff;
}

.order-status {
    display: flex;
    align-items: center;
}

.status-loader {
    margin-left: 10px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.status-checkmark {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid green;
    position: relative;
    animation: checkmark 1s infinite;
}

.status-checkmark::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid green;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

@keyframes checkmark {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination button {
    background-color: transparent;
    color: white;
    border: 1px solid white;
    padding: 5px 10px;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination button:hover {
    background-color: #3a867f;
    color: white;
    border: 1px solid #3a867f;
}

.pagination button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.invoice-modal-content::-webkit-scrollbar {
    width: 10px;
}

.invoice-modal-content::-webkit-scrollbar-track {
    background: #2c2c2c;
    border-radius: 5px;
}

.invoice-modal-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
    border: 2px solid #2c2c2c;
}

.invoice-modal-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.invoice-modal-content::-webkit-scrollbar-corner {
    background: #2c2c2c;
}

@media (max-width: 576px) {
    .custom-order-table th,
    .custom-order-table td {
        font-size: 12px;
    }
    .show-invoice {
        font-size: 10px;
        width: 43px;
    }
    .product-image img {
        width: 40px;
        height: 40px;
    }
}
tr {
    border-bottom:1px solid white !important;
}

@media (max-width: 479px) {
    .custom-order-table th,
    .custom-order-table td {
        font-size: 9px;
    }
    .product-image img {
        width: 30px;
        height: 30px;
    }
    .show-invoice {
        font-size: 8px;
        width: 30px;
        height: 30px;
    }
}
@media (max-width: 576px) {
    .custom-order-table th:nth-child(3),
    .custom-order-table td:nth-child(3),
    .custom-order-table th:nth-child(5),
    .custom-order-table td:nth-child(5),
    .custom-order-table th:nth-child(6),
    .custom-order-table td:nth-child(6) {
        display: none;
    }
     .custom-order-table {
        font-size: 13px; 
    }

    .custom-order-table th,
    .custom-order-table td {
        font-size: 12px;
        padding: 5px 5px;
    }

    button.show-invoice {
        font-size: 10px;
        font-weight:300;
        width: auto;
        padding: 5px 8px;
    }
    
}
