:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #f9fbfd;
  --ink: #101828;
  --muted: #667085;
  --soft: #98a2b3;
  --line: #e4e7ec;
  --line-strong: #d0d5dd;
  --teal: #07999a;
  --teal-strong: #047a7b;
  --teal-soft: #e4f7f7;
  --blue: #2563eb;
  --blue-soft: #eaf1ff;
  --amber: #f59e0b;
  --amber-soft: #fff7e6;
  --red: #e5484d;
  --red-soft: #fff1f1;
  --green: #16a34a;
  --green-soft: #e9f8ef;
  --shadow: 0 10px 30px rgba(16, 24, 40, 0.07);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 1120px;
  background: var(--bg);
  color: var(--ink);
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

.app-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 248px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
  background: var(--surface);
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 12px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, #09a6a7 0%, #0f7280 62%, #122b39 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.brand-title {
  font-size: 17px;
  font-weight: 750;
  line-height: 1.1;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.nav {
  display: grid;
  gap: 6px;
}

.nav-button {
  width: 100%;
  min-height: 42px;
  border-radius: 7px;
  background: transparent;
  color: #344054;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  font-weight: 650;
}

.nav-button svg {
  width: 18px;
  height: 18px;
}

.nav-button:hover {
  background: var(--surface-2);
}

.nav-button.active {
  color: white;
  background: var(--teal);
  box-shadow: 0 8px 22px rgba(7, 153, 154, 0.2);
}

.sidebar-user {
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.user-avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.user-avatar-fallback {
  display: grid;
  place-items: center;
  color: white;
  background: var(--teal);
  font-size: 14px;
  font-weight: 750;
}

.sidebar-user-details {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.sidebar-user-name,
.sidebar-user-email {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user-name {
  font-size: 13px;
  font-weight: 750;
}

.sidebar-user-email {
  color: var(--muted);
  font-size: 11px;
}

.main {
  min-width: 0;
}

.topbar {
  height: 68px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.page-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-title h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1;
}

.icon-button {
  width: 36px;
  height: 36px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
}

.icon-button:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search {
  width: 360px;
  height: 38px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 7px;
  color: var(--ink);
  padding: 0 12px 0 38px;
  outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px 50%;
  font-size: 13px;
}

.workspace {
  padding: 24px;
}

.login-panel {
  max-width: 520px;
}

.login-copy {
  margin: 0 0 18px;
  line-height: 1.6;
}

.google-signin {
  min-height: 44px;
}

.auth-error {
  margin-top: 12px;
  color: var(--red);
  font-size: 13px;
  line-height: 1.5;
}

.toolbar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.module-toolbar {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  margin-bottom: 14px;
}

.module-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
}

.module-toolbar-actions.right {
  margin-left: auto;
}

.period {
  height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: #344054;
  font-size: 13px;
  font-weight: 650;
}

.button {
  min-height: 36px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: #344054;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.button:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

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

.button.is-loading:disabled {
  opacity: 0.78;
}

.button.is-loading {
  pointer-events: none;
}

.loading-spinner {
  width: 16px;
  height: 16px;
  animation: button-spin 0.7s linear infinite;
}

@keyframes button-spin {
  to {
    transform: rotate(360deg);
  }
}

.button:disabled:hover {
  border-color: var(--line);
  background: var(--surface);
}

.button.primary {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}

.button.primary:hover {
  background: var(--teal-strong);
}

.button.danger {
  color: var(--red);
}

.button.ghost {
  background: transparent;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.metric {
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.metric-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.tone-teal {
  color: var(--teal-strong);
  background: var(--teal-soft);
}

.tone-green {
  color: var(--green);
  background: var(--green-soft);
}

.tone-blue {
  color: var(--blue);
  background: var(--blue-soft);
}

.tone-amber {
  color: var(--amber);
  background: var(--amber-soft);
}

.metric-title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.metric-value {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 780;
  line-height: 1;
}

.metric-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.metric-note strong {
  color: var(--green);
}

.grid-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(300px, 0.9fr);
  gap: 14px;
}

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

.grid-forms {
  display: grid;
  grid-template-columns: minmax(360px, 0.82fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.stack {
  display: grid;
  gap: 14px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.panel-header {
  min-height: 46px;
  border-bottom: 1px solid var(--line);
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 15px;
  font-weight: 780;
}

.panel-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.panel-body {
  padding: 14px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.42);
}

.modal-panel {
  width: min(720px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.modal-header {
  min-height: 58px;
  border-bottom: 1px solid var(--line);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-eyebrow {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.modal-title {
  margin-top: 2px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 820;
}

.modal-panel form {
  padding: 14px;
}

.modal-body {
  padding: 14px;
}

.modal-body form {
  padding: 0;
}

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

.table-wrap.compact-table {
  margin-top: 12px;
}

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

table.compact-table {
  min-width: 640px;
}

th,
td {
  height: 44px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 13px;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  background: var(--surface-2);
}

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

tbody tr:hover td {
  background: #fcfdff;
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.row-actions .button {
  width: 34px;
  min-height: 34px;
  padding: 0;
}

.row-actions svg {
  width: 15px;
  height: 15px;
}

.material-main-panel {
  margin-top: 0;
}

.material-tabs {
  min-height: 46px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: stretch;
  gap: 4px;
  padding: 6px;
  background: var(--surface-2);
}

.material-tab {
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  padding: 0 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 780;
}

.material-tab:hover {
  color: var(--ink);
  background: var(--surface);
}

.material-tab.active {
  border-color: var(--line);
  background: var(--surface);
  color: var(--teal);
  box-shadow: var(--shadow-soft);
}

.material-tab-body > .panel {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.material-tab-body > .panel > .panel-header {
  background: var(--surface);
}

.sales-stat-stack {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.sales-stat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  background: var(--surface);
}

.sales-stat-grid.pending-row {
  padding-top: 0;
}

.sales-stat-card {
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 10px 12px;
}

.sales-stat-card.good {
  border-color: rgba(22, 163, 74, 0.22);
  background: var(--green-soft);
}

.sales-stat-card.bad {
  border-color: rgba(229, 72, 77, 0.22);
  background: var(--red-soft);
}

.sales-stat-card.pending {
  border-color: rgba(245, 158, 11, 0.24);
  background: var(--amber-soft);
}

.sales-stat-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.sales-stat-value {
  margin-top: 8px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 820;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.channel-actions {
  display: flex;
  gap: 8px;
}

.channel-actions .button {
  min-height: 34px;
  padding: 0 10px;
}

.channel-actions svg {
  width: 15px;
  height: 15px;
}

.name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}

.swatch {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1px solid rgba(16, 24, 40, 0.16);
  flex: 0 0 auto;
}

.production-color-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 140px;
}

.swatch-stack {
  display: inline-flex;
  align-items: center;
  padding-left: 6px;
}

.swatch-stack .swatch {
  margin-left: -6px;
  box-shadow: 0 0 0 2px var(--surface);
}

.mono {
  font-variant-numeric: tabular-nums;
}

.muted {
  color: var(--muted);
}

.tiny {
  font-size: 12px;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.status.good {
  color: var(--green);
  background: var(--green-soft);
}

.status.warn {
  color: #c47a00;
  background: var(--amber-soft);
}

.status.bad {
  color: var(--red);
  background: var(--red-soft);
}

.status.info {
  color: var(--blue);
  background: var(--blue-soft);
}

.list {
  display: grid;
}

.list-item {
  min-height: 62px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

.list-item:last-child {
  border-bottom: 0;
}

.list-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--teal-strong);
}

.list-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 780;
}

.list-subtitle {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.progress {
  width: 116px;
  height: 7px;
  border-radius: 999px;
  background: #eef2f7;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--teal);
  border-radius: inherit;
}

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

.form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sale-line-editor {
  display: grid;
  gap: 8px;
}

.sale-line-row {
  display: grid;
  grid-template-columns: 104px minmax(260px, 1fr) 86px 112px minmax(116px, 0.45fr) 36px;
  gap: 8px;
  align-items: center;
}

.sale-line-item-select {
  min-width: 0;
}

.sale-line-meta {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
  padding: 5px 8px;
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.15;
}

.sale-line-meta .mono {
  color: var(--ink);
  font-size: 12px;
  font-weight: 780;
}

.sale-line-materials {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
}

.sale-line-material-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.45fr) minmax(260px, 1fr);
  gap: 10px;
  align-items: center;
}

.sale-item-lines {
  display: grid;
  gap: 4px;
  min-width: 260px;
}

.sale-item-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  max-width: 420px;
}

.sale-item-line span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.field {
  display: grid;
  gap: 6px;
}

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

.field label {
  color: #475467;
  font-size: 12px;
  font-weight: 750;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  padding: 8px 10px;
  outline: none;
  font-size: 13px;
}

.textarea {
  min-height: 76px;
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(7, 153, 154, 0.12);
}

.form-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.enum-groups {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.enum-group {
  display: grid;
  gap: 7px;
}

.enum-label {
  color: #475467;
  font-size: 12px;
  font-weight: 800;
}

.enum-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.enum-chip {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
  color: #344054;
  padding: 0 7px 0 9px;
  font-size: 12px;
  font-weight: 750;
}

.enum-chip button {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.enum-chip button:hover {
  background: var(--red-soft);
  color: var(--red);
}

.enum-chip svg {
  width: 13px;
  height: 13px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 16px;
}

.section-head h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
}

.section-head p {
  max-width: 720px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.detail-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.detail-title h3 {
  margin: 0;
  font-size: 16px;
}

.recipe-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px 140px 78px;
  gap: 8px;
  align-items: end;
  margin-bottom: 8px;
}

.production-recipe-list {
  display: grid;
  gap: 8px;
}

.production-material-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(220px, 1.2fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.bundle-item-list {
  display: grid;
  gap: 8px;
}

.bundle-item-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 92px 44px minmax(150px, 0.55fr);
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.bundle-item-row .button {
  width: 38px;
  min-height: 38px;
  padding: 0;
}

.bundle-item-row svg {
  width: 15px;
  height: 15px;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.summary-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 12px;
}

.summary-box .label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.summary-box .value {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 800;
}

.empty-state {
  min-height: 120px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 18px;
}

.empty-state.compact {
  min-height: 76px;
}

.inline-note {
  min-height: 38px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--muted);
  padding: 0 10px;
  font-size: 13px;
}

.scrap-history {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.scrap-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  max-width: 360px;
  min-height: 44px;
  border-radius: var(--radius);
  background: #111827;
  color: white;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
  z-index: 50;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.mobile-warning {
  display: none;
  padding: 10px 14px;
  color: #92400e;
  background: #fffbeb;
  border-bottom: 1px solid #fde68a;
  font-size: 13px;
}

@media (max-width: 900px) {
  body {
    min-width: 0;
  }

  .mobile-warning {
    display: block;
  }

  .app-shell {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .nav-button {
    justify-content: center;
    padding: 0 8px;
  }

  .nav-button span {
    display: none;
  }

  .sidebar-user {
    display: none;
  }

  .topbar {
    position: static;
    height: auto;
    padding: 14px;
    align-items: flex-start;
    flex-direction: column;
  }

  .search {
    width: 100%;
  }

  .top-actions {
    width: 100%;
    align-items: stretch;
  }

  .workspace {
    padding: 14px;
  }

  .module-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .module-toolbar-actions {
    justify-content: flex-start;
  }

  .module-toolbar-actions.right {
    margin-left: 0;
  }

  .metric-grid,
  .grid-dashboard,
  .grid-two,
  .grid-forms,
  .summary-strip,
  .sales-stat-grid {
    grid-template-columns: 1fr;
  }

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

  .recipe-row {
    grid-template-columns: 1fr;
  }

  .production-material-row {
    grid-template-columns: 1fr;
  }

  .bundle-item-row {
    grid-template-columns: 1fr;
  }

  .sale-line-row {
    grid-template-columns: 1fr;
  }

  .sale-line-material-row {
    grid-template-columns: 1fr;
  }

  .scrap-item {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .modal-backdrop {
    padding: 12px;
    align-items: start;
  }

  .modal-panel {
    max-height: calc(100vh - 24px);
  }
}
