:root {
  --navy: #0e2235;
  --gold: #c5a052;
  --lime: #d9f65a;
  --paper: #f6f7f5;
  --ink: #15232c;
  --muted: #6d797f;
  --line: #dfe5e2;
  --green: #23866d;
  --red: #c84d52;
  --amber: #d28a24;
  --blue: #2c73b9;
}

.readonly-pill,
.readonly-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid #d8b35d;
  border-radius: 999px;
  color: #725014;
  background: #fff7dc;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.readonly-quick {
  cursor: default;
}

.readonly-quick em {
  color: #987126;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter,
    Segoe UI,
    Arial,
    sans-serif;
}
.demo-notice {
  height: 32px;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
}
.demo-notice span {
  background: var(--navy);
  color: #fff;
  padding: 4px 8px;
  border-radius: 3px;
}
.demo-notice button {
  position: absolute;
  right: 18px;
  background: none;
  border: 0;
  font-weight: 700;
  cursor: pointer;
}
.app-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 32px);
}
aside {
  background: linear-gradient(180deg, #0c2538, #092b27);
  color: #d1ddd9;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: calc(100vh - 32px);
  overflow: auto;
}
.brand {
  height: 82px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 20px;
  border-bottom: 1px solid #ffffff16;
}
.logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--lime);
  color: #12342b;
  display: grid;
  place-items: center;
  font: bold 15px Georgia;
}
.brand b {
  font: 700 18px Georgia;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 0.12em;
  color: #819d95;
  margin-top: 5px;
}
nav {
  padding: 14px 10px;
  flex: 1;
}
.nav-group {
  margin-bottom: 12px;
}
.nav-group > button {
  width: 100%;
  border: 0;
  background: transparent;
  color: #89a39c;
  text-align: left;
  padding: 8px 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.nav-item {
  width: 100%;
  border: 0;
  background: transparent;
  color: #c2d1cc;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 8px;
  text-align: left;
  font-size: 13px;
  cursor: pointer;
  margin: 2px 0;
}
.nav-item:hover,
.nav-item.active {
  background: #ffffff13;
  color: #fff;
}
.nav-item.active {
  box-shadow: inset 3px 0 var(--lime);
}
.nav-item i {
  font-style: normal;
  width: 20px;
  text-align: center;
}
.demo-user {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 15px;
  border-top: 1px solid #ffffff16;
  background: #ffffff08;
}
.demo-user > span {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--gold);
  display: grid;
  place-items: center;
  color: #10283d;
  font-weight: 800;
}
.demo-user b {
  font-size: 12px;
}
.demo-user small {
  display: block;
  font-size: 9px;
  color: #8da59f;
  margin-top: 3px;
}
main {
  min-width: 0;
}
.topbar {
  height: 82px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 8;
}
.topbar > div:first-of-type {
  margin-right: auto;
}
.topbar small {
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--green);
  font-weight: 800;
}
.topbar h1 {
  font: 700 24px Georgia;
  margin: 4px 0 0;
}
.global-search {
  width: 300px;
  height: 40px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border-radius: 7px;
  color: #7d8c8a;
}
.global-search input {
  border: 0;
  outline: 0;
  width: 100%;
  font-size: 12px;
}
.primary,
.secondary {
  border: 0;
  border-radius: 7px;
  background: var(--navy);
  color: #fff;
  padding: 11px 15px;
  font-weight: 700;
  cursor: pointer;
}
.secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 7px;
}
.icon-btn i {
  position: absolute;
  right: -4px;
  top: -5px;
  background: var(--red);
  color: #fff;
  border-radius: 10px;
  font: 8px Arial;
  padding: 3px 5px;
}
.mobile-menu {
  display: none;
}
#page {
  padding: 26px;
  max-width: 1550px;
  margin: auto;
}
.welcome {
  background: linear-gradient(120deg, #102d43, #176553);
  color: #fff;
  border-radius: 12px;
  padding: 26px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 12px 32px #18382b16;
}
.welcome h2 {
  font: 700 27px Georgia;
  margin: 0 0 7px;
}
.welcome p {
  margin: 0;
  color: #bfd1cb;
  font-size: 13px;
}
.welcome .date {
  background: #ffffff12;
  border: 1px solid #ffffff20;
  padding: 12px 16px;
  border-radius: 8px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 18px 0;
}
.metric {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 5px 18px #152c2407;
}
.metric .mi {
  width: 43px;
  height: 43px;
  border-radius: 9px;
  background: #e9f4f0;
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 20px;
}
.metric strong {
  display: block;
  font: 700 25px Georgia;
}
.metric small {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
}
.metric em {
  display: block;
  color: var(--green);
  font-style: normal;
  font-size: 10px;
  margin-top: 5px;
}
.layout-2 {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 16px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 5px 18px #152c2407;
  margin-bottom: 16px;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.card-head h3 {
  font: 700 17px Georgia;
  margin: 0;
}
.chart {
  height: 220px;
  display: flex;
  align-items: end;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 15px 12px 0;
}
.bar {
  flex: 1;
  background: linear-gradient(#2a8a72, #134b43);
  position: relative;
  border-radius: 5px 5px 0 0;
}
.bar span {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  color: var(--muted);
}
.bar i {
  position: absolute;
  top: -19px;
  left: 50%;
  transform: translateX(-50%);
  font: 9px Arial;
  color: #4b5c59;
}
.donut-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  height: 220px;
}
.donut {
  width: 145px;
  height: 145px;
  border-radius: 50%;
  background: conic-gradient(
    var(--green) 0 58%,
    var(--gold) 58% 78%,
    var(--red) 78% 89%,
    #d9e2df 89%
  );
  display: grid;
  place-items: center;
}
.donut:after {
  content: "92%";
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  font: 700 24px Georgia;
}
.legend p {
  font-size: 11px;
}
.legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 7px;
}
.table-card {
  padding: 0;
  overflow: hidden;
}
.table-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 17px 19px;
  border-bottom: 1px solid var(--line);
}
.table-tools h3 {
  font: 700 17px Georgia;
  margin: 0 auto 0 0;
}
.table-tools input,
.table-tools select {
  border: 1px solid var(--line);
  padding: 9px 10px;
  border-radius: 6px;
  background: #fff;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
th {
  text-align: left;
  padding: 12px 15px;
  background: #f1f5f3;
  color: #6b7774;
  font-size: 9px;
  letter-spacing: 0.07em;
  white-space: nowrap;
}
td {
  padding: 13px 15px;
  border-top: 1px solid #edf0ef;
  white-space: nowrap;
}
tbody tr:hover {
  background: #fbfcfb;
}
.status {
  display: inline-block;
  border-radius: 12px;
  padding: 5px 9px;
  font-size: 9px;
  font-weight: 800;
}
.green {
  background: #dff2ec;
  color: #19705d;
}
.amber {
  background: #fff0d5;
  color: #a86711;
}
.red {
  background: #fae2e3;
  color: #a93e43;
}
.blue {
  background: #e1edfa;
  color: #25649f;
}
.view-btn {
  border: 0;
  background: none;
  color: var(--blue);
  font-weight: 700;
  cursor: pointer;
}
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.quick {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 16px;
  text-align: left;
  cursor: pointer;
}
.quick:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.quick b {
  display: block;
  margin-top: 11px;
}
.quick small {
  color: var(--muted);
}
.activity {
  list-style: none;
  padding: 0;
  margin: 0;
}
.activity li {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 10px;
  margin: 17px 0;
}
.activity i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  margin-top: 5px;
}
.activity b {
  display: block;
  font-size: 12px;
}
.activity small {
  color: var(--muted);
}
.page-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 18px;
}
.page-intro h2 {
  font: 700 26px Georgia;
  margin: 0 0 6px;
}
.page-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.modal {
  position: fixed;
  inset: 0;
  background: #071722b8;
  display: grid;
  place-items: center;
  z-index: 40;
  padding: 20px;
}
.modal.hidden {
  display: none;
}
.modal-card {
  background: #fff;
  width: min(620px, 95vw);
  max-height: 85vh;
  overflow: auto;
  border-radius: 12px;
  padding: 26px;
  position: relative;
}
.modal-card > button {
  position: absolute;
  right: 14px;
  top: 12px;
  border: 0;
  background: none;
  font-size: 24px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.detail-grid div {
  background: #f3f6f5;
  padding: 12px;
}
.detail-grid small {
  display: block;
  color: var(--muted);
  font-size: 9px;
}
.detail-grid b {
  font-size: 13px;
}
#toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: #102b43;
  color: #fff;
  padding: 13px 18px;
  border-left: 4px solid var(--lime);
  border-radius: 6px;
  opacity: 0;
  transform: translateY(20px);
  transition: 0.25s;
  z-index: 50;
  font-size: 12px;
}
#toast.show {
  opacity: 1;
  transform: none;
}
.empty {
  text-align: center;
  padding: 50px;
  color: var(--muted);
}
@media (max-width: 1050px) {
  .app-shell {
    grid-template-columns: 220px 1fr;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .layout-2 {
    grid-template-columns: 1fr;
  }
  .global-search {
    width: 220px;
  }
  .quick-actions {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  .app-shell {
    display: block;
  }
  aside {
    position: fixed;
    left: -270px;
    z-index: 30;
    width: 260px;
    transition: 0.25s;
  }
  aside.open {
    left: 0;
  }
  .mobile-menu {
    display: block;
    border: 0;
    background: none;
    font-size: 21px;
  }
  .topbar {
    padding: 0 14px;
  }
  .topbar .primary,
  .global-search,
  .icon-btn {
    display: none;
  }
  #page {
    padding: 15px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .welcome {
    display: block;
  }
  .welcome .date {
    margin-top: 16px;
  }
  .quick-actions {
    grid-template-columns: 1fr;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
}
