@import url("/fonts.css");
:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Tahoma,
    sans-serif;
  color: #203047;
  background: #f5f7fa;
  font-synthesis: none;
  --teal: #008f80;
  --line: #e6ebf1;
  --muted: #798697;
  --nav: #101e2d;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 14px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a {
  color: var(--teal);
  text-decoration: none;
}
button {
  border: 0;
}
svg {
  vertical-align: middle;
  flex-shrink: 0;
}
.initial {
  padding: 40px;
  color: var(--muted);
}
.app {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 238px;
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--nav);
  color: #a6b4c4;
  display: flex;
  flex-direction: column;
  z-index: 20;
  padding: 29px 17px 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 10px 27px;
  color: #fff;
  letter-spacing: -0.7px;
  font-size: 22px;
  font-weight: 750;
}
.brand-icon {
  background: #00bba5;
  width: 36px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 2.5px;
  color: #7c90a3;
  margin-top: 5px;
  font-weight: 500;
}
.nav-caption {
  font-size: 10px;
  letter-spacing: 1.65px;
  font-weight: 650;
  color: #637b91;
  padding: 23px 14px 12px;
}
.nav-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  background: transparent;
  color: #91a4b9;
  text-align: left;
  padding: 13px 14px;
  font-size: 13px;
  margin-bottom: 5px;
  transition: 0.15s;
}
.nav-item.active {
  background: #113d42;
  color: #5bdfca;
}
.nav-item:hover {
  background: #1b3043;
  color: #fff;
}
.nav-item .count {
  margin-left: auto;
  font-size: 10px;
  background: #29424a;
  color: #88d7cb;
  padding: 2px 7px;
  border-radius: 5px;
}
.sidebar-note {
  margin: 25px 9px;
  padding: 15px 13px;
  background: #162b3b;
  border: 1px solid #233c4d;
  border-radius: 9px;
  color: #8b9faf;
  font-size: 11px;
  line-height: 1.8;
}
.sidebar-note strong {
  display: block;
  color: #c5d3df;
  margin-bottom: 4px;
  font-size: 12px;
}
.sidebar-bottom {
  margin-top: auto;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #253444;
  padding: 20px 7px 10px;
}
.avatar {
  background: #d8f2ec;
  color: #167c6a;
  border-radius: 9px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.profile .avatar {
  background: #22444d;
  color: #91d5c7;
}
.profile-name {
  font-size: 12px;
  color: #e5ecf4;
  max-width: 132px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.profile-role {
  font-size: 10px;
  color: #7b93a7;
  margin-top: 4px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.profile-actions {
  display: flex;
  gap: 4px;
}
.profile-actions button {
  padding: 9px;
  background: transparent;
  color: #8196aa;
  border-radius: 7px;
  flex: 1;
  font-size: 11px;
}
.profile-actions button:hover {
  background: #1b3043;
  color: #fff;
}
.workspace {
  margin-left: 238px;
  flex: 1;
  min-width: 0;
}
.topbar {
  height: 77px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 37px;
  gap: 15px;
}
.breadcrumb {
  font-size: 12px;
  color: #8491a1;
  display: flex;
  align-items: center;
  gap: 11px;
}
.breadcrumb strong {
  font-weight: 500;
  color: #3e4d60;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}
.system-label {
  font-size: 11px;
  color: #7b8a98;
  display: flex;
  align-items: center;
  gap: 7px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16ad93;
  display: inline-block;
  flex-shrink: 0;
}
.env-control {
  border: 1px solid #e1e7ed;
  border-radius: 7px;
  padding: 8px 11px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.env-control select {
  appearance: none;
  border: 0;
  background: transparent;
  color: #344458;
  font-size: 12px;
  cursor: pointer;
  padding-right: 6px;
}
.env-dot.prod {
  background: #00ac8c;
}
.env-dot.uat {
  background: #eba343;
}
.demo-badge {
  background: #fff1c9;
  color: #93600a;
  padding: 5px 9px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
}
.content {
  padding: 34px 37px 46px;
  max-width: 1730px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}
.eyebrow {
  color: var(--teal);
  letter-spacing: 1.7px;
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 9px;
}
.page-heading h1 {
  font-size: 27px;
  font-weight: 650;
  letter-spacing: -0.8px;
  color: #1c2b3e;
  margin: 0;
}
.page-heading p {
  font-size: 12px;
  color: #7d8897;
  margin: 9px 0 0;
  line-height: 1.8;
}
.heading-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  border: 1px solid #dde5ec;
  background: #fff;
  padding: 10px 14px;
  border-radius: 7px;
  color: #4c5a6e;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.button:hover {
  border-color: #a7b7c7;
  background: #f8fafb;
}
.button.primary {
  background: #008e7e;
  color: #fff;
  border-color: #008e7e;
  box-shadow: 0 2px 3px #0a8f7e14;
}
.button.primary:hover {
  background: #00796b;
}
.button.danger {
  color: #b34343;
  border-color: #ebcaca;
}
.icon-button {
  border: 1px solid var(--line);
  background: white;
  color: #8796a8;
  border-radius: 7px;
  padding: 8px;
  display: grid;
  place-items: center;
}
.icon-button:hover {
  color: var(--teal);
  background: #f3fbf8;
}
.date-pill {
  font-size: 11px;
  color: #7b8794;
  background: #fff;
  border: 1px solid var(--line);
  padding: 10px 12px;
  border-radius: 7px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #cfe5df;
  background: #eff9f5;
  color: #4f7b6d;
  padding: 11px 14px;
  font-size: 11px;
  line-height: 1.8;
  border-radius: 8px;
  margin-bottom: 23px;
}
.notice svg {
  margin-top: 2px;
}
.notice.warning {
  background: #fffbef;
  border-color: #efdfb6;
  color: #907136;
}
.notice.error {
  background: #fff3f3;
  border-color: #f1cccc;
  color: #a44747;
}
.notice strong {
  font-weight: 600;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 23px;
}
.metric {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 21px 17px;
  min-height: 143px;
  box-shadow: 0 2px 4px #263c5015;
}
.metric-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #7c8998;
  font-size: 11px;
}
.metric-icon {
  width: 33px;
  height: 33px;
  background: #eef8f4;
  color: #28a58c;
  border-radius: 8px;
  display: grid;
  place-items: center;
}
.metric-icon.blue {
  background: #f0f5ff;
  color: #5e8fce;
}
.metric-icon.amber {
  background: #fff7e7;
  color: #cb9b45;
}
.metric-icon.red {
  background: #fff0f1;
  color: #d67781;
}
.metric-value {
  font-size: 31px;
  font-weight: 650;
  letter-spacing: -1px;
  margin: 13px 0 8px;
  color: #1c3045;
  line-height: 1;
}
.metric-foot {
  font-size: 10px;
  color: #9aa5b2;
  display: flex;
  gap: 6px;
  align-items: center;
}
.metric-foot span {
  color: #008e7e;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(290px, 1fr);
  gap: 22px;
  margin-bottom: 24px;
}
.panel {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 4px #263c5008;
  min-width: 0;
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 21px 23px 17px;
}
.panel-title {
  font-size: 13px;
  font-weight: 650;
  color: #344456;
  display: flex;
  gap: 8px;
  align-items: center;
}
.panel-sub {
  font-size: 10px;
  color: #99a2b0;
  margin-top: 6px;
}
.panel-tag {
  font-size: 10px;
  color: #8998a6;
  background: #f6f8fa;
  border: 1px solid #e9edf2;
  padding: 5px 8px;
  border-radius: 5px;
}
.chart-wrap {
  padding: 0 19px 0 12px;
}
.chart {
  width: 100%;
  height: 186px;
  display: block;
}
.chart text {
  fill: #a0aab7;
  font-family: inherit;
  font-size: 10px;
}
.chart-summary {
  margin: 10px 23px 20px;
  border-top: 1px solid #edf1f4;
  padding-top: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #8a98a7;
}
.legend {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #12a893;
}
.dependency {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 23px;
  border-bottom: 1px solid #f0f3f6;
  font-size: 11px;
  gap: 10px;
}
.dependency:last-child {
  border-bottom: 0;
}
.dependency-name {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #5b6c7d;
}
.dependency-detail {
  font-size: 9px;
  color: #97a4b1;
  margin-top: 4px;
  padding-left: 26px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 600;
  padding: 4px 7px;
  border-radius: 5px;
  line-height: 1.3;
  white-space: nowrap;
  background: #f0f3f6;
  color: #7a8999;
}
.badge:before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.badge.green {
  background: #eaf7f1;
  color: #3c9e7b;
}
.badge.amber {
  background: #fff6e4;
  color: #b88d39;
}
.badge.red {
  background: #fff0f1;
  color: #c56771;
}
.badge.blue {
  background: #edf4fe;
  color: #5a8fc2;
}
.badge.gray {
  background: #f0f3f6;
  color: #8291a0;
}
.link-button {
  background: transparent;
  color: var(--teal);
  font-size: 11px;
  padding: 5px 0;
  display: flex;
  gap: 7px;
  align-items: center;
}
.table-scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  white-space: nowrap;
}
th {
  font-size: 9px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  font-weight: 600;
  color: #92a0ae;
  background: #f9fbfc;
  border-top: 1px solid #edf1f5;
  border-bottom: 1px solid #edf1f5;
  padding: 13px 22px;
}
td {
  font-size: 11px;
  border-bottom: 1px solid #eff2f5;
  padding: 16px 22px;
  color: #6d7b8c;
}
tbody tr:last-child td {
  border: 0;
}
tbody tr:hover {
  background: #fbfdfd;
}
.file-cell {
  display: flex;
  gap: 11px;
  align-items: center;
  color: #394e63;
  font-weight: 500;
}
.file-icon {
  width: 32px;
  height: 36px;
  border-radius: 6px;
  background: #f0f4f7;
  color: #8599ac;
  display: grid;
  place-items: center;
}
.cell-sub {
  font-size: 9px;
  color: #a0aab7;
  font-weight: 400;
  margin-top: 5px;
}
.amount {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #3b5062;
}
.muted {
  color: #94a0ae;
  font-size: 11px;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}
.row-action {
  color: #96a5b5;
  background: transparent;
  padding: 5px;
  border-radius: 5px;
}
.row-action:hover {
  background: #e8f6f1;
  color: var(--teal);
}
.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 15px 22px;
  font-size: 10px;
  color: #9ba6b3;
  gap: 14px;
}
.table-footer .button {
  padding: 7px 10px;
  font-size: 10px;
}
.footnote {
  font-size: 10px;
  color: #9ca8b5;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 23px;
  line-height: 1.8;
}
.toolbar {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--line);
}
.search-form {
  display: flex;
  gap: 8px;
  flex: 1;
  max-width: 530px;
}
.search-input {
  width: 100%;
  position: relative;
}
.search-input svg {
  position: absolute;
  left: 11px;
  top: 11px;
  color: #9ba9b5;
}
.search-input input {
  padding-left: 34px !important;
}
.search-form input {
  height: 37px;
  font-size: 11px;
}
.filter-select {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  font-size: 11px;
  color: #68798a;
  padding: 8px 10px;
}
.empty {
  padding: 52px 24px;
  text-align: center;
  color: #8494a4;
  font-size: 12px;
  line-height: 1.8;
}
.empty svg {
  display: block;
  margin: 0 auto 14px;
  color: #a6b7c4;
}
.empty strong {
  display: block;
  color: #53677a;
  margin-bottom: 6px;
}
.loading {
  padding: 50px;
  color: #90a0ae;
  font-size: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.spinner {
  width: 15px;
  height: 15px;
  border: 2px solid #dfebe8;
  border-top-color: #13a88c;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.settings-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 23px;
}
.form-body {
  padding: 4px 24px 24px;
}
.field {
  margin: 17px 0;
}
.field label {
  display: block;
  font-size: 11px;
  font-weight: 550;
  color: #536479;
  margin-bottom: 8px;
}
.field small {
  display: block;
  color: #93a0ae;
  font-size: 10px;
  line-height: 1.8;
  margin-top: 7px;
}
input:not([type="checkbox"]),
select,
textarea {
  border: 1px solid #dfe6ed;
  border-radius: 6px;
  padding: 10px 11px;
  color: #465c6f;
  background: #fff;
  width: 100%;
  min-height: 39px;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #58b9a7;
  outline: 2px solid #dff2ec;
}
input:disabled,
select:disabled,
textarea:disabled {
  background: #f7f9fb;
  color: #8b99a6;
}
input[type="checkbox"] {
  accent-color: #008f7e;
  width: 15px;
  height: 15px;
  cursor: pointer;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.checkbox-line {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #687a8b;
  font-size: 12px;
  line-height: 1.8;
}
.check-group {
  display: flex;
  gap: 22px;
}
.form-footer {
  border-top: 1px solid var(--line);
  padding: 17px 24px;
  background: #fcfdfd;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.info-list {
  padding: 2px 23px 20px;
}
.info-row {
  border-bottom: 1px solid #eef2f5;
  padding: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
}
.info-row:last-child {
  border: 0;
}
.info-label {
  color: #8c9ba8;
  font-size: 10px;
}
.info-value {
  color: #4a6073;
  overflow-wrap: anywhere;
  line-height: 1.7;
}
.info-block {
  margin-top: 23px;
}
.overlay-backdrop {
  position: fixed;
  inset: 0;
  background: #0c1b2b70;
  z-index: 80;
  display: flex;
  justify-content: flex-end;
}
.drawer {
  width: min(820px, 100%);
  background: #f6f8fa;
  overflow: auto;
  height: 100%;
  box-shadow: -15px 0 70px #0a21332b;
  display: flex;
  flex-direction: column;
}
.drawer.small {
  width: min(510px, 100%);
}
.drawer-head {
  padding: 23px 26px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid var(--line);
  gap: 10px;
}
.drawer-head h2 {
  font-size: 18px;
  margin: 0 0 8px;
  letter-spacing: -0.3px;
}
.drawer-head p {
  margin: 0;
  font-size: 10px;
  color: #94a1af;
}
.drawer-content {
  padding: 23px 25px;
  flex: 1;
}
.drawer-content .panel {
  box-shadow: none;
}
.detail-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
}
.receipt-preview {
  background: #eaf0f4;
  border-radius: 8px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}
.receipt-preview img {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  border-radius: 5px;
}
.detail-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 21px;
}
.detail-summary dt {
  font-size: 10px;
  color: #98a6b3;
  margin-bottom: 7px;
}
.detail-summary dd {
  margin: 0;
  font-size: 12px;
  word-break: break-word;
}
.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--line);
  margin-top: 23px;
  overflow-x: auto;
}
.tab {
  font-size: 11px;
  background: transparent;
  padding: 13px 11px;
  color: #8b99a8;
  white-space: nowrap;
}
.tab.active {
  color: var(--teal);
  border-bottom: 2px solid var(--teal);
}
.json {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  background: #fff;
  color: #526c80;
  border: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
  padding: 18px;
  font-size: 11px;
  line-height: 1.8;
  max-height: 450px;
  overflow: auto;
  margin: 0;
}
.drawer-footer {
  padding: 17px 25px;
  background: #fff;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
}
.login-story {
  background: #101e2d;
  padding: 55px 70px;
  color: #fff;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.login-story:after {
  content: "";
  width: 580px;
  height: 580px;
  border: 1px solid #244555;
  border-radius: 50%;
  position: absolute;
  left: 60px;
  top: 290px;
  box-shadow:
    0 0 0 70px #172b3b,
    0 0 0 71px #244555,
    0 0 0 140px #152737,
    0 0 0 141px #203e4e;
  opacity: 0.55;
  pointer-events: none;
}
.login-story .brand {
  padding: 0;
  position: relative;
  z-index: 1;
}
.login-copy {
  margin: auto 0;
  z-index: 1;
  position: relative;
}
.login-copy .eyebrow {
  color: #5cd2bb;
}
.login-copy h1 {
  font-weight: 500;
  letter-spacing: -1.5px;
  font-size: 44px;
  line-height: 1.3;
  margin: 20px 0;
}
.login-copy p {
  color: #91a8b9;
  font-size: 13px;
  line-height: 2.1;
  max-width: 360px;
}
.login-story footer {
  font-size: 10px;
  color: #57768a;
  position: relative;
  z-index: 1;
}
.login-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.login-card {
  width: 350px;
  max-width: 100%;
}
.login-card h2 {
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -0.7px;
  margin: 16px 0 10px;
}
.login-card > p {
  color: #8b9aa8;
  font-size: 12px;
  line-height: 1.9;
  margin-bottom: 31px;
}
.login-card .field {
  margin: 23px 0;
}
.login-card input {
  padding: 12px;
}
.login-card .button {
  width: 100%;
  padding: 13px;
  margin-top: 7px;
}
.login-foot {
  margin-top: 26px;
  text-align: center;
  font-size: 10px !important;
  color: #a0acb7 !important;
  line-height: 2;
}
.login-lock {
  color: #039e89;
  background: #ecf8f4;
  width: 43px;
  height: 43px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.login-error {
  font-size: 11px;
  color: #b45656;
  background: #fff2f1;
  border-radius: 6px;
  padding: 10px 12px;
  margin-top: 20px;
  line-height: 1.8;
}
.inline-error {
  margin: 0 0 15px;
  color: #ae5050;
  font-size: 12px;
}
.mobile-toggle {
  display: none;
}
.role-name {
  text-transform: capitalize;
}
.note-copy {
  font-size: 11px;
  line-height: 1.9;
  color: #8191a1;
  padding: 0 24px 23px;
}
.role-guide {
  padding: 4px 24px 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.role-card {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 14px;
  font-size: 10px;
  color: #8d9ba8;
  line-height: 1.8;
}
.role-card strong {
  display: block;
  font-size: 11px;
  color: #4d6376;
  margin-bottom: 6px;
}
.audit-action {
  font-size: 11px;
  color: #415a6c;
}
.audit-reason {
  max-width: 270px;
  white-space: normal;
  font-size: 10px;
  line-height: 1.7;
  color: #98a6b2;
}
.status-counts {
  display: flex;
  gap: 15px;
  font-size: 10px;
  color: #8d9caa;
}
.status-counts b {
  font-weight: 600;
  color: #667d90;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #17392f;
  color: #d2f7e9;
  padding: 13px 20px;
  border-radius: 8px;
  box-shadow: 0 6px 25px #0c2d2a22;
  z-index: 110;
  max-width: 90vw;
  font-size: 12px;
  display: none;
  line-height: 1.8;
}
#toast.visible {
  display: block;
}
#toast.error {
  background: #783e3e;
  color: #fff0f0;
}
.menu-open .sidebar {
  transform: translateX(0);
}
@media (min-width: 1500px) {
  .content {
    padding-top: 38px;
  }
  .metric {
    padding: 24px;
  }
  .chart {
    height: 210px;
  }
  .dependency {
    padding-top: 15px;
    padding-bottom: 15px;
  }
  .metric-value {
    font-size: 35px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 210px;
  }
  .workspace {
    margin-left: 210px;
  }
  .content {
    padding: 27px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .metrics {
    gap: 12px;
  }
  .metric {
    padding: 17px 15px;
  }
  .metric-value {
    font-size: 27px;
  }
  .dashboard-grid {
    grid-template-columns: 1.5fr 1fr;
    gap: 15px;
  }
  .date-pill {
    display: none;
  }
  th,
  td {
    padding-left: 16px;
    padding-right: 16px;
  }
  .settings-grid {
    grid-template-columns: 1.4fr 1fr;
  }
  .login-story {
    padding: 45px;
  }
  .login-copy h1 {
    font-size: 37px;
  }
  .role-guide {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 238px;
    box-shadow: 10px 0 30px #0c25351f;
  }
  .workspace {
    margin-left: 0;
  }
  .mobile-toggle {
    display: grid;
  }
  .breadcrumb {
    gap: 8px;
  }
  .system-label {
    display: none;
  }
  .topbar {
    height: 65px;
  }
  .content {
    padding: 25px 20px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }
  .page-heading h1 {
    font-size: 24px;
  }
  .login-story {
    padding: 34px;
  }
  .login-copy h1 {
    font-size: 31px;
  }
  .login-copy p {
    font-size: 12px;
  }
  .login-story .brand {
    font-size: 20px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .settings-grid > aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17px;
  }
  .settings-grid .info-block {
    margin: 0;
  }
}
@media (max-width: 620px) {
  .content {
    padding: 23px 15px;
  }
  .topbar {
    padding: 0 15px;
    gap: 5px;
  }
  .breadcrumb {
    font-size: 11px;
  }
  .top-actions {
    gap: 7px;
  }
  .env-control {
    padding: 6px 8px;
  }
  .env-control select {
    font-size: 11px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 21px;
  }
  .page-heading p {
    font-size: 11px;
    max-width: 235px;
  }
  .eyebrow {
    font-size: 9px;
  }
  .page-heading h1 {
    font-size: 23px;
  }
  .heading-actions .button {
    padding: 9px;
    font-size: 11px;
  }
  .metrics {
    gap: 10px;
    margin-bottom: 18px;
  }
  .metric {
    padding: 16px 14px;
    min-height: 132px;
  }
  .metric-top {
    font-size: 10px;
  }
  .metric-icon {
    width: 28px;
    height: 28px;
  }
  .metric-value {
    font-size: 28px;
  }
  .metric-foot {
    font-size: 9px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 17px;
    margin-bottom: 18px;
  }
  .chart {
    height: 175px;
  }
  .panel-head {
    padding: 19px 17px 15px;
  }
  .panel-title {
    font-size: 12px;
  }
  .panel-sub {
    font-size: 9px;
  }
  .dependency {
    padding: 11px 18px;
  }
  .notice {
    font-size: 10px;
    padding: 10px 11px;
    gap: 8px;
  }
  .toolbar {
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
  }
  .search-form {
    max-width: none;
  }
  .filter-select {
    width: 100%;
  }
  .table-footer {
    padding: 13px 15px;
    font-size: 9px;
  }
  .footnote {
    flex-direction: column;
    gap: 4px;
    font-size: 9px;
  }
  .login-page {
    grid-template-columns: 1fr;
  }
  .login-story {
    padding: 26px;
    min-height: 200px;
  }
  .login-story .brand {
    font-size: 19px;
  }
  .login-story .brand-icon {
    width: 31px;
    height: 33px;
  }
  .login-copy {
    margin: 29px 0 0;
  }
  .login-copy .eyebrow {
    display: none;
  }
  .login-copy h1 {
    font-size: 24px;
    margin: 0;
  }
  .login-copy p,
  .login-story footer {
    display: none;
  }
  .login-story:after {
    top: 10px;
    left: 250px;
    width: 300px;
    height: 300px;
  }
  .login-side {
    padding: 32px 26px;
  }
  .login-card h2 {
    font-size: 23px;
  }
  .login-card > p {
    margin-bottom: 23px;
  }
  .role-guide {
    padding: 0 16px 20px;
    gap: 9px;
  }
  .role-card {
    font-size: 9px;
    padding: 11px;
  }
  .settings-grid > aside {
    display: block;
  }
  .settings-grid .info-block {
    margin-top: 18px;
  }
  .drawer-head {
    padding: 20px;
  }
  .drawer-content {
    padding: 18px 15px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .receipt-preview {
    max-width: 300px;
    margin: 0 auto 19px;
  }
  .detail-summary {
    gap: 15px;
  }
  .drawer-footer {
    padding: 15px;
  }
  .field-row {
    gap: 12px;
  }
  .form-body {
    padding-left: 18px;
    padding-right: 18px;
  }
  .status-counts {
    display: none;
  }
  .profile-actions button {
    min-height: 40px;
  }
  .drawer .button {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
