/* demo-runtime/demo.css */
:root {
  color: #e9efed;
  font-synthesis: none;
  background: #0d1416;
  font-family: Inter, Segoe UI, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html, body, #root {
  background: #0d1416;
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  -webkit-font-smoothing: antialiased;
  font-size: 13px;
  line-height: 1.45;
}

button, input, select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

input, select {
  outline: none;
}

button:focus-visible {
  outline: 2px solid #f6d774;
  outline-offset: 2px;
}

input:focus-visible {
  outline: 2px solid #f6d774;
  outline-offset: 2px;
}

select:focus-visible {
  outline: 2px solid #f6d774;
  outline-offset: 2px;
}

.app-shell {
  display: flex;
  color: #ecf1f0;
  background: #0d1416;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  z-index: 55;
  display: flex;
  background: #11191b;
  border-right: 1px solid #2e393b;
  flex-direction: column;
  width: 249px;
  padding: 23px 13px 18px;
  top: 0;
  bottom: 0;
  left: 0;
}

.sidebar-brand {
  display: flex;
  align-items:  center;
  gap: 11px;
  padding: 2px 10px 21px;
}

.brand-mark {
  color: #18201e;
  letter-spacing: -.09em;
  background: #e4bb48;
  border-radius: 9px;
  padding: 12px 12px 11px;
  font-size: 23px;
  font-weight: 950;
  line-height: 1;
}

.brand-mark span {
  vertical-align: 2px;
  margin: 0 1px;
  font-size: 13px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.brand-copy strong {
  letter-spacing: .135em;
  white-space: nowrap;
  color: #f4e3b3;
  font-size: 14px;
}

.brand-copy small {
  letter-spacing: .11em;
  color: #86999d;
  white-space: nowrap;
  font-size: 8px;
  font-weight: 800;
}

.sidebar-divider {
  background: #303d40;
  height: 1px;
  margin: 0 10px 25px;
}

.sidebar-nav-label {
  color: #798b8e;
  letter-spacing: .16em;
  margin-bottom: 11px;
  padding: 0 16px;
  font-size: 10px;
  font-weight: 850;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-link {
  display: flex;
  text-align: left;
  color: #abb9bc;
  background: none;
  border: 1px solid #0000;
  border-radius: 10px;
  align-items:  center;
  gap: 13px;
  width: 100%;
  padding: 13px 14px;
  transition: all .17s;
  font-size: 12px;
  font-weight: 760;
}

.sidebar-link svg {
  color: #8e9ea3;
  flex-shrink: 0;
}

.sidebar-link:hover {
  color: #e5eae9;
  background: #1c282a;
}

.sidebar-link.selected {
  color: #f3d681;
  background: #302e22;
  border-color: #514a33;
  box-shadow: inset 3px 0 #e9c34d;
}

.sidebar-link.selected svg {
  color: #f0ce69;
}

.nav-active-dot {
  background: #e9c34d;
  border-radius: 50%;
  width: 6px;
  height: 6px;
  margin-left: auto;
}

.sidebar-footer {
  border-top: 1px solid #2e3b3e;
  margin-top: auto;
  padding: 16px 12px 8px;
}

.demo-shield {
  color: #e6cb82;
  letter-spacing: .065em;
  display: flex;
  align-items:  center;
  gap: 7px;
  font-size: 9px;
  font-weight: 850;
}

.sidebar-footer p {
  color: #87999e;
  margin: 10px 0;
  font-size: 10px;
  line-height: 1.65;
}

.sidebar-foot-date {
  color: #b3bec0;
  display: block;
  margin-top: 18px;
  font-size: 10px;
}

.main {
  display: flex;
  flex-direction: column;
  width: calc(100% - 249px);
  min-height: 100vh;
  margin-left: 249px;
}

.topbar {
  display: flex;
  position: sticky;
  z-index: 25;
  background: #111a1c;
  border-bottom: 1px solid #2a373a;
  justify-content: space-between;
  align-items:  center;
  gap: 18px;
  height: 68px;
  padding: 0 30px;
  top: 0;
}

.topbar-left, .topbar-right {
  display: flex;
  align-items:  center;
  gap: 12px;
  min-width: 0;
}

.topbar-left {
  color: #dce4e4;
  white-space: nowrap;
  font-size: 12px;
}

.topbar-left strong {
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 850;
}

.topbar-crumb {
  display: flex;
  color: #83969b;
  white-space: nowrap;
  align-items:  center;
  gap: 7px;
}

.date-filter {
  display: inline-flex;
  color: #a7b5b9;
  white-space: nowrap;
  align-items:  center;
  gap: 7px;
  font-size: 11px;
}

.date-filter svg {
  color: #d6bb6c;
}

.demo-pill {
  display: inline-flex;
  white-space: nowrap;
  color: #edd288;
  letter-spacing: .075em;
  background: #302b20;
  border: 1px solid #876d35;
  border-radius: 7px;
  align-items:  center;
  gap: 7px;
  padding: 7px 10px;
  font-size: 9px;
  font-weight: 900;
}

.demo-pill span {
  background: #e9c254;
  border-radius: 50%;
  width: 5px;
  height: 5px;
}

.reset-btn {
  color: #b5c0c2;
  white-space: nowrap;
  display: flex;
  background: #1b282a;
  border: 1px solid #36474b;
  border-radius: 7px;
  align-items:  center;
  gap: 6px;
  padding: 8px 10px;
  font-size: 10px;
  font-weight: 750;
}

.reset-btn:hover {
  color: #e4d1a5;
  border-color: #c7af65;
}

.hamburger {
  display: none;
  color: #fff;
  background: none;
  border: 0;
  padding: 8px;
}

main {
  flex: 1;
  width: 100%;
  max-width: 1580px;
  margin: 0 auto;
  padding: 29px 31px 64px;
}

.main-footer {
  display: flex;
  color: #697f84;
  border-top: 1px solid #293638;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 31px;
  font-size: 10px;
}

.view {
  display: flex;
  flex-direction: column;
  gap: 23px;
}

.eyebrow {
  letter-spacing: .14em;
  color: #e1c36a;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 900;
}

h1, h2, h3, h4, p {
  margin-top: 0;
}

h1 {
  letter-spacing: -.036em;
  color: #f6f7f3;
  margin: 5px 0 11px;
  font-size: clamp(26px, 2.65vw, 35px);
  font-weight: 870;
  line-height: 1.17;
}

h2 {
  letter-spacing: -.03em;
  color: #f2f3f0;
  font-size: clamp(25px, 2.3vw, 33px);
  font-weight: 860;
  line-height: 1.2;
}

h3 {
  letter-spacing: -.015em;
  color: #f0f1ef;
  margin: 0;
  font-size: 17px;
  font-weight: 850;
}

h4 {
  color: #f2f4f2;
  margin: 0;
  font-size: 14px;
  font-weight: 820;
}

.muted {
  color: #8a9b9e;
}

.small-note {
  color: #829699;
  margin: 16px 0 0;
  font-size: 11px;
  line-height: 1.6;
}

.page-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items:  end;
  gap: 20px;
}

.page-heading p {
  color: #9eacb0;
  max-width: 765px;
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
}

.header-actions, .welcome-actions {
  display: flex;
  flex-wrap: wrap;
  align-items:  center;
  gap: 9px;
}

.button {
  display: inline-flex;
  white-space: nowrap;
  border: 1px solid #0000;
  border-radius: 9px;
  justify-content: center;
  align-items:  center;
  gap: 8px;
  padding: 11px 14px;
  transition: all .16s;
  font-size: 11px;
  font-weight: 780;
}

.button.yellow {
  color: #141b1b;
  background: #e9c451;
  border-color: #edcc63;
}

.button.yellow:hover {
  background: #f4d982;
}

.button.secondary {
  color: #dae4e3;
  background: #1e292b;
  border-color: #4a5b5d;
}

.button.secondary:hover {
  background: #263235;
  border-color: #bfa85c;
}

.button.danger {
  color: #fff;
  background: #913c34;
  border-color: #a35247;
}

.button.subtle-danger {
  color: #e8aaa1;
  background: #261c1c;
  border-color: #65514d;
}

.button.subtle-danger:hover {
  background: #3b2322;
}

.button.small {
  padding: 8px 11px;
  font-size: 10px;
}

.button.tiny {
  padding: 7px 9px;
  font-size: 10px;
}

.text-action {
  display: inline-flex;
  color: #dfc675;
  white-space: nowrap;
  background: none;
  border: 0;
  align-items:  center;
  gap: 6px;
  padding: 5px 0;
  font-size: 11px;
  font-weight: 800;
}

.text-action:hover {
  color: #fff;
}

.welcome {
  position: relative;
  overflow: hidden;
  display: flex;
  background: radial-gradient(at 87% 40%, #cba33c22, #0000 49%), linear-gradient(110deg, #1e2727 0%, #111a1b 80%);
  border: 1px solid #554d35;
  border-radius: 16px;
  justify-content: space-between;
  align-items:  center;
  gap: 25px;
  padding: 30px 34px;
}

.welcome h1 {
  max-width: 570px;
  margin: 9px 0 13px;
  font-size: clamp(27px, 3.25vw, 42px);
}

.welcome p {
  color: #b1babb;
  max-width: 630px;
  margin: 0 0 20px;
  font-size: 13px;
  line-height: 1.7;
}

.year-stamp {
  text-align: center;
  display: flex;
  background: #272820;
  border: 1px solid #665a36;
  border-radius: 13px;
  flex-direction: column;
  flex-shrink: 0;
  align-items:  center;
  gap: 7px;
  min-width: 145px;
  padding: 22px;
}

.year-stamp strong {
  color: #efd06e;
  letter-spacing: -.07em;
  font-size: 55px;
  font-weight: 900;
  line-height: 1;
}

.year-stamp span {
  color: #d5c99f;
  letter-spacing: .1em;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.55;
}

.year-stamp small {
  color: #93a1a3;
  margin-top: 6px;
  font-size: 10px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 11px;
}

.kpi-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kpi {
  background: #182123;
  border: 1px solid #303e41;
  border-radius: 12px;
  min-width: 0;
  min-height: 145px;
  padding: 18px 15px 16px;
}

.kpi.highlight {
  background: linear-gradient(145deg, #282a20, #161f20);
  border-color: #64573a;
}

.kpi-head {
  display: flex;
  justify-content: space-between;
  align-items:  flex-start;
  gap: 8px;
  min-height: 30px;
}

.kpi-head span {
  color: #a0b0b4;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 9px;
  font-weight: 850;
  line-height: 1.5;
}

.kpi-head svg {
  color: #d8ba57;
  flex-shrink: 0;
}

.kpi-value {
  letter-spacing: -.048em;
  color: #eff2f1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
  margin: 11px 0 7px;
  font-size: clamp(17px, 1.65vw, 27px);
  font-weight: 870;
}

.kpi p {
  color: #819599;
  margin: 0;
  font-size: 10px;
  line-height: 1.48;
}

.two-up {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .9fr);
  gap: 16px;
}

.panel {
  background: #171f21;
  border: 1px solid #2d3c3f;
  border-radius: 13px;
  min-width: 0;
  padding: 20px;
}

.panel-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items:  flex-start;
  gap: 16px;
  margin-bottom: 22px;
}

.panel-heading h3 {
  margin: 6px 0 0;
}

.panel-heading p {
  color: #8b9da1;
  margin: 7px 0 0;
  font-size: 11px;
}

.panel-heading > svg {
  color: #d2b85e;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  align-items:  center;
  gap: 17px;
  margin-bottom: 13px;
}

.chart-legend span {
  display: flex;
  color: #a6b5b7;
  align-items:  center;
  gap: 6px;
  font-size: 10px;
}

.chart-legend i {
  display: inline-block;
  border-radius: 2px;
  width: 9px;
  height: 9px;
}

.chart-legend .revenue-key {
  background: #e7c552;
}

.chart-legend .cost-key {
  background: #64797c;
}

.bar-chart {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  border-bottom: 1px solid #3a484a;
  align-items:  end;
  gap: 7px;
  height: 218px;
  padding: 8px 4px 0;
}

.bar-group {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items:  center;
  gap: 5px;
  min-width: 0;
  height: 100%;
}

.bar-pair {
  display: flex;
  justify-content: center;
  align-items:  end;
  gap: 3px;
  width: 100%;
  height: calc(100% - 21px);
}

.bar {
  display: block;
  border-radius: 3px 3px 0 0;
  width: 40%;
  max-width: 16px;
  min-height: 2px;
  transition: height .4s;
}

.bar.revenue {
  background: linear-gradient(0deg, #a78835, #e9cc71);
}

.bar.cost {
  background: linear-gradient(0deg, #38494b, #789095);
}

.bar-group small {
  color: #8c9c9e;
  font-size: 9px;
}

.chart-caption {
  color: #7f9397;
  margin: 15px 0 0;
  font-size: 10px;
  line-height: 1.55;
}

.headline-profit {
  color: #f1d47d;
  letter-spacing: -.055em;
  white-space: nowrap;
  margin-top: 9px;
  font-size: clamp(28px, 3vw, 45px);
  font-weight: 900;
}

.profit-panel > p {
  color: #91a6a9;
  margin: 9px 0 20px;
  font-size: 12px;
  line-height: 1.6;
}

.profit-divider {
  background: #384547;
  height: 1px;
  margin: 14px 0;
}

.profit-stat {
  display: flex;
  color: #9faeb0;
  justify-content: space-between;
  align-items:  center;
  gap: 12px;
  padding: 9px 0;
  font-size: 11px;
}

.profit-stat strong {
  color: #eff2f1;
  font-size: 13px;
}

.mini-leaderboard {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mini-leaderboard > strong {
  color: #e4cf92;
  margin: 2px 0 5px;
  font-size: 11px;
}

.mini-leaderboard button {
  display: flex;
  color: #bac8c9;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid #2b3637;
  justify-content: space-between;
  align-items:  center;
  gap: 15px;
  width: 100%;
  padding: 9px 0;
  font-size: 10px;
}

.mini-leaderboard button strong {
  color: #e7d08a;
  white-space: nowrap;
  font-size: 10px;
}

.table-panel {
  overflow: hidden;
  padding: 0;
}

.table-panel .panel-heading {
  margin-bottom: 17px;
  padding: 19px 20px 0;
}

.table-scroll {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 780px;
}

table thead {
  background: #111a1d;
}

table th {
  color: #91a4a9;
  letter-spacing: .055em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid #334143;
  padding: 13px;
  font-size: 9px;
  font-weight: 840;
}

table td {
  color: #c8d3d4;
  vertical-align: middle;
  border-bottom: 1px solid #2b3b3d;
  padding: 12px 13px;
  font-size: 11px;
}

table tbody tr:last-child td {
  border-bottom: 0;
}

table tbody tr.clickable:hover {
  cursor: pointer;
  background: #222c2c;
}

table td strong {
  color: #eff2f2;
}

table td small {
  color: #83999d;
  display: block;
  margin: 5px 0 0;
  font-size: 10px;
  line-height: 1.4;
}

table td .job-code {
  color: #e3ca80;
}

table .right {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

table .positive {
  color: #e8d38c;
  font-weight: 800;
}

table .negative {
  color: #e2a9a4;
  font-weight: 800;
}

table .value {
  color: #e7d08d;
  font-weight: 800;
}

table tfoot {
  background: #252820;
  border-top: 1px solid #877b52;
}

table tfoot td {
  color: #e9cf86;
  font-weight: 800;
}

.finance-table {
  min-width: 1220px;
}

.job-code {
  color: #f1d17a;
  letter-spacing: .03em;
  font-size: 11px;
  font-weight: 850;
}

.bottom-note {
  display: flex;
  color: #99abad;
  align-items:  start;
  gap: 9px;
  font-size: 11px;
  line-height: 1.6;
}

.bottom-note svg {
  color: #c5af6a;
  flex-shrink: 0;
  margin-top: 1px;
}

.page-heading + .mini-kpis {
  margin-top: 0;
}

.mini-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.mini-kpis > div {
  display: flex;
  background: #182123;
  border: 1px solid #334143;
  border-radius: 11px;
  flex-direction: column;
  gap: 7px;
  padding: 17px;
}

.mini-kpis span {
  color: #a2b3b5;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 790;
}

.mini-kpis strong {
  color: #f1f2f2;
  letter-spacing: -.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: clamp(17px, 2vw, 26px);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items:  center;
  gap: 12px;
}

.search-box {
  display: flex;
  color: #9dadaf;
  background: #172123;
  border: 1px solid #425153;
  border-radius: 9px;
  flex: 1;
  align-items:  center;
  gap: 9px;
  min-width: 260px;
  max-width: 500px;
  padding: 0 13px;
}

.search-box input {
  outline: 0;
  color: #f2f4f3;
  background: none;
  border: 0;
  width: 100%;
  padding: 12px 0;
  font-size: 12px;
}

.tabs {
  display: flex;
  background: #151d1f;
  border: 1px solid #334245;
  border-radius: 10px;
  flex-wrap: wrap;
  gap: 5px;
  padding: 4px;
}

.tabs button {
  color: #aebdc0;
  background: none;
  border: 0;
  border-radius: 7px;
  padding: 9px 13px;
  font-size: 11px;
  font-weight: 800;
}

.tabs button.active {
  color: #f4d982;
  background: #363324;
}

.mini-action {
  display: inline-flex;
  color: #dfc883;
  white-space: nowrap;
  background: #2c3026;
  border: 0;
  border-radius: 6px;
  align-items:  center;
  gap: 5px;
  padding: 7px 9px;
  font-size: 10px;
  font-weight: 800;
}

.mini-action:hover {
  background: #45412b;
}

.tag {
  white-space: nowrap;
  display: inline-block;
  border-radius: 18px;
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 800;
}

.tag-receive {
  color: #b2dac6;
  background: #18342b;
  border: 1px solid #3d6658;
}

.tag-issue {
  color: #ead396;
  background: #342e21;
  border: 1px solid #6d6141;
}

.table-link {
  color: #e6ca7a;
  background: none;
  border: 0;
  padding: 0;
  font-size: 11px;
  font-weight: 800;
}

.status-pill {
  display: inline-flex;
  white-space: nowrap;
  border: 1px solid #4b585b;
  border-radius: 20px;
  align-items:  center;
  gap: 7px;
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 800;
}

.status-dot {
  background: currentColor;
  border-radius: 50%;
  width: 6px;
  height: 6px;
}

.status-closed {
  color: #c6dfce;
  background: #1b3229;
  border-color: #41634b;
}

.status-open {
  color: #e9cf87;
  background: #342d1e;
  border-color: #706042;
}

.status-removed {
  color: #d9a29b;
  background: #3e2928;
  border-color: #765049;
}

.back-link {
  display: inline-flex;
  color: #a6b7ba;
  background: none;
  border: 0;
  align-self:  flex-start;
  align-items:  center;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
}

.back-link:hover {
  color: #fff;
}

.detail-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items:  flex-start;
  gap: 20px;
}

.detail-header h2 {
  margin: 8px 0 9px;
}

.detail-header p {
  color: #92a5a9;
  margin: 0 0 15px;
  font-size: 12px;
}

.detail-meta {
  display: flex;
  color: #a6b5b7;
  flex-wrap: wrap;
  align-items:  center;
  gap: 13px;
  font-size: 11px;
}

.detail-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.detail-two {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(290px, .85fr);
  gap: 15px;
}

.breakdown {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.breakdown-line > div:first-child, .report-line > div:first-child {
  display: flex;
  color: #b8c6c6;
  justify-content: space-between;
  align-items:  center;
  gap: 12px;
  margin-bottom: 7px;
  font-size: 11px;
}

.breakdown-line strong, .report-line strong {
  color: #e7ebea;
}

.breakdown-track {
  overflow: hidden;
  background: #273538;
  border-radius: 50px;
  height: 7px;
}

.breakdown-track > div {
  background: linear-gradient(90deg, #ad8c34, #e7cd71);
  border-radius: 50px;
  height: 100%;
}

.breakdown-total {
  display: flex;
  color: #e8d08c;
  border-top: 1px solid #394748;
  justify-content: space-between;
  gap: 10px;
  margin-top: 5px;
  padding-top: 16px;
  font-size: 12px;
  font-weight: 850;
}

.progress-summary {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 14px 0;
}

.progress-summary strong {
  color: #f1d586;
  letter-spacing: -.05em;
  font-size: 33px;
}

.progress-summary span {
  color: #9aadb1;
  font-size: 11px;
}

.meter {
  overflow: hidden;
  background: #293638;
  border-radius: 99px;
  width: 100%;
  height: 7px;
}

.meter > div {
  background: #e6c86a;
  border-radius: 99px;
  height: 100%;
  transition: width .18s;
}

.stage-summary-row {
  display: flex;
  color: #a9b7ba;
  border-bottom: 1px solid #2e3c3d;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 0;
  font-size: 11px;
}

.stage-summary-row strong {
  color: #e8eeee;
  font-size: 12px;
}

.section-title-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items:  flex-end;
  gap: 15px;
  margin-top: 6px;
}

.section-title-row h3 {
  margin: 5px 0 0;
  font-size: 19px;
}

.package-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.package-card {
  overflow: hidden;
  background: #182123;
  border: 1px solid #3a4749;
  border-radius: 12px;
}

.package-card.expanded {
  border-color: #796d44;
}

.package-header {
  display: grid;
  grid-template-columns: 36px minmax(180px, 1fr) 112px 110px 70px 18px;
  text-align: left;
  color: #d7e0df;
  background: none;
  border: 0;
  align-items:  center;
  gap: 14px;
  width: 100%;
  padding: 17px;
}

.package-header:hover, .package-card.expanded .package-header {
  background: #282b23;
}

.package-icon {
  display: grid;
  color: #e6c368;
  background: #393023;
  border: 1px solid #7d6941;
  border-radius: 8px;
  place-items:  center;
  width: 35px;
  height: 35px;
}

.package-main h4 {
  margin: 5px 0;
  font-size: 14px;
}

.package-main p {
  color: #96a7aa;
  margin: 0;
  font-size: 10px;
}

.package-stat {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.package-stat small {
  color: #9faeb2;
  white-space: nowrap;
  font-size: 9px;
  font-weight: 800;
}

.package-stat strong {
  color: #e4ebeb;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 800;
}

.package-content {
  background: #141d1f;
  border-top: 1px solid #544d34;
  padding: 16px 18px;
}

.inner-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items:  center;
  gap: 15px;
  margin-bottom: 14px;
}

.inner-toolbar p {
  color: #9cacae;
  max-width: 630px;
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
}

.product-row {
  overflow: hidden;
  border: 1px solid #344344;
  border-radius: 9px;
  margin-bottom: 9px;
}

.product-heading {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 110px 130px 110px 15px;
  text-align: left;
  color: #dae4e3;
  background: #1c2829;
  border: 0;
  align-items:  center;
  gap: 12px;
  width: 100%;
  padding: 13px 15px;
  font-size: 11px;
}

.product-heading:hover {
  background: #293332;
}

.product-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-title strong {
  font-size: 12px;
}

.product-title small {
  color: #92a8ac;
  font-size: 10px;
}

.product-summary {
  color: #b1bec0;
  font-size: 10px;
}

.stage-detail {
  background: #121b1c;
  padding: 14px;
}

.stage-detail-label {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 2px 4px 13px;
}

.stage-detail-label strong {
  font-size: 13px;
}

.stage-detail-label span {
  color: #99a9ad;
  font-size: 11px;
}

.stage-line {
  display: grid;
  grid-template-columns: 29px minmax(150px, 1fr) 80px 62px 122px 44px 14px;
  border-top: 1px solid #2c3c3e;
  align-items:  center;
  gap: 10px;
  padding: 10px 7px;
}

.stage-line.stage-na {
  opacity: .62;
}

.stage-index {
  color: #d7bf79;
  font-size: 10px;
  font-weight: 850;
}

.stage-name {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.stage-name strong {
  color: #e0e9e8;
  font-size: 11px;
}

.stage-name small {
  color: #879b9d;
  font-size: 10px;
}

.stage-count {
  color: #c3d0d1;
  white-space: nowrap;
  text-align: right;
  font-size: 11px;
  font-weight: 750;
}

.stage-form {
  display: flex;
  align-items:  center;
  gap: 5px;
}

.stage-form input {
  color: #e5eeee;
  background: #10191a;
  border: 1px solid #465657;
  border-radius: 7px;
  width: 54px;
  min-width: 0;
  padding: 7px 6px;
  font-size: 11px;
}

.stage-toggle {
  color: #dcc68c;
  background: #333023;
  border: 1px solid #756541;
  border-radius: 6px;
  padding: 7px 5px;
  font-size: 10px;
}

.check-icon {
  color: #a5c6ad;
}

.empty-box {
  color: #96a8a9;
  text-align: center;
  padding: 22px;
  font-size: 12px;
  line-height: 1.65;
}

.production-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.production-card {
  display: grid;
  grid-template-columns: 130px minmax(180px, 1fr) 85px 85px 80px 16px;
  text-align: left;
  color: #e4efed;
  background: #192324;
  border: 1px solid #334347;
  border-radius: 10px;
  align-items:  center;
  gap: 13px;
  padding: 17px;
}

.production-card:hover {
  background: #242e2d;
  border-color: #807142;
}

.production-code {
  display: flex;
  flex-direction: column;
  align-items:  flex-start;
  gap: 7px;
}

.production-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.production-main strong {
  font-size: 13px;
}

.production-main small {
  color: #91a4a8;
  font-size: 10px;
}

.production-step {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.production-step small {
  color: #94a7a9;
  font-size: 9px;
}

.production-step strong {
  font-size: 12px;
}

.flow-strip {
  display: flex;
  background: #182123;
  border: 1px solid #3b4643;
  border-radius: 11px;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px;
}

.flow-strip span {
  display: flex;
  color: #b7c4c3;
  background: #242d2f;
  border-radius: 6px;
  align-items:  center;
  gap: 7px;
  padding: 7px 9px;
  font-size: 10px;
  font-weight: 760;
}

.flow-strip b {
  color: #e7ca77;
}

.after-note {
  font-size: 11px;
}

.filter-inline {
  display: flex;
  color: #9eabad;
  align-items:  center;
  gap: 12px;
  margin-top: -10px;
  font-size: 11px;
}

.filter-inline select {
  color: #e8eeee;
  background: #182223;
  border: 1px solid #425151;
  border-radius: 8px;
  min-width: 160px;
  padding: 9px 11px;
}

.store-stats strong {
  font-size: clamp(16px, 1.6vw, 24px);
}

.report-cost {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.report-line {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.report-line > div:first-child {
  font-size: 10px;
}

.project-detail .section-title-row {
  margin-top: 8px;
}

.modal-shade {
  position: fixed;
  z-index: 90;
  display: flex;
  backdrop-filter: blur(5px);
  background: #030708d1;
  justify-content: center;
  align-items:  center;
  padding: 17px;
  inset: 0;
}

.modal-card {
  overflow-y: auto;
  background: #172123;
  border: 1px solid #495b5a;
  border-radius: 14px;
  width: min(100%, 605px);
  max-height: 90vh;
  box-shadow: 0 25px 90px #0009;
}

.modal-head {
  display: flex;
  border-bottom: 1px solid #354344;
  justify-content: space-between;
  align-items:  center;
  gap: 13px;
  padding: 21px 24px;
}

.modal-head h3 {
  margin: 6px 0 0;
  font-size: 20px;
}

.modal-close {
  color: #bac9c8;
  background: #273335;
  border: 1px solid #435455;
  border-radius: 7px;
  padding: 7px;
}

.modal-card form {
  padding: 20px 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-grid label {
  display: flex;
  color: #c1cece;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  font-size: 11px;
  font-weight: 770;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.form-grid input, .form-grid select {
  color: #eef3f2;
  background: #101a1c;
  border: 1px solid #49595a;
  border-radius: 8px;
  width: 100%;
  padding: 12px;
  font-size: 12px;
}

.form-grid input::placeholder {
  color: #668085;
}

.modal-copy {
  color: #a7b8ba;
  margin: 0;
  font-size: 11px;
  line-height: 1.65;
}

.modal-copy strong {
  color: #f0d38b;
}

.modal-warning {
  display: flex;
  color: #ecc1b8;
  background: #372522;
  border: 1px solid #765044;
  border-radius: 8px;
  align-items:  flex-start;
  gap: 10px;
  padding: 13px;
}

.modal-warning svg {
  flex-shrink: 0;
}

.modal-warning p {
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
}

.modal-footer {
  display: flex;
  border-top: 1px solid #334345;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items:  center;
  gap: 10px;
  margin-top: 22px;
  padding-top: 19px;
}

.toast {
  position: fixed;
  z-index: 100;
  display: flex;
  color: #dae9d2;
  background: #253326;
  border: 1px solid #5c684b;
  border-radius: 10px;
  justify-content: space-between;
  align-items:  center;
  gap: 12px;
  max-width: min(440px, 100vw - 36px);
  padding: 14px 15px;
  bottom: 24px;
  right: 24px;
  box-shadow: 0 12px 65px #000a;
}

.toast.error {
  color: #f5c8b9;
  background: #392421;
  border-color: #8e5249;
}

.toast > div {
  display: flex;
  align-items:  flex-start;
  gap: 9px;
  font-size: 12px;
  line-height: 1.55;
}

.toast svg {
  flex-shrink: 0;
}

.toast button {
  color: inherit;
  background: none;
  border: 0;
}

.mobile-backdrop {
  display: none;
}

@media (max-width: 1500px) {
  .package-header {
    grid-template-columns: 35px minmax(160px, 1fr) 90px 90px 62px 18px;
    gap: 9px;
  }

  .stage-line {
    grid-template-columns: 26px minmax(115px, 1fr) 70px 55px 118px 42px 14px;
    gap: 7px;
  }
}

@media (max-width: 1320px) {
  .kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .topbar {
    padding: 0 22px;
  }

  main {
    padding: 24px 24px 58px;
  }

  .package-header {
    grid-template-columns: 34px 1fr 82px 72px 16px;
  }

  .package-header .package-stat:nth-of-type(4) {
    display: none;
  }

  .two-up {
    grid-template-columns: minmax(0, 1.3fr) minmax(285px, .85fr);
  }
}

@media (max-width: 1100px) {
  .sidebar {
    width: 215px;
  }

  .main {
    width: calc(100% - 215px);
    margin-left: 215px;
  }

  .brand-copy small {
    font-size: 7px;
  }

  .topbar-right .date-filter {
    display: none;
  }

  .two-up {
    grid-template-columns: 1fr;
  }

  .package-header {
    grid-template-columns: 34px 1fr 100px 85px 16px;
  }

  .detail-two {
    grid-template-columns: 1fr;
  }

  .stage-line {
    grid-template-columns: 24px minmax(120px, 1fr) 70px 57px 113px 45px 15px;
  }
}

@media (max-width: 850px) {
  .sidebar {
    width: 250px;
    transition: transform .2s;
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .mobile-backdrop {
    display: block;
    position: fixed;
    z-index: 50;
    background: #0009;
    border: 0;
    inset: 0;
  }

  .main {
    width: 100%;
    margin-left: 0;
  }

  .hamburger {
    display: inline-flex;
  }

  .topbar {
    height: 60px;
  }

  .welcome {
    padding: 24px;
  }

  .kpi-grid, .kpi-grid.four, .detail-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stage-line {
    grid-template-columns: 25px minmax(120px, 1fr) 60px 55px 115px 40px 14px;
  }

  .production-card {
    grid-template-columns: 90px 1fr 70px 65px 16px;
  }

  .production-card .production-step:nth-of-type(5) {
    display: none;
  }
}

@media (max-width: 650px) {
  main {
    padding: 17px 14px 43px;
  }

  .topbar {
    padding: 0 13px;
  }

  .topbar-crumb, .reset-btn {
    display: none;
  }

  .topbar-left strong {
    font-size: 12px;
  }

  .welcome {
    padding: 20px;
  }

  .year-stamp {
    display: none;
  }

  .welcome h1 {
    font-size: 29px;
  }

  .welcome p {
    font-size: 12px;
  }

  .kpi-grid, .kpi-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .kpi {
    min-height: 128px;
    padding: 13px;
  }

  .kpi-value {
    font-size: 19px;
  }

  .kpi-head span {
    font-size: 9px;
  }

  .mini-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel {
    padding: 14px;
  }

  .table-panel {
    padding: 0;
  }

  .panel-heading {
    padding-bottom: 0;
  }

  .two-up {
    gap: 12px;
  }

  .package-header {
    grid-template-columns: 30px 1fr 57px 14px;
    gap: 7px;
    padding: 13px;
  }

  .package-header .package-stat:nth-of-type(3), .package-header .package-stat:nth-of-type(4) {
    display: none;
  }

  .package-icon {
    width: 28px;
    height: 28px;
  }

  .package-main h4 {
    font-size: 12px;
  }

  .package-content {
    padding: 11px;
  }

  .product-heading {
    grid-template-columns: 1fr 67px 60px 14px;
    gap: 6px;
  }

  .product-heading .product-summary:nth-of-type(4) {
    display: none;
  }

  .product-heading .product-summary {
    font-size: 9px;
  }

  .stage-detail {
    padding: 9px;
  }

  .stage-line {
    grid-template-columns: 21px minmax(92px, 1fr) 48px 52px;
    gap: 5px;
    padding: 10px 4px;
  }

  .stage-line > .stage-progress {
    display: none;
  }

  .stage-form {
    grid-column: 2 / 3;
  }

  .stage-toggle {
    grid-column: 3 / 4;
  }

  .stage-count {
    grid-column: 4 / 5;
  }

  .check-icon {
    display: none;
  }

  .stage-name strong {
    font-size: 10px;
  }

  .stage-name small {
    font-size: 9px;
  }

  .production-card {
    grid-template-columns: 85px 1fr 48px 14px;
    gap: 6px;
    padding: 12px;
  }

  .production-card .production-step:nth-of-type(4), .production-card .production-step:nth-of-type(5) {
    display: none;
  }

  .production-main strong {
    font-size: 11px;
  }

  .production-code .status-pill {
    padding: 4px 7px;
    font-size: 9px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .modal-card form {
    padding: 16px;
  }

  .modal-head {
    padding: 17px;
  }

  .bar-chart {
    height: 166px;
  }

  .bar-group small {
    font-size: 8px;
  }

  .welcome-actions, .header-actions {
    width: 100%;
  }

  .main-footer {
    padding: 15px;
  }

  .profit-stat strong {
    font-size: 11px;
  }

  .detail-header {
    gap: 12px;
  }

  .detail-kpis .kpi-value {
    font-size: 18px;
  }
}

@media print {
  .sidebar, .topbar, .main-footer, .button, .reset-btn, .toast, .modal-shade, .header-actions, .sidebar-footer, .welcome-actions, .tabs, .filters, .back-link, .mini-action, .text-action {
    display: none !important;
  }

  .main {
    width: 100%;
    margin: 0;
  }

  .app-shell, body, html, #root {
    color: #111 !important;
    background: #fff !important;
  }

  .view {
    gap: 15px;
  }

  .panel, .kpi, .welcome, .package-card, .mini-kpis > div {
    color: #111 !important;
    background: #fff !important;
    border-color: #aaa !important;
  }

  .kpi-value, .kpi-head span, .panel h3, .welcome h1, .page-heading h1, .package-main h4, table td, table th, table strong {
    color: #111 !important;
  }

  .page-heading p, .welcome p, .kpi p {
    color: #444 !important;
  }

  .two-up {
    grid-template-columns: 1fr;
  }

  .panel, .kpi, .package-card {
    break-inside: avoid;
  }

  .kpi-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .bar.cost {
    background: #777 !important;
  }

  .bar.revenue {
    background: #333 !important;
  }

  @page {
    size: A4 landscape;
    margin: 11mm;
  }
}
