@font-face {
  font-family:Vazirmatn;
  src:url('/portal-assets/assets/vazirmatn.woff2') format('woff2');
  font-weight:100 900;
  font-display:swap
}
:root {
  --gold:#d9b377;
  --ink:#272622;
  --muted:#827d73;
  --line:#e8e4dd;
  --paper:#faf9f6;
  --soft:#f3eee5;
  --warn:#92652e;
  --green:#577465;
  --shadow:0 5px 22px #30291c05
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font:14px/1.85 Vazirmatn,Tahoma,sans-serif
}
button,input,textarea,select {
  font:inherit
}
button {
  cursor:pointer;
  border:1px solid var(--line);
  border-radius:9px;
  padding:9px 15px;
  background:white;
  color:var(--ink);
  transition:background .15s
}
button:hover:not(:disabled) {
  background:var(--soft);
  border-color:#d7cbb9
}
button:disabled {
  opacity:.48;
  cursor:not-allowed
}
button[aria-busy=true] {
  opacity:.6;
  cursor:wait
}
button.primary {
  background:var(--gold);
  border-color:var(--gold);
  color:#35291c;
  font-weight:650
}
button.primary:hover:not(:disabled) {
  background:#cda56a
}
button.quiet {
  border-color:transparent;
  background:transparent;
  color:var(--muted)
}
:focus-visible {
  outline:3px solid #b68b43;
  outline-offset:3px
}
a {
  color:inherit
}
h1,h2,h3,p {
  margin:0
}
h1 {
  font-size:28px;
  letter-spacing:-.6px;
  line-height:1.6
}
h2 {
  font-size:16px;
  font-weight:700
}
h3 {
  font-size:14px
}
small {
  font-size:11px
}
input,select,textarea {
  display:block;
  width:100%;
  min-width:0;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:9px;
  background:#fdfcfb;
  color:var(--ink);
  margin-top:6px;
  min-height:44px
}
textarea {
  resize:vertical;
  min-height:100px
}
input::placeholder,textarea::placeholder {
  color:#a7a095
}
label {
  display:block;
  font-size:12px;
  color:#645e54;
  font-weight:500
}
input:disabled,select:disabled,textarea:disabled {
  background:#f5f3ef
}
input[type=checkbox] {
  display:inline-block;
  width:16px;
  min-height:16px;
  accent-color:#a77e40;
  margin:0;
  flex-shrink:0
}
.checkbox {
  display:inline-flex;
  gap:8px;
  align-items:center;
  font-weight:400
}
pre {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  font:12px/1.9 Vazirmatn;
  max-height:400px;
  overflow:auto
}
.muted {
  color:var(--muted);
  font-size:12px
}
.skip {
  position:absolute;
  top:-100px;
  z-index:20
}
.skip:focus {
  top:10px;
  background:white;
  padding:15px
}
.sidebar {
  position:fixed;
  inset-block:0;
  right:0;
  width:235px;
  background:#fff;
  border-left:1px solid var(--line);
  padding:32px 20px;
  display:flex;
  flex-direction:column;
  z-index:5
}
.brand {
  display:flex;
  gap:14px;
  align-items:center;
  text-decoration:none;
  padding:0 16px 28px
}
.brand img {
  object-fit:contain
}
.brand strong {
  display:block;
  font-size:29px;
  font-weight:750;
  line-height:1.6
}
.brand small {
  display:block;
  color:var(--muted);
  font-size:10px
}
.nav-caption {
  font-size:11px;
  color:#a19a8d;
  padding:16px 15px 12px
}
.sidebar nav {
  display:flex;
  flex-direction:column;
  gap:7px
}
.sidebar nav button {
  text-align:right;
  border:none;
  background:transparent;
  color:#706b62;
  font-size:13px;
  padding:12px 14px;
  display:flex;
  gap:12px;
  align-items:center
}
.sidebar nav button span {
  font-size:20px;
  width:23px;
  text-align:center;
  color:#a29a8a
}
.sidebar nav button[aria-current=page] {
  background:#f5ede0;
  color:#805e2f;
  font-weight:700
}
.sidebar nav button[aria-current=page] span {
  color:#b38b4e
}
.sidebar-foot {
  margin-top:auto;
  border-top:1px solid var(--line);
  padding:24px 14px 0
}
.sidebar-foot strong {
  display:block;
  font-size:12px;
  color:#9b783e
}
.sidebar-foot small {
  color:var(--muted)
}
.workspace {
  margin-right:235px
}
.topbar {
  height:78px;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 36px;
  background:#fffc
}
.breadcrumb {
  font-size:12px;
  color:#91897a;
  display:flex;
  gap:12px
}
.breadcrumb strong {
  color:#514a3f;
  font-weight:500
}
.breadcrumb span {
  color:#c6c0b5
}
.top-actions {
  display:flex;
  gap:18px;
  align-items:center
}
.top-actions time {
  color:#857c6d;
  font-size:11px
}
main {
  max-width:1600px;
  padding:32px 36px;
  margin:auto
}
.page-heading {
  display:flex;
  gap:20px;
  align-items:center;
  justify-content:space-between;
  margin-bottom:24px
}
.eyebrow {
  color:#a88753;
  font-size:11px;
  letter-spacing:.3px;
  margin-bottom:6px
}
.page-heading p:not(.eyebrow) {
  font-size:12px;
  color:var(--muted);
  margin-top:8px
}
.heading-actions {
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  justify-content:flex-end
}
.heading-actions button {
  font-size:12px
}
.badge {
  display:inline-flex;
  align-items:center;
  gap:6px;
  white-space:nowrap;
  padding:4px 10px;
  border-radius:6px;
  font-size:10px;
  font-weight:500;
  color:var(--green);
  background:#edf3ef
}
.badge.neutral {
  color:#7c7363;
  background:#f2f0ec
}
.badge.amber {
  background:#f7f0e3;
  color:var(--warn)
}
.badge.red {
  background:#f7eeec;
  color:#a7685e
}
.notice {
  border:1px solid #e8dac1;
  border-radius:12px;
  background:#fcf8ef;
  display:flex;
  align-items:center;
  gap:13px;
  padding:15px 18px;
  margin-bottom:13px
}
.notice strong {
  font-size:12px;
  color:#79613d
}
.notice p {
  font-size:11px;
  color:#8d7c60;
  margin-top:3px
}
.notice>.badge {
  margin-right:auto
}
.notice-dot {
  width:8px;
  height:8px;
  background:var(--gold);
  border-radius:50%;
  flex-shrink:0
}
.snapshot-strip {
  display:flex;
  gap:23px;
  flex-wrap:wrap;
  color:#9b9283;
  font-size:10px;
  margin-bottom:30px;
  padding:0 4px
}
.snapshot-strip strong {
  font-weight:500;
  color:#776e60
}
.section-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:0 0 16px
}
.section-heading h2 {
  font-size:17px
}
.kpi-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin-bottom:24px
}
.kpi {
  background:white;
  border:1px solid var(--line);
  border-radius:16px;
  padding:18px 20px;
  box-shadow:var(--shadow);
  position:relative;
  overflow:hidden
}
.kpi.featured {
  background:#302d28;
  color:white;
  border-color:#302d28
}
.kpi-label {
  font-size:11px;
  color:#8c8376
}
.kpi.featured .kpi-label {
  color:#d6c9b6
}
.kpi-value {
  display:block;
  font-size:31px;
  line-height:1.55;
  font-weight:650;
  margin:9px 0 5px;
  letter-spacing:-1px
}
.kpi-note {
  font-size:10px;
  color:#a79a86
}
.kpi-icon {
  position:absolute;
  left:18px;
  top:18px;
  color:#c4b492;
  background:#f8f5ef;
  border-radius:8px;
  width:28px;
  height:28px;
  text-align:center;
  font-size:16px
}
.featured .kpi-icon {
  background:#454038;
  color:var(--gold)
}
.card {
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:23px;
  box-shadow:var(--shadow);
  margin-bottom:20px;
  min-width:0
}
.card-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:23px
}
.card-head p {
  font-size:11px;
  color:#998f80;
  margin-top:4px
}
.card-head button {
  font-size:11px
}
.mini-icon {
  color:#b8a27c;
  background:#f8f4ec;
  padding:2px 9px;
  border-radius:8px;
  font-size:18px
}
.analytics-grid {
  display:grid;
  grid-template-columns:1.5fr 1fr;
  gap:20px
}
.three-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px
}
.two-grid {
  display:grid;
  grid-template-columns:1.15fr 1fr;
  gap:20px;
  align-items:start
}
.bar-row {
  display:grid;
  grid-template-columns:120px minmax(0,1fr) 35px;
  align-items:center;
  gap:12px;
  margin-bottom:17px;
  font-size:11px;
  color:#746a5b
}
.bar-track {
  height:8px;
  background:#f3f0ea;
  border-radius:8px;
  overflow:hidden
}
.bar-fill {
  height:100%;
  background:var(--gold);
  border-radius:8px
}
.bar-row:nth-child(even) .bar-fill {
  background:#c9b695
}
.bar-value {
  text-align:left;
  color:#5d5240
}
.status-row {
  display:flex;
  align-items:center;
  gap:11px;
  padding:12px 0;
  border-bottom:1px solid #f3f0eb;
  font-size:12px
}
.status-row strong {
  margin-right:auto;
  font-size:16px;
  font-weight:600
}
.status-dot {
  height:7px;
  width:7px;
  background:var(--gold);
  border-radius:50%
}
.status-row:nth-child(2) .status-dot {
  background:#8f9c8a
}
.status-row:nth-child(3) .status-dot {
  background:#bfb7a8
}
.status-row:nth-child(4) .status-dot {
  background:#b18c80
}
.empty {
  padding:36px 18px;
  text-align:center;
  color:#a19480;
  font-size:12px;
  background:repeating-linear-gradient(135deg,#fdfcf9,#fdfcf9 10px,#fcfbf8 10px,#fcfbf8 11px);
  border:1px dashed #eae2d6;
  border-radius:10px;
  min-height:110px;
  display:grid;
  place-items:center
}
.empty.compact {
  min-height:75px;
  margin-bottom:18px;
  padding:16px
}
.footnote {
  font-size:10px;
  color:#9d9485;
  margin-top:16px
}
.list-item {
  display:flex;
  gap:12px;
  align-items:start;
  padding:13px 0;
  border-bottom:1px solid #f1ede7
}
.list-item button {
  font-size:11px;
  text-align:right;
  background:none;
  border:0;
  padding:0;
  line-height:1.9
}
.list-item small {
  color:#9d9383;
  display:block
}
.list-item .count {
  margin-right:auto
}
.count {
  font-size:11px;
  color:#998464;
  background:#f6f1e8;
  border-radius:6px;
  padding:2px 8px
}
.filter-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:17px
}
.filter-grid .wide {
  grid-column:span 2
}
.filter-footer {
  display:flex;
  gap:15px;
  align-items:center;
  justify-content:space-between;
  margin-top:22px;
  border-top:1px solid var(--line);
  padding-top:18px
}
.filter-footer>div {
  display:flex;
  gap:20px;
  flex-wrap:wrap
}
.table-card {
  padding:0;
  overflow:hidden
}
.table-card>.card-head,.pagination {
  padding:20px 23px;
  margin:0
}
.table-scroll {
  overflow:auto
}
table {
  border-collapse:collapse;
  min-width:940px;
  width:100%;
  font-size:11px;
  text-align:right
}
thead {
  background:#f8f6f2;
  color:#a09380
}
th {
  font-weight:500;
  white-space:nowrap;
  padding:13px
}
td {
  padding:16px 13px;
  border-bottom:1px solid #f2eee7;
  max-width:250px
}
td.title-cell {
  min-width:210px;
  font-weight:600
}
td button {
  font-size:10px;
  padding:5px 9px
}
td .secondary {
  font-size:9px;
  color:#a69b8a;
  font-weight:400;
  display:block;
  direction:ltr;
  text-align:right;
  overflow-wrap:anywhere
}
.pagination {
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:11px;
  color:#a19480
}
.pagination>div {
  display:flex;
  gap:8px
}
.pagination button {
  font-size:11px
}
.people-controls {
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:end
}
.people-controls label {
  flex:1;
  min-width:180px
}
#employeeSummary {
  margin-top:24px
}
#employeeSummary .kpi-grid {
  grid-template-columns:repeat(3,minmax(0,1fr))
}
.selection {
  padding:12px;
  border-right:3px solid var(--gold);
  background:#faf7f1;
  font-size:11px;
  margin-bottom:20px
}
.proposal-item {
  border-bottom:1px solid var(--line);
  padding:12px 0;
  font-size:12px
}
.proposal-item small {
  display:block;
  color:var(--muted)
}
.button-row {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:18px
}
.full {
  width:100%
}
.outcome {
  font-size:12px;
  border:1px solid var(--line);
  border-radius:9px;
  padding:16px;
  margin-top:16px;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  color:#817561
}
.safety-list {
  list-style:none;
  padding:0;
  margin:18px 0
}
.safety-list li {
  display:flex;
  gap:15px;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
  padding:16px 0;
  font-size:12px
}
.safety-list strong {
  font-weight:500
}
.activity-row {
  padding:14px 0;
  border-bottom:1px solid var(--line);
  font-size:12px
}
.activity-row time {
  display:block;
  color:var(--muted);
  font-size:10px
}
.page-footer {
  display:flex;
  justify-content:space-between;
  font-size:10px;
  color:#aaa08f;
  padding:20px 0 0;
  border-top:1px solid var(--line);
  margin-top:16px
}
dialog {
  position:fixed;
  inset:0 0 0 auto;
  margin:0;
  width:520px;
  max-width:95vw;
  height:100dvh;
  max-height:100dvh;
  border:0;
  border-left:1px solid var(--line);
  padding:28px;
  background:var(--paper);
  color:var(--ink);
  box-shadow:-10px 0 70px #0002;
  overflow:auto
}
dialog::backdrop {
  background:#26221960;
  backdrop-filter:blur(2px)
}
.drawer-head {
  display:flex;
  align-items:start;
  justify-content:space-between;
  margin-bottom:26px
}
.drawer-head button {
  font-size:23px;
  padding:0 12px
}
.detail-description {
  font-size:13px;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  margin:18px 0;
  padding:18px;
  background:white;
  border-radius:10px
}
.detail-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px
}
.detail-field {
  font-size:12px;
  overflow-wrap:anywhere
}
.detail-field small {
  display:block;
  color:#a19480;
  margin-bottom:4px
}
.detail-field.wide {
  grid-column:span 2
}
.detail-field code {
  font:11px monospace;
  direction:ltr;
  display:block
}
.view[hidden],[hidden] {
  display:none!important
}
@media(min-width:1600px) {
  main {
    padding-inline:50px
  }
}
@media(max-width:1180px) {
  .sidebar {
    width:200px;
    padding-inline:12px
  }
  .workspace {
    margin-right:200px
  }
  main {
    padding:25px 22px
  }
  .topbar {
    padding-inline:22px
  }
  .heading-actions {
    max-width:220px
  }
  .three-grid {
    grid-template-columns:1fr 1fr
  }
  .three-grid>.card:last-child {
    grid-column:span 2
  }
  .filter-grid {
    grid-template-columns:repeat(3,minmax(0,1fr))
  }
}
@media(max-width:900px) {
  .sidebar {
    position:static;
    width:auto;
    padding:14px 18px;
    border-left:0;
    border-bottom:1px solid var(--line)
  }
  .brand {
    padding:0;
    gap:10px
  }
  .brand img {
    height:38px;
    width:21px
  }
  .brand strong {
    font-size:23px
  }
  .brand small {
    font-size:9px
  }
  .nav-caption,.sidebar-foot {
    display:none
  }
  .sidebar nav {
    flex-direction:row;
    overflow:auto;
    margin-top:14px;
    gap:4px
  }
  .sidebar nav button {
    white-space:nowrap;
    padding:9px 12px;
    font-size:11px;
    gap:6px
  }
  .sidebar nav button span {
    font-size:15px;
    width:16px
  }
  .workspace {
    margin:0
  }
  .topbar {
    height:54px
  }
  .top-actions time {
    display:none
  }
  .page-heading {
    align-items:start
  }
  .kpi-grid {
    gap:10px
  }
  .kpi {
    padding:15px 13px
  }
  .kpi-label {
    max-width:75%
  }
  .kpi-icon {
    left:10px;
    top:12px;
    width:22px;
    height:22px;
    font-size:13px
  }
  .kpi-value {
    font-size:28px
  }
  .two-grid {
    grid-template-columns:1fr
  }
}
@media(max-width:640px) {
  main {
    padding:23px 14px
  }
  .topbar {
    padding-inline:16px
  }
  .breadcrumb {
    font-size:10px;
    gap:7px
  }
  .top-actions .badge {
    font-size:9px
  }
  .page-heading {
    display:block;
    margin-bottom:18px
  }
  h1 {
    font-size:24px
  }
  .heading-actions {
    max-width:none;
    justify-content:flex-start;
    margin-top:18px
  }
  .notice {
    padding:13px;
    align-items:start;
    gap:10px
  }
  .notice>.badge {
    display:none
  }
  .snapshot-strip {
    gap:7px 15px;
    margin-bottom:22px
  }
  .kpi-grid {
    grid-template-columns:1fr 1fr
  }
  .kpi {
    padding:17px
  }
  .kpi-icon {
    top:17px;
    left:15px
  }
  .analytics-grid,.three-grid {
    grid-template-columns:1fr;
    gap:0
  }
  .three-grid>.card:last-child {
    grid-column:auto
  }
  .card {
    padding:18px
  }
  .card-head {
    margin-bottom:18px
  }
  .filter-grid {
    grid-template-columns:1fr 1fr;
    gap:13px
  }
  .filter-footer {
    align-items:stretch;
    flex-direction:column
  }
  .filter-footer>div {
    gap:10px
  }
  .bar-row {
    grid-template-columns:105px 1fr 25px
  }
  .pagination {
    align-items:start;
    gap:15px;
    flex-direction:column
  }
  .table-card>.card-head {
    padding:18px
  }
  .page-footer {
    gap:10px;
    flex-direction:column
  }
  .section-heading {
    gap:10px;
    align-items:start
  }
  .section-heading .muted {
    font-size:10px
  }
  #employeeSummary .kpi-grid {
    grid-template-columns:1fr 1fr
  }
  dialog {
    padding:20px
  }
  .safety-list li {
    font-size:11px
  }
  .two-grid {
    gap:0
  }
  .people-controls button {
    flex:1
  }
  .people-controls label {
    flex-basis:100%
  }
}

/* Shared organization entry. Executive dashboard layout stays unchanged. */
.portal-entry { max-width: 1200px; margin: auto; }
.portal-entry > .brand { padding-inline: 0; }
.portal-modules { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; margin-top: 28px; }
.portal-modules .card { margin-bottom: 0; }
.portal-modules .muted { direction: ltr; text-align: right; margin: 9px 0 18px; }
.portal-open { display: inline-block; background: var(--gold); border-radius: 9px; padding: 9px 15px; text-decoration: none; }
@media(max-width:900px) { .portal-modules { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:640px) { .portal-modules { grid-template-columns: 1fr; } }
