:root {
  --cream: #eeebe7;
  --gold: #a48050;
  --gold-soft: rgba(164, 128, 80, 0.14);
  --teal: #002c3c;
  --teal-2: #0a3d4e;
  --white: #fcfcfc;
  --ink: #202020;
  --muted: #6d675f;
  --line: rgba(32, 32, 32, 0.08);
  --sidebar: 268px;
  --radius: 22px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body.hera-body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Vazirmatn", sans-serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}

a {
  color: inherit;
  text-decoration: none;
}

.hera-app {
  min-height: 100vh;
}

.hera-sidebar {
  width: var(--sidebar);
  background: var(--teal);
  color: var(--cream);
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  padding: 22px 20px 16px;
  z-index: 40;
}

.hera-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 6px 16px;
  border-bottom: 1px solid rgba(238, 235, 231, 0.12);
}

.hera-brand__mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.hera-brand__en {
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0.12em;
  font-weight: 500;
}

.hera-brand__fa {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(238, 235, 231, 0.72);
}

.hera-nav {
  overflow-x: hidden;
  overflow-y: auto;
  padding: 14px 2px 12px 0;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(238, 235, 231, 0.28) transparent;
}

.hera-nav::-webkit-scrollbar {
  width: 4px;
}

.hera-nav::-webkit-scrollbar-track {
  background: transparent;
}

.hera-nav::-webkit-scrollbar-thumb {
  background: rgba(238, 235, 231, 0.28);
  border-radius: 999px;
}

.hera-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(238, 235, 231, 0.48);
}

.hera-nav__group {
  margin-bottom: 16px;
}

.hera-nav__group:last-child {
  margin-bottom: 0;
}

.hera-nav__label {
  display: block;
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.08em;
  padding: 0 12px 6px;
}

.hera-nav__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 12px;
  color: rgba(238, 235, 231, 0.78);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 1px;
  transition: background 0.2s ease, color 0.2s ease;
}

.hera-nav__link i {
  width: 18px;
  text-align: center;
  opacity: 0.85;
}

.hera-nav__link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
}

.hera-nav__link.is-active {
  background: var(--gold-soft);
  color: #f3e6d2;
}

.hera-sidebar__foot {
  font-size: 12px;
  color: rgba(238, 235, 231, 0.72);
  padding: 10px 8px 0;
  border-top: 1px solid rgba(238, 235, 231, 0.12);
}

.hera-cal-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hera-cal-bar__nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hera-cal-bar__title {
  font-weight: 600;
  margin-right: 4px;
}

.hera-day__row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.hera-day__row:last-child {
  border-bottom: 0;
}

.hera-day__time {
  color: var(--muted);
  font-size: 12px;
  padding-top: 6px;
}

.hera-day__free {
  display: block;
  color: var(--muted);
  font-size: 12px;
  padding: 6px 2px;
}

.hera-appt {
  display: block;
  background: #f7f4ef;
  border: 1px solid rgba(164, 128, 80, 0.14);
  border-radius: 10px;
  padding: 7px 10px;
  margin-bottom: 6px;
}

.hera-appt:last-child {
  margin-bottom: 0;
}

.hera-appt__line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hera-appt strong {
  font-size: 13px;
  font-weight: 500;
  color: var(--teal);
  line-height: 1.4;
}

.hera-appt__time {
  color: var(--gold);
  font-size: 12px;
}

.hera-appt__meta {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.hera-day .hera-chip {
  padding: 1px 7px;
  font-size: 10px;
}

.hera-day .hera-score {
  font-size: 10px;
  padding: 0 6px;
  margin-inline-start: 4px;
}

.hera-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.hera-week__day {
  min-height: 120px;
  padding: 12px;
}

.hera-week__day.is-today {
  background: #f6efe4;
  border-color: var(--gold);
  box-shadow: inset 0 3px 0 var(--gold);
}

.hera-week__day.is-today .hera-week__head strong {
  color: var(--gold);
}

.hera-day.is-today {
  box-shadow: inset 0 3px 0 var(--gold);
}

.hera-week__head {
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
}

.hera-week__head span {
  color: var(--muted);
  font-size: 12px;
}

.hera-week__count {
  display: block;
  color: var(--teal);
  font-size: 14px;
  font-weight: 500;
}

.hera-month__head,
.hera-month {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.hera-month__head {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.hera-month__cell {
  min-height: 96px;
  background: var(--white);
  border-radius: 16px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hera-month__cell span,
.hera-month__cell em {
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.hera-month__cell.is-empty span {
  color: rgba(109, 103, 95, 0.7);
}

.hera-month__cell.is-today {
  background: #f6efe4;
  box-shadow: inset 0 0 0 2px var(--gold);
}

.hera-month__cell.is-today strong {
  color: var(--gold);
}

.hera-month__cell.is-blank {
  background: transparent;
}

.hera-time {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hera-time .hera-input {
  min-width: 0;
}

.hera-time select.hera-input {
  width: 108px;
  flex-shrink: 0;
}

.hera-line-next {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.hera-line-next:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.hera-line-next__name {
  min-width: 160px;
}

.hera-line-next__name span,
.hera-line-next__queue span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.hera-line-next__queue {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.hera-line-next__queue a {
  background: rgba(164, 128, 80, 0.1);
  border-radius: 12px;
  padding: 8px 10px;
  min-width: 140px;
}

.hera-line-next__queue em {
  display: block;
  font-style: normal;
  color: var(--gold);
  font-size: 12px;
}

.hera-wait {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 1199.98px) {
  .hera-week,
  .hera-month,
  .hera-month__head {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hera-month__head {
    display: none;
  }
}

.hera-sidebar__foot a {
  color: var(--cream);
  display: inline-block;
  margin-top: 6px;
}

.hera-main {
  margin-right: var(--sidebar);
  min-height: 100vh;
  padding: 28px 32px 48px;
}

.hera-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.hera-top__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.hera-count {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid rgba(164, 128, 80, 0.28);
  color: #7a5e38;
  font-size: 13px;
  font-weight: 600;
}

.hera-kicker {
  color: var(--gold);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  margin-bottom: 6px;
}

.hera-kicker.mb-0 {
  margin-bottom: 0;
}

.hera-title {
  font-family: inherit;
  font-size: 22px;
  font-weight: 600;
  margin: 0;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.hera-menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--teal);
}

.hera-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  height: 100%;
}

.hera-card--flush {
  padding: 0;
  overflow: hidden;
}

.hera-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: inherit;
}

.hera-card__head h2,
.hera-section-title,
.hera-card h3,
.hera-card .h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}

.hera-stat {
  padding: 20px 18px 16px;
}

.hera-stat__top,
.hera-kpi__head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: nowrap;
}

.hera-kpi {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 0;
  padding: 18px 18px 16px;
}

.hera-stat__value,
.hera-stat__hint,
.hera-stat__value + .hera-muted,
.hera-stat__value + p,
.hera-stat .hera-muted {
  text-align: center;
}

.hera-kpi__head .hera-icon,
.hera-stat__top .hera-icon {
  width: 32px;
  height: 32px;
  font-size: 14px;
}

.hera-kpi__head .hera-stat__label,
.hera-kpi__head .hera-kicker,
.hera-stat__top .hera-kicker {
  margin: 0;
  line-height: 1.3;
}

.hera-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(164, 128, 80, 0.28);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
  background: rgba(164, 128, 80, 0.06);
}

.hera-icon--teal {
  border-color: rgba(0, 44, 60, 0.16);
  color: var(--teal);
  background: rgba(0, 44, 60, 0.05);
}

.hera-stat__value,
.hera-num {
  font-family: "Vazirmatn", sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.hera-stat__value {
  font-size: 22px;
  font-weight: 600;
  color: var(--teal);
  line-height: 1.35;
}

.hera-stat__label {
  margin-top: 10px;
  font-weight: 600;
  font-size: 14px;
}

.hera-stat__hint {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.hera-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  background: var(--cream);
  color: var(--ink);
  white-space: nowrap;
}

.hera-chip--gold {
  background: var(--gold-soft);
  color: #7a5e38;
}

.hera-chip--teal {
  background: rgba(0, 44, 60, 0.08);
  color: var(--teal);
}

.hera-chip--wait {
  background: #f4efe4;
  color: #8a6a32;
}

.hera-chip--run {
  background: rgba(0, 44, 60, 0.1);
  color: var(--teal);
}

.hera-chip--ok {
  background: #edf3ee;
  color: #2f5d3a;
}

.hera-chip--off {
  background: #f3eeee;
  color: #7a3d3d;
}

.hera-table {
  width: 100%;
  margin: 0;
}

.hera-table th {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
  background: transparent;
}

.hera-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  font-size: 14px;
}

.hera-table tr:last-child td {
  border-bottom: 0;
}

.hera-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--teal);
  color: var(--cream);
  font-size: 12px;
  flex-shrink: 0;
}

.hera-avatar--gold {
  background: var(--gold);
  color: var(--white);
}

.hera-person {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hera-avatar--lg {
  width: 52px;
  height: 52px;
  font-size: 16px;
}

.hera-profile__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.hera-profile__id {
  flex: 1;
  min-width: 0;
}

.hera-profile__sheet {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 36px;
}

.hera-profile__row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-align: start;
}

.hera-profile__row span {
  color: var(--muted);
  font-size: 13px;
}

.hera-profile__row strong {
  font-weight: 500;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.hera-profile__row--wide {
  grid-column: 1 / -1;
  align-items: start;
}

.hera-profile__row--wide strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

@media (max-width: 767.98px) {
  .hera-profile__sheet {
    grid-template-columns: 1fr;
  }
}

.hera-muted {
  color: var(--muted);
  font-size: 13px;
}

.hera-link {
  color: var(--teal);
  font-weight: 500;
}

.hera-link:hover {
  color: var(--gold);
}

.hera-pillars {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 16px;
}

.hera-hero {
  background: var(--teal);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
  min-height: 210px;
}

.hera-hero::after {
  content: "É";
  position: absolute;
  left: 18px;
  bottom: -28px;
  font-family: "Cormorant Garamond", serif;
  font-size: 160px;
  opacity: 0.09;
  font-style: italic;
}

.hera-hero__en {
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 0.28em;
  font-size: 34px;
}

.hera-hero__tag {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(238, 235, 231, 0.62);
  margin-top: 4px;
}

.hera-hero p {
  max-width: 36ch;
  margin: 18px 0 0;
  color: rgba(238, 235, 231, 0.82);
  font-size: 14px;
}

.hera-line-card {
  display: flex;
  flex-direction: column;
  min-height: 180px;
}

.hera-line-card h3 {
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  margin: 8px 0 10px;
}

.hera-line-card .hera-muted {
  flex: 1;
}

.hera-search {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 14px;
  padding: 10px 14px;
  min-width: min(320px, 100%);
}

.hera-search input {
  border: 0;
  outline: 0;
  width: 100%;
  background: transparent;
  font-family: inherit;
}

.hera-filters a,
.hera-filters button {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--ink);
}

.hera-filters a.is-on,
.hera-filters a:hover {
  background: var(--teal);
  color: var(--cream);
  border-color: var(--teal);
}

.hera-bar {
  height: 8px;
  background: var(--cream);
  border-radius: 99px;
  overflow: hidden;
}

.hera-bar > span {
  display: block;
  height: 100%;
  background: var(--gold);
  border-radius: 99px;
}

.hera-bar--teal > span {
  background: var(--teal);
}

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

.hera-timeline li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding-bottom: 18px;
}

.hera-dot {
  width: 12px;
  height: 12px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  margin-top: 6px;
  background: var(--white);
}

.hera-file dt {
  font-size: 12px;
  color: var(--muted);
}

.hera-file dd {
  margin: 0 0 14px;
  font-weight: 500;
}

.hera-low {
  color: #8a3b3b;
  font-weight: 600;
}

.offcanvas.hera-offcanvas {
  background: var(--teal);
  color: var(--cream);
  width: min(86vw, 300px);
}

@media (max-width: 991.98px) {
  .hera-sidebar {
    display: none;
  }

  .hera-main {
    margin-right: 0;
    padding: 18px 16px 40px;
  }

  .hera-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hera-pillars {
    grid-template-columns: 1fr;
  }

  .hera-top {
    align-items: center;
  }

  .hera-title {
    font-size: 20px;
  }
}

.hera-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  border: 0;
  background: var(--teal);
  color: var(--cream);
  border-radius: 12px;
  padding: 0 16px;
  font-family: inherit;
  font-size: 14px;
  white-space: nowrap;
  line-height: 1;
}

.hera-btn:hover {
  background: var(--teal-2);
  color: var(--cream);
}

.hera-btn--ghost {
  background: var(--white);
  color: var(--teal);
  border: 1px solid var(--line);
}

.hera-btn--ghost:hover {
  background: var(--cream);
  color: var(--teal);
}

.hera-btn--gold {
  background: var(--gold);
  color: #fff;
}

.hera-btn--gold:hover {
  background: #8d6c41;
  color: #fff;
}

.hera-btn--cream {
  background: var(--cream);
  color: var(--teal);
  border: 1px solid rgba(164, 128, 80, 0.35);
}

.hera-btn--cream:hover {
  background: #e4ddd4;
  color: var(--teal);
}

.hera-btn--danger {
  background: #7a3d3d;
  color: #fff;
}

.hera-btn--danger:hover {
  background: #5f2e2e;
  color: #fff;
}

.hera-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.hera-req::after {
  content: " *";
  color: #8a3b3b;
}

.hera-input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 12px;
  padding: 0 12px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
}

select.hera-input {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding-left: 34px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: left 16px center, left 10px center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

textarea.hera-input {
  height: auto;
  min-height: 96px;
  padding: 10px 12px;
}

.hera-inline-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
}

.hera-inline-actions .hera-btn {
  height: 42px;
  padding: 0 14px;
  white-space: nowrap;
}

.hera-field-error {
  color: #8a3b3b;
  font-size: 12px;
  margin-top: 4px;
}

.hera-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 28px;
  margin-bottom: 6px;
}

.hera-plus {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--teal);
  border-radius: 8px;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.hera-plus--danger {
  color: #7a3d3d;
}

.hera-password {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hera-password .hera-input {
  flex: 1 1 220px;
}

.hera-password-lights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.hera-light {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
}

.hera-light::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d9d3cb;
}

.hera-light.is-ok {
  color: #2f5d3a;
  border-color: #c5dccb;
  background: #edf3ee;
}

.hera-light.is-ok::before {
  background: #3c8f52;
}

.hera-chip-form {
  margin: 0;
}

.hera-chip button {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0 2px;
  font-size: 14px;
}

.hera-line-add {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.hera-btn--sm {
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
  border-radius: 10px;
}

.hera-row-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  justify-content: flex-end;
  align-items: center;
}

.hera-actions-cell {
  width: 1%;
  white-space: nowrap;
  text-align: left;
}

.hera-actions-cell form {
  display: inline-flex;
  margin: 0;
}

.hera-row-actions--end {
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.hera-icon-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--teal);
  padding: 0;
  flex-shrink: 0;
}

.hera-icon-btn--danger {
  color: #7a3d3d;
}

button.hera-icon-btn {
  cursor: pointer;
}

.hera-edit-row td {
  background: rgba(238, 235, 231, 0.55);
  padding: 16px 18px 18px;
}

.hera-score {
  display: inline-flex;
  align-items: center;
  margin-inline-start: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #7a5a2e;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.7;
}

.hera-ledger {
  min-height: 460px;
}

.hera-ledger__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 22px 8px;
}

.hera-ledger__stats {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.hera-debt {
  color: #8a3b3b;
  font-weight: 600;
}

.hera-rate-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background:
    radial-gradient(circle at 20% 10%, rgba(164, 128, 80, 0.16), transparent 32%),
    var(--cream);
}

.hera-rate-card {
  width: min(460px, 100%);
  text-align: center;
}

.hera-rate-card h1 {
  font-size: 28px;
  margin: 8px 0 12px;
}

.hera-rate {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.hera-rate button {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 18px;
}

.hera-rate button:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.hera-table-wrap {
  overflow-x: auto;
}

.hera-table--fit {
  table-layout: fixed;
  width: 100%;
}

.hera-table--fit th,
.hera-table--fit td {
  padding: 10px 8px;
  font-size: 12px;
  vertical-align: middle;
  overflow: hidden;
}

.hera-table--fit th:nth-child(1),
.hera-table--fit td:nth-child(1) { width: 15%; }
.hera-table--fit th:nth-child(2),
.hera-table--fit td:nth-child(2) { width: 10%; }
.hera-table--fit th:nth-child(3),
.hera-table--fit td:nth-child(3) { width: 15%; }
.hera-table--fit th:nth-child(4),
.hera-table--fit td:nth-child(4) { width: 13%; }
.hera-table--fit th:nth-child(5),
.hera-table--fit td:nth-child(5) { width: 12%; }
.hera-table--fit th:nth-child(6),
.hera-table--fit td:nth-child(6) { width: 13%; }
.hera-table--fit th:nth-child(7),
.hera-table--fit td:nth-child(7),
.hera-table--fit td.hera-actions-cell {
  width: 22%;
  overflow: visible;
  white-space: nowrap;
}

.hera-status {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.hera-table--fit .hera-chip {
  padding: 2px 7px;
  font-size: 11px;
}

.hera-table--fit .hera-btn--sm {
  height: 28px;
  padding: 0 8px;
  font-size: 11px;
  flex-shrink: 0;
}

.hera-revision {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  background: var(--gold-soft);
  border-radius: 12px;
  padding: 8px 12px;
  margin-bottom: 12px;
}

.hera-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.hera-visit {
  margin-bottom: 16px;
}

.hera-ticket-line + .hera-ticket-line {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.hera-ticket__form {
  display: grid;
  grid-template-columns: minmax(170px, 0.85fr) minmax(240px, 1.5fr) 150px;
  grid-template-rows: auto 42px;
  column-gap: 12px;
  row-gap: 6px;
  align-items: stretch;
  margin-top: 16px;
}

.hera-ticket__form .hera-label {
  margin: 0;
  height: 18px;
  line-height: 18px;
}

.hera-ticket__form .hera-money,
.hera-ticket__form .hera-note-field,
.hera-ticket__form .hera-btn {
  height: 42px;
}

.hera-ticket__form .hera-btn {
  white-space: nowrap;
  padding: 0 16px;
}

.hera-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
}

.hera-ticket__history {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.hera-fact {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.hera-fact--wide {
  grid-column: 1 / -1;
}

.hera-fact__label {
  color: var(--muted);
  font-size: 12px;
  padding-top: 2px;
}

.hera-fact__value {
  font-size: 13px;
  color: var(--ink);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hera-fact__list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  color: var(--muted);
}

.hera-note-field {
  position: relative;
}

.hera-note-field .hera-input {
  padding-left: 42px;
}

.hera-clip {
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hera-clip:hover,
.hera-clip.is-open {
  background: var(--gold-soft);
}

.hera-attach {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.hera-attach__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  background: var(--cream);
  border-radius: 12px;
  padding: 8px 10px;
}

.hera-attach__item input {
  font-size: 12px;
}

.hera-photos {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  font-size: 12px;
}

.hera-photos a {
  color: var(--gold);
}

.hera-money {
  position: relative;
}

.hera-money .hera-input {
  padding-left: 48px;
}

.hera-money span {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 12px;
}

.hera-hint {
  margin: 8px 0 0;
  font-size: 12px;
}

.hera-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.hera-filter > div {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1 1 150px;
  min-width: 150px;
}

.hera-filter .hera-label {
  height: 18px;
  line-height: 18px;
  margin-bottom: 6px;
}

.hera-filter .hera-input,
.hera-filter .hera-btn {
  height: 42px;
  width: 100%;
}

.hera-filter__action {
  flex: 0 0 150px;
  min-width: 150px;
}

.hera-filter__wide {
  flex: 2 1 280px;
}

.hera-ticket__form .hera-btn {
  height: 42px;
}

.hera-customer-hint,
.hera-customer-matches button {
  margin-top: 8px;
  width: 100%;
  text-align: right;
  border-radius: 12px;
  border: 1px solid rgba(0, 44, 60, 0.12);
  background: rgba(0, 44, 60, 0.05);
  color: var(--teal);
  font-size: 13px;
  padding: 8px 12px;
}

.hera-customer-matches {
  display: flex;
  flex-direction: column;
}

@media (max-width: 767px) {
  .hera-facts,
  .hera-ticket__form,
  .hera-attach {
    grid-template-columns: 1fr;
  }

  .hera-ticket__form .hera-btn {
    width: 100%;
  }
}

.hera-table--compact td,
.hera-table--compact th {
  padding: 10px 12px;
}

.hera-login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(300px, 440px) 1fr;
  background:
    radial-gradient(circle at 20% 10%, rgba(164, 128, 80, 0.16), transparent 32%),
    var(--cream);
}

.hera-login__brand {
  position: relative;
  background: var(--teal);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 64px 52px;
}

.hera-login__brand::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(164, 128, 80, 0.7);
  pointer-events: none;
}

.hera-login__mark {
  width: 62px;
  height: 84px;
  color: var(--cream);
  margin-bottom: 32px;
}

.hera-login__en {
  font-family: "Cormorant Garamond", serif;
  font-size: 72px;
  letter-spacing: 0.16em;
  line-height: 0.85;
}

.hera-login__fa {
  margin-top: 14px;
  font-size: 18px;
  font-weight: 400;
}

.hera-login__brand p {
  margin: 26px 0 0;
  letter-spacing: 0.22em;
  font-size: 12px;
  color: var(--gold);
}

.hera-login__panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.hera-login__card {
  width: min(460px, 100%);
  background: var(--white);
  border: 1px solid rgba(164, 128, 80, 0.35);
  border-radius: 28px;
  padding: 40px 36px 34px;
  box-shadow: 0 28px 70px rgba(0, 44, 60, 0.08);
}

.hera-login__rule {
  display: block;
  width: 46px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 18px;
}

.hera-login__card .hera-kicker {
  color: var(--gold);
}

.hera-login__card h1 {
  font-family: inherit;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.7;
  color: var(--teal);
  margin: 8px 0 28px;
}

.hera-login__card .hera-input {
  background: var(--cream);
  border-color: transparent;
  min-height: 48px;
  margin-bottom: 14px;
}

.hera-login__card .hera-input:focus {
  outline: none;
  background: var(--white);
  border-color: var(--gold);
}

.hera-login__submit {
  width: 100%;
  justify-content: center;
  margin-top: 12px;
  min-height: 52px;
  background: var(--teal);
}

.hera-login__submit:hover {
  background: var(--gold);
  color: var(--white);
}

.hera-access ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.hera-access li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
}

.hera-access label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

@media (max-width: 800px) {
  .hera-login {
    grid-template-columns: 1fr;
  }

  .hera-login__brand {
    min-height: 220px;
  }

  .hera-login__en {
    font-size: 48px;
  }

  .hera-login__card {
    padding: 28px 22px;
  }

  .hera-login__card h1 {
    font-size: 24px;
  }
}

.hera-contract {
  margin: 0 0 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--cream);
}

.hera-contract + .hera-contract {
  margin-top: 4px;
}

.hera-contract__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(164, 128, 80, 0.22);
}

.hera-contract__head strong {
  color: var(--teal);
  font-size: 14px;
}

[data-add-contract] {
  margin: 4px 0 8px;
}

jdp-overlay,
.jdp-overlay,
#jdpOverlay {
  z-index: 80;
}

.jdp-container,
jdp {
  font-family: "Vazirmatn", sans-serif !important;
  direction: rtl;
  z-index: 90;
}

.hera-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.hera-alert {
  border-radius: 14px;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--line);
}

.hera-alert--ok {
  background: #edf3ee;
  color: #2f5d3a;
}

.hera-alert--off {
  background: #f3eeee;
  color: #7a3d3d;
}

.hera-modal {
  border-radius: 20px;
  border: 1px solid var(--line);
}

.hera-inv-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 22px;
  padding: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.hera-inv-nav a {
  border: 0;
  background: transparent;
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hera-inv-nav a i {
  font-size: 14px;
  opacity: 0.85;
}

.hera-inv-nav a.is-active,
.hera-inv-nav a:hover {
  background: var(--teal);
  color: var(--cream);
}

.hera-sku {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
}

.hera-group {
  display: inline-flex;
  min-width: 34px;
  justify-content: center;
  border-radius: 8px;
  padding: 2px 7px;
  font-size: 11px;
  letter-spacing: 0.08em;
  background: var(--gold-soft);
  color: #7a5e38;
  font-weight: 600;
}

.hera-inv-empty {
  text-align: center;
  padding: 28px 16px;
}

.hera-inv-empty i {
  font-size: 22px;
  color: var(--gold);
  display: block;
  margin-bottom: 8px;
}

.hera-inv-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.hera-inv-toolbar .hera-search {
  min-width: min(240px, 100%);
}

.hera-inv-period {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: end;
}

.hera-inv-period .hera-input {
  min-width: 148px;
}

.hera-inv-return {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px 8px 6px 10px;
  border-radius: 12px;
  background: var(--gold-soft);
}

.hera-inv-return .hera-input {
  width: 92px;
  height: 34px;
}

.hera-inv-return .hera-btn {
  height: 34px;
  padding: 0 12px;
}

.hera-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 16px;
  align-items: end;
}

.hera-form-grid .is-wide {
  grid-column: span 2;
}

.hera-form-grid__action {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  align-items: center;
  padding-top: 4px;
}

.hera-form-grid .hera-check {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: end;
  min-height: 62px;
}

.hera-form-grid .hera-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
  vertical-align: middle;
  margin-left: 6px;
}

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

@media (max-width: 575.98px) {
  .hera-form-grid {
    grid-template-columns: 1fr;
  }

  .hera-form-grid .is-wide {
    grid-column: auto;
  }

  .hera-search {
    min-width: 0;
    width: 100%;
  }

  .hera-table:not(.hera-table--fit):not(.hera-table--inv):not(.hera-table--club) th:nth-child(n + 4),
  .hera-table:not(.hera-table--fit):not(.hera-table--inv):not(.hera-table--club) td:nth-child(n + 4) {
    display: none;
  }
}

.hera-tier--classic .hera-icon {
  background: rgba(32, 32, 32, 0.08);
  color: var(--ink);
}

.hera-tier--bronze .hera-icon {
  background: rgba(140, 90, 50, 0.16);
  color: #8c5a32;
}

.hera-tier--silver .hera-icon {
  background: rgba(90, 104, 118, 0.16);
  color: #4d5b68;
}

.hera-tier--gold .hera-icon {
  background: var(--gold-soft);
  color: var(--gold);
}

.hera-table--club {
  min-width: 640px;
}

.hera-table--club .hera-club-section {
  background: var(--teal);
  color: var(--cream);
  font-weight: 600;
  vertical-align: middle;
  width: 11rem;
  text-align: center;
  border-bottom: 1px solid rgba(238, 235, 231, 0.12);
  border-left: 1px solid rgba(238, 235, 231, 0.12);
}

.hera-club-result {
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
}

.hera-tier-chip--classic {
  background: rgba(32, 32, 32, 0.08);
  color: var(--ink);
}

.hera-tier-chip--bronze {
  background: rgba(140, 90, 50, 0.16);
  color: #8c5a32;
}

.hera-tier-chip--silver {
  background: rgba(90, 104, 118, 0.16);
  color: #4d5b68;
}

.hera-tier-chip--gold {
  background: var(--gold-soft);
  color: #7a5e38;
}
