﻿
.timer-banner {
    background-color: #fff3cd;
    /*/ زرد ملایم /*/
        border: 1px solid #ffeeba;
    color: #856404;
    padding: 8px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.timer-value {
    font-family: 'Tahoma', sans-serif;
    font-size: 1.1rem;
    color: #d9534f;
    /*/ قرمز برای جلب توجه /*/
        margin-right: 5px;
}

.timer-expired {
    background-color: #f8d7da !important;
    color: #721c24 !important;
    border-color: #f5c6cb !important;
}
/*-----------------------------------------------*/
.custom-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0,0,0,0.7) !important;
    z-index: 99 !important;
    display: none;
    align-items: center;
    justify-content: center;
    direction: rtl !important;
}

#invoice-container {
    width: 95%;
    max-width: 1000px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    max-height: 90vh;
    overflow-y: auto;
    direction: rtl !important;
    text-align: right !important;
}

.table-responsive-container {
    overflow-x: auto;
    margin-bottom: 1.5rem;
    direction: rtl !important;
}
/*
/ ============================================================
استایل‌های جدول فاکتور
============================================================ /*/
.custom-invoice-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 750px;
    direction: rtl !important;
    table-layout: auto;
}

.custom-invoice-table thead th {
    background-color: #f8f9fa;
    color: #333;
    font-weight: bold;
    border: 1px solid #ddd;
    padding: 12px 10px;
    text-align: right !important;
}

.custom-invoice-table tbody td {
    vertical-align: middle !important;
    border: 1px solid #eee;
    padding: 10px;
    font-size: 0.9rem;
    text-align: right !important;
}

.sticky-col {
    position: sticky;
    right: 0;
    background-color: #fdfdfd !important;
    z-index: 2;
    border-left: 1px solid #ddd !important;
    min-width: 160px;
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.row-jns {
    background-color: #fff;
}

.row-maliat {
    background-color: #fffcf0;
    font-weight: bold;
}

.row-discount {
    background-color: #f0fff0;
    font-weight: bold;
}

.row-sum-total {
    background-color: #eee !important;
    font-weight: bold;
}

    .row-sum-total td {
        border-top: 2px solid #ddd !important;
        padding: 12px 10px !important;
    }

.text-danger-bold {
    color: #dc3545;
    font-weight: bold;
}

.text-success-bold {
    color: #28a745;
    font-weight: bold;
}
/*
/ ============================================================
باکس شماره پیگیری
============================================================ /*/
.tracking-container {
    border: 2px dashed #bbb;
    padding: 10px;
    text-align: center;
    border-radius: 8px;
    background: #fafafa;
}

.tracking-title {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 5px;
}

.tracking-value {
    font-family: Tahoma, Arial;
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
}

/*/ ============================================================
   بهینه‌سازی چاپ ۱۰ سانت (صرفه‌جویی در کاغذ)
   ============================================================ /*/
@media print {
    body { visibility: hidden; }
    #invoice-container {
        visibility: visible; position: absolute;
        left: 0; top: 0; width: 100% !important;
        border: none !important; box-shadow: none !important;
    }
    .btn-group-left, .btn-group-right, .btn-close-invoice { display: none !important; }
}

@media print {
    body.mode-10CM #invoice-container {
        width: 10cm !important; max-width: 10cm !important;
        margin: 0 auto !important; padding: 5px !important;
    }
    body.mode-10CM .print-10-hide { display: none !important; }
    body.mode-10CM .custom-invoice-table { min-width: 0 !important; border: none !important; }

    /*/ چیدمان فشرده برای صرفه‌جویی در کاغذ /*/
    body.mode-10CM .custom-invoice-table tbody td {
        display: inline-block !important; 
        /*/ تغییر از block به inline-block /*/
        width: auto !important;
        border: none !important;
        padding: 3px 5px !important;
        text-align: right !important;
    }

    /*/ هر ردیف کالا را به دو خط تبدیل می‌کنیم تا عرض را پر کند /*/
    body.mode-10CM .row-jns {
        display: block !important;
        border-bottom: 1px solid #eee !important;
        margin-bottom: 5px;
        padding: 5px 0;
    }

    body.mode-10CM .sticky-col {
        display: block !important;
        width: 100% !important;
        font-weight: bold !important;
        border-bottom: 1px solid #f0f0f0 !important;
        margin-bottom: 2px;
    }

    body.mode-10CM .row-sum-total td {
        display: block !important; width: 100% !important;
        border-bottom: 1px solid #333 !important;
        text-align: center !important;
    }

    body.mode-10CM .tracking-container {
        border: 1px solid #000 !important;
        margin-top: 10px !important;
    }
}

.shipping-table { border: 1px solid #ddd !important; background: #fff; min-width: 100% !important; }
.shipping-table tbody td { padding: 12px 10px !important; font-weight: bold; text-align: right !important; }
.btn-continue { background-color: #007bff; color: white; border: none; padding: 5px 18px; border-radius: 6px; cursor: pointer; }

/*---bank btn---------*/
/*/ استایل کلی دکمه /*/
/*/ استایل سفارشی برای دکمه بانکی /*/
.btn-bank {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0056b3;
    /*/ رنگ آبی بانکی /*/
        color: white;
    border-radius: 8px;
    padding: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.btn-bank:hover {
    background-color: #004494;
    color: white;
    text-decoration: none;
}

.btn-bank img {
    width: 30px;
    height: 30px;
    margin-left: 12px;
    /*/ فاصله لوگو از متن در حالت RTL /*/
        background-color: #fff;
    border-radius: 4px;
    padding: 2px;
}