@font-face {
    font-family: 'Peyda100';
    src: url('../fonts/PeydaWebFaNum-Thin.4dc9791976a333b36501.woff2') format('woff2');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'Peyda200';
    src: url('../fonts/PeydaWebFaNum-ExtraLight.cb12d7d5e9d6131c285f.woff') format('woff');
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: 'Peyda300';
    src: url('../fonts/PeydaWebFaNum-Light.e5c4aa2be8084a7fd345.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Peyda400';
    src: url('../fonts/PeydaWebFaNum-Regular.a85fc388413d6fb2707b.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Peyda500';
    src: url('../fonts/PeydaWebFaNum-Medium.5ae94427bffc3c292a70.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Peyda600';
    src: url('../fonts/PeydaWebFaNum-SemiBold.bee880ae22ea6f0f046e.woff') format('woff');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Peyda700';
    src: url('../fonts/PeydaWebFaNum-Bold.2106f9398d9799d35d55.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Peyda800';
    src: url('../fonts/PeydaWebFaNum-ExtraBold.5d0e4f0b138c23493636.woff') format('woff');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Peyda900';
    src: url('../fonts/PeydaWebFaNum-Black.ce8ffc88f1303a4ed135.woff') format('woff');
    font-weight: 900;
    font-style: normal;
}

body,
html {
    font-family: 'Peyda400', sans-serif !important;
    /* Regular */
    font-weight: 400 !important;
}

h1,
h2 {
    font-family: 'Peyda900', sans-serif !important;
    /* Black */
    font-weight: 900 !important;
}

h3,
h4 {
    font-family: 'Peyda700', sans-serif !important;
    /* Bold */
    font-weight: 700 !important;
}

p {
    font-family: 'Peyda300', sans-serif !important;
    /* Light */
    font-weight: 300 !important;
}

strong,
b {
    font-family: 'Peyda800', sans-serif !important;
    /* ExtraBold */
    font-weight: 800 !important;
}

em {
    font-family: 'Peyda200', sans-serif !important;
    /* ExtraLight */
    font-weight: 200 !important;
}

a {
    font-family: 'Peyda500', sans-serif !important;
    /* Medium */
    font-weight: 500 !important;
}

small,
.caption {
    font-family: 'Peyda100', sans-serif !important;
    /* Thin */
    font-weight: 100 !important;
}

button,
input,
textarea,
select {
    font-family: 'Peyda600', sans-serif !important;
    /* SemiBold */
    font-weight: 600 !important;
}

/* ── Input field base style (LIGHT MODE) ─────────────────────────── */
.input-field {
  background-color: rgb(241 245 249 / 0.8);   /* slate-100/80 */
  border: 1px solid rgb(203 213 225 / 0.8);   /* slate-300/80 */
  color: #1e293b;                              /* slate-800 */
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-family: 'Vazirmatn', sans-serif;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
  appearance: auto;
}

.input-field:focus {
  outline: none;
  border-color: #6366f1;                       /* همان رنگ فوکوس قبلی */
  box-shadow: 0 0 0 2px rgb(99 102 241 / 0.25); /* کمی روشن‌تر برای لایت */
}

.input-field::placeholder {
  color: #94a3b8;                              /* slate-400 */
}

/* ── Select arrow RTL fix ─────────────────────────── */
select.input-field {
  padding-left: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236787A1' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  /* stroke=#6787A1 ≈ slate-500 */
  background-repeat: no-repeat;
  background-position: left 0.5rem center;
  background-size: 1.25rem;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* ── Scrollbar (LIGHT MODE) ─────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; } /* slate-300 */
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }                /* slate-400 */

/* ── Toggle switch fix (بدون تغییر) ─────────────────── */
input[type=checkbox].sr-only:checked ~ div > div {
  transform: translateX(-16px);
}

/* ── Number input arrows hide (بدون تغییر) ─────────── */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  opacity: 0.4;
}
html{
    zoom: 1.1 !important;
}

/* ── Late entry badge ─────────────────────────────── */
.late-entry-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-right: 0.35rem;
  padding: 0.1rem 0.45rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: #c2410c;
  background: rgb(251 146 60 / 0.15);
  border: 1px solid rgb(251 146 60 / 0.35);
  border-radius: 0.375rem;
  white-space: nowrap;
  vertical-align: middle;
  cursor: help;
}

/* ── Item review check ────────────────────────────── */
.item-check-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  padding: 0;
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
  font-size: 1rem;
  line-height: 1;
}
.item-check-btn:hover {
  color: #10b981;
  transform: scale(1.08);
}
.item-check-btn.is-checked {
  color: #059669;
}
.item-check-btn.is-loading {
  opacity: 0.5;
  pointer-events: none;
}
tr.row-checked {
  background-color: rgb(16 185 129 / 0.06);
}

/* Jalali picker above modals */
.jdp-container {
  z-index: 99999 !important;
}
.jdp-overlay {
  z-index: 99998 !important;
}

/* ── Searchable Select ─────────────────────────────── */
.searchable-select {
  position: relative;
  width: 100%;
}

.searchable-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.searchable-select-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
  padding-left: 2rem;
  background-image: none;
}

.searchable-select-display {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #1e293b;
}

.searchable-select-display.is-placeholder {
  color: #94a3b8;
}

.searchable-select-arrow {
  font-size: 0.65rem;
  color: #64748b;
  transition: transform 0.15s;
  flex-shrink: 0;
}

.searchable-select.is-open .searchable-select-arrow {
  transform: rotate(180deg);
}

.searchable-select-dropdown {
  position: fixed;
  z-index: 9999;
  background: #f8fafc;
  border: 1px solid rgb(203 213 225 / 0.9);
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.12), 0 4px 6px -4px rgb(0 0 0 / 0.08);
  overflow: hidden;
}

.searchable-select-search {
  border: none;
  border-bottom: 1px solid rgb(203 213 225 / 0.6);
  border-radius: 0;
  background: #fff;
}

.searchable-select-search:focus {
  box-shadow: none;
  border-color: rgb(203 213 225 / 0.6);
}

.searchable-select-list {
  max-height: 220px;
  overflow-y: auto;
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
}

.searchable-select-option {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.1s;
  color: #334155;
}

.searchable-select-option:hover,
.searchable-select-option.is-highlighted {
  background: rgb(99 102 241 / 0.1);
  color: #4338ca;
}

.searchable-select-option.is-selected {
  background: rgb(99 102 241 / 0.15);
  color: #4338ca;
  font-weight: 600;
}

.searchable-select-option-new {
  color: #6366f1;
  font-weight: 600;
  border-bottom: 1px solid rgb(203 213 225 / 0.5);
  margin-bottom: 0.25rem;
  padding-bottom: 0.625rem;
}

.searchable-select-no-results {
  padding: 0.75rem;
  text-align: center;
  color: #94a3b8;
  font-size: 0.8125rem;
  list-style: none;
}