@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/Vazirmatn-wght.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

body,
button,
input,
select,
textarea {
  font-family: "Vazirmatn", Tahoma, "Segoe UI", sans-serif !important;
}

/* Keep Latin brand names aligned to the left edge in RTL layouts. */
.topbar .nav {
  direction: ltr;
}

.top {
  direction: ltr;
}

.top .home-link {
  direction: rtl;
  margin-right: 0;
  margin-left: auto;
}

.topbar .brand {
  direction: ltr;
  text-align: left;
  flex: 0 0 auto;
}

.topbar .nav-links,
.topbar .nav-right {
  direction: rtl;
}

/* A compact, clear tab group for the customer panel. */
.panel-shell .nav-links,
.panel-shell .panel-nav {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid #e5ebe6;
  border-radius: 12px;
  background: #f5f8f5;
  color: #66766d;
  font-size: 11px;
  white-space: nowrap;
}

.panel-shell .nav-links a,
.panel-shell .panel-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 9px;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}

.panel-shell .nav-links a:nth-child(n),
.panel-shell .panel-nav a:nth-child(n) {
  display: inline-flex;
}

.panel-shell .nav-links a:hover,
.panel-shell .panel-nav a:hover {
  color: #176b50;
  background: #eaf3ec;
}

.panel-shell .nav-links a.current,
.panel-shell .panel-nav a.current {
  color: #176b50;
  background: #fff;
  box-shadow: 0 1px 4px #18362512;
  font-weight: 700;
}

.panel-shell .panel-nav svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.panel-shell .nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-shell .settings-link {
  color: inherit;
}

.panel-shell .logout {
  font-family: inherit;
}

body > .card > .brand {
  justify-content: flex-start;
}

@media (max-width: 760px) {
  .panel-shell {
    height: auto !important;
    min-height: 64px;
    padding: 9px 0;
  }

  .panel-shell .nav {
    flex-wrap: wrap;
    gap: 9px;
  }

  .panel-shell .nav-links,
  .panel-shell .panel-nav {
    order: 2;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: thin;
  }

  .panel-shell .nav-links a,
  .panel-shell .panel-nav a {
    flex: 0 0 auto;
  }

  .panel-shell .nav-right {
    order: 2;
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .panel-shell .nav-right .panel-nav {
    order: 0;
    flex: 1 0 100%;
  }

  .panel-shell .greeting-mini {
    margin-inline-start: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .panel-shell .nav-links a,
  .panel-shell .panel-nav a {
    transition: none;
  }
}
