:root {
  --nav: #111b24;
  --nav2: #1c2934;
  --orange: #f47721;
  --orange-soft: #fff0e4;
  --ink: #202d38;
  --muted: #77838e;
  --line: #e6eaed;
  --bg: #f5f6f8;
  --green: #248263;
  --red: #d65552;
  --blue: #487faa;
  --radius: 14px;
  --shadow: 0 5px 20px #17293805;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #f4772170;
  outline-offset: 3px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #f4772160;
  border-color: var(--orange);
}
svg {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  flex: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -1.1px;
  font-weight: 650;
}
h2 {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 14px;
}
small {
  font-size: 11px;
}
.muted {
  color: var(--muted);
}
.mono {
  font-variant-numeric: tabular-nums;
}
.eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.7px;
  font-weight: 700;
  color: var(--muted);
}
.skip {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 100;
  background: white;
  padding: 16px;
}
.skip:focus {
  top: 10px;
}
.layout {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: var(--nav);
  color: #a3afb9;
  position: fixed;
  inset: 0 auto 0 0;
  width: 238px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  padding: 28px 17px 16px;
  border-right: 1px solid #24333f;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 11px;
  color: #fff;
  letter-spacing: -0.7px;
}
.brand img {
  width: 44px;
  height: 44px;
}
.brand strong {
  font-size: 25px;
  line-height: 1.1;
  font-weight: 800;
}
.brand em {
  font-size: 12px;
  font-style: normal;
  color: var(--orange);
  margin-left: 4px;
  letter-spacing: 0.5px;
}
.brand small {
  display: block;
  letter-spacing: 2.3px;
  font-size: 8px;
  color: #7d8d9a;
  margin-top: 6px;
}
.workspace {
  margin: 28px 4px 25px;
  padding: 12px 10px;
  background: #1b2833;
  border: 1px solid #2b3944;
  border-radius: 9px;
  display: flex;
  gap: 10px;
  align-items: center;
  color: #e5e9ed;
}
.workspace .tiny-icon {
  padding: 7px;
  background: #2e3b46;
  border-radius: 6px;
}
.workspace b {
  display: block;
  font-size: 11px;
}
.workspace small {
  color: #9babb8;
  font-size: 10px;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 1.8px;
  font-weight: 600;
  padding: 0 14px;
  margin-bottom: 12px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  border-radius: 7px;
  font-size: 12px;
  transition: 0.15s;
}
.nav a svg {
  width: 18px;
  height: 18px;
  opacity: 0.9;
}
.nav a:hover {
  background: #202d37;
  color: white;
}
.nav a.active {
  background: var(--orange);
  color: #fff;
  font-weight: 650;
  box-shadow: 0 5px 20px #ee6d1b1a;
}
.nav .count {
  margin-left: auto;
  background: #ffffff1f;
  border-radius: 4px;
  font-size: 10px;
  padding: 2px 5px;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 24px 10px 0;
}
.sidebar-note {
  padding: 15px 12px;
  border: 1px solid #2c3943;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.7;
  color: #8494a0;
}
.sidebar-note strong {
  color: #cbd4db;
  display: block;
  font-size: 12px;
  margin-bottom: 3px;
}
.sidebar-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 17px;
  font-size: 10px;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #73b395;
  display: inline-block;
  margin-right: 6px;
}
.shell {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 80px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 34px;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 12px;
  align-items: center;
  white-space: nowrap;
}
.breadcrumb strong {
  font-weight: 500;
  color: var(--ink);
}
.global-search {
  margin-left: auto;
  position: relative;
  width: 260px;
}
.global-search input {
  width: 100%;
  background: #f6f7f9;
  border: 1px solid #edf0f2;
  border-radius: 7px;
  padding: 10px 36px;
  font-size: 11px;
}
.global-search svg {
  position: absolute;
  left: 11px;
  top: 10px;
  width: 16px;
  height: 16px;
  color: #81909a;
}
.global-search kbd {
  position: absolute;
  right: 10px;
  top: 11px;
  font-size: 10px;
  color: #8c969f;
}
.icon-btn {
  border: 0;
  background: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  position: relative;
}
.icon-btn:hover {
  background: #eff2f4;
}
.notice-dot {
  position: absolute;
  right: 6px;
  top: 4px;
  width: 6px;
  height: 6px;
  background: var(--orange);
  border: 2px solid white;
  border-radius: 50%;
  box-sizing: content-box;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 1px solid var(--line);
  padding-left: 20px;
}
.avatar {
  border-radius: 50%;
  background: #e8edf0;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #456071;
}
.profile b {
  font-size: 11px;
  display: block;
}
.profile small {
  font-size: 10px;
  color: var(--muted);
}
.lang {
  border: 1px solid var(--line);
  padding: 6px;
  border-radius: 6px;
  font-size: 10px;
  background: white;
}
.mobile-menu {
  display: none;
}
main {
  padding: 30px 34px 22px;
  max-width: 1800px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.page-heading p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 7px;
  line-height: 1.6;
}
.heading-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 7px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  min-height: 37px;
  transition: background 0.15s;
}
.btn:hover {
  background: #f6f8fa;
  border-color: #cbd3d9;
}
.btn svg {
  width: 15px;
  height: 15px;
}
.btn.primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.btn.primary:hover {
  background: #df6414;
}
.btn.dark {
  background: var(--nav);
  border-color: var(--nav);
  color: white;
}
.btn.danger {
  color: var(--red);
  background: #fff;
}
.btn.link {
  border: none;
  background: transparent;
  color: var(--orange);
  padding: 0;
  min-height: 28px;
}
.date-select {
  background: white;
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: 7px;
  font-size: 11px;
  color: #586570;
  min-height: 37px;
}
.welcome {
  position: relative;
  overflow: hidden;
  background: var(--nav);
  border-radius: var(--radius);
  padding: 28px 30px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  min-height: 140px;
}
.welcome:after {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  border: 38px solid #ffffff04;
  transform: rotate(-40deg);
  right: 27%;
  pointer-events: none;
}
.welcome .eyebrow {
  color: #f9a66c;
  font-size: 9px;
  margin-bottom: 11px;
}
.welcome h2 {
  font-size: 24px;
  letter-spacing: -0.6px;
  font-weight: 500;
  position: relative;
  z-index: 1;
}
.welcome p {
  color: #9facb7;
  font-size: 12px;
  margin-top: 9px;
}
.welcome-metric {
  border-left: 1px solid #ffffff20;
  padding-left: 30px;
  min-width: 190px;
  z-index: 1;
}
.welcome-metric strong {
  font-size: 34px;
  letter-spacing: -1.2px;
  font-weight: 600;
}
.welcome-metric strong small {
  font-size: 17px;
  color: #8f9eaa;
  font-weight: 400;
  letter-spacing: 0;
}
.welcome-metric p {
  margin: 6px 0 12px;
}
.progress {
  height: 5px;
  background: #edf0f2;
  border-radius: 10px;
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--orange);
  border-radius: 10px;
}
.welcome .progress {
  background: #ffffff12;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 22px;
}
.kpi {
  background: white;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: left;
  position: relative;
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.kpi:hover {
  border-color: #d1d9df;
  transform: translateY(-2px);
}
.kpi-top {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #71808c;
  margin-bottom: 17px;
}
.kpi-icon {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 9px;
  color: var(--orange);
  background: var(--orange-soft);
}
.kpi-icon.green {
  color: var(--green);
  background: #eaf5ef;
}
.kpi-icon.blue {
  color: var(--blue);
  background: #edf4fa;
}
.kpi-icon.purple {
  color: #8d6fac;
  background: #f4eff8;
}
.kpi-value {
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -0.8px;
  white-space: nowrap;
}
.kpi-value small {
  font-size: 13px;
  color: #98a3ab;
  font-weight: 400;
  margin-right: 5px;
  letter-spacing: 0;
}
.kpi-foot {
  font-size: 10px;
  color: var(--muted);
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.positive {
  color: var(--green);
}
.negative {
  color: var(--red);
}
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 22px;
  margin-bottom: 22px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 16px;
  gap: 15px;
}
.panel-head p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
}
.panel-body {
  padding: 0 24px 22px;
}
.legend {
  display: flex;
  gap: 15px;
  font-size: 10px;
  color: var(--muted);
}
.legend i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  margin-right: 5px;
  background: var(--orange);
}
.legend i.gray {
  background: #d9e0e5;
}
.chart {
  height: 205px;
  width: 100%;
  overflow: visible;
}
.chart text {
  font:
    10px "Segoe UI",
    sans-serif;
  fill: #8b97a1;
}
.chart .bar {
  fill: var(--orange);
  transition: opacity 0.2s;
}
.chart .bar:hover {
  opacity: 0.65;
}
.chart .gridline {
  stroke: #eef0f3;
  stroke-dasharray: 4 4;
}
.chart-footer {
  display: flex;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: 10px;
  color: var(--muted);
}
.chart-footer strong {
  font-size: 15px;
  display: block;
  color: var(--ink);
  margin-top: 5px;
  font-weight: 600;
}
.production-summary {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 5px 0 22px;
}
.ring {
  width: 126px;
  height: 126px;
  border-radius: 50%;
  background: conic-gradient(
    var(--orange) 0 62.5%,
    #e7edf1 62.5% 87.5%,
    #f4f6f8 87.5%
  );
  display: grid;
  place-items: center;
  flex: none;
  position: relative;
}
.ring:before {
  content: "";
  position: absolute;
  inset: 13px;
  background: white;
  border-radius: 50%;
}
.ring div {
  z-index: 1;
  text-align: center;
}
.ring strong {
  display: block;
  font-size: 29px;
  letter-spacing: -1px;
}
.ring small {
  color: var(--muted);
  font-size: 10px;
}
.ring-key {
  flex: 1;
  display: grid;
  gap: 13px;
  font-size: 10px;
}
.ring-key div {
  display: flex;
  align-items: center;
  gap: 7px;
}
.ring-key b {
  margin-left: auto;
  font-size: 12px;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  background: var(--orange);
}
.dot.gray {
  background: #c6d3dd;
}
.dot.light {
  background: #e9edf0;
}
.mini-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  padding-top: 17px;
  gap: 12px;
}
.mini-stat-row small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 7px;
}
.mini-stat-row strong {
  font-size: 17px;
  font-weight: 600;
}
.mini-stat-row > div + div {
  border-left: 1px solid var(--line);
  padding-left: 17px;
}
.table-wrap {
  overflow: auto;
  width: 100%;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
  text-align: left;
  white-space: nowrap;
}
th {
  color: #87929c;
  font-weight: 500;
  background: #fafbfc;
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}
td {
  padding: 16px 20px;
  border-bottom: 1px solid #f0f2f4;
  color: #5c6b77;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fafbfc;
}
td strong {
  color: var(--ink);
  font-weight: 550;
}
.row-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--ink);
  font-weight: 600;
  text-align: left;
  font-size: 11px;
}
.row-link:hover {
  color: var(--orange);
}
.cell-sub {
  font-size: 9px;
  color: var(--muted);
  margin-top: 4px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 550;
  background: #f0f2f4;
  color: #6b7985;
}
.badge:before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.badge.orange {
  color: #c57527;
  background: #fff2e5;
}
.badge.green {
  color: var(--green);
  background: #eaf6ef;
}
.badge.red {
  color: #ca5b55;
  background: #fff0ee;
}
.badge.blue {
  color: #4d81aa;
  background: #edf4fa;
}
.badge.purple {
  color: #876ca7;
  background: #f3eff8;
}
.table-footer {
  padding: 15px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
}
.attention-list {
  padding: 0 22px;
}
.attention-item {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 13px;
  align-items: flex-start;
}
.attention-item:last-child {
  border: 0;
}
.attention-item .kpi-icon {
  width: 30px;
  height: 30px;
  flex: none;
}
.attention-item .kpi-icon svg {
  width: 15px;
}
.attention-item h3 {
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 6px;
}
.attention-item p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}
.attention-item button {
  margin-top: 7px;
  font-size: 10px;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #98a2aa;
  margin-top: 22px;
  letter-spacing: 0.1px;
}
.page-footer b {
  font-weight: 600;
  color: #7a8994;
}
.tabs {
  display: flex;
  gap: 25px;
  padding: 0 23px;
  border-bottom: 1px solid var(--line);
  overflow: auto;
  white-space: nowrap;
}
.tab {
  border: 0;
  background: none;
  font-size: 11px;
  padding: 18px 0 15px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}
.tab.active {
  color: var(--orange);
  border-color: var(--orange);
  font-weight: 600;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 20px 23px;
  flex-wrap: wrap;
}
.search-field {
  position: relative;
  min-width: 200px;
  flex: 1;
  max-width: 400px;
}
.search-field svg {
  position: absolute;
  left: 12px;
  top: 11px;
  width: 15px;
  height: 15px;
  color: #8d9ba5;
}
.search-field input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 11px;
}
.toolbar select {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: #697984;
  font-size: 11px;
}
.toolbar .result-count {
  margin-left: auto;
  font-size: 10px;
  color: var(--muted);
}
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}
.stats-strip .panel {
  padding: 20px 23px;
}
.stats-strip span {
  font-size: 11px;
  color: var(--muted);
}
.stats-strip strong {
  display: block;
  font-size: 25px;
  margin-top: 9px;
  font-weight: 600;
  letter-spacing: -0.8px;
}
.item-icon {
  display: inline-grid;
  place-items: center;
  background: #f1f4f6;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  margin-right: 10px;
  vertical-align: middle;
  color: #82949e;
}
.item-icon svg {
  width: 16px;
  height: 16px;
}
.mini-progress {
  width: 85px;
  height: 4px;
  background: #edf0f3;
  margin-top: 7px;
  border-radius: 3px;
  overflow: hidden;
}
.mini-progress i {
  display: block;
  height: 100%;
  background: var(--green);
}
.empty {
  padding: 50px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.summary-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 23px;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.summary-bar small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 9px;
}
.summary-bar b {
  font-size: 12px;
  font-weight: 600;
}
.steps {
  display: flex;
  padding: 30px 24px;
  overflow: auto;
  gap: 0;
}
.step {
  min-width: 84px;
  flex: 1;
  text-align: center;
  position: relative;
  font-size: 9px;
  color: var(--muted);
}
.step:before {
  content: "";
  position: absolute;
  top: 12px;
  height: 2px;
  background: var(--line);
  left: 0;
  right: 0;
}
.step:first-child:before {
  left: 50%;
}
.step:last-child:before {
  right: 50%;
}
.step i {
  position: relative;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  margin: 0 auto 10px;
  background: #edf1f4;
  color: #9ba8b2;
  font-style: normal;
  border: 4px solid white;
  box-sizing: content-box;
  top: -4px;
  font-size: 10px;
}
.step.done:before {
  background: #a2cfb7;
}
.step.done i {
  background: var(--green);
  color: white;
}
.step.current i {
  background: var(--orange);
  color: white;
  box-shadow: 0 0 0 1px var(--orange);
}
.step.current {
  color: var(--orange);
  font-weight: 600;
}
.costs {
  padding: 0 23px 20px;
}
.cost-line {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  padding: 10px 0;
}
.cost-line b {
  color: var(--ink);
  font-weight: 550;
}
.cost-line.total {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 18px;
}
.margin-callout {
  background: #edf7f1;
  border: 1px solid #dfede5;
  color: var(--green);
  border-radius: 9px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
  font-size: 11px;
}
.margin-callout strong {
  font-size: 24px;
}
.section-gap {
  margin-top: 22px;
}
.reports-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.report-card {
  padding: 25px;
  text-align: left;
  display: block;
  cursor: pointer;
  transition: 0.2s;
}
.report-card:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}
.report-card .kpi-icon {
  margin-bottom: 22px;
  width: 40px;
  height: 40px;
}
.report-card h2 {
  font-size: 14px;
  margin-bottom: 10px;
}
.report-card p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.report-card .arrow {
  display: block;
  text-align: right;
  margin-top: 18px;
  color: var(--orange);
}
.settings-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 22px;
}
.settings-form {
  padding: 25px;
  display: grid;
  gap: 20px;
}
.field {
  display: grid;
  gap: 8px;
  font-size: 11px;
  color: #647581;
}
.field input,
.field select,
.field textarea {
  border: 1px solid #dfe5e9;
  background: #fff;
  border-radius: 7px;
  min-height: 40px;
  padding: 10px 12px;
  width: 100%;
  color: var(--ink);
  font-size: 12px;
}
.field textarea {
  min-height: 80px;
  resize: vertical;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.field.full {
  grid-column: 1/-1;
}
.settings-note {
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
}
.brand-preview {
  background: #090b0d;
  padding: 22px;
  text-align: center;
}
.brand-preview img {
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
}
.settings-list {
  padding: 22px;
  line-height: 2;
  font-size: 11px;
}
.settings-list b {
  color: var(--ink);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  width: min(600px, calc(100% - 28px));
  padding: 0;
  box-shadow: 0 25px 100px #07151d35;
  max-height: 90vh;
  color: var(--ink);
}
dialog::backdrop {
  background: #0b19245e;
  backdrop-filter: blur(3px);
}
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 25px;
  border-bottom: 1px solid var(--line);
}
.dialog-header h2 {
  font-size: 18px;
}
.dialog-content {
  padding: 25px;
  max-height: 65vh;
  overflow: auto;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 22px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.detail-grid small {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}
.detail-grid strong {
  font-size: 13px;
}
.detail-note {
  padding: 15px;
  background: #f5f7f9;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.8;
  margin-top: 22px;
}
.movement {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}
.error {
  color: var(--red);
  font-size: 11px;
  line-height: 1.6;
  margin-top: 12px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--nav);
  color: white;
  border-radius: 9px;
  padding: 14px 22px;
  box-shadow: 0 8px 30px #0002;
  font-size: 12px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  background: #101920;
}
.login-story {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7vw;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 40% 40%, #233440, #0e171e 75%);
}
.login-story:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      120deg,
      transparent 60%,
      #f4772112 60.1%,
      transparent 60.5%
    ),
    repeating-linear-gradient(90deg, transparent 0 79px, #ffffff03 80px),
    repeating-linear-gradient(0deg, transparent 0 79px, #ffffff03 80px);
}
.login-story img {
  width: 100%;
  max-width: 550px;
  position: relative;
}
.login-story h1 {
  color: white;
  line-height: 1.2;
  font-size: 42px;
  margin-top: 30px;
  max-width: 500px;
  position: relative;
}
.login-story p {
  color: #899ca9;
  line-height: 1.8;
  margin-top: 20px;
  max-width: 400px;
  position: relative;
}
.login-side {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f8fa;
  padding: 30px;
}
.login-box {
  max-width: 350px;
  width: 100%;
}
.login-box .eyebrow {
  color: var(--orange);
  margin-bottom: 15px;
}
.login-box h2 {
  font-size: 28px;
}
.login-box > p {
  color: var(--muted);
  font-size: 12px;
  margin: 12px 0 30px;
}
.login-box form {
  display: grid;
  gap: 20px;
}
.login-box .btn {
  height: 45px;
}
.login-hint {
  font-size: 10px;
  line-height: 1.7;
  color: var(--muted);
  padding-top: 18px;
}
.menu-shade {
  display: none;
}
.tight td {
  padding-top: 11px;
  padding-bottom: 11px;
}
.print-only {
  display: none;
}
.sub-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: -6px 0 15px;
}
.settings-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.quick-grid {
  display: grid;
  gap: 12px;
}
.review-banner {
  padding: 12px 30px;
  background: #fff0e2;
  border-bottom: 1px solid #ffd6b7;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: #8e531f;
}
.review-banner .btn {
  margin-left: auto;
}
.review-on {
  background: #fff0e2;
  color: #c66b20;
}
.review-mode th[data-field],
.review-mode td[data-field] {
  cursor: help;
}
.review-mode th[data-field]:hover,
.review-mode td[data-field]:hover {
  background: #ffebd7;
  outline: 1px dashed var(--orange);
  outline-offset: -1px;
}
.review-mark {
  color: var(--orange);
}
.review-context {
  padding: 12px 15px;
  margin-bottom: 20px;
  background: #f5f7f9;
  border-radius: 7px;
  font-size: 11px;
  line-height: 1.7;
}
.voice-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 10px;
}
.note-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  margin: 15px 0;
  padding: 17px;
}
.note-card p {
  font-size: 12px;
  line-height: 1.7;
  margin-top: 12px;
  white-space: pre-wrap;
}
.note-actions {
  display: flex;
  gap: 8px;
  margin-top: 15px;
  flex-wrap: wrap;
}
dialog.wide {
  width: min(1000px, calc(100% - 28px));
}
.dialog-content .summary-bar {
  padding: 0 0 20px;
  grid-template-columns: repeat(4, 1fr);
}
.dialog-content h3 {
  margin-bottom: 12px;
}
.dialog-content .table-wrap {
  margin-top: 15px;
}
.review-banner span {
  line-height: 1.7;
}
@media (max-width: 700px) {
  .review-banner {
    padding: 10px 16px;
    align-items: flex-start;
  }
  .review-banner .btn {
    font-size: 10px;
    padding: 7px;
  }
  .dialog-content .summary-bar {
    grid-template-columns: 1fr 1fr;
  }
  .sub-actions {
    justify-content: flex-start;
  }
  .voice-toolbar .btn {
    font-size: 10px;
  }
}
@media (min-width: 1600px) {
  main {
    padding: 36px 45px;
  }
  .kpi-value {
    font-size: 30px;
  }
  .chart {
    height: 235px;
  }
  .welcome {
    min-height: 155px;
  }
}
@media (max-width: 1250px) {
  .layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .sidebar {
    width: 210px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .brand strong {
    font-size: 23px;
  }
  main {
    padding: 25px;
  }
  .topbar {
    padding: 0 25px;
    gap: 15px;
  }
  .global-search {
    width: 190px;
  }
  .profile {
    padding-left: 12px;
  }
  .profile div:not(.avatar) {
    display: none;
  }
  .kpi {
    padding: 16px;
  }
  .kpi-value {
    font-size: 22px;
  }
  .content-grid {
    gap: 17px;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  }
  .panel-head {
    padding: 20px 18px 16px;
  }
  .panel-body {
    padding: 0 18px 20px;
  }
  .ring {
    width: 104px;
    height: 104px;
  }
  .ring:before {
    inset: 11px;
  }
  .production-summary {
    gap: 14px;
  }
  .welcome h2 {
    font-size: 21px;
  }
  td,
  th {
    padding-left: 16px;
    padding-right: 16px;
  }
  .breadcrumb {
    font-size: 11px;
  }
}
@media (max-width: 1000px) {
  .layout {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .sidebar {
    width: 190px;
  }
  .nav a {
    padding: 11px 10px;
    font-size: 11px;
    gap: 10px;
  }
  .brand img {
    width: 35px;
  }
  .brand strong {
    font-size: 21px;
  }
  .workspace {
    padding: 10px 7px;
  }
  .global-search {
    width: 170px;
  }
  .breadcrumb {
    display: none;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .content-grid {
    grid-template-columns: 1fr;
  }
  .production-summary {
    justify-content: center;
  }
  .ring-key {
    max-width: 260px;
  }
  .welcome-metric {
    min-width: 140px;
    padding-left: 20px;
  }
  .welcome h2 {
    font-size: 19px;
  }
  .welcome {
    padding: 25px;
  }
  .reports-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .heading-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .summary-bar {
    grid-template-columns: repeat(3, 1fr);
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .stats-strip strong {
    font-size: 21px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .login-story h1 {
    font-size: 32px;
  }
}
@media (max-width: 700px) {
  .layout {
    display: block;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 238px;
  }
  .layout.menu-open .sidebar {
    transform: translateX(0);
  }
  .menu-shade {
    position: fixed;
    inset: 0;
    background: #07192380;
    z-index: 25;
    border: 0;
  }
  .menu-open .menu-shade {
    display: block;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .topbar {
    height: 65px;
    padding: 0 16px;
    gap: 10px;
  }
  .global-search {
    width: auto;
    flex: 1;
    max-width: 230px;
    margin-left: 0;
  }
  .global-search kbd {
    display: none;
  }
  .profile {
    display: none;
  }
  .lang {
    margin-left: auto;
  }
  main {
    padding: 23px 16px;
  }
  .page-heading {
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }
  .page-heading h1 {
    font-size: 26px;
  }
  .heading-actions {
    justify-content: flex-start;
  }
  .welcome {
    display: block;
    padding: 23px;
  }
  .welcome h2 {
    font-size: 21px;
    max-width: 280px;
    line-height: 1.4;
  }
  .welcome-metric {
    display: none;
  }
  .welcome p {
    line-height: 1.7;
    font-size: 11px;
    max-width: 270px;
  }
  .kpi-grid {
    gap: 10px;
  }
  .kpi {
    padding: 15px 12px;
  }
  .kpi-value {
    font-size: 21px;
  }
  .kpi-top {
    font-size: 10px;
    gap: 7px;
    margin-bottom: 15px;
  }
  .kpi-icon {
    width: 28px;
    height: 28px;
  }
  .kpi-foot {
    font-size: 9px;
    line-height: 1.5;
    flex-wrap: wrap;
  }
  .kpi-value small {
    font-size: 10px;
    margin-right: 3px;
  }
  .page-footer {
    line-height: 1.7;
    gap: 20px;
    font-size: 8px;
  }
  .page-footer > span:last-child {
    max-width: 130px;
    text-align: right;
  }
  .panel-head {
    padding: 20px 16px 16px;
  }
  .panel-head h2 {
    font-size: 14px;
  }
  .panel-head .legend {
    font-size: 9px;
    gap: 7px;
  }
  .panel-body {
    padding: 0 16px 20px;
  }
  .chart-footer {
    gap: 22px;
  }
  .stats-strip {
    gap: 10px;
  }
  .stats-strip .panel {
    padding: 15px 12px;
  }
  .stats-strip span {
    font-size: 10px;
    line-height: 1.5;
  }
  .stats-strip strong {
    font-size: 20px;
  }
  .tabs {
    gap: 22px;
    padding: 0 16px;
  }
  .toolbar {
    padding: 16px;
    gap: 10px;
  }
  .toolbar .search-field {
    max-width: none;
    width: 100%;
  }
  .toolbar .result-count {
    margin: 0;
  }
  .reports-grid {
    gap: 12px;
  }
  .report-card {
    padding: 18px;
  }
  .report-card h2 {
    font-size: 13px;
  }
  .report-card p {
    font-size: 10px;
  }
  .summary-bar {
    grid-template-columns: 1fr 1fr;
    padding: 20px;
    gap: 22px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-story {
    padding: 35px;
    min-height: 280px;
  }
  .login-story img {
    max-width: 230px;
    align-self: center;
  }
  .login-story h1 {
    font-size: 24px;
    margin-top: 18px;
  }
  .login-story p {
    display: none;
  }
  .login-side {
    padding: 35px 25px;
  }
  .login-box {
    max-width: 420px;
  }
  .dialog-content {
    padding: 20px;
  }
  .detail-grid {
    gap: 20px 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .sidebar,
  .topbar,
  .heading-actions,
  .page-footer,
  .tabs,
  .toolbar,
  .btn,
  .icon-btn,
  #toast,
  .menu-shade {
    display: none !important;
  }
  .layout {
    display: block;
  }
  main {
    padding: 0;
  }
  .panel {
    break-inside: avoid;
    box-shadow: none;
  }
  .content-grid {
    display: block;
  }
  .panel {
    margin-bottom: 20px;
  }
  body {
    background: white;
  }
  .print-only {
    display: block;
  }
  .table-wrap {
    overflow: visible;
  }
  table {
    white-space: normal;
  }
  dialog[open] {
    position: static;
    max-height: none;
    width: 100%;
    box-shadow: none;
  }
  .dialog-content {
    max-height: none;
  }
  .dialog-actions {
    display: none;
  }
  body:has(dialog[open]) #app {
    display: none;
  }
}
