:root {
  --dark: #183f34;
  --green: #247758;
  --mint: #e9f5ef;
  --bg: #f5f7f6;
  --line: #e1e9e5;
  --text: #19372e;
  --muted: #657970;
  --red: #ad453e;
  --amber: #9b6c1b;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    15px/1.5 Inter,
    "Segoe UI",
    Arial,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #e5b957;
  outline-offset: 2px;
}
.shell {
  display: flex;
  min-height: 100vh;
}
.side {
  width: 252px;
  background: var(--dark);
  color: #eaf8f0;
  padding: 28px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.logo {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 10px;
}
.logo-icon {
  background: #36765c;
  border-radius: 12px;
  padding: 10px;
  font-size: 25px;
}
.logo strong {
  display: block;
  font-size: 18px;
}
.logo small {
  color: #bbd9ca;
}
.nav-head {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 10px;
  color: #9ebdaf;
  padding: 0 12px;
  margin-bottom: 8px;
}
.nav-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  background: transparent;
  color: #d6e9de;
  border: 0;
  border-radius: 10px;
  padding: 11px 13px;
  margin: 3px 0;
}
.nav-button.active,
.nav-button:hover {
  background: #356451;
  color: white;
}
.nav-button .symbol {
  width: 22px;
  text-align: center;
}
.side-bottom {
  margin-top: auto;
  border-top: 1px solid #477362;
  padding: 16px 11px;
  font-size: 12px;
  color: #bfd6c9;
}
.workspace {
  flex: 1;
  min-width: 0;
}
.topbar {
  background: white;
  border-bottom: 1px solid var(--line);
  height: 78px;
  padding: 0 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.crumb {
  font-size: 13px;
  color: var(--muted);
}
.identity {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.avatar {
  background: #e5efe9;
  color: var(--dark);
  border-radius: 50%;
  height: 35px;
  width: 35px;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.main {
  padding: 35px;
  max-width: 1450px;
  margin: auto;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
}
h1 {
  font-size: 30px;
  letter-spacing: -0.035em;
  margin: 5px 0 9px;
  line-height: 1.2;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.02em;
  margin: 0;
}
h3 {
  font-size: 15px;
  margin: 0;
}
.sub {
  color: var(--muted);
  margin: 0 0 24px;
}
.hero {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
}
.pill {
  font-size: 11px;
  font-weight: 650;
  border-radius: 99px;
  padding: 5px 10px;
  background: #ebf0ed;
  color: #415d50;
  white-space: nowrap;
}
.pill.red {
  background: #faeae8;
  color: #9b3a35;
}
.pill.orange {
  background: #fff2dc;
  color: #805910;
}
.pill.green {
  background: #e4f4e9;
  color: #286744;
}
.pill.na {
  background: #edf0ef;
  color: #68756f;
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin: 24px 0;
}
.kpi {
  border: 1px solid var(--line);
  background: white;
  border-radius: 14px;
  padding: 19px 21px;
}
.kpi span {
  font-size: 12px;
  color: var(--muted);
}
.kpi strong {
  display: block;
  font-size: 31px;
  letter-spacing: -0.04em;
  margin-top: 7px;
  line-height: 1.2;
}
.kpi small {
  color: var(--muted);
  font-size: 11px;
}
.panel {
  border: 1px solid var(--line);
  background: white;
  border-radius: 15px;
  padding: 23px;
  margin-bottom: 20px;
  box-shadow: 0 3px 13px #213e3010;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 17px;
}
.panel-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.tools {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.btn {
  border: 1px solid #cfddd5;
  border-radius: 9px;
  background: white;
  padding: 9px 13px;
  color: var(--dark);
  font-weight: 600;
  font-size: 13px;
}
.btn.primary {
  color: white;
  background: var(--green);
  border-color: var(--green);
}
.btn:hover {
  filter: brightness(0.97);
}
.filter {
  border: 1px solid #d8e2dc;
  background: white;
  border-radius: 9px;
  padding: 9px 12px;
  min-width: 145px;
  color: var(--text);
}
.search {
  min-width: 220px;
}
.tablewrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  font-size: 11px;
  color: #72857a;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  background: #f8faf8;
}
th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid #eaf0ec;
}
td {
  font-size: 13px;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #f7faf8;
}
.task-title {
  border: 0;
  background: transparent;
  text-align: left;
  color: var(--text);
  font-weight: 650;
  padding: 0;
  max-width: 510px;
}
.task-title:hover {
  color: var(--green);
  text-decoration: underline;
}
.task-id {
  display: inline-block;
  color: #85938a;
  font-size: 11px;
  margin-right: 8px;
}
.note {
  color: var(--muted);
  font-size: 12px;
}
.progress {
  height: 8px;
  background: #e8efea;
  border-radius: 9px;
  overflow: hidden;
}
.progress > span {
  display: block;
  background: var(--green);
  height: 100%;
  border-radius: 9px;
}
.dept-row {
  display: grid;
  grid-template-columns: 170px 1fr 55px 95px;
  gap: 18px;
  align-items: center;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
}
.dept-row:last-child {
  border: 0;
}
.dept-name {
  font-weight: 650;
}
.activity {
  display: flex;
  gap: 11px;
  padding: 13px 0;
  border-bottom: 1px solid #eef2ef;
}
.activity:last-child {
  border: 0;
}
.activity-dot {
  height: 31px;
  min-width: 31px;
  background: #e8f2eb;
  color: var(--green);
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.activity strong {
  font-size: 13px;
}
.activity small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.two {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 18px;
}
.empty {
  padding: 28px;
  color: var(--muted);
  text-align: center;
  background: #f8faf9;
  border-radius: 10px;
}
.backdrop {
  position: fixed;
  inset: 0;
  background: #10291d78;
  z-index: 10;
  display: none;
}
.backdrop.show {
  display: block;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(610px, 100vw);
  background: white;
  z-index: 11;
  transform: translateX(101%);
  transition: transform 0.2s;
  overflow: auto;
  box-shadow: -10px 0 50px #10291d2b;
  padding: 29px;
}
.drawer.show {
  transform: translateX(0);
}
.drawerhead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}
.drawer h2 {
  font-size: 23px;
  margin: 12px 0 7px;
}
.drawer p {
  color: var(--muted);
}
.detailgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 20px 0;
}
.form-field {
  display: block;
  font-size: 12px;
  font-weight: 650;
  color: #456357;
  margin-bottom: 15px;
}
.form-field input,
.form-field textarea,
.form-field select {
  display: block;
  width: 100%;
  border: 1px solid #d6e1d9;
  background: #fff;
  border-radius: 9px;
  padding: 10px;
  margin-top: 6px;
  color: var(--text);
}
.form-field textarea {
  min-height: 90px;
  resize: vertical;
}
.detail-section {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.details-small {
  font-size: 12px;
  color: var(--muted);
}
.details-small p {
  margin: 9px 0;
}
.callout {
  border-radius: 10px;
  padding: 14px 16px;
  background: #f0f6f2;
  color: #446451;
  font-size: 12px;
  margin: 18px 0;
}
.foot {
  font-size: 12px;
  color: var(--muted);
  margin-top: 25px;
}
.saving-list {
  display: grid;
  gap: 10px;
}
.saving-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.saving-item h3 {
  margin-bottom: 4px;
}
.saving-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.saving-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.saving-form label {
  font-size: 12px;
}
.saving-form input,
.saving-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 10px;
  border-radius: 8px;
  margin-top: 4px;
}
.saving-form .wide {
  grid-column: 1/-1;
}
.hidden {
  display: none !important;
}
#notice {
  font-size: 12px;
  color: var(--green);
}
@media (max-width: 1000px) {
  .side {
    width: 207px;
  }
  .main {
    padding: 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .two {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 650px) {
  .shell {
    display: block;
  }
  .side {
    position: static;
    height: auto;
    width: 100%;
    padding: 12px;
    gap: 9px;
  }
  .logo {
    padding: 0;
  }
  .side nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
  }
  .nav-head,
  .side-bottom {
    display: none;
  }
  .nav-button {
    white-space: nowrap;
    width: auto;
    padding: 9px;
  }
  .topbar {
    height: 60px;
    padding: 0 15px;
  }
  .main {
    padding: 20px 13px;
  }
  h1 {
    font-size: 25px;
  }
  .grid {
    gap: 9px;
  }
  .kpi {
    padding: 13px;
  }
  .kpi strong {
    font-size: 25px;
  }
  .hero,
  .panel-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .dept-row {
    grid-template-columns: 1fr 1fr 40px;
    gap: 8px;
  }
  .dept-row .dept-go {
    display: none;
  }
  .detailgrid,
  .saving-form {
    grid-template-columns: 1fr;
  }
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-panel {
  width: min(100%, 470px);
  padding: 36px;
}
.login-panel .logo-icon {
  margin-bottom: 24px;
}
.login-panel h1 {
  font-size: 32px;
}
.login-panel form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}
.form-field {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 600;
  color: #51625b;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font: inherit;
  padding: 12px;
  border: 1px solid #d8e1dc;
  border-radius: 9px;
  background: #fff;
  color: #162f25;
  min-height: 44px;
}
.form-field textarea {
  min-height: 110px;
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus,
.filter:focus,
.form-field select:focus {
  outline: 3px solid #9be3c2;
  outline-offset: 1px;
}
.error {
  color: #a32534;
  white-space: pre-wrap;
}
.notice {
  font-size: 12px;
  min-height: 22px;
  margin-bottom: 14px;
}
.logo small {
  display: block;
  margin-top: 5px;
  color: #9cb6a9;
  font-size: 11px;
}
.topbar .btn {
  padding: 8px 10px;
  font-size: 12px;
}
.task-title {
  display: block;
  background: transparent;
  border: 0;
  text-align: left;
  font-family: inherit;
  color: inherit;
  padding: 0;
  cursor: pointer;
  line-height: 1.55;
}
.task-title:hover {
  text-decoration: underline;
}
.task-title .task-id {
  display: block;
}
.results {
  padding: 5px 0 8px;
}
.results > div {
  background: #eff9f2;
  border-radius: 12px;
  padding: 20px;
}
.results span {
  display: block;
  font-size: 13px;
  color: #506c5b;
}
.results strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  color: #15704a;
}
.results small {
  font-size: 13px;
}
.activity small {
  display: block;
  color: #718078;
  font-size: 11px;
  margin-top: 5px;
}
.activity details {
  font-size: 12px;
  margin-top: 8px;
}
.activity-dot {
  flex: 0 0 28px;
}
.activity > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.saving-item {
  padding: 18px 0;
  border-bottom: 1px solid #e6ece8;
}
.saving-item h3 {
  font-size: 15px;
}
.saving-item p {
  font-size: 13px;
  color: #5a6e62;
  white-space: pre-wrap;
}
.details-small {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.drawer {
  overflow-y: auto;
}
.drawer h2 {
  font-size: 22px;
  line-height: 1.4;
  margin-bottom: 14px;
}
.drawerhead {
  position: sticky;
  top: -1px;
  background: #fff;
  z-index: 2;
  padding-bottom: 15px;
}
.drawer .btn:disabled {
  opacity: 0.5;
  cursor: wait;
}
.pill.na {
  background: #eceeec;
  color: #64736b;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #65bd94;
  outline-offset: 3px;
}
.empty {
  padding: 24px;
  color: #768079;
}
.panel {
  margin-bottom: 22px;
}
details summary {
  cursor: pointer;
}
#drawer:not(.show) {
  visibility: hidden;
}
#drawer.show {
  visibility: visible;
}
.detailgrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
td {
  vertical-align: top;
}
.two > .panel {
  min-width: 0;
}
.nav-button {
  line-height: 1.5;
}
button {
  touch-action: manipulation;
}
.kpi strong {
  overflow-wrap: anywhere;
}
@media (max-width: 1050px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .topbar {
    height: auto;
    min-height: 78px;
    flex-wrap: wrap;
    gap: 10px;
    padding: 18px;
  }
  .identity {
    flex-wrap: wrap;
  }
  .two {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .side {
    position: relative;
    width: 100%;
    height: auto;
    padding: 20px;
  }
  .side-bottom {
    display: none;
  }
  .workspace {
    margin-left: 0;
  }
  .side nav {
    display: flex;
    gap: 6px;
    overflow: auto;
    padding-top: 14px;
  }
  .nav-head {
    display: none;
  }
  .nav-button {
    min-width: max-content;
    width: auto;
    margin: 0;
    padding: 10px;
  }
  .nav-button .symbol {
    display: none;
  }
  .main {
    padding: 20px;
  }
  .topbar {
    padding: 16px 20px;
  }
  .hero {
    display: block;
  }
  h1 {
    font-size: 28px;
  }
  .drawer {
    width: 100%;
    max-width: 100vw;
    padding: 22px;
  }
  .grid {
    gap: 10px;
  }
  .kpi {
    padding: 18px;
  }
  .kpi strong {
    font-size: 27px;
  }
  .tools {
    flex-wrap: wrap;
  }
  .filter {
    max-width: 100%;
  }
  .panel {
    padding: 20px;
  }
  .dept-row {
    flex-wrap: wrap;
  }
  .hero .pill {
    margin-top: 10px;
  }
  .identity > span:not(.avatar) {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

.task-red td {
  background: #fff8f7;
}
.task-orange td {
  background: #fffbef;
}
.task-green td {
  background: #f1faf4;
}
.task-na td {
  background: #f5f6f5;
}
