body.rtl .postex-wrapper, body.rtl .postex-wrapper h1, body.rtl .postex-wrapper h2, body.rtl .postex-wrapper h3, body.rtl .postex-wrapper h4, body.rtl .postex-wrapper h5, body.rtl .postex-wrapper h6 {
    font-family: 'Vazirmatn', Tahoma !important;
}

body.rtl .postex-wrapper h1, body.rtl .postex-wrapper h2, body.rtl .postex-wrapper h3, body.rtl .postex-wrapper h4, body.rtl .postex-wrapper h5, body.rtl .postex-wrapper h6 {
    color: black;
    margin-bottom: 20px;
}

body.rtl .postex-wrapper h2 {
    font-size: 16px;
    margin-top: 16px;
}

.postex-menu li {
    margin-bottom: 0;
    height: 20px;
    border-bottom: 1px solid #E5EAEF;
    font-size: 12px;
    display: flex;
    gap: 10px;
    padding: 10px;
}

.postex-menu li:hover {
    background-color: rgb(246, 249, 252);
    cursor: pointer;
}

.postex-menu li.active img {
    filter: invert(50%) sepia(77%) saturate(397%) hue-rotate(173deg) brightness(93%) contrast(91%);
}

.postex-menu li.active a {
    color: #2899d4;
}


.postex-menu li:last-child {
    border-bottom: 0;
}

.postex-menu li a {
    text-decoration: none;
    display: block;
    text-align: right;
    color: black;
}

.postex-body {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.postex-wrapper {
    margin: 40px 20px 40px 40px;
    border-radius: 29px;
}

.postex-head img {
    color: transparent;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    object-fit: cover;
    max-height: 150px;
    min-height: 150px;
    margin-bottom: 5px;
}

.sidebar-logo {
    width: 70px;
    margin-bottom: 0;
}

.postex-head {
    width: 100%;
    height: 100%;
}

.postex-menu-title {
    font-size: 13px;
    color: black;
    text-align: right;
    margin: 0;
}

.postex-sidebar {
    min-width: 150px;
    text-align: center;
    background-color: white;
    border-radius: 16px;
    padding: 16px;
    position: sticky;
    top: 40px;
}

.postex-content {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    position: relative;
    background-color: white;
}

.wallet-balance {
    padding: 10px 20px;
    font-size: 13px;
    text-align: center;
    border-radius: 10px;
    display: inline-block;
    color: #060606;
}

table {
    border-collapse: collapse;
    width: 100%;
}

td, th {
    border-bottom: 1px solid #e9e9e9;
    text-align: right;
    padding: 12px;
    font-size: 12px;
    color: black;
}
table tr:last-child td{
    border-bottom: 0;
}

th {
    border: 0;
    background: #FAFAFA;
}

.general-form fieldset {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

section .form-half fieldset {
    flex: 1;
}

section .form-half {
    display: flex;
    gap: 15px;
    position: relative;
    border-bottom: 1px solid #bfbfbf;
    padding-bottom: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
section .form-half.zero-border{
    border-bottom: 0;
    margin-bottom: 0;
}
section .form-half:last-child {
    border-bottom: 0;
    margin-bottom: 0;
}

.form-sec-title {
    font-weight: bold;
    font-size: 12px;
    margin-bottom: 8px;
}

.api-key-wrapper .submit #submit {
    background: #01A0E1;
    color: white;
    border: 0;
    border-radius: 10px;
}

.api-key-wrapper .submit {
    margin-bottom: 0;
    padding-bottom: 0;
}

.api-key-wrapper #postex_api_key {
    flex: 1;
}

.api-key-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.general-form input, .general-form select {
    border-radius: 10px;
    padding: 3px 8px;
    border: 1px solid #d1d1d1;
    font-size: 11px;
    color: #585858;
}

.general-form input[type=checkbox] , .postex-form input[type=checkbox] {
    border-radius: 0;
    width: 10px;
    height: 10px;
    min-width: 10px
}
.general-form input[type=checkbox]:focus , .postex-form input[type=checkbox]:focus{
    outline: none;
    box-shadow: none;
}
.general-form input[type=checkbox]:checked::before  , .postex-form input[type=checkbox]:checked::before {
    height: 15px;
    width: 15px;
}

.general-form label {
    font-size: 12px;
}

.general-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.general-form .flex-row {
    flex-direction: row;
    flex-wrap: wrap;
}

.general-form select {
    min-width: 100%;
}



.blue-submit:focus{
    outline: none;
}
.blue-submit {
    height: 30px;
    background: #2899d4;
    color: white;
    border: 0;
    font-size: 13px;
    border-radius: 10px;
    cursor: pointer;
}

.wallet-recharge, .wallet-withdrawal {
    display: none;
}

.wallet-recharge.active, .wallet-withdrawal.active {
    display: block;
    margin: 10px 0;
    border: 1px solid #d1d1d1;
    padding: 16px;
    border-radius: 10px;
}

.wallet-bar .action {
    display: flex;
    gap: 20px;
}

.wallet-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e9e9e9;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.form-opener {
    background: #2899d4;
    color: white;
    border: 0;
    border-radius: 10px;
    padding: 5px 16px;
    cursor: pointer;
    font-size: 12px;
}

.postex-menu a:focus {
    outline: none !important;
    box-shadow: none !important;
}

.form-section-title {
    font-size: 14px;
    margin-top: 0;
    padding: 8px 16px;
    margin-bottom: 0;
    color: #01A0E1;
    border-bottom: 1px solid #e9e9e9;
}

.form-sec-content {
    padding: 16px;
}
.form-sec-content .postex-notice{
    color: #ff8b0a;
    font-size: 11px;
    margin: 5px 0;
}

.allowed-methods .label-checkbox{
    flex: 1 0 164px;
}
.postex-content p.submit {
    margin-top: 0;
    padding-top: 0;
}

.logged-as {
    margin: 0 0 16px 0;
    font-size: 12px;
    color: #01a0e1;
    padding-bottom: 16px;
    border-bottom: 1px solid #01a0e1;
}


.radio-row label {
    margin-left: 30px;
    cursor: pointer;
}

.general-form section {
    border: 1px solid #e9e9e9;
    border-radius: 15px;
    padding: 0;
}

.tooltip-icon {
    position: relative;
    cursor: pointer;
    display: inline-block;
    color: #0073aa;
    margin: 2px 5px 0 8px;
}

.tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 8px;
    position: absolute;
    z-index: 10;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.tooltip-icon:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.input-guide {
    font-size: 9px;
    padding-right: 10px;
    color: #7e7e7e;
}

.guide-label {
    font-size: 10px;
    color: gray;
    margin-bottom: 20px;
    margin-top: 0;
}

.api-key-guide a {
    text-decoration: none;
    color: #f79620;
    font-weight: bold;
}

.api-key-guide {
    font-size: 14px;
    margin: 0;
}

#postex-map {
    width: 100%;
    height: 400px;
}

#filter-transactions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 30px;
    margin-top: 20px;
    border-radius: 10px;
    background: white;
    position: relative;
}


.label-input {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.label-input {
    flex: 1;
    min-width: 0;
}

.label-input label {
    display: block;
    margin-bottom: 0;
    font-size: 12px
}

.label-input input {
    width: 100%;
    box-sizing: border-box;
}

.label-checkbox {
    display: flex;
    align-items: center;
    border: 1px solid #d1d1d1;
    padding: 5px 10px;
    border-radius: 10px;
}

.form-half {
    display: flex;
    gap: 10px;
}

#action_type_id, #transaction_type_id {
    flex: 1;
    width: 50%;
}

.filter-icon {
    border-radius: 10px;
    padding: 5px;
    border: 1px solid #d1d1d1;
    width: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 20px;
    cursor: pointer;
}

.transaction-list-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filter-transaction {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10;
    backdrop-filter: blur(2px);
    background-color: #0000008f;
}

.filter-transaction.active {
    display: flex;
}

.close-modal img {
    width: 12px;
    filter: brightness(0);
}

.close-modal {
    position: absolute;
    top: 5px;
    left: 5px;
    display: flex;
    border-radius: 50px;
    width: 15px;
    height: 15px;
    padding: 5px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.pagination a.current {
    background: #2899d4;
    color: white;
}

.pagination a {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    background: #f3f3f3;
    color: black;
    justify-content: center;
    font-size: 12px;
    padding: 5px;
    border-radius: 5px;
    text-decoration: none;
}

.pagination {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.wallet-error {
    background: #a30000;
    padding: 8px 10px;
    border-radius: 8px;
    color: white;
}

.wallet-success {
    background: #2899d4;
    padding: 8px 10px;
    border-radius: 8px;
    color: white;
}

.default-text-input::placeholder {
    font-size: 12px !important;
}

.all-orders .default-text-input {
    padding: 1px 10px !important;
    border-radius: 10px !important;
    border: 1px solid lightgray !important;
    outline: none;
    font-size: 12px;
}

.all-orders .default-text-input.input-error {
    background: #ffeded;
}

tr.row-error {
    background: #ffeded;
}


.all-orders .default-text-input.order-weight-input {
    max-width: 80px;
    min-width: 100%;
    height: 25px;
}

.all-orders td, .all-orders th {
    font-size: 12px;
    padding: 12px;
}
.all-orders{
    table-layout: fixed;
    width: 100%;
}
.send-orders-bulk {
    background: #2899d4;
}

#bulk-quote-prices {
    background: #F8931E;
}

.bulk-actions p {
    border-radius: 7px;
    text-align: center;
    padding: 5px 0;
    flex: 1;
    color: white;
    cursor: pointer;
}

.bulk-actions {
    display: flex;
    gap: 20px;
}

.all-orders p {
    margin: 0;
}

.missed-data-dropdown-row {
    display: none;
}

.must-fill-data {
    text-align: center;
    border-radius: 3px;
    padding: 2px 0;
    font-size: 12px;
    color: #c23336;
}

.filled-data {
    text-align: center;
    border-radius: 3px;
    padding: 2px 0;
    font-size: 12px;
    color: darkgreen;
}

.fill-missed-data, .postex-quote-price {
    width: 100%;
    background: #2798d3;
    color: white;
    border-radius: 5px;
    padding: 3px 0;
    font-size: 12px;
    border: 0;
    cursor: pointer;
}

.response-td {
    font-size: 12px;
    min-width: 130px;
}
.response-td .text-primary{
    color: green;
    font-weight: bold;
    display: block;
}
.response-td .text-primary.have-discount{
    color: #8f8f8f;
    text-decoration: line-through;
    font-size: 11px;
}
.response-td .sale-price{
    color: green;
}
.response-td .success-barcode {
    color: green;
    border: 1px solid green;
    margin: 0 5px;
    padding: 5px;
    border-radius: 10px;
    font-size: 9px;
}

.default-values select {
    padding: 1px 10px !important;
    border-radius: 10px !important;
    border: 1px solid lightgray !important;
    outline: none;
    font-size: 12px;
}

.default-values {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.bulk-details-data .label-input label {
    font-size: 11px;
}

.bulk-details-data .label-input {
    flex: 0 0 19%;
    gap: 0;
}

.bulk-details-data .label-input.flex-1 {
    flex: 1;
}

.bulk-details-data {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.setting-btn {
    background: #2899d4;
    color: white;
    text-decoration: none;
    padding: 2px 20px;
    border-radius: 6px;
    border: 1px solid #2899d4;
}

.setting-btn:hover {
    background: white;
    color: #2899d4;
}

#bulk-loading.active {
    display: flex;
    position: absolute;
    right: 0;
    left: 0;
    top: 0;
    bottom: 0;
    align-items: center;
    justify-content: center;
    background: #000000b0;
    flex-direction: column;
    color: white;
    backdrop-filter: blur(2px);
    border-radius: 10px;
}

#bulk-loading {
    display: none;
}


.postex-section-title {
    padding-bottom: 15px;
    border-bottom: 1px solid #e9e9e9;
    font-weight: bold;
}

.postex-form fieldset.products-list {
    align-items: self-start;
}

.postex-form fieldset {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    margin-bottom: 15px;
}

.label-input {
    flex: 1;
    min-width: 0;
}

.postex-meta-box-section label {
    cursor: pointer;
}

.label-input label {
    display: block;
    margin-bottom: 5px;
}

.postex-form input, .postex-form select {
    border-radius: 10px;
    border: 1px solid #d1d1d1;
    font-size: 12px;
    color: #585858;
    padding: 0 10px;
    height: 30px;
}

.label-input input {
    width: 100%;
    box-sizing: border-box
}

.postex-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.postex-meta-box-section {
    background: white;
    border-radius: 10px;
    padding: 0 16px 16px 16px;
    border: 1px solid #e9e9e9;
}

#shipping_result.active {
    border-radius: 15px;
    display: block;
    margin-top: 20px;
}

#shipping_result p.error {
    margin-top: 10px;
    color: #d63638;
}
#shipping_result p.error:last-child{
    margin-top: 0;
}
.text-center {
    text-align: center;
}

.postex-methods {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    flex-direction: column;
}

.request-label span {
    padding: 2px 0;
    display: flex;
    color: #ffffff;
    align-items: center;
    justify-content: center;
    background: #ed9322;
    cursor: pointer;
    margin: 5px;
    border-radius: 10px;
}

.added_services {
    display: flex;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 12px;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
}

.added_services .added_service p {
    margin: 0;
}

.added_services .added_service {
    display: flex;
    gap: 10px;
    border-left: 2px solid #2899d4;
    padding-left: 10px;
}

.postex-methods .postex-method {
    border: 1px solid #e3e3e3;
    padding: 10px 15px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    box-shadow: 0 0 4px 0 #80808038;
    background: white;
}

#shipping_result .postex-method label {
    display: flex;
    align-items: center;
    gap: 25px;
}

.postex-methods .postex-method  img {
    width: 35px;
    margin: 0 !important;
}

.courier-icon {
    border-radius: 50px;
}

.postex-methods .postex-method span , .postex-methods .postex-method div{
    margin: 0;
    display: flex;
    align-items: center;
    font-size: 12px;
    gap: 7px;
    min-width: 160px;
}
.have-discount .prices {
    flex-direction: column;
}
.have-discount .prices .regular-price{
    text-decoration: line-through;
    font-size: 11px;
    color: #8f8f8f;
}

.products-list #add-product {
    width: 100px;
    background: #01A0E1;
    border: 0;
    padding: 5px;
    border-radius: 6px;
    color: white;
    cursor: pointer;
}

.parcel-product-row {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
}

.parcel-product-row input {
    flex: 1 0 28%;
}

.parcel-product-row .remove-product {
    background: #d63638;
    color: white;
    padding: 3px 20px;
    border: 0;
    border-radius: 5px;
    cursor: pointer;
}

.postex-loading-icon {
    display: block;
    margin: auto;
    width: 25px;
}

#submit-parcel, #fetch_shipping_prices {
    width: 100%;
    height: 40px;
    background: #2899d4;
    border-radius: 10px;
    border: 0;
    color: white;
    font-weight: bold;
    cursor: pointer;
}


#postex-bulk-result-table {
    width: 100%;
    border-collapse: collapse;
}

#postex-bulk-result-table th, #postex-bulk-result-table td {
    padding: 6px;
    text-align: right;
}


#postex-bulk-result-table tr:nth-child(even) td {
    background-color: #f9f9f9;
}

#parcel-products-wrapper {
    width: 100%;
}


#dimensions {
    display: none;
}

.postex-form select {
    min-width: 100%;
}


input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

.order-items-list {
    margin-top: 15px;
    border-top: 1px solid white;
    background: #f3f3f3;
    padding: 10px;
    border-radius: 12px;
}
.order-status-label .dashicons{
    font-size: 13px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.order-status-label{
    display:inline-flex;
    align-items:center;
    gap:3px;
    padding:2px 5px;
    border-radius:4px;
    width: 100%;
}
.all-orders .order-items-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
    border-bottom: 1px solid #dddddd;
    padding-bottom: 5px;
}

#bulk-errors {
    display: none;
}

#bulk-errors.active ul {
    list-style: auto;
    padding-right: 15px;
}

#bulk-errors.active {
    background: #d63638;
    color: white;
    padding: 10px;
    margin-top: 20px;
    border-radius: 10px;
    display: block;
}

.order-details-wrapper .column p {
    font-size: 12px;
}

.order-details-wrapper .column {
    flex: 1 0 28%;
    background: #f9f9f9;
    padding: 0 10px;
    border-radius: 10px;
}

.order-details-wrapper .column.full {
    width: 100%;
}

.order-details-wrapper {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.order-details-wrapper .column-title {
    padding-bottom: 10px;
    border-bottom: 1px solid #2899d4;
    font-weight: bold;
    margin: 5px 0;
}

.postex-orders-items td {
    font-size: 12px;
}

.column.full strong {
    color: #2899d4;
    width: 70px;
    display: inline-block;
}

.postex-see-order-details {
    background: #2899d4;
    color: white;
    border-radius: 5px;
    text-align: center;
    padding: 2px 5px;
    font-size: 12px;
    margin: 0;
    cursor: pointer;
}

.postex-order-details {
    display: none;
}

.postex-order-header p:first-child {
    font-size: 16px;
    font-weight: bold;
}

.postex-order-header p {
    margin: 0;
}

.postex-order-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #e9e9e9;
    margin-bottom: 10px;
    padding-bottom: 10px;
    align-content: center;
}

#export-excel.active {
    background: green;
}

#export-excel {
    background: #2899d4;
    color: white;
    padding: 3px 10px;
    border-radius: 5px;
    cursor: pointer;
    border: 0;
}

.not-found-sec p {
    font-size: 18px;
    color: #9e9e9e;
}

.not-found-sec {
    padding: 50px;
}


#tracking-result.active {
    border: 1px solid #bdbdbd;
    padding: 16px;
    border-radius: 10px;
}

#postex-tracking-form {
    border-radius: 20px;
    margin-bottom: 20px;
}

.postex-tracking-bullet {
    display: flex;
    flex-direction: column;
    flex: 0 1 0%;
    -webkit-box-align: center;
    align-items: center;
}

.postex-tracking-bullet .line {
    width: 2px;
    -webkit-box-flex: 1;
    flex-grow: 1;
    background-color: rgba(189, 189, 189, 0.19);
}

.postex-tracking-bullet .bullet {
    display: flex;
    align-self: baseline;
    border-style: solid;
    border-width: 2px;
    padding: 4px;
    border-radius: 50%;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 1px -1px, rgba(0, 0, 0, 0.14) 0px 1px 1px 0px, rgba(0, 0, 0, 0.12) 0px 1px 3px 0px;
    margin: 11.5px 0px;
    border-color: transparent;
    color: rgb(250, 250, 250);
    background-color: rgb(189, 189, 189);
}

.postex-tracking-info {
    font-size: 12px;
    margin: 0;
    flex-direction: column;
    padding: 6px 16px;
    display: flex;
    gap: 8px;
    flex: 1;
}

.tracking-row p{
    margin: 0;
    color: #00000070;
    font-size: 12px;
}
.tracking-row {
display: flex;
    gap: 10px;

}
.postex-tracking-wrapper{
    display: flex
}
.tracking-items{
    margin-top: 0;
}

.tracking-row .step , .tracking-row .last{
    padding: 0 8px;
    color: white;
    border-radius: 12px;
}
.tracking-row .step{
    background-color: rgb(189, 189, 189);
}
.tracking-row .last{
    background-color: rgb(76, 175, 80);
}
.login-to-postex{
    text-decoration: none;
    border: 1px solid #01A0E1;
    color: #01A0E1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border-radius: 7px;
    font-size: 11px;
    margin-top: 10px;
}