.salina-invoice,th,td,h3 {
    font-family:'iranyekan' !important;
}

/* Wrapper */
#salina-order-wrapper {
    direction: rtl;
    font-family: 'IRANSans', sans-serif;
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    max-width: 900px;
    margin: 30px auto;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
}

/* Tabs */
.salina-tabs {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.salina-tab {
    padding: 10px 22px;
    cursor: pointer;
    border-radius: 10px;
    background: #f6f8fa;
    border: 1px solid #dce3eb;
    transition: 0.25s;
    font-weight: 600;
}

.salina-tab:hover {
    background: #e9f3ff;
}

.salina-tab.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* Tab Content */
.salina-tab-content {
    display: none;
    margin-bottom: 25px;
    padding: 20px;
    background: #fefefe;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px #f2f2f2;
}

.salina-tab-content.active {
    display: block;
}

/* Input Fields */
#salina-order-wrapper select,
#salina-order-wrapper input[type=number],
#salina-order-wrapper input[type=file],
#salina-order-wrapper textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d5d5d5;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 15px;
    transition: 0.2s;
    background: #fafafa;
}

#salina-order-wrapper select:focus,
#salina-order-wrapper input:focus,
#salina-order-wrapper textarea:focus {
    border-color: #007bff;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.15);
}

/* Add to list button */
button.add-to-list {
    padding: 10px 20px;
    background: #28a745;
    border: none;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    border-radius: 10px;
    transition: 0.2s;
}

button.add-to-list:hover {
    background: #1f8a38;
}

/* Final Submit */
#submit-final {
    width: 100%;
    padding: 14px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.25s;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(0,123,255,0.25);
}

#submit-final:hover {
    background: #0065d6;
}

/* LIST TABLE */
#salina-list {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    font-size: 15px;
}

#salina-list th {
    background: #007bff;
    color: white;
    padding: 12px;
}

#salina-list td {
    padding: 10px;
    border-bottom: 1px solid #ececec;
    background: #fff;
}

#salina-list tr:nth-child(even) td {
    background: #fafafa;
}

/* Delete Button */
button.del {
    padding: 6px 12px;
    background: #ff4d4d;
    border: none;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: 0.2s;
}

button.del:hover {
    background: #e60000;
}

/* Responsive */
@media (max-width: 600px) {
    .salina-tabs {
        flex-wrap: wrap;
    }

    .salina-tab {
        width: 100%;
        text-align: center;
    }

    #salina-order-wrapper {
        padding: 15px;
    }
}
/* General form element style */
.salina-field input[type=text],
.salina-field input[type=number],
.salina-field input[type=email],
.salina-field input[type=file],
.salina-field select,
.salina-field textarea,
#salina-order-wrapper input[type=text],
#salina-order-wrapper input[type=number],
#salina-order-wrapper input[type=email],
#salina-order-wrapper input[type=file],
#salina-order-wrapper select,
#salina-order-wrapper textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    background: #fafafa;
    border: 1px solid #d3d3d3;
    border-radius: 10px;
    outline: none;
    transition: all 0.25s ease;
    color: #333;
    box-sizing: border-box;
}

/* Hover */
.salina-field input:hover,
.salina-field select:hover,
.salina-field textarea:hover,
#salina-order-wrapper input:hover,
#salina-order-wrapper select:hover,
#salina-order-wrapper textarea:hover {
    background: #f5f5f5;
}

/* Focus effect */
.salina-field input:focus,
.salina-field select:focus,
.salina-field textarea:focus,
#salina-order-wrapper input:focus,
#salina-order-wrapper select:focus,
#salina-order-wrapper textarea:focus {
    background: #fff;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.15);
}

/* Textarea */
.salina-field textarea,
#salina-order-wrapper textarea {
    resize: vertical;
    min-height: 100px;
}

/* File input */
.salina-field input[type=file] {
    padding: 10px;
    background: #f0f0f0;
}

.salina-field input[type=file]:hover {
    background: #e7e7e7;
}

td {
    text-align: center;
    font-family: 'ShahkarFontextra-bold';
}
th {
    text-align: center;
    font-family: 'ShahkarFontextra-bold';
}
h3 {
    text-align: center;
    font-family: 'ShahkarFontextra-bold';
}
select,input,textarea{
        font-family: 'ShahkarFontregular';
}
.upload-wrapper {
    margin-top: 12px;
}

.upload-dropzone {
    border: 2px dashed #b5b5b5;
    background: #fafafa;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: 0.25s;
    position: relative;
}

.upload-dropzone:hover {
    border-color: #2484ff;
    background: #f0f8ff;
}

.upload-dropzone.dragover {
    background: #e0f0ff;
    border-color: #0078ff;
}

.upload-icon {
    font-size: 40px;
    margin-bottom: 8px;
}

.upload-text {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
}

.upload-sub {
    font-size: 12px;
    color: #666;
}

.upload-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-preview {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.upload-item {
    width: 110px;
    border: 1px solid #ddd;
    padding: 6px;
    border-radius: 6px;
    background: #fff;
    text-align: center;
    font-size: 12px;
    position: relative;
}

.upload-item img {
    width: 100%;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
}

.upload-item-delete {
    position: absolute;
    top: -7px;
    right: -7px;
    width: 20px;
    height: 20px;
    background: red;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.upload-item {
 margin-bottom:10px;   
}
.salina-order-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.salina-order-details h3.salina-order-title {
    color: #17a2b8;
    margin-bottom: 10px;
}

.salina-order-details p {
    font-size: 16px;
    margin: 5px 0;
}

.salina-order-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.salina-order-table th,
.salina-order-table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: center;
}

.salina-order-table th {
    background: #17a2b8;
    color: #fff;
}
header,footer{
display:none !important;}

/* جدول سفارش‌ها */
.salina-table {
    width: 100%;
    border-collapse: collapse;
    font-family: sans-serif;
    margin-top: 15px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e2e2;
}

/* عنوان‌ها */
.salina-table th {
    background: #f7f7f7;
    padding: 12px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    border-bottom: 1px solid #ddd;
}

/* ردیف‌ها */
.salina-table td {
    padding: 10px;
    text-align: center;
    font-size: 13px;
    border-bottom: 1px solid #eee;
}

/* افکت hover روی ردیف */
.salina-table tr:hover {
    background: #fafafa;
}

/* لینک جزئیات */
.salina-table a {
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
}

/* دکمه‌ها */
.salina-table button {
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
}



/* ===============================
   ✅ FORCE RTL — SALINA INVOICE
   =============================== */

.salina-invoice,
.salina-invoice * {
    direction: rtl !important;
    unicode-bidi: isolate !important;
}

.salina-invoice table td,
.salina-invoice table th,
.salina-invoice h3 {
    text-align: right !important;
    font-family: 'iranyekan','IRANSans',Tahoma !important;
}
.salina-invoice-table {
 direction:ltr !important;   
}
