:root {
  --ink: #202624;
  --muted: #64706a;
  --line: #e0e6e2;
  --paper: #f4f6f4;
  --blue: #2454da;
  --green: #256b49;
  --lime: #d5edac;
  --orange: #915018;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
  letter-spacing: 0;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.7;
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
button,
a,
input,
select {
  outline-offset: 4px;
}
:focus-visible {
  outline: 3px solid var(--blue);
}
.skip {
  position: fixed;
  top: -80px;
  left: 20px;
  background: white;
  padding: 15px;
  z-index: 10;
}
.skip:focus {
  top: 12px;
}
.demo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 24px;
  background: #e8eddf;
  font-size: 11px;
  color: #405037;
  border-bottom: 1px solid #d7dfcf;
}
.demo-banner a {
  display: flex;
  gap: 6px;
  align-items: center;
  font-weight: 600;
}
.demo-banner svg {
  width: 14px;
  height: 14px;
}
.app-shell {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  min-height: calc(100vh - 40px);
}
.sidebar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: white;
  padding: 30px 16px 0;
  border-right: 1px solid var(--line);
}
.app-brand {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 30px;
  font-weight: 700;
}
.app-brand > span {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  color: white;
  background: var(--blue);
  border-radius: 8px;
}
.app-brand small {
  font-size: 9px;
  font-weight: 500;
  align-self: end;
  padding-bottom: 8px;
  color: var(--muted);
}
.workspace-name {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 32px 0 24px;
  padding: 12px 6px;
  border-block: 1px solid var(--line);
}
.workspace-name strong,
.workspace-name small {
  display: block;
}
.workspace-name small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.workspace-name > svg {
  margin-left: auto;
  width: 13px;
}
.workspace-avatar {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
}
.nav-label {
  font-size: 9px;
  color: var(--muted);
  padding-left: 12px;
}
.sidebar nav {
  display: grid;
  gap: 6px;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 500;
}
.sidebar nav a:hover {
  background: var(--paper);
}
.sidebar nav a.active {
  color: var(--blue);
  background: #edf1ff;
}
.sidebar nav b {
  margin-left: auto;
  background: #dbe5ff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 48px;
}
.sidebar-bottom > a,
.sidebar-bottom > button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 8px;
  font-size: 11px;
  color: var(--muted);
  background: none;
  border: none;
}
.sidebar-bottom > a:hover {
  color: var(--blue);
}
.user-panel {
  display: flex;
  align-items: center;
  gap: 9px;
  border-top: 1px solid var(--line);
  padding: 20px 2px;
  margin-top: 18px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--lime);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
}
.user-panel strong,
.user-panel small {
  display: block;
}
.user-panel strong {
  font-size: 12px;
}
.user-panel small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.user-panel > svg {
  width: 16px;
  margin-left: auto;
  color: var(--green);
}
main {
  min-width: 0;
  width: 100%;
  max-width: 1550px;
  padding: 34px 36px 0;
  margin: auto;
  align-self: start;
}
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.app-header p:first-child {
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 10px;
}
.app-header p span {
  margin-left: 10px;
}
.app-header h1 {
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 7px;
}
.header-description {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.primary,
.secondary,
.text-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 6px;
  min-height: 38px;
  padding: 9px 14px;
  font-weight: 600;
  font-size: 12px;
  border: 1px solid transparent;
}
.primary {
  background: var(--blue);
  color: white;
}
.primary:hover {
  background: #173fb2;
}
.secondary {
  background: white;
  border-color: var(--line);
  color: var(--ink);
}
.secondary:hover {
  border-color: #adb9b0;
}
.text-button {
  padding: 0;
  color: var(--blue);
  background: none;
}
.icon-button {
  width: 36px;
  height: 36px;
  padding: 0;
  background: white;
  border-color: var(--line);
}
.live-badge {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.live-badge > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4b8c45;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.stat {
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
}
.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
.stat-top svg {
  color: #839787;
}
.stat strong {
  display: block;
  font-size: 28px;
  font-weight: 600;
  margin: 14px 0 9px;
  overflow-wrap: anywhere;
}
.stat small {
  color: var(--muted);
  font-size: 10px;
}
.stat.featured {
  background: #e5efce;
  border-color: #d5e2bd;
}
.stat.featured .stat-top svg {
  color: #496128;
}
.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
  gap: 18px;
  margin-top: 24px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  min-width: 0;
}
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}
.panel h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 5px;
}
.muted {
  color: var(--muted);
  line-height: 1.6;
  font-size: 12px;
}
.panel-head p {
  margin: 0;
}
.chart {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 18px;
  height: 196px;
  border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent 47px,
    #f0f3f0 48px,
    #f0f3f0 49px
  );
  padding: 0 14px;
}
.chart button {
  position: relative;
  background: #dae4dd;
  border: none;
  border-radius: 5px 5px 0 0;
  min-height: 12px;
  width: 100%;
  transition:
    height 0.25s,
    background 0.2s;
}
.chart button:hover,
.chart button:last-child {
  background: var(--blue);
}
.chart button:focus-visible {
  outline-offset: 2px;
}
.chart-labels {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  text-align: center;
  font-size: 10px;
  color: var(--muted);
  padding: 12px 14px 0;
}
.chart-caption {
  margin: 16px 0 0;
  font-size: 11px;
  color: var(--muted);
}
.activity-list {
  display: grid;
  gap: 2px;
}
.activity-list button {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  border: none;
  background: none;
  padding: 13px 0;
  width: 100%;
  border-bottom: 1px solid var(--line);
}
.activity-list button:last-child {
  border-bottom: none;
}
.activity-icon {
  display: grid;
  place-items: center;
  background: #f0f3ed;
  border-radius: 6px;
  color: var(--green);
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}
.activity-list strong,
.activity-list small {
  display: block;
}
.activity-list strong {
  font-size: 12px;
  font-weight: 600;
}
.activity-list small {
  font-size: 10px;
  margin-top: 4px;
  color: var(--muted);
}
.activity-list button > svg {
  margin-left: auto;
  width: 14px;
}
.orders-panel {
  margin-top: 24px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.search-field {
  position: relative;
  flex: 1;
  min-width: 150px;
}
.search-field svg {
  position: absolute;
  top: 11px;
  left: 12px;
  color: var(--muted);
  width: 16px;
}
.search-field input {
  width: 100%;
  padding-left: 36px;
}
.toolbar select {
  min-width: 150px;
}
input,
select {
  border: 1px solid var(--line);
  border-radius: 5px;
  min-height: 39px;
  padding: 9px 11px;
  background: white;
  color: var(--ink);
  max-width: 100%;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
th {
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  background: #f7f9f7;
  padding: 12px;
}
td {
  padding: 17px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
tr:last-child td {
  border-bottom: 0;
}
.order-link {
  border: 0;
  background: none;
  color: var(--blue);
  font: inherit;
  font-weight: 600;
  padding: 0;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
  background: #fff0d9;
  color: #855207;
}
.status.preparing {
  background: #edf1ff;
  color: #3153b0;
}
.status.done {
  background: #e4f2e9;
  color: #286042;
}
.status:before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.empty-state {
  padding: 40px;
  text-align: center;
  color: var(--muted);
}
.client-avatar {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: #eff2eb;
  color: #456046;
  border-radius: 50%;
  margin-right: 9px;
  font-size: 10px;
}
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.inventory-item {
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.inventory-item > svg {
  width: 26px;
  height: 26px;
  color: var(--green);
  margin-bottom: 20px;
}
.inventory-item h3 {
  font-size: 15px;
  margin-bottom: 6px;
}
.inventory-item p {
  font-size: 11px;
  color: var(--muted);
}
.stock-number {
  font-size: 26px;
  margin: 22px 0 8px;
  display: block;
  font-weight: 600;
}
.low-stock {
  color: var(--orange);
}
.inventory-item .secondary {
  margin-top: 18px;
  width: 100%;
}
.report-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 24px;
}
.report-summary dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  font-size: 13px;
  margin: 20px 0 0;
}
.report-summary dd {
  margin: 0;
  font-weight: 600;
}
.report-note {
  border-left: 3px solid var(--blue);
  padding: 12px 18px;
  margin: 24px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.mobile-reset {
  display: none;
}
.app-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--line);
  margin-top: 34px;
  padding: 20px 0;
  font-size: 10px;
  color: var(--muted);
}
dialog {
  width: min(500px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  color: var(--ink);
  max-height: 90dvh;
  overflow-y: auto;
}
dialog::backdrop {
  background: #17231e70;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.dialog-head h2 {
  font-size: 22px;
  margin: 0;
}
.eyebrow {
  font-size: 10px;
  color: var(--blue);
  margin-bottom: 8px;
}
label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  margin: 18px 0;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.order-estimate {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  background: var(--paper);
  padding: 18px;
  margin: 20px 0;
  font-size: 13px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
.error {
  color: #a52020;
  font-size: 12px;
}
.detail-list {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  font-size: 13px;
}
.detail-list dd {
  margin: 0;
  text-align: right;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  max-width: calc(100% - 32px);
  padding: 14px 20px;
  border-radius: 6px;
  background: #202e25;
  color: white;
  z-index: 10;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
[hidden] {
  display: none !important;
}
@media (min-width: 1600px) {
  main {
    padding: 44px 54px 0;
  }
  .stat strong {
    font-size: 32px;
  }
  .chart {
    height: 250px;
  }
}
@media (max-width: 1150px) {
  .app-shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  main {
    padding: 28px 22px 0;
  }
  .live-badge {
    display: none;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .workspace-grid {
    grid-template-columns: 1fr 1fr;
  }
  .inventory-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 800px) {
  .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .mobile-reset {
    display: inline-flex;
    align-self: start;
  }
  .sidebar {
    padding: 16px 20px 0;
    border-bottom: 1px solid var(--line);
    border-right: none;
  }
  .app-brand {
    font-size: 24px;
  }
  .app-brand > span {
    width: 28px;
    height: 28px;
  }
  .workspace-name,
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    margin-top: 16px;
  }
  .sidebar nav a {
    padding: 12px 10px;
    white-space: nowrap;
    font-size: 12px;
    border-radius: 0;
    border-bottom: 2px solid transparent;
  }
  .sidebar nav a.active {
    border-bottom-color: var(--blue);
    background: none;
  }
  .sidebar nav svg {
    width: 15px;
    height: 15px;
  }
  .sidebar nav b {
    display: none;
  }
  .app-header h1 {
    font-size: 25px;
  }
  .workspace-grid {
    grid-template-columns: 1fr;
  }
  .inventory-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .report-summary {
    grid-template-columns: 1fr;
  }
  .demo-banner {
    padding: 8px 20px;
    font-size: 9px;
  }
  .demo-banner span {
    max-width: 75%;
  }
  .demo-banner a {
    white-space: nowrap;
  }
  .panel {
    padding: 20px;
  }
}
@media (max-width: 480px) {
  main {
    padding: 24px 16px 0;
  }
  .app-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .header-actions {
    width: 100%;
  }
  .header-actions .primary {
    width: 100%;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 15px 12px;
  }
  .stat-top {
    font-size: 11px;
  }
  .stat-top svg {
    display: none;
  }
  .stat strong {
    font-size: 23px;
  }
  .stat small {
    font-size: 9px;
  }
  .inventory-grid {
    grid-template-columns: 1fr;
  }
  .panel-head {
    gap: 10px;
    flex-wrap: wrap;
  }
  .app-footer {
    flex-direction: column;
  }
  .chart {
    gap: 12px;
  }
  .chart-labels {
    gap: 12px;
  }
  dialog {
    padding: 22px;
  }
  .form-row {
    gap: 10px;
  }
  .demo-banner {
    padding: 8px 16px;
  }
  .demo-banner a {
    font-size: 9px;
  }
  .sidebar nav a {
    gap: 5px;
  }
  .sidebar nav svg {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
