/* فونت و راست‌چین */
.hns-wrap, .hns-admin-wrap {
  font-family: "Vazirmatn", sans-serif !important;
  direction: rtl;
}

/* فرم یک‌خطی ریسپانسیو */
.hns-form {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap; /* برای موبایل جمع می‌شود */
  margin: 8px 0 12px;
}

.hns-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
}

.hns-label > span {
  font-size: 14px;
  color: #333;
}

.hns-select,
.hns-label input[type="number"] {
  height: 40px;
  padding: 0 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  outline: none;
  background: #fff;
}

.hns-select:focus,
.hns-label input[type="number"]:focus {
  border-color: #003459;
  box-shadow: 0 0 0 3px rgba(0,52,89,.12);
}

/* دکمه */
.hns-btn {
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  background: #003459;
  color: #fff;
  border: 0;
  cursor: pointer;
  transition: transform .08s ease, filter .15s ease, box-shadow .15s ease;
}
.hns-btn:hover { background: #FCEED5; color: #000; }
.hns-btn:focus { outline: none; }

/* حالت غیرفعال دکمه هنگام ارسال */
.hns-btn[disabled] {
  opacity: .6;
  cursor: not-allowed;
}

/* اسپینر ساده کنار متن دکمه */
.hns-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-inline-start: 6px; /* فاصله از متن (RTL) */
  border: 2px solid #cbd5e1;
  border-top-color: #003459;
  border-radius: 50%;
  animation: hns-spin .8s linear infinite;
  vertical-align: -3px;
}
@keyframes hns-spin { to { transform: rotate(360deg); } }

/* نمایش مجموع زیر فرم */
.hns-total {
  margin-top: 6px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  font-size: 14px;
}

/* پیام‌ها */
.hns-msg {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
}

/* ادمین */
.hns-admin-wrap .add-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 420px;
}
.hns-admin-wrap input[type="text"] {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px 10px;
}
.hns-admin-wrap .inline-edit {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hns-admin-wrap .inline-edit .chk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hns-table td, .hns-table th {
  vertical-align: middle;
}
/* باکس مجموع کل صلوات (بالای فرم) */
.hns-grand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  margin: 6px 0 10px;
  border-radius: 12px;
  background: linear-gradient(180deg, #f7fbff, #eef6ff);
  border: 1px solid #dbeafe;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  font-size: 15px;
}
.hns-grand .hns-grand-label { color: #0f172a; }
.hns-grand .hns-grand-number { font-weight: 800; color: #003459; }
