:root {
  --bg: #f4f6f3;
  --surface: #ffffff;
  --surface-soft: #f8faf7;
  --line: #d9e1dc;
  --line-strong: #bdc9c1;
  --text: #18201d;
  --muted: #66736c;
  --accent: #0f8b78;
  --accent-dark: #086b5d;
  --accent-soft: #e4f4ef;
  --amber: #c57b1e;
  --amber-soft: #fff1d9;
  --danger: #b42318;
  --danger-soft: #fde8e6;
  --shadow: 0 12px 34px rgba(22, 32, 29, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(244, 246, 243, 0.92)),
    repeating-linear-gradient(90deg, rgba(15, 139, 120, 0.04) 0, rgba(15, 139, 120, 0.04) 1px, transparent 1px, transparent 34px);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

body.auth-only .app-shell {
  display: none;
}

body.app-ready .auth-shell {
  display: none;
}

body.customer-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(247, 251, 249, 0.92), rgba(238, 245, 241, 0.96)),
    linear-gradient(90deg, rgba(15, 139, 120, 0.03), rgba(15, 139, 120, 0.01));
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

svg {
  display: block;
}

.icon-sprite {
  display: none;
}

.app-shell {
  width: min(1480px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.auth-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 20px;
}

.auth-card {
  width: min(480px, 100%);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.auth-brand {
  margin-bottom: 18px;
}

.auth-grid {
  display: grid;
  gap: 12px;
}

.auth-message {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.customer-login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.customer-login-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(320px, 0.95fr);
  gap: 22px;
  width: min(1120px, 100%);
}

.customer-login-intro {
  padding: 28px;
  border: 1px solid rgba(207, 225, 218, 0.88);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 248, 244, 0.96)),
    linear-gradient(135deg, rgba(15, 139, 120, 0.08), rgba(15, 139, 120, 0.02));
  box-shadow: 0 18px 46px rgba(17, 38, 31, 0.08);
}

.customer-login-card {
  width: 100%;
  padding: 28px;
  border: 1px solid rgba(207, 225, 218, 0.94);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 46px rgba(17, 38, 31, 0.08);
}

.customer-login-card h2 {
  margin-bottom: 10px;
}

.customer-login-copy {
  margin-bottom: 18px;
  color: var(--muted);
}

.customer-intro-points {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.customer-intro-point {
  padding: 14px 16px;
  border: 1px solid rgba(205, 223, 216, 0.94);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
}

.customer-intro-point span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.customer-intro-point strong {
  display: block;
  color: var(--text);
  font-size: 15px;
}

.customer-login-notice {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid #e4d2ad;
  border-radius: 8px;
  background: #fff7e8;
  color: #8b5b13;
  font-size: 13px;
  line-height: 1.5;
}

.customer-login-env {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid #d5e4dd;
  border-radius: 8px;
  background: #f5faf8;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.customer-login-actions {
  justify-content: flex-start;
}

.customer-portal-shell {
  width: min(1320px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.customer-portal-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.customer-session-panel {
  display: flex;
  align-items: center;
  gap: 12px;
}

.customer-session-card {
  min-width: 190px;
  padding: 12px 14px;
  border: 1px solid #cfe1da;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.customer-session-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.customer-session-card strong {
  font-size: 17px;
  color: var(--accent-dark);
}

.customer-portal-main {
  display: grid;
}

.customer-portal-panel {
  padding: 20px;
  border: 1px solid #d6e6df;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.customer-portal-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.customer-filter-grid {
  grid-template-columns: minmax(150px, 0.75fr) minmax(150px, 0.75fr) minmax(240px, 1.2fr) minmax(150px, 0.75fr);
}

.customer-summary-grid .metric {
  background: #f6faf8;
}

.customer-orders-table th {
  background: #f4f8f6;
}

.reconcile-filter-grid {
  grid-template-columns: minmax(160px, 0.9fr) minmax(150px, 0.8fr) minmax(150px, 0.8fr) minmax(220px, 1.1fr) minmax(150px, 0.8fr);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.session-panel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.session-user {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.brand-mark svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 24px;
  font-weight: 760;
}

h2 {
  font-size: 19px;
  font-weight: 720;
}

h3 {
  font-size: 16px;
  font-weight: 720;
}

.brand p,
.panel-head p {
  color: var(--muted);
}

.tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.tab-button {
  min-width: 78px;
  height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.tab-button.is-active {
  background: var(--accent);
  color: #fff;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.entry-grid {
  display: grid;
  grid-template-columns: minmax(310px, 0.82fr) minmax(600px, 1.6fr);
  gap: 16px;
  align-items: start;
}

.single-grid {
  display: grid;
  gap: 16px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.parser-panel,
.order-panel,
.single-grid .panel {
  padding: 18px;
}

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

.total-pill {
  min-width: 150px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  text-align: right;
}

.total-pill span,
.metric span,
.field span,
.muted {
  color: var(--muted);
}

.total-pill span,
.metric span,
.field span {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
}

.total-pill strong {
  font-size: 22px;
  color: var(--accent-dark);
}

.form-grid,
.filter-grid,
.sku-form,
.customer-form,
.customer-price-form,
.user-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.sku-form {
  grid-template-columns: minmax(170px, 1fr) minmax(170px, 1fr) minmax(130px, 0.55fr) auto;
  align-items: end;
}

.customer-form {
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
}

.customer-price-form {
  grid-template-columns: minmax(180px, 1fr) minmax(240px, 1.2fr) minmax(130px, 0.65fr) auto;
  align-items: end;
}

.user-form {
  grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr) minmax(160px, 1fr) minmax(120px, 0.7fr) minmax(160px, 1fr) auto;
  align-items: end;
}

.field {
  display: block;
  min-width: 0;
}

.field-stack {
  display: grid;
  gap: 8px;
}

.field-wide {
  grid-column: span 2;
}

input,
textarea,
select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  outline: 0;
}

input,
select {
  padding: 0 11px;
}

textarea {
  resize: vertical;
  padding: 9px 11px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 139, 120, 0.16);
}

.button-row,
.form-actions,
.items-head,
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.button-row,
.form-actions {
  flex-wrap: wrap;
}

.items-head,
.toolbar {
  justify-content: space-between;
  margin: 14px 0 10px;
}

.primary-button,
.ghost-button,
.icon-text-button,
.icon-button,
.mini-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border-radius: 6px;
  font-weight: 750;
  white-space: nowrap;
}

.primary-button svg,
.ghost-button svg,
.icon-text-button svg,
.icon-button svg,
.mini-button svg,
.danger-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.primary-button {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  padding: 0 14px;
}

.primary-button:hover {
  background: var(--accent-dark);
}

.ghost-button,
.icon-text-button {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--text);
  padding: 0 12px;
}

.ghost-button:hover,
.icon-text-button:hover,
.icon-button:hover,
.mini-button:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.icon-button,
.mini-button,
.danger-button {
  width: 36px;
  height: 36px;
  min-height: 36px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}

.mini-button {
  width: auto;
  padding: 0 9px;
  color: var(--text);
  font-size: 13px;
}

.intercept-button {
  border-color: #f0b7b0;
  background: var(--danger-soft);
  color: var(--danger);
}

.restore-button {
  border-color: #a7d6c8;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

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

.danger-button:hover {
  border-color: var(--danger);
  background: var(--danger-soft);
}

.parse-result {
  min-height: 44px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--muted);
}

.parse-result strong {
  color: var(--text);
}

.parse-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.tag.good {
  border-color: #a7d6c8;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.tag.warn {
  border-color: #f0ca8c;
  background: var(--amber-soft);
  color: var(--amber);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: middle;
}

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

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

.items-table {
  min-width: 760px;
}

.data-table {
  min-width: 860px;
}

.orders-table {
  min-width: 980px;
}

.orders-table tr.is-intercepted td {
  background: var(--danger-soft);
}

.orders-table tr.is-intercepted td:not(:last-child) {
  color: #8a1f16;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-left: 6px;
  padding: 0 8px;
  border: 1px solid #f0b7b0;
  border-radius: 999px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.intercept-note {
  display: block;
  margin-top: 6px;
  color: #8a1f16;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.settlement-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.settlement-pill.is-settled {
  border-color: #a7d6c8;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.settlement-pill.is-unsettled {
  border-color: #f0ca8c;
  background: var(--amber-soft);
  color: var(--amber);
}

.status-stack {
  display: grid;
  gap: 4px;
}

.status-subtext {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

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

.price-origin {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.items-table input,
.items-table select {
  min-width: 0;
}

.items-table .sku-cell {
  width: 47%;
}

.items-table .qty-cell {
  width: 92px;
}

.items-table .price-cell {
  width: 118px;
}

.items-table .item-price[readonly] {
  background: var(--surface-soft);
  color: var(--accent-dark);
  font-weight: 800;
}

.items-table .subtotal-cell {
  width: 116px;
  color: var(--accent-dark);
  font-weight: 800;
}

.items-table .action-cell {
  width: 72px;
  text-align: center;
}

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

.table-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 10px;
}

.selection-cell {
  width: 44px;
  text-align: center;
}

.selection-cell input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
}

.limit-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.limit-field select {
  width: auto;
  min-width: 86px;
  min-height: 34px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(140px, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}

.metric {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.metric strong {
  font-size: 26px;
  color: var(--text);
}

.customer-portal-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid #cfe4dc;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #f7fbf9, #edf6f2);
}

.customer-portal-eyebrow {
  margin-bottom: 8px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
}

.customer-portal-hero h2 {
  margin-bottom: 8px;
}

.customer-portal-badge {
  min-width: 180px;
  padding: 12px 14px;
  border: 1px solid #c8ddd5;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
}

.customer-portal-badge span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.customer-portal-badge strong {
  font-size: 18px;
  color: var(--accent-dark);
}

body.customer-portal #panel-reconcile .panel-head {
  margin-bottom: 12px;
}

body.customer-portal #panel-reconcile .summary-grid .metric {
  background: #f6faf8;
}

body.customer-portal #panel-reconcile .table-wrap {
  border-color: #d6e6df;
}

body.customer-portal #panel-reconcile .orders-table th {
  background: #f4f8f6;
}

.batch-toolbar {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.batch-summary {
  display: grid;
  gap: 2px;
}

.batch-summary strong {
  font-size: 14px;
}

.batch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.batch-delete-button {
  width: auto;
  padding: 0 12px;
  background: #fff;
}

.settle-button {
  border-color: #a7d6c8;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.inline-field {
  max-width: 340px;
}

.empty-row {
  padding: 28px 16px;
  color: var(--muted);
  text-align: center;
}

.item-summary {
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.storage-sections {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.storage-details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.storage-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.storage-details summary::-webkit-details-marker {
  display: none;
}

.storage-details summary::before {
  content: "▸";
  color: var(--accent);
  font-size: 14px;
}

.storage-details[open] summary::before {
  content: "▾";
}

.storage-details summary span:first-of-type {
  flex: 1;
}

.storage-details[open] summary {
  border-bottom: 1px solid var(--line);
}

.storage-details > form,
.storage-details > .toolbar,
.storage-details > .table-wrap {
  margin: 14px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(24, 32, 29, 0.42);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  width: min(680px, 100%);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.log-modal {
  width: min(760px, 100%);
}

.log-list {
  display: grid;
  gap: 10px;
  max-height: min(60vh, 520px);
  overflow: auto;
}

.log-item {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
}

.log-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.log-item-title {
  font-weight: 800;
}

.log-item-time {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.log-item-body {
  color: var(--muted);
  font-size: 13px;
  white-space: pre-wrap;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 10px 12px;
  margin-bottom: 14px;
}

.detail-item {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
}

.detail-item span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.detail-item strong {
  display: block;
  font-size: 14px;
  white-space: pre-wrap;
  word-break: break-word;
}

.modal-grid,
.intercept-grid {
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) minmax(130px, 0.6fr);
}

.intercept-grid {
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 0.7fr);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  max-width: min(360px, calc(100vw - 40px));
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--text);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .entry-grid {
    grid-template-columns: 1fr;
  }

  .customer-portal-topbar,
  .customer-portal-actions {
    flex-direction: column;
  }

  .customer-login-layout {
    grid-template-columns: 1fr;
  }

  .customer-filter-grid {
    grid-template-columns: 1fr;
  }

  .form-grid,
  .filter-grid {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .sku-form,
  .customer-form,
  .customer-price-form,
  .user-form,
  .auth-grid {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .sku-form .primary-button,
  .customer-form .primary-button,
  .customer-price-form .primary-button,
  .user-form .primary-button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .app-shell {
    width: min(100vw - 20px, 680px);
    padding-top: 12px;
  }

  .customer-portal-shell {
    width: min(100vw - 20px, 760px);
    padding-top: 16px;
  }

  .customer-login-layout {
    gap: 16px;
  }

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

  .session-panel {
    width: 100%;
    justify-content: space-between;
  }

  .customer-session-panel {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .customer-session-card {
    min-width: 0;
  }

  .tabs {
    width: 100%;
  }

  .tab-button {
    flex: 1;
    min-width: 0;
  }

  .panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .total-pill {
    text-align: left;
  }

  .form-grid,
  .filter-grid,
  .sku-form,
  .customer-form,
  .customer-price-form,
  .user-form,
  .auth-grid,
  .summary-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .customer-portal-hero {
    flex-direction: column;
  }

  .customer-portal-badge {
    min-width: 0;
    width: 100%;
  }

  .field-wide {
    grid-column: auto;
  }

  .brand {
    align-items: flex-start;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
  }

  h1 {
    font-size: 21px;
  }

  .toolbar,
  .items-head,
  .table-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .inline-field {
    max-width: none;
  }
}
