/* =============================================================================
   پارسی شو — پنل مدیر: کارت به کارت
   ============================================================================= */
.act {
  margin: 22px 0 10px;
  padding: 16px;
  border: 1px solid #e3eaf3;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 22px 44px -38px rgba(15, 34, 55, .55);
}
.act-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.act-head b { display: block; font-size: 14px; font-weight: 900; color: #16283b; }
.act-head i { display: block; font-style: normal; font-size: 11px; color: #7b8797; margin-top: 3px; }
.act-refresh {
  border: 1px solid #e3eaf3; background: #fff; color: #4b5b6e;
  font: inherit; font-size: 11px; font-weight: 700;
  padding: 6px 12px; border-radius: 9px; cursor: pointer;
}
.act-refresh:hover { border-color: #c9d8e8; color: #1d4ed8; }

.act-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.act-kpi {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e6edf6;
  background: #fff;
}
.act-kpi span { display: block; font-size: 10.5px; color: #7b8797; }
.act-kpi b { display: block; font-size: 18px; font-weight: 900; color: #16283b; margin-top: 2px; }
.act-kpi i { display: block; font-style: normal; font-size: 10px; color: #9aa6b5; margin-top: 2px; }
.act-kpi.is-ok { border-color: #c7ecdd; background: #f2fcf7; }
.act-kpi.is-ok b { color: #0d7a5f; }
.act-kpi.is-err { border-color: #f6cccc; background: #fff7f7; }
.act-kpi.is-err b { color: #b91c1c; }
.act-kpi.is-total { border-color: #dbe4ff; background: #f5f7ff; }
.act-kpi.is-total b { color: #3730a3; }

.act-settings { margin-bottom: 12px; border: 1px dashed #dbe5f1; border-radius: 12px; padding: 10px 12px; background: #fbfdff; }
.act-settings summary { cursor: pointer; font-size: 12px; font-weight: 800; color: #1d4ed8; }
.act-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.act-form label { display: flex; flex-direction: column; gap: 4px; font-size: 10.5px; color: #6b7c90; font-weight: 700; }
.act-form label input[type=text] { height: 36px; padding: 0 10px; border: 1px solid #e3eaf3; border-radius: 9px; font: inherit; font-size: 12px; color: #16283b; outline: none; }
.act-form label input[type=text]:focus { border-color: #93b4f0; box-shadow: 0 0 0 3px rgba(37, 99, 235, .10); }
.act-form label input[type=checkbox] { width: 18px; height: 18px; }
.act-wide { grid-column: 1 / -1; }
.act-actions { display: flex; align-items: center; gap: 10px; }
.act-save {
  border: 0; border-radius: 10px; padding: 9px 18px;
  background: linear-gradient(120deg, #2563eb, #1d4ed8); color: #fff;
  font: inherit; font-size: 12px; font-weight: 800; cursor: pointer;
  box-shadow: 0 10px 22px -14px rgba(37, 99, 235, .9);
}
.act-save:disabled { opacity: .6; cursor: default; }
.act-msg { font-size: 11px; color: #0d7a5f; }

.act-chips { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.act-chip {
  border: 1px solid #e3eaf3; background: #fff; color: #4b5b6e;
  font: inherit; font-size: 11px; font-weight: 700;
  padding: 5px 12px; border-radius: 999px; cursor: pointer;
}
.act-chip.is-on { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }

.act-scroll { overflow-x: auto; }
.act-tbl { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.act-tbl th {
  text-align: right; font-weight: 800; color: #fff;
  background: linear-gradient(120deg, #0ea5b7, #0891a1);
  padding: 9px 10px; white-space: nowrap;
}
.act-tbl th:first-child { border-start-start-radius: 10px; }
.act-tbl th:last-child { border-start-end-radius: 10px; }
.act-tbl td { padding: 9px 10px; border-bottom: 1px solid #eef2f7; color: #26313f; vertical-align: top; }
.act-tbl td small { display: block; font-size: 9.5px; color: #9aa6b5; margin-top: 2px; }
.act-tbl tr:hover td { background: #f8fbff; }
.act-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.act-warn { color: #b45309 !important; font-weight: 800; }
.act-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 10px; font-weight: 800; }
.act-badge.is-pending { background: #fff7e6; color: #b45309; border: 1px solid #fde3b0; }
.act-badge.is-verified { background: #e9fbf3; color: #0d7a5f; border: 1px solid #c7ecdd; }
.act-badge.is-rejected { background: #fff1f1; color: #b91c1c; border: 1px solid #f6cccc; }
.act-ops { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.act-ok, .act-no, .act-link {
  font: inherit; font-size: 10.5px; font-weight: 800;
  padding: 4px 10px; border-radius: 8px; cursor: pointer; text-decoration: none;
  border: 1px solid transparent;
}
.act-ok { background: #16a34a; color: #fff; border: 0; }
.act-no { background: #fff; color: #b91c1c; border-color: #f6cccc; }
.act-link { background: #eef2ff; color: #3730a3; border-color: #dbe4ff; }
.act-empty { padding: 18px; text-align: center; color: #6b7c90; font-size: 12px; border: 1px dashed #dbe5f1; border-radius: 12px; }

html.ph-night .act { background: #101f2f; border-color: #23394f; box-shadow: none; }
html.ph-night .act-head b { color: #e6eef8; }
html.ph-night .act-kpi { background: #13263b; border-color: #24384d; }
html.ph-night .act-kpi b { color: #e6eef8; }
html.ph-night .act-settings { background: #0f1e2e; border-color: #24384d; }
html.ph-night .act-form label input[type=text] { background: #13263b; border-color: #24384d; color: #e6eef8; }
html.ph-night .act-tbl td { color: #dbe7f3; border-color: #23394f; }
html.ph-night .act-tbl tr:hover td { background: #13263b; }
html.ph-night .act-chip { background: #13263b; border-color: #24384d; color: #b9cbdd; }
html.ph-night .act-chip.is-on { background: #2563eb; border-color: #2563eb; color: #fff; }
html.ph-night .act-refresh { background: #13263b; border-color: #24384d; color: #b9cbdd; }
html.ph-night .act-empty { background: #0f1e2e; border-color: #24384d; color: #9fb3c8; }

@media (max-width: 767.98px) {
  .act-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .act-form { grid-template-columns: 1fr; }
}
