@font-face {
    font-family: 'IranSansNum';
    font-style: normal;
    font-weight: bold;
    src: url('../fonts/iransans/eot/IRANSansWeb(FaNum)_Bold.eot');
    src: url('../fonts/iransans/eot/IRANSansWeb(FaNum)_Bold.eot?#iefix') format('embedded-opentype'),
        /* IE6-8 */
        url('../fonts/iransans/woff2/IRANSansWeb(FaNum)_Bold.woff2') format('woff2'),
        /* FF39+,Chrome36+, Opera24+*/
        url('../fonts/iransans/woff/IRANSansWeb(FaNum)_Bold.woff') format('woff'),
        /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
        url('../fonts/iransans/ttf/IRANSansWeb(FaNum)_Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'IranSansNum';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/iransans/eot/IRANSansWeb(FaNum)_Medium.eot');
    src: url('../fonts/iransans/eot/IRANSansWeb(FaNum)_Medium.eot?#iefix') format('embedded-opentype'),
        /* IE6-8 */
        url('../fonts/iransans/woff2/IRANSansWeb(FaNum)_Medium.woff2') format('woff2'),
        /* FF39+,Chrome36+, Opera24+*/
        url('../fonts/iransans/woff/IRANSansWeb(FaNum)_Medium.woff') format('woff'),
        /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
        url('../fonts/iransans/ttf/IRANSansWeb(FaNum)_Medium.ttf') format('truetype');
}

@font-face {
    font-family: 'IranSansNum';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/iransans/eot/IRANSansWeb(FaNum)_Light.eot');
    src: url('../fonts/iransans/eot/IRANSansWeb(FaNum)_Light.eot?#iefix') format('embedded-opentype'),
        /* IE6-8 */
        url('../fonts/iransans/woff2/IRANSansWeb(FaNum)_Light.woff2') format('woff2'),
        /* FF39+,Chrome36+, Opera24+*/
        url('../fonts/iransans/woff/IRANSansWeb(FaNum)_Light.woff') format('woff'),
        /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
        url('../fonts/iransans/ttf/IRANSansWeb(FaNum)_Light.ttf') format('truetype');
}

@font-face {
    font-family: 'IranSansNum';
    font-style: normal;
    font-weight: 200;
    src: url('../fonts/iransans/eot/IRANSansWeb(FaNum)_UltraLight.eot');
    src: url('../fonts/iransans/eot/IRANSansWeb(FaNum)_UltraLight.eot?#iefix') format('embedded-opentype'),
        /* IE6-8 */
        url('../fonts/iransans/woff2/IRANSansWeb(FaNum)_UltraLight.woff2') format('woff2'),
        /* FF39+,Chrome36+, Opera24+*/
        url('../fonts/iransans/woff/IRANSansWeb(FaNum)_UltraLight.woff') format('woff'),
        /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
        url('../fonts/iransans/ttf/IRANSansWeb(FaNum)_UltraLight.ttf') format('truetype');
}

@font-face {
    font-family: 'IranSansNum';
    font-style: normal;
    font-weight: normal;
    src: url('../../fonts/iransans/eot/IRANSansWeb(FaNum).eot');
    src: url('../fonts/iransans/eot/IRANSansWeb(FaNum).eot?#iefix') format('embedded-opentype'),
        url('../fonts/iransans/woff2/IRANSansWeb(FaNum).woff2') format('woff2'),
        url('../fonts/iransans/woff/IRANSansWeb(FaNum).woff') format('woff'),
        url('../fonts/iransans/ttf/IRANSansWeb(FaNum).ttf') format('truetype');
}

body,
body *:not(.fa):not(.fas) ,
.btn,
.Toastify__toast {
    font-family: 'IranSansNum'   ;
        font-size: 0.8rem;
}


.fa, .fas ,
body *.fa, body *.fas {
    font-family: 'Font Awesome 5 Free'  !important ;
    font-weight: 900;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f9f9f9;
    /* رنگ ردیف‌های فرد */
}

.table-striped tbody tr:nth-of-type(even) {
    background-color: #ffffff;
    /* رنگ ردیف‌های زوج */
}

.table-striped tbody tr.selected-row {
    background-color: #d1ecf1 !important;
    /* رنگ خاص ردیف انتخاب‌شده */
}

.table thead tr th {
    color: #ffffff;
}



.table thead tr {
    background: #051061;
 
}

.table tr.dm-disabled{
    color: darkgrey !important;
}
/* ردیف غیرفعال */
.dm-disabled td {
  text-decoration: line-through; /* خط روی متن */
  color: #6c757d !important; /* خاکستری (Bootstrap secondary) */
}

.dm-disabled td.dm-index{    
    text-decoration:none !important;
}
/* ردیف انتخاب‌شده */
.table-active {
  background-color: #e7f1ff !important; /* آبی روشن */

}
.nav-tabs li:not(:last-child) .nav-link {
    border-left: 1px solid lightgrey !important;
}
.btn{
    /* width: 130px; */
    font-size: 0.75rem;
}
.dm-action-buttons .btn{
    width: 130px;
}
.dm-action-buttons .btn:not(:last-child){
    margin-right: 5px;
}

.dm-selected-marker{
    color: transparent ;
    transition: all 1s cubic-bezier();
    margin-left: 5px;
    font-size: 0.7rem;
}
.table-active .dm-selected-marker{
    color: #051061 ;
}

.Toastify__close-button {
    right: auto !important;
    left: 6px !important;
}

.modal-title.h4{
        font-size: 18px !important;
    margin: 0 !important;
}
.modal-content .modal-header{
        padding: 15px 25px 15px 25px !important;
    font-size: 18px !important;
    background-color: #e9ecef !important;
    color: #343a40 !important;
    text-align: right !important;
    margin: 0px !important;
}


.user-info-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  row-gap: 10px;
  column-gap: 10px;
}

.info-row .label {
  color: #555;
}

.info-row .value {
  color: #333;
}
.btn-warning{
    color: white !important;
}
.info-row label{
    padding-left: 10px;
}
/*-----------------------------------*/
/* ===== UserDetailsModal styles ===== */
.custom-modal-content .modal-body {
  direction: rtl; /* فرض فارسی */
  padding: 18px 24px;
  background: #fff;
}

.user-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  align-items: center;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f1f1f1;
}

.info-row:last-child { border-bottom: none; }

.info-row .label {
  width: 36%;
  max-width: 160px;
  font-weight: 600;
  color: #6c757d;
  text-align: right;
  padding-right: 8px;
}

.info-row .value {
  width: 64%;
  color: #222;
  text-align: left;
  word-break: break-all;
}



/* responsive */
@media (max-width: 850px) {
  .user-info-grid { grid-template-columns: 1fr; }
  .info-row { flex-direction: column; align-items:flex-start; gap:6px; }
  .info-row .label { width: auto; text-align: right; padding-right:0; }
  .info-row .value { width: 100%; text-align: right; }
}

/* دکمه‌ها کمی فاصله داشته باشند */
.custom-modal-content .modal-footer .btn { min-width: 120px; }

.bg-danger,
.bg-success{
color: white !important;
    }


    .badge {
  font-size: 0.75rem !important;     
  font-weight: bold; 
}

 
.new-order{
    border-right: 5px solid #ffb90d !important;
}



.dm-action-buttons{
    display: flex !important;
    gap: 2px;
}

.visually-hidden{
    display: none ;
}
.dm-buy
{
    color: green;
}
.dm-sale
{
    color: #bd003b;
}
.dm-physicalDelivery{
  color:#3b82f6
}
.dm-preview-box{
    height: 80px !important;
}


.dm-preview-box img,
.dm-preview-box svg{
    height: 80px !important;
    width: auto !important;
}

/*---------------------------*/
.file-uploader {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  font-family: sans-serif;
}

.file-uploader-dropzone {
  border: 2px dashed #cbd5e0; /* خاکستری روشن */
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-uploader-dropzone:hover {
  border-color: #3b82f6; /* آبی */
  background-color: rgba(59, 130, 246, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.file-uploader-dropzone.active {
  border-color: #2563eb;
  background-color: #eff6ff;
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.file-uploader-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}

.file-uploader-text span {
  text-decoration: underline dotted #3b82f6;
  cursor: pointer;
  transition: color 0.2s ease;
}

.file-uploader-text span:hover {
  color: #2563eb;
}

.file-uploader-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.file-uploader-thumb {
  position: relative;
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.2s ease;
}

.file-uploader-thumb:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.file-uploader-thumb img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 0.25rem;
}

.file-uploader-thumb p {
  margin-top: 0.25rem;
  font-size: 0.7rem;
  color: #4b5563;
  text-align: center;
  width: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-uploader-remove-btn {
  position: absolute;
  top: -5px;
  left: 5px;
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid #fca5a5;
  border-radius: 50%;
  color: #dc2626;
  width: 20px;
  height: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.file-uploader-remove-btn:hover {
  background-color: #fee2e2;
}

.dm-menu .active{
  background-color: lightblue !important;
  transition: all 0.5s;
}

@media (max-width: 470px) {
  .responsive-ul{
    display: inline-block ;
    width: 100%;
  }
  .responsive-ul > li > button{
    width: 100%;
  }
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.ltr-direction{
  direction: ltr;
}
.btn-dm{
  max-width: 80px;
}

.dm-filterDate{
  width: 100% !important;
}

.dm-filter .rmdp-container {
  width: 100% !important;
}
.dm-filter-btn {
  height: 38px !important;
}
