:root {
  --navy: #122d27;
  --navy-2: #174337;
  --green: #26634d;
  --mint: #e6f0e6;
  --pale: #f4f5ef;
  --paper: #f8f8f4;
  --ink: #17352d;
  --muted: #71817a;
  --line: #dce4dc;
  --purple: #7160b3;
  --purple-pale: #eeeafa;
  --amber: #bd8232;
  --amber-pale: #fbf0dc;
  --red: #b34f45;
  --red-pale: #fae9e5;
  --blue: #477696;
  --blue-pale: #e8f1f5;
  --shadow: 0 12px 32px rgba(24, 60, 47, 0.07);
  --radius: 16px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Noto Sans SC", "PingFang SC", Arial, sans-serif;
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(55, 118, 92, 0.22);
  outline-offset: 2px;
}
.login-view {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 0.94fr) minmax(490px, 1.06fr);
  background: var(--paper);
}
.login-art {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 100vh;
  padding: 60px;
  flex-direction: column;
  justify-content: space-between;
  color: #e7f1e8;
  background: var(--navy);
}
.login-art:before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 65% 35%,
      rgba(95, 146, 112, 0.16),
      transparent 43%
    ),
    linear-gradient(
      125deg,
      transparent 65%,
      rgba(210, 218, 181, 0.1) 65.1%,
      transparent 65.5%
    );
}
.art-grid {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: linear-gradient(
      rgba(218, 240, 220, 0.35) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(218, 240, 220, 0.35) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(135deg, transparent 12%, #000);
}
.orbit {
  position: absolute;
  display: block;
  border: 1px solid rgba(213, 231, 215, 0.28);
  border-radius: 50%;
  transform: rotate(-28deg);
}
.orbit-1 {
  width: 410px;
  height: 170px;
  right: -100px;
  top: 25%;
}
.orbit-2 {
  width: 540px;
  height: 220px;
  right: -180px;
  top: 19%;
  opacity: 0.55;
}
.warehouse-sketch {
  position: absolute;
  right: 18%;
  top: 28%;
  width: 270px;
  height: 180px;
  border-bottom: 2px solid #9dbba0;
  transform: skewY(-3deg);
  opacity: 0.8;
}
.warehouse-sketch:before {
  position: absolute;
  top: 14px;
  left: 30px;
  width: 230px;
  height: 118px;
  border: 2px solid #9dbba0;
  border-bottom: 0;
  content: "";
}
.warehouse-sketch:after {
  position: absolute;
  top: 0;
  left: 43px;
  width: 204px;
  height: 30px;
  border: 2px solid #9dbba0;
  border-bottom: 0;
  content: "";
}
.warehouse-sketch i {
  position: absolute;
  z-index: 2;
  bottom: 0;
  width: 2px;
  height: 118px;
  background: #9dbba0;
}
.warehouse-sketch i:nth-child(1) {
  left: 72px;
}
.warehouse-sketch i:nth-child(2) {
  left: 132px;
}
.warehouse-sketch i:nth-child(3) {
  left: 191px;
}
.warehouse-sketch b,
.warehouse-sketch em {
  position: absolute;
  z-index: 3;
  bottom: 0;
  display: block;
  border: 2px solid #9dbba0;
  border-bottom: 0;
  border-radius: 48% 48% 0 0;
  width: 45px;
  height: 58px;
}
.warehouse-sketch b {
  left: 86px;
}
.warehouse-sketch em {
  left: 145px;
}
.login-art p {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: clamp(34px, 4vw, 60px);
  line-height: 0.98;
  letter-spacing: -0.08em;
  font-weight: 300;
}
.login-art p strong {
  color: #c6d6a6;
  font-weight: 500;
}
.login-stamp {
  position: relative;
  z-index: 2;
  align-self: flex-end;
  color: #a8c0ad;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-align: right;
}
.login-card {
  display: flex;
  min-width: 0;
  max-width: 630px;
  width: 100%;
  margin: auto;
  padding: 58px 10vw 44px;
  flex-direction: column;
  justify-content: center;
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--navy);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.login-brand small {
  margin-left: 5px;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: #819087;
  font-size: 8px;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.brand-symbol {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 11px;
  color: white;
  background: var(--green);
  font-size: 25px;
  line-height: 1;
  font-weight: 300;
}
.login-heading {
  margin: 76px 0 41px;
}
.eyebrow,
.login-heading p,
.section-tag {
  margin: 0;
  color: #809087;
  font-size: 9px;
  letter-spacing: 0.15em;
  font-weight: 700;
}
.login-heading h1 {
  margin: 13px 0 15px;
  font-size: clamp(29px, 3vw, 42px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.07em;
}
.login-heading h1 em {
  color: var(--green);
  font-style: normal;
}
.login-heading p {
  font-size: 11px;
  letter-spacing: 0.03em;
  font-weight: 400;
}
.login-form {
  display: grid;
  gap: 18px;
  max-width: 360px;
}
.login-form label,
.form-label {
  display: grid;
  gap: 8px;
  color: #687871;
  font-size: 11px;
  font-weight: 600;
}
.login-form input {
  width: 100%;
  height: 45px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  color: var(--ink);
  background: white;
}
.login-form input::placeholder {
  color: #abb5ae;
}
.password-input {
  position: relative;
}
.password-input input {
  padding-right: 42px;
}
.password-input button {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 45px;
  border: 0;
  color: #a2aea6;
  background: transparent;
  font-size: 12px;
}
.form-error {
  min-height: 13px;
  color: var(--red);
  font-size: 10px;
}
.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 0 15px;
  font-size: 12px;
  font-weight: 600;
  transition: 0.18s;
}
.button-primary {
  color: white;
  background: var(--green);
  box-shadow: 0 7px 16px rgba(38, 99, 77, 0.17);
}
.button-primary:hover {
  background: var(--navy-2);
  transform: translateY(-1px);
}
.button-secondary {
  border-color: var(--line);
  color: var(--ink);
  background: white;
}
.button-secondary:hover {
  border-color: #bbc9be;
  background: var(--pale);
}
.button-danger {
  color: var(--red);
  background: var(--red-pale);
}
.button-wide {
  width: 100%;
  margin-top: 2px;
}
.login-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  max-width: 360px;
  margin-top: 63px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: #9ba6a0;
  font-size: 9px;
}
.app-view {
  min-height: 100vh;
}
.app-view[hidden],
.page[hidden] {
  display: none;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  width: 243px;
  padding: 29px 17px 19px;
  flex-direction: column;
  color: #c8d9cd;
  background: var(--navy);
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 11px 37px;
  color: #f5faf3;
  text-decoration: none;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.11em;
}
.brand .brand-symbol {
  width: 32px;
  height: 32px;
  font-size: 21px;
  background: #376e56;
}
.brand small {
  margin-left: 3px;
  color: #7f9b8b;
  font-size: 7px;
  letter-spacing: 0.12em;
}
.warehouse-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 8px 28px;
  padding: 11px;
  border: 1px solid rgba(230, 240, 230, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
}
.warehouse-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  color: #cadfbf;
  background: #315f4e;
  font-size: 16px;
}
.warehouse-switch > span:nth-child(2) {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 4px;
}
.warehouse-switch b {
  overflow: hidden;
  color: #edf3ec;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.warehouse-switch small {
  color: #7d998b;
  font-size: 8px;
}
.chevron {
  color: #82a193;
  font-size: 17px;
}
.sidebar nav {
  display: grid;
  gap: 4px;
}
.nav-item {
  display: flex;
  min-height: 43px;
  align-items: center;
  gap: 13px;
  border: 0;
  border-radius: 9px;
  padding: 0 13px;
  text-align: left;
  color: #9eb6a8;
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  transition: 0.18s;
}
.nav-item > span {
  width: 18px;
  color: #8eb39f;
  font-size: 17px;
  text-align: center;
}
.nav-item > i {
  margin-left: auto;
  color: #809d8e;
  font-size: 11px;
  font-style: normal;
}
.nav-item:hover {
  color: #f4f8f2;
  background: rgba(255, 255, 255, 0.06);
}
.nav-item.active {
  color: #f7fcf6;
  background: rgba(129, 170, 140, 0.14);
  box-shadow: inset 3px 0 #b8d29d;
}
.nav-item.active > span {
  color: #c6d6a6;
}
.nav-label {
  margin: 22px 13px 6px;
  color: #608172;
  font-size: 8px;
  letter-spacing: 0.16em;
  font-weight: 700;
  text-transform: uppercase;
}
.nav-count {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 6px;
  color: #bad5c4 !important;
  background: #285742;
  font-size: 9px !important;
}
.nav-count.alert {
  color: #f5d3c7 !important;
  background: #71463f;
}
.sidebar-bottom {
  margin-top: auto;
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.avatar {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 50%;
  color: #3a563f;
  background: #ccdbaa;
  font-size: 12px;
  font-weight: 700;
}
.user-chip > span:nth-child(2) {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 4px;
}
.user-chip b {
  overflow: hidden;
  color: #e6f0e5;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-chip small {
  color: #83a092;
  font-size: 8px;
}
.user-chip button {
  border: 0;
  color: #86a395;
  background: transparent;
  font-size: 16px;
}
.server-status {
  margin: 4px 9px 0;
  color: #658273;
  font-size: 8px;
}
.server-status i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: #78b17f;
  box-shadow: 0 0 0 3px rgba(120, 177, 127, 0.12);
}
.main {
  min-height: 100vh;
  margin-left: 243px;
  padding: 0 38px 44px;
  background: var(--paper);
}
.topbar {
  display: flex;
  min-height: 91px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.mobile-menu {
  display: none;
}
.breadcrumb {
  display: grid;
  gap: 5px;
}
.breadcrumb span {
  color: #81918a;
  font-size: 9px;
  letter-spacing: 0.16em;
  font-weight: 700;
}
.breadcrumb h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.month-control {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 37px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: #84928b;
  font-size: 9px;
}
.month-control input {
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 11px;
}
.icon-btn {
  display: grid;
  width: 36px;
  height: 37px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #70827a;
  background: white;
  font-size: 19px;
  transition: 0.2s;
}
.icon-btn:hover {
  background: var(--mint);
  color: var(--green);
}
.notice-bar {
  margin: 17px 0 -1px;
  padding: 10px 13px;
  border: 1px solid #ecd8af;
  border-radius: 9px;
  color: #7c5d2c;
  background: #fff8e9;
  font-size: 11px;
}
.notice-bar strong {
  color: #62491f;
}
.page {
  padding-top: 26px;
}
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 21px;
}
.page-head h1 {
  margin: 5px 0 0;
  font-size: 24px;
  letter-spacing: -0.06em;
}
.page-head p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
}
.section-tag {
  color: #809089;
  font-size: 9px;
}
.head-actions {
  display: flex;
  gap: 8px;
}
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(280px, 0.83fr);
  gap: 17px;
}
.status-hero {
  position: relative;
  min-height: 245px;
  overflow: hidden;
  padding: 28px 31px;
  border-radius: var(--radius);
  color: #eaf2e8;
  background: var(--green);
}
.status-hero:after {
  position: absolute;
  right: -40px;
  bottom: -80px;
  width: 360px;
  height: 250px;
  border: 1px solid rgba(233, 245, 227, 0.2);
  border-radius: 50%;
  box-shadow:
    0 0 0 25px rgba(233, 245, 227, 0.035),
    0 0 0 50px rgba(233, 245, 227, 0.025);
  content: "";
  transform: rotate(-22deg);
}
.status-hero .section-tag {
  color: #adc9b2;
}
.status-hero h1 {
  position: relative;
  z-index: 1;
  margin: 10px 0 11px;
  max-width: 390px;
  color: white;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.07em;
}
.status-hero h1 em {
  color: #cbd9ac;
  font-style: normal;
}
.status-hero p {
  position: relative;
  z-index: 1;
  max-width: 375px;
  margin: 0;
  color: #bbd0c0;
  font-size: 11px;
  line-height: 1.7;
}
.hero-foot {
  position: absolute;
  z-index: 2;
  right: 26px;
  bottom: 22px;
  left: 31px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.hero-foot span {
  color: #c4d8c6;
  font-size: 9px;
}
.hero-foot strong {
  color: white;
  font-size: 13px;
}
.hero-foot .button {
  min-height: 33px;
  padding: 0 11px;
  border-color: rgba(255, 255, 255, 0.22);
  color: white;
  background: rgba(255, 255, 255, 0.09);
  font-size: 10px;
}
.hero-foot .button:hover {
  background: rgba(255, 255, 255, 0.18);
}
.risk-card {
  min-height: 245px;
  padding: 24px 23px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}
.risk-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.risk-head h3 {
  margin: 5px 0 0;
  font-size: 17px;
  letter-spacing: -0.04em;
}
.risk-icon {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 9px;
  color: #a2722c;
  background: var(--amber-pale);
  font-size: 15px;
}
.risk-number {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 22px 0 15px;
}
.risk-number strong {
  font-size: 42px;
  line-height: 1;
  letter-spacing: -0.08em;
}
.risk-number span {
  color: #819089;
  font-size: 10px;
}
.risk-bar {
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: #edf0e9;
}
.risk-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--amber);
  transition: width 0.5s;
}
.risk-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: #8d9a94;
  font-size: 9px;
}
.risk-foot strong {
  color: var(--ink);
}
.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 17px 0;
}
.metric {
  min-height: 112px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  box-shadow: var(--shadow);
}
.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #788980;
  font-size: 10px;
}
.metric-top i {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 7px;
  color: var(--green);
  background: var(--mint);
  font-style: normal;
  font-size: 13px;
}
.metric:nth-child(2) .metric-top i {
  color: var(--purple);
  background: var(--purple-pale);
}
.metric:nth-child(3) .metric-top i {
  color: var(--amber);
  background: var(--amber-pale);
}
.metric:nth-child(4) .metric-top i {
  color: var(--blue);
  background: var(--blue-pale);
}
.metric > strong {
  display: block;
  margin: 10px 0 6px;
  font-size: 27px;
  line-height: 1;
  letter-spacing: -0.07em;
}
.metric > strong small {
  margin-left: 4px;
  color: #82918a;
  font-size: 10px;
  letter-spacing: 0;
  font-weight: 500;
}
.metric-foot {
  color: #3e8561;
  font-size: 9px;
  font-weight: 600;
}
.metric-foot span {
  margin-left: 4px;
  color: #98a59e;
  font-weight: 400;
}
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(300px, 0.85fr);
  gap: 17px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 23px;
  background: white;
  box-shadow: var(--shadow);
}
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.panel-head h3 {
  margin: 5px 0 0;
  font-size: 17px;
  letter-spacing: -0.04em;
}
.panel-head p {
  margin: 7px 0 0;
  color: #8b9891;
  font-size: 9px;
}
.link-button {
  border: 0;
  padding: 4px 0;
  color: var(--green);
  background: transparent;
  font-size: 10px;
  font-weight: 600;
}
.link-button:hover {
  text-decoration: underline;
}
.chart-box {
  position: relative;
  min-height: 205px;
  margin: 17px 0 0;
}
.bars {
  height: 170px;
  display: flex;
  align-items: end;
  gap: clamp(5px, 1.5vw, 14px);
  padding: 0 4px 21px;
  border-bottom: 1px solid var(--line);
}
.bar-group {
  display: flex;
  height: 100%;
  min-width: 0;
  flex: 1;
  align-items: end;
  justify-content: center;
  gap: 3px;
}
.bar {
  position: relative;
  width: 10px;
  max-width: 18px;
  min-height: 2px;
  border-radius: 5px 5px 0 0;
  background: var(--green);
  opacity: 0.82;
}
.bar.secondary {
  background: var(--purple);
  opacity: 0.6;
}
.bar:hover {
  opacity: 1;
}
.bar-labels {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  color: #97a29c;
  font-size: 8px;
}
.chart-legend {
  display: flex;
  gap: 14px;
  margin-top: 15px;
  color: #819089;
  font-size: 9px;
}
.chart-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.chart-legend i {
  display: block;
  width: 12px;
  height: 3px;
  border-radius: 99px;
}
.legend-green {
  background: var(--green);
}
.legend-purple {
  background: var(--purple);
}
.activity-list {
  display: grid;
  margin-top: 17px;
}
.activity {
  position: relative;
  display: grid;
  grid-template-columns: 31px 1fr auto;
  gap: 10px;
  padding: 0 0 17px;
}
.activity:last-child {
  padding-bottom: 0;
}
.activity:not(:last-child):after {
  position: absolute;
  top: 27px;
  bottom: 0;
  left: 14px;
  width: 1px;
  background: var(--line);
  content: "";
}
.activity-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 9px;
  color: var(--green);
  background: var(--mint);
  font-size: 13px;
}
.activity:nth-child(2) .activity-icon {
  color: var(--blue);
  background: var(--blue-pale);
}
.activity:nth-child(3) .activity-icon {
  color: var(--purple);
  background: var(--purple-pale);
}
.activity strong {
  display: block;
  margin-top: 2px;
  font-size: 10px;
}
.activity p {
  margin: 5px 0 0;
  color: #84928b;
  font-size: 9px;
  line-height: 1.5;
}
.activity time {
  color: #a2ada7;
  font-size: 8px;
  white-space: nowrap;
}
.table-panel {
  margin-top: 17px;
}
.table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 17px 0 12px;
}
.filter-tabs {
  display: flex;
  gap: 4px;
}
.filter-tab {
  border: 0;
  border-radius: 7px;
  padding: 6px 10px;
  color: #84928b;
  background: transparent;
  font-size: 10px;
}
.filter-tab.active {
  color: var(--ink);
  background: var(--pale);
  font-weight: 600;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
}
.data-table th {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  color: #86938d;
  font-size: 9px;
  font-weight: 500;
  text-align: left;
}
.data-table td {
  padding: 11px 10px;
  border-bottom: 1px solid #edf0eb;
  color: #536860;
}
.data-table tr:last-child td {
  border-bottom: 0;
}
.data-table td strong {
  color: var(--ink);
  font-weight: 600;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 8px;
  font-weight: 600;
}
.status-pill:before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}
.status-pill.pass,
.status-pill.approved {
  color: #3f815e;
  background: var(--mint);
}
.status-pill.pending,
.status-pill.in_progress {
  color: #9b6e29;
  background: var(--amber-pale);
}
.status-pill.rejected,
.status-pill.open {
  color: var(--red);
  background: var(--red-pale);
}
.status-pill.closed {
  color: #6f8078;
  background: #eef1ed;
}
.empty {
  padding: 33px 10px;
  color: #8e9b94;
  text-align: center;
  font-size: 11px;
}
.pagination-note {
  margin-top: 14px;
  color: #9aa59f;
  font-size: 9px;
}
.daily-card,
.workflow-card,
.issue-card,
.monthly-card {
  padding: 22px 23px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}
.daily-card + .daily-card {
  margin-top: 17px;
}
.daily-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.date-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #83908a;
  font-size: 10px;
}
.date-picker input {
  height: 35px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--pale);
  font-size: 11px;
}
.import-drop {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px dashed #bdcfc1;
  border-radius: 9px;
  color: #648273;
  background: #f3f8f2;
  font-size: 10px;
}
.import-drop input {
  max-width: 160px;
  font-size: 9px;
}
.report-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #84918b;
  font-size: 9px;
}
.kpi-entry-table {
  overflow: auto;
}
.kpi-entry-table table {
  min-width: 770px;
}
.kpi-code {
  display: inline-flex;
  width: 27px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--green);
  background: var(--mint);
  font-size: 9px;
  font-weight: 700;
}
.kpi-entry-table .indicator-name {
  min-width: 170px;
  color: var(--ink);
  font-weight: 600;
}
.kpi-entry-table .target {
  color: #788a82;
  white-space: nowrap;
}
.kpi-entry-table input {
  width: 82px;
  height: 31px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: 0;
  color: var(--ink);
  background: #fcfcf8;
  font-size: 10px;
}
.kpi-entry-table input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(38, 99, 77, 0.1);
}
.kpi-entry-table textarea {
  width: 155px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: 0;
  font-size: 9px;
  resize: none;
}
.table-footnote {
  margin-top: 13px;
  color: #9aa59f;
  font-size: 9px;
}
.table-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 17px;
}
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.workflow-item {
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.workflow-item-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.workflow-item-head h3 {
  margin: 0;
  font-size: 13px;
}
.workflow-item-head .stage-no {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 8px;
  color: var(--green);
  background: var(--mint);
  font-size: 10px;
  font-weight: 700;
}
.workflow-item p {
  margin: 9px 0;
  color: #85938c;
  font-size: 9px;
  line-height: 1.6;
}
.segmented {
  display: flex;
  gap: 4px;
}
.segmented button {
  flex: 1;
  min-height: 29px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #83918a;
  background: #fcfcf9;
  font-size: 9px;
}
.segmented button.active.pass {
  border-color: #9fc3a8;
  color: #34734f;
  background: var(--mint);
}
.segmented button.active.fail {
  border-color: #e7b5a9;
  color: var(--red);
  background: var(--red-pale);
}
.segmented button.active.pending {
  border-color: #e3ca95;
  color: #966b2c;
  background: var(--amber-pale);
}
.workflow-item textarea {
  display: none;
  width: 100%;
  margin-top: 9px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 9px;
  resize: vertical;
}
.workflow-item textarea.visible {
  display: block;
}
.issue-list {
  display: grid;
  gap: 10px;
}
.issue-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: 0.18s;
}
.issue-row:hover {
  border-color: #bed0c2;
  box-shadow: 0 5px 16px rgba(30, 70, 52, 0.06);
}
.issue-priority {
  display: grid;
  min-height: 28px;
  place-items: center;
  border-radius: 7px;
  font-size: 9px;
  font-weight: 700;
}
.issue-priority.high {
  color: var(--red);
  background: var(--red-pale);
}
.issue-priority.normal {
  color: #956c2b;
  background: var(--amber-pale);
}
.issue-priority.low {
  color: #5f7e6c;
  background: var(--mint);
}
.issue-main h3 {
  margin: 0;
  font-size: 12px;
}
.issue-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 7px;
  color: #8a9790;
  font-size: 9px;
}
.issue-main p {
  margin: 8px 0 0;
  color: #64766e;
  font-size: 10px;
  line-height: 1.6;
}
.issue-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.issue-actions .button {
  min-height: 29px;
  padding: 0 9px;
  font-size: 9px;
}
.issue-actions small {
  color: #9aa59f;
  font-size: 8px;
}
.monthly-summary {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 17px;
}
.summary-box {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.summary-box > span {
  display: block;
  color: #829089;
  font-size: 9px;
}
.summary-box strong {
  display: block;
  margin-top: 11px;
  font-size: 24px;
  letter-spacing: -0.07em;
}
.summary-box strong small {
  margin-left: 4px;
  color: #819089;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
}
.summary-box p {
  margin: 6px 0 0;
  color: #83918b;
  font-size: 9px;
}
.summary-box.highlight {
  color: white;
  background: var(--green);
  border-color: var(--green);
}
.summary-box.highlight > span,
.summary-box.highlight p {
  color: #b5cfb9;
}
.summary-box.highlight strong {
  color: white;
}
.monthly-table .data-table th,
.monthly-table .data-table td {
  padding: 12px 9px;
}
.monthly-table .data-table td:first-child {
  width: 45%;
}
.rate-value {
  font-weight: 700;
}
.rate-value.good {
  color: #37805a;
}
.rate-value.bad {
  color: var(--red);
}
.locked-banner {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  padding: 11px 13px;
  border: 1px solid #bdd1c2;
  border-radius: 8px;
  color: #3a7653;
  background: var(--mint);
  font-size: 10px;
}
.locked-banner strong {
  font-size: 15px;
}
.action-row {
  display: flex;
  gap: 8px;
}
.report-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.report-action {
  display: flex;
  min-height: 125px;
  align-items: flex-start;
  gap: 14px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 13px;
  text-align: left;
  background: white;
  box-shadow: var(--shadow);
}
.report-action:hover {
  border-color: #b9cdbd;
  transform: translateY(-1px);
}
.report-action > i {
  display: grid;
  width: 37px;
  height: 37px;
  flex: none;
  place-items: center;
  border-radius: 10px;
  color: var(--green);
  background: var(--mint);
  font-size: 17px;
  font-style: normal;
}
.report-action:nth-child(2) > i {
  color: var(--purple);
  background: var(--purple-pale);
}
.report-action:nth-child(3) > i {
  color: var(--blue);
  background: var(--blue-pale);
}
.report-action h3 {
  margin: 1px 0 6px;
  font-size: 12px;
}
.report-action p {
  margin: 0;
  color: #819089;
  font-size: 9px;
  line-height: 1.6;
}
.user-table .data-table td {
  vertical-align: middle;
}
.role-label {
  display: inline-block;
  padding: 4px 7px;
  border-radius: 6px;
  color: var(--green);
  background: var(--mint);
  font-size: 8px;
  font-weight: 600;
}
.role-label.vendor {
  color: var(--purple);
  background: var(--purple-pale);
}
.role-label.owner {
  color: #9a6d28;
  background: var(--amber-pale);
}
.switch {
  position: relative;
  display: inline-flex;
  width: 29px;
  height: 17px;
}
.switch input {
  opacity: 0;
}
.switch i {
  position: absolute;
  inset: 0;
  border-radius: 99px;
  background: #c8d2ca;
  transition: 0.2s;
}
.switch i:before {
  position: absolute;
  bottom: 3px;
  left: 3px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: white;
  content: "";
  transition: 0.2s;
}
.switch input:checked + i {
  background: var(--green);
}
.switch input:checked + i:before {
  transform: translateX(12px);
}
.audit-list {
  display: grid;
}
.audit-row {
  display: grid;
  grid-template-columns: 105px 110px 1fr auto;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #edf0eb;
  color: #6f8078;
  font-size: 10px;
}
.audit-row strong {
  color: var(--ink);
  font-weight: 600;
}
.audit-row time {
  color: #9aa59f;
  font-size: 9px;
}
.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(14, 40, 31, 0.45);
  backdrop-filter: blur(4px);
}
.modal-layer[hidden] {
  display: none;
}
.modal {
  width: min(610px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 17px;
  background: var(--paper);
  box-shadow: 0 30px 80px rgba(13, 40, 29, 0.25);
  animation: modalIn 0.2s ease-out;
}
@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}
.modal-head h2 {
  margin: 5px 0 0;
  font-size: 20px;
  letter-spacing: -0.05em;
}
.modal-close {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: #71827a;
  background: #e9ede7;
  font-size: 19px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.form-control {
  width: 100%;
  height: 37px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  color: var(--ink);
  background: white;
  font-size: 10px;
}
.form-textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  color: var(--ink);
  background: white;
  font-size: 10px;
  resize: vertical;
}
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 21px;
}
.modal-actions .button {
  white-space: nowrap;
}
.file-note {
  color: #929e98;
  font-size: 8px;
}
.toast {
  position: fixed;
  right: 23px;
  bottom: 23px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  border-radius: 9px;
  color: white;
  background: var(--navy);
  box-shadow: 0 15px 40px rgba(16, 53, 41, 0.25);
  font-size: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: 0.22s;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
.toast span {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  color: var(--navy);
  background: #cce2ce;
  font-size: 11px;
}
@media (max-width: 1100px) {
  .login-view {
    grid-template-columns: 40% 60%;
  }
  .login-art {
    padding: 39px 34px;
  }
  .login-card {
    padding: 45px 7vw;
  }
  .overview-grid,
  .split-grid {
    grid-template-columns: 1fr;
  }
  .risk-card {
    min-height: 205px;
  }
  .metric-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  .login-view {
    display: block;
  }
  .login-art {
    display: none;
  }
  .login-card {
    max-width: none;
    min-height: 100vh;
    padding: 46px 27px;
  }
  .login-heading {
    margin: 68px 0 37px;
  }
  .sidebar {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    height: 61px;
    padding: 6px 9px;
    flex-direction: row;
    box-shadow: 0 -8px 24px rgba(15, 51, 39, 0.16);
  }
  .sidebar .brand,
  .warehouse-switch,
  .sidebar-bottom,
  .nav-label {
    display: none;
  }
  .sidebar nav {
    display: flex;
    width: 100%;
    justify-content: space-around;
    gap: 2px;
  }
  .nav-item {
    min-height: 48px;
    flex: 1;
    justify-content: center;
    gap: 4px;
    padding: 0 3px;
    flex-direction: column;
    color: #789385;
    font-size: 8px;
  }
  .nav-item > span {
    width: auto;
    font-size: 16px;
    line-height: 1;
  }
  .nav-item > i {
    display: none;
  }
  .nav-item.active {
    box-shadow: inset 0 2px #b8d29d;
  }
  .main {
    margin-left: 0;
    padding: 0 15px 85px;
  }
  .topbar {
    min-height: 73px;
  }
  .mobile-menu {
    display: none;
  }
  .breadcrumb span {
    font-size: 8px;
  }
  .breadcrumb h2 {
    font-size: 18px;
  }
  .top-actions {
    gap: 5px;
  }
  .month-control {
    display: none;
  }
  .top-actions .icon-btn {
    width: 33px;
    height: 34px;
  }
  .top-actions .button {
    min-height: 34px;
    padding: 0 10px;
    font-size: 10px;
  }
  .page {
    padding-top: 21px;
  }
  .page-head h1 {
    font-size: 22px;
  }
  .page-head {
    align-items: flex-start;
  }
  .head-actions .button-secondary {
    display: none;
  }
  .status-hero {
    min-height: 240px;
    padding: 23px 21px;
  }
  .status-hero h1 {
    font-size: 25px;
  }
  .risk-card {
    min-height: 205px;
  }
  .metric-strip {
    gap: 9px;
  }
  .metric {
    min-height: 106px;
    padding: 15px 14px;
  }
  .metric > strong {
    font-size: 24px;
  }
  .split-grid {
    gap: 12px;
  }
  .panel {
    padding: 18px 16px;
  }
  .panel-head h3 {
    font-size: 16px;
  }
  .table-panel {
    overflow: hidden;
  }
  .data-table {
    min-width: 620px;
  }
  .workflow-grid,
  .report-grid {
    grid-template-columns: 1fr;
  }
  .daily-card,
  .workflow-card,
  .issue-card,
  .monthly-card {
    padding: 18px 15px;
  }
  .daily-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .import-drop {
    width: 100%;
    justify-content: space-between;
  }
  .import-drop input {
    max-width: 140px;
  }
  .issue-row {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
  }
  .issue-actions {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
  }
  .monthly-summary {
    grid-template-columns: 1fr 1fr;
  }
  .summary-box {
    padding: 14px;
  }
  .summary-box strong {
    font-size: 22px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .modal {
    padding: 21px;
  }
  .login-foot {
    margin-top: 50px;
  }
}
@media (max-width: 420px) {
  .top-actions .button span {
    display: none;
  }
  .top-actions .button {
    width: 35px;
    padding: 0;
    font-size: 17px;
  }
  .metric-strip {
    grid-template-columns: 1fr 1fr;
  }
  .metric-top {
    font-size: 9px;
  }
  .metric > strong {
    font-size: 23px;
  }
  .monthly-summary {
    grid-template-columns: 1fr;
  }
  .chart-box {
    margin-right: -4px;
    margin-left: -4px;
  }
  .bars {
    gap: 4px;
  }
  .bar {
    width: 7px;
  }
}
.qnh-sync-card {
  margin-bottom: 17px;
  padding: 20px 22px;
  border: 1px solid #d5e2d5;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f7fbf5, #fff);
  box-shadow: var(--shadow);
}
.qnh-sync-card .panel-head {
  align-items: flex-start;
}
.qnh-sync-card .panel-head h3 {
  margin-top: 5px;
}
.qnh-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 17px;
}
.qnh-metric-grid > div {
  display: grid;
  gap: 5px;
  padding: 13px;
  border: 1px solid #e0e9df;
  border-radius: 10px;
  background: #fff;
}
.qnh-metric-grid small {
  color: #82918a;
  font-size: 9px;
}
.qnh-metric-grid strong {
  font-size: 21px;
  letter-spacing: -0.05em;
}
.qnh-metric-grid span {
  color: #8d9b94;
  font-size: 8px;
}
.qnh-sync-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 15px;
  color: #8b9891;
  font-size: 9px;
  line-height: 1.5;
}
.form-section-title {
  grid-column: 1/-1;
  margin: 4px 0 -4px;
  padding-top: 5px;
  border-top: 1px solid var(--line);
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
}
@media (max-width: 760px) {
  .qnh-sync-card {
    padding: 18px 15px;
  }
  .qnh-metric-grid {
    grid-template-columns: 1fr;
  }
  .qnh-sync-foot {
    align-items: flex-start;
    flex-direction: column;
  }
}
.qnh-monthly-card {
  margin-bottom: 17px;
}
.qnh-monthly-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 17px;
}
.qnh-monthly-grid > div {
  display: grid;
  gap: 5px;
  padding: 13px;
  border: 1px solid #e0e9df;
  border-radius: 10px;
  background: #fff;
}
.qnh-monthly-grid small {
  color: #82918a;
  font-size: 9px;
}
.qnh-monthly-grid strong {
  font-size: 20px;
  letter-spacing: -0.05em;
}
.qnh-monthly-grid span {
  color: #8d9b94;
  font-size: 8px;
}
@media (max-width: 760px) {
  .qnh-monthly-grid {
    grid-template-columns: 1fr;
  }
}
.ledger-tabs {
  display: flex;
  gap: 7px;
  margin-bottom: 12px;
  overflow: auto;
}
.ledger-tabs .filter-tab {
  white-space: nowrap;
}
.ledger-panel {
  padding: 18px;
}
.ledger-filter {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.ledger-filter label {
  display: grid;
  gap: 6px;
  color: #7c8d84;
  font-size: 9px;
}
.ledger-filter-actions,
.ledger-actions {
  display: flex;
  gap: 7px;
}
.ledger-actions {
  justify-content: flex-end;
  margin: 14px 0;
}
.ledger-summary {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 9px;
  margin-top: 16px;
}
.ledger-summary > div {
  display: grid;
  gap: 5px;
  padding: 13px;
  border: 1px solid #e0e8df;
  border-radius: 10px;
  background: #f9fbf8;
}
.ledger-summary span {
  color: #819087;
  font-size: 9px;
}
.ledger-summary strong {
  color: var(--navy);
  font-size: 18px;
}
.ledger-table {
  overflow: auto;
}
.ledger-table small {
  color: #8c9992;
  line-height: 1.5;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 17px;
}
.settings-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}
.settings-form .full {
  grid-column: 1/-1;
}
.check-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #526b5e;
  font-size: 10px;
}
.check-toggle input {
  accent-color: var(--green);
}
@media (max-width: 1000px) {
  .ledger-filter {
    grid-template-columns: repeat(2, 1fr);
  }
  .ledger-summary {
    grid-template-columns: repeat(3, 1fr);
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .ledger-filter,
  .settings-form {
    grid-template-columns: 1fr;
  }
  .ledger-summary {
    grid-template-columns: repeat(2, 1fr);
  }
  .ledger-filter-actions {
    grid-column: 1/-1;
  }
}
.section-nav {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}
.section-nav button {
  flex: none;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 43px;
  padding: 0 13px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #697e73;
  background: transparent;
  font-size: 11px;
  white-space: nowrap;
}
.section-nav button:hover {
  color: var(--green);
}
.section-nav button.active {
  border-bottom-color: var(--green);
  color: var(--green);
  font-weight: 700;
}
.section-nav button[hidden] {
  display: none;
}
.tab-count {
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border-radius: 5px;
  color: #985247;
  background: var(--red-pale);
  font-size: 9px;
  font-style: normal;
}
.tab-count[hidden] {
  display: none;
}
.section-nav + .page {
  padding-top: 23px;
}
@media (max-width: 760px) {
  .sidebar nav {
    align-items: center;
  }
  .nav-item {
    font-size: 10px;
  }
  .section-nav {
    margin: 0 -15px;
    padding: 0 10px;
  }
  .section-nav button {
    min-height: 40px;
    padding: 0 10px;
  }
  .topbar {
    flex-wrap: wrap;
    gap: 9px;
    padding: 12px 0;
  }
  .top-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .month-control {
    display: flex;
    margin-right: auto;
  }
  .month-control input {
    width: 113px;
  }
  .page {
    padding-top: 19px;
  }
}
.material-subnav {
  margin-top: -3px;
  padding: 5px 0 9px;
  border-bottom: 1px solid var(--line);
}
.material-subnav .filter-tab.active {
  color: var(--green);
  background: var(--mint);
}
.consumables-rules {
  margin-top: 16px;
  padding: 13px 14px;
  border: 1px solid #dce6db;
  border-radius: 10px;
  background: #f5f9f3;
  color: #61786a;
  font-size: 10px;
  line-height: 1.7;
}
.consumables-rules > strong {
  color: var(--ink);
}
.consumables-rules p {
  margin: 5px 0;
}
.consumables-rules .status-pill {
  margin-top: 5px;
}
.consumables-summary > div {
  min-width: 0;
}
.consumables-summary strong {
  font-size: 17px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.consumables-summary strong small {
  font-size: 9px;
  color: #87958c;
  font-weight: 400;
}
.consumables-summary .consumables-units {
  font-size: 14px;
}
.consumables-actions {
  flex-wrap: wrap;
}
.consumables-actions button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.consumables-actions button:disabled#consumablesExport {
  cursor: default;
}
.consumables-import-notice {
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid #bdd4c3;
  border-radius: 8px;
  background: var(--mint);
  color: #3f7755;
  font-size: 10px;
  line-height: 1.7;
}
.consumables-import-notice.is-error {
  border-color: #e6b7ab;
  background: var(--red-pale);
  color: var(--red);
}
.consumables-import-notice .link-button {
  margin-left: 10px;
}
.consumables-table table {
  min-width: 1040px;
}
.consumables-table th {
  white-space: nowrap;
}
.consumables-table td {
  vertical-align: top;
}
.consumables-table .consumables-remark {
  min-width: 150px;
  max-width: 260px;
  overflow-wrap: anywhere;
}
.consumables-table .consumables-source {
  min-width: 130px;
  max-width: 220px;
  overflow-wrap: anywhere;
}
.consumables-import-history {
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}
.consumables-import-history > summary {
  cursor: pointer;
  color: #71877a;
  font-size: 10px;
}
.consumables-import-history .ledger-table {
  margin-top: 10px;
}
@media (max-width: 600px) {
  .consumables-actions {
    justify-content: flex-start;
  }
  .consumables-actions .button {
    flex: 1;
  }
  .consumables-rules {
    font-size: 10px;
  }
  .ledger-filter-actions {
    flex-wrap: wrap;
  }
}

/* ------------------------------------------------ 现场难点突破 */
.status-pill.processing {
  color: #95682b;
  background: var(--amber-pale);
}
.status-pill.blocked {
  color: var(--red);
  background: var(--red-pale);
}
.status-pill.resolved {
  color: #3f815e;
  background: var(--mint);
}
.danger-text {
  color: var(--red);
  font-style: normal;
  font-weight: 600;
}
.repeat-flag {
  display: inline-block;
  margin-top: 7px !important;
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--purple-pale);
  color: var(--purple);
  font-size: 9px !important;
  font-weight: 600;
}
.field-detail-body {
  max-height: 62vh;
  overflow-y: auto;
  padding-right: 4px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 7px 12px;
  padding: 11px 13px;
  border-radius: 10px;
  background: var(--pale);
  font-size: 10px;
}
.detail-grid span {
  color: var(--muted);
}
.detail-grid b {
  font-weight: 600;
  color: var(--ink);
}
.detail-block {
  margin: 12px 0 0;
  padding: 9px 11px;
  border-left: 2px solid var(--line);
  color: #5c6d65;
  font-size: 10px;
  line-height: 1.7;
}
.detail-block small {
  display: block;
  margin-bottom: 3px;
  color: #9aa59f;
  font-size: 9px;
  letter-spacing: 0.08em;
}
.solution-section {
  margin-top: 17px;
}
.solution-section h4 {
  margin: 0 0 9px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
}
.solution-section .empty {
  padding: 17px 10px;
}
.solution-tip {
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--mint);
}
.solution-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  justify-content: space-between;
}
.solution-head strong {
  color: var(--ink);
  font-size: 11px;
}
.solution-head span {
  color: #7d8d85;
  font-size: 9px;
}
.solution-tip p {
  margin: 7px 0 0;
  color: #5c6d65;
  font-size: 10px;
  line-height: 1.7;
  white-space: pre-wrap;
}
.solution-tip small {
  display: block;
  margin-top: 6px;
  color: #8a9790;
  font-size: 9px;
}
.timeline-row {
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}
.timeline-row:last-child {
  border-bottom: 0;
}
.timeline-action {
  display: inline-block;
  margin-bottom: 4px;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--blue-pale);
  color: var(--blue);
  font-size: 9px;
  font-weight: 600;
}
.timeline-row p {
  margin: 0;
  color: #5c6d65;
  font-size: 10px;
  line-height: 1.6;
}
.timeline-row small {
  color: #9aa59f;
  font-size: 9px;
}
#solutionForm .modal-actions {
  margin-top: 13px;
  padding: 0;
  border: 0;
}
/* ===== 实时作业看板 (live) 2026-10-28 ===== */
.live-mock-banner {
  display: flex;
  gap: 9px;
  align-items: baseline;
  margin-bottom: 15px;
  padding: 10px 15px;
  border: 1px dashed var(--amber);
  border-radius: var(--radius);
  background: var(--amber-pale);
  color: #7a5316;
}
.live-mock-banner strong {
  font-size: 12px;
  letter-spacing: 0.06em;
}
.live-mock-banner span {
  color: #8a6631;
}
.live-statusbar {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-bottom: 17px;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(38, 99, 77, 0.14);
}
.live-dot.stale {
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(189, 130, 50, 0.16);
}
.live-dot.error {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(179, 79, 69, 0.16);
}
.live-status-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-right: auto;
}
.live-status-main b {
  font-size: 14px;
}
.live-status-main span {
  color: var(--muted);
}
.live-status-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}
.live-status-meta small {
  color: var(--muted);
  font-size: 11px;
}
.live-status-meta strong {
  font-size: 13px;
}
.live-flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 15px;
}
.live-node,
.live-alert {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px 14px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--pale);
  text-align: left;
  transition: 0.18s;
}
.live-node:hover,
.live-alert:hover {
  border-color: var(--green);
  transform: translateY(-2px);
}
.live-node.open,
.live-alert.open {
  border-color: var(--green);
  background: var(--mint);
  box-shadow: inset 0 0 0 1px var(--green);
}
.live-node.is-empty {
  background: #f1f2ee;
  border-style: dashed;
  color: var(--muted);
}
.live-node-top,
.live-alert-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.live-node-top b,
.live-alert-top b {
  font-size: 13px;
  color: var(--ink);
}
.live-node-num,
.live-alert-num {
  font-size: 27px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.live-node-num small,
.live-alert-num small,
.live-other strong small {
  margin-left: 3px;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}
.live-node-sub,
.live-alert-sub {
  color: var(--muted);
  font-size: 12px;
}
.live-node-sub i,
.live-alert-sub i {
  font-style: normal;
  font-weight: 600;
  color: var(--ink);
}
.live-node-sub i.danger {
  color: var(--red);
}
.live-node-api {
  padding-top: 7px;
  border-top: 1px dashed var(--line);
  color: #9aa5a0;
  font-size: 10px;
  line-height: 1.35;
  word-break: break-all;
}
.live-alerts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 15px;
}
.live-alert.red {
  border-left: 4px solid var(--red);
  background: var(--red-pale);
}
.live-alert.amber {
  border-left: 4px solid var(--amber);
  background: var(--amber-pale);
}
.live-alert .live-alert-sub i {
  color: var(--red);
}
.live-others {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 15px;
}
.live-other {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--pale);
}
.live-other-name {
  color: var(--muted);
  font-size: 12px;
}
.live-other strong {
  font-size: 22px;
  letter-spacing: -0.02em;
}
.live-drill {
  margin-top: 13px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.live-drill-empty {
  margin-top: 13px;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
}
.src-chip {
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}
.src-chip.auto {
  background: var(--mint);
  color: var(--green);
}
.src-chip.part {
  background: var(--amber-pale);
  color: var(--amber);
}
.src-chip.manual {
  background: var(--blue-pale);
  color: var(--blue);
}
.src-chip.none {
  background: #eceeea;
  color: #8b9791;
}
@media (max-width: 1080px) {
  .live-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .live-alerts,
  .live-others {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .live-flow,
  .live-alerts,
  .live-others {
    grid-template-columns: 1fr;
  }
  .live-statusbar {
    gap: 12px;
  }
  .live-status-meta {
    padding-left: 0;
    border-left: 0;
  }
}
