/* peygir */
@font-face {
  font-family: 'peygir';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/peygir.woff2) format('woff2');
}
input {
    font-family: 'peygir' !important;
}
select {
    font-family: 'peygir' !important;
}
.btn {
    font-family: 'peygir' !important;
}
.datepicker-plot-area {
    font: 12px peygir !important;
    margin-top: -156px !important;
    border-radius: 16px !important;
}
.datepicker-plot-area .datepicker-day-view .month-grid-box .header {
    background: #f1f1f1 !important;
    height: auto !important;
    padding: 4px !important;
    border-radius: 8px !important;
}

/* /assets/css/style.css */
/* پایه و ریست */
* {
  box-sizing: border-box;
}
.ss02 {
    -moz-font-feature-settings: "ss02";
    -webkit-font-feature-settings: "ss02";
    font-feature-settings: "ss02";
}
body {
    -moz-font-feature-settings: "ss02";
    -webkit-font-feature-settings: "ss02";
    font-feature-settings: "ss02";
}
body {
  font-family: "peygir";
  direction: rtl;
  background: #f6f7fb;
  color: #1f2937;
  margin: 0;
  padding: 0;
  line-height: 1.7;
}

a {
  color: #2563eb;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px;
}

/* کارت‌ها */
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(20, 20, 20, 0.08);
  padding: 18px;
  margin-bottom: 16px;
}

.card-header {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* فرم‌ها */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  outline: none;
  font-size: 14px;
  background: #fff;
  transition: 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

textarea {
  min-height: 90px;
  resize: vertical;
}

.form-group {
  margin-bottom: 12px;
}

label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  color: #374151;
}

.form-row {
  display: grid;
  gap: 12px;
}
.form-row.cols-2 { grid-template-columns: repeat(2, 1fr); }
.form-row.cols-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 768px) {
  .form-row.cols-2,
  .form-row.cols-3 {
    grid-template-columns: 1fr;
  }
}

/* دکمه‌ها */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: 0.2s;
}

.btn-primary { background: #2563eb; color: #fff; }
.btn-primary:hover { background: #1d4ed8; }

.btn-success { background: #10b981; color: #fff; }
.btn-success:hover { background: #059669; }

.btn-danger { background: #ef4444; color: #fff; }
.btn-danger:hover { background: #dc2626; }

.btn-warning { background: #f59e0b; color: #fff; }
.btn-warning:hover { background: #d97706; }

.btn-secondary { background: #6b7280; color: #fff; }
.btn-secondary:hover { background: #4b5563; }

.btn-light { background: #f3f4f6; color: #111827; }
.btn-light:hover { background: #e5e7eb; }

/* جدول‌ها */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th, .table td {
  padding: 10px;
  border-bottom: 1px solid #e5e7eb;
  text-align: right;
}

.table th {
  background: #f9fafb;
  font-weight: 700;
}

.table tr:hover {
  background: #f3f4f6;
}

/* نشان‌ها (Badge) */
.badge {
  display: inline-block;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 999px;
  font-weight: 600;
}

.badge.pending { background: #fef3c7; color: #92400e; }
.badge.in_progress { background: #dbeafe; color: #1e40af; }
.badge.completed { background: #dcfce7; color: #166534; }
.badge.canceled { background: #fee2e2; color: #991b1b; }

/* هدر و منو */
.header {
  background: #111827;
  color: #fff;
  padding: 12px 0;
  margin-bottom: 18px;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav a {
  color: #fff;
  margin-left: 12px;
  font-size: 13px;
  opacity: 0.9;
}
.nav a:hover { opacity: 1; }

/* فرم جستجو */
.search-box {
  display: flex;
  gap: 8px;
}

/* وضعیت‌ها */
.alert {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 12px;
}

.alert.success { background: #dcfce7; color: #166534; }
.alert.error { background: #fee2e2; color: #991b1b; }
.alert.info { background: #dbeafe; color: #1e40af; }
.alert.warning { background: #fef3c7; color: #92400e; }

/* آواتار */
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e5e7eb;
}

/* تایم‌لاین/تاریخچه */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline li {
  padding: 8px 0;
  border-bottom: 1px dashed #e5e7eb;
  font-size: 13px;
}
