@font-face {
  font-family: Vazirmatn;
  src: url("/fonts/vazirmatn-arabic-400-normal.woff2") format("woff2");
  font-display: swap;
  font-weight: 400;
}
@font-face {
  font-family: Vazirmatn;
  src: url("/fonts/vazirmatn-arabic-700-normal.woff2") format("woff2");
  font-display: swap;
  font-weight: 700;
}
:root {
  --green: #126953;
  --deep: #123f35;
  --ink: #203b35;
  --muted: #73827b;
  --line: #dce5df;
  --paper: #fff;
  --bg: #f3f6f2;
  --lime: #dbeaab;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font:
    16px/1.8 Vazirmatn,
    Tahoma,
    sans-serif;
  color: var(--ink);
  background: var(--bg);
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 0;
  border-radius: 9px;
  background: var(--green);
  color: white;
  padding: 10px 18px;
  min-height: 44px;
}
button:hover {
  filter: brightness(0.94);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: white;
  color: var(--ink);
  min-height: 44px;
}
textarea {
  resize: vertical;
  min-height: 100px;
}
input:focus,
select:focus,
textarea:focus,
button:focus-visible {
  outline: 3px solid #afd8bc;
  outline-offset: 2px;
}
label {
  display: grid;
  gap: 5px;
  font-size: 14px;
}
form {
  display: grid;
  gap: 16px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 27px;
  line-height: 1.6;
  margin-bottom: 0;
}
h2 {
  font-size: 20px;
  margin-bottom: 15px;
}
h3 {
  font-size: 17px;
}
p {
  color: var(--muted);
}
small {
  font-size: 13px;
}
a {
  color: inherit;
  text-decoration: none;
}
.muted {
  color: var(--muted);
  font-size: 14px;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 34px;
}
.brand strong {
  font-size: 25px;
}
.brand small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #a8c5b7;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--lime);
  color: var(--deep);
  font-weight: 700;
  font-size: 26px;
}
.sidebar {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 248px;
  padding: 28px 20px;
  background: var(--deep);
  color: #fff;
  display: flex;
  flex-direction: column;
}
.company-label {
  color: #b6ccc0;
  margin-bottom: 28px;
}
.company-label select {
  background: #245346;
  color: white;
  border-color: #386354;
}
.sidebar nav {
  display: grid;
  gap: 7px;
}
.nav-link {
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 15px;
  color: #c5d6cc;
  display: flex;
  gap: 12px;
}
.nav-link.active {
  background: #e3eec7;
  color: var(--deep);
  font-weight: 700;
}
.sidebar-bottom {
  margin-top: auto;
  font-size: 13px;
  color: #bdd0c3;
}
.sidebar-bottom button {
  display: block;
  color: #d9e6df;
  padding-right: 0;
  margin-top: 12px;
}
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #b1d496;
  border-radius: 50%;
  margin-left: 8px;
}
main {
  margin-right: 248px;
  padding: 28px 38px 100px;
  max-width: 1800px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}
#crumb {
  font-size: 13px;
  color: var(--muted);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  color: var(--muted);
}
.avatar-name {
  border-right: 1px solid var(--line);
  padding-right: 20px;
  color: var(--ink);
}
.toolbar {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 24px;
}
.toolbar label {
  display: flex;
  align-items: center;
  gap: 10px;
}
.toolbar select {
  width: 150px;
  padding: 6px 10px;
}
.badge {
  display: inline-block;
  font-size: 13px;
  background: #e7eee7;
  color: #4b6759;
  padding: 4px 10px;
  border-radius: 6px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 25px;
}
.card {
  border: 1px solid var(--line);
  background: white;
  border-radius: 13px;
  padding: 24px;
}
.metric-label {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 14px;
}
.metric-value {
  font-size: 28px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.metric-foot {
  font-size: 13px;
  color: var(--muted);
  margin-top: 9px;
}
.accent {
  background: var(--green);
  color: white;
  border: 0;
}
.accent .metric-label,
.accent .metric-foot {
  color: #c5dfd1;
}
.grid-two {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 22px;
}
.section-head,
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
}
.section-head h2,
.panel-head h2 {
  margin: 0;
}
.ghost {
  background: transparent;
  color: var(--green);
  padding: 6px 10px;
}
.outline {
  border: 1px solid var(--line);
  background: white;
  color: var(--green);
}
.empty {
  text-align: center;
  padding: 45px 15px;
  color: var(--muted);
}
.empty strong {
  display: block;
  color: var(--ink);
  font-size: 19px;
  margin-bottom: 8px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  font-size: 14px;
  text-align: right;
}
th {
  color: var(--muted);
  font-weight: 400;
  background: #f7f9f6;
}
td,
th {
  padding: 14px 12px;
  border-bottom: 1px solid #edf1ec;
}
td.num {
  font-variant-numeric: tabular-nums;
  direction: ltr;
  text-align: right;
}
tfoot {
  font-weight: 700;
}
.pill {
  font-size: 12px;
  padding: 4px 10px;
  background: #edf4e5;
  color: #557239;
  border-radius: 20px;
}
.chart-row {
  display: grid;
  grid-template-columns: 120px 1fr 100px;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  margin: 22px 0;
}
.chart-track {
  height: 12px;
  background: #eff3eb;
  border-radius: 10px;
  overflow: hidden;
}
.chart-fill {
  height: 100%;
  background: #60967b;
  border-radius: 10px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hint {
  background: #fff7de;
  border: 1px solid #eadcac;
  color: #766222;
  border-radius: 8px;
  padding: 12px 15px;
  font-size: 14px;
  margin-bottom: 20px;
}
.assistant-toggle {
  position: fixed;
  bottom: 25px;
  left: 30px;
  box-shadow: 0 6px 22px #173e3525;
  border-radius: 28px;
  padding: 12px 22px;
}
.assistant {
  position: fixed;
  left: 24px;
  bottom: 88px;
  width: 420px;
  max-width: calc(100vw - 32px);
  max-height: 80vh;
  overflow: auto;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 20px 80px #122f3526;
  border-radius: 16px;
  padding: 24px;
  z-index: 4;
}
.assistant p {
  font-size: 14px;
}
.assistant form {
  gap: 10px;
}
.assistant #chat-result {
  margin-top: 20px;
}
.review-line {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.review-line select {
  grid-column: 1/-1;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.span-all {
  grid-column: 1/-1;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 15px;
  width: 680px;
  max-width: calc(100vw - 30px);
  max-height: 90vh;
  overflow: auto;
  padding: 26px;
  color: var(--ink);
}
dialog::backdrop {
  background: #112f3560;
  backdrop-filter: blur(3px);
}
#toast {
  position: fixed;
  bottom: 25px;
  right: 280px;
  max-width: calc(100vw - 40px);
  padding: 14px 22px;
  background: var(--deep);
  color: white;
  border-radius: 10px;
  z-index: 10;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-card {
  max-width: 440px;
  width: 100%;
  margin: auto;
  padding: 40px;
}
.login-card h1 {
  font-size: 30px;
  margin-top: 25px;
}
.login-logo {
  display: block;
  width: 180px;
  height: auto;
  margin: 0 auto 20px;
  border-radius: 20px;
}
.nav-group { border-bottom: 1px solid #ffffff24; padding: 6px 0; }
.nav-group summary { cursor: pointer; padding: 12px 8px; font-weight: 600; }
.nav-group .nav-link { margin-right: 12px; font-size: 13px; }
.nav-pending { padding: 8px 20px; font-size: 12px; opacity: .65; }
.nav-pending small { display: block; font-size: 10px; }
.account-branch { margin: 12px 20px; border-right: 2px solid #dbe5de; padding-right: 16px; }
.account-branch summary { cursor: pointer; padding: 10px; }
.account-leaf { padding: 10px 20px; border-bottom: 1px solid #edf0ee; }
.account-leaf b, .account-branch b { color: #397a81; margin-left: 12px; }
.account-leaf small { color: #738575; margin-right: 15px; }
.sidebar-logo {
  width: 48px;
  height: auto;
  flex-shrink: 0;
  border-radius: 8px;
}
.login-card > h1, .login-card > p { text-align: center; }
.login-art {
  background: radial-gradient(circle at 25% 25%, #dcecc6, transparent 55%), linear-gradient(145deg, #e3f2f7, #eef3de);
}
.login-card form {
  margin: 30px 0;
}
.login-art {
  background: #dfe8d3;
  display: grid;
  place-items: center;
  padding: 40px;
}
.paper {
  width: 80%;
  min-height: 440px;
  background: #f6f8ef;
  padding: 50px;
  transform: rotate(-5deg);
  box-shadow: 25px 30px 0 #b4c5a3;
}
.paper span {
  font-size: 14px;
}
.paper h2 {
  font-size: 42px;
  line-height: 1.8;
  margin: 40px 0;
}
.art-lines {
  height: 90px;
  background: repeating-linear-gradient(
    0deg,
    transparent 0 27px,
    #cad7bc 28px 29px
  );
}
.paper p {
  font-size: 14px;
  margin-top: 30px;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 10px;
}
.check-label input {
  width: 20px;
  min-height: 20px;
}
.list-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.list-row small {
  display: block;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
@media (max-width: 1000px) {
  .sidebar {
    width: 205px;
    padding: 25px 14px;
  }
  main {
    margin-right: 205px;
    padding: 24px;
  }
  .cards {
    gap: 12px;
  }
  .card {
    padding: 18px;
  }
  .metric-value {
    font-size: 22px;
  }
  .grid-two {
    grid-template-columns: 1fr;
  }
  .header-actions #today {
    display: none;
  }
}
@media (max-width: 700px) {
  .sidebar {
    position: static;
    width: 100%;
    padding: 15px;
  }
  .sidebar .brand {
    margin-bottom: 12px;
  }
  .brand small,
  .sidebar-bottom {
    display: none;
  }
  .company-label {
    display: grid;
    margin-bottom: 12px;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
    gap: 4px;
  }
  .nav-link {
    white-space: nowrap;
    padding: 8px 12px;
  }
  .brand strong {
    font-size: 22px;
  }
  main {
    margin: 0;
    padding: 20px 15px 100px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .metric-value {
    font-size: 28px;
  }
  h1 {
    font-size: 23px;
  }
  .header-actions {
    font-size: 12px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-art {
    display: none;
  }
  #toast {
    right: 15px;
    bottom: 85px;
  }
  .assistant-toggle {
    left: 16px;
    bottom: 18px;
  }
  .assistant {
    left: 16px;
    bottom: 78px;
  }
  .chart-row {
    grid-template-columns: 90px 1fr 80px;
    font-size: 13px;
  }
}
@media print {
  .sidebar,
  header,
  .toolbar,
  button,
  .assistant,
  #toast {
    display: none !important;
  }
  main {
    margin: 0;
    padding: 0;
  }
  .card {
    border: 0;
  }
  body {
    background: white;
  }
}
