:root {
  --prm-font: Estedad, Tahoma, Arial, sans-serif;
  --prm-bg: #f3f6fb;
  --prm-bg-soft: #f8fafc;
  --prm-surface: #ffffff;
  --prm-surface-2: #f8fafc;
  --prm-surface-3: #eef3f9;
  --prm-navy: #0b1f3a;
  --prm-navy-2: #102b4d;
  --prm-navy-3: #183b64;
  --prm-ink: #111827;
  --prm-text: #263241;
  --prm-muted: #6b7788;
  --prm-muted-2: #93a0af;
  --prm-line: #dde5ef;
  --prm-line-2: #cbd6e4;
  --prm-accent: #2f6fae;
  --prm-accent-2: #1f5f9f;
  --prm-danger: #c2414b;
  --prm-warn: #b7791f;
  --prm-info: #2563eb;
  --prm-ok: #0f766e;
  --prm-radius: 10px;
  --prm-radius-sm: 8px;
  --prm-shadow: 0 22px 60px rgba(15, 31, 58, .10);
  --prm-shadow-soft: 0 10px 30px rgba(15, 31, 58, .075);
  --prm-shadow-xs: 0 1px 2px rgba(15, 31, 58, .06);
}

.prm-app,
.prm-wrap,
.prm-modal,
.prm-auth-card {
  font-family: var(--prm-font) !important;
  color: var(--prm-text);
  direction: rtl;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.prm-app *,
.prm-wrap *,
.prm-modal *,
.prm-auth-card * {
  box-sizing: border-box;
  font-family: var(--prm-font) !important;
  letter-spacing: 0;
}

.prm-app a,
.prm-wrap a {
  color: inherit;
}

.prm-app :focus-visible,
.prm-wrap :focus-visible,
.prm-modal :focus-visible {
  outline: 3px solid rgba(47, 111, 174, .22);
  outline-offset: 3px;
}

.prm-frontend {
  width: 100vw;
  min-height: 100vh;
  margin-inline: calc(50% - 50vw);
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  grid-template-areas: "main sidebar";
  gap: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,0) 260px),
    var(--prm-bg);
  direction: ltr !important;
}

.prm-frontend > * {
  direction: rtl !important;
}

.prm-main {
  grid-area: main;
  min-width: 0;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 4px 0 28px;
}

.prm-sidebar {
  grid-area: sidebar;
  position: sticky;
  top: 22px;
  height: calc(100vh - 44px);
  min-height: 640px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--prm-radius);
  background: linear-gradient(180deg, var(--prm-navy) 0%, #07162a 100%);
  color: #fff;
  box-shadow: var(--prm-shadow);
  overflow: hidden;
}

.prm-sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,.10), transparent 34%),
    linear-gradient(0deg, rgba(47,111,174,.16), transparent 42%);
}

.prm-sidebar > * {
  position: relative;
  z-index: 1;
}

.prm-brand {
  padding: 2px 2px 18px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  color: #c5d0de;
  font-size: 12px;
  font-weight: 750;
}

.prm-logo {
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  display: grid;
  place-items: center;
  border-radius: var(--prm-radius-sm);
  background: #fff;
  color: var(--prm-navy);
  font-size: 19px;
  font-weight: 950;
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}

.prm-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prm-nav-item {
  min-height: 66px;
  padding: 12px 13px;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: var(--prm-radius-sm);
  color: #d8e1ec !important;
  text-decoration: none !important;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.prm-nav-item:hover {
  background: rgba(255,255,255,.075);
  border-color: rgba(255,255,255,.12);
  transform: translateY(-1px);
}

.prm-nav-item.is-active {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.18);
}

.prm-nav-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.prm-nav-copy strong {
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.prm-nav-copy small {
  color: #aebbc9;
  font-size: 11px;
  font-weight: 650;
}

.prm-nav-icon,
.prm-metric-icon,
.prm-icon-placeholder,
.prm-panel-title-icon,
.prm-notice-icon,
.prm-icon-btn::before {
  width: 20px;
  height: 20px;
  min-width: 20px;
  display: inline-block;
  border: 0;
  border-radius: 0;
  opacity: .9;
  background: currentColor;
  -webkit-mask: var(--prm-icon) center / contain no-repeat;
  mask: var(--prm-icon) center / contain no-repeat;
  content: "";
}

.prm-nav-icon,
.prm-metric-icon,
.prm-icon-placeholder,
.prm-panel-title-icon,
.prm-icon-btn::before,
.prm-notice-icon,
.prm-card-head-icon,
.prm-birthday-mark,
.prm-avatar {
  --icon-dashboard: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1.5'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1.5'/%3E%3C/svg%3E");
  --icon-user: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
  --icon-users: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
  --icon-bell: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.27 21a2 2 0 0 0 3.46 0'/%3E%3Cpath d='M18 8a6 6 0 0 0-12 0c0 7-3 8-3 8h18s-3-1-3-8'/%3E%3C/svg%3E");
  --icon-settings: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.38a2 2 0 0 0-.73-2.73l-.15-.09a2 2 0 0 1-1-1.74v-.51a2 2 0 0 1 1-1.72l.15-.1a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  --icon-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  --icon-log: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a4 4 0 0 1-4 4H8l-5 3V7a4 4 0 0 1 4-4h7'/%3E%3Cpath d='M19 3v6M16 6h6'/%3E%3C/svg%3E");
  --icon-pulse: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h4l3-8 4 16 3-8h4'/%3E%3C/svg%3E");
  --icon-calendar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4M16 2v4M3 10h18'/%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3C/svg%3E");
  --icon-clipboard: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='2' width='8' height='4' rx='1'/%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v16H4V6a2 2 0 0 1 2-2h2'/%3E%3Cpath d='M8 13h8M8 17h5'/%3E%3C/svg%3E");
  --icon-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E");
  --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  --icon-muted: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3l18 18M10 5a7 7 0 0 1 9 9M7.11 7.11A7 7 0 0 0 14 19'/%3E%3C/svg%3E");
  --icon-gift: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='4' rx='1'/%3E%3Cpath d='M12 8v13M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7M7.5 8A2.5 2.5 0 1 1 12 5.5V8M16.5 8A2.5 2.5 0 1 0 12 5.5V8'/%3E%3C/svg%3E");
}

.prm-ico-grid { --prm-icon: var(--icon-dashboard); }
.prm-ico-user { --prm-icon: var(--icon-users); }
.prm-ico-bell { --prm-icon: var(--icon-bell); }
.prm-ico-gear { --prm-icon: var(--icon-settings); }
.prm-icon-grid { --prm-icon: var(--icon-dashboard); }
.prm-icon-user { --prm-icon: var(--icon-users); }
.prm-icon-gear { --prm-icon: var(--icon-settings); }
.prm-icon-pulse { --prm-icon: var(--icon-pulse); }
.prm-icon-calendar { --prm-icon: var(--icon-calendar); }
.prm-icon-clipboard { --prm-icon: var(--icon-clipboard); }
.prm-icon-clock { --prm-icon: var(--icon-clock); }
.prm-icon-check { --prm-icon: var(--icon-check); }
.prm-icon-muted { --prm-icon: var(--icon-muted); }
.prm-icon-gift { --prm-icon: var(--icon-gift); }
.prm-icon-placeholder { --prm-icon: var(--icon-plus); }
.prm-open-log .prm-icon-placeholder { --prm-icon: var(--icon-log); }
.prm-icon-btn::before { --prm-icon: var(--icon-check); }

.prm-notice {
  width: 100%;
  min-height: 68px;
  margin: 0 0 18px !important;
  padding: 14px 16px 14px 18px !important;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--prm-line) !important;
  border-right-width: 4px !important;
  border-radius: var(--prm-radius-sm);
  background: #fff !important;
  color: var(--prm-text);
  box-shadow: var(--prm-shadow-soft);
}

.prm-notice-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  margin-top: 4px;
  color: var(--prm-accent);
}

.prm-notice > div {
  min-width: 0;
}

.prm-notice strong {
  display: block;
  margin: 0 0 3px;
  color: var(--prm-navy);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.6;
}

.prm-notice p {
  margin: 0 !important;
  color: var(--prm-muted);
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.85;
}

.prm-notice-success {
  border-right-color: var(--prm-ok) !important;
  background: linear-gradient(90deg, rgba(15,118,110,.08), #fff 38%) !important;
}

.prm-notice-success .prm-notice-icon {
  --prm-icon: var(--icon-check);
  color: var(--prm-ok);
}

.prm-notice-warning {
  border-right-color: var(--prm-warn) !important;
  background: linear-gradient(90deg, rgba(183,121,31,.10), #fff 38%) !important;
}

.prm-notice-warning .prm-notice-icon {
  --prm-icon: var(--icon-bell);
  color: var(--prm-warn);
}

.prm-notice-error {
  border-right-color: var(--prm-danger) !important;
  background: linear-gradient(90deg, rgba(194,65,75,.09), #fff 38%) !important;
}

.prm-notice-error .prm-notice-icon {
  --prm-icon: var(--icon-muted);
  color: var(--prm-danger);
}

.prm-notice-info {
  border-right-color: var(--prm-accent) !important;
  background: linear-gradient(90deg, rgba(47,111,174,.09), #fff 38%) !important;
}

.prm-notice-info .prm-notice-icon {
  --prm-icon: var(--icon-pulse);
  color: var(--prm-accent);
}

.prm-notice .notice-dismiss {
  top: 10px;
  left: 10px;
  right: auto;
}

.prm-icon-btn {
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 0 !important;
  display: inline-grid !important;
  place-items: center;
  align-content: center;
  justify-content: center;
  border: 1px solid var(--prm-line);
  border-radius: var(--prm-radius-sm);
  background: #fff;
  color: var(--prm-navy-3);
  font-size: 0 !important;
  line-height: 0 !important;
  vertical-align: middle;
  cursor: pointer;
}

.prm-icon-btn::before {
  width: 19px;
  height: 19px;
  min-width: 19px;
  display: block;
  margin: 0;
}

.prm-open-log.prm-icon-btn::before {
  --prm-icon: var(--icon-log);
}

.prm-sidebar-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prm-user-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--prm-radius-sm);
  background: rgba(255,255,255,.07);
}

.prm-avatar {
  width: 42px;
  height: 42px;
  min-width: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--prm-radius-sm);
  background: #eef4fb;
  color: var(--prm-navy);
  font-weight: 950;
}

.prm-avatar img,
.prm-profile-avatar img,
.prm-photo-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.prm-avatar-sm {
  width: 36px;
  height: 36px;
  min-width: 36px;
  font-size: 12px;
}

.prm-user-card strong {
  display: block;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.prm-user-card small {
  display: block;
  color: #aebbc9;
  font-size: 11px;
}

.prm-page-head {
  min-height: 76px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 22px;
}

.prm-page-head h1,
.prm-wrap h1 {
  margin: 0;
  color: var(--prm-navy);
  font-size: 34px;
  line-height: 1.28;
  font-weight: 950;
}

.prm-page-head p {
  max-width: 680px;
  margin: 7px 0 0;
  color: var(--prm-muted);
  font-size: 13px;
  font-weight: 700;
}

.prm-actions,
.prm-toolbar,
.prm-filter-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.prm-panel.prm-toolbar {
  margin-bottom: 22px;
  padding: 22px 24px;
  align-items: center;
  gap: 12px;
}

.prm-toolbar {
  flex-wrap: nowrap;
}

.prm-toolbar .prm-tabs {
  flex: 0 0 auto;
  margin: 0;
}

.prm-toolbar .prm-tab {
  min-height: 44px;
}

.prm-toolbar > .prm-search {
  flex: 1 1 auto;
  min-width: 320px;
}

.prm-toolbar > .prm-btn {
  flex: 0 0 auto;
}

.prm-filter-form {
  width: 100%;
  flex-wrap: nowrap;
  align-items: center;
}

.prm-filter-form .prm-search {
  flex: 1 1 420px;
  min-width: 280px;
}

.prm-filter-form select {
  flex: 0 0 190px;
}

.prm-filter-form .prm-btn,
.prm-filter-form .prm-clear {
  flex: 0 0 auto;
}

.prm-filter-form .prm-clear {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.prm-btn,
.prm-app .button,
.prm-wrap .button,
.prm-modal .button {
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--prm-line);
  border-radius: var(--prm-radius-sm);
  background: #fff;
  color: var(--prm-navy) !important;
  font-size: 12.5px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: var(--prm-shadow-xs);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

.prm-btn:hover,
.prm-app .button:hover,
.prm-wrap .button:hover,
.prm-modal .button:hover {
  transform: translateY(-1px);
  border-color: var(--prm-line-2);
  box-shadow: var(--prm-shadow-soft);
}

.prm-btn-primary,
.prm-app .button-primary,
.prm-wrap .button-primary,
.prm-modal .button-primary {
  background: linear-gradient(180deg, var(--prm-navy-2), var(--prm-navy)) !important;
  border-color: var(--prm-navy) !important;
  color: #fff !important;
}

.prm-btn-outline {
  background: #fff !important;
  color: var(--prm-navy) !important;
}

.prm-btn-outline.is-active {
  border-color: var(--prm-navy) !important;
  background: #eef4fb !important;
  box-shadow: inset 0 0 0 1px rgba(11, 31, 58, .08);
}

.prm-btn-ghost,
.prm-btn-soft {
  background: rgba(255,255,255,.09) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,.16) !important;
  box-shadow: none !important;
}

.prm-btn-danger,
.button-link-delete {
  color: var(--prm-danger) !important;
}

.prm-btn-sm {
  min-height: 38px;
  padding-inline: 12px;
  font-size: 12px;
}

.prm-search,
.prm-app input[type="text"], .prm-app input[type="search"], .prm-app input[type="date"], .prm-app input[type="time"], .prm-app input[type="email"], .prm-app input[type="number"], .prm-app select, .prm-app textarea,
.prm-wrap input[type="text"], .prm-wrap input[type="search"], .prm-wrap input[type="date"], .prm-wrap input[type="time"], .prm-wrap input[type="email"], .prm-wrap input[type="number"], .prm-wrap select, .prm-wrap textarea,
.prm-modal input[type="text"], .prm-modal input[type="search"], .prm-modal input[type="date"], .prm-modal input[type="time"], .prm-modal input[type="email"], .prm-modal input[type="number"], .prm-modal select, .prm-modal textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 13px !important;
  border: 1px solid var(--prm-line) !important;
  border-radius: var(--prm-radius-sm) !important;
  background: #fff !important;
  color: var(--prm-ink) !important;
  box-shadow: inset 0 1px 0 rgba(15,31,58,.02) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.prm-search::placeholder,
.prm-app input::placeholder,
.prm-wrap input::placeholder,
.prm-modal input::placeholder,
.prm-app textarea::placeholder,
.prm-wrap textarea::placeholder,
.prm-modal textarea::placeholder {
  color: var(--prm-muted-2);
  font-weight: 650;
}

.prm-app textarea,
.prm-wrap textarea,
.prm-modal textarea {
  min-height: 116px;
  padding: 12px 13px !important;
  resize: vertical;
}

.prm-app input:focus,
.prm-wrap input:focus,
.prm-modal input:focus,
.prm-app select:focus,
.prm-wrap select:focus,
.prm-modal select:focus,
.prm-app textarea:focus,
.prm-wrap textarea:focus,
.prm-modal textarea:focus {
  border-color: var(--prm-accent) !important;
  box-shadow: 0 0 0 4px rgba(47,111,174,.14) !important;
  background: #fff !important;
  outline: none !important;
}

.prm-jalali-date {
  direction: ltr;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.prm-jalali-datepicker {
  position: fixed;
  z-index: 1000001;
  width: 292px;
  padding: 12px;
  display: none;
  border: 1px solid var(--prm-line);
  border-radius: var(--prm-radius);
  background: #fff;
  box-shadow: 0 24px 70px rgba(11, 31, 58, .20);
  direction: rtl;
}

.prm-jalali-datepicker.is-open {
  display: block;
}

.prm-jdp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.prm-jdp-selects {
  min-width: 0;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(84px, .8fr);
  gap: 7px;
}

.prm-jdp-selects select {
  width: 100%;
  min-height: 34px;
  padding: 0 9px !important;
  border: 1px solid var(--prm-line) !important;
  border-radius: var(--prm-radius-sm) !important;
  background: #fff !important;
  color: var(--prm-navy) !important;
  font-size: 12px;
  font-weight: 900;
  box-shadow: none !important;
}

.prm-jdp-nav,
.prm-jdp-selects select,
.prm-jdp-foot button,
.prm-jdp-days button {
  font-family: var(--prm-font) !important;
}

.prm-jdp-nav {
  width: 34px;
  height: 34px;
  border: 1px solid var(--prm-line);
  border-radius: var(--prm-radius-sm);
  background: #f8fafc;
  color: var(--prm-navy);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.prm-jdp-week,
.prm-jdp-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.prm-jdp-week {
  margin-bottom: 7px;
}

.prm-jdp-week span {
  min-height: 24px;
  display: grid;
  place-items: center;
  color: var(--prm-muted);
  font-size: 11px;
  font-weight: 900;
}

.prm-jdp-days span,
.prm-jdp-days button {
  min-height: 34px;
}

.prm-jdp-days button {
  border: 1px solid transparent;
  border-radius: var(--prm-radius-sm);
  background: #fff;
  color: var(--prm-text);
  font-size: 12.5px;
  font-weight: 850;
  cursor: pointer;
  transition: background .14s ease, border-color .14s ease, color .14s ease, transform .14s ease;
}

.prm-jdp-days button:hover {
  transform: translateY(-1px);
  border-color: var(--prm-line-2);
  background: #f2f7fd;
  color: var(--prm-navy);
}

.prm-jdp-days button.is-today {
  border-color: rgba(47,111,174,.42);
  color: var(--prm-accent);
}

.prm-jdp-days button.is-selected {
  background: var(--prm-navy);
  border-color: var(--prm-navy);
  color: #fff;
}

.prm-jdp-foot {
  margin-top: 10px;
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--prm-line);
}

.prm-jdp-foot button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--prm-line);
  border-radius: var(--prm-radius-sm);
  background: #fff;
  color: var(--prm-navy);
  font-size: 11.5px;
  font-weight: 900;
  cursor: pointer;
}

.prm-jdp-foot .prm-jdp-today {
  background: var(--prm-navy);
  border-color: var(--prm-navy);
  color: #fff;
}

.prm-panel,
.prm-box,
.prm-card,
.prm-profile-head,
.prm-metric,
.prm-table-panel {
  background: var(--prm-surface);
  border: 1px solid var(--prm-line);
  border-radius: var(--prm-radius);
  box-shadow: var(--prm-shadow-soft);
}

.prm-panel,
.prm-box,
.prm-card {
  padding: 20px;
}

.prm-metrics {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.prm-metrics-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.prm-cards {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.prm-metric {
  min-height: 112px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  overflow: hidden;
}

.prm-metric small,
.prm-card > div:last-child {
  display: block;
  color: var(--prm-navy-3);
  font-size: 13px;
  font-weight: 950;
}

.prm-metric strong,
.prm-card-num {
  display: block;
  margin-top: 6px;
  color: var(--prm-navy);
  font-size: 30px;
  line-height: 1.1;
  font-weight: 950;
}

.prm-metric em {
  display: block;
  margin-top: 3px;
  color: var(--prm-muted-2);
  font-size: 11px;
  font-style: normal;
}

.prm-metric-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  color: var(--prm-navy-3);
  background: currentColor;
  opacity: .95;
}

.prm-search {
  flex: 1 1 280px;
}

.prm-filter-form select {
  flex: 0 0 190px;
}

.prm-clear {
  color: var(--prm-muted) !important;
  font-size: 12px;
  font-weight: 850;
  padding-inline: 4px;
}

.prm-table-panel {
  padding: 0;
  overflow: hidden;
}

.prm-table-wrap {
  width: 100%;
  overflow: auto;
}

.prm-data-table,
.prm-table,
.prm-admin-compat table.widefat {
  width: 100%;
  min-width: 940px;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: #fff;
}

.prm-settings-card .prm-table-wrap {
  overflow: visible;
}

.prm-settings-table {
  min-width: 0;
  table-layout: fixed;
}

.prm-settings-table th:nth-child(1),
.prm-settings-table td:nth-child(1) {
  width: 52%;
}

.prm-settings-table th:nth-child(2),
.prm-settings-table td:nth-child(2) {
  width: 14%;
}

.prm-settings-table th:nth-child(3),
.prm-settings-table td:nth-child(3) {
  width: 12%;
}

.prm-settings-table th:nth-child(4),
.prm-settings-table td:nth-child(4) {
  width: 22%;
}

.prm-data-table th,
.prm-table th,
.prm-admin-compat table.widefat th {
  padding: 14px 16px;
  background: #f6f9fd;
  border-bottom: 1px solid var(--prm-line) !important;
  color: #5d6b7c;
  font-size: 11px;
  font-weight: 950;
  text-align: right;
  white-space: nowrap;
}

.prm-data-table td,
.prm-table td,
.prm-admin-compat table.widefat td {
  padding: 15px 16px;
  border-bottom: 1px solid #edf2f7 !important;
  color: #334155;
  font-size: 13px;
  font-weight: 650;
  vertical-align: middle;
  text-align: right;
}

.prm-data-table tbody tr,
.prm-admin-compat table.widefat tbody tr {
  transition: background .15s ease;
}

.prm-data-table tbody tr:hover,
.prm-admin-compat table.widefat tbody tr:hover {
  background: #f8fbff;
}

.prm-data-table .prm-table-actions {
  text-align: center;
  white-space: nowrap;
}

.prm-followup-desc-cell {
  min-width: 260px;
}

.prm-followup-desc-cell strong {
  display: block;
  margin-bottom: 6px;
  color: var(--prm-navy);
  font-size: 13.5px;
  font-weight: 950;
  line-height: 1.7;
}

.prm-followup-desc-cell span {
  display: block;
  color: var(--prm-muted);
  font-size: 12.5px;
  line-height: 1.9;
  font-weight: 750;
}

.prm-status-cell {
  min-width: 214px;
}

.prm-status-form {
  width: min(214px, 100%);
  margin: 0;
  padding: 6px;
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 7px;
  align-items: center;
  border: 1px solid var(--prm-line);
  border-radius: var(--prm-radius-sm);
  background: #f8fafc;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}

.prm-status-form select {
  min-height: 36px !important;
  height: 36px !important;
  padding: 0 10px !important;
  border-color: transparent !important;
  border-radius: 9px !important;
  background-color: #fff !important;
  color: var(--prm-navy) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  box-shadow: 0 1px 0 rgba(11, 31, 58, .04);
}

.prm-status-form select:focus {
  border-color: var(--prm-accent) !important;
  box-shadow: 0 0 0 3px rgba(47, 111, 174, .14) !important;
}

.prm-status-submit {
  width: 36px;
  min-width: 36px;
  height: 36px;
  border-color: var(--prm-navy) !important;
  background: var(--prm-navy) !important;
  color: #fff !important;
  box-shadow: 0 8px 16px rgba(11, 31, 58, .12);
}

.prm-status-submit:hover {
  background: var(--prm-navy-2) !important;
}

.prm-related-log-card {
  width: min(680px, 100%);
}

.prm-related-log-body {
  padding: 22px 28px 28px;
}

.prm-related-log-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.prm-related-log-meta span {
  min-height: 30px;
  padding: 5px 10px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--prm-line);
  border-radius: 999px;
  background: #f8fafc;
  color: var(--prm-muted);
  font-size: 12px;
  font-weight: 900;
}

.prm-related-followup-title {
  margin-bottom: 12px;
  padding: 13px 14px;
  border: 1px solid #d9e4f2;
  border-radius: var(--prm-radius-sm);
  background: #f8fbff;
  color: var(--prm-navy);
  font-size: 14px;
  font-weight: 950;
  line-height: 1.8;
}

.prm-related-log-body p {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--prm-line);
  border-radius: var(--prm-radius-sm);
  background: #fff;
  color: var(--prm-text);
  font-size: 14px;
  font-weight: 750;
  line-height: 2;
}

.prm-empty {
  padding: 38px !important;
  text-align: center !important;
  color: var(--prm-muted) !important;
}

.prm-table-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: #f8fafc;
  border-top: 1px solid var(--prm-line);
  color: var(--prm-muted);
  font-size: 12px;
  font-weight: 800;
}

.prm-person-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--prm-navy) !important;
  white-space: nowrap;
  text-decoration: none !important;
}

.prm-person-cell strong {
  display: block;
  color: var(--prm-navy);
  font-size: 13px;
  font-weight: 950;
}

.prm-person-cell small {
  display: block;
  color: var(--prm-muted);
  font-size: 11px;
}

.prm-badge,
.prm-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 27px;
  padding: 3px 10px;
  border: 1px solid #dce5f0;
  border-radius: 999px;
  background: #f3f6fb;
  color: #475569;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.prm-chip {
  margin: 2px;
}

.prm-badge-ok {
  background: #ecfdf5;
  color: var(--prm-ok);
  border-color: #bce7d7;
}

.prm-badge-warn {
  background: #fffbeb;
  color: var(--prm-warn);
  border-color: #f8df9d;
}

.prm-badge-danger {
  background: #fff1f2;
  color: var(--prm-danger);
  border-color: #f7c4ca;
}

.prm-badge-info {
  background: #eff6ff;
  color: var(--prm-info);
  border-color: #c7dcff;
}

.prm-muted {
  color: var(--prm-muted) !important;
}

.prm-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.prm-list li {
  padding: 13px 0;
  border-bottom: 1px solid #edf2f7;
  color: #475569;
}

.prm-list li:last-child {
  border-bottom: 0;
}

.prm-list strong {
  color: var(--prm-navy);
  font-weight: 950;
}

.prm-dashboard-list {
  display: grid;
  gap: 0;
  margin-top: 2px;
}

.prm-dashboard-list li {
  border-bottom: 0;
}

.prm-dashboard-item {
  padding: 12px 4px;
  border: 0;
  border-bottom: 1px solid #edf2f7;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.prm-dashboard-item:last-child {
  border-bottom: 0;
}

.prm-followup-item {
  display: grid;
  gap: 6px;
}

.prm-followup-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.prm-followup-item-head strong {
  min-width: 0;
  font-size: 13px;
  line-height: 1.65;
}

.prm-followup-item .prm-badge {
  min-height: 24px;
  padding: 2px 8px;
  font-size: 10.5px;
}

.prm-followup-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--prm-muted);
  font-size: 11px;
  font-weight: 850;
}

.prm-person-pill,
.prm-followup-item-meta span:not(.prm-person-pill) {
  min-height: 23px;
  padding: 3px 8px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--prm-line);
  border-radius: 999px;
  background: transparent;
}

.prm-person-pill {
  color: var(--prm-navy);
  background: #eef4fb;
  border-color: #d8e5f4;
}

.prm-followup-item p,
.prm-log-item p {
  margin: 0;
  color: var(--prm-muted);
  font-size: 12px;
  line-height: 1.8;
  font-weight: 750;
}

.prm-log-item {
  display: grid;
  gap: 6px;
}

.prm-log-item-head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.prm-log-item-head span,
.prm-log-item-head em {
  min-height: 23px;
  padding: 3px 8px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  font-style: normal;
}

.prm-log-item-head span {
  background: #eef4fb;
  color: var(--prm-navy);
}

.prm-log-item-head em {
  background: #f8fafc;
  color: var(--prm-muted);
  border: 1px solid var(--prm-line);
}

.prm-log-item strong {
  font-size: 12.8px;
  line-height: 1.6;
}

.prm-birthday-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
}

.prm-birthday-mark {
  width: 34px;
  height: 34px;
  min-width: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #d8e5f4;
  border-radius: 11px;
  background: #eef4fb;
  color: var(--prm-navy);
}

.prm-birthday-mark::before {
  content: "";
  width: 18px;
  height: 18px;
  display: block;
  background: currentColor;
  -webkit-mask: var(--prm-icon) center / contain no-repeat;
  mask: var(--prm-icon) center / contain no-repeat;
}

.prm-birthday-item div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.prm-birthday-item strong {
  font-size: 13px;
}

.prm-birthday-item span {
  color: var(--prm-accent);
  font-size: 11.5px;
  font-weight: 950;
}

.prm-panel-title {
  margin: 0 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--prm-navy);
  font-size: 18px;
  font-weight: 950;
}

.prm-panel-title-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  display: inline-block;
  color: var(--prm-navy-3);
  background: currentColor;
  -webkit-mask: var(--prm-icon) center / contain no-repeat;
  mask: var(--prm-icon) center / contain no-repeat;
}

.prm-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 0 16px;
}

.prm-tab {
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--prm-line);
  border-radius: var(--prm-radius-sm);
  background: #fff;
  color: var(--prm-muted) !important;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none !important;
}

.prm-tab.is-active {
  background: var(--prm-navy);
  color: #fff !important;
  border-color: var(--prm-navy);
}

.prm-form {
  padding: 22px;
}

.prm-form label,
.prm-modal label,
.prm-box label,
.prm-wrap label {
  display: block;
  margin: 0 0 14px;
  color: #243247;
  font-size: 12px;
  font-weight: 900;
}

.prm-grid {
  display: grid;
  gap: 16px;
}

.prm-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.prm-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.prm-person-editor > h1 {
  margin-bottom: 22px !important;
}

.prm-person-form {
  display: grid;
  gap: 18px;
}

.prm-form-section {
  padding: 20px;
  margin-bottom: 0;
  border: 1px solid var(--prm-line);
  border-radius: var(--prm-radius);
  background: #f8fafc;
}

.prm-section-title h3 {
  margin: 0 0 3px;
  color: var(--prm-navy);
  font-size: 15px;
  font-weight: 950;
}

.prm-section-title p {
  margin: 0 0 13px;
  color: var(--prm-muted);
  font-size: 12px;
}

.prm-contact-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.prm-contact-panel {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--prm-line);
  border-radius: var(--prm-radius-sm);
  background: #fff;
}

.prm-contact-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.prm-contact-panel-head strong {
  display: block;
  color: var(--prm-navy);
  font-size: 13.5px;
  font-weight: 950;
}

.prm-contact-panel-head small {
  display: block;
  margin-top: 3px;
  color: var(--prm-muted);
  font-size: 11px;
  line-height: 1.8;
}

.prm-contact-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px 38px;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  padding: 10px 10px 10px 8px;
  border: 1px solid var(--prm-line);
  border-radius: var(--prm-radius-sm);
  background: #f8fafc;
}

.prm-contact-row:last-child {
  margin-bottom: 0;
}

.prm-contact-row input[type="text"] {
  min-height: 40px;
  background: #fff !important;
}

.prm-primary-contact {
  min-height: 40px;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--prm-line);
  border-radius: var(--prm-radius-sm);
  background: #fff;
  color: var(--prm-navy) !important;
  font-size: 11.5px !important;
  font-weight: 900 !important;
}

.prm-primary-contact input {
  margin: 0;
}

.prm-remove-contact {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #f2c4ca;
  border-radius: var(--prm-radius-sm);
  background: #fff;
  color: var(--prm-danger) !important;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--prm-shadow-xs);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.prm-remove-contact:hover {
  transform: translateY(-1px);
  background: #fff1f2;
  box-shadow: var(--prm-shadow-soft);
}

.prm-form-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 2px;
}

.prm-danger-zone {
  margin-top: 18px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-color: #f2c4ca;
  background: linear-gradient(180deg, #fff 0%, #fff7f8 100%);
}

.prm-danger-zone h2 {
  margin: 0 0 7px;
  color: var(--prm-danger);
  font-size: 18px;
  font-weight: 950;
}

.prm-danger-zone p {
  margin: 0;
  max-width: 760px;
  color: var(--prm-muted);
  font-size: 12.5px;
  line-height: 1.9;
  font-weight: 800;
}

.prm-danger-zone form {
  margin: 0;
  flex: 0 0 auto;
}

.prm-delete-person-btn {
  min-height: 44px;
  padding-inline: 16px !important;
  border-color: #f2c4ca !important;
  background: #fff !important;
  box-shadow: var(--prm-shadow-xs);
}

.prm-delete-person-btn:hover {
  background: #fff1f2 !important;
}

.prm-person-form .prm-check {
  grid-column: 1 / -1;
  margin: 2px 0 0;
}

.prm-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.prm-tags label {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid var(--prm-line);
  border-radius: 999px;
  background: #fff;
}

.prm-check {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.prm-check-card {
  align-items: flex-start !important;
  padding: 14px;
  border: 1px dashed var(--prm-line-2);
  border-radius: var(--prm-radius-sm);
  background: #fff;
}

.prm-admin-compat .wrap {
  margin: 0 !important;
  padding: 0 !important;
}

.prm-profile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  margin-bottom: 18px;
}

.prm-profile-head h2 {
  margin: 0 0 4px;
  color: var(--prm-navy);
  font-size: 22px;
  font-weight: 950;
}

.prm-profile-head p {
  margin: 0;
  color: var(--prm-muted);
  font-size: 12px;
}

.prm-person-profile-page {
  display: grid;
  gap: 18px;
}

.prm-profile-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 26px;
  border: 1px solid var(--prm-line);
  border-radius: var(--prm-radius);
  background: linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: var(--prm-shadow);
}

.prm-profile-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 18px;
}

.prm-profile-avatar {
  width: 112px;
  height: 112px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #d8e5f3;
  border-radius: 30px;
  background: var(--prm-navy);
  color: #fff;
  font-size: 34px;
  font-weight: 950;
  box-shadow: 0 18px 38px rgba(11, 31, 58, .18);
}

.prm-profile-kicker {
  margin-bottom: 7px;
  color: var(--prm-accent);
  font-size: 12px;
  font-weight: 950;
}

.prm-profile-hero h1 {
  margin: 0;
  color: var(--prm-navy);
  font-size: 34px;
  font-weight: 950;
}

.prm-profile-hero p {
  margin: 8px 0 0;
  color: var(--prm-muted);
  font-size: 14px;
  font-weight: 800;
}

.prm-profile-badges {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prm-profile-actions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.prm-profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.prm-profile-stat {
  min-height: 112px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--prm-line);
  border-radius: var(--prm-radius-sm);
  background: #fff;
  box-shadow: 0 10px 28px rgba(11, 31, 58, .05);
}

.prm-profile-stat small {
  display: block;
  margin-bottom: 7px;
  color: var(--prm-muted);
  font-size: 12px;
  font-weight: 900;
}

.prm-profile-stat strong {
  display: block;
  color: var(--prm-navy);
  font-size: 18px;
  font-weight: 950;
}

.prm-profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.prm-profile-main,
.prm-profile-side {
  display: grid;
  gap: 18px;
}

.prm-profile-card {
  padding: 22px;
}

.prm-profile-section-title {
  margin: 0 0 16px;
  color: var(--prm-navy);
  font-size: 19px;
  font-weight: 950;
}

.prm-profile-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.prm-profile-info {
  min-height: 76px;
  padding: 14px;
  display: grid;
  align-content: center;
  gap: 7px;
  border: 1px solid var(--prm-line);
  border-radius: var(--prm-radius-sm);
  background: #f8fafc;
}

.prm-profile-info span {
  color: var(--prm-muted);
  font-size: 12px;
  font-weight: 900;
}

.prm-profile-info strong {
  color: var(--prm-navy);
  font-size: 14px;
  font-weight: 950;
}

.prm-profile-contact-group + .prm-profile-contact-group {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--prm-line);
}

.prm-profile-contact-group h3 {
  margin: 0 0 10px;
  color: var(--prm-muted);
  font-size: 12px;
  font-weight: 950;
}

.prm-profile-contact-group ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  list-style: none;
}

.prm-profile-contact-group li {
  padding: 11px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--prm-line);
  border-radius: var(--prm-radius-sm);
  background: #f8fafc;
}

.prm-profile-contact-group li strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--prm-navy);
  font-size: 13px;
  font-weight: 950;
}

.prm-profile-contact-group li span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #eaf3ff;
  color: var(--prm-accent);
  font-size: 11px;
  font-weight: 950;
}

.prm-profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prm-profile-note {
  margin: 0;
  color: var(--prm-text);
  font-size: 14px;
  line-height: 2;
}

.prm-photo-uploader {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.prm-photo-preview {
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--prm-line);
  border-radius: 34px;
  background: #f8fafc;
  color: var(--prm-muted);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(11, 31, 58, .08);
}

.prm-photo-control {
  display: grid;
  gap: 10px;
  align-content: center;
}

.prm-photo-file {
  width: fit-content;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 11px 14px;
  border: 1px solid var(--prm-line);
  border-radius: var(--prm-radius-sm);
  background: var(--prm-navy);
  color: #fff !important;
  cursor: pointer;
}

.prm-photo-file span {
  color: #fff !important;
  font-size: 13px;
  font-weight: 950;
}

.prm-photo-control input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.prm-photo-crop-modal {
  position: fixed;
  inset: 0;
  z-index: 1000002;
  padding: 18px;
  display: grid;
  place-items: center;
  background: rgba(7, 22, 42, .62);
  backdrop-filter: blur(8px);
}

.prm-photo-crop-modal[hidden] {
  display: none !important;
}

.prm-photo-crop-dialog {
  width: min(520px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 18px;
  display: grid;
  gap: 14px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: var(--prm-radius);
  background: #fff;
  box-shadow: 0 28px 90px rgba(0,0,0,.30);
}

.prm-photo-crop-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.prm-photo-crop-head h3 {
  margin: 0;
  color: var(--prm-navy);
  font-size: 19px;
  font-weight: 950;
}

.prm-photo-crop-head p {
  margin: 6px 0 0;
  color: var(--prm-muted);
  font-size: 12px;
  font-weight: 800;
}

.prm-photo-crop-close {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--prm-line);
  border-radius: var(--prm-radius-sm);
  background: #f8fafc;
  color: var(--prm-navy);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.prm-photo-crop-frame {
  position: relative;
  width: min(360px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #cbd8e8;
  border-radius: 18px;
  background: #0b1f3a;
  cursor: grab;
  touch-action: none;
}

.prm-photo-crop-frame:active {
  cursor: grabbing;
}

.prm-photo-crop-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.65), inset 0 0 0 999px rgba(11,31,58,.02);
}

.prm-photo-crop-frame img {
  position: absolute;
  top: 0;
  right: auto;
  left: 0;
  max-width: none !important;
  transform-origin: top left;
  user-select: none;
  pointer-events: none;
}

.prm-photo-crop-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.prm-photo-crop-tools label {
  margin: 0 !important;
}

.prm-photo-crop-tools input[type="range"] {
  width: 100%;
  margin-top: 10px;
}

.prm-photo-crop-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.prm-photo-remove {
  width: fit-content;
  padding: 10px 12px;
  border: 1px solid var(--prm-line);
  border-radius: var(--prm-radius-sm);
  background: #fff;
}

.prm-inline-form {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.prm-action-form {
  display: inline-block;
  margin: 0;
}

.prm-edit-taxonomy-form {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
}

.prm-edit-taxonomy-form input[type="text"] {
  min-width: 0;
  min-height: 38px;
  padding-inline: 11px !important;
  font-size: 12.5px;
  font-weight: 800;
}

.prm-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.prm-settings-table .prm-row-actions {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.prm-settings-table .prm-btn-sm {
  min-height: 36px;
  padding-inline: 10px;
}

.prm-settings-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.prm-settings-tabs {
  position: sticky;
  top: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prm-settings-tabs a {
  min-height: 46px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  border: 1px solid var(--prm-line);
  border-radius: var(--prm-radius-sm);
  background: #fff;
  color: var(--prm-text) !important;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none !important;
  box-shadow: var(--prm-shadow-xs);
}

.prm-settings-tabs a.is-active {
  background: var(--prm-navy);
  color: #fff !important;
  border-color: var(--prm-navy);
}

.prm-card-head {
  position: relative;
  min-height: 86px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--prm-line);
  background:
    linear-gradient(135deg, rgba(11,31,58,.06), rgba(47,111,174,.08) 52%, rgba(255,255,255,.96)),
    #fff;
  text-align: right;
}

.prm-card-head::after {
  content: "";
  position: absolute;
  inset-inline: 22px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47,111,174,.32), transparent);
}

.prm-card-head-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(47,111,174,.18);
  border-radius: 14px;
  background: #fff;
  color: var(--prm-navy);
  box-shadow: 0 10px 24px rgba(11,31,58,.08);
}

.prm-card-head-icon::before {
  content: "";
  width: 21px;
  height: 21px;
  display: block;
  background: currentColor;
  -webkit-mask: var(--prm-icon) center / contain no-repeat;
  mask: var(--prm-icon) center / contain no-repeat;
}

.prm-card-head > div {
  width: 100%;
  min-width: 0;
}

.prm-card-head h2 {
  margin: 0 0 5px !important;
  color: var(--prm-navy);
  font-size: 22px !important;
  line-height: 1.35;
  font-weight: 980;
  text-align: right;
}

.prm-card-head p {
  margin: 0;
  color: var(--prm-muted);
  font-size: 13px;
  line-height: 1.85;
  font-weight: 850;
  max-width: 860px;
  text-align: right;
}

.prm-add-option-form {
  padding: 16px 20px;
  border-bottom: 1px solid var(--prm-line);
  background: #f8fafc;
}

.prm-settings-help {
  margin: 16px 20px 20px !important;
  padding-top: 12px;
  border-top: 1px solid var(--prm-line);
  font-size: 11.5px !important;
  line-height: 1.9;
}

.prm-used-note {
  font-size: 11.5px;
  white-space: nowrap;
}

.prm-rules-form {
  padding: 20px;
  display: grid;
  gap: 12px;
}

.prm-rules-form label {
  margin: 0 !important;
  padding: 14px;
  display: grid !important;
  grid-template-columns: 1fr 112px 34px;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--prm-line);
  border-radius: var(--prm-radius-sm);
  background: #f8fafc;
}

.prm-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999;
  padding: 22px;
  align-items: center;
  justify-content: center;
  background: rgba(7, 22, 42, .62);
  backdrop-filter: blur(8px);
}

.prm-modal.is-open {
  display: flex;
}

.prm-modal-card {
  position: relative;
  width: min(920px, 100%);
  max-height: 92vh;
  overflow: auto;
  padding: 0;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: var(--prm-radius);
  background: #fff;
  box-shadow: 0 28px 90px rgba(0,0,0,.30);
}

.prm-modal-head {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--prm-line);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
}

.prm-modal-card h2 {
  margin: 0;
  color: var(--prm-navy);
  font-size: 24px;
  font-weight: 950;
}

.prm-modal-head p {
  margin: 7px 0 0;
  color: var(--prm-muted);
  font-size: 13px;
  font-weight: 800;
}

.prm-modal-close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  padding: 0 !important;
  display: grid;
  place-items: center;
  border: 1px solid var(--prm-line) !important;
  border-radius: var(--prm-radius-sm) !important;
  background: #f8fafc !important;
  color: var(--prm-navy) !important;
  font-size: 22px !important;
  line-height: 1 !important;
  cursor: pointer;
}

.prm-modal-close:hover {
  border-color: var(--prm-line-2) !important;
  background: #eef4fb !important;
}

.prm-modal-actions {
  display: flex;
  justify-content: flex-end;
  padding: 0 0 28px;
}

.prm-modal-actions .button {
  margin: 0 !important;
}

.prm-modal-card form {
  display: grid;
  gap: 18px;
  padding: 22px 28px 0;
}

.prm-modal form > .prm-form-section {
  margin: 0;
  padding: 20px;
  border: 1px solid var(--prm-line);
  border-radius: var(--prm-radius-sm);
  background: #fff;
  box-shadow: 0 12px 30px rgba(11, 31, 58, .05);
}

.prm-modal form > .prm-form-section:last-of-type {
  border-bottom: 1px solid var(--prm-line);
}

.prm-modal .prm-section-title {
  margin-bottom: 16px;
}

.prm-modal .prm-grid {
  gap: 16px;
}

.prm-modal .prm-grid + .prm-grid,
.prm-modal .prm-grid + label {
  margin-top: 16px;
}

.prm-modal .prm-form-section > label + label {
  margin-top: 16px;
}

.prm-people-picker {
  border: 1px solid var(--prm-line);
  border-radius: var(--prm-radius-sm);
  background: #f8fafc;
  overflow: hidden;
}

.prm-people-search-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--prm-line);
  background: #fff;
}

.prm-people-search {
  min-height: 46px !important;
  border-radius: var(--prm-radius-sm) !important;
  background: #f8fafc !important;
}

.prm-search-hint {
  color: var(--prm-muted);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.prm-people-checklist {
  max-height: 240px;
  overflow: auto;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.prm-person-option {
  margin: 0 !important;
  display: flex !important;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid var(--prm-line);
  border-radius: var(--prm-radius-sm);
  background: #fff;
  cursor: pointer;
}

.prm-person-option:hover {
  background: #f8fbff;
  border-color: var(--prm-line-2);
}

.prm-person-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.prm-check-ui {
  width: 19px;
  height: 19px;
  min-width: 19px;
  border: 1.8px solid var(--prm-line-2);
  border-radius: 6px;
}

.prm-person-option-main {
  min-width: 0;
}

.prm-person-option-main strong {
  display: block;
  overflow: hidden;
  color: var(--prm-navy);
  font-size: 13px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prm-person-option input:checked + .prm-check-ui {
  border-color: var(--prm-accent);
  background: var(--prm-accent);
  box-shadow: inset 0 0 0 4px #fff;
}

.prm-picker-empty {
  grid-column: 1 / -1;
  padding: 18px;
  text-align: center;
  color: var(--prm-muted);
  font-weight: 850;
}

.prm-log-details-section .prm-grid {
  margin-bottom: 0;
}

.prm-jalali-date {
  cursor: pointer;
}

.prm-followup-section {
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%) !important;
}

.prm-followup-section .prm-check-card {
  min-height: 44px;
  width: fit-content;
  padding: 10px 12px !important;
  align-items: center !important;
  gap: 9px;
  border: 1px solid #d9e4f2;
  border-radius: var(--prm-radius-sm);
  background: #fff;
}

.prm-followup-section .prm-check-card input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--prm-navy);
}

.prm-followup-section .prm-check-card span {
  color: var(--prm-navy);
  font-size: 14px;
  font-weight: 950;
  line-height: 1.2;
}

.prm-followup-fields {
  margin-top: 18px;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--prm-line);
}

.prm-reminder-check {
  width: fit-content;
  padding: 12px 14px !important;
  border: 1px solid var(--prm-line);
  border-radius: var(--prm-radius-sm);
  background: #fff;
}

.prm-auth-card {
  width: min(500px, calc(100% - 32px));
  margin: 88px auto;
  padding: 34px;
  text-align: center;
  border: 1px solid var(--prm-line);
  border-radius: var(--prm-radius);
  background: #fff;
  box-shadow: var(--prm-shadow);
}

.prm-auth-card h2 {
  margin: 0 0 8px;
  color: var(--prm-navy);
  font-size: 25px;
  font-weight: 950;
}

.prm-auth-card p {
  margin: 0 0 22px;
  color: var(--prm-muted);
}

@media (max-width: 1180px) {
  .prm-frontend {
    grid-template-columns: 1fr;
    grid-template-areas: "sidebar" "main";
    padding: 14px;
    gap: 14px;
  }

  .prm-sidebar {
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
  }

  .prm-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .prm-sidebar-bottom {
    display: none;
  }

  .prm-metrics-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prm-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .prm-settings-layout {
    grid-template-columns: 1fr;
  }

  .prm-profile-layout {
    grid-template-columns: 1fr;
  }

  .prm-profile-stats,
  .prm-profile-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prm-settings-tabs {
    position: relative;
    top: auto;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 782px) {
  .prm-frontend {
    padding: 10px;
  }

  .prm-page-head {
    display: block;
    min-height: 0;
  }

  .prm-actions {
    margin-top: 12px;
  }

  .prm-page-head h1,
  .prm-wrap h1 {
    font-size: 27px !important;
  }

  .prm-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prm-metrics-4,
  .prm-cards,
  .prm-profile-stats,
  .prm-profile-info-grid,
  .prm-grid.two,
  .prm-grid.three,
  .prm-contact-panels,
  .prm-people-checklist {
    grid-template-columns: 1fr;
  }

  .prm-filter-form,
  .prm-toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .prm-contact-row {
    grid-template-columns: 1fr auto auto;
  }

  .prm-danger-zone {
    display: grid;
    align-items: start;
  }

  .prm-danger-zone form,
  .prm-delete-person-btn {
    width: 100%;
  }

  .prm-profile-head {
    display: block;
  }

  .prm-profile-hero {
    display: grid;
    padding: 20px;
  }

  .prm-profile-identity {
    align-items: flex-start;
  }

  .prm-profile-avatar {
    width: 84px;
    height: 84px;
    border-radius: 24px;
    font-size: 30px;
  }

  .prm-profile-hero h1 {
    font-size: 27px;
  }

  .prm-profile-actions {
    justify-content: stretch;
  }

  .prm-profile-actions .prm-btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .prm-photo-uploader {
    grid-template-columns: 1fr;
  }

  .prm-photo-preview {
    width: 128px;
    height: 128px;
    border-radius: 30px;
  }

  .prm-photo-crop-tools {
    grid-template-columns: 1fr;
  }

  .prm-rules-form label {
    grid-template-columns: 1fr;
  }

  .prm-modal {
    padding: 10px;
    align-items: flex-start;
  }

  .prm-modal-card {
    max-height: calc(100vh - 20px);
  }

  .prm-modal-head {
    padding: 18px 18px 14px;
  }

  .prm-modal-card form {
    gap: 14px;
    padding: 16px 16px 0;
  }

  .prm-modal form > .prm-form-section {
    padding: 16px;
  }

  .prm-modal-actions {
    padding-right: 0;
    padding-left: 0;
  }

  .prm-people-search-wrap {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .prm-card-head {
    min-height: 0;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    padding: 16px 16px;
  }

  .prm-card-head-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 12px;
  }

  .prm-card-head-icon::before {
    width: 19px;
    height: 19px;
  }

  .prm-card-head h2 {
    font-size: 19px !important;
  }

  .prm-search-hint {
    display: none;
  }

  .prm-jalali-datepicker {
    width: min(292px, calc(100vw - 24px));
  }

  .prm-settings-table,
  .prm-settings-table thead,
  .prm-settings-table tbody,
  .prm-settings-table tr,
  .prm-settings-table th,
  .prm-settings-table td {
    display: block;
    width: 100% !important;
  }

  .prm-settings-table thead {
    display: none;
  }

  .prm-settings-table tr {
    padding: 12px;
    border-bottom: 1px solid var(--prm-line);
  }

  .prm-settings-table td {
    padding: 8px 0 !important;
    border-bottom: 0 !important;
  }

  .prm-settings-table td:nth-child(2)::before,
  .prm-settings-table td:nth-child(3)::before,
  .prm-settings-table td:nth-child(4)::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 6px;
    color: var(--prm-muted);
    font-size: 11px;
    font-weight: 900;
  }

  .prm-edit-taxonomy-form {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .prm-settings-table .prm-row-actions {
    width: 100%;
  }
}
