/* ═══════════════════════════════════════════════════════════════════
   Shahab Clinic — Ticket UI Redesign (طراحی جدید بخش تیکت)
   این فایل صرفاً ظاهر بخش تیکت در پنل هنرجو و مربی را بازطراحی می‌کند.
   فایل اصلی public.css دست‌نخورده باقی می‌ماند.
   ═══════════════════════════════════════════════════════════════════ */

/* ─────────── تب‌های آماری وضعیت تیکت (نمایش باکسی پاستیلی) ───────────
   با flex-wrap به‌جای گرید ثابت، تا در هیچ اندازه صفحه‌نمایشی (خصوصاً
   دسکتاپ با عرض‌های میانی) از قاب کارت بیرون نزند و همیشه کاملاً ریسپانسیو
   و مرتب باشد. */
.sh-tk-stat-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 22px;
  position: relative;
  max-width: 100%;
}
.sh-tk-stat-tabs > .sh-tk-box,
.sh-tk-stat-tabs > .sh-tk-stat-tab {
  flex: 1 1 150px;
  max-width: 100%;
  box-sizing: border-box;
}
@media (min-width: 993px) {
  /* در دسکتاپ همه باکس‌ها (ارسال تیکت/ارسال ثابت/فیلتر/وضعیت‌ها) هم‌اندازه،
     هم‌چیدمان افقی و هم‌تراز کنار هم قرار می‌گیرند و هرگز از کارت بیرون نمی‌زنند */
  .sh-tk-stat-tabs > .sh-tk-box,
  .sh-tk-stat-tabs > .sh-tk-stat-tab {
    flex: 1 1 0;
    min-width: 150px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    min-height: 60px;
    height: auto;
    padding: 10px 14px;
    gap: 10px;
    border-radius: 26px;
  }
  .sh-tk-stat-tabs > .sh-tk-box .sh-tk-box-icon,
  .sh-tk-stat-tabs > .sh-tk-stat-tab .sh-tk-box-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: .95rem;
    flex: 0 0 auto;
  }
  .sh-tk-stat-tabs > .sh-tk-box .sh-tk-box-text,
  .sh-tk-stat-tabs > .sh-tk-stat-tab .sh-tk-box-text {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 6px;
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
  }
  .sh-tk-stat-tabs > .sh-tk-box .sh-tk-title-text,
  .sh-tk-stat-tabs > .sh-tk-stat-tab .sh-tk-title-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: .82rem;
  }
}
.sh-tk-box,
.sh-tk-stat-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  min-height: 118px;
  box-sizing: border-box;
  border: 1.5px solid transparent;
  border-radius: 20px;
  cursor: pointer;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  font-size: .95rem;
  font-weight: 600;
  color: #444;
  padding: 18px 14px;
  position: relative;
  white-space: nowrap;
  text-align: center;
  box-shadow: 0 1px 2px rgba(20, 40, 30, .04);
  transition: box-shadow .2s, transform .15s, border-color .2s;
}
.sh-tk-box:hover,
.sh-tk-stat-tab:hover {
  box-shadow: 0 8px 18px rgba(20, 40, 30, .1);
  transform: translateY(-2px);
}
.sh-tk-box .sh-tk-title-text,
.sh-tk-stat-tab .sh-tk-title-text {
  display: block;
  font-size: .88rem;
  font-weight: 700;
  color: #3a453e;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sh-tk-box-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  font-size: 1.3rem;
  background: rgba(255,255,255,.55);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.6);
}
.sh-tk-box-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  width: 100%;
}
.sh-tk-stat-tab .sh-tk-count {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
}

/* پالت پاستیلی: پس‌زمینه ملایم، آیکون در دایره هم‌رنگ‌تر و پررنگ‌تر */
.sh-tk-stat-tab[data-color="yellow"] { background: #fff2d9; }
.sh-tk-stat-tab[data-color="yellow"] .sh-tk-count { color: #e0982a; }
.sh-tk-stat-tab[data-color="yellow"] .sh-tk-box-icon { background: #ffdfa0; color: #a3690f; }

.sh-tk-stat-tab[data-color="red"] { background: #ffe7de; }
.sh-tk-stat-tab[data-color="red"] .sh-tk-count { color: #e2694a; }
.sh-tk-stat-tab[data-color="red"] .sh-tk-box-icon { background: #ffc3ae; color: #b03f22; }

.sh-tk-stat-tab[data-color="blue"] { background: #e2edfe; }
.sh-tk-stat-tab[data-color="blue"] .sh-tk-count { color: #5c8fdb; }
.sh-tk-stat-tab[data-color="blue"] .sh-tk-box-icon { background: #bcd6fb; color: #2f5faa; }

.sh-tk-stat-tab[data-color="green"] { background: #e8f5da; }
.sh-tk-stat-tab[data-color="green"] .sh-tk-count { color: #7cad4a; }
.sh-tk-stat-tab[data-color="green"] .sh-tk-box-icon { background: #cbe9ac; color: #4c7a26; }

.sh-tk-stat-tab[data-color="gray"] { background: #eaeeec; }
.sh-tk-stat-tab[data-color="gray"] .sh-tk-count { color: #8d9994; }
.sh-tk-stat-tab[data-color="gray"] .sh-tk-box-icon { background: #d4dad7; color: #5c6864; }

.sh-tk-stat-tab.active {
  border-color: rgba(0,0,0,.18);
  box-shadow: 0 0 0 2px rgba(20,40,30,.12), 0 6px 16px rgba(20, 40, 30, .1);
}
.sh-tk-stat-tab.active .sh-tk-title-text { color: var(--sh-primary); }

/* چهار کارت وضعیت: حاشیه گردتر + آیکون/متن/عدد در یک خط (چیدمان افقی) */
.sh-tk-stat-tab {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  min-height: 60px;
  padding: 10px 14px;
  gap: 10px;
  border-radius: 26px;
}
.sh-tk-stat-tab .sh-tk-box-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: .95rem;
  flex: 0 0 auto;
}
.sh-tk-stat-tab .sh-tk-box-text {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 6px;
  width: auto;
  flex: 1 1 auto;
  min-width: 0;
}
.sh-tk-stat-tab .sh-tk-title-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sh-tk-stat-tab .sh-tk-count {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  flex: 0 0 auto;
  margin-right: auto;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.55);
}
@media (max-width: 600px) {
  .sh-tk-stat-tab { min-height: 54px; padding: 8px 10px; gap: 8px; border-radius: 20px; }
  .sh-tk-stat-tab .sh-tk-box-icon { width: 28px; height: 28px; font-size: .82rem; border-radius: 9px; }
  .sh-tk-stat-tab .sh-tk-title-text { font-size: .72rem; }
  .sh-tk-stat-tab .sh-tk-count { font-size: .82rem; padding: 1px 7px; }
}

/* ─────────── باکس «ارسال تیکت جدید» (پاستیلی سبز، گرد و جذاب) ─────────── */
.sh-tk-new-tab {
  background: #ddf3e2;
  border-color: #b7e4c0;
  justify-content: center;
}
.sh-tk-new-tab .sh-tk-box-icon { background: #b7e4c0; color: #217a45; }
.sh-tk-new-tab .sh-tk-title-text { color: #217a45; }
.sh-tk-new-tab:hover { background: #cdecd4; }

/* ─────────── باکس «فیلتر» (دکمه بازکننده‌ی مودال بازه زمانی) ─────────── */
.sh-tk-filter-box {
  background: #e9e2fb;
  border-color: #cdbdf5;
  justify-content: center;
}
.sh-tk-filter-box .sh-tk-box-icon { background: #cdbdf5; color: #5a3fa0; }
.sh-tk-filter-box .sh-tk-title-text { color: #6b47c9; }
.sh-tk-filter-box:hover { background: #ddd2fb; }

/* ─────────── مودال فیلتر بازه زمانی (پاستیلی، هم‌رنگ با باکس فیلتر) ─────────── */
.sh-tk-daterange-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; padding: 16px;
}
.sh-tk-daterange-box {
  background: #fff;
  border: 1.5px solid #ece5fb;
  border-radius: var(--sh-radius, 16px);
  max-width: 460px; width: 100%;
  padding: 24px; position: relative;
  box-shadow: 0 12px 30px rgba(60, 40, 100, .18);
}
.sh-tk-daterange-box h3 {
  margin: 0 0 18px;
  font-size: 1rem;
  font-weight: 800;
  color: #5a3fa0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sh-tk-daterange-cards {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.sh-tk-daterange-card {
  flex: 1 1 190px;
  background: #f4effe;
  border: 1.5px solid #e3d9fb;
  border-radius: 14px;
  padding: 14px;
}
.sh-tk-daterange-card-title {
  font-size: .85rem;
  font-weight: 700;
  color: #5a3fa0;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.sh-tk-daterange-selects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.sh-tk-daterange-selects select {
  border: 1.5px solid #cdbdf5;
  border-radius: 10px;
  padding: 8px 4px;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  font-size: .82rem;
  background: #fff;
  color: #333;
  text-align: center;
}
.sh-tk-daterange-selects select:focus { outline: none; border-color: #7458cf; }
.sh-tk-daterange-actions { display: flex; gap: 10px; }

/* ─────────── نسخه ۲.۳۹.۰ — پاپ‌آپ تأیید بعد از ارسال موفق پاسخ هنرجو به تیکت ─────────── */
.sh-tk-reply-success-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; padding: 16px;
}
.sh-tk-reply-success-box {
  background: #fff;
  border: 1.5px solid #ffd3da;
  border-radius: var(--sh-radius, 16px);
  max-width: 380px; width: 100%;
  padding: 30px 24px 24px;
  position: relative;
  text-align: center;
  box-shadow: 0 12px 30px rgba(232, 84, 122, .18);
  animation: sh-tk-reply-success-in .35s cubic-bezier(.34,1.56,.64,1);
}
@keyframes sh-tk-reply-success-in {
  from { transform: scale(.85); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.sh-tk-reply-success-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: #FFE1E3; color: #E8547A;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; margin: 0 auto 16px;
}
.sh-tk-reply-success-box h3 {
  margin: 0 0 8px; font-size: 1.02rem; font-weight: 800; color: #333;
}
.sh-tk-reply-success-box p {
  margin: 0 0 20px; font-size: .85rem; color: #777; line-height: 1.8;
}
.sh-tk-reply-success-close {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: #E8547A; color: #fff; border: none; border-radius: 10px;
  padding: 10px 28px; font-size: .85rem; font-weight: 700; cursor: pointer;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
}
.sh-tk-reply-success-close:hover { background: #d63f66; }
.sh-tk-daterange-apply,
.sh-tk-daterange-clear {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 24px;
  padding: 11px 14px;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid transparent;
}
.sh-tk-daterange-apply,
.sh-tk-daterange-clear { background: #dcf3df; color: #2f8f4e; border-color: #b7e4c0; }
.sh-tk-daterange-apply:hover,
.sh-tk-daterange-clear:hover { background: #cbecd1; }

.sh-tk-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.sh-tk-toolbar .sh-tk-page-size {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: #777;
}
.sh-tk-toolbar select {
  border: 1.5px solid var(--sh-border);
  border-radius: 8px;
  padding: 6px 10px;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  font-size: .85rem;
}

/* ─────────── دکمه ارسال تیکت جدید ─────────── */
.sh-tk-new-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1.5px solid var(--sh-primary);
  color: var(--sh-primary);
  padding: 9px 18px;
  border-radius: 10px;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.sh-tk-new-btn:hover { background: var(--sh-primary); color: #fff; }

/* ─────────── جدول تیکت‌ها ───────────
   طبق درخواست، لیست تیکت‌ها همیشه (هم در دسکتاپ هم موبایل) به‌صورت کارت‌های
   زیر هم نمایش داده می‌شود؛ جدول کلاسیک همیشه مخفی است. */
.sh-tk-table-wrap { display: none; }
table.sh-tk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
}
table.sh-tk-table th {
  background: var(--sh-light);
  color: #555;
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
  text-transform: none;
  letter-spacing: normal;
  padding: 14px;
  text-align: center;
  white-space: nowrap;
  border-bottom: 1.5px solid var(--sh-border);
}
table.sh-tk-table td {
  padding: 14px;
  font-size: inherit;
  text-align: center;
  border-bottom: 1px solid var(--sh-border);
  vertical-align: middle;
}
table.sh-tk-table tr:last-child td { border-bottom: none; }
table.sh-tk-table td.sh-tk-subject { text-align: right; font-weight: 600; color: #333; }

.sh-tk-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .76rem;
  font-weight: 700;
}
.sh-tk-status-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
}
.sh-tk-status-pill.open       { background: #ffece6; color: #ff6437; }
.sh-tk-status-pill.reviewing  { background: #e8f0ff; color: #6097f3; }
.sh-tk-status-pill.closed     { background: #eef0f0; color: #8a9290; }

.sh-tk-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1.5px solid #b7e4c0;
  background: #dcf3df;
  color: #2f8f4e;
  padding: 7px 18px;
  border-radius: 22px;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
}
.sh-tk-view-btn:hover { background: #cbecd1; }

.sh-tk-empty {
  text-align: center;
  padding: 50px 20px;
  color: #999;
}
.sh-tk-empty i { font-size: 2.2rem; color: #c9d3cf; margin-bottom: 10px; display:block; }

/* ─────────── صفحه ثبت تیکت جدید: راهنما + FAQ آکاردیونی ─────────── */
.sh-tk-new-page-title {
  font-weight: 800;
  font-size: 1.15rem;
  color: #222;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.sh-tk-guide-box {
  background: var(--sh-light);
  border: 1px solid var(--sh-border);
  border-radius: var(--sh-radius);
  padding: 22px 24px;
  margin-bottom: 22px;
}
.sh-tk-guide-box h4 {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 800;
  color: #222;
  border-right: 3px solid var(--sh-primary);
  padding-right: 10px;
}
.sh-tk-guide-box p, .sh-tk-guide-box ol {
  font-size: .85rem;
  line-height: 2;
  color: #555;
  margin: 0 0 10px;
}
.sh-tk-guide-box ol { padding-right: 20px; margin-bottom: 0; }
.sh-tk-guide-box ol li { margin-bottom: 6px; }

.sh-tk-faq-wrap {
  margin-bottom: 22px;
}
.sh-tk-faq-item {
  border: 1px solid var(--sh-border);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  background: #fff;
}
.sh-tk-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 18px;
  cursor: pointer;
  font-weight: 600;
  font-size: .88rem;
  color: #333;
  background: var(--sh-light);
}
.sh-tk-faq-q i.sh-tk-chevron { transition: transform .2s; color: #888; font-size: .8rem; }
.sh-tk-faq-item.open .sh-tk-faq-q i.sh-tk-chevron { transform: rotate(180deg); color: var(--sh-primary); }
.sh-tk-faq-a {
  display: none;
  padding: 15px 18px;
  font-size: .85rem;
  line-height: 1.9;
  color: #555;
  border-top: 1px solid var(--sh-border);
}
.sh-tk-faq-item.open .sh-tk-faq-a { display: block; }
.sh-tk-faq-empty { font-size: .85rem; color: #999; padding: 10px 4px; }

.sh-tk-toward-form-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sh-primary);
  color: #fff;
  border: none;
  padding: 12px 26px;
  border-radius: 10px;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
}
.sh-tk-toward-form-btn:hover { background: var(--sh-secondary); }

/* ─────────── فیلد پیوست فایل (سنجاق) در فرم ارسال تیکت ─────────── */
.sh-tk-attach-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--sh-light);
  border: 1.5px dashed var(--sh-border);
  border-radius: 14px;
  padding: 10px 14px;
  margin: 4px 0 16px;
  cursor: pointer;
}
.sh-tk-attach-pin {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #ddf3e2;
  color: #217a45;
  font-size: 1rem;
  cursor: pointer;
  transform: rotate(-30deg);
}
.sh-tk-attach-label {
  font-size: .85rem;
  color: #777;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ─────────── دکمه ارسال تیکت: سبز پاستیلی، قرصی و تمام‌عرض در موبایل ─────────── */
.sh-tk-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #dcf3df;
  color: #217a45;
  border: 1.5px solid #b7e4c0;
  padding: 12px 30px;
  border-radius: 999px;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}
.sh-tk-submit-btn:hover { background: #cbecd1; }
@media (max-width: 600px) {
  .sh-tk-submit-btn { width: 100%; padding: 14px 20px; }
}

/* ─────────── صفحه فرود جزئیات تیکت (به‌جای مودال) ─────────── */
.sh-tk-detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.sh-tk-detail-head {
  background: var(--sh-light);
  border: 1px solid var(--sh-border);
  border-radius: var(--sh-radius);
  padding: 18px 20px;
  margin-bottom: 20px;
}
.sh-tk-detail-code { font-size: .85rem; color: #777; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.sh-tk-detail-subject { font-size: 1.1rem; font-weight: 800; color: #222; }

.sh-tk-thread {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 22px;
}
.sh-tk-bubble {
  border-radius: 18px;
  padding: 18px 20px;
  border: 1.5px solid transparent;
}
.sh-tk-bubble-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.sh-tk-bubble-role { font-size: .88rem; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.sh-tk-bubble-date { font-size: .78rem; color: #888; font-weight: 600; display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.sh-tk-bubble-text { font-size: .92rem; line-height: 1.9; color: #333; white-space: pre-wrap; }
.sh-tk-bubble-attach {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: .82rem;
  font-weight: 700;
  color: #217a45;
  text-decoration: none;
}

/* پیام هنرجو: نارنجی/زرد پاستیلی */
.sh-tk-bubble-student { background: #fff2d9; border-color: #ffdfa0; }
.sh-tk-bubble-student .sh-tk-bubble-role { color: #a3690f; }

/* پاسخ مدیریت: سبز پاستیلی */
.sh-tk-bubble-admin { background: #ddf3e2; border-color: #b7e4c0; }
.sh-tk-bubble-admin .sh-tk-bubble-role { color: #217a45; }

/* پاسخ مربی: آبی پاستیلی */
.sh-tk-bubble-instructor { background: #e2edfe; border-color: #bcd6fb; }
.sh-tk-bubble-instructor .sh-tk-bubble-role { color: #2f5faa; }

.sh-tk-detail-actions { text-align: left; }
.sh-tk-detail-actions #sh-tk-detail-close-ticket {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffe1da;
  color: #c0392b;
  border: 1.5px solid #ffb3a3;
  padding: 11px 24px;
  border-radius: 999px;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
}
.sh-tk-detail-actions #sh-tk-detail-close-ticket:hover { background: #ffd0c5; }

/* ─────────── نمای کارتی تیکت‌ها، مخصوص موبایل ─────────── */
.sh-tk-mobile-list { display: flex; flex-direction: column; gap: 16px; }
.sh-tk-card {
  border: 1.5px solid var(--sh-border);
  border-radius: 18px;
  padding: 18px 20px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(20, 40, 30, .07);
  transition: box-shadow .2s, transform .15s;
}
.sh-tk-card:hover { box-shadow: 0 8px 18px rgba(20, 40, 30, .1); transform: translateY(-1px); }
.sh-tk-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: .92rem;
  font-weight: 700;
}
.sh-tk-card-row:first-child { margin-bottom: 12px; }
.sh-tk-card-code,
.sh-tk-card-date,
.sh-tk-card-subject {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sh-tk-card-code { color: #555; }
.sh-tk-card-date { color: #888; font-weight: 600; font-size: .84rem; white-space: nowrap; }
.sh-tk-card-subject { color: #2c332f; font-weight: 700; }
.sh-tk-card-view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 14px;
  border: 1.5px solid #b7e4c0;
  background: #dcf3df;
  color: #2f8f4e;
  padding: 10px 14px;
  border-radius: 22px;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  font-size: .86rem;
  font-weight: 700;
  cursor: pointer;
}
.sh-tk-card-view-btn:hover { background: #cbecd1; }

/* ─────────── صفحه‌بندی لیست تیکت‌ها (۵ تیکت آخر + دکمه قبلی/بعدی) ─────────── */
.sh-tk-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}
.sh-tk-pg-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid #b7e4c0;
  background: #dcf3df;
  color: #2f8f4e;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  font-size: .84rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}
.sh-tk-pg-btn:hover:not(:disabled) { background: #cbecd1; }
.sh-tk-pg-btn:disabled { opacity: .45; cursor: default; }
.sh-tk-pg-info { font-size: .82rem; color: #667; font-weight: 700; }

/* حاشیه‌ی رنگی هر کارت بر اساس وضعیت، پس‌زمینه‌ همیشه سفید */
.sh-tk-card-open      { background: #fff; border-color: #ffc9b2; }
.sh-tk-card-reviewing { background: #fff; border-color: #bdd7fa; }
.sh-tk-card-closed    { background: #fff; border-color: #d5dcd9; }

/* ─────────── ریسپانسیو موبایل ─────────── */
@media (max-width: 780px) {
  .sh-tk-stat-tabs > .sh-tk-box,
  .sh-tk-stat-tabs > .sh-tk-stat-tab { flex-basis: calc(50% - 6px); }
}
@media (max-width: 600px) {
  /* هر ۶ باکس (ارسال تیکت/ارسال ثابت/فیلتر/همه/باز/بررسی/بسته‌شده) در موبایل
     به یک اندازه‌ی کوچک و فشرده و افقی (شبیه اپلیکیشن) درمی‌آیند؛ نه کارت‌های
     بزرگ مربعی. آیکون + عنوان + عدد در یک ردیف کنار هم قرار می‌گیرند. */
  .sh-tk-stat-tabs { gap: 8px; }
  .sh-tk-stat-tabs > .sh-tk-box,
  .sh-tk-stat-tabs > .sh-tk-stat-tab {
    flex-basis: calc(50% - 4px);
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    min-height: 0;
    height: 50px;
    padding: 0 10px;
    gap: 8px;
    border-radius: 15px;
    font-size: .74rem;
  }
  .sh-tk-stat-tabs > .sh-tk-box .sh-tk-box-icon,
  .sh-tk-stat-tabs > .sh-tk-stat-tab .sh-tk-box-icon,
  .sh-tk-box-icon {
    width: 28px;
    height: 28px;
    font-size: .82rem;
    border-radius: 9px;
    flex: 0 0 auto;
  }
  .sh-tk-stat-tabs > .sh-tk-box .sh-tk-box-text,
  .sh-tk-stat-tabs > .sh-tk-stat-tab .sh-tk-box-text {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 5px;
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
  }
  .sh-tk-stat-tabs > .sh-tk-box .sh-tk-title-text,
  .sh-tk-stat-tabs > .sh-tk-stat-tab .sh-tk-title-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: .72rem;
  }
  .sh-tk-stat-tab .sh-tk-count {
    font-size: .74rem;
    padding: 1px 6px;
    margin-right: auto;
    flex: 0 0 auto;
  }
  table.sh-tk-table { font-size: .78rem; }
  table.sh-tk-table th, table.sh-tk-table td { padding: 9px 8px; }

  .sh-tk-bubble { padding: 15px 16px; }
  .sh-tk-detail-topbar { flex-direction: row-reverse; justify-content: space-between; }
}

/* ─────────── مودال مشاهده/گفتگوی تیکت (پنل مربی) ─────────── */
.sh-tk-modal-backdrop {
  position: fixed; inset: 0; background: rgba(20, 30, 25, .5);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; padding: 16px;
}
.sh-tk-modal-box {
  background: #fff;
  border-radius: var(--sh-radius, 16px);
  max-width: 620px; width: 100%;
  max-height: 88vh; overflow-y: auto;
  padding: 46px 24px 22px;
  position: relative;
  box-shadow: 0 14px 34px rgba(20, 40, 30, .22);
}
.sh-tk-modal-close {
  position: absolute; top: 4px; left: 12px;
  width: 36px; height: 36px; border-radius: 50%;
  border: none; background: var(--sh-light, #f3f6f4);
  color: #777; cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
  z-index: 5;
  box-shadow: 0 2px 6px rgba(20,40,30,.1);
}
.sh-tk-modal-close:hover { background: #ffe1da; color: #c0392b; }

/* ردیف اطلاعاتی روشن (تاریخ ثبت / ساعت / دپارتمان / کلاس) در سربرگ مودال تیکت */
.sh-tk-detail-meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 18px;
  margin-top: 10px; padding-top: 10px;
  border-top: 1px dashed var(--sh-border, #e0e9e4);
  font-size: .82rem; color: #556;
}
.sh-tk-detail-meta b { color: #223; font-weight: 700; }

/* سربرگ مودال تیکت داخل پنل مربی/هنرجو (فرانت‌اند): کارت با پس‌زمینه، محتوا
   (شناسه، عنوان، اطلاعات ردیف) در چهار گوشه‌ی کارت با رعایت فاصله‌ها تراز
   می‌شود. */
.sh-tk-modal-box .sh-tk-detail-head {
  background: var(--sh-light);
  border: 1px solid var(--sh-border);
  border-radius: var(--sh-radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sh-tk-modal-box .sh-tk-detail-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.sh-tk-modal-box .sh-tk-detail-code { margin-bottom: 0; }
.sh-tk-modal-box .sh-tk-detail-subject { flex: 1 1 auto; min-width: 0; }
.sh-tk-modal-box .sh-tk-detail-meta { justify-content: space-between; }

/* ─────────── پاپ‌آپ تاییدیه ملایم ارسال تیکت (داشبورد هنرجو/مربی) ─────────── */
.sh-soft-popup-overlay-front {
  position: fixed; top: 20px; left: 50%; transform: translate(-50%, -20px);
  z-index: 999999; opacity: 0; transition: opacity .3s ease, transform .3s ease;
  pointer-events: none; width: calc(100% - 32px); max-width: 380px;
}
.sh-soft-popup-overlay-front.open { opacity: 1; transform: translate(-50%, 0); }
.sh-soft-popup-front {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-radius: 14px;
  font-size: .9rem; font-weight: 600; text-align: right;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  border: 1px solid transparent;
}
.sh-soft-popup-front.is-success { background: #eaf7f1; color: #1f7a52; border-color: #cdeee0; }
.sh-soft-popup-front.is-error   { background: #fdeeee; color: #b23b3b; border-color: #f6d3d3; }
.sh-soft-popup-front i { font-size: 1.15rem; flex-shrink: 0; }

/* ─────────────────────────────────────────────────────────────────────────
   نسخه ۱.۶۲.۰: دکمه‌های تیره داخل داشبرد مربی و داشبرد هنرجو با رنگ پاستیلی
   جایگزین شدند و حاشیهٔ همهٔ دکمه‌ها گرد شد. این تغییر فقط به همین دو
   داشبرد (از طریق کلاس‌های ریشهٔ sh-instr-panel و sh-student-panel) محدود
   است و روی بک‌اند مدیریت (wp-admin) یا سایر بخش‌های افزونه اثری ندارد.
   ───────────────────────────────────────────────────────────────────── */
.sh-instr-panel .sh-btn-primary,
.sh-student-panel .sh-btn-primary,
.sh-instr-panel .sh-tk-toward-form-btn,
.sh-student-panel .sh-tk-toward-form-btn,
.sh-instr-panel .sh-tk-new-btn:hover,
.sh-student-panel .sh-tk-new-btn:hover,
.sh-instr-panel .sh-acct-save-btn,
.sh-student-panel .sh-acct-save-btn,
.sh-instr-panel #sh-settle-request-btn,
.sh-instr-panel .sh-tk-submit-btn,
.sh-student-panel .sh-tk-submit-btn {
  background: #cdeee0 !important;
  color: #1f6e4a !important;
  border: 1.5px solid #b3e3cd !important;
  text-shadow: none !important;
}
.sh-instr-panel .sh-btn-primary:hover,
.sh-student-panel .sh-btn-primary:hover,
.sh-instr-panel .sh-acct-save-btn:hover,
.sh-student-panel .sh-acct-save-btn:hover,
.sh-instr-panel #sh-settle-request-btn:hover,
.sh-instr-panel .sh-tk-submit-btn:hover,
.sh-student-panel .sh-tk-submit-btn:hover {
  background: #b3e3cd !important;
  color: #175236 !important;
}

.sh-instr-panel .sh-btn-danger,
.sh-student-panel .sh-btn-danger,
.sh-instr-panel .sh-btn-danger:hover,
.sh-student-panel .sh-btn-danger:hover {
  background: #ffd9d0 !important;
  color: #b23b25 !important;
  border: 1.5px solid #ffc0b0 !important;
}

.sh-instr-panel .sh-btn-cancel,
.sh-instr-panel .sh-btn-cancel:hover,
.sh-student-panel .sh-btn-cancel,
.sh-student-panel .sh-btn-cancel:hover {
  background: #ffe9cf !important;
  color: #a3690f !important;
  border: 1.5px solid #ffd7a3 !important;
}

.sh-instr-panel .sh-btn-secondary,
.sh-student-panel .sh-btn-secondary {
  background: #e9e2fb !important;
  color: #5a3fa0 !important;
  border: 1.5px solid #cdbdf5 !important;
}

/* گرد شدن حاشیهٔ همهٔ دکمه‌های دو داشبورد */
.sh-instr-panel .sh-btn,
.sh-student-panel .sh-btn,
.sh-instr-panel button.sh-tk-submit-btn,
.sh-student-panel button.sh-tk-submit-btn,
.sh-instr-panel .sh-tk-new-btn,
.sh-student-panel .sh-tk-new-btn,
.sh-instr-panel .sh-tk-view-btn,
.sh-student-panel .sh-tk-view-btn,
.sh-instr-panel .sh-tk-card-view-btn,
.sh-student-panel .sh-tk-card-view-btn,
.sh-instr-panel .sh-tk-daterange-apply,
.sh-instr-panel .sh-tk-daterange-clear,
.sh-student-panel .sh-tk-daterange-apply,
.sh-student-panel .sh-tk-daterange-clear,
.sh-instr-panel .sh-acct-save-btn,
.sh-student-panel .sh-acct-save-btn,
.sh-instr-panel .sh-acct-file-btn,
.sh-student-panel .sh-acct-file-btn,
.sh-instr-panel #sh-settle-request-btn,
.sh-instr-panel .sh-tk-modal-close,
.sh-student-panel .sh-tk-modal-close {
  border-radius: 14px !important;
}
