:root {
  color-scheme: light;
  font-family: Vazirmatn, Tahoma, Arial, sans-serif;
  color: #172822;
  background: #eef2ee;
  --paper: #fff;
  --line: #dce6df;
  --muted: #52665d;
  --brand: #14694f;
  --brand-dark: #0d4f3a;
  --wash: #e7f3ec;
  --dark: #142c27;
  --danger: #9c272c;
  --radius: 16px;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--brand-dark); text-decoration: none; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 3px solid #56a888; outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.55rem, 3vw, 2.3rem); letter-spacing: -.03em; }
h2 { font-size: 1.1rem; }
p { line-height: 1.85; }
small, .muted { color: var(--muted); }
bdi, .ltr { direction: ltr; unicode-bidi: isolate; }
.startup { padding: 2rem; }
.shell { min-height: 100dvh; }

.dashboard { min-height: 100dvh; display: grid; grid-template-columns: 238px minmax(0, 1fr); }
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  background: var(--dark);
  color: #e9f4eb;
  padding: 28px 19px;
  min-height: 100%;
}
.brand { display: flex; gap: .7rem; align-items: center; font-size: 1.1rem; font-weight: 750; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: #a5e0b9;
  color: #113527;
  border-radius: 11px;
  font-size: 1.12rem;
}
.sidebar nav { display: grid; gap: .35rem; }
.nav-item {
  padding: .77rem .88rem;
  text-align: start;
  border-radius: 10px;
  border: 1px solid transparent;
  color: #d6e6df;
  background: transparent;
}
.nav-item:hover, .nav-item[aria-current="page"] { background: #28453b; color: #fff; }
.nav-item[aria-current="page"] { border-color: #456658; }
.account { margin-top: auto; display: grid; gap: .48rem; padding: 1rem .55rem 0; border-top: 1px solid #3b534a; }
.account small { color: #b6cbc1; }
.account button { color: #f1faf5; padding-inline: 0; }
.workspace { padding: clamp(18px, 4vw, 58px); min-width: 0; }
#view { display: grid; gap: 20px; max-width: 1280px; margin-inline: auto; }
.page-head, .card-head, .toolbar, .actions, .pager {
  display: flex;
  flex-wrap: wrap;
  gap: .68rem;
  align-items: center;
}
.page-head, .card-head { justify-content: space-between; }
.page-head p { margin-top: 6px; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(13px, 2vw, 24px);
  min-width: 0;
}
.card > * + * { margin-top: 15px; }
.card-head > div { display: grid; gap: .45rem; }
.btn {
  min-height: 41px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  border: 1px solid transparent;
  padding: .55rem .85rem;
  border-radius: 9px;
  font-weight: 650;
  background: var(--brand);
  color: #fff;
}
.btn:hover { background: var(--brand-dark); }
.btn.secondary { color: var(--brand-dark); background: #f1f7f3; border-color: #d6e6dc; }
.btn.secondary:hover { background: var(--wash); }
.btn.minor { background: transparent; color: var(--brand-dark); padding-inline: .45rem; }
.btn.minor:hover { background: var(--wash); }
.btn.danger { background: #faeeee; color: var(--danger); }
.btn.danger:hover { background: #f7dfe0; }
.btn.small { min-height: 35px; font-size: .83rem; padding: .35rem .6rem; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 12px; align-items: end; }
.field { display: grid; gap: .45rem; min-width: 0; }
.field > span:first-child { font-weight: 650; font-size: .88rem; }
input:not([type="checkbox"]), select, textarea {
  width: 100%;
  min-height: 41px;
  padding: .58rem .65rem;
  border: 1px solid #cbd9cf;
  border-radius: 9px;
  background: #fff;
  color: #172822;
}
.checkbox { display: flex; gap: .48rem; align-items: center; }
textarea { resize: vertical; }
.search { flex: 0 1 420px; }
.search input { flex: 1 1 160px; width: auto; }
.error { color: var(--danger); font-size: .9rem; }
.empty { padding: 1.2rem .4rem; color: var(--muted); }
.table-wrap { overflow-x: auto; }
table { width: 100%; font-size: .88rem; border-collapse: collapse; text-align: start; }
th, td { padding: .74rem .62rem; border-bottom: 1px solid #e6ece7; text-align: start; vertical-align: middle; }
th { background: #f2f6f3; color: #466055; font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td .actions { flex-wrap: nowrap; }
.nowrap { white-space: nowrap; }
.subline { display: block; margin-top: 4px; }
.badge {
  display: inline-block;
  white-space: nowrap;
  border-radius: 99px;
  padding: .29rem .56rem;
  font-size: .77rem;
  font-weight: 680;
  background: #eff2ef;
  color: #46564d;
}
.badge.open { background: #fcf0d7; color: #705011; }
.badge.complete { background: #e4f3e9; color: #135a40; }
.badge.manual { background: #eaf0fe; color: #2f4d8b; }
.badge.missing { background: #faeeee; color: #88272d; }
.pager { justify-content: flex-end; margin-top: 12px; }
.report-results { margin-top: 20px; }
.worker-card { max-width: 730px; }
.worker-state {
  display: grid;
  gap: .7rem;
  padding: 17px;
  border-radius: 12px;
  border: 1px solid #d7e8de;
  background: #f2f8f4;
}
.worker-card .btn:not(.small) { min-height: 48px; }
.history-entry { display: flex; gap: .8rem; align-items: center; justify-content: space-between; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: .8rem; }
.welcome { min-height: 100dvh; display: grid; grid-template-columns: minmax(270px, 2fr) minmax(350px, 3fr); }
.welcome-side { background: var(--dark); color: white; padding: clamp(24px, 7vw, 100px); display: flex; flex-direction: column; justify-content: space-between; gap: 42px; }
.welcome-side h1 { font-size: clamp(1.6rem, 4vw, 3.3rem); }
.welcome-side p { color: #c6dcd0; margin-top: 14px; max-width: 40ch; }
.welcome-body { display: grid; place-items: center; padding: 25px; }
.login-card { width: min(100%, 420px); padding: clamp(20px, 4vw, 36px); }
.login-card form, .dialog-form { display: grid; gap: 13px; }
.login-card .btn { margin-top: 5px; }
.dialog {
  width: min(calc(100% - 24px), 620px);
  max-height: calc(100dvh - 28px);
  color: #172822;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(16px, 3vw, 25px);
  box-shadow: 0 16px 80px #12372c35;
}
.dialog::backdrop { background: #17282280; }
.dialog > * + * { margin-top: 15px; }
.dialog .two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dialog dt { color: var(--muted); font-weight: 650; }
.dialog dd { margin: 0; overflow-wrap: anywhere; }
.pick-list { display: grid; gap: .4rem; max-height: 45dvh; overflow-y: auto; }
.pick-list button { justify-content: flex-start; text-align: start; }
.notice {
  position: fixed;
  bottom: 20px;
  inset-inline: 20px;
  width: max-content;
  max-width: calc(100% - 40px);
  margin-inline: auto;
  padding: .65rem 1rem;
  color: #fff;
  background: #183a2e;
  border-radius: 10px;
  z-index: 2;
}
@media (max-width: 760px) {
  .dashboard { grid-template-columns: 1fr; }
  .sidebar { padding: 13px 14px; gap: 11px; min-height: auto; }
  .sidebar nav { display: flex; gap: 4px; overflow-x: auto; order: 3; }
  .nav-item { white-space: nowrap; padding: .5rem .65rem; }
  .account { margin: 0; padding: 0; border: 0; grid-template-columns: auto auto 1fr; align-items: center; }
  .account button { justify-self: end; min-height: 32px; }
  .welcome { grid-template-columns: 1fr; align-content: start; }
  .welcome-side { padding: 21px; gap: 25px; }
  .welcome-body { padding: 22px 16px; }
  .workspace { padding: 18px 12px; }
}
